@simoncomputing/mui-bueno-v2 0.18.2 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- require('./index.css');"use strict";var Xz=Object.defineProperty;var Qz=(t,e,n)=>e in t?Xz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Nl=(t,e,n)=>Qz(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@mui/material"),v=require("react/jsx-runtime"),J=require("react"),qt=require("formik"),so=require("react-router-dom"),eV=require("@emotion/styled"),lo=require("@emotion/react"),Es=require("react-dom");function HR(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const A=HR(J),tV=HR(Es),nV="0px",rV="600px",oV="960px",iV="1100px",sV="1536px",aV="#4c98d7",lV="#005ea2",cV="#1a4480",uV="#9bb672",dV="#607f35",fV="#3c4a29",pV="rgba(0, 0, 0, 0.8705882353)",hV="rgba(0, 0, 0, 0.6)",mV="rgba(0, 0, 0, 0.3803921569)",gV="#dc5b52",yV="#d83933",bV="#b50909",vV="#ffbe2e",xV="#e5a000",SV="#c2850c",CV="#4c98d7",wV="#005ea2",TV="#1a4480",_V="#9bb672",kV="#607f35",EV="#3c4a29",MV="#f9f9f9",OV="#fff",RV="#252f3e",AV="#c9c9c9",IV="#98cbfb",DV="#4c98d7",PV="#005ea2",NV="#b8d293",LV="#9bb672",jV="#607f35",$V="#fff",FV="rgba(255, 255, 255, 0.7019607843)",BV="rgba(255, 255, 255, 0.5019607843)",zV="#f1928b",VV="#dc5b52",HV="#d83933",WV="#ffe396",qV="#ffbe2e",UV="#e5a000",KV="#98cbfb",YV="#4c98d7",GV="#005ea2",JV="#b8d293",ZV="#9bb672",XV="#607f35",QV="#121212",e4="#1b1b1b",t4="#252f3e",n4="#2e2e2e",r4="#f0f0f0",o4="#e6e6e6",i4="#c9c9c9",s4="#adadad",a4="#919191",l4="#757575",c4="#5c5c5c",u4="#454545",d4="#2e2e2e",f4="#1b1b1b",p4="#e6e6e6",h4="#c9c9c9",m4="#919191",g4="#454545",y4="#fff",b4="#000",v4="none",x4="2px 2px 5px 0px rgba(0, 0, 0, 0.05)",S4="2px 2px 7px 0px rgba(0, 0, 0, 0.075)",C4="2px 3px 7px 0px rgba(0, 0, 0, 0.075), 0px 1px 10px 0px rgba(0, 0, 0, 0.05)",w4="2px 4px 8px 0px rgba(0, 0, 0, 0.075), 0px 1px 12px 0px rgba(0, 0, 0, 0.075)",T4="2px 5px 8px 0px rgba(0, 0, 0, 0.075), 0px 2px 14px 0px rgba(0, 0, 0, 0.1)",_4="2px 6px 10px 0px rgba(0, 0, 0, 0.1), 0px 2px 18px 0px rgba(0, 0, 0, 0.1)",k4="2px 7px 10px 1px rgba(0, 0, 0, 0.1), 0px 2px 16px 1px rgba(0, 0, 0, 0.12)",E4="2px 8px 10px 1px rgba(0, 0, 0, 0.1), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)",M4="2px 9px 12px 1px rgba(0, 0, 0, 0.1), 0px 3px 16px 2px rgba(0, 0, 0, 0.12)",O4="2px 10px 14px 1px rgba(0, 0, 0, 0.12), 0px 4px 18px 3px rgba(0, 0, 0, 0.12)",R4="2px 11px 15px 1px rgba(0, 0, 0, 0.12), 0px 4px 20px 3px rgba(0, 0, 0, 0.12)",A4="2px 12px 17px 2px rgba(0, 0, 0, 0.12), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)",I4="2px 13px 19px 2px rgba(0, 0, 0, 0.12), 0px 5px 24px 4px rgba(0, 0, 0, 0.12)",D4="2px 14px 21px 2px rgba(0, 0, 0, 0.12), 0px 5px 26px 4px rgba(0, 0, 0, 0.12)",P4="2px 15px 22px 2px rgba(0, 0, 0, 0.12), 0px 6px 28px 5px rgba(0, 0, 0, 0.12)",N4="2px 16px 24px 2px rgba(0, 0, 0, 0.12), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)",L4="2px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12)",j4="2px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12)",$4="2px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12)",F4="2px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12)",B4="2px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12)",z4="2px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12)",V4="2px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12)",H4="2px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)",W4="3px",q4='"solid"',U4="1px",K4="2px",Y4='"source-sans-pro", "helvetica", "arial", sans-serif',G4='"source-sans-pro", "helvetica", "arial", sans-serif',J4="700",Z4="2rem",X4="normal",Q4="normal",eH='"source-sans-pro", "helvetica", "arial", sans-serif',tH="700",nH="1.75rem",rH="normal",oH="normal",iH='"source-sans-pro", "helvetica", "arial", sans-serif',sH="700",aH="1.5rem",lH="normal",cH="normal",uH='"source-sans-pro", "helvetica", "arial", sans-serif',dH="700",fH="1.35rem",pH="normal",hH="normal",mH='"source-sans-pro", "helvetica", "arial", sans-serif',gH="700",yH="1.25rem",bH="normal",vH="normal",xH='"source-sans-pro", "helvetica", "arial", sans-serif',SH="700",CH="1.1rem",wH="normal",TH="normal",_H='"source-sans-pro", "helvetica", "arial", sans-serif',kH="600",EH="1.25rem",MH="normal",OH="normal",RH='"source-sans-pro", "helvetica", "arial", sans-serif',AH="600",IH="1.125rem",DH="normal",PH="normal",NH='"source-sans-pro", "helvetica", "arial", sans-serif',LH="400",jH="1.125rem",$H="normal",FH="normal",BH='"source-sans-pro", "helvetica", "arial", sans-serif',zH="400",VH="1rem",HH="normal",WH="normal",qH='"source-sans-pro", "helvetica", "arial", sans-serif',UH="600",KH="1rem",YH="normal",GH="normal",JH='"source-sans-pro", "helvetica", "arial", sans-serif',ZH="400",XH="0.75rem",QH="normal",e6="normal",t6='"source-sans-pro", "helvetica", "arial", sans-serif',n6="400",r6="0.75rem",o6="normal",i6="normal",le={breakpoints_xs:nV,breakpoints_sm:rV,breakpoints_md:oV,breakpoints_lg:iV,breakpoints_xl:sV,light_palette_primary_light:aV,light_palette_primary_main:lV,light_palette_primary_dark:cV,light_palette_secondary_light:uV,light_palette_secondary_main:dV,light_palette_secondary_dark:fV,light_palette_text_primary:pV,light_palette_text_secondary:hV,light_palette_text_disabled:mV,light_palette_error_light:gV,light_palette_error_main:yV,light_palette_error_dark:bV,light_palette_warning_light:vV,light_palette_warning_main:xV,light_palette_warning_dark:SV,light_palette_info_light:CV,light_palette_info_main:wV,light_palette_info_dark:TV,light_palette_success_light:_V,light_palette_success_main:kV,light_palette_success_dark:EV,light_palette_background_default:MV,light_palette_background_paper:OV,light_palette_background_appBar:RV,light_palette_divider_default:AV,dark_palette_primary_light:IV,dark_palette_primary_main:DV,dark_palette_primary_dark:PV,dark_palette_secondary_light:NV,dark_palette_secondary_main:LV,dark_palette_secondary_dark:jV,dark_palette_text_primary:$V,dark_palette_text_secondary:FV,dark_palette_text_disabled:BV,dark_palette_error_light:zV,dark_palette_error_main:VV,dark_palette_error_dark:HV,dark_palette_warning_light:WV,dark_palette_warning_main:qV,dark_palette_warning_dark:UV,dark_palette_info_light:KV,dark_palette_info_main:YV,dark_palette_info_dark:GV,dark_palette_success_light:JV,dark_palette_success_main:ZV,dark_palette_success_dark:XV,dark_palette_background_default:QV,dark_palette_background_paper:e4,dark_palette_background_appBar:t4,dark_palette_divider_default:n4,common_palette_grey_50:r4,common_palette_grey_100:o4,common_palette_grey_200:i4,common_palette_grey_300:s4,common_palette_grey_400:a4,common_palette_grey_500:l4,common_palette_grey_600:c4,common_palette_grey_700:u4,common_palette_grey_800:d4,common_palette_grey_900:f4,common_palette_grey_A100:p4,common_palette_grey_A200:h4,common_palette_grey_A400:m4,common_palette_grey_A700:g4,common_palette_common_white:y4,common_palette_common_black:b4,shadows_0:v4,shadows_1:x4,shadows_2:S4,shadows_3:C4,shadows_4:w4,shadows_5:T4,shadows_6:_4,shadows_7:k4,shadows_8:E4,shadows_9:M4,shadows_10:O4,shadows_11:R4,shadows_12:A4,shadows_13:I4,shadows_14:D4,shadows_15:P4,shadows_16:N4,shadows_17:L4,shadows_18:j4,shadows_19:$4,shadows_20:F4,shadows_21:B4,shadows_22:z4,shadows_23:V4,shadows_24:H4,shape_borderRadius:W4,shape_borderStyle:q4,shape_borderWidth:U4,shape_buttonBorderWidth:K4,typography_fontFamily_default:Y4,typography_h1_fontFamily:G4,typography_h1_fontWeight:J4,typography_h1_fontSize:Z4,typography_h1_lineHeight:X4,typography_h1_letterSpacing:Q4,typography_h2_fontFamily:eH,typography_h2_fontWeight:tH,typography_h2_fontSize:nH,typography_h2_lineHeight:rH,typography_h2_letterSpacing:oH,typography_h3_fontFamily:iH,typography_h3_fontWeight:sH,typography_h3_fontSize:aH,typography_h3_lineHeight:lH,typography_h3_letterSpacing:cH,typography_h4_fontFamily:uH,typography_h4_fontWeight:dH,typography_h4_fontSize:fH,typography_h4_lineHeight:pH,typography_h4_letterSpacing:hH,typography_h5_fontFamily:mH,typography_h5_fontWeight:gH,typography_h5_fontSize:yH,typography_h5_lineHeight:bH,typography_h5_letterSpacing:vH,typography_h6_fontFamily:xH,typography_h6_fontWeight:SH,typography_h6_fontSize:CH,typography_h6_lineHeight:wH,typography_h6_letterSpacing:TH,typography_subtitle1_fontFamily:_H,typography_subtitle1_fontWeight:kH,typography_subtitle1_fontSize:EH,typography_subtitle1_lineHeight:MH,typography_subtitle1_letterSpacing:OH,typography_subtitle2_fontFamily:RH,typography_subtitle2_fontWeight:AH,typography_subtitle2_fontSize:IH,typography_subtitle2_lineHeight:DH,typography_subtitle2_letterSpacing:PH,typography_body1_fontFamily:NH,typography_body1_fontWeight:LH,typography_body1_fontSize:jH,typography_body1_lineHeight:$H,typography_body1_letterSpacing:FH,typography_body2_fontFamily:BH,typography_body2_fontWeight:zH,typography_body2_fontSize:VH,typography_body2_lineHeight:HH,typography_body2_letterSpacing:WH,typography_button_fontFamily:qH,typography_button_fontWeight:UH,typography_button_fontSize:KH,typography_button_lineHeight:YH,typography_button_letterSpacing:GH,typography_caption_fontFamily:JH,typography_caption_fontWeight:ZH,typography_caption_fontSize:XH,typography_caption_lineHeight:QH,typography_caption_letterSpacing:e6,typography_overline_fontFamily:t6,typography_overline_fontWeight:n6,typography_overline_fontSize:r6,typography_overline_lineHeight:o6,typography_overline_letterSpacing:i6},Sn={breakpoints:{values:{xs:parseInt(le.breakpoints_xs),sm:parseInt(le.breakpoints_sm),md:parseInt(le.breakpoints_md),lg:parseInt(le.breakpoints_lg),xl:parseInt(le.breakpoints_xl)}},shadows:["none",le.shadows_1,le.shadows_2,le.shadows_3,le.shadows_4,le.shadows_5,le.shadows_6,le.shadows_7,le.shadows_8,le.shadows_9,le.shadows_10,le.shadows_11,le.shadows_12,le.shadows_13,le.shadows_14,le.shadows_15,le.shadows_16,le.shadows_17,le.shadows_18,le.shadows_19,le.shadows_20,le.shadows_21,le.shadows_22,le.shadows_23,le.shadows_24],shape:{borderRadius:parseInt(le.shape_borderRadius)},typography:{fontFamily:le.typography_fontFamily_default,h1:{fontFamily:le.typography_h1_fontFamily,fontWeight:parseInt(le.typography_h1_fontWeight),fontSize:le.typography_h1_fontSize,lineHeight:le.typography_h1_lineHeight,letterSpacing:le.typography_h1_letterSpacing},h2:{fontFamily:le.typography_h2_fontFamily,fontWeight:parseInt(le.typography_h2_fontWeight),fontSize:le.typography_h2_fontSize,lineHeight:le.typography_h2_lineHeight,letterSpacing:le.typography_h2_letterSpacing},h3:{fontFamily:le.typography_h3_fontFamily,fontWeight:parseInt(le.typography_h3_fontWeight),fontSize:le.typography_h3_fontSize,lineHeight:le.typography_h3_lineHeight,letterSpacing:le.typography_h3_letterSpacing},h4:{fontFamily:le.typography_h4_fontFamily,fontWeight:parseInt(le.typography_h4_fontWeight),fontSize:le.typography_h4_fontSize,lineHeight:le.typography_h4_lineHeight,letterSpacing:le.typography_h4_letterSpacing},h5:{fontFamily:le.typography_h5_fontFamily,fontWeight:parseInt(le.typography_h5_fontWeight),fontSize:le.typography_h5_fontSize,lineHeight:le.typography_h5_lineHeight,letterSpacing:le.typography_h5_letterSpacing},h6:{fontFamily:le.typography_h6_fontFamily,fontWeight:parseInt(le.typography_h6_fontWeight),fontSize:le.typography_h6_fontSize,lineHeight:le.typography_h6_lineHeight,letterSpacing:le.typography_h6_letterSpacing},subtitle1:{fontFamily:le.typography_subtitle1_fontFamily,fontWeight:parseInt(le.typography_subtitle1_fontWeight),fontSize:le.typography_subtitle1_fontSize,lineHeight:le.typography_subtitle1_lineHeight,letterSpacing:le.typography_subtitle1_letterSpacing},subtitle2:{fontFamily:le.typography_subtitle2_fontFamily,fontWeight:parseInt(le.typography_subtitle2_fontWeight),fontSize:le.typography_subtitle2_fontSize,lineHeight:le.typography_subtitle2_lineHeight,letterSpacing:le.typography_subtitle2_letterSpacing},body1:{fontFamily:le.typography_body1_fontFamily,fontWeight:parseInt(le.typography_body1_fontWeight),fontSize:le.typography_body1_fontSize,lineHeight:le.typography_body1_lineHeight,letterSpacing:le.typography_body1_letterSpacing},body2:{fontFamily:le.typography_body2_fontFamily,fontWeight:parseInt(le.typography_body2_fontWeight),fontSize:le.typography_body2_fontSize,lineHeight:le.typography_body2_lineHeight,letterSpacing:le.typography_body2_letterSpacing},button:{fontFamily:le.typography_button_fontFamily,fontWeight:parseInt(le.typography_button_fontWeight),fontSize:le.typography_button_fontSize,lineHeight:le.typography_button_lineHeight,letterSpacing:le.typography_button_letterSpacing,textTransform:"none"},caption:{fontFamily:le.typography_caption_fontFamily,fontWeight:parseInt(le.typography_caption_fontWeight),fontSize:le.typography_caption_fontSize,lineHeight:le.typography_caption_lineHeight,letterSpacing:le.typography_caption_letterSpacing},overline:{fontFamily:le.typography_overline_fontFamily,fontWeight:parseInt(le.typography_overline_fontWeight),fontSize:le.typography_overline_fontSize,lineHeight:le.typography_overline_lineHeight,letterSpacing:le.typography_overline_letterSpacing}},palette:{grey:{50:le.common_palette_grey_50,100:le.common_palette_grey_100,200:le.common_palette_grey_200,300:le.common_palette_grey_300,400:le.common_palette_grey_400,500:le.common_palette_grey_500,600:le.common_palette_grey_600,700:le.common_palette_grey_700,800:le.common_palette_grey_800,900:le.common_palette_grey_900,A100:le.common_palette_grey_A100,A200:le.common_palette_grey_A200,A400:le.common_palette_grey_A400,A700:le.common_palette_grey_A700},common:{black:le.common_palette_common_black,white:le.common_palette_common_white},white:le.common_palette_common_white},components:{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:{borderStyle:"solid",borderWidth:le.shape_borderWidth}}},MuiAppBar:{styleOverrides:{root:{backgroundImage:"none"}}},MuiButton:{styleOverrides:{outlined:{borderWidth:le.shape_buttonBorderWidth,":hover":{borderWidth:le.shape_buttonBorderWidth}}}},MuiTable:{styleOverrides:{root:({ownerState:t})=>({...t.size==="x-small"&&{"& .MuiTableCell-root":{padding:"0px 16px"}}})}}}};var vR,xR,SR,CR,wR,TR,_R,kR,ER,MR,OR,RR;const s6=j.createTheme({...Sn,palette:{...Sn.palette,mode:"light",primary:{light:le.light_palette_primary_light,main:le.light_palette_primary_main,dark:le.light_palette_primary_dark},secondary:{light:le.light_palette_secondary_light,main:le.light_palette_secondary_main,dark:le.light_palette_secondary_dark},text:{primary:le.light_palette_text_primary,secondary:le.light_palette_text_secondary,disabled:le.light_palette_text_disabled},background:{default:le.light_palette_background_default,paper:le.light_palette_background_paper},error:{light:le.light_palette_error_light,main:le.light_palette_error_main,dark:le.light_palette_error_dark},success:{light:le.light_palette_success_light,main:le.light_palette_success_main,dark:le.light_palette_success_dark},info:{light:le.light_palette_info_light,main:le.light_palette_info_main,dark:le.light_palette_info_dark},warning:{light:le.light_palette_warning_light,main:le.light_palette_warning_main,dark:le.light_palette_warning_dark}},components:{...Sn.components,MuiAppBar:{...(vR=Sn.components)==null?void 0:vR.MuiAppBar,styleOverrides:{...(SR=(xR=Sn.components)==null?void 0:xR.MuiAppBar)==null?void 0:SR.styleOverrides,root:{...(TR=(wR=(CR=Sn.components)==null?void 0:CR.MuiAppBar)==null?void 0:wR.styleOverrides)==null?void 0:TR.root,backgroundColor:le.light_palette_background_appBar}}},MuiCard:{...(_R=Sn.components)==null?void 0:_R.MuiCard,styleOverrides:{...(ER=(kR=Sn.components)==null?void 0:kR.MuiCard)==null?void 0:ER.styleOverrides,root:{...(RR=(OR=(MR=Sn.components)==null?void 0:MR.MuiCard)==null?void 0:OR.styleOverrides)==null?void 0:RR.root,borderColor:le.light_palette_divider_default}}}}});var AR,IR,DR,PR,NR,LR,jR,$R,FR,BR,zR,VR;const a6=j.createTheme({...Sn,palette:{...Sn.palette,mode:"dark",primary:{light:le.dark_palette_primary_light,main:le.dark_palette_primary_main,dark:le.dark_palette_primary_dark},secondary:{light:le.dark_palette_secondary_light,main:le.dark_palette_secondary_main,dark:le.dark_palette_secondary_dark},text:{primary:le.dark_palette_text_primary,secondary:le.dark_palette_text_secondary,disabled:le.dark_palette_text_disabled},background:{default:le.dark_palette_background_default,paper:le.dark_palette_background_paper},error:{light:le.dark_palette_error_light,main:le.dark_palette_error_main,dark:le.dark_palette_error_dark},success:{light:le.dark_palette_success_light,main:le.dark_palette_success_main,dark:le.dark_palette_success_dark},info:{light:le.dark_palette_info_light,main:le.dark_palette_info_main,dark:le.dark_palette_info_dark},warning:{light:le.dark_palette_warning_light,main:le.dark_palette_warning_main,dark:le.dark_palette_warning_dark}},components:{...Sn.components,MuiAppBar:{...(AR=Sn.components)==null?void 0:AR.MuiAppBar,styleOverrides:{...(DR=(IR=Sn.components)==null?void 0:IR.MuiAppBar)==null?void 0:DR.styleOverrides,root:{...(LR=(NR=(PR=Sn.components)==null?void 0:PR.MuiAppBar)==null?void 0:NR.styleOverrides)==null?void 0:LR.root,backgroundColor:le.dark_palette_background_appBar,backgroundImage:"none"}}},MuiCard:{...(jR=Sn.components)==null?void 0:jR.MuiCard,styleOverrides:{...(FR=($R=Sn.components)==null?void 0:$R.MuiCard)==null?void 0:FR.styleOverrides,root:{...(VR=(zR=(BR=Sn.components)==null?void 0:BR.MuiCard)==null?void 0:zR.styleOverrides)==null?void 0:VR.root,borderColor:le.dark_palette_divider_default}}}}}),l6=["w","xs","sm","md","lg","xl","alignment","justify","noMP","noGrid","gridClassName","gridStyle"],fw=t=>t>47&&t<58,pw=t=>t>64&&t<123&&(t<91||t>96),c6=(t,e,n,r)=>{let o="",i=0,s=0,a=0,l=0;const u=r.selectionStart;let f=!1;if(t.length<=e.length){for(let T=0;T<t.length&&T<e.length;T++){for(;i<e.length&&e[i]!=="X"&&e[i]!=="9";)a++,s++,i++;(fw(t.charCodeAt(T))&&e[i]==="9"||pw(t.charCodeAt(T))&&e[i]==="X")&&(a>0&&(l=a,a=0),o+=t[T],i++)}const p=fw(t.charCodeAt(u-1))?"number":pw(t.charCodeAt(u-1))?"letter":"something else",m=p!=="number"&&e[u-1]==="9",g=p!=="letter"&&e[u-1]==="X";(m||g||p==="something else")&&(f=!0);let b="",S=0;Math.abs(n.length-t.length)<=1&&(s=0);let C=u+s;for(let T=0;T<o.length;T++){for(;S<e.length&&e[S]!=="X"&&e[S]!=="9";)b+=e[S],S++;b+=o[T],S++}t.length<n.length?window.requestAnimationFrame(()=>{r.selectionStart=C,r.selectionEnd=C}):e[C-1]!=="X"&&e[C-1]!=="9"?window.requestAnimationFrame(()=>{r.selectionStart=C+l,r.selectionEnd=C+l}):(f&&(C-=1),window.requestAnimationFrame(()=>{r.selectionStart=C,r.selectionEnd=C}));const _=e.slice(S);return _.indexOf("X")===-1&&_.indexOf("9")===-1&&(b+=_),b}return window.requestAnimationFrame(()=>{r.selectionStart=u-1,r.selectionEnd=u-1}),n};function er(t,e){const r=Object.keys(t).filter(i=>e.includes(i)),o={...t};for(const i of l6)delete o[i];for(const i of r)delete o[i];return o}const Mn=t=>t.split(/(?=[A-Z])|[.\-_\s]+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).filter(Boolean).join(" ");function u6(t,e,n=!1,r=""){let o="";if(e==null||e.length==0)return r;if(n){let i="";const s=e.toString().split(",");let a=0;t.forEach(l=>{s.includes(String(l.value).toString())&&(i+=l.label,a<s.length-1&&(i+=", "),a++)}),o=i}else{const i=t.find(s=>e==s.value);i!=null&&(o=i.label)}return o}function Zc(t,e,n){return t.onClick?{onClick:()=>{t.onClick(),t.path&&e(t.path),t.externalLink&&window.open(t.externalLink,"_blank","noopener"),n&&n()}}:t.path?{component:so.Link,to:t.path}:t.externalLink?{href:t.externalLink}:{}}function pi(t,e){return process.env.NODE_ENV==="production"?()=>null:function(...r){return t(...r)||e(...r)}}var Li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fd={exports:{}},Rt={};/**
1
+ require('./index.css');"use strict";var Xz=Object.defineProperty;var Qz=(t,e,n)=>e in t?Xz(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Nl=(t,e,n)=>Qz(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@mui/material"),v=require("react/jsx-runtime"),J=require("react"),qt=require("formik"),so=require("react-router-dom"),eV=require("@emotion/styled"),lo=require("@emotion/react"),Es=require("react-dom");function HR(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const A=HR(J),tV=HR(Es),nV="0px",rV="600px",oV="960px",iV="1100px",sV="1536px",aV="#4c98d7",lV="#005ea2",cV="#1a4480",uV="#9bb672",dV="#607f35",fV="#3c4a29",pV="rgba(0, 0, 0, 0.8705882353)",hV="rgba(0, 0, 0, 0.6)",mV="rgba(0, 0, 0, 0.3803921569)",gV="#dc5b52",yV="#d83933",bV="#b50909",vV="#ffbe2e",xV="#e5a000",SV="#c2850c",CV="#4c98d7",wV="#005ea2",TV="#1a4480",_V="#9bb672",kV="#607f35",EV="#3c4a29",MV="#f9f9f9",OV="#fff",RV="#252f3e",AV="#c9c9c9",IV="#98cbfb",DV="#4c98d7",PV="#005ea2",NV="#b8d293",LV="#9bb672",jV="#607f35",$V="#fff",FV="rgba(255, 255, 255, 0.7019607843)",BV="rgba(255, 255, 255, 0.5019607843)",zV="#f1928b",VV="#dc5b52",HV="#d83933",WV="#ffe396",qV="#ffbe2e",UV="#e5a000",KV="#98cbfb",YV="#4c98d7",GV="#005ea2",JV="#b8d293",ZV="#9bb672",XV="#607f35",QV="#121212",e4="#1b1b1b",t4="#252f3e",n4="#2e2e2e",r4="#f0f0f0",o4="#e6e6e6",i4="#c9c9c9",s4="#adadad",a4="#919191",l4="#757575",c4="#5c5c5c",u4="#454545",d4="#2e2e2e",f4="#1b1b1b",p4="#e6e6e6",h4="#c9c9c9",m4="#919191",g4="#454545",y4="#fff",b4="#000",v4="none",x4="2px 2px 5px 0px rgba(0, 0, 0, 0.05)",S4="2px 2px 7px 0px rgba(0, 0, 0, 0.075)",C4="2px 3px 7px 0px rgba(0, 0, 0, 0.075), 0px 1px 10px 0px rgba(0, 0, 0, 0.05)",w4="2px 4px 8px 0px rgba(0, 0, 0, 0.075), 0px 1px 12px 0px rgba(0, 0, 0, 0.075)",T4="2px 5px 8px 0px rgba(0, 0, 0, 0.075), 0px 2px 14px 0px rgba(0, 0, 0, 0.1)",_4="2px 6px 10px 0px rgba(0, 0, 0, 0.1), 0px 2px 18px 0px rgba(0, 0, 0, 0.1)",k4="2px 7px 10px 1px rgba(0, 0, 0, 0.1), 0px 2px 16px 1px rgba(0, 0, 0, 0.12)",E4="2px 8px 10px 1px rgba(0, 0, 0, 0.1), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)",M4="2px 9px 12px 1px rgba(0, 0, 0, 0.1), 0px 3px 16px 2px rgba(0, 0, 0, 0.12)",O4="2px 10px 14px 1px rgba(0, 0, 0, 0.12), 0px 4px 18px 3px rgba(0, 0, 0, 0.12)",R4="2px 11px 15px 1px rgba(0, 0, 0, 0.12), 0px 4px 20px 3px rgba(0, 0, 0, 0.12)",A4="2px 12px 17px 2px rgba(0, 0, 0, 0.12), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)",I4="2px 13px 19px 2px rgba(0, 0, 0, 0.12), 0px 5px 24px 4px rgba(0, 0, 0, 0.12)",D4="2px 14px 21px 2px rgba(0, 0, 0, 0.12), 0px 5px 26px 4px rgba(0, 0, 0, 0.12)",P4="2px 15px 22px 2px rgba(0, 0, 0, 0.12), 0px 6px 28px 5px rgba(0, 0, 0, 0.12)",N4="2px 16px 24px 2px rgba(0, 0, 0, 0.12), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)",L4="2px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12)",j4="2px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12)",$4="2px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12)",F4="2px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12)",B4="2px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12)",z4="2px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12)",V4="2px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12)",H4="2px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)",W4="3px",q4='"solid"',U4="1px",K4="2px",Y4='"source-sans-pro", "helvetica", "arial", sans-serif',G4='"source-sans-pro", "helvetica", "arial", sans-serif',J4="700",Z4="2rem",X4="normal",Q4="normal",eH='"source-sans-pro", "helvetica", "arial", sans-serif',tH="700",nH="1.75rem",rH="normal",oH="normal",iH='"source-sans-pro", "helvetica", "arial", sans-serif',sH="700",aH="1.5rem",lH="normal",cH="normal",uH='"source-sans-pro", "helvetica", "arial", sans-serif',dH="700",fH="1.35rem",pH="normal",hH="normal",mH='"source-sans-pro", "helvetica", "arial", sans-serif',gH="700",yH="1.25rem",bH="normal",vH="normal",xH='"source-sans-pro", "helvetica", "arial", sans-serif',SH="700",CH="1.1rem",wH="normal",TH="normal",_H='"source-sans-pro", "helvetica", "arial", sans-serif',kH="600",EH="1.25rem",MH="normal",OH="normal",RH='"source-sans-pro", "helvetica", "arial", sans-serif',AH="600",IH="1.125rem",DH="normal",PH="normal",NH='"source-sans-pro", "helvetica", "arial", sans-serif',LH="400",jH="1.125rem",$H="normal",FH="normal",BH='"source-sans-pro", "helvetica", "arial", sans-serif',zH="400",VH="1rem",HH="normal",WH="normal",qH='"source-sans-pro", "helvetica", "arial", sans-serif',UH="600",KH="1rem",YH="normal",GH="normal",JH='"source-sans-pro", "helvetica", "arial", sans-serif',ZH="400",XH="0.75rem",QH="normal",e6="normal",t6='"source-sans-pro", "helvetica", "arial", sans-serif',n6="400",r6="0.75rem",o6="normal",i6="normal",ae={breakpoints_xs:nV,breakpoints_sm:rV,breakpoints_md:oV,breakpoints_lg:iV,breakpoints_xl:sV,light_palette_primary_light:aV,light_palette_primary_main:lV,light_palette_primary_dark:cV,light_palette_secondary_light:uV,light_palette_secondary_main:dV,light_palette_secondary_dark:fV,light_palette_text_primary:pV,light_palette_text_secondary:hV,light_palette_text_disabled:mV,light_palette_error_light:gV,light_palette_error_main:yV,light_palette_error_dark:bV,light_palette_warning_light:vV,light_palette_warning_main:xV,light_palette_warning_dark:SV,light_palette_info_light:CV,light_palette_info_main:wV,light_palette_info_dark:TV,light_palette_success_light:_V,light_palette_success_main:kV,light_palette_success_dark:EV,light_palette_background_default:MV,light_palette_background_paper:OV,light_palette_background_appBar:RV,light_palette_divider_default:AV,dark_palette_primary_light:IV,dark_palette_primary_main:DV,dark_palette_primary_dark:PV,dark_palette_secondary_light:NV,dark_palette_secondary_main:LV,dark_palette_secondary_dark:jV,dark_palette_text_primary:$V,dark_palette_text_secondary:FV,dark_palette_text_disabled:BV,dark_palette_error_light:zV,dark_palette_error_main:VV,dark_palette_error_dark:HV,dark_palette_warning_light:WV,dark_palette_warning_main:qV,dark_palette_warning_dark:UV,dark_palette_info_light:KV,dark_palette_info_main:YV,dark_palette_info_dark:GV,dark_palette_success_light:JV,dark_palette_success_main:ZV,dark_palette_success_dark:XV,dark_palette_background_default:QV,dark_palette_background_paper:e4,dark_palette_background_appBar:t4,dark_palette_divider_default:n4,common_palette_grey_50:r4,common_palette_grey_100:o4,common_palette_grey_200:i4,common_palette_grey_300:s4,common_palette_grey_400:a4,common_palette_grey_500:l4,common_palette_grey_600:c4,common_palette_grey_700:u4,common_palette_grey_800:d4,common_palette_grey_900:f4,common_palette_grey_A100:p4,common_palette_grey_A200:h4,common_palette_grey_A400:m4,common_palette_grey_A700:g4,common_palette_common_white:y4,common_palette_common_black:b4,shadows_0:v4,shadows_1:x4,shadows_2:S4,shadows_3:C4,shadows_4:w4,shadows_5:T4,shadows_6:_4,shadows_7:k4,shadows_8:E4,shadows_9:M4,shadows_10:O4,shadows_11:R4,shadows_12:A4,shadows_13:I4,shadows_14:D4,shadows_15:P4,shadows_16:N4,shadows_17:L4,shadows_18:j4,shadows_19:$4,shadows_20:F4,shadows_21:B4,shadows_22:z4,shadows_23:V4,shadows_24:H4,shape_borderRadius:W4,shape_borderStyle:q4,shape_borderWidth:U4,shape_buttonBorderWidth:K4,typography_fontFamily_default:Y4,typography_h1_fontFamily:G4,typography_h1_fontWeight:J4,typography_h1_fontSize:Z4,typography_h1_lineHeight:X4,typography_h1_letterSpacing:Q4,typography_h2_fontFamily:eH,typography_h2_fontWeight:tH,typography_h2_fontSize:nH,typography_h2_lineHeight:rH,typography_h2_letterSpacing:oH,typography_h3_fontFamily:iH,typography_h3_fontWeight:sH,typography_h3_fontSize:aH,typography_h3_lineHeight:lH,typography_h3_letterSpacing:cH,typography_h4_fontFamily:uH,typography_h4_fontWeight:dH,typography_h4_fontSize:fH,typography_h4_lineHeight:pH,typography_h4_letterSpacing:hH,typography_h5_fontFamily:mH,typography_h5_fontWeight:gH,typography_h5_fontSize:yH,typography_h5_lineHeight:bH,typography_h5_letterSpacing:vH,typography_h6_fontFamily:xH,typography_h6_fontWeight:SH,typography_h6_fontSize:CH,typography_h6_lineHeight:wH,typography_h6_letterSpacing:TH,typography_subtitle1_fontFamily:_H,typography_subtitle1_fontWeight:kH,typography_subtitle1_fontSize:EH,typography_subtitle1_lineHeight:MH,typography_subtitle1_letterSpacing:OH,typography_subtitle2_fontFamily:RH,typography_subtitle2_fontWeight:AH,typography_subtitle2_fontSize:IH,typography_subtitle2_lineHeight:DH,typography_subtitle2_letterSpacing:PH,typography_body1_fontFamily:NH,typography_body1_fontWeight:LH,typography_body1_fontSize:jH,typography_body1_lineHeight:$H,typography_body1_letterSpacing:FH,typography_body2_fontFamily:BH,typography_body2_fontWeight:zH,typography_body2_fontSize:VH,typography_body2_lineHeight:HH,typography_body2_letterSpacing:WH,typography_button_fontFamily:qH,typography_button_fontWeight:UH,typography_button_fontSize:KH,typography_button_lineHeight:YH,typography_button_letterSpacing:GH,typography_caption_fontFamily:JH,typography_caption_fontWeight:ZH,typography_caption_fontSize:XH,typography_caption_lineHeight:QH,typography_caption_letterSpacing:e6,typography_overline_fontFamily:t6,typography_overline_fontWeight:n6,typography_overline_fontSize:r6,typography_overline_lineHeight:o6,typography_overline_letterSpacing:i6},Sn={breakpoints:{values:{xs:parseInt(ae.breakpoints_xs),sm:parseInt(ae.breakpoints_sm),md:parseInt(ae.breakpoints_md),lg:parseInt(ae.breakpoints_lg),xl:parseInt(ae.breakpoints_xl)}},shadows:["none",ae.shadows_1,ae.shadows_2,ae.shadows_3,ae.shadows_4,ae.shadows_5,ae.shadows_6,ae.shadows_7,ae.shadows_8,ae.shadows_9,ae.shadows_10,ae.shadows_11,ae.shadows_12,ae.shadows_13,ae.shadows_14,ae.shadows_15,ae.shadows_16,ae.shadows_17,ae.shadows_18,ae.shadows_19,ae.shadows_20,ae.shadows_21,ae.shadows_22,ae.shadows_23,ae.shadows_24],shape:{borderRadius:parseInt(ae.shape_borderRadius)},typography:{fontFamily:ae.typography_fontFamily_default,h1:{fontFamily:ae.typography_h1_fontFamily,fontWeight:parseInt(ae.typography_h1_fontWeight),fontSize:ae.typography_h1_fontSize,lineHeight:ae.typography_h1_lineHeight,letterSpacing:ae.typography_h1_letterSpacing},h2:{fontFamily:ae.typography_h2_fontFamily,fontWeight:parseInt(ae.typography_h2_fontWeight),fontSize:ae.typography_h2_fontSize,lineHeight:ae.typography_h2_lineHeight,letterSpacing:ae.typography_h2_letterSpacing},h3:{fontFamily:ae.typography_h3_fontFamily,fontWeight:parseInt(ae.typography_h3_fontWeight),fontSize:ae.typography_h3_fontSize,lineHeight:ae.typography_h3_lineHeight,letterSpacing:ae.typography_h3_letterSpacing},h4:{fontFamily:ae.typography_h4_fontFamily,fontWeight:parseInt(ae.typography_h4_fontWeight),fontSize:ae.typography_h4_fontSize,lineHeight:ae.typography_h4_lineHeight,letterSpacing:ae.typography_h4_letterSpacing},h5:{fontFamily:ae.typography_h5_fontFamily,fontWeight:parseInt(ae.typography_h5_fontWeight),fontSize:ae.typography_h5_fontSize,lineHeight:ae.typography_h5_lineHeight,letterSpacing:ae.typography_h5_letterSpacing},h6:{fontFamily:ae.typography_h6_fontFamily,fontWeight:parseInt(ae.typography_h6_fontWeight),fontSize:ae.typography_h6_fontSize,lineHeight:ae.typography_h6_lineHeight,letterSpacing:ae.typography_h6_letterSpacing},subtitle1:{fontFamily:ae.typography_subtitle1_fontFamily,fontWeight:parseInt(ae.typography_subtitle1_fontWeight),fontSize:ae.typography_subtitle1_fontSize,lineHeight:ae.typography_subtitle1_lineHeight,letterSpacing:ae.typography_subtitle1_letterSpacing},subtitle2:{fontFamily:ae.typography_subtitle2_fontFamily,fontWeight:parseInt(ae.typography_subtitle2_fontWeight),fontSize:ae.typography_subtitle2_fontSize,lineHeight:ae.typography_subtitle2_lineHeight,letterSpacing:ae.typography_subtitle2_letterSpacing},body1:{fontFamily:ae.typography_body1_fontFamily,fontWeight:parseInt(ae.typography_body1_fontWeight),fontSize:ae.typography_body1_fontSize,lineHeight:ae.typography_body1_lineHeight,letterSpacing:ae.typography_body1_letterSpacing},body2:{fontFamily:ae.typography_body2_fontFamily,fontWeight:parseInt(ae.typography_body2_fontWeight),fontSize:ae.typography_body2_fontSize,lineHeight:ae.typography_body2_lineHeight,letterSpacing:ae.typography_body2_letterSpacing},button:{fontFamily:ae.typography_button_fontFamily,fontWeight:parseInt(ae.typography_button_fontWeight),fontSize:ae.typography_button_fontSize,lineHeight:ae.typography_button_lineHeight,letterSpacing:ae.typography_button_letterSpacing,textTransform:"none"},caption:{fontFamily:ae.typography_caption_fontFamily,fontWeight:parseInt(ae.typography_caption_fontWeight),fontSize:ae.typography_caption_fontSize,lineHeight:ae.typography_caption_lineHeight,letterSpacing:ae.typography_caption_letterSpacing},overline:{fontFamily:ae.typography_overline_fontFamily,fontWeight:parseInt(ae.typography_overline_fontWeight),fontSize:ae.typography_overline_fontSize,lineHeight:ae.typography_overline_lineHeight,letterSpacing:ae.typography_overline_letterSpacing}},palette:{grey:{50:ae.common_palette_grey_50,100:ae.common_palette_grey_100,200:ae.common_palette_grey_200,300:ae.common_palette_grey_300,400:ae.common_palette_grey_400,500:ae.common_palette_grey_500,600:ae.common_palette_grey_600,700:ae.common_palette_grey_700,800:ae.common_palette_grey_800,900:ae.common_palette_grey_900,A100:ae.common_palette_grey_A100,A200:ae.common_palette_grey_A200,A400:ae.common_palette_grey_A400,A700:ae.common_palette_grey_A700},common:{black:ae.common_palette_common_black,white:ae.common_palette_common_white},white:ae.common_palette_common_white},components:{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:{borderStyle:"solid",borderWidth:ae.shape_borderWidth}}},MuiAppBar:{styleOverrides:{root:{backgroundImage:"none"}}},MuiButton:{styleOverrides:{outlined:{borderWidth:ae.shape_buttonBorderWidth,":hover":{borderWidth:ae.shape_buttonBorderWidth}}}},MuiTable:{styleOverrides:{root:({ownerState:t})=>({...t.size==="x-small"&&{"& .MuiTableCell-root":{padding:"0px 16px"}}})}}}};var vR,xR,SR,CR,wR,TR,_R,kR,ER,MR,OR,RR;const s6=j.createTheme({...Sn,palette:{...Sn.palette,mode:"light",primary:{light:ae.light_palette_primary_light,main:ae.light_palette_primary_main,dark:ae.light_palette_primary_dark},secondary:{light:ae.light_palette_secondary_light,main:ae.light_palette_secondary_main,dark:ae.light_palette_secondary_dark},text:{primary:ae.light_palette_text_primary,secondary:ae.light_palette_text_secondary,disabled:ae.light_palette_text_disabled},background:{default:ae.light_palette_background_default,paper:ae.light_palette_background_paper},error:{light:ae.light_palette_error_light,main:ae.light_palette_error_main,dark:ae.light_palette_error_dark},success:{light:ae.light_palette_success_light,main:ae.light_palette_success_main,dark:ae.light_palette_success_dark},info:{light:ae.light_palette_info_light,main:ae.light_palette_info_main,dark:ae.light_palette_info_dark},warning:{light:ae.light_palette_warning_light,main:ae.light_palette_warning_main,dark:ae.light_palette_warning_dark}},components:{...Sn.components,MuiAppBar:{...(vR=Sn.components)==null?void 0:vR.MuiAppBar,styleOverrides:{...(SR=(xR=Sn.components)==null?void 0:xR.MuiAppBar)==null?void 0:SR.styleOverrides,root:{...(TR=(wR=(CR=Sn.components)==null?void 0:CR.MuiAppBar)==null?void 0:wR.styleOverrides)==null?void 0:TR.root,backgroundColor:ae.light_palette_background_appBar}}},MuiCard:{...(_R=Sn.components)==null?void 0:_R.MuiCard,styleOverrides:{...(ER=(kR=Sn.components)==null?void 0:kR.MuiCard)==null?void 0:ER.styleOverrides,root:{...(RR=(OR=(MR=Sn.components)==null?void 0:MR.MuiCard)==null?void 0:OR.styleOverrides)==null?void 0:RR.root,borderColor:ae.light_palette_divider_default}}}}});var AR,IR,DR,PR,NR,LR,jR,$R,FR,BR,zR,VR;const a6=j.createTheme({...Sn,palette:{...Sn.palette,mode:"dark",primary:{light:ae.dark_palette_primary_light,main:ae.dark_palette_primary_main,dark:ae.dark_palette_primary_dark},secondary:{light:ae.dark_palette_secondary_light,main:ae.dark_palette_secondary_main,dark:ae.dark_palette_secondary_dark},text:{primary:ae.dark_palette_text_primary,secondary:ae.dark_palette_text_secondary,disabled:ae.dark_palette_text_disabled},background:{default:ae.dark_palette_background_default,paper:ae.dark_palette_background_paper},error:{light:ae.dark_palette_error_light,main:ae.dark_palette_error_main,dark:ae.dark_palette_error_dark},success:{light:ae.dark_palette_success_light,main:ae.dark_palette_success_main,dark:ae.dark_palette_success_dark},info:{light:ae.dark_palette_info_light,main:ae.dark_palette_info_main,dark:ae.dark_palette_info_dark},warning:{light:ae.dark_palette_warning_light,main:ae.dark_palette_warning_main,dark:ae.dark_palette_warning_dark}},components:{...Sn.components,MuiAppBar:{...(AR=Sn.components)==null?void 0:AR.MuiAppBar,styleOverrides:{...(DR=(IR=Sn.components)==null?void 0:IR.MuiAppBar)==null?void 0:DR.styleOverrides,root:{...(LR=(NR=(PR=Sn.components)==null?void 0:PR.MuiAppBar)==null?void 0:NR.styleOverrides)==null?void 0:LR.root,backgroundColor:ae.dark_palette_background_appBar,backgroundImage:"none"}}},MuiCard:{...(jR=Sn.components)==null?void 0:jR.MuiCard,styleOverrides:{...(FR=($R=Sn.components)==null?void 0:$R.MuiCard)==null?void 0:FR.styleOverrides,root:{...(VR=(zR=(BR=Sn.components)==null?void 0:BR.MuiCard)==null?void 0:zR.styleOverrides)==null?void 0:VR.root,borderColor:ae.dark_palette_divider_default}}}}}),l6=["w","xs","sm","md","lg","xl","alignment","justify","noMP","noGrid","gridClassName","gridStyle"],fw=t=>t>47&&t<58,pw=t=>t>64&&t<123&&(t<91||t>96),c6=(t,e,n,r)=>{let o="",i=0,s=0,a=0,l=0;const u=r.selectionStart;let f=!1;if(t.length<=e.length){for(let T=0;T<t.length&&T<e.length;T++){for(;i<e.length&&e[i]!=="X"&&e[i]!=="9";)a++,s++,i++;(fw(t.charCodeAt(T))&&e[i]==="9"||pw(t.charCodeAt(T))&&e[i]==="X")&&(a>0&&(l=a,a=0),o+=t[T],i++)}const p=fw(t.charCodeAt(u-1))?"number":pw(t.charCodeAt(u-1))?"letter":"something else",m=p!=="number"&&e[u-1]==="9",g=p!=="letter"&&e[u-1]==="X";(m||g||p==="something else")&&(f=!0);let b="",S=0;Math.abs(n.length-t.length)<=1&&(s=0);let C=u+s;for(let T=0;T<o.length;T++){for(;S<e.length&&e[S]!=="X"&&e[S]!=="9";)b+=e[S],S++;b+=o[T],S++}t.length<n.length?window.requestAnimationFrame(()=>{r.selectionStart=C,r.selectionEnd=C}):e[C-1]!=="X"&&e[C-1]!=="9"?window.requestAnimationFrame(()=>{r.selectionStart=C+l,r.selectionEnd=C+l}):(f&&(C-=1),window.requestAnimationFrame(()=>{r.selectionStart=C,r.selectionEnd=C}));const _=e.slice(S);return _.indexOf("X")===-1&&_.indexOf("9")===-1&&(b+=_),b}return window.requestAnimationFrame(()=>{r.selectionStart=u-1,r.selectionEnd=u-1}),n};function er(t,e){const r=Object.keys(t).filter(i=>e.includes(i)),o={...t};for(const i of l6)delete o[i];for(const i of r)delete o[i];return o}const Mn=t=>t.split(/(?=[A-Z])|[.\-_\s]+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).filter(Boolean).join(" ");function u6(t,e,n=!1,r=""){let o="";if(e==null||e.length==0)return r;if(n){let i="";const s=e.toString().split(",");let a=0;t.forEach(l=>{s.includes(String(l.value).toString())&&(i+=l.label,a<s.length-1&&(i+=", "),a++)}),o=i}else{const i=t.find(s=>e==s.value);i!=null&&(o=i.label)}return o}function Zc(t,e,n){return t.onClick?{onClick:()=>{t.onClick(),t.path&&e(t.path),t.externalLink&&window.open(t.externalLink,"_blank","noopener"),n&&n()}}:t.path?{component:so.Link,to:t.path}:t.externalLink?{href:t.externalLink}:{}}function pi(t,e){return process.env.NODE_ENV==="production"?()=>null:function(...r){return t(...r)||e(...r)}}var Li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fd={exports:{}},Rt={};/**
2
2
  * @license React
3
3
  * react-is.production.js
4
4
  *
@@ -28,12 +28,12 @@ require('./index.css');"use strict";var Xz=Object.defineProperty;var Qz=(t,e,n)=
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var bw;function m6(){return bw||(bw=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function T(ee){return typeof ee=="string"||typeof ee=="function"||ee===r||ee===u||ee===i||ee===o||ee===p||ee===m||typeof ee=="object"&&ee!==null&&(ee.$$typeof===y||ee.$$typeof===g||ee.$$typeof===s||ee.$$typeof===a||ee.$$typeof===f||ee.$$typeof===S||ee.$$typeof===C||ee.$$typeof===_||ee.$$typeof===b)}function w(ee){if(typeof ee=="object"&&ee!==null){var se=ee.$$typeof;switch(se){case e:var de=ee.type;switch(de){case l:case u:case r:case i:case o:case p:return de;default:var ye=de&&de.$$typeof;switch(ye){case a:case f:case y:case g:case s:return ye;default:return se}}case n:return se}}}var E=l,O=u,N=a,D=s,L=e,M=f,R=r,P=y,z=g,F=n,$=i,B=o,q=p,K=!1;function G(ee){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(ee)||w(ee)===l}function Y(ee){return w(ee)===u}function Z(ee){return w(ee)===a}function ge(ee){return w(ee)===s}function he(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===e}function oe(ee){return w(ee)===f}function Q(ee){return w(ee)===r}function fe(ee){return w(ee)===y}function ce(ee){return w(ee)===g}function ae(ee){return w(ee)===n}function W(ee){return w(ee)===i}function te(ee){return w(ee)===o}function ue(ee){return w(ee)===p}kt.AsyncMode=E,kt.ConcurrentMode=O,kt.ContextConsumer=N,kt.ContextProvider=D,kt.Element=L,kt.ForwardRef=M,kt.Fragment=R,kt.Lazy=P,kt.Memo=z,kt.Portal=F,kt.Profiler=$,kt.StrictMode=B,kt.Suspense=q,kt.isAsyncMode=G,kt.isConcurrentMode=Y,kt.isContextConsumer=Z,kt.isContextProvider=ge,kt.isElement=he,kt.isForwardRef=oe,kt.isFragment=Q,kt.isLazy=fe,kt.isMemo=ce,kt.isPortal=ae,kt.isProfiler=W,kt.isStrictMode=te,kt.isSuspense=ue,kt.isValidElementType=T,kt.typeOf=w}()),kt}var vw;function qR(){return vw||(vw=1,process.env.NODE_ENV==="production"?hd.exports=h6():hd.exports=m6()),hd.exports}/*
31
+ */var bw;function m6(){return bw||(bw=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,S=t?Symbol.for("react.fundamental"):60117,C=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function T(te){return typeof te=="string"||typeof te=="function"||te===r||te===u||te===i||te===o||te===p||te===m||typeof te=="object"&&te!==null&&(te.$$typeof===y||te.$$typeof===g||te.$$typeof===s||te.$$typeof===a||te.$$typeof===f||te.$$typeof===S||te.$$typeof===C||te.$$typeof===_||te.$$typeof===b)}function w(te){if(typeof te=="object"&&te!==null){var se=te.$$typeof;switch(se){case e:var ue=te.type;switch(ue){case l:case u:case r:case i:case o:case p:return ue;default:var ye=ue&&ue.$$typeof;switch(ye){case a:case f:case y:case g:case s:return ye;default:return se}}case n:return se}}}var E=l,O=u,N=a,D=s,L=e,M=f,R=r,P=y,B=g,z=n,$=i,F=o,q=p,U=!1;function G(te){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Y(te)||w(te)===l}function Y(te){return w(te)===u}function Z(te){return w(te)===a}function fe(te){return w(te)===s}function pe(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function ge(te){return w(te)===f}function re(te){return w(te)===r}function he(te){return w(te)===y}function le(te){return w(te)===g}function X(te){return w(te)===n}function W(te){return w(te)===i}function ee(te){return w(te)===o}function ce(te){return w(te)===p}kt.AsyncMode=E,kt.ConcurrentMode=O,kt.ContextConsumer=N,kt.ContextProvider=D,kt.Element=L,kt.ForwardRef=M,kt.Fragment=R,kt.Lazy=P,kt.Memo=B,kt.Portal=z,kt.Profiler=$,kt.StrictMode=F,kt.Suspense=q,kt.isAsyncMode=G,kt.isConcurrentMode=Y,kt.isContextConsumer=Z,kt.isContextProvider=fe,kt.isElement=pe,kt.isForwardRef=ge,kt.isFragment=re,kt.isLazy=he,kt.isMemo=le,kt.isPortal=X,kt.isProfiler=W,kt.isStrictMode=ee,kt.isSuspense=ce,kt.isValidElementType=T,kt.typeOf=w}()),kt}var vw;function qR(){return vw||(vw=1,process.env.NODE_ENV==="production"?hd.exports=h6():hd.exports=m6()),hd.exports}/*
32
32
  object-assign
33
33
  (c) Sindre Sorhus
34
34
  @license MIT
35
- */var Pm,xw;function g6(){if(xw)return Pm;xw=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pm=o()?Object.assign:function(i,s){for(var a,l=r(i),u,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var p in a)e.call(a,p)&&(l[p]=a[p]);if(t){u=t(a);for(var m=0;m<u.length;m++)n.call(a,u[m])&&(l[u[m]]=a[u[m]])}}return l},Pm}var Nm,Sw;function zv(){if(Sw)return Nm;Sw=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nm=t,Nm}var Lm,Cw;function UR(){return Cw||(Cw=1,Lm=Function.call.bind(Object.prototype.hasOwnProperty)),Lm}var jm,ww;function y6(){if(ww)return jm;ww=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=zv(),n={},r=UR();t=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,u){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var p;try{if(typeof i[f]!="function"){var m=Error((l||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=i[f](s,f,l,a,null,e)}catch(y){p=y}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var g=u?u():"";t("Failed "+a+" type: "+p.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},jm=o,jm}var $m,Tw;function b6(){if(Tw)return $m;Tw=1;var t=qR(),e=g6(),n=zv(),r=UR(),o=y6(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return $m=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(Y){var Z=Y&&(u&&Y[u]||Y[f]);if(typeof Z=="function")return Z}var m="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:_(),arrayOf:T,element:w(),elementType:E(),instanceOf:O,node:M(),objectOf:D,oneOf:N,oneOfType:L,shape:P,exact:z};function y(Y,Z){return Y===Z?Y!==0||1/Y===1/Z:Y!==Y&&Z!==Z}function b(Y,Z){this.message=Y,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}b.prototype=Error.prototype;function S(Y){if(process.env.NODE_ENV!=="production")var Z={},ge=0;function he(Q,fe,ce,ae,W,te,ue){if(ae=ae||m,te=te||ce,ue!==n){if(l){var ee=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ee.name="Invariant Violation",ee}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=ae+":"+ce;!Z[se]&&ge<3&&(i("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ae+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Z[se]=!0,ge++)}}return fe[ce]==null?Q?fe[ce]===null?new b("The "+W+" `"+te+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new b("The "+W+" `"+te+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:Y(fe,ce,ae,W,te)}var oe=he.bind(null,!1);return oe.isRequired=he.bind(null,!0),oe}function C(Y){function Z(ge,he,oe,Q,fe,ce){var ae=ge[he],W=B(ae);if(W!==Y){var te=q(ae);return new b("Invalid "+Q+" `"+fe+"` of type "+("`"+te+"` supplied to `"+oe+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return S(Z)}function _(){return S(s)}function T(Y){function Z(ge,he,oe,Q,fe){if(typeof Y!="function")return new b("Property `"+fe+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ce=ge[he];if(!Array.isArray(ce)){var ae=B(ce);return new b("Invalid "+Q+" `"+fe+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected an array."))}for(var W=0;W<ce.length;W++){var te=Y(ce,W,oe,Q,fe+"["+W+"]",n);if(te instanceof Error)return te}return null}return S(Z)}function w(){function Y(Z,ge,he,oe,Q){var fe=Z[ge];if(!a(fe)){var ce=B(fe);return new b("Invalid "+oe+" `"+Q+"` of type "+("`"+ce+"` supplied to `"+he+"`, expected a single ReactElement."))}return null}return S(Y)}function E(){function Y(Z,ge,he,oe,Q){var fe=Z[ge];if(!t.isValidElementType(fe)){var ce=B(fe);return new b("Invalid "+oe+" `"+Q+"` of type "+("`"+ce+"` supplied to `"+he+"`, expected a single ReactElement type."))}return null}return S(Y)}function O(Y){function Z(ge,he,oe,Q,fe){if(!(ge[he]instanceof Y)){var ce=Y.name||m,ae=G(ge[he]);return new b("Invalid "+Q+" `"+fe+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected ")+("instance of `"+ce+"`."))}return null}return S(Z)}function N(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function Z(ge,he,oe,Q,fe){for(var ce=ge[he],ae=0;ae<Y.length;ae++)if(y(ce,Y[ae]))return null;var W=JSON.stringify(Y,function(ue,ee){var se=q(ee);return se==="symbol"?String(ee):ee});return new b("Invalid "+Q+" `"+fe+"` of value `"+String(ce)+"` "+("supplied to `"+oe+"`, expected one of "+W+"."))}return S(Z)}function D(Y){function Z(ge,he,oe,Q,fe){if(typeof Y!="function")return new b("Property `"+fe+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ce=ge[he],ae=B(ce);if(ae!=="object")return new b("Invalid "+Q+" `"+fe+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected an object."));for(var W in ce)if(r(ce,W)){var te=Y(ce,W,oe,Q,fe+"."+W,n);if(te instanceof Error)return te}return null}return S(Z)}function L(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Z=0;Z<Y.length;Z++){var ge=Y[Z];if(typeof ge!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(ge)+" at index "+Z+"."),s}function he(oe,Q,fe,ce,ae){for(var W=[],te=0;te<Y.length;te++){var ue=Y[te],ee=ue(oe,Q,fe,ce,ae,n);if(ee==null)return null;ee.data&&r(ee.data,"expectedType")&&W.push(ee.data.expectedType)}var se=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new b("Invalid "+ce+" `"+ae+"` supplied to "+("`"+fe+"`"+se+"."))}return S(he)}function M(){function Y(Z,ge,he,oe,Q){return F(Z[ge])?null:new b("Invalid "+oe+" `"+Q+"` supplied to "+("`"+he+"`, expected a ReactNode."))}return S(Y)}function R(Y,Z,ge,he,oe){return new b((Y||"React class")+": "+Z+" type `"+ge+"."+he+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function P(Y){function Z(ge,he,oe,Q,fe){var ce=ge[he],ae=B(ce);if(ae!=="object")return new b("Invalid "+Q+" `"+fe+"` of type `"+ae+"` "+("supplied to `"+oe+"`, expected `object`."));for(var W in Y){var te=Y[W];if(typeof te!="function")return R(oe,Q,fe,W,q(te));var ue=te(ce,W,oe,Q,fe+"."+W,n);if(ue)return ue}return null}return S(Z)}function z(Y){function Z(ge,he,oe,Q,fe){var ce=ge[he],ae=B(ce);if(ae!=="object")return new b("Invalid "+Q+" `"+fe+"` of type `"+ae+"` "+("supplied to `"+oe+"`, expected `object`."));var W=e({},ge[he],Y);for(var te in W){var ue=Y[te];if(r(Y,te)&&typeof ue!="function")return R(oe,Q,fe,te,q(ue));if(!ue)return new b("Invalid "+Q+" `"+fe+"` key `"+te+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(ge[he],null," ")+`
36
- Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var ee=ue(ce,te,oe,Q,fe+"."+te,n);if(ee)return ee}return null}return S(Z)}function F(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(F);if(Y===null||a(Y))return!0;var Z=p(Y);if(Z){var ge=Z.call(Y),he;if(Z!==Y.entries){for(;!(he=ge.next()).done;)if(!F(he.value))return!1}else for(;!(he=ge.next()).done;){var oe=he.value;if(oe&&!F(oe[1]))return!1}}else return!1;return!0;default:return!1}}function $(Y,Z){return Y==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function B(Y){var Z=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":$(Z,Y)?"symbol":Z}function q(Y){if(typeof Y>"u"||Y===null)return""+Y;var Z=B(Y);if(Z==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return Z}function K(Y){var Z=q(Y);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function G(Y){return!Y.constructor||!Y.constructor.name?m:Y.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},$m}var Fm,_w;function v6(){if(_w)return Fm;_w=1;var t=zv();function e(){}function n(){}return n.resetWarningCache=e,Fm=function(){function r(s,a,l,u,f,p){if(p!==t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},Fm}var kw;function x6(){if(kw)return pd.exports;if(kw=1,process.env.NODE_ENV!=="production"){var t=qR(),e=!0;pd.exports=b6()(t.isElement,e)}else pd.exports=v6()();return pd.exports}var S6=x6();const c=ir(S6);function C6(t){const{prototype:e={}}=t;return!!e.isReactComponent}function KR(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;const l=i.type;return typeof l=="function"&&!C6(l)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xc=pi(c.element,KR);Xc.isRequired=pi(c.element.isRequired,KR);function w6(t){const{prototype:e={}}=t;return!!e.isReactComponent}function T6(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!w6(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const bp=pi(c.elementType,T6),_6="exact-prop: ​";function YR(t){return process.env.NODE_ENV==="production"?t:{...t,[_6]:e=>{const n=Object.keys(e).filter(r=>!t.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function Ao(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function GR(t,e=""){return t.displayName||t.name||e}function Ew(t,e,n){const r=GR(e);return t.displayName||(r!==""?`${n}(${r})`:n)}function k6(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return GR(t,"Component");if(typeof t=="object")switch(t.$$typeof){case zs.ForwardRef:return Ew(t,t.render,"ForwardRef");case zs.Memo:return Ew(t,t.type,"memo");default:return}}}function li(t,e,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=t[e],s=o||e;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const gn=c.oneOfType([c.func,c.object]);function Re(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ao(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Mw(...t){return t.reduce((e,n)=>n==null?e:function(...o){e.apply(this,o),n.apply(this,o)},()=>{})}function JR(t,e=166){let n;function r(...o){const i=()=>{t.apply(this,o)};clearTimeout(n),n=setTimeout(i,e)}return r.clear=()=>{clearTimeout(n)},r}function ac(t,e){var n,r,o;return A.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Un(t){return t&&t.ownerDocument||document}function ci(t){return Un(t).defaultView||window}function I0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const An=typeof window<"u"?A.useLayoutEffect:A.useEffect;let Ow=0;function E6(t){const[e,n]=A.useState(t),r=t||e;return A.useEffect(()=>{e==null&&(Ow+=1,n(`mui-${Ow}`))},[e]),r}const M6={...A},Rw=M6.useId;function jo(t){if(Rw!==void 0){const e=Rw();return t??e}return E6(t)}function O6(t,e,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||e;return typeof t[e]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function ui({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=A.useRef(t!==void 0),[i,s]=A.useState(e),a=o?t:i;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
35
+ */var Pm,xw;function g6(){if(xw)return Pm;xw=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(f){return s[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pm=o()?Object.assign:function(i,s){for(var a,l=r(i),u,f=1;f<arguments.length;f++){a=Object(arguments[f]);for(var p in a)e.call(a,p)&&(l[p]=a[p]);if(t){u=t(a);for(var m=0;m<u.length;m++)n.call(a,u[m])&&(l[u[m]]=a[u[m]])}}return l},Pm}var Nm,Sw;function zv(){if(Sw)return Nm;Sw=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nm=t,Nm}var Lm,Cw;function UR(){return Cw||(Cw=1,Lm=Function.call.bind(Object.prototype.hasOwnProperty)),Lm}var jm,ww;function y6(){if(ww)return jm;ww=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=zv(),n={},r=UR();t=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,u){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var p;try{if(typeof i[f]!="function"){var m=Error((l||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=i[f](s,f,l,a,null,e)}catch(y){p=y}if(p&&!(p instanceof Error)&&t((l||"React class")+": type specification of "+a+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var g=u?u():"";t("Failed "+a+" type: "+p.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},jm=o,jm}var $m,Tw;function b6(){if(Tw)return $m;Tw=1;var t=qR(),e=g6(),n=zv(),r=UR(),o=y6(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return $m=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(Y){var Z=Y&&(u&&Y[u]||Y[f]);if(typeof Z=="function")return Z}var m="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:_(),arrayOf:T,element:w(),elementType:E(),instanceOf:O,node:M(),objectOf:D,oneOf:N,oneOfType:L,shape:P,exact:B};function y(Y,Z){return Y===Z?Y!==0||1/Y===1/Z:Y!==Y&&Z!==Z}function b(Y,Z){this.message=Y,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}b.prototype=Error.prototype;function S(Y){if(process.env.NODE_ENV!=="production")var Z={},fe=0;function pe(re,he,le,X,W,ee,ce){if(X=X||m,ee=ee||le,ce!==n){if(l){var te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw te.name="Invariant Violation",te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var se=X+":"+le;!Z[se]&&fe<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Z[se]=!0,fe++)}}return he[le]==null?re?he[le]===null?new b("The "+W+" `"+ee+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new b("The "+W+" `"+ee+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:Y(he,le,X,W,ee)}var ge=pe.bind(null,!1);return ge.isRequired=pe.bind(null,!0),ge}function C(Y){function Z(fe,pe,ge,re,he,le){var X=fe[pe],W=F(X);if(W!==Y){var ee=q(X);return new b("Invalid "+re+" `"+he+"` of type "+("`"+ee+"` supplied to `"+ge+"`, expected ")+("`"+Y+"`."),{expectedType:Y})}return null}return S(Z)}function _(){return S(s)}function T(Y){function Z(fe,pe,ge,re,he){if(typeof Y!="function")return new b("Property `"+he+"` of component `"+ge+"` has invalid PropType notation inside arrayOf.");var le=fe[pe];if(!Array.isArray(le)){var X=F(le);return new b("Invalid "+re+" `"+he+"` of type "+("`"+X+"` supplied to `"+ge+"`, expected an array."))}for(var W=0;W<le.length;W++){var ee=Y(le,W,ge,re,he+"["+W+"]",n);if(ee instanceof Error)return ee}return null}return S(Z)}function w(){function Y(Z,fe,pe,ge,re){var he=Z[fe];if(!a(he)){var le=F(he);return new b("Invalid "+ge+" `"+re+"` of type "+("`"+le+"` supplied to `"+pe+"`, expected a single ReactElement."))}return null}return S(Y)}function E(){function Y(Z,fe,pe,ge,re){var he=Z[fe];if(!t.isValidElementType(he)){var le=F(he);return new b("Invalid "+ge+" `"+re+"` of type "+("`"+le+"` supplied to `"+pe+"`, expected a single ReactElement type."))}return null}return S(Y)}function O(Y){function Z(fe,pe,ge,re,he){if(!(fe[pe]instanceof Y)){var le=Y.name||m,X=G(fe[pe]);return new b("Invalid "+re+" `"+he+"` of type "+("`"+X+"` supplied to `"+ge+"`, expected ")+("instance of `"+le+"`."))}return null}return S(Z)}function N(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function Z(fe,pe,ge,re,he){for(var le=fe[pe],X=0;X<Y.length;X++)if(y(le,Y[X]))return null;var W=JSON.stringify(Y,function(ce,te){var se=q(te);return se==="symbol"?String(te):te});return new b("Invalid "+re+" `"+he+"` of value `"+String(le)+"` "+("supplied to `"+ge+"`, expected one of "+W+"."))}return S(Z)}function D(Y){function Z(fe,pe,ge,re,he){if(typeof Y!="function")return new b("Property `"+he+"` of component `"+ge+"` has invalid PropType notation inside objectOf.");var le=fe[pe],X=F(le);if(X!=="object")return new b("Invalid "+re+" `"+he+"` of type "+("`"+X+"` supplied to `"+ge+"`, expected an object."));for(var W in le)if(r(le,W)){var ee=Y(le,W,ge,re,he+"."+W,n);if(ee instanceof Error)return ee}return null}return S(Z)}function L(Y){if(!Array.isArray(Y))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var Z=0;Z<Y.length;Z++){var fe=Y[Z];if(typeof fe!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(fe)+" at index "+Z+"."),s}function pe(ge,re,he,le,X){for(var W=[],ee=0;ee<Y.length;ee++){var ce=Y[ee],te=ce(ge,re,he,le,X,n);if(te==null)return null;te.data&&r(te.data,"expectedType")&&W.push(te.data.expectedType)}var se=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new b("Invalid "+le+" `"+X+"` supplied to "+("`"+he+"`"+se+"."))}return S(pe)}function M(){function Y(Z,fe,pe,ge,re){return z(Z[fe])?null:new b("Invalid "+ge+" `"+re+"` supplied to "+("`"+pe+"`, expected a ReactNode."))}return S(Y)}function R(Y,Z,fe,pe,ge){return new b((Y||"React class")+": "+Z+" type `"+fe+"."+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ge+"`.")}function P(Y){function Z(fe,pe,ge,re,he){var le=fe[pe],X=F(le);if(X!=="object")return new b("Invalid "+re+" `"+he+"` of type `"+X+"` "+("supplied to `"+ge+"`, expected `object`."));for(var W in Y){var ee=Y[W];if(typeof ee!="function")return R(ge,re,he,W,q(ee));var ce=ee(le,W,ge,re,he+"."+W,n);if(ce)return ce}return null}return S(Z)}function B(Y){function Z(fe,pe,ge,re,he){var le=fe[pe],X=F(le);if(X!=="object")return new b("Invalid "+re+" `"+he+"` of type `"+X+"` "+("supplied to `"+ge+"`, expected `object`."));var W=e({},fe[pe],Y);for(var ee in W){var ce=Y[ee];if(r(Y,ee)&&typeof ce!="function")return R(ge,re,he,ee,q(ce));if(!ce)return new b("Invalid "+re+" `"+he+"` key `"+ee+"` supplied to `"+ge+"`.\nBad object: "+JSON.stringify(fe[pe],null," ")+`
36
+ Valid keys: `+JSON.stringify(Object.keys(Y),null," "));var te=ce(le,ee,ge,re,he+"."+ee,n);if(te)return te}return null}return S(Z)}function z(Y){switch(typeof Y){case"number":case"string":case"undefined":return!0;case"boolean":return!Y;case"object":if(Array.isArray(Y))return Y.every(z);if(Y===null||a(Y))return!0;var Z=p(Y);if(Z){var fe=Z.call(Y),pe;if(Z!==Y.entries){for(;!(pe=fe.next()).done;)if(!z(pe.value))return!1}else for(;!(pe=fe.next()).done;){var ge=pe.value;if(ge&&!z(ge[1]))return!1}}else return!1;return!0;default:return!1}}function $(Y,Z){return Y==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function F(Y){var Z=typeof Y;return Array.isArray(Y)?"array":Y instanceof RegExp?"object":$(Z,Y)?"symbol":Z}function q(Y){if(typeof Y>"u"||Y===null)return""+Y;var Z=F(Y);if(Z==="object"){if(Y instanceof Date)return"date";if(Y instanceof RegExp)return"regexp"}return Z}function U(Y){var Z=q(Y);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function G(Y){return!Y.constructor||!Y.constructor.name?m:Y.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},$m}var Fm,_w;function v6(){if(_w)return Fm;_w=1;var t=zv();function e(){}function n(){}return n.resetWarningCache=e,Fm=function(){function r(s,a,l,u,f,p){if(p!==t){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},Fm}var kw;function x6(){if(kw)return pd.exports;if(kw=1,process.env.NODE_ENV!=="production"){var t=qR(),e=!0;pd.exports=b6()(t.isElement,e)}else pd.exports=v6()();return pd.exports}var S6=x6();const c=ir(S6);function C6(t){const{prototype:e={}}=t;return!!e.isReactComponent}function KR(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;const l=i.type;return typeof l=="function"&&!C6(l)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xc=pi(c.element,KR);Xc.isRequired=pi(c.element.isRequired,KR);function w6(t){const{prototype:e={}}=t;return!!e.isReactComponent}function T6(t,e,n,r,o){const i=t[e],s=o||e;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!w6(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const bp=pi(c.elementType,T6),_6="exact-prop: ​";function YR(t){return process.env.NODE_ENV==="production"?t:{...t,[_6]:e=>{const n=Object.keys(e).filter(r=>!t.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function Ao(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function GR(t,e=""){return t.displayName||t.name||e}function Ew(t,e,n){const r=GR(e);return t.displayName||(r!==""?`${n}(${r})`:n)}function k6(t){if(t!=null){if(typeof t=="string")return t;if(typeof t=="function")return GR(t,"Component");if(typeof t=="object")switch(t.$$typeof){case zs.ForwardRef:return Ew(t,t.render,"ForwardRef");case zs.Memo:return Ew(t,t.type,"memo");default:return}}}function li(t,e,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=t[e],s=o||e;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const gn=c.oneOfType([c.func,c.object]);function Re(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ao(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Mw(...t){return t.reduce((e,n)=>n==null?e:function(...o){e.apply(this,o),n.apply(this,o)},()=>{})}function JR(t,e=166){let n;function r(...o){const i=()=>{t.apply(this,o)};clearTimeout(n),n=setTimeout(i,e)}return r.clear=()=>{clearTimeout(n)},r}function ac(t,e){var n,r,o;return A.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function Un(t){return t&&t.ownerDocument||document}function ci(t){return Un(t).defaultView||window}function I0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const An=typeof window<"u"?A.useLayoutEffect:A.useEffect;let Ow=0;function E6(t){const[e,n]=A.useState(t),r=t||e;return A.useEffect(()=>{e==null&&(Ow+=1,n(`mui-${Ow}`))},[e]),r}const M6={...A},Rw=M6.useId;function jo(t){if(Rw!==void 0){const e=Rw();return t??e}return E6(t)}function O6(t,e,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||e;return typeof t[e]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function ui({controlled:t,default:e,name:n,state:r="value"}){const{current:o}=A.useRef(t!==void 0),[i,s]=A.useState(e),a=o?t:i;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{o!==(t!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
37
37
  `))},[r,n,t]);const{current:u}=A.useRef(e);A.useEffect(()=>{!o&&!Object.is(u,e)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
38
38
  `))},[JSON.stringify(e)])}const l=A.useCallback(u=>{o||s(u)},[]);return[a,l]}function $e(t){const e=A.useRef(t);return An(()=>{e.current=t}),A.useRef((...n)=>(0,e.current)(...n)).current}function Et(...t){return A.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{I0(n,e)})},t)}const Aw={};function ZR(t,e){const n=A.useRef(Aw);return n.current===Aw&&(n.current=t(e)),n}const R6=[];function A6(t){A.useEffect(t,R6)}class Vv{constructor(){Nl(this,"currentId",null);Nl(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Nl(this,"disposeEffect",()=>this.clear)}static create(){return new Vv}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function XR(){const t=ZR(Vv.create).current;return A6(t.disposeEffect),t}function Iw(t){try{return t.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
39
39
  `))}return!1}function QR(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}const I6={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function D6(t){const e=typeof t;switch(e){case"number":return Number.isNaN(t)?"NaN":Number.isFinite(t)?t!==Math.floor(t)?"float":"number":"Infinity";case"object":return t===null?"null":t.constructor.name;default:return e}}function eA(t,e,n,r){const o=t[e];if(o==null||!Number.isInteger(o)){const i=D6(o);return new RangeError(`Invalid ${r} \`${e}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function tA(t,e,...n){return t[e]===void 0?null:eA(t,e,...n)}function D0(){return null}tA.isRequired=eA;D0.isRequired=D0;const nA=process.env.NODE_ENV==="production"?D0:tA;function Ec(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=r;if(o==="components"||o==="slots")n[o]={...t[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=t[o],s=e[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=Ec(i[l],s[l])}}}else n[o]===void 0&&(n[o]=t[o])}return n}function Ke(t,e,n=void 0){const r={};for(const o in t){const i=t[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(s+=(a===!0?"":" ")+e(u),a=!1,n&&n[u]&&(s+=" "+n[u]))}r[o]=s}return r}const Dw=t=>t,P6=()=>{let t=Dw;return{configure(e){t=e},generate(e){return t(e)},reset(){t=Dw}}},N6=P6(),L6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ye(t,e,n="Mui"){const r=L6[e];return r?`${n}-${r}`:`${N6.generate(t)}-${e}`}function We(t,e,n="Mui"){const r={};return e.forEach(o=>{r[o]=Ye(t,o,n)}),r}function j6(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function $6(t){return typeof t=="string"}function rA(t,e,n){return t===void 0||$6(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function oA(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=oA(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=oA(t))&&(r&&(r+=" "),r+=e);return r}function iA(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function Pw(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function sA(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=t;if(!e){const g=Pe(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},b={...n,...o,...r};return g.length>0&&(b.className=g),Object.keys(y).length>0&&(b.style=y),{props:b,internalRef:void 0}}const s=iA({...o,...r}),a=Pw(r),l=Pw(o),u=e(s),f=Pe(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...u,...n,...l,...a};return f.length>0&&(m.className=f),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function vp(t,e,n){return typeof t=="function"?t(e,n):t}function wt(t){var p;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=t,s=o?{}:vp(n,r),{props:a,internalRef:l}=sA({...i,externalSlotProps:s}),u=Et(l,s==null?void 0:s.ref,(p=t.additionalProps)==null?void 0:p.ref);return rA(e,{...a,ref:u},r)}function Qc(t){var e;return parseInt(A.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function lc(t,e){return e?qn(t,e,{clone:!1}):t}const Qi=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{};function F6(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function B6(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function z6(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
@@ -47,10 +47,10 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ao(18,`(${e})`));return
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
49
  */function zW(t,e){const n=eV(t,e);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof t=="string"?`"${t}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
50
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function VW(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Bw=[];function zw(t){return Bw[0]=t,cA(Bw)}const HW=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function WW(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=HW(e),s=Object.keys(i);function a(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-r/100}${n})`}function u(m,g){const y=s.indexOf(g);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n}) and (max-width:${(y!==-1&&typeof e[s[y]]=="number"?e[s[y]]:g)-r/100}${n})`}function f(m){return s.indexOf(m)+1<s.length?u(m,s[s.indexOf(m)+1]):a(m)}function p(m){const g=s.indexOf(m);return g===0?a(s[1]):g===s.length-1?l(s[g]):u(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:u,only:f,not:p,unit:n,...o}}const qW={borderRadius:4};function dA(t=8,e=Hv({spacing:t})){if(t.mui)return t;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=e(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function UW(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return n.palette.mode===t?e:{}}function qv(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=t,a=WW(n),l=dA(o);let u=qn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...qW,...i}},s);return u=V6(u),u.applyStyles=UW,u=e.reduce((f,p)=>qn(f,p),u),u.unstable_sxConfig={...nu,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(p){return Ja({sx:p,theme:this})},u}function KW(t){return Object.keys(t).length===0}function fA(t=null){const e=A.useContext(lo.ThemeContext);return!e||KW(e)?t:e}const YW=qv();function Uv(t=YW){return fA(t)}function pA({styles:t,themeId:e,defaultTheme:n={}}){const r=Uv(n),o=typeof t=="function"?t(e&&r[e]||r):t;return v.jsx(uA,{styles:o})}process.env.NODE_ENV!=="production"&&(pA.propTypes={defaultTheme:c.object,styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool]),themeId:c.string});function hA(t){const{variants:e,...n}=t,r={variants:e,style:zw(n),isProcessed:!0};return r.style===n||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=zw(o.style))}),r}const GW=qv();function Wd(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function JW(t){return t?(e,n)=>n[t]:null}function ZW(t,e,n){t.theme=t9(t.theme)?n:t.theme[e]||t.theme}function qd(t,e){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(r=>qd(t,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return mA(t,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function mA(t,e,n=[]){var o;let r;e:for(let i=0;i<e.length;i+=1){const s=e[i];if(typeof s.props=="function"){if(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),!s.props(r))continue}else for(const a in s.props)if(t[a]!==s.props[a]&&((o=t.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function XW(t={}){const{themeId:e,defaultTheme:n=GW,rootShouldForwardProp:r=Wd,slotShouldForwardProp:o=Wd}=t;function i(a){ZW(a,e,n)}return(a,l={})=>{VW(a,E=>E.filter(O=>O!==Ja));const{name:u,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=JW(gA(f)),...y}=l,b=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,S=m||!1;let C=Wd;f==="Root"||f==="root"?C=r:f?C=o:n9(a)&&(C=void 0);const _=zW(a,{shouldForwardProp:C,label:e9(u,f),...y}),T=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(N){return qd(N,E)};if(Mo(E)){const O=hA(E);return O.variants?function(D){return qd(D,O)}:O.style}return E},w=(...E)=>{const O=[],N=E.map(T),D=[];if(O.push(i),u&&g&&D.push(function(P){var B,q;const F=(q=(B=P.theme.components)==null?void 0:B[u])==null?void 0:q.styleOverrides;if(!F)return null;const $={};for(const K in F)$[K]=qd(P,F[K]);return g(P,$)}),u&&!b&&D.push(function(P){var $,B;const z=P.theme,F=(B=($=z==null?void 0:z.components)==null?void 0:$[u])==null?void 0:B.variants;return F?mA(P,F):null}),S||D.push(Ja),Array.isArray(N[0])){const R=N.shift(),P=new Array(O.length).fill(""),z=new Array(D.length).fill("");let F;F=[...P,...R,...z],F.raw=[...P,...R.raw,...z],O.unshift(F)}const L=[...O,...N,...D],M=_(...L);return a.muiName&&(M.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=QW(u,f,a)),M};return _.withConfig&&(w.withConfig=_.withConfig),w}}function QW(t,e,n){return t?`${t}${Re(e||"")}`:`Styled(${k6(n)})`}function e9(t,e){let n;return process.env.NODE_ENV!=="production"&&t&&(n=`${t}-${gA(e||"Root")}`),n}function t9(t){for(const e in t)return!1;return!0}function n9(t){return typeof t=="string"&&t.charCodeAt(0)>96}function gA(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function yA(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ec(e.components[n].defaultProps,r)}function r9({props:t,name:e,defaultTheme:n,themeId:r}){let o=Uv(n);return r&&(o=o[r]||o),yA({theme:o,name:e,props:t})}function o9(t,e,n,r,o){const[i,s]=A.useState(()=>o&&n?n(t).matches:r?r(t).matches:e);return An(()=>{if(!n)return;const a=n(t),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[t,n]),i}const i9={...A},bA=i9.useSyncExternalStore;function s9(t,e,n,r,o){const i=A.useCallback(()=>e,[e]),s=A.useMemo(()=>{if(o&&n)return()=>n(t).matches;if(r!==null){const{matches:f}=r(t);return()=>f}return i},[i,t,r,o,n]),[a,l]=A.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(t);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,t]);return bA(l,a,s)}function a9(t={}){const{themeId:e}=t;return function(r,o={}){let i=fA();i&&e&&(i=i[e]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=yA({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
50
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function VW(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Bw=[];function zw(t){return Bw[0]=t,cA(Bw)}const HW=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function WW(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=HW(e),s=Object.keys(i);function a(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-r/100}${n})`}function u(m,g){const y=s.indexOf(g);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n}) and (max-width:${(y!==-1&&typeof e[s[y]]=="number"?e[s[y]]:g)-r/100}${n})`}function f(m){return s.indexOf(m)+1<s.length?u(m,s[s.indexOf(m)+1]):a(m)}function p(m){const g=s.indexOf(m);return g===0?a(s[1]):g===s.length-1?l(s[g]):u(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:u,only:f,not:p,unit:n,...o}}const qW={borderRadius:4};function dA(t=8,e=Hv({spacing:t})){if(t.mui)return t;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=e(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function UW(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return n.palette.mode===t?e:{}}function qv(t={},...e){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=t,a=WW(n),l=dA(o);let u=qn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...qW,...i}},s);return u=V6(u),u.applyStyles=UW,u=e.reduce((f,p)=>qn(f,p),u),u.unstable_sxConfig={...nu,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(p){return Ja({sx:p,theme:this})},u}function KW(t){return Object.keys(t).length===0}function fA(t=null){const e=A.useContext(lo.ThemeContext);return!e||KW(e)?t:e}const YW=qv();function Uv(t=YW){return fA(t)}function pA({styles:t,themeId:e,defaultTheme:n={}}){const r=Uv(n),o=typeof t=="function"?t(e&&r[e]||r):t;return v.jsx(uA,{styles:o})}process.env.NODE_ENV!=="production"&&(pA.propTypes={defaultTheme:c.object,styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool]),themeId:c.string});function hA(t){const{variants:e,...n}=t,r={variants:e,style:zw(n),isProcessed:!0};return r.style===n||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=zw(o.style))}),r}const GW=qv();function Wd(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function JW(t){return t?(e,n)=>n[t]:null}function ZW(t,e,n){t.theme=t9(t.theme)?n:t.theme[e]||t.theme}function qd(t,e){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(r=>qd(t,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return mA(t,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function mA(t,e,n=[]){var o;let r;e:for(let i=0;i<e.length;i+=1){const s=e[i];if(typeof s.props=="function"){if(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),!s.props(r))continue}else for(const a in s.props)if(t[a]!==s.props[a]&&((o=t.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...t,...t.ownerState,ownerState:t.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function XW(t={}){const{themeId:e,defaultTheme:n=GW,rootShouldForwardProp:r=Wd,slotShouldForwardProp:o=Wd}=t;function i(a){ZW(a,e,n)}return(a,l={})=>{VW(a,E=>E.filter(O=>O!==Ja));const{name:u,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:g=JW(gA(f)),...y}=l,b=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,S=m||!1;let C=Wd;f==="Root"||f==="root"?C=r:f?C=o:n9(a)&&(C=void 0);const _=zW(a,{shouldForwardProp:C,label:e9(u,f),...y}),T=E=>{if(typeof E=="function"&&E.__emotion_real!==E)return function(N){return qd(N,E)};if(Mo(E)){const O=hA(E);return O.variants?function(D){return qd(D,O)}:O.style}return E},w=(...E)=>{const O=[],N=E.map(T),D=[];if(O.push(i),u&&g&&D.push(function(P){var F,q;const z=(q=(F=P.theme.components)==null?void 0:F[u])==null?void 0:q.styleOverrides;if(!z)return null;const $={};for(const U in z)$[U]=qd(P,z[U]);return g(P,$)}),u&&!b&&D.push(function(P){var $,F;const B=P.theme,z=(F=($=B==null?void 0:B.components)==null?void 0:$[u])==null?void 0:F.variants;return z?mA(P,z):null}),S||D.push(Ja),Array.isArray(N[0])){const R=N.shift(),P=new Array(O.length).fill(""),B=new Array(D.length).fill("");let z;z=[...P,...R,...B],z.raw=[...P,...R.raw,...B],O.unshift(z)}const L=[...O,...N,...D],M=_(...L);return a.muiName&&(M.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(M.displayName=QW(u,f,a)),M};return _.withConfig&&(w.withConfig=_.withConfig),w}}function QW(t,e,n){return t?`${t}${Re(e||"")}`:`Styled(${k6(n)})`}function e9(t,e){let n;return process.env.NODE_ENV!=="production"&&t&&(n=`${t}-${gA(e||"Root")}`),n}function t9(t){for(const e in t)return!1;return!0}function n9(t){return typeof t=="string"&&t.charCodeAt(0)>96}function gA(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function yA(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Ec(e.components[n].defaultProps,r)}function r9({props:t,name:e,defaultTheme:n,themeId:r}){let o=Uv(n);return r&&(o=o[r]||o),yA({theme:o,name:e,props:t})}function o9(t,e,n,r,o){const[i,s]=A.useState(()=>o&&n?n(t).matches:r?r(t).matches:e);return An(()=>{if(!n)return;const a=n(t),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[t,n]),i}const i9={...A},bA=i9.useSyncExternalStore;function s9(t,e,n,r,o){const i=A.useCallback(()=>e,[e]),s=A.useMemo(()=>{if(o&&n)return()=>n(t).matches;if(r!==null){const{matches:f}=r(t);return()=>f}return i},[i,t,r,o,n]),[a,l]=A.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(t);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,t]);return bA(l,a,s)}function a9(t={}){const{themeId:e}=t;return function(r,o={}){let i=fA();i&&e&&(i=i[e]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=yA({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
51
51
  `));let p=typeof r=="function"?r(i):r;p=p.replace(/^@media( ?)/m,"");const g=(bA!==void 0?s9:o9)(p,a,l,u,f);return process.env.NODE_ENV!=="production"&&A.useDebugValue({query:p,match:g}),g}}function Kv(t,e=0,n=1){return process.env.NODE_ENV!=="production"&&(t<e||t>n)&&console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`),j6(t,e,n)}function l9(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&t.length!==t.trim().length&&console.error(`MUI: The color: "${t}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ki(t){if(t.type)return t;if(t.charAt(0)==="#")return Ki(l9(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${t}\` color.
52
52
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ao(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
53
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ao(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const c9=t=>{const e=Ki(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Gl=(t,e)=>{try{return c9(t)}catch{return e&&process.env.NODE_ENV!=="production"&&console.warn(e),t}};function Op(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function vA(t){t=Ki(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),s=(u,f=(u+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),Op({type:a,values:l})}function P0(t){t=Ki(t);let e=t.type==="hsl"||t.type==="hsla"?Ki(vA(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Vw(t,e){const n=P0(t),r=P0(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ft(t,e){return t=Ki(t),e=Kv(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Op(t)}function md(t,e,n){try{return Ft(t,e)}catch{return t}}function Za(t,e){if(t=Ki(t),e=Kv(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Op(t)}function Nt(t,e,n){try{return Za(t,e)}catch{return t}}function Mc(t,e){if(t=Ki(t),e=Kv(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Op(t)}function Lt(t,e,n){try{return Mc(t,e)}catch{return t}}function u9(t,e=.15){return P0(t)>.5?Za(t,e):Mc(t,e)}function gd(t,e,n){try{return u9(t,e)}catch{return t}}const d9=A.createContext();process.env.NODE_ENV!=="production"&&(c.node,c.bool);const co=()=>A.useContext(d9)??!1,f9=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(c.node,c.object);function p9(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?Ec(o.defaultProps,r):!o.styleOverrides&&!o.variants?Ec(o,r):r}function h9({props:t,name:e}){const n=A.useContext(f9);return p9({props:t,name:e,theme:{components:n}})}const Hw={theme:void 0};function m9(t){let e,n;return function(o){let i=e;return(i===void 0||o.theme!==n)&&(Hw.theme=o.theme,i=hA(t(Hw)),e=i,n=o.theme),i}}function g9(t=""){function e(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${t?`${t}-`:""}${r}${e(...o)})`}const Ww=(t,e,n,r=[])=>{let o=t;e.forEach((i,s)=>{s===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},y9=(t,e,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):e([...i,a],l,s))})}r(t)},b9=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function zm(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},s={};return y9(t,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const f=`--${n?`${n}-`:""}${a.join("-")}`,p=b9(a,l);Object.assign(o,{[f]:p}),Ww(i,a,`var(${f})`,u),Ww(s,a,`var(${f}, ${p})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function v9(t,e={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=e,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=t,{vars:u,css:f,varsWithDefaults:p}=zm(l,e);let m=p;const g={},{[a]:y,...b}=i;if(Object.entries(b||{}).forEach(([T,w])=>{const{vars:E,css:O,varsWithDefaults:N}=zm(w,e);m=qn(m,N),g[T]={css:O,vars:E}}),y){const{css:T,vars:w,varsWithDefaults:E}=zm(y,e);m=qn(m,E),g[a]={css:T,vars:w}}function S(T,w){var O,N;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),T){if(E==="media")return t.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((N=(O=i[T])==null?void 0:O.palette)==null?void 0:N.mode)||T})`]:{":root":w}};if(E)return t.defaultColorScheme===T?`:root, ${E.replace("%s",String(T))}`:E.replace("%s",String(T))}return":root"}return{vars:m,generateThemeVars:()=>{let T={...u};return Object.entries(g).forEach(([,{vars:w}])=>{T=qn(T,w)}),T},generateStyleSheets:()=>{var D,L;const T=[],w=t.defaultColorScheme||"light";function E(M,R){Object.keys(R).length&&T.push(typeof M=="string"?{[M]:{...R}}:M)}E(n(void 0,{...f}),f);const{[w]:O,...N}=g;if(O){const{css:M}=O,R=(L=(D=i[w])==null?void 0:D.palette)==null?void 0:L.mode,P=!r&&R?{colorScheme:R,...M}:{...M};E(n(w,{...P}),P)}return Object.entries(N).forEach(([M,{css:R}])=>{var F,$;const P=($=(F=i[M])==null?void 0:F.palette)==null?void 0:$.mode,z=!r&&P?{colorScheme:P,...R}:{...R};E(n(M,{...z}),z)}),T}}}function x9(t){return function(n){return t==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const Oc={black:"#000",white:"#fff"},S9={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ba={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},va={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ll={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Sa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ca={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function xA(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Oc.white,default:Oc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const C9=xA();function SA(){return{text:{primary:Oc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Oc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const qw=SA();function Uw(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Mc(t.main,o):e==="dark"&&(t.dark=Za(t.main,i)))}function w9(t="light"){return t==="dark"?{main:xa[200],light:xa[50],dark:xa[400]}:{main:xa[700],light:xa[400],dark:xa[800]}}function T9(t="light"){return t==="dark"?{main:ba[200],light:ba[50],dark:ba[400]}:{main:ba[500],light:ba[300],dark:ba[700]}}function _9(t="light"){return t==="dark"?{main:va[500],light:va[300],dark:va[700]}:{main:va[700],light:va[400],dark:va[800]}}function k9(t="light"){return t==="dark"?{main:Sa[400],light:Sa[300],dark:Sa[700]}:{main:Sa[700],light:Sa[500],dark:Sa[900]}}function E9(t="light"){return t==="dark"?{main:Ca[400],light:Ca[300],dark:Ca[700]}:{main:Ca[800],light:Ca[500],dark:Ca[900]}}function M9(t="light"){return t==="dark"?{main:Ll[400],light:Ll[300],dark:Ll[700]}:{main:"#ed6c02",light:Ll[500],dark:Ll[900]}}function Yv(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=t,i=t.primary||w9(e),s=t.secondary||T9(e),a=t.error||_9(e),l=t.info||k9(e),u=t.success||E9(e),f=t.warning||M9(e);function p(b){const S=Vw(b,qw.text.primary)>=n?qw.text.primary:C9.text.primary;if(process.env.NODE_ENV!=="production"){const C=Vw(b,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
53
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ao(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const c9=t=>{const e=Ki(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Gl=(t,e)=>{try{return c9(t)}catch{return e&&process.env.NODE_ENV!=="production"&&console.warn(e),t}};function Op(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function vA(t){t=Ki(t);const{values:e}=t,n=e[0],r=e[1]/100,o=e[2]/100,i=r*Math.min(o,1-o),s=(u,f=(u+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),Op({type:a,values:l})}function P0(t){t=Ki(t);let e=t.type==="hsl"||t.type==="hsla"?Ki(vA(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Vw(t,e){const n=P0(t),r=P0(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ft(t,e){return t=Ki(t),e=Kv(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,Op(t)}function md(t,e,n){try{return Ft(t,e)}catch{return t}}function Za(t,e){if(t=Ki(t),e=Kv(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return Op(t)}function Nt(t,e,n){try{return Za(t,e)}catch{return t}}function Mc(t,e){if(t=Ki(t),e=Kv(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return Op(t)}function Lt(t,e,n){try{return Mc(t,e)}catch{return t}}function u9(t,e=.15){return P0(t)>.5?Za(t,e):Mc(t,e)}function gd(t,e,n){try{return u9(t,e)}catch{return t}}const d9=A.createContext();process.env.NODE_ENV!=="production"&&(c.node,c.bool);const co=()=>A.useContext(d9)??!1,f9=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(c.node,c.object);function p9(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const o=e.components[n];return o.defaultProps?Ec(o.defaultProps,r):!o.styleOverrides&&!o.variants?Ec(o,r):r}function h9({props:t,name:e}){const n=A.useContext(f9);return p9({props:t,name:e,theme:{components:n}})}const Hw={theme:void 0};function m9(t){let e,n;return function(o){let i=e;return(i===void 0||o.theme!==n)&&(Hw.theme=o.theme,i=hA(t(Hw)),e=i,n=o.theme),i}}function g9(t=""){function e(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${t?`${t}-`:""}${r}${e(...o)})`}const Ww=(t,e,n,r=[])=>{let o=t;e.forEach((i,s)=>{s===e.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},y9=(t,e,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):e([...i,a],l,s))})}r(t)},b9=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function zm(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},o={},i={},s={};return y9(t,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const f=`--${n?`${n}-`:""}${a.join("-")}`,p=b9(a,l);Object.assign(o,{[f]:p}),Ww(i,a,`var(${f})`,u),Ww(s,a,`var(${f}, ${p})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function v9(t,e={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o}=e,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=t,{vars:u,css:f,varsWithDefaults:p}=zm(l,e);let m=p;const g={},{[a]:y,...b}=i;if(Object.entries(b||{}).forEach(([T,w])=>{const{vars:E,css:O,varsWithDefaults:N}=zm(w,e);m=qn(m,N),g[T]={css:O,vars:E}}),y){const{css:T,vars:w,varsWithDefaults:E}=zm(y,e);m=qn(m,E),g[a]={css:T,vars:w}}function S(T,w){var O,N;let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),T){if(E==="media")return t.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((N=(O=i[T])==null?void 0:O.palette)==null?void 0:N.mode)||T})`]:{":root":w}};if(E)return t.defaultColorScheme===T?`:root, ${E.replace("%s",String(T))}`:E.replace("%s",String(T))}return":root"}return{vars:m,generateThemeVars:()=>{let T={...u};return Object.entries(g).forEach(([,{vars:w}])=>{T=qn(T,w)}),T},generateStyleSheets:()=>{var D,L;const T=[],w=t.defaultColorScheme||"light";function E(M,R){Object.keys(R).length&&T.push(typeof M=="string"?{[M]:{...R}}:M)}E(n(void 0,{...f}),f);const{[w]:O,...N}=g;if(O){const{css:M}=O,R=(L=(D=i[w])==null?void 0:D.palette)==null?void 0:L.mode,P=!r&&R?{colorScheme:R,...M}:{...M};E(n(w,{...P}),P)}return Object.entries(N).forEach(([M,{css:R}])=>{var z,$;const P=($=(z=i[M])==null?void 0:z.palette)==null?void 0:$.mode,B=!r&&P?{colorScheme:P,...R}:{...R};E(n(M,{...B}),B)}),T}}}function x9(t){return function(n){return t==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}const Oc={black:"#000",white:"#fff"},S9={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ba={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},va={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ll={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},xa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Sa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ca={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function xA(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Oc.white,default:Oc.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const C9=xA();function SA(){return{text:{primary:Oc.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Oc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const qw=SA();function Uw(t,e,n,r){const o=r.light||r,i=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=Mc(t.main,o):e==="dark"&&(t.dark=Za(t.main,i)))}function w9(t="light"){return t==="dark"?{main:xa[200],light:xa[50],dark:xa[400]}:{main:xa[700],light:xa[400],dark:xa[800]}}function T9(t="light"){return t==="dark"?{main:ba[200],light:ba[50],dark:ba[400]}:{main:ba[500],light:ba[300],dark:ba[700]}}function _9(t="light"){return t==="dark"?{main:va[500],light:va[300],dark:va[700]}:{main:va[700],light:va[400],dark:va[800]}}function k9(t="light"){return t==="dark"?{main:Sa[400],light:Sa[300],dark:Sa[700]}:{main:Sa[700],light:Sa[500],dark:Sa[900]}}function E9(t="light"){return t==="dark"?{main:Ca[400],light:Ca[300],dark:Ca[700]}:{main:Ca[800],light:Ca[500],dark:Ca[900]}}function M9(t="light"){return t==="dark"?{main:Ll[400],light:Ll[300],dark:Ll[700]}:{main:"#ed6c02",light:Ll[500],dark:Ll[900]}}function Yv(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=t,i=t.primary||w9(e),s=t.secondary||T9(e),a=t.error||_9(e),l=t.info||k9(e),u=t.success||E9(e),f=t.warning||M9(e);function p(b){const S=Vw(b,qw.text.primary)>=n?qw.text.primary:C9.text.primary;if(process.env.NODE_ENV!=="production"){const C=Vw(b,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
54
54
  `))}return S}const m=({color:b,name:S,mainShade:C=500,lightShade:_=300,darkShade:T=700})=>{if(b={...b},!b.main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
55
55
  The color object needs to have a \`main\` property or a \`${C}\` property.`:Ao(11,S?` (${S})`:"",C));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
56
56
  \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
@@ -75,17 +75,17 @@ theme.transitions = createTransitions(theme.transitions || {});
75
75
 
76
76
  export default theme;`}function N0(t={},...e){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...u}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Ao(20));const f=Yv(i),p=qv(t);let m=qn(p,{mixins:R9(p.breakpoints,r),palette:f,shadows:L9.slice(),typography:I9(f,a),transitions:B9(s),zIndex:{...z9}});if(m=qn(m,u),m=e.reduce((g,y)=>qn(g,y),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(b,S)=>{let C;for(C in b){const _=b[C];if(g.includes(C)&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const T=Ye("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${T}' syntax:`,JSON.stringify({root:{[`&.${T}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
77
77
  `))}b[C]={}}}};Object.keys(m.components).forEach(b=>{const S=m.components[b].styleOverrides;S&&b.startsWith("Mui")&&y(S,b)})}return m.unstable_sxConfig={...nu,...u==null?void 0:u.unstable_sxConfig},m.unstable_sx=function(y){return Ja({sx:y,theme:this})},m.toRuntimeSource=CA,m}function L0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const H9=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=L0(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function wA(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function TA(t){return t==="dark"?H9:[]}function W9(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...o}=t,i=Yv(e);return{palette:i,opacity:{...wA(i.mode),...n},overlays:r||TA(i.mode),...o}}function q9(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const U9=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],K9=t=>(e,n)=>{const r=t.rootSelector||":root",o=t.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return U9(t.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",e)]:s,[`${r}, ${i.replace("%s",e)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(e))}`}else if(e){if(i==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(i)return i.replace("%s",String(e))}return r};function Y9(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function ve(t,e,n){!t[e]&&n&&(t[e]=n)}function Jl(t){return typeof t!="string"||!t.startsWith("hsl")?t:vA(t)}function Go(t,e){`${e}Channel`in t||(t[`${e}Channel`]=Gl(Jl(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
78
- To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function G9(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const vo=t=>{try{return t()}catch{}},J9=(t="mui")=>g9(t);function Vm(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=W9({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...s}=N0({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...wA(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||TA(o)},s}function Z9(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=q9,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),m=J9(i),{[p]:g,light:y,dark:b,...S}=n,C={...S};let _=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Ao(21,p));const T=Vm(C,_,u,p);y&&!C.light&&Vm(C,y,void 0,"light"),b&&!C.dark&&Vm(C,b,void 0,"dark");let w={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...O9(T.typography),...T.font},spacing:G9(u.spacing)};Object.keys(w.colorSchemes).forEach(L=>{const M=w.colorSchemes[L].palette,R=P=>{const z=P.split("-"),F=z[1],$=z[2];return m(P,M[F][$])};if(M.mode==="light"&&(ve(M.common,"background","#fff"),ve(M.common,"onBackground","#000")),M.mode==="dark"&&(ve(M.common,"background","#000"),ve(M.common,"onBackground","#fff")),Y9(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){ve(M.Alert,"errorColor",Nt(M.error.light,.6)),ve(M.Alert,"infoColor",Nt(M.info.light,.6)),ve(M.Alert,"successColor",Nt(M.success.light,.6)),ve(M.Alert,"warningColor",Nt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-main")),ve(M.Alert,"infoFilledBg",R("palette-info-main")),ve(M.Alert,"successFilledBg",R("palette-success-main")),ve(M.Alert,"warningFilledBg",R("palette-warning-main")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.main))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.main))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.main))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.main))),ve(M.Alert,"errorStandardBg",Lt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Lt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Lt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Lt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-100")),ve(M.Avatar,"defaultBg",R("palette-grey-400")),ve(M.Button,"inheritContainedBg",R("palette-grey-300")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-A100")),ve(M.Chip,"defaultBorder",R("palette-grey-400")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-700")),ve(M.Chip,"defaultIconColor",R("palette-grey-700")),ve(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(M.LinearProgress,"primaryBg",Lt(M.primary.main,.62)),ve(M.LinearProgress,"secondaryBg",Lt(M.secondary.main,.62)),ve(M.LinearProgress,"errorBg",Lt(M.error.main,.62)),ve(M.LinearProgress,"infoBg",Lt(M.info.main,.62)),ve(M.LinearProgress,"successBg",Lt(M.success.main,.62)),ve(M.LinearProgress,"warningBg",Lt(M.warning.main,.62)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),ve(M.Slider,"primaryTrack",Lt(M.primary.main,.62)),ve(M.Slider,"secondaryTrack",Lt(M.secondary.main,.62)),ve(M.Slider,"errorTrack",Lt(M.error.main,.62)),ve(M.Slider,"infoTrack",Lt(M.info.main,.62)),ve(M.Slider,"successTrack",Lt(M.success.main,.62)),ve(M.Slider,"warningTrack",Lt(M.warning.main,.62));const P=gd(M.background.default,.8);ve(M.SnackbarContent,"bg",P),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(P))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-400")),ve(M.StepContent,"border",R("palette-grey-400")),ve(M.Switch,"defaultColor",R("palette-common-white")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-100")),ve(M.Switch,"primaryDisabledColor",Lt(M.primary.main,.62)),ve(M.Switch,"secondaryDisabledColor",Lt(M.secondary.main,.62)),ve(M.Switch,"errorDisabledColor",Lt(M.error.main,.62)),ve(M.Switch,"infoDisabledColor",Lt(M.info.main,.62)),ve(M.Switch,"successDisabledColor",Lt(M.success.main,.62)),ve(M.Switch,"warningDisabledColor",Lt(M.warning.main,.62)),ve(M.TableCell,"border",Lt(md(M.divider,1),.88)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}if(M.mode==="dark"){ve(M.Alert,"errorColor",Lt(M.error.light,.6)),ve(M.Alert,"infoColor",Lt(M.info.light,.6)),ve(M.Alert,"successColor",Lt(M.success.light,.6)),ve(M.Alert,"warningColor",Lt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-dark")),ve(M.Alert,"infoFilledBg",R("palette-info-dark")),ve(M.Alert,"successFilledBg",R("palette-success-dark")),ve(M.Alert,"warningFilledBg",R("palette-warning-dark")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.dark))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.dark))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.dark))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.dark))),ve(M.Alert,"errorStandardBg",Nt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Nt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Nt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Nt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-900")),ve(M.AppBar,"darkBg",R("palette-background-paper")),ve(M.AppBar,"darkColor",R("palette-text-primary")),ve(M.Avatar,"defaultBg",R("palette-grey-600")),ve(M.Button,"inheritContainedBg",R("palette-grey-800")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-700")),ve(M.Chip,"defaultBorder",R("palette-grey-700")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-300")),ve(M.Chip,"defaultIconColor",R("palette-grey-300")),ve(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(M.LinearProgress,"primaryBg",Nt(M.primary.main,.5)),ve(M.LinearProgress,"secondaryBg",Nt(M.secondary.main,.5)),ve(M.LinearProgress,"errorBg",Nt(M.error.main,.5)),ve(M.LinearProgress,"infoBg",Nt(M.info.main,.5)),ve(M.LinearProgress,"successBg",Nt(M.success.main,.5)),ve(M.LinearProgress,"warningBg",Nt(M.warning.main,.5)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),ve(M.Slider,"primaryTrack",Nt(M.primary.main,.5)),ve(M.Slider,"secondaryTrack",Nt(M.secondary.main,.5)),ve(M.Slider,"errorTrack",Nt(M.error.main,.5)),ve(M.Slider,"infoTrack",Nt(M.info.main,.5)),ve(M.Slider,"successTrack",Nt(M.success.main,.5)),ve(M.Slider,"warningTrack",Nt(M.warning.main,.5));const P=gd(M.background.default,.98);ve(M.SnackbarContent,"bg",P),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(P))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-600")),ve(M.StepContent,"border",R("palette-grey-600")),ve(M.Switch,"defaultColor",R("palette-grey-300")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-600")),ve(M.Switch,"primaryDisabledColor",Nt(M.primary.main,.55)),ve(M.Switch,"secondaryDisabledColor",Nt(M.secondary.main,.55)),ve(M.Switch,"errorDisabledColor",Nt(M.error.main,.55)),ve(M.Switch,"infoDisabledColor",Nt(M.info.main,.55)),ve(M.Switch,"successDisabledColor",Nt(M.success.main,.55)),ve(M.Switch,"warningDisabledColor",Nt(M.warning.main,.55)),ve(M.TableCell,"border",Nt(md(M.divider,1),.68)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}Go(M.background,"default"),Go(M.background,"paper"),Go(M.common,"background"),Go(M.common,"onBackground"),Go(M,"divider"),Object.keys(M).forEach(P=>{const z=M[P];P!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&ve(M[P],"mainChannel",Gl(Jl(z.main))),z.light&&ve(M[P],"lightChannel",Gl(Jl(z.light))),z.dark&&ve(M[P],"darkChannel",Gl(Jl(z.dark))),z.contrastText&&ve(M[P],"contrastTextChannel",Gl(Jl(z.contrastText))),P==="text"&&(Go(M[P],"primary"),Go(M[P],"secondary")),P==="action"&&(z.active&&Go(M[P],"active"),z.selected&&Go(M[P],"selected")))})}),w=e.reduce((L,M)=>qn(L,M),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:K9(w)},{vars:O,generateThemeVars:N,generateStyleSheets:D}=v9(w,E);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([L,M])=>{w[L]=M}),w.generateThemeVars=N,w.generateStyleSheets=D,w.generateSpacing=function(){return dA(u.spacing,Hv(this))},w.getColorSchemeSelector=x9(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...nu,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(M){return Ja({sx:M,theme:this})},w.toRuntimeSource=CA,w}function Jw(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Yv({...n===!0?{}:n.palette,mode:e})})}function X9(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return N0(t,...e);let f=n;"palette"in t||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const p=N0({...t,palette:f},...e);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Jw(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Jw(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),Z9({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const Rp=X9(),ru="$$material";function es(){const t=Uv(Rp);return process.env.NODE_ENV!=="production"&&A.useDebugValue(t),t[ru]||t}function _A(t){return v.jsx(pA,{...t,defaultTheme:Rp,themeId:ru})}process.env.NODE_ENV!=="production"&&(_A.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function kA(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const uo=t=>kA(t)&&t!=="classes",be=XW({themeId:ru,defaultTheme:Rp,rootShouldForwardProp:uo});function Q9(t){return function(n){return v.jsx(_A,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function eq(){return DW}const It=m9;process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function St(t){return h9(t)}function tq(t){return Ye("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nq=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Re(e)}`,`fontSize${Re(n)}`]};return Ke(o,tq,r)},rq=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Re(n.color)}`],e[`fontSize${Re(n.fontSize)}`]]}})(It(({theme:t})=>{var e,n,r,o,i,s,a,l,u,f,p,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var S,C;return{props:{color:b},style:{color:(C=(S=(t.vars??t).palette)==null?void 0:S[b])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(m=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(y=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),mf=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...g}=r,y=A.isValidElement(o)&&o.type==="svg",b={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y},S={};f||(S.viewBox=m);const C=nq(b);return v.jsxs(rq,{as:a,className:Pe(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...S,...g,...y&&o.props,ownerState:b,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(mf.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string});mf.muiName="SvgIcon";function Fe(t,e){function n(r,o){return v.jsx(mf,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=mf.muiName,A.memo(A.forwardRef(n))}function oq(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...i}):t,a=Pe(o==null?void 0:o.className,i==null?void 0:i.className,s==null?void 0:s.className);return{...i,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(s==null?void 0:s.style)&&{style:{...i.style,...s.style}},...(i==null?void 0:i.sx)&&(s==null?void 0:s.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=e,r=Pe(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const EA=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),tr=t=>{const{name:e,id:n,className:r}=t,[o,i,s]=qt.useField(e),{error:a}=i;return v.jsxs(j.Typography,{id:n,variant:"caption",display:"block",color:"error",style:{visibility:a?"visible":"hidden"},className:r,fontSize:".9rem",children:[v.jsx(j.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:v.jsx(EA,{fontSize:"inherit"})}),a]})},MA=t=>{const{name:e,label:n=Mn(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,clearOnSelect:g=!1,onInputChange:y,getOptionLabel:b=P=>typeof P=="string"?P:String(P),isOptionEqualToValue:S=(P,z)=>JSON.stringify(P)===JSON.stringify(z),useFieldAsValue:C,..._}=t,[T,w,E]=qt.useField(e),{setValue:O}=E,{error:N}=w,[D,L]=A.useState(""),M={...er(_,["useFieldAsValue"]),getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:S,renderInput:P=>v.jsx(j.TextField,{...P,variant:i,label:s?void 0:n,error:!!N,required:p}),onChange:(P,z,F,$)=>{g?(L(""),O(null)):O(C?z?z[C]:null:z),m&&m(P,z,F,$)},onInputChange:(P,z,F)=>{L(z),y&&y(P,z,F)},fullWidth:!0,inputValue:D,value:C?r.find(P=>P[C]===T.value)||null:T.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},R=()=>{if(!T.value)return"";if(C){const P=r.find(z=>z[C]===T.value);return P?b(P):""}return b(T.value)};return v.jsxs(j.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:R()}):v.jsxs(j.Box,{children:[v.jsx(j.Autocomplete,{...M}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})};var Zl={exports:{}};/**
78
+ To suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function G9(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const vo=t=>{try{return t()}catch{}},J9=(t="mui")=>g9(t);function Vm(t,e,n,r){if(!e)return;e=e===!0?{}:e;const o=r==="dark"?"dark":"light";if(!n){t[r]=W9({...e,palette:{mode:o,...e==null?void 0:e.palette}});return}const{palette:i,...s}=N0({...n,palette:{mode:o,...e==null?void 0:e.palette}});return t[r]={...e,palette:i,opacity:{...wA(o),...e==null?void 0:e.opacity},overlays:(e==null?void 0:e.overlays)||TA(o)},s}function Z9(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=q9,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=t,f=Object.keys(n)[0],p=r||(n.light&&f!=="light"?"light":f),m=J9(i),{[p]:g,light:y,dark:b,...S}=n,C={...S};let _=g;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(_=!0),!_)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Ao(21,p));const T=Vm(C,_,u,p);y&&!C.light&&Vm(C,y,void 0,"light"),b&&!C.dark&&Vm(C,b,void 0,"dark");let w={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...O9(T.typography),...T.font},spacing:G9(u.spacing)};Object.keys(w.colorSchemes).forEach(L=>{const M=w.colorSchemes[L].palette,R=P=>{const B=P.split("-"),z=B[1],$=B[2];return m(P,M[z][$])};if(M.mode==="light"&&(ve(M.common,"background","#fff"),ve(M.common,"onBackground","#000")),M.mode==="dark"&&(ve(M.common,"background","#000"),ve(M.common,"onBackground","#fff")),Y9(M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),M.mode==="light"){ve(M.Alert,"errorColor",Nt(M.error.light,.6)),ve(M.Alert,"infoColor",Nt(M.info.light,.6)),ve(M.Alert,"successColor",Nt(M.success.light,.6)),ve(M.Alert,"warningColor",Nt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-main")),ve(M.Alert,"infoFilledBg",R("palette-info-main")),ve(M.Alert,"successFilledBg",R("palette-success-main")),ve(M.Alert,"warningFilledBg",R("palette-warning-main")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.main))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.main))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.main))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.main))),ve(M.Alert,"errorStandardBg",Lt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Lt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Lt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Lt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-100")),ve(M.Avatar,"defaultBg",R("palette-grey-400")),ve(M.Button,"inheritContainedBg",R("palette-grey-300")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-A100")),ve(M.Chip,"defaultBorder",R("palette-grey-400")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-700")),ve(M.Chip,"defaultIconColor",R("palette-grey-700")),ve(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(M.LinearProgress,"primaryBg",Lt(M.primary.main,.62)),ve(M.LinearProgress,"secondaryBg",Lt(M.secondary.main,.62)),ve(M.LinearProgress,"errorBg",Lt(M.error.main,.62)),ve(M.LinearProgress,"infoBg",Lt(M.info.main,.62)),ve(M.LinearProgress,"successBg",Lt(M.success.main,.62)),ve(M.LinearProgress,"warningBg",Lt(M.warning.main,.62)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),ve(M.Slider,"primaryTrack",Lt(M.primary.main,.62)),ve(M.Slider,"secondaryTrack",Lt(M.secondary.main,.62)),ve(M.Slider,"errorTrack",Lt(M.error.main,.62)),ve(M.Slider,"infoTrack",Lt(M.info.main,.62)),ve(M.Slider,"successTrack",Lt(M.success.main,.62)),ve(M.Slider,"warningTrack",Lt(M.warning.main,.62));const P=gd(M.background.default,.8);ve(M.SnackbarContent,"bg",P),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(P))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-400")),ve(M.StepContent,"border",R("palette-grey-400")),ve(M.Switch,"defaultColor",R("palette-common-white")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-100")),ve(M.Switch,"primaryDisabledColor",Lt(M.primary.main,.62)),ve(M.Switch,"secondaryDisabledColor",Lt(M.secondary.main,.62)),ve(M.Switch,"errorDisabledColor",Lt(M.error.main,.62)),ve(M.Switch,"infoDisabledColor",Lt(M.info.main,.62)),ve(M.Switch,"successDisabledColor",Lt(M.success.main,.62)),ve(M.Switch,"warningDisabledColor",Lt(M.warning.main,.62)),ve(M.TableCell,"border",Lt(md(M.divider,1),.88)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}if(M.mode==="dark"){ve(M.Alert,"errorColor",Lt(M.error.light,.6)),ve(M.Alert,"infoColor",Lt(M.info.light,.6)),ve(M.Alert,"successColor",Lt(M.success.light,.6)),ve(M.Alert,"warningColor",Lt(M.warning.light,.6)),ve(M.Alert,"errorFilledBg",R("palette-error-dark")),ve(M.Alert,"infoFilledBg",R("palette-info-dark")),ve(M.Alert,"successFilledBg",R("palette-success-dark")),ve(M.Alert,"warningFilledBg",R("palette-warning-dark")),ve(M.Alert,"errorFilledColor",vo(()=>M.getContrastText(M.error.dark))),ve(M.Alert,"infoFilledColor",vo(()=>M.getContrastText(M.info.dark))),ve(M.Alert,"successFilledColor",vo(()=>M.getContrastText(M.success.dark))),ve(M.Alert,"warningFilledColor",vo(()=>M.getContrastText(M.warning.dark))),ve(M.Alert,"errorStandardBg",Nt(M.error.light,.9)),ve(M.Alert,"infoStandardBg",Nt(M.info.light,.9)),ve(M.Alert,"successStandardBg",Nt(M.success.light,.9)),ve(M.Alert,"warningStandardBg",Nt(M.warning.light,.9)),ve(M.Alert,"errorIconColor",R("palette-error-main")),ve(M.Alert,"infoIconColor",R("palette-info-main")),ve(M.Alert,"successIconColor",R("palette-success-main")),ve(M.Alert,"warningIconColor",R("palette-warning-main")),ve(M.AppBar,"defaultBg",R("palette-grey-900")),ve(M.AppBar,"darkBg",R("palette-background-paper")),ve(M.AppBar,"darkColor",R("palette-text-primary")),ve(M.Avatar,"defaultBg",R("palette-grey-600")),ve(M.Button,"inheritContainedBg",R("palette-grey-800")),ve(M.Button,"inheritContainedHoverBg",R("palette-grey-700")),ve(M.Chip,"defaultBorder",R("palette-grey-700")),ve(M.Chip,"defaultAvatarColor",R("palette-grey-300")),ve(M.Chip,"defaultIconColor",R("palette-grey-300")),ve(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(M.LinearProgress,"primaryBg",Nt(M.primary.main,.5)),ve(M.LinearProgress,"secondaryBg",Nt(M.secondary.main,.5)),ve(M.LinearProgress,"errorBg",Nt(M.error.main,.5)),ve(M.LinearProgress,"infoBg",Nt(M.info.main,.5)),ve(M.LinearProgress,"successBg",Nt(M.success.main,.5)),ve(M.LinearProgress,"warningBg",Nt(M.warning.main,.5)),ve(M.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),ve(M.Slider,"primaryTrack",Nt(M.primary.main,.5)),ve(M.Slider,"secondaryTrack",Nt(M.secondary.main,.5)),ve(M.Slider,"errorTrack",Nt(M.error.main,.5)),ve(M.Slider,"infoTrack",Nt(M.info.main,.5)),ve(M.Slider,"successTrack",Nt(M.success.main,.5)),ve(M.Slider,"warningTrack",Nt(M.warning.main,.5));const P=gd(M.background.default,.98);ve(M.SnackbarContent,"bg",P),ve(M.SnackbarContent,"color",vo(()=>M.getContrastText(P))),ve(M.SpeedDialAction,"fabHoverBg",gd(M.background.paper,.15)),ve(M.StepConnector,"border",R("palette-grey-600")),ve(M.StepContent,"border",R("palette-grey-600")),ve(M.Switch,"defaultColor",R("palette-grey-300")),ve(M.Switch,"defaultDisabledColor",R("palette-grey-600")),ve(M.Switch,"primaryDisabledColor",Nt(M.primary.main,.55)),ve(M.Switch,"secondaryDisabledColor",Nt(M.secondary.main,.55)),ve(M.Switch,"errorDisabledColor",Nt(M.error.main,.55)),ve(M.Switch,"infoDisabledColor",Nt(M.info.main,.55)),ve(M.Switch,"successDisabledColor",Nt(M.success.main,.55)),ve(M.Switch,"warningDisabledColor",Nt(M.warning.main,.55)),ve(M.TableCell,"border",Nt(md(M.divider,1),.68)),ve(M.Tooltip,"bg",md(M.grey[700],.92))}Go(M.background,"default"),Go(M.background,"paper"),Go(M.common,"background"),Go(M.common,"onBackground"),Go(M,"divider"),Object.keys(M).forEach(P=>{const B=M[P];P!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&ve(M[P],"mainChannel",Gl(Jl(B.main))),B.light&&ve(M[P],"lightChannel",Gl(Jl(B.light))),B.dark&&ve(M[P],"darkChannel",Gl(Jl(B.dark))),B.contrastText&&ve(M[P],"contrastTextChannel",Gl(Jl(B.contrastText))),P==="text"&&(Go(M[P],"primary"),Go(M[P],"secondary")),P==="action"&&(B.active&&Go(M[P],"active"),B.selected&&Go(M[P],"selected")))})}),w=e.reduce((L,M)=>qn(L,M),w);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:K9(w)},{vars:O,generateThemeVars:N,generateStyleSheets:D}=v9(w,E);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([L,M])=>{w[L]=M}),w.generateThemeVars=N,w.generateStyleSheets=D,w.generateSpacing=function(){return dA(u.spacing,Hv(this))},w.getColorSchemeSelector=x9(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...nu,...u==null?void 0:u.unstable_sxConfig},w.unstable_sx=function(M){return Ja({sx:M,theme:this})},w.toRuntimeSource=CA,w}function Jw(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:Yv({...n===!0?{}:n.palette,mode:e})})}function X9(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=t,a=i||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return N0(t,...e);let f=n;"palette"in t||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const p=N0({...t,palette:f},...e);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Jw(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Jw(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),Z9({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}const Rp=X9(),ru="$$material";function es(){const t=Uv(Rp);return process.env.NODE_ENV!=="production"&&A.useDebugValue(t),t[ru]||t}function _A(t){return v.jsx(pA,{...t,defaultTheme:Rp,themeId:ru})}process.env.NODE_ENV!=="production"&&(_A.propTypes={styles:c.oneOfType([c.array,c.func,c.number,c.object,c.string,c.bool])});function kA(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const uo=t=>kA(t)&&t!=="classes",be=XW({themeId:ru,defaultTheme:Rp,rootShouldForwardProp:uo});function Q9(t){return function(n){return v.jsx(_A,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function eq(){return DW}const It=m9;process.env.NODE_ENV!=="production"&&(c.node,c.object.isRequired);function St(t){return h9(t)}function tq(t){return Ye("MuiSvgIcon",t)}We("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nq=t=>{const{color:e,fontSize:n,classes:r}=t,o={root:["root",e!=="inherit"&&`color${Re(e)}`,`fontSize${Re(n)}`]};return Ke(o,tq,r)},rq=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Re(n.color)}`],e[`fontSize${Re(n.fontSize)}`]]}})(It(({theme:t})=>{var e,n,r,o,i,s,a,l,u,f,p,m,g,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=t.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var S,C;return{props:{color:b},style:{color:(C=(S=(t.vars??t).palette)==null?void 0:S[b])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(m=(p=(t.vars??t).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(y=(g=(t.vars??t).palette)==null?void 0:g.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),mf=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:m="0 0 24 24",...g}=r,y=A.isValidElement(o)&&o.type==="svg",b={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:f,viewBox:m,hasSvgAsChild:y},S={};f||(S.viewBox=m);const C=nq(b);return v.jsxs(rq,{as:a,className:Pe(C.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...S,...g,...y&&o.props,ownerState:b,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(mf.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,fontSize:c.oneOfType([c.oneOf(["inherit","large","medium","small"]),c.string]),htmlColor:c.string,inheritViewBox:c.bool,shapeRendering:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleAccess:c.string,viewBox:c.string});mf.muiName="SvgIcon";function Fe(t,e){function n(r,o){return v.jsx(mf,{"data-testid":`${e}Icon`,ref:o,...r,children:t})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=mf.muiName,A.memo(A.forwardRef(n))}function oq(t,e){if(!t)return e;if(typeof t=="function"||typeof e=="function")return o=>{const i=typeof e=="function"?e(o):e,s=typeof t=="function"?t({...o,...i}):t,a=Pe(o==null?void 0:o.className,i==null?void 0:i.className,s==null?void 0:s.className);return{...i,...s,...!!a&&{className:a},...(i==null?void 0:i.style)&&(s==null?void 0:s.style)&&{style:{...i.style,...s.style}},...(i==null?void 0:i.sx)&&(s==null?void 0:s.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(s.sx)?s.sx:[s.sx]]}}};const n=e,r=Pe(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...!!r&&{className:r},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const EA=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),tr=t=>{const{name:e,id:n,className:r}=t,[o,i,s]=qt.useField(e),{error:a}=i;return v.jsxs(j.Typography,{id:n,variant:"caption",display:"block",color:"error",style:{visibility:a?"visible":"hidden"},className:r,fontSize:".9rem",children:[v.jsx(j.Box,{component:"span",sx:{display:"inline-flex",alignItems:"center",position:"relative",top:"3px",mr:.5},children:v.jsx(EA,{fontSize:"inherit"})}),a]})},MA=t=>{const{name:e,label:n=Mn(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,clearOnSelect:g=!1,onInputChange:y,getOptionLabel:b=P=>typeof P=="string"?P:String(P),isOptionEqualToValue:S=(P,B)=>JSON.stringify(P)===JSON.stringify(B),useFieldAsValue:C,..._}=t,[T,w,E]=qt.useField(e),{setValue:O}=E,{error:N}=w,[D,L]=A.useState(""),M={...er(_,["useFieldAsValue"]),getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:S,renderInput:P=>v.jsx(j.TextField,{...P,variant:i,label:s?void 0:n,error:!!N,required:p}),onChange:(P,B,z,$)=>{g?(L(""),O(null)):O(C?B?B[C]:null:B),m&&m(P,B,z,$)},onInputChange:(P,B,z)=>{L(B),y&&y(P,B,z)},fullWidth:!0,inputValue:D,value:C?r.find(P=>P[C]===T.value)||null:T.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},R=()=>{if(!T.value)return"";if(C){const P=r.find(B=>B[C]===T.value);return P?b(P):""}return b(T.value)};return v.jsxs(j.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:R()}):v.jsxs(j.Box,{children:[v.jsx(j.Autocomplete,{...M}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})};var Zl={exports:{}};/**
79
79
  * @license
80
80
  * Lodash <https://lodash.com/>
81
81
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
82
82
  * Released under MIT license <https://lodash.com/license>
83
83
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
84
84
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
85
- */var iq=Zl.exports,Zw;function sq(){return Zw||(Zw=1,function(t,e){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,m=2,g=4,y=1,b=2,S=1,C=2,_=4,T=8,w=16,E=32,O=64,N=128,D=256,L=512,M=30,R="...",P=800,z=16,F=1,$=2,B=3,q=1/0,K=9007199254740991,G=17976931348623157e292,Y=NaN,Z=4294967295,ge=Z-1,he=Z>>>1,oe=[["ary",N],["bind",S],["bindKey",C],["curry",T],["curryRight",w],["flip",L],["partial",E],["partialRight",O],["rearg",D]],Q="[object Arguments]",fe="[object Array]",ce="[object AsyncFunction]",ae="[object Boolean]",W="[object Date]",te="[object DOMException]",ue="[object Error]",ee="[object Function]",se="[object GeneratorFunction]",de="[object Map]",ye="[object Number]",Te="[object Null]",Se="[object Object]",Me="[object Promise]",Ne="[object Proxy]",Ve="[object RegExp]",Ge="[object Set]",Ie="[object String]",st="[object Symbol]",xt="[object Undefined]",Gt="[object WeakMap]",bn="[object WeakSet]",nn="[object ArrayBuffer]",Dt="[object DataView]",wn="[object Float32Array]",Fn="[object Float64Array]",dt="[object Int8Array]",In="[object Int16Array]",Vt="[object Int32Array]",me="[object Uint8Array]",Le="[object Uint8ClampedArray]",ke="[object Uint16Array]",je="[object Uint32Array]",qe=/\b__p \+= '';/g,tt=/\b(__p \+=) '' \+/g,Ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gn=/&(?:amp|lt|gt|quot|#39);/g,sr=/[&<>"']/g,Fo=RegExp(Gn.source),bl=RegExp(sr.source),na=/<%-([\s\S]+?)%>/g,gi=/<%([\s\S]+?)%>/g,wu=/<%=([\s\S]+?)%>/g,vl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ra=/^\w*$/,ML=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ch=/[\\^$.*+?()[\]{}|]/g,OL=RegExp(Ch.source),wh=/^\s+/,RL=/\s/,AL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,IL=/\{\n\/\* \[wrapped with (.+)\] \*/,DL=/,? & /,PL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,NL=/[()=,{}\[\]\/\s]/,LL=/\\(\\)?/g,jL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B1=/\w*$/,$L=/^[-+]0x[0-9a-f]+$/i,FL=/^0b[01]+$/i,BL=/^\[object .+?Constructor\]$/,zL=/^0o[0-7]+$/i,VL=/^(?:0|[1-9]\d*)$/,HL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tu=/($^)/,WL=/['\n\r\u2028\u2029\\]/g,_u="\\ud800-\\udfff",qL="\\u0300-\\u036f",UL="\\ufe20-\\ufe2f",KL="\\u20d0-\\u20ff",z1=qL+UL+KL,V1="\\u2700-\\u27bf",H1="a-z\\xdf-\\xf6\\xf8-\\xff",YL="\\xac\\xb1\\xd7\\xf7",GL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JL="\\u2000-\\u206f",ZL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",W1="A-Z\\xc0-\\xd6\\xd8-\\xde",q1="\\ufe0e\\ufe0f",U1=YL+GL+JL+ZL,Th="['’]",XL="["+_u+"]",K1="["+U1+"]",ku="["+z1+"]",Y1="\\d+",QL="["+V1+"]",G1="["+H1+"]",J1="[^"+_u+U1+Y1+V1+H1+W1+"]",_h="\\ud83c[\\udffb-\\udfff]",ej="(?:"+ku+"|"+_h+")",Z1="[^"+_u+"]",kh="(?:\\ud83c[\\udde6-\\uddff]){2}",Eh="[\\ud800-\\udbff][\\udc00-\\udfff]",oa="["+W1+"]",X1="\\u200d",Q1="(?:"+G1+"|"+J1+")",tj="(?:"+oa+"|"+J1+")",eS="(?:"+Th+"(?:d|ll|m|re|s|t|ve))?",tS="(?:"+Th+"(?:D|LL|M|RE|S|T|VE))?",nS=ej+"?",rS="["+q1+"]?",nj="(?:"+X1+"(?:"+[Z1,kh,Eh].join("|")+")"+rS+nS+")*",rj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oS=rS+nS+nj,ij="(?:"+[QL,kh,Eh].join("|")+")"+oS,sj="(?:"+[Z1+ku+"?",ku,kh,Eh,XL].join("|")+")",aj=RegExp(Th,"g"),lj=RegExp(ku,"g"),Mh=RegExp(_h+"(?="+_h+")|"+sj+oS,"g"),cj=RegExp([oa+"?"+G1+"+"+eS+"(?="+[K1,oa,"$"].join("|")+")",tj+"+"+tS+"(?="+[K1,oa+Q1,"$"].join("|")+")",oa+"?"+Q1+"+"+eS,oa+"+"+tS,oj,rj,Y1,ij].join("|"),"g"),uj=RegExp("["+X1+_u+z1+q1+"]"),dj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pj=-1,Ht={};Ht[wn]=Ht[Fn]=Ht[dt]=Ht[In]=Ht[Vt]=Ht[me]=Ht[Le]=Ht[ke]=Ht[je]=!0,Ht[Q]=Ht[fe]=Ht[nn]=Ht[ae]=Ht[Dt]=Ht[W]=Ht[ue]=Ht[ee]=Ht[de]=Ht[ye]=Ht[Se]=Ht[Ve]=Ht[Ge]=Ht[Ie]=Ht[Gt]=!1;var $t={};$t[Q]=$t[fe]=$t[nn]=$t[Dt]=$t[ae]=$t[W]=$t[wn]=$t[Fn]=$t[dt]=$t[In]=$t[Vt]=$t[de]=$t[ye]=$t[Se]=$t[Ve]=$t[Ge]=$t[Ie]=$t[st]=$t[me]=$t[Le]=$t[ke]=$t[je]=!0,$t[ue]=$t[ee]=$t[Gt]=!1;var hj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gj={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bj=parseFloat,vj=parseInt,iS=typeof Li=="object"&&Li&&Li.Object===Object&&Li,xj=typeof self=="object"&&self&&self.Object===Object&&self,Dn=iS||xj||Function("return this")(),Oh=e&&!e.nodeType&&e,as=Oh&&!0&&t&&!t.nodeType&&t,sS=as&&as.exports===Oh,Rh=sS&&iS.process,Rr=function(){try{var re=as&&as.require&&as.require("util").types;return re||Rh&&Rh.binding&&Rh.binding("util")}catch{}}(),aS=Rr&&Rr.isArrayBuffer,lS=Rr&&Rr.isDate,cS=Rr&&Rr.isMap,uS=Rr&&Rr.isRegExp,dS=Rr&&Rr.isSet,fS=Rr&&Rr.isTypedArray;function br(re,xe,pe){switch(pe.length){case 0:return re.call(xe);case 1:return re.call(xe,pe[0]);case 2:return re.call(xe,pe[0],pe[1]);case 3:return re.call(xe,pe[0],pe[1],pe[2])}return re.apply(xe,pe)}function Sj(re,xe,pe,Be){for(var nt=-1,Ct=re==null?0:re.length;++nt<Ct;){var vn=re[nt];xe(Be,vn,pe(vn),re)}return Be}function Ar(re,xe){for(var pe=-1,Be=re==null?0:re.length;++pe<Be&&xe(re[pe],pe,re)!==!1;);return re}function Cj(re,xe){for(var pe=re==null?0:re.length;pe--&&xe(re[pe],pe,re)!==!1;);return re}function pS(re,xe){for(var pe=-1,Be=re==null?0:re.length;++pe<Be;)if(!xe(re[pe],pe,re))return!1;return!0}function yi(re,xe){for(var pe=-1,Be=re==null?0:re.length,nt=0,Ct=[];++pe<Be;){var vn=re[pe];xe(vn,pe,re)&&(Ct[nt++]=vn)}return Ct}function Eu(re,xe){var pe=re==null?0:re.length;return!!pe&&ia(re,xe,0)>-1}function Ah(re,xe,pe){for(var Be=-1,nt=re==null?0:re.length;++Be<nt;)if(pe(xe,re[Be]))return!0;return!1}function Jt(re,xe){for(var pe=-1,Be=re==null?0:re.length,nt=Array(Be);++pe<Be;)nt[pe]=xe(re[pe],pe,re);return nt}function bi(re,xe){for(var pe=-1,Be=xe.length,nt=re.length;++pe<Be;)re[nt+pe]=xe[pe];return re}function Ih(re,xe,pe,Be){var nt=-1,Ct=re==null?0:re.length;for(Be&&Ct&&(pe=re[++nt]);++nt<Ct;)pe=xe(pe,re[nt],nt,re);return pe}function wj(re,xe,pe,Be){var nt=re==null?0:re.length;for(Be&&nt&&(pe=re[--nt]);nt--;)pe=xe(pe,re[nt],nt,re);return pe}function Dh(re,xe){for(var pe=-1,Be=re==null?0:re.length;++pe<Be;)if(xe(re[pe],pe,re))return!0;return!1}var Tj=Ph("length");function _j(re){return re.split("")}function kj(re){return re.match(PL)||[]}function hS(re,xe,pe){var Be;return pe(re,function(nt,Ct,vn){if(xe(nt,Ct,vn))return Be=Ct,!1}),Be}function Mu(re,xe,pe,Be){for(var nt=re.length,Ct=pe+(Be?1:-1);Be?Ct--:++Ct<nt;)if(xe(re[Ct],Ct,re))return Ct;return-1}function ia(re,xe,pe){return xe===xe?$j(re,xe,pe):Mu(re,mS,pe)}function Ej(re,xe,pe,Be){for(var nt=pe-1,Ct=re.length;++nt<Ct;)if(Be(re[nt],xe))return nt;return-1}function mS(re){return re!==re}function gS(re,xe){var pe=re==null?0:re.length;return pe?Lh(re,xe)/pe:Y}function Ph(re){return function(xe){return xe==null?n:xe[re]}}function Nh(re){return function(xe){return re==null?n:re[xe]}}function yS(re,xe,pe,Be,nt){return nt(re,function(Ct,vn,Pt){pe=Be?(Be=!1,Ct):xe(pe,Ct,vn,Pt)}),pe}function Mj(re,xe){var pe=re.length;for(re.sort(xe);pe--;)re[pe]=re[pe].value;return re}function Lh(re,xe){for(var pe,Be=-1,nt=re.length;++Be<nt;){var Ct=xe(re[Be]);Ct!==n&&(pe=pe===n?Ct:pe+Ct)}return pe}function jh(re,xe){for(var pe=-1,Be=Array(re);++pe<re;)Be[pe]=xe(pe);return Be}function Oj(re,xe){return Jt(xe,function(pe){return[pe,re[pe]]})}function bS(re){return re&&re.slice(0,CS(re)+1).replace(wh,"")}function vr(re){return function(xe){return re(xe)}}function $h(re,xe){return Jt(xe,function(pe){return re[pe]})}function xl(re,xe){return re.has(xe)}function vS(re,xe){for(var pe=-1,Be=re.length;++pe<Be&&ia(xe,re[pe],0)>-1;);return pe}function xS(re,xe){for(var pe=re.length;pe--&&ia(xe,re[pe],0)>-1;);return pe}function Rj(re,xe){for(var pe=re.length,Be=0;pe--;)re[pe]===xe&&++Be;return Be}var Aj=Nh(hj),Ij=Nh(mj);function Dj(re){return"\\"+yj[re]}function Pj(re,xe){return re==null?n:re[xe]}function sa(re){return uj.test(re)}function Nj(re){return dj.test(re)}function Lj(re){for(var xe,pe=[];!(xe=re.next()).done;)pe.push(xe.value);return pe}function Fh(re){var xe=-1,pe=Array(re.size);return re.forEach(function(Be,nt){pe[++xe]=[nt,Be]}),pe}function SS(re,xe){return function(pe){return re(xe(pe))}}function vi(re,xe){for(var pe=-1,Be=re.length,nt=0,Ct=[];++pe<Be;){var vn=re[pe];(vn===xe||vn===f)&&(re[pe]=f,Ct[nt++]=pe)}return Ct}function Ou(re){var xe=-1,pe=Array(re.size);return re.forEach(function(Be){pe[++xe]=Be}),pe}function jj(re){var xe=-1,pe=Array(re.size);return re.forEach(function(Be){pe[++xe]=[Be,Be]}),pe}function $j(re,xe,pe){for(var Be=pe-1,nt=re.length;++Be<nt;)if(re[Be]===xe)return Be;return-1}function Fj(re,xe,pe){for(var Be=pe+1;Be--;)if(re[Be]===xe)return Be;return Be}function aa(re){return sa(re)?zj(re):Tj(re)}function Qr(re){return sa(re)?Vj(re):_j(re)}function CS(re){for(var xe=re.length;xe--&&RL.test(re.charAt(xe)););return xe}var Bj=Nh(gj);function zj(re){for(var xe=Mh.lastIndex=0;Mh.test(re);)++xe;return xe}function Vj(re){return re.match(Mh)||[]}function Hj(re){return re.match(cj)||[]}var Wj=function re(xe){xe=xe==null?Dn:la.defaults(Dn.Object(),xe,la.pick(Dn,fj));var pe=xe.Array,Be=xe.Date,nt=xe.Error,Ct=xe.Function,vn=xe.Math,Pt=xe.Object,Bh=xe.RegExp,qj=xe.String,Ir=xe.TypeError,Ru=pe.prototype,Uj=Ct.prototype,ca=Pt.prototype,Au=xe["__core-js_shared__"],Iu=Uj.toString,Mt=ca.hasOwnProperty,Kj=0,wS=function(){var d=/[^.]+$/.exec(Au&&Au.keys&&Au.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),Du=ca.toString,Yj=Iu.call(Pt),Gj=Dn._,Jj=Bh("^"+Iu.call(Mt).replace(Ch,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pu=sS?xe.Buffer:n,xi=xe.Symbol,Nu=xe.Uint8Array,TS=Pu?Pu.allocUnsafe:n,Lu=SS(Pt.getPrototypeOf,Pt),_S=Pt.create,kS=ca.propertyIsEnumerable,ju=Ru.splice,ES=xi?xi.isConcatSpreadable:n,Sl=xi?xi.iterator:n,ls=xi?xi.toStringTag:n,$u=function(){try{var d=ps(Pt,"defineProperty");return d({},"",{}),d}catch{}}(),Zj=xe.clearTimeout!==Dn.clearTimeout&&xe.clearTimeout,Xj=Be&&Be.now!==Dn.Date.now&&Be.now,Qj=xe.setTimeout!==Dn.setTimeout&&xe.setTimeout,Fu=vn.ceil,Bu=vn.floor,zh=Pt.getOwnPropertySymbols,e$=Pu?Pu.isBuffer:n,MS=xe.isFinite,t$=Ru.join,n$=SS(Pt.keys,Pt),xn=vn.max,Bn=vn.min,r$=Be.now,o$=xe.parseInt,OS=vn.random,i$=Ru.reverse,Vh=ps(xe,"DataView"),Cl=ps(xe,"Map"),Hh=ps(xe,"Promise"),ua=ps(xe,"Set"),wl=ps(xe,"WeakMap"),Tl=ps(Pt,"create"),zu=wl&&new wl,da={},s$=hs(Vh),a$=hs(Cl),l$=hs(Hh),c$=hs(ua),u$=hs(wl),Vu=xi?xi.prototype:n,_l=Vu?Vu.valueOf:n,RS=Vu?Vu.toString:n;function V(d){if(rn(d)&&!ot(d)&&!(d instanceof ht)){if(d instanceof Dr)return d;if(Mt.call(d,"__wrapped__"))return AC(d)}return new Dr(d)}var fa=function(){function d(){}return function(h){if(!Qt(h))return{};if(_S)return _S(h);d.prototype=h;var x=new d;return d.prototype=n,x}}();function Hu(){}function Dr(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}V.templateSettings={escape:na,evaluate:gi,interpolate:wu,variable:"",imports:{_:V}},V.prototype=Hu.prototype,V.prototype.constructor=V,Dr.prototype=fa(Hu.prototype),Dr.prototype.constructor=Dr;function ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function d$(){var d=new ht(this.__wrapped__);return d.__actions__=ar(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=ar(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=ar(this.__views__),d}function f$(){if(this.__filtered__){var d=new ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function p$(){var d=this.__wrapped__.value(),h=this.__dir__,x=ot(d),k=h<0,I=x?d.length:0,H=_F(0,I,this.__views__),U=H.start,X=H.end,ie=X-U,Ce=k?X:U-1,we=this.__iteratees__,Ee=we.length,De=0,He=Bn(ie,this.__takeCount__);if(!x||!k&&I==ie&&He==ie)return eC(d,this.__actions__);var Xe=[];e:for(;ie--&&De<He;){Ce+=h;for(var at=-1,Qe=d[Ce];++at<Ee;){var ft=we[at],gt=ft.iteratee,Cr=ft.type,Xn=gt(Qe);if(Cr==$)Qe=Xn;else if(!Xn){if(Cr==F)continue e;break e}}Xe[De++]=Qe}return Xe}ht.prototype=fa(Hu.prototype),ht.prototype.constructor=ht;function cs(d){var h=-1,x=d==null?0:d.length;for(this.clear();++h<x;){var k=d[h];this.set(k[0],k[1])}}function h$(){this.__data__=Tl?Tl(null):{},this.size=0}function m$(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function g$(d){var h=this.__data__;if(Tl){var x=h[d];return x===l?n:x}return Mt.call(h,d)?h[d]:n}function y$(d){var h=this.__data__;return Tl?h[d]!==n:Mt.call(h,d)}function b$(d,h){var x=this.__data__;return this.size+=this.has(d)?0:1,x[d]=Tl&&h===n?l:h,this}cs.prototype.clear=h$,cs.prototype.delete=m$,cs.prototype.get=g$,cs.prototype.has=y$,cs.prototype.set=b$;function Bo(d){var h=-1,x=d==null?0:d.length;for(this.clear();++h<x;){var k=d[h];this.set(k[0],k[1])}}function v$(){this.__data__=[],this.size=0}function x$(d){var h=this.__data__,x=Wu(h,d);if(x<0)return!1;var k=h.length-1;return x==k?h.pop():ju.call(h,x,1),--this.size,!0}function S$(d){var h=this.__data__,x=Wu(h,d);return x<0?n:h[x][1]}function C$(d){return Wu(this.__data__,d)>-1}function w$(d,h){var x=this.__data__,k=Wu(x,d);return k<0?(++this.size,x.push([d,h])):x[k][1]=h,this}Bo.prototype.clear=v$,Bo.prototype.delete=x$,Bo.prototype.get=S$,Bo.prototype.has=C$,Bo.prototype.set=w$;function zo(d){var h=-1,x=d==null?0:d.length;for(this.clear();++h<x;){var k=d[h];this.set(k[0],k[1])}}function T$(){this.size=0,this.__data__={hash:new cs,map:new(Cl||Bo),string:new cs}}function _$(d){var h=nd(this,d).delete(d);return this.size-=h?1:0,h}function k$(d){return nd(this,d).get(d)}function E$(d){return nd(this,d).has(d)}function M$(d,h){var x=nd(this,d),k=x.size;return x.set(d,h),this.size+=x.size==k?0:1,this}zo.prototype.clear=T$,zo.prototype.delete=_$,zo.prototype.get=k$,zo.prototype.has=E$,zo.prototype.set=M$;function us(d){var h=-1,x=d==null?0:d.length;for(this.__data__=new zo;++h<x;)this.add(d[h])}function O$(d){return this.__data__.set(d,l),this}function R$(d){return this.__data__.has(d)}us.prototype.add=us.prototype.push=O$,us.prototype.has=R$;function eo(d){var h=this.__data__=new Bo(d);this.size=h.size}function A$(){this.__data__=new Bo,this.size=0}function I$(d){var h=this.__data__,x=h.delete(d);return this.size=h.size,x}function D$(d){return this.__data__.get(d)}function P$(d){return this.__data__.has(d)}function N$(d,h){var x=this.__data__;if(x instanceof Bo){var k=x.__data__;if(!Cl||k.length<o-1)return k.push([d,h]),this.size=++x.size,this;x=this.__data__=new zo(k)}return x.set(d,h),this.size=x.size,this}eo.prototype.clear=A$,eo.prototype.delete=I$,eo.prototype.get=D$,eo.prototype.has=P$,eo.prototype.set=N$;function AS(d,h){var x=ot(d),k=!x&&ms(d),I=!x&&!k&&_i(d),H=!x&&!k&&!I&&ga(d),U=x||k||I||H,X=U?jh(d.length,qj):[],ie=X.length;for(var Ce in d)(h||Mt.call(d,Ce))&&!(U&&(Ce=="length"||I&&(Ce=="offset"||Ce=="parent")||H&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||qo(Ce,ie)))&&X.push(Ce);return X}function IS(d){var h=d.length;return h?d[em(0,h-1)]:n}function L$(d,h){return rd(ar(d),ds(h,0,d.length))}function j$(d){return rd(ar(d))}function Wh(d,h,x){(x!==n&&!to(d[h],x)||x===n&&!(h in d))&&Vo(d,h,x)}function kl(d,h,x){var k=d[h];(!(Mt.call(d,h)&&to(k,x))||x===n&&!(h in d))&&Vo(d,h,x)}function Wu(d,h){for(var x=d.length;x--;)if(to(d[x][0],h))return x;return-1}function $$(d,h,x,k){return Si(d,function(I,H,U){h(k,I,x(I),U)}),k}function DS(d,h){return d&&yo(h,Tn(h),d)}function F$(d,h){return d&&yo(h,cr(h),d)}function Vo(d,h,x){h=="__proto__"&&$u?$u(d,h,{configurable:!0,enumerable:!0,value:x,writable:!0}):d[h]=x}function qh(d,h){for(var x=-1,k=h.length,I=pe(k),H=d==null;++x<k;)I[x]=H?n:_m(d,h[x]);return I}function ds(d,h,x){return d===d&&(x!==n&&(d=d<=x?d:x),h!==n&&(d=d>=h?d:h)),d}function Pr(d,h,x,k,I,H){var U,X=h&p,ie=h&m,Ce=h&g;if(x&&(U=I?x(d,k,I,H):x(d)),U!==n)return U;if(!Qt(d))return d;var we=ot(d);if(we){if(U=EF(d),!X)return ar(d,U)}else{var Ee=zn(d),De=Ee==ee||Ee==se;if(_i(d))return rC(d,X);if(Ee==Se||Ee==Q||De&&!I){if(U=ie||De?{}:CC(d),!X)return ie?gF(d,F$(U,d)):mF(d,DS(U,d))}else{if(!$t[Ee])return I?d:{};U=MF(d,Ee,X)}}H||(H=new eo);var He=H.get(d);if(He)return He;H.set(d,U),ZC(d)?d.forEach(function(Qe){U.add(Pr(Qe,h,x,Qe,d,H))}):GC(d)&&d.forEach(function(Qe,ft){U.set(ft,Pr(Qe,h,x,ft,d,H))});var Xe=Ce?ie?dm:um:ie?cr:Tn,at=we?n:Xe(d);return Ar(at||d,function(Qe,ft){at&&(ft=Qe,Qe=d[ft]),kl(U,ft,Pr(Qe,h,x,ft,d,H))}),U}function B$(d){var h=Tn(d);return function(x){return PS(x,d,h)}}function PS(d,h,x){var k=x.length;if(d==null)return!k;for(d=Pt(d);k--;){var I=x[k],H=h[I],U=d[I];if(U===n&&!(I in d)||!H(U))return!1}return!0}function NS(d,h,x){if(typeof d!="function")throw new Ir(s);return Dl(function(){d.apply(n,x)},h)}function El(d,h,x,k){var I=-1,H=Eu,U=!0,X=d.length,ie=[],Ce=h.length;if(!X)return ie;x&&(h=Jt(h,vr(x))),k?(H=Ah,U=!1):h.length>=o&&(H=xl,U=!1,h=new us(h));e:for(;++I<X;){var we=d[I],Ee=x==null?we:x(we);if(we=k||we!==0?we:0,U&&Ee===Ee){for(var De=Ce;De--;)if(h[De]===Ee)continue e;ie.push(we)}else H(h,Ee,k)||ie.push(we)}return ie}var Si=lC(go),LS=lC(Kh,!0);function z$(d,h){var x=!0;return Si(d,function(k,I,H){return x=!!h(k,I,H),x}),x}function qu(d,h,x){for(var k=-1,I=d.length;++k<I;){var H=d[k],U=h(H);if(U!=null&&(X===n?U===U&&!Sr(U):x(U,X)))var X=U,ie=H}return ie}function V$(d,h,x,k){var I=d.length;for(x=it(x),x<0&&(x=-x>I?0:I+x),k=k===n||k>I?I:it(k),k<0&&(k+=I),k=x>k?0:QC(k);x<k;)d[x++]=h;return d}function jS(d,h){var x=[];return Si(d,function(k,I,H){h(k,I,H)&&x.push(k)}),x}function Pn(d,h,x,k,I){var H=-1,U=d.length;for(x||(x=RF),I||(I=[]);++H<U;){var X=d[H];h>0&&x(X)?h>1?Pn(X,h-1,x,k,I):bi(I,X):k||(I[I.length]=X)}return I}var Uh=cC(),$S=cC(!0);function go(d,h){return d&&Uh(d,h,Tn)}function Kh(d,h){return d&&$S(d,h,Tn)}function Uu(d,h){return yi(h,function(x){return Uo(d[x])})}function fs(d,h){h=wi(h,d);for(var x=0,k=h.length;d!=null&&x<k;)d=d[bo(h[x++])];return x&&x==k?d:n}function FS(d,h,x){var k=h(d);return ot(d)?k:bi(k,x(d))}function Jn(d){return d==null?d===n?xt:Te:ls&&ls in Pt(d)?TF(d):jF(d)}function Yh(d,h){return d>h}function H$(d,h){return d!=null&&Mt.call(d,h)}function W$(d,h){return d!=null&&h in Pt(d)}function q$(d,h,x){return d>=Bn(h,x)&&d<xn(h,x)}function Gh(d,h,x){for(var k=x?Ah:Eu,I=d[0].length,H=d.length,U=H,X=pe(H),ie=1/0,Ce=[];U--;){var we=d[U];U&&h&&(we=Jt(we,vr(h))),ie=Bn(we.length,ie),X[U]=!x&&(h||I>=120&&we.length>=120)?new us(U&&we):n}we=d[0];var Ee=-1,De=X[0];e:for(;++Ee<I&&Ce.length<ie;){var He=we[Ee],Xe=h?h(He):He;if(He=x||He!==0?He:0,!(De?xl(De,Xe):k(Ce,Xe,x))){for(U=H;--U;){var at=X[U];if(!(at?xl(at,Xe):k(d[U],Xe,x)))continue e}De&&De.push(Xe),Ce.push(He)}}return Ce}function U$(d,h,x,k){return go(d,function(I,H,U){h(k,x(I),H,U)}),k}function Ml(d,h,x){h=wi(h,d),d=kC(d,h);var k=d==null?d:d[bo(Lr(h))];return k==null?n:br(k,d,x)}function BS(d){return rn(d)&&Jn(d)==Q}function K$(d){return rn(d)&&Jn(d)==nn}function Y$(d){return rn(d)&&Jn(d)==W}function Ol(d,h,x,k,I){return d===h?!0:d==null||h==null||!rn(d)&&!rn(h)?d!==d&&h!==h:G$(d,h,x,k,Ol,I)}function G$(d,h,x,k,I,H){var U=ot(d),X=ot(h),ie=U?fe:zn(d),Ce=X?fe:zn(h);ie=ie==Q?Se:ie,Ce=Ce==Q?Se:Ce;var we=ie==Se,Ee=Ce==Se,De=ie==Ce;if(De&&_i(d)){if(!_i(h))return!1;U=!0,we=!1}if(De&&!we)return H||(H=new eo),U||ga(d)?vC(d,h,x,k,I,H):CF(d,h,ie,x,k,I,H);if(!(x&y)){var He=we&&Mt.call(d,"__wrapped__"),Xe=Ee&&Mt.call(h,"__wrapped__");if(He||Xe){var at=He?d.value():d,Qe=Xe?h.value():h;return H||(H=new eo),I(at,Qe,x,k,H)}}return De?(H||(H=new eo),wF(d,h,x,k,I,H)):!1}function J$(d){return rn(d)&&zn(d)==de}function Jh(d,h,x,k){var I=x.length,H=I,U=!k;if(d==null)return!H;for(d=Pt(d);I--;){var X=x[I];if(U&&X[2]?X[1]!==d[X[0]]:!(X[0]in d))return!1}for(;++I<H;){X=x[I];var ie=X[0],Ce=d[ie],we=X[1];if(U&&X[2]){if(Ce===n&&!(ie in d))return!1}else{var Ee=new eo;if(k)var De=k(Ce,we,ie,d,h,Ee);if(!(De===n?Ol(we,Ce,y|b,k,Ee):De))return!1}}return!0}function zS(d){if(!Qt(d)||IF(d))return!1;var h=Uo(d)?Jj:BL;return h.test(hs(d))}function Z$(d){return rn(d)&&Jn(d)==Ve}function X$(d){return rn(d)&&zn(d)==Ge}function Q$(d){return rn(d)&&cd(d.length)&&!!Ht[Jn(d)]}function VS(d){return typeof d=="function"?d:d==null?ur:typeof d=="object"?ot(d)?qS(d[0],d[1]):WS(d):uw(d)}function Zh(d){if(!Il(d))return n$(d);var h=[];for(var x in Pt(d))Mt.call(d,x)&&x!="constructor"&&h.push(x);return h}function eF(d){if(!Qt(d))return LF(d);var h=Il(d),x=[];for(var k in d)k=="constructor"&&(h||!Mt.call(d,k))||x.push(k);return x}function Xh(d,h){return d<h}function HS(d,h){var x=-1,k=lr(d)?pe(d.length):[];return Si(d,function(I,H,U){k[++x]=h(I,H,U)}),k}function WS(d){var h=pm(d);return h.length==1&&h[0][2]?TC(h[0][0],h[0][1]):function(x){return x===d||Jh(x,d,h)}}function qS(d,h){return mm(d)&&wC(h)?TC(bo(d),h):function(x){var k=_m(x,d);return k===n&&k===h?km(x,d):Ol(h,k,y|b)}}function Ku(d,h,x,k,I){d!==h&&Uh(h,function(H,U){if(I||(I=new eo),Qt(H))tF(d,h,U,x,Ku,k,I);else{var X=k?k(ym(d,U),H,U+"",d,h,I):n;X===n&&(X=H),Wh(d,U,X)}},cr)}function tF(d,h,x,k,I,H,U){var X=ym(d,x),ie=ym(h,x),Ce=U.get(ie);if(Ce){Wh(d,x,Ce);return}var we=H?H(X,ie,x+"",d,h,U):n,Ee=we===n;if(Ee){var De=ot(ie),He=!De&&_i(ie),Xe=!De&&!He&&ga(ie);we=ie,De||He||Xe?ot(X)?we=X:dn(X)?we=ar(X):He?(Ee=!1,we=rC(ie,!0)):Xe?(Ee=!1,we=oC(ie,!0)):we=[]:Pl(ie)||ms(ie)?(we=X,ms(X)?we=ew(X):(!Qt(X)||Uo(X))&&(we=CC(ie))):Ee=!1}Ee&&(U.set(ie,we),I(we,ie,k,H,U),U.delete(ie)),Wh(d,x,we)}function US(d,h){var x=d.length;if(x)return h+=h<0?x:0,qo(h,x)?d[h]:n}function KS(d,h,x){h.length?h=Jt(h,function(H){return ot(H)?function(U){return fs(U,H.length===1?H[0]:H)}:H}):h=[ur];var k=-1;h=Jt(h,vr(Ze()));var I=HS(d,function(H,U,X){var ie=Jt(h,function(Ce){return Ce(H)});return{criteria:ie,index:++k,value:H}});return Mj(I,function(H,U){return hF(H,U,x)})}function nF(d,h){return YS(d,h,function(x,k){return km(d,k)})}function YS(d,h,x){for(var k=-1,I=h.length,H={};++k<I;){var U=h[k],X=fs(d,U);x(X,U)&&Rl(H,wi(U,d),X)}return H}function rF(d){return function(h){return fs(h,d)}}function Qh(d,h,x,k){var I=k?Ej:ia,H=-1,U=h.length,X=d;for(d===h&&(h=ar(h)),x&&(X=Jt(d,vr(x)));++H<U;)for(var ie=0,Ce=h[H],we=x?x(Ce):Ce;(ie=I(X,we,ie,k))>-1;)X!==d&&ju.call(X,ie,1),ju.call(d,ie,1);return d}function GS(d,h){for(var x=d?h.length:0,k=x-1;x--;){var I=h[x];if(x==k||I!==H){var H=I;qo(I)?ju.call(d,I,1):rm(d,I)}}return d}function em(d,h){return d+Bu(OS()*(h-d+1))}function oF(d,h,x,k){for(var I=-1,H=xn(Fu((h-d)/(x||1)),0),U=pe(H);H--;)U[k?H:++I]=d,d+=x;return U}function tm(d,h){var x="";if(!d||h<1||h>K)return x;do h%2&&(x+=d),h=Bu(h/2),h&&(d+=d);while(h);return x}function ut(d,h){return bm(_C(d,h,ur),d+"")}function iF(d){return IS(ya(d))}function sF(d,h){var x=ya(d);return rd(x,ds(h,0,x.length))}function Rl(d,h,x,k){if(!Qt(d))return d;h=wi(h,d);for(var I=-1,H=h.length,U=H-1,X=d;X!=null&&++I<H;){var ie=bo(h[I]),Ce=x;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return d;if(I!=U){var we=X[ie];Ce=k?k(we,ie,X):n,Ce===n&&(Ce=Qt(we)?we:qo(h[I+1])?[]:{})}kl(X,ie,Ce),X=X[ie]}return d}var JS=zu?function(d,h){return zu.set(d,h),d}:ur,aF=$u?function(d,h){return $u(d,"toString",{configurable:!0,enumerable:!1,value:Mm(h),writable:!0})}:ur;function lF(d){return rd(ya(d))}function Nr(d,h,x){var k=-1,I=d.length;h<0&&(h=-h>I?0:I+h),x=x>I?I:x,x<0&&(x+=I),I=h>x?0:x-h>>>0,h>>>=0;for(var H=pe(I);++k<I;)H[k]=d[k+h];return H}function cF(d,h){var x;return Si(d,function(k,I,H){return x=h(k,I,H),!x}),!!x}function Yu(d,h,x){var k=0,I=d==null?k:d.length;if(typeof h=="number"&&h===h&&I<=he){for(;k<I;){var H=k+I>>>1,U=d[H];U!==null&&!Sr(U)&&(x?U<=h:U<h)?k=H+1:I=H}return I}return nm(d,h,ur,x)}function nm(d,h,x,k){var I=0,H=d==null?0:d.length;if(H===0)return 0;h=x(h);for(var U=h!==h,X=h===null,ie=Sr(h),Ce=h===n;I<H;){var we=Bu((I+H)/2),Ee=x(d[we]),De=Ee!==n,He=Ee===null,Xe=Ee===Ee,at=Sr(Ee);if(U)var Qe=k||Xe;else Ce?Qe=Xe&&(k||De):X?Qe=Xe&&De&&(k||!He):ie?Qe=Xe&&De&&!He&&(k||!at):He||at?Qe=!1:Qe=k?Ee<=h:Ee<h;Qe?I=we+1:H=we}return Bn(H,ge)}function ZS(d,h){for(var x=-1,k=d.length,I=0,H=[];++x<k;){var U=d[x],X=h?h(U):U;if(!x||!to(X,ie)){var ie=X;H[I++]=U===0?0:U}}return H}function XS(d){return typeof d=="number"?d:Sr(d)?Y:+d}function xr(d){if(typeof d=="string")return d;if(ot(d))return Jt(d,xr)+"";if(Sr(d))return RS?RS.call(d):"";var h=d+"";return h=="0"&&1/d==-q?"-0":h}function Ci(d,h,x){var k=-1,I=Eu,H=d.length,U=!0,X=[],ie=X;if(x)U=!1,I=Ah;else if(H>=o){var Ce=h?null:xF(d);if(Ce)return Ou(Ce);U=!1,I=xl,ie=new us}else ie=h?[]:X;e:for(;++k<H;){var we=d[k],Ee=h?h(we):we;if(we=x||we!==0?we:0,U&&Ee===Ee){for(var De=ie.length;De--;)if(ie[De]===Ee)continue e;h&&ie.push(Ee),X.push(we)}else I(ie,Ee,x)||(ie!==X&&ie.push(Ee),X.push(we))}return X}function rm(d,h){return h=wi(h,d),d=kC(d,h),d==null||delete d[bo(Lr(h))]}function QS(d,h,x,k){return Rl(d,h,x(fs(d,h)),k)}function Gu(d,h,x,k){for(var I=d.length,H=k?I:-1;(k?H--:++H<I)&&h(d[H],H,d););return x?Nr(d,k?0:H,k?H+1:I):Nr(d,k?H+1:0,k?I:H)}function eC(d,h){var x=d;return x instanceof ht&&(x=x.value()),Ih(h,function(k,I){return I.func.apply(I.thisArg,bi([k],I.args))},x)}function om(d,h,x){var k=d.length;if(k<2)return k?Ci(d[0]):[];for(var I=-1,H=pe(k);++I<k;)for(var U=d[I],X=-1;++X<k;)X!=I&&(H[I]=El(H[I]||U,d[X],h,x));return Ci(Pn(H,1),h,x)}function tC(d,h,x){for(var k=-1,I=d.length,H=h.length,U={};++k<I;){var X=k<H?h[k]:n;x(U,d[k],X)}return U}function im(d){return dn(d)?d:[]}function sm(d){return typeof d=="function"?d:ur}function wi(d,h){return ot(d)?d:mm(d,h)?[d]:RC(Tt(d))}var uF=ut;function Ti(d,h,x){var k=d.length;return x=x===n?k:x,!h&&x>=k?d:Nr(d,h,x)}var nC=Zj||function(d){return Dn.clearTimeout(d)};function rC(d,h){if(h)return d.slice();var x=d.length,k=TS?TS(x):new d.constructor(x);return d.copy(k),k}function am(d){var h=new d.constructor(d.byteLength);return new Nu(h).set(new Nu(d)),h}function dF(d,h){var x=h?am(d.buffer):d.buffer;return new d.constructor(x,d.byteOffset,d.byteLength)}function fF(d){var h=new d.constructor(d.source,B1.exec(d));return h.lastIndex=d.lastIndex,h}function pF(d){return _l?Pt(_l.call(d)):{}}function oC(d,h){var x=h?am(d.buffer):d.buffer;return new d.constructor(x,d.byteOffset,d.length)}function iC(d,h){if(d!==h){var x=d!==n,k=d===null,I=d===d,H=Sr(d),U=h!==n,X=h===null,ie=h===h,Ce=Sr(h);if(!X&&!Ce&&!H&&d>h||H&&U&&ie&&!X&&!Ce||k&&U&&ie||!x&&ie||!I)return 1;if(!k&&!H&&!Ce&&d<h||Ce&&x&&I&&!k&&!H||X&&x&&I||!U&&I||!ie)return-1}return 0}function hF(d,h,x){for(var k=-1,I=d.criteria,H=h.criteria,U=I.length,X=x.length;++k<U;){var ie=iC(I[k],H[k]);if(ie){if(k>=X)return ie;var Ce=x[k];return ie*(Ce=="desc"?-1:1)}}return d.index-h.index}function sC(d,h,x,k){for(var I=-1,H=d.length,U=x.length,X=-1,ie=h.length,Ce=xn(H-U,0),we=pe(ie+Ce),Ee=!k;++X<ie;)we[X]=h[X];for(;++I<U;)(Ee||I<H)&&(we[x[I]]=d[I]);for(;Ce--;)we[X++]=d[I++];return we}function aC(d,h,x,k){for(var I=-1,H=d.length,U=-1,X=x.length,ie=-1,Ce=h.length,we=xn(H-X,0),Ee=pe(we+Ce),De=!k;++I<we;)Ee[I]=d[I];for(var He=I;++ie<Ce;)Ee[He+ie]=h[ie];for(;++U<X;)(De||I<H)&&(Ee[He+x[U]]=d[I++]);return Ee}function ar(d,h){var x=-1,k=d.length;for(h||(h=pe(k));++x<k;)h[x]=d[x];return h}function yo(d,h,x,k){var I=!x;x||(x={});for(var H=-1,U=h.length;++H<U;){var X=h[H],ie=k?k(x[X],d[X],X,x,d):n;ie===n&&(ie=d[X]),I?Vo(x,X,ie):kl(x,X,ie)}return x}function mF(d,h){return yo(d,hm(d),h)}function gF(d,h){return yo(d,xC(d),h)}function Ju(d,h){return function(x,k){var I=ot(x)?Sj:$$,H=h?h():{};return I(x,d,Ze(k,2),H)}}function pa(d){return ut(function(h,x){var k=-1,I=x.length,H=I>1?x[I-1]:n,U=I>2?x[2]:n;for(H=d.length>3&&typeof H=="function"?(I--,H):n,U&&Zn(x[0],x[1],U)&&(H=I<3?n:H,I=1),h=Pt(h);++k<I;){var X=x[k];X&&d(h,X,k,H)}return h})}function lC(d,h){return function(x,k){if(x==null)return x;if(!lr(x))return d(x,k);for(var I=x.length,H=h?I:-1,U=Pt(x);(h?H--:++H<I)&&k(U[H],H,U)!==!1;);return x}}function cC(d){return function(h,x,k){for(var I=-1,H=Pt(h),U=k(h),X=U.length;X--;){var ie=U[d?X:++I];if(x(H[ie],ie,H)===!1)break}return h}}function yF(d,h,x){var k=h&S,I=Al(d);function H(){var U=this&&this!==Dn&&this instanceof H?I:d;return U.apply(k?x:this,arguments)}return H}function uC(d){return function(h){h=Tt(h);var x=sa(h)?Qr(h):n,k=x?x[0]:h.charAt(0),I=x?Ti(x,1).join(""):h.slice(1);return k[d]()+I}}function ha(d){return function(h){return Ih(lw(aw(h).replace(aj,"")),d,"")}}function Al(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var x=fa(d.prototype),k=d.apply(x,h);return Qt(k)?k:x}}function bF(d,h,x){var k=Al(d);function I(){for(var H=arguments.length,U=pe(H),X=H,ie=ma(I);X--;)U[X]=arguments[X];var Ce=H<3&&U[0]!==ie&&U[H-1]!==ie?[]:vi(U,ie);if(H-=Ce.length,H<x)return mC(d,h,Zu,I.placeholder,n,U,Ce,n,n,x-H);var we=this&&this!==Dn&&this instanceof I?k:d;return br(we,this,U)}return I}function dC(d){return function(h,x,k){var I=Pt(h);if(!lr(h)){var H=Ze(x,3);h=Tn(h),x=function(X){return H(I[X],X,I)}}var U=d(h,x,k);return U>-1?I[H?h[U]:U]:n}}function fC(d){return Wo(function(h){var x=h.length,k=x,I=Dr.prototype.thru;for(d&&h.reverse();k--;){var H=h[k];if(typeof H!="function")throw new Ir(s);if(I&&!U&&td(H)=="wrapper")var U=new Dr([],!0)}for(k=U?k:x;++k<x;){H=h[k];var X=td(H),ie=X=="wrapper"?fm(H):n;ie&&gm(ie[0])&&ie[1]==(N|T|E|D)&&!ie[4].length&&ie[9]==1?U=U[td(ie[0])].apply(U,ie[3]):U=H.length==1&&gm(H)?U[X]():U.thru(H)}return function(){var Ce=arguments,we=Ce[0];if(U&&Ce.length==1&&ot(we))return U.plant(we).value();for(var Ee=0,De=x?h[Ee].apply(this,Ce):we;++Ee<x;)De=h[Ee].call(this,De);return De}})}function Zu(d,h,x,k,I,H,U,X,ie,Ce){var we=h&N,Ee=h&S,De=h&C,He=h&(T|w),Xe=h&L,at=De?n:Al(d);function Qe(){for(var ft=arguments.length,gt=pe(ft),Cr=ft;Cr--;)gt[Cr]=arguments[Cr];if(He)var Xn=ma(Qe),wr=Rj(gt,Xn);if(k&&(gt=sC(gt,k,I,He)),H&&(gt=aC(gt,H,U,He)),ft-=wr,He&&ft<Ce){var fn=vi(gt,Xn);return mC(d,h,Zu,Qe.placeholder,x,gt,fn,X,ie,Ce-ft)}var no=Ee?x:this,Yo=De?no[d]:d;return ft=gt.length,X?gt=$F(gt,X):Xe&&ft>1&&gt.reverse(),we&&ie<ft&&(gt.length=ie),this&&this!==Dn&&this instanceof Qe&&(Yo=at||Al(Yo)),Yo.apply(no,gt)}return Qe}function pC(d,h){return function(x,k){return U$(x,d,h(k),{})}}function Xu(d,h){return function(x,k){var I;if(x===n&&k===n)return h;if(x!==n&&(I=x),k!==n){if(I===n)return k;typeof x=="string"||typeof k=="string"?(x=xr(x),k=xr(k)):(x=XS(x),k=XS(k)),I=d(x,k)}return I}}function lm(d){return Wo(function(h){return h=Jt(h,vr(Ze())),ut(function(x){var k=this;return d(h,function(I){return br(I,k,x)})})})}function Qu(d,h){h=h===n?" ":xr(h);var x=h.length;if(x<2)return x?tm(h,d):h;var k=tm(h,Fu(d/aa(h)));return sa(h)?Ti(Qr(k),0,d).join(""):k.slice(0,d)}function vF(d,h,x,k){var I=h&S,H=Al(d);function U(){for(var X=-1,ie=arguments.length,Ce=-1,we=k.length,Ee=pe(we+ie),De=this&&this!==Dn&&this instanceof U?H:d;++Ce<we;)Ee[Ce]=k[Ce];for(;ie--;)Ee[Ce++]=arguments[++X];return br(De,I?x:this,Ee)}return U}function hC(d){return function(h,x,k){return k&&typeof k!="number"&&Zn(h,x,k)&&(x=k=n),h=Ko(h),x===n?(x=h,h=0):x=Ko(x),k=k===n?h<x?1:-1:Ko(k),oF(h,x,k,d)}}function ed(d){return function(h,x){return typeof h=="string"&&typeof x=="string"||(h=jr(h),x=jr(x)),d(h,x)}}function mC(d,h,x,k,I,H,U,X,ie,Ce){var we=h&T,Ee=we?U:n,De=we?n:U,He=we?H:n,Xe=we?n:H;h|=we?E:O,h&=~(we?O:E),h&_||(h&=~(S|C));var at=[d,h,I,He,Ee,Xe,De,X,ie,Ce],Qe=x.apply(n,at);return gm(d)&&EC(Qe,at),Qe.placeholder=k,MC(Qe,d,h)}function cm(d){var h=vn[d];return function(x,k){if(x=jr(x),k=k==null?0:Bn(it(k),292),k&&MS(x)){var I=(Tt(x)+"e").split("e"),H=h(I[0]+"e"+(+I[1]+k));return I=(Tt(H)+"e").split("e"),+(I[0]+"e"+(+I[1]-k))}return h(x)}}var xF=ua&&1/Ou(new ua([,-0]))[1]==q?function(d){return new ua(d)}:Am;function gC(d){return function(h){var x=zn(h);return x==de?Fh(h):x==Ge?jj(h):Oj(h,d(h))}}function Ho(d,h,x,k,I,H,U,X){var ie=h&C;if(!ie&&typeof d!="function")throw new Ir(s);var Ce=k?k.length:0;if(Ce||(h&=~(E|O),k=I=n),U=U===n?U:xn(it(U),0),X=X===n?X:it(X),Ce-=I?I.length:0,h&O){var we=k,Ee=I;k=I=n}var De=ie?n:fm(d),He=[d,h,x,k,I,we,Ee,H,U,X];if(De&&NF(He,De),d=He[0],h=He[1],x=He[2],k=He[3],I=He[4],X=He[9]=He[9]===n?ie?0:d.length:xn(He[9]-Ce,0),!X&&h&(T|w)&&(h&=~(T|w)),!h||h==S)var Xe=yF(d,h,x);else h==T||h==w?Xe=bF(d,h,X):(h==E||h==(S|E))&&!I.length?Xe=vF(d,h,x,k):Xe=Zu.apply(n,He);var at=De?JS:EC;return MC(at(Xe,He),d,h)}function yC(d,h,x,k){return d===n||to(d,ca[x])&&!Mt.call(k,x)?h:d}function bC(d,h,x,k,I,H){return Qt(d)&&Qt(h)&&(H.set(h,d),Ku(d,h,n,bC,H),H.delete(h)),d}function SF(d){return Pl(d)?n:d}function vC(d,h,x,k,I,H){var U=x&y,X=d.length,ie=h.length;if(X!=ie&&!(U&&ie>X))return!1;var Ce=H.get(d),we=H.get(h);if(Ce&&we)return Ce==h&&we==d;var Ee=-1,De=!0,He=x&b?new us:n;for(H.set(d,h),H.set(h,d);++Ee<X;){var Xe=d[Ee],at=h[Ee];if(k)var Qe=U?k(at,Xe,Ee,h,d,H):k(Xe,at,Ee,d,h,H);if(Qe!==n){if(Qe)continue;De=!1;break}if(He){if(!Dh(h,function(ft,gt){if(!xl(He,gt)&&(Xe===ft||I(Xe,ft,x,k,H)))return He.push(gt)})){De=!1;break}}else if(!(Xe===at||I(Xe,at,x,k,H))){De=!1;break}}return H.delete(d),H.delete(h),De}function CF(d,h,x,k,I,H,U){switch(x){case Dt:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case nn:return!(d.byteLength!=h.byteLength||!H(new Nu(d),new Nu(h)));case ae:case W:case ye:return to(+d,+h);case ue:return d.name==h.name&&d.message==h.message;case Ve:case Ie:return d==h+"";case de:var X=Fh;case Ge:var ie=k&y;if(X||(X=Ou),d.size!=h.size&&!ie)return!1;var Ce=U.get(d);if(Ce)return Ce==h;k|=b,U.set(d,h);var we=vC(X(d),X(h),k,I,H,U);return U.delete(d),we;case st:if(_l)return _l.call(d)==_l.call(h)}return!1}function wF(d,h,x,k,I,H){var U=x&y,X=um(d),ie=X.length,Ce=um(h),we=Ce.length;if(ie!=we&&!U)return!1;for(var Ee=ie;Ee--;){var De=X[Ee];if(!(U?De in h:Mt.call(h,De)))return!1}var He=H.get(d),Xe=H.get(h);if(He&&Xe)return He==h&&Xe==d;var at=!0;H.set(d,h),H.set(h,d);for(var Qe=U;++Ee<ie;){De=X[Ee];var ft=d[De],gt=h[De];if(k)var Cr=U?k(gt,ft,De,h,d,H):k(ft,gt,De,d,h,H);if(!(Cr===n?ft===gt||I(ft,gt,x,k,H):Cr)){at=!1;break}Qe||(Qe=De=="constructor")}if(at&&!Qe){var Xn=d.constructor,wr=h.constructor;Xn!=wr&&"constructor"in d&&"constructor"in h&&!(typeof Xn=="function"&&Xn instanceof Xn&&typeof wr=="function"&&wr instanceof wr)&&(at=!1)}return H.delete(d),H.delete(h),at}function Wo(d){return bm(_C(d,n,PC),d+"")}function um(d){return FS(d,Tn,hm)}function dm(d){return FS(d,cr,xC)}var fm=zu?function(d){return zu.get(d)}:Am;function td(d){for(var h=d.name+"",x=da[h],k=Mt.call(da,h)?x.length:0;k--;){var I=x[k],H=I.func;if(H==null||H==d)return I.name}return h}function ma(d){var h=Mt.call(V,"placeholder")?V:d;return h.placeholder}function Ze(){var d=V.iteratee||Om;return d=d===Om?VS:d,arguments.length?d(arguments[0],arguments[1]):d}function nd(d,h){var x=d.__data__;return AF(h)?x[typeof h=="string"?"string":"hash"]:x.map}function pm(d){for(var h=Tn(d),x=h.length;x--;){var k=h[x],I=d[k];h[x]=[k,I,wC(I)]}return h}function ps(d,h){var x=Pj(d,h);return zS(x)?x:n}function TF(d){var h=Mt.call(d,ls),x=d[ls];try{d[ls]=n;var k=!0}catch{}var I=Du.call(d);return k&&(h?d[ls]=x:delete d[ls]),I}var hm=zh?function(d){return d==null?[]:(d=Pt(d),yi(zh(d),function(h){return kS.call(d,h)}))}:Im,xC=zh?function(d){for(var h=[];d;)bi(h,hm(d)),d=Lu(d);return h}:Im,zn=Jn;(Vh&&zn(new Vh(new ArrayBuffer(1)))!=Dt||Cl&&zn(new Cl)!=de||Hh&&zn(Hh.resolve())!=Me||ua&&zn(new ua)!=Ge||wl&&zn(new wl)!=Gt)&&(zn=function(d){var h=Jn(d),x=h==Se?d.constructor:n,k=x?hs(x):"";if(k)switch(k){case s$:return Dt;case a$:return de;case l$:return Me;case c$:return Ge;case u$:return Gt}return h});function _F(d,h,x){for(var k=-1,I=x.length;++k<I;){var H=x[k],U=H.size;switch(H.type){case"drop":d+=U;break;case"dropRight":h-=U;break;case"take":h=Bn(h,d+U);break;case"takeRight":d=xn(d,h-U);break}}return{start:d,end:h}}function kF(d){var h=d.match(IL);return h?h[1].split(DL):[]}function SC(d,h,x){h=wi(h,d);for(var k=-1,I=h.length,H=!1;++k<I;){var U=bo(h[k]);if(!(H=d!=null&&x(d,U)))break;d=d[U]}return H||++k!=I?H:(I=d==null?0:d.length,!!I&&cd(I)&&qo(U,I)&&(ot(d)||ms(d)))}function EF(d){var h=d.length,x=new d.constructor(h);return h&&typeof d[0]=="string"&&Mt.call(d,"index")&&(x.index=d.index,x.input=d.input),x}function CC(d){return typeof d.constructor=="function"&&!Il(d)?fa(Lu(d)):{}}function MF(d,h,x){var k=d.constructor;switch(h){case nn:return am(d);case ae:case W:return new k(+d);case Dt:return dF(d,x);case wn:case Fn:case dt:case In:case Vt:case me:case Le:case ke:case je:return oC(d,x);case de:return new k;case ye:case Ie:return new k(d);case Ve:return fF(d);case Ge:return new k;case st:return pF(d)}}function OF(d,h){var x=h.length;if(!x)return d;var k=x-1;return h[k]=(x>1?"& ":"")+h[k],h=h.join(x>2?", ":" "),d.replace(AL,`{
85
+ */var iq=Zl.exports,Zw;function sq(){return Zw||(Zw=1,function(t,e){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,m=2,g=4,y=1,b=2,S=1,C=2,_=4,T=8,w=16,E=32,O=64,N=128,D=256,L=512,M=30,R="...",P=800,B=16,z=1,$=2,F=3,q=1/0,U=9007199254740991,G=17976931348623157e292,Y=NaN,Z=4294967295,fe=Z-1,pe=Z>>>1,ge=[["ary",N],["bind",S],["bindKey",C],["curry",T],["curryRight",w],["flip",L],["partial",E],["partialRight",O],["rearg",D]],re="[object Arguments]",he="[object Array]",le="[object AsyncFunction]",X="[object Boolean]",W="[object Date]",ee="[object DOMException]",ce="[object Error]",te="[object Function]",se="[object GeneratorFunction]",ue="[object Map]",ye="[object Number]",Te="[object Null]",Se="[object Object]",Me="[object Promise]",Ne="[object Proxy]",Ve="[object RegExp]",Ge="[object Set]",Ie="[object String]",st="[object Symbol]",xt="[object Undefined]",Gt="[object WeakMap]",bn="[object WeakSet]",nn="[object ArrayBuffer]",Dt="[object DataView]",wn="[object Float32Array]",Fn="[object Float64Array]",dt="[object Int8Array]",In="[object Int16Array]",Vt="[object Int32Array]",me="[object Uint8Array]",Le="[object Uint8ClampedArray]",ke="[object Uint16Array]",je="[object Uint32Array]",qe=/\b__p \+= '';/g,tt=/\b(__p \+=) '' \+/g,Ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gn=/&(?:amp|lt|gt|quot|#39);/g,sr=/[&<>"']/g,Fo=RegExp(Gn.source),bl=RegExp(sr.source),na=/<%-([\s\S]+?)%>/g,gi=/<%([\s\S]+?)%>/g,wu=/<%=([\s\S]+?)%>/g,vl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ra=/^\w*$/,ML=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ch=/[\\^$.*+?()[\]{}|]/g,OL=RegExp(Ch.source),wh=/^\s+/,RL=/\s/,AL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,IL=/\{\n\/\* \[wrapped with (.+)\] \*/,DL=/,? & /,PL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,NL=/[()=,{}\[\]\/\s]/,LL=/\\(\\)?/g,jL=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B1=/\w*$/,$L=/^[-+]0x[0-9a-f]+$/i,FL=/^0b[01]+$/i,BL=/^\[object .+?Constructor\]$/,zL=/^0o[0-7]+$/i,VL=/^(?:0|[1-9]\d*)$/,HL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tu=/($^)/,WL=/['\n\r\u2028\u2029\\]/g,_u="\\ud800-\\udfff",qL="\\u0300-\\u036f",UL="\\ufe20-\\ufe2f",KL="\\u20d0-\\u20ff",z1=qL+UL+KL,V1="\\u2700-\\u27bf",H1="a-z\\xdf-\\xf6\\xf8-\\xff",YL="\\xac\\xb1\\xd7\\xf7",GL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JL="\\u2000-\\u206f",ZL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",W1="A-Z\\xc0-\\xd6\\xd8-\\xde",q1="\\ufe0e\\ufe0f",U1=YL+GL+JL+ZL,Th="['’]",XL="["+_u+"]",K1="["+U1+"]",ku="["+z1+"]",Y1="\\d+",QL="["+V1+"]",G1="["+H1+"]",J1="[^"+_u+U1+Y1+V1+H1+W1+"]",_h="\\ud83c[\\udffb-\\udfff]",ej="(?:"+ku+"|"+_h+")",Z1="[^"+_u+"]",kh="(?:\\ud83c[\\udde6-\\uddff]){2}",Eh="[\\ud800-\\udbff][\\udc00-\\udfff]",oa="["+W1+"]",X1="\\u200d",Q1="(?:"+G1+"|"+J1+")",tj="(?:"+oa+"|"+J1+")",eS="(?:"+Th+"(?:d|ll|m|re|s|t|ve))?",tS="(?:"+Th+"(?:D|LL|M|RE|S|T|VE))?",nS=ej+"?",rS="["+q1+"]?",nj="(?:"+X1+"(?:"+[Z1,kh,Eh].join("|")+")"+rS+nS+")*",rj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oS=rS+nS+nj,ij="(?:"+[QL,kh,Eh].join("|")+")"+oS,sj="(?:"+[Z1+ku+"?",ku,kh,Eh,XL].join("|")+")",aj=RegExp(Th,"g"),lj=RegExp(ku,"g"),Mh=RegExp(_h+"(?="+_h+")|"+sj+oS,"g"),cj=RegExp([oa+"?"+G1+"+"+eS+"(?="+[K1,oa,"$"].join("|")+")",tj+"+"+tS+"(?="+[K1,oa+Q1,"$"].join("|")+")",oa+"?"+Q1+"+"+eS,oa+"+"+tS,oj,rj,Y1,ij].join("|"),"g"),uj=RegExp("["+X1+_u+z1+q1+"]"),dj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pj=-1,Ht={};Ht[wn]=Ht[Fn]=Ht[dt]=Ht[In]=Ht[Vt]=Ht[me]=Ht[Le]=Ht[ke]=Ht[je]=!0,Ht[re]=Ht[he]=Ht[nn]=Ht[X]=Ht[Dt]=Ht[W]=Ht[ce]=Ht[te]=Ht[ue]=Ht[ye]=Ht[Se]=Ht[Ve]=Ht[Ge]=Ht[Ie]=Ht[Gt]=!1;var $t={};$t[re]=$t[he]=$t[nn]=$t[Dt]=$t[X]=$t[W]=$t[wn]=$t[Fn]=$t[dt]=$t[In]=$t[Vt]=$t[ue]=$t[ye]=$t[Se]=$t[Ve]=$t[Ge]=$t[Ie]=$t[st]=$t[me]=$t[Le]=$t[ke]=$t[je]=!0,$t[ce]=$t[te]=$t[Gt]=!1;var hj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gj={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bj=parseFloat,vj=parseInt,iS=typeof Li=="object"&&Li&&Li.Object===Object&&Li,xj=typeof self=="object"&&self&&self.Object===Object&&self,Dn=iS||xj||Function("return this")(),Oh=e&&!e.nodeType&&e,as=Oh&&!0&&t&&!t.nodeType&&t,sS=as&&as.exports===Oh,Rh=sS&&iS.process,Rr=function(){try{var oe=as&&as.require&&as.require("util").types;return oe||Rh&&Rh.binding&&Rh.binding("util")}catch{}}(),aS=Rr&&Rr.isArrayBuffer,lS=Rr&&Rr.isDate,cS=Rr&&Rr.isMap,uS=Rr&&Rr.isRegExp,dS=Rr&&Rr.isSet,fS=Rr&&Rr.isTypedArray;function br(oe,xe,de){switch(de.length){case 0:return oe.call(xe);case 1:return oe.call(xe,de[0]);case 2:return oe.call(xe,de[0],de[1]);case 3:return oe.call(xe,de[0],de[1],de[2])}return oe.apply(xe,de)}function Sj(oe,xe,de,Be){for(var nt=-1,Ct=oe==null?0:oe.length;++nt<Ct;){var vn=oe[nt];xe(Be,vn,de(vn),oe)}return Be}function Ar(oe,xe){for(var de=-1,Be=oe==null?0:oe.length;++de<Be&&xe(oe[de],de,oe)!==!1;);return oe}function Cj(oe,xe){for(var de=oe==null?0:oe.length;de--&&xe(oe[de],de,oe)!==!1;);return oe}function pS(oe,xe){for(var de=-1,Be=oe==null?0:oe.length;++de<Be;)if(!xe(oe[de],de,oe))return!1;return!0}function yi(oe,xe){for(var de=-1,Be=oe==null?0:oe.length,nt=0,Ct=[];++de<Be;){var vn=oe[de];xe(vn,de,oe)&&(Ct[nt++]=vn)}return Ct}function Eu(oe,xe){var de=oe==null?0:oe.length;return!!de&&ia(oe,xe,0)>-1}function Ah(oe,xe,de){for(var Be=-1,nt=oe==null?0:oe.length;++Be<nt;)if(de(xe,oe[Be]))return!0;return!1}function Jt(oe,xe){for(var de=-1,Be=oe==null?0:oe.length,nt=Array(Be);++de<Be;)nt[de]=xe(oe[de],de,oe);return nt}function bi(oe,xe){for(var de=-1,Be=xe.length,nt=oe.length;++de<Be;)oe[nt+de]=xe[de];return oe}function Ih(oe,xe,de,Be){var nt=-1,Ct=oe==null?0:oe.length;for(Be&&Ct&&(de=oe[++nt]);++nt<Ct;)de=xe(de,oe[nt],nt,oe);return de}function wj(oe,xe,de,Be){var nt=oe==null?0:oe.length;for(Be&&nt&&(de=oe[--nt]);nt--;)de=xe(de,oe[nt],nt,oe);return de}function Dh(oe,xe){for(var de=-1,Be=oe==null?0:oe.length;++de<Be;)if(xe(oe[de],de,oe))return!0;return!1}var Tj=Ph("length");function _j(oe){return oe.split("")}function kj(oe){return oe.match(PL)||[]}function hS(oe,xe,de){var Be;return de(oe,function(nt,Ct,vn){if(xe(nt,Ct,vn))return Be=Ct,!1}),Be}function Mu(oe,xe,de,Be){for(var nt=oe.length,Ct=de+(Be?1:-1);Be?Ct--:++Ct<nt;)if(xe(oe[Ct],Ct,oe))return Ct;return-1}function ia(oe,xe,de){return xe===xe?$j(oe,xe,de):Mu(oe,mS,de)}function Ej(oe,xe,de,Be){for(var nt=de-1,Ct=oe.length;++nt<Ct;)if(Be(oe[nt],xe))return nt;return-1}function mS(oe){return oe!==oe}function gS(oe,xe){var de=oe==null?0:oe.length;return de?Lh(oe,xe)/de:Y}function Ph(oe){return function(xe){return xe==null?n:xe[oe]}}function Nh(oe){return function(xe){return oe==null?n:oe[xe]}}function yS(oe,xe,de,Be,nt){return nt(oe,function(Ct,vn,Pt){de=Be?(Be=!1,Ct):xe(de,Ct,vn,Pt)}),de}function Mj(oe,xe){var de=oe.length;for(oe.sort(xe);de--;)oe[de]=oe[de].value;return oe}function Lh(oe,xe){for(var de,Be=-1,nt=oe.length;++Be<nt;){var Ct=xe(oe[Be]);Ct!==n&&(de=de===n?Ct:de+Ct)}return de}function jh(oe,xe){for(var de=-1,Be=Array(oe);++de<oe;)Be[de]=xe(de);return Be}function Oj(oe,xe){return Jt(xe,function(de){return[de,oe[de]]})}function bS(oe){return oe&&oe.slice(0,CS(oe)+1).replace(wh,"")}function vr(oe){return function(xe){return oe(xe)}}function $h(oe,xe){return Jt(xe,function(de){return oe[de]})}function xl(oe,xe){return oe.has(xe)}function vS(oe,xe){for(var de=-1,Be=oe.length;++de<Be&&ia(xe,oe[de],0)>-1;);return de}function xS(oe,xe){for(var de=oe.length;de--&&ia(xe,oe[de],0)>-1;);return de}function Rj(oe,xe){for(var de=oe.length,Be=0;de--;)oe[de]===xe&&++Be;return Be}var Aj=Nh(hj),Ij=Nh(mj);function Dj(oe){return"\\"+yj[oe]}function Pj(oe,xe){return oe==null?n:oe[xe]}function sa(oe){return uj.test(oe)}function Nj(oe){return dj.test(oe)}function Lj(oe){for(var xe,de=[];!(xe=oe.next()).done;)de.push(xe.value);return de}function Fh(oe){var xe=-1,de=Array(oe.size);return oe.forEach(function(Be,nt){de[++xe]=[nt,Be]}),de}function SS(oe,xe){return function(de){return oe(xe(de))}}function vi(oe,xe){for(var de=-1,Be=oe.length,nt=0,Ct=[];++de<Be;){var vn=oe[de];(vn===xe||vn===f)&&(oe[de]=f,Ct[nt++]=de)}return Ct}function Ou(oe){var xe=-1,de=Array(oe.size);return oe.forEach(function(Be){de[++xe]=Be}),de}function jj(oe){var xe=-1,de=Array(oe.size);return oe.forEach(function(Be){de[++xe]=[Be,Be]}),de}function $j(oe,xe,de){for(var Be=de-1,nt=oe.length;++Be<nt;)if(oe[Be]===xe)return Be;return-1}function Fj(oe,xe,de){for(var Be=de+1;Be--;)if(oe[Be]===xe)return Be;return Be}function aa(oe){return sa(oe)?zj(oe):Tj(oe)}function Qr(oe){return sa(oe)?Vj(oe):_j(oe)}function CS(oe){for(var xe=oe.length;xe--&&RL.test(oe.charAt(xe)););return xe}var Bj=Nh(gj);function zj(oe){for(var xe=Mh.lastIndex=0;Mh.test(oe);)++xe;return xe}function Vj(oe){return oe.match(Mh)||[]}function Hj(oe){return oe.match(cj)||[]}var Wj=function oe(xe){xe=xe==null?Dn:la.defaults(Dn.Object(),xe,la.pick(Dn,fj));var de=xe.Array,Be=xe.Date,nt=xe.Error,Ct=xe.Function,vn=xe.Math,Pt=xe.Object,Bh=xe.RegExp,qj=xe.String,Ir=xe.TypeError,Ru=de.prototype,Uj=Ct.prototype,ca=Pt.prototype,Au=xe["__core-js_shared__"],Iu=Uj.toString,Mt=ca.hasOwnProperty,Kj=0,wS=function(){var d=/[^.]+$/.exec(Au&&Au.keys&&Au.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}(),Du=ca.toString,Yj=Iu.call(Pt),Gj=Dn._,Jj=Bh("^"+Iu.call(Mt).replace(Ch,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pu=sS?xe.Buffer:n,xi=xe.Symbol,Nu=xe.Uint8Array,TS=Pu?Pu.allocUnsafe:n,Lu=SS(Pt.getPrototypeOf,Pt),_S=Pt.create,kS=ca.propertyIsEnumerable,ju=Ru.splice,ES=xi?xi.isConcatSpreadable:n,Sl=xi?xi.iterator:n,ls=xi?xi.toStringTag:n,$u=function(){try{var d=ps(Pt,"defineProperty");return d({},"",{}),d}catch{}}(),Zj=xe.clearTimeout!==Dn.clearTimeout&&xe.clearTimeout,Xj=Be&&Be.now!==Dn.Date.now&&Be.now,Qj=xe.setTimeout!==Dn.setTimeout&&xe.setTimeout,Fu=vn.ceil,Bu=vn.floor,zh=Pt.getOwnPropertySymbols,e$=Pu?Pu.isBuffer:n,MS=xe.isFinite,t$=Ru.join,n$=SS(Pt.keys,Pt),xn=vn.max,Bn=vn.min,r$=Be.now,o$=xe.parseInt,OS=vn.random,i$=Ru.reverse,Vh=ps(xe,"DataView"),Cl=ps(xe,"Map"),Hh=ps(xe,"Promise"),ua=ps(xe,"Set"),wl=ps(xe,"WeakMap"),Tl=ps(Pt,"create"),zu=wl&&new wl,da={},s$=hs(Vh),a$=hs(Cl),l$=hs(Hh),c$=hs(ua),u$=hs(wl),Vu=xi?xi.prototype:n,_l=Vu?Vu.valueOf:n,RS=Vu?Vu.toString:n;function V(d){if(rn(d)&&!ot(d)&&!(d instanceof ht)){if(d instanceof Dr)return d;if(Mt.call(d,"__wrapped__"))return AC(d)}return new Dr(d)}var fa=function(){function d(){}return function(h){if(!Qt(h))return{};if(_S)return _S(h);d.prototype=h;var x=new d;return d.prototype=n,x}}();function Hu(){}function Dr(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}V.templateSettings={escape:na,evaluate:gi,interpolate:wu,variable:"",imports:{_:V}},V.prototype=Hu.prototype,V.prototype.constructor=V,Dr.prototype=fa(Hu.prototype),Dr.prototype.constructor=Dr;function ht(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Z,this.__views__=[]}function d$(){var d=new ht(this.__wrapped__);return d.__actions__=ar(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=ar(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=ar(this.__views__),d}function f$(){if(this.__filtered__){var d=new ht(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function p$(){var d=this.__wrapped__.value(),h=this.__dir__,x=ot(d),k=h<0,I=x?d.length:0,H=_F(0,I,this.__views__),K=H.start,Q=H.end,ie=Q-K,Ce=k?Q:K-1,we=this.__iteratees__,Ee=we.length,De=0,He=Bn(ie,this.__takeCount__);if(!x||!k&&I==ie&&He==ie)return eC(d,this.__actions__);var Xe=[];e:for(;ie--&&De<He;){Ce+=h;for(var at=-1,Qe=d[Ce];++at<Ee;){var ft=we[at],gt=ft.iteratee,Cr=ft.type,Xn=gt(Qe);if(Cr==$)Qe=Xn;else if(!Xn){if(Cr==z)continue e;break e}}Xe[De++]=Qe}return Xe}ht.prototype=fa(Hu.prototype),ht.prototype.constructor=ht;function cs(d){var h=-1,x=d==null?0:d.length;for(this.clear();++h<x;){var k=d[h];this.set(k[0],k[1])}}function h$(){this.__data__=Tl?Tl(null):{},this.size=0}function m$(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function g$(d){var h=this.__data__;if(Tl){var x=h[d];return x===l?n:x}return Mt.call(h,d)?h[d]:n}function y$(d){var h=this.__data__;return Tl?h[d]!==n:Mt.call(h,d)}function b$(d,h){var x=this.__data__;return this.size+=this.has(d)?0:1,x[d]=Tl&&h===n?l:h,this}cs.prototype.clear=h$,cs.prototype.delete=m$,cs.prototype.get=g$,cs.prototype.has=y$,cs.prototype.set=b$;function Bo(d){var h=-1,x=d==null?0:d.length;for(this.clear();++h<x;){var k=d[h];this.set(k[0],k[1])}}function v$(){this.__data__=[],this.size=0}function x$(d){var h=this.__data__,x=Wu(h,d);if(x<0)return!1;var k=h.length-1;return x==k?h.pop():ju.call(h,x,1),--this.size,!0}function S$(d){var h=this.__data__,x=Wu(h,d);return x<0?n:h[x][1]}function C$(d){return Wu(this.__data__,d)>-1}function w$(d,h){var x=this.__data__,k=Wu(x,d);return k<0?(++this.size,x.push([d,h])):x[k][1]=h,this}Bo.prototype.clear=v$,Bo.prototype.delete=x$,Bo.prototype.get=S$,Bo.prototype.has=C$,Bo.prototype.set=w$;function zo(d){var h=-1,x=d==null?0:d.length;for(this.clear();++h<x;){var k=d[h];this.set(k[0],k[1])}}function T$(){this.size=0,this.__data__={hash:new cs,map:new(Cl||Bo),string:new cs}}function _$(d){var h=nd(this,d).delete(d);return this.size-=h?1:0,h}function k$(d){return nd(this,d).get(d)}function E$(d){return nd(this,d).has(d)}function M$(d,h){var x=nd(this,d),k=x.size;return x.set(d,h),this.size+=x.size==k?0:1,this}zo.prototype.clear=T$,zo.prototype.delete=_$,zo.prototype.get=k$,zo.prototype.has=E$,zo.prototype.set=M$;function us(d){var h=-1,x=d==null?0:d.length;for(this.__data__=new zo;++h<x;)this.add(d[h])}function O$(d){return this.__data__.set(d,l),this}function R$(d){return this.__data__.has(d)}us.prototype.add=us.prototype.push=O$,us.prototype.has=R$;function eo(d){var h=this.__data__=new Bo(d);this.size=h.size}function A$(){this.__data__=new Bo,this.size=0}function I$(d){var h=this.__data__,x=h.delete(d);return this.size=h.size,x}function D$(d){return this.__data__.get(d)}function P$(d){return this.__data__.has(d)}function N$(d,h){var x=this.__data__;if(x instanceof Bo){var k=x.__data__;if(!Cl||k.length<o-1)return k.push([d,h]),this.size=++x.size,this;x=this.__data__=new zo(k)}return x.set(d,h),this.size=x.size,this}eo.prototype.clear=A$,eo.prototype.delete=I$,eo.prototype.get=D$,eo.prototype.has=P$,eo.prototype.set=N$;function AS(d,h){var x=ot(d),k=!x&&ms(d),I=!x&&!k&&_i(d),H=!x&&!k&&!I&&ga(d),K=x||k||I||H,Q=K?jh(d.length,qj):[],ie=Q.length;for(var Ce in d)(h||Mt.call(d,Ce))&&!(K&&(Ce=="length"||I&&(Ce=="offset"||Ce=="parent")||H&&(Ce=="buffer"||Ce=="byteLength"||Ce=="byteOffset")||qo(Ce,ie)))&&Q.push(Ce);return Q}function IS(d){var h=d.length;return h?d[em(0,h-1)]:n}function L$(d,h){return rd(ar(d),ds(h,0,d.length))}function j$(d){return rd(ar(d))}function Wh(d,h,x){(x!==n&&!to(d[h],x)||x===n&&!(h in d))&&Vo(d,h,x)}function kl(d,h,x){var k=d[h];(!(Mt.call(d,h)&&to(k,x))||x===n&&!(h in d))&&Vo(d,h,x)}function Wu(d,h){for(var x=d.length;x--;)if(to(d[x][0],h))return x;return-1}function $$(d,h,x,k){return Si(d,function(I,H,K){h(k,I,x(I),K)}),k}function DS(d,h){return d&&yo(h,Tn(h),d)}function F$(d,h){return d&&yo(h,cr(h),d)}function Vo(d,h,x){h=="__proto__"&&$u?$u(d,h,{configurable:!0,enumerable:!0,value:x,writable:!0}):d[h]=x}function qh(d,h){for(var x=-1,k=h.length,I=de(k),H=d==null;++x<k;)I[x]=H?n:_m(d,h[x]);return I}function ds(d,h,x){return d===d&&(x!==n&&(d=d<=x?d:x),h!==n&&(d=d>=h?d:h)),d}function Pr(d,h,x,k,I,H){var K,Q=h&p,ie=h&m,Ce=h&g;if(x&&(K=I?x(d,k,I,H):x(d)),K!==n)return K;if(!Qt(d))return d;var we=ot(d);if(we){if(K=EF(d),!Q)return ar(d,K)}else{var Ee=zn(d),De=Ee==te||Ee==se;if(_i(d))return rC(d,Q);if(Ee==Se||Ee==re||De&&!I){if(K=ie||De?{}:CC(d),!Q)return ie?gF(d,F$(K,d)):mF(d,DS(K,d))}else{if(!$t[Ee])return I?d:{};K=MF(d,Ee,Q)}}H||(H=new eo);var He=H.get(d);if(He)return He;H.set(d,K),ZC(d)?d.forEach(function(Qe){K.add(Pr(Qe,h,x,Qe,d,H))}):GC(d)&&d.forEach(function(Qe,ft){K.set(ft,Pr(Qe,h,x,ft,d,H))});var Xe=Ce?ie?dm:um:ie?cr:Tn,at=we?n:Xe(d);return Ar(at||d,function(Qe,ft){at&&(ft=Qe,Qe=d[ft]),kl(K,ft,Pr(Qe,h,x,ft,d,H))}),K}function B$(d){var h=Tn(d);return function(x){return PS(x,d,h)}}function PS(d,h,x){var k=x.length;if(d==null)return!k;for(d=Pt(d);k--;){var I=x[k],H=h[I],K=d[I];if(K===n&&!(I in d)||!H(K))return!1}return!0}function NS(d,h,x){if(typeof d!="function")throw new Ir(s);return Dl(function(){d.apply(n,x)},h)}function El(d,h,x,k){var I=-1,H=Eu,K=!0,Q=d.length,ie=[],Ce=h.length;if(!Q)return ie;x&&(h=Jt(h,vr(x))),k?(H=Ah,K=!1):h.length>=o&&(H=xl,K=!1,h=new us(h));e:for(;++I<Q;){var we=d[I],Ee=x==null?we:x(we);if(we=k||we!==0?we:0,K&&Ee===Ee){for(var De=Ce;De--;)if(h[De]===Ee)continue e;ie.push(we)}else H(h,Ee,k)||ie.push(we)}return ie}var Si=lC(go),LS=lC(Kh,!0);function z$(d,h){var x=!0;return Si(d,function(k,I,H){return x=!!h(k,I,H),x}),x}function qu(d,h,x){for(var k=-1,I=d.length;++k<I;){var H=d[k],K=h(H);if(K!=null&&(Q===n?K===K&&!Sr(K):x(K,Q)))var Q=K,ie=H}return ie}function V$(d,h,x,k){var I=d.length;for(x=it(x),x<0&&(x=-x>I?0:I+x),k=k===n||k>I?I:it(k),k<0&&(k+=I),k=x>k?0:QC(k);x<k;)d[x++]=h;return d}function jS(d,h){var x=[];return Si(d,function(k,I,H){h(k,I,H)&&x.push(k)}),x}function Pn(d,h,x,k,I){var H=-1,K=d.length;for(x||(x=RF),I||(I=[]);++H<K;){var Q=d[H];h>0&&x(Q)?h>1?Pn(Q,h-1,x,k,I):bi(I,Q):k||(I[I.length]=Q)}return I}var Uh=cC(),$S=cC(!0);function go(d,h){return d&&Uh(d,h,Tn)}function Kh(d,h){return d&&$S(d,h,Tn)}function Uu(d,h){return yi(h,function(x){return Uo(d[x])})}function fs(d,h){h=wi(h,d);for(var x=0,k=h.length;d!=null&&x<k;)d=d[bo(h[x++])];return x&&x==k?d:n}function FS(d,h,x){var k=h(d);return ot(d)?k:bi(k,x(d))}function Jn(d){return d==null?d===n?xt:Te:ls&&ls in Pt(d)?TF(d):jF(d)}function Yh(d,h){return d>h}function H$(d,h){return d!=null&&Mt.call(d,h)}function W$(d,h){return d!=null&&h in Pt(d)}function q$(d,h,x){return d>=Bn(h,x)&&d<xn(h,x)}function Gh(d,h,x){for(var k=x?Ah:Eu,I=d[0].length,H=d.length,K=H,Q=de(H),ie=1/0,Ce=[];K--;){var we=d[K];K&&h&&(we=Jt(we,vr(h))),ie=Bn(we.length,ie),Q[K]=!x&&(h||I>=120&&we.length>=120)?new us(K&&we):n}we=d[0];var Ee=-1,De=Q[0];e:for(;++Ee<I&&Ce.length<ie;){var He=we[Ee],Xe=h?h(He):He;if(He=x||He!==0?He:0,!(De?xl(De,Xe):k(Ce,Xe,x))){for(K=H;--K;){var at=Q[K];if(!(at?xl(at,Xe):k(d[K],Xe,x)))continue e}De&&De.push(Xe),Ce.push(He)}}return Ce}function U$(d,h,x,k){return go(d,function(I,H,K){h(k,x(I),H,K)}),k}function Ml(d,h,x){h=wi(h,d),d=kC(d,h);var k=d==null?d:d[bo(Lr(h))];return k==null?n:br(k,d,x)}function BS(d){return rn(d)&&Jn(d)==re}function K$(d){return rn(d)&&Jn(d)==nn}function Y$(d){return rn(d)&&Jn(d)==W}function Ol(d,h,x,k,I){return d===h?!0:d==null||h==null||!rn(d)&&!rn(h)?d!==d&&h!==h:G$(d,h,x,k,Ol,I)}function G$(d,h,x,k,I,H){var K=ot(d),Q=ot(h),ie=K?he:zn(d),Ce=Q?he:zn(h);ie=ie==re?Se:ie,Ce=Ce==re?Se:Ce;var we=ie==Se,Ee=Ce==Se,De=ie==Ce;if(De&&_i(d)){if(!_i(h))return!1;K=!0,we=!1}if(De&&!we)return H||(H=new eo),K||ga(d)?vC(d,h,x,k,I,H):CF(d,h,ie,x,k,I,H);if(!(x&y)){var He=we&&Mt.call(d,"__wrapped__"),Xe=Ee&&Mt.call(h,"__wrapped__");if(He||Xe){var at=He?d.value():d,Qe=Xe?h.value():h;return H||(H=new eo),I(at,Qe,x,k,H)}}return De?(H||(H=new eo),wF(d,h,x,k,I,H)):!1}function J$(d){return rn(d)&&zn(d)==ue}function Jh(d,h,x,k){var I=x.length,H=I,K=!k;if(d==null)return!H;for(d=Pt(d);I--;){var Q=x[I];if(K&&Q[2]?Q[1]!==d[Q[0]]:!(Q[0]in d))return!1}for(;++I<H;){Q=x[I];var ie=Q[0],Ce=d[ie],we=Q[1];if(K&&Q[2]){if(Ce===n&&!(ie in d))return!1}else{var Ee=new eo;if(k)var De=k(Ce,we,ie,d,h,Ee);if(!(De===n?Ol(we,Ce,y|b,k,Ee):De))return!1}}return!0}function zS(d){if(!Qt(d)||IF(d))return!1;var h=Uo(d)?Jj:BL;return h.test(hs(d))}function Z$(d){return rn(d)&&Jn(d)==Ve}function X$(d){return rn(d)&&zn(d)==Ge}function Q$(d){return rn(d)&&cd(d.length)&&!!Ht[Jn(d)]}function VS(d){return typeof d=="function"?d:d==null?ur:typeof d=="object"?ot(d)?qS(d[0],d[1]):WS(d):uw(d)}function Zh(d){if(!Il(d))return n$(d);var h=[];for(var x in Pt(d))Mt.call(d,x)&&x!="constructor"&&h.push(x);return h}function eF(d){if(!Qt(d))return LF(d);var h=Il(d),x=[];for(var k in d)k=="constructor"&&(h||!Mt.call(d,k))||x.push(k);return x}function Xh(d,h){return d<h}function HS(d,h){var x=-1,k=lr(d)?de(d.length):[];return Si(d,function(I,H,K){k[++x]=h(I,H,K)}),k}function WS(d){var h=pm(d);return h.length==1&&h[0][2]?TC(h[0][0],h[0][1]):function(x){return x===d||Jh(x,d,h)}}function qS(d,h){return mm(d)&&wC(h)?TC(bo(d),h):function(x){var k=_m(x,d);return k===n&&k===h?km(x,d):Ol(h,k,y|b)}}function Ku(d,h,x,k,I){d!==h&&Uh(h,function(H,K){if(I||(I=new eo),Qt(H))tF(d,h,K,x,Ku,k,I);else{var Q=k?k(ym(d,K),H,K+"",d,h,I):n;Q===n&&(Q=H),Wh(d,K,Q)}},cr)}function tF(d,h,x,k,I,H,K){var Q=ym(d,x),ie=ym(h,x),Ce=K.get(ie);if(Ce){Wh(d,x,Ce);return}var we=H?H(Q,ie,x+"",d,h,K):n,Ee=we===n;if(Ee){var De=ot(ie),He=!De&&_i(ie),Xe=!De&&!He&&ga(ie);we=ie,De||He||Xe?ot(Q)?we=Q:dn(Q)?we=ar(Q):He?(Ee=!1,we=rC(ie,!0)):Xe?(Ee=!1,we=oC(ie,!0)):we=[]:Pl(ie)||ms(ie)?(we=Q,ms(Q)?we=ew(Q):(!Qt(Q)||Uo(Q))&&(we=CC(ie))):Ee=!1}Ee&&(K.set(ie,we),I(we,ie,k,H,K),K.delete(ie)),Wh(d,x,we)}function US(d,h){var x=d.length;if(x)return h+=h<0?x:0,qo(h,x)?d[h]:n}function KS(d,h,x){h.length?h=Jt(h,function(H){return ot(H)?function(K){return fs(K,H.length===1?H[0]:H)}:H}):h=[ur];var k=-1;h=Jt(h,vr(Ze()));var I=HS(d,function(H,K,Q){var ie=Jt(h,function(Ce){return Ce(H)});return{criteria:ie,index:++k,value:H}});return Mj(I,function(H,K){return hF(H,K,x)})}function nF(d,h){return YS(d,h,function(x,k){return km(d,k)})}function YS(d,h,x){for(var k=-1,I=h.length,H={};++k<I;){var K=h[k],Q=fs(d,K);x(Q,K)&&Rl(H,wi(K,d),Q)}return H}function rF(d){return function(h){return fs(h,d)}}function Qh(d,h,x,k){var I=k?Ej:ia,H=-1,K=h.length,Q=d;for(d===h&&(h=ar(h)),x&&(Q=Jt(d,vr(x)));++H<K;)for(var ie=0,Ce=h[H],we=x?x(Ce):Ce;(ie=I(Q,we,ie,k))>-1;)Q!==d&&ju.call(Q,ie,1),ju.call(d,ie,1);return d}function GS(d,h){for(var x=d?h.length:0,k=x-1;x--;){var I=h[x];if(x==k||I!==H){var H=I;qo(I)?ju.call(d,I,1):rm(d,I)}}return d}function em(d,h){return d+Bu(OS()*(h-d+1))}function oF(d,h,x,k){for(var I=-1,H=xn(Fu((h-d)/(x||1)),0),K=de(H);H--;)K[k?H:++I]=d,d+=x;return K}function tm(d,h){var x="";if(!d||h<1||h>U)return x;do h%2&&(x+=d),h=Bu(h/2),h&&(d+=d);while(h);return x}function ut(d,h){return bm(_C(d,h,ur),d+"")}function iF(d){return IS(ya(d))}function sF(d,h){var x=ya(d);return rd(x,ds(h,0,x.length))}function Rl(d,h,x,k){if(!Qt(d))return d;h=wi(h,d);for(var I=-1,H=h.length,K=H-1,Q=d;Q!=null&&++I<H;){var ie=bo(h[I]),Ce=x;if(ie==="__proto__"||ie==="constructor"||ie==="prototype")return d;if(I!=K){var we=Q[ie];Ce=k?k(we,ie,Q):n,Ce===n&&(Ce=Qt(we)?we:qo(h[I+1])?[]:{})}kl(Q,ie,Ce),Q=Q[ie]}return d}var JS=zu?function(d,h){return zu.set(d,h),d}:ur,aF=$u?function(d,h){return $u(d,"toString",{configurable:!0,enumerable:!1,value:Mm(h),writable:!0})}:ur;function lF(d){return rd(ya(d))}function Nr(d,h,x){var k=-1,I=d.length;h<0&&(h=-h>I?0:I+h),x=x>I?I:x,x<0&&(x+=I),I=h>x?0:x-h>>>0,h>>>=0;for(var H=de(I);++k<I;)H[k]=d[k+h];return H}function cF(d,h){var x;return Si(d,function(k,I,H){return x=h(k,I,H),!x}),!!x}function Yu(d,h,x){var k=0,I=d==null?k:d.length;if(typeof h=="number"&&h===h&&I<=pe){for(;k<I;){var H=k+I>>>1,K=d[H];K!==null&&!Sr(K)&&(x?K<=h:K<h)?k=H+1:I=H}return I}return nm(d,h,ur,x)}function nm(d,h,x,k){var I=0,H=d==null?0:d.length;if(H===0)return 0;h=x(h);for(var K=h!==h,Q=h===null,ie=Sr(h),Ce=h===n;I<H;){var we=Bu((I+H)/2),Ee=x(d[we]),De=Ee!==n,He=Ee===null,Xe=Ee===Ee,at=Sr(Ee);if(K)var Qe=k||Xe;else Ce?Qe=Xe&&(k||De):Q?Qe=Xe&&De&&(k||!He):ie?Qe=Xe&&De&&!He&&(k||!at):He||at?Qe=!1:Qe=k?Ee<=h:Ee<h;Qe?I=we+1:H=we}return Bn(H,fe)}function ZS(d,h){for(var x=-1,k=d.length,I=0,H=[];++x<k;){var K=d[x],Q=h?h(K):K;if(!x||!to(Q,ie)){var ie=Q;H[I++]=K===0?0:K}}return H}function XS(d){return typeof d=="number"?d:Sr(d)?Y:+d}function xr(d){if(typeof d=="string")return d;if(ot(d))return Jt(d,xr)+"";if(Sr(d))return RS?RS.call(d):"";var h=d+"";return h=="0"&&1/d==-q?"-0":h}function Ci(d,h,x){var k=-1,I=Eu,H=d.length,K=!0,Q=[],ie=Q;if(x)K=!1,I=Ah;else if(H>=o){var Ce=h?null:xF(d);if(Ce)return Ou(Ce);K=!1,I=xl,ie=new us}else ie=h?[]:Q;e:for(;++k<H;){var we=d[k],Ee=h?h(we):we;if(we=x||we!==0?we:0,K&&Ee===Ee){for(var De=ie.length;De--;)if(ie[De]===Ee)continue e;h&&ie.push(Ee),Q.push(we)}else I(ie,Ee,x)||(ie!==Q&&ie.push(Ee),Q.push(we))}return Q}function rm(d,h){return h=wi(h,d),d=kC(d,h),d==null||delete d[bo(Lr(h))]}function QS(d,h,x,k){return Rl(d,h,x(fs(d,h)),k)}function Gu(d,h,x,k){for(var I=d.length,H=k?I:-1;(k?H--:++H<I)&&h(d[H],H,d););return x?Nr(d,k?0:H,k?H+1:I):Nr(d,k?H+1:0,k?I:H)}function eC(d,h){var x=d;return x instanceof ht&&(x=x.value()),Ih(h,function(k,I){return I.func.apply(I.thisArg,bi([k],I.args))},x)}function om(d,h,x){var k=d.length;if(k<2)return k?Ci(d[0]):[];for(var I=-1,H=de(k);++I<k;)for(var K=d[I],Q=-1;++Q<k;)Q!=I&&(H[I]=El(H[I]||K,d[Q],h,x));return Ci(Pn(H,1),h,x)}function tC(d,h,x){for(var k=-1,I=d.length,H=h.length,K={};++k<I;){var Q=k<H?h[k]:n;x(K,d[k],Q)}return K}function im(d){return dn(d)?d:[]}function sm(d){return typeof d=="function"?d:ur}function wi(d,h){return ot(d)?d:mm(d,h)?[d]:RC(Tt(d))}var uF=ut;function Ti(d,h,x){var k=d.length;return x=x===n?k:x,!h&&x>=k?d:Nr(d,h,x)}var nC=Zj||function(d){return Dn.clearTimeout(d)};function rC(d,h){if(h)return d.slice();var x=d.length,k=TS?TS(x):new d.constructor(x);return d.copy(k),k}function am(d){var h=new d.constructor(d.byteLength);return new Nu(h).set(new Nu(d)),h}function dF(d,h){var x=h?am(d.buffer):d.buffer;return new d.constructor(x,d.byteOffset,d.byteLength)}function fF(d){var h=new d.constructor(d.source,B1.exec(d));return h.lastIndex=d.lastIndex,h}function pF(d){return _l?Pt(_l.call(d)):{}}function oC(d,h){var x=h?am(d.buffer):d.buffer;return new d.constructor(x,d.byteOffset,d.length)}function iC(d,h){if(d!==h){var x=d!==n,k=d===null,I=d===d,H=Sr(d),K=h!==n,Q=h===null,ie=h===h,Ce=Sr(h);if(!Q&&!Ce&&!H&&d>h||H&&K&&ie&&!Q&&!Ce||k&&K&&ie||!x&&ie||!I)return 1;if(!k&&!H&&!Ce&&d<h||Ce&&x&&I&&!k&&!H||Q&&x&&I||!K&&I||!ie)return-1}return 0}function hF(d,h,x){for(var k=-1,I=d.criteria,H=h.criteria,K=I.length,Q=x.length;++k<K;){var ie=iC(I[k],H[k]);if(ie){if(k>=Q)return ie;var Ce=x[k];return ie*(Ce=="desc"?-1:1)}}return d.index-h.index}function sC(d,h,x,k){for(var I=-1,H=d.length,K=x.length,Q=-1,ie=h.length,Ce=xn(H-K,0),we=de(ie+Ce),Ee=!k;++Q<ie;)we[Q]=h[Q];for(;++I<K;)(Ee||I<H)&&(we[x[I]]=d[I]);for(;Ce--;)we[Q++]=d[I++];return we}function aC(d,h,x,k){for(var I=-1,H=d.length,K=-1,Q=x.length,ie=-1,Ce=h.length,we=xn(H-Q,0),Ee=de(we+Ce),De=!k;++I<we;)Ee[I]=d[I];for(var He=I;++ie<Ce;)Ee[He+ie]=h[ie];for(;++K<Q;)(De||I<H)&&(Ee[He+x[K]]=d[I++]);return Ee}function ar(d,h){var x=-1,k=d.length;for(h||(h=de(k));++x<k;)h[x]=d[x];return h}function yo(d,h,x,k){var I=!x;x||(x={});for(var H=-1,K=h.length;++H<K;){var Q=h[H],ie=k?k(x[Q],d[Q],Q,x,d):n;ie===n&&(ie=d[Q]),I?Vo(x,Q,ie):kl(x,Q,ie)}return x}function mF(d,h){return yo(d,hm(d),h)}function gF(d,h){return yo(d,xC(d),h)}function Ju(d,h){return function(x,k){var I=ot(x)?Sj:$$,H=h?h():{};return I(x,d,Ze(k,2),H)}}function pa(d){return ut(function(h,x){var k=-1,I=x.length,H=I>1?x[I-1]:n,K=I>2?x[2]:n;for(H=d.length>3&&typeof H=="function"?(I--,H):n,K&&Zn(x[0],x[1],K)&&(H=I<3?n:H,I=1),h=Pt(h);++k<I;){var Q=x[k];Q&&d(h,Q,k,H)}return h})}function lC(d,h){return function(x,k){if(x==null)return x;if(!lr(x))return d(x,k);for(var I=x.length,H=h?I:-1,K=Pt(x);(h?H--:++H<I)&&k(K[H],H,K)!==!1;);return x}}function cC(d){return function(h,x,k){for(var I=-1,H=Pt(h),K=k(h),Q=K.length;Q--;){var ie=K[d?Q:++I];if(x(H[ie],ie,H)===!1)break}return h}}function yF(d,h,x){var k=h&S,I=Al(d);function H(){var K=this&&this!==Dn&&this instanceof H?I:d;return K.apply(k?x:this,arguments)}return H}function uC(d){return function(h){h=Tt(h);var x=sa(h)?Qr(h):n,k=x?x[0]:h.charAt(0),I=x?Ti(x,1).join(""):h.slice(1);return k[d]()+I}}function ha(d){return function(h){return Ih(lw(aw(h).replace(aj,"")),d,"")}}function Al(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var x=fa(d.prototype),k=d.apply(x,h);return Qt(k)?k:x}}function bF(d,h,x){var k=Al(d);function I(){for(var H=arguments.length,K=de(H),Q=H,ie=ma(I);Q--;)K[Q]=arguments[Q];var Ce=H<3&&K[0]!==ie&&K[H-1]!==ie?[]:vi(K,ie);if(H-=Ce.length,H<x)return mC(d,h,Zu,I.placeholder,n,K,Ce,n,n,x-H);var we=this&&this!==Dn&&this instanceof I?k:d;return br(we,this,K)}return I}function dC(d){return function(h,x,k){var I=Pt(h);if(!lr(h)){var H=Ze(x,3);h=Tn(h),x=function(Q){return H(I[Q],Q,I)}}var K=d(h,x,k);return K>-1?I[H?h[K]:K]:n}}function fC(d){return Wo(function(h){var x=h.length,k=x,I=Dr.prototype.thru;for(d&&h.reverse();k--;){var H=h[k];if(typeof H!="function")throw new Ir(s);if(I&&!K&&td(H)=="wrapper")var K=new Dr([],!0)}for(k=K?k:x;++k<x;){H=h[k];var Q=td(H),ie=Q=="wrapper"?fm(H):n;ie&&gm(ie[0])&&ie[1]==(N|T|E|D)&&!ie[4].length&&ie[9]==1?K=K[td(ie[0])].apply(K,ie[3]):K=H.length==1&&gm(H)?K[Q]():K.thru(H)}return function(){var Ce=arguments,we=Ce[0];if(K&&Ce.length==1&&ot(we))return K.plant(we).value();for(var Ee=0,De=x?h[Ee].apply(this,Ce):we;++Ee<x;)De=h[Ee].call(this,De);return De}})}function Zu(d,h,x,k,I,H,K,Q,ie,Ce){var we=h&N,Ee=h&S,De=h&C,He=h&(T|w),Xe=h&L,at=De?n:Al(d);function Qe(){for(var ft=arguments.length,gt=de(ft),Cr=ft;Cr--;)gt[Cr]=arguments[Cr];if(He)var Xn=ma(Qe),wr=Rj(gt,Xn);if(k&&(gt=sC(gt,k,I,He)),H&&(gt=aC(gt,H,K,He)),ft-=wr,He&&ft<Ce){var fn=vi(gt,Xn);return mC(d,h,Zu,Qe.placeholder,x,gt,fn,Q,ie,Ce-ft)}var no=Ee?x:this,Yo=De?no[d]:d;return ft=gt.length,Q?gt=$F(gt,Q):Xe&&ft>1&&gt.reverse(),we&&ie<ft&&(gt.length=ie),this&&this!==Dn&&this instanceof Qe&&(Yo=at||Al(Yo)),Yo.apply(no,gt)}return Qe}function pC(d,h){return function(x,k){return U$(x,d,h(k),{})}}function Xu(d,h){return function(x,k){var I;if(x===n&&k===n)return h;if(x!==n&&(I=x),k!==n){if(I===n)return k;typeof x=="string"||typeof k=="string"?(x=xr(x),k=xr(k)):(x=XS(x),k=XS(k)),I=d(x,k)}return I}}function lm(d){return Wo(function(h){return h=Jt(h,vr(Ze())),ut(function(x){var k=this;return d(h,function(I){return br(I,k,x)})})})}function Qu(d,h){h=h===n?" ":xr(h);var x=h.length;if(x<2)return x?tm(h,d):h;var k=tm(h,Fu(d/aa(h)));return sa(h)?Ti(Qr(k),0,d).join(""):k.slice(0,d)}function vF(d,h,x,k){var I=h&S,H=Al(d);function K(){for(var Q=-1,ie=arguments.length,Ce=-1,we=k.length,Ee=de(we+ie),De=this&&this!==Dn&&this instanceof K?H:d;++Ce<we;)Ee[Ce]=k[Ce];for(;ie--;)Ee[Ce++]=arguments[++Q];return br(De,I?x:this,Ee)}return K}function hC(d){return function(h,x,k){return k&&typeof k!="number"&&Zn(h,x,k)&&(x=k=n),h=Ko(h),x===n?(x=h,h=0):x=Ko(x),k=k===n?h<x?1:-1:Ko(k),oF(h,x,k,d)}}function ed(d){return function(h,x){return typeof h=="string"&&typeof x=="string"||(h=jr(h),x=jr(x)),d(h,x)}}function mC(d,h,x,k,I,H,K,Q,ie,Ce){var we=h&T,Ee=we?K:n,De=we?n:K,He=we?H:n,Xe=we?n:H;h|=we?E:O,h&=~(we?O:E),h&_||(h&=~(S|C));var at=[d,h,I,He,Ee,Xe,De,Q,ie,Ce],Qe=x.apply(n,at);return gm(d)&&EC(Qe,at),Qe.placeholder=k,MC(Qe,d,h)}function cm(d){var h=vn[d];return function(x,k){if(x=jr(x),k=k==null?0:Bn(it(k),292),k&&MS(x)){var I=(Tt(x)+"e").split("e"),H=h(I[0]+"e"+(+I[1]+k));return I=(Tt(H)+"e").split("e"),+(I[0]+"e"+(+I[1]-k))}return h(x)}}var xF=ua&&1/Ou(new ua([,-0]))[1]==q?function(d){return new ua(d)}:Am;function gC(d){return function(h){var x=zn(h);return x==ue?Fh(h):x==Ge?jj(h):Oj(h,d(h))}}function Ho(d,h,x,k,I,H,K,Q){var ie=h&C;if(!ie&&typeof d!="function")throw new Ir(s);var Ce=k?k.length:0;if(Ce||(h&=~(E|O),k=I=n),K=K===n?K:xn(it(K),0),Q=Q===n?Q:it(Q),Ce-=I?I.length:0,h&O){var we=k,Ee=I;k=I=n}var De=ie?n:fm(d),He=[d,h,x,k,I,we,Ee,H,K,Q];if(De&&NF(He,De),d=He[0],h=He[1],x=He[2],k=He[3],I=He[4],Q=He[9]=He[9]===n?ie?0:d.length:xn(He[9]-Ce,0),!Q&&h&(T|w)&&(h&=~(T|w)),!h||h==S)var Xe=yF(d,h,x);else h==T||h==w?Xe=bF(d,h,Q):(h==E||h==(S|E))&&!I.length?Xe=vF(d,h,x,k):Xe=Zu.apply(n,He);var at=De?JS:EC;return MC(at(Xe,He),d,h)}function yC(d,h,x,k){return d===n||to(d,ca[x])&&!Mt.call(k,x)?h:d}function bC(d,h,x,k,I,H){return Qt(d)&&Qt(h)&&(H.set(h,d),Ku(d,h,n,bC,H),H.delete(h)),d}function SF(d){return Pl(d)?n:d}function vC(d,h,x,k,I,H){var K=x&y,Q=d.length,ie=h.length;if(Q!=ie&&!(K&&ie>Q))return!1;var Ce=H.get(d),we=H.get(h);if(Ce&&we)return Ce==h&&we==d;var Ee=-1,De=!0,He=x&b?new us:n;for(H.set(d,h),H.set(h,d);++Ee<Q;){var Xe=d[Ee],at=h[Ee];if(k)var Qe=K?k(at,Xe,Ee,h,d,H):k(Xe,at,Ee,d,h,H);if(Qe!==n){if(Qe)continue;De=!1;break}if(He){if(!Dh(h,function(ft,gt){if(!xl(He,gt)&&(Xe===ft||I(Xe,ft,x,k,H)))return He.push(gt)})){De=!1;break}}else if(!(Xe===at||I(Xe,at,x,k,H))){De=!1;break}}return H.delete(d),H.delete(h),De}function CF(d,h,x,k,I,H,K){switch(x){case Dt:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case nn:return!(d.byteLength!=h.byteLength||!H(new Nu(d),new Nu(h)));case X:case W:case ye:return to(+d,+h);case ce:return d.name==h.name&&d.message==h.message;case Ve:case Ie:return d==h+"";case ue:var Q=Fh;case Ge:var ie=k&y;if(Q||(Q=Ou),d.size!=h.size&&!ie)return!1;var Ce=K.get(d);if(Ce)return Ce==h;k|=b,K.set(d,h);var we=vC(Q(d),Q(h),k,I,H,K);return K.delete(d),we;case st:if(_l)return _l.call(d)==_l.call(h)}return!1}function wF(d,h,x,k,I,H){var K=x&y,Q=um(d),ie=Q.length,Ce=um(h),we=Ce.length;if(ie!=we&&!K)return!1;for(var Ee=ie;Ee--;){var De=Q[Ee];if(!(K?De in h:Mt.call(h,De)))return!1}var He=H.get(d),Xe=H.get(h);if(He&&Xe)return He==h&&Xe==d;var at=!0;H.set(d,h),H.set(h,d);for(var Qe=K;++Ee<ie;){De=Q[Ee];var ft=d[De],gt=h[De];if(k)var Cr=K?k(gt,ft,De,h,d,H):k(ft,gt,De,d,h,H);if(!(Cr===n?ft===gt||I(ft,gt,x,k,H):Cr)){at=!1;break}Qe||(Qe=De=="constructor")}if(at&&!Qe){var Xn=d.constructor,wr=h.constructor;Xn!=wr&&"constructor"in d&&"constructor"in h&&!(typeof Xn=="function"&&Xn instanceof Xn&&typeof wr=="function"&&wr instanceof wr)&&(at=!1)}return H.delete(d),H.delete(h),at}function Wo(d){return bm(_C(d,n,PC),d+"")}function um(d){return FS(d,Tn,hm)}function dm(d){return FS(d,cr,xC)}var fm=zu?function(d){return zu.get(d)}:Am;function td(d){for(var h=d.name+"",x=da[h],k=Mt.call(da,h)?x.length:0;k--;){var I=x[k],H=I.func;if(H==null||H==d)return I.name}return h}function ma(d){var h=Mt.call(V,"placeholder")?V:d;return h.placeholder}function Ze(){var d=V.iteratee||Om;return d=d===Om?VS:d,arguments.length?d(arguments[0],arguments[1]):d}function nd(d,h){var x=d.__data__;return AF(h)?x[typeof h=="string"?"string":"hash"]:x.map}function pm(d){for(var h=Tn(d),x=h.length;x--;){var k=h[x],I=d[k];h[x]=[k,I,wC(I)]}return h}function ps(d,h){var x=Pj(d,h);return zS(x)?x:n}function TF(d){var h=Mt.call(d,ls),x=d[ls];try{d[ls]=n;var k=!0}catch{}var I=Du.call(d);return k&&(h?d[ls]=x:delete d[ls]),I}var hm=zh?function(d){return d==null?[]:(d=Pt(d),yi(zh(d),function(h){return kS.call(d,h)}))}:Im,xC=zh?function(d){for(var h=[];d;)bi(h,hm(d)),d=Lu(d);return h}:Im,zn=Jn;(Vh&&zn(new Vh(new ArrayBuffer(1)))!=Dt||Cl&&zn(new Cl)!=ue||Hh&&zn(Hh.resolve())!=Me||ua&&zn(new ua)!=Ge||wl&&zn(new wl)!=Gt)&&(zn=function(d){var h=Jn(d),x=h==Se?d.constructor:n,k=x?hs(x):"";if(k)switch(k){case s$:return Dt;case a$:return ue;case l$:return Me;case c$:return Ge;case u$:return Gt}return h});function _F(d,h,x){for(var k=-1,I=x.length;++k<I;){var H=x[k],K=H.size;switch(H.type){case"drop":d+=K;break;case"dropRight":h-=K;break;case"take":h=Bn(h,d+K);break;case"takeRight":d=xn(d,h-K);break}}return{start:d,end:h}}function kF(d){var h=d.match(IL);return h?h[1].split(DL):[]}function SC(d,h,x){h=wi(h,d);for(var k=-1,I=h.length,H=!1;++k<I;){var K=bo(h[k]);if(!(H=d!=null&&x(d,K)))break;d=d[K]}return H||++k!=I?H:(I=d==null?0:d.length,!!I&&cd(I)&&qo(K,I)&&(ot(d)||ms(d)))}function EF(d){var h=d.length,x=new d.constructor(h);return h&&typeof d[0]=="string"&&Mt.call(d,"index")&&(x.index=d.index,x.input=d.input),x}function CC(d){return typeof d.constructor=="function"&&!Il(d)?fa(Lu(d)):{}}function MF(d,h,x){var k=d.constructor;switch(h){case nn:return am(d);case X:case W:return new k(+d);case Dt:return dF(d,x);case wn:case Fn:case dt:case In:case Vt:case me:case Le:case ke:case je:return oC(d,x);case ue:return new k;case ye:case Ie:return new k(d);case Ve:return fF(d);case Ge:return new k;case st:return pF(d)}}function OF(d,h){var x=h.length;if(!x)return d;var k=x-1;return h[k]=(x>1?"& ":"")+h[k],h=h.join(x>2?", ":" "),d.replace(AL,`{
86
86
  /* [wrapped with `+h+`] */
87
- `)}function RF(d){return ot(d)||ms(d)||!!(ES&&d&&d[ES])}function qo(d,h){var x=typeof d;return h=h??K,!!h&&(x=="number"||x!="symbol"&&VL.test(d))&&d>-1&&d%1==0&&d<h}function Zn(d,h,x){if(!Qt(x))return!1;var k=typeof h;return(k=="number"?lr(x)&&qo(h,x.length):k=="string"&&h in x)?to(x[h],d):!1}function mm(d,h){if(ot(d))return!1;var x=typeof d;return x=="number"||x=="symbol"||x=="boolean"||d==null||Sr(d)?!0:ra.test(d)||!vl.test(d)||h!=null&&d in Pt(h)}function AF(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function gm(d){var h=td(d),x=V[h];if(typeof x!="function"||!(h in ht.prototype))return!1;if(d===x)return!0;var k=fm(x);return!!k&&d===k[0]}function IF(d){return!!wS&&wS in d}var DF=Au?Uo:Dm;function Il(d){var h=d&&d.constructor,x=typeof h=="function"&&h.prototype||ca;return d===x}function wC(d){return d===d&&!Qt(d)}function TC(d,h){return function(x){return x==null?!1:x[d]===h&&(h!==n||d in Pt(x))}}function PF(d){var h=ad(d,function(k){return x.size===u&&x.clear(),k}),x=h.cache;return h}function NF(d,h){var x=d[1],k=h[1],I=x|k,H=I<(S|C|N),U=k==N&&x==T||k==N&&x==D&&d[7].length<=h[8]||k==(N|D)&&h[7].length<=h[8]&&x==T;if(!(H||U))return d;k&S&&(d[2]=h[2],I|=x&S?0:_);var X=h[3];if(X){var ie=d[3];d[3]=ie?sC(ie,X,h[4]):X,d[4]=ie?vi(d[3],f):h[4]}return X=h[5],X&&(ie=d[5],d[5]=ie?aC(ie,X,h[6]):X,d[6]=ie?vi(d[5],f):h[6]),X=h[7],X&&(d[7]=X),k&N&&(d[8]=d[8]==null?h[8]:Bn(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=I,d}function LF(d){var h=[];if(d!=null)for(var x in Pt(d))h.push(x);return h}function jF(d){return Du.call(d)}function _C(d,h,x){return h=xn(h===n?d.length-1:h,0),function(){for(var k=arguments,I=-1,H=xn(k.length-h,0),U=pe(H);++I<H;)U[I]=k[h+I];I=-1;for(var X=pe(h+1);++I<h;)X[I]=k[I];return X[h]=x(U),br(d,this,X)}}function kC(d,h){return h.length<2?d:fs(d,Nr(h,0,-1))}function $F(d,h){for(var x=d.length,k=Bn(h.length,x),I=ar(d);k--;){var H=h[k];d[k]=qo(H,x)?I[H]:n}return d}function ym(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var EC=OC(JS),Dl=Qj||function(d,h){return Dn.setTimeout(d,h)},bm=OC(aF);function MC(d,h,x){var k=h+"";return bm(d,OF(k,FF(kF(k),x)))}function OC(d){var h=0,x=0;return function(){var k=r$(),I=z-(k-x);if(x=k,I>0){if(++h>=P)return arguments[0]}else h=0;return d.apply(n,arguments)}}function rd(d,h){var x=-1,k=d.length,I=k-1;for(h=h===n?k:h;++x<h;){var H=em(x,I),U=d[H];d[H]=d[x],d[x]=U}return d.length=h,d}var RC=PF(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(ML,function(x,k,I,H){h.push(I?H.replace(LL,"$1"):k||x)}),h});function bo(d){if(typeof d=="string"||Sr(d))return d;var h=d+"";return h=="0"&&1/d==-q?"-0":h}function hs(d){if(d!=null){try{return Iu.call(d)}catch{}try{return d+""}catch{}}return""}function FF(d,h){return Ar(oe,function(x){var k="_."+x[0];h&x[1]&&!Eu(d,k)&&d.push(k)}),d.sort()}function AC(d){if(d instanceof ht)return d.clone();var h=new Dr(d.__wrapped__,d.__chain__);return h.__actions__=ar(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function BF(d,h,x){(x?Zn(d,h,x):h===n)?h=1:h=xn(it(h),0);var k=d==null?0:d.length;if(!k||h<1)return[];for(var I=0,H=0,U=pe(Fu(k/h));I<k;)U[H++]=Nr(d,I,I+=h);return U}function zF(d){for(var h=-1,x=d==null?0:d.length,k=0,I=[];++h<x;){var H=d[h];H&&(I[k++]=H)}return I}function VF(){var d=arguments.length;if(!d)return[];for(var h=pe(d-1),x=arguments[0],k=d;k--;)h[k-1]=arguments[k];return bi(ot(x)?ar(x):[x],Pn(h,1))}var HF=ut(function(d,h){return dn(d)?El(d,Pn(h,1,dn,!0)):[]}),WF=ut(function(d,h){var x=Lr(h);return dn(x)&&(x=n),dn(d)?El(d,Pn(h,1,dn,!0),Ze(x,2)):[]}),qF=ut(function(d,h){var x=Lr(h);return dn(x)&&(x=n),dn(d)?El(d,Pn(h,1,dn,!0),n,x):[]});function UF(d,h,x){var k=d==null?0:d.length;return k?(h=x||h===n?1:it(h),Nr(d,h<0?0:h,k)):[]}function KF(d,h,x){var k=d==null?0:d.length;return k?(h=x||h===n?1:it(h),h=k-h,Nr(d,0,h<0?0:h)):[]}function YF(d,h){return d&&d.length?Gu(d,Ze(h,3),!0,!0):[]}function GF(d,h){return d&&d.length?Gu(d,Ze(h,3),!0):[]}function JF(d,h,x,k){var I=d==null?0:d.length;return I?(x&&typeof x!="number"&&Zn(d,h,x)&&(x=0,k=I),V$(d,h,x,k)):[]}function IC(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=x==null?0:it(x);return I<0&&(I=xn(k+I,0)),Mu(d,Ze(h,3),I)}function DC(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=k-1;return x!==n&&(I=it(x),I=x<0?xn(k+I,0):Bn(I,k-1)),Mu(d,Ze(h,3),I,!0)}function PC(d){var h=d==null?0:d.length;return h?Pn(d,1):[]}function ZF(d){var h=d==null?0:d.length;return h?Pn(d,q):[]}function XF(d,h){var x=d==null?0:d.length;return x?(h=h===n?1:it(h),Pn(d,h)):[]}function QF(d){for(var h=-1,x=d==null?0:d.length,k={};++h<x;){var I=d[h];k[I[0]]=I[1]}return k}function NC(d){return d&&d.length?d[0]:n}function e5(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=x==null?0:it(x);return I<0&&(I=xn(k+I,0)),ia(d,h,I)}function t5(d){var h=d==null?0:d.length;return h?Nr(d,0,-1):[]}var n5=ut(function(d){var h=Jt(d,im);return h.length&&h[0]===d[0]?Gh(h):[]}),r5=ut(function(d){var h=Lr(d),x=Jt(d,im);return h===Lr(x)?h=n:x.pop(),x.length&&x[0]===d[0]?Gh(x,Ze(h,2)):[]}),o5=ut(function(d){var h=Lr(d),x=Jt(d,im);return h=typeof h=="function"?h:n,h&&x.pop(),x.length&&x[0]===d[0]?Gh(x,n,h):[]});function i5(d,h){return d==null?"":t$.call(d,h)}function Lr(d){var h=d==null?0:d.length;return h?d[h-1]:n}function s5(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=k;return x!==n&&(I=it(x),I=I<0?xn(k+I,0):Bn(I,k-1)),h===h?Fj(d,h,I):Mu(d,mS,I,!0)}function a5(d,h){return d&&d.length?US(d,it(h)):n}var l5=ut(LC);function LC(d,h){return d&&d.length&&h&&h.length?Qh(d,h):d}function c5(d,h,x){return d&&d.length&&h&&h.length?Qh(d,h,Ze(x,2)):d}function u5(d,h,x){return d&&d.length&&h&&h.length?Qh(d,h,n,x):d}var d5=Wo(function(d,h){var x=d==null?0:d.length,k=qh(d,h);return GS(d,Jt(h,function(I){return qo(I,x)?+I:I}).sort(iC)),k});function f5(d,h){var x=[];if(!(d&&d.length))return x;var k=-1,I=[],H=d.length;for(h=Ze(h,3);++k<H;){var U=d[k];h(U,k,d)&&(x.push(U),I.push(k))}return GS(d,I),x}function vm(d){return d==null?d:i$.call(d)}function p5(d,h,x){var k=d==null?0:d.length;return k?(x&&typeof x!="number"&&Zn(d,h,x)?(h=0,x=k):(h=h==null?0:it(h),x=x===n?k:it(x)),Nr(d,h,x)):[]}function h5(d,h){return Yu(d,h)}function m5(d,h,x){return nm(d,h,Ze(x,2))}function g5(d,h){var x=d==null?0:d.length;if(x){var k=Yu(d,h);if(k<x&&to(d[k],h))return k}return-1}function y5(d,h){return Yu(d,h,!0)}function b5(d,h,x){return nm(d,h,Ze(x,2),!0)}function v5(d,h){var x=d==null?0:d.length;if(x){var k=Yu(d,h,!0)-1;if(to(d[k],h))return k}return-1}function x5(d){return d&&d.length?ZS(d):[]}function S5(d,h){return d&&d.length?ZS(d,Ze(h,2)):[]}function C5(d){var h=d==null?0:d.length;return h?Nr(d,1,h):[]}function w5(d,h,x){return d&&d.length?(h=x||h===n?1:it(h),Nr(d,0,h<0?0:h)):[]}function T5(d,h,x){var k=d==null?0:d.length;return k?(h=x||h===n?1:it(h),h=k-h,Nr(d,h<0?0:h,k)):[]}function _5(d,h){return d&&d.length?Gu(d,Ze(h,3),!1,!0):[]}function k5(d,h){return d&&d.length?Gu(d,Ze(h,3)):[]}var E5=ut(function(d){return Ci(Pn(d,1,dn,!0))}),M5=ut(function(d){var h=Lr(d);return dn(h)&&(h=n),Ci(Pn(d,1,dn,!0),Ze(h,2))}),O5=ut(function(d){var h=Lr(d);return h=typeof h=="function"?h:n,Ci(Pn(d,1,dn,!0),n,h)});function R5(d){return d&&d.length?Ci(d):[]}function A5(d,h){return d&&d.length?Ci(d,Ze(h,2)):[]}function I5(d,h){return h=typeof h=="function"?h:n,d&&d.length?Ci(d,n,h):[]}function xm(d){if(!(d&&d.length))return[];var h=0;return d=yi(d,function(x){if(dn(x))return h=xn(x.length,h),!0}),jh(h,function(x){return Jt(d,Ph(x))})}function jC(d,h){if(!(d&&d.length))return[];var x=xm(d);return h==null?x:Jt(x,function(k){return br(h,n,k)})}var D5=ut(function(d,h){return dn(d)?El(d,h):[]}),P5=ut(function(d){return om(yi(d,dn))}),N5=ut(function(d){var h=Lr(d);return dn(h)&&(h=n),om(yi(d,dn),Ze(h,2))}),L5=ut(function(d){var h=Lr(d);return h=typeof h=="function"?h:n,om(yi(d,dn),n,h)}),j5=ut(xm);function $5(d,h){return tC(d||[],h||[],kl)}function F5(d,h){return tC(d||[],h||[],Rl)}var B5=ut(function(d){var h=d.length,x=h>1?d[h-1]:n;return x=typeof x=="function"?(d.pop(),x):n,jC(d,x)});function $C(d){var h=V(d);return h.__chain__=!0,h}function z5(d,h){return h(d),d}function od(d,h){return h(d)}var V5=Wo(function(d){var h=d.length,x=h?d[0]:0,k=this.__wrapped__,I=function(H){return qh(H,d)};return h>1||this.__actions__.length||!(k instanceof ht)||!qo(x)?this.thru(I):(k=k.slice(x,+x+(h?1:0)),k.__actions__.push({func:od,args:[I],thisArg:n}),new Dr(k,this.__chain__).thru(function(H){return h&&!H.length&&H.push(n),H}))});function H5(){return $C(this)}function W5(){return new Dr(this.value(),this.__chain__)}function q5(){this.__values__===n&&(this.__values__=XC(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function U5(){return this}function K5(d){for(var h,x=this;x instanceof Hu;){var k=AC(x);k.__index__=0,k.__values__=n,h?I.__wrapped__=k:h=k;var I=k;x=x.__wrapped__}return I.__wrapped__=d,h}function Y5(){var d=this.__wrapped__;if(d instanceof ht){var h=d;return this.__actions__.length&&(h=new ht(this)),h=h.reverse(),h.__actions__.push({func:od,args:[vm],thisArg:n}),new Dr(h,this.__chain__)}return this.thru(vm)}function G5(){return eC(this.__wrapped__,this.__actions__)}var J5=Ju(function(d,h,x){Mt.call(d,x)?++d[x]:Vo(d,x,1)});function Z5(d,h,x){var k=ot(d)?pS:z$;return x&&Zn(d,h,x)&&(h=n),k(d,Ze(h,3))}function X5(d,h){var x=ot(d)?yi:jS;return x(d,Ze(h,3))}var Q5=dC(IC),eB=dC(DC);function tB(d,h){return Pn(id(d,h),1)}function nB(d,h){return Pn(id(d,h),q)}function rB(d,h,x){return x=x===n?1:it(x),Pn(id(d,h),x)}function FC(d,h){var x=ot(d)?Ar:Si;return x(d,Ze(h,3))}function BC(d,h){var x=ot(d)?Cj:LS;return x(d,Ze(h,3))}var oB=Ju(function(d,h,x){Mt.call(d,x)?d[x].push(h):Vo(d,x,[h])});function iB(d,h,x,k){d=lr(d)?d:ya(d),x=x&&!k?it(x):0;var I=d.length;return x<0&&(x=xn(I+x,0)),ud(d)?x<=I&&d.indexOf(h,x)>-1:!!I&&ia(d,h,x)>-1}var sB=ut(function(d,h,x){var k=-1,I=typeof h=="function",H=lr(d)?pe(d.length):[];return Si(d,function(U){H[++k]=I?br(h,U,x):Ml(U,h,x)}),H}),aB=Ju(function(d,h,x){Vo(d,x,h)});function id(d,h){var x=ot(d)?Jt:HS;return x(d,Ze(h,3))}function lB(d,h,x,k){return d==null?[]:(ot(h)||(h=h==null?[]:[h]),x=k?n:x,ot(x)||(x=x==null?[]:[x]),KS(d,h,x))}var cB=Ju(function(d,h,x){d[x?0:1].push(h)},function(){return[[],[]]});function uB(d,h,x){var k=ot(d)?Ih:yS,I=arguments.length<3;return k(d,Ze(h,4),x,I,Si)}function dB(d,h,x){var k=ot(d)?wj:yS,I=arguments.length<3;return k(d,Ze(h,4),x,I,LS)}function fB(d,h){var x=ot(d)?yi:jS;return x(d,ld(Ze(h,3)))}function pB(d){var h=ot(d)?IS:iF;return h(d)}function hB(d,h,x){(x?Zn(d,h,x):h===n)?h=1:h=it(h);var k=ot(d)?L$:sF;return k(d,h)}function mB(d){var h=ot(d)?j$:lF;return h(d)}function gB(d){if(d==null)return 0;if(lr(d))return ud(d)?aa(d):d.length;var h=zn(d);return h==de||h==Ge?d.size:Zh(d).length}function yB(d,h,x){var k=ot(d)?Dh:cF;return x&&Zn(d,h,x)&&(h=n),k(d,Ze(h,3))}var bB=ut(function(d,h){if(d==null)return[];var x=h.length;return x>1&&Zn(d,h[0],h[1])?h=[]:x>2&&Zn(h[0],h[1],h[2])&&(h=[h[0]]),KS(d,Pn(h,1),[])}),sd=Xj||function(){return Dn.Date.now()};function vB(d,h){if(typeof h!="function")throw new Ir(s);return d=it(d),function(){if(--d<1)return h.apply(this,arguments)}}function zC(d,h,x){return h=x?n:h,h=d&&h==null?d.length:h,Ho(d,N,n,n,n,n,h)}function VC(d,h){var x;if(typeof h!="function")throw new Ir(s);return d=it(d),function(){return--d>0&&(x=h.apply(this,arguments)),d<=1&&(h=n),x}}var Sm=ut(function(d,h,x){var k=S;if(x.length){var I=vi(x,ma(Sm));k|=E}return Ho(d,k,h,x,I)}),HC=ut(function(d,h,x){var k=S|C;if(x.length){var I=vi(x,ma(HC));k|=E}return Ho(h,k,d,x,I)});function WC(d,h,x){h=x?n:h;var k=Ho(d,T,n,n,n,n,n,h);return k.placeholder=WC.placeholder,k}function qC(d,h,x){h=x?n:h;var k=Ho(d,w,n,n,n,n,n,h);return k.placeholder=qC.placeholder,k}function UC(d,h,x){var k,I,H,U,X,ie,Ce=0,we=!1,Ee=!1,De=!0;if(typeof d!="function")throw new Ir(s);h=jr(h)||0,Qt(x)&&(we=!!x.leading,Ee="maxWait"in x,H=Ee?xn(jr(x.maxWait)||0,h):H,De="trailing"in x?!!x.trailing:De);function He(fn){var no=k,Yo=I;return k=I=n,Ce=fn,U=d.apply(Yo,no),U}function Xe(fn){return Ce=fn,X=Dl(ft,h),we?He(fn):U}function at(fn){var no=fn-ie,Yo=fn-Ce,dw=h-no;return Ee?Bn(dw,H-Yo):dw}function Qe(fn){var no=fn-ie,Yo=fn-Ce;return ie===n||no>=h||no<0||Ee&&Yo>=H}function ft(){var fn=sd();if(Qe(fn))return gt(fn);X=Dl(ft,at(fn))}function gt(fn){return X=n,De&&k?He(fn):(k=I=n,U)}function Cr(){X!==n&&nC(X),Ce=0,k=ie=I=X=n}function Xn(){return X===n?U:gt(sd())}function wr(){var fn=sd(),no=Qe(fn);if(k=arguments,I=this,ie=fn,no){if(X===n)return Xe(ie);if(Ee)return nC(X),X=Dl(ft,h),He(ie)}return X===n&&(X=Dl(ft,h)),U}return wr.cancel=Cr,wr.flush=Xn,wr}var xB=ut(function(d,h){return NS(d,1,h)}),SB=ut(function(d,h,x){return NS(d,jr(h)||0,x)});function CB(d){return Ho(d,L)}function ad(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Ir(s);var x=function(){var k=arguments,I=h?h.apply(this,k):k[0],H=x.cache;if(H.has(I))return H.get(I);var U=d.apply(this,k);return x.cache=H.set(I,U)||H,U};return x.cache=new(ad.Cache||zo),x}ad.Cache=zo;function ld(d){if(typeof d!="function")throw new Ir(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function wB(d){return VC(2,d)}var TB=uF(function(d,h){h=h.length==1&&ot(h[0])?Jt(h[0],vr(Ze())):Jt(Pn(h,1),vr(Ze()));var x=h.length;return ut(function(k){for(var I=-1,H=Bn(k.length,x);++I<H;)k[I]=h[I].call(this,k[I]);return br(d,this,k)})}),Cm=ut(function(d,h){var x=vi(h,ma(Cm));return Ho(d,E,n,h,x)}),KC=ut(function(d,h){var x=vi(h,ma(KC));return Ho(d,O,n,h,x)}),_B=Wo(function(d,h){return Ho(d,D,n,n,n,h)});function kB(d,h){if(typeof d!="function")throw new Ir(s);return h=h===n?h:it(h),ut(d,h)}function EB(d,h){if(typeof d!="function")throw new Ir(s);return h=h==null?0:xn(it(h),0),ut(function(x){var k=x[h],I=Ti(x,0,h);return k&&bi(I,k),br(d,this,I)})}function MB(d,h,x){var k=!0,I=!0;if(typeof d!="function")throw new Ir(s);return Qt(x)&&(k="leading"in x?!!x.leading:k,I="trailing"in x?!!x.trailing:I),UC(d,h,{leading:k,maxWait:h,trailing:I})}function OB(d){return zC(d,1)}function RB(d,h){return Cm(sm(h),d)}function AB(){if(!arguments.length)return[];var d=arguments[0];return ot(d)?d:[d]}function IB(d){return Pr(d,g)}function DB(d,h){return h=typeof h=="function"?h:n,Pr(d,g,h)}function PB(d){return Pr(d,p|g)}function NB(d,h){return h=typeof h=="function"?h:n,Pr(d,p|g,h)}function LB(d,h){return h==null||PS(d,h,Tn(h))}function to(d,h){return d===h||d!==d&&h!==h}var jB=ed(Yh),$B=ed(function(d,h){return d>=h}),ms=BS(function(){return arguments}())?BS:function(d){return rn(d)&&Mt.call(d,"callee")&&!kS.call(d,"callee")},ot=pe.isArray,FB=aS?vr(aS):K$;function lr(d){return d!=null&&cd(d.length)&&!Uo(d)}function dn(d){return rn(d)&&lr(d)}function BB(d){return d===!0||d===!1||rn(d)&&Jn(d)==ae}var _i=e$||Dm,zB=lS?vr(lS):Y$;function VB(d){return rn(d)&&d.nodeType===1&&!Pl(d)}function HB(d){if(d==null)return!0;if(lr(d)&&(ot(d)||typeof d=="string"||typeof d.splice=="function"||_i(d)||ga(d)||ms(d)))return!d.length;var h=zn(d);if(h==de||h==Ge)return!d.size;if(Il(d))return!Zh(d).length;for(var x in d)if(Mt.call(d,x))return!1;return!0}function WB(d,h){return Ol(d,h)}function qB(d,h,x){x=typeof x=="function"?x:n;var k=x?x(d,h):n;return k===n?Ol(d,h,n,x):!!k}function wm(d){if(!rn(d))return!1;var h=Jn(d);return h==ue||h==te||typeof d.message=="string"&&typeof d.name=="string"&&!Pl(d)}function UB(d){return typeof d=="number"&&MS(d)}function Uo(d){if(!Qt(d))return!1;var h=Jn(d);return h==ee||h==se||h==ce||h==Ne}function YC(d){return typeof d=="number"&&d==it(d)}function cd(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=K}function Qt(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function rn(d){return d!=null&&typeof d=="object"}var GC=cS?vr(cS):J$;function KB(d,h){return d===h||Jh(d,h,pm(h))}function YB(d,h,x){return x=typeof x=="function"?x:n,Jh(d,h,pm(h),x)}function GB(d){return JC(d)&&d!=+d}function JB(d){if(DF(d))throw new nt(i);return zS(d)}function ZB(d){return d===null}function XB(d){return d==null}function JC(d){return typeof d=="number"||rn(d)&&Jn(d)==ye}function Pl(d){if(!rn(d)||Jn(d)!=Se)return!1;var h=Lu(d);if(h===null)return!0;var x=Mt.call(h,"constructor")&&h.constructor;return typeof x=="function"&&x instanceof x&&Iu.call(x)==Yj}var Tm=uS?vr(uS):Z$;function QB(d){return YC(d)&&d>=-K&&d<=K}var ZC=dS?vr(dS):X$;function ud(d){return typeof d=="string"||!ot(d)&&rn(d)&&Jn(d)==Ie}function Sr(d){return typeof d=="symbol"||rn(d)&&Jn(d)==st}var ga=fS?vr(fS):Q$;function e3(d){return d===n}function t3(d){return rn(d)&&zn(d)==Gt}function n3(d){return rn(d)&&Jn(d)==bn}var r3=ed(Xh),o3=ed(function(d,h){return d<=h});function XC(d){if(!d)return[];if(lr(d))return ud(d)?Qr(d):ar(d);if(Sl&&d[Sl])return Lj(d[Sl]());var h=zn(d),x=h==de?Fh:h==Ge?Ou:ya;return x(d)}function Ko(d){if(!d)return d===0?d:0;if(d=jr(d),d===q||d===-q){var h=d<0?-1:1;return h*G}return d===d?d:0}function it(d){var h=Ko(d),x=h%1;return h===h?x?h-x:h:0}function QC(d){return d?ds(it(d),0,Z):0}function jr(d){if(typeof d=="number")return d;if(Sr(d))return Y;if(Qt(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Qt(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=bS(d);var x=FL.test(d);return x||zL.test(d)?vj(d.slice(2),x?2:8):$L.test(d)?Y:+d}function ew(d){return yo(d,cr(d))}function i3(d){return d?ds(it(d),-K,K):d===0?d:0}function Tt(d){return d==null?"":xr(d)}var s3=pa(function(d,h){if(Il(h)||lr(h)){yo(h,Tn(h),d);return}for(var x in h)Mt.call(h,x)&&kl(d,x,h[x])}),tw=pa(function(d,h){yo(h,cr(h),d)}),dd=pa(function(d,h,x,k){yo(h,cr(h),d,k)}),a3=pa(function(d,h,x,k){yo(h,Tn(h),d,k)}),l3=Wo(qh);function c3(d,h){var x=fa(d);return h==null?x:DS(x,h)}var u3=ut(function(d,h){d=Pt(d);var x=-1,k=h.length,I=k>2?h[2]:n;for(I&&Zn(h[0],h[1],I)&&(k=1);++x<k;)for(var H=h[x],U=cr(H),X=-1,ie=U.length;++X<ie;){var Ce=U[X],we=d[Ce];(we===n||to(we,ca[Ce])&&!Mt.call(d,Ce))&&(d[Ce]=H[Ce])}return d}),d3=ut(function(d){return d.push(n,bC),br(nw,n,d)});function f3(d,h){return hS(d,Ze(h,3),go)}function p3(d,h){return hS(d,Ze(h,3),Kh)}function h3(d,h){return d==null?d:Uh(d,Ze(h,3),cr)}function m3(d,h){return d==null?d:$S(d,Ze(h,3),cr)}function g3(d,h){return d&&go(d,Ze(h,3))}function y3(d,h){return d&&Kh(d,Ze(h,3))}function b3(d){return d==null?[]:Uu(d,Tn(d))}function v3(d){return d==null?[]:Uu(d,cr(d))}function _m(d,h,x){var k=d==null?n:fs(d,h);return k===n?x:k}function x3(d,h){return d!=null&&SC(d,h,H$)}function km(d,h){return d!=null&&SC(d,h,W$)}var S3=pC(function(d,h,x){h!=null&&typeof h.toString!="function"&&(h=Du.call(h)),d[h]=x},Mm(ur)),C3=pC(function(d,h,x){h!=null&&typeof h.toString!="function"&&(h=Du.call(h)),Mt.call(d,h)?d[h].push(x):d[h]=[x]},Ze),w3=ut(Ml);function Tn(d){return lr(d)?AS(d):Zh(d)}function cr(d){return lr(d)?AS(d,!0):eF(d)}function T3(d,h){var x={};return h=Ze(h,3),go(d,function(k,I,H){Vo(x,h(k,I,H),k)}),x}function _3(d,h){var x={};return h=Ze(h,3),go(d,function(k,I,H){Vo(x,I,h(k,I,H))}),x}var k3=pa(function(d,h,x){Ku(d,h,x)}),nw=pa(function(d,h,x,k){Ku(d,h,x,k)}),E3=Wo(function(d,h){var x={};if(d==null)return x;var k=!1;h=Jt(h,function(H){return H=wi(H,d),k||(k=H.length>1),H}),yo(d,dm(d),x),k&&(x=Pr(x,p|m|g,SF));for(var I=h.length;I--;)rm(x,h[I]);return x});function M3(d,h){return rw(d,ld(Ze(h)))}var O3=Wo(function(d,h){return d==null?{}:nF(d,h)});function rw(d,h){if(d==null)return{};var x=Jt(dm(d),function(k){return[k]});return h=Ze(h),YS(d,x,function(k,I){return h(k,I[0])})}function R3(d,h,x){h=wi(h,d);var k=-1,I=h.length;for(I||(I=1,d=n);++k<I;){var H=d==null?n:d[bo(h[k])];H===n&&(k=I,H=x),d=Uo(H)?H.call(d):H}return d}function A3(d,h,x){return d==null?d:Rl(d,h,x)}function I3(d,h,x,k){return k=typeof k=="function"?k:n,d==null?d:Rl(d,h,x,k)}var ow=gC(Tn),iw=gC(cr);function D3(d,h,x){var k=ot(d),I=k||_i(d)||ga(d);if(h=Ze(h,4),x==null){var H=d&&d.constructor;I?x=k?new H:[]:Qt(d)?x=Uo(H)?fa(Lu(d)):{}:x={}}return(I?Ar:go)(d,function(U,X,ie){return h(x,U,X,ie)}),x}function P3(d,h){return d==null?!0:rm(d,h)}function N3(d,h,x){return d==null?d:QS(d,h,sm(x))}function L3(d,h,x,k){return k=typeof k=="function"?k:n,d==null?d:QS(d,h,sm(x),k)}function ya(d){return d==null?[]:$h(d,Tn(d))}function j3(d){return d==null?[]:$h(d,cr(d))}function $3(d,h,x){return x===n&&(x=h,h=n),x!==n&&(x=jr(x),x=x===x?x:0),h!==n&&(h=jr(h),h=h===h?h:0),ds(jr(d),h,x)}function F3(d,h,x){return h=Ko(h),x===n?(x=h,h=0):x=Ko(x),d=jr(d),q$(d,h,x)}function B3(d,h,x){if(x&&typeof x!="boolean"&&Zn(d,h,x)&&(h=x=n),x===n&&(typeof h=="boolean"?(x=h,h=n):typeof d=="boolean"&&(x=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Ko(d),h===n?(h=d,d=0):h=Ko(h)),d>h){var k=d;d=h,h=k}if(x||d%1||h%1){var I=OS();return Bn(d+I*(h-d+bj("1e-"+((I+"").length-1))),h)}return em(d,h)}var z3=ha(function(d,h,x){return h=h.toLowerCase(),d+(x?sw(h):h)});function sw(d){return Em(Tt(d).toLowerCase())}function aw(d){return d=Tt(d),d&&d.replace(HL,Aj).replace(lj,"")}function V3(d,h,x){d=Tt(d),h=xr(h);var k=d.length;x=x===n?k:ds(it(x),0,k);var I=x;return x-=h.length,x>=0&&d.slice(x,I)==h}function H3(d){return d=Tt(d),d&&bl.test(d)?d.replace(sr,Ij):d}function W3(d){return d=Tt(d),d&&OL.test(d)?d.replace(Ch,"\\$&"):d}var q3=ha(function(d,h,x){return d+(x?"-":"")+h.toLowerCase()}),U3=ha(function(d,h,x){return d+(x?" ":"")+h.toLowerCase()}),K3=uC("toLowerCase");function Y3(d,h,x){d=Tt(d),h=it(h);var k=h?aa(d):0;if(!h||k>=h)return d;var I=(h-k)/2;return Qu(Bu(I),x)+d+Qu(Fu(I),x)}function G3(d,h,x){d=Tt(d),h=it(h);var k=h?aa(d):0;return h&&k<h?d+Qu(h-k,x):d}function J3(d,h,x){d=Tt(d),h=it(h);var k=h?aa(d):0;return h&&k<h?Qu(h-k,x)+d:d}function Z3(d,h,x){return x||h==null?h=0:h&&(h=+h),o$(Tt(d).replace(wh,""),h||0)}function X3(d,h,x){return(x?Zn(d,h,x):h===n)?h=1:h=it(h),tm(Tt(d),h)}function Q3(){var d=arguments,h=Tt(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var ez=ha(function(d,h,x){return d+(x?"_":"")+h.toLowerCase()});function tz(d,h,x){return x&&typeof x!="number"&&Zn(d,h,x)&&(h=x=n),x=x===n?Z:x>>>0,x?(d=Tt(d),d&&(typeof h=="string"||h!=null&&!Tm(h))&&(h=xr(h),!h&&sa(d))?Ti(Qr(d),0,x):d.split(h,x)):[]}var nz=ha(function(d,h,x){return d+(x?" ":"")+Em(h)});function rz(d,h,x){return d=Tt(d),x=x==null?0:ds(it(x),0,d.length),h=xr(h),d.slice(x,x+h.length)==h}function oz(d,h,x){var k=V.templateSettings;x&&Zn(d,h,x)&&(h=n),d=Tt(d),h=dd({},h,k,yC);var I=dd({},h.imports,k.imports,yC),H=Tn(I),U=$h(I,H),X,ie,Ce=0,we=h.interpolate||Tu,Ee="__p += '",De=Bh((h.escape||Tu).source+"|"+we.source+"|"+(we===wu?jL:Tu).source+"|"+(h.evaluate||Tu).source+"|$","g"),He="//# sourceURL="+(Mt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pj+"]")+`
88
- `;d.replace(De,function(Qe,ft,gt,Cr,Xn,wr){return gt||(gt=Cr),Ee+=d.slice(Ce,wr).replace(WL,Dj),ft&&(X=!0,Ee+=`' +
87
+ `)}function RF(d){return ot(d)||ms(d)||!!(ES&&d&&d[ES])}function qo(d,h){var x=typeof d;return h=h??U,!!h&&(x=="number"||x!="symbol"&&VL.test(d))&&d>-1&&d%1==0&&d<h}function Zn(d,h,x){if(!Qt(x))return!1;var k=typeof h;return(k=="number"?lr(x)&&qo(h,x.length):k=="string"&&h in x)?to(x[h],d):!1}function mm(d,h){if(ot(d))return!1;var x=typeof d;return x=="number"||x=="symbol"||x=="boolean"||d==null||Sr(d)?!0:ra.test(d)||!vl.test(d)||h!=null&&d in Pt(h)}function AF(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function gm(d){var h=td(d),x=V[h];if(typeof x!="function"||!(h in ht.prototype))return!1;if(d===x)return!0;var k=fm(x);return!!k&&d===k[0]}function IF(d){return!!wS&&wS in d}var DF=Au?Uo:Dm;function Il(d){var h=d&&d.constructor,x=typeof h=="function"&&h.prototype||ca;return d===x}function wC(d){return d===d&&!Qt(d)}function TC(d,h){return function(x){return x==null?!1:x[d]===h&&(h!==n||d in Pt(x))}}function PF(d){var h=ad(d,function(k){return x.size===u&&x.clear(),k}),x=h.cache;return h}function NF(d,h){var x=d[1],k=h[1],I=x|k,H=I<(S|C|N),K=k==N&&x==T||k==N&&x==D&&d[7].length<=h[8]||k==(N|D)&&h[7].length<=h[8]&&x==T;if(!(H||K))return d;k&S&&(d[2]=h[2],I|=x&S?0:_);var Q=h[3];if(Q){var ie=d[3];d[3]=ie?sC(ie,Q,h[4]):Q,d[4]=ie?vi(d[3],f):h[4]}return Q=h[5],Q&&(ie=d[5],d[5]=ie?aC(ie,Q,h[6]):Q,d[6]=ie?vi(d[5],f):h[6]),Q=h[7],Q&&(d[7]=Q),k&N&&(d[8]=d[8]==null?h[8]:Bn(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=I,d}function LF(d){var h=[];if(d!=null)for(var x in Pt(d))h.push(x);return h}function jF(d){return Du.call(d)}function _C(d,h,x){return h=xn(h===n?d.length-1:h,0),function(){for(var k=arguments,I=-1,H=xn(k.length-h,0),K=de(H);++I<H;)K[I]=k[h+I];I=-1;for(var Q=de(h+1);++I<h;)Q[I]=k[I];return Q[h]=x(K),br(d,this,Q)}}function kC(d,h){return h.length<2?d:fs(d,Nr(h,0,-1))}function $F(d,h){for(var x=d.length,k=Bn(h.length,x),I=ar(d);k--;){var H=h[k];d[k]=qo(H,x)?I[H]:n}return d}function ym(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var EC=OC(JS),Dl=Qj||function(d,h){return Dn.setTimeout(d,h)},bm=OC(aF);function MC(d,h,x){var k=h+"";return bm(d,OF(k,FF(kF(k),x)))}function OC(d){var h=0,x=0;return function(){var k=r$(),I=B-(k-x);if(x=k,I>0){if(++h>=P)return arguments[0]}else h=0;return d.apply(n,arguments)}}function rd(d,h){var x=-1,k=d.length,I=k-1;for(h=h===n?k:h;++x<h;){var H=em(x,I),K=d[H];d[H]=d[x],d[x]=K}return d.length=h,d}var RC=PF(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(ML,function(x,k,I,H){h.push(I?H.replace(LL,"$1"):k||x)}),h});function bo(d){if(typeof d=="string"||Sr(d))return d;var h=d+"";return h=="0"&&1/d==-q?"-0":h}function hs(d){if(d!=null){try{return Iu.call(d)}catch{}try{return d+""}catch{}}return""}function FF(d,h){return Ar(ge,function(x){var k="_."+x[0];h&x[1]&&!Eu(d,k)&&d.push(k)}),d.sort()}function AC(d){if(d instanceof ht)return d.clone();var h=new Dr(d.__wrapped__,d.__chain__);return h.__actions__=ar(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function BF(d,h,x){(x?Zn(d,h,x):h===n)?h=1:h=xn(it(h),0);var k=d==null?0:d.length;if(!k||h<1)return[];for(var I=0,H=0,K=de(Fu(k/h));I<k;)K[H++]=Nr(d,I,I+=h);return K}function zF(d){for(var h=-1,x=d==null?0:d.length,k=0,I=[];++h<x;){var H=d[h];H&&(I[k++]=H)}return I}function VF(){var d=arguments.length;if(!d)return[];for(var h=de(d-1),x=arguments[0],k=d;k--;)h[k-1]=arguments[k];return bi(ot(x)?ar(x):[x],Pn(h,1))}var HF=ut(function(d,h){return dn(d)?El(d,Pn(h,1,dn,!0)):[]}),WF=ut(function(d,h){var x=Lr(h);return dn(x)&&(x=n),dn(d)?El(d,Pn(h,1,dn,!0),Ze(x,2)):[]}),qF=ut(function(d,h){var x=Lr(h);return dn(x)&&(x=n),dn(d)?El(d,Pn(h,1,dn,!0),n,x):[]});function UF(d,h,x){var k=d==null?0:d.length;return k?(h=x||h===n?1:it(h),Nr(d,h<0?0:h,k)):[]}function KF(d,h,x){var k=d==null?0:d.length;return k?(h=x||h===n?1:it(h),h=k-h,Nr(d,0,h<0?0:h)):[]}function YF(d,h){return d&&d.length?Gu(d,Ze(h,3),!0,!0):[]}function GF(d,h){return d&&d.length?Gu(d,Ze(h,3),!0):[]}function JF(d,h,x,k){var I=d==null?0:d.length;return I?(x&&typeof x!="number"&&Zn(d,h,x)&&(x=0,k=I),V$(d,h,x,k)):[]}function IC(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=x==null?0:it(x);return I<0&&(I=xn(k+I,0)),Mu(d,Ze(h,3),I)}function DC(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=k-1;return x!==n&&(I=it(x),I=x<0?xn(k+I,0):Bn(I,k-1)),Mu(d,Ze(h,3),I,!0)}function PC(d){var h=d==null?0:d.length;return h?Pn(d,1):[]}function ZF(d){var h=d==null?0:d.length;return h?Pn(d,q):[]}function XF(d,h){var x=d==null?0:d.length;return x?(h=h===n?1:it(h),Pn(d,h)):[]}function QF(d){for(var h=-1,x=d==null?0:d.length,k={};++h<x;){var I=d[h];k[I[0]]=I[1]}return k}function NC(d){return d&&d.length?d[0]:n}function e5(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=x==null?0:it(x);return I<0&&(I=xn(k+I,0)),ia(d,h,I)}function t5(d){var h=d==null?0:d.length;return h?Nr(d,0,-1):[]}var n5=ut(function(d){var h=Jt(d,im);return h.length&&h[0]===d[0]?Gh(h):[]}),r5=ut(function(d){var h=Lr(d),x=Jt(d,im);return h===Lr(x)?h=n:x.pop(),x.length&&x[0]===d[0]?Gh(x,Ze(h,2)):[]}),o5=ut(function(d){var h=Lr(d),x=Jt(d,im);return h=typeof h=="function"?h:n,h&&x.pop(),x.length&&x[0]===d[0]?Gh(x,n,h):[]});function i5(d,h){return d==null?"":t$.call(d,h)}function Lr(d){var h=d==null?0:d.length;return h?d[h-1]:n}function s5(d,h,x){var k=d==null?0:d.length;if(!k)return-1;var I=k;return x!==n&&(I=it(x),I=I<0?xn(k+I,0):Bn(I,k-1)),h===h?Fj(d,h,I):Mu(d,mS,I,!0)}function a5(d,h){return d&&d.length?US(d,it(h)):n}var l5=ut(LC);function LC(d,h){return d&&d.length&&h&&h.length?Qh(d,h):d}function c5(d,h,x){return d&&d.length&&h&&h.length?Qh(d,h,Ze(x,2)):d}function u5(d,h,x){return d&&d.length&&h&&h.length?Qh(d,h,n,x):d}var d5=Wo(function(d,h){var x=d==null?0:d.length,k=qh(d,h);return GS(d,Jt(h,function(I){return qo(I,x)?+I:I}).sort(iC)),k});function f5(d,h){var x=[];if(!(d&&d.length))return x;var k=-1,I=[],H=d.length;for(h=Ze(h,3);++k<H;){var K=d[k];h(K,k,d)&&(x.push(K),I.push(k))}return GS(d,I),x}function vm(d){return d==null?d:i$.call(d)}function p5(d,h,x){var k=d==null?0:d.length;return k?(x&&typeof x!="number"&&Zn(d,h,x)?(h=0,x=k):(h=h==null?0:it(h),x=x===n?k:it(x)),Nr(d,h,x)):[]}function h5(d,h){return Yu(d,h)}function m5(d,h,x){return nm(d,h,Ze(x,2))}function g5(d,h){var x=d==null?0:d.length;if(x){var k=Yu(d,h);if(k<x&&to(d[k],h))return k}return-1}function y5(d,h){return Yu(d,h,!0)}function b5(d,h,x){return nm(d,h,Ze(x,2),!0)}function v5(d,h){var x=d==null?0:d.length;if(x){var k=Yu(d,h,!0)-1;if(to(d[k],h))return k}return-1}function x5(d){return d&&d.length?ZS(d):[]}function S5(d,h){return d&&d.length?ZS(d,Ze(h,2)):[]}function C5(d){var h=d==null?0:d.length;return h?Nr(d,1,h):[]}function w5(d,h,x){return d&&d.length?(h=x||h===n?1:it(h),Nr(d,0,h<0?0:h)):[]}function T5(d,h,x){var k=d==null?0:d.length;return k?(h=x||h===n?1:it(h),h=k-h,Nr(d,h<0?0:h,k)):[]}function _5(d,h){return d&&d.length?Gu(d,Ze(h,3),!1,!0):[]}function k5(d,h){return d&&d.length?Gu(d,Ze(h,3)):[]}var E5=ut(function(d){return Ci(Pn(d,1,dn,!0))}),M5=ut(function(d){var h=Lr(d);return dn(h)&&(h=n),Ci(Pn(d,1,dn,!0),Ze(h,2))}),O5=ut(function(d){var h=Lr(d);return h=typeof h=="function"?h:n,Ci(Pn(d,1,dn,!0),n,h)});function R5(d){return d&&d.length?Ci(d):[]}function A5(d,h){return d&&d.length?Ci(d,Ze(h,2)):[]}function I5(d,h){return h=typeof h=="function"?h:n,d&&d.length?Ci(d,n,h):[]}function xm(d){if(!(d&&d.length))return[];var h=0;return d=yi(d,function(x){if(dn(x))return h=xn(x.length,h),!0}),jh(h,function(x){return Jt(d,Ph(x))})}function jC(d,h){if(!(d&&d.length))return[];var x=xm(d);return h==null?x:Jt(x,function(k){return br(h,n,k)})}var D5=ut(function(d,h){return dn(d)?El(d,h):[]}),P5=ut(function(d){return om(yi(d,dn))}),N5=ut(function(d){var h=Lr(d);return dn(h)&&(h=n),om(yi(d,dn),Ze(h,2))}),L5=ut(function(d){var h=Lr(d);return h=typeof h=="function"?h:n,om(yi(d,dn),n,h)}),j5=ut(xm);function $5(d,h){return tC(d||[],h||[],kl)}function F5(d,h){return tC(d||[],h||[],Rl)}var B5=ut(function(d){var h=d.length,x=h>1?d[h-1]:n;return x=typeof x=="function"?(d.pop(),x):n,jC(d,x)});function $C(d){var h=V(d);return h.__chain__=!0,h}function z5(d,h){return h(d),d}function od(d,h){return h(d)}var V5=Wo(function(d){var h=d.length,x=h?d[0]:0,k=this.__wrapped__,I=function(H){return qh(H,d)};return h>1||this.__actions__.length||!(k instanceof ht)||!qo(x)?this.thru(I):(k=k.slice(x,+x+(h?1:0)),k.__actions__.push({func:od,args:[I],thisArg:n}),new Dr(k,this.__chain__).thru(function(H){return h&&!H.length&&H.push(n),H}))});function H5(){return $C(this)}function W5(){return new Dr(this.value(),this.__chain__)}function q5(){this.__values__===n&&(this.__values__=XC(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function U5(){return this}function K5(d){for(var h,x=this;x instanceof Hu;){var k=AC(x);k.__index__=0,k.__values__=n,h?I.__wrapped__=k:h=k;var I=k;x=x.__wrapped__}return I.__wrapped__=d,h}function Y5(){var d=this.__wrapped__;if(d instanceof ht){var h=d;return this.__actions__.length&&(h=new ht(this)),h=h.reverse(),h.__actions__.push({func:od,args:[vm],thisArg:n}),new Dr(h,this.__chain__)}return this.thru(vm)}function G5(){return eC(this.__wrapped__,this.__actions__)}var J5=Ju(function(d,h,x){Mt.call(d,x)?++d[x]:Vo(d,x,1)});function Z5(d,h,x){var k=ot(d)?pS:z$;return x&&Zn(d,h,x)&&(h=n),k(d,Ze(h,3))}function X5(d,h){var x=ot(d)?yi:jS;return x(d,Ze(h,3))}var Q5=dC(IC),eB=dC(DC);function tB(d,h){return Pn(id(d,h),1)}function nB(d,h){return Pn(id(d,h),q)}function rB(d,h,x){return x=x===n?1:it(x),Pn(id(d,h),x)}function FC(d,h){var x=ot(d)?Ar:Si;return x(d,Ze(h,3))}function BC(d,h){var x=ot(d)?Cj:LS;return x(d,Ze(h,3))}var oB=Ju(function(d,h,x){Mt.call(d,x)?d[x].push(h):Vo(d,x,[h])});function iB(d,h,x,k){d=lr(d)?d:ya(d),x=x&&!k?it(x):0;var I=d.length;return x<0&&(x=xn(I+x,0)),ud(d)?x<=I&&d.indexOf(h,x)>-1:!!I&&ia(d,h,x)>-1}var sB=ut(function(d,h,x){var k=-1,I=typeof h=="function",H=lr(d)?de(d.length):[];return Si(d,function(K){H[++k]=I?br(h,K,x):Ml(K,h,x)}),H}),aB=Ju(function(d,h,x){Vo(d,x,h)});function id(d,h){var x=ot(d)?Jt:HS;return x(d,Ze(h,3))}function lB(d,h,x,k){return d==null?[]:(ot(h)||(h=h==null?[]:[h]),x=k?n:x,ot(x)||(x=x==null?[]:[x]),KS(d,h,x))}var cB=Ju(function(d,h,x){d[x?0:1].push(h)},function(){return[[],[]]});function uB(d,h,x){var k=ot(d)?Ih:yS,I=arguments.length<3;return k(d,Ze(h,4),x,I,Si)}function dB(d,h,x){var k=ot(d)?wj:yS,I=arguments.length<3;return k(d,Ze(h,4),x,I,LS)}function fB(d,h){var x=ot(d)?yi:jS;return x(d,ld(Ze(h,3)))}function pB(d){var h=ot(d)?IS:iF;return h(d)}function hB(d,h,x){(x?Zn(d,h,x):h===n)?h=1:h=it(h);var k=ot(d)?L$:sF;return k(d,h)}function mB(d){var h=ot(d)?j$:lF;return h(d)}function gB(d){if(d==null)return 0;if(lr(d))return ud(d)?aa(d):d.length;var h=zn(d);return h==ue||h==Ge?d.size:Zh(d).length}function yB(d,h,x){var k=ot(d)?Dh:cF;return x&&Zn(d,h,x)&&(h=n),k(d,Ze(h,3))}var bB=ut(function(d,h){if(d==null)return[];var x=h.length;return x>1&&Zn(d,h[0],h[1])?h=[]:x>2&&Zn(h[0],h[1],h[2])&&(h=[h[0]]),KS(d,Pn(h,1),[])}),sd=Xj||function(){return Dn.Date.now()};function vB(d,h){if(typeof h!="function")throw new Ir(s);return d=it(d),function(){if(--d<1)return h.apply(this,arguments)}}function zC(d,h,x){return h=x?n:h,h=d&&h==null?d.length:h,Ho(d,N,n,n,n,n,h)}function VC(d,h){var x;if(typeof h!="function")throw new Ir(s);return d=it(d),function(){return--d>0&&(x=h.apply(this,arguments)),d<=1&&(h=n),x}}var Sm=ut(function(d,h,x){var k=S;if(x.length){var I=vi(x,ma(Sm));k|=E}return Ho(d,k,h,x,I)}),HC=ut(function(d,h,x){var k=S|C;if(x.length){var I=vi(x,ma(HC));k|=E}return Ho(h,k,d,x,I)});function WC(d,h,x){h=x?n:h;var k=Ho(d,T,n,n,n,n,n,h);return k.placeholder=WC.placeholder,k}function qC(d,h,x){h=x?n:h;var k=Ho(d,w,n,n,n,n,n,h);return k.placeholder=qC.placeholder,k}function UC(d,h,x){var k,I,H,K,Q,ie,Ce=0,we=!1,Ee=!1,De=!0;if(typeof d!="function")throw new Ir(s);h=jr(h)||0,Qt(x)&&(we=!!x.leading,Ee="maxWait"in x,H=Ee?xn(jr(x.maxWait)||0,h):H,De="trailing"in x?!!x.trailing:De);function He(fn){var no=k,Yo=I;return k=I=n,Ce=fn,K=d.apply(Yo,no),K}function Xe(fn){return Ce=fn,Q=Dl(ft,h),we?He(fn):K}function at(fn){var no=fn-ie,Yo=fn-Ce,dw=h-no;return Ee?Bn(dw,H-Yo):dw}function Qe(fn){var no=fn-ie,Yo=fn-Ce;return ie===n||no>=h||no<0||Ee&&Yo>=H}function ft(){var fn=sd();if(Qe(fn))return gt(fn);Q=Dl(ft,at(fn))}function gt(fn){return Q=n,De&&k?He(fn):(k=I=n,K)}function Cr(){Q!==n&&nC(Q),Ce=0,k=ie=I=Q=n}function Xn(){return Q===n?K:gt(sd())}function wr(){var fn=sd(),no=Qe(fn);if(k=arguments,I=this,ie=fn,no){if(Q===n)return Xe(ie);if(Ee)return nC(Q),Q=Dl(ft,h),He(ie)}return Q===n&&(Q=Dl(ft,h)),K}return wr.cancel=Cr,wr.flush=Xn,wr}var xB=ut(function(d,h){return NS(d,1,h)}),SB=ut(function(d,h,x){return NS(d,jr(h)||0,x)});function CB(d){return Ho(d,L)}function ad(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new Ir(s);var x=function(){var k=arguments,I=h?h.apply(this,k):k[0],H=x.cache;if(H.has(I))return H.get(I);var K=d.apply(this,k);return x.cache=H.set(I,K)||H,K};return x.cache=new(ad.Cache||zo),x}ad.Cache=zo;function ld(d){if(typeof d!="function")throw new Ir(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function wB(d){return VC(2,d)}var TB=uF(function(d,h){h=h.length==1&&ot(h[0])?Jt(h[0],vr(Ze())):Jt(Pn(h,1),vr(Ze()));var x=h.length;return ut(function(k){for(var I=-1,H=Bn(k.length,x);++I<H;)k[I]=h[I].call(this,k[I]);return br(d,this,k)})}),Cm=ut(function(d,h){var x=vi(h,ma(Cm));return Ho(d,E,n,h,x)}),KC=ut(function(d,h){var x=vi(h,ma(KC));return Ho(d,O,n,h,x)}),_B=Wo(function(d,h){return Ho(d,D,n,n,n,h)});function kB(d,h){if(typeof d!="function")throw new Ir(s);return h=h===n?h:it(h),ut(d,h)}function EB(d,h){if(typeof d!="function")throw new Ir(s);return h=h==null?0:xn(it(h),0),ut(function(x){var k=x[h],I=Ti(x,0,h);return k&&bi(I,k),br(d,this,I)})}function MB(d,h,x){var k=!0,I=!0;if(typeof d!="function")throw new Ir(s);return Qt(x)&&(k="leading"in x?!!x.leading:k,I="trailing"in x?!!x.trailing:I),UC(d,h,{leading:k,maxWait:h,trailing:I})}function OB(d){return zC(d,1)}function RB(d,h){return Cm(sm(h),d)}function AB(){if(!arguments.length)return[];var d=arguments[0];return ot(d)?d:[d]}function IB(d){return Pr(d,g)}function DB(d,h){return h=typeof h=="function"?h:n,Pr(d,g,h)}function PB(d){return Pr(d,p|g)}function NB(d,h){return h=typeof h=="function"?h:n,Pr(d,p|g,h)}function LB(d,h){return h==null||PS(d,h,Tn(h))}function to(d,h){return d===h||d!==d&&h!==h}var jB=ed(Yh),$B=ed(function(d,h){return d>=h}),ms=BS(function(){return arguments}())?BS:function(d){return rn(d)&&Mt.call(d,"callee")&&!kS.call(d,"callee")},ot=de.isArray,FB=aS?vr(aS):K$;function lr(d){return d!=null&&cd(d.length)&&!Uo(d)}function dn(d){return rn(d)&&lr(d)}function BB(d){return d===!0||d===!1||rn(d)&&Jn(d)==X}var _i=e$||Dm,zB=lS?vr(lS):Y$;function VB(d){return rn(d)&&d.nodeType===1&&!Pl(d)}function HB(d){if(d==null)return!0;if(lr(d)&&(ot(d)||typeof d=="string"||typeof d.splice=="function"||_i(d)||ga(d)||ms(d)))return!d.length;var h=zn(d);if(h==ue||h==Ge)return!d.size;if(Il(d))return!Zh(d).length;for(var x in d)if(Mt.call(d,x))return!1;return!0}function WB(d,h){return Ol(d,h)}function qB(d,h,x){x=typeof x=="function"?x:n;var k=x?x(d,h):n;return k===n?Ol(d,h,n,x):!!k}function wm(d){if(!rn(d))return!1;var h=Jn(d);return h==ce||h==ee||typeof d.message=="string"&&typeof d.name=="string"&&!Pl(d)}function UB(d){return typeof d=="number"&&MS(d)}function Uo(d){if(!Qt(d))return!1;var h=Jn(d);return h==te||h==se||h==le||h==Ne}function YC(d){return typeof d=="number"&&d==it(d)}function cd(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=U}function Qt(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function rn(d){return d!=null&&typeof d=="object"}var GC=cS?vr(cS):J$;function KB(d,h){return d===h||Jh(d,h,pm(h))}function YB(d,h,x){return x=typeof x=="function"?x:n,Jh(d,h,pm(h),x)}function GB(d){return JC(d)&&d!=+d}function JB(d){if(DF(d))throw new nt(i);return zS(d)}function ZB(d){return d===null}function XB(d){return d==null}function JC(d){return typeof d=="number"||rn(d)&&Jn(d)==ye}function Pl(d){if(!rn(d)||Jn(d)!=Se)return!1;var h=Lu(d);if(h===null)return!0;var x=Mt.call(h,"constructor")&&h.constructor;return typeof x=="function"&&x instanceof x&&Iu.call(x)==Yj}var Tm=uS?vr(uS):Z$;function QB(d){return YC(d)&&d>=-U&&d<=U}var ZC=dS?vr(dS):X$;function ud(d){return typeof d=="string"||!ot(d)&&rn(d)&&Jn(d)==Ie}function Sr(d){return typeof d=="symbol"||rn(d)&&Jn(d)==st}var ga=fS?vr(fS):Q$;function e3(d){return d===n}function t3(d){return rn(d)&&zn(d)==Gt}function n3(d){return rn(d)&&Jn(d)==bn}var r3=ed(Xh),o3=ed(function(d,h){return d<=h});function XC(d){if(!d)return[];if(lr(d))return ud(d)?Qr(d):ar(d);if(Sl&&d[Sl])return Lj(d[Sl]());var h=zn(d),x=h==ue?Fh:h==Ge?Ou:ya;return x(d)}function Ko(d){if(!d)return d===0?d:0;if(d=jr(d),d===q||d===-q){var h=d<0?-1:1;return h*G}return d===d?d:0}function it(d){var h=Ko(d),x=h%1;return h===h?x?h-x:h:0}function QC(d){return d?ds(it(d),0,Z):0}function jr(d){if(typeof d=="number")return d;if(Sr(d))return Y;if(Qt(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=Qt(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=bS(d);var x=FL.test(d);return x||zL.test(d)?vj(d.slice(2),x?2:8):$L.test(d)?Y:+d}function ew(d){return yo(d,cr(d))}function i3(d){return d?ds(it(d),-U,U):d===0?d:0}function Tt(d){return d==null?"":xr(d)}var s3=pa(function(d,h){if(Il(h)||lr(h)){yo(h,Tn(h),d);return}for(var x in h)Mt.call(h,x)&&kl(d,x,h[x])}),tw=pa(function(d,h){yo(h,cr(h),d)}),dd=pa(function(d,h,x,k){yo(h,cr(h),d,k)}),a3=pa(function(d,h,x,k){yo(h,Tn(h),d,k)}),l3=Wo(qh);function c3(d,h){var x=fa(d);return h==null?x:DS(x,h)}var u3=ut(function(d,h){d=Pt(d);var x=-1,k=h.length,I=k>2?h[2]:n;for(I&&Zn(h[0],h[1],I)&&(k=1);++x<k;)for(var H=h[x],K=cr(H),Q=-1,ie=K.length;++Q<ie;){var Ce=K[Q],we=d[Ce];(we===n||to(we,ca[Ce])&&!Mt.call(d,Ce))&&(d[Ce]=H[Ce])}return d}),d3=ut(function(d){return d.push(n,bC),br(nw,n,d)});function f3(d,h){return hS(d,Ze(h,3),go)}function p3(d,h){return hS(d,Ze(h,3),Kh)}function h3(d,h){return d==null?d:Uh(d,Ze(h,3),cr)}function m3(d,h){return d==null?d:$S(d,Ze(h,3),cr)}function g3(d,h){return d&&go(d,Ze(h,3))}function y3(d,h){return d&&Kh(d,Ze(h,3))}function b3(d){return d==null?[]:Uu(d,Tn(d))}function v3(d){return d==null?[]:Uu(d,cr(d))}function _m(d,h,x){var k=d==null?n:fs(d,h);return k===n?x:k}function x3(d,h){return d!=null&&SC(d,h,H$)}function km(d,h){return d!=null&&SC(d,h,W$)}var S3=pC(function(d,h,x){h!=null&&typeof h.toString!="function"&&(h=Du.call(h)),d[h]=x},Mm(ur)),C3=pC(function(d,h,x){h!=null&&typeof h.toString!="function"&&(h=Du.call(h)),Mt.call(d,h)?d[h].push(x):d[h]=[x]},Ze),w3=ut(Ml);function Tn(d){return lr(d)?AS(d):Zh(d)}function cr(d){return lr(d)?AS(d,!0):eF(d)}function T3(d,h){var x={};return h=Ze(h,3),go(d,function(k,I,H){Vo(x,h(k,I,H),k)}),x}function _3(d,h){var x={};return h=Ze(h,3),go(d,function(k,I,H){Vo(x,I,h(k,I,H))}),x}var k3=pa(function(d,h,x){Ku(d,h,x)}),nw=pa(function(d,h,x,k){Ku(d,h,x,k)}),E3=Wo(function(d,h){var x={};if(d==null)return x;var k=!1;h=Jt(h,function(H){return H=wi(H,d),k||(k=H.length>1),H}),yo(d,dm(d),x),k&&(x=Pr(x,p|m|g,SF));for(var I=h.length;I--;)rm(x,h[I]);return x});function M3(d,h){return rw(d,ld(Ze(h)))}var O3=Wo(function(d,h){return d==null?{}:nF(d,h)});function rw(d,h){if(d==null)return{};var x=Jt(dm(d),function(k){return[k]});return h=Ze(h),YS(d,x,function(k,I){return h(k,I[0])})}function R3(d,h,x){h=wi(h,d);var k=-1,I=h.length;for(I||(I=1,d=n);++k<I;){var H=d==null?n:d[bo(h[k])];H===n&&(k=I,H=x),d=Uo(H)?H.call(d):H}return d}function A3(d,h,x){return d==null?d:Rl(d,h,x)}function I3(d,h,x,k){return k=typeof k=="function"?k:n,d==null?d:Rl(d,h,x,k)}var ow=gC(Tn),iw=gC(cr);function D3(d,h,x){var k=ot(d),I=k||_i(d)||ga(d);if(h=Ze(h,4),x==null){var H=d&&d.constructor;I?x=k?new H:[]:Qt(d)?x=Uo(H)?fa(Lu(d)):{}:x={}}return(I?Ar:go)(d,function(K,Q,ie){return h(x,K,Q,ie)}),x}function P3(d,h){return d==null?!0:rm(d,h)}function N3(d,h,x){return d==null?d:QS(d,h,sm(x))}function L3(d,h,x,k){return k=typeof k=="function"?k:n,d==null?d:QS(d,h,sm(x),k)}function ya(d){return d==null?[]:$h(d,Tn(d))}function j3(d){return d==null?[]:$h(d,cr(d))}function $3(d,h,x){return x===n&&(x=h,h=n),x!==n&&(x=jr(x),x=x===x?x:0),h!==n&&(h=jr(h),h=h===h?h:0),ds(jr(d),h,x)}function F3(d,h,x){return h=Ko(h),x===n?(x=h,h=0):x=Ko(x),d=jr(d),q$(d,h,x)}function B3(d,h,x){if(x&&typeof x!="boolean"&&Zn(d,h,x)&&(h=x=n),x===n&&(typeof h=="boolean"?(x=h,h=n):typeof d=="boolean"&&(x=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Ko(d),h===n?(h=d,d=0):h=Ko(h)),d>h){var k=d;d=h,h=k}if(x||d%1||h%1){var I=OS();return Bn(d+I*(h-d+bj("1e-"+((I+"").length-1))),h)}return em(d,h)}var z3=ha(function(d,h,x){return h=h.toLowerCase(),d+(x?sw(h):h)});function sw(d){return Em(Tt(d).toLowerCase())}function aw(d){return d=Tt(d),d&&d.replace(HL,Aj).replace(lj,"")}function V3(d,h,x){d=Tt(d),h=xr(h);var k=d.length;x=x===n?k:ds(it(x),0,k);var I=x;return x-=h.length,x>=0&&d.slice(x,I)==h}function H3(d){return d=Tt(d),d&&bl.test(d)?d.replace(sr,Ij):d}function W3(d){return d=Tt(d),d&&OL.test(d)?d.replace(Ch,"\\$&"):d}var q3=ha(function(d,h,x){return d+(x?"-":"")+h.toLowerCase()}),U3=ha(function(d,h,x){return d+(x?" ":"")+h.toLowerCase()}),K3=uC("toLowerCase");function Y3(d,h,x){d=Tt(d),h=it(h);var k=h?aa(d):0;if(!h||k>=h)return d;var I=(h-k)/2;return Qu(Bu(I),x)+d+Qu(Fu(I),x)}function G3(d,h,x){d=Tt(d),h=it(h);var k=h?aa(d):0;return h&&k<h?d+Qu(h-k,x):d}function J3(d,h,x){d=Tt(d),h=it(h);var k=h?aa(d):0;return h&&k<h?Qu(h-k,x)+d:d}function Z3(d,h,x){return x||h==null?h=0:h&&(h=+h),o$(Tt(d).replace(wh,""),h||0)}function X3(d,h,x){return(x?Zn(d,h,x):h===n)?h=1:h=it(h),tm(Tt(d),h)}function Q3(){var d=arguments,h=Tt(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var ez=ha(function(d,h,x){return d+(x?"_":"")+h.toLowerCase()});function tz(d,h,x){return x&&typeof x!="number"&&Zn(d,h,x)&&(h=x=n),x=x===n?Z:x>>>0,x?(d=Tt(d),d&&(typeof h=="string"||h!=null&&!Tm(h))&&(h=xr(h),!h&&sa(d))?Ti(Qr(d),0,x):d.split(h,x)):[]}var nz=ha(function(d,h,x){return d+(x?" ":"")+Em(h)});function rz(d,h,x){return d=Tt(d),x=x==null?0:ds(it(x),0,d.length),h=xr(h),d.slice(x,x+h.length)==h}function oz(d,h,x){var k=V.templateSettings;x&&Zn(d,h,x)&&(h=n),d=Tt(d),h=dd({},h,k,yC);var I=dd({},h.imports,k.imports,yC),H=Tn(I),K=$h(I,H),Q,ie,Ce=0,we=h.interpolate||Tu,Ee="__p += '",De=Bh((h.escape||Tu).source+"|"+we.source+"|"+(we===wu?jL:Tu).source+"|"+(h.evaluate||Tu).source+"|$","g"),He="//# sourceURL="+(Mt.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pj+"]")+`
88
+ `;d.replace(De,function(Qe,ft,gt,Cr,Xn,wr){return gt||(gt=Cr),Ee+=d.slice(Ce,wr).replace(WL,Dj),ft&&(Q=!0,Ee+=`' +
89
89
  __e(`+ft+`) +
90
90
  '`),Xn&&(ie=!0,Ee+=`';
91
91
  `+Xn+`;
@@ -97,34 +97,34 @@ __p += '`),gt&&(Ee+=`' +
97
97
  }
98
98
  `;else if(NL.test(Xe))throw new nt(a);Ee=(ie?Ee.replace(qe,""):Ee).replace(tt,"$1").replace(Ot,"$1;"),Ee="function("+(Xe||"obj")+`) {
99
99
  `+(Xe?"":`obj || (obj = {});
100
- `)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
100
+ `)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
101
101
  function print() { __p += __j.call(arguments, '') }
102
102
  `:`;
103
103
  `)+Ee+`return __p
104
- }`;var at=cw(function(){return Ct(H,He+"return "+Ee).apply(n,U)});if(at.source=Ee,wm(at))throw at;return at}function iz(d){return Tt(d).toLowerCase()}function sz(d){return Tt(d).toUpperCase()}function az(d,h,x){if(d=Tt(d),d&&(x||h===n))return bS(d);if(!d||!(h=xr(h)))return d;var k=Qr(d),I=Qr(h),H=vS(k,I),U=xS(k,I)+1;return Ti(k,H,U).join("")}function lz(d,h,x){if(d=Tt(d),d&&(x||h===n))return d.slice(0,CS(d)+1);if(!d||!(h=xr(h)))return d;var k=Qr(d),I=xS(k,Qr(h))+1;return Ti(k,0,I).join("")}function cz(d,h,x){if(d=Tt(d),d&&(x||h===n))return d.replace(wh,"");if(!d||!(h=xr(h)))return d;var k=Qr(d),I=vS(k,Qr(h));return Ti(k,I).join("")}function uz(d,h){var x=M,k=R;if(Qt(h)){var I="separator"in h?h.separator:I;x="length"in h?it(h.length):x,k="omission"in h?xr(h.omission):k}d=Tt(d);var H=d.length;if(sa(d)){var U=Qr(d);H=U.length}if(x>=H)return d;var X=x-aa(k);if(X<1)return k;var ie=U?Ti(U,0,X).join(""):d.slice(0,X);if(I===n)return ie+k;if(U&&(X+=ie.length-X),Tm(I)){if(d.slice(X).search(I)){var Ce,we=ie;for(I.global||(I=Bh(I.source,Tt(B1.exec(I))+"g")),I.lastIndex=0;Ce=I.exec(we);)var Ee=Ce.index;ie=ie.slice(0,Ee===n?X:Ee)}}else if(d.indexOf(xr(I),X)!=X){var De=ie.lastIndexOf(I);De>-1&&(ie=ie.slice(0,De))}return ie+k}function dz(d){return d=Tt(d),d&&Fo.test(d)?d.replace(Gn,Bj):d}var fz=ha(function(d,h,x){return d+(x?" ":"")+h.toUpperCase()}),Em=uC("toUpperCase");function lw(d,h,x){return d=Tt(d),h=x?n:h,h===n?Nj(d)?Hj(d):kj(d):d.match(h)||[]}var cw=ut(function(d,h){try{return br(d,n,h)}catch(x){return wm(x)?x:new nt(x)}}),pz=Wo(function(d,h){return Ar(h,function(x){x=bo(x),Vo(d,x,Sm(d[x],d))}),d});function hz(d){var h=d==null?0:d.length,x=Ze();return d=h?Jt(d,function(k){if(typeof k[1]!="function")throw new Ir(s);return[x(k[0]),k[1]]}):[],ut(function(k){for(var I=-1;++I<h;){var H=d[I];if(br(H[0],this,k))return br(H[1],this,k)}})}function mz(d){return B$(Pr(d,p))}function Mm(d){return function(){return d}}function gz(d,h){return d==null||d!==d?h:d}var yz=fC(),bz=fC(!0);function ur(d){return d}function Om(d){return VS(typeof d=="function"?d:Pr(d,p))}function vz(d){return WS(Pr(d,p))}function xz(d,h){return qS(d,Pr(h,p))}var Sz=ut(function(d,h){return function(x){return Ml(x,d,h)}}),Cz=ut(function(d,h){return function(x){return Ml(d,x,h)}});function Rm(d,h,x){var k=Tn(h),I=Uu(h,k);x==null&&!(Qt(h)&&(I.length||!k.length))&&(x=h,h=d,d=this,I=Uu(h,Tn(h)));var H=!(Qt(x)&&"chain"in x)||!!x.chain,U=Uo(d);return Ar(I,function(X){var ie=h[X];d[X]=ie,U&&(d.prototype[X]=function(){var Ce=this.__chain__;if(H||Ce){var we=d(this.__wrapped__),Ee=we.__actions__=ar(this.__actions__);return Ee.push({func:ie,args:arguments,thisArg:d}),we.__chain__=Ce,we}return ie.apply(d,bi([this.value()],arguments))})}),d}function wz(){return Dn._===this&&(Dn._=Gj),this}function Am(){}function Tz(d){return d=it(d),ut(function(h){return US(h,d)})}var _z=lm(Jt),kz=lm(pS),Ez=lm(Dh);function uw(d){return mm(d)?Ph(bo(d)):rF(d)}function Mz(d){return function(h){return d==null?n:fs(d,h)}}var Oz=hC(),Rz=hC(!0);function Im(){return[]}function Dm(){return!1}function Az(){return{}}function Iz(){return""}function Dz(){return!0}function Pz(d,h){if(d=it(d),d<1||d>K)return[];var x=Z,k=Bn(d,Z);h=Ze(h),d-=Z;for(var I=jh(k,h);++x<d;)h(x);return I}function Nz(d){return ot(d)?Jt(d,bo):Sr(d)?[d]:ar(RC(Tt(d)))}function Lz(d){var h=++Kj;return Tt(d)+h}var jz=Xu(function(d,h){return d+h},0),$z=cm("ceil"),Fz=Xu(function(d,h){return d/h},1),Bz=cm("floor");function zz(d){return d&&d.length?qu(d,ur,Yh):n}function Vz(d,h){return d&&d.length?qu(d,Ze(h,2),Yh):n}function Hz(d){return gS(d,ur)}function Wz(d,h){return gS(d,Ze(h,2))}function qz(d){return d&&d.length?qu(d,ur,Xh):n}function Uz(d,h){return d&&d.length?qu(d,Ze(h,2),Xh):n}var Kz=Xu(function(d,h){return d*h},1),Yz=cm("round"),Gz=Xu(function(d,h){return d-h},0);function Jz(d){return d&&d.length?Lh(d,ur):0}function Zz(d,h){return d&&d.length?Lh(d,Ze(h,2)):0}return V.after=vB,V.ary=zC,V.assign=s3,V.assignIn=tw,V.assignInWith=dd,V.assignWith=a3,V.at=l3,V.before=VC,V.bind=Sm,V.bindAll=pz,V.bindKey=HC,V.castArray=AB,V.chain=$C,V.chunk=BF,V.compact=zF,V.concat=VF,V.cond=hz,V.conforms=mz,V.constant=Mm,V.countBy=J5,V.create=c3,V.curry=WC,V.curryRight=qC,V.debounce=UC,V.defaults=u3,V.defaultsDeep=d3,V.defer=xB,V.delay=SB,V.difference=HF,V.differenceBy=WF,V.differenceWith=qF,V.drop=UF,V.dropRight=KF,V.dropRightWhile=YF,V.dropWhile=GF,V.fill=JF,V.filter=X5,V.flatMap=tB,V.flatMapDeep=nB,V.flatMapDepth=rB,V.flatten=PC,V.flattenDeep=ZF,V.flattenDepth=XF,V.flip=CB,V.flow=yz,V.flowRight=bz,V.fromPairs=QF,V.functions=b3,V.functionsIn=v3,V.groupBy=oB,V.initial=t5,V.intersection=n5,V.intersectionBy=r5,V.intersectionWith=o5,V.invert=S3,V.invertBy=C3,V.invokeMap=sB,V.iteratee=Om,V.keyBy=aB,V.keys=Tn,V.keysIn=cr,V.map=id,V.mapKeys=T3,V.mapValues=_3,V.matches=vz,V.matchesProperty=xz,V.memoize=ad,V.merge=k3,V.mergeWith=nw,V.method=Sz,V.methodOf=Cz,V.mixin=Rm,V.negate=ld,V.nthArg=Tz,V.omit=E3,V.omitBy=M3,V.once=wB,V.orderBy=lB,V.over=_z,V.overArgs=TB,V.overEvery=kz,V.overSome=Ez,V.partial=Cm,V.partialRight=KC,V.partition=cB,V.pick=O3,V.pickBy=rw,V.property=uw,V.propertyOf=Mz,V.pull=l5,V.pullAll=LC,V.pullAllBy=c5,V.pullAllWith=u5,V.pullAt=d5,V.range=Oz,V.rangeRight=Rz,V.rearg=_B,V.reject=fB,V.remove=f5,V.rest=kB,V.reverse=vm,V.sampleSize=hB,V.set=A3,V.setWith=I3,V.shuffle=mB,V.slice=p5,V.sortBy=bB,V.sortedUniq=x5,V.sortedUniqBy=S5,V.split=tz,V.spread=EB,V.tail=C5,V.take=w5,V.takeRight=T5,V.takeRightWhile=_5,V.takeWhile=k5,V.tap=z5,V.throttle=MB,V.thru=od,V.toArray=XC,V.toPairs=ow,V.toPairsIn=iw,V.toPath=Nz,V.toPlainObject=ew,V.transform=D3,V.unary=OB,V.union=E5,V.unionBy=M5,V.unionWith=O5,V.uniq=R5,V.uniqBy=A5,V.uniqWith=I5,V.unset=P3,V.unzip=xm,V.unzipWith=jC,V.update=N3,V.updateWith=L3,V.values=ya,V.valuesIn=j3,V.without=D5,V.words=lw,V.wrap=RB,V.xor=P5,V.xorBy=N5,V.xorWith=L5,V.zip=j5,V.zipObject=$5,V.zipObjectDeep=F5,V.zipWith=B5,V.entries=ow,V.entriesIn=iw,V.extend=tw,V.extendWith=dd,Rm(V,V),V.add=jz,V.attempt=cw,V.camelCase=z3,V.capitalize=sw,V.ceil=$z,V.clamp=$3,V.clone=IB,V.cloneDeep=PB,V.cloneDeepWith=NB,V.cloneWith=DB,V.conformsTo=LB,V.deburr=aw,V.defaultTo=gz,V.divide=Fz,V.endsWith=V3,V.eq=to,V.escape=H3,V.escapeRegExp=W3,V.every=Z5,V.find=Q5,V.findIndex=IC,V.findKey=f3,V.findLast=eB,V.findLastIndex=DC,V.findLastKey=p3,V.floor=Bz,V.forEach=FC,V.forEachRight=BC,V.forIn=h3,V.forInRight=m3,V.forOwn=g3,V.forOwnRight=y3,V.get=_m,V.gt=jB,V.gte=$B,V.has=x3,V.hasIn=km,V.head=NC,V.identity=ur,V.includes=iB,V.indexOf=e5,V.inRange=F3,V.invoke=w3,V.isArguments=ms,V.isArray=ot,V.isArrayBuffer=FB,V.isArrayLike=lr,V.isArrayLikeObject=dn,V.isBoolean=BB,V.isBuffer=_i,V.isDate=zB,V.isElement=VB,V.isEmpty=HB,V.isEqual=WB,V.isEqualWith=qB,V.isError=wm,V.isFinite=UB,V.isFunction=Uo,V.isInteger=YC,V.isLength=cd,V.isMap=GC,V.isMatch=KB,V.isMatchWith=YB,V.isNaN=GB,V.isNative=JB,V.isNil=XB,V.isNull=ZB,V.isNumber=JC,V.isObject=Qt,V.isObjectLike=rn,V.isPlainObject=Pl,V.isRegExp=Tm,V.isSafeInteger=QB,V.isSet=ZC,V.isString=ud,V.isSymbol=Sr,V.isTypedArray=ga,V.isUndefined=e3,V.isWeakMap=t3,V.isWeakSet=n3,V.join=i5,V.kebabCase=q3,V.last=Lr,V.lastIndexOf=s5,V.lowerCase=U3,V.lowerFirst=K3,V.lt=r3,V.lte=o3,V.max=zz,V.maxBy=Vz,V.mean=Hz,V.meanBy=Wz,V.min=qz,V.minBy=Uz,V.stubArray=Im,V.stubFalse=Dm,V.stubObject=Az,V.stubString=Iz,V.stubTrue=Dz,V.multiply=Kz,V.nth=a5,V.noConflict=wz,V.noop=Am,V.now=sd,V.pad=Y3,V.padEnd=G3,V.padStart=J3,V.parseInt=Z3,V.random=B3,V.reduce=uB,V.reduceRight=dB,V.repeat=X3,V.replace=Q3,V.result=R3,V.round=Yz,V.runInContext=re,V.sample=pB,V.size=gB,V.snakeCase=ez,V.some=yB,V.sortedIndex=h5,V.sortedIndexBy=m5,V.sortedIndexOf=g5,V.sortedLastIndex=y5,V.sortedLastIndexBy=b5,V.sortedLastIndexOf=v5,V.startCase=nz,V.startsWith=rz,V.subtract=Gz,V.sum=Jz,V.sumBy=Zz,V.template=oz,V.times=Pz,V.toFinite=Ko,V.toInteger=it,V.toLength=QC,V.toLower=iz,V.toNumber=jr,V.toSafeInteger=i3,V.toString=Tt,V.toUpper=sz,V.trim=az,V.trimEnd=lz,V.trimStart=cz,V.truncate=uz,V.unescape=dz,V.uniqueId=Lz,V.upperCase=fz,V.upperFirst=Em,V.each=FC,V.eachRight=BC,V.first=NC,Rm(V,function(){var d={};return go(V,function(h,x){Mt.call(V.prototype,x)||(d[x]=h)}),d}(),{chain:!1}),V.VERSION=r,Ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){V[d].placeholder=V}),Ar(["drop","take"],function(d,h){ht.prototype[d]=function(x){x=x===n?1:xn(it(x),0);var k=this.__filtered__&&!h?new ht(this):this.clone();return k.__filtered__?k.__takeCount__=Bn(x,k.__takeCount__):k.__views__.push({size:Bn(x,Z),type:d+(k.__dir__<0?"Right":"")}),k},ht.prototype[d+"Right"]=function(x){return this.reverse()[d](x).reverse()}}),Ar(["filter","map","takeWhile"],function(d,h){var x=h+1,k=x==F||x==B;ht.prototype[d]=function(I){var H=this.clone();return H.__iteratees__.push({iteratee:Ze(I,3),type:x}),H.__filtered__=H.__filtered__||k,H}}),Ar(["head","last"],function(d,h){var x="take"+(h?"Right":"");ht.prototype[d]=function(){return this[x](1).value()[0]}}),Ar(["initial","tail"],function(d,h){var x="drop"+(h?"":"Right");ht.prototype[d]=function(){return this.__filtered__?new ht(this):this[x](1)}}),ht.prototype.compact=function(){return this.filter(ur)},ht.prototype.find=function(d){return this.filter(d).head()},ht.prototype.findLast=function(d){return this.reverse().find(d)},ht.prototype.invokeMap=ut(function(d,h){return typeof d=="function"?new ht(this):this.map(function(x){return Ml(x,d,h)})}),ht.prototype.reject=function(d){return this.filter(ld(Ze(d)))},ht.prototype.slice=function(d,h){d=it(d);var x=this;return x.__filtered__&&(d>0||h<0)?new ht(x):(d<0?x=x.takeRight(-d):d&&(x=x.drop(d)),h!==n&&(h=it(h),x=h<0?x.dropRight(-h):x.take(h-d)),x)},ht.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},ht.prototype.toArray=function(){return this.take(Z)},go(ht.prototype,function(d,h){var x=/^(?:filter|find|map|reject)|While$/.test(h),k=/^(?:head|last)$/.test(h),I=V[k?"take"+(h=="last"?"Right":""):h],H=k||/^find/.test(h);I&&(V.prototype[h]=function(){var U=this.__wrapped__,X=k?[1]:arguments,ie=U instanceof ht,Ce=X[0],we=ie||ot(U),Ee=function(ft){var gt=I.apply(V,bi([ft],X));return k&&De?gt[0]:gt};we&&x&&typeof Ce=="function"&&Ce.length!=1&&(ie=we=!1);var De=this.__chain__,He=!!this.__actions__.length,Xe=H&&!De,at=ie&&!He;if(!H&&we){U=at?U:new ht(this);var Qe=d.apply(U,X);return Qe.__actions__.push({func:od,args:[Ee],thisArg:n}),new Dr(Qe,De)}return Xe&&at?d.apply(this,X):(Qe=this.thru(Ee),Xe?k?Qe.value()[0]:Qe.value():Qe)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(d){var h=Ru[d],x=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",k=/^(?:pop|shift)$/.test(d);V.prototype[d]=function(){var I=arguments;if(k&&!this.__chain__){var H=this.value();return h.apply(ot(H)?H:[],I)}return this[x](function(U){return h.apply(ot(U)?U:[],I)})}}),go(ht.prototype,function(d,h){var x=V[h];if(x){var k=x.name+"";Mt.call(da,k)||(da[k]=[]),da[k].push({name:h,func:x})}}),da[Zu(n,C).name]=[{name:"wrapper",func:n}],ht.prototype.clone=d$,ht.prototype.reverse=f$,ht.prototype.value=p$,V.prototype.at=V5,V.prototype.chain=H5,V.prototype.commit=W5,V.prototype.next=q5,V.prototype.plant=K5,V.prototype.reverse=Y5,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=G5,V.prototype.first=V.prototype.head,Sl&&(V.prototype[Sl]=U5),V},la=Wj();as?((as.exports=la)._=la,Oh._=la):Dn._=la}).call(iq)}(Zl,Zl.exports)),Zl.exports}var gf=sq();const aq=t=>{const{name:e,onInputChange:n,onChange:r,onFilter:o,onFilterError:i,fetchOnCount:s=1,preFilterMessage:a=s?"Start typing to see options...":t.noOptionsText,noOptionsText:l,filterOptions:u=D=>D,includeInputInList:f=!0,autoComplete:p=!0,...m}=t,[g,y,b]=qt.useField(e),{setValue:S}=b,[C,_]=J.useState(""),[T,w]=J.useState([]),[E,O]=J.useState(!1),N=gf.debounce(async(D,L)=>{try{O(!0);const M=await o(D.input);L(M)}catch(M){throw M}finally{O(!1)}},400);return J.useEffect(()=>{if(C===""){w(g.value?[g.value]:[]);return}C.length>=s&&N({input:C},D=>{let L=[];D?(L=D,g.value&&(L=[g.value,...D.filter(M=>JSON.stringify(M)!==JSON.stringify(g.value))])):g.value&&(L=[g.value]),w(L)})},[g.value,C]),v.jsx(MA,{name:e,loading:E,filterOptions:u,noOptionsText:C.length<s?a:l,options:T,autoComplete:p,includeInputInList:f,onChange:(D,L,M,R)=>{w(L?[L,...T]:T),S(L),r&&r(D,L,M,R)},onInputChange:(D,L,M)=>{_(L),n&&n(D,L,M)},...m})},lq=t=>{const{name:e,label:n=Mn(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,getOptionLabel:g=D=>typeof D=="string"?D:String(D),isOptionEqualToValue:y=(D,L)=>JSON.stringify(D)===JSON.stringify(L),useFieldAsValue:b,...S}=t,[C,_,T]=qt.useField(e),{setValue:w}=T,{error:E}=_,O={...er(S,["useFieldAsValue"]),getOptionLabel:g,options:r,filterSelectedOptions:o,isOptionEqualToValue:y,renderInput:D=>v.jsx(j.TextField,{...D,variant:i,label:s?void 0:n,error:!!E,required:p}),onChange:(D,L,M,R)=>{w(b?L.map(P=>P[b]):L),m&&m(D,L,M,R)},fullWidth:!0,value:b?r.filter(D=>C.value.includes(D[b]))||[]:C.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},N=()=>C.value.length===0?"":(b?r.filter(L=>C.value.includes(L[b]))||[]:C.value).map(L=>g(L)).join(", ");return v.jsxs(j.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:N()}):v.jsxs(j.Box,{children:[v.jsx(j.Autocomplete,{...O,multiple:!0}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},cq=t=>{const{name:e,label:n=Mn(e),sublabel:r,required:o=!1,labelPlacement:i="end",labelAlignment:s=i==="end"||i==="start"?"top":"center",readOnly:a=!1,staticLabelProps:l={fontSize:".9em",color:"#808080"},onChange:u,...f}=t;s==="top"&&(i==="bottom"||i==="top")&&console.error(`Checkbox: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${i}`);const p=qt.useField({name:e}),m=p[0],g=p[2],y=r?v.jsxs("div",{children:[v.jsx("p",{style:{margin:0},children:n}),v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:r})]}):n,b=s==="top"&&(i==="start"||i==="end");return a?m.value&&v.jsx(j.Typography,{...l,children:y}):v.jsxs(j.Box,{children:[v.jsx(j.FormControlLabel,{sx:{alignItems:b?"flex-start":"center"},label:v.jsx("span",{"data-testid":n,style:{display:"inline-block",marginTop:b?"10px":0},children:y}),required:o,labelPlacement:i,control:v.jsx(j.Checkbox,{"data-testid":"checkbox",...f,...m,onChange:(S,C)=>{g.setValue(S.target.checked),u&&u(S,C)},checked:m.value})}),v.jsx(tr,{name:e,id:`${e}-err`})]})},Va=t=>{const{name:e,label:n=Mn(e),format:r="",autoFormat:o=r,placeholder:i=n,staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l=!1,startIcon:u,endIcon:f,margin:p="dense",noTrimOnBlur:m=!1}=t,[g,y,b]=qt.useField({name:e}),{setValue:S}=b,{value:C}=g,{error:_}=y;C===void 0&&console.error(`Please set an initial value for ${e}`),!r&&o&&console.error("Can't auto format when there is no format");const T=E=>{if(o){const O=c6(E.target.value,r,C,E.target);S(O)}else S(E.target.value);t.onChange&&t.onChange(E)},w=["autoFormat","format","staticLabel","staticLabelProps","endIcon","startIcon"];return v.jsxs(j.FormControl,{margin:p,fullWidth:!0,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:C}):v.jsxs(j.Box,{children:[v.jsx(j.TextField,{variant:"outlined",fullWidth:!0,...g,id:`${e}-tf`,error:!!_,placeholder:i,...er({...t},w),onChange:T,label:s?void 0:n,slotProps:{input:{endAdornment:f,startAdornment:u}},onBlur:E=>{m||S(E.target.value.trim()),t.onBlur&&t.onBlur(E)}}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},uq=t=>{const{name:e,checkboxes:n=[],label:r=Mn(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l=!1,min:u=0,max:f=n.length,minMaxSubtitle:p="Please select between {min} and {max} options",maxSubtitle:m="Up to {max} max",minSubtitle:g="Please select {min} or more",margin:y="dense",staticLabelProps:b={fontSize:".9em",color:"#808080"}}=t,[S,C,_]=qt.useField({name:e}),{setValue:T}=_,{value:w}=S,{error:E}=C,{setFieldValue:O}=qt.useFormikContext();(u<0||u>=n.length)&&console.error(`CheckboxGroup: "min" cannot be ${u}. It must be a value between 0 and ${n.length-1}.`),(f<=1||f>n.length)&&console.error(`CheckboxGroup: "max" must be a value between 2 and ${n.length}.`),i==="top"&&(o==="bottom"||o==="top")&&console.error(`CheckboxGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const N=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",D=P=>typeof P=="string"?P:!P.textField&&!P.sublabel?P.label:v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"center",gap:"0.5rem",alignItems:"baseline",children:[v.jsxs(j.Box,{display:"flex",flexDirection:"column",justifyContent:"center",children:[v.jsx("p",{style:{margin:0},children:P.label}),P.sublabel&&v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:P.sublabel})]}),P.textField&&v.jsx(Va,{label:"",size:"small",margin:"none",sx:{"& .MuiInputBase-input":{height:14}},...P.textField})]}),L=n.map(P=>{const z=typeof P=="string"?P:P.label,F=i==="top"&&(o==="start"||o==="end");return v.jsx(j.FormControlLabel,{sx:{alignItems:F?"flex-start":"center"},value:z,control:v.jsx(j.Checkbox,{}),label:v.jsx("div",{"data-testid":typeof P=="string"?P:P.label,style:{marginTop:F?"10px":0},children:D(P)}),labelPlacement:o,checked:w.includes(z),disabled:a||!w.includes(z)&&w.length===f,style:{textAlign:N()}},`checkbox-group-${z}`)}),M=()=>{if(f<n.length&&u>0)return v.jsx(j.Typography,{variant:"subtitle2",children:p.replace("{min}",`${u}`).replace("{max}",`${f}`)});if(f<n.length)return v.jsx(j.Typography,{variant:"subtitle2",children:m.replace("{max}",`${f}`)});if(u>0)return v.jsx(j.Typography,{variant:"subtitle2",children:g.replace("{min}",`${u}`)})};return l?v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...b,children:r}),w.join(", ")]}):v.jsxs(j.FormControl,{onChange:P=>{const z=P.target.value,F=P.target.checked,$=n.find(B=>typeof B=="string"?B===z:B.label===z);F?T([...w,z]):($&&typeof $=="object"&&$.textField&&$.textField.name&&O($.textField.name,""),T(w.filter(B=>B!=z)))},fullWidth:!0,margin:y,error:!!E,children:[v.jsx(j.FormLabel,{focused:t.focused,htmlFor:e,required:s,disabled:t.disableLabel,children:r}),M(),L,v.jsx(tr,{name:e,id:`${e}-err`})]})},Xw=Fe(v.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),OA=t=>{const{name:e,multiple:n=!1,readOnly:r=!1,variant:o=n?"drag-and-drop":"button",duplicateFilesCallback:i,incorrectFileTypesCallback:s,staticLabelProps:a={fontSize:".9em",color:"#808080"}}=t,[l,u,f]=qt.useField({name:e}),{setValue:p}=f,m=l.value,g=t.fileType?Array.isArray(t.fileType)?t.fileType:[t.fileType]:[],y=t.subtitle??(g.length>0?`Allowed file extensions: ${g.join(", ")}`:""),b=N=>{C(Array.from(N.target.files??[]))},S=N=>{N.preventDefault(),C(Array.from(N.dataTransfer.files))},C=N=>{if(N&&N.length>0){const D=m?Array.isArray(m)?m:[m]:[],L=gf.partition(N,M=>D.find(R=>T(M,R)));if(N=L[1],i&&L[0].length>0&&i(L[0]),g.length>0){const M=gf.partition(N,R=>g.find(P=>R.name.endsWith(P)));N=M[0],s&&M[1].length>0&&s(M[1])}n?p([..._(),...N]):!Array.isArray(m)&&N.length>0&&p(N[0])}},_=()=>m?Array.isArray(m)?m:[m]:[],T=(N,D)=>N.lastModified===D.lastModified&&N.name===D.name&&N.type===D.type&&N.size===D.size,w=()=>_().map(N=>N.name).join(", ");return r?v.jsx(j.Typography,{"data-testid":"fileupload-readonly",...a,children:w()}):o==="drag-and-drop"?v.jsxs("div",{style:{border:`4px dashed ${u.error?"red":"lightgray"}`,padding:"30px 10px",display:"flex",alignItems:"center",flexDirection:"column"},onDrop:S,onDragOver:N=>N.preventDefault(),"data-testid":"dropzone",children:[v.jsx(Xw,{color:"primary",sx:{fontSize:"40px"}}),v.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"baseline"},children:[v.jsx(j.Typography,{children:"Drag and drop or"}),v.jsxs(j.Button,{component:"label",role:void 0,variant:"text",tabIndex:-1,sx:{textTransform:"none",fontSize:"16px",textDecoration:"underline"},children:["browse",v.jsx("input",{"data-testid":"file-input",id:e,hidden:!0,type:"file",onChange:b,multiple:!0,accept:g==null?void 0:g.toString()})]})]}),y&&v.jsx(j.Typography,{variant:"caption",children:y}),v.jsx(tr,{name:e,id:`${e}-err`})]}):v.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[v.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:v.jsxs(j.Button,{component:"label",role:void 0,variant:"contained",tabIndex:-1,startIcon:v.jsx(Xw,{}),children:["Upload a file",v.jsx("input",{"data-testid":"file-input",id:e,hidden:!0,type:"file",onChange:b,accept:g==null?void 0:g.toString()})]})}),v.jsx(tr,{name:e,id:`${e}-err`})]})},dq=Fe(v.jsx("path",{d:"M15 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V7zM6 20V4h8v4h4v12zm10-10v5c0 2.21-1.79 4-4 4s-4-1.79-4-4V8.5c0-1.47 1.26-2.64 2.76-2.49 1.3.13 2.24 1.32 2.24 2.63V15h-2V8.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5V15c0 1.1.9 2 2 2s2-.9 2-2v-5z"}),"FilePresent"),j0=Fe(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),fq=t=>{const{name:e}=t,[n,,r]=qt.useField({name:e}),{setValue:o}=r,i=n.value;return v.jsx("div",{style:{width:"100%"},children:i.map(s=>v.jsx(j.Card,{sx:{margin:"10px 0px"},children:v.jsxs(j.CardContent,{style:{display:"flex",alignItems:"center",padding:"8px 12px"},children:[v.jsx(dq,{sx:{color:"gray",fontSize:"20px"}}),v.jsx(j.Typography,{sx:{padding:"8px",overflowWrap:"anywhere"},children:s.name}),v.jsx(j.IconButton,{"aria-label":"remove file",onClick:()=>o(i.filter(a=>a!==s)),edge:"end",style:{marginLeft:"auto",order:"2"},children:v.jsx(j0,{})})]})},`${s.name}-${s.type}-${s.size}-${s.lastModified}`))})};var Hm,Qw;function hi(){if(Qw)return Hm;Qw=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Hm=t,Hm}var Wm,eT;function RA(){if(eT)return Wm;eT=1;var t=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return Wm=t,Wm}var qm,tT;function fo(){if(tT)return qm;tT=1;var t=RA(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return qm=n,qm}var Um,nT;function pq(){if(nT)return Um;nT=1;var t=fo(),e=function(){return t.Date.now()};return Um=e,Um}var Km,rT;function hq(){if(rT)return Km;rT=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return Km=e,Km}var Ym,oT;function mq(){if(oT)return Ym;oT=1;var t=hq(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return Ym=n,Ym}var Gm,iT;function ou(){if(iT)return Gm;iT=1;var t=fo(),e=t.Symbol;return Gm=e,Gm}var Jm,sT;function gq(){if(sT)return Jm;sT=1;var t=ou(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(s){var a=n.call(s,o),l=s[o];try{s[o]=void 0;var u=!0}catch{}var f=r.call(s);return u&&(a?s[o]=l:delete s[o]),f}return Jm=i,Jm}var Zm,aT;function yq(){if(aT)return Zm;aT=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Zm=n,Zm}var Xm,lT;function Gs(){if(lT)return Xm;lT=1;var t=ou(),e=gq(),n=yq(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function s(a){return a==null?a===void 0?o:r:i&&i in Object(a)?e(a):n(a)}return Xm=s,Xm}var Qm,cT;function ts(){if(cT)return Qm;cT=1;function t(e){return e!=null&&typeof e=="object"}return Qm=t,Qm}var eg,uT;function Ap(){if(uT)return eg;uT=1;var t=Gs(),e=ts(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return eg=r,eg}var tg,dT;function AA(){if(dT)return tg;dT=1;var t=mq(),e=hi(),n=Ap(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=t(u);var p=i.test(u);return p||s.test(u)?a(u.slice(2),p?2:8):o.test(u)?r:+u}return tg=l,tg}var ng,fT;function IA(){if(fT)return ng;fT=1;var t=hi(),e=pq(),n=AA(),r="Expected a function",o=Math.max,i=Math.min;function s(a,l,u){var f,p,m,g,y,b,S=0,C=!1,_=!1,T=!0;if(typeof a!="function")throw new TypeError(r);l=n(l)||0,t(u)&&(C=!!u.leading,_="maxWait"in u,m=_?o(n(u.maxWait)||0,l):m,T="trailing"in u?!!u.trailing:T);function w(z){var F=f,$=p;return f=p=void 0,S=z,g=a.apply($,F),g}function E(z){return S=z,y=setTimeout(D,l),C?w(z):g}function O(z){var F=z-b,$=z-S,B=l-F;return _?i(B,m-$):B}function N(z){var F=z-b,$=z-S;return b===void 0||F>=l||F<0||_&&$>=m}function D(){var z=e();if(N(z))return L(z);y=setTimeout(D,O(z))}function L(z){return y=void 0,T&&f?w(z):(f=p=void 0,g)}function M(){y!==void 0&&clearTimeout(y),S=0,f=b=p=y=void 0}function R(){return y===void 0?g:L(e())}function P(){var z=e(),F=N(z);if(f=arguments,p=this,b=z,F){if(y===void 0)return E(b);if(_)return clearTimeout(y),y=setTimeout(D,l),w(b)}return y===void 0&&(y=setTimeout(D,l)),g}return P.cancel=M,P.flush=R,P}return ng=s,ng}var rg,pT;function bq(){if(pT)return rg;pT=1;var t=IA(),e=hi(),n="Expected a function";function r(o,i,s){var a=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(s)&&(a="leading"in s?!!s.leading:a,l="trailing"in s?!!s.trailing:l),t(o,i,{leading:a,maxWait:i,trailing:l})}return rg=r,rg}var vq=bq();const DA=ir(vq),xq=Fe(v.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");var Ud={exports:{}},Sq=Ud.exports,hT;function Cq(){return hT||(hT=1,function(t,e){(function(n,r){t.exports=r()})(Sq,()=>{return n={705:o=>{o.exports=function(i,s){const a=[];return s.length===0?a.push({text:i,highlight:!1}):s[0][0]>0&&a.push({text:i.slice(0,s[0][0]),highlight:!1}),s.forEach((l,u)=>{const f=l[0],p=l[1];a.push({text:i.slice(f,p),highlight:!0}),u===s.length-1?p<i.length&&a.push({text:i.slice(p,i.length),highlight:!1}):p<s[u+1][0]&&a.push({text:i.slice(p,s[u+1][0]),highlight:!1})}),a}}},r={},function o(i){var s=r[i];if(s!==void 0)return s.exports;var a=r[i]={exports:{}};return n[i](a,a.exports,o),a.exports}(705);var n,r})}(Ud)),Ud.exports}var wq=Cq();const Tq=ir(wq),_q=t=>{const{listItemProps:e,option:n,resultIcon:r,highlightMatches:o}=t,{main_text:i,secondary_text:s,main_text_matched_substrings:a}=n.structured_formatting,l=Tq(i,a.map(u=>[u.offset,u.offset+u.length]));return v.jsx("li",{...er({...e},["key"]),"data-testid":`loc-${n.place_id}`,children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[r?A.cloneElement(r):null,v.jsxs(j.Box,{children:[l.map(u=>{const f=o&&u.highlight?700:400;return v.jsx("span",{style:{fontWeight:f},children:u.text},`${n.place_id}_${u.text}`)}),v.jsx(j.Typography,{variant:"body2",color:"textSecondary",children:s})]})]})})};function kq(t,e,n){if(!e)return;const r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",n),r.src=t,r.onerror=()=>console.error(`Failed to load script: ${t}`),e.appendChild(r)}const jl={current:null},Eq=t=>{const{name:e,label:n=Mn(e),resultIcon:r=v.jsx(xq,{}),apiKey:o,highlightMatches:i=!0,types:s,variant:a="outlined",staticLabel:l=!1,staticLabelProps:u={fontSize:".9em",color:"#808080"},readOnly:f=!1,margin:p="dense"}=t,[m,g]=A.useState(null),[y,b]=A.useState(""),[S,C]=A.useState([]),_=A.useRef(!1),[,T,w]=qt.useField(e),{setValue:E}=w,{error:O}=T;typeof window<"u"&&!_.current&&(document.querySelector("#google-maps")||kq(`https://maps.googleapis.com/maps/api/js?key=${o}&libraries=places`,document.querySelector("head"),"google-maps"),_.current=!0);const N=A.useMemo(()=>DA(($,B)=>{jl.current&&jl.current.getPlacePredictions($,B)},200),[]);A.useEffect(()=>{let $=!0;if(!jl.current&&window.google&&(jl.current=new window.google.maps.places.AutocompleteService),!jl.current)return;if(y===""){C(m?[m]:[]);return}return N({input:y,types:s?[s]:[]},K=>{if($){let G=[];m&&(G=[m]),K&&(G=[...G,...K]);const Y=G.filter((Z,ge,he)=>ge===he.findIndex(oe=>oe.place_id===Z.place_id));C(Y)}}),()=>{$=!1}},[m,y,N,s]);const D=A.useCallback($=>{const q=($?[$,...S]:S).filter((K,G,Y)=>G===Y.findIndex(Z=>Z.place_id===K.place_id));C(q),g($),E($?$.description:"")},[S,C,g,E]),L=$=>{b($)},M=["name","apiKey","resultIcon","highlightMatches","variant","staticLabel","staticLabelProps","margin"],R=$=>v.jsx(j.TextField,{margin:p,variant:a,...$,...er({...t},M),label:l?void 0:n,hiddenLabel:l,error:!!O}),P=$=>typeof $=="string"?$:$.description,z=($,B)=>v.jsx(_q,{listItemProps:$,option:B,resultIcon:r,highlightMatches:i},B.place_id);A.useEffect(()=>{const $=B=>{B.key==="Enter"&&S.length>0&&D(S[0])};return window.addEventListener("keydown",$),()=>{window.removeEventListener("keydown",$)}},[S,D]);const F=v.jsx(j.Autocomplete,{id:`${e}-loc`,"data-testid":"location-autocomplete",getOptionLabel:P,filterOptions:$=>$,options:S,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:m,onChange:($,B)=>D(B),onInputChange:($,B)=>L(B),disabled:t.disabled,renderOption:z,renderInput:R});return v.jsxs(j.FormControl,{margin:p,fullWidth:!0,children:[(l||f)&&v.jsx(j.Typography,{...u,children:n}),f?v.jsx(j.Typography,{children:m==null?void 0:m.description}):v.jsxs(j.Box,{children:[F,v.jsx(tr,{name:e,id:`${e}-err`})]})]})},PA=t=>{const{name:e,radios:n=[],label:r=Mn(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l=!1,margin:u="dense",onChange:f,staticLabelProps:p={fontSize:".9em",color:"#808080"}}=t;i==="top"&&(o==="bottom"||o==="top")&&console.error(`RadioGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const[m,g,y]=qt.useField({name:e}),{setValue:b}=y,{value:S}=m,{error:C}=g,_=["radioProps","labelPlacement"],T=["disableRedLabelOnError","disableLabel","sameButtonColor","labelPlacement","focused","margin","fullWidth","labelAlignment"],w=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",E=n.map((L,M)=>{const R=i==="top"&&(o==="start"||o==="end"),P=L.sublabel?v.jsxs("div",{children:[v.jsx("p",{style:{margin:0},children:L.label}),v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:L.sublabel})]}):L.label;return v.jsx(j.FormControlLabel,{sx:{alignItems:R?"flex-start":"center"},value:M.toString(),control:v.jsx(j.Radio,{id:`${L.value}-rb`,color:t.sameButtonColor?t.sameButtonColor:L.color??"default",...er({...L},_)}),label:v.jsx("div",{style:{marginTop:R?"10px":0},children:P}),labelPlacement:o,disabled:L.disabled||a,style:{textAlign:w()}},`rb-${M}-${r}`)}),O=()=>{const L=n.find(M=>M.value===m.value);return v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...p,children:r}),N(L)]})},N=L=>v.jsxs(j.Box,{children:[v.jsx(j.Typography,{children:L==null?void 0:L.label}),(L==null?void 0:L.sublabel)&&v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:L.sublabel})]}),D=L=>{b(L.target.value),f&&f(L.target.value)};return l?O():v.jsxs(j.FormControl,{focused:t.focused,margin:u,fullWidth:t.fullWidth,error:!!C,children:[v.jsx(j.FormLabel,{htmlFor:e,required:s,disabled:t.disableLabel,children:r}),v.jsx(j.RadioGroup,{id:e,value:S??"",...er({...t},T),onChange:D,children:E}),v.jsx(tr,{name:e,id:`${e}-err`})]})},Mq=t=>{const{name:e,label:n=Mn(e),min:r=0,max:o=100,step:i=1,readOnly:s,staticLabelProps:a={fontSize:".9em",color:"#808080"}}=t,l=qt.useField(e),{value:u}=l[0],{setValue:f}=l[2],p=["label"];return s?(()=>{let g;return Array.isArray(u)?g=s==="percent"?`${100*(u[0]??0)/o}% - ${100*(u[1]??0)/o}%`:`${u[0]??0} - ${u[1]??0}`:g=s==="percent"?`${100*(u??0)/o}%`:`${u??0}`,v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...a,children:n}),v.jsx(j.Typography,{children:g})]})})():v.jsxs(j.FormControl,{fullWidth:!0,children:[v.jsx(j.Typography,{gutterBottom:!0,color:"textSecondary",children:n}),v.jsx(j.Slider,{...er({...t},p),id:t.name,value:u??0,onChange:(g,y)=>{f(y)},min:r,max:o,step:i})]})},Oq=t=>{const{name:e,options:n=[],label:r=Mn(e),selectedOptionIcon:o=void 0,staticLabel:i=!1,staticLabelProps:s={fontSize:".9em",color:"#808080"},variant:a="outlined",readOnly:l=!1,margin:u="dense",required:f}=t,[p,m,g]=qt.useField({name:e}),{setValue:y}=g,{value:b}=p,{error:S}=m,C=A.useCallback(()=>{let R="";for(let P=0;P<n.length;P++)JSON.stringify(n[P].value)===JSON.stringify(b)&&(R=P.toString());return R},[n,b]),_=A.useCallback(()=>{const R=[],P=b.toString().split(",");for(const z of P)for(let F=0;F<n.length;F++)n[F].value===z&&R.push(F);return R},[n,b]);A.useEffect(()=>{E(t.multiple?_():C())},[n,t.multiple,b,_,C]);const T=(R,P)=>t.multiple?!!b.toString().split(",").find(z=>z===JSON.stringify(R.value)):P===n.findIndex(z=>b===z.value),[w,E]=A.useState(t.multiple?_:C),O=n.map((R,P)=>{const z=o&&T(R,P)?o:void 0;return v.jsxs(j.MenuItem,{id:`select-${e}-option-${R.value}`,value:P,disabled:R.disabled,children:[o&&v.jsx(j.ListItemIcon,{children:z}),R.label]},P.toString())}),N=R=>{if(t.multiple){const P=[];R.target.value.forEach(z=>{n[z].value&&P.push(n[z].value)}),y(P.join(","))}else y(n[R.target.value].value);E(R.target.value)},D=["name","options",i?"label":"","required","selectedOptionIcon","variant","staticLabel","staticLabelProps"],L=()=>u6(n,b,t.multiple),M=t.renderValue??L;return v.jsxs(j.FormControl,{fullWidth:!0,variant:a,error:!!S,margin:u,required:f,children:[i||l?v.jsx(j.Typography,{...s,children:r}):v.jsx(j.InputLabel,{id:`${e}-select-label`,children:r}),l?v.jsx(j.Typography,{children:L()}):v.jsxs(j.Box,{children:[v.jsx(j.Select,{id:`${e}-sel`,labelId:`${e}-select-label`,label:i?void 0:r,...er({...t},D),name:e,value:w,fullWidth:!0,onChange:R=>N(R),displayEmpty:i,renderValue:M,children:O}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},Rq=t=>{const{name:e,label:n=Mn(e),labelPlacement:r="end",readOnly:o,staticLabelProps:i={fontSize:".9em",color:"#808080"},onChange:s,color:a="primary",chipColor:l,activeValue:u=!0,inactiveValue:f=!1}=t,[p,,m]=qt.useField({name:e}),{setValue:g}=m,{value:y}=p;y===void 0&&console.error(`Please set an initial value for ${e}`);const b=["labelPlacement","chipColor","activeValue","inactiveValue"],S=C=>{if(typeof C!="boolean")return String(C);switch(o){case"YES_NO":return C===u?"Yes":"No";case"ON_OFF":return C===u?"On":"Off";default:return C===u?"True":"False"}};return o?v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...i,children:n}),v.jsx(j.Typography,{children:S(y)})]}):v.jsxs(j.Box,{bgcolor:l??"inherit",sx:l?{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"32px",padding:"2px 0px 2px 12px"}:{},children:[v.jsx(j.FormControlLabel,{label:n,sx:{"& .MuiFormControlLabel-label":{color:a}},labelPlacement:r,control:v.jsx(j.Switch,{...er({...t},b),id:e,...p,onChange:C=>{if(typeof u=="string"&&typeof f=="string"){const _=C.target.checked?u:f;g(_),s&&s(_)}else g(C.target.checked),s&&s(C.target.checked)},checked:y===u})}),v.jsx(tr,{name:e,id:`${e}-err`})]})},Aq=Fe([v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Iq=Fe(v.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),Dq=Fe(v.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),Pq=Fe(v.jsx("path",{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"}),"Bookmarks"),Nq=Fe(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Lq=Fe(v.jsx("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist"),jq=Fe(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$q=Fe(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),Fq=Fe(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),NA=Fe(v.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),mT=Fe(v.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),Bq=Fe(v.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),zq=Fe(v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Vq=Fe(v.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),Hq=Fe(v.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),Wq=Fe(v.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),qq=Fe(v.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),Uq=Fe(v.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"}),"FormatBold"),Kq=Fe(v.jsx("path",{d:"M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5z"}),"FormatClear"),Yq=Fe(v.jsx("path",{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12M5.21 10 10 5.21 14.79 10zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5M2 20h20v4H2z"}),"FormatColorFill"),Gq=Fe(v.jsx("path",{d:"M11 17h10v-2H11zm-8-5 4 4V8zm0 9h18v-2H3zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z"}),"FormatIndentDecrease"),Jq=Fe(v.jsx("path",{d:"M3 21h18v-2H3zM3 8v8l4-4zm8 9h10v-2H11zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z"}),"FormatIndentIncrease"),Zq=Fe(v.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),Xq=Fe(v.jsx("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted"),Qq=Fe(v.jsx("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"}),"FormatListNumbered"),e8=Fe(v.jsx("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}),"FormatQuote"),t8=Fe(v.jsx("path",{d:"M9 4v3h5v12h3V7h5V4zm-6 8h3v7h3v-7h3V9H3z"}),"FormatSize"),n8=Fe(v.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"}),"FormatUnderlined"),r8=Fe(v.jsx("path",{d:"M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2zm8 0h4v4h-4zM1.27 1.27 0 2.55l2 2V20c0 1.1.9 2 2 2h15.46l2 2 1.27-1.27zM10 12.55 11.45 14H10zm-6-6L5.45 8H4zM8 20H4v-4h4zm0-6H4v-4h3.45l.55.55zm6 6h-4v-4h3.45l.55.54zm2 0v-1.46L17.46 20z"}),"GridOff"),o8=Fe(v.jsx("path",{fillRule:"evenodd",d:"M4 11h16v2H4z"}),"HorizontalRule"),i8=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),s8=Fe(v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),LA=Fe(v.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),jA=Fe(v.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),yf=Fe(v.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),a8=Fe(v.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),l8=Fe(v.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),c8=Fe(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),u8=Fe(v.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),d8=Fe(v.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),f8=Fe(v.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),p8=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"RemoveCircle"),h8=Fe(v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined"),m8=Fe(v.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),g8=Fe(v.jsx("path",{d:"M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"}),"StrikethroughS"),y8=Fe(v.jsx("path",{d:"M22 18h-2v1h3v1h-4v-2c0-.55.45-1 1-1h2v-1h-3v-1h3c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M5.88 18h2.66l3.4-5.42h.12l3.4 5.42h2.66l-4.65-7.27L17.81 4h-2.68l-3.07 4.99h-.12L8.85 4H6.19l4.32 6.73z"}),"Subscript"),b8=Fe(v.jsx("path",{d:"M22 7h-2v1h3v1h-4V7c0-.55.45-1 1-1h2V5h-3V4h3c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M5.88 20h2.66l3.4-5.42h.12l3.4 5.42h2.66l-4.65-7.27L17.81 6h-2.68l-3.07 4.99h-.12L8.85 6H6.19l4.32 6.73z"}),"Superscript"),v8=Fe(v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),x8=t=>{const{onSearch:e,initialValue:n="",lazySearch:r=!1}=t,[o,i]=J.useState(n),s=f=>{i(f.target.value),r||e(f.target.value)},a=f=>{f.key==="Enter"&&l()},l=()=>{e(o)},u=()=>{i(""),e("")};return v.jsx(j.TextField,{type:"text",placeholder:"Search...",value:o,onChange:s,onKeyDown:a,className:"search-bar",size:"small",fullWidth:!0,slotProps:{input:{startAdornment:v.jsx(j.InputAdornment,{position:"start",children:v.jsx(j.IconButton,{"data-testid":"search-button",style:{marginLeft:-10},onClick:l,children:v.jsx(h8,{})})}),endAdornment:o&&v.jsx(j.IconButton,{style:{marginRight:-10},"aria-label":"clear search","data-testid":"clear-search",onClick:u,children:v.jsx($q,{})})}}})};function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(null,arguments)}function rt(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function Ut({props:t,name:e}){return r9({props:t,name:e,defaultTheme:Rp,themeId:ru})}const S8=["localeText"],bf=A.createContext(null);process.env.NODE_ENV!=="production"&&(bf.displayName="MuiPickersAdapterContext");const Gv=function(e){const{localeText:n}=e,r=rt(e,S8),{utils:o,localeText:i}=A.useContext(bf)??{utils:void 0,localeText:void 0},s=Ut({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,g=A.useMemo(()=>ne({},m,i,n),[m,i,n]),y=A.useMemo(()=>{if(!l)return o||null;const C=new l({locale:p,formats:u,instance:f});if(!C.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
105
- `));return C},[l,p,u,f,o]),b=A.useMemo(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),S=A.useMemo(()=>({utils:y,defaultDates:b,localeText:g}),[b,y,g]);return v.jsx(bf.Provider,{value:S,children:a})};process.env.NODE_ENV!=="production"&&(Gv.propTypes={adapterLocale:c.any,children:c.node,dateAdapter:c.func,dateFormats:c.shape({dayOfMonth:c.string,dayOfMonthFull:c.string,fullDate:c.string,fullTime:c.string,fullTime12h:c.string,fullTime24h:c.string,hours12h:c.string,hours24h:c.string,keyboardDate:c.string,keyboardDateTime:c.string,keyboardDateTime12h:c.string,keyboardDateTime24h:c.string,meridiem:c.string,minutes:c.string,month:c.string,monthShort:c.string,normalDate:c.string,normalDateWithWeekday:c.string,seconds:c.string,shortDate:c.string,weekday:c.string,weekdayShort:c.string,year:c.string}),dateLibInstance:c.any,localeText:c.object});var Kd={exports:{}},C8=Kd.exports,gT;function w8(){return gT||(gT=1,function(t,e){(function(n,r){t.exports=r()})(C8,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",f="week",p="month",m="quarter",g="year",y="date",b="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var $=["th","st","nd","rd"],B=F%100;return"["+F+($[(B-20)%10]||$[B]||$[0])+"]"}},T=function(F,$,B){var q=String(F);return!q||q.length>=$?F:""+Array($+1-q.length).join(B)+F},w={s:T,z:function(F){var $=-F.utcOffset(),B=Math.abs($),q=Math.floor(B/60),K=B%60;return($<=0?"+":"-")+T(q,2,"0")+":"+T(K,2,"0")},m:function F($,B){if($.date()<B.date())return-F(B,$);var q=12*(B.year()-$.year())+(B.month()-$.month()),K=$.clone().add(q,p),G=B-K<0,Y=$.clone().add(q+(G?-1:1),p);return+(-(q+(B-K)/(G?K-Y:Y-K))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:p,y:g,w:f,d:u,D:y,h:l,m:a,s,ms:i,Q:m}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},E="en",O={};O[E]=_;var N="$isDayjsObject",D=function(F){return F instanceof P||!(!F||!F[N])},L=function F($,B,q){var K;if(!$)return E;if(typeof $=="string"){var G=$.toLowerCase();O[G]&&(K=G),B&&(O[G]=B,K=G);var Y=$.split("-");if(!K&&Y.length>1)return F(Y[0])}else{var Z=$.name;O[Z]=$,K=Z}return!q&&K&&(E=K),K||!q&&E},M=function(F,$){if(D(F))return F.clone();var B=typeof $=="object"?$:{};return B.date=F,B.args=arguments,new P(B)},R=w;R.l=L,R.i=D,R.w=function(F,$){return M(F,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var P=function(){function F(B){this.$L=L(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[N]=!0}var $=F.prototype;return $.parse=function(B){this.$d=function(q){var K=q.date,G=q.utc;if(K===null)return new Date(NaN);if(R.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var Y=K.match(S);if(Y){var Z=Y[2]-1||0,ge=(Y[7]||"0").substring(0,3);return G?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ge)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,ge)}}return new Date(K)}(B),this.init()},$.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},$.$utils=function(){return R},$.isValid=function(){return this.$d.toString()!==b},$.isSame=function(B,q){var K=M(B);return this.startOf(q)<=K&&K<=this.endOf(q)},$.isAfter=function(B,q){return M(B)<this.startOf(q)},$.isBefore=function(B,q){return this.endOf(q)<M(B)},$.$g=function(B,q,K){return R.u(B)?this[q]:this.set(K,B)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(B,q){var K=this,G=!!R.u(q)||q,Y=R.p(B),Z=function(W,te){var ue=R.w(K.$u?Date.UTC(K.$y,te,W):new Date(K.$y,te,W),K);return G?ue:ue.endOf(u)},ge=function(W,te){return R.w(K.toDate()[W].apply(K.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(te)),K)},he=this.$W,oe=this.$M,Q=this.$D,fe="set"+(this.$u?"UTC":"");switch(Y){case g:return G?Z(1,0):Z(31,11);case p:return G?Z(1,oe):Z(0,oe+1);case f:var ce=this.$locale().weekStart||0,ae=(he<ce?he+7:he)-ce;return Z(G?Q-ae:Q+(6-ae),oe);case u:case y:return ge(fe+"Hours",0);case l:return ge(fe+"Minutes",1);case a:return ge(fe+"Seconds",2);case s:return ge(fe+"Milliseconds",3);default:return this.clone()}},$.endOf=function(B){return this.startOf(B,!1)},$.$set=function(B,q){var K,G=R.p(B),Y="set"+(this.$u?"UTC":""),Z=(K={},K[u]=Y+"Date",K[y]=Y+"Date",K[p]=Y+"Month",K[g]=Y+"FullYear",K[l]=Y+"Hours",K[a]=Y+"Minutes",K[s]=Y+"Seconds",K[i]=Y+"Milliseconds",K)[G],ge=G===u?this.$D+(q-this.$W):q;if(G===p||G===g){var he=this.clone().set(y,1);he.$d[Z](ge),he.init(),this.$d=he.set(y,Math.min(this.$D,he.daysInMonth())).$d}else Z&&this.$d[Z](ge);return this.init(),this},$.set=function(B,q){return this.clone().$set(B,q)},$.get=function(B){return this[R.p(B)]()},$.add=function(B,q){var K,G=this;B=Number(B);var Y=R.p(q),Z=function(oe){var Q=M(G);return R.w(Q.date(Q.date()+Math.round(oe*B)),G)};if(Y===p)return this.set(p,this.$M+B);if(Y===g)return this.set(g,this.$y+B);if(Y===u)return Z(1);if(Y===f)return Z(7);var ge=(K={},K[a]=r,K[l]=o,K[s]=n,K)[Y]||1,he=this.$d.getTime()+B*ge;return R.w(he,this)},$.subtract=function(B,q){return this.add(-1*B,q)},$.format=function(B){var q=this,K=this.$locale();if(!this.isValid())return K.invalidDate||b;var G=B||"YYYY-MM-DDTHH:mm:ssZ",Y=R.z(this),Z=this.$H,ge=this.$m,he=this.$M,oe=K.weekdays,Q=K.months,fe=K.meridiem,ce=function(te,ue,ee,se){return te&&(te[ue]||te(q,G))||ee[ue].slice(0,se)},ae=function(te){return R.s(Z%12||12,te,"0")},W=fe||function(te,ue,ee){var se=te<12?"AM":"PM";return ee?se.toLowerCase():se};return G.replace(C,function(te,ue){return ue||function(ee){switch(ee){case"YY":return String(q.$y).slice(-2);case"YYYY":return R.s(q.$y,4,"0");case"M":return he+1;case"MM":return R.s(he+1,2,"0");case"MMM":return ce(K.monthsShort,he,Q,3);case"MMMM":return ce(Q,he);case"D":return q.$D;case"DD":return R.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return ce(K.weekdaysMin,q.$W,oe,2);case"ddd":return ce(K.weekdaysShort,q.$W,oe,3);case"dddd":return oe[q.$W];case"H":return String(Z);case"HH":return R.s(Z,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return W(Z,ge,!0);case"A":return W(Z,ge,!1);case"m":return String(ge);case"mm":return R.s(ge,2,"0");case"s":return String(q.$s);case"ss":return R.s(q.$s,2,"0");case"SSS":return R.s(q.$ms,3,"0");case"Z":return Y}return null}(te)||Y.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(B,q,K){var G,Y=this,Z=R.p(q),ge=M(B),he=(ge.utcOffset()-this.utcOffset())*r,oe=this-ge,Q=function(){return R.m(Y,ge)};switch(Z){case g:G=Q()/12;break;case p:G=Q();break;case m:G=Q()/3;break;case f:G=(oe-he)/6048e5;break;case u:G=(oe-he)/864e5;break;case l:G=oe/o;break;case a:G=oe/r;break;case s:G=oe/n;break;default:G=oe}return K?G:R.a(G)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return O[this.$L]},$.locale=function(B,q){if(!B)return this.$L;var K=this.clone(),G=L(B,q,!0);return G&&(K.$L=G),K},$.clone=function(){return R.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},F}(),z=P.prototype;return M.prototype=z,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",p],["$y",g],["$D",y]].forEach(function(F){z[F[1]]=function($){return this.$g($,F[0],F[1])}}),M.extend=function(F,$){return F.$i||(F($,P,M),F.$i=!0),M},M.locale=L,M.isDayjs=D,M.unix=function(F){return M(1e3*F)},M.en=O[E],M.Ls=O,M.p={},M})}(Kd)),Kd.exports}var T8=w8();const pn=ir(T8);var Yd={exports:{}},_8=Yd.exports,yT;function k8(){return yT||(yT=1,function(t,e){(function(n,r){t.exports=r()})(_8,function(){var n="week",r="year";return function(o,i,s){var a=i.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(u),p=s(this).endOf(n);if(f.isBefore(p))return 1}var m=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})}(Yd)),Yd.exports}var E8=k8();const M8=ir(E8);var Gd={exports:{}},O8=Gd.exports,bT;function R8(){return bT||(bT=1,function(t,e){(function(n,r){t.exports=r()})(O8,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(S){return(S=+S)+(S>68?1900:2e3)},f=function(S){return function(C){this[S]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var _=C.match(/([+-]|\d\d)/g),T=60*_[1]+(+_[2]||0);return T===0?0:_[0]==="+"?-T:T}(S)}],m=function(S){var C=l[S];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(S,C){var _,T=l.meridiem;if(T){for(var w=1;w<=24;w+=1)if(S.indexOf(T(w,0,C))>-1){_=w>12;break}}else _=S===(C?"pm":"PM");return _},y={A:[a,function(S){this.afternoon=g(S,!1)}],a:[a,function(S){this.afternoon=g(S,!0)}],Q:[o,function(S){this.month=3*(S-1)+1}],S:[o,function(S){this.milliseconds=100*+S}],SS:[i,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[a,function(S){var C=l.ordinal,_=S.match(/\d+/);if(this.day=_[0],C)for(var T=1;T<=31;T+=1)C(T).replace(/\[|\]/g,"")===S&&(this.day=T)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[a,function(S){var C=m("months"),_=(m("monthsShort")||C.map(function(T){return T.slice(0,3)})).indexOf(S)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[a,function(S){var C=m("months").indexOf(S)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(S){this.year=u(S)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function b(S){var C,_;C=S,_=l&&l.formats;for(var T=(S=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,R,P){var z=P&&P.toUpperCase();return R||_[P]||n[P]||_[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,$,B){return $||B.slice(1)})})).match(r),w=T.length,E=0;E<w;E+=1){var O=T[E],N=y[O],D=N&&N[0],L=N&&N[1];T[E]=L?{regex:D,parser:L}:O.replace(/^\[|\]$/g,"")}return function(M){for(var R={},P=0,z=0;P<w;P+=1){var F=T[P];if(typeof F=="string")z+=F.length;else{var $=F.regex,B=F.parser,q=M.slice(z),K=$.exec(q)[0];B.call(R,K),M=M.replace(K,"")}}return function(G){var Y=G.afternoon;if(Y!==void 0){var Z=G.hours;Y?Z<12&&(G.hours+=12):Z===12&&(G.hours=0),delete G.afternoon}}(R),R}}return function(S,C,_){_.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(u=S.parseTwoDigitYear);var T=C.prototype,w=T.parse;T.parse=function(E){var O=E.date,N=E.utc,D=E.args;this.$u=N;var L=D[1];if(typeof L=="string"){var M=D[2]===!0,R=D[3]===!0,P=M||R,z=D[2];R&&(z=D[2]),l=this.$locale(),!M&&z&&(l=_.Ls[z]),this.$d=function(q,K,G,Y){try{if(["x","X"].indexOf(K)>-1)return new Date((K==="X"?1e3:1)*q);var Z=b(K)(q),ge=Z.year,he=Z.month,oe=Z.day,Q=Z.hours,fe=Z.minutes,ce=Z.seconds,ae=Z.milliseconds,W=Z.zone,te=Z.week,ue=new Date,ee=oe||(ge||he?1:ue.getDate()),se=ge||ue.getFullYear(),de=0;ge&&!he||(de=he>0?he-1:ue.getMonth());var ye,Te=Q||0,Se=fe||0,Me=ce||0,Ne=ae||0;return W?new Date(Date.UTC(se,de,ee,Te,Se,Me,Ne+60*W.offset*1e3)):G?new Date(Date.UTC(se,de,ee,Te,Se,Me,Ne)):(ye=new Date(se,de,ee,Te,Se,Me,Ne),te&&(ye=Y(ye).week(te).toDate()),ye)}catch{return new Date("")}}(O,L,N,_),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),P&&O!=this.format(L)&&(this.$d=new Date("")),l={}}else if(L instanceof Array)for(var F=L.length,$=1;$<=F;$+=1){D[1]=L[$-1];var B=_.apply(this,D);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}$===F&&(this.$d=new Date(""))}else w.call(this,E)}}})}(Gd)),Gd.exports}var A8=R8();const I8=ir(A8);var Jd={exports:{}},D8=Jd.exports,vT;function P8(){return vT||(vT=1,function(t,e){(function(n,r){t.exports=r()})(D8,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var s=o.prototype,a=s.format;i.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,y,b){var S=b&&b.toUpperCase();return y||m[b]||n[b]||m[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,_,T){return _||T.slice(1)})})}(l,u===void 0?{}:u);return a.call(this,f)}}})}(Jd)),Jd.exports}var N8=P8();const L8=ir(N8);var Zd={exports:{}},j8=Zd.exports,xT;function $8(){return xT||(xT=1,function(t,e){(function(n,r){t.exports=r()})(j8,function(){return function(n,r,o){r.prototype.isBetween=function(i,s,a,l){var u=o(i),f=o(s),p=(l=l||"()")[0]==="(",m=l[1]===")";return(p?this.isAfter(u,a):!this.isBefore(u,a))&&(m?this.isBefore(f,a):!this.isAfter(f,a))||(p?this.isBefore(u,a):!this.isAfter(u,a))&&(m?this.isAfter(f,a):!this.isBefore(f,a))}}})}(Zd)),Zd.exports}var F8=$8();const B8=ir(F8);var Xd={exports:{}},z8=Xd.exports,ST;function V8(){return ST||(ST=1,function(t,e){(function(n,r){t.exports=r()})(z8,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}});return i.bind(this)(f)}}})}(Xd)),Xd.exports}var H8=V8();const W8=ir(H8),CT=new Set;function $A(t,e="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(t)?t.join(`
104
+ }`;var at=cw(function(){return Ct(H,He+"return "+Ee).apply(n,K)});if(at.source=Ee,wm(at))throw at;return at}function iz(d){return Tt(d).toLowerCase()}function sz(d){return Tt(d).toUpperCase()}function az(d,h,x){if(d=Tt(d),d&&(x||h===n))return bS(d);if(!d||!(h=xr(h)))return d;var k=Qr(d),I=Qr(h),H=vS(k,I),K=xS(k,I)+1;return Ti(k,H,K).join("")}function lz(d,h,x){if(d=Tt(d),d&&(x||h===n))return d.slice(0,CS(d)+1);if(!d||!(h=xr(h)))return d;var k=Qr(d),I=xS(k,Qr(h))+1;return Ti(k,0,I).join("")}function cz(d,h,x){if(d=Tt(d),d&&(x||h===n))return d.replace(wh,"");if(!d||!(h=xr(h)))return d;var k=Qr(d),I=vS(k,Qr(h));return Ti(k,I).join("")}function uz(d,h){var x=M,k=R;if(Qt(h)){var I="separator"in h?h.separator:I;x="length"in h?it(h.length):x,k="omission"in h?xr(h.omission):k}d=Tt(d);var H=d.length;if(sa(d)){var K=Qr(d);H=K.length}if(x>=H)return d;var Q=x-aa(k);if(Q<1)return k;var ie=K?Ti(K,0,Q).join(""):d.slice(0,Q);if(I===n)return ie+k;if(K&&(Q+=ie.length-Q),Tm(I)){if(d.slice(Q).search(I)){var Ce,we=ie;for(I.global||(I=Bh(I.source,Tt(B1.exec(I))+"g")),I.lastIndex=0;Ce=I.exec(we);)var Ee=Ce.index;ie=ie.slice(0,Ee===n?Q:Ee)}}else if(d.indexOf(xr(I),Q)!=Q){var De=ie.lastIndexOf(I);De>-1&&(ie=ie.slice(0,De))}return ie+k}function dz(d){return d=Tt(d),d&&Fo.test(d)?d.replace(Gn,Bj):d}var fz=ha(function(d,h,x){return d+(x?" ":"")+h.toUpperCase()}),Em=uC("toUpperCase");function lw(d,h,x){return d=Tt(d),h=x?n:h,h===n?Nj(d)?Hj(d):kj(d):d.match(h)||[]}var cw=ut(function(d,h){try{return br(d,n,h)}catch(x){return wm(x)?x:new nt(x)}}),pz=Wo(function(d,h){return Ar(h,function(x){x=bo(x),Vo(d,x,Sm(d[x],d))}),d});function hz(d){var h=d==null?0:d.length,x=Ze();return d=h?Jt(d,function(k){if(typeof k[1]!="function")throw new Ir(s);return[x(k[0]),k[1]]}):[],ut(function(k){for(var I=-1;++I<h;){var H=d[I];if(br(H[0],this,k))return br(H[1],this,k)}})}function mz(d){return B$(Pr(d,p))}function Mm(d){return function(){return d}}function gz(d,h){return d==null||d!==d?h:d}var yz=fC(),bz=fC(!0);function ur(d){return d}function Om(d){return VS(typeof d=="function"?d:Pr(d,p))}function vz(d){return WS(Pr(d,p))}function xz(d,h){return qS(d,Pr(h,p))}var Sz=ut(function(d,h){return function(x){return Ml(x,d,h)}}),Cz=ut(function(d,h){return function(x){return Ml(d,x,h)}});function Rm(d,h,x){var k=Tn(h),I=Uu(h,k);x==null&&!(Qt(h)&&(I.length||!k.length))&&(x=h,h=d,d=this,I=Uu(h,Tn(h)));var H=!(Qt(x)&&"chain"in x)||!!x.chain,K=Uo(d);return Ar(I,function(Q){var ie=h[Q];d[Q]=ie,K&&(d.prototype[Q]=function(){var Ce=this.__chain__;if(H||Ce){var we=d(this.__wrapped__),Ee=we.__actions__=ar(this.__actions__);return Ee.push({func:ie,args:arguments,thisArg:d}),we.__chain__=Ce,we}return ie.apply(d,bi([this.value()],arguments))})}),d}function wz(){return Dn._===this&&(Dn._=Gj),this}function Am(){}function Tz(d){return d=it(d),ut(function(h){return US(h,d)})}var _z=lm(Jt),kz=lm(pS),Ez=lm(Dh);function uw(d){return mm(d)?Ph(bo(d)):rF(d)}function Mz(d){return function(h){return d==null?n:fs(d,h)}}var Oz=hC(),Rz=hC(!0);function Im(){return[]}function Dm(){return!1}function Az(){return{}}function Iz(){return""}function Dz(){return!0}function Pz(d,h){if(d=it(d),d<1||d>U)return[];var x=Z,k=Bn(d,Z);h=Ze(h),d-=Z;for(var I=jh(k,h);++x<d;)h(x);return I}function Nz(d){return ot(d)?Jt(d,bo):Sr(d)?[d]:ar(RC(Tt(d)))}function Lz(d){var h=++Kj;return Tt(d)+h}var jz=Xu(function(d,h){return d+h},0),$z=cm("ceil"),Fz=Xu(function(d,h){return d/h},1),Bz=cm("floor");function zz(d){return d&&d.length?qu(d,ur,Yh):n}function Vz(d,h){return d&&d.length?qu(d,Ze(h,2),Yh):n}function Hz(d){return gS(d,ur)}function Wz(d,h){return gS(d,Ze(h,2))}function qz(d){return d&&d.length?qu(d,ur,Xh):n}function Uz(d,h){return d&&d.length?qu(d,Ze(h,2),Xh):n}var Kz=Xu(function(d,h){return d*h},1),Yz=cm("round"),Gz=Xu(function(d,h){return d-h},0);function Jz(d){return d&&d.length?Lh(d,ur):0}function Zz(d,h){return d&&d.length?Lh(d,Ze(h,2)):0}return V.after=vB,V.ary=zC,V.assign=s3,V.assignIn=tw,V.assignInWith=dd,V.assignWith=a3,V.at=l3,V.before=VC,V.bind=Sm,V.bindAll=pz,V.bindKey=HC,V.castArray=AB,V.chain=$C,V.chunk=BF,V.compact=zF,V.concat=VF,V.cond=hz,V.conforms=mz,V.constant=Mm,V.countBy=J5,V.create=c3,V.curry=WC,V.curryRight=qC,V.debounce=UC,V.defaults=u3,V.defaultsDeep=d3,V.defer=xB,V.delay=SB,V.difference=HF,V.differenceBy=WF,V.differenceWith=qF,V.drop=UF,V.dropRight=KF,V.dropRightWhile=YF,V.dropWhile=GF,V.fill=JF,V.filter=X5,V.flatMap=tB,V.flatMapDeep=nB,V.flatMapDepth=rB,V.flatten=PC,V.flattenDeep=ZF,V.flattenDepth=XF,V.flip=CB,V.flow=yz,V.flowRight=bz,V.fromPairs=QF,V.functions=b3,V.functionsIn=v3,V.groupBy=oB,V.initial=t5,V.intersection=n5,V.intersectionBy=r5,V.intersectionWith=o5,V.invert=S3,V.invertBy=C3,V.invokeMap=sB,V.iteratee=Om,V.keyBy=aB,V.keys=Tn,V.keysIn=cr,V.map=id,V.mapKeys=T3,V.mapValues=_3,V.matches=vz,V.matchesProperty=xz,V.memoize=ad,V.merge=k3,V.mergeWith=nw,V.method=Sz,V.methodOf=Cz,V.mixin=Rm,V.negate=ld,V.nthArg=Tz,V.omit=E3,V.omitBy=M3,V.once=wB,V.orderBy=lB,V.over=_z,V.overArgs=TB,V.overEvery=kz,V.overSome=Ez,V.partial=Cm,V.partialRight=KC,V.partition=cB,V.pick=O3,V.pickBy=rw,V.property=uw,V.propertyOf=Mz,V.pull=l5,V.pullAll=LC,V.pullAllBy=c5,V.pullAllWith=u5,V.pullAt=d5,V.range=Oz,V.rangeRight=Rz,V.rearg=_B,V.reject=fB,V.remove=f5,V.rest=kB,V.reverse=vm,V.sampleSize=hB,V.set=A3,V.setWith=I3,V.shuffle=mB,V.slice=p5,V.sortBy=bB,V.sortedUniq=x5,V.sortedUniqBy=S5,V.split=tz,V.spread=EB,V.tail=C5,V.take=w5,V.takeRight=T5,V.takeRightWhile=_5,V.takeWhile=k5,V.tap=z5,V.throttle=MB,V.thru=od,V.toArray=XC,V.toPairs=ow,V.toPairsIn=iw,V.toPath=Nz,V.toPlainObject=ew,V.transform=D3,V.unary=OB,V.union=E5,V.unionBy=M5,V.unionWith=O5,V.uniq=R5,V.uniqBy=A5,V.uniqWith=I5,V.unset=P3,V.unzip=xm,V.unzipWith=jC,V.update=N3,V.updateWith=L3,V.values=ya,V.valuesIn=j3,V.without=D5,V.words=lw,V.wrap=RB,V.xor=P5,V.xorBy=N5,V.xorWith=L5,V.zip=j5,V.zipObject=$5,V.zipObjectDeep=F5,V.zipWith=B5,V.entries=ow,V.entriesIn=iw,V.extend=tw,V.extendWith=dd,Rm(V,V),V.add=jz,V.attempt=cw,V.camelCase=z3,V.capitalize=sw,V.ceil=$z,V.clamp=$3,V.clone=IB,V.cloneDeep=PB,V.cloneDeepWith=NB,V.cloneWith=DB,V.conformsTo=LB,V.deburr=aw,V.defaultTo=gz,V.divide=Fz,V.endsWith=V3,V.eq=to,V.escape=H3,V.escapeRegExp=W3,V.every=Z5,V.find=Q5,V.findIndex=IC,V.findKey=f3,V.findLast=eB,V.findLastIndex=DC,V.findLastKey=p3,V.floor=Bz,V.forEach=FC,V.forEachRight=BC,V.forIn=h3,V.forInRight=m3,V.forOwn=g3,V.forOwnRight=y3,V.get=_m,V.gt=jB,V.gte=$B,V.has=x3,V.hasIn=km,V.head=NC,V.identity=ur,V.includes=iB,V.indexOf=e5,V.inRange=F3,V.invoke=w3,V.isArguments=ms,V.isArray=ot,V.isArrayBuffer=FB,V.isArrayLike=lr,V.isArrayLikeObject=dn,V.isBoolean=BB,V.isBuffer=_i,V.isDate=zB,V.isElement=VB,V.isEmpty=HB,V.isEqual=WB,V.isEqualWith=qB,V.isError=wm,V.isFinite=UB,V.isFunction=Uo,V.isInteger=YC,V.isLength=cd,V.isMap=GC,V.isMatch=KB,V.isMatchWith=YB,V.isNaN=GB,V.isNative=JB,V.isNil=XB,V.isNull=ZB,V.isNumber=JC,V.isObject=Qt,V.isObjectLike=rn,V.isPlainObject=Pl,V.isRegExp=Tm,V.isSafeInteger=QB,V.isSet=ZC,V.isString=ud,V.isSymbol=Sr,V.isTypedArray=ga,V.isUndefined=e3,V.isWeakMap=t3,V.isWeakSet=n3,V.join=i5,V.kebabCase=q3,V.last=Lr,V.lastIndexOf=s5,V.lowerCase=U3,V.lowerFirst=K3,V.lt=r3,V.lte=o3,V.max=zz,V.maxBy=Vz,V.mean=Hz,V.meanBy=Wz,V.min=qz,V.minBy=Uz,V.stubArray=Im,V.stubFalse=Dm,V.stubObject=Az,V.stubString=Iz,V.stubTrue=Dz,V.multiply=Kz,V.nth=a5,V.noConflict=wz,V.noop=Am,V.now=sd,V.pad=Y3,V.padEnd=G3,V.padStart=J3,V.parseInt=Z3,V.random=B3,V.reduce=uB,V.reduceRight=dB,V.repeat=X3,V.replace=Q3,V.result=R3,V.round=Yz,V.runInContext=oe,V.sample=pB,V.size=gB,V.snakeCase=ez,V.some=yB,V.sortedIndex=h5,V.sortedIndexBy=m5,V.sortedIndexOf=g5,V.sortedLastIndex=y5,V.sortedLastIndexBy=b5,V.sortedLastIndexOf=v5,V.startCase=nz,V.startsWith=rz,V.subtract=Gz,V.sum=Jz,V.sumBy=Zz,V.template=oz,V.times=Pz,V.toFinite=Ko,V.toInteger=it,V.toLength=QC,V.toLower=iz,V.toNumber=jr,V.toSafeInteger=i3,V.toString=Tt,V.toUpper=sz,V.trim=az,V.trimEnd=lz,V.trimStart=cz,V.truncate=uz,V.unescape=dz,V.uniqueId=Lz,V.upperCase=fz,V.upperFirst=Em,V.each=FC,V.eachRight=BC,V.first=NC,Rm(V,function(){var d={};return go(V,function(h,x){Mt.call(V.prototype,x)||(d[x]=h)}),d}(),{chain:!1}),V.VERSION=r,Ar(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){V[d].placeholder=V}),Ar(["drop","take"],function(d,h){ht.prototype[d]=function(x){x=x===n?1:xn(it(x),0);var k=this.__filtered__&&!h?new ht(this):this.clone();return k.__filtered__?k.__takeCount__=Bn(x,k.__takeCount__):k.__views__.push({size:Bn(x,Z),type:d+(k.__dir__<0?"Right":"")}),k},ht.prototype[d+"Right"]=function(x){return this.reverse()[d](x).reverse()}}),Ar(["filter","map","takeWhile"],function(d,h){var x=h+1,k=x==z||x==F;ht.prototype[d]=function(I){var H=this.clone();return H.__iteratees__.push({iteratee:Ze(I,3),type:x}),H.__filtered__=H.__filtered__||k,H}}),Ar(["head","last"],function(d,h){var x="take"+(h?"Right":"");ht.prototype[d]=function(){return this[x](1).value()[0]}}),Ar(["initial","tail"],function(d,h){var x="drop"+(h?"":"Right");ht.prototype[d]=function(){return this.__filtered__?new ht(this):this[x](1)}}),ht.prototype.compact=function(){return this.filter(ur)},ht.prototype.find=function(d){return this.filter(d).head()},ht.prototype.findLast=function(d){return this.reverse().find(d)},ht.prototype.invokeMap=ut(function(d,h){return typeof d=="function"?new ht(this):this.map(function(x){return Ml(x,d,h)})}),ht.prototype.reject=function(d){return this.filter(ld(Ze(d)))},ht.prototype.slice=function(d,h){d=it(d);var x=this;return x.__filtered__&&(d>0||h<0)?new ht(x):(d<0?x=x.takeRight(-d):d&&(x=x.drop(d)),h!==n&&(h=it(h),x=h<0?x.dropRight(-h):x.take(h-d)),x)},ht.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},ht.prototype.toArray=function(){return this.take(Z)},go(ht.prototype,function(d,h){var x=/^(?:filter|find|map|reject)|While$/.test(h),k=/^(?:head|last)$/.test(h),I=V[k?"take"+(h=="last"?"Right":""):h],H=k||/^find/.test(h);I&&(V.prototype[h]=function(){var K=this.__wrapped__,Q=k?[1]:arguments,ie=K instanceof ht,Ce=Q[0],we=ie||ot(K),Ee=function(ft){var gt=I.apply(V,bi([ft],Q));return k&&De?gt[0]:gt};we&&x&&typeof Ce=="function"&&Ce.length!=1&&(ie=we=!1);var De=this.__chain__,He=!!this.__actions__.length,Xe=H&&!De,at=ie&&!He;if(!H&&we){K=at?K:new ht(this);var Qe=d.apply(K,Q);return Qe.__actions__.push({func:od,args:[Ee],thisArg:n}),new Dr(Qe,De)}return Xe&&at?d.apply(this,Q):(Qe=this.thru(Ee),Xe?k?Qe.value()[0]:Qe.value():Qe)})}),Ar(["pop","push","shift","sort","splice","unshift"],function(d){var h=Ru[d],x=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",k=/^(?:pop|shift)$/.test(d);V.prototype[d]=function(){var I=arguments;if(k&&!this.__chain__){var H=this.value();return h.apply(ot(H)?H:[],I)}return this[x](function(K){return h.apply(ot(K)?K:[],I)})}}),go(ht.prototype,function(d,h){var x=V[h];if(x){var k=x.name+"";Mt.call(da,k)||(da[k]=[]),da[k].push({name:h,func:x})}}),da[Zu(n,C).name]=[{name:"wrapper",func:n}],ht.prototype.clone=d$,ht.prototype.reverse=f$,ht.prototype.value=p$,V.prototype.at=V5,V.prototype.chain=H5,V.prototype.commit=W5,V.prototype.next=q5,V.prototype.plant=K5,V.prototype.reverse=Y5,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=G5,V.prototype.first=V.prototype.head,Sl&&(V.prototype[Sl]=U5),V},la=Wj();as?((as.exports=la)._=la,Oh._=la):Dn._=la}).call(iq)}(Zl,Zl.exports)),Zl.exports}var gf=sq();const aq=t=>{const{name:e,onInputChange:n,onChange:r,onFilter:o,onFilterError:i,fetchOnCount:s=1,preFilterMessage:a=s?"Start typing to see options...":t.noOptionsText,noOptionsText:l,filterOptions:u=D=>D,includeInputInList:f=!0,autoComplete:p=!0,...m}=t,[g,y,b]=qt.useField(e),{setValue:S}=b,[C,_]=J.useState(""),[T,w]=J.useState([]),[E,O]=J.useState(!1),N=gf.debounce(async(D,L)=>{try{O(!0);const M=await o(D.input);L(M)}catch(M){throw M}finally{O(!1)}},400);return J.useEffect(()=>{if(C===""){w(g.value?[g.value]:[]);return}C.length>=s&&N({input:C},D=>{let L=[];D?(L=D,g.value&&(L=[g.value,...D.filter(M=>JSON.stringify(M)!==JSON.stringify(g.value))])):g.value&&(L=[g.value]),w(L)})},[g.value,C]),v.jsx(MA,{name:e,loading:E,filterOptions:u,noOptionsText:C.length<s?a:l,options:T,autoComplete:p,includeInputInList:f,onChange:(D,L,M,R)=>{w(L?[L,...T]:T),S(L),r&&r(D,L,M,R)},onInputChange:(D,L,M)=>{_(L),n&&n(D,L,M)},...m})},lq=t=>{const{name:e,label:n=Mn(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,getOptionLabel:g=D=>typeof D=="string"?D:String(D),isOptionEqualToValue:y=(D,L)=>JSON.stringify(D)===JSON.stringify(L),useFieldAsValue:b,...S}=t,[C,_,T]=qt.useField(e),{setValue:w}=T,{error:E}=_,O={...er(S,["useFieldAsValue"]),getOptionLabel:g,options:r,filterSelectedOptions:o,isOptionEqualToValue:y,renderInput:D=>v.jsx(j.TextField,{...D,variant:i,label:s?void 0:n,error:!!E,required:p}),onChange:(D,L,M,R)=>{w(b?L.map(P=>P[b]):L),m&&m(D,L,M,R)},fullWidth:!0,value:b?r.filter(D=>C.value.includes(D[b]))||[]:C.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},N=()=>C.value.length===0?"":(b?r.filter(L=>C.value.includes(L[b]))||[]:C.value).map(L=>g(L)).join(", ");return v.jsxs(j.FormControl,{margin:u,fullWidth:f,required:p,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:N()}):v.jsxs(j.Box,{children:[v.jsx(j.Autocomplete,{...O,multiple:!0}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},cq=t=>{const{name:e,label:n=Mn(e),sublabel:r,required:o=!1,labelPlacement:i="end",labelAlignment:s=i==="end"||i==="start"?"top":"center",readOnly:a=!1,staticLabelProps:l={fontSize:".9em",color:"#808080"},onChange:u,...f}=t;s==="top"&&(i==="bottom"||i==="top")&&console.error(`Checkbox: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${i}`);const p=qt.useField({name:e}),m=p[0],g=p[2],y=r?v.jsxs("div",{children:[v.jsx("p",{style:{margin:0},children:n}),v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:r})]}):n,b=s==="top"&&(i==="start"||i==="end");return a?m.value&&v.jsx(j.Typography,{...l,children:y}):v.jsxs(j.Box,{children:[v.jsx(j.FormControlLabel,{sx:{alignItems:b?"flex-start":"center"},label:v.jsx("span",{"data-testid":n,style:{display:"inline-block",marginTop:b?"10px":0},children:y}),required:o,labelPlacement:i,control:v.jsx(j.Checkbox,{"data-testid":"checkbox",...f,...m,onChange:(S,C)=>{g.setValue(S.target.checked),u&&u(S,C)},checked:m.value})}),v.jsx(tr,{name:e,id:`${e}-err`})]})},Va=t=>{const{name:e,label:n=Mn(e),format:r="",autoFormat:o=r,placeholder:i=n,staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l=!1,startIcon:u,endIcon:f,margin:p="dense",noTrimOnBlur:m=!1}=t,[g,y,b]=qt.useField({name:e}),{setValue:S}=b,{value:C}=g,{error:_}=y;C===void 0&&console.error(`Please set an initial value for ${e}`),!r&&o&&console.error("Can't auto format when there is no format");const T=E=>{if(o){const O=c6(E.target.value,r,C,E.target);S(O)}else S(E.target.value);t.onChange&&t.onChange(E)},w=["autoFormat","format","staticLabel","staticLabelProps","endIcon","startIcon"];return v.jsxs(j.FormControl,{margin:p,fullWidth:!0,children:[(s||l)&&v.jsx(j.Typography,{...a,children:n}),l?v.jsx(j.Typography,{children:C}):v.jsxs(j.Box,{children:[v.jsx(j.TextField,{variant:"outlined",fullWidth:!0,...g,id:`${e}-tf`,error:!!_,placeholder:i,...er({...t},w),onChange:T,label:s?void 0:n,slotProps:{input:{endAdornment:f,startAdornment:u}},onBlur:E=>{m||S(E.target.value.trim()),t.onBlur&&t.onBlur(E)}}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},uq=t=>{const{name:e,checkboxes:n=[],label:r=Mn(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l=!1,min:u=0,max:f=n.length,minMaxSubtitle:p="Please select between {min} and {max} options",maxSubtitle:m="Up to {max} max",minSubtitle:g="Please select {min} or more",margin:y="dense",staticLabelProps:b={fontSize:".9em",color:"#808080"}}=t,[S,C,_]=qt.useField({name:e}),{setValue:T}=_,{value:w}=S,{error:E}=C,{setFieldValue:O}=qt.useFormikContext();(u<0||u>=n.length)&&console.error(`CheckboxGroup: "min" cannot be ${u}. It must be a value between 0 and ${n.length-1}.`),(f<=1||f>n.length)&&console.error(`CheckboxGroup: "max" must be a value between 2 and ${n.length}.`),i==="top"&&(o==="bottom"||o==="top")&&console.error(`CheckboxGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const N=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",D=P=>typeof P=="string"?P:!P.textField&&!P.sublabel?P.label:v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"center",gap:"0.5rem",alignItems:"baseline",children:[v.jsxs(j.Box,{display:"flex",flexDirection:"column",justifyContent:"center",children:[v.jsx("p",{style:{margin:0},children:P.label}),P.sublabel&&v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:P.sublabel})]}),P.textField&&v.jsx(Va,{label:"",size:"small",margin:"none",sx:{"& .MuiInputBase-input":{height:14}},...P.textField})]}),L=n.map(P=>{const B=typeof P=="string"?P:P.label,z=i==="top"&&(o==="start"||o==="end");return v.jsx(j.FormControlLabel,{sx:{alignItems:z?"flex-start":"center"},value:B,control:v.jsx(j.Checkbox,{}),label:v.jsx("div",{"data-testid":typeof P=="string"?P:P.label,style:{marginTop:z?"10px":0},children:D(P)}),labelPlacement:o,checked:w.includes(B),disabled:a||!w.includes(B)&&w.length===f,style:{textAlign:N()}},`checkbox-group-${B}`)}),M=()=>{if(f<n.length&&u>0)return v.jsx(j.Typography,{variant:"subtitle2",children:p.replace("{min}",`${u}`).replace("{max}",`${f}`)});if(f<n.length)return v.jsx(j.Typography,{variant:"subtitle2",children:m.replace("{max}",`${f}`)});if(u>0)return v.jsx(j.Typography,{variant:"subtitle2",children:g.replace("{min}",`${u}`)})};return l?v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...b,children:r}),w.join(", ")]}):v.jsxs(j.FormControl,{onChange:P=>{const B=P.target.value,z=P.target.checked,$=n.find(F=>typeof F=="string"?F===B:F.label===B);z?T([...w,B]):($&&typeof $=="object"&&$.textField&&$.textField.name&&O($.textField.name,""),T(w.filter(F=>F!=B)))},fullWidth:!0,margin:y,error:!!E,children:[v.jsx(j.FormLabel,{focused:t.focused,htmlFor:e,required:s,disabled:t.disableLabel,children:r}),M(),L,v.jsx(tr,{name:e,id:`${e}-err`})]})},Xw=Fe(v.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),OA=t=>{const{name:e,multiple:n=!1,readOnly:r=!1,variant:o=n?"drag-and-drop":"button",duplicateFilesCallback:i,incorrectFileTypesCallback:s,staticLabelProps:a={fontSize:".9em",color:"#808080"}}=t,[l,u,f]=qt.useField({name:e}),{setValue:p}=f,m=l.value,g=t.fileType?Array.isArray(t.fileType)?t.fileType:[t.fileType]:[],y=t.subtitle??(g.length>0?`Allowed file extensions: ${g.join(", ")}`:""),b=N=>{C(Array.from(N.target.files??[]))},S=N=>{N.preventDefault(),C(Array.from(N.dataTransfer.files))},C=N=>{if(N&&N.length>0){const D=m?Array.isArray(m)?m:[m]:[],L=gf.partition(N,M=>D.find(R=>T(M,R)));if(N=L[1],i&&L[0].length>0&&i(L[0]),g.length>0){const M=gf.partition(N,R=>g.find(P=>R.name.endsWith(P)));N=M[0],s&&M[1].length>0&&s(M[1])}n?p([..._(),...N]):!Array.isArray(m)&&N.length>0&&p(N[0])}},_=()=>m?Array.isArray(m)?m:[m]:[],T=(N,D)=>N.lastModified===D.lastModified&&N.name===D.name&&N.type===D.type&&N.size===D.size,w=()=>_().map(N=>N.name).join(", ");return r?v.jsx(j.Typography,{"data-testid":"fileupload-readonly",...a,children:w()}):o==="drag-and-drop"?v.jsxs("div",{style:{border:`4px dashed ${u.error?"red":"lightgray"}`,padding:"30px 10px",display:"flex",alignItems:"center",flexDirection:"column"},onDrop:S,onDragOver:N=>N.preventDefault(),"data-testid":"dropzone",children:[v.jsx(Xw,{color:"primary",sx:{fontSize:"40px"}}),v.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"baseline"},children:[v.jsx(j.Typography,{children:"Drag and drop or"}),v.jsxs(j.Button,{component:"label",role:void 0,variant:"text",tabIndex:-1,sx:{textTransform:"none",fontSize:"16px",textDecoration:"underline"},children:["browse",v.jsx("input",{"data-testid":"file-input",id:e,hidden:!0,type:"file",onChange:b,multiple:!0,accept:g==null?void 0:g.toString()})]})]}),y&&v.jsx(j.Typography,{variant:"caption",children:y}),v.jsx(tr,{name:e,id:`${e}-err`})]}):v.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[v.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:v.jsxs(j.Button,{component:"label",role:void 0,variant:"contained",tabIndex:-1,startIcon:v.jsx(Xw,{}),children:["Upload a file",v.jsx("input",{"data-testid":"file-input",id:e,hidden:!0,type:"file",onChange:b,accept:g==null?void 0:g.toString()})]})}),v.jsx(tr,{name:e,id:`${e}-err`})]})},dq=Fe(v.jsx("path",{d:"M15 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V7zM6 20V4h8v4h4v12zm10-10v5c0 2.21-1.79 4-4 4s-4-1.79-4-4V8.5c0-1.47 1.26-2.64 2.76-2.49 1.3.13 2.24 1.32 2.24 2.63V15h-2V8.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5V15c0 1.1.9 2 2 2s2-.9 2-2v-5z"}),"FilePresent"),j0=Fe(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),fq=t=>{const{name:e}=t,[n,,r]=qt.useField({name:e}),{setValue:o}=r,i=n.value;return v.jsx("div",{style:{width:"100%"},children:i.map(s=>v.jsx(j.Card,{sx:{margin:"10px 0px"},children:v.jsxs(j.CardContent,{style:{display:"flex",alignItems:"center",padding:"8px 12px"},children:[v.jsx(dq,{sx:{color:"gray",fontSize:"20px"}}),v.jsx(j.Typography,{sx:{padding:"8px",overflowWrap:"anywhere"},children:s.name}),v.jsx(j.IconButton,{"aria-label":"remove file",onClick:()=>o(i.filter(a=>a!==s)),edge:"end",style:{marginLeft:"auto",order:"2"},children:v.jsx(j0,{})})]})},`${s.name}-${s.type}-${s.size}-${s.lastModified}`))})};var Hm,Qw;function hi(){if(Qw)return Hm;Qw=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Hm=t,Hm}var Wm,eT;function RA(){if(eT)return Wm;eT=1;var t=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return Wm=t,Wm}var qm,tT;function fo(){if(tT)return qm;tT=1;var t=RA(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return qm=n,qm}var Um,nT;function pq(){if(nT)return Um;nT=1;var t=fo(),e=function(){return t.Date.now()};return Um=e,Um}var Km,rT;function hq(){if(rT)return Km;rT=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return Km=e,Km}var Ym,oT;function mq(){if(oT)return Ym;oT=1;var t=hq(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return Ym=n,Ym}var Gm,iT;function ou(){if(iT)return Gm;iT=1;var t=fo(),e=t.Symbol;return Gm=e,Gm}var Jm,sT;function gq(){if(sT)return Jm;sT=1;var t=ou(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(s){var a=n.call(s,o),l=s[o];try{s[o]=void 0;var u=!0}catch{}var f=r.call(s);return u&&(a?s[o]=l:delete s[o]),f}return Jm=i,Jm}var Zm,aT;function yq(){if(aT)return Zm;aT=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Zm=n,Zm}var Xm,lT;function Gs(){if(lT)return Xm;lT=1;var t=ou(),e=gq(),n=yq(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function s(a){return a==null?a===void 0?o:r:i&&i in Object(a)?e(a):n(a)}return Xm=s,Xm}var Qm,cT;function ts(){if(cT)return Qm;cT=1;function t(e){return e!=null&&typeof e=="object"}return Qm=t,Qm}var eg,uT;function Ap(){if(uT)return eg;uT=1;var t=Gs(),e=ts(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return eg=r,eg}var tg,dT;function AA(){if(dT)return tg;dT=1;var t=mq(),e=hi(),n=Ap(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=t(u);var p=i.test(u);return p||s.test(u)?a(u.slice(2),p?2:8):o.test(u)?r:+u}return tg=l,tg}var ng,fT;function IA(){if(fT)return ng;fT=1;var t=hi(),e=pq(),n=AA(),r="Expected a function",o=Math.max,i=Math.min;function s(a,l,u){var f,p,m,g,y,b,S=0,C=!1,_=!1,T=!0;if(typeof a!="function")throw new TypeError(r);l=n(l)||0,t(u)&&(C=!!u.leading,_="maxWait"in u,m=_?o(n(u.maxWait)||0,l):m,T="trailing"in u?!!u.trailing:T);function w(B){var z=f,$=p;return f=p=void 0,S=B,g=a.apply($,z),g}function E(B){return S=B,y=setTimeout(D,l),C?w(B):g}function O(B){var z=B-b,$=B-S,F=l-z;return _?i(F,m-$):F}function N(B){var z=B-b,$=B-S;return b===void 0||z>=l||z<0||_&&$>=m}function D(){var B=e();if(N(B))return L(B);y=setTimeout(D,O(B))}function L(B){return y=void 0,T&&f?w(B):(f=p=void 0,g)}function M(){y!==void 0&&clearTimeout(y),S=0,f=b=p=y=void 0}function R(){return y===void 0?g:L(e())}function P(){var B=e(),z=N(B);if(f=arguments,p=this,b=B,z){if(y===void 0)return E(b);if(_)return clearTimeout(y),y=setTimeout(D,l),w(b)}return y===void 0&&(y=setTimeout(D,l)),g}return P.cancel=M,P.flush=R,P}return ng=s,ng}var rg,pT;function bq(){if(pT)return rg;pT=1;var t=IA(),e=hi(),n="Expected a function";function r(o,i,s){var a=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(s)&&(a="leading"in s?!!s.leading:a,l="trailing"in s?!!s.trailing:l),t(o,i,{leading:a,maxWait:i,trailing:l})}return rg=r,rg}var vq=bq();const DA=ir(vq),xq=Fe(v.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");var Ud={exports:{}},Sq=Ud.exports,hT;function Cq(){return hT||(hT=1,function(t,e){(function(n,r){t.exports=r()})(Sq,()=>{return n={705:o=>{o.exports=function(i,s){const a=[];return s.length===0?a.push({text:i,highlight:!1}):s[0][0]>0&&a.push({text:i.slice(0,s[0][0]),highlight:!1}),s.forEach((l,u)=>{const f=l[0],p=l[1];a.push({text:i.slice(f,p),highlight:!0}),u===s.length-1?p<i.length&&a.push({text:i.slice(p,i.length),highlight:!1}):p<s[u+1][0]&&a.push({text:i.slice(p,s[u+1][0]),highlight:!1})}),a}}},r={},function o(i){var s=r[i];if(s!==void 0)return s.exports;var a=r[i]={exports:{}};return n[i](a,a.exports,o),a.exports}(705);var n,r})}(Ud)),Ud.exports}var wq=Cq();const Tq=ir(wq),_q=t=>{const{listItemProps:e,option:n,resultIcon:r,highlightMatches:o}=t,{main_text:i,secondary_text:s,main_text_matched_substrings:a}=n.structured_formatting,l=Tq(i,a.map(u=>[u.offset,u.offset+u.length]));return v.jsx("li",{...er({...e},["key"]),"data-testid":`loc-${n.place_id}`,children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[r?A.cloneElement(r):null,v.jsxs(j.Box,{children:[l.map(u=>{const f=o&&u.highlight?700:400;return v.jsx("span",{style:{fontWeight:f},children:u.text},`${n.place_id}_${u.text}`)}),v.jsx(j.Typography,{variant:"body2",color:"textSecondary",children:s})]})]})})};function kq(t,e,n){if(!e)return;const r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",n),r.src=t,r.onerror=()=>console.error(`Failed to load script: ${t}`),e.appendChild(r)}const jl={current:null},Eq=t=>{const{name:e,label:n=Mn(e),resultIcon:r=v.jsx(xq,{}),apiKey:o,highlightMatches:i=!0,types:s,variant:a="outlined",staticLabel:l=!1,staticLabelProps:u={fontSize:".9em",color:"#808080"},readOnly:f=!1,margin:p="dense"}=t,[m,g]=A.useState(null),[y,b]=A.useState(""),[S,C]=A.useState([]),_=A.useRef(!1),[,T,w]=qt.useField(e),{setValue:E}=w,{error:O}=T;typeof window<"u"&&!_.current&&(document.querySelector("#google-maps")||kq(`https://maps.googleapis.com/maps/api/js?key=${o}&libraries=places`,document.querySelector("head"),"google-maps"),_.current=!0);const N=A.useMemo(()=>DA(($,F)=>{jl.current&&jl.current.getPlacePredictions($,F)},200),[]);A.useEffect(()=>{let $=!0;if(!jl.current&&window.google&&(jl.current=new window.google.maps.places.AutocompleteService),!jl.current)return;if(y===""){C(m?[m]:[]);return}return N({input:y,types:s?[s]:[]},U=>{if($){let G=[];m&&(G=[m]),U&&(G=[...G,...U]);const Y=G.filter((Z,fe,pe)=>fe===pe.findIndex(ge=>ge.place_id===Z.place_id));C(Y)}}),()=>{$=!1}},[m,y,N,s]);const D=A.useCallback($=>{const q=($?[$,...S]:S).filter((U,G,Y)=>G===Y.findIndex(Z=>Z.place_id===U.place_id));C(q),g($),E($?$.description:"")},[S,C,g,E]),L=$=>{b($)},M=["name","apiKey","resultIcon","highlightMatches","variant","staticLabel","staticLabelProps","margin"],R=$=>v.jsx(j.TextField,{margin:p,variant:a,...$,...er({...t},M),label:l?void 0:n,hiddenLabel:l,error:!!O}),P=$=>typeof $=="string"?$:$.description,B=($,F)=>v.jsx(_q,{listItemProps:$,option:F,resultIcon:r,highlightMatches:i},F.place_id);A.useEffect(()=>{const $=F=>{F.key==="Enter"&&S.length>0&&D(S[0])};return window.addEventListener("keydown",$),()=>{window.removeEventListener("keydown",$)}},[S,D]);const z=v.jsx(j.Autocomplete,{id:`${e}-loc`,"data-testid":"location-autocomplete",getOptionLabel:P,filterOptions:$=>$,options:S,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:m,onChange:($,F)=>D(F),onInputChange:($,F)=>L(F),disabled:t.disabled,renderOption:B,renderInput:R});return v.jsxs(j.FormControl,{margin:p,fullWidth:!0,children:[(l||f)&&v.jsx(j.Typography,{...u,children:n}),f?v.jsx(j.Typography,{children:m==null?void 0:m.description}):v.jsxs(j.Box,{children:[z,v.jsx(tr,{name:e,id:`${e}-err`})]})]})},PA=t=>{const{name:e,radios:n=[],label:r=Mn(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l=!1,margin:u="dense",onChange:f,staticLabelProps:p={fontSize:".9em",color:"#808080"}}=t;i==="top"&&(o==="bottom"||o==="top")&&console.error(`RadioGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const[m,g,y]=qt.useField({name:e}),{setValue:b}=y,{value:S}=m,{error:C}=g,_=["radioProps","labelPlacement"],T=["disableRedLabelOnError","disableLabel","sameButtonColor","labelPlacement","focused","margin","fullWidth","labelAlignment"],w=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",E=n.map((L,M)=>{const R=i==="top"&&(o==="start"||o==="end"),P=L.sublabel?v.jsxs("div",{children:[v.jsx("p",{style:{margin:0},children:L.label}),v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:L.sublabel})]}):L.label;return v.jsx(j.FormControlLabel,{sx:{alignItems:R?"flex-start":"center"},value:M.toString(),control:v.jsx(j.Radio,{id:`${L.value}-rb`,color:t.sameButtonColor?t.sameButtonColor:L.color??"default",...er({...L},_)}),label:v.jsx("div",{style:{marginTop:R?"10px":0},children:P}),labelPlacement:o,disabled:L.disabled||a,style:{textAlign:w()}},`rb-${M}-${r}`)}),O=()=>{const L=n.find(M=>M.value===m.value);return v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...p,children:r}),N(L)]})},N=L=>v.jsxs(j.Box,{children:[v.jsx(j.Typography,{children:L==null?void 0:L.label}),(L==null?void 0:L.sublabel)&&v.jsx(j.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:L.sublabel})]}),D=L=>{b(L.target.value),f&&f(L.target.value)};return l?O():v.jsxs(j.FormControl,{focused:t.focused,margin:u,fullWidth:t.fullWidth,error:!!C,children:[v.jsx(j.FormLabel,{htmlFor:e,required:s,disabled:t.disableLabel,children:r}),v.jsx(j.RadioGroup,{id:e,value:S??"",...er({...t},T),onChange:D,children:E}),v.jsx(tr,{name:e,id:`${e}-err`})]})},Mq=t=>{const{name:e,label:n=Mn(e),min:r=0,max:o=100,step:i=1,readOnly:s,staticLabelProps:a={fontSize:".9em",color:"#808080"}}=t,l=qt.useField(e),{value:u}=l[0],{setValue:f}=l[2],p=["label"];return s?(()=>{let g;return Array.isArray(u)?g=s==="percent"?`${100*(u[0]??0)/o}% - ${100*(u[1]??0)/o}%`:`${u[0]??0} - ${u[1]??0}`:g=s==="percent"?`${100*(u??0)/o}%`:`${u??0}`,v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...a,children:n}),v.jsx(j.Typography,{children:g})]})})():v.jsxs(j.FormControl,{fullWidth:!0,children:[v.jsx(j.Typography,{gutterBottom:!0,color:"textSecondary",children:n}),v.jsx(j.Slider,{...er({...t},p),id:t.name,value:u??0,onChange:(g,y)=>{f(y)},min:r,max:o,step:i})]})},Oq=t=>{const{name:e,options:n=[],label:r=Mn(e),selectedOptionIcon:o=void 0,staticLabel:i=!1,staticLabelProps:s={fontSize:".9em",color:"#808080"},variant:a="outlined",readOnly:l=!1,margin:u="dense",required:f}=t,[p,m,g]=qt.useField({name:e}),{setValue:y}=g,{value:b}=p,{error:S}=m,C=A.useCallback(()=>{let R="";for(let P=0;P<n.length;P++)JSON.stringify(n[P].value)===JSON.stringify(b)&&(R=P.toString());return R},[n,b]),_=A.useCallback(()=>{const R=[],P=b.toString().split(",");for(const B of P)for(let z=0;z<n.length;z++)n[z].value===B&&R.push(z);return R},[n,b]);A.useEffect(()=>{E(t.multiple?_():C())},[n,t.multiple,b,_,C]);const T=(R,P)=>t.multiple?!!b.toString().split(",").find(B=>B===JSON.stringify(R.value)):P===n.findIndex(B=>b===B.value),[w,E]=A.useState(t.multiple?_:C),O=n.map((R,P)=>{const B=o&&T(R,P)?o:void 0;return v.jsxs(j.MenuItem,{id:`select-${e}-option-${R.value}`,value:P,disabled:R.disabled,children:[o&&v.jsx(j.ListItemIcon,{children:B}),R.label]},P.toString())}),N=R=>{if(t.multiple){const P=[];R.target.value.forEach(B=>{n[B].value&&P.push(n[B].value)}),y(P.join(","))}else y(n[R.target.value].value);E(R.target.value)},D=["name","options",i?"label":"","required","selectedOptionIcon","variant","staticLabel","staticLabelProps"],L=()=>u6(n,b,t.multiple),M=t.renderValue??L;return v.jsxs(j.FormControl,{fullWidth:!0,variant:a,error:!!S,margin:u,required:f,children:[i||l?v.jsx(j.Typography,{...s,children:r}):v.jsx(j.InputLabel,{id:`${e}-select-label`,children:r}),l?v.jsx(j.Typography,{children:L()}):v.jsxs(j.Box,{children:[v.jsx(j.Select,{id:`${e}-sel`,labelId:`${e}-select-label`,label:i?void 0:r,...er({...t},D),name:e,value:w,fullWidth:!0,onChange:R=>N(R),displayEmpty:i,renderValue:M,children:O}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},Rq=t=>{const{name:e,label:n=Mn(e),labelPlacement:r="end",readOnly:o,staticLabelProps:i={fontSize:".9em",color:"#808080"},onChange:s,color:a="primary",chipColor:l,activeValue:u=!0,inactiveValue:f=!1}=t,[p,,m]=qt.useField({name:e}),{setValue:g}=m,{value:y}=p;y===void 0&&console.error(`Please set an initial value for ${e}`);const b=["labelPlacement","chipColor","activeValue","inactiveValue"],S=C=>{if(typeof C!="boolean")return String(C);switch(o){case"YES_NO":return C===u?"Yes":"No";case"ON_OFF":return C===u?"On":"Off";default:return C===u?"True":"False"}};return o?v.jsxs(j.Box,{children:[v.jsx(j.Typography,{...i,children:n}),v.jsx(j.Typography,{children:S(y)})]}):v.jsxs(j.Box,{bgcolor:l??"inherit",sx:l?{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"32px",padding:"2px 0px 2px 12px"}:{},children:[v.jsx(j.FormControlLabel,{label:n,sx:{"& .MuiFormControlLabel-label":{color:a}},labelPlacement:r,control:v.jsx(j.Switch,{...er({...t},b),id:e,...p,onChange:C=>{if(typeof u=="string"&&typeof f=="string"){const _=C.target.checked?u:f;g(_),s&&s(_)}else g(C.target.checked),s&&s(C.target.checked)},checked:y===u})}),v.jsx(tr,{name:e,id:`${e}-err`})]})},Aq=Fe([v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),Iq=Fe(v.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),Dq=Fe(v.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate"),Pq=Fe(v.jsx("path",{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"}),"Bookmarks"),Nq=Fe(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Lq=Fe(v.jsx("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist"),jq=Fe(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$q=Fe(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),Fq=Fe(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),NA=Fe(v.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),mT=Fe(v.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),Bq=Fe(v.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),zq=Fe(v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Vq=Fe(v.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),Hq=Fe(v.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),Wq=Fe(v.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),qq=Fe(v.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),Uq=Fe(v.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"}),"FormatBold"),Kq=Fe(v.jsx("path",{d:"M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5z"}),"FormatClear"),Yq=Fe(v.jsx("path",{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12M5.21 10 10 5.21 14.79 10zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5M2 20h20v4H2z"}),"FormatColorFill"),Gq=Fe(v.jsx("path",{d:"M11 17h10v-2H11zm-8-5 4 4V8zm0 9h18v-2H3zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z"}),"FormatIndentDecrease"),Jq=Fe(v.jsx("path",{d:"M3 21h18v-2H3zM3 8v8l4-4zm8 9h10v-2H11zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z"}),"FormatIndentIncrease"),Zq=Fe(v.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),Xq=Fe(v.jsx("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted"),Qq=Fe(v.jsx("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"}),"FormatListNumbered"),e8=Fe(v.jsx("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}),"FormatQuote"),t8=Fe(v.jsx("path",{d:"M9 4v3h5v12h3V7h5V4zm-6 8h3v7h3v-7h3V9H3z"}),"FormatSize"),n8=Fe(v.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"}),"FormatUnderlined"),r8=Fe(v.jsx("path",{d:"M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2zm8 0h4v4h-4zM1.27 1.27 0 2.55l2 2V20c0 1.1.9 2 2 2h15.46l2 2 1.27-1.27zM10 12.55 11.45 14H10zm-6-6L5.45 8H4zM8 20H4v-4h4zm0-6H4v-4h3.45l.55.55zm6 6h-4v-4h3.45l.55.54zm2 0v-1.46L17.46 20z"}),"GridOff"),o8=Fe(v.jsx("path",{fillRule:"evenodd",d:"M4 11h16v2H4z"}),"HorizontalRule"),i8=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),s8=Fe(v.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),LA=Fe(v.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),jA=Fe(v.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),yf=Fe(v.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),a8=Fe(v.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),l8=Fe(v.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),c8=Fe(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),u8=Fe(v.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),d8=Fe(v.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),f8=Fe(v.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),p8=Fe(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"RemoveCircle"),h8=Fe(v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined"),m8=Fe(v.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),g8=Fe(v.jsx("path",{d:"M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"}),"StrikethroughS"),y8=Fe(v.jsx("path",{d:"M22 18h-2v1h3v1h-4v-2c0-.55.45-1 1-1h2v-1h-3v-1h3c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M5.88 18h2.66l3.4-5.42h.12l3.4 5.42h2.66l-4.65-7.27L17.81 4h-2.68l-3.07 4.99h-.12L8.85 4H6.19l4.32 6.73z"}),"Subscript"),b8=Fe(v.jsx("path",{d:"M22 7h-2v1h3v1h-4V7c0-.55.45-1 1-1h2V5h-3V4h3c.55 0 1 .45 1 1v1c0 .55-.45 1-1 1M5.88 20h2.66l3.4-5.42h.12l3.4 5.42h2.66l-4.65-7.27L17.81 6h-2.68l-3.07 4.99h-.12L8.85 6H6.19l4.32 6.73z"}),"Superscript"),v8=Fe(v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),x8=t=>{const{onSearch:e,initialValue:n="",lazySearch:r=!1}=t,[o,i]=J.useState(n),s=f=>{i(f.target.value),r||e(f.target.value)},a=f=>{f.key==="Enter"&&l()},l=()=>{e(o)},u=()=>{i(""),e("")};return v.jsx(j.TextField,{type:"text",placeholder:"Search...",value:o,onChange:s,onKeyDown:a,className:"search-bar",size:"small",fullWidth:!0,slotProps:{input:{startAdornment:v.jsx(j.InputAdornment,{position:"start",children:v.jsx(j.IconButton,{"data-testid":"search-button",style:{marginLeft:-10},onClick:l,children:v.jsx(h8,{})})}),endAdornment:o&&v.jsx(j.IconButton,{style:{marginRight:-10},"aria-label":"clear search","data-testid":"clear-search",onClick:u,children:v.jsx($q,{})})}}})};function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(null,arguments)}function rt(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function Ut({props:t,name:e}){return r9({props:t,name:e,defaultTheme:Rp,themeId:ru})}const S8=["localeText"],bf=A.createContext(null);process.env.NODE_ENV!=="production"&&(bf.displayName="MuiPickersAdapterContext");const Gv=function(e){const{localeText:n}=e,r=rt(e,S8),{utils:o,localeText:i}=A.useContext(bf)??{utils:void 0,localeText:void 0},s=Ut({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,g=A.useMemo(()=>ne({},m,i,n),[m,i,n]),y=A.useMemo(()=>{if(!l)return o||null;const C=new l({locale:p,formats:u,instance:f});if(!C.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
105
+ `));return C},[l,p,u,f,o]),b=A.useMemo(()=>y?{minDate:y.date("1900-01-01T00:00:00.000"),maxDate:y.date("2099-12-31T00:00:00.000")}:null,[y]),S=A.useMemo(()=>({utils:y,defaultDates:b,localeText:g}),[b,y,g]);return v.jsx(bf.Provider,{value:S,children:a})};process.env.NODE_ENV!=="production"&&(Gv.propTypes={adapterLocale:c.any,children:c.node,dateAdapter:c.func,dateFormats:c.shape({dayOfMonth:c.string,dayOfMonthFull:c.string,fullDate:c.string,fullTime:c.string,fullTime12h:c.string,fullTime24h:c.string,hours12h:c.string,hours24h:c.string,keyboardDate:c.string,keyboardDateTime:c.string,keyboardDateTime12h:c.string,keyboardDateTime24h:c.string,meridiem:c.string,minutes:c.string,month:c.string,monthShort:c.string,normalDate:c.string,normalDateWithWeekday:c.string,seconds:c.string,shortDate:c.string,weekday:c.string,weekdayShort:c.string,year:c.string}),dateLibInstance:c.any,localeText:c.object});var Kd={exports:{}},C8=Kd.exports,gT;function w8(){return gT||(gT=1,function(t,e){(function(n,r){t.exports=r()})(C8,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",f="week",p="month",m="quarter",g="year",y="date",b="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var $=["th","st","nd","rd"],F=z%100;return"["+z+($[(F-20)%10]||$[F]||$[0])+"]"}},T=function(z,$,F){var q=String(z);return!q||q.length>=$?z:""+Array($+1-q.length).join(F)+z},w={s:T,z:function(z){var $=-z.utcOffset(),F=Math.abs($),q=Math.floor(F/60),U=F%60;return($<=0?"+":"-")+T(q,2,"0")+":"+T(U,2,"0")},m:function z($,F){if($.date()<F.date())return-z(F,$);var q=12*(F.year()-$.year())+(F.month()-$.month()),U=$.clone().add(q,p),G=F-U<0,Y=$.clone().add(q+(G?-1:1),p);return+(-(q+(F-U)/(G?U-Y:Y-U))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:p,y:g,w:f,d:u,D:y,h:l,m:a,s,ms:i,Q:m}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},E="en",O={};O[E]=_;var N="$isDayjsObject",D=function(z){return z instanceof P||!(!z||!z[N])},L=function z($,F,q){var U;if(!$)return E;if(typeof $=="string"){var G=$.toLowerCase();O[G]&&(U=G),F&&(O[G]=F,U=G);var Y=$.split("-");if(!U&&Y.length>1)return z(Y[0])}else{var Z=$.name;O[Z]=$,U=Z}return!q&&U&&(E=U),U||!q&&E},M=function(z,$){if(D(z))return z.clone();var F=typeof $=="object"?$:{};return F.date=z,F.args=arguments,new P(F)},R=w;R.l=L,R.i=D,R.w=function(z,$){return M(z,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var P=function(){function z(F){this.$L=L(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[N]=!0}var $=z.prototype;return $.parse=function(F){this.$d=function(q){var U=q.date,G=q.utc;if(U===null)return new Date(NaN);if(R.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var Y=U.match(S);if(Y){var Z=Y[2]-1||0,fe=(Y[7]||"0").substring(0,3);return G?new Date(Date.UTC(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,fe)):new Date(Y[1],Z,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,fe)}}return new Date(U)}(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return R},$.isValid=function(){return this.$d.toString()!==b},$.isSame=function(F,q){var U=M(F);return this.startOf(q)<=U&&U<=this.endOf(q)},$.isAfter=function(F,q){return M(F)<this.startOf(q)},$.isBefore=function(F,q){return this.endOf(q)<M(F)},$.$g=function(F,q,U){return R.u(F)?this[q]:this.set(U,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,q){var U=this,G=!!R.u(q)||q,Y=R.p(F),Z=function(W,ee){var ce=R.w(U.$u?Date.UTC(U.$y,ee,W):new Date(U.$y,ee,W),U);return G?ce:ce.endOf(u)},fe=function(W,ee){return R.w(U.toDate()[W].apply(U.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ee)),U)},pe=this.$W,ge=this.$M,re=this.$D,he="set"+(this.$u?"UTC":"");switch(Y){case g:return G?Z(1,0):Z(31,11);case p:return G?Z(1,ge):Z(0,ge+1);case f:var le=this.$locale().weekStart||0,X=(pe<le?pe+7:pe)-le;return Z(G?re-X:re+(6-X),ge);case u:case y:return fe(he+"Hours",0);case l:return fe(he+"Minutes",1);case a:return fe(he+"Seconds",2);case s:return fe(he+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,q){var U,G=R.p(F),Y="set"+(this.$u?"UTC":""),Z=(U={},U[u]=Y+"Date",U[y]=Y+"Date",U[p]=Y+"Month",U[g]=Y+"FullYear",U[l]=Y+"Hours",U[a]=Y+"Minutes",U[s]=Y+"Seconds",U[i]=Y+"Milliseconds",U)[G],fe=G===u?this.$D+(q-this.$W):q;if(G===p||G===g){var pe=this.clone().set(y,1);pe.$d[Z](fe),pe.init(),this.$d=pe.set(y,Math.min(this.$D,pe.daysInMonth())).$d}else Z&&this.$d[Z](fe);return this.init(),this},$.set=function(F,q){return this.clone().$set(F,q)},$.get=function(F){return this[R.p(F)]()},$.add=function(F,q){var U,G=this;F=Number(F);var Y=R.p(q),Z=function(ge){var re=M(G);return R.w(re.date(re.date()+Math.round(ge*F)),G)};if(Y===p)return this.set(p,this.$M+F);if(Y===g)return this.set(g,this.$y+F);if(Y===u)return Z(1);if(Y===f)return Z(7);var fe=(U={},U[a]=r,U[l]=o,U[s]=n,U)[Y]||1,pe=this.$d.getTime()+F*fe;return R.w(pe,this)},$.subtract=function(F,q){return this.add(-1*F,q)},$.format=function(F){var q=this,U=this.$locale();if(!this.isValid())return U.invalidDate||b;var G=F||"YYYY-MM-DDTHH:mm:ssZ",Y=R.z(this),Z=this.$H,fe=this.$m,pe=this.$M,ge=U.weekdays,re=U.months,he=U.meridiem,le=function(ee,ce,te,se){return ee&&(ee[ce]||ee(q,G))||te[ce].slice(0,se)},X=function(ee){return R.s(Z%12||12,ee,"0")},W=he||function(ee,ce,te){var se=ee<12?"AM":"PM";return te?se.toLowerCase():se};return G.replace(C,function(ee,ce){return ce||function(te){switch(te){case"YY":return String(q.$y).slice(-2);case"YYYY":return R.s(q.$y,4,"0");case"M":return pe+1;case"MM":return R.s(pe+1,2,"0");case"MMM":return le(U.monthsShort,pe,re,3);case"MMMM":return le(re,pe);case"D":return q.$D;case"DD":return R.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return le(U.weekdaysMin,q.$W,ge,2);case"ddd":return le(U.weekdaysShort,q.$W,ge,3);case"dddd":return ge[q.$W];case"H":return String(Z);case"HH":return R.s(Z,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return W(Z,fe,!0);case"A":return W(Z,fe,!1);case"m":return String(fe);case"mm":return R.s(fe,2,"0");case"s":return String(q.$s);case"ss":return R.s(q.$s,2,"0");case"SSS":return R.s(q.$ms,3,"0");case"Z":return Y}return null}(ee)||Y.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,q,U){var G,Y=this,Z=R.p(q),fe=M(F),pe=(fe.utcOffset()-this.utcOffset())*r,ge=this-fe,re=function(){return R.m(Y,fe)};switch(Z){case g:G=re()/12;break;case p:G=re();break;case m:G=re()/3;break;case f:G=(ge-pe)/6048e5;break;case u:G=(ge-pe)/864e5;break;case l:G=ge/o;break;case a:G=ge/r;break;case s:G=ge/n;break;default:G=ge}return U?G:R.a(G)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return O[this.$L]},$.locale=function(F,q){if(!F)return this.$L;var U=this.clone(),G=L(F,q,!0);return G&&(U.$L=G),U},$.clone=function(){return R.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},z}(),B=P.prototype;return M.prototype=B,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",p],["$y",g],["$D",y]].forEach(function(z){B[z[1]]=function($){return this.$g($,z[0],z[1])}}),M.extend=function(z,$){return z.$i||(z($,P,M),z.$i=!0),M},M.locale=L,M.isDayjs=D,M.unix=function(z){return M(1e3*z)},M.en=O[E],M.Ls=O,M.p={},M})}(Kd)),Kd.exports}var T8=w8();const pn=ir(T8);var Yd={exports:{}},_8=Yd.exports,yT;function k8(){return yT||(yT=1,function(t,e){(function(n,r){t.exports=r()})(_8,function(){var n="week",r="year";return function(o,i,s){var a=i.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(u),p=s(this).endOf(n);if(f.isBefore(p))return 1}var m=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})}(Yd)),Yd.exports}var E8=k8();const M8=ir(E8);var Gd={exports:{}},O8=Gd.exports,bT;function R8(){return bT||(bT=1,function(t,e){(function(n,r){t.exports=r()})(O8,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(S){return(S=+S)+(S>68?1900:2e3)},f=function(S){return function(C){this[S]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var _=C.match(/([+-]|\d\d)/g),T=60*_[1]+(+_[2]||0);return T===0?0:_[0]==="+"?-T:T}(S)}],m=function(S){var C=l[S];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(S,C){var _,T=l.meridiem;if(T){for(var w=1;w<=24;w+=1)if(S.indexOf(T(w,0,C))>-1){_=w>12;break}}else _=S===(C?"pm":"PM");return _},y={A:[a,function(S){this.afternoon=g(S,!1)}],a:[a,function(S){this.afternoon=g(S,!0)}],Q:[o,function(S){this.month=3*(S-1)+1}],S:[o,function(S){this.milliseconds=100*+S}],SS:[i,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[a,function(S){var C=l.ordinal,_=S.match(/\d+/);if(this.day=_[0],C)for(var T=1;T<=31;T+=1)C(T).replace(/\[|\]/g,"")===S&&(this.day=T)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[a,function(S){var C=m("months"),_=(m("monthsShort")||C.map(function(T){return T.slice(0,3)})).indexOf(S)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[a,function(S){var C=m("months").indexOf(S)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(S){this.year=u(S)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function b(S){var C,_;C=S,_=l&&l.formats;for(var T=(S=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,R,P){var B=P&&P.toUpperCase();return R||_[P]||n[P]||_[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,$,F){return $||F.slice(1)})})).match(r),w=T.length,E=0;E<w;E+=1){var O=T[E],N=y[O],D=N&&N[0],L=N&&N[1];T[E]=L?{regex:D,parser:L}:O.replace(/^\[|\]$/g,"")}return function(M){for(var R={},P=0,B=0;P<w;P+=1){var z=T[P];if(typeof z=="string")B+=z.length;else{var $=z.regex,F=z.parser,q=M.slice(B),U=$.exec(q)[0];F.call(R,U),M=M.replace(U,"")}}return function(G){var Y=G.afternoon;if(Y!==void 0){var Z=G.hours;Y?Z<12&&(G.hours+=12):Z===12&&(G.hours=0),delete G.afternoon}}(R),R}}return function(S,C,_){_.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(u=S.parseTwoDigitYear);var T=C.prototype,w=T.parse;T.parse=function(E){var O=E.date,N=E.utc,D=E.args;this.$u=N;var L=D[1];if(typeof L=="string"){var M=D[2]===!0,R=D[3]===!0,P=M||R,B=D[2];R&&(B=D[2]),l=this.$locale(),!M&&B&&(l=_.Ls[B]),this.$d=function(q,U,G,Y){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*q);var Z=b(U)(q),fe=Z.year,pe=Z.month,ge=Z.day,re=Z.hours,he=Z.minutes,le=Z.seconds,X=Z.milliseconds,W=Z.zone,ee=Z.week,ce=new Date,te=ge||(fe||pe?1:ce.getDate()),se=fe||ce.getFullYear(),ue=0;fe&&!pe||(ue=pe>0?pe-1:ce.getMonth());var ye,Te=re||0,Se=he||0,Me=le||0,Ne=X||0;return W?new Date(Date.UTC(se,ue,te,Te,Se,Me,Ne+60*W.offset*1e3)):G?new Date(Date.UTC(se,ue,te,Te,Se,Me,Ne)):(ye=new Date(se,ue,te,Te,Se,Me,Ne),ee&&(ye=Y(ye).week(ee).toDate()),ye)}catch{return new Date("")}}(O,L,N,_),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),P&&O!=this.format(L)&&(this.$d=new Date("")),l={}}else if(L instanceof Array)for(var z=L.length,$=1;$<=z;$+=1){D[1]=L[$-1];var F=_.apply(this,D);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}$===z&&(this.$d=new Date(""))}else w.call(this,E)}}})}(Gd)),Gd.exports}var A8=R8();const I8=ir(A8);var Jd={exports:{}},D8=Jd.exports,vT;function P8(){return vT||(vT=1,function(t,e){(function(n,r){t.exports=r()})(D8,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var s=o.prototype,a=s.format;i.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,y,b){var S=b&&b.toUpperCase();return y||m[b]||n[b]||m[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,_,T){return _||T.slice(1)})})}(l,u===void 0?{}:u);return a.call(this,f)}}})}(Jd)),Jd.exports}var N8=P8();const L8=ir(N8);var Zd={exports:{}},j8=Zd.exports,xT;function $8(){return xT||(xT=1,function(t,e){(function(n,r){t.exports=r()})(j8,function(){return function(n,r,o){r.prototype.isBetween=function(i,s,a,l){var u=o(i),f=o(s),p=(l=l||"()")[0]==="(",m=l[1]===")";return(p?this.isAfter(u,a):!this.isBefore(u,a))&&(m?this.isBefore(f,a):!this.isAfter(f,a))||(p?this.isBefore(u,a):!this.isAfter(u,a))&&(m?this.isAfter(f,a):!this.isBefore(f,a))}}})}(Zd)),Zd.exports}var F8=$8();const B8=ir(F8);var Xd={exports:{}},z8=Xd.exports,ST;function V8(){return ST||(ST=1,function(t,e){(function(n,r){t.exports=r()})(z8,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}});return i.bind(this)(f)}}})}(Xd)),Xd.exports}var H8=V8();const W8=ir(H8),CT=new Set;function $A(t,e="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(t)?t.join(`
106
106
  `):t;CT.has(n)||(CT.add(n),e==="error"?console.error(n):console.warn(n))}pn.extend(L8);pn.extend(M8);pn.extend(B8);pn.extend(W8);const q8={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},U8={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},og=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
107
107
  `),wT=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
108
108
  `),K8=(t,e)=>e?(...n)=>t(...n).locale(e):t;class Y8{constructor({locale:e,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=q8,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof pn.utc<"u",this.hasTimezonePlugin=()=>typeof pn.tz<"u",this.isSame=(r,o,i)=>{const s=this.setTimezone(o,this.getTimezone(r));return r.format(i)===s.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return pn.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=pn.tz.guess();return o!=="UTC"?pn.tz(r,o):pn(r)}return pn(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(og);return pn.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(og);if(!this.hasTimezonePlugin())throw new Error(wT);const i=r!==void 0&&!r.endsWith("Z");return pn(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=pn.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(process.env.NODE_ENV!=="production"&&$A(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>pn(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const i=(o=r.$x)==null?void 0:o.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(og);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(wT)}return pn.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,u)=>l||u.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,a,l)=>{const u=l&&l.toUpperCase();return a||o[l]||i(o[u])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,i])=>r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let s=0,a=o;const l=[];for(;a<i;){const u=Math.floor(s/7);l[u]=l[u]||[],l[u].push(a),a=this.addDays(a,1),s+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),s=this.endOfYear(o),a=[];let l=i;for(;this.isBefore(l,s);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=K8(pn,e),this.locale=e,this.formats=ne({},U8,n),pn.extend(I8)}getDayOfWeek(e){return e.day()+1}}function yd(t){return parseInt(t,10)||0}const G8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function J8(t){for(const e in t)return!1;return!0}function TT(t){return J8(t)||t.outerHeightStyle===0&&!t.overflowing}const FA=A.forwardRef(function(e,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=e,{current:u}=A.useRef(a!=null),f=A.useRef(null),p=Et(n,f),m=A.useRef(null),g=A.useRef(null),y=A.useCallback(()=>{const T=f.current,w=g.current;if(!T||!w)return;const O=ci(T).getComputedStyle(T);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=O.width,w.value=T.value||e.placeholder||"x",w.value.slice(-1)===`
109
- `&&(w.value+=" ");const N=O.boxSizing,D=yd(O.paddingBottom)+yd(O.paddingTop),L=yd(O.borderBottomWidth)+yd(O.borderTopWidth),M=w.scrollHeight;w.value="x";const R=w.scrollHeight;let P=M;i&&(P=Math.max(Number(i)*R,P)),o&&(P=Math.min(Number(o)*R,P)),P=Math.max(P,R);const z=P+(N==="border-box"?D+L:0),F=Math.abs(P-M)<=1;return{outerHeightStyle:z,overflowing:F}},[o,i,e.placeholder]),b=$e(()=>{const T=f.current,w=y();if(!T||!w||TT(w))return!1;const E=w.outerHeightStyle;return m.current!=null&&m.current!==E}),S=A.useCallback(()=>{const T=f.current,w=y();if(!T||!w||TT(w))return;const E=w.outerHeightStyle;m.current!==E&&(m.current=E,T.style.height=`${E}px`),T.style.overflow=w.overflowing?"hidden":""},[y]),C=A.useRef(-1);An(()=>{const T=JR(S),w=f==null?void 0:f.current;if(!w)return;const E=ci(w);E.addEventListener("resize",T);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{b()&&(O.unobserve(w),cancelAnimationFrame(C.current),S(),C.current=requestAnimationFrame(()=>{O.observe(w)}))}),O.observe(w)),()=>{T.clear(),cancelAnimationFrame(C.current),E.removeEventListener("resize",T),O&&O.disconnect()}},[y,S,b]),An(()=>{S()});const _=T=>{u||S(),r&&r(T)};return v.jsxs(A.Fragment,{children:[v.jsx("textarea",{value:a,onChange:_,ref:p,rows:i,style:s,...l}),v.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...G8.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(FA.propTypes={className:c.string,maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),onChange:c.func,placeholder:c.string,style:c.object,value:c.oneOfType([c.arrayOf(c.string),c.number,c.string])});function Rc(t){return typeof t=="string"}function fl({props:t,states:e,muiFormControl:n}){return e.reduce((r,o)=>(r[o]=t[o],n&&typeof t[o]>"u"&&(r[o]=n[o]),r),{})}const iu=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(iu.displayName="FormControlContext");function po(){return A.useContext(iu)}function _T(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function vf(t,e=!1){return t&&(_T(t.value)&&t.value!==""||e&&_T(t.defaultValue)&&t.defaultValue!=="")}function Z8(t){return t.startAdornment}function X8(t){return Ye("MuiInputBase",t)}const Xa=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var kT;const Ip=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Re(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},Dp=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Q8=t=>{const{classes:e,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:f,readOnly:p,size:m,startAdornment:g,type:y}=t,b={root:["root",`color${Re(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",m&&m!=="medium"&&`size${Re(m)}`,f&&"multiline",g&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Ke(b,X8,e)},Pp=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ip})(It(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Xa.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Np=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dp})(It(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.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] + .${Xa.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Xa.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ET=Q9({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Lp=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,color:l,components:u={},componentsProps:f={},defaultValue:p,disabled:m,disableInjectingGlobalStyles:g,endAdornment:y,error:b,fullWidth:S=!1,id:C,inputComponent:_="input",inputProps:T={},inputRef:w,margin:E,maxRows:O,minRows:N,multiline:D=!1,name:L,onBlur:M,onChange:R,onClick:P,onFocus:z,onKeyDown:F,onKeyUp:$,placeholder:B,readOnly:q,renderSuffix:K,rows:G,size:Y,slotProps:Z={},slots:ge={},startAdornment:he,type:oe="text",value:Q,...fe}=r,ce=T.value!=null?T.value:Q,{current:ae}=A.useRef(ce!=null),W=A.useRef(),te=A.useCallback(dt=>{process.env.NODE_ENV!=="production"&&dt&&dt.nodeName!=="INPUT"&&!dt.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
110
- `))},[]),ue=Et(W,w,T.ref,te),[ee,se]=A.useState(!1),de=po();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(de)return de.registerEffect()},[de]);const ye=fl({props:r,muiFormControl:de,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=de?de.focused:ee,A.useEffect(()=>{!de&&m&&ee&&(se(!1),M&&M())},[de,m,ee,M]);const Te=de&&de.onFilled,Se=de&&de.onEmpty,Me=A.useCallback(dt=>{vf(dt)?Te&&Te():Se&&Se()},[Te,Se]);An(()=>{ae&&Me({value:ce})},[ce,Me,ae]);const Ne=dt=>{z&&z(dt),T.onFocus&&T.onFocus(dt),de&&de.onFocus?de.onFocus(dt):se(!0)},Ve=dt=>{M&&M(dt),T.onBlur&&T.onBlur(dt),de&&de.onBlur?de.onBlur(dt):se(!1)},Ge=(dt,...In)=>{if(!ae){const Vt=dt.target||W.current;if(Vt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Ao(1));Me({value:Vt.value})}T.onChange&&T.onChange(dt,...In),R&&R(dt,...In)};A.useEffect(()=>{Me(W.current)},[]);const Ie=dt=>{W.current&&dt.currentTarget===dt.target&&W.current.focus(),P&&P(dt)};let st=_,xt=T;D&&st==="input"&&(G?(process.env.NODE_ENV!=="production"&&(N||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),xt={type:void 0,minRows:G,maxRows:G,...xt}):xt={type:void 0,maxRows:O,minRows:N,...xt},st=FA);const Gt=dt=>{Me(dt.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};A.useEffect(()=>{de&&de.setAdornedStart(!!he)},[de,he]);const bn={...r,color:ye.color||"primary",disabled:ye.disabled,endAdornment:y,error:ye.error,focused:ye.focused,formControl:de,fullWidth:S,hiddenLabel:ye.hiddenLabel,multiline:D,size:ye.size,startAdornment:he,type:oe},nn=Q8(bn),Dt=ge.root||u.Root||Pp,wn=Z.root||f.root||{},Fn=ge.input||u.Input||Np;return xt={...xt,...Z.input??f.input},v.jsxs(A.Fragment,{children:[!g&&typeof ET=="function"&&(kT||(kT=v.jsx(ET,{}))),v.jsxs(Dt,{...wn,ref:n,onClick:Ie,...fe,...!Rc(Dt)&&{ownerState:{...bn,...wn.ownerState}},className:Pe(nn.root,wn.className,a,q&&"MuiInputBase-readOnly"),children:[he,v.jsx(iu.Provider,{value:null,children:v.jsx(Fn,{"aria-invalid":ye.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:ye.disabled,id:C,onAnimationStart:Gt,name:L,placeholder:B,readOnly:q,required:ye.required,rows:G,value:ce,onKeyDown:F,onKeyUp:$,type:oe,...xt,...!Rc(Fn)&&{as:st,ownerState:{...bn,...xt.ownerState}},ref:ue,className:Pe(nn.input,xt.className,q&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ge,onFocus:Ne})}),y,K?K({...ye,startAdornment:he}):null]})]})});process.env.NODE_ENV!=="production"&&(Lp.propTypes={"aria-describedby":c.string,autoComplete:c.string,autoFocus:c.bool,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableInjectingGlobalStyles:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:bp,inputProps:c.object,inputRef:gn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClick:c.func,onFocus:c.func,onInvalid:c.func,onKeyDown:c.func,onKeyUp:c.func,placeholder:c.string,readOnly:c.bool,renderSuffix:c.func,required:c.bool,rows:c.oneOfType([c.number,c.string]),size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});function eU(t){return typeof t.main=="string"}function tU(t,e=[]){if(!eU(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Hn(t=[]){return([,e])=>e&&tU(e,t)}function nU(t){return Ye("MuiInput",t)}const $l={...Xa,...We("MuiInput",["root","underline","input"])},rU=t=>{const{classes:e,disableUnderline:n}=t,o=Ke({root:["root",!n&&"underline"],input:["input"]},nU,e);return{...e,...o}},oU=be(Pp,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Ip(t,e),!n.disableUnderline&&e.underline]}})(It(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.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:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$l.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$l.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$l.disabled}, .${$l.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$l.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),iU=be(Np,{name:"MuiInput",slot:"Input",overridesResolver:Dp})({}),jp=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:u=!1,slotProps:f,slots:p={},type:m="text",...g}=r,y=rU(r),S={root:{ownerState:{disableUnderline:o}}},C=f??s?qn(f??s,S):S,_=p.root??i.Root??oU,T=p.input??i.Input??iU;return v.jsx(Lp,{slots:{root:_,input:T},slotProps:C,fullWidth:a,inputComponent:l,multiline:u,ref:n,type:m,...g,classes:y})});process.env.NODE_ENV!=="production"&&(jp.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});jp.muiName="Input";function sU(t){return Ye("MuiFilledInput",t)}const gs={...Xa,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},aU=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=t,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Re(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},u=Ke(l,sU,e);return{...e,...u}},lU=be(Pp,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Ip(t,e),!n.disableUnderline&&e.underline]}})(It(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${gs.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${gs.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${gs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gs.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gs.disabled}, .${gs.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${gs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.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:a})=>s.multiline&&a==="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}}]}})),cU=be(Np,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dp})(It(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.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:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),$p=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:m={},type:g="text",...y}=r,b={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:f,type:g},S=aU(r),C={root:{ownerState:b},input:{ownerState:b}},_=p??s?qn(C,p??s):C,T=m.root??i.Root??lU,w=m.input??i.Input??cU;return v.jsx(Lp,{slots:{root:T,input:w},slotProps:_,fullWidth:a,inputComponent:u,multiline:f,ref:n,type:g,...y,classes:S})});process.env.NODE_ENV!=="production"&&($p.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});$p.muiName="Input";var MT;const uU=be("fieldset",{shouldForwardProp:uo})({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%"}),dU=be("legend",{shouldForwardProp:uo})(It(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function BA(t){const{children:e,classes:n,className:r,label:o,notched:i,...s}=t,a=o!=null&&o!=="",l={...t,notched:i,withLabel:a};return v.jsx(uU,{"aria-hidden":!0,className:r,ownerState:l,...s,children:v.jsx(dU,{ownerState:l,children:a?v.jsx("span",{children:o}):MT||(MT=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(BA.propTypes={children:c.node,classes:c.object,className:c.string,label:c.node,notched:c.bool.isRequired,style:c.object});function fU(t){return Ye("MuiOutlinedInput",t)}const xo={...Xa,...We("MuiOutlinedInput",["root","notchedOutline","input"])},pU=t=>{const{classes:e}=t,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},fU,e);return{...e,...r}},hU=be(Pp,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ip})(It(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${xo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${xo.focused} .${xo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{[`&.${xo.focused} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{[`&.${xo.error} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${xo.disabled} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).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"}}]}})),mU=be(BA,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(It(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),gU=be(Np,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dp})(It(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.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:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Fp=A.forwardRef(function(e,n){var r;const o=St({props:e,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:u=!1,notched:f,slots:p={},type:m="text",...g}=o,y=pU(o),b=po(),S=fl({props:o,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:b,fullWidth:s,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:m},_=p.root??i.Root??hU,T=p.input??i.Input??gU;return v.jsx(Lp,{slots:{root:_,input:T},renderSuffix:w=>v.jsx(mU,{ownerState:C,className:y.notchedOutline,label:l!=null&&l!==""&&S.required?r||(r=v.jsxs(A.Fragment,{children:[l," ","*"]})):l,notched:typeof f<"u"?f:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:s,inputComponent:a,multiline:u,ref:n,type:m,...g,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Fp.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),defaultValue:c.any,disabled:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,notched:c.bool,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});Fp.muiName="Input";function yU(t){return Ye("MuiFormLabel",t)}const cc=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bU=t=>{const{classes:e,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=t,l={root:["root",`color${Re(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ke(l,yU,e)},vU=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(It(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{[`&.${cc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${cc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${cc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),xU=be("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(It(({theme:t})=>({[`&.${cc.error}`]:{color:(t.vars||t).palette.error.main}}))),zA=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:u,filled:f,focused:p,required:m,...g}=r,y=po(),b=fl({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),S={...r,color:b.color||"primary",component:a,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},C=bU(S);return v.jsxs(vU,{as:a,ownerState:S,className:Pe(C.root,i),ref:n,...g,children:[o,b.required&&v.jsxs(xU,{ownerState:S,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(zA.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function SU(t){return Ye("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CU=t=>{const{classes:e,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=t,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Re(r)}`,s],asterisk:[a&&"asterisk"]},u=Ke(l,SU,e);return{...e,...u}},wU=be(zA,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${cc.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(It(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.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:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.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:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="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:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Jv=A.forwardRef(function(e,n){const r=St({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...u}=r,f=po();let p=s;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const m=fl({props:r,muiFormControl:f,states:["size","variant","required","focused"]}),g={...r,disableAnimation:o,formControl:f,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused},y=CU(g);return v.jsx(wU,{"data-shrink":p,ref:n,className:Pe(y.root,l),...u,ownerState:g,classes:y})});process.env.NODE_ENV!=="production"&&(Jv.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),disableAnimation:c.bool,disabled:c.bool,error:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,shrink:c.bool,size:c.oneOfType([c.oneOf(["normal","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function TU(t){return Ye("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _U=t=>{const{classes:e,margin:n,fullWidth:r}=t,o={root:["root",n!=="none"&&`margin${Re(n)}`,r&&"fullWidth"]};return Ke(o,TU,e)},kU=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Re(n.margin)}`],n.fullWidth&&e.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%"}}]}),Zv=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:m=!1,margin:g="none",required:y=!1,size:b="medium",variant:S="outlined",...C}=r,_={...r,color:s,component:a,disabled:l,error:u,fullWidth:p,hiddenLabel:m,margin:g,required:y,size:b,variant:S},T=_U(_),[w,E]=A.useState(()=>{let B=!1;return o&&A.Children.forEach(o,q=>{if(!ac(q,["Input","Select"]))return;const K=ac(q,["Select"])?q.props.input:q;K&&Z8(K.props)&&(B=!0)}),B}),[O,N]=A.useState(()=>{let B=!1;return o&&A.Children.forEach(o,q=>{ac(q,["Input","Select"])&&(vf(q.props,!0)||vf(q.props.inputProps,!0))&&(B=!0)}),B}),[D,L]=A.useState(!1);l&&D&&L(!1);const M=f!==void 0&&!l?f:D;let R;const P=A.useRef(!1);process.env.NODE_ENV!=="production"&&(R=()=>(P.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
111
- `)),P.current=!0,()=>{P.current=!1}));const z=A.useCallback(()=>{N(!0)},[]),F=A.useCallback(()=>{N(!1)},[]),$=A.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:s,disabled:l,error:u,filled:O,focused:M,fullWidth:p,hiddenLabel:m,size:b,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:F,onFilled:z,registerEffect:R,required:y,variant:S}),[w,s,l,u,O,M,p,m,R,F,z,y,b,S]);return v.jsx(iu.Provider,{value:$,children:v.jsx(kU,{as:a,ownerState:_,className:Pe(T.root,i),ref:n,...C,children:o})})});process.env.NODE_ENV!=="production"&&(Zv.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,focused:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,margin:c.oneOf(["dense","none","normal"]),required:c.bool,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function EU(t){return Ye("MuiFormHelperText",t)}const OT=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var RT;const MU=t=>{const{classes:e,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=t,u={root:["root",o&&"disabled",i&&"error",r&&`size${Re(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Ke(u,EU,e)},OU=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${Re(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(It(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${OT.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${OT.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Xv=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p",disabled:a,error:l,filled:u,focused:f,margin:p,required:m,variant:g,...y}=r,b=po(),S=fl({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:s,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete C.ownerState;const _=MU(C);return v.jsx(OU,{as:s,className:Pe(_.root,i),ref:n,...y,ownerState:C,children:o===" "?RT||(RT=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(Xv.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});const Ha=A.createContext({});process.env.NODE_ENV!=="production"&&(Ha.displayName="ListContext");function RU(t){return Ye("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const AU=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return Ke({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},RU,e)},IU=be("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Qv=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u,...f}=r,p=A.useMemo(()=>({dense:a}),[a]),m={...r,component:s,dense:a,disablePadding:l},g=AU(m);return v.jsx(Ha.Provider,{value:p,children:v.jsxs(IU,{as:s,className:Pe(g.root,i),ref:n,ownerState:m,...f,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Qv.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function ig(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function AT(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function VA(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.startsWith(e.keys.join(""))}function Fl(t,e,n,r,o,i){let s=!1,a=o(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!VA(a,i)||l)a=o(t,a,n);else return a.focus(),!0}return!1}const HA=A.forwardRef(function(e,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...m}=e,g=A.useRef(null),y=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});An(()=>{o&&g.current.focus()},[o]),A.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:w})=>{const E=!g.current.style.width;if(T.clientHeight<g.current.clientHeight&&E){const O=`${QR(ci(T))}px`;g.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const b=T=>{const w=g.current,E=T.key;if(T.ctrlKey||T.metaKey||T.altKey){f&&f(T);return}const N=Un(w).activeElement;if(E==="ArrowDown")T.preventDefault(),Fl(w,N,u,l,ig);else if(E==="ArrowUp")T.preventDefault(),Fl(w,N,u,l,AT);else if(E==="Home")T.preventDefault(),Fl(w,null,u,l,ig);else if(E==="End")T.preventDefault(),Fl(w,null,u,l,AT);else if(E.length===1){const D=y.current,L=E.toLowerCase(),M=performance.now();D.keys.length>0&&(M-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&L!==D.keys[0]&&(D.repeating=!1)),D.lastTime=M,D.keys.push(L);const R=N&&!D.repeating&&VA(N,D);D.previousKeyMatched&&(R||Fl(w,N,!1,l,ig,D))?T.preventDefault():D.previousKeyMatched=!1}f&&f(T)},S=Et(g,n);let C=-1;A.Children.forEach(s,(T,w)=>{if(!A.isValidElement(T)){C===w&&(C+=1,C>=s.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&zs.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
112
- `)),T.props.disabled||(p==="selectedMenu"&&T.props.selected||C===-1)&&(C=w),C===w&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1))});const _=A.Children.map(s,(T,w)=>{if(w===C){const E={};return i&&(E.autoFocus=!0),T.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),A.cloneElement(T,E)}return T});return v.jsx(Qv,{role:"menu",ref:S,className:a,onKeyDown:b,tabIndex:o?0:-1,...m,children:_})});process.env.NODE_ENV!=="production"&&(HA.propTypes={autoFocus:c.bool,autoFocusItem:c.bool,children:c.node,className:c.string,disabledItemsFocusable:c.bool,disableListWrap:c.bool,onKeyDown:c.func,variant:c.oneOf(["menu","selectedMenu"])});function $0(t,e){return $0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$0(t,e)}function ex(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$0(t,e)}function DU(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function PU(t,e){t.classList?t.classList.add(e):DU(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function IT(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function NU(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=IT(t.className,e):t.setAttribute("class",IT(t.className&&t.className.baseVal||"",e))}const DT={disabled:!1};var LU=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.shape({enter:c.number,exit:c.number,appear:c.number}).isRequired]):null,jU=process.env.NODE_ENV!=="production"?c.oneOfType([c.string,c.shape({enter:c.string,exit:c.string,active:c.string}),c.shape({enter:c.string,enterDone:c.string,enterActive:c.string,exit:c.string,exitDone:c.string,exitActive:c.string})]):null;const xf=J.createContext(null);var WA=function(e){return e.scrollTop},Xl="unmounted",Cs="exited",ws="entering",Ia="entered",F0="exiting",Xr=function(t){ex(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Cs,i.appearStatus=ws):l=Ia:r.unmountOnExit||r.mountOnEnter?l=Xl:l=Cs,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Xl?{status:Cs}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ws&&s!==Ia&&(i=ws):(s===ws||s===Ia)&&(i=F0)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ws){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Es.findDOMNode(this);s&&WA(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cs&&this.setState({status:Xl})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Es.findDOMNode(this),a],u=l[0],f=l[1],p=this.getTimeouts(),m=a?p.appear:p.enter;if(!o&&!s||DT.disabled){this.safeSetState({status:Ia},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:ws},function(){i.props.onEntering(u,f),i.onTransitionEnd(m,function(){i.safeSetState({status:Ia},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Es.findDOMNode(this);if(!i||DT.disabled){this.safeSetState({status:Cs},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:F0},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Cs},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Es.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Xl)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=rt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(xf.Provider,{value:null},typeof s=="function"?s(o,a):J.cloneElement(J.Children.only(s),a))},e}(J.Component);Xr.contextType=xf;Xr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:c.shape({current:typeof Element>"u"?c.any:function(t,e,n,r,o,i){var s=t[e];return c.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:c.oneOfType([c.func.isRequired,c.element.isRequired]).isRequired,in:c.bool,mountOnEnter:c.bool,unmountOnExit:c.bool,appear:c.bool,enter:c.bool,exit:c.bool,timeout:function(e){var n=LU;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[e].concat(o))},addEndListener:c.func,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}:{};function wa(){}Xr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wa,onEntering:wa,onEntered:wa,onExit:wa,onExiting:wa,onExited:wa};Xr.UNMOUNTED=Xl;Xr.EXITED=Cs;Xr.ENTERING=ws;Xr.ENTERED=Ia;Xr.EXITING=F0;var $U=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return PU(e,r)})},sg=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return NU(e,r)})},tx=function(t){ex(e,t);function e(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1],m=p?"appear":"enter";r.addClass(f,m,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,u=typeof l=="string",f=u&&l?l+"-":"",p=u?""+f+a:l[a],m=u?p+"-active":l[a+"Active"],g=u?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:g}},r}var n=e.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;i==="appear"&&s==="done"&&u&&(a+=" "+u),s==="active"&&o&&WA(o),a&&(this.appliedClasses[i][s]=a,$U(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,l=s.active,u=s.done;this.appliedClasses[i]={},a&&sg(o,a),l&&sg(o,l),u&&sg(o,u)},n.render=function(){var o=this.props;o.classNames;var i=rt(o,["classNames"]);return J.createElement(Xr,ne({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(J.Component);tx.defaultProps={classNames:""};tx.propTypes=process.env.NODE_ENV!=="production"?ne({},Xr.propTypes,{classNames:jU,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}):{};function FU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nx(t,e){var n=function(i){return e&&J.isValidElement(i)?e(i):i},r=Object.create(null);return t&&J.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function BU(t,e){t=t||{},e=e||{};function n(f){return f in e?e[f]:t[f]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in e){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];a[r[l][s]]=n(u)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Ms(t,e,n){return n[e]!=null?n[e]:t.props[e]}function zU(t,e){return nx(t.children,function(n){return J.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Ms(n,"appear",t),enter:Ms(n,"enter",t),exit:Ms(n,"exit",t)})})}function VU(t,e,n){var r=nx(t.children),o=BU(e,r);return Object.keys(o).forEach(function(i){var s=o[i];if(J.isValidElement(s)){var a=i in e,l=i in r,u=e[i],f=J.isValidElement(u)&&!u.props.in;l&&(!a||f)?o[i]=J.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ms(s,"exit",t),enter:Ms(s,"enter",t)}):!l&&a&&!f?o[i]=J.cloneElement(s,{in:!1}):l&&a&&J.isValidElement(u)&&(o[i]=J.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Ms(s,"exit",t),enter:Ms(s,"enter",t)}))}}),o}var HU=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},WU={component:"div",childFactory:function(e){return e}},su=function(t){ex(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=i.handleExited.bind(FU(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?zU(o,a):VU(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=nx(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=ne({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=rt(o,["component","childFactory"]),l=this.state.contextValue,u=HU(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?J.createElement(xf.Provider,{value:l},u):J.createElement(xf.Provider,{value:l},J.createElement(i,a,u))},e}(J.Component);su.propTypes=process.env.NODE_ENV!=="production"?{component:c.any,children:c.node,appear:c.bool,enter:c.bool,exit:c.bool,childFactory:c.func}:{};su.defaultProps=WU;const qA=t=>t.scrollTop;function Sf(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}function B0(t){return`scale(${t}, ${t**2})`}const qU={entering:{opacity:1,transform:B0(1)},entered:{opacity:1,transform:"none"}},ag=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ac=A.forwardRef(function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:f,onExit:p,onExited:m,onExiting:g,style:y,timeout:b="auto",TransitionComponent:S=Xr,...C}=e,_=XR(),T=A.useRef(),w=es(),E=A.useRef(null),O=Et(E,Qc(i),n),N=$=>B=>{if($){const q=E.current;B===void 0?$(q):$(q,B)}},D=N(f),L=N(($,B)=>{qA($);const{duration:q,delay:K,easing:G}=Sf({style:y,timeout:b,easing:s},{mode:"enter"});let Y;b==="auto"?(Y=w.transitions.getAutoHeightDuration($.clientHeight),T.current=Y):Y=q,$.style.transition=[w.transitions.create("opacity",{duration:Y,delay:K}),w.transitions.create("transform",{duration:ag?Y:Y*.666,delay:K,easing:G})].join(","),l&&l($,B)}),M=N(u),R=N(g),P=N($=>{const{duration:B,delay:q,easing:K}=Sf({style:y,timeout:b,easing:s},{mode:"exit"});let G;b==="auto"?(G=w.transitions.getAutoHeightDuration($.clientHeight),T.current=G):G=B,$.style.transition=[w.transitions.create("opacity",{duration:G,delay:q}),w.transitions.create("transform",{duration:ag?G:G*.666,delay:ag?q:q||G*.333,easing:K})].join(","),$.style.opacity=0,$.style.transform=B0(.75),p&&p($)}),z=N(m),F=$=>{b==="auto"&&_.start(T.current||0,$),r&&r(E.current,$)};return v.jsx(S,{appear:o,in:a,nodeRef:E,onEnter:L,onEntered:M,onEntering:D,onExit:P,onExited:z,onExiting:R,addEndListener:F,timeout:b==="auto"?null:b,...C,children:($,{ownerState:B,...q})=>A.cloneElement(i,{style:{opacity:0,transform:B0(.75),visibility:$==="exited"&&!a?"hidden":void 0,...qU[$],...y,...i.props.style},ref:O,...q})})});process.env.NODE_ENV!=="production"&&(Ac.propTypes={addEndListener:c.func,appear:c.bool,children:Xc.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});Ac&&(Ac.muiSupportAuto=!0);function UU(t){const e=Un(t);return e.body===t?ci(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function uc(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function PT(t){return parseInt(ci(t).getComputedStyle(t).paddingRight,10)||0}function KU(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function NT(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,s=>{const a=!i.includes(s),l=!KU(s);a&&l&&uc(s,o)})}function lg(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function YU(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(UU(r)){const s=QR(ci(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${PT(r)+s}px`;const a=Un(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${PT(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Un(r).body;else{const s=r.parentElement,a=ci(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function GU(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class JU{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&uc(e.modalRef,!1);const o=GU(n);NT(n,e.mount,e.modalRef,o,!0);const i=lg(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=lg(this.containers,i=>i.modals.includes(e)),o=this.containers[r];o.restore||(o.restore=YU(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=lg(this.containers,s=>s.modals.includes(e)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&uc(e.modalRef,n),NT(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&uc(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const ZU=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function XU(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function QU(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function e7(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||QU(t))}function t7(t){const e=[],n=[];return Array.from(t.querySelectorAll(ZU)).forEach((r,o)=>{const i=XU(r);i===-1||!e7(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function n7(){return!0}function Ic(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=t7,isEnabled:s=n7,open:a}=t,l=A.useRef(!1),u=A.useRef(null),f=A.useRef(null),p=A.useRef(null),m=A.useRef(null),g=A.useRef(!1),y=A.useRef(null),b=Et(Qc(e),y),S=A.useRef(null);A.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),A.useEffect(()=>{if(!a||!y.current)return;const T=Un(y.current);return y.current.contains(T.activeElement)||(y.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
113
- `)),y.current.setAttribute("tabIndex","-1")),g.current&&y.current.focus()),()=>{o||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),A.useEffect(()=>{if(!a||!y.current)return;const T=Un(y.current),w=N=>{S.current=N,!(r||!s()||N.key!=="Tab")&&T.activeElement===y.current&&N.shiftKey&&(l.current=!0,f.current&&f.current.focus())},E=()=>{var L,M;const N=y.current;if(N===null)return;if(!T.hasFocus()||!s()||l.current){l.current=!1;return}if(N.contains(T.activeElement)||r&&T.activeElement!==u.current&&T.activeElement!==f.current)return;if(T.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!g.current)return;let D=[];if((T.activeElement===u.current||T.activeElement===f.current)&&(D=i(y.current)),D.length>0){const R=!!((L=S.current)!=null&&L.shiftKey&&((M=S.current)==null?void 0:M.key)==="Tab"),P=D[0],z=D[D.length-1];typeof P!="string"&&typeof z!="string"&&(R?z.focus():P.focus())}else N.focus()};T.addEventListener("focusin",E),T.addEventListener("keydown",w,!0);const O=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(O),T.removeEventListener("focusin",E),T.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const C=T=>{p.current===null&&(p.current=T.relatedTarget),g.current=!0,m.current=T.target;const w=e.props.onFocus;w&&w(T)},_=T=>{p.current===null&&(p.current=T.relatedTarget),g.current=!0};return v.jsxs(A.Fragment,{children:[v.jsx("div",{tabIndex:a?0:-1,onFocus:_,ref:u,"data-testid":"sentinelStart"}),A.cloneElement(e,{ref:b,onFocus:C}),v.jsx("div",{tabIndex:a?0:-1,onFocus:_,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ic.propTypes={children:Xc,disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableRestoreFocus:c.bool,getTabbable:c.func,isEnabled:c.func,open:c.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ic.propTypes=YR(Ic.propTypes));function r7(t){return typeof t=="function"?t():t}const Dc=A.forwardRef(function(e,n){const{children:r,container:o,disablePortal:i=!1}=e,[s,a]=A.useState(null),l=Et(A.isValidElement(r)?Qc(r):null,n);if(An(()=>{i||a(r7(o)||document.body)},[o,i]),An(()=>{if(s&&!i)return I0(n,s),()=>{I0(n,null)}},[n,s,i]),i){if(A.isValidElement(r)){const u={ref:l};return A.cloneElement(r,u)}return r}return s&&tV.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Dc.propTypes={children:c.node,container:c.oneOfType([li,c.func]),disablePortal:c.bool});process.env.NODE_ENV!=="production"&&(Dc.propTypes=YR(Dc.propTypes));function Bt(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:p={[t]:void 0},...m}=i,g=f[t]||r,y=vp(p[t],o),{props:{component:b,...S},internalRef:C}=sA({className:n,...l,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:y}),_=Et(C,y==null?void 0:y.ref,e.ref),T=t==="root"?b||u:b,w=rA(g,{...t==="root"&&!u&&!f[t]&&s,...t!=="root"&&!f[t]&&s,...S,...T&&!a&&{as:T},...T&&a&&{component:T},ref:_},o);return[g,w]}const o7={entering:{opacity:1},entered:{opacity:1}},Yi=A.forwardRef(function(e,n){const r=es(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:g,onExited:y,onExiting:b,style:S,timeout:C=o,TransitionComponent:_=Xr,...T}=e,w=A.useRef(null),E=Et(w,Qc(a),n),O=F=>$=>{if(F){const B=w.current;$===void 0?F(B):F(B,$)}},N=O(m),D=O((F,$)=>{qA(F);const B=Sf({style:S,timeout:C,easing:l},{mode:"enter"});F.style.webkitTransition=r.transitions.create("opacity",B),F.style.transition=r.transitions.create("opacity",B),f&&f(F,$)}),L=O(p),M=O(b),R=O(F=>{const $=Sf({style:S,timeout:C,easing:l},{mode:"exit"});F.style.webkitTransition=r.transitions.create("opacity",$),F.style.transition=r.transitions.create("opacity",$),g&&g(F)}),P=O(y),z=F=>{i&&i(w.current,F)};return v.jsx(_,{appear:s,in:u,nodeRef:w,onEnter:D,onEntered:L,onEntering:N,onExit:R,onExited:P,onExiting:M,addEndListener:z,timeout:C,...T,children:(F,{ownerState:$,...B})=>A.cloneElement(a,{style:{opacity:0,visibility:F==="exited"&&!u?"hidden":void 0,...o7[F],...S,...a.props.style},ref:E,...B})})});process.env.NODE_ENV!=="production"&&(Yi.propTypes={addEndListener:c.func,appear:c.bool,children:Xc.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function i7(t){return Ye("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const s7=t=>{const{classes:e,invisible:n}=t;return Ke({root:["root",n&&"invisible"]},i7,e)},a7=be("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.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"}}]}),rx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:f={},slotProps:p={},slots:m={},TransitionComponent:g,transitionDuration:y,...b}=r,S={...r,component:s,invisible:a},C=s7(S),_={transition:g,root:u.Root,...m},T={...f,...p},w={slots:_,slotProps:T},[E,O]=Bt("root",{elementType:a7,externalForwardedProps:w,className:Pe(C.root,i),ownerState:S}),[N,D]=Bt("transition",{elementType:Yi,externalForwardedProps:w,ownerState:S});return v.jsx(N,{in:l,timeout:y,...b,...D,children:v.jsx(E,{"aria-hidden":!0,...O,classes:C,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(rx.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),invisible:c.bool,open:c.bool.isRequired,slotProps:c.shape({root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function l7(t){return typeof t=="function"?t():t}function c7(t){return t?t.props.hasOwnProperty("in"):!1}const LT=()=>{},bd=new JU;function u7(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:u,rootRef:f}=t,p=A.useRef({}),m=A.useRef(null),g=A.useRef(null),y=Et(g,f),[b,S]=A.useState(!u),C=c7(a);let _=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(_=!1);const T=()=>Un(m.current),w=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),E=()=>{bd.mount(w(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},O=$e(()=>{const $=l7(e)||T().body;bd.add(w(),$),g.current&&E()}),N=()=>bd.isTopModal(w()),D=$e($=>{m.current=$,$&&(u&&N()?E():g.current&&uc(g.current,_))}),L=A.useCallback(()=>{bd.remove(w(),_)},[_]);A.useEffect(()=>()=>{L()},[L]),A.useEffect(()=>{u?O():(!C||!o)&&L()},[u,L,C,o,O]);const M=$=>B=>{var q;(q=$.onKeyDown)==null||q.call($,B),!(B.key!=="Escape"||B.which===229||!N())&&(n||(B.stopPropagation(),l&&l(B,"escapeKeyDown")))},R=$=>B=>{var q;(q=$.onClick)==null||q.call($,B),B.target===B.currentTarget&&l&&l(B,"backdropClick")};return{getRootProps:($={})=>{const B=iA(t);delete B.onTransitionEnter,delete B.onTransitionExited;const q={...B,...$};return{role:"presentation",...q,onKeyDown:M(q),ref:y}},getBackdropProps:($={})=>{const B=$;return{"aria-hidden":!0,...B,onClick:R(B),open:u}},getTransitionProps:()=>{const $=()=>{S(!1),i&&i()},B=()=>{S(!0),s&&s(),o&&L()};return{onEnter:Mw($,(a==null?void 0:a.props.onEnter)??LT),onExited:Mw(B,(a==null?void 0:a.props.onExited)??LT)}},rootRef:y,portalRef:D,isTopModal:N,exited:b,hasTransition:C}}function d7(t){return Ye("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const f7=t=>{const{open:e,exited:n,classes:r}=t;return Ke({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},d7,r)},p7=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(It(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),h7=be(rx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),ox=A.forwardRef(function(e,n){const r=St({name:"MuiModal",props:e}),{BackdropComponent:o=h7,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:u,container:f,component:p,components:m={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:_=!1,disableScrollLock:T=!1,hideBackdrop:w=!1,keepMounted:E=!1,onBackdropClick:O,onClose:N,onTransitionEnter:D,onTransitionExited:L,open:M,slotProps:R={},slots:P={},theme:z,...F}=r,$={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:_,disableScrollLock:T,hideBackdrop:w,keepMounted:E},{getRootProps:B,getBackdropProps:q,getTransitionProps:K,portalRef:G,isTopModal:Y,exited:Z,hasTransition:ge}=u7({...$,rootRef:n}),he={...$,exited:Z},oe=f7(he),Q={};if(u.props.tabIndex===void 0&&(Q.tabIndex="-1"),ge){const{onEnter:ue,onExited:ee}=K();Q.onEnter=ue,Q.onExited=ee}const fe={slots:{root:m.Root,backdrop:m.Backdrop,...P},slotProps:{...g,...R}},[ce,ae]=Bt("root",{ref:n,elementType:p7,externalForwardedProps:{...fe,...F,component:p},getSlotProps:B,ownerState:he,className:Pe(a,oe==null?void 0:oe.root,!he.open&&he.exited&&(oe==null?void 0:oe.hidden))}),[W,te]=Bt("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:fe,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:ue=>q({...ue,onClick:ee=>{O&&O(ee),ue!=null&&ue.onClick&&ue.onClick(ee)}}),className:Pe(i==null?void 0:i.className,oe==null?void 0:oe.backdrop),ownerState:he});return!E&&!M&&(!ge||Z)?null:v.jsx(Dc,{ref:G,container:f,disablePortal:C,children:v.jsxs(ce,{...ae,children:[!w&&o?v.jsx(W,{...te}):null,v.jsx(Ic,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:_,isEnabled:Y,open:M,children:A.cloneElement(u,Q)})]})})});process.env.NODE_ENV!=="production"&&(ox.propTypes={BackdropComponent:c.elementType,BackdropProps:c.object,children:Xc.isRequired,classes:c.object,className:c.string,closeAfterTransition:c.bool,component:c.elementType,components:c.shape({Backdrop:c.elementType,Root:c.elementType}),componentsProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([li,c.func]),disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableEscapeKeyDown:c.bool,disablePortal:c.bool,disableRestoreFocus:c.bool,disableScrollLock:c.bool,hideBackdrop:c.bool,keepMounted:c.bool,onBackdropClick:c.func,onClose:c.func,onTransitionEnter:c.func,onTransitionExited:c.func,open:c.bool.isRequired,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function m7(t){return Ye("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const g7=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(i,m7,o)},y7=be("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(It(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),pl=A.forwardRef(function(e,n){var g;const r=St({props:e,name:"MuiPaper"}),o=es(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...f}=r,p={...r,component:s,elevation:a,square:l,variant:u},m=g7(p);return process.env.NODE_ENV!=="production"&&o.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
114
- `)),v.jsx(y7,{as:s,ownerState:p,className:Pe(m.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ft("#fff",L0(a))}, ${Ft("#fff",L0(a))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(pl.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:pi(nA,t=>{const{elevation:e,variant:n}=t;return e>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${e}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});function b7(t){return Ye("MuiPopover",t)}We("MuiPopover",["root","paper"]);function jT(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function $T(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function FT(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Qd(t){return typeof t=="function"?t():t}const v7=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"]},b7,e)},x7=be(ox,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),UA=be(pl,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),KA=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:u,className:f,container:p,elevation:m=8,marginThreshold:g=16,open:y,PaperProps:b={},slots:S={},slotProps:C={},transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:w="auto",TransitionProps:E={},disableScrollLock:O=!1,...N}=r,D=A.useRef(),L={...r,anchorOrigin:s,anchorReference:l,elevation:m,marginThreshold:g,transformOrigin:_,TransitionComponent:T,transitionDuration:w,TransitionProps:E},M=v7(L),R=A.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const te=Qd(i),ue=te&&te.nodeType===1?te:Un(D.current).body,ee=ue.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const se=ue.getBoundingClientRect();process.env.NODE_ENV!=="test"&&se.top===0&&se.left===0&&se.right===0&&se.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
115
- `))}return{top:ee.top+jT(ee,s.vertical),left:ee.left+$T(ee,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),P=A.useCallback(te=>({vertical:jT(te,_.vertical),horizontal:$T(te,_.horizontal)}),[_.horizontal,_.vertical]),z=A.useCallback(te=>{const ue={width:te.offsetWidth,height:te.offsetHeight},ee=P(ue);if(l==="none")return{top:null,left:null,transformOrigin:FT(ee)};const se=R();let de=se.top-ee.vertical,ye=se.left-ee.horizontal;const Te=de+ue.height,Se=ye+ue.width,Me=ci(Qd(i)),Ne=Me.innerHeight-g,Ve=Me.innerWidth-g;if(g!==null&&de<g){const Ge=de-g;de-=Ge,ee.vertical+=Ge}else if(g!==null&&Te>Ne){const Ge=Te-Ne;de-=Ge,ee.vertical+=Ge}if(process.env.NODE_ENV!=="production"&&ue.height>Ne&&ue.height&&Ne&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ue.height-Ne}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
116
- `)),g!==null&&ye<g){const Ge=ye-g;ye-=Ge,ee.horizontal+=Ge}else if(Se>Ve){const Ge=Se-Ve;ye-=Ge,ee.horizontal+=Ge}return{top:`${Math.round(de)}px`,left:`${Math.round(ye)}px`,transformOrigin:FT(ee)}},[i,l,R,P,g]),[F,$]=A.useState(y),B=A.useCallback(()=>{const te=D.current;if(!te)return;const ue=z(te);ue.top!==null&&te.style.setProperty("top",ue.top),ue.left!==null&&(te.style.left=ue.left),te.style.transformOrigin=ue.transformOrigin,$(!0)},[z]);A.useEffect(()=>(O&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[i,O,B]);const q=()=>{B()},K=()=>{$(!1)};A.useEffect(()=>{y&&B()}),A.useImperativeHandle(o,()=>y?{updatePosition:()=>{B()}}:null,[y,B]),A.useEffect(()=>{if(!y)return;const te=JR(()=>{B()}),ue=ci(i);return ue.addEventListener("resize",te),()=>{te.clear(),ue.removeEventListener("resize",te)}},[i,y,B]);let G=w;const Y={slots:{transition:T,...S},slotProps:{transition:E,paper:b,...C}},[Z,ge]=Bt("transition",{elementType:Ac,externalForwardedProps:Y,ownerState:L,getSlotProps:te=>({...te,onEntering:(ue,ee)=>{var se;(se=te.onEntering)==null||se.call(te,ue,ee),q()},onExited:ue=>{var ee;(ee=te.onExited)==null||ee.call(te,ue),K()}}),additionalProps:{appear:!0,in:y}});w==="auto"&&!Z.muiSupportAuto&&(G=void 0);const he=p||(i?Un(Qd(i)).body:void 0),[oe,{slots:Q,slotProps:fe,...ce}]=Bt("root",{ref:n,elementType:x7,externalForwardedProps:{...Y,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:oq(typeof C.backdrop=="function"?C.backdrop(L):C.backdrop,{invisible:!0})},container:he,open:y},ownerState:L,className:Pe(M.root,f)}),[ae,W]=Bt("paper",{ref:D,className:M.paper,elementType:UA,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:F?void 0:{opacity:0}},ownerState:L});return v.jsx(oe,{...ce,...!Rc(oe)&&{slots:Q,slotProps:fe,disableScrollLock:O},children:v.jsx(Z,{...ge,timeout:G,children:v.jsx(ae,{...W,children:u})})})});process.env.NODE_ENV!=="production"&&(KA.propTypes={action:gn,anchorEl:pi(c.oneOfType([li,c.func]),t=>{if(t.open&&(!t.anchorReference||t.anchorReference==="anchorEl")){const e=Qd(t.anchorEl);if(e&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
109
+ `&&(w.value+=" ");const N=O.boxSizing,D=yd(O.paddingBottom)+yd(O.paddingTop),L=yd(O.borderBottomWidth)+yd(O.borderTopWidth),M=w.scrollHeight;w.value="x";const R=w.scrollHeight;let P=M;i&&(P=Math.max(Number(i)*R,P)),o&&(P=Math.min(Number(o)*R,P)),P=Math.max(P,R);const B=P+(N==="border-box"?D+L:0),z=Math.abs(P-M)<=1;return{outerHeightStyle:B,overflowing:z}},[o,i,e.placeholder]),b=$e(()=>{const T=f.current,w=y();if(!T||!w||TT(w))return!1;const E=w.outerHeightStyle;return m.current!=null&&m.current!==E}),S=A.useCallback(()=>{const T=f.current,w=y();if(!T||!w||TT(w))return;const E=w.outerHeightStyle;m.current!==E&&(m.current=E,T.style.height=`${E}px`),T.style.overflow=w.overflowing?"hidden":""},[y]),C=A.useRef(-1);An(()=>{const T=JR(S),w=f==null?void 0:f.current;if(!w)return;const E=ci(w);E.addEventListener("resize",T);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{b()&&(O.unobserve(w),cancelAnimationFrame(C.current),S(),C.current=requestAnimationFrame(()=>{O.observe(w)}))}),O.observe(w)),()=>{T.clear(),cancelAnimationFrame(C.current),E.removeEventListener("resize",T),O&&O.disconnect()}},[y,S,b]),An(()=>{S()});const _=T=>{u||S(),r&&r(T)};return v.jsxs(A.Fragment,{children:[v.jsx("textarea",{value:a,onChange:_,ref:p,rows:i,style:s,...l}),v.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:g,tabIndex:-1,style:{...G8.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(FA.propTypes={className:c.string,maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),onChange:c.func,placeholder:c.string,style:c.object,value:c.oneOfType([c.arrayOf(c.string),c.number,c.string])});function Rc(t){return typeof t=="string"}function fl({props:t,states:e,muiFormControl:n}){return e.reduce((r,o)=>(r[o]=t[o],n&&typeof t[o]>"u"&&(r[o]=n[o]),r),{})}const iu=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(iu.displayName="FormControlContext");function po(){return A.useContext(iu)}function _T(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function vf(t,e=!1){return t&&(_T(t.value)&&t.value!==""||e&&_T(t.defaultValue)&&t.defaultValue!=="")}function Z8(t){return t.startAdornment}function X8(t){return Ye("MuiInputBase",t)}const Xa=We("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var kT;const Ip=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Re(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},Dp=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Q8=t=>{const{classes:e,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:f,readOnly:p,size:m,startAdornment:g,type:y}=t,b={root:["root",`color${Re(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",m&&m!=="medium"&&`size${Re(m)}`,f&&"multiline",g&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Ke(b,X8,e)},Pp=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ip})(It(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Xa.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Np=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dp})(It(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.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] + .${Xa.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Xa.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ET=Q9({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Lp=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,color:l,components:u={},componentsProps:f={},defaultValue:p,disabled:m,disableInjectingGlobalStyles:g,endAdornment:y,error:b,fullWidth:S=!1,id:C,inputComponent:_="input",inputProps:T={},inputRef:w,margin:E,maxRows:O,minRows:N,multiline:D=!1,name:L,onBlur:M,onChange:R,onClick:P,onFocus:B,onKeyDown:z,onKeyUp:$,placeholder:F,readOnly:q,renderSuffix:U,rows:G,size:Y,slotProps:Z={},slots:fe={},startAdornment:pe,type:ge="text",value:re,...he}=r,le=T.value!=null?T.value:re,{current:X}=A.useRef(le!=null),W=A.useRef(),ee=A.useCallback(dt=>{process.env.NODE_ENV!=="production"&&dt&&dt.nodeName!=="INPUT"&&!dt.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
110
+ `))},[]),ce=Et(W,w,T.ref,ee),[te,se]=A.useState(!1),ue=po();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(ue)return ue.registerEffect()},[ue]);const ye=fl({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ue?ue.focused:te,A.useEffect(()=>{!ue&&m&&te&&(se(!1),M&&M())},[ue,m,te,M]);const Te=ue&&ue.onFilled,Se=ue&&ue.onEmpty,Me=A.useCallback(dt=>{vf(dt)?Te&&Te():Se&&Se()},[Te,Se]);An(()=>{X&&Me({value:le})},[le,Me,X]);const Ne=dt=>{B&&B(dt),T.onFocus&&T.onFocus(dt),ue&&ue.onFocus?ue.onFocus(dt):se(!0)},Ve=dt=>{M&&M(dt),T.onBlur&&T.onBlur(dt),ue&&ue.onBlur?ue.onBlur(dt):se(!1)},Ge=(dt,...In)=>{if(!X){const Vt=dt.target||W.current;if(Vt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Ao(1));Me({value:Vt.value})}T.onChange&&T.onChange(dt,...In),R&&R(dt,...In)};A.useEffect(()=>{Me(W.current)},[]);const Ie=dt=>{W.current&&dt.currentTarget===dt.target&&W.current.focus(),P&&P(dt)};let st=_,xt=T;D&&st==="input"&&(G?(process.env.NODE_ENV!=="production"&&(N||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),xt={type:void 0,minRows:G,maxRows:G,...xt}):xt={type:void 0,maxRows:O,minRows:N,...xt},st=FA);const Gt=dt=>{Me(dt.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};A.useEffect(()=>{ue&&ue.setAdornedStart(!!pe)},[ue,pe]);const bn={...r,color:ye.color||"primary",disabled:ye.disabled,endAdornment:y,error:ye.error,focused:ye.focused,formControl:ue,fullWidth:S,hiddenLabel:ye.hiddenLabel,multiline:D,size:ye.size,startAdornment:pe,type:ge},nn=Q8(bn),Dt=fe.root||u.Root||Pp,wn=Z.root||f.root||{},Fn=fe.input||u.Input||Np;return xt={...xt,...Z.input??f.input},v.jsxs(A.Fragment,{children:[!g&&typeof ET=="function"&&(kT||(kT=v.jsx(ET,{}))),v.jsxs(Dt,{...wn,ref:n,onClick:Ie,...he,...!Rc(Dt)&&{ownerState:{...bn,...wn.ownerState}},className:Pe(nn.root,wn.className,a,q&&"MuiInputBase-readOnly"),children:[pe,v.jsx(iu.Provider,{value:null,children:v.jsx(Fn,{"aria-invalid":ye.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:ye.disabled,id:C,onAnimationStart:Gt,name:L,placeholder:F,readOnly:q,required:ye.required,rows:G,value:le,onKeyDown:z,onKeyUp:$,type:ge,...xt,...!Rc(Fn)&&{as:st,ownerState:{...bn,...xt.ownerState}},ref:ce,className:Pe(nn.input,xt.className,q&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ge,onFocus:Ne})}),y,U?U({...ye,startAdornment:pe}):null]})]})});process.env.NODE_ENV!=="production"&&(Lp.propTypes={"aria-describedby":c.string,autoComplete:c.string,autoFocus:c.bool,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableInjectingGlobalStyles:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:bp,inputProps:c.object,inputRef:gn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClick:c.func,onFocus:c.func,onInvalid:c.func,onKeyDown:c.func,onKeyUp:c.func,placeholder:c.string,readOnly:c.bool,renderSuffix:c.func,required:c.bool,rows:c.oneOfType([c.number,c.string]),size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});function e7(t){return typeof t.main=="string"}function t7(t,e=[]){if(!e7(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Hn(t=[]){return([,e])=>e&&t7(e,t)}function n7(t){return Ye("MuiInput",t)}const $l={...Xa,...We("MuiInput",["root","underline","input"])},r7=t=>{const{classes:e,disableUnderline:n}=t,o=Ke({root:["root",!n&&"underline"],input:["input"]},n7,e);return{...e,...o}},o7=be(Pp,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Ip(t,e),!n.disableUnderline&&e.underline]}})(It(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.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:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$l.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$l.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$l.disabled}, .${$l.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$l.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),i7=be(Np,{name:"MuiInput",slot:"Input",overridesResolver:Dp})({}),jp=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:u=!1,slotProps:f,slots:p={},type:m="text",...g}=r,y=r7(r),S={root:{ownerState:{disableUnderline:o}}},C=f??s?qn(f??s,S):S,_=p.root??i.Root??o7,T=p.input??i.Input??i7;return v.jsx(Lp,{slots:{root:_,input:T},slotProps:C,fullWidth:a,inputComponent:l,multiline:u,ref:n,type:m,...g,classes:y})});process.env.NODE_ENV!=="production"&&(jp.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});jp.muiName="Input";function s7(t){return Ye("MuiFilledInput",t)}const gs={...Xa,...We("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},a7=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=t,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Re(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},u=Ke(l,s7,e);return{...e,...u}},l7=be(Pp,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Ip(t,e),!n.disableUnderline&&e.underline]}})(It(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${gs.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${gs.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${gs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gs.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gs.disabled}, .${gs.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${gs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.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:a})=>s.multiline&&a==="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}}]}})),c7=be(Np,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dp})(It(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.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:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),$p=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:m={},type:g="text",...y}=r,b={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:f,type:g},S=a7(r),C={root:{ownerState:b},input:{ownerState:b}},_=p??s?qn(C,p??s):C,T=m.root??i.Root??l7,w=m.input??i.Input??c7;return v.jsx(Lp,{slots:{root:T,input:w},slotProps:_,fullWidth:a,inputComponent:u,multiline:f,ref:n,type:g,...y,classes:S})});process.env.NODE_ENV!=="production"&&($p.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});$p.muiName="Input";var MT;const u7=be("fieldset",{shouldForwardProp:uo})({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%"}),d7=be("legend",{shouldForwardProp:uo})(It(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function BA(t){const{children:e,classes:n,className:r,label:o,notched:i,...s}=t,a=o!=null&&o!=="",l={...t,notched:i,withLabel:a};return v.jsx(u7,{"aria-hidden":!0,className:r,ownerState:l,...s,children:v.jsx(d7,{ownerState:l,children:a?v.jsx("span",{children:o}):MT||(MT=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(BA.propTypes={children:c.node,classes:c.object,className:c.string,label:c.node,notched:c.bool.isRequired,style:c.object});function f7(t){return Ye("MuiOutlinedInput",t)}const xo={...Xa,...We("MuiOutlinedInput",["root","notchedOutline","input"])},p7=t=>{const{classes:e}=t,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},f7,e);return{...e,...r}},h7=be(Pp,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ip})(It(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${xo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${xo.focused} .${xo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{[`&.${xo.focused} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{[`&.${xo.error} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${xo.disabled} .${xo.notchedOutline}`]:{borderColor:(t.vars||t).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"}}]}})),m7=be(BA,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(It(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),g7=be(Np,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dp})(It(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.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:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Fp=A.forwardRef(function(e,n){var r;const o=St({props:e,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:u=!1,notched:f,slots:p={},type:m="text",...g}=o,y=p7(o),b=po(),S=fl({props:o,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...o,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:b,fullWidth:s,hiddenLabel:S.hiddenLabel,multiline:u,size:S.size,type:m},_=p.root??i.Root??h7,T=p.input??i.Input??g7;return v.jsx(Lp,{slots:{root:_,input:T},renderSuffix:w=>v.jsx(m7,{ownerState:C,className:y.notchedOutline,label:l!=null&&l!==""&&S.required?r||(r=v.jsxs(A.Fragment,{children:[l," ","*"]})):l,notched:typeof f<"u"?f:!!(w.startAdornment||w.filled||w.focused)}),fullWidth:s,inputComponent:a,multiline:u,ref:n,type:m,...g,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Fp.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),defaultValue:c.any,disabled:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,notched:c.bool,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});Fp.muiName="Input";function y7(t){return Ye("MuiFormLabel",t)}const cc=We("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),b7=t=>{const{classes:e,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=t,l={root:["root",`color${Re(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return Ke(l,y7,e)},v7=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(It(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{[`&.${cc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${cc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${cc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),x7=be("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(It(({theme:t})=>({[`&.${cc.error}`]:{color:(t.vars||t).palette.error.main}}))),zA=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:u,filled:f,focused:p,required:m,...g}=r,y=po(),b=fl({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),S={...r,color:b.color||"primary",component:a,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},C=b7(S);return v.jsxs(v7,{as:a,ownerState:S,className:Pe(C.root,i),ref:n,...g,children:[o,b.required&&v.jsxs(x7,{ownerState:S,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(zA.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function S7(t){return Ye("MuiInputLabel",t)}We("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const C7=t=>{const{classes:e,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=t,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Re(r)}`,s],asterisk:[a&&"asterisk"]},u=Ke(l,S7,e);return{...e,...u}},w7=be(zA,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${cc.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(It(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.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:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.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:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="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:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Jv=A.forwardRef(function(e,n){const r=St({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...u}=r,f=po();let p=s;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const m=fl({props:r,muiFormControl:f,states:["size","variant","required","focused"]}),g={...r,disableAnimation:o,formControl:f,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused},y=C7(g);return v.jsx(w7,{"data-shrink":p,ref:n,className:Pe(y.root,l),...u,ownerState:g,classes:y})});process.env.NODE_ENV!=="production"&&(Jv.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),disableAnimation:c.bool,disabled:c.bool,error:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,shrink:c.bool,size:c.oneOfType([c.oneOf(["normal","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function T7(t){return Ye("MuiFormControl",t)}We("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _7=t=>{const{classes:e,margin:n,fullWidth:r}=t,o={root:["root",n!=="none"&&`margin${Re(n)}`,r&&"fullWidth"]};return Ke(o,T7,e)},k7=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Re(n.margin)}`],n.fullWidth&&e.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%"}}]}),Zv=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:m=!1,margin:g="none",required:y=!1,size:b="medium",variant:S="outlined",...C}=r,_={...r,color:s,component:a,disabled:l,error:u,fullWidth:p,hiddenLabel:m,margin:g,required:y,size:b,variant:S},T=_7(_),[w,E]=A.useState(()=>{let F=!1;return o&&A.Children.forEach(o,q=>{if(!ac(q,["Input","Select"]))return;const U=ac(q,["Select"])?q.props.input:q;U&&Z8(U.props)&&(F=!0)}),F}),[O,N]=A.useState(()=>{let F=!1;return o&&A.Children.forEach(o,q=>{ac(q,["Input","Select"])&&(vf(q.props,!0)||vf(q.props.inputProps,!0))&&(F=!0)}),F}),[D,L]=A.useState(!1);l&&D&&L(!1);const M=f!==void 0&&!l?f:D;let R;const P=A.useRef(!1);process.env.NODE_ENV!=="production"&&(R=()=>(P.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
111
+ `)),P.current=!0,()=>{P.current=!1}));const B=A.useCallback(()=>{N(!0)},[]),z=A.useCallback(()=>{N(!1)},[]),$=A.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:s,disabled:l,error:u,filled:O,focused:M,fullWidth:p,hiddenLabel:m,size:b,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:z,onFilled:B,registerEffect:R,required:y,variant:S}),[w,s,l,u,O,M,p,m,R,z,B,y,b,S]);return v.jsx(iu.Provider,{value:$,children:v.jsx(k7,{as:a,ownerState:_,className:Pe(T.root,i),ref:n,...C,children:o})})});process.env.NODE_ENV!=="production"&&(Zv.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,focused:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,margin:c.oneOf(["dense","none","normal"]),required:c.bool,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function E7(t){return Ye("MuiFormHelperText",t)}const OT=We("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var RT;const M7=t=>{const{classes:e,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=t,u={root:["root",o&&"disabled",i&&"error",r&&`size${Re(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Ke(u,E7,e)},O7=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${Re(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(It(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${OT.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${OT.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Xv=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p",disabled:a,error:l,filled:u,focused:f,margin:p,required:m,variant:g,...y}=r,b=po(),S=fl({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:s,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete C.ownerState;const _=M7(C);return v.jsx(O7,{as:s,className:Pe(_.root,i),ref:n,...y,ownerState:C,children:o===" "?RT||(RT=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(Xv.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});const Ha=A.createContext({});process.env.NODE_ENV!=="production"&&(Ha.displayName="ListContext");function R7(t){return Ye("MuiList",t)}We("MuiList",["root","padding","dense","subheader"]);const A7=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return Ke({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},R7,e)},I7=be("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Qv=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u,...f}=r,p=A.useMemo(()=>({dense:a}),[a]),m={...r,component:s,dense:a,disablePadding:l},g=A7(m);return v.jsx(Ha.Provider,{value:p,children:v.jsxs(I7,{as:s,className:Pe(g.root,i),ref:n,ownerState:m,...f,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Qv.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function ig(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function AT(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function VA(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.startsWith(e.keys.join(""))}function Fl(t,e,n,r,o,i){let s=!1,a=o(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!VA(a,i)||l)a=o(t,a,n);else return a.focus(),!0}return!1}const HA=A.forwardRef(function(e,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...m}=e,g=A.useRef(null),y=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});An(()=>{o&&g.current.focus()},[o]),A.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:w})=>{const E=!g.current.style.width;if(T.clientHeight<g.current.clientHeight&&E){const O=`${QR(ci(T))}px`;g.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const b=T=>{const w=g.current,E=T.key;if(T.ctrlKey||T.metaKey||T.altKey){f&&f(T);return}const N=Un(w).activeElement;if(E==="ArrowDown")T.preventDefault(),Fl(w,N,u,l,ig);else if(E==="ArrowUp")T.preventDefault(),Fl(w,N,u,l,AT);else if(E==="Home")T.preventDefault(),Fl(w,null,u,l,ig);else if(E==="End")T.preventDefault(),Fl(w,null,u,l,AT);else if(E.length===1){const D=y.current,L=E.toLowerCase(),M=performance.now();D.keys.length>0&&(M-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&L!==D.keys[0]&&(D.repeating=!1)),D.lastTime=M,D.keys.push(L);const R=N&&!D.repeating&&VA(N,D);D.previousKeyMatched&&(R||Fl(w,N,!1,l,ig,D))?T.preventDefault():D.previousKeyMatched=!1}f&&f(T)},S=Et(g,n);let C=-1;A.Children.forEach(s,(T,w)=>{if(!A.isValidElement(T)){C===w&&(C+=1,C>=s.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&zs.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
112
+ `)),T.props.disabled||(p==="selectedMenu"&&T.props.selected||C===-1)&&(C=w),C===w&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(C+=1,C>=s.length&&(C=-1))});const _=A.Children.map(s,(T,w)=>{if(w===C){const E={};return i&&(E.autoFocus=!0),T.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),A.cloneElement(T,E)}return T});return v.jsx(Qv,{role:"menu",ref:S,className:a,onKeyDown:b,tabIndex:o?0:-1,...m,children:_})});process.env.NODE_ENV!=="production"&&(HA.propTypes={autoFocus:c.bool,autoFocusItem:c.bool,children:c.node,className:c.string,disabledItemsFocusable:c.bool,disableListWrap:c.bool,onKeyDown:c.func,variant:c.oneOf(["menu","selectedMenu"])});function $0(t,e){return $0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},$0(t,e)}function ex(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$0(t,e)}function D7(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function P7(t,e){t.classList?t.classList.add(e):D7(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function IT(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function N7(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=IT(t.className,e):t.setAttribute("class",IT(t.className&&t.className.baseVal||"",e))}const DT={disabled:!1};var L7=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.shape({enter:c.number,exit:c.number,appear:c.number}).isRequired]):null,j7=process.env.NODE_ENV!=="production"?c.oneOfType([c.string,c.shape({enter:c.string,exit:c.string,active:c.string}),c.shape({enter:c.string,enterDone:c.string,enterActive:c.string,exit:c.string,exitDone:c.string,exitActive:c.string})]):null;const xf=J.createContext(null);var WA=function(e){return e.scrollTop},Xl="unmounted",Cs="exited",ws="entering",Ia="entered",F0="exiting",Xr=function(t){ex(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=Cs,i.appearStatus=ws):l=Ia:r.unmountOnExit||r.mountOnEnter?l=Xl:l=Cs,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Xl?{status:Cs}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==ws&&s!==Ia&&(i=ws):(s===ws||s===Ia)&&(i=F0)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ws){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Es.findDOMNode(this);s&&WA(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Cs&&this.setState({status:Xl})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Es.findDOMNode(this),a],u=l[0],f=l[1],p=this.getTimeouts(),m=a?p.appear:p.enter;if(!o&&!s||DT.disabled){this.safeSetState({status:Ia},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:ws},function(){i.props.onEntering(u,f),i.onTransitionEnd(m,function(){i.safeSetState({status:Ia},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Es.findDOMNode(this);if(!i||DT.disabled){this.safeSetState({status:Cs},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:F0},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Cs},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Es.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Xl)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=rt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(xf.Provider,{value:null},typeof s=="function"?s(o,a):J.cloneElement(J.Children.only(s),a))},e}(J.Component);Xr.contextType=xf;Xr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:c.shape({current:typeof Element>"u"?c.any:function(t,e,n,r,o,i){var s=t[e];return c.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:c.oneOfType([c.func.isRequired,c.element.isRequired]).isRequired,in:c.bool,mountOnEnter:c.bool,unmountOnExit:c.bool,appear:c.bool,enter:c.bool,exit:c.bool,timeout:function(e){var n=L7;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[e].concat(o))},addEndListener:c.func,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}:{};function wa(){}Xr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wa,onEntering:wa,onEntered:wa,onExit:wa,onExiting:wa,onExited:wa};Xr.UNMOUNTED=Xl;Xr.EXITED=Cs;Xr.ENTERING=ws;Xr.ENTERED=Ia;Xr.EXITING=F0;var $7=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return P7(e,r)})},sg=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return N7(e,r)})},tx=function(t){ex(e,t);function e(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1],m=p?"appear":"enter";r.addClass(f,m,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,u=typeof l=="string",f=u&&l?l+"-":"",p=u?""+f+a:l[a],m=u?p+"-active":l[a+"Active"],g=u?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:g}},r}var n=e.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;i==="appear"&&s==="done"&&u&&(a+=" "+u),s==="active"&&o&&WA(o),a&&(this.appliedClasses[i][s]=a,$7(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,l=s.active,u=s.done;this.appliedClasses[i]={},a&&sg(o,a),l&&sg(o,l),u&&sg(o,u)},n.render=function(){var o=this.props;o.classNames;var i=rt(o,["classNames"]);return J.createElement(Xr,ne({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(J.Component);tx.defaultProps={classNames:""};tx.propTypes=process.env.NODE_ENV!=="production"?ne({},Xr.propTypes,{classNames:j7,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}):{};function F7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nx(t,e){var n=function(i){return e&&J.isValidElement(i)?e(i):i},r=Object.create(null);return t&&J.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function B7(t,e){t=t||{},e=e||{};function n(f){return f in e?e[f]:t[f]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in e){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];a[r[l][s]]=n(u)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Ms(t,e,n){return n[e]!=null?n[e]:t.props[e]}function z7(t,e){return nx(t.children,function(n){return J.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Ms(n,"appear",t),enter:Ms(n,"enter",t),exit:Ms(n,"exit",t)})})}function V7(t,e,n){var r=nx(t.children),o=B7(e,r);return Object.keys(o).forEach(function(i){var s=o[i];if(J.isValidElement(s)){var a=i in e,l=i in r,u=e[i],f=J.isValidElement(u)&&!u.props.in;l&&(!a||f)?o[i]=J.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Ms(s,"exit",t),enter:Ms(s,"enter",t)}):!l&&a&&!f?o[i]=J.cloneElement(s,{in:!1}):l&&a&&J.isValidElement(u)&&(o[i]=J.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Ms(s,"exit",t),enter:Ms(s,"enter",t)}))}}),o}var H7=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},W7={component:"div",childFactory:function(e){return e}},su=function(t){ex(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=i.handleExited.bind(F7(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?z7(o,a):V7(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=nx(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=ne({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=rt(o,["component","childFactory"]),l=this.state.contextValue,u=H7(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?J.createElement(xf.Provider,{value:l},u):J.createElement(xf.Provider,{value:l},J.createElement(i,a,u))},e}(J.Component);su.propTypes=process.env.NODE_ENV!=="production"?{component:c.any,children:c.node,appear:c.bool,enter:c.bool,exit:c.bool,childFactory:c.func}:{};su.defaultProps=W7;const qA=t=>t.scrollTop;function Sf(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}function B0(t){return`scale(${t}, ${t**2})`}const q7={entering:{opacity:1,transform:B0(1)},entered:{opacity:1,transform:"none"}},ag=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ac=A.forwardRef(function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:f,onExit:p,onExited:m,onExiting:g,style:y,timeout:b="auto",TransitionComponent:S=Xr,...C}=e,_=XR(),T=A.useRef(),w=es(),E=A.useRef(null),O=Et(E,Qc(i),n),N=$=>F=>{if($){const q=E.current;F===void 0?$(q):$(q,F)}},D=N(f),L=N(($,F)=>{qA($);const{duration:q,delay:U,easing:G}=Sf({style:y,timeout:b,easing:s},{mode:"enter"});let Y;b==="auto"?(Y=w.transitions.getAutoHeightDuration($.clientHeight),T.current=Y):Y=q,$.style.transition=[w.transitions.create("opacity",{duration:Y,delay:U}),w.transitions.create("transform",{duration:ag?Y:Y*.666,delay:U,easing:G})].join(","),l&&l($,F)}),M=N(u),R=N(g),P=N($=>{const{duration:F,delay:q,easing:U}=Sf({style:y,timeout:b,easing:s},{mode:"exit"});let G;b==="auto"?(G=w.transitions.getAutoHeightDuration($.clientHeight),T.current=G):G=F,$.style.transition=[w.transitions.create("opacity",{duration:G,delay:q}),w.transitions.create("transform",{duration:ag?G:G*.666,delay:ag?q:q||G*.333,easing:U})].join(","),$.style.opacity=0,$.style.transform=B0(.75),p&&p($)}),B=N(m),z=$=>{b==="auto"&&_.start(T.current||0,$),r&&r(E.current,$)};return v.jsx(S,{appear:o,in:a,nodeRef:E,onEnter:L,onEntered:M,onEntering:D,onExit:P,onExited:B,onExiting:R,addEndListener:z,timeout:b==="auto"?null:b,...C,children:($,{ownerState:F,...q})=>A.cloneElement(i,{style:{opacity:0,transform:B0(.75),visibility:$==="exited"&&!a?"hidden":void 0,...q7[$],...y,...i.props.style},ref:O,...q})})});process.env.NODE_ENV!=="production"&&(Ac.propTypes={addEndListener:c.func,appear:c.bool,children:Xc.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});Ac&&(Ac.muiSupportAuto=!0);function U7(t){const e=Un(t);return e.body===t?ci(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function uc(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function PT(t){return parseInt(ci(t).getComputedStyle(t).paddingRight,10)||0}function K7(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function NT(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,s=>{const a=!i.includes(s),l=!K7(s);a&&l&&uc(s,o)})}function lg(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function Y7(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(U7(r)){const s=QR(ci(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${PT(r)+s}px`;const a=Un(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${PT(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Un(r).body;else{const s=r.parentElement,a=ci(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function G7(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class J7{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&uc(e.modalRef,!1);const o=G7(n);NT(n,e.mount,e.modalRef,o,!0);const i=lg(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=lg(this.containers,i=>i.modals.includes(e)),o=this.containers[r];o.restore||(o.restore=Y7(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=lg(this.containers,s=>s.modals.includes(e)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&uc(e.modalRef,n),NT(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&uc(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const Z7=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function X7(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function Q7(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function eU(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||Q7(t))}function tU(t){const e=[],n=[];return Array.from(t.querySelectorAll(Z7)).forEach((r,o)=>{const i=X7(r);i===-1||!eU(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function nU(){return!0}function Ic(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=tU,isEnabled:s=nU,open:a}=t,l=A.useRef(!1),u=A.useRef(null),f=A.useRef(null),p=A.useRef(null),m=A.useRef(null),g=A.useRef(!1),y=A.useRef(null),b=Et(Qc(e),y),S=A.useRef(null);A.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),A.useEffect(()=>{if(!a||!y.current)return;const T=Un(y.current);return y.current.contains(T.activeElement)||(y.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
113
+ `)),y.current.setAttribute("tabIndex","-1")),g.current&&y.current.focus()),()=>{o||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),A.useEffect(()=>{if(!a||!y.current)return;const T=Un(y.current),w=N=>{S.current=N,!(r||!s()||N.key!=="Tab")&&T.activeElement===y.current&&N.shiftKey&&(l.current=!0,f.current&&f.current.focus())},E=()=>{var L,M;const N=y.current;if(N===null)return;if(!T.hasFocus()||!s()||l.current){l.current=!1;return}if(N.contains(T.activeElement)||r&&T.activeElement!==u.current&&T.activeElement!==f.current)return;if(T.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!g.current)return;let D=[];if((T.activeElement===u.current||T.activeElement===f.current)&&(D=i(y.current)),D.length>0){const R=!!((L=S.current)!=null&&L.shiftKey&&((M=S.current)==null?void 0:M.key)==="Tab"),P=D[0],B=D[D.length-1];typeof P!="string"&&typeof B!="string"&&(R?B.focus():P.focus())}else N.focus()};T.addEventListener("focusin",E),T.addEventListener("keydown",w,!0);const O=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(O),T.removeEventListener("focusin",E),T.removeEventListener("keydown",w,!0)}},[n,r,o,s,a,i]);const C=T=>{p.current===null&&(p.current=T.relatedTarget),g.current=!0,m.current=T.target;const w=e.props.onFocus;w&&w(T)},_=T=>{p.current===null&&(p.current=T.relatedTarget),g.current=!0};return v.jsxs(A.Fragment,{children:[v.jsx("div",{tabIndex:a?0:-1,onFocus:_,ref:u,"data-testid":"sentinelStart"}),A.cloneElement(e,{ref:b,onFocus:C}),v.jsx("div",{tabIndex:a?0:-1,onFocus:_,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ic.propTypes={children:Xc,disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableRestoreFocus:c.bool,getTabbable:c.func,isEnabled:c.func,open:c.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ic.propTypes=YR(Ic.propTypes));function rU(t){return typeof t=="function"?t():t}const Dc=A.forwardRef(function(e,n){const{children:r,container:o,disablePortal:i=!1}=e,[s,a]=A.useState(null),l=Et(A.isValidElement(r)?Qc(r):null,n);if(An(()=>{i||a(rU(o)||document.body)},[o,i]),An(()=>{if(s&&!i)return I0(n,s),()=>{I0(n,null)}},[n,s,i]),i){if(A.isValidElement(r)){const u={ref:l};return A.cloneElement(r,u)}return r}return s&&tV.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Dc.propTypes={children:c.node,container:c.oneOfType([li,c.func]),disablePortal:c.bool});process.env.NODE_ENV!=="production"&&(Dc.propTypes=YR(Dc.propTypes));function Bt(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:p={[t]:void 0},...m}=i,g=f[t]||r,y=vp(p[t],o),{props:{component:b,...S},internalRef:C}=sA({className:n,...l,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:y}),_=Et(C,y==null?void 0:y.ref,e.ref),T=t==="root"?b||u:b,w=rA(g,{...t==="root"&&!u&&!f[t]&&s,...t!=="root"&&!f[t]&&s,...S,...T&&!a&&{as:T},...T&&a&&{component:T},ref:_},o);return[g,w]}const oU={entering:{opacity:1},entered:{opacity:1}},Yi=A.forwardRef(function(e,n){const r=es(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:g,onExited:y,onExiting:b,style:S,timeout:C=o,TransitionComponent:_=Xr,...T}=e,w=A.useRef(null),E=Et(w,Qc(a),n),O=z=>$=>{if(z){const F=w.current;$===void 0?z(F):z(F,$)}},N=O(m),D=O((z,$)=>{qA(z);const F=Sf({style:S,timeout:C,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",F),z.style.transition=r.transitions.create("opacity",F),f&&f(z,$)}),L=O(p),M=O(b),R=O(z=>{const $=Sf({style:S,timeout:C,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",$),z.style.transition=r.transitions.create("opacity",$),g&&g(z)}),P=O(y),B=z=>{i&&i(w.current,z)};return v.jsx(_,{appear:s,in:u,nodeRef:w,onEnter:D,onEntered:L,onEntering:N,onExit:R,onExited:P,onExiting:M,addEndListener:B,timeout:C,...T,children:(z,{ownerState:$,...F})=>A.cloneElement(a,{style:{opacity:0,visibility:z==="exited"&&!u?"hidden":void 0,...oU[z],...S,...a.props.style},ref:E,...F})})});process.env.NODE_ENV!=="production"&&(Yi.propTypes={addEndListener:c.func,appear:c.bool,children:Xc.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function iU(t){return Ye("MuiBackdrop",t)}We("MuiBackdrop",["root","invisible"]);const sU=t=>{const{classes:e,invisible:n}=t;return Ke({root:["root",n&&"invisible"]},iU,e)},aU=be("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.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"}}]}),rx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:f={},slotProps:p={},slots:m={},TransitionComponent:g,transitionDuration:y,...b}=r,S={...r,component:s,invisible:a},C=sU(S),_={transition:g,root:u.Root,...m},T={...f,...p},w={slots:_,slotProps:T},[E,O]=Bt("root",{elementType:aU,externalForwardedProps:w,className:Pe(C.root,i),ownerState:S}),[N,D]=Bt("transition",{elementType:Yi,externalForwardedProps:w,ownerState:S});return v.jsx(N,{in:l,timeout:y,...b,...D,children:v.jsx(E,{"aria-hidden":!0,...O,classes:C,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(rx.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),invisible:c.bool,open:c.bool.isRequired,slotProps:c.shape({root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function lU(t){return typeof t=="function"?t():t}function cU(t){return t?t.props.hasOwnProperty("in"):!1}const LT=()=>{},bd=new J7;function uU(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:u,rootRef:f}=t,p=A.useRef({}),m=A.useRef(null),g=A.useRef(null),y=Et(g,f),[b,S]=A.useState(!u),C=cU(a);let _=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(_=!1);const T=()=>Un(m.current),w=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),E=()=>{bd.mount(w(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},O=$e(()=>{const $=lU(e)||T().body;bd.add(w(),$),g.current&&E()}),N=()=>bd.isTopModal(w()),D=$e($=>{m.current=$,$&&(u&&N()?E():g.current&&uc(g.current,_))}),L=A.useCallback(()=>{bd.remove(w(),_)},[_]);A.useEffect(()=>()=>{L()},[L]),A.useEffect(()=>{u?O():(!C||!o)&&L()},[u,L,C,o,O]);const M=$=>F=>{var q;(q=$.onKeyDown)==null||q.call($,F),!(F.key!=="Escape"||F.which===229||!N())&&(n||(F.stopPropagation(),l&&l(F,"escapeKeyDown")))},R=$=>F=>{var q;(q=$.onClick)==null||q.call($,F),F.target===F.currentTarget&&l&&l(F,"backdropClick")};return{getRootProps:($={})=>{const F=iA(t);delete F.onTransitionEnter,delete F.onTransitionExited;const q={...F,...$};return{role:"presentation",...q,onKeyDown:M(q),ref:y}},getBackdropProps:($={})=>{const F=$;return{"aria-hidden":!0,...F,onClick:R(F),open:u}},getTransitionProps:()=>{const $=()=>{S(!1),i&&i()},F=()=>{S(!0),s&&s(),o&&L()};return{onEnter:Mw($,(a==null?void 0:a.props.onEnter)??LT),onExited:Mw(F,(a==null?void 0:a.props.onExited)??LT)}},rootRef:y,portalRef:D,isTopModal:N,exited:b,hasTransition:C}}function dU(t){return Ye("MuiModal",t)}We("MuiModal",["root","hidden","backdrop"]);const fU=t=>{const{open:e,exited:n,classes:r}=t;return Ke({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},dU,r)},pU=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(It(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),hU=be(rx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),ox=A.forwardRef(function(e,n){const r=St({name:"MuiModal",props:e}),{BackdropComponent:o=hU,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:u,container:f,component:p,components:m={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:S=!1,disablePortal:C=!1,disableRestoreFocus:_=!1,disableScrollLock:T=!1,hideBackdrop:w=!1,keepMounted:E=!1,onBackdropClick:O,onClose:N,onTransitionEnter:D,onTransitionExited:L,open:M,slotProps:R={},slots:P={},theme:B,...z}=r,$={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:_,disableScrollLock:T,hideBackdrop:w,keepMounted:E},{getRootProps:F,getBackdropProps:q,getTransitionProps:U,portalRef:G,isTopModal:Y,exited:Z,hasTransition:fe}=uU({...$,rootRef:n}),pe={...$,exited:Z},ge=fU(pe),re={};if(u.props.tabIndex===void 0&&(re.tabIndex="-1"),fe){const{onEnter:ce,onExited:te}=U();re.onEnter=ce,re.onExited=te}const he={slots:{root:m.Root,backdrop:m.Backdrop,...P},slotProps:{...g,...R}},[le,X]=Bt("root",{ref:n,elementType:pU,externalForwardedProps:{...he,...z,component:p},getSlotProps:F,ownerState:pe,className:Pe(a,ge==null?void 0:ge.root,!pe.open&&pe.exited&&(ge==null?void 0:ge.hidden))}),[W,ee]=Bt("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:he,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:ce=>q({...ce,onClick:te=>{O&&O(te),ce!=null&&ce.onClick&&ce.onClick(te)}}),className:Pe(i==null?void 0:i.className,ge==null?void 0:ge.backdrop),ownerState:pe});return!E&&!M&&(!fe||Z)?null:v.jsx(Dc,{ref:G,container:f,disablePortal:C,children:v.jsxs(le,{...X,children:[!w&&o?v.jsx(W,{...ee}):null,v.jsx(Ic,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:_,isEnabled:Y,open:M,children:A.cloneElement(u,re)})]})})});process.env.NODE_ENV!=="production"&&(ox.propTypes={BackdropComponent:c.elementType,BackdropProps:c.object,children:Xc.isRequired,classes:c.object,className:c.string,closeAfterTransition:c.bool,component:c.elementType,components:c.shape({Backdrop:c.elementType,Root:c.elementType}),componentsProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([li,c.func]),disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableEscapeKeyDown:c.bool,disablePortal:c.bool,disableRestoreFocus:c.bool,disableScrollLock:c.bool,hideBackdrop:c.bool,keepMounted:c.bool,onBackdropClick:c.func,onClose:c.func,onTransitionEnter:c.func,onTransitionExited:c.func,open:c.bool.isRequired,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function mU(t){return Ye("MuiPaper",t)}We("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const gU=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Ke(i,mU,o)},yU=be("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(It(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),pl=A.forwardRef(function(e,n){var g;const r=St({props:e,name:"MuiPaper"}),o=es(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...f}=r,p={...r,component:s,elevation:a,square:l,variant:u},m=gU(p);return process.env.NODE_ENV!=="production"&&o.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
114
+ `)),v.jsx(yU,{as:s,ownerState:p,className:Pe(m.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(g=o.vars.overlays)==null?void 0:g[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ft("#fff",L0(a))}, ${Ft("#fff",L0(a))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(pl.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:pi(nA,t=>{const{elevation:e,variant:n}=t;return e>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${e}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});function bU(t){return Ye("MuiPopover",t)}We("MuiPopover",["root","paper"]);function jT(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function $T(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function FT(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Qd(t){return typeof t=="function"?t():t}const vU=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"]},bU,e)},xU=be(ox,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),UA=be(pl,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),KA=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:u,className:f,container:p,elevation:m=8,marginThreshold:g=16,open:y,PaperProps:b={},slots:S={},slotProps:C={},transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:w="auto",TransitionProps:E={},disableScrollLock:O=!1,...N}=r,D=A.useRef(),L={...r,anchorOrigin:s,anchorReference:l,elevation:m,marginThreshold:g,transformOrigin:_,TransitionComponent:T,transitionDuration:w,TransitionProps:E},M=vU(L),R=A.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const ee=Qd(i),ce=ee&&ee.nodeType===1?ee:Un(D.current).body,te=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const se=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&se.top===0&&se.left===0&&se.right===0&&se.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
115
+ `))}return{top:te.top+jT(te,s.vertical),left:te.left+$T(te,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),P=A.useCallback(ee=>({vertical:jT(ee,_.vertical),horizontal:$T(ee,_.horizontal)}),[_.horizontal,_.vertical]),B=A.useCallback(ee=>{const ce={width:ee.offsetWidth,height:ee.offsetHeight},te=P(ce);if(l==="none")return{top:null,left:null,transformOrigin:FT(te)};const se=R();let ue=se.top-te.vertical,ye=se.left-te.horizontal;const Te=ue+ce.height,Se=ye+ce.width,Me=ci(Qd(i)),Ne=Me.innerHeight-g,Ve=Me.innerWidth-g;if(g!==null&&ue<g){const Ge=ue-g;ue-=Ge,te.vertical+=Ge}else if(g!==null&&Te>Ne){const Ge=Te-Ne;ue-=Ge,te.vertical+=Ge}if(process.env.NODE_ENV!=="production"&&ce.height>Ne&&ce.height&&Ne&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-Ne}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
116
+ `)),g!==null&&ye<g){const Ge=ye-g;ye-=Ge,te.horizontal+=Ge}else if(Se>Ve){const Ge=Se-Ve;ye-=Ge,te.horizontal+=Ge}return{top:`${Math.round(ue)}px`,left:`${Math.round(ye)}px`,transformOrigin:FT(te)}},[i,l,R,P,g]),[z,$]=A.useState(y),F=A.useCallback(()=>{const ee=D.current;if(!ee)return;const ce=B(ee);ce.top!==null&&ee.style.setProperty("top",ce.top),ce.left!==null&&(ee.style.left=ce.left),ee.style.transformOrigin=ce.transformOrigin,$(!0)},[B]);A.useEffect(()=>(O&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,O,F]);const q=()=>{F()},U=()=>{$(!1)};A.useEffect(()=>{y&&F()}),A.useImperativeHandle(o,()=>y?{updatePosition:()=>{F()}}:null,[y,F]),A.useEffect(()=>{if(!y)return;const ee=JR(()=>{F()}),ce=ci(i);return ce.addEventListener("resize",ee),()=>{ee.clear(),ce.removeEventListener("resize",ee)}},[i,y,F]);let G=w;const Y={slots:{transition:T,...S},slotProps:{transition:E,paper:b,...C}},[Z,fe]=Bt("transition",{elementType:Ac,externalForwardedProps:Y,ownerState:L,getSlotProps:ee=>({...ee,onEntering:(ce,te)=>{var se;(se=ee.onEntering)==null||se.call(ee,ce,te),q()},onExited:ce=>{var te;(te=ee.onExited)==null||te.call(ee,ce),U()}}),additionalProps:{appear:!0,in:y}});w==="auto"&&!Z.muiSupportAuto&&(G=void 0);const pe=p||(i?Un(Qd(i)).body:void 0),[ge,{slots:re,slotProps:he,...le}]=Bt("root",{ref:n,elementType:xU,externalForwardedProps:{...Y,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:oq(typeof C.backdrop=="function"?C.backdrop(L):C.backdrop,{invisible:!0})},container:pe,open:y},ownerState:L,className:Pe(M.root,f)}),[X,W]=Bt("paper",{ref:D,className:M.paper,elementType:UA,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:z?void 0:{opacity:0}},ownerState:L});return v.jsx(ge,{...le,...!Rc(ge)&&{slots:re,slotProps:he,disableScrollLock:O},children:v.jsx(Z,{...fe,timeout:G,children:v.jsx(X,{...W,children:u})})})});process.env.NODE_ENV!=="production"&&(KA.propTypes={action:gn,anchorEl:pi(c.oneOfType([li,c.func]),t=>{if(t.open&&(!t.anchorReference||t.anchorReference==="anchorEl")){const e=Qd(t.anchorEl);if(e&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
117
117
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${e}\` instead.`].join(`
118
- `))}return null}),anchorOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),anchorPosition:c.shape({left:c.number.isRequired,top:c.number.isRequired}),anchorReference:c.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,container:c.oneOfType([li,c.func]),disableScrollLock:c.bool,elevation:nA,marginThreshold:c.number,onClose:c.func,open:c.bool.isRequired,PaperProps:c.shape({component:bp}),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transformOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});function S7(t){return Ye("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const C7={vertical:"top",horizontal:"right"},w7={vertical:"top",horizontal:"left"},T7=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"],list:["list"]},S7,e)},_7=be(KA,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),k7=be(UA,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),E7=be(HA,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),YA=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:u,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:y,...b}={},variant:S="selectedMenu",slots:C={},slotProps:_={},...T}=r,w=co(),E={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:y,PaperProps:p,transitionDuration:g,TransitionProps:b,variant:S},O=T7(E),N=o&&!a&&f,D=A.useRef(null),L=(G,Y)=>{D.current&&D.current.adjustStyleForScrollbar(G,{direction:w?"rtl":"ltr"}),y&&y(G,Y)},M=G=>{G.key==="Tab"&&(G.preventDefault(),u&&u(G,"tabKeyDown"))};let R=-1;A.Children.map(i,(G,Y)=>{A.isValidElement(G)&&(process.env.NODE_ENV!=="production"&&zs.isFragment(G)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
119
- `)),G.props.disabled||(S==="selectedMenu"&&G.props.selected||R===-1)&&(R=Y))});const P={slots:C,slotProps:{list:l,transition:b,paper:p,..._}},z=wt({elementType:C.root,externalSlotProps:_.root,ownerState:E,className:[O.root,s]}),[F,$]=Bt("paper",{className:O.paper,elementType:k7,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:E}),[B,q]=Bt("list",{className:Pe(O.list,l.className),elementType:E7,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:G=>({...G,onKeyDown:Y=>{var Z;M(Y),(Z=G.onKeyDown)==null||Z.call(G,Y)}}),ownerState:E}),K=typeof P.slotProps.transition=="function"?P.slotProps.transition(E):P.slotProps.transition;return v.jsx(_7,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?C7:w7,slots:{root:C.root,paper:F,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:z,paper:$,backdrop:typeof _.backdrop=="function"?_.backdrop(E):_.backdrop,transition:{...K,onEntering:(...G)=>{var Y;L(...G),(Y=K==null?void 0:K.onEntering)==null||Y.call(K,...G)}}},open:f,ref:n,transitionDuration:g,ownerState:E,...T,classes:m,children:v.jsx(B,{actions:D,autoFocus:o&&(R===-1||a),autoFocusItem:N,variant:S,...q,children:i})})});process.env.NODE_ENV!=="production"&&(YA.propTypes={anchorEl:c.oneOfType([li,c.func]),autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,disableAutoFocusItem:c.bool,MenuListProps:c.object,onClose:c.func,open:c.bool.isRequired,PaperProps:c.object,PopoverClasses:c.object,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),list:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,list:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object,variant:c.oneOf(["menu","selectedMenu"])});function M7(t){return Ye("MuiNativeSelect",t)}const ix=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),O7=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Re(n)}`,i&&"iconOpen",r&&"disabled"]};return Ke(a,M7,e)},GA=be("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ix.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),R7=be(GA,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:uo,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${ix.multiple}`]:e.multiple}]}})({}),JA=be("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ix.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),A7=be(JA,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Re(n.variant)}`],n.open&&e.iconOpen]}})({}),ZA=A.forwardRef(function(e,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...u}=e,f={...e,disabled:o,variant:l,error:i},p=O7(f);return v.jsxs(A.Fragment,{children:[v.jsx(R7,{ownerState:f,className:Pe(p.select,r),disabled:o,ref:a||n,...u}),e.multiple?null:v.jsx(A7,{as:s,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(ZA.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:gn,multiple:c.bool,name:c.string,onChange:c.func,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});function XA(t){return Ye("MuiSelect",t)}const Bl=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var BT;const I7=be(GA,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Bl.select}`]:e.select},{[`&.${Bl.select}`]:e[n.variant]},{[`&.${Bl.error}`]:e.error},{[`&.${Bl.multiple}`]:e.multiple}]}})({[`&.${Bl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),D7=be(JA,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Re(n.variant)}`],n.open&&e.iconOpen]}})({}),P7=be("input",{shouldForwardProp:t=>kA(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zT(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function N7(t){return t==null||typeof t=="string"&&!t.trim()}const L7=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Re(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ke(a,XA,e)},QA=A.forwardRef(function(e,n){var Le;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:g=!1,IconComponent:y,inputRef:b,labelId:S,MenuProps:C={},multiple:_,name:T,onBlur:w,onChange:E,onClose:O,onFocus:N,onOpen:D,open:L,readOnly:M,renderValue:R,required:P,SelectDisplayProps:z={},tabIndex:F,type:$,value:B,variant:q="standard",...K}=e,[G,Y]=ui({controlled:B,default:f,name:"Select"}),[Z,ge]=ui({controlled:L,default:u,name:"Select"}),he=A.useRef(null),oe=A.useRef(null),[Q,fe]=A.useState(null),{current:ce}=A.useRef(L!=null),[ae,W]=A.useState(),te=Et(n,b),ue=A.useCallback(ke=>{oe.current=ke,ke&&fe(ke)},[]),ee=Q==null?void 0:Q.parentNode;A.useImperativeHandle(te,()=>({focus:()=>{oe.current.focus()},node:he.current,value:G}),[G]),A.useEffect(()=>{u&&Z&&Q&&!ce&&(W(s?null:ee.clientWidth),oe.current.focus())},[Q,s]),A.useEffect(()=>{i&&oe.current.focus()},[i]),A.useEffect(()=>{if(!S)return;const ke=Un(oe.current).getElementById(S);if(ke){const je=()=>{getSelection().isCollapsed&&oe.current.focus()};return ke.addEventListener("click",je),()=>{ke.removeEventListener("click",je)}}},[S]);const se=(ke,je)=>{ke?D&&D(je):O&&O(je),ce||(W(s?null:ee.clientWidth),ge(ke))},de=ke=>{ke.button===0&&(ke.preventDefault(),oe.current.focus(),se(!0,ke))},ye=ke=>{se(!1,ke)},Te=A.Children.toArray(a),Se=ke=>{const je=Te.find(qe=>qe.props.value===ke.target.value);je!==void 0&&(Y(je.props.value),E&&E(ke,je))},Me=ke=>je=>{let qe;if(je.currentTarget.hasAttribute("tabindex")){if(_){qe=Array.isArray(G)?G.slice():[];const tt=G.indexOf(ke.props.value);tt===-1?qe.push(ke.props.value):qe.splice(tt,1)}else qe=ke.props.value;if(ke.props.onClick&&ke.props.onClick(je),G!==qe&&(Y(qe),E)){const tt=je.nativeEvent||je,Ot=new tt.constructor(tt.type,tt);Object.defineProperty(Ot,"target",{writable:!0,value:{value:qe,name:T}}),E(Ot,ke)}_||se(!1,je)}},Ne=ke=>{M||[" ","ArrowUp","ArrowDown","Enter"].includes(ke.key)&&(ke.preventDefault(),se(!0,ke))},Ve=Q!==null&&Z,Ge=ke=>{!Ve&&w&&(Object.defineProperty(ke,"target",{writable:!0,value:{value:G,name:T}}),w(ke))};delete K["aria-invalid"];let Ie,st;const xt=[];let Gt=!1,bn=!1;(vf({value:G})||m)&&(R?Ie=R(G):Gt=!0);const nn=Te.map(ke=>{if(!A.isValidElement(ke))return null;process.env.NODE_ENV!=="production"&&zs.isFragment(ke)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
118
+ `))}return null}),anchorOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),anchorPosition:c.shape({left:c.number.isRequired,top:c.number.isRequired}),anchorReference:c.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,container:c.oneOfType([li,c.func]),disableScrollLock:c.bool,elevation:nA,marginThreshold:c.number,onClose:c.func,open:c.bool.isRequired,PaperProps:c.shape({component:bp}),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transformOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});function SU(t){return Ye("MuiMenu",t)}We("MuiMenu",["root","paper","list"]);const CU={vertical:"top",horizontal:"right"},wU={vertical:"top",horizontal:"left"},TU=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"],list:["list"]},SU,e)},_U=be(KA,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),kU=be(UA,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),EU=be(HA,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),YA=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:u,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:y,...b}={},variant:S="selectedMenu",slots:C={},slotProps:_={},...T}=r,w=co(),E={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:y,PaperProps:p,transitionDuration:g,TransitionProps:b,variant:S},O=TU(E),N=o&&!a&&f,D=A.useRef(null),L=(G,Y)=>{D.current&&D.current.adjustStyleForScrollbar(G,{direction:w?"rtl":"ltr"}),y&&y(G,Y)},M=G=>{G.key==="Tab"&&(G.preventDefault(),u&&u(G,"tabKeyDown"))};let R=-1;A.Children.map(i,(G,Y)=>{A.isValidElement(G)&&(process.env.NODE_ENV!=="production"&&zs.isFragment(G)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
119
+ `)),G.props.disabled||(S==="selectedMenu"&&G.props.selected||R===-1)&&(R=Y))});const P={slots:C,slotProps:{list:l,transition:b,paper:p,..._}},B=wt({elementType:C.root,externalSlotProps:_.root,ownerState:E,className:[O.root,s]}),[z,$]=Bt("paper",{className:O.paper,elementType:kU,externalForwardedProps:P,shouldForwardComponentProp:!0,ownerState:E}),[F,q]=Bt("list",{className:Pe(O.list,l.className),elementType:EU,shouldForwardComponentProp:!0,externalForwardedProps:P,getSlotProps:G=>({...G,onKeyDown:Y=>{var Z;M(Y),(Z=G.onKeyDown)==null||Z.call(G,Y)}}),ownerState:E}),U=typeof P.slotProps.transition=="function"?P.slotProps.transition(E):P.slotProps.transition;return v.jsx(_U,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?CU:wU,slots:{root:C.root,paper:z,backdrop:C.backdrop,...C.transition&&{transition:C.transition}},slotProps:{root:B,paper:$,backdrop:typeof _.backdrop=="function"?_.backdrop(E):_.backdrop,transition:{...U,onEntering:(...G)=>{var Y;L(...G),(Y=U==null?void 0:U.onEntering)==null||Y.call(U,...G)}}},open:f,ref:n,transitionDuration:g,ownerState:E,...T,classes:m,children:v.jsx(F,{actions:D,autoFocus:o&&(R===-1||a),autoFocusItem:N,variant:S,...q,children:i})})});process.env.NODE_ENV!=="production"&&(YA.propTypes={anchorEl:c.oneOfType([li,c.func]),autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,disableAutoFocusItem:c.bool,MenuListProps:c.object,onClose:c.func,open:c.bool.isRequired,PaperProps:c.object,PopoverClasses:c.object,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),list:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,list:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object,variant:c.oneOf(["menu","selectedMenu"])});function MU(t){return Ye("MuiNativeSelect",t)}const ix=We("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),OU=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Re(n)}`,i&&"iconOpen",r&&"disabled"]};return Ke(a,MU,e)},GA=be("select")(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ix.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),RU=be(GA,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:uo,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${ix.multiple}`]:e.multiple}]}})({}),JA=be("svg")(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ix.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),AU=be(JA,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Re(n.variant)}`],n.open&&e.iconOpen]}})({}),ZA=A.forwardRef(function(e,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...u}=e,f={...e,disabled:o,variant:l,error:i},p=OU(f);return v.jsxs(A.Fragment,{children:[v.jsx(RU,{ownerState:f,className:Pe(p.select,r),disabled:o,ref:a||n,...u}),e.multiple?null:v.jsx(AU,{as:s,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(ZA.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:gn,multiple:c.bool,name:c.string,onChange:c.func,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});function XA(t){return Ye("MuiSelect",t)}const Bl=We("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var BT;const IU=be(GA,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Bl.select}`]:e.select},{[`&.${Bl.select}`]:e[n.variant]},{[`&.${Bl.error}`]:e.error},{[`&.${Bl.multiple}`]:e.multiple}]}})({[`&.${Bl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),DU=be(JA,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Re(n.variant)}`],n.open&&e.iconOpen]}})({}),PU=be("input",{shouldForwardProp:t=>kA(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zT(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function NU(t){return t==null||typeof t=="string"&&!t.trim()}const LU=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Re(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ke(a,XA,e)},QA=A.forwardRef(function(e,n){var Le;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:g=!1,IconComponent:y,inputRef:b,labelId:S,MenuProps:C={},multiple:_,name:T,onBlur:w,onChange:E,onClose:O,onFocus:N,onOpen:D,open:L,readOnly:M,renderValue:R,required:P,SelectDisplayProps:B={},tabIndex:z,type:$,value:F,variant:q="standard",...U}=e,[G,Y]=ui({controlled:F,default:f,name:"Select"}),[Z,fe]=ui({controlled:L,default:u,name:"Select"}),pe=A.useRef(null),ge=A.useRef(null),[re,he]=A.useState(null),{current:le}=A.useRef(L!=null),[X,W]=A.useState(),ee=Et(n,b),ce=A.useCallback(ke=>{ge.current=ke,ke&&he(ke)},[]),te=re==null?void 0:re.parentNode;A.useImperativeHandle(ee,()=>({focus:()=>{ge.current.focus()},node:pe.current,value:G}),[G]),A.useEffect(()=>{u&&Z&&re&&!le&&(W(s?null:te.clientWidth),ge.current.focus())},[re,s]),A.useEffect(()=>{i&&ge.current.focus()},[i]),A.useEffect(()=>{if(!S)return;const ke=Un(ge.current).getElementById(S);if(ke){const je=()=>{getSelection().isCollapsed&&ge.current.focus()};return ke.addEventListener("click",je),()=>{ke.removeEventListener("click",je)}}},[S]);const se=(ke,je)=>{ke?D&&D(je):O&&O(je),le||(W(s?null:te.clientWidth),fe(ke))},ue=ke=>{ke.button===0&&(ke.preventDefault(),ge.current.focus(),se(!0,ke))},ye=ke=>{se(!1,ke)},Te=A.Children.toArray(a),Se=ke=>{const je=Te.find(qe=>qe.props.value===ke.target.value);je!==void 0&&(Y(je.props.value),E&&E(ke,je))},Me=ke=>je=>{let qe;if(je.currentTarget.hasAttribute("tabindex")){if(_){qe=Array.isArray(G)?G.slice():[];const tt=G.indexOf(ke.props.value);tt===-1?qe.push(ke.props.value):qe.splice(tt,1)}else qe=ke.props.value;if(ke.props.onClick&&ke.props.onClick(je),G!==qe&&(Y(qe),E)){const tt=je.nativeEvent||je,Ot=new tt.constructor(tt.type,tt);Object.defineProperty(Ot,"target",{writable:!0,value:{value:qe,name:T}}),E(Ot,ke)}_||se(!1,je)}},Ne=ke=>{M||[" ","ArrowUp","ArrowDown","Enter"].includes(ke.key)&&(ke.preventDefault(),se(!0,ke))},Ve=re!==null&&Z,Ge=ke=>{!Ve&&w&&(Object.defineProperty(ke,"target",{writable:!0,value:{value:G,name:T}}),w(ke))};delete U["aria-invalid"];let Ie,st;const xt=[];let Gt=!1,bn=!1;(vf({value:G})||m)&&(R?Ie=R(G):Gt=!0);const nn=Te.map(ke=>{if(!A.isValidElement(ke))return null;process.env.NODE_ENV!=="production"&&zs.isFragment(ke)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
120
120
  `));let je;if(_){if(!Array.isArray(G))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Ao(2));je=G.some(qe=>zT(qe,ke.props.value)),je&&Gt&&xt.push(ke.props.children)}else je=zT(G,ke.props.value),je&&Gt&&(st=ke.props.children);return je&&(bn=!0),A.cloneElement(ke,{"aria-selected":je?"true":"false",onClick:Me(ke),onKeyUp:qe=>{qe.key===" "&&qe.preventDefault(),ke.props.onKeyUp&&ke.props.onKeyUp(qe)},role:"option",selected:je,value:void 0,"data-value":ke.props.value})});process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(!bn&&!_&&G!==""){const ke=Te.map(je=>je.props.value);console.warn([`MUI: You have provided an out-of-range value \`${G}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ke.filter(je=>je!=null).map(je=>`\`${je}\``).join(", ")||'""'}.`].join(`
121
- `))}},[bn,Te,_,T,G]),Gt&&(_?xt.length===0?Ie=null:Ie=xt.reduce((ke,je,qe)=>(ke.push(je),qe<xt.length-1&&ke.push(", "),ke),[]):Ie=st);let Dt=ae;!s&&ce&&Q&&(Dt=ee.clientWidth);let wn;typeof F<"u"?wn=F:wn=p?null:0;const Fn=z.id||(T?`mui-component-select-${T}`:void 0),dt={...e,variant:q,value:G,open:Ve,error:g},In=L7(dt),Vt={...C.PaperProps,...(Le=C.slotProps)==null?void 0:Le.paper},me=jo();return v.jsxs(A.Fragment,{children:[v.jsx(I7,{as:"div",ref:ue,tabIndex:wn,role:"combobox","aria-controls":Ve?me:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ve?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,Fn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:Ne,onMouseDown:p||M?null:de,onBlur:Ge,onFocus:N,...z,ownerState:dt,className:Pe(z.className,In.select,l),id:Fn,children:N7(Ie)?BT||(BT=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ie}),v.jsx(P7,{"aria-invalid":g,value:Array.isArray(G)?G.join(","):G,name:T,ref:he,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:p,className:In.nativeInput,autoFocus:i,required:P,...K,ownerState:dt}),v.jsx(D7,{as:y,className:In.icon,ownerState:dt}),v.jsx(YA,{id:`menu-${T||""}`,anchorEl:ee,open:Ve,onClose:ye,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:me,...C.MenuListProps},paper:{...Vt,style:{minWidth:Dt,...Vt!=null?Vt.style:null}}},children:nn})]})});process.env.NODE_ENV!=="production"&&(QA.propTypes={"aria-describedby":c.string,"aria-label":c.string,autoFocus:c.bool,autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,disabled:c.bool,displayEmpty:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:gn,labelId:c.string,MenuProps:c.object,multiple:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClose:c.func,onFocus:c.func,onOpen:c.func,open:c.bool,readOnly:c.bool,renderValue:c.func,required:c.bool,SelectDisplayProps:c.object,tabIndex:c.oneOfType([c.number,c.string]),type:c.any,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});const j7=Fe(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$7=t=>{const{classes:e}=t,r=Ke({root:["root"]},XA,e);return{...e,...r}},sx={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>uo(t)&&t!=="variant",slot:"Root"},F7=be(jp,sx)(""),B7=be(Fp,sx)(""),z7=be($p,sx)(""),ax=A.forwardRef(function(e,n){const r=St({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=j7,id:p,input:m,inputProps:g,label:y,labelId:b,MenuProps:S,multiple:C=!1,native:_=!1,onClose:T,onOpen:w,open:E,renderValue:O,SelectDisplayProps:N,variant:D="outlined",...L}=r,M=_?ZA:QA,R=po(),P=fl({props:r,muiFormControl:R,states:["variant","error"]}),z=P.variant||D,F={...r,variant:z,classes:s},$=$7(F),{root:B,...q}=$,K=m||{standard:v.jsx(F7,{ownerState:F}),outlined:v.jsx(B7,{label:y,ownerState:F}),filled:v.jsx(z7,{ownerState:F})}[z],G=Et(n,Qc(K));return v.jsx(A.Fragment,{children:A.cloneElement(K,{inputComponent:M,inputProps:{children:i,error:P.error,IconComponent:f,variant:z,type:void 0,multiple:C,..._?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:S,onClose:T,onOpen:w,open:E,renderValue:O,SelectDisplayProps:{id:p,...N}},...g,classes:g?qn(q,g.classes):q,...m?m.props.inputProps:{}},...(C&&_||u)&&z==="outlined"?{notched:!0}:{},ref:G,className:Pe(K.props.className,a,$.root),...!m&&{variant:z},...L})})});process.env.NODE_ENV!=="production"&&(ax.propTypes={autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,displayEmpty:c.bool,IconComponent:c.elementType,id:c.string,input:c.element,inputProps:c.object,label:c.node,labelId:c.string,MenuProps:c.object,multiple:c.bool,native:c.bool,onChange:c.func,onClose:c.func,onOpen:c.func,open:c.bool,renderValue:c.func,SelectDisplayProps:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.oneOfType([c.oneOf([""]),c.any]),variant:c.oneOf(["filled","outlined","standard"])});ax.muiName="Select";function V7(t){return Ye("MuiTextField",t)}We("MuiTextField",["root"]);const H7={standard:jp,filled:$p,outlined:Fp},W7=t=>{const{classes:e}=t;return Ke({root:["root"]},V7,e)},q7=be(Zv,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),e2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:y,id:b,InputLabelProps:S,inputProps:C,InputProps:_,inputRef:T,label:w,maxRows:E,minRows:O,multiline:N=!1,name:D,onBlur:L,onChange:M,onFocus:R,placeholder:P,required:z=!1,rows:F,select:$=!1,SelectProps:B,slots:q={},slotProps:K={},type:G,value:Y,variant:Z="outlined",...ge}=r,he={...r,autoFocus:i,color:l,disabled:f,error:p,fullWidth:g,multiline:N,required:z,select:$,variant:Z},oe=W7(he);process.env.NODE_ENV!=="production"&&$&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=jo(b),fe=y&&Q?`${Q}-helper-text`:void 0,ce=w&&Q?`${Q}-label`:void 0,ae=H7[Z],W={slots:q,slotProps:{input:_,inputLabel:S,htmlInput:C,formHelperText:m,select:B,...K}},te={},ue=W.slotProps.inputLabel;Z==="outlined"&&(ue&&typeof ue.shrink<"u"&&(te.notched=ue.shrink),te.label=w),$&&((!B||!B.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[ee,se]=Bt("root",{elementType:q7,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...ge},ownerState:he,className:Pe(oe.root,a),ref:n,additionalProps:{disabled:f,error:p,fullWidth:g,required:z,color:l,variant:Z}}),[de,ye]=Bt("input",{elementType:ae,externalForwardedProps:W,additionalProps:te,ownerState:he}),[Te,Se]=Bt("inputLabel",{elementType:Jv,externalForwardedProps:W,ownerState:he}),[Me,Ne]=Bt("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:he}),[Ve,Ge]=Bt("formHelperText",{elementType:Xv,externalForwardedProps:W,ownerState:he}),[Ie,st]=Bt("select",{elementType:ax,externalForwardedProps:W,ownerState:he}),xt=v.jsx(de,{"aria-describedby":fe,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:g,multiline:N,name:D,rows:F,maxRows:E,minRows:O,type:G,value:Y,id:Q,inputRef:T,onBlur:L,onChange:M,onFocus:R,placeholder:P,inputProps:Ne,slots:{input:q.htmlInput?Me:void 0},...ye});return v.jsxs(ee,{...se,children:[w!=null&&w!==""&&v.jsx(Te,{htmlFor:Q,id:ce,...Se,children:w}),$?v.jsx(Ie,{"aria-describedby":fe,id:Q,labelId:ce,value:Y,input:xt,...st,children:s}):xt,y&&v.jsx(Ve,{id:fe,...Ge,children:y})]})});process.env.NODE_ENV!=="production"&&(e2.propTypes={autoComplete:c.string,autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),defaultValue:c.any,disabled:c.bool,error:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onFocus:c.func,placeholder:c.string,required:c.bool,rows:c.oneOfType([c.number,c.string]),select:c.bool,SelectProps:c.object,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({formHelperText:c.oneOfType([c.func,c.object]),htmlInput:c.oneOfType([c.func,c.object]),input:c.oneOfType([c.func,c.object]),inputLabel:c.oneOfType([c.func,c.object]),select:c.oneOfType([c.func,c.object])}),slots:c.shape({formHelperText:c.elementType,htmlInput:c.elementType,input:c.elementType,inputLabel:c.elementType,root:c.elementType,select:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any,variant:c.oneOf(["filled","outlined","standard"])});const zl=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),U7=({openTo:t,defaultOpenTo:e,views:n,defaultViews:r})=>{const o=n??r;let i;if(t!=null)i=t;else if(o.includes(e))i=e;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},Cf=(t,e,n)=>{let r=e;return r=t.setHours(r,t.getHours(n)),r=t.setMinutes(r,t.getMinutes(n)),r=t.setSeconds(r,t.getSeconds(n)),r=t.setMilliseconds(r,t.getMilliseconds(n)),r},dc=({date:t,disableFuture:e,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=Cf(s,s.date(void 0,a),t);n&&s.isBefore(o,l)&&(o=l),e&&s.isAfter(r,l)&&(r=l);let u=t,f=t;for(s.isBefore(t,o)&&(u=o,f=null),s.isAfter(t,r)&&(f&&(f=r),u=null);u||f;){if(u&&s.isAfter(u,r)&&(u=null),f&&s.isBefore(f,o)&&(f=null),u){if(!i(u))return u;u=s.addDays(u,1)}if(f){if(!i(f))return f;f=s.addDays(f,-1)}}return null},K7=(t,e)=>e==null||!t.isValid(e)?null:e,Yr=(t,e,n)=>e==null||!t.isValid(e)?n:e,Y7=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),lx=(t,e)=>{const r=[t.startOfYear(e)];for(;r.length<12;){const o=r[r.length-1];r.push(t.addMonths(o,1))}return r},t2=(t,e,n)=>n==="date"?t.startOfDay(t.date(void 0,e)):t.date(void 0,e),G7=["year","month","day"],VT=t=>G7.includes(t),cx=(t,{format:e,views:n},r)=>{if(e!=null)return e;const o=t.formats;return zl(n,["year"])?o.year:zl(n,["month"])?o.month:zl(n,["day"])?o.dayOfMonth:zl(n,["month","year"])?`${o.month} ${o.year}`:zl(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(t.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},J7=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(r=>t.addDays(n,r))},Z7=["hours","minutes","seconds"],X7=t=>Z7.includes(t),HT=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),Q7=(t,e)=>(n,r)=>t?e.isAfter(n,r):HT(n,e)>HT(r,e),_o={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},eK=t=>Math.max(...t.map(e=>_o[e.type]??1)),Vl=(t,e,n)=>{if(e===_o.year)return t.startOfYear(n);if(e===_o.month)return t.startOfMonth(n);if(e===_o.day)return t.startOfDay(n);let r=n;return e<_o.minutes&&(r=t.setMinutes(r,0)),e<_o.seconds&&(r=t.setSeconds(r,0)),e<_o.milliseconds&&(r=t.setMilliseconds(r,0)),r},tK=({props:t,utils:e,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():Vl(e,n,t2(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,i)&&(i=Vl(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,i)&&(i=Vl(e,n,t.maxDate));const s=Q7(t.disableIgnoringDatePartForTimeValidation??!1,e);return t.minTime!=null&&s(t.minTime,i)&&(i=Vl(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:Cf(e,i,t.minTime))),t.maxTime!=null&&s(i,t.maxTime)&&(i=Vl(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:Cf(e,i,t.maxTime))),i},ux=(t,e)=>{const n=t.formatTokenMap[e];if(n==null)throw new Error([`MUI X: The token "${e}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
121
+ `))}},[bn,Te,_,T,G]),Gt&&(_?xt.length===0?Ie=null:Ie=xt.reduce((ke,je,qe)=>(ke.push(je),qe<xt.length-1&&ke.push(", "),ke),[]):Ie=st);let Dt=X;!s&&le&&re&&(Dt=te.clientWidth);let wn;typeof z<"u"?wn=z:wn=p?null:0;const Fn=B.id||(T?`mui-component-select-${T}`:void 0),dt={...e,variant:q,value:G,open:Ve,error:g},In=LU(dt),Vt={...C.PaperProps,...(Le=C.slotProps)==null?void 0:Le.paper},me=jo();return v.jsxs(A.Fragment,{children:[v.jsx(IU,{as:"div",ref:ce,tabIndex:wn,role:"combobox","aria-controls":Ve?me:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ve?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[S,Fn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":P?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:Ne,onMouseDown:p||M?null:ue,onBlur:Ge,onFocus:N,...B,ownerState:dt,className:Pe(B.className,In.select,l),id:Fn,children:NU(Ie)?BT||(BT=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ie}),v.jsx(PU,{"aria-invalid":g,value:Array.isArray(G)?G.join(","):G,name:T,ref:pe,"aria-hidden":!0,onChange:Se,tabIndex:-1,disabled:p,className:In.nativeInput,autoFocus:i,required:P,...U,ownerState:dt}),v.jsx(DU,{as:y,className:In.icon,ownerState:dt}),v.jsx(YA,{id:`menu-${T||""}`,anchorEl:te,open:Ve,onClose:ye,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:me,...C.MenuListProps},paper:{...Vt,style:{minWidth:Dt,...Vt!=null?Vt.style:null}}},children:nn})]})});process.env.NODE_ENV!=="production"&&(QA.propTypes={"aria-describedby":c.string,"aria-label":c.string,autoFocus:c.bool,autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,disabled:c.bool,displayEmpty:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:gn,labelId:c.string,MenuProps:c.object,multiple:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClose:c.func,onFocus:c.func,onOpen:c.func,open:c.bool,readOnly:c.bool,renderValue:c.func,required:c.bool,SelectDisplayProps:c.object,tabIndex:c.oneOfType([c.number,c.string]),type:c.any,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});const jU=Fe(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$U=t=>{const{classes:e}=t,r=Ke({root:["root"]},XA,e);return{...e,...r}},sx={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>uo(t)&&t!=="variant",slot:"Root"},FU=be(jp,sx)(""),BU=be(Fp,sx)(""),zU=be($p,sx)(""),ax=A.forwardRef(function(e,n){const r=St({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=jU,id:p,input:m,inputProps:g,label:y,labelId:b,MenuProps:S,multiple:C=!1,native:_=!1,onClose:T,onOpen:w,open:E,renderValue:O,SelectDisplayProps:N,variant:D="outlined",...L}=r,M=_?ZA:QA,R=po(),P=fl({props:r,muiFormControl:R,states:["variant","error"]}),B=P.variant||D,z={...r,variant:B,classes:s},$=$U(z),{root:F,...q}=$,U=m||{standard:v.jsx(FU,{ownerState:z}),outlined:v.jsx(BU,{label:y,ownerState:z}),filled:v.jsx(zU,{ownerState:z})}[B],G=Et(n,Qc(U));return v.jsx(A.Fragment,{children:A.cloneElement(U,{inputComponent:M,inputProps:{children:i,error:P.error,IconComponent:f,variant:B,type:void 0,multiple:C,..._?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:S,onClose:T,onOpen:w,open:E,renderValue:O,SelectDisplayProps:{id:p,...N}},...g,classes:g?qn(q,g.classes):q,...m?m.props.inputProps:{}},...(C&&_||u)&&B==="outlined"?{notched:!0}:{},ref:G,className:Pe(U.props.className,a,$.root),...!m&&{variant:B},...L})})});process.env.NODE_ENV!=="production"&&(ax.propTypes={autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,displayEmpty:c.bool,IconComponent:c.elementType,id:c.string,input:c.element,inputProps:c.object,label:c.node,labelId:c.string,MenuProps:c.object,multiple:c.bool,native:c.bool,onChange:c.func,onClose:c.func,onOpen:c.func,open:c.bool,renderValue:c.func,SelectDisplayProps:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.oneOfType([c.oneOf([""]),c.any]),variant:c.oneOf(["filled","outlined","standard"])});ax.muiName="Select";function VU(t){return Ye("MuiTextField",t)}We("MuiTextField",["root"]);const HU={standard:jp,filled:$p,outlined:Fp},WU=t=>{const{classes:e}=t;return Ke({root:["root"]},VU,e)},qU=be(Zv,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),e2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:y,id:b,InputLabelProps:S,inputProps:C,InputProps:_,inputRef:T,label:w,maxRows:E,minRows:O,multiline:N=!1,name:D,onBlur:L,onChange:M,onFocus:R,placeholder:P,required:B=!1,rows:z,select:$=!1,SelectProps:F,slots:q={},slotProps:U={},type:G,value:Y,variant:Z="outlined",...fe}=r,pe={...r,autoFocus:i,color:l,disabled:f,error:p,fullWidth:g,multiline:N,required:B,select:$,variant:Z},ge=WU(pe);process.env.NODE_ENV!=="production"&&$&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const re=jo(b),he=y&&re?`${re}-helper-text`:void 0,le=w&&re?`${re}-label`:void 0,X=HU[Z],W={slots:q,slotProps:{input:_,inputLabel:S,htmlInput:C,formHelperText:m,select:F,...U}},ee={},ce=W.slotProps.inputLabel;Z==="outlined"&&(ce&&typeof ce.shrink<"u"&&(ee.notched=ce.shrink),ee.label=w),$&&((!F||!F.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const[te,se]=Bt("root",{elementType:qU,shouldForwardComponentProp:!0,externalForwardedProps:{...W,...fe},ownerState:pe,className:Pe(ge.root,a),ref:n,additionalProps:{disabled:f,error:p,fullWidth:g,required:B,color:l,variant:Z}}),[ue,ye]=Bt("input",{elementType:X,externalForwardedProps:W,additionalProps:ee,ownerState:pe}),[Te,Se]=Bt("inputLabel",{elementType:Jv,externalForwardedProps:W,ownerState:pe}),[Me,Ne]=Bt("htmlInput",{elementType:"input",externalForwardedProps:W,ownerState:pe}),[Ve,Ge]=Bt("formHelperText",{elementType:Xv,externalForwardedProps:W,ownerState:pe}),[Ie,st]=Bt("select",{elementType:ax,externalForwardedProps:W,ownerState:pe}),xt=v.jsx(ue,{"aria-describedby":he,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:g,multiline:N,name:D,rows:z,maxRows:E,minRows:O,type:G,value:Y,id:re,inputRef:T,onBlur:L,onChange:M,onFocus:R,placeholder:P,inputProps:Ne,slots:{input:q.htmlInput?Me:void 0},...ye});return v.jsxs(te,{...se,children:[w!=null&&w!==""&&v.jsx(Te,{htmlFor:re,id:le,...Se,children:w}),$?v.jsx(Ie,{"aria-describedby":he,id:re,labelId:le,value:Y,input:xt,...st,children:s}):xt,y&&v.jsx(Ve,{id:he,...Ge,children:y})]})});process.env.NODE_ENV!=="production"&&(e2.propTypes={autoComplete:c.string,autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),defaultValue:c.any,disabled:c.bool,error:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onFocus:c.func,placeholder:c.string,required:c.bool,rows:c.oneOfType([c.number,c.string]),select:c.bool,SelectProps:c.object,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({formHelperText:c.oneOfType([c.func,c.object]),htmlInput:c.oneOfType([c.func,c.object]),input:c.oneOfType([c.func,c.object]),inputLabel:c.oneOfType([c.func,c.object]),select:c.oneOfType([c.func,c.object])}),slots:c.shape({formHelperText:c.elementType,htmlInput:c.elementType,input:c.elementType,inputLabel:c.elementType,root:c.elementType,select:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any,variant:c.oneOf(["filled","outlined","standard"])});const zl=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),UU=({openTo:t,defaultOpenTo:e,views:n,defaultViews:r})=>{const o=n??r;let i;if(t!=null)i=t;else if(o.includes(e))i=e;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},Cf=(t,e,n)=>{let r=e;return r=t.setHours(r,t.getHours(n)),r=t.setMinutes(r,t.getMinutes(n)),r=t.setSeconds(r,t.getSeconds(n)),r=t.setMilliseconds(r,t.getMilliseconds(n)),r},dc=({date:t,disableFuture:e,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=Cf(s,s.date(void 0,a),t);n&&s.isBefore(o,l)&&(o=l),e&&s.isAfter(r,l)&&(r=l);let u=t,f=t;for(s.isBefore(t,o)&&(u=o,f=null),s.isAfter(t,r)&&(f&&(f=r),u=null);u||f;){if(u&&s.isAfter(u,r)&&(u=null),f&&s.isBefore(f,o)&&(f=null),u){if(!i(u))return u;u=s.addDays(u,1)}if(f){if(!i(f))return f;f=s.addDays(f,-1)}}return null},KU=(t,e)=>e==null||!t.isValid(e)?null:e,Yr=(t,e,n)=>e==null||!t.isValid(e)?n:e,YU=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),lx=(t,e)=>{const r=[t.startOfYear(e)];for(;r.length<12;){const o=r[r.length-1];r.push(t.addMonths(o,1))}return r},t2=(t,e,n)=>n==="date"?t.startOfDay(t.date(void 0,e)):t.date(void 0,e),GU=["year","month","day"],VT=t=>GU.includes(t),cx=(t,{format:e,views:n},r)=>{if(e!=null)return e;const o=t.formats;return zl(n,["year"])?o.year:zl(n,["month"])?o.month:zl(n,["day"])?o.dayOfMonth:zl(n,["month","year"])?`${o.month} ${o.year}`:zl(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(t.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},JU=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(r=>t.addDays(n,r))},ZU=["hours","minutes","seconds"],XU=t=>ZU.includes(t),HT=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),QU=(t,e)=>(n,r)=>t?e.isAfter(n,r):HT(n,e)>HT(r,e),_o={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},eK=t=>Math.max(...t.map(e=>_o[e.type]??1)),Vl=(t,e,n)=>{if(e===_o.year)return t.startOfYear(n);if(e===_o.month)return t.startOfMonth(n);if(e===_o.day)return t.startOfDay(n);let r=n;return e<_o.minutes&&(r=t.setMinutes(r,0)),e<_o.seconds&&(r=t.setSeconds(r,0)),e<_o.milliseconds&&(r=t.setMilliseconds(r,0)),r},tK=({props:t,utils:e,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():Vl(e,n,t2(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,i)&&(i=Vl(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,i)&&(i=Vl(e,n,t.maxDate));const s=QU(t.disableIgnoringDatePartForTimeValidation??!1,e);return t.minTime!=null&&s(t.minTime,i)&&(i=Vl(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:Cf(e,i,t.minTime))),t.maxTime!=null&&s(i,t.maxTime)&&(i=Vl(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:Cf(e,i,t.maxTime))),i},ux=(t,e)=>{const n=t.formatTokenMap[e];if(n==null)throw new Error([`MUI X: The token "${e}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
122
122
  `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},nK=t=>{switch(t){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Bp=(t,e)=>{const n=[],r=t.date(void 0,"default"),o=t.startOfWeek(r),i=t.endOfWeek(r);let s=o;for(;t.isBefore(s,i);)n.push(s),s=t.addDays(s,1);return n.map(a=>t.formatByString(a,e))},n2=(t,e,n,r)=>{switch(n){case"month":return lx(t,t.date(void 0,e)).map(o=>t.formatByString(o,r));case"weekDay":return Bp(t,r);case"meridiem":{const o=t.date(void 0,e);return[t.startOfDay(o),t.endOfDay(o)].map(i=>t.formatByString(i,r))}default:return[]}},WT="s",rK=["0","1","2","3","4","5","6","7","8","9"],oK=t=>{const e=t.date(void 0);return t.formatByString(t.setSeconds(e,0),WT)==="0"?rK:Array.from({length:10}).map((r,o)=>t.formatByString(t.setSeconds(e,o),WT))},Vs=(t,e)=>{if(e[0]==="0")return t;const n=[];let r="";for(let o=0;o<t.length;o+=1){r+=t[o];const i=e.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},dx=(t,e)=>e[0]==="0"?t:t.split("").map(n=>e[Number(n)]).join(""),qT=(t,e)=>{const n=Vs(t,e);return n!==" "&&!Number.isNaN(Number(n))},r2=(t,e)=>{let n=t;for(n=Number(n).toString();n.length<e;)n=`0${n}`;return n},o2=(t,e,n,r,o)=>{if(process.env.NODE_ENV!=="production"&&o.type!=="day"&&o.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${o.format}" is a digit format with letter in it.'
123
123
  This type of format is only supported for 'day' sections`].join(`
124
- `));if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=t.setDate(n.longestMonth,e);return t.formatByString(s,o.format)}let i=e.toString();return o.hasLeadingZerosInInput&&(i=r2(i,o.maxLength)),dx(i,r)},iK=(t,e,n,r,o,i,s,a)=>{const l=nK(r),u=r==="Home",f=r==="End",p=n.value===""||u||f,m=()=>{const y=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),b=T=>o2(t,T,y,i,n),S=n.type==="minutes"&&(a!=null&&a.minutesStep)?a.minutesStep:1;let _=parseInt(Vs(n.value,i),10)+l*S;if(p){if(n.type==="year"&&!f&&!u)return t.formatByString(t.date(void 0,e),n.format);l>0||u?_=y.minimum:_=y.maximum}return _%S!==0&&((l<0||u)&&(_+=S-(S+_)%S),(l>0||f)&&(_-=_%S)),_>y.maximum?b(y.minimum+(_-y.maximum-1)%(y.maximum-y.minimum+1)):_<y.minimum?b(y.maximum-(y.minimum-_-1)%(y.maximum-y.minimum+1)):b(_)},g=()=>{const y=n2(t,e,n.type,n.format);if(y.length===0)return n.value;if(p)return l>0||u?y[0]:y[y.length-1];const C=((y.indexOf(n.value)+l)%y.length+y.length)%y.length;return y[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():g()},fx=(t,e,n)=>{let r=t.value||t.placeholder;const o=e==="non-input"?t.hasLeadingZerosInFormat:t.hasLeadingZerosInInput;return e==="non-input"&&t.hasLeadingZerosInInput&&!t.hasLeadingZerosInFormat&&(r=Number(Vs(r,n)).toString()),["input-rtl","input-ltr"].includes(e)&&t.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),e==="input-rtl"&&(r=`⁨${r}⁩`),r},UT=(t,e,n,r)=>{if(process.env.NODE_ENV!=="production"&&ux(t,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return t.formatByString(t.parse(e,n),r)},i2=(t,e)=>t.formatByString(t.date(void 0,"system"),e).length===4,s2=(t,e,n,r)=>{if(e!=="digit")return!1;const o=t.date(void 0,"default");switch(n){case"year":return i2(t,r)?t.formatByString(t.setYear(o,1),r)==="0001":t.formatByString(t.setYear(o,2001),r)==="01";case"month":return t.formatByString(t.startOfYear(o),r).length>1;case"day":return t.formatByString(t.startOfMonth(o),r).length>1;case"weekDay":return t.formatByString(t.startOfWeek(o),r).length>1;case"hours":return t.formatByString(t.setHours(o,1),r).length>1;case"minutes":return t.formatByString(t.setMinutes(o,1),r).length>1;case"seconds":return t.formatByString(t.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},sK=(t,e,n)=>{const r=e.some(l=>l.type==="day"),o=[],i=[];for(let l=0;l<e.length;l+=1){const u=e[l];r&&u.type==="weekDay"||(o.push(u.format),i.push(fx(u,"non-input",n)))}const s=o.join(" "),a=i.join(" ");return t.parse(a,s)},aK=t=>t.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),lK=(t,e,n)=>{const o=t.map(i=>{const s=fx(i,n?"input-rtl":"input-ltr",e);return`${i.startSeparator}${s}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},cK=(t,e,n)=>{const r=t.date(void 0,n),o=t.endOfYear(r),i=t.endOfDay(r),{maxDaysInMonth:s,longestMonth:a}=lx(t,r).reduce((l,u)=>{const f=t.getDaysInMonth(u);return f>l.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:i2(t,l)?9999:99}),month:()=>({minimum:1,maximum:t.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&t.isValid(l)?t.getDaysInMonth(l):s,longestMonth:a}),weekDay:({format:l,contentType:u})=>{if(u==="digit"){const f=Bp(t,l).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const u=t.getHours(i);return Vs(t.formatByString(t.endOfDay(r),l),e)!==u.toString()?{minimum:1,maximum:Number(Vs(t.formatByString(t.startOfDay(r),l),e))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:t.getMinutes(i)}),seconds:()=>({minimum:0,maximum:t.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let KT=!1;const YT=(t,e)=>{if(process.env.NODE_ENV!=="production"&&!KT){const n=["empty"];["date","date-time"].includes(e)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(e)&&n.push("hours","minutes","seconds","meridiem");const r=t.find(o=>!n.includes(o.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),KT=!0)}},uK=(t,e,n,r)=>{switch(e.type){case"year":return t.setYear(r,t.getYear(n));case"month":return t.setMonth(r,t.getMonth(n));case"weekDay":{const o=Bp(t,e.format),i=t.formatByString(n,e.format),s=o.indexOf(i),l=o.indexOf(e.value)-s;return t.addDays(n,l)}case"day":return t.setDate(r,t.getDate(n));case"meridiem":{const o=t.getHours(n)<12,i=t.getHours(r);return o&&i>=12?t.addHours(r,-12):!o&&i<12?t.addHours(r,12):r}case"hours":return t.setHours(r,t.getHours(n));case"minutes":return t.setMinutes(r,t.getMinutes(n));case"seconds":return t.setSeconds(r,t.getSeconds(n));default:return r}},GT={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},JT=(t,e,n,r,o)=>[...n].sort((i,s)=>GT[i.type]-GT[s.type]).reduce((i,s)=>!o||s.modified?uK(t,s,e,i):i,r),dK=()=>navigator.userAgent.toLowerCase().includes("android"),fK=(t,e)=>{const n={};if(!e)return t.forEach((l,u)=>{const f=u===0?null:u-1,p=u===t.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:t.length-1};const r={},o={};let i=0,s=0,a=t.length-1;for(;a>=0;){s=t.findIndex((l,u)=>{var f;return u>=i&&((f=l.endSeparator)==null?void 0:f.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=t.length-1);for(let l=s;l>=i;l-=1)o[l]=a,r[a]=l,a-=1;i=s+1}return t.forEach((l,u)=>{const f=o[u],p=f===0?null:r[f-1],m=f===t.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[t.length-1]}},z0=(t,e)=>{if(t==null)return null;if(t==="all")return"all";if(typeof t=="string"){const n=e.findIndex(r=>r.type===t);return n===-1?null:n}return t},pK=(t,e)=>{if(t.value)switch(t.type){case"month":{if(t.contentType==="digit")return e.format(e.setMonth(e.date(),Number(t.value)-1),"month");const n=e.parse(t.value,t.format);return n?e.format(n,"month"):void 0}case"day":return t.contentType==="digit"?e.format(e.setDate(e.startOfYear(e.date()),Number(t.value)),"dayOfMonthFull"):t.value;case"weekDay":return;default:return}},hK=(t,e)=>{if(t.value)switch(t.type){case"weekDay":return t.contentType==="letter"?void 0:Number(t.value);case"meridiem":{const n=e.parse(`01:00 ${t.value}`,`${e.formats.hours12h}:${e.formats.minutes} ${t.format}`);return n?e.getHours(n)>=12?1:0:void 0}case"day":return t.contentType==="digit-with-letter"?parseInt(t.value,10):Number(t.value);case"month":{if(t.contentType==="digit")return Number(t.value);const n=e.parse(t.value,t.format);return n?e.getMonth(n)+1:void 0}default:return t.contentType!=="letter"?Number(t.value):void 0}},mK=["value","referenceDate"],Io={emptyValue:null,getTodayValue:t2,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=rt(t,mK);return e!=null&&r.utils.isValid(e)?e:n??tK(r)},cleanValue:K7,areValuesEqual:Y7,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},gK={updateReferenceValue:(t,e,n)=>e==null||!t.isValid(e)?n:e,getSectionsFromValue:(t,e,n,r)=>!t.isValid(e)&&!!n?n:r(e),getV7HiddenInputValueFromSections:aK,getV6InputValueFromSections:lK,getActiveDateManager:(t,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!t.isValid(n)?e.referenceValue:n})}),parseValueStr:(t,e,n)=>n(t.trim(),e)},au=({props:t,value:e,timezone:n,adapter:r})=>{if(e===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:a,disableFuture:l}=t,u=r.utils.date(void 0,n),f=Yr(r.utils,t.minDate,r.defaultDates.minDate),p=Yr(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(e):return"invalidDate";case!!(o&&o(e)):return"shouldDisableDate";case!!(i&&i(e)):return"shouldDisableMonth";case!!(s&&s(e)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(e,u)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(e,u)):return"disablePast";case!!(f&&r.utils.isBeforeDay(e,f)):return"minDate";case!!(p&&r.utils.isAfterDay(e,p)):return"maxDate";default:return null}};au.valueManager=Io;const a2=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yK=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],bK=["minDateTime","maxDateTime"],vK=[...a2,...yK,...bK],l2=t=>vK.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{}),xK=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ne({},t)}}}}),c2=t=>{const{utils:e,formatKey:n,contextTranslation:r,propsTranslation:o}=t;return i=>{const s=i!==null&&e.isValid(i)?e.format(i,n):null;return(o??r)(i,e,s)}},u2={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n,r)=>`Select ${t}. ${!r&&(e===null||!n.isValid(e))?"No time selected":`Selected time is ${r??n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose date, selected date is ${n??e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose time, selected time is ${n??e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},SK=u2;xK(u2);const Js=()=>{const t=A.useContext(bf);if(t===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
124
+ `));if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=t.setDate(n.longestMonth,e);return t.formatByString(s,o.format)}let i=e.toString();return o.hasLeadingZerosInInput&&(i=r2(i,o.maxLength)),dx(i,r)},iK=(t,e,n,r,o,i,s,a)=>{const l=nK(r),u=r==="Home",f=r==="End",p=n.value===""||u||f,m=()=>{const y=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),b=T=>o2(t,T,y,i,n),S=n.type==="minutes"&&(a!=null&&a.minutesStep)?a.minutesStep:1;let _=parseInt(Vs(n.value,i),10)+l*S;if(p){if(n.type==="year"&&!f&&!u)return t.formatByString(t.date(void 0,e),n.format);l>0||u?_=y.minimum:_=y.maximum}return _%S!==0&&((l<0||u)&&(_+=S-(S+_)%S),(l>0||f)&&(_-=_%S)),_>y.maximum?b(y.minimum+(_-y.maximum-1)%(y.maximum-y.minimum+1)):_<y.minimum?b(y.maximum-(y.minimum-_-1)%(y.maximum-y.minimum+1)):b(_)},g=()=>{const y=n2(t,e,n.type,n.format);if(y.length===0)return n.value;if(p)return l>0||u?y[0]:y[y.length-1];const C=((y.indexOf(n.value)+l)%y.length+y.length)%y.length;return y[C]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():g()},fx=(t,e,n)=>{let r=t.value||t.placeholder;const o=e==="non-input"?t.hasLeadingZerosInFormat:t.hasLeadingZerosInInput;return e==="non-input"&&t.hasLeadingZerosInInput&&!t.hasLeadingZerosInFormat&&(r=Number(Vs(r,n)).toString()),["input-rtl","input-ltr"].includes(e)&&t.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),e==="input-rtl"&&(r=`⁨${r}⁩`),r},UT=(t,e,n,r)=>{if(process.env.NODE_ENV!=="production"&&ux(t,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return t.formatByString(t.parse(e,n),r)},i2=(t,e)=>t.formatByString(t.date(void 0,"system"),e).length===4,s2=(t,e,n,r)=>{if(e!=="digit")return!1;const o=t.date(void 0,"default");switch(n){case"year":return i2(t,r)?t.formatByString(t.setYear(o,1),r)==="0001":t.formatByString(t.setYear(o,2001),r)==="01";case"month":return t.formatByString(t.startOfYear(o),r).length>1;case"day":return t.formatByString(t.startOfMonth(o),r).length>1;case"weekDay":return t.formatByString(t.startOfWeek(o),r).length>1;case"hours":return t.formatByString(t.setHours(o,1),r).length>1;case"minutes":return t.formatByString(t.setMinutes(o,1),r).length>1;case"seconds":return t.formatByString(t.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},sK=(t,e,n)=>{const r=e.some(l=>l.type==="day"),o=[],i=[];for(let l=0;l<e.length;l+=1){const u=e[l];r&&u.type==="weekDay"||(o.push(u.format),i.push(fx(u,"non-input",n)))}const s=o.join(" "),a=i.join(" ");return t.parse(a,s)},aK=t=>t.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),lK=(t,e,n)=>{const o=t.map(i=>{const s=fx(i,n?"input-rtl":"input-ltr",e);return`${i.startSeparator}${s}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},cK=(t,e,n)=>{const r=t.date(void 0,n),o=t.endOfYear(r),i=t.endOfDay(r),{maxDaysInMonth:s,longestMonth:a}=lx(t,r).reduce((l,u)=>{const f=t.getDaysInMonth(u);return f>l.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:i2(t,l)?9999:99}),month:()=>({minimum:1,maximum:t.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&t.isValid(l)?t.getDaysInMonth(l):s,longestMonth:a}),weekDay:({format:l,contentType:u})=>{if(u==="digit"){const f=Bp(t,l).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const u=t.getHours(i);return Vs(t.formatByString(t.endOfDay(r),l),e)!==u.toString()?{minimum:1,maximum:Number(Vs(t.formatByString(t.startOfDay(r),l),e))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:t.getMinutes(i)}),seconds:()=>({minimum:0,maximum:t.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let KT=!1;const YT=(t,e)=>{if(process.env.NODE_ENV!=="production"&&!KT){const n=["empty"];["date","date-time"].includes(e)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(e)&&n.push("hours","minutes","seconds","meridiem");const r=t.find(o=>!n.includes(o.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),KT=!0)}},uK=(t,e,n,r)=>{switch(e.type){case"year":return t.setYear(r,t.getYear(n));case"month":return t.setMonth(r,t.getMonth(n));case"weekDay":{const o=Bp(t,e.format),i=t.formatByString(n,e.format),s=o.indexOf(i),l=o.indexOf(e.value)-s;return t.addDays(n,l)}case"day":return t.setDate(r,t.getDate(n));case"meridiem":{const o=t.getHours(n)<12,i=t.getHours(r);return o&&i>=12?t.addHours(r,-12):!o&&i<12?t.addHours(r,12):r}case"hours":return t.setHours(r,t.getHours(n));case"minutes":return t.setMinutes(r,t.getMinutes(n));case"seconds":return t.setSeconds(r,t.getSeconds(n));default:return r}},GT={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},JT=(t,e,n,r,o)=>[...n].sort((i,s)=>GT[i.type]-GT[s.type]).reduce((i,s)=>!o||s.modified?uK(t,s,e,i):i,r),dK=()=>navigator.userAgent.toLowerCase().includes("android"),fK=(t,e)=>{const n={};if(!e)return t.forEach((l,u)=>{const f=u===0?null:u-1,p=u===t.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:t.length-1};const r={},o={};let i=0,s=0,a=t.length-1;for(;a>=0;){s=t.findIndex((l,u)=>{var f;return u>=i&&((f=l.endSeparator)==null?void 0:f.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=t.length-1);for(let l=s;l>=i;l-=1)o[l]=a,r[a]=l,a-=1;i=s+1}return t.forEach((l,u)=>{const f=o[u],p=f===0?null:r[f-1],m=f===t.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[t.length-1]}},z0=(t,e)=>{if(t==null)return null;if(t==="all")return"all";if(typeof t=="string"){const n=e.findIndex(r=>r.type===t);return n===-1?null:n}return t},pK=(t,e)=>{if(t.value)switch(t.type){case"month":{if(t.contentType==="digit")return e.format(e.setMonth(e.date(),Number(t.value)-1),"month");const n=e.parse(t.value,t.format);return n?e.format(n,"month"):void 0}case"day":return t.contentType==="digit"?e.format(e.setDate(e.startOfYear(e.date()),Number(t.value)),"dayOfMonthFull"):t.value;case"weekDay":return;default:return}},hK=(t,e)=>{if(t.value)switch(t.type){case"weekDay":return t.contentType==="letter"?void 0:Number(t.value);case"meridiem":{const n=e.parse(`01:00 ${t.value}`,`${e.formats.hours12h}:${e.formats.minutes} ${t.format}`);return n?e.getHours(n)>=12?1:0:void 0}case"day":return t.contentType==="digit-with-letter"?parseInt(t.value,10):Number(t.value);case"month":{if(t.contentType==="digit")return Number(t.value);const n=e.parse(t.value,t.format);return n?e.getMonth(n)+1:void 0}default:return t.contentType!=="letter"?Number(t.value):void 0}},mK=["value","referenceDate"],Io={emptyValue:null,getTodayValue:t2,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=rt(t,mK);return e!=null&&r.utils.isValid(e)?e:n??tK(r)},cleanValue:KU,areValuesEqual:YU,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},gK={updateReferenceValue:(t,e,n)=>e==null||!t.isValid(e)?n:e,getSectionsFromValue:(t,e,n,r)=>!t.isValid(e)&&!!n?n:r(e),getV7HiddenInputValueFromSections:aK,getV6InputValueFromSections:lK,getActiveDateManager:(t,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!t.isValid(n)?e.referenceValue:n})}),parseValueStr:(t,e,n)=>n(t.trim(),e)},au=({props:t,value:e,timezone:n,adapter:r})=>{if(e===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:a,disableFuture:l}=t,u=r.utils.date(void 0,n),f=Yr(r.utils,t.minDate,r.defaultDates.minDate),p=Yr(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(e):return"invalidDate";case!!(o&&o(e)):return"shouldDisableDate";case!!(i&&i(e)):return"shouldDisableMonth";case!!(s&&s(e)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(e,u)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(e,u)):return"disablePast";case!!(f&&r.utils.isBeforeDay(e,f)):return"minDate";case!!(p&&r.utils.isAfterDay(e,p)):return"maxDate";default:return null}};au.valueManager=Io;const a2=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yK=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],bK=["minDateTime","maxDateTime"],vK=[...a2,...yK,...bK],l2=t=>vK.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{}),xK=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ne({},t)}}}}),c2=t=>{const{utils:e,formatKey:n,contextTranslation:r,propsTranslation:o}=t;return i=>{const s=i!==null&&e.isValid(i)?e.format(i,n):null;return(o??r)(i,e,s)}},u2={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n,r)=>`Select ${t}. ${!r&&(e===null||!n.isValid(e))?"No time selected":`Selected time is ${r??n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose date, selected date is ${n??e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose time, selected time is ${n??e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},SK=u2;xK(u2);const Js=()=>{const t=A.useContext(bf);if(t===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
125
125
  `));if(t.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
126
- `));const e=A.useMemo(()=>ne({},SK,t.localeText),[t.localeText]);return A.useMemo(()=>ne({},t,{localeText:e}),[t,e])},Kt=()=>Js().utils,lu=()=>Js().defaultDates,zp=t=>{const e=Kt(),n=A.useRef();return n.current===void 0&&(n.current=e.date(void 0,t)),n.current};function d2(t){const{props:e,validator:n,value:r,timezone:o,onError:i}=t,s=Js(),a=A.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:o,props:e}),u=n.valueManager.hasError(l);A.useEffect(()=>{i&&!n.valueManager.isSameError(l,a.current)&&i(l,r),a.current=l},[n,i,l,r]);const f=$e(p=>n({adapter:s,value:p,timezone:o,props:e}));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:f}}const mi=()=>Js().localeText,CK=({utils:t,format:e})=>{let n=10,r=e,o=t.expandFormat(e);for(;o!==r;)if(r=o,o=t.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},wK=({utils:t,expandedFormat:e})=>{const n=[],{start:r,end:o}=t.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(e);)n.push({start:s.index,end:i.lastIndex-1});return n},TK=(t,e,n,r)=>{switch(n.type){case"year":return e.fieldYearPlaceholder({digitAmount:t.formatByString(t.date(void 0,"default"),r).length,format:r});case"month":return e.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return e.fieldDayPlaceholder({format:r});case"weekDay":return e.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return e.fieldHoursPlaceholder({format:r});case"minutes":return e.fieldMinutesPlaceholder({format:r});case"seconds":return e.fieldSecondsPlaceholder({format:r});case"meridiem":return e.fieldMeridiemPlaceholder({format:r});default:return r}},_K=({utils:t,date:e,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:s,startSeparator:a})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=ux(t,s),u=s2(t,l.contentType,l.type,s),f=n?u:l.contentType==="digit",p=e!=null&&t.isValid(e);let m=p?t.formatByString(e,s):"",g=null;if(f)if(u)g=m===""?t.formatByString(i,s).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);g=l.maxLength,p&&(m=dx(r2(Vs(m,o),g),o))}return ne({},l,{format:s,maxLength:g,value:m,placeholder:TK(t,r,l,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:a,endSeparator:"",modified:!1})},kK=t=>{var g;const{utils:e,expandedFormat:n,escapedParts:r}=t,o=e.date(void 0),i=[];let s="";const a=Object.keys(e.formatTokenMap).sort((y,b)=>b.length-y.length),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),f=new RegExp(`^(${a.join("|")})`),p=y=>r.find(b=>b.start<=y&&b.end>=y);let m=0;for(;m<n.length;){const y=p(m),b=y!=null,S=(g=l.exec(n.slice(m)))==null?void 0:g[1];if(!b&&S!=null&&u.test(S)){let C=S;for(;C.length>0;){const _=f.exec(C)[1];C=C.slice(_.length),i.push(_K(ne({},t,{now:o,token:_,startSeparator:s}))),s=""}m+=S.length}else{const C=n[m];b&&(y==null?void 0:y.start)===m||(y==null?void 0:y.end)===m||(i.length===0?s+=C:i[i.length-1].endSeparator+=C),m+=1}}return i.length===0&&s.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),i},EK=({isRtl:t,formatDensity:e,sections:n})=>n.map(r=>{const o=i=>{let s=i;return t&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),e==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),ZT=t=>{let e=CK(t);t.isRtl&&t.enableAccessibleFieldDOMStructure&&(e=e.split(" ").reverse().join(" "));const n=wK(ne({},t,{expandedFormat:e})),r=kK(ne({},t,{expandedFormat:e,escapedParts:n}));return EK(ne({},t,{sections:r}))},px=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=Kt(),a=A.useRef(n),l=e??a.current??i.emptyValue,u=A.useMemo(()=>i.getTimezone(s,l),[s,i,l]),f=$e(y=>u==null?y:i.setTimezone(s,u,y));let p;t?p=t:u?p=u:r?p=s.getTimezone(r):p="default";const m=A.useMemo(()=>i.setTimezone(s,p,l),[i,s,p,l]),g=$e((y,...b)=>{const S=f(y);o==null||o(S,...b)});return{value:m,handleValueChange:g,timezone:p}},hx=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=ui({name:t,state:"value",controlled:n,default:r??s.emptyValue}),u=$e((f,...p)=>{l(f),i==null||i(f,...p)});return px({timezone:e,value:a,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:s})},MK=t=>{const e=Kt(),n=mi(),r=Js(),o=co(),{valueManager:i,fieldValueManager:s,valueType:a,validator:l,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:g,format:y,formatDensity:b="dense",selectedSections:S,onSelectedSectionsChange:C,shouldRespectLeadingZeros:_=!1,timezone:T,enableAccessibleFieldDOMStructure:w=!1}}=t,{timezone:E,value:O,handleValueChange:N}=px({timezone:T,value:f,defaultValue:p,referenceDate:m,onChange:g,valueManager:i}),D=A.useMemo(()=>oK(e),[e]),L=A.useMemo(()=>cK(e,D,E),[e,D,E]),M=A.useCallback((Q,fe=null)=>s.getSectionsFromValue(e,Q,fe,ce=>ZT({utils:e,localeText:n,localizedDigits:D,format:y,date:ce,formatDensity:b,shouldRespectLeadingZeros:_,enableAccessibleFieldDOMStructure:w,isRtl:o})),[s,y,n,D,o,_,e,b,w]),[R,P]=A.useState(()=>{const Q=M(O);YT(Q,a);const fe={sections:Q,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},ce=eK(Q),ae=i.getInitialReferenceValue({referenceDate:m,value:O,utils:e,props:u,granularity:ce,timezone:E});return ne({},fe,{referenceValue:ae})}),[z,F]=ui({controlled:S,default:null,name:"useField",state:"selectedSections"}),$=Q=>{F(Q),C==null||C(Q)},B=A.useMemo(()=>z0(z,R.sections),[z,R.sections]),q=B==="all"?0:B,K=({value:Q,referenceValue:fe,sections:ce})=>{if(P(W=>ne({},W,{sections:ce,value:Q,referenceValue:fe,tempValueStrAndroid:null})),i.areValuesEqual(e,R.value,Q))return;const ae={validationError:l({adapter:r,value:Q,timezone:E,props:u})};N(Q,ae)},G=(Q,fe)=>{const ce=[...R.sections];return ce[Q]=ne({},ce[Q],{value:fe,modified:!0}),ce},Y=()=>{K({value:i.emptyValue,referenceValue:R.referenceValue,sections:M(i.emptyValue)})},Z=()=>{if(q==null)return;const Q=R.sections[q],fe=s.getActiveDateManager(e,R,Q),ae=fe.getSections(R.sections).filter(ee=>ee.value!=="").length===(Q.value===""?0:1),W=G(q,""),te=ae?null:e.getInvalidDate(),ue=fe.getNewValuesFromNewActiveDate(te);K(ne({},ue,{sections:W}))},ge=Q=>{const fe=(W,te)=>{const ue=e.parse(W,y);if(ue==null||!e.isValid(ue))return null;const ee=ZT({utils:e,localeText:n,localizedDigits:D,format:y,date:ue,formatDensity:b,shouldRespectLeadingZeros:_,enableAccessibleFieldDOMStructure:w,isRtl:o});return JT(e,ue,ee,te,!1)},ce=s.parseValueStr(Q,R.referenceValue,fe),ae=s.updateReferenceValue(e,ce,R.referenceValue);K({value:ce,referenceValue:ae,sections:M(ce,R.sections)})},he=({activeSection:Q,newSectionValue:fe,shouldGoToNextSection:ce})=>{ce&&q<R.sections.length-1&&$(q+1);const ae=s.getActiveDateManager(e,R,Q),W=G(q,fe),te=ae.getSections(W),ue=sK(e,te,D);let ee,se;if(ue!=null&&e.isValid(ue)){const de=JT(e,ue,te,ae.referenceDate,!0);ee=ae.getNewValuesFromNewActiveDate(de),se=!0}else ee=ae.getNewValuesFromNewActiveDate(ue),se=(ue!=null&&!e.isValid(ue))!=(ae.date!=null&&!e.isValid(ae.date));return se?K(ne({},ee,{sections:W})):P(de=>ne({},de,ee,{sections:W,tempValueStrAndroid:null}))},oe=Q=>P(fe=>ne({},fe,{tempValueStrAndroid:Q}));return A.useEffect(()=>{const Q=M(R.value);YT(Q,a),P(fe=>ne({},fe,{sections:Q}))},[y,e.locale,o]),A.useEffect(()=>{let Q;i.areValuesEqual(e,R.value,O)?Q=i.getTimezone(e,R.value)!==i.getTimezone(e,O):Q=!0,Q&&P(fe=>ne({},fe,{value:O,referenceValue:s.updateReferenceValue(e,O,fe.referenceValue),sections:M(O)}))},[O]),{state:R,activeSectionIndex:q,parsedSelectedSections:B,setSelectedSections:$,clearValue:Y,clearActiveSection:Z,updateSectionValue:he,updateValueFromValueStr:ge,setTempAndroidValueStr:oe,getSectionsFromValue:M,sectionsValueBoundaries:L,localizedDigits:D,timezone:E}},OK=5e3,Ta=t=>t.saveQuery!=null,RK=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const s=Kt(),[a,l]=A.useState(null),u=$e(()=>l(null));A.useEffect(()=>{var y;a!=null&&((y=t[a.sectionIndex])==null?void 0:y.type)!==a.sectionType&&u()},[t,a,u]),A.useEffect(()=>{if(a!=null){const y=setTimeout(()=>u(),OK);return()=>{clearTimeout(y)}}return()=>{}},[a,u]);const f=({keyPressed:y,sectionIndex:b},S,C)=>{const _=y.toLowerCase(),T=t[b];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===b){const E=`${a.value}${_}`,O=S(E,T);if(!Ta(O))return l({sectionIndex:b,value:E,sectionType:T.type}),O}const w=S(_,T);return Ta(w)&&!w.saveQuery?(u(),null):(l({sectionIndex:b,value:_,sectionType:T.type}),Ta(w)?null:w)},p=y=>{const b=(_,T,w)=>{const E=T.filter(O=>O.toLowerCase().startsWith(w));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},S=(_,T,w,E)=>{const O=N=>n2(s,i,T.type,N);if(T.contentType==="letter")return b(T.format,O(T.format),_);if(w&&E!=null&&ux(s,w).contentType==="letter"){const N=O(w),D=b(w,N,_);return Ta(D)?{saveQuery:!1}:ne({},D,{sectionValue:E(D.sectionValue,N)})}return{saveQuery:!1}};return f(y,(_,T)=>{switch(T.type){case"month":{const w=E=>UT(s,E,s.formats.month,T.format);return S(_,T,s.formats.month,w)}case"weekDay":{const w=(E,O)=>O.indexOf(E).toString();return S(_,T,s.formats.weekday,w)}case"meridiem":return S(_,T);default:return{saveQuery:!1}}})},m=y=>{const b=(C,_)=>{const T=Vs(C,r),w=Number(T),E=n[_.type]({currentDate:null,format:_.format,contentType:_.contentType});if(w>E.maximum)return{saveQuery:!1};if(w<E.minimum)return{saveQuery:!0};const O=w*10>E.maximum||T.length===E.maximum.toString().length;return{sectionValue:o2(s,w,E,r,_),shouldGoToNextSection:O}};return f(y,(C,_)=>{if(_.contentType==="digit"||_.contentType==="digit-with-letter")return b(C,_);if(_.type==="month"){const T=s2(s,"digit","month","MM"),w=b(C,{type:_.type,format:"MM",hasLeadingZerosInFormat:T,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ta(w))return w;const E=UT(s,w.sectionValue,"MM",_.format);return ne({},w,{sectionValue:E})}if(_.type==="weekDay"){const T=b(C,_);if(Ta(T))return T;const w=Bp(s,_.format)[Number(T.sectionValue)-1];return ne({},T,{sectionValue:w})}return{saveQuery:!1}},C=>qT(C,r))};return{applyCharacterEditing:$e(y=>{const b=t[y.sectionIndex],C=qT(y.keyPressed,r)?m(ne({},y,{keyPressed:dx(y.keyPressed,r)})):p(y);if(C==null){o(null);return}e({activeSection:b,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:u}};function AK(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const IK=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation())},Tr=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?Tr(e.shadowRoot):e:null},DK="@media (pointer: fine)",PK=t=>{const{internalProps:{disabled:e,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:s,onInput:a,onPaste:l,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:m,resetCharacterQuery:g,setSelectedSections:y,parsedSelectedSections:b,state:S,clearActiveSection:C,clearValue:_,updateSectionValue:T,updateValueFromValueStr:w,sectionOrder:E,areAllSectionsEmpty:O,sectionsValueBoundaries:N}=t,D=A.useRef(null),L=Et(r,D),M=mi(),R=Kt(),P=jo(),[z,F]=A.useState(!1),$=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!D.current)return;const se=document.getSelection();if(!se)return;if(b==null){se.rangeCount>0&&D.current.getRoot().contains(se.getRangeAt(0).startContainer)&&se.removeAllRanges(),z&&D.current.getRoot().blur();return}if(!D.current.getRoot().contains(Tr(document)))return;const de=new window.Range;let ye;b==="all"?ye=D.current.getRoot():S.sections[b].type==="empty"?ye=D.current.getSectionContainer(b):ye=D.current.getSectionContent(b),de.selectNodeContents(ye),ye.focus(),se.removeAllRanges(),se.addRange(de)},getActiveSectionIndexFromDOM:()=>{const se=Tr(document);return!se||!D.current||!D.current.getRoot().contains(se)?null:D.current.getSectionIndexFromDOMElement(se)},focusField:(se=0)=>{if(!D.current)return;const de=z0(se,S.sections);F(!0),D.current.getSectionContent(de).focus()},setSelectedSections:se=>{if(!D.current)return;const de=z0(se,S.sections);F((de==="all"?0:de)!==null),y(se)},isFieldFocused:()=>{const se=Tr(document);return!!D.current&&D.current.getRoot().contains(se)}}),[b,y,S.sections,z]),B=$e(se=>{if(!D.current)return;const de=S.sections[se];D.current.getSectionContent(se).innerHTML=de.value||de.placeholder,$.syncSelectionToDOM()}),q=$e((se,...de)=>{se.isDefaultPrevented()||!D.current||(F(!0),i==null||i(se,...de),b==="all"?setTimeout(()=>{const ye=document.getSelection().getRangeAt(0).startOffset;if(ye===0){y(E.startIndex);return}let Te=0,Se=0;for(;Se<ye&&Te<S.sections.length;){const Me=S.sections[Te];Te+=1,Se+=`${Me.startSeparator}${Me.value||Me.placeholder}${Me.endSeparator}`.length}y(Te-1)}):z?D.current.getRoot().contains(se.target)||y(E.startIndex):(F(!0),y(E.startIndex)))}),K=$e(se=>{if(a==null||a(se),!D.current||b!=="all")return;const ye=se.target.textContent??"";D.current.getRoot().innerHTML=S.sections.map(Te=>`${Te.startSeparator}${Te.value||Te.placeholder}${Te.endSeparator}`).join(""),$.syncSelectionToDOM(),ye.length===0||ye.charCodeAt(0)===10?(g(),_(),y("all")):ye.length>1?w(ye):m({keyPressed:ye,sectionIndex:0})}),G=$e(se=>{if(l==null||l(se),n||b!=="all"){se.preventDefault();return}const de=se.clipboardData.getData("text");se.preventDefault(),g(),w(de)}),Y=$e((...se)=>{if(s==null||s(...se),z||!D.current)return;F(!0),D.current.getSectionIndexFromDOMElement(Tr(document))!=null||y(E.startIndex)}),Z=$e((...se)=>{o==null||o(...se),setTimeout(()=>{if(!D.current)return;const de=Tr(document);!D.current.getRoot().contains(de)&&(F(!1),y(null))})}),ge=$e(se=>de=>{de.isDefaultPrevented()||y(se)}),he=$e(se=>{se.preventDefault()}),oe=$e(se=>()=>{y(se)}),Q=$e(se=>{if(se.preventDefault(),n||e||typeof b!="number")return;const de=S.sections[b],ye=se.clipboardData.getData("text"),Te=/^[a-zA-Z]+$/.test(ye),Se=/^[0-9]+$/.test(ye),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ye);de.contentType==="letter"&&Te||de.contentType==="digit"&&Se||de.contentType==="digit-with-letter"&&Me?(g(),T({activeSection:de,newSectionValue:ye,shouldGoToNextSection:!0})):!Te&&!Se&&(g(),w(ye))}),fe=$e(se=>{se.preventDefault(),se.dataTransfer.dropEffect="none"}),ce=$e(se=>{if(!D.current)return;const de=se.target,ye=de.textContent??"",Te=D.current.getSectionIndexFromDOMElement(de),Se=S.sections[Te];if(n||!D.current){B(Te);return}if(ye.length===0){if(Se.value===""){B(Te);return}const Me=se.nativeEvent.inputType;if(Me==="insertParagraph"||Me==="insertLineBreak"){B(Te);return}g(),C();return}m({keyPressed:ye,sectionIndex:Te}),B(Te)});An(()=>{if(!(!z||!D.current)){if(b==="all")D.current.getRoot().focus();else if(typeof b=="number"){const se=D.current.getSectionContent(b);se&&se.focus()}}},[b,z]);const ae=A.useMemo(()=>S.sections.reduce((se,de)=>(se[de.type]=N[de.type]({currentDate:null,contentType:de.contentType,format:de.format}),se),{}),[N,S.sections]),W=b==="all",te=A.useMemo(()=>S.sections.map((se,de)=>{const ye=!W&&!e&&!n;return{container:{"data-sectionindex":de,onClick:ge(de)},content:{tabIndex:W||de>0?-1:0,contentEditable:!W&&!e&&!n,role:"spinbutton",id:`${P}-${se.type}`,"aria-labelledby":`${P}-${se.type}`,"aria-readonly":n,"aria-valuenow":hK(se,R),"aria-valuemin":ae[se.type].minimum,"aria-valuemax":ae[se.type].maximum,"aria-valuetext":se.value?pK(se,R):M.empty,"aria-label":M[se.type],"aria-disabled":e,spellCheck:ye?!1:void 0,autoCapitalize:ye?"off":void 0,autoCorrect:ye?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ye?"next":void 0,children:se.value||se.placeholder,onInput:ce,onPaste:Q,onFocus:oe(de),onDragOver:fe,onMouseUp:he,inputMode:se.contentType==="letter"?"text":"numeric"},before:{children:se.startSeparator},after:{children:se.endSeparator}}}),[S.sections,oe,Q,fe,ce,ge,he,e,n,W,M,R,ae,P]),ue=$e(se=>{w(se.target.value)}),ee=A.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(S.sections),[O,S.sections,p]);return A.useEffect(()=>{if(D.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
127
- `));f&&D.current&&D.current.getSectionContent(E.startIndex).focus()},[]),{interactions:$,returnedValue:{autoFocus:f,readOnly:n,focused:u??z,sectionListRef:L,onBlur:Z,onClick:q,onFocus:Y,onInput:K,onPaste:G,enableAccessibleFieldDOMStructure:!0,elements:te,tabIndex:b===0?-1:0,contentEditable:W,value:ee,onChange:ue,areAllSectionsEmpty:O}}},ja=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),NK=(t,e,n)=>{let r=0,o=n?1:0;const i=[];for(let s=0;s<t.length;s+=1){const a=t[s],l=fx(a,n?"input-rtl":"input-ltr",e),u=`${a.startSeparator}${l}${a.endSeparator}`,f=ja(u).length,p=u.length,m=ja(l),g=o+(m===""?0:l.indexOf(m[0]))+a.startSeparator.length,y=g+m.length;i.push(ne({},a,{start:r,end:r+f,startInInput:g,endInInput:y})),r+=f,o+=p}return i},LK=t=>{const e=co(),n=A.useRef(),r=A.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:s,onBlur:a,inputRef:l,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:m,activeSectionIndex:g,state:y,fieldValueManager:b,valueManager:S,applyCharacterEditing:C,resetCharacterQuery:_,updateSectionValue:T,updateValueFromValueStr:w,clearActiveSection:E,clearValue:O,setTempAndroidValueStr:N,setSelectedSections:D,getSectionsFromValue:L,areAllSectionsEmpty:M,localizedDigits:R}=t,P=A.useRef(null),z=Et(l,P),F=A.useMemo(()=>NK(y.sections,R,e),[y.sections,R,e]),$=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;if(m==null){P.current.scrollLeft&&(P.current.scrollLeft=0);return}if(P.current!==Tr(document))return;const ce=P.current.scrollTop;if(m==="all")P.current.select();else{const ae=F[m],W=ae.type==="empty"?ae.startInInput-ae.startSeparator.length:ae.startInInput,te=ae.type==="empty"?ae.endInInput+ae.endSeparator.length:ae.endInInput;(W!==P.current.selectionStart||te!==P.current.selectionEnd)&&P.current===Tr(document)&&P.current.setSelectionRange(W,te),clearTimeout(r.current),r.current=setTimeout(()=>{P.current&&P.current===Tr(document)&&P.current.selectionStart===P.current.selectionEnd&&(P.current.selectionStart!==W||P.current.selectionEnd!==te)&&$.syncSelectionToDOM()})}P.current.scrollTop=ce},getActiveSectionIndexFromDOM:()=>{const ce=P.current.selectionStart??0,ae=P.current.selectionEnd??0;if(ce===0&&ae===0)return null;const W=ce<=F[0].startInInput?1:F.findIndex(te=>te.startInInput-te.startSeparator.length>ce);return W===-1?F.length-1:W-1},focusField:(ce=0)=>{var ae;(ae=P.current)==null||ae.focus(),D(ce)},setSelectedSections:ce=>D(ce),isFieldFocused:()=>P.current===Tr(document)}),[P,m,F,D]),B=()=>{const ce=P.current.selectionStart??0;let ae;ce<=F[0].startInInput||ce>=F[F.length-1].endInInput?ae=1:ae=F.findIndex(te=>te.startInInput-te.startSeparator.length>ce);const W=ae===-1?F.length-1:ae-1;D(W)},q=$e((...ce)=>{o==null||o(...ce);const ae=P.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ae||ae!==P.current||g==null&&(ae.value.length&&Number(ae.selectionEnd)-Number(ae.selectionStart)===ae.value.length?D("all"):B())})}),K=$e((ce,...ae)=>{ce.isDefaultPrevented()||(i==null||i(ce,...ae),B())}),G=$e(ce=>{if(s==null||s(ce),ce.preventDefault(),f||p)return;const ae=ce.clipboardData.getData("text");if(typeof m=="number"){const W=y.sections[m],te=/^[a-zA-Z]+$/.test(ae),ue=/^[0-9]+$/.test(ae),ee=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ae);if(W.contentType==="letter"&&te||W.contentType==="digit"&&ue||W.contentType==="digit-with-letter"&&ee){_(),T({activeSection:W,newSectionValue:ae,shouldGoToNextSection:!0});return}if(te||ue)return}_(),w(ae)}),Y=$e((...ce)=>{a==null||a(...ce),D(null)}),Z=$e(ce=>{if(f)return;const ae=ce.target.value;if(ae===""){_(),O();return}const W=ce.nativeEvent.data,te=W&&W.length>1,ue=te?W:ae,ee=ja(ue);if(g==null||te){w(te?W:ee);return}let se;if(m==="all"&&ee.length===1)se=ee;else{const de=ja(b.getV6InputValueFromSections(F,R,e));let ye=-1,Te=-1;for(let Ve=0;Ve<de.length;Ve+=1)ye===-1&&de[Ve]!==ee[Ve]&&(ye=Ve),Te===-1&&de[de.length-Ve-1]!==ee[ee.length-Ve-1]&&(Te=Ve);const Se=F[g];if(ye<Se.start||de.length-Te-1>Se.end)return;const Ne=ee.length-de.length+Se.end-ja(Se.endSeparator||"").length;se=ee.slice(Se.start+ja(Se.startSeparator||"").length,Ne)}if(se.length===0){dK()&&N(ue),_(),E();return}C({keyPressed:se,sectionIndex:g})}),ge=A.useMemo(()=>u!==void 0?u:b.getV6InputValueFromSections(L(S.emptyValue),R,e),[u,b,L,S.emptyValue,R,e]),he=A.useMemo(()=>y.tempValueStrAndroid??b.getV6InputValueFromSections(y.sections,R,e),[y.sections,b,y.tempValueStrAndroid,R,e]);A.useEffect(()=>(P.current&&P.current===Tr(document)&&D("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const oe=A.useMemo(()=>g==null||y.sections[g].contentType==="letter"?"text":"numeric",[g,y.sections]),fe=!(P.current&&P.current===Tr(document))&&M;return{interactions:$,returnedValue:{readOnly:f,onBlur:Y,onClick:K,onFocus:q,onPaste:G,inputRef:z,enableAccessibleFieldDOMStructure:!1,placeholder:ge,inputMode:oe,autoComplete:"off",value:fe?"":he,onChange:Z}}},jK=t=>{const e=Kt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:s=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:u,clearable:f,onClear:p},fieldValueManager:m,valueManager:g,validator:y}=t,b=co(),S=MK(t),{state:C,activeSectionIndex:_,parsedSelectedSections:T,setSelectedSections:w,clearValue:E,clearActiveSection:O,updateSectionValue:N,setTempAndroidValueStr:D,sectionsValueBoundaries:L,localizedDigits:M,timezone:R}=S,P=RK({sections:C.sections,updateSectionValue:N,sectionsValueBoundaries:L,localizedDigits:M,setTempAndroidValueStr:D,timezone:R}),{resetCharacterQuery:z}=P,F=g.areValuesEqual(e,C.value,g.emptyValue),$=i?PK:LK,B=A.useMemo(()=>fK(C.sections,b&&!i),[C.sections,b,i]),{returnedValue:q,interactions:K}=$(ne({},t,S,P,{areAllSectionsEmpty:F,sectionOrder:B})),G=$e(Q=>{if(l==null||l(Q),!s)switch(!0){case((Q.ctrlKey||Q.metaKey)&&String.fromCharCode(Q.keyCode)==="A"&&!Q.shiftKey&&!Q.altKey):{Q.preventDefault(),w("all");break}case Q.key==="ArrowRight":{if(Q.preventDefault(),T==null)w(B.startIndex);else if(T==="all")w(B.endIndex);else{const fe=B.neighbors[T].rightIndex;fe!==null&&w(fe)}break}case Q.key==="ArrowLeft":{if(Q.preventDefault(),T==null)w(B.endIndex);else if(T==="all")w(B.startIndex);else{const fe=B.neighbors[T].leftIndex;fe!==null&&w(fe)}break}case Q.key==="Delete":{if(Q.preventDefault(),a)break;T==null||T==="all"?E():O(),z();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Q.key):{if(Q.preventDefault(),a||_==null)break;const fe=C.sections[_],ce=m.getActiveDateManager(e,C,fe),ae=iK(e,R,fe,Q.key,L,M,ce.date,{minutesStep:o});N({activeSection:fe,newSectionValue:ae,shouldGoToNextSection:!1});break}}});An(()=>{K.syncSelectionToDOM()});const{hasValidationError:Y}=d2({props:n,validator:y,timezone:R,value:C.value,onError:n.onError}),Z=A.useMemo(()=>u!==void 0?u:Y,[Y,u]);A.useEffect(()=>{!Z&&_==null&&z()},[C.referenceValue,_,Z]),A.useEffect(()=>{C.tempValueStrAndroid!=null&&_!=null&&(z(),O())},[C.sections]),A.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:K.getActiveSectionIndexFromDOM,setSelectedSections:K.setSelectedSections,focusField:K.focusField,isFieldFocused:K.isFieldFocused}));const ge=$e((Q,...fe)=>{Q.preventDefault(),p==null||p(Q,...fe),E(),K.isFieldFocused()?w(B.startIndex):K.focusField(0)}),he={onKeyDown:G,onClear:ge,error:Z,clearable:!!(f&&!F&&!a&&!s)},oe={disabled:s,readOnly:a};return ne({},t.forwardedProps,he,oe,q)};class wf{constructor(){Nl(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new wf}static use(){const e=ZR(wf.create).current,[n,r]=A.useState(!1);return e.shouldMount=n,e.setShouldMount=r,A.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=FK(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function $K(){return wf.use()}function FK(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}function f2(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:u}=t,[f,p]=A.useState(!1),m=Pe(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=Pe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&p(!0),A.useEffect(()=>{if(!a&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,a,u]),v.jsx("span",{className:m,style:g,children:v.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(f2.propTypes={classes:c.object.isRequired,className:c.string,in:c.bool,onExited:c.func,pulsate:c.bool,rippleSize:c.number,rippleX:c.number,rippleY:c.number,timeout:c.number.isRequired});const zr=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),V0=550,BK=80,zK=lo.keyframes`
126
+ `));const e=A.useMemo(()=>ne({},SK,t.localeText),[t.localeText]);return A.useMemo(()=>ne({},t,{localeText:e}),[t,e])},Kt=()=>Js().utils,lu=()=>Js().defaultDates,zp=t=>{const e=Kt(),n=A.useRef();return n.current===void 0&&(n.current=e.date(void 0,t)),n.current};function d2(t){const{props:e,validator:n,value:r,timezone:o,onError:i}=t,s=Js(),a=A.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:o,props:e}),u=n.valueManager.hasError(l);A.useEffect(()=>{i&&!n.valueManager.isSameError(l,a.current)&&i(l,r),a.current=l},[n,i,l,r]);const f=$e(p=>n({adapter:s,value:p,timezone:o,props:e}));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:f}}const mi=()=>Js().localeText,CK=({utils:t,format:e})=>{let n=10,r=e,o=t.expandFormat(e);for(;o!==r;)if(r=o,o=t.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},wK=({utils:t,expandedFormat:e})=>{const n=[],{start:r,end:o}=t.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(e);)n.push({start:s.index,end:i.lastIndex-1});return n},TK=(t,e,n,r)=>{switch(n.type){case"year":return e.fieldYearPlaceholder({digitAmount:t.formatByString(t.date(void 0,"default"),r).length,format:r});case"month":return e.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return e.fieldDayPlaceholder({format:r});case"weekDay":return e.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return e.fieldHoursPlaceholder({format:r});case"minutes":return e.fieldMinutesPlaceholder({format:r});case"seconds":return e.fieldSecondsPlaceholder({format:r});case"meridiem":return e.fieldMeridiemPlaceholder({format:r});default:return r}},_K=({utils:t,date:e,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:s,startSeparator:a})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=ux(t,s),u=s2(t,l.contentType,l.type,s),f=n?u:l.contentType==="digit",p=e!=null&&t.isValid(e);let m=p?t.formatByString(e,s):"",g=null;if(f)if(u)g=m===""?t.formatByString(i,s).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);g=l.maxLength,p&&(m=dx(r2(Vs(m,o),g),o))}return ne({},l,{format:s,maxLength:g,value:m,placeholder:TK(t,r,l,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:a,endSeparator:"",modified:!1})},kK=t=>{var g;const{utils:e,expandedFormat:n,escapedParts:r}=t,o=e.date(void 0),i=[];let s="";const a=Object.keys(e.formatTokenMap).sort((y,b)=>b.length-y.length),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),f=new RegExp(`^(${a.join("|")})`),p=y=>r.find(b=>b.start<=y&&b.end>=y);let m=0;for(;m<n.length;){const y=p(m),b=y!=null,S=(g=l.exec(n.slice(m)))==null?void 0:g[1];if(!b&&S!=null&&u.test(S)){let C=S;for(;C.length>0;){const _=f.exec(C)[1];C=C.slice(_.length),i.push(_K(ne({},t,{now:o,token:_,startSeparator:s}))),s=""}m+=S.length}else{const C=n[m];b&&(y==null?void 0:y.start)===m||(y==null?void 0:y.end)===m||(i.length===0?s+=C:i[i.length-1].endSeparator+=C),m+=1}}return i.length===0&&s.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),i},EK=({isRtl:t,formatDensity:e,sections:n})=>n.map(r=>{const o=i=>{let s=i;return t&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),e==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),ZT=t=>{let e=CK(t);t.isRtl&&t.enableAccessibleFieldDOMStructure&&(e=e.split(" ").reverse().join(" "));const n=wK(ne({},t,{expandedFormat:e})),r=kK(ne({},t,{expandedFormat:e,escapedParts:n}));return EK(ne({},t,{sections:r}))},px=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=Kt(),a=A.useRef(n),l=e??a.current??i.emptyValue,u=A.useMemo(()=>i.getTimezone(s,l),[s,i,l]),f=$e(y=>u==null?y:i.setTimezone(s,u,y));let p;t?p=t:u?p=u:r?p=s.getTimezone(r):p="default";const m=A.useMemo(()=>i.setTimezone(s,p,l),[i,s,p,l]),g=$e((y,...b)=>{const S=f(y);o==null||o(S,...b)});return{value:m,handleValueChange:g,timezone:p}},hx=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=ui({name:t,state:"value",controlled:n,default:r??s.emptyValue}),u=$e((f,...p)=>{l(f),i==null||i(f,...p)});return px({timezone:e,value:a,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:s})},MK=t=>{const e=Kt(),n=mi(),r=Js(),o=co(),{valueManager:i,fieldValueManager:s,valueType:a,validator:l,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:g,format:y,formatDensity:b="dense",selectedSections:S,onSelectedSectionsChange:C,shouldRespectLeadingZeros:_=!1,timezone:T,enableAccessibleFieldDOMStructure:w=!1}}=t,{timezone:E,value:O,handleValueChange:N}=px({timezone:T,value:f,defaultValue:p,referenceDate:m,onChange:g,valueManager:i}),D=A.useMemo(()=>oK(e),[e]),L=A.useMemo(()=>cK(e,D,E),[e,D,E]),M=A.useCallback((re,he=null)=>s.getSectionsFromValue(e,re,he,le=>ZT({utils:e,localeText:n,localizedDigits:D,format:y,date:le,formatDensity:b,shouldRespectLeadingZeros:_,enableAccessibleFieldDOMStructure:w,isRtl:o})),[s,y,n,D,o,_,e,b,w]),[R,P]=A.useState(()=>{const re=M(O);YT(re,a);const he={sections:re,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},le=eK(re),X=i.getInitialReferenceValue({referenceDate:m,value:O,utils:e,props:u,granularity:le,timezone:E});return ne({},he,{referenceValue:X})}),[B,z]=ui({controlled:S,default:null,name:"useField",state:"selectedSections"}),$=re=>{z(re),C==null||C(re)},F=A.useMemo(()=>z0(B,R.sections),[B,R.sections]),q=F==="all"?0:F,U=({value:re,referenceValue:he,sections:le})=>{if(P(W=>ne({},W,{sections:le,value:re,referenceValue:he,tempValueStrAndroid:null})),i.areValuesEqual(e,R.value,re))return;const X={validationError:l({adapter:r,value:re,timezone:E,props:u})};N(re,X)},G=(re,he)=>{const le=[...R.sections];return le[re]=ne({},le[re],{value:he,modified:!0}),le},Y=()=>{U({value:i.emptyValue,referenceValue:R.referenceValue,sections:M(i.emptyValue)})},Z=()=>{if(q==null)return;const re=R.sections[q],he=s.getActiveDateManager(e,R,re),X=he.getSections(R.sections).filter(te=>te.value!=="").length===(re.value===""?0:1),W=G(q,""),ee=X?null:e.getInvalidDate(),ce=he.getNewValuesFromNewActiveDate(ee);U(ne({},ce,{sections:W}))},fe=re=>{const he=(W,ee)=>{const ce=e.parse(W,y);if(ce==null||!e.isValid(ce))return null;const te=ZT({utils:e,localeText:n,localizedDigits:D,format:y,date:ce,formatDensity:b,shouldRespectLeadingZeros:_,enableAccessibleFieldDOMStructure:w,isRtl:o});return JT(e,ce,te,ee,!1)},le=s.parseValueStr(re,R.referenceValue,he),X=s.updateReferenceValue(e,le,R.referenceValue);U({value:le,referenceValue:X,sections:M(le,R.sections)})},pe=({activeSection:re,newSectionValue:he,shouldGoToNextSection:le})=>{le&&q<R.sections.length-1&&$(q+1);const X=s.getActiveDateManager(e,R,re),W=G(q,he),ee=X.getSections(W),ce=sK(e,ee,D);let te,se;if(ce!=null&&e.isValid(ce)){const ue=JT(e,ce,ee,X.referenceDate,!0);te=X.getNewValuesFromNewActiveDate(ue),se=!0}else te=X.getNewValuesFromNewActiveDate(ce),se=(ce!=null&&!e.isValid(ce))!=(X.date!=null&&!e.isValid(X.date));return se?U(ne({},te,{sections:W})):P(ue=>ne({},ue,te,{sections:W,tempValueStrAndroid:null}))},ge=re=>P(he=>ne({},he,{tempValueStrAndroid:re}));return A.useEffect(()=>{const re=M(R.value);YT(re,a),P(he=>ne({},he,{sections:re}))},[y,e.locale,o]),A.useEffect(()=>{let re;i.areValuesEqual(e,R.value,O)?re=i.getTimezone(e,R.value)!==i.getTimezone(e,O):re=!0,re&&P(he=>ne({},he,{value:O,referenceValue:s.updateReferenceValue(e,O,he.referenceValue),sections:M(O)}))},[O]),{state:R,activeSectionIndex:q,parsedSelectedSections:F,setSelectedSections:$,clearValue:Y,clearActiveSection:Z,updateSectionValue:pe,updateValueFromValueStr:fe,setTempAndroidValueStr:ge,getSectionsFromValue:M,sectionsValueBoundaries:L,localizedDigits:D,timezone:E}},OK=5e3,Ta=t=>t.saveQuery!=null,RK=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const s=Kt(),[a,l]=A.useState(null),u=$e(()=>l(null));A.useEffect(()=>{var y;a!=null&&((y=t[a.sectionIndex])==null?void 0:y.type)!==a.sectionType&&u()},[t,a,u]),A.useEffect(()=>{if(a!=null){const y=setTimeout(()=>u(),OK);return()=>{clearTimeout(y)}}return()=>{}},[a,u]);const f=({keyPressed:y,sectionIndex:b},S,C)=>{const _=y.toLowerCase(),T=t[b];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===b){const E=`${a.value}${_}`,O=S(E,T);if(!Ta(O))return l({sectionIndex:b,value:E,sectionType:T.type}),O}const w=S(_,T);return Ta(w)&&!w.saveQuery?(u(),null):(l({sectionIndex:b,value:_,sectionType:T.type}),Ta(w)?null:w)},p=y=>{const b=(_,T,w)=>{const E=T.filter(O=>O.toLowerCase().startsWith(w));return E.length===0?{saveQuery:!1}:{sectionValue:E[0],shouldGoToNextSection:E.length===1}},S=(_,T,w,E)=>{const O=N=>n2(s,i,T.type,N);if(T.contentType==="letter")return b(T.format,O(T.format),_);if(w&&E!=null&&ux(s,w).contentType==="letter"){const N=O(w),D=b(w,N,_);return Ta(D)?{saveQuery:!1}:ne({},D,{sectionValue:E(D.sectionValue,N)})}return{saveQuery:!1}};return f(y,(_,T)=>{switch(T.type){case"month":{const w=E=>UT(s,E,s.formats.month,T.format);return S(_,T,s.formats.month,w)}case"weekDay":{const w=(E,O)=>O.indexOf(E).toString();return S(_,T,s.formats.weekday,w)}case"meridiem":return S(_,T);default:return{saveQuery:!1}}})},m=y=>{const b=(C,_)=>{const T=Vs(C,r),w=Number(T),E=n[_.type]({currentDate:null,format:_.format,contentType:_.contentType});if(w>E.maximum)return{saveQuery:!1};if(w<E.minimum)return{saveQuery:!0};const O=w*10>E.maximum||T.length===E.maximum.toString().length;return{sectionValue:o2(s,w,E,r,_),shouldGoToNextSection:O}};return f(y,(C,_)=>{if(_.contentType==="digit"||_.contentType==="digit-with-letter")return b(C,_);if(_.type==="month"){const T=s2(s,"digit","month","MM"),w=b(C,{type:_.type,format:"MM",hasLeadingZerosInFormat:T,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ta(w))return w;const E=UT(s,w.sectionValue,"MM",_.format);return ne({},w,{sectionValue:E})}if(_.type==="weekDay"){const T=b(C,_);if(Ta(T))return T;const w=Bp(s,_.format)[Number(T.sectionValue)-1];return ne({},T,{sectionValue:w})}return{saveQuery:!1}},C=>qT(C,r))};return{applyCharacterEditing:$e(y=>{const b=t[y.sectionIndex],C=qT(y.keyPressed,r)?m(ne({},y,{keyPressed:dx(y.keyPressed,r)})):p(y);if(C==null){o(null);return}e({activeSection:b,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:u}};function AK(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const IK=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation())},Tr=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?Tr(e.shadowRoot):e:null},DK="@media (pointer: fine)",PK=t=>{const{internalProps:{disabled:e,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:s,onInput:a,onPaste:l,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:m,resetCharacterQuery:g,setSelectedSections:y,parsedSelectedSections:b,state:S,clearActiveSection:C,clearValue:_,updateSectionValue:T,updateValueFromValueStr:w,sectionOrder:E,areAllSectionsEmpty:O,sectionsValueBoundaries:N}=t,D=A.useRef(null),L=Et(r,D),M=mi(),R=Kt(),P=jo(),[B,z]=A.useState(!1),$=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!D.current)return;const se=document.getSelection();if(!se)return;if(b==null){se.rangeCount>0&&D.current.getRoot().contains(se.getRangeAt(0).startContainer)&&se.removeAllRanges(),B&&D.current.getRoot().blur();return}if(!D.current.getRoot().contains(Tr(document)))return;const ue=new window.Range;let ye;b==="all"?ye=D.current.getRoot():S.sections[b].type==="empty"?ye=D.current.getSectionContainer(b):ye=D.current.getSectionContent(b),ue.selectNodeContents(ye),ye.focus(),se.removeAllRanges(),se.addRange(ue)},getActiveSectionIndexFromDOM:()=>{const se=Tr(document);return!se||!D.current||!D.current.getRoot().contains(se)?null:D.current.getSectionIndexFromDOMElement(se)},focusField:(se=0)=>{if(!D.current)return;const ue=z0(se,S.sections);z(!0),D.current.getSectionContent(ue).focus()},setSelectedSections:se=>{if(!D.current)return;const ue=z0(se,S.sections);z((ue==="all"?0:ue)!==null),y(se)},isFieldFocused:()=>{const se=Tr(document);return!!D.current&&D.current.getRoot().contains(se)}}),[b,y,S.sections,B]),F=$e(se=>{if(!D.current)return;const ue=S.sections[se];D.current.getSectionContent(se).innerHTML=ue.value||ue.placeholder,$.syncSelectionToDOM()}),q=$e((se,...ue)=>{se.isDefaultPrevented()||!D.current||(z(!0),i==null||i(se,...ue),b==="all"?setTimeout(()=>{const ye=document.getSelection().getRangeAt(0).startOffset;if(ye===0){y(E.startIndex);return}let Te=0,Se=0;for(;Se<ye&&Te<S.sections.length;){const Me=S.sections[Te];Te+=1,Se+=`${Me.startSeparator}${Me.value||Me.placeholder}${Me.endSeparator}`.length}y(Te-1)}):B?D.current.getRoot().contains(se.target)||y(E.startIndex):(z(!0),y(E.startIndex)))}),U=$e(se=>{if(a==null||a(se),!D.current||b!=="all")return;const ye=se.target.textContent??"";D.current.getRoot().innerHTML=S.sections.map(Te=>`${Te.startSeparator}${Te.value||Te.placeholder}${Te.endSeparator}`).join(""),$.syncSelectionToDOM(),ye.length===0||ye.charCodeAt(0)===10?(g(),_(),y("all")):ye.length>1?w(ye):m({keyPressed:ye,sectionIndex:0})}),G=$e(se=>{if(l==null||l(se),n||b!=="all"){se.preventDefault();return}const ue=se.clipboardData.getData("text");se.preventDefault(),g(),w(ue)}),Y=$e((...se)=>{if(s==null||s(...se),B||!D.current)return;z(!0),D.current.getSectionIndexFromDOMElement(Tr(document))!=null||y(E.startIndex)}),Z=$e((...se)=>{o==null||o(...se),setTimeout(()=>{if(!D.current)return;const ue=Tr(document);!D.current.getRoot().contains(ue)&&(z(!1),y(null))})}),fe=$e(se=>ue=>{ue.isDefaultPrevented()||y(se)}),pe=$e(se=>{se.preventDefault()}),ge=$e(se=>()=>{y(se)}),re=$e(se=>{if(se.preventDefault(),n||e||typeof b!="number")return;const ue=S.sections[b],ye=se.clipboardData.getData("text"),Te=/^[a-zA-Z]+$/.test(ye),Se=/^[0-9]+$/.test(ye),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ye);ue.contentType==="letter"&&Te||ue.contentType==="digit"&&Se||ue.contentType==="digit-with-letter"&&Me?(g(),T({activeSection:ue,newSectionValue:ye,shouldGoToNextSection:!0})):!Te&&!Se&&(g(),w(ye))}),he=$e(se=>{se.preventDefault(),se.dataTransfer.dropEffect="none"}),le=$e(se=>{if(!D.current)return;const ue=se.target,ye=ue.textContent??"",Te=D.current.getSectionIndexFromDOMElement(ue),Se=S.sections[Te];if(n||!D.current){F(Te);return}if(ye.length===0){if(Se.value===""){F(Te);return}const Me=se.nativeEvent.inputType;if(Me==="insertParagraph"||Me==="insertLineBreak"){F(Te);return}g(),C();return}m({keyPressed:ye,sectionIndex:Te}),F(Te)});An(()=>{if(!(!B||!D.current)){if(b==="all")D.current.getRoot().focus();else if(typeof b=="number"){const se=D.current.getSectionContent(b);se&&se.focus()}}},[b,B]);const X=A.useMemo(()=>S.sections.reduce((se,ue)=>(se[ue.type]=N[ue.type]({currentDate:null,contentType:ue.contentType,format:ue.format}),se),{}),[N,S.sections]),W=b==="all",ee=A.useMemo(()=>S.sections.map((se,ue)=>{const ye=!W&&!e&&!n;return{container:{"data-sectionindex":ue,onClick:fe(ue)},content:{tabIndex:W||ue>0?-1:0,contentEditable:!W&&!e&&!n,role:"spinbutton",id:`${P}-${se.type}`,"aria-labelledby":`${P}-${se.type}`,"aria-readonly":n,"aria-valuenow":hK(se,R),"aria-valuemin":X[se.type].minimum,"aria-valuemax":X[se.type].maximum,"aria-valuetext":se.value?pK(se,R):M.empty,"aria-label":M[se.type],"aria-disabled":e,spellCheck:ye?!1:void 0,autoCapitalize:ye?"off":void 0,autoCorrect:ye?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ye?"next":void 0,children:se.value||se.placeholder,onInput:le,onPaste:re,onFocus:ge(ue),onDragOver:he,onMouseUp:pe,inputMode:se.contentType==="letter"?"text":"numeric"},before:{children:se.startSeparator},after:{children:se.endSeparator}}}),[S.sections,ge,re,he,le,fe,pe,e,n,W,M,R,X,P]),ce=$e(se=>{w(se.target.value)}),te=A.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(S.sections),[O,S.sections,p]);return A.useEffect(()=>{if(D.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
127
+ `));f&&D.current&&D.current.getSectionContent(E.startIndex).focus()},[]),{interactions:$,returnedValue:{autoFocus:f,readOnly:n,focused:u??B,sectionListRef:L,onBlur:Z,onClick:q,onFocus:Y,onInput:U,onPaste:G,enableAccessibleFieldDOMStructure:!0,elements:ee,tabIndex:b===0?-1:0,contentEditable:W,value:te,onChange:ce,areAllSectionsEmpty:O}}},ja=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),NK=(t,e,n)=>{let r=0,o=n?1:0;const i=[];for(let s=0;s<t.length;s+=1){const a=t[s],l=fx(a,n?"input-rtl":"input-ltr",e),u=`${a.startSeparator}${l}${a.endSeparator}`,f=ja(u).length,p=u.length,m=ja(l),g=o+(m===""?0:l.indexOf(m[0]))+a.startSeparator.length,y=g+m.length;i.push(ne({},a,{start:r,end:r+f,startInInput:g,endInInput:y})),r+=f,o+=p}return i},LK=t=>{const e=co(),n=A.useRef(),r=A.useRef(),{forwardedProps:{onFocus:o,onClick:i,onPaste:s,onBlur:a,inputRef:l,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:m,activeSectionIndex:g,state:y,fieldValueManager:b,valueManager:S,applyCharacterEditing:C,resetCharacterQuery:_,updateSectionValue:T,updateValueFromValueStr:w,clearActiveSection:E,clearValue:O,setTempAndroidValueStr:N,setSelectedSections:D,getSectionsFromValue:L,areAllSectionsEmpty:M,localizedDigits:R}=t,P=A.useRef(null),B=Et(l,P),z=A.useMemo(()=>NK(y.sections,R,e),[y.sections,R,e]),$=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!P.current)return;if(m==null){P.current.scrollLeft&&(P.current.scrollLeft=0);return}if(P.current!==Tr(document))return;const le=P.current.scrollTop;if(m==="all")P.current.select();else{const X=z[m],W=X.type==="empty"?X.startInInput-X.startSeparator.length:X.startInInput,ee=X.type==="empty"?X.endInInput+X.endSeparator.length:X.endInInput;(W!==P.current.selectionStart||ee!==P.current.selectionEnd)&&P.current===Tr(document)&&P.current.setSelectionRange(W,ee),clearTimeout(r.current),r.current=setTimeout(()=>{P.current&&P.current===Tr(document)&&P.current.selectionStart===P.current.selectionEnd&&(P.current.selectionStart!==W||P.current.selectionEnd!==ee)&&$.syncSelectionToDOM()})}P.current.scrollTop=le},getActiveSectionIndexFromDOM:()=>{const le=P.current.selectionStart??0,X=P.current.selectionEnd??0;if(le===0&&X===0)return null;const W=le<=z[0].startInInput?1:z.findIndex(ee=>ee.startInInput-ee.startSeparator.length>le);return W===-1?z.length-1:W-1},focusField:(le=0)=>{var X;(X=P.current)==null||X.focus(),D(le)},setSelectedSections:le=>D(le),isFieldFocused:()=>P.current===Tr(document)}),[P,m,z,D]),F=()=>{const le=P.current.selectionStart??0;let X;le<=z[0].startInInput||le>=z[z.length-1].endInInput?X=1:X=z.findIndex(ee=>ee.startInInput-ee.startSeparator.length>le);const W=X===-1?z.length-1:X-1;D(W)},q=$e((...le)=>{o==null||o(...le);const X=P.current;clearTimeout(n.current),n.current=setTimeout(()=>{!X||X!==P.current||g==null&&(X.value.length&&Number(X.selectionEnd)-Number(X.selectionStart)===X.value.length?D("all"):F())})}),U=$e((le,...X)=>{le.isDefaultPrevented()||(i==null||i(le,...X),F())}),G=$e(le=>{if(s==null||s(le),le.preventDefault(),f||p)return;const X=le.clipboardData.getData("text");if(typeof m=="number"){const W=y.sections[m],ee=/^[a-zA-Z]+$/.test(X),ce=/^[0-9]+$/.test(X),te=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(X);if(W.contentType==="letter"&&ee||W.contentType==="digit"&&ce||W.contentType==="digit-with-letter"&&te){_(),T({activeSection:W,newSectionValue:X,shouldGoToNextSection:!0});return}if(ee||ce)return}_(),w(X)}),Y=$e((...le)=>{a==null||a(...le),D(null)}),Z=$e(le=>{if(f)return;const X=le.target.value;if(X===""){_(),O();return}const W=le.nativeEvent.data,ee=W&&W.length>1,ce=ee?W:X,te=ja(ce);if(g==null||ee){w(ee?W:te);return}let se;if(m==="all"&&te.length===1)se=te;else{const ue=ja(b.getV6InputValueFromSections(z,R,e));let ye=-1,Te=-1;for(let Ve=0;Ve<ue.length;Ve+=1)ye===-1&&ue[Ve]!==te[Ve]&&(ye=Ve),Te===-1&&ue[ue.length-Ve-1]!==te[te.length-Ve-1]&&(Te=Ve);const Se=z[g];if(ye<Se.start||ue.length-Te-1>Se.end)return;const Ne=te.length-ue.length+Se.end-ja(Se.endSeparator||"").length;se=te.slice(Se.start+ja(Se.startSeparator||"").length,Ne)}if(se.length===0){dK()&&N(ce),_(),E();return}C({keyPressed:se,sectionIndex:g})}),fe=A.useMemo(()=>u!==void 0?u:b.getV6InputValueFromSections(L(S.emptyValue),R,e),[u,b,L,S.emptyValue,R,e]),pe=A.useMemo(()=>y.tempValueStrAndroid??b.getV6InputValueFromSections(y.sections,R,e),[y.sections,b,y.tempValueStrAndroid,R,e]);A.useEffect(()=>(P.current&&P.current===Tr(document)&&D("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ge=A.useMemo(()=>g==null||y.sections[g].contentType==="letter"?"text":"numeric",[g,y.sections]),he=!(P.current&&P.current===Tr(document))&&M;return{interactions:$,returnedValue:{readOnly:f,onBlur:Y,onClick:U,onFocus:q,onPaste:G,inputRef:B,enableAccessibleFieldDOMStructure:!1,placeholder:fe,inputMode:ge,autoComplete:"off",value:he?"":pe,onChange:Z}}},jK=t=>{const e=Kt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:s=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:u,clearable:f,onClear:p},fieldValueManager:m,valueManager:g,validator:y}=t,b=co(),S=MK(t),{state:C,activeSectionIndex:_,parsedSelectedSections:T,setSelectedSections:w,clearValue:E,clearActiveSection:O,updateSectionValue:N,setTempAndroidValueStr:D,sectionsValueBoundaries:L,localizedDigits:M,timezone:R}=S,P=RK({sections:C.sections,updateSectionValue:N,sectionsValueBoundaries:L,localizedDigits:M,setTempAndroidValueStr:D,timezone:R}),{resetCharacterQuery:B}=P,z=g.areValuesEqual(e,C.value,g.emptyValue),$=i?PK:LK,F=A.useMemo(()=>fK(C.sections,b&&!i),[C.sections,b,i]),{returnedValue:q,interactions:U}=$(ne({},t,S,P,{areAllSectionsEmpty:z,sectionOrder:F})),G=$e(re=>{if(l==null||l(re),!s)switch(!0){case((re.ctrlKey||re.metaKey)&&String.fromCharCode(re.keyCode)==="A"&&!re.shiftKey&&!re.altKey):{re.preventDefault(),w("all");break}case re.key==="ArrowRight":{if(re.preventDefault(),T==null)w(F.startIndex);else if(T==="all")w(F.endIndex);else{const he=F.neighbors[T].rightIndex;he!==null&&w(he)}break}case re.key==="ArrowLeft":{if(re.preventDefault(),T==null)w(F.endIndex);else if(T==="all")w(F.startIndex);else{const he=F.neighbors[T].leftIndex;he!==null&&w(he)}break}case re.key==="Delete":{if(re.preventDefault(),a)break;T==null||T==="all"?E():O(),B();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(re.key):{if(re.preventDefault(),a||_==null)break;const he=C.sections[_],le=m.getActiveDateManager(e,C,he),X=iK(e,R,he,re.key,L,M,le.date,{minutesStep:o});N({activeSection:he,newSectionValue:X,shouldGoToNextSection:!1});break}}});An(()=>{U.syncSelectionToDOM()});const{hasValidationError:Y}=d2({props:n,validator:y,timezone:R,value:C.value,onError:n.onError}),Z=A.useMemo(()=>u!==void 0?u:Y,[Y,u]);A.useEffect(()=>{!Z&&_==null&&B()},[C.referenceValue,_,Z]),A.useEffect(()=>{C.tempValueStrAndroid!=null&&_!=null&&(B(),O())},[C.sections]),A.useImperativeHandle(r,()=>({getSections:()=>C.sections,getActiveSectionIndex:U.getActiveSectionIndexFromDOM,setSelectedSections:U.setSelectedSections,focusField:U.focusField,isFieldFocused:U.isFieldFocused}));const fe=$e((re,...he)=>{re.preventDefault(),p==null||p(re,...he),E(),U.isFieldFocused()?w(F.startIndex):U.focusField(0)}),pe={onKeyDown:G,onClear:fe,error:Z,clearable:!!(f&&!z&&!a&&!s)},ge={disabled:s,readOnly:a};return ne({},t.forwardedProps,pe,ge,q)};class wf{constructor(){Nl(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new wf}static use(){const e=ZR(wf.create).current,[n,r]=A.useState(!1);return e.shouldMount=n,e.setShouldMount=r,A.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=FK(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function $K(){return wf.use()}function FK(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}function f2(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:u}=t,[f,p]=A.useState(!1),m=Pe(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},y=Pe(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&p(!0),A.useEffect(()=>{if(!a&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,a,u]),v.jsx("span",{className:m,style:g,children:v.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(f2.propTypes={classes:c.object.isRequired,className:c.string,in:c.bool,onExited:c.func,pulsate:c.bool,rippleSize:c.number,rippleX:c.number,rippleY:c.number,timeout:c.number.isRequired});const zr=We("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),V0=550,BK=80,zK=lo.keyframes`
128
128
  0% {
129
129
  transform: scale(0);
130
130
  opacity: 0.1;
@@ -197,7 +197,7 @@ function print() { __p += __j.call(arguments, '') }
197
197
  animation-iteration-count: infinite;
198
198
  animation-delay: 200ms;
199
199
  }
200
- `,p2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,u]=A.useState([]),f=A.useRef(0),p=A.useRef(null);A.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const m=A.useRef(!1),g=XR(),y=A.useRef(null),b=A.useRef(null),S=A.useCallback(w=>{const{pulsate:E,rippleX:O,rippleY:N,rippleSize:D,cb:L}=w;u(M=>[...M,v.jsx(qK,{classes:{ripple:Pe(i.ripple,zr.ripple),rippleVisible:Pe(i.rippleVisible,zr.rippleVisible),ripplePulsate:Pe(i.ripplePulsate,zr.ripplePulsate),child:Pe(i.child,zr.child),childLeaving:Pe(i.childLeaving,zr.childLeaving),childPulsate:Pe(i.childPulsate,zr.childPulsate)},timeout:V0,pulsate:E,rippleX:O,rippleY:N,rippleSize:D},f.current)]),f.current+=1,p.current=L},[i]),C=A.useCallback((w={},E={},O=()=>{})=>{const{pulsate:N=!1,center:D=o||E.pulsate,fakeElement:L=!1}=E;if((w==null?void 0:w.type)==="mousedown"&&m.current){m.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(m.current=!0);const M=L?null:b.current,R=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,z,F;if(D||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)P=Math.round(R.width/2),z=Math.round(R.height/2);else{const{clientX:$,clientY:B}=w.touches&&w.touches.length>0?w.touches[0]:w;P=Math.round($-R.left),z=Math.round(B-R.top)}if(D)F=Math.sqrt((2*R.width**2+R.height**2)/3),F%2===0&&(F+=1);else{const $=Math.max(Math.abs((M?M.clientWidth:0)-P),P)*2+2,B=Math.max(Math.abs((M?M.clientHeight:0)-z),z)*2+2;F=Math.sqrt($**2+B**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{S({pulsate:N,rippleX:P,rippleY:z,rippleSize:F,cb:O})},g.start(BK,()=>{y.current&&(y.current(),y.current=null)})):S({pulsate:N,rippleX:P,rippleY:z,rippleSize:F,cb:O})},[o,S,g]),_=A.useCallback(()=>{C({},{pulsate:!0})},[C]),T=A.useCallback((w,E)=>{if(g.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{T(w,E)});return}y.current=null,u(O=>O.length>0?O.slice(1):O),p.current=E},[g]);return A.useImperativeHandle(n,()=>({pulsate:_,start:C,stop:T}),[_,C,T]),v.jsx(WK,{className:Pe(zr.root,i.root,s),ref:b,...a,children:v.jsx(su,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(p2.propTypes={center:c.bool,classes:c.object,className:c.string});function UK(t){return Ye("MuiButtonBase",t)}const KK=We("MuiButtonBase",["root","disabled","focusVisible"]),YK=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=Ke({root:["root",e&&"disabled",n&&"focusVisible"]},UK,o);return n&&r&&(s.root+=` ${r}`),s},GK=be("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qa=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:b,onClick:S,onContextMenu:C,onDragLeave:_,onFocus:T,onFocusVisible:w,onKeyDown:E,onKeyUp:O,onMouseDown:N,onMouseLeave:D,onMouseUp:L,onTouchEnd:M,onTouchMove:R,onTouchStart:P,tabIndex:z=0,TouchRippleProps:F,touchRippleRef:$,type:B,...q}=r,K=A.useRef(null),G=$K(),Y=Et(G.ref,$),[Z,ge]=A.useState(!1);u&&Z&&ge(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{ge(!0),K.current.focus()}}),[]);const he=G.shouldMount&&!f&&!u;A.useEffect(()=>{Z&&m&&!f&&G.pulsate()},[f,m,Z,G]);const oe=Jo(G,"start",N,p),Q=Jo(G,"stop",C,p),fe=Jo(G,"stop",_,p),ce=Jo(G,"stop",L,p),ae=Jo(G,"stop",Ie=>{Z&&Ie.preventDefault(),D&&D(Ie)},p),W=Jo(G,"start",P,p),te=Jo(G,"stop",M,p),ue=Jo(G,"stop",R,p),ee=Jo(G,"stop",Ie=>{Iw(Ie.target)||ge(!1),b&&b(Ie)},!1),se=$e(Ie=>{K.current||(K.current=Ie.currentTarget),Iw(Ie.target)&&(ge(!0),w&&w(Ie)),T&&T(Ie)}),de=()=>{const Ie=K.current;return l&&l!=="button"&&!(Ie.tagName==="A"&&Ie.href)},ye=$e(Ie=>{m&&!Ie.repeat&&Z&&Ie.key===" "&&G.stop(Ie,()=>{G.start(Ie)}),Ie.target===Ie.currentTarget&&de()&&Ie.key===" "&&Ie.preventDefault(),E&&E(Ie),Ie.target===Ie.currentTarget&&de()&&Ie.key==="Enter"&&!u&&(Ie.preventDefault(),S&&S(Ie))}),Te=$e(Ie=>{m&&Ie.key===" "&&Z&&!Ie.defaultPrevented&&G.stop(Ie,()=>{G.pulsate(Ie)}),O&&O(Ie),S&&Ie.target===Ie.currentTarget&&de()&&Ie.key===" "&&!Ie.defaultPrevented&&S(Ie)});let Se=l;Se==="button"&&(q.href||q.to)&&(Se=y);const Me={};Se==="button"?(Me.type=B===void 0?"button":B,Me.disabled=u):(!q.href&&!q.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const Ne=Et(n,K),Ve={...r,centerRipple:i,component:l,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:z,focusVisible:Z},Ge=YK(Ve);return v.jsxs(GK,{as:Se,className:Pe(Ge.root,a),ownerState:Ve,onBlur:ee,onClick:S,onContextMenu:Q,onFocus:se,onKeyDown:ye,onKeyUp:Te,onMouseDown:oe,onMouseLeave:ae,onMouseUp:ce,onDragLeave:fe,onTouchEnd:te,onTouchMove:ue,onTouchStart:W,ref:Ne,tabIndex:u?-1:z,type:B,...Me,...q,children:[s,he?v.jsx(p2,{ref:Y,center:i,...F}):null]})});function Jo(t,e,n,r=!1){return $e(o=>(n&&n(o),r||t[e](o),!0))}process.env.NODE_ENV!=="production"&&(Qa.propTypes={action:gn,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:bp,disabled:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,href:c.any,LinkComponent:c.elementType,onBlur:c.func,onClick:c.func,onContextMenu:c.func,onDragLeave:c.func,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onKeyUp:c.func,onMouseDown:c.func,onMouseLeave:c.func,onMouseUp:c.func,onTouchEnd:c.func,onTouchMove:c.func,onTouchStart:c.func,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string])});function JK(t){return Ye("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ki=44,H0=lo.keyframes`
200
+ `,p2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,u]=A.useState([]),f=A.useRef(0),p=A.useRef(null);A.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const m=A.useRef(!1),g=XR(),y=A.useRef(null),b=A.useRef(null),S=A.useCallback(w=>{const{pulsate:E,rippleX:O,rippleY:N,rippleSize:D,cb:L}=w;u(M=>[...M,v.jsx(qK,{classes:{ripple:Pe(i.ripple,zr.ripple),rippleVisible:Pe(i.rippleVisible,zr.rippleVisible),ripplePulsate:Pe(i.ripplePulsate,zr.ripplePulsate),child:Pe(i.child,zr.child),childLeaving:Pe(i.childLeaving,zr.childLeaving),childPulsate:Pe(i.childPulsate,zr.childPulsate)},timeout:V0,pulsate:E,rippleX:O,rippleY:N,rippleSize:D},f.current)]),f.current+=1,p.current=L},[i]),C=A.useCallback((w={},E={},O=()=>{})=>{const{pulsate:N=!1,center:D=o||E.pulsate,fakeElement:L=!1}=E;if((w==null?void 0:w.type)==="mousedown"&&m.current){m.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(m.current=!0);const M=L?null:b.current,R=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,B,z;if(D||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)P=Math.round(R.width/2),B=Math.round(R.height/2);else{const{clientX:$,clientY:F}=w.touches&&w.touches.length>0?w.touches[0]:w;P=Math.round($-R.left),B=Math.round(F-R.top)}if(D)z=Math.sqrt((2*R.width**2+R.height**2)/3),z%2===0&&(z+=1);else{const $=Math.max(Math.abs((M?M.clientWidth:0)-P),P)*2+2,F=Math.max(Math.abs((M?M.clientHeight:0)-B),B)*2+2;z=Math.sqrt($**2+F**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{S({pulsate:N,rippleX:P,rippleY:B,rippleSize:z,cb:O})},g.start(BK,()=>{y.current&&(y.current(),y.current=null)})):S({pulsate:N,rippleX:P,rippleY:B,rippleSize:z,cb:O})},[o,S,g]),_=A.useCallback(()=>{C({},{pulsate:!0})},[C]),T=A.useCallback((w,E)=>{if(g.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{T(w,E)});return}y.current=null,u(O=>O.length>0?O.slice(1):O),p.current=E},[g]);return A.useImperativeHandle(n,()=>({pulsate:_,start:C,stop:T}),[_,C,T]),v.jsx(WK,{className:Pe(zr.root,i.root,s),ref:b,...a,children:v.jsx(su,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(p2.propTypes={center:c.bool,classes:c.object,className:c.string});function UK(t){return Ye("MuiButtonBase",t)}const KK=We("MuiButtonBase",["root","disabled","focusVisible"]),YK=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=Ke({root:["root",e&&"disabled",n&&"focusVisible"]},UK,o);return n&&r&&(s.root+=` ${r}`),s},GK=be("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KK.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qa=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:b,onClick:S,onContextMenu:C,onDragLeave:_,onFocus:T,onFocusVisible:w,onKeyDown:E,onKeyUp:O,onMouseDown:N,onMouseLeave:D,onMouseUp:L,onTouchEnd:M,onTouchMove:R,onTouchStart:P,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:$,type:F,...q}=r,U=A.useRef(null),G=$K(),Y=Et(G.ref,$),[Z,fe]=A.useState(!1);u&&Z&&fe(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{fe(!0),U.current.focus()}}),[]);const pe=G.shouldMount&&!f&&!u;A.useEffect(()=>{Z&&m&&!f&&G.pulsate()},[f,m,Z,G]);const ge=Jo(G,"start",N,p),re=Jo(G,"stop",C,p),he=Jo(G,"stop",_,p),le=Jo(G,"stop",L,p),X=Jo(G,"stop",Ie=>{Z&&Ie.preventDefault(),D&&D(Ie)},p),W=Jo(G,"start",P,p),ee=Jo(G,"stop",M,p),ce=Jo(G,"stop",R,p),te=Jo(G,"stop",Ie=>{Iw(Ie.target)||fe(!1),b&&b(Ie)},!1),se=$e(Ie=>{U.current||(U.current=Ie.currentTarget),Iw(Ie.target)&&(fe(!0),w&&w(Ie)),T&&T(Ie)}),ue=()=>{const Ie=U.current;return l&&l!=="button"&&!(Ie.tagName==="A"&&Ie.href)},ye=$e(Ie=>{m&&!Ie.repeat&&Z&&Ie.key===" "&&G.stop(Ie,()=>{G.start(Ie)}),Ie.target===Ie.currentTarget&&ue()&&Ie.key===" "&&Ie.preventDefault(),E&&E(Ie),Ie.target===Ie.currentTarget&&ue()&&Ie.key==="Enter"&&!u&&(Ie.preventDefault(),S&&S(Ie))}),Te=$e(Ie=>{m&&Ie.key===" "&&Z&&!Ie.defaultPrevented&&G.stop(Ie,()=>{G.pulsate(Ie)}),O&&O(Ie),S&&Ie.target===Ie.currentTarget&&ue()&&Ie.key===" "&&!Ie.defaultPrevented&&S(Ie)});let Se=l;Se==="button"&&(q.href||q.to)&&(Se=y);const Me={};Se==="button"?(Me.type=F===void 0?"button":F,Me.disabled=u):(!q.href&&!q.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const Ne=Et(n,U),Ve={...r,centerRipple:i,component:l,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:B,focusVisible:Z},Ge=YK(Ve);return v.jsxs(GK,{as:Se,className:Pe(Ge.root,a),ownerState:Ve,onBlur:te,onClick:S,onContextMenu:re,onFocus:se,onKeyDown:ye,onKeyUp:Te,onMouseDown:ge,onMouseLeave:X,onMouseUp:le,onDragLeave:he,onTouchEnd:ee,onTouchMove:ce,onTouchStart:W,ref:Ne,tabIndex:u?-1:B,type:F,...Me,...q,children:[s,pe?v.jsx(p2,{ref:Y,center:i,...z}):null]})});function Jo(t,e,n,r=!1){return $e(o=>(n&&n(o),r||t[e](o),!0))}process.env.NODE_ENV!=="production"&&(Qa.propTypes={action:gn,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:bp,disabled:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,href:c.any,LinkComponent:c.elementType,onBlur:c.func,onClick:c.func,onContextMenu:c.func,onDragLeave:c.func,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onKeyUp:c.func,onMouseDown:c.func,onMouseLeave:c.func,onMouseUp:c.func,onTouchEnd:c.func,onTouchMove:c.func,onTouchStart:c.func,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string])});function JK(t){return Ye("MuiCircularProgress",t)}We("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const ki=44,H0=lo.keyframes`
201
201
  0% {
202
202
  transform: rotate(0deg);
203
203
  }
@@ -225,12 +225,12 @@ function print() { __p += __j.call(arguments, '') }
225
225
  `:null,XK=typeof W0!="string"?lo.css`
226
226
  animation: ${W0} 1.4s ease-in-out infinite;
227
227
  `:null,QK=t=>{const{classes:e,variant:n,color:r,disableShrink:o}=t,i={root:["root",n,`color${Re(r)}`],svg:["svg"],circle:["circle",`circle${Re(n)}`,o&&"circleDisableShrink"]};return Ke(i,JK,e)},eY=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Re(n.color)}`]]}})(It(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ZK||{animation:`${H0} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),tY=be("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),nY=be("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Re(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(It(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:XK||{animation:`${W0} 1.4s ease-in-out infinite`}}]}))),mx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:f=0,variant:p="indeterminate",...m}=r,g={...r,color:i,disableShrink:s,size:a,thickness:u,value:f,variant:p},y=QK(g),b={},S={},C={};if(p==="determinate"){const _=2*Math.PI*((ki-u)/2);b.strokeDasharray=_.toFixed(3),C["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*_).toFixed(3)}px`,S.transform="rotate(-90deg)"}return v.jsx(eY,{className:Pe(y.root,o),style:{width:a,height:a,...S,...l},ownerState:g,ref:n,role:"progressbar",...C,...m,children:v.jsx(tY,{className:y.svg,ownerState:g,viewBox:`${ki/2} ${ki/2} ${ki} ${ki}`,children:v.jsx(nY,{className:y.circle,style:b,ownerState:g,cx:ki,cy:ki,r:(ki-u)/2,fill:"none",strokeWidth:u})})})});process.env.NODE_ENV!=="production"&&(mx.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","error","info","success","warning"]),c.string]),disableShrink:pi(c.bool,t=>t.disableShrink&&t.variant&&t.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:c.oneOfType([c.number,c.string]),style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),thickness:c.number,value:c.number,variant:c.oneOf(["determinate","indeterminate"])});function rY(t){return Ye("MuiIconButton",t)}const XT=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),oY=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i,loading:s}=t,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Re(r)}`,o&&`edge${Re(o)}`,`size${Re(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ke(a,rY,e)},iY=be(Qa,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Re(n.color)}`],n.edge&&e[`edge${Re(n.edge)}`],e[`size${Re(n.size)}`]]}})(It(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),It(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${XT.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${XT.loading}`]:{color:"transparent"}}))),sY=be("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),hl=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:f="medium",id:p,loading:m=null,loadingIndicator:g,...y}=r,b=jo(p),S=g??v.jsx(mx,{"aria-labelledby":b,color:"inherit",size:16}),C={...r,edge:o,color:a,disabled:l,disableFocusRipple:u,loading:m,loadingIndicator:S,size:f},_=oY(C);return v.jsxs(iY,{id:m?b:p,className:Pe(_.root,s),centerRipple:!0,focusRipple:!u,disabled:l||m,ref:n,...y,ownerState:C,children:[typeof m=="boolean"&&v.jsx("span",{className:_.loadingWrapper,style:{display:"contents"},children:v.jsx(sY,{className:_.loadingIndicator,ownerState:C,children:m&&S})}),i]})});process.env.NODE_ENV!=="production"&&(hl.propTypes={children:pi(c.node,t=>A.Children.toArray(t.children).some(n=>A.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
228
- `)):null),classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),c.string]),disabled:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,edge:c.oneOf(["end","start",!1]),id:c.string,loading:c.bool,loadingIndicator:c.node,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function aY(t){return Ye("MuiTypography",t)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lY={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},cY=eq(),uY=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=t,a={root:["root",i,t.align!=="inherit"&&`align${Re(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ke(a,aY,s)},dY=be("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${Re(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(It(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Re(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),QT={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ns=A.forwardRef(function(e,n){const{color:r,...o}=St({props:e,name:"MuiTypography"}),i=!lY[r],s=cY({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:g="body1",variantMapping:y=QT,...b}=s,S={...s,align:a,color:r,className:l,component:u,gutterBottom:f,noWrap:p,paragraph:m,variant:g,variantMapping:y},C=u||(m?"p":y[g]||QT[g])||"span",_=uY(S);return v.jsx(dY,{as:C,ref:n,className:Pe(_.root,l),...b,ownerState:S,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...b.style}})});process.env.NODE_ENV!=="production"&&(ns.propTypes={align:c.oneOf(["center","inherit","justify","left","right"]),children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),c.string]),component:c.elementType,gutterBottom:c.bool,noWrap:c.bool,paragraph:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),c.string]),variantMapping:c.object});function fY(t){return Ye("MuiInputAdornment",t)}const e_=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var t_;const pY=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Re(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},hY=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=t,a={root:["root",n&&"disablePointerEvents",o&&`position${Re(o)}`,s,r&&"hiddenLabel",i&&`size${Re(i)}`]};return Ke(a,fY,e)},mY=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pY})(It(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${e_.positionStart}&:not(.${e_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),gx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:f,...p}=r,m=po()||{};let g=f;f&&m.variant&&process.env.NODE_ENV!=="production"&&f===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),g||(g=m.variant);const y={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:u,variant:g},b=hY(y);return v.jsx(iu.Provider,{value:null,children:v.jsx(mY,{as:s,ownerState:y,className:Pe(b.root,i),ref:n,...p,children:typeof o=="string"&&!l?v.jsx(ns,{color:"textSecondary",children:o}):v.jsxs(A.Fragment,{children:[u==="start"?t_||(t_=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});process.env.NODE_ENV!=="production"&&(gx.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disablePointerEvents:c.bool,disableTypography:c.bool,position:c.oneOf(["end","start"]).isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});const gY=Fe(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),yY=Fe(v.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),bY=Fe(v.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),vY=Fe(v.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Fe(v.jsxs(A.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Fe(v.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Fe(v.jsxs(A.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const xY=Fe(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),SY=["clearable","onClear","InputProps","sx","slots","slotProps"],CY=["ownerState"],wY=t=>{const e=mi(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:s,slotProps:a}=t,l=rt(t,SY),u=(s==null?void 0:s.clearButton)??hl,f=wt({elementType:u,externalSlotProps:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:e.fieldClearLabel}}),p=rt(f,CY),m=(s==null?void 0:s.clearIcon)??xY,g=wt({elementType:m,externalSlotProps:a==null?void 0:a.clearIcon,ownerState:{}});return ne({},l,{InputProps:ne({},o,{endAdornment:v.jsxs(A.Fragment,{children:[n&&v.jsx(gx,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:v.jsx(u,ne({},p,{onClick:r,children:v.jsx(m,ne({fontSize:"small"},g))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},TY=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],_Y=(t,e)=>A.useMemo(()=>{const n=ne({},t),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return TY.forEach(o),a2.forEach(o),{forwardedProps:n,internalProps:r}},[t,e]),kY=A.createContext(null);function h2(t){const{contextValue:e,localeText:n,children:r}=t;return v.jsx(kY.Provider,{value:e,children:v.jsx(Gv,{localeText:n,children:r})})}const EY=t=>{const e=Kt(),n=lu();return ne({},t,{disablePast:t.disablePast??!1,disableFuture:t.disableFuture??!1,format:t.format??e.formats.keyboardDate,minDate:Yr(e,t.minDate,n.minDate),maxDate:Yr(e,t.maxDate,n.maxDate)})},MY=t=>{const e=EY(t),{forwardedProps:n,internalProps:r}=_Y(e,"date");return jK({forwardedProps:n,internalProps:r,valueManager:Io,fieldValueManager:gK,validator:au,valueType:"date"})};function OY(t){return Ye("MuiPickersTextField",t)}We("MuiPickersTextField",["root","focused","disabled","error","required"]);function RY(t){return Ye("MuiPickersInputBase",t)}const Wa=We("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function AY(t){return Ye("MuiPickersSectionList",t)}const Hl=We("MuiPickersSectionList",["root","section","sectionContent"]),IY=["slots","slotProps","elements","sectionListRef"],m2=be("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(t,e)=>e.root})({direction:"ltr /*! @noflip */",outline:"none"}),g2=be("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(t,e)=>e.section})({}),y2=be("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(t,e)=>e.sectionSeparator})({whiteSpace:"pre"}),b2=be("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(t,e)=>e.sectionContent})({outline:"none"}),DY=t=>{const{classes:e}=t;return Ke({root:["root"],section:["section"],sectionContent:["sectionContent"]},AY,e)};function v2(t){const{slots:e,slotProps:n,element:r,classes:o}=t,i=(e==null?void 0:e.section)??g2,s=wt({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=(e==null?void 0:e.sectionContent)??b2,l=wt({elementType:a,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),u=(e==null?void 0:e.sectionSeparator)??y2,f=wt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=wt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return v.jsxs(i,ne({},s,{children:[v.jsx(u,ne({},f)),v.jsx(a,ne({},l)),v.jsx(u,ne({},p))]}))}process.env.NODE_ENV!=="production"&&(v2.propTypes={classes:c.object.isRequired,element:c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired}).isRequired,slotProps:c.object,slots:c.object});const x2=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:s,sectionListRef:a}=r,l=rt(r,IY),u=DY(r),f=A.useRef(null),p=Et(n,f),m=b=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return f.current};A.useImperativeHandle(a,()=>({getRoot(){return m("getRoot")},getSectionContainer(b){return m("getSectionContainer").querySelector(`.${Hl.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return m("getSectionContent").querySelector(`.${Hl.section}[data-sectionindex="${b}"] .${Hl.sectionContent}`)},getSectionIndexFromDOMElement(b){const S=m("getSectionIndexFromDOMElement");if(b==null||!S.contains(b))return null;let C=null;return b.classList.contains(Hl.section)?C=b:b.classList.contains(Hl.sectionContent)&&(C=b.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const g=(o==null?void 0:o.root)??m2,y=wt({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return v.jsx(g,ne({},y,{children:y.contentEditable?s.map(({content:b,before:S,after:C})=>`${S.children}${b.children}${C.children}`).join(""):v.jsx(A.Fragment,{children:s.map((b,S)=>v.jsx(v2,{slots:o,slotProps:i,element:b,classes:u},S))})}))});process.env.NODE_ENV!=="production"&&(x2.propTypes={classes:c.object,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object});const PY=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],NY=t=>Math.round(t*1e5)/1e5,Vp=be("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>ne({},t.typography.body1,{color:(t.vars||t).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${NY(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),yx=be(m2,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})(({theme:t})=>({padding:"4px 0 5px",fontFamily:t.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:n,filled:r,label:o})=>!e&&!n&&!r&&o==null,style:t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:t.palette.mode==="light"?.42:.5}}]})),LY=be(g2,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(t,e)=>e.section})(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),jY=be(b2,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(t,e)=>e.content})(({theme:t})=>({fontFamily:t.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),$Y=be(y2,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(t,e)=>e.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),FY=be("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(t,e)=>e.hiddenInput})(ne({},I6)),BY=t=>{const{focused:e,disabled:n,error:r,classes:o,fullWidth:i,readOnly:s,color:a,size:l,endAdornment:u,startAdornment:f}=t,p={root:["root",e&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",i&&"fullWidth",`color${Re(a)}`,l==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ke(p,RY,o)},Hp=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:s,onChange:a,id:l,endAdornment:u,startAdornment:f,renderSuffix:p,slots:m,slotProps:g,contentEditable:y,tabIndex:b,onInput:S,onPaste:C,onKeyDown:_,name:T,readOnly:w,inputProps:E,inputRef:O,sectionListRef:N}=r,D=rt(r,PY),L=A.useRef(null),M=Et(n,L),R=Et(E==null?void 0:E.ref,O),P=co(),z=po();if(!z)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const F=Y=>{var Z;if(z.disabled){Y.stopPropagation();return}(Z=z.onFocus)==null||Z.call(z,Y)};A.useEffect(()=>{z&&z.setAdornedStart(!!f)},[z,f]),A.useEffect(()=>{z&&(i?z.onEmpty():z.onFilled())},[z,i]);const $=ne({},r,z,{isRtl:P}),B=BY($),q=(m==null?void 0:m.root)||Vp,K=wt({elementType:q,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:D,additionalProps:{"aria-invalid":z.error,ref:M},className:B.root,ownerState:$}),G=(m==null?void 0:m.input)||yx;return v.jsxs(q,ne({},K,{children:[f,v.jsx(x2,{sectionListRef:N,elements:o,contentEditable:y,tabIndex:b,className:B.sectionsContainer,onFocus:F,onBlur:z.onBlur,onInput:S,onPaste:C,onKeyDown:_,slots:{root:G,section:LY,sectionContent:jY,sectionSeparator:$Y},slotProps:{root:{ownerState:$},sectionContent:{className:Wa.sectionContent},sectionSeparator:({position:Y})=>({className:Y==="before"?Wa.sectionBefore:Wa.sectionAfter})}}),u,p?p(ne({},z)):null,v.jsx(FY,ne({name:T,className:B.input,value:s,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:z.required,disabled:z.disabled},E,{ref:R}))]}))});process.env.NODE_ENV!=="production"&&(Hp.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});function zY(t){return Ye("MuiPickersOutlinedInput",t)}const ro=ne({},Wa,We("MuiPickersOutlinedInput",["root","notchedOutline","input"])),VY=["children","className","label","notched","shrink"],HY=be("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),n_=be("span")(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit"})),WY=be("legend")(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}));function qY(t){const{className:e,label:n}=t,r=rt(t,VY),o=n!=null&&n!=="",i=ne({},t,{withLabel:o});return v.jsx(HY,ne({"aria-hidden":!0,className:e},r,{ownerState:i,children:v.jsx(WY,{ownerState:i,children:o?v.jsx(n_,{children:n}):v.jsx(n_,{className:"notranslate",children:"​"})})}))}const UY=["label","autoFocus","ownerState","notched"],KY=be(Vp,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${ro.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${ro.focused} .${ro.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ro.disabled}`]:{[`& .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled},"*":{color:(t.vars||t).palette.action.disabled}},[`&.${ro.error} .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},variants:Object.keys((t.vars??t).palette).filter(n=>{var r;return((r=(t.vars??t).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${ro.focused}:not(.${ro.error}) .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}}))}}),YY=be(yx,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),GY=t=>{const{classes:e}=t,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zY,e);return ne({},e,r)},bx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:s}=r,a=rt(r,UY),l=po(),u=ne({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),f=GY(u);return v.jsx(Hp,ne({slots:{root:KY,input:YY},renderSuffix:p=>v.jsx(qY,{shrink:!!(s||p.adornedStart||p.focused||p.filled),notched:!!(s||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?v.jsxs(A.Fragment,{children:[o," ","*"]}):o,ownerState:u})},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(bx.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,notched:c.bool,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});bx.muiName="Input";function JY(t){return Ye("MuiPickersFilledInput",t)}const ys=ne({},Wa,We("MuiPickersFilledInput",["root","underline","input"])),ZY=["label","autoFocus","disableUnderline","ownerState"],XY=be(Vp,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Wd(t)&&t!=="disableUnderline"})(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${ys.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${ys.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((t.vars??t).palette).filter(s=>(t.vars??t).palette[s].main).map(s=>{var a;return{props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ys.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ys.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ys.disabled}, .${ys.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ys.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),QY=be(yx,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:t})=>!!t,style:{paddingLeft:0}},{props:({endAdornment:t})=>!!t,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),eG=t=>{const{classes:e,disableUnderline:n}=t,o=Ke({root:["root",!n&&"underline"],input:["input"]},JY,e);return ne({},e,o)},vx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:s}=r,a=rt(r,ZY),l=po(),u=ne({},r,s,l,{color:(l==null?void 0:l.color)||"primary"}),f=eG(u);return v.jsx(Hp,ne({slots:{root:XY,input:QY},slotProps:{root:{disableUnderline:i}}},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(vx.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,disableUnderline:c.bool,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});vx.muiName="Input";function tG(t){return Ye("MuiPickersFilledInput",t)}const Wl=ne({},Wa,We("MuiPickersInput",["root","input"])),nG=["label","autoFocus","disableUnderline","ownerState"],rG=be(Vp,{name:"MuiPickersInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((t.vars??t).palette).filter(r=>(t.vars??t).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wl.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wl.disabled}, .${Wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wl.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),oG=t=>{const{classes:e,disableUnderline:n}=t,o=Ke({root:["root",!n&&"underline"],input:["input"]},tG,e);return ne({},e,o)},xx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:s}=r,a=rt(r,nG),l=po(),u=ne({},r,s,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),f=oG(u);return v.jsx(Hp,ne({slots:{root:rG}},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(xx.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,disableUnderline:c.bool,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});xx.muiName="Input";const iG=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],sG={standard:xx,filled:vx,outlined:bx},aG=be(Zv,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),lG=t=>{const{focused:e,disabled:n,classes:r,required:o}=t;return Ke({root:["root",e&&!n&&"focused",n&&"disabled",o&&"required"]},OY,r)},S2=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:s,color:a="primary",disabled:l=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:b,elements:S,areAllSectionsEmpty:C,onClick:_,onKeyDown:T,onKeyUp:w,onPaste:E,onInput:O,endAdornment:N,startAdornment:D,tabIndex:L,contentEditable:M,focused:R,value:P,onChange:z,fullWidth:F,id:$,name:B,helperText:q,FormHelperTextProps:K,label:G,InputLabelProps:Y}=r,Z=rt(r,iG),ge=A.useRef(null),he=Et(n,ge),oe=jo($),Q=q&&oe?`${oe}-helper-text`:void 0,fe=G&&oe?`${oe}-label`:void 0,ce=ne({},r,{color:a,disabled:l,error:u,focused:R,required:p,variant:f}),ae=lG(ce),W=sG[f];return v.jsxs(aG,ne({className:Pe(ae.root,s),ref:he,focused:R,onFocus:o,onBlur:i,disabled:l,variant:f,error:u,color:a,fullWidth:F,required:p,ownerState:ce},Z,{children:[v.jsx(Jv,ne({htmlFor:oe,id:fe},Y,{children:G})),v.jsx(W,ne({elements:S,areAllSectionsEmpty:C,onClick:_,onKeyDown:T,onKeyUp:w,onInput:O,onPaste:E,endAdornment:N,startAdornment:D,tabIndex:L,contentEditable:M,value:P,onChange:z,id:oe,fullWidth:F,inputProps:g,inputRef:y,sectionListRef:b,label:G,name:B,role:"group","aria-labelledby":fe},m)),q&&v.jsx(Xv,ne({id:Q},K,{children:q}))]}))});process.env.NODE_ENV!=="production"&&(S2.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,color:c.oneOf(["error","info","primary","secondary","success","warning"]),component:c.elementType,contentEditable:c.bool.isRequired,disabled:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,error:c.bool.isRequired,focused:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,hiddenLabel:c.bool,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onBlur:c.func.isRequired,onChange:c.func.isRequired,onClick:c.func.isRequired,onFocus:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,readOnly:c.bool,required:c.bool,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),size:c.oneOf(["medium","small"]),startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired,variant:c.oneOf(["filled","outlined","standard"])});const cG=["enableAccessibleFieldDOMStructure"],uG=["InputProps","readOnly"],dG=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],fG=t=>{let{enableAccessibleFieldDOMStructure:e}=t,n=rt(t,cG);if(e){const{InputProps:p,readOnly:m}=n,g=rt(n,uG);return ne({},g,{InputProps:ne({},p??{},{readOnly:m})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:s,InputProps:a,inputProps:l,inputRef:u}=n,f=rt(n,dG);return ne({},f,{InputProps:ne({},a??{},{readOnly:s}),inputProps:ne({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:u})})},pG=["slots","slotProps","InputProps","inputProps"],Wp=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:s,inputProps:a}=r,l=rt(r,pG),u=r,f=(o==null?void 0:o.textField)??(e.enableAccessibleFieldDOMStructure?S2:e2),p=wt({elementType:f,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:u});p.inputProps=ne({},a,p.inputProps),p.InputProps=ne({},s,p.InputProps);const m=MY(p),g=fG(m),y=wY(ne({},g,{slots:o,slotProps:i}));return v.jsx(f,ne({},y))});process.env.NODE_ENV!=="production"&&(Wp.propTypes={autoFocus:c.bool,className:c.string,clearable:c.bool,color:c.oneOf(["error","info","primary","secondary","success","warning"]),component:c.elementType,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,enableAccessibleFieldDOMStructure:c.bool,focused:c.bool,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,hiddenLabel:c.bool,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxDate:c.object,minDate:c.object,name:c.string,onBlur:c.func,onChange:c.func,onClear:c.func,onError:c.func,onFocus:c.func,onSelectedSectionsChange:c.func,readOnly:c.bool,referenceDate:c.object,required:c.bool,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,shouldRespectLeadingZeros:c.bool,size:c.oneOf(["medium","small"]),slotProps:c.object,slots:c.object,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,unstableFieldRef:c.oneOfType([c.func,c.object]),value:c.object,variant:c.oneOf(["filled","outlined","standard"])});var ef={exports:{}},hG=ef.exports,r_;function mG(){return r_||(r_=1,function(t,e){(function(n,r){t.exports=r()})(hG,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(i,s,a){var l=s.prototype;a.utc=function(b){var S={date:b,utc:!0,args:arguments};return new s(S)},l.utc=function(b){var S=a(this.toDate(),{locale:this.$L,utc:!0});return b?S.add(this.utcOffset(),n):S},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var f=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else f.call(this)};var p=l.utcOffset;l.utcOffset=function(b,S){var C=this.$utils().u;if(C(b))return this.$u?0:C(this.$offset)?p.call(this):this.$offset;if(typeof b=="string"&&(b=function(E){E===void 0&&(E="");var O=E.match(r);if(!O)return null;var N=(""+O[0]).match(o)||["-",0,0],D=N[0],L=60*+N[1]+ +N[2];return L===0?0:D==="+"?L:-L}(b),b===null))return this;var _=Math.abs(b)<=16?60*b:b,T=this;if(S)return T.$offset=_,T.$u=b===0,T;if(b!==0){var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(T=this.local().add(_+w,n)).$offset=_,T.$x.$localOffset=w}else T=this.utc();return T};var m=l.format;l.format=function(b){var S=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,S)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var g=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var y=l.diff;l.diff=function(b,S,C){if(b&&this.$u===b.$u)return y.call(this,b,S,C);var _=this.local(),T=a(b).local();return y.call(_,T,S,C)}}})}(ef)),ef.exports}var gG=mG();const yG=ir(gG);pn.extend(yG);const C2=a9({themeId:ru});function bG(t){return Ye("MuiPickersToolbar",t)}We("MuiPickersToolbar",["root","content"]);const vG=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],xG=t=>{const{classes:e}=t;return Ke({root:["root"],content:["content"]},bG,e)},SG=be("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),CG=be("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),wG=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,u=rt(r,vG),f=r,p=xG(f);return a?null:v.jsxs(SG,ne({ref:n,className:Pe(p.root,i),ownerState:f},u,{children:[v.jsx(ns,{color:"text.secondary",variant:"overline",id:l,children:s}),v.jsx(CG,{className:p.content,ownerState:f,children:o})]}))});function TG(t){return Ye("MuiDatePickerToolbar",t)}We("MuiDatePickerToolbar",["root","title"]);const _G=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],kG=t=>{const{classes:e}=t;return Ke({root:["root"],title:["title"]},TG,e)},EG=be(wG,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),MG=be(ns,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),w2=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l,className:u}=r,f=rt(r,_G),p=Kt(),m=mi(),g=kG(r),y=A.useMemo(()=>{if(!o)return a;const S=cx(p,{format:s,views:l},!0);return p.formatByString(o,S)},[o,s,a,p,l]),b=r;return v.jsx(EG,ne({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:i,className:Pe(g.root,u)},f,{children:v.jsx(MG,{variant:"h4",align:i?"left":"center",ownerState:b,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(w2.propTypes={classes:c.object,className:c.string,disabled:c.bool,hidden:c.bool,isLandscape:c.bool.isRequired,onChange:c.func.isRequired,onViewChange:c.func.isRequired,readOnly:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleId:c.string,toolbarFormat:c.string,toolbarPlaceholder:c.node,value:c.object,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});function T2(t,e){const n=Kt(),r=lu(),o=Ut({props:t,name:e}),i=A.useMemo(()=>{var s;return((s=o.localeText)==null?void 0:s.toolbarTitle)==null?o.localeText:ne({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return ne({},o,{localeText:i},U7({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate),slots:ne({toolbar:w2},o.slots)})}var hr="top",Gr="bottom",Jr="right",mr="left",Sx="auto",cu=[hr,Gr,Jr,mr],el="start",Pc="end",OG="clippingParents",_2="viewport",ql="popper",RG="reference",o_=cu.reduce(function(t,e){return t.concat([e+"-"+el,e+"-"+Pc])},[]),k2=[].concat(cu,[Sx]).reduce(function(t,e){return t.concat([e,e+"-"+el,e+"-"+Pc])},[]),AG="beforeRead",IG="read",DG="afterRead",PG="beforeMain",NG="main",LG="afterMain",jG="beforeWrite",$G="write",FG="afterWrite",BG=[AG,IG,DG,PG,NG,LG,jG,$G,FG];function Do(t){return t?(t.nodeName||"").toLowerCase():null}function Or(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Hs(t){var e=Or(t).Element;return t instanceof e||t instanceof Element}function qr(t){var e=Or(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Cx(t){if(typeof ShadowRoot>"u")return!1;var e=Or(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function zG(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!qr(i)||!Do(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function VG(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!qr(o)||!Do(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const E2={name:"applyStyles",enabled:!0,phase:"write",fn:zG,effect:VG,requires:["computeStyles"]};function Ro(t){return t.split("-")[0]}var Ps=Math.max,Tf=Math.min,tl=Math.round;function q0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function M2(){return!/^((?!chrome|android).)*safari/i.test(q0())}function nl(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&qr(t)&&(o=t.offsetWidth>0&&tl(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&tl(r.height)/t.offsetHeight||1);var s=Hs(t)?Or(t):window,a=s.visualViewport,l=!M2()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,f=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,m=r.height/i;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function wx(t){var e=nl(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function O2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Cx(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fi(t){return Or(t).getComputedStyle(t)}function HG(t){return["table","td","th"].indexOf(Do(t))>=0}function rs(t){return((Hs(t)?t.ownerDocument:t.document)||window.document).documentElement}function qp(t){return Do(t)==="html"?t:t.assignedSlot||t.parentNode||(Cx(t)?t.host:null)||rs(t)}function i_(t){return!qr(t)||fi(t).position==="fixed"?null:t.offsetParent}function WG(t){var e=/firefox/i.test(q0()),n=/Trident/i.test(q0());if(n&&qr(t)){var r=fi(t);if(r.position==="fixed")return null}var o=qp(t);for(Cx(o)&&(o=o.host);qr(o)&&["html","body"].indexOf(Do(o))<0;){var i=fi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function uu(t){for(var e=Or(t),n=i_(t);n&&HG(n)&&fi(n).position==="static";)n=i_(n);return n&&(Do(n)==="html"||Do(n)==="body"&&fi(n).position==="static")?e:n||WG(t)||e}function Tx(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fc(t,e,n){return Ps(t,Tf(e,n))}function qG(t,e,n){var r=fc(t,e,n);return r>n?n:r}function R2(){return{top:0,right:0,bottom:0,left:0}}function A2(t){return Object.assign({},R2(),t)}function I2(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var UG=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,A2(typeof e!="number"?e:I2(e,cu))};function KG(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ro(n.placement),l=Tx(a),u=[mr,Jr].indexOf(a)>=0,f=u?"height":"width";if(!(!i||!s)){var p=UG(o.padding,n),m=wx(i),g=l==="y"?hr:mr,y=l==="y"?Gr:Jr,b=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],S=s[l]-n.rects.reference[l],C=uu(i),_=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,T=b/2-S/2,w=p[g],E=_-m[f]-p[y],O=_/2-m[f]/2+T,N=fc(w,O,E),D=l;n.modifiersData[r]=(e={},e[D]=N,e.centerOffset=N-O,e)}}function YG(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||O2(e.elements.popper,o)&&(e.elements.arrow=o))}const GG={name:"arrow",enabled:!0,phase:"main",fn:KG,effect:YG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rl(t){return t.split("-")[1]}var JG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZG(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:tl(n*o)/o||0,y:tl(r*o)/o||0}}function s_(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,p=t.isFixed,m=s.x,g=m===void 0?0:m,y=s.y,b=y===void 0?0:y,S=typeof f=="function"?f({x:g,y:b}):{x:g,y:b};g=S.x,b=S.y;var C=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),T=mr,w=hr,E=window;if(u){var O=uu(n),N="clientHeight",D="clientWidth";if(O===Or(n)&&(O=rs(n),fi(O).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),O=O,o===hr||(o===mr||o===Jr)&&i===Pc){w=Gr;var L=p&&O===E&&E.visualViewport?E.visualViewport.height:O[N];b-=L-r.height,b*=l?1:-1}if(o===mr||(o===hr||o===Gr)&&i===Pc){T=Jr;var M=p&&O===E&&E.visualViewport?E.visualViewport.width:O[D];g-=M-r.width,g*=l?1:-1}}var R=Object.assign({position:a},u&&JG),P=f===!0?ZG({x:g,y:b},Or(n)):{x:g,y:b};if(g=P.x,b=P.y,l){var z;return Object.assign({},R,(z={},z[w]=_?"0":"",z[T]=C?"0":"",z.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",z))}return Object.assign({},R,(e={},e[w]=_?b+"px":"",e[T]=C?g+"px":"",e.transform="",e))}function XG(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Ro(e.placement),variation:rl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,s_(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,s_(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const QG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XG,data:{}};var vd={passive:!0};function eJ(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Or(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,vd)}),a&&l.addEventListener("resize",n.update,vd),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,vd)}),a&&l.removeEventListener("resize",n.update,vd)}}const tJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eJ,data:{}};var nJ={left:"right",right:"left",bottom:"top",top:"bottom"};function tf(t){return t.replace(/left|right|bottom|top/g,function(e){return nJ[e]})}var rJ={start:"end",end:"start"};function a_(t){return t.replace(/start|end/g,function(e){return rJ[e]})}function _x(t){var e=Or(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function kx(t){return nl(rs(t)).left+_x(t).scrollLeft}function oJ(t,e){var n=Or(t),r=rs(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=M2();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+kx(t),y:l}}function iJ(t){var e,n=rs(t),r=_x(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=Ps(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ps(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+kx(t),l=-r.scrollTop;return fi(o||n).direction==="rtl"&&(a+=Ps(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ex(t){var e=fi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function D2(t){return["html","body","#document"].indexOf(Do(t))>=0?t.ownerDocument.body:qr(t)&&Ex(t)?t:D2(qp(t))}function pc(t,e){var n;e===void 0&&(e=[]);var r=D2(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Or(r),s=o?[i].concat(i.visualViewport||[],Ex(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(pc(qp(s)))}function U0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sJ(t,e){var n=nl(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function l_(t,e,n){return e===_2?U0(oJ(t,n)):Hs(e)?sJ(e,n):U0(iJ(rs(t)))}function aJ(t){var e=pc(qp(t)),n=["absolute","fixed"].indexOf(fi(t).position)>=0,r=n&&qr(t)?uu(t):t;return Hs(r)?e.filter(function(o){return Hs(o)&&O2(o,r)&&Do(o)!=="body"}):[]}function lJ(t,e,n,r){var o=e==="clippingParents"?aJ(t):[].concat(e),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var f=l_(t,u,r);return l.top=Ps(f.top,l.top),l.right=Tf(f.right,l.right),l.bottom=Tf(f.bottom,l.bottom),l.left=Ps(f.left,l.left),l},l_(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function P2(t){var e=t.reference,n=t.element,r=t.placement,o=r?Ro(r):null,i=r?rl(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case hr:l={x:s,y:e.y-n.height};break;case Gr:l={x:s,y:e.y+e.height};break;case Jr:l={x:e.x+e.width,y:a};break;case mr:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?Tx(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case el:l[u]=l[u]-(e[f]/2-n[f]/2);break;case Pc:l[u]=l[u]+(e[f]/2-n[f]/2);break}}return l}function Nc(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?OG:a,u=n.rootBoundary,f=u===void 0?_2:u,p=n.elementContext,m=p===void 0?ql:p,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,S=b===void 0?0:b,C=A2(typeof S!="number"?S:I2(S,cu)),_=m===ql?RG:ql,T=t.rects.popper,w=t.elements[y?_:m],E=lJ(Hs(w)?w:w.contextElement||rs(t.elements.popper),l,f,s),O=nl(t.elements.reference),N=P2({reference:O,element:T,strategy:"absolute",placement:o}),D=U0(Object.assign({},T,N)),L=m===ql?D:O,M={top:E.top-L.top+C.top,bottom:L.bottom-E.bottom+C.bottom,left:E.left-L.left+C.left,right:L.right-E.right+C.right},R=t.modifiersData.offset;if(m===ql&&R){var P=R[o];Object.keys(M).forEach(function(z){var F=[Jr,Gr].indexOf(z)>=0?1:-1,$=[hr,Gr].indexOf(z)>=0?"y":"x";M[z]+=P[$]*F})}return M}function cJ(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?k2:l,f=rl(r),p=f?a?o_:o_.filter(function(y){return rl(y)===f}):cu,m=p.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=p);var g=m.reduce(function(y,b){return y[b]=Nc(t,{placement:b,boundary:o,rootBoundary:i,padding:s})[Ro(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function uJ(t){if(Ro(t)===Sx)return[];var e=tf(t);return[a_(t),e,a_(e)]}function dJ(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,S=e.options.placement,C=Ro(S),_=C===S,T=l||(_||!y?[tf(S)]:uJ(S)),w=[S].concat(T).reduce(function(oe,Q){return oe.concat(Ro(Q)===Sx?cJ(e,{placement:Q,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:b}):Q)},[]),E=e.rects.reference,O=e.rects.popper,N=new Map,D=!0,L=w[0],M=0;M<w.length;M++){var R=w[M],P=Ro(R),z=rl(R)===el,F=[hr,Gr].indexOf(P)>=0,$=F?"width":"height",B=Nc(e,{placement:R,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),q=F?z?Jr:mr:z?Gr:hr;E[$]>O[$]&&(q=tf(q));var K=tf(q),G=[];if(i&&G.push(B[P]<=0),a&&G.push(B[q]<=0,B[K]<=0),G.every(function(oe){return oe})){L=R,D=!1;break}N.set(R,G)}if(D)for(var Y=y?3:1,Z=function(Q){var fe=w.find(function(ce){var ae=N.get(ce);if(ae)return ae.slice(0,Q).every(function(W){return W})});if(fe)return L=fe,"break"},ge=Y;ge>0;ge--){var he=Z(ge);if(he==="break")break}e.placement!==L&&(e.modifiersData[r]._skip=!0,e.placement=L,e.reset=!0)}}const fJ={name:"flip",enabled:!0,phase:"main",fn:dJ,requiresIfExists:["offset"],data:{_skip:!1}};function c_(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function u_(t){return[hr,Jr,Gr,mr].some(function(e){return t[e]>=0})}function pJ(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Nc(e,{elementContext:"reference"}),a=Nc(e,{altBoundary:!0}),l=c_(s,r),u=c_(a,o,i),f=u_(l),p=u_(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const hJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pJ};function mJ(t,e,n){var r=Ro(t),o=[mr,hr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mr,Jr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function gJ(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=k2.reduce(function(f,p){return f[p]=mJ(p,e.rects,i),f},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const yJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gJ};function bJ(t){var e=t.state,n=t.name;e.modifiersData[n]=P2({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const vJ={name:"popperOffsets",enabled:!0,phase:"read",fn:bJ,data:{}};function xJ(t){return t==="x"?"y":"x"}function SJ(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,g=m===void 0?!0:m,y=n.tetherOffset,b=y===void 0?0:y,S=Nc(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),C=Ro(e.placement),_=rl(e.placement),T=!_,w=Tx(C),E=xJ(w),O=e.modifiersData.popperOffsets,N=e.rects.reference,D=e.rects.popper,L=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,M=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(O){if(i){var z,F=w==="y"?hr:mr,$=w==="y"?Gr:Jr,B=w==="y"?"height":"width",q=O[w],K=q+S[F],G=q-S[$],Y=g?-D[B]/2:0,Z=_===el?N[B]:D[B],ge=_===el?-D[B]:-N[B],he=e.elements.arrow,oe=g&&he?wx(he):{width:0,height:0},Q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:R2(),fe=Q[F],ce=Q[$],ae=fc(0,N[B],oe[B]),W=T?N[B]/2-Y-ae-fe-M.mainAxis:Z-ae-fe-M.mainAxis,te=T?-N[B]/2+Y+ae+ce+M.mainAxis:ge+ae+ce+M.mainAxis,ue=e.elements.arrow&&uu(e.elements.arrow),ee=ue?w==="y"?ue.clientTop||0:ue.clientLeft||0:0,se=(z=R==null?void 0:R[w])!=null?z:0,de=q+W-se-ee,ye=q+te-se,Te=fc(g?Tf(K,de):K,q,g?Ps(G,ye):G);O[w]=Te,P[w]=Te-q}if(a){var Se,Me=w==="x"?hr:mr,Ne=w==="x"?Gr:Jr,Ve=O[E],Ge=E==="y"?"height":"width",Ie=Ve+S[Me],st=Ve-S[Ne],xt=[hr,mr].indexOf(C)!==-1,Gt=(Se=R==null?void 0:R[E])!=null?Se:0,bn=xt?Ie:Ve-N[Ge]-D[Ge]-Gt+M.altAxis,nn=xt?Ve+N[Ge]+D[Ge]-Gt-M.altAxis:st,Dt=g&&xt?qG(bn,Ve,nn):fc(g?bn:Ie,Ve,g?nn:st);O[E]=Dt,P[E]=Dt-Ve}e.modifiersData[r]=P}}const CJ={name:"preventOverflow",enabled:!0,phase:"main",fn:SJ,requiresIfExists:["offset"]};function wJ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function TJ(t){return t===Or(t)||!qr(t)?_x(t):wJ(t)}function _J(t){var e=t.getBoundingClientRect(),n=tl(e.width)/t.offsetWidth||1,r=tl(e.height)/t.offsetHeight||1;return n!==1||r!==1}function kJ(t,e,n){n===void 0&&(n=!1);var r=qr(e),o=qr(e)&&_J(e),i=rs(e),s=nl(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Do(e)!=="body"||Ex(i))&&(a=TJ(e)),qr(e)?(l=nl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=kx(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function EJ(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function MJ(t){var e=EJ(t);return BG.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function OJ(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function RJ(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var d_={placement:"bottom",modifiers:[],strategy:"absolute"};function f_(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AJ(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?d_:o;return function(a,l,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},d_,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(C){var _=typeof C=="function"?C(f.options):C;b(),f.options=Object.assign({},i,f.options,_),f.scrollParents={reference:Hs(a)?pc(a):a.contextElement?pc(a.contextElement):[],popper:pc(l)};var T=MJ(RJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=T.filter(function(w){return w.enabled}),y(),g.update()},forceUpdate:function(){if(!m){var C=f.elements,_=C.reference,T=C.popper;if(f_(_,T)){f.rects={reference:kJ(_,uu(T),f.options.strategy==="fixed"),popper:wx(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var w=0;w<f.orderedModifiers.length;w++){if(f.reset===!0){f.reset=!1,w=-1;continue}var E=f.orderedModifiers[w],O=E.fn,N=E.options,D=N===void 0?{}:N,L=E.name;typeof O=="function"&&(f=O({state:f,options:D,name:L,instance:g})||f)}}}},update:OJ(function(){return new Promise(function(S){g.forceUpdate(),S(f)})}),destroy:function(){b(),m=!0}};if(!f_(a,l))return g;g.setOptions(u).then(function(S){!m&&u.onFirstUpdate&&u.onFirstUpdate(S)});function y(){f.orderedModifiers.forEach(function(S){var C=S.name,_=S.options,T=_===void 0?{}:_,w=S.effect;if(typeof w=="function"){var E=w({state:f,name:C,instance:g,options:T}),O=function(){};p.push(E||O)}})}function b(){p.forEach(function(S){return S()}),p=[]}return g}}var IJ=[tJ,vJ,QG,E2,yJ,fJ,CJ,GG,hJ],N2=AJ({defaultModifiers:IJ});function DJ(t){return Ye("MuiPopper",t)}We("MuiPopper",["root"]);function PJ(t,e){if(e==="ltr")return t;switch(t){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 t}}function _f(t){return typeof t=="function"?t():t}function Up(t){return t.nodeType!==void 0}function NJ(t){return!Up(t)}const LJ=t=>{const{classes:e}=t;return Ke({root:["root"]},DJ,e)},jJ={},$J=A.forwardRef(function(e,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:y,ownerState:b,...S}=e,C=A.useRef(null),_=Et(C,n),T=A.useRef(null),w=Et(T,p),E=A.useRef(w);An(()=>{E.current=w},[w]),A.useImperativeHandle(p,()=>T.current,[]);const O=PJ(u,i),[N,D]=A.useState(O),[L,M]=A.useState(_f(r));A.useEffect(()=>{T.current&&T.current.forceUpdate()}),A.useEffect(()=>{r&&M(_f(r))},[r]),An(()=>{if(!L||!l)return;const $=K=>{D(K.placement)};if(process.env.NODE_ENV!=="production"&&L&&Up(L)&&L.nodeType===1){const K=L.getBoundingClientRect();process.env.NODE_ENV!=="test"&&K.top===0&&K.left===0&&K.right===0&&K.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
229
- `))}let B=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{$(K)}}];a!=null&&(B=B.concat(a)),f&&f.modifiers!=null&&(B=B.concat(f.modifiers));const q=N2(L,C.current,{placement:O,...f,modifiers:B});return E.current(q),()=>{q.destroy(),E.current(null)}},[L,s,a,l,f,O]);const R={placement:N};y!==null&&(R.TransitionProps=y);const P=LJ(e),z=g.root??"div",F=wt({elementType:z,externalSlotProps:m.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:P.root});return v.jsx(z,{...F,children:typeof o=="function"?o(R):o})}),L2=A.forwardRef(function(e,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:m=jJ,popperRef:g,style:y,transition:b=!1,slotProps:S={},slots:C={},..._}=e,[T,w]=A.useState(!0),E=()=>{w(!1)},O=()=>{w(!0)};if(!l&&!f&&(!b||T))return null;let N;if(i)N=i;else if(r){const M=_f(r);N=M&&Up(M)?Un(M).body:Un(null).body}const D=!f&&l&&(!b||T)?"none":void 0,L=b?{in:f,onEnter:E,onExited:O}:void 0;return v.jsx(Dc,{disablePortal:a,container:N,children:v.jsx($J,{anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:b?!T:f,placement:p,popperOptions:m,popperRef:g,slotProps:S,slots:C,..._,style:{position:"fixed",top:0,left:0,display:D,...y},TransitionProps:L,children:o})})});process.env.NODE_ENV!=="production"&&(L2.propTypes={anchorEl:pi(c.oneOfType([li,c.object,c.func]),t=>{if(t.open){const e=_f(t.anchorEl);if(e&&Up(e)&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
228
+ `)):null),classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),c.string]),disabled:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,edge:c.oneOf(["end","start",!1]),id:c.string,loading:c.bool,loadingIndicator:c.node,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function aY(t){return Ye("MuiTypography",t)}We("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const lY={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},cY=eq(),uY=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=t,a={root:["root",i,t.align!=="inherit"&&`align${Re(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ke(a,aY,s)},dY=be("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${Re(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(It(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Re(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),QT={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ns=A.forwardRef(function(e,n){const{color:r,...o}=St({props:e,name:"MuiTypography"}),i=!lY[r],s=cY({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:g="body1",variantMapping:y=QT,...b}=s,S={...s,align:a,color:r,className:l,component:u,gutterBottom:f,noWrap:p,paragraph:m,variant:g,variantMapping:y},C=u||(m?"p":y[g]||QT[g])||"span",_=uY(S);return v.jsx(dY,{as:C,ref:n,className:Pe(_.root,l),...b,ownerState:S,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...b.style}})});process.env.NODE_ENV!=="production"&&(ns.propTypes={align:c.oneOf(["center","inherit","justify","left","right"]),children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),c.string]),component:c.elementType,gutterBottom:c.bool,noWrap:c.bool,paragraph:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),c.string]),variantMapping:c.object});function fY(t){return Ye("MuiInputAdornment",t)}const e_=We("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var t_;const pY=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Re(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},hY=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=t,a={root:["root",n&&"disablePointerEvents",o&&`position${Re(o)}`,s,r&&"hiddenLabel",i&&`size${Re(i)}`]};return Ke(a,fY,e)},mY=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pY})(It(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${e_.positionStart}&:not(.${e_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),gx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:f,...p}=r,m=po()||{};let g=f;f&&m.variant&&process.env.NODE_ENV!=="production"&&f===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),g||(g=m.variant);const y={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:u,variant:g},b=hY(y);return v.jsx(iu.Provider,{value:null,children:v.jsx(mY,{as:s,ownerState:y,className:Pe(b.root,i),ref:n,...p,children:typeof o=="string"&&!l?v.jsx(ns,{color:"textSecondary",children:o}):v.jsxs(A.Fragment,{children:[u==="start"?t_||(t_=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});process.env.NODE_ENV!=="production"&&(gx.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disablePointerEvents:c.bool,disableTypography:c.bool,position:c.oneOf(["end","start"]).isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});const gY=Fe(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),yY=Fe(v.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),bY=Fe(v.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),vY=Fe(v.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Fe(v.jsxs(A.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");Fe(v.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");Fe(v.jsxs(A.Fragment,{children:[v.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const xY=Fe(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),SY=["clearable","onClear","InputProps","sx","slots","slotProps"],CY=["ownerState"],wY=t=>{const e=mi(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:s,slotProps:a}=t,l=rt(t,SY),u=(s==null?void 0:s.clearButton)??hl,f=wt({elementType:u,externalSlotProps:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:e.fieldClearLabel}}),p=rt(f,CY),m=(s==null?void 0:s.clearIcon)??xY,g=wt({elementType:m,externalSlotProps:a==null?void 0:a.clearIcon,ownerState:{}});return ne({},l,{InputProps:ne({},o,{endAdornment:v.jsxs(A.Fragment,{children:[n&&v.jsx(gx,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:v.jsx(u,ne({},p,{onClick:r,children:v.jsx(m,ne({fontSize:"small"},g))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},TY=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],_Y=(t,e)=>A.useMemo(()=>{const n=ne({},t),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return TY.forEach(o),a2.forEach(o),{forwardedProps:n,internalProps:r}},[t,e]),kY=A.createContext(null);function h2(t){const{contextValue:e,localeText:n,children:r}=t;return v.jsx(kY.Provider,{value:e,children:v.jsx(Gv,{localeText:n,children:r})})}const EY=t=>{const e=Kt(),n=lu();return ne({},t,{disablePast:t.disablePast??!1,disableFuture:t.disableFuture??!1,format:t.format??e.formats.keyboardDate,minDate:Yr(e,t.minDate,n.minDate),maxDate:Yr(e,t.maxDate,n.maxDate)})},MY=t=>{const e=EY(t),{forwardedProps:n,internalProps:r}=_Y(e,"date");return jK({forwardedProps:n,internalProps:r,valueManager:Io,fieldValueManager:gK,validator:au,valueType:"date"})};function OY(t){return Ye("MuiPickersTextField",t)}We("MuiPickersTextField",["root","focused","disabled","error","required"]);function RY(t){return Ye("MuiPickersInputBase",t)}const Wa=We("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function AY(t){return Ye("MuiPickersSectionList",t)}const Hl=We("MuiPickersSectionList",["root","section","sectionContent"]),IY=["slots","slotProps","elements","sectionListRef"],m2=be("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(t,e)=>e.root})({direction:"ltr /*! @noflip */",outline:"none"}),g2=be("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(t,e)=>e.section})({}),y2=be("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(t,e)=>e.sectionSeparator})({whiteSpace:"pre"}),b2=be("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(t,e)=>e.sectionContent})({outline:"none"}),DY=t=>{const{classes:e}=t;return Ke({root:["root"],section:["section"],sectionContent:["sectionContent"]},AY,e)};function v2(t){const{slots:e,slotProps:n,element:r,classes:o}=t,i=(e==null?void 0:e.section)??g2,s=wt({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=(e==null?void 0:e.sectionContent)??b2,l=wt({elementType:a,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),u=(e==null?void 0:e.sectionSeparator)??y2,f=wt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=wt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return v.jsxs(i,ne({},s,{children:[v.jsx(u,ne({},f)),v.jsx(a,ne({},l)),v.jsx(u,ne({},p))]}))}process.env.NODE_ENV!=="production"&&(v2.propTypes={classes:c.object.isRequired,element:c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired}).isRequired,slotProps:c.object,slots:c.object});const x2=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:s,sectionListRef:a}=r,l=rt(r,IY),u=DY(r),f=A.useRef(null),p=Et(n,f),m=b=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return f.current};A.useImperativeHandle(a,()=>({getRoot(){return m("getRoot")},getSectionContainer(b){return m("getSectionContainer").querySelector(`.${Hl.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return m("getSectionContent").querySelector(`.${Hl.section}[data-sectionindex="${b}"] .${Hl.sectionContent}`)},getSectionIndexFromDOMElement(b){const S=m("getSectionIndexFromDOMElement");if(b==null||!S.contains(b))return null;let C=null;return b.classList.contains(Hl.section)?C=b:b.classList.contains(Hl.sectionContent)&&(C=b.parentElement),C==null?null:Number(C.dataset.sectionindex)}}));const g=(o==null?void 0:o.root)??m2,y=wt({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return v.jsx(g,ne({},y,{children:y.contentEditable?s.map(({content:b,before:S,after:C})=>`${S.children}${b.children}${C.children}`).join(""):v.jsx(A.Fragment,{children:s.map((b,S)=>v.jsx(v2,{slots:o,slotProps:i,element:b,classes:u},S))})}))});process.env.NODE_ENV!=="production"&&(x2.propTypes={classes:c.object,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object});const PY=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],NY=t=>Math.round(t*1e5)/1e5,Vp=be("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>ne({},t.typography.body1,{color:(t.vars||t).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${NY(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),yx=be(m2,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})(({theme:t})=>({padding:"4px 0 5px",fontFamily:t.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:n,filled:r,label:o})=>!e&&!n&&!r&&o==null,style:t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:t.palette.mode==="light"?.42:.5}}]})),LY=be(g2,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(t,e)=>e.section})(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),jY=be(b2,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(t,e)=>e.content})(({theme:t})=>({fontFamily:t.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),$Y=be(y2,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(t,e)=>e.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),FY=be("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(t,e)=>e.hiddenInput})(ne({},I6)),BY=t=>{const{focused:e,disabled:n,error:r,classes:o,fullWidth:i,readOnly:s,color:a,size:l,endAdornment:u,startAdornment:f}=t,p={root:["root",e&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",i&&"fullWidth",`color${Re(a)}`,l==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ke(p,RY,o)},Hp=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:s,onChange:a,id:l,endAdornment:u,startAdornment:f,renderSuffix:p,slots:m,slotProps:g,contentEditable:y,tabIndex:b,onInput:S,onPaste:C,onKeyDown:_,name:T,readOnly:w,inputProps:E,inputRef:O,sectionListRef:N}=r,D=rt(r,PY),L=A.useRef(null),M=Et(n,L),R=Et(E==null?void 0:E.ref,O),P=co(),B=po();if(!B)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const z=Y=>{var Z;if(B.disabled){Y.stopPropagation();return}(Z=B.onFocus)==null||Z.call(B,Y)};A.useEffect(()=>{B&&B.setAdornedStart(!!f)},[B,f]),A.useEffect(()=>{B&&(i?B.onEmpty():B.onFilled())},[B,i]);const $=ne({},r,B,{isRtl:P}),F=BY($),q=(m==null?void 0:m.root)||Vp,U=wt({elementType:q,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:D,additionalProps:{"aria-invalid":B.error,ref:M},className:F.root,ownerState:$}),G=(m==null?void 0:m.input)||yx;return v.jsxs(q,ne({},U,{children:[f,v.jsx(x2,{sectionListRef:N,elements:o,contentEditable:y,tabIndex:b,className:F.sectionsContainer,onFocus:z,onBlur:B.onBlur,onInput:S,onPaste:C,onKeyDown:_,slots:{root:G,section:LY,sectionContent:jY,sectionSeparator:$Y},slotProps:{root:{ownerState:$},sectionContent:{className:Wa.sectionContent},sectionSeparator:({position:Y})=>({className:Y==="before"?Wa.sectionBefore:Wa.sectionAfter})}}),u,p?p(ne({},B)):null,v.jsx(FY,ne({name:T,className:F.input,value:s,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:B.required,disabled:B.disabled},E,{ref:R}))]}))});process.env.NODE_ENV!=="production"&&(Hp.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});function zY(t){return Ye("MuiPickersOutlinedInput",t)}const ro=ne({},Wa,We("MuiPickersOutlinedInput",["root","notchedOutline","input"])),VY=["children","className","label","notched","shrink"],HY=be("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),n_=be("span")(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit"})),WY=be("legend")(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}));function qY(t){const{className:e,label:n}=t,r=rt(t,VY),o=n!=null&&n!=="",i=ne({},t,{withLabel:o});return v.jsx(HY,ne({"aria-hidden":!0,className:e},r,{ownerState:i,children:v.jsx(WY,{ownerState:i,children:o?v.jsx(n_,{children:n}):v.jsx(n_,{className:"notranslate",children:"​"})})}))}const UY=["label","autoFocus","ownerState","notched"],KY=be(Vp,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${ro.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${ro.focused} .${ro.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ro.disabled}`]:{[`& .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled},"*":{color:(t.vars||t).palette.action.disabled}},[`&.${ro.error} .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},variants:Object.keys((t.vars??t).palette).filter(n=>{var r;return((r=(t.vars??t).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${ro.focused}:not(.${ro.error}) .${ro.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}}))}}),YY=be(yx,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),GY=t=>{const{classes:e}=t,r=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zY,e);return ne({},e,r)},bx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:s}=r,a=rt(r,UY),l=po(),u=ne({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),f=GY(u);return v.jsx(Hp,ne({slots:{root:KY,input:YY},renderSuffix:p=>v.jsx(qY,{shrink:!!(s||p.adornedStart||p.focused||p.filled),notched:!!(s||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?v.jsxs(A.Fragment,{children:[o," ","*"]}):o,ownerState:u})},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(bx.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,notched:c.bool,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});bx.muiName="Input";function JY(t){return Ye("MuiPickersFilledInput",t)}const ys=ne({},Wa,We("MuiPickersFilledInput",["root","underline","input"])),ZY=["label","autoFocus","disableUnderline","ownerState"],XY=be(Vp,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Wd(t)&&t!=="disableUnderline"})(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${ys.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${ys.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((t.vars??t).palette).filter(s=>(t.vars??t).palette[s].main).map(s=>{var a;return{props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ys.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ys.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ys.disabled}, .${ys.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ys.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),QY=be(yx,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:t})=>!!t,style:{paddingLeft:0}},{props:({endAdornment:t})=>!!t,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),eG=t=>{const{classes:e,disableUnderline:n}=t,o=Ke({root:["root",!n&&"underline"],input:["input"]},JY,e);return ne({},e,o)},vx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:s}=r,a=rt(r,ZY),l=po(),u=ne({},r,s,l,{color:(l==null?void 0:l.color)||"primary"}),f=eG(u);return v.jsx(Hp,ne({slots:{root:XY,input:QY},slotProps:{root:{disableUnderline:i}}},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(vx.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,disableUnderline:c.bool,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});vx.muiName="Input";function tG(t){return Ye("MuiPickersFilledInput",t)}const Wl=ne({},Wa,We("MuiPickersInput",["root","input"])),nG=["label","autoFocus","disableUnderline","ownerState"],rG=be(Vp,{name:"MuiPickersInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((t.vars??t).palette).filter(r=>(t.vars??t).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wl.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wl.disabled}, .${Wl.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wl.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),oG=t=>{const{classes:e,disableUnderline:n}=t,o=Ke({root:["root",!n&&"underline"],input:["input"]},tG,e);return ne({},e,o)},xx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:s}=r,a=rt(r,nG),l=po(),u=ne({},r,s,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),f=oG(u);return v.jsx(Hp,ne({slots:{root:rG}},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(xx.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,disableUnderline:c.bool,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});xx.muiName="Input";const iG=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],sG={standard:xx,filled:vx,outlined:bx},aG=be(Zv,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),lG=t=>{const{focused:e,disabled:n,classes:r,required:o}=t;return Ke({root:["root",e&&!n&&"focused",n&&"disabled",o&&"required"]},OY,r)},S2=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:s,color:a="primary",disabled:l=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:b,elements:S,areAllSectionsEmpty:C,onClick:_,onKeyDown:T,onKeyUp:w,onPaste:E,onInput:O,endAdornment:N,startAdornment:D,tabIndex:L,contentEditable:M,focused:R,value:P,onChange:B,fullWidth:z,id:$,name:F,helperText:q,FormHelperTextProps:U,label:G,InputLabelProps:Y}=r,Z=rt(r,iG),fe=A.useRef(null),pe=Et(n,fe),ge=jo($),re=q&&ge?`${ge}-helper-text`:void 0,he=G&&ge?`${ge}-label`:void 0,le=ne({},r,{color:a,disabled:l,error:u,focused:R,required:p,variant:f}),X=lG(le),W=sG[f];return v.jsxs(aG,ne({className:Pe(X.root,s),ref:pe,focused:R,onFocus:o,onBlur:i,disabled:l,variant:f,error:u,color:a,fullWidth:z,required:p,ownerState:le},Z,{children:[v.jsx(Jv,ne({htmlFor:ge,id:he},Y,{children:G})),v.jsx(W,ne({elements:S,areAllSectionsEmpty:C,onClick:_,onKeyDown:T,onKeyUp:w,onInput:O,onPaste:E,endAdornment:N,startAdornment:D,tabIndex:L,contentEditable:M,value:P,onChange:B,id:ge,fullWidth:z,inputProps:g,inputRef:y,sectionListRef:b,label:G,name:F,role:"group","aria-labelledby":he},m)),q&&v.jsx(Xv,ne({id:re},U,{children:q}))]}))});process.env.NODE_ENV!=="production"&&(S2.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,color:c.oneOf(["error","info","primary","secondary","success","warning"]),component:c.elementType,contentEditable:c.bool.isRequired,disabled:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,error:c.bool.isRequired,focused:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,hiddenLabel:c.bool,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onBlur:c.func.isRequired,onChange:c.func.isRequired,onClick:c.func.isRequired,onFocus:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,readOnly:c.bool,required:c.bool,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),size:c.oneOf(["medium","small"]),startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired,variant:c.oneOf(["filled","outlined","standard"])});const cG=["enableAccessibleFieldDOMStructure"],uG=["InputProps","readOnly"],dG=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],fG=t=>{let{enableAccessibleFieldDOMStructure:e}=t,n=rt(t,cG);if(e){const{InputProps:p,readOnly:m}=n,g=rt(n,uG);return ne({},g,{InputProps:ne({},p??{},{readOnly:m})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:s,InputProps:a,inputProps:l,inputRef:u}=n,f=rt(n,dG);return ne({},f,{InputProps:ne({},a??{},{readOnly:s}),inputProps:ne({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:u})})},pG=["slots","slotProps","InputProps","inputProps"],Wp=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:s,inputProps:a}=r,l=rt(r,pG),u=r,f=(o==null?void 0:o.textField)??(e.enableAccessibleFieldDOMStructure?S2:e2),p=wt({elementType:f,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:u});p.inputProps=ne({},a,p.inputProps),p.InputProps=ne({},s,p.InputProps);const m=MY(p),g=fG(m),y=wY(ne({},g,{slots:o,slotProps:i}));return v.jsx(f,ne({},y))});process.env.NODE_ENV!=="production"&&(Wp.propTypes={autoFocus:c.bool,className:c.string,clearable:c.bool,color:c.oneOf(["error","info","primary","secondary","success","warning"]),component:c.elementType,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,enableAccessibleFieldDOMStructure:c.bool,focused:c.bool,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,hiddenLabel:c.bool,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:gn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxDate:c.object,minDate:c.object,name:c.string,onBlur:c.func,onChange:c.func,onClear:c.func,onError:c.func,onFocus:c.func,onSelectedSectionsChange:c.func,readOnly:c.bool,referenceDate:c.object,required:c.bool,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,shouldRespectLeadingZeros:c.bool,size:c.oneOf(["medium","small"]),slotProps:c.object,slots:c.object,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,unstableFieldRef:c.oneOfType([c.func,c.object]),value:c.object,variant:c.oneOf(["filled","outlined","standard"])});var ef={exports:{}},hG=ef.exports,r_;function mG(){return r_||(r_=1,function(t,e){(function(n,r){t.exports=r()})(hG,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(i,s,a){var l=s.prototype;a.utc=function(b){var S={date:b,utc:!0,args:arguments};return new s(S)},l.utc=function(b){var S=a(this.toDate(),{locale:this.$L,utc:!0});return b?S.add(this.utcOffset(),n):S},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var f=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else f.call(this)};var p=l.utcOffset;l.utcOffset=function(b,S){var C=this.$utils().u;if(C(b))return this.$u?0:C(this.$offset)?p.call(this):this.$offset;if(typeof b=="string"&&(b=function(E){E===void 0&&(E="");var O=E.match(r);if(!O)return null;var N=(""+O[0]).match(o)||["-",0,0],D=N[0],L=60*+N[1]+ +N[2];return L===0?0:D==="+"?L:-L}(b),b===null))return this;var _=Math.abs(b)<=16?60*b:b,T=this;if(S)return T.$offset=_,T.$u=b===0,T;if(b!==0){var w=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(T=this.local().add(_+w,n)).$offset=_,T.$x.$localOffset=w}else T=this.utc();return T};var m=l.format;l.format=function(b){var S=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,S)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var g=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var y=l.diff;l.diff=function(b,S,C){if(b&&this.$u===b.$u)return y.call(this,b,S,C);var _=this.local(),T=a(b).local();return y.call(_,T,S,C)}}})}(ef)),ef.exports}var gG=mG();const yG=ir(gG);pn.extend(yG);const C2=a9({themeId:ru});function bG(t){return Ye("MuiPickersToolbar",t)}We("MuiPickersToolbar",["root","content"]);const vG=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],xG=t=>{const{classes:e}=t;return Ke({root:["root"],content:["content"]},bG,e)},SG=be("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),CG=be("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),wG=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,u=rt(r,vG),f=r,p=xG(f);return a?null:v.jsxs(SG,ne({ref:n,className:Pe(p.root,i),ownerState:f},u,{children:[v.jsx(ns,{color:"text.secondary",variant:"overline",id:l,children:s}),v.jsx(CG,{className:p.content,ownerState:f,children:o})]}))});function TG(t){return Ye("MuiDatePickerToolbar",t)}We("MuiDatePickerToolbar",["root","title"]);const _G=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],kG=t=>{const{classes:e}=t;return Ke({root:["root"],title:["title"]},TG,e)},EG=be(wG,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),MG=be(ns,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),w2=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l,className:u}=r,f=rt(r,_G),p=Kt(),m=mi(),g=kG(r),y=A.useMemo(()=>{if(!o)return a;const S=cx(p,{format:s,views:l},!0);return p.formatByString(o,S)},[o,s,a,p,l]),b=r;return v.jsx(EG,ne({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:i,className:Pe(g.root,u)},f,{children:v.jsx(MG,{variant:"h4",align:i?"left":"center",ownerState:b,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(w2.propTypes={classes:c.object,className:c.string,disabled:c.bool,hidden:c.bool,isLandscape:c.bool.isRequired,onChange:c.func.isRequired,onViewChange:c.func.isRequired,readOnly:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleId:c.string,toolbarFormat:c.string,toolbarPlaceholder:c.node,value:c.object,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});function T2(t,e){const n=Kt(),r=lu(),o=Ut({props:t,name:e}),i=A.useMemo(()=>{var s;return((s=o.localeText)==null?void 0:s.toolbarTitle)==null?o.localeText:ne({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return ne({},o,{localeText:i},UU({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate),slots:ne({toolbar:w2},o.slots)})}var hr="top",Gr="bottom",Jr="right",mr="left",Sx="auto",cu=[hr,Gr,Jr,mr],el="start",Pc="end",OG="clippingParents",_2="viewport",ql="popper",RG="reference",o_=cu.reduce(function(t,e){return t.concat([e+"-"+el,e+"-"+Pc])},[]),k2=[].concat(cu,[Sx]).reduce(function(t,e){return t.concat([e,e+"-"+el,e+"-"+Pc])},[]),AG="beforeRead",IG="read",DG="afterRead",PG="beforeMain",NG="main",LG="afterMain",jG="beforeWrite",$G="write",FG="afterWrite",BG=[AG,IG,DG,PG,NG,LG,jG,$G,FG];function Do(t){return t?(t.nodeName||"").toLowerCase():null}function Or(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Hs(t){var e=Or(t).Element;return t instanceof e||t instanceof Element}function qr(t){var e=Or(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Cx(t){if(typeof ShadowRoot>"u")return!1;var e=Or(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function zG(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!qr(i)||!Do(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function VG(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!qr(o)||!Do(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const E2={name:"applyStyles",enabled:!0,phase:"write",fn:zG,effect:VG,requires:["computeStyles"]};function Ro(t){return t.split("-")[0]}var Ps=Math.max,Tf=Math.min,tl=Math.round;function q0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function M2(){return!/^((?!chrome|android).)*safari/i.test(q0())}function nl(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&qr(t)&&(o=t.offsetWidth>0&&tl(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&tl(r.height)/t.offsetHeight||1);var s=Hs(t)?Or(t):window,a=s.visualViewport,l=!M2()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,f=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,m=r.height/i;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function wx(t){var e=nl(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function O2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Cx(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fi(t){return Or(t).getComputedStyle(t)}function HG(t){return["table","td","th"].indexOf(Do(t))>=0}function rs(t){return((Hs(t)?t.ownerDocument:t.document)||window.document).documentElement}function qp(t){return Do(t)==="html"?t:t.assignedSlot||t.parentNode||(Cx(t)?t.host:null)||rs(t)}function i_(t){return!qr(t)||fi(t).position==="fixed"?null:t.offsetParent}function WG(t){var e=/firefox/i.test(q0()),n=/Trident/i.test(q0());if(n&&qr(t)){var r=fi(t);if(r.position==="fixed")return null}var o=qp(t);for(Cx(o)&&(o=o.host);qr(o)&&["html","body"].indexOf(Do(o))<0;){var i=fi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function uu(t){for(var e=Or(t),n=i_(t);n&&HG(n)&&fi(n).position==="static";)n=i_(n);return n&&(Do(n)==="html"||Do(n)==="body"&&fi(n).position==="static")?e:n||WG(t)||e}function Tx(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fc(t,e,n){return Ps(t,Tf(e,n))}function qG(t,e,n){var r=fc(t,e,n);return r>n?n:r}function R2(){return{top:0,right:0,bottom:0,left:0}}function A2(t){return Object.assign({},R2(),t)}function I2(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var UG=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,A2(typeof e!="number"?e:I2(e,cu))};function KG(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Ro(n.placement),l=Tx(a),u=[mr,Jr].indexOf(a)>=0,f=u?"height":"width";if(!(!i||!s)){var p=UG(o.padding,n),m=wx(i),g=l==="y"?hr:mr,y=l==="y"?Gr:Jr,b=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],S=s[l]-n.rects.reference[l],C=uu(i),_=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,T=b/2-S/2,w=p[g],E=_-m[f]-p[y],O=_/2-m[f]/2+T,N=fc(w,O,E),D=l;n.modifiersData[r]=(e={},e[D]=N,e.centerOffset=N-O,e)}}function YG(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||O2(e.elements.popper,o)&&(e.elements.arrow=o))}const GG={name:"arrow",enabled:!0,phase:"main",fn:KG,effect:YG,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rl(t){return t.split("-")[1]}var JG={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZG(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:tl(n*o)/o||0,y:tl(r*o)/o||0}}function s_(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,p=t.isFixed,m=s.x,g=m===void 0?0:m,y=s.y,b=y===void 0?0:y,S=typeof f=="function"?f({x:g,y:b}):{x:g,y:b};g=S.x,b=S.y;var C=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),T=mr,w=hr,E=window;if(u){var O=uu(n),N="clientHeight",D="clientWidth";if(O===Or(n)&&(O=rs(n),fi(O).position!=="static"&&a==="absolute"&&(N="scrollHeight",D="scrollWidth")),O=O,o===hr||(o===mr||o===Jr)&&i===Pc){w=Gr;var L=p&&O===E&&E.visualViewport?E.visualViewport.height:O[N];b-=L-r.height,b*=l?1:-1}if(o===mr||(o===hr||o===Gr)&&i===Pc){T=Jr;var M=p&&O===E&&E.visualViewport?E.visualViewport.width:O[D];g-=M-r.width,g*=l?1:-1}}var R=Object.assign({position:a},u&&JG),P=f===!0?ZG({x:g,y:b},Or(n)):{x:g,y:b};if(g=P.x,b=P.y,l){var B;return Object.assign({},R,(B={},B[w]=_?"0":"",B[T]=C?"0":"",B.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",B))}return Object.assign({},R,(e={},e[w]=_?b+"px":"",e[T]=C?g+"px":"",e.transform="",e))}function XG(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Ro(e.placement),variation:rl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,s_(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,s_(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const QG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:XG,data:{}};var vd={passive:!0};function eJ(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Or(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,vd)}),a&&l.addEventListener("resize",n.update,vd),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,vd)}),a&&l.removeEventListener("resize",n.update,vd)}}const tJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eJ,data:{}};var nJ={left:"right",right:"left",bottom:"top",top:"bottom"};function tf(t){return t.replace(/left|right|bottom|top/g,function(e){return nJ[e]})}var rJ={start:"end",end:"start"};function a_(t){return t.replace(/start|end/g,function(e){return rJ[e]})}function _x(t){var e=Or(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function kx(t){return nl(rs(t)).left+_x(t).scrollLeft}function oJ(t,e){var n=Or(t),r=rs(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=M2();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+kx(t),y:l}}function iJ(t){var e,n=rs(t),r=_x(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=Ps(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ps(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+kx(t),l=-r.scrollTop;return fi(o||n).direction==="rtl"&&(a+=Ps(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Ex(t){var e=fi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function D2(t){return["html","body","#document"].indexOf(Do(t))>=0?t.ownerDocument.body:qr(t)&&Ex(t)?t:D2(qp(t))}function pc(t,e){var n;e===void 0&&(e=[]);var r=D2(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Or(r),s=o?[i].concat(i.visualViewport||[],Ex(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(pc(qp(s)))}function U0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sJ(t,e){var n=nl(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function l_(t,e,n){return e===_2?U0(oJ(t,n)):Hs(e)?sJ(e,n):U0(iJ(rs(t)))}function aJ(t){var e=pc(qp(t)),n=["absolute","fixed"].indexOf(fi(t).position)>=0,r=n&&qr(t)?uu(t):t;return Hs(r)?e.filter(function(o){return Hs(o)&&O2(o,r)&&Do(o)!=="body"}):[]}function lJ(t,e,n,r){var o=e==="clippingParents"?aJ(t):[].concat(e),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var f=l_(t,u,r);return l.top=Ps(f.top,l.top),l.right=Tf(f.right,l.right),l.bottom=Tf(f.bottom,l.bottom),l.left=Ps(f.left,l.left),l},l_(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function P2(t){var e=t.reference,n=t.element,r=t.placement,o=r?Ro(r):null,i=r?rl(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case hr:l={x:s,y:e.y-n.height};break;case Gr:l={x:s,y:e.y+e.height};break;case Jr:l={x:e.x+e.width,y:a};break;case mr:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?Tx(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case el:l[u]=l[u]-(e[f]/2-n[f]/2);break;case Pc:l[u]=l[u]+(e[f]/2-n[f]/2);break}}return l}function Nc(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?OG:a,u=n.rootBoundary,f=u===void 0?_2:u,p=n.elementContext,m=p===void 0?ql:p,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,S=b===void 0?0:b,C=A2(typeof S!="number"?S:I2(S,cu)),_=m===ql?RG:ql,T=t.rects.popper,w=t.elements[y?_:m],E=lJ(Hs(w)?w:w.contextElement||rs(t.elements.popper),l,f,s),O=nl(t.elements.reference),N=P2({reference:O,element:T,strategy:"absolute",placement:o}),D=U0(Object.assign({},T,N)),L=m===ql?D:O,M={top:E.top-L.top+C.top,bottom:L.bottom-E.bottom+C.bottom,left:E.left-L.left+C.left,right:L.right-E.right+C.right},R=t.modifiersData.offset;if(m===ql&&R){var P=R[o];Object.keys(M).forEach(function(B){var z=[Jr,Gr].indexOf(B)>=0?1:-1,$=[hr,Gr].indexOf(B)>=0?"y":"x";M[B]+=P[$]*z})}return M}function cJ(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?k2:l,f=rl(r),p=f?a?o_:o_.filter(function(y){return rl(y)===f}):cu,m=p.filter(function(y){return u.indexOf(y)>=0});m.length===0&&(m=p);var g=m.reduce(function(y,b){return y[b]=Nc(t,{placement:b,boundary:o,rootBoundary:i,padding:s})[Ro(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function uJ(t){if(Ro(t)===Sx)return[];var e=tf(t);return[a_(t),e,a_(e)]}function dJ(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,S=e.options.placement,C=Ro(S),_=C===S,T=l||(_||!y?[tf(S)]:uJ(S)),w=[S].concat(T).reduce(function(ge,re){return ge.concat(Ro(re)===Sx?cJ(e,{placement:re,boundary:f,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:b}):re)},[]),E=e.rects.reference,O=e.rects.popper,N=new Map,D=!0,L=w[0],M=0;M<w.length;M++){var R=w[M],P=Ro(R),B=rl(R)===el,z=[hr,Gr].indexOf(P)>=0,$=z?"width":"height",F=Nc(e,{placement:R,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),q=z?B?Jr:mr:B?Gr:hr;E[$]>O[$]&&(q=tf(q));var U=tf(q),G=[];if(i&&G.push(F[P]<=0),a&&G.push(F[q]<=0,F[U]<=0),G.every(function(ge){return ge})){L=R,D=!1;break}N.set(R,G)}if(D)for(var Y=y?3:1,Z=function(re){var he=w.find(function(le){var X=N.get(le);if(X)return X.slice(0,re).every(function(W){return W})});if(he)return L=he,"break"},fe=Y;fe>0;fe--){var pe=Z(fe);if(pe==="break")break}e.placement!==L&&(e.modifiersData[r]._skip=!0,e.placement=L,e.reset=!0)}}const fJ={name:"flip",enabled:!0,phase:"main",fn:dJ,requiresIfExists:["offset"],data:{_skip:!1}};function c_(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function u_(t){return[hr,Jr,Gr,mr].some(function(e){return t[e]>=0})}function pJ(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Nc(e,{elementContext:"reference"}),a=Nc(e,{altBoundary:!0}),l=c_(s,r),u=c_(a,o,i),f=u_(l),p=u_(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const hJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pJ};function mJ(t,e,n){var r=Ro(t),o=[mr,hr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mr,Jr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function gJ(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=k2.reduce(function(f,p){return f[p]=mJ(p,e.rects,i),f},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const yJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gJ};function bJ(t){var e=t.state,n=t.name;e.modifiersData[n]=P2({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const vJ={name:"popperOffsets",enabled:!0,phase:"read",fn:bJ,data:{}};function xJ(t){return t==="x"?"y":"x"}function SJ(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,g=m===void 0?!0:m,y=n.tetherOffset,b=y===void 0?0:y,S=Nc(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),C=Ro(e.placement),_=rl(e.placement),T=!_,w=Tx(C),E=xJ(w),O=e.modifiersData.popperOffsets,N=e.rects.reference,D=e.rects.popper,L=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,M=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(O){if(i){var B,z=w==="y"?hr:mr,$=w==="y"?Gr:Jr,F=w==="y"?"height":"width",q=O[w],U=q+S[z],G=q-S[$],Y=g?-D[F]/2:0,Z=_===el?N[F]:D[F],fe=_===el?-D[F]:-N[F],pe=e.elements.arrow,ge=g&&pe?wx(pe):{width:0,height:0},re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:R2(),he=re[z],le=re[$],X=fc(0,N[F],ge[F]),W=T?N[F]/2-Y-X-he-M.mainAxis:Z-X-he-M.mainAxis,ee=T?-N[F]/2+Y+X+le+M.mainAxis:fe+X+le+M.mainAxis,ce=e.elements.arrow&&uu(e.elements.arrow),te=ce?w==="y"?ce.clientTop||0:ce.clientLeft||0:0,se=(B=R==null?void 0:R[w])!=null?B:0,ue=q+W-se-te,ye=q+ee-se,Te=fc(g?Tf(U,ue):U,q,g?Ps(G,ye):G);O[w]=Te,P[w]=Te-q}if(a){var Se,Me=w==="x"?hr:mr,Ne=w==="x"?Gr:Jr,Ve=O[E],Ge=E==="y"?"height":"width",Ie=Ve+S[Me],st=Ve-S[Ne],xt=[hr,mr].indexOf(C)!==-1,Gt=(Se=R==null?void 0:R[E])!=null?Se:0,bn=xt?Ie:Ve-N[Ge]-D[Ge]-Gt+M.altAxis,nn=xt?Ve+N[Ge]+D[Ge]-Gt-M.altAxis:st,Dt=g&&xt?qG(bn,Ve,nn):fc(g?bn:Ie,Ve,g?nn:st);O[E]=Dt,P[E]=Dt-Ve}e.modifiersData[r]=P}}const CJ={name:"preventOverflow",enabled:!0,phase:"main",fn:SJ,requiresIfExists:["offset"]};function wJ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function TJ(t){return t===Or(t)||!qr(t)?_x(t):wJ(t)}function _J(t){var e=t.getBoundingClientRect(),n=tl(e.width)/t.offsetWidth||1,r=tl(e.height)/t.offsetHeight||1;return n!==1||r!==1}function kJ(t,e,n){n===void 0&&(n=!1);var r=qr(e),o=qr(e)&&_J(e),i=rs(e),s=nl(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Do(e)!=="body"||Ex(i))&&(a=TJ(e)),qr(e)?(l=nl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=kx(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function EJ(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function MJ(t){var e=EJ(t);return BG.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function OJ(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function RJ(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var d_={placement:"bottom",modifiers:[],strategy:"absolute"};function f_(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AJ(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?d_:o;return function(a,l,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},d_,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,g={state:f,setOptions:function(C){var _=typeof C=="function"?C(f.options):C;b(),f.options=Object.assign({},i,f.options,_),f.scrollParents={reference:Hs(a)?pc(a):a.contextElement?pc(a.contextElement):[],popper:pc(l)};var T=MJ(RJ([].concat(r,f.options.modifiers)));return f.orderedModifiers=T.filter(function(w){return w.enabled}),y(),g.update()},forceUpdate:function(){if(!m){var C=f.elements,_=C.reference,T=C.popper;if(f_(_,T)){f.rects={reference:kJ(_,uu(T),f.options.strategy==="fixed"),popper:wx(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var w=0;w<f.orderedModifiers.length;w++){if(f.reset===!0){f.reset=!1,w=-1;continue}var E=f.orderedModifiers[w],O=E.fn,N=E.options,D=N===void 0?{}:N,L=E.name;typeof O=="function"&&(f=O({state:f,options:D,name:L,instance:g})||f)}}}},update:OJ(function(){return new Promise(function(S){g.forceUpdate(),S(f)})}),destroy:function(){b(),m=!0}};if(!f_(a,l))return g;g.setOptions(u).then(function(S){!m&&u.onFirstUpdate&&u.onFirstUpdate(S)});function y(){f.orderedModifiers.forEach(function(S){var C=S.name,_=S.options,T=_===void 0?{}:_,w=S.effect;if(typeof w=="function"){var E=w({state:f,name:C,instance:g,options:T}),O=function(){};p.push(E||O)}})}function b(){p.forEach(function(S){return S()}),p=[]}return g}}var IJ=[tJ,vJ,QG,E2,yJ,fJ,CJ,GG,hJ],N2=AJ({defaultModifiers:IJ});function DJ(t){return Ye("MuiPopper",t)}We("MuiPopper",["root"]);function PJ(t,e){if(e==="ltr")return t;switch(t){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 t}}function _f(t){return typeof t=="function"?t():t}function Up(t){return t.nodeType!==void 0}function NJ(t){return!Up(t)}const LJ=t=>{const{classes:e}=t;return Ke({root:["root"]},DJ,e)},jJ={},$J=A.forwardRef(function(e,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:g={},TransitionProps:y,ownerState:b,...S}=e,C=A.useRef(null),_=Et(C,n),T=A.useRef(null),w=Et(T,p),E=A.useRef(w);An(()=>{E.current=w},[w]),A.useImperativeHandle(p,()=>T.current,[]);const O=PJ(u,i),[N,D]=A.useState(O),[L,M]=A.useState(_f(r));A.useEffect(()=>{T.current&&T.current.forceUpdate()}),A.useEffect(()=>{r&&M(_f(r))},[r]),An(()=>{if(!L||!l)return;const $=U=>{D(U.placement)};if(process.env.NODE_ENV!=="production"&&L&&Up(L)&&L.nodeType===1){const U=L.getBoundingClientRect();process.env.NODE_ENV!=="test"&&U.top===0&&U.left===0&&U.right===0&&U.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
229
+ `))}let F=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:U})=>{$(U)}}];a!=null&&(F=F.concat(a)),f&&f.modifiers!=null&&(F=F.concat(f.modifiers));const q=N2(L,C.current,{placement:O,...f,modifiers:F});return E.current(q),()=>{q.destroy(),E.current(null)}},[L,s,a,l,f,O]);const R={placement:N};y!==null&&(R.TransitionProps=y);const P=LJ(e),B=g.root??"div",z=wt({elementType:B,externalSlotProps:m.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:P.root});return v.jsx(B,{...z,children:typeof o=="function"?o(R):o})}),L2=A.forwardRef(function(e,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:m=jJ,popperRef:g,style:y,transition:b=!1,slotProps:S={},slots:C={},..._}=e,[T,w]=A.useState(!0),E=()=>{w(!1)},O=()=>{w(!0)};if(!l&&!f&&(!b||T))return null;let N;if(i)N=i;else if(r){const M=_f(r);N=M&&Up(M)?Un(M).body:Un(null).body}const D=!f&&l&&(!b||T)?"none":void 0,L=b?{in:f,onEnter:E,onExited:O}:void 0;return v.jsx(Dc,{disablePortal:a,container:N,children:v.jsx($J,{anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:b?!T:f,placement:p,popperOptions:m,popperRef:g,slotProps:S,slots:C,..._,style:{position:"fixed",top:0,left:0,display:D,...y},TransitionProps:L,children:o})})});process.env.NODE_ENV!=="production"&&(L2.propTypes={anchorEl:pi(c.oneOfType([li,c.object,c.func]),t=>{if(t.open){const e=_f(t.anchorEl);if(e&&Up(e)&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
230
230
  `))}else if(!e||typeof e.getBoundingClientRect!="function"||NJ(e)&&e.contextElement!=null&&e.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
231
- `))}return null}),children:c.oneOfType([c.node,c.func]),container:c.oneOfType([li,c.func]),direction:c.oneOf(["ltr","rtl"]),disablePortal:c.bool,keepMounted:c.bool,modifiers:c.arrayOf(c.shape({data:c.object,effect:c.func,enabled:c.bool,fn:c.func,name:c.any,options:c.object,phase:c.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:c.arrayOf(c.string),requiresIfExists:c.arrayOf(c.string)})),open:c.bool.isRequired,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:c.shape({modifiers:c.array,onFirstUpdate:c.func,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:c.oneOf(["absolute","fixed"])}),popperRef:gn,slotProps:c.shape({root:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType}),transition:c.bool});const FJ=be(L2,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),j2=A.forwardRef(function(e,n){const r=co(),o=St({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:y,popperOptions:b,popperRef:S,transition:C,slots:_,slotProps:T,...w}=o,E=(_==null?void 0:_.root)??(a==null?void 0:a.Root),O={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:y,popperOptions:b,popperRef:S,transition:C,...w};return v.jsx(FJ,{as:s,direction:r?"rtl":"ltr",slots:{root:E},slotProps:T??l,...O,ref:n})});process.env.NODE_ENV!=="production"&&(j2.propTypes={anchorEl:c.oneOfType([li,c.object,c.func]),children:c.oneOfType([c.node,c.func]),component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([li,c.func]),disablePortal:c.bool,keepMounted:c.bool,modifiers:c.arrayOf(c.shape({data:c.object,effect:c.func,enabled:c.bool,fn:c.func,name:c.any,options:c.object,phase:c.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:c.arrayOf(c.string),requiresIfExists:c.arrayOf(c.string)})),open:c.bool.isRequired,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:c.shape({modifiers:c.array,onFirstUpdate:c.func,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:c.oneOf(["absolute","fixed"])}),popperRef:gn,slotProps:c.shape({root:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transition:c.bool});function BJ(t){return Ye("MuiPickersPopper",t)}We("MuiPickersPopper",["root","paper"]);const zJ="@media (prefers-reduced-motion: reduce)",qa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),p_=qa&&qa[1]?parseInt(qa[1],10):null,h_=qa&&qa[2]?parseInt(qa[2],10):null,VJ=p_&&p_<10||h_&&h_<13||!1,$2=()=>C2(zJ,{defaultMatches:!1})||VJ,HJ=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],WJ=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"]},BJ,e)},qJ=be(j2,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.modal})),UJ=be(pl,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(t,e)=>e.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:t})=>["top","top-start","top-end"].includes(t),style:{transformOrigin:"bottom center"}}]});function KJ(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function YJ(t,e){const n=A.useRef(!1),r=A.useRef(!1),o=A.useRef(null),i=A.useRef(!1);A.useEffect(()=>{if(!t)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[t]);const s=$e(l=>{if(!i.current)return;const u=r.current;r.current=!1;const f=Un(o.current);if(!o.current||"clientX"in l&&KJ(l,f))return;if(n.current){n.current=!1;return}let p;l.composedPath?p=l.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(l.target)||o.current.contains(l.target),!p&&!u&&e(l)}),a=()=>{r.current=!0};return A.useEffect(()=>{if(t){const l=Un(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[t,s]),A.useEffect(()=>{if(t){const l=Un(o.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[t,s]),[o,a,a]}const GJ=A.forwardRef((t,e)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:u}=t,f=rt(t,HJ),p=ne({},o,{placement:r}),m=wt({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:a,ownerState:p});return v.jsx(n,ne({},f,m,{onClick:g=>{var y;l(g),(y=m.onClick)==null||y.call(m,g)},onTouchStart:g=>{var y;u(g),(y=m.onTouchStart)==null||y.call(m,g)},ownerState:p,children:i}))});function JJ(t){const e=Ut({props:t,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:s,onDismiss:a,open:l,role:u,placement:f,slots:p,slotProps:m,reduceAnimations:g}=e;A.useEffect(()=>{function $(B){l&&B.key==="Escape"&&a()}return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[a,l]);const y=A.useRef(null);A.useEffect(()=>{u==="tooltip"||i&&!i()||(l?y.current=Tr(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[l,u,i]);const[b,S,C]=YJ(l,s??a),_=A.useRef(null),T=Et(_,o),w=Et(T,b),E=e,O=WJ(E),N=$2(),D=g??N,L=$=>{$.key==="Escape"&&($.stopPropagation(),a())},M=(p==null?void 0:p.desktopTransition)??D?Yi:Ac,R=(p==null?void 0:p.desktopTrapFocus)??Ic,P=(p==null?void 0:p.desktopPaper)??UJ,z=(p==null?void 0:p.popper)??qJ,F=wt({elementType:z,externalSlotProps:m==null?void 0:m.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:f,onKeyDown:L},className:O.root,ownerState:e});return v.jsx(z,ne({},F,{children:({TransitionProps:$,placement:B})=>v.jsx(R,ne({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},m==null?void 0:m.desktopTrapFocus,{children:v.jsx(M,ne({},$,m==null?void 0:m.desktopTransition,{children:v.jsx(GJ,{PaperComponent:P,ownerState:E,popperPlacement:B,ref:w,onPaperClick:S,onPaperTouchStart:C,paperClasses:O.paper,paperSlotProps:m==null?void 0:m.desktopPaper,children:r})}))}))}))}const ZJ=({open:t,onOpen:e,onClose:n})=>{const r=A.useRef(typeof t=="boolean").current,[o,i]=A.useState(!1);A.useEffect(()=>{if(r){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(t)}},[r,t]);const s=A.useCallback(a=>{r||i(a),a&&e&&e(),!a&&n&&n()},[r,e,n]);return{isOpen:o,setIsOpen:s}},XJ=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o}=t,i=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?i&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastPublishedValue):e.name==="setValueFromView"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},QJ=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=t,s=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?s&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(r.lastCommittedValue):!1},eZ=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},tZ=({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:u=r==="desktop",timezone:f,referenceDate:p}=t,{current:m}=A.useRef(l),{current:g}=A.useRef(a!==void 0),[y,b]=A.useState(f);process.env.NODE_ENV!=="production"&&(A.useEffect(()=>{g!==(a!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a picker to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
231
+ `))}return null}),children:c.oneOfType([c.node,c.func]),container:c.oneOfType([li,c.func]),direction:c.oneOf(["ltr","rtl"]),disablePortal:c.bool,keepMounted:c.bool,modifiers:c.arrayOf(c.shape({data:c.object,effect:c.func,enabled:c.bool,fn:c.func,name:c.any,options:c.object,phase:c.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:c.arrayOf(c.string),requiresIfExists:c.arrayOf(c.string)})),open:c.bool.isRequired,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:c.shape({modifiers:c.array,onFirstUpdate:c.func,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:c.oneOf(["absolute","fixed"])}),popperRef:gn,slotProps:c.shape({root:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType}),transition:c.bool});const FJ=be(L2,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),j2=A.forwardRef(function(e,n){const r=co(),o=St({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:y,popperOptions:b,popperRef:S,transition:C,slots:_,slotProps:T,...w}=o,E=(_==null?void 0:_.root)??(a==null?void 0:a.Root),O={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:g,placement:y,popperOptions:b,popperRef:S,transition:C,...w};return v.jsx(FJ,{as:s,direction:r?"rtl":"ltr",slots:{root:E},slotProps:T??l,...O,ref:n})});process.env.NODE_ENV!=="production"&&(j2.propTypes={anchorEl:c.oneOfType([li,c.object,c.func]),children:c.oneOfType([c.node,c.func]),component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([li,c.func]),disablePortal:c.bool,keepMounted:c.bool,modifiers:c.arrayOf(c.shape({data:c.object,effect:c.func,enabled:c.bool,fn:c.func,name:c.any,options:c.object,phase:c.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:c.arrayOf(c.string),requiresIfExists:c.arrayOf(c.string)})),open:c.bool.isRequired,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:c.shape({modifiers:c.array,onFirstUpdate:c.func,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:c.oneOf(["absolute","fixed"])}),popperRef:gn,slotProps:c.shape({root:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transition:c.bool});function BJ(t){return Ye("MuiPickersPopper",t)}We("MuiPickersPopper",["root","paper"]);const zJ="@media (prefers-reduced-motion: reduce)",qa=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),p_=qa&&qa[1]?parseInt(qa[1],10):null,h_=qa&&qa[2]?parseInt(qa[2],10):null,VJ=p_&&p_<10||h_&&h_<13||!1,$2=()=>C2(zJ,{defaultMatches:!1})||VJ,HJ=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],WJ=t=>{const{classes:e}=t;return Ke({root:["root"],paper:["paper"]},BJ,e)},qJ=be(j2,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.modal})),UJ=be(pl,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(t,e)=>e.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:t})=>["top","top-start","top-end"].includes(t),style:{transformOrigin:"bottom center"}}]});function KJ(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function YJ(t,e){const n=A.useRef(!1),r=A.useRef(!1),o=A.useRef(null),i=A.useRef(!1);A.useEffect(()=>{if(!t)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[t]);const s=$e(l=>{if(!i.current)return;const u=r.current;r.current=!1;const f=Un(o.current);if(!o.current||"clientX"in l&&KJ(l,f))return;if(n.current){n.current=!1;return}let p;l.composedPath?p=l.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(l.target)||o.current.contains(l.target),!p&&!u&&e(l)}),a=()=>{r.current=!0};return A.useEffect(()=>{if(t){const l=Un(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[t,s]),A.useEffect(()=>{if(t){const l=Un(o.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[t,s]),[o,a,a]}const GJ=A.forwardRef((t,e)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:u}=t,f=rt(t,HJ),p=ne({},o,{placement:r}),m=wt({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:a,ownerState:p});return v.jsx(n,ne({},f,m,{onClick:g=>{var y;l(g),(y=m.onClick)==null||y.call(m,g)},onTouchStart:g=>{var y;u(g),(y=m.onTouchStart)==null||y.call(m,g)},ownerState:p,children:i}))});function JJ(t){const e=Ut({props:t,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:s,onDismiss:a,open:l,role:u,placement:f,slots:p,slotProps:m,reduceAnimations:g}=e;A.useEffect(()=>{function $(F){l&&F.key==="Escape"&&a()}return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[a,l]);const y=A.useRef(null);A.useEffect(()=>{u==="tooltip"||i&&!i()||(l?y.current=Tr(document):y.current&&y.current instanceof HTMLElement&&setTimeout(()=>{y.current instanceof HTMLElement&&y.current.focus()}))},[l,u,i]);const[b,S,C]=YJ(l,s??a),_=A.useRef(null),T=Et(_,o),w=Et(T,b),E=e,O=WJ(E),N=$2(),D=g??N,L=$=>{$.key==="Escape"&&($.stopPropagation(),a())},M=(p==null?void 0:p.desktopTransition)??D?Yi:Ac,R=(p==null?void 0:p.desktopTrapFocus)??Ic,P=(p==null?void 0:p.desktopPaper)??UJ,B=(p==null?void 0:p.popper)??qJ,z=wt({elementType:B,externalSlotProps:m==null?void 0:m.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:f,onKeyDown:L},className:O.root,ownerState:e});return v.jsx(B,ne({},z,{children:({TransitionProps:$,placement:F})=>v.jsx(R,ne({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},m==null?void 0:m.desktopTrapFocus,{children:v.jsx(M,ne({},$,m==null?void 0:m.desktopTransition,{children:v.jsx(GJ,{PaperComponent:P,ownerState:E,popperPlacement:F,ref:w,onPaperClick:S,onPaperTouchStart:C,paperClasses:O.paper,paperSlotProps:m==null?void 0:m.desktopPaper,children:r})}))}))}))}const ZJ=({open:t,onOpen:e,onClose:n})=>{const r=A.useRef(typeof t=="boolean").current,[o,i]=A.useState(!1);A.useEffect(()=>{if(r){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(t)}},[r,t]);const s=A.useCallback(a=>{r||i(a),a&&e&&e(),!a&&n&&n()},[r,e,n]);return{isOpen:o,setIsOpen:s}},XJ=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o}=t,i=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?i&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastPublishedValue):e.name==="setValueFromView"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},QJ=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=t,s=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?s&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(r.lastCommittedValue):!1},eZ=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},tZ=({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:u=r==="desktop",timezone:f,referenceDate:p}=t,{current:m}=A.useRef(l),{current:g}=A.useRef(a!==void 0),[y,b]=A.useState(f);process.env.NODE_ENV!=="production"&&(A.useEffect(()=>{g!==(a!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a picker to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
232
232
  `))},[a]),A.useEffect(()=>{!g&&m!==l&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
233
- `))},[JSON.stringify(m)]));const S=Kt(),C=Js(),{isOpen:_,setIsOpen:T}=ZJ(t),{timezone:w,value:E,handleValueChange:O}=px({timezone:f,value:a,defaultValue:m,referenceDate:p,onChange:s,valueManager:e}),[N,D]=A.useState(()=>{let W;return E!==void 0?W=E:m!==void 0?W=m:W=e.emptyValue,{draft:W,lastPublishedValue:W,lastCommittedValue:W,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),L=e.getTimezone(S,N.draft);y!==f&&(b(f),f&&L&&f!==L&&D(W=>ne({},W,{draft:e.setTimezone(S,f,W.draft)})));const{getValidationErrorForNewValue:M}=d2({props:t,validator:o,timezone:w,value:N.draft,onError:t.onError}),R=$e(W=>{const te={action:W,dateState:N,hasChanged:Te=>!e.areValuesEqual(S,W.value,Te),isControlled:g,closeOnSelect:u},ue=XJ(te),ee=QJ(te),se=eZ(te);D(Te=>ne({},Te,{draft:W.value,lastPublishedValue:ue?W.value:Te.lastPublishedValue,lastCommittedValue:ee?W.value:Te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let de=null;const ye=()=>(de||(de={validationError:W.name==="setValueFromField"?W.context.validationError:M(W.value)},W.name==="setValueFromShortcut"&&(de.shortcut=W.shortcut)),de);ue&&O(W.value,ye()),ee&&i&&i(W.value,ye()),se&&T(!1)});if(N.lastControlledValue!==a){const W=e.areValuesEqual(S,N.draft,E);D(te=>ne({},te,{lastControlledValue:a},W?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const P=$e(()=>{R({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=$e(()=>{R({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),F=$e(()=>{R({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=$e(()=>{R({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),B=$e(()=>{R({value:e.getTodayValue(S,w,n),name:"setValueFromAction",pickerAction:"today"})}),q=$e(W=>{W.preventDefault(),T(!0)}),K=$e(W=>{W==null||W.preventDefault(),T(!1)}),G=$e((W,te="partial")=>R({name:"setValueFromView",value:W,selectionState:te})),Y=$e((W,te,ue)=>R({name:"setValueFromShortcut",value:W,changeImportance:te,shortcut:ue})),Z=$e((W,te)=>R({name:"setValueFromField",value:W,context:te})),ge={onClear:P,onAccept:z,onDismiss:F,onCancel:$,onSetToday:B,onOpen:q,onClose:K},he={value:N.draft,onChange:Z},oe=A.useMemo(()=>e.cleanValue(S,N.draft),[S,e,N.draft]),Q={value:oe,onChange:G,onClose:K,open:_},ce=ne({},ge,{value:oe,onChange:G,onSelectShortcut:Y,isValid:W=>{const te=o({adapter:C,value:W,timezone:w,props:t});return!e.hasError(te)}}),ae=A.useMemo(()=>({onOpen:q,onClose:K,open:_}),[_,K,q]);return{open:_,fieldProps:he,viewProps:Q,layoutProps:ce,actions:ge,contextValue:ae}};let cg=!1;function F2({onChange:t,onViewChange:e,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&(cg||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),cg=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),cg=!0)));const l=A.useRef(n),u=A.useRef(o),f=A.useRef(o.includes(n)?n:o[0]),[p,m]=ui({name:"useViews",state:"view",controlled:r,default:f.current}),g=A.useRef(i?p:null),[y,b]=ui({name:"useViews",state:"focusedView",controlled:s,default:g.current});A.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(N=>!o.includes(N)))&&(m(o.includes(n)?n:o[0]),u.current=o,l.current=n)},[n,m,p,o]);const S=o.indexOf(p),C=o[S-1]??null,_=o[S+1]??null,T=$e((N,D)=>{b(D?N:L=>N===L?null:L),a==null||a(N,D)}),w=$e(N=>{T(N,!0),N!==p&&(m(N),e&&e(N))}),E=$e(()=>{_&&w(_)}),O=$e((N,D,L)=>{const M=D==="finish",R=L?o.indexOf(L)<o.length-1:!!_;if(t(N,M&&R?"partial":D,L),L&&L!==p){const z=o[o.indexOf(L)+1];z&&w(z)}else M&&E()});return{view:p,setView:w,focusedView:y,setFocusedView:T,nextView:_,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:E,setValueAndGoToNextView:O}}const nZ=["className","sx"],rZ=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:a,onClose:l}=e,{view:u,views:f,openTo:p,onViewChange:m,viewRenderers:g,timezone:y}=t,b=rt(t,nZ),{view:S,setView:C,defaultView:_,focusedView:T,setFocusedView:w,setValueAndGoToNextView:E}=F2({view:u,views:f,openTo:p,onChange:s,onViewChange:m,autoFocus:r}),{hasUIView:O,viewModeLookup:N}=A.useMemo(()=>f.reduce((F,$)=>{let B;return g[$]!=null?B="UI":B="field",F.viewModeLookup[$]=B,B==="UI"&&(F.hasUIView=!0),F},{hasUIView:!1,viewModeLookup:{}}),[g,f]),D=A.useMemo(()=>f.reduce((F,$)=>g[$]!=null&&X7($)?F+1:F,0),[g,f]),L=N[S],M=$e(()=>L==="UI"),[R,P]=A.useState(L==="UI"?S:null);return R!==S&&N[S]==="UI"&&P(S),An(()=>{L==="field"&&a&&(l(),setTimeout(()=>{var F,$;(F=i==null?void 0:i.current)==null||F.setSelectedSections(S),($=i==null?void 0:i.current)==null||$.focusField(S)}))},[S]),An(()=>{if(!a)return;let F=S;L==="field"&&R!=null&&(F=R),F!==_&&N[F]==="UI"&&N[_]==="UI"&&(F=_),F!==S&&C(F),w(F,!0)},[a]),{hasUIView:O,shouldRestoreFocus:M,layoutProps:{views:f,view:R,onViewChange:C},renderCurrentView:()=>{if(R==null)return null;const F=g[R];if(F==null)return null;const $=ne({},b,n,e,{views:f,timezone:y,onChange:E,view:R,onViewChange:C,focusedView:T,onFocusedViewChange:w,showViewSwitcher:D>1,timeViewsCount:D});return o?o(g,R,$):F($)}}};function m_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const oZ=(t,e)=>{const[n,r]=A.useState(m_);return An(()=>{const i=()=>{r(m_())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),AK(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},iZ=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=t,i=oZ(n.views,o),s=co();return{layoutProps:ne({},n,e,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function sZ(t){const{props:e,pickerValueResponse:n}=t;return A.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const B2=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{process.env.NODE_ENV!=="production"&&t.renderInput!=null&&$A(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=tZ({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i}),f=rZ({props:t,additionalViewProps:o,autoFocusView:s,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:a}),p=iZ({props:t,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),m=sZ({props:t,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:m}};function z2(t){return Ye("MuiPickersLayout",t)}const bs=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function aZ(t){return Ye("MuiButton",t)}const vs=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),V2=A.createContext({});process.env.NODE_ENV!=="production"&&(V2.displayName="ButtonGroupContext");const H2=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(H2.displayName="ButtonGroupButtonContext");const lZ=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=t,u={root:["root",s&&"loading",i,`${i}${Re(e)}`,`size${Re(o)}`,`${i}Size${Re(o)}`,`color${Re(e)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Re(a)}`],startIcon:["icon","startIcon",`iconSize${Re(o)}`],endIcon:["icon","endIcon",`iconSize${Re(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=Ke(u,aZ,l);return{...l,...f}},W2=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],cZ=be(Qa,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Re(n.color)}`],e[`size${Re(n.size)}`],e[`${n.variant}Size${Re(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(It(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vs.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vs.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vs.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vs.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:Ft(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vs.loading}`]:{color:"transparent"}}}]}})),uZ=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Re(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...W2]})),dZ=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Re(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...W2]})),fZ=be("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),g_=be("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Ql=A.forwardRef(function(e,n){const r=A.useContext(V2),o=A.useContext(H2),i=Ec(r,e),s=St({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:S=!1,id:C,loading:_=null,loadingIndicator:T,loadingPosition:w="center",size:E="medium",startIcon:O,type:N,variant:D="text",...L}=s,M=jo(C),R=T??v.jsx(mx,{"aria-labelledby":M,color:"inherit",size:16}),P={...s,color:l,component:u,disabled:p,disableElevation:m,disableFocusRipple:g,fullWidth:S,loading:_,loadingIndicator:R,loadingPosition:w,size:E,type:N,variant:D},z=lZ(P),F=(O||_&&w==="start")&&v.jsx(uZ,{className:z.startIcon,ownerState:P,children:O||v.jsx(g_,{className:z.loadingIconPlaceholder,ownerState:P})}),$=(y||_&&w==="end")&&v.jsx(dZ,{className:z.endIcon,ownerState:P,children:y||v.jsx(g_,{className:z.loadingIconPlaceholder,ownerState:P})}),B=o||"",q=typeof _=="boolean"?v.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:_&&v.jsx(fZ,{className:z.loadingIndicator,ownerState:P,children:R})}):null;return v.jsxs(cZ,{ownerState:P,className:Pe(r.className,z.root,f,B),component:u,disabled:p||_,focusRipple:!g,focusVisibleClassName:Pe(z.focusVisible,b),ref:n,type:N,id:_?M:C,...L,classes:z,children:[F,w!=="end"&&q,a,w==="end"&&q,$]})});process.env.NODE_ENV!=="production"&&(Ql.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","success","error","info","warning"]),c.string]),component:c.elementType,disabled:c.bool,disableElevation:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,endIcon:c.node,focusVisibleClassName:c.string,fullWidth:c.bool,href:c.string,id:c.string,loading:c.bool,loadingIndicator:c.node,loadingPosition:c.oneOf(["center","end","start"]),size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),startIcon:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string]),variant:c.oneOfType([c.oneOf(["contained","outlined","text"]),c.string])});function pZ(t){return Ye("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const hZ=t=>{const{classes:e,disableSpacing:n}=t;return Ke({root:["root",!n&&"spacing"]},pZ,e)},mZ=be("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),q2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,a={...r,disableSpacing:i},l=hZ(a);return v.jsx(mZ,{className:Pe(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(q2.propTypes={children:c.node,classes:c.object,className:c.string,disableSpacing:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const gZ=["onAccept","onClear","onCancel","onSetToday","actions"];function U2(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:o,actions:i}=t,s=rt(t,gZ),a=mi();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return v.jsx(Ql,{onClick:n,children:a.clearButtonLabel},u);case"cancel":return v.jsx(Ql,{onClick:r,children:a.cancelButtonLabel},u);case"accept":return v.jsx(Ql,{onClick:e,children:a.okButtonLabel},u);case"today":return v.jsx(Ql,{onClick:o,children:a.todayButtonLabel},u);default:return null}});return v.jsx(q2,ne({},s,{children:l}))}process.env.NODE_ENV!=="production"&&(U2.propTypes={actions:c.arrayOf(c.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:c.bool,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onClear:c.func.isRequired,onSetToday:c.func.isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function yZ(t){return Ye("MuiListItem",t)}We("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const bZ=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function vZ(t){return Ye("MuiListItemSecondaryAction",t)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const xZ=t=>{const{disableGutters:e,classes:n}=t;return Ke({root:["root",e&&"disableGutters"]},vZ,n)},SZ=be("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),Mx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=A.useContext(Ha),a={...r,disableGutters:s.disableGutters},l=xZ(a);return v.jsx(SZ,{className:Pe(l.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Mx.propTypes={children:c.node,classes:c.object,className:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});Mx.muiName="ListItemSecondaryAction";const CZ=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},wZ=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=t;return Ke({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},yZ,n)},TZ=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:CZ})(It(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${bZ.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),_Z=be("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),K2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:a,components:l={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...m}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:S=!1,secondaryAction:C,slotProps:_={},slots:T={},...w}=r,E=A.useContext(Ha),O=A.useMemo(()=>({dense:g||E.dense||!1,alignItems:o,disableGutters:y}),[o,E.dense,g,y]),N=A.useRef(null),D=A.Children.toArray(i),L=D.length&&ac(D[D.length-1],["ListItemSecondaryAction"]),M={...r,alignItems:o,dense:O.dense,disableGutters:y,disablePadding:b,divider:S,hasSecondaryAction:L},R=wZ(M),P=Et(N,n),z=T.root||l.Root||TZ,F=_.root||u.root||{},$={className:Pe(R.root,F.className,s),...w};let B=a||"li";return L?(B=!$.component&&!a?"div":B,f==="li"&&(B==="li"?B="div":$.component==="li"&&($.component="div")),v.jsx(Ha.Provider,{value:O,children:v.jsxs(_Z,{as:f,className:Pe(R.container,p),ref:P,ownerState:M,...m,children:[v.jsx(z,{...F,...!Rc(z)&&{as:B,ownerState:{...M,...F.ownerState}},...$,children:D}),D.pop()]})})):v.jsx(Ha.Provider,{value:O,children:v.jsxs(z,{...F,as:B,ref:P,...!Rc(z)&&{ownerState:{...M,...F.ownerState}},...$,children:[D,C&&v.jsx(Mx,{children:C})]})})});process.env.NODE_ENV!=="production"&&(K2.propTypes={alignItems:c.oneOf(["center","flex-start"]),children:pi(c.node,t=>{const e=A.Children.toArray(t.children);let n=-1;for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(ac(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),ContainerComponent:bp,ContainerProps:c.object,dense:c.bool,disableGutters:c.bool,disablePadding:c.bool,divider:c.bool,secondaryAction:c.node,slotProps:c.shape({root:c.object}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const kZ=Fe(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function EZ(t){return Ye("MuiChip",t)}const pt=We("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),MZ=t=>{const{classes:e,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=t,u={root:["root",l,n&&"disabled",`size${Re(r)}`,`color${Re(o)}`,a&&"clickable",a&&`clickableColor${Re(o)}`,s&&"deletable",s&&`deletableColor${Re(o)}`,`${l}${Re(o)}`],label:["label",`label${Re(r)}`],avatar:["avatar",`avatar${Re(r)}`,`avatarColor${Re(o)}`],icon:["icon",`icon${Re(r)}`,`iconColor${Re(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Re(r)}`,`deleteIconColor${Re(o)}`,`deleteIcon${Re(l)}Color${Re(o)}`]};return Ke(u,EZ,e)},OZ=be("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${pt.avatar}`]:e.avatar},{[`& .${pt.avatar}`]:e[`avatar${Re(a)}`]},{[`& .${pt.avatar}`]:e[`avatarColor${Re(r)}`]},{[`& .${pt.icon}`]:e.icon},{[`& .${pt.icon}`]:e[`icon${Re(a)}`]},{[`& .${pt.icon}`]:e[`iconColor${Re(o)}`]},{[`& .${pt.deleteIcon}`]:e.deleteIcon},{[`& .${pt.deleteIcon}`]:e[`deleteIcon${Re(a)}`]},{[`& .${pt.deleteIcon}`]:e[`deleteIconColor${Re(r)}`]},{[`& .${pt.deleteIcon}`]:e[`deleteIcon${Re(l)}Color${Re(r)}`]},e.root,e[`size${Re(a)}`],e[`color${Re(r)}`],i&&e.clickable,i&&r!=="default"&&e[`clickableColor${Re(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${Re(r)}`],e[l],e[`${l}${Re(r)}`]]}})(It(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${pt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${pt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${pt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${pt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${pt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${pt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${pt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:Ft(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Ft(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${pt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${pt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Hn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${pt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].contrastTextChannel} / 0.7)`:Ft(t.palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${pt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${pt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${pt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Ft(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${pt.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Ft(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${pt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Ft(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${pt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${pt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${pt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${pt.avatar}`]:{marginLeft:4},[`& .${pt.avatarSmall}`]:{marginLeft:2},[`& .${pt.icon}`]:{marginLeft:4},[`& .${pt.iconSmall}`]:{marginLeft:2},[`& .${pt.deleteIcon}`]:{marginRight:5},[`& .${pt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:Ft(t.palette[n].main,.7)}`,[`&.${pt.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette[n].main,t.palette.action.hoverOpacity)},[`&.${pt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.focusOpacity})`:Ft(t.palette[n].main,t.palette.action.focusOpacity)},[`& .${pt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:Ft(t.palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),RZ=be("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${Re(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function y_(t){return t.key==="Backspace"||t.key==="Delete"}const Y2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:f=!1,icon:p,label:m,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:S,size:C="medium",variant:_="filled",tabIndex:T,skipFocusWhenDisabled:w=!1,...E}=r,O=A.useRef(null),N=Et(O,n),D=G=>{G.stopPropagation(),y&&y(G)},L=G=>{G.currentTarget===G.target&&y_(G)&&G.preventDefault(),b&&b(G)},M=G=>{G.currentTarget===G.target&&y&&y_(G)&&y(G),S&&S(G)},R=s!==!1&&g?!0:s,P=R||y?Qa:l||"div",z={...r,component:P,disabled:f,size:C,color:a,iconColor:A.isValidElement(p)&&p.props.color||a,onDelete:!!y,clickable:R,variant:_},F=MZ(z),$=P===Qa?{component:l||"div",focusVisibleClassName:F.focusVisible,...y&&{disableRipple:!0}}:{};let B=null;y&&(B=u&&A.isValidElement(u)?A.cloneElement(u,{className:Pe(u.props.className,F.deleteIcon),onClick:D}):v.jsx(kZ,{className:Pe(F.deleteIcon),onClick:D}));let q=null;o&&A.isValidElement(o)&&(q=A.cloneElement(o,{className:Pe(F.avatar,o.props.className)}));let K=null;return p&&A.isValidElement(p)&&(K=A.cloneElement(p,{className:Pe(F.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&q&&K&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),v.jsxs(OZ,{as:P,className:Pe(F.root,i),disabled:R&&f?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:M,ref:N,tabIndex:w&&f?-1:T,ownerState:z,...$,...E,children:[q||K,v.jsx(RZ,{className:Pe(F.label),ownerState:z,children:m}),B]})});process.env.NODE_ENV!=="production"&&(Y2.propTypes={avatar:c.element,children:O6,classes:c.object,className:c.string,clickable:c.bool,color:c.oneOfType([c.oneOf(["default","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,deleteIcon:c.element,disabled:c.bool,icon:c.element,label:c.node,onClick:c.func,onDelete:c.func,onKeyDown:c.func,onKeyUp:c.func,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),skipFocusWhenDisabled:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,variant:c.oneOfType([c.oneOf(["filled","outlined"]),c.string])});const Lc=36,Kp=2,Yp=320,AZ=280,Ox=336,IZ=["items","changeImportance","isLandscape","onChange","isValid"],DZ=["getValue"];function G2(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:o}=t,i=rt(t,IZ);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,u=rt(a,DZ);const f=l({isValid:o});return ne({},u,{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)})});return v.jsx(Qv,ne({dense:!0,sx:[{maxHeight:Ox,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>v.jsx(K2,{children:v.jsx(Y2,ne({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(G2.propTypes={changeImportance:c.oneOf(["accept","set"]),className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,isLandscape:c.bool.isRequired,isValid:c.func.isRequired,items:c.arrayOf(c.shape({getValue:c.func.isRequired,id:c.string,label:c.string.isRequired})),onChange:c.func.isRequired,style:c.object,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function PZ(t){return t.view!==null}const NZ=t=>{const{classes:e,isLandscape:n}=t;return Ke({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},z2,e)},LZ=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:a,onViewChange:l,value:u,onChange:f,onSelectShortcut:p,isValid:m,isLandscape:g,disabled:y,readOnly:b,children:S,slots:C,slotProps:_}=t,T=NZ(t),w=(C==null?void 0:C.actionBar)??U2,E=wt({elementType:w,externalSlotProps:_==null?void 0:_.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:e==="desktop"?[]:["cancel","accept"]},className:T.actionBar,ownerState:ne({},t,{wrapperVariant:e})}),O=v.jsx(w,ne({},E)),N=C==null?void 0:C.toolbar,D=wt({elementType:N,externalSlotProps:_==null?void 0:_.toolbar,additionalProps:{isLandscape:g,onChange:f,value:u,view:s,onViewChange:l,views:a,disabled:y,readOnly:b},className:T.toolbar,ownerState:ne({},t,{wrapperVariant:e})}),L=PZ(D)&&N?v.jsx(N,ne({},D)):null,M=S,R=C==null?void 0:C.tabs,P=s&&R?v.jsx(R,ne({view:s,onViewChange:l,className:T.tabs},_==null?void 0:_.tabs)):null,z=(C==null?void 0:C.shortcuts)??G2,F=wt({elementType:z,externalSlotProps:_==null?void 0:_.shortcuts,additionalProps:{isValid:m,isLandscape:g,onChange:p},className:T.shortcuts,ownerState:{isValid:m,isLandscape:g,onChange:p,wrapperVariant:e}}),$=s&&z?v.jsx(z,ne({},F)):null;return{toolbar:L,content:M,tabs:P,actionBar:O,shortcuts:$}},jZ=t=>{const{isLandscape:e,classes:n}=t;return Ke({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},z2,n)},$Z=be("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${bs.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${bs.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${bs.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${bs.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${bs.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${bs.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${bs.shortcuts}`]:{gridColumn:3}}}]}),FZ=be("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Rx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:a,shortcuts:l}=LZ(r),{sx:u,className:f,isLandscape:p,wrapperVariant:m}=r,g=jZ(r);return v.jsxs($Z,{ref:n,sx:u,className:Pe(g.root,f),ownerState:r,children:[p?l:o,p?o:l,v.jsx(FZ,{className:g.contentWrapper,children:m==="desktop"?v.jsxs(A.Fragment,{children:[i,s]}):v.jsxs(A.Fragment,{children:[s,i]})}),a]})});process.env.NODE_ENV!=="production"&&(Rx.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,isLandscape:c.bool.isRequired,isRtl:c.bool.isRequired,isValid:c.func.isRequired,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onChange:c.func.isRequired,onClear:c.func.isRequired,onClose:c.func.isRequired,onDismiss:c.func.isRequired,onOpen:c.func.isRequired,onSelectShortcut:c.func.isRequired,onSetToday:c.func.isRequired,onViewChange:c.func.isRequired,orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.any,view:c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:c.arrayOf(c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:c.oneOf(["desktop","mobile"])});const BZ=["props","getOpenDialogAriaText"],zZ=["ownerState"],VZ=["ownerState"],HZ=t=>{var ye;let{props:e,getOpenDialogAriaText:n}=t,r=rt(t,BZ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,name:y,label:b,inputRef:S,readOnly:C,disabled:_,autoFocus:T,localeText:w,reduceAnimations:E}=e,O=A.useRef(null),N=A.useRef(null),D=jo(),L=((ye=i==null?void 0:i.toolbar)==null?void 0:ye.hidden)??!1,{open:M,actions:R,hasUIView:P,layoutProps:z,renderCurrentView:F,shouldRestoreFocus:$,fieldProps:B,contextValue:q,ownerState:K}=B2(ne({},r,{props:e,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),G=o.inputAdornment??gx,Y=wt({elementType:G,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:e}),Z=rt(Y,zZ),ge=o.openPickerButton??hl,he=wt({elementType:ge,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:_||C,onClick:M?R.onClose:R.onOpen,"aria-label":n(B.value),edge:Z.position},ownerState:e}),oe=rt(he,VZ),Q=o.openPickerIcon,fe=wt({elementType:Q,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:K}),ce=o.field,ae=wt({elementType:ce,externalSlotProps:i==null?void 0:i.field,additionalProps:ne({},B,L&&{id:D},{readOnly:C,disabled:_,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,label:b,name:y,autoFocus:T&&!e.open,focused:M?!0:void 0},S?{inputRef:S}:{}),ownerState:e});P&&(ae.InputProps=ne({},ae.InputProps,{ref:O},!e.disableOpenPicker&&{[`${Z.position}Adornment`]:v.jsx(G,ne({},Z,{children:v.jsx(ge,ne({},oe,{children:v.jsx(Q,ne({},fe))}))}))}));const W=ne({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ae.slots),te=o.layout??Rx;let ue=D;L&&(b?ue=`${D}-label`:ue=void 0);const ee=ne({},i,{toolbar:ne({},i==null?void 0:i.toolbar,{titleId:D}),popper:ne({"aria-labelledby":ue},i==null?void 0:i.popper)}),se=Et(N,ae.unstableFieldRef);return{renderPicker:()=>v.jsxs(h2,{contextValue:q,localeText:w,children:[v.jsx(ce,ne({},ae,{slots:W,slotProps:ee,unstableFieldRef:se})),v.jsx(JJ,ne({role:"dialog",placement:"bottom-start",anchorEl:O.current},R,{open:M,slots:o,slotProps:ee,shouldRestoreFocus:$,reduceAnimations:E,children:v.jsx(te,ne({},z,ee==null?void 0:ee.layout,{slots:o,slotProps:ee,children:F()}))}))]})}},J2=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Js();return A.useCallback(u=>au({adapter:l,value:u,timezone:a,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[l,t,e,n,r,o,i,s,a])},WZ=(t,e,n)=>(r,o)=>{switch(o.type){case"changeMonth":return ne({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),ne({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return ne({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,o.focusedDay);return ne({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!t&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qZ=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:u,shouldDisableDate:f,timezone:p}=t,m=Kt(),g=A.useRef(WZ(!!u,i,m)).current,y=A.useMemo(()=>Io.getInitialReferenceValue({value:e,utils:m,timezone:p,props:t,referenceDate:n,granularity:_o.day}),[n,p]),[b,S]=A.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:m.startOfMonth(y),slideDirection:"left"});A.useEffect(()=>{S({type:"changeMonthTimezone",newTimezone:m.getTimezone(y)})},[y,m]);const C=A.useCallback(O=>{S(ne({type:"changeMonth"},O)),l&&l(O.newMonth)},[l]),_=A.useCallback(O=>{const N=O;m.isSameMonth(N,b.currentMonth)||C({newMonth:m.startOfMonth(N),direction:m.isAfterDay(N,b.currentMonth)?"left":"right"})},[b.currentMonth,C,m]),T=J2({shouldDisableDate:f,minDate:a,maxDate:s,disableFuture:r,disablePast:o,timezone:p}),w=A.useCallback(()=>{S({type:"finishMonthSwitchingAnimation"})},[]),E=$e((O,N)=>{T(O)||S({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:N})});return{referenceDate:y,calendarState:b,changeMonth:_,changeFocusedDay:E,isDateDisabled:T,onMonthSwitchingAnimationEnd:w,handleChangeMonth:C}},UZ=t=>Ye("MuiPickersFadeTransitionGroup",t);We("MuiPickersFadeTransitionGroup",["root"]);const KZ=t=>{const{classes:e}=t;return Ke({root:["root"]},UZ,e)},YZ=be(su,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function Z2(t){const e=Ut({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=KZ(e),a=es();return o?n:v.jsx(YZ,{className:Pe(s.root,r),children:v.jsx(Yi,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function GZ(t){return Ye("MuiPickersDay",t)}const xs=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),JZ=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],ZZ=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,u=s&&!a;return Ke({root:["root",e&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},GZ,l)},X2=({theme:t})=>ne({},t.typography.caption,{width:Lc,height:Lc,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Ft(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${xs.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xs.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xs.disabled}:not(.${xs.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${xs.disabled}&.${xs.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Kp}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${xs.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),Q2=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},XZ=be(Qa,{name:"MuiPickersDay",slot:"Root",overridesResolver:Q2})(X2),QZ=be("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Q2})(({theme:t})=>ne({},X2({theme:t}),{opacity:0,pointerEvents:"none"})),Ul=()=>{},eI=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:m,onFocus:g=Ul,onBlur:y=Ul,onKeyDown:b=Ul,onMouseDown:S=Ul,onMouseEnter:C=Ul,outsideCurrentMonth:_,selected:T=!1,showDaysOutsideCurrentMonth:w=!1,children:E,today:O=!1}=r,N=rt(r,JZ),D=ne({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:u,selected:T,showDaysOutsideCurrentMonth:w,today:O}),L=ZZ(D),M=Kt(),R=A.useRef(null),P=Et(R,n);An(()=>{o&&!a&&!f&&!_&&R.current.focus()},[o,a,f,_]);const z=$=>{S($),_&&$.preventDefault()},F=$=>{a||m(s),_&&$.currentTarget.focus(),p&&p($)};return _&&!w?v.jsx(QZ,{className:Pe(L.root,L.hiddenDaySpacingFiller,i),ownerState:D,role:N.role}):v.jsx(XZ,ne({className:Pe(L.root,i),ref:P,centerRipple:!0,disabled:a,tabIndex:T?0:-1,onKeyDown:$=>b($,s),onFocus:$=>g($,s),onBlur:$=>y($,s),onMouseEnter:$=>C($,s),onClick:F,onMouseDown:z},N,{ownerState:D,children:E||M.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(eI.propTypes={action:c.oneOfType([c.func,c.shape({current:c.shape({focusVisible:c.func.isRequired})})]),centerRipple:c.bool,classes:c.object,className:c.string,component:c.elementType,day:c.object.isRequired,disabled:c.bool,disableHighlightToday:c.bool,disableMargin:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,isAnimating:c.bool,isFirstVisibleCell:c.bool.isRequired,isLastVisibleCell:c.bool.isRequired,onBlur:c.func,onDaySelect:c.func.isRequired,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onMouseEnter:c.func,outsideCurrentMonth:c.bool.isRequired,selected:c.bool,showDaysOutsideCurrentMonth:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,today:c.bool,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})])});const eX=A.memo(eI),tX=t=>Ye("MuiPickersSlideTransition",t),$r=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),nX=["children","className","reduceAnimations","slideDirection","transKey","classes"],rX=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ke(r,tX,e)},oX=be(su,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${$r["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${$r["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${$r.slideEnterActive}`]:e.slideEnterActive},{[`.${$r.slideExit}`]:e.slideExit},{[`.${$r["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${$r["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${$r["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${$r["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${$r.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${$r.slideExit}`]:{transform:"translate(0%)"},[`& .${$r["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${$r["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function iX(t){const e=Ut({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=rt(e,nX),a=rX(e),l=es();if(o)return v.jsx("div",{className:Pe(a.root,r),children:n});const u={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return v.jsx(oX,{className:Pe(a.root,r),childFactory:f=>A.cloneElement(f,{classNames:u}),role:"presentation",children:v.jsx(tx,ne({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),i)})}const sX=t=>Ye("MuiDayCalendar",t);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const aX=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],lX=["ownerState"],cX=t=>{const{classes:e}=t;return Ke({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},sX,e)},tI=(Lc+Kp*2)*6,uX=be("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),dX=be("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),fX=be(ns,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),pX=be(ns,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),hX=be(ns,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>ne({},t.typography.caption,{width:Lc,height:Lc,padding:0,margin:`0 ${Kp}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),mX=be("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:tI}),gX=be(iX,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:tI}),yX=be("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),bX=be("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${Kp}px 0`,display:"flex",justifyContent:"center"});function vX(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:a}=t,l=rt(t,aX);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:g,slotProps:y,timezone:b}=e,S=Kt(),C=zp(b),_=r!==null&&S.isSameDay(n,r),T=o.some(P=>S.isSameDay(P,n)),w=S.isSameDay(n,C),E=(g==null?void 0:g.day)??eX,O=wt({elementType:E,externalSlotProps:y==null?void 0:y.day,additionalProps:ne({disableHighlightToday:f,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":S.toJsDate(n).valueOf()},l),ownerState:ne({},e,{day:n,selected:T})}),N=rt(O,lX),D=A.useMemo(()=>u||i(n),[u,i,n]),L=A.useMemo(()=>S.getMonth(n)!==s,[S,n,s]),M=A.useMemo(()=>{const P=S.startOfMonth(S.setMonth(n,s));return m?S.isSameDay(n,S.startOfWeek(P)):S.isSameDay(n,P)},[s,n,m,S]),R=A.useMemo(()=>{const P=S.endOfMonth(S.setMonth(n,s));return m?S.isSameDay(n,S.endOfWeek(P)):S.isSameDay(n,P)},[s,n,m,S]);return v.jsx(E,ne({},N,{day:n,disabled:D,autoFocus:a&&_,today:w,outsideCurrentMonth:L,isFirstVisibleCell:M,isLastVisibleCell:R,selected:T,tabIndex:_?0:-1,"aria-selected":T,"aria-current":w?"date":void 0}))}function xX(t){const e=Ut({props:t,name:"MuiDayCalendar"}),n=Kt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:m,renderLoading:g=()=>v.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:b,disablePast:S,disableFuture:C,minDate:_,maxDate:T,shouldDisableDate:w,shouldDisableMonth:E,shouldDisableYear:O,dayOfWeekFormatter:N=Te=>n.format(Te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:L,gridLabelId:M,displayWeekNumber:R,fixedWeekNumber:P,autoFocus:z,timezone:F}=e,$=zp(F),B=cX(e),q=co(),K=J2({shouldDisableDate:w,shouldDisableMonth:E,shouldDisableYear:O,minDate:_,maxDate:T,disablePast:S,disableFuture:C,timezone:F}),G=mi(),[Y,Z]=ui({name:"DayCalendar",state:"hasFocus",controlled:D,default:z??!1}),[ge,he]=A.useState(()=>a||$),oe=$e(Te=>{p||u(Te)}),Q=Te=>{K(Te)||(r(Te),he(Te),L==null||L(!0),Z(!0))},fe=$e((Te,Se)=>{switch(Te.key){case"ArrowUp":Q(n.addDays(Se,-7)),Te.preventDefault();break;case"ArrowDown":Q(n.addDays(Se,7)),Te.preventDefault();break;case"ArrowLeft":{const Me=n.addDays(Se,q?1:-1),Ne=n.addMonths(Se,q?1:-1),Ve=dc({utils:n,date:Me,minDate:q?Me:n.startOfMonth(Ne),maxDate:q?n.endOfMonth(Ne):Me,isDateDisabled:K,timezone:F});Q(Ve||Me),Te.preventDefault();break}case"ArrowRight":{const Me=n.addDays(Se,q?-1:1),Ne=n.addMonths(Se,q?-1:1),Ve=dc({utils:n,date:Me,minDate:q?n.startOfMonth(Ne):Me,maxDate:q?Me:n.endOfMonth(Ne),isDateDisabled:K,timezone:F});Q(Ve||Me),Te.preventDefault();break}case"Home":Q(n.startOfWeek(Se)),Te.preventDefault();break;case"End":Q(n.endOfWeek(Se)),Te.preventDefault();break;case"PageUp":Q(n.addMonths(Se,1)),Te.preventDefault();break;case"PageDown":Q(n.addMonths(Se,-1)),Te.preventDefault();break}}),ce=$e((Te,Se)=>Q(Se)),ae=$e((Te,Se)=>{Y&&n.isSameDay(ge,Se)&&(L==null||L(!1))}),W=n.getMonth(i),te=n.getYear(i),ue=A.useMemo(()=>s.filter(Te=>!!Te).map(Te=>n.startOfDay(Te)),[n,s]),ee=`${te}-${W}`,se=A.useMemo(()=>A.createRef(),[ee]),de=A.useMemo(()=>{const Te=n.startOfMonth(i),Se=n.endOfMonth(i);return K(ge)||n.isAfterDay(ge,Se)||n.isBeforeDay(ge,Te)?dc({utils:n,date:ge,minDate:Te,maxDate:Se,disablePast:S,disableFuture:C,isDateDisabled:K,timezone:F}):ge},[i,C,S,ge,K,n,F]),ye=A.useMemo(()=>{const Te=n.getWeekArray(i);let Se=n.addMonths(i,1);for(;P&&Te.length<P;){const Me=n.getWeekArray(Se),Ne=n.isSameDay(Te[Te.length-1][0],Me[0][0]);Me.slice(Ne?1:0).forEach(Ve=>{Te.length<P&&Te.push(Ve)}),Se=n.addMonths(Se,1)}return Te},[i,P,n]);return v.jsxs(uX,{role:"grid","aria-labelledby":M,className:B.root,children:[v.jsxs(dX,{role:"row",className:B.header,children:[R&&v.jsx(pX,{variant:"caption",role:"columnheader","aria-label":G.calendarWeekNumberHeaderLabel,className:B.weekNumberLabel,children:G.calendarWeekNumberHeaderText}),J7(n,$).map((Te,Se)=>v.jsx(fX,{variant:"caption",role:"columnheader","aria-label":n.format(Te,"weekday"),className:B.weekDayLabel,children:N(Te)},Se.toString()))]}),l?v.jsx(mX,{className:B.loadingContainer,children:g()}):v.jsx(gX,ne({transKey:ee,onExited:f,reduceAnimations:m,slideDirection:y,className:Pe(o,B.slideTransition)},b,{nodeRef:se,children:v.jsx(yX,{ref:se,role:"rowgroup",className:B.monthContainer,children:ye.map((Te,Se)=>v.jsxs(bX,{role:"row",className:B.weekContainer,"aria-rowindex":Se+1,children:[R&&v.jsx(hX,{className:B.weekNumber,role:"rowheader","aria-label":G.calendarWeekNumberAriaLabelText(n.getWeekNumber(Te[0])),children:G.calendarWeekNumberText(n.getWeekNumber(Te[0]))}),Te.map((Me,Ne)=>v.jsx(vX,{parentProps:e,day:Me,selectedDays:ue,focusableDay:de,onKeyDown:fe,onFocus:ce,onBlur:ae,onDaySelect:oe,isDateDisabled:K,currentMonthNumber:W,isViewFocused:Y,"aria-colindex":Ne+1},Me.toString()))]},`week-${Te[0]}`))})}))]})}function SX(t){return Ye("MuiPickersMonth",t)}const xd=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),CX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],wX=t=>{const{disabled:e,selected:n,classes:r}=t;return Ke({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},SX,r)},TX=be("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),_X=be("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${xd.disabled}`]:e.disabled},{[`&.${xd.selected}`]:e.selected}]})(({theme:t})=>ne({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xd.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${xd.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),kX=A.memo(function(e){const n=Ut({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:g,"aria-current":y,"aria-label":b,slots:S,slotProps:C}=n,_=rt(n,CX),T=A.useRef(null),w=wX(n);An(()=>{var N;r&&((N=T.current)==null||N.focus())},[r]);const E=(S==null?void 0:S.monthButton)??_X,O=wt({elementType:E,externalSlotProps:C==null?void 0:C.monthButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:T,type:"button",role:"radio","aria-current":y,"aria-checked":a,"aria-label":b,onClick:N=>f(N,l),onKeyDown:N=>p(N,l),onFocus:N=>m(N,l),onBlur:N=>g(N,l)},ownerState:n,className:w.monthButton});return v.jsx(TX,ne({className:Pe(w.root,o),ownerState:n},_,{children:v.jsx(E,ne({},O))}))});function EX(t){return Ye("MuiMonthCalendar",t)}We("MuiMonthCalendar",["root"]);const MX=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],OX=t=>{const{classes:e}=t;return Ke({root:["root"]},EX,e)};function RX(t,e){const n=Kt(),r=lu(),o=Ut({props:t,name:e});return ne({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const AX=be("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Yp,boxSizing:"border-box"}),nI=A.forwardRef(function(e,n){const r=RX(e,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:g,shouldDisableMonth:y,readOnly:b,autoFocus:S=!1,onMonthFocus:C,hasFocus:_,onFocusedViewChange:T,monthsPerRow:w=3,timezone:E,gridLabelId:O,slots:N,slotProps:D}=r,L=rt(r,MX),{value:M,handleValueChange:R,timezone:P}=hx({name:"MonthCalendar",timezone:E,value:i,defaultValue:s,referenceDate:a,onChange:g,valueManager:Io}),z=zp(P),F=co(),$=Kt(),B=A.useMemo(()=>Io.getInitialReferenceValue({value:M,utils:$,props:r,timezone:P,referenceDate:a,granularity:_o.month}),[]),q=r,K=OX(q),G=A.useMemo(()=>$.getMonth(z),[$,z]),Y=A.useMemo(()=>M!=null?$.getMonth(M):null,[M,$]),[Z,ge]=A.useState(()=>Y||$.getMonth(B)),[he,oe]=ui({name:"MonthCalendar",state:"hasFocus",controlled:_,default:S??!1}),Q=$e(ee=>{oe(ee),T&&T(ee)}),fe=A.useCallback(ee=>{const se=$.startOfMonth(f&&$.isAfter(z,m)?z:m),de=$.startOfMonth(u&&$.isBefore(z,p)?z:p),ye=$.startOfMonth(ee);return $.isBefore(ye,se)||$.isAfter(ye,de)?!0:y?y(ye):!1},[u,f,p,m,z,y,$]),ce=$e((ee,se)=>{if(b)return;const de=$.setMonth(M??B,se);R(de)}),ae=$e(ee=>{fe($.setMonth(M??B,ee))||(ge(ee),Q(!0),C&&C(ee))});A.useEffect(()=>{ge(ee=>Y!==null&&ee!==Y?Y:ee)},[Y]);const W=$e((ee,se)=>{switch(ee.key){case"ArrowUp":ae((12+se-3)%12),ee.preventDefault();break;case"ArrowDown":ae((12+se+3)%12),ee.preventDefault();break;case"ArrowLeft":ae((12+se+(F?1:-1))%12),ee.preventDefault();break;case"ArrowRight":ae((12+se+(F?-1:1))%12),ee.preventDefault();break}}),te=$e((ee,se)=>{ae(se)}),ue=$e((ee,se)=>{Z===se&&Q(!1)});return v.jsx(AX,ne({ref:n,className:Pe(K.root,o),ownerState:q,role:"radiogroup","aria-labelledby":O},L,{children:lx($,M??B).map(ee=>{const se=$.getMonth(ee),de=$.format(ee,"monthShort"),ye=$.format(ee,"month"),Te=se===Y,Se=l||fe(ee);return v.jsx(kX,{selected:Te,value:se,onClick:ce,onKeyDown:W,autoFocus:he&&se===Z,disabled:Se,tabIndex:se===Z&&!Se?0:-1,onFocus:te,onBlur:ue,"aria-current":G===se?"date":void 0,"aria-label":ye,monthsPerRow:w,slots:N,slotProps:D,children:de},de)})}))});process.env.NODE_ENV!=="production"&&(nI.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableMonth:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object});function IX(t){return Ye("MuiPickersYear",t)}const Sd=We("MuiPickersYear",["root","yearButton","selected","disabled"]),DX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],PX=t=>{const{disabled:e,selected:n,classes:r}=t;return Ke({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},IX,r)},NX=be("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),LX=be("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${Sd.disabled}`]:e.disabled},{[`&.${Sd.selected}`]:e.selected}]})(({theme:t})=>ne({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:Ft(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Sd.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Sd.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),jX=A.memo(function(e){const n=Ut({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:g,"aria-current":y,slots:b,slotProps:S}=n,C=rt(n,DX),_=A.useRef(null),T=PX(n);An(()=>{var O;r&&((O=_.current)==null||O.focus())},[r]);const w=(b==null?void 0:b.yearButton)??LX,E=wt({elementType:w,externalSlotProps:S==null?void 0:S.yearButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:_,type:"button",role:"radio","aria-current":y,"aria-checked":a,onClick:O=>f(O,l),onKeyDown:O=>p(O,l),onFocus:O=>m(O,l),onBlur:O=>g(O,l)},ownerState:n,className:T.yearButton});return v.jsx(NX,ne({className:Pe(T.root,o),ownerState:n},C,{children:v.jsx(w,ne({},E))}))});function $X(t){return Ye("MuiYearCalendar",t)}We("MuiYearCalendar",["root"]);const FX=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],BX=t=>{const{classes:e}=t;return Ke({root:["root"]},$X,e)};function zX(t,e){const n=Kt(),r=lu(),o=Ut({props:t,name:e});return ne({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const VX=be("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Yp,maxHeight:AZ,boxSizing:"border-box",position:"relative"}),rI=A.forwardRef(function(e,n){const r=zX(e,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:g,onChange:y,readOnly:b,shouldDisableYear:S,onYearFocus:C,hasFocus:_,onFocusedViewChange:T,yearsOrder:w="asc",yearsPerRow:E,timezone:O,gridLabelId:N,slots:D,slotProps:L}=r,M=rt(r,FX),{value:R,handleValueChange:P,timezone:z}=hx({name:"YearCalendar",timezone:O,value:s,defaultValue:a,referenceDate:l,onChange:y,valueManager:Io}),F=zp(z),$=co(),B=Kt(),q=A.useMemo(()=>Io.getInitialReferenceValue({value:R,utils:B,props:r,timezone:z,referenceDate:l,granularity:_o.year}),[]),K=r,G=BX(K),Y=A.useMemo(()=>B.getYear(F),[B,F]),Z=A.useMemo(()=>R!=null?B.getYear(R):null,[R,B]),[ge,he]=A.useState(()=>Z||B.getYear(q)),[oe,Q]=ui({name:"YearCalendar",state:"hasFocus",controlled:_,default:o??!1}),fe=$e(Me=>{Q(Me),T&&T(Me)}),ce=A.useCallback(Me=>{if(p&&B.isBeforeYear(Me,F)||f&&B.isAfterYear(Me,F)||g&&B.isBeforeYear(Me,g)||m&&B.isAfterYear(Me,m))return!0;if(!S)return!1;const Ne=B.startOfYear(Me);return S(Ne)},[f,p,m,g,F,S,B]),ae=$e((Me,Ne)=>{if(b)return;const Ve=B.setYear(R??q,Ne);P(Ve)}),W=$e(Me=>{ce(B.setYear(R??q,Me))||(he(Me),fe(!0),C==null||C(Me))});A.useEffect(()=>{he(Me=>Z!==null&&Me!==Z?Z:Me)},[Z]);const te=w!=="desc"?E*1:E*-1,ue=$&&w==="asc"||!$&&w==="desc"?-1:1,ee=$e((Me,Ne)=>{switch(Me.key){case"ArrowUp":W(Ne-te),Me.preventDefault();break;case"ArrowDown":W(Ne+te),Me.preventDefault();break;case"ArrowLeft":W(Ne-ue),Me.preventDefault();break;case"ArrowRight":W(Ne+ue),Me.preventDefault();break}}),se=$e((Me,Ne)=>{W(Ne)}),de=$e((Me,Ne)=>{ge===Ne&&fe(!1)}),ye=A.useRef(null),Te=Et(n,ye);A.useEffect(()=>{if(o||ye.current===null)return;const Me=ye.current.querySelector('[tabindex="0"]');if(!Me)return;const Ne=Me.offsetHeight,Ve=Me.offsetTop,Ge=ye.current.clientHeight,Ie=ye.current.scrollTop,st=Ve+Ne;Ne>Ge||Ve<Ie||(ye.current.scrollTop=st-Ge/2-Ne/2)},[o]);const Se=B.getYearRange([g,m]);return w==="desc"&&Se.reverse(),v.jsx(VX,ne({ref:Te,className:Pe(G.root,i),ownerState:K,role:"radiogroup","aria-labelledby":N},M,{children:Se.map(Me=>{const Ne=B.getYear(Me),Ve=Ne===Z,Ge=u||ce(Me);return v.jsx(jX,{selected:Ve,value:Ne,onClick:ae,onKeyDown:ee,autoFocus:oe&&Ne===ge,disabled:Ge,tabIndex:Ne===ge&&!Ge?0:-1,onFocus:se,onBlur:de,"aria-current":Y===Ne?"date":void 0,yearsPerRow:E,slots:D,slotProps:L,children:B.format(Me,"year")},B.format(Me,"year"))})}))});process.env.NODE_ENV!=="production"&&(rI.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,onChange:c.func,onFocusedViewChange:c.func,onYearFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableYear:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const HX=t=>Ye("MuiPickersCalendarHeader",t),WX=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function qX(t){return Ye("MuiPickersArrowSwitcher",t)}We("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const UX=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],KX=["ownerState"],YX=["ownerState"],GX=be("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),JX=be("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),b_=be(hl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),ZX=t=>{const{classes:e}=t;return Ke({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},qX,e)},XX=A.forwardRef(function(e,n){const r=co(),o=Ut({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:a,slotProps:l,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:m,isPreviousDisabled:g,isPreviousHidden:y,onGoToPrevious:b,previousLabel:S,labelId:C}=o,_=rt(o,UX),T=o,w=ZX(T),E={isDisabled:u,isHidden:f,goTo:p,label:m},O={isDisabled:g,isHidden:y,goTo:b,label:S},N=(a==null?void 0:a.previousIconButton)??b_,D=wt({elementType:N,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:ne({},T,{hidden:O.isHidden}),className:Pe(w.button,w.previousIconButton)}),L=(a==null?void 0:a.nextIconButton)??b_,M=wt({elementType:L,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:ne({},T,{hidden:E.isHidden}),className:Pe(w.button,w.nextIconButton)}),R=(a==null?void 0:a.leftArrowIcon)??yY,P=wt({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:w.leftArrowIcon}),z=rt(P,KX),F=(a==null?void 0:a.rightArrowIcon)??bY,$=wt({elementType:F,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:w.rightArrowIcon}),B=rt($,YX);return v.jsxs(GX,ne({ref:n,className:Pe(w.root,s),ownerState:T},_,{children:[v.jsx(N,ne({},D,{children:r?v.jsx(F,ne({},B)):v.jsx(R,ne({},z))})),i?v.jsx(ns,{variant:"subtitle1",component:"span",id:C,children:i}):v.jsx(JX,{className:w.spacer,ownerState:T}),v.jsx(L,ne({},M,{children:r?v.jsx(R,ne({},z)):v.jsx(F,ne({},B))}))]}))});function QX(t,{disableFuture:e,maxDate:n,timezone:r}){const o=Kt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isBefore(i,n)?i:n);return!o.isAfter(s,t)},[e,n,t,o,r])}function eQ(t,{disablePast:e,minDate:n,timezone:r}){const o=Kt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isAfter(i,n)?i:n);return!o.isBefore(s,t)},[e,n,t,o,r])}const tQ=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],nQ=["ownerState"],rQ=t=>{const{classes:e}=t;return Ke({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},HX,e)},oQ=be("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),iQ=be("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>ne({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),sQ=be("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),aQ=be(hl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${WX.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),lQ=be(gY,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),oI=A.forwardRef(function(e,n){const r=mi(),o=Kt(),i=Ut({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:g,onMonthChange:y,onViewChange:b,view:S,reduceAnimations:C,views:_,labelId:T,className:w,timezone:E,format:O=`${o.formats.month} ${o.formats.year}`}=i,N=rt(i,tQ),D=i,L=rQ(i),M=(s==null?void 0:s.switchViewButton)??aQ,R=wt({elementType:M,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(S)},ownerState:D,className:L.switchViewButton}),P=(s==null?void 0:s.switchViewIcon)??lQ,z=wt({elementType:P,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:D,className:L.switchViewIcon}),F=rt(z,nQ),$=()=>y(o.addMonths(l,1),"left"),B=()=>y(o.addMonths(l,-1),"right"),q=QX(l,{disableFuture:f,maxDate:m,timezone:E}),K=eQ(l,{disablePast:p,minDate:g,timezone:E}),G=()=>{if(!(_.length===1||!b||u))if(_.length===2)b(_.find(Z=>Z!==S)||_[0]);else{const Z=_.indexOf(S)!==0?0:1;b(_[Z])}};if(_.length===1&&_[0]==="year")return null;const Y=o.formatByString(l,O);return v.jsxs(oQ,ne({},N,{ownerState:D,className:Pe(L.root,w),ref:n,children:[v.jsxs(iQ,{role:"presentation",onClick:G,ownerState:D,"aria-live":"polite",className:L.labelContainer,children:[v.jsx(Z2,{reduceAnimations:C,transKey:Y,children:v.jsx(sQ,{id:T,ownerState:D,className:L.label,children:Y})}),_.length>1&&!u&&v.jsx(M,ne({},R,{children:v.jsx(P,ne({},F))}))]}),v.jsx(Yi,{in:S==="day",children:v.jsx(XX,{slots:s,slotProps:a,onGoToPrevious:B,isPreviousDisabled:K,previousLabel:r.previousMonth,onGoToNext:$,isNextDisabled:q,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(oI.propTypes={classes:c.object,className:c.string,currentMonth:c.object.isRequired,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,format:c.string,labelId:c.string,maxDate:c.object.isRequired,minDate:c.object.isRequired,onMonthChange:c.func.isRequired,onViewChange:c.func,reduceAnimations:c.bool.isRequired,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string.isRequired,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});const cQ=be("div")({overflow:"hidden",width:Yp,maxHeight:Ox,display:"flex",flexDirection:"column",margin:"0 auto"}),uQ=t=>Ye("MuiDateCalendar",t);We("MuiDateCalendar",["root","viewTransitionContainer"]);const dQ=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],fQ=t=>{const{classes:e}=t;return Ke({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},uQ,e)};function pQ(t,e){const n=Kt(),r=lu(),o=$2(),i=Ut({props:t,name:e});return ne({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>v.jsx("span",{children:"..."})),minDate:Yr(n,i.minDate,r.minDate),maxDate:Yr(n,i.maxDate,r.maxDate)})}const hQ=be(cQ,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:Ox}),mQ=be(Z2,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),iI=A.forwardRef(function(e,n){const r=Kt(),o=jo(),i=pQ(e,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:m,onChange:g,onYearChange:y,onMonthChange:b,reduceAnimations:S,shouldDisableDate:C,shouldDisableMonth:_,shouldDisableYear:T,view:w,views:E,openTo:O,className:N,disabled:D,readOnly:L,minDate:M,maxDate:R,disableHighlightToday:P,focusedView:z,onFocusedViewChange:F,showDaysOutsideCurrentMonth:$,fixedWeekNumber:B,dayOfWeekFormatter:q,slots:K,slotProps:G,loading:Y,renderLoading:Z,displayWeekNumber:ge,yearsOrder:he,yearsPerRow:oe,monthsPerRow:Q,timezone:fe}=i,ce=rt(i,dQ),{value:ae,handleValueChange:W,timezone:te}=hx({name:"DateCalendar",timezone:fe,value:l,defaultValue:u,referenceDate:f,onChange:g,valueManager:Io}),{view:ue,setView:ee,focusedView:se,setFocusedView:de,goToNextView:ye,setValueAndGoToNextView:Te}=F2({view:w,views:E,openTo:O,onChange:W,onViewChange:a,autoFocus:s,focusedView:z,onFocusedViewChange:F}),{referenceDate:Se,calendarState:Me,changeFocusedDay:Ne,changeMonth:Ve,handleChangeMonth:Ge,isDateDisabled:Ie,onMonthSwitchingAnimationEnd:st}=qZ({value:ae,referenceDate:f,reduceAnimations:S,onMonthChange:b,minDate:M,maxDate:R,shouldDisableDate:C,disablePast:m,disableFuture:p,timezone:te}),xt=D&&ae||M,Gt=D&&ae||R,bn=`${o}-grid-label`,nn=se!==null,Dt=(K==null?void 0:K.calendarHeader)??oI,wn=wt({elementType:Dt,externalSlotProps:G==null?void 0:G.calendarHeader,additionalProps:{views:E,view:ue,currentMonth:Me.currentMonth,onViewChange:ee,onMonthChange:(tt,Ot)=>Ge({newMonth:tt,direction:Ot}),minDate:xt,maxDate:Gt,disabled:D,disablePast:m,disableFuture:p,reduceAnimations:S,timezone:te,labelId:bn},ownerState:i}),Fn=$e(tt=>{const Ot=r.startOfMonth(tt),Gn=r.endOfMonth(tt),sr=Ie(tt)?dc({utils:r,date:tt,minDate:r.isBefore(M,Ot)?Ot:M,maxDate:r.isAfter(R,Gn)?Gn:R,disablePast:m,disableFuture:p,isDateDisabled:Ie,timezone:te}):tt;sr?(Te(sr,"finish"),b==null||b(Ot)):(ye(),Ve(Ot)),Ne(sr,!0)}),dt=$e(tt=>{const Ot=r.startOfYear(tt),Gn=r.endOfYear(tt),sr=Ie(tt)?dc({utils:r,date:tt,minDate:r.isBefore(M,Ot)?Ot:M,maxDate:r.isAfter(R,Gn)?Gn:R,disablePast:m,disableFuture:p,isDateDisabled:Ie,timezone:te}):tt;sr?(Te(sr,"finish"),y==null||y(sr)):(ye(),Ve(Ot)),Ne(sr,!0)}),In=$e(tt=>W(tt&&Cf(r,tt,ae??Se),"finish",ue));A.useEffect(()=>{ae!=null&&r.isValid(ae)&&Ve(ae)},[ae]);const Vt=i,me=fQ(Vt),Le={disablePast:m,disableFuture:p,maxDate:R,minDate:M},ke={disableHighlightToday:P,readOnly:L,disabled:D,timezone:te,gridLabelId:bn,slots:K,slotProps:G},je=A.useRef(ue);A.useEffect(()=>{je.current!==ue&&(se===je.current&&de(ue,!0),je.current=ue)},[se,de,ue]);const qe=A.useMemo(()=>[ae],[ae]);return v.jsxs(hQ,ne({ref:n,className:Pe(me.root,N),ownerState:Vt},ce,{children:[v.jsx(Dt,ne({},wn,{slots:K,slotProps:G})),v.jsx(mQ,{reduceAnimations:S,className:me.viewTransitionContainer,transKey:ue,ownerState:Vt,children:v.jsxs("div",{children:[ue==="year"&&v.jsx(rI,ne({},Le,ke,{value:ae,onChange:dt,shouldDisableYear:T,hasFocus:nn,onFocusedViewChange:tt=>de("year",tt),yearsOrder:he,yearsPerRow:oe,referenceDate:Se})),ue==="month"&&v.jsx(nI,ne({},Le,ke,{hasFocus:nn,className:N,value:ae,onChange:Fn,shouldDisableMonth:_,onFocusedViewChange:tt=>de("month",tt),monthsPerRow:Q,referenceDate:Se})),ue==="day"&&v.jsx(xX,ne({},Me,Le,ke,{onMonthSwitchingAnimationEnd:st,onFocusedDayChange:Ne,reduceAnimations:S,selectedDays:qe,onSelectedDaysChange:In,shouldDisableDate:C,shouldDisableMonth:_,shouldDisableYear:T,hasFocus:nn,onFocusedViewChange:tt=>de("day",tt),showDaysOutsideCurrentMonth:$,fixedWeekNumber:B,dayOfWeekFormatter:q,displayWeekNumber:ge,loading:Y,renderLoading:Z}))]})})]}))});process.env.NODE_ENV!=="production"&&(iI.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,fixedWeekNumber:c.number,focusedView:c.oneOf(["day","month","year"]),loading:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthChange:c.func,onViewChange:c.func,onYearChange:c.func,openTo:c.oneOf(["day","month","year"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const Ua=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:g,maxDate:y,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:C,reduceAnimations:_,onMonthChange:T,monthsPerRow:w,onYearChange:E,yearsOrder:O,yearsPerRow:N,slots:D,slotProps:L,loading:M,renderLoading:R,disableHighlightToday:P,readOnly:z,disabled:F,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:B,sx:q,autoFocus:K,fixedWeekNumber:G,displayWeekNumber:Y,timezone:Z})=>v.jsx(iI,{view:t,onViewChange:e,views:n.filter(VT),focusedView:r&&VT(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:g,maxDate:y,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:C,reduceAnimations:_,onMonthChange:T,monthsPerRow:w,onYearChange:E,yearsOrder:O,yearsPerRow:N,slots:D,slotProps:L,loading:M,renderLoading:R,disableHighlightToday:P,readOnly:z,disabled:F,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:B,sx:q,autoFocus:K,fixedWeekNumber:G,displayWeekNumber:Y,timezone:Z}),sI=A.forwardRef(function(e,n){var u,f;const r=mi(),o=Kt(),i=T2(e,"MuiDesktopDatePicker"),s=ne({day:Ua,month:Ua,year:Ua},i.viewRenderers),a=ne({},i,{viewRenderers:s,format:cx(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:ne({openPickerIcon:vY,field:Wp},i.slots),slotProps:ne({},i.slotProps,{field:p=>{var m;return ne({},vp((m=i.slotProps)==null?void 0:m.field,p),l2(i),{ref:n})},toolbar:ne({hidden:!0},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=HZ({props:a,valueManager:Io,valueType:"date",getOpenDialogAriaText:c2({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:au});return l()});sI.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:gn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};function gQ(t){return Ye("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);const yQ=We("MuiDialogTitle",["root"]),bQ=t=>{const{classes:e,dividers:n}=t;return Ke({root:["root",n&&"dividers"]},gQ,e)},vQ=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(It(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${yQ.root} + &`]:{paddingTop:0}}}]}))),aI=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=r,a={...r,dividers:i},l=bQ(a);return v.jsx(vQ,{className:Pe(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(aI.propTypes={children:c.node,classes:c.object,className:c.string,dividers:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function xQ(t){return Ye("MuiDialog",t)}const hc=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lI=A.createContext({});process.env.NODE_ENV!=="production"&&(lI.displayName="DialogContext");const SQ=be(rx,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),CQ=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,s={root:["root"],container:["container",`scroll${Re(n)}`],paper:["paper",`paperScroll${Re(n)}`,`paperWidth${Re(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ke(s,xQ,e)},wQ=be(ox,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),TQ=be("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Re(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"}}}]}),_Q=be(pl,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Re(n.scroll)}`],e[`paperWidth${Re(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(It(({theme:t})=>({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:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${hc.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${hc.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${hc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),cI=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiDialog"}),o=es(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:S="sm",onBackdropClick:C,onClick:_,onClose:T,open:w,PaperComponent:E=pl,PaperProps:O={},scroll:N="paper",slots:D={},slotProps:L={},TransitionComponent:M=Yi,transitionDuration:R=i,TransitionProps:P,...z}=r,F={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:S,scroll:N},$=CQ(F),B=A.useRef(),q=de=>{B.current=de.target===de.currentTarget},K=de=>{_&&_(de),B.current&&(B.current=null,C&&C(de),T&&T(de,"backdropClick"))},G=jo(a),Y=A.useMemo(()=>({titleId:G}),[G]),Z={transition:M,...D},ge={transition:P,paper:O,backdrop:f,...L},he={slots:Z,slotProps:ge},[oe,Q]=Bt("root",{elementType:wQ,shouldForwardComponentProp:!0,externalForwardedProps:he,ownerState:F,className:Pe($.root,m),ref:n}),[fe,ce]=Bt("backdrop",{elementType:SQ,shouldForwardComponentProp:!0,externalForwardedProps:he,ownerState:F}),[ae,W]=Bt("paper",{elementType:_Q,shouldForwardComponentProp:!0,externalForwardedProps:he,ownerState:F,className:Pe($.paper,O.className)}),[te,ue]=Bt("container",{elementType:TQ,externalForwardedProps:he,ownerState:F,className:Pe($.container)}),[ee,se]=Bt("transition",{elementType:Yi,externalForwardedProps:he,ownerState:F,additionalProps:{appear:!0,in:w,timeout:R,role:"presentation"}});return v.jsx(oe,{closeAfterTransition:!0,slots:{backdrop:fe},slotProps:{backdrop:{transitionDuration:R,as:u,...ce}},disableEscapeKeyDown:g,onClose:T,open:w,onClick:K,...Q,...z,children:v.jsx(ee,{...se,children:v.jsx(te,{onMouseDown:q,...ue,children:v.jsx(ae,{as:E,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":G,"aria-modal":l,...W,children:v.jsx(lI.Provider,{value:Y,children:p})})})})})});process.env.NODE_ENV!=="production"&&(cI.propTypes={"aria-describedby":c.string,"aria-labelledby":c.string,"aria-modal":c.oneOfType([c.oneOf(["false","true"]),c.bool]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,disableEscapeKeyDown:c.bool,fullScreen:c.bool,fullWidth:c.bool,maxWidth:c.oneOfType([c.oneOf(["xs","sm","md","lg","xl",!1]),c.string]),onBackdropClick:c.func,onClick:c.func,onClose:c.func,open:c.bool.isRequired,PaperComponent:c.elementType,PaperProps:c.object,scroll:c.oneOf(["body","paper"]),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),container:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,container:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});const kQ=be(cI)({[`& .${hc.container}`]:{outline:0},[`& .${hc.paper}`]:{outline:0,minWidth:Yp}}),EQ=be(aI)({"&:first-of-type":{padding:0}});function MQ(t){const{children:e,onDismiss:n,open:r,slots:o,slotProps:i}=t,s=(o==null?void 0:o.dialog)??kQ,a=(o==null?void 0:o.mobileTransition)??Yi;return v.jsx(s,ne({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:a,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:v.jsx(EQ,{children:e})}))}const OQ=["props","getOpenDialogAriaText"],RQ=t=>{var Z;let{props:e,getOpenDialogAriaText:n}=t,r=rt(t,OQ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,name:y,label:b,inputRef:S,readOnly:C,disabled:_,localeText:T}=e,w=A.useRef(null),E=jo(),O=((Z=i==null?void 0:i.toolbar)==null?void 0:Z.hidden)??!1,{open:N,actions:D,layoutProps:L,renderCurrentView:M,fieldProps:R,contextValue:P}=B2(ne({},r,{props:e,fieldRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),z=o.field,F=wt({elementType:z,externalSlotProps:i==null?void 0:i.field,additionalProps:ne({},R,O&&{id:E},!(_||C)&&{onClick:D.onOpen,onKeyDown:IK(D.onOpen)},{readOnly:C??!0,disabled:_,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,label:b,name:y},S?{inputRef:S}:{}),ownerState:e});F.inputProps=ne({},F.inputProps,{"aria-label":n(R.value)});const $=ne({textField:o.textField},F.slots),B=o.layout??Rx;let q=E;O&&(b?q=`${E}-label`:q=void 0);const K=ne({},i,{toolbar:ne({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:ne({"aria-labelledby":q},i==null?void 0:i.mobilePaper)}),G=Et(w,F.unstableFieldRef);return{renderPicker:()=>v.jsxs(h2,{contextValue:P,localeText:T,children:[v.jsx(z,ne({},F,{slots:$,slotProps:K,unstableFieldRef:G})),v.jsx(MQ,ne({},D,{open:N,slots:o,slotProps:K,children:v.jsx(B,ne({},L,K==null?void 0:K.layout,{slots:o,slotProps:K,children:M()}))}))]})}},uI=A.forwardRef(function(e,n){var u,f;const r=mi(),o=Kt(),i=T2(e,"MuiMobileDatePicker"),s=ne({day:Ua,month:Ua,year:Ua},i.viewRenderers),a=ne({},i,{viewRenderers:s,format:cx(o,i,!1),slots:ne({field:Wp},i.slots),slotProps:ne({},i.slotProps,{field:p=>{var m;return ne({},vp((m=i.slotProps)==null?void 0:m.field,p),l2(i),{ref:n})},toolbar:ne({hidden:!1},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=RQ({props:a,valueManager:Io,valueType:"date",getOpenDialogAriaText:c2({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:au});return l()});uI.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:gn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};const AQ=["desktopModeMediaQuery"],dI=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=DK}=r,i=rt(r,AQ);return C2(o,{defaultMatches:!0})?v.jsx(sI,ne({ref:n},i)):v.jsx(uI,ne({ref:n},i))});process.env.NODE_ENV!=="production"&&(dI.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,desktopModeMediaQuery:c.string,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:gn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const IQ={invalidDate:"Date selected is invalid",minDate:"Date selected is too far in the past",maxDate:"Date selected is too far in the future",disableFuture:"Date selected cannot be in the future",disablePast:"Date selected cannot be in the past"},kf=t=>{const{name:e,label:n=Mn(e),required:r=!1,readOnly:o=!1,format:i="MM/DD/YYYY",errorMessages:s,isDatePicker:a=!1,margin:l="dense",staticLabel:u=!1,staticLabelProps:f={fontSize:".9em",color:"#808080"}}=t,[p,m,g]=qt.useField({name:e}),{setValue:y,setError:b}=g,{value:S}=p,{error:C}=m,_=P=>{if(!P)return null;const z=pn.utc(P);return z&&z.isValid()?pn(z):null},T=P=>{const z=P==null?void 0:P.utc();return!z||!z.isValid()?"":z.toISOString()},[w,E]=A.useState(_(S)),[O,N]=A.useState(null),D={...IQ,...s},L=["staticLabel","staticLabelProps","label","errorMessages","isDatePicker","dateFieldProps","datePickerProps","onChange"],M=(P,z)=>T(P)!==z;A.useEffect(()=>{M(w,S)&&y(T(w))},[w]),A.useEffect(()=>{M(w,S)&&E(_(S))},[S]),A.useEffect(()=>{const P=O?D[O]??O:"";b(P)},[O]);const R={label:u?void 0:n,format:i,onError:N,value:w,onChange:(P,z)=>{var F;E(P?P.utc():null),(F=t.onChange)==null||F.call(t,T(P),z)},...er({...t},L)};return v.jsxs(j.FormControl,{fullWidth:!0,margin:l,children:[(u||o)&&v.jsx(j.Typography,{...f,children:n}),o?v.jsx(j.Typography,{"data-testid":"date-field_readonly-value",children:w!=null&&w.isValid()?w.format(i):""}):v.jsxs(j.Box,{children:[v.jsx(Gv,{dateAdapter:Y8,children:v.jsx(j.Box,{children:a?v.jsx(dI,{...R,slotProps:{textField:{fullWidth:!0,error:!!C,required:!!r}}}):v.jsx(Wp,{id:`${e}-df`,...R,fullWidth:!0,slotProps:{textField:{error:!!C}}})})}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},DQ=t=>{const{nameTo:e,nameFrom:n,labelTo:r=Mn(e),labelFrom:o=Mn(n),fromFieldProps:i,toFieldProps:s,staticLabels:a=!1}=t,l=["nameTo","nameFrom","toFieldProps","fromFieldProps","labelTo","labelFrom"],u=j.useMediaQuery(j.useTheme().breakpoints.down("sm"));return v.jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",justifyContent:"space-between",gap:"10px"},children:[v.jsx(kf,{name:n,staticLabel:a,label:o,...er({...t,...i},l)}),v.jsx(kf,{name:e,staticLabel:a,label:r,...er({...t,...s},l)})]})};function Nn(t){this.content=t}Nn.prototype={constructor:Nn,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new Nn(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Nn(n)},addToStart:function(t,e){return new Nn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Nn(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new Nn(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Nn.from(t),t.size?new Nn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Nn.from(t),t.size?new Nn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Nn.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Nn.from=function(t){if(t instanceof Nn)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Nn(e)};function fI(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=fI(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function pI(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let u=pI(s.content,a.content,n-1,r-1);if(u)return u}n-=l,r-=l}}class _e{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&r(l,o+a,i||null,s)!==!1&&l.content.size){let f=a+1;l.nodesBetween(Math.max(0,e-f),Math.min(l.content.size,n-f),r,o+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?o?typeof o=="function"?o(a):o:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new _e(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),r.push(a),o+=a.nodeSize),s=l}return new _e(r,o)}cutByIndex(e,n){return e==n?_e.empty:e==0&&n==this.content.length?this:new _e(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new _e(o,i)}addToStart(e){return new _e([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new _e(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return fI(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return pI(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Cd(0,e);if(e==this.size)return Cd(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Cd(r+1,s):Cd(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return _e.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new _e(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return _e.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new _e(n||e,r)}static from(e){if(!e)return _e.empty;if(e instanceof _e)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new _e([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}_e.empty=new _e([],0);const ug={index:0,offset:0};function Cd(t,e){return ug.index=t,ug.offset=e,ug}function Ef(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Ef(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ef(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let jt=class K0{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ef(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return K0.none;if(e instanceof K0)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};jt.none=[];class Mf extends Error{}class Ae{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=mI(this.content,e+this.openStart,n);return r&&new Ae(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Ae(hI(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ae.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ae(_e.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new Ae(e,r,o)}}Ae.empty=new Ae(_e.empty,0,0);function hI(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:a}=t.findIndex(n);if(o==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(hI(i.content,e-o-1,n-o-1)))}function mI(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=mI(s.content,e-i-1,n);return a&&t.replaceChild(o,s.copy(a))}function PQ(t,e,n){if(n.openStart>t.depth)throw new Mf("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Mf("Inconsistent open depths");return gI(t,e,n,0)}function gI(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=gI(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,a=s.content;return Ls(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=NQ(n,t);return Ls(i,bI(t,s,a,e,r))}else return Ls(i,Of(t,e,r))}function yI(t,e){if(!e.type.compatibleContent(t.type))throw new Mf("Cannot join "+e.type.name+" onto "+t.type.name)}function Y0(t,e,n){let r=t.node(n);return yI(r,e.node(n)),r}function Ns(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function mc(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Ns(t.nodeAfter,r),i++));for(let a=i;a<s;a++)Ns(o.child(a),r);e&&e.depth==n&&e.textOffset&&Ns(e.nodeBefore,r)}function Ls(t,e){return t.type.checkContent(e),t.copy(e)}function bI(t,e,n,r,o){let i=t.depth>o&&Y0(t,e,o+1),s=r.depth>o&&Y0(n,r,o+1),a=[];return mc(null,t,o,a),i&&s&&e.index(o)==n.index(o)?(yI(i,s),Ns(Ls(i,bI(t,e,n,r,o+1)),a)):(i&&Ns(Ls(i,Of(t,e,o+1)),a),mc(e,n,o,a),s&&Ns(Ls(s,Of(n,r,o+1)),a)),mc(r,null,o,a),new _e(a)}function Of(t,e,n){let r=[];if(mc(null,t,n,r),t.depth>n){let o=Y0(t,e,n+1);Ns(Ls(o,Of(t,e,n+1)),r)}return mc(e,null,n,r),new _e(r)}function NQ(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(_e.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class jc{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return jt.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let a=r;r=o,o=a}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Rf(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(r.push(s,a,o+l),!u||(s=s.child(a),s.isText))break;i=u-1,o+=l+1}return new jc(n,r,i)}static resolveCached(e,n){let r=v_.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else v_.set(e,r=new LQ);let o=r.elts[r.i]=jc.resolve(e,n);return r.i=(r.i+1)%jQ,o}}class LQ{constructor(){this.elts=[],this.i=0}}const jQ=12,v_=new WeakMap;class Rf{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const $Q=Object.create(null);let zi=class G0{constructor(e,n,r,o=jt.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||_e.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Ef(this.attrs,n||e.defaultAttrs||$Q)&&jt.sameSet(this.marks,r||jt.none)}copy(e=null){return e==this.content?this:new G0(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new G0(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return Ae.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),a=o.start(s),u=o.node(s).content.cut(o.pos-a,i.pos-a);return new Ae(u,o.depth-s,i.depth-s)}replace(e,n,r){return PQ(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return jc.resolveCached(this,e)}resolveNoCache(e){return jc.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),vI(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=_e.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=o;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=jt.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!jt.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=_e.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};zi.prototype.text=void 0;class Af extends zi{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):vI(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Af(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Af(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function vI(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ws{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new FQ(e,n);if(r.next==null)return Ws.empty;let o=xI(r);r.next&&r.err("Unexpected trailing text");let i=UQ(qQ(o));return KQ(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,a){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return _e.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&o.indexOf(p)==-1){o.push(p);let m=i(p,a.concat(f));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let a=o;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!o.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:o}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
233
+ `))},[JSON.stringify(m)]));const S=Kt(),C=Js(),{isOpen:_,setIsOpen:T}=ZJ(t),{timezone:w,value:E,handleValueChange:O}=px({timezone:f,value:a,defaultValue:m,referenceDate:p,onChange:s,valueManager:e}),[N,D]=A.useState(()=>{let W;return E!==void 0?W=E:m!==void 0?W=m:W=e.emptyValue,{draft:W,lastPublishedValue:W,lastCommittedValue:W,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),L=e.getTimezone(S,N.draft);y!==f&&(b(f),f&&L&&f!==L&&D(W=>ne({},W,{draft:e.setTimezone(S,f,W.draft)})));const{getValidationErrorForNewValue:M}=d2({props:t,validator:o,timezone:w,value:N.draft,onError:t.onError}),R=$e(W=>{const ee={action:W,dateState:N,hasChanged:Te=>!e.areValuesEqual(S,W.value,Te),isControlled:g,closeOnSelect:u},ce=XJ(ee),te=QJ(ee),se=eZ(ee);D(Te=>ne({},Te,{draft:W.value,lastPublishedValue:ce?W.value:Te.lastPublishedValue,lastCommittedValue:te?W.value:Te.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ue=null;const ye=()=>(ue||(ue={validationError:W.name==="setValueFromField"?W.context.validationError:M(W.value)},W.name==="setValueFromShortcut"&&(ue.shortcut=W.shortcut)),ue);ce&&O(W.value,ye()),te&&i&&i(W.value,ye()),se&&T(!1)});if(N.lastControlledValue!==a){const W=e.areValuesEqual(S,N.draft,E);D(ee=>ne({},ee,{lastControlledValue:a},W?{}:{lastCommittedValue:E,lastPublishedValue:E,draft:E,hasBeenModifiedSinceMount:!0}))}const P=$e(()=>{R({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=$e(()=>{R({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),z=$e(()=>{R({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=$e(()=>{R({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),F=$e(()=>{R({value:e.getTodayValue(S,w,n),name:"setValueFromAction",pickerAction:"today"})}),q=$e(W=>{W.preventDefault(),T(!0)}),U=$e(W=>{W==null||W.preventDefault(),T(!1)}),G=$e((W,ee="partial")=>R({name:"setValueFromView",value:W,selectionState:ee})),Y=$e((W,ee,ce)=>R({name:"setValueFromShortcut",value:W,changeImportance:ee,shortcut:ce})),Z=$e((W,ee)=>R({name:"setValueFromField",value:W,context:ee})),fe={onClear:P,onAccept:B,onDismiss:z,onCancel:$,onSetToday:F,onOpen:q,onClose:U},pe={value:N.draft,onChange:Z},ge=A.useMemo(()=>e.cleanValue(S,N.draft),[S,e,N.draft]),re={value:ge,onChange:G,onClose:U,open:_},le=ne({},fe,{value:ge,onChange:G,onSelectShortcut:Y,isValid:W=>{const ee=o({adapter:C,value:W,timezone:w,props:t});return!e.hasError(ee)}}),X=A.useMemo(()=>({onOpen:q,onClose:U,open:_}),[_,U,q]);return{open:_,fieldProps:pe,viewProps:re,layoutProps:le,actions:fe,contextValue:X}};let cg=!1;function F2({onChange:t,onViewChange:e,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&(cg||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),cg=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),cg=!0)));const l=A.useRef(n),u=A.useRef(o),f=A.useRef(o.includes(n)?n:o[0]),[p,m]=ui({name:"useViews",state:"view",controlled:r,default:f.current}),g=A.useRef(i?p:null),[y,b]=ui({name:"useViews",state:"focusedView",controlled:s,default:g.current});A.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(N=>!o.includes(N)))&&(m(o.includes(n)?n:o[0]),u.current=o,l.current=n)},[n,m,p,o]);const S=o.indexOf(p),C=o[S-1]??null,_=o[S+1]??null,T=$e((N,D)=>{b(D?N:L=>N===L?null:L),a==null||a(N,D)}),w=$e(N=>{T(N,!0),N!==p&&(m(N),e&&e(N))}),E=$e(()=>{_&&w(_)}),O=$e((N,D,L)=>{const M=D==="finish",R=L?o.indexOf(L)<o.length-1:!!_;if(t(N,M&&R?"partial":D,L),L&&L!==p){const B=o[o.indexOf(L)+1];B&&w(B)}else M&&E()});return{view:p,setView:w,focusedView:y,setFocusedView:T,nextView:_,previousView:C,defaultView:o.includes(n)?n:o[0],goToNextView:E,setValueAndGoToNextView:O}}const nZ=["className","sx"],rZ=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:a,onClose:l}=e,{view:u,views:f,openTo:p,onViewChange:m,viewRenderers:g,timezone:y}=t,b=rt(t,nZ),{view:S,setView:C,defaultView:_,focusedView:T,setFocusedView:w,setValueAndGoToNextView:E}=F2({view:u,views:f,openTo:p,onChange:s,onViewChange:m,autoFocus:r}),{hasUIView:O,viewModeLookup:N}=A.useMemo(()=>f.reduce((z,$)=>{let F;return g[$]!=null?F="UI":F="field",z.viewModeLookup[$]=F,F==="UI"&&(z.hasUIView=!0),z},{hasUIView:!1,viewModeLookup:{}}),[g,f]),D=A.useMemo(()=>f.reduce((z,$)=>g[$]!=null&&XU($)?z+1:z,0),[g,f]),L=N[S],M=$e(()=>L==="UI"),[R,P]=A.useState(L==="UI"?S:null);return R!==S&&N[S]==="UI"&&P(S),An(()=>{L==="field"&&a&&(l(),setTimeout(()=>{var z,$;(z=i==null?void 0:i.current)==null||z.setSelectedSections(S),($=i==null?void 0:i.current)==null||$.focusField(S)}))},[S]),An(()=>{if(!a)return;let z=S;L==="field"&&R!=null&&(z=R),z!==_&&N[z]==="UI"&&N[_]==="UI"&&(z=_),z!==S&&C(z),w(z,!0)},[a]),{hasUIView:O,shouldRestoreFocus:M,layoutProps:{views:f,view:R,onViewChange:C},renderCurrentView:()=>{if(R==null)return null;const z=g[R];if(z==null)return null;const $=ne({},b,n,e,{views:f,timezone:y,onChange:E,view:R,onViewChange:C,focusedView:T,onFocusedViewChange:w,showViewSwitcher:D>1,timeViewsCount:D});return o?o(g,R,$):z($)}}};function m_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const oZ=(t,e)=>{const[n,r]=A.useState(m_);return An(()=>{const i=()=>{r(m_())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),AK(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},iZ=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=t,i=oZ(n.views,o),s=co();return{layoutProps:ne({},n,e,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function sZ(t){const{props:e,pickerValueResponse:n}=t;return A.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const B2=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{process.env.NODE_ENV!=="production"&&t.renderInput!=null&&$A(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=tZ({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i}),f=rZ({props:t,additionalViewProps:o,autoFocusView:s,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:a}),p=iZ({props:t,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),m=sZ({props:t,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:m}};function z2(t){return Ye("MuiPickersLayout",t)}const bs=We("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function aZ(t){return Ye("MuiButton",t)}const vs=We("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),V2=A.createContext({});process.env.NODE_ENV!=="production"&&(V2.displayName="ButtonGroupContext");const H2=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(H2.displayName="ButtonGroupButtonContext");const lZ=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=t,u={root:["root",s&&"loading",i,`${i}${Re(e)}`,`size${Re(o)}`,`${i}Size${Re(o)}`,`color${Re(e)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Re(a)}`],startIcon:["icon","startIcon",`iconSize${Re(o)}`],endIcon:["icon","endIcon",`iconSize${Re(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=Ke(u,aZ,l);return{...l,...f}},W2=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],cZ=be(Qa,{shouldForwardProp:t=>uo(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Re(n.color)}`],e[`size${Re(n.size)}`],e[`${n.variant}Size${Re(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(It(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vs.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vs.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vs.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vs.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:Ft(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vs.loading}`]:{color:"transparent"}}}]}})),uZ=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Re(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...W2]})),dZ=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Re(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...W2]})),fZ=be("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),g_=be("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Ql=A.forwardRef(function(e,n){const r=A.useContext(V2),o=A.useContext(H2),i=Ec(r,e),s=St({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:S=!1,id:C,loading:_=null,loadingIndicator:T,loadingPosition:w="center",size:E="medium",startIcon:O,type:N,variant:D="text",...L}=s,M=jo(C),R=T??v.jsx(mx,{"aria-labelledby":M,color:"inherit",size:16}),P={...s,color:l,component:u,disabled:p,disableElevation:m,disableFocusRipple:g,fullWidth:S,loading:_,loadingIndicator:R,loadingPosition:w,size:E,type:N,variant:D},B=lZ(P),z=(O||_&&w==="start")&&v.jsx(uZ,{className:B.startIcon,ownerState:P,children:O||v.jsx(g_,{className:B.loadingIconPlaceholder,ownerState:P})}),$=(y||_&&w==="end")&&v.jsx(dZ,{className:B.endIcon,ownerState:P,children:y||v.jsx(g_,{className:B.loadingIconPlaceholder,ownerState:P})}),F=o||"",q=typeof _=="boolean"?v.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:_&&v.jsx(fZ,{className:B.loadingIndicator,ownerState:P,children:R})}):null;return v.jsxs(cZ,{ownerState:P,className:Pe(r.className,B.root,f,F),component:u,disabled:p||_,focusRipple:!g,focusVisibleClassName:Pe(B.focusVisible,b),ref:n,type:N,id:_?M:C,...L,classes:B,children:[z,w!=="end"&&q,a,w==="end"&&q,$]})});process.env.NODE_ENV!=="production"&&(Ql.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","success","error","info","warning"]),c.string]),component:c.elementType,disabled:c.bool,disableElevation:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,endIcon:c.node,focusVisibleClassName:c.string,fullWidth:c.bool,href:c.string,id:c.string,loading:c.bool,loadingIndicator:c.node,loadingPosition:c.oneOf(["center","end","start"]),size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),startIcon:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string]),variant:c.oneOfType([c.oneOf(["contained","outlined","text"]),c.string])});function pZ(t){return Ye("MuiDialogActions",t)}We("MuiDialogActions",["root","spacing"]);const hZ=t=>{const{classes:e,disableSpacing:n}=t;return Ke({root:["root",!n&&"spacing"]},pZ,e)},mZ=be("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),q2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=r,a={...r,disableSpacing:i},l=hZ(a);return v.jsx(mZ,{className:Pe(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(q2.propTypes={children:c.node,classes:c.object,className:c.string,disableSpacing:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const gZ=["onAccept","onClear","onCancel","onSetToday","actions"];function U2(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:o,actions:i}=t,s=rt(t,gZ),a=mi();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return v.jsx(Ql,{onClick:n,children:a.clearButtonLabel},u);case"cancel":return v.jsx(Ql,{onClick:r,children:a.cancelButtonLabel},u);case"accept":return v.jsx(Ql,{onClick:e,children:a.okButtonLabel},u);case"today":return v.jsx(Ql,{onClick:o,children:a.todayButtonLabel},u);default:return null}});return v.jsx(q2,ne({},s,{children:l}))}process.env.NODE_ENV!=="production"&&(U2.propTypes={actions:c.arrayOf(c.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:c.bool,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onClear:c.func.isRequired,onSetToday:c.func.isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function yZ(t){return Ye("MuiListItem",t)}We("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const bZ=We("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function vZ(t){return Ye("MuiListItemSecondaryAction",t)}We("MuiListItemSecondaryAction",["root","disableGutters"]);const xZ=t=>{const{disableGutters:e,classes:n}=t;return Ke({root:["root",e&&"disableGutters"]},vZ,n)},SZ=be("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),Mx=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=A.useContext(Ha),a={...r,disableGutters:s.disableGutters},l=xZ(a);return v.jsx(SZ,{className:Pe(l.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Mx.propTypes={children:c.node,classes:c.object,className:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});Mx.muiName="ListItemSecondaryAction";const CZ=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},wZ=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=t;return Ke({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},yZ,n)},TZ=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:CZ})(It(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${bZ.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),_Z=be("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),K2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:a,components:l={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...m}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:S=!1,secondaryAction:C,slotProps:_={},slots:T={},...w}=r,E=A.useContext(Ha),O=A.useMemo(()=>({dense:g||E.dense||!1,alignItems:o,disableGutters:y}),[o,E.dense,g,y]),N=A.useRef(null),D=A.Children.toArray(i),L=D.length&&ac(D[D.length-1],["ListItemSecondaryAction"]),M={...r,alignItems:o,dense:O.dense,disableGutters:y,disablePadding:b,divider:S,hasSecondaryAction:L},R=wZ(M),P=Et(N,n),B=T.root||l.Root||TZ,z=_.root||u.root||{},$={className:Pe(R.root,z.className,s),...w};let F=a||"li";return L?(F=!$.component&&!a?"div":F,f==="li"&&(F==="li"?F="div":$.component==="li"&&($.component="div")),v.jsx(Ha.Provider,{value:O,children:v.jsxs(_Z,{as:f,className:Pe(R.container,p),ref:P,ownerState:M,...m,children:[v.jsx(B,{...z,...!Rc(B)&&{as:F,ownerState:{...M,...z.ownerState}},...$,children:D}),D.pop()]})})):v.jsx(Ha.Provider,{value:O,children:v.jsxs(B,{...z,as:F,ref:P,...!Rc(B)&&{ownerState:{...M,...z.ownerState}},...$,children:[D,C&&v.jsx(Mx,{children:C})]})})});process.env.NODE_ENV!=="production"&&(K2.propTypes={alignItems:c.oneOf(["center","flex-start"]),children:pi(c.node,t=>{const e=A.Children.toArray(t.children);let n=-1;for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(ac(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),ContainerComponent:bp,ContainerProps:c.object,dense:c.bool,disableGutters:c.bool,disablePadding:c.bool,divider:c.bool,secondaryAction:c.node,slotProps:c.shape({root:c.object}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const kZ=Fe(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function EZ(t){return Ye("MuiChip",t)}const pt=We("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),MZ=t=>{const{classes:e,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=t,u={root:["root",l,n&&"disabled",`size${Re(r)}`,`color${Re(o)}`,a&&"clickable",a&&`clickableColor${Re(o)}`,s&&"deletable",s&&`deletableColor${Re(o)}`,`${l}${Re(o)}`],label:["label",`label${Re(r)}`],avatar:["avatar",`avatar${Re(r)}`,`avatarColor${Re(o)}`],icon:["icon",`icon${Re(r)}`,`iconColor${Re(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Re(r)}`,`deleteIconColor${Re(o)}`,`deleteIcon${Re(l)}Color${Re(o)}`]};return Ke(u,EZ,e)},OZ=be("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${pt.avatar}`]:e.avatar},{[`& .${pt.avatar}`]:e[`avatar${Re(a)}`]},{[`& .${pt.avatar}`]:e[`avatarColor${Re(r)}`]},{[`& .${pt.icon}`]:e.icon},{[`& .${pt.icon}`]:e[`icon${Re(a)}`]},{[`& .${pt.icon}`]:e[`iconColor${Re(o)}`]},{[`& .${pt.deleteIcon}`]:e.deleteIcon},{[`& .${pt.deleteIcon}`]:e[`deleteIcon${Re(a)}`]},{[`& .${pt.deleteIcon}`]:e[`deleteIconColor${Re(r)}`]},{[`& .${pt.deleteIcon}`]:e[`deleteIcon${Re(l)}Color${Re(r)}`]},e.root,e[`size${Re(a)}`],e[`color${Re(r)}`],i&&e.clickable,i&&r!=="default"&&e[`clickableColor${Re(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${Re(r)}`],e[l],e[`${l}${Re(r)}`]]}})(It(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${pt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${pt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${pt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${pt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${pt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${pt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${pt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:Ft(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Ft(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${pt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${pt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Hn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${pt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].contrastTextChannel} / 0.7)`:Ft(t.palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${pt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${pt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${pt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Ft(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${pt.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Ft(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${pt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Ft(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${pt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${pt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${pt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${pt.avatar}`]:{marginLeft:4},[`& .${pt.avatarSmall}`]:{marginLeft:2},[`& .${pt.icon}`]:{marginLeft:4},[`& .${pt.iconSmall}`]:{marginLeft:2},[`& .${pt.deleteIcon}`]:{marginRight:5},[`& .${pt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:Ft(t.palette[n].main,.7)}`,[`&.${pt.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette[n].main,t.palette.action.hoverOpacity)},[`&.${pt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.focusOpacity})`:Ft(t.palette[n].main,t.palette.action.focusOpacity)},[`& .${pt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:Ft(t.palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),RZ=be("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${Re(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function y_(t){return t.key==="Backspace"||t.key==="Delete"}const Y2=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:f=!1,icon:p,label:m,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:S,size:C="medium",variant:_="filled",tabIndex:T,skipFocusWhenDisabled:w=!1,...E}=r,O=A.useRef(null),N=Et(O,n),D=G=>{G.stopPropagation(),y&&y(G)},L=G=>{G.currentTarget===G.target&&y_(G)&&G.preventDefault(),b&&b(G)},M=G=>{G.currentTarget===G.target&&y&&y_(G)&&y(G),S&&S(G)},R=s!==!1&&g?!0:s,P=R||y?Qa:l||"div",B={...r,component:P,disabled:f,size:C,color:a,iconColor:A.isValidElement(p)&&p.props.color||a,onDelete:!!y,clickable:R,variant:_},z=MZ(B),$=P===Qa?{component:l||"div",focusVisibleClassName:z.focusVisible,...y&&{disableRipple:!0}}:{};let F=null;y&&(F=u&&A.isValidElement(u)?A.cloneElement(u,{className:Pe(u.props.className,z.deleteIcon),onClick:D}):v.jsx(kZ,{className:Pe(z.deleteIcon),onClick:D}));let q=null;o&&A.isValidElement(o)&&(q=A.cloneElement(o,{className:Pe(z.avatar,o.props.className)}));let U=null;return p&&A.isValidElement(p)&&(U=A.cloneElement(p,{className:Pe(z.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&q&&U&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),v.jsxs(OZ,{as:P,className:Pe(z.root,i),disabled:R&&f?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:M,ref:N,tabIndex:w&&f?-1:T,ownerState:B,...$,...E,children:[q||U,v.jsx(RZ,{className:Pe(z.label),ownerState:B,children:m}),F]})});process.env.NODE_ENV!=="production"&&(Y2.propTypes={avatar:c.element,children:O6,classes:c.object,className:c.string,clickable:c.bool,color:c.oneOfType([c.oneOf(["default","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,deleteIcon:c.element,disabled:c.bool,icon:c.element,label:c.node,onClick:c.func,onDelete:c.func,onKeyDown:c.func,onKeyUp:c.func,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),skipFocusWhenDisabled:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,variant:c.oneOfType([c.oneOf(["filled","outlined"]),c.string])});const Lc=36,Kp=2,Yp=320,AZ=280,Ox=336,IZ=["items","changeImportance","isLandscape","onChange","isValid"],DZ=["getValue"];function G2(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:o}=t,i=rt(t,IZ);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,u=rt(a,DZ);const f=l({isValid:o});return ne({},u,{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)})});return v.jsx(Qv,ne({dense:!0,sx:[{maxHeight:Ox,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>v.jsx(K2,{children:v.jsx(Y2,ne({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(G2.propTypes={changeImportance:c.oneOf(["accept","set"]),className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,isLandscape:c.bool.isRequired,isValid:c.func.isRequired,items:c.arrayOf(c.shape({getValue:c.func.isRequired,id:c.string,label:c.string.isRequired})),onChange:c.func.isRequired,style:c.object,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function PZ(t){return t.view!==null}const NZ=t=>{const{classes:e,isLandscape:n}=t;return Ke({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},z2,e)},LZ=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:a,onViewChange:l,value:u,onChange:f,onSelectShortcut:p,isValid:m,isLandscape:g,disabled:y,readOnly:b,children:S,slots:C,slotProps:_}=t,T=NZ(t),w=(C==null?void 0:C.actionBar)??U2,E=wt({elementType:w,externalSlotProps:_==null?void 0:_.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:e==="desktop"?[]:["cancel","accept"]},className:T.actionBar,ownerState:ne({},t,{wrapperVariant:e})}),O=v.jsx(w,ne({},E)),N=C==null?void 0:C.toolbar,D=wt({elementType:N,externalSlotProps:_==null?void 0:_.toolbar,additionalProps:{isLandscape:g,onChange:f,value:u,view:s,onViewChange:l,views:a,disabled:y,readOnly:b},className:T.toolbar,ownerState:ne({},t,{wrapperVariant:e})}),L=PZ(D)&&N?v.jsx(N,ne({},D)):null,M=S,R=C==null?void 0:C.tabs,P=s&&R?v.jsx(R,ne({view:s,onViewChange:l,className:T.tabs},_==null?void 0:_.tabs)):null,B=(C==null?void 0:C.shortcuts)??G2,z=wt({elementType:B,externalSlotProps:_==null?void 0:_.shortcuts,additionalProps:{isValid:m,isLandscape:g,onChange:p},className:T.shortcuts,ownerState:{isValid:m,isLandscape:g,onChange:p,wrapperVariant:e}}),$=s&&B?v.jsx(B,ne({},z)):null;return{toolbar:L,content:M,tabs:P,actionBar:O,shortcuts:$}},jZ=t=>{const{isLandscape:e,classes:n}=t;return Ke({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},z2,n)},$Z=be("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${bs.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${bs.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${bs.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${bs.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${bs.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${bs.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${bs.shortcuts}`]:{gridColumn:3}}}]}),FZ=be("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Rx=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:a,shortcuts:l}=LZ(r),{sx:u,className:f,isLandscape:p,wrapperVariant:m}=r,g=jZ(r);return v.jsxs($Z,{ref:n,sx:u,className:Pe(g.root,f),ownerState:r,children:[p?l:o,p?o:l,v.jsx(FZ,{className:g.contentWrapper,children:m==="desktop"?v.jsxs(A.Fragment,{children:[i,s]}):v.jsxs(A.Fragment,{children:[s,i]})}),a]})});process.env.NODE_ENV!=="production"&&(Rx.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,isLandscape:c.bool.isRequired,isRtl:c.bool.isRequired,isValid:c.func.isRequired,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onChange:c.func.isRequired,onClear:c.func.isRequired,onClose:c.func.isRequired,onDismiss:c.func.isRequired,onOpen:c.func.isRequired,onSelectShortcut:c.func.isRequired,onSetToday:c.func.isRequired,onViewChange:c.func.isRequired,orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.any,view:c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:c.arrayOf(c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:c.oneOf(["desktop","mobile"])});const BZ=["props","getOpenDialogAriaText"],zZ=["ownerState"],VZ=["ownerState"],HZ=t=>{var ye;let{props:e,getOpenDialogAriaText:n}=t,r=rt(t,BZ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,name:y,label:b,inputRef:S,readOnly:C,disabled:_,autoFocus:T,localeText:w,reduceAnimations:E}=e,O=A.useRef(null),N=A.useRef(null),D=jo(),L=((ye=i==null?void 0:i.toolbar)==null?void 0:ye.hidden)??!1,{open:M,actions:R,hasUIView:P,layoutProps:B,renderCurrentView:z,shouldRestoreFocus:$,fieldProps:F,contextValue:q,ownerState:U}=B2(ne({},r,{props:e,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),G=o.inputAdornment??gx,Y=wt({elementType:G,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:e}),Z=rt(Y,zZ),fe=o.openPickerButton??hl,pe=wt({elementType:fe,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:_||C,onClick:M?R.onClose:R.onOpen,"aria-label":n(F.value),edge:Z.position},ownerState:e}),ge=rt(pe,VZ),re=o.openPickerIcon,he=wt({elementType:re,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:U}),le=o.field,X=wt({elementType:le,externalSlotProps:i==null?void 0:i.field,additionalProps:ne({},F,L&&{id:D},{readOnly:C,disabled:_,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,label:b,name:y,autoFocus:T&&!e.open,focused:M?!0:void 0},S?{inputRef:S}:{}),ownerState:e});P&&(X.InputProps=ne({},X.InputProps,{ref:O},!e.disableOpenPicker&&{[`${Z.position}Adornment`]:v.jsx(G,ne({},Z,{children:v.jsx(fe,ne({},ge,{children:v.jsx(re,ne({},he))}))}))}));const W=ne({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},X.slots),ee=o.layout??Rx;let ce=D;L&&(b?ce=`${D}-label`:ce=void 0);const te=ne({},i,{toolbar:ne({},i==null?void 0:i.toolbar,{titleId:D}),popper:ne({"aria-labelledby":ce},i==null?void 0:i.popper)}),se=Et(N,X.unstableFieldRef);return{renderPicker:()=>v.jsxs(h2,{contextValue:q,localeText:w,children:[v.jsx(le,ne({},X,{slots:W,slotProps:te,unstableFieldRef:se})),v.jsx(JJ,ne({role:"dialog",placement:"bottom-start",anchorEl:O.current},R,{open:M,slots:o,slotProps:te,shouldRestoreFocus:$,reduceAnimations:E,children:v.jsx(ee,ne({},B,te==null?void 0:te.layout,{slots:o,slotProps:te,children:z()}))}))]})}},J2=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=Js();return A.useCallback(u=>au({adapter:l,value:u,timezone:a,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[l,t,e,n,r,o,i,s,a])},WZ=(t,e,n)=>(r,o)=>{switch(o.type){case"changeMonth":return ne({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),ne({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return ne({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,o.focusedDay);return ne({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!t&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qZ=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:u,shouldDisableDate:f,timezone:p}=t,m=Kt(),g=A.useRef(WZ(!!u,i,m)).current,y=A.useMemo(()=>Io.getInitialReferenceValue({value:e,utils:m,timezone:p,props:t,referenceDate:n,granularity:_o.day}),[n,p]),[b,S]=A.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:y,currentMonth:m.startOfMonth(y),slideDirection:"left"});A.useEffect(()=>{S({type:"changeMonthTimezone",newTimezone:m.getTimezone(y)})},[y,m]);const C=A.useCallback(O=>{S(ne({type:"changeMonth"},O)),l&&l(O.newMonth)},[l]),_=A.useCallback(O=>{const N=O;m.isSameMonth(N,b.currentMonth)||C({newMonth:m.startOfMonth(N),direction:m.isAfterDay(N,b.currentMonth)?"left":"right"})},[b.currentMonth,C,m]),T=J2({shouldDisableDate:f,minDate:a,maxDate:s,disableFuture:r,disablePast:o,timezone:p}),w=A.useCallback(()=>{S({type:"finishMonthSwitchingAnimation"})},[]),E=$e((O,N)=>{T(O)||S({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:N})});return{referenceDate:y,calendarState:b,changeMonth:_,changeFocusedDay:E,isDateDisabled:T,onMonthSwitchingAnimationEnd:w,handleChangeMonth:C}},UZ=t=>Ye("MuiPickersFadeTransitionGroup",t);We("MuiPickersFadeTransitionGroup",["root"]);const KZ=t=>{const{classes:e}=t;return Ke({root:["root"]},UZ,e)},YZ=be(su,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function Z2(t){const e=Ut({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=KZ(e),a=es();return o?n:v.jsx(YZ,{className:Pe(s.root,r),children:v.jsx(Yi,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function GZ(t){return Ye("MuiPickersDay",t)}const xs=We("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),JZ=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],ZZ=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,u=s&&!a;return Ke({root:["root",e&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},GZ,l)},X2=({theme:t})=>ne({},t.typography.caption,{width:Lc,height:Lc,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:Ft(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${xs.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xs.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xs.disabled}:not(.${xs.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${xs.disabled}&.${xs.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Kp}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${xs.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),Q2=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},XZ=be(Qa,{name:"MuiPickersDay",slot:"Root",overridesResolver:Q2})(X2),QZ=be("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Q2})(({theme:t})=>ne({},X2({theme:t}),{opacity:0,pointerEvents:"none"})),Ul=()=>{},eI=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:m,onFocus:g=Ul,onBlur:y=Ul,onKeyDown:b=Ul,onMouseDown:S=Ul,onMouseEnter:C=Ul,outsideCurrentMonth:_,selected:T=!1,showDaysOutsideCurrentMonth:w=!1,children:E,today:O=!1}=r,N=rt(r,JZ),D=ne({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:u,selected:T,showDaysOutsideCurrentMonth:w,today:O}),L=ZZ(D),M=Kt(),R=A.useRef(null),P=Et(R,n);An(()=>{o&&!a&&!f&&!_&&R.current.focus()},[o,a,f,_]);const B=$=>{S($),_&&$.preventDefault()},z=$=>{a||m(s),_&&$.currentTarget.focus(),p&&p($)};return _&&!w?v.jsx(QZ,{className:Pe(L.root,L.hiddenDaySpacingFiller,i),ownerState:D,role:N.role}):v.jsx(XZ,ne({className:Pe(L.root,i),ref:P,centerRipple:!0,disabled:a,tabIndex:T?0:-1,onKeyDown:$=>b($,s),onFocus:$=>g($,s),onBlur:$=>y($,s),onMouseEnter:$=>C($,s),onClick:z,onMouseDown:B},N,{ownerState:D,children:E||M.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(eI.propTypes={action:c.oneOfType([c.func,c.shape({current:c.shape({focusVisible:c.func.isRequired})})]),centerRipple:c.bool,classes:c.object,className:c.string,component:c.elementType,day:c.object.isRequired,disabled:c.bool,disableHighlightToday:c.bool,disableMargin:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,isAnimating:c.bool,isFirstVisibleCell:c.bool.isRequired,isLastVisibleCell:c.bool.isRequired,onBlur:c.func,onDaySelect:c.func.isRequired,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onMouseEnter:c.func,outsideCurrentMonth:c.bool.isRequired,selected:c.bool,showDaysOutsideCurrentMonth:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,today:c.bool,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})])});const eX=A.memo(eI),tX=t=>Ye("MuiPickersSlideTransition",t),$r=We("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),nX=["children","className","reduceAnimations","slideDirection","transKey","classes"],rX=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ke(r,tX,e)},oX=be(su,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${$r["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${$r["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${$r.slideEnterActive}`]:e.slideEnterActive},{[`.${$r.slideExit}`]:e.slideExit},{[`.${$r["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${$r["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${$r["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${$r["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${$r.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${$r.slideExit}`]:{transform:"translate(0%)"},[`& .${$r["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${$r["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function iX(t){const e=Ut({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=rt(e,nX),a=rX(e),l=es();if(o)return v.jsx("div",{className:Pe(a.root,r),children:n});const u={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return v.jsx(oX,{className:Pe(a.root,r),childFactory:f=>A.cloneElement(f,{classNames:u}),role:"presentation",children:v.jsx(tx,ne({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),i)})}const sX=t=>Ye("MuiDayCalendar",t);We("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const aX=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],lX=["ownerState"],cX=t=>{const{classes:e}=t;return Ke({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},sX,e)},tI=(Lc+Kp*2)*6,uX=be("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),dX=be("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),fX=be(ns,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),pX=be(ns,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),hX=be(ns,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>ne({},t.typography.caption,{width:Lc,height:Lc,padding:0,margin:`0 ${Kp}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),mX=be("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:tI}),gX=be(iX,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:tI}),yX=be("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),bX=be("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${Kp}px 0`,display:"flex",justifyContent:"center"});function vX(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:a}=t,l=rt(t,aX);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:g,slotProps:y,timezone:b}=e,S=Kt(),C=zp(b),_=r!==null&&S.isSameDay(n,r),T=o.some(P=>S.isSameDay(P,n)),w=S.isSameDay(n,C),E=(g==null?void 0:g.day)??eX,O=wt({elementType:E,externalSlotProps:y==null?void 0:y.day,additionalProps:ne({disableHighlightToday:f,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":S.toJsDate(n).valueOf()},l),ownerState:ne({},e,{day:n,selected:T})}),N=rt(O,lX),D=A.useMemo(()=>u||i(n),[u,i,n]),L=A.useMemo(()=>S.getMonth(n)!==s,[S,n,s]),M=A.useMemo(()=>{const P=S.startOfMonth(S.setMonth(n,s));return m?S.isSameDay(n,S.startOfWeek(P)):S.isSameDay(n,P)},[s,n,m,S]),R=A.useMemo(()=>{const P=S.endOfMonth(S.setMonth(n,s));return m?S.isSameDay(n,S.endOfWeek(P)):S.isSameDay(n,P)},[s,n,m,S]);return v.jsx(E,ne({},N,{day:n,disabled:D,autoFocus:a&&_,today:w,outsideCurrentMonth:L,isFirstVisibleCell:M,isLastVisibleCell:R,selected:T,tabIndex:_?0:-1,"aria-selected":T,"aria-current":w?"date":void 0}))}function xX(t){const e=Ut({props:t,name:"MuiDayCalendar"}),n=Kt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:m,renderLoading:g=()=>v.jsx("span",{children:"..."}),slideDirection:y,TransitionProps:b,disablePast:S,disableFuture:C,minDate:_,maxDate:T,shouldDisableDate:w,shouldDisableMonth:E,shouldDisableYear:O,dayOfWeekFormatter:N=Te=>n.format(Te,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:L,gridLabelId:M,displayWeekNumber:R,fixedWeekNumber:P,autoFocus:B,timezone:z}=e,$=zp(z),F=cX(e),q=co(),U=J2({shouldDisableDate:w,shouldDisableMonth:E,shouldDisableYear:O,minDate:_,maxDate:T,disablePast:S,disableFuture:C,timezone:z}),G=mi(),[Y,Z]=ui({name:"DayCalendar",state:"hasFocus",controlled:D,default:B??!1}),[fe,pe]=A.useState(()=>a||$),ge=$e(Te=>{p||u(Te)}),re=Te=>{U(Te)||(r(Te),pe(Te),L==null||L(!0),Z(!0))},he=$e((Te,Se)=>{switch(Te.key){case"ArrowUp":re(n.addDays(Se,-7)),Te.preventDefault();break;case"ArrowDown":re(n.addDays(Se,7)),Te.preventDefault();break;case"ArrowLeft":{const Me=n.addDays(Se,q?1:-1),Ne=n.addMonths(Se,q?1:-1),Ve=dc({utils:n,date:Me,minDate:q?Me:n.startOfMonth(Ne),maxDate:q?n.endOfMonth(Ne):Me,isDateDisabled:U,timezone:z});re(Ve||Me),Te.preventDefault();break}case"ArrowRight":{const Me=n.addDays(Se,q?-1:1),Ne=n.addMonths(Se,q?-1:1),Ve=dc({utils:n,date:Me,minDate:q?n.startOfMonth(Ne):Me,maxDate:q?Me:n.endOfMonth(Ne),isDateDisabled:U,timezone:z});re(Ve||Me),Te.preventDefault();break}case"Home":re(n.startOfWeek(Se)),Te.preventDefault();break;case"End":re(n.endOfWeek(Se)),Te.preventDefault();break;case"PageUp":re(n.addMonths(Se,1)),Te.preventDefault();break;case"PageDown":re(n.addMonths(Se,-1)),Te.preventDefault();break}}),le=$e((Te,Se)=>re(Se)),X=$e((Te,Se)=>{Y&&n.isSameDay(fe,Se)&&(L==null||L(!1))}),W=n.getMonth(i),ee=n.getYear(i),ce=A.useMemo(()=>s.filter(Te=>!!Te).map(Te=>n.startOfDay(Te)),[n,s]),te=`${ee}-${W}`,se=A.useMemo(()=>A.createRef(),[te]),ue=A.useMemo(()=>{const Te=n.startOfMonth(i),Se=n.endOfMonth(i);return U(fe)||n.isAfterDay(fe,Se)||n.isBeforeDay(fe,Te)?dc({utils:n,date:fe,minDate:Te,maxDate:Se,disablePast:S,disableFuture:C,isDateDisabled:U,timezone:z}):fe},[i,C,S,fe,U,n,z]),ye=A.useMemo(()=>{const Te=n.getWeekArray(i);let Se=n.addMonths(i,1);for(;P&&Te.length<P;){const Me=n.getWeekArray(Se),Ne=n.isSameDay(Te[Te.length-1][0],Me[0][0]);Me.slice(Ne?1:0).forEach(Ve=>{Te.length<P&&Te.push(Ve)}),Se=n.addMonths(Se,1)}return Te},[i,P,n]);return v.jsxs(uX,{role:"grid","aria-labelledby":M,className:F.root,children:[v.jsxs(dX,{role:"row",className:F.header,children:[R&&v.jsx(pX,{variant:"caption",role:"columnheader","aria-label":G.calendarWeekNumberHeaderLabel,className:F.weekNumberLabel,children:G.calendarWeekNumberHeaderText}),JU(n,$).map((Te,Se)=>v.jsx(fX,{variant:"caption",role:"columnheader","aria-label":n.format(Te,"weekday"),className:F.weekDayLabel,children:N(Te)},Se.toString()))]}),l?v.jsx(mX,{className:F.loadingContainer,children:g()}):v.jsx(gX,ne({transKey:te,onExited:f,reduceAnimations:m,slideDirection:y,className:Pe(o,F.slideTransition)},b,{nodeRef:se,children:v.jsx(yX,{ref:se,role:"rowgroup",className:F.monthContainer,children:ye.map((Te,Se)=>v.jsxs(bX,{role:"row",className:F.weekContainer,"aria-rowindex":Se+1,children:[R&&v.jsx(hX,{className:F.weekNumber,role:"rowheader","aria-label":G.calendarWeekNumberAriaLabelText(n.getWeekNumber(Te[0])),children:G.calendarWeekNumberText(n.getWeekNumber(Te[0]))}),Te.map((Me,Ne)=>v.jsx(vX,{parentProps:e,day:Me,selectedDays:ce,focusableDay:ue,onKeyDown:he,onFocus:le,onBlur:X,onDaySelect:ge,isDateDisabled:U,currentMonthNumber:W,isViewFocused:Y,"aria-colindex":Ne+1},Me.toString()))]},`week-${Te[0]}`))})}))]})}function SX(t){return Ye("MuiPickersMonth",t)}const xd=We("MuiPickersMonth",["root","monthButton","disabled","selected"]),CX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],wX=t=>{const{disabled:e,selected:n,classes:r}=t;return Ke({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},SX,r)},TX=be("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),_X=be("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${xd.disabled}`]:e.disabled},{[`&.${xd.selected}`]:e.selected}]})(({theme:t})=>ne({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${xd.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${xd.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),kX=A.memo(function(e){const n=Ut({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:g,"aria-current":y,"aria-label":b,slots:S,slotProps:C}=n,_=rt(n,CX),T=A.useRef(null),w=wX(n);An(()=>{var N;r&&((N=T.current)==null||N.focus())},[r]);const E=(S==null?void 0:S.monthButton)??_X,O=wt({elementType:E,externalSlotProps:C==null?void 0:C.monthButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:T,type:"button",role:"radio","aria-current":y,"aria-checked":a,"aria-label":b,onClick:N=>f(N,l),onKeyDown:N=>p(N,l),onFocus:N=>m(N,l),onBlur:N=>g(N,l)},ownerState:n,className:w.monthButton});return v.jsx(TX,ne({className:Pe(w.root,o),ownerState:n},_,{children:v.jsx(E,ne({},O))}))});function EX(t){return Ye("MuiMonthCalendar",t)}We("MuiMonthCalendar",["root"]);const MX=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],OX=t=>{const{classes:e}=t;return Ke({root:["root"]},EX,e)};function RX(t,e){const n=Kt(),r=lu(),o=Ut({props:t,name:e});return ne({disableFuture:!1,disablePast:!1},o,{minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const AX=be("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Yp,boxSizing:"border-box"}),nI=A.forwardRef(function(e,n){const r=RX(e,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:g,shouldDisableMonth:y,readOnly:b,autoFocus:S=!1,onMonthFocus:C,hasFocus:_,onFocusedViewChange:T,monthsPerRow:w=3,timezone:E,gridLabelId:O,slots:N,slotProps:D}=r,L=rt(r,MX),{value:M,handleValueChange:R,timezone:P}=hx({name:"MonthCalendar",timezone:E,value:i,defaultValue:s,referenceDate:a,onChange:g,valueManager:Io}),B=zp(P),z=co(),$=Kt(),F=A.useMemo(()=>Io.getInitialReferenceValue({value:M,utils:$,props:r,timezone:P,referenceDate:a,granularity:_o.month}),[]),q=r,U=OX(q),G=A.useMemo(()=>$.getMonth(B),[$,B]),Y=A.useMemo(()=>M!=null?$.getMonth(M):null,[M,$]),[Z,fe]=A.useState(()=>Y||$.getMonth(F)),[pe,ge]=ui({name:"MonthCalendar",state:"hasFocus",controlled:_,default:S??!1}),re=$e(te=>{ge(te),T&&T(te)}),he=A.useCallback(te=>{const se=$.startOfMonth(f&&$.isAfter(B,m)?B:m),ue=$.startOfMonth(u&&$.isBefore(B,p)?B:p),ye=$.startOfMonth(te);return $.isBefore(ye,se)||$.isAfter(ye,ue)?!0:y?y(ye):!1},[u,f,p,m,B,y,$]),le=$e((te,se)=>{if(b)return;const ue=$.setMonth(M??F,se);R(ue)}),X=$e(te=>{he($.setMonth(M??F,te))||(fe(te),re(!0),C&&C(te))});A.useEffect(()=>{fe(te=>Y!==null&&te!==Y?Y:te)},[Y]);const W=$e((te,se)=>{switch(te.key){case"ArrowUp":X((12+se-3)%12),te.preventDefault();break;case"ArrowDown":X((12+se+3)%12),te.preventDefault();break;case"ArrowLeft":X((12+se+(z?1:-1))%12),te.preventDefault();break;case"ArrowRight":X((12+se+(z?-1:1))%12),te.preventDefault();break}}),ee=$e((te,se)=>{X(se)}),ce=$e((te,se)=>{Z===se&&re(!1)});return v.jsx(AX,ne({ref:n,className:Pe(U.root,o),ownerState:q,role:"radiogroup","aria-labelledby":O},L,{children:lx($,M??F).map(te=>{const se=$.getMonth(te),ue=$.format(te,"monthShort"),ye=$.format(te,"month"),Te=se===Y,Se=l||he(te);return v.jsx(kX,{selected:Te,value:se,onClick:le,onKeyDown:W,autoFocus:pe&&se===Z,disabled:Se,tabIndex:se===Z&&!Se?0:-1,onFocus:ee,onBlur:ce,"aria-current":G===se?"date":void 0,"aria-label":ye,monthsPerRow:w,slots:N,slotProps:D,children:ue},ue)})}))});process.env.NODE_ENV!=="production"&&(nI.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableMonth:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object});function IX(t){return Ye("MuiPickersYear",t)}const Sd=We("MuiPickersYear",["root","yearButton","selected","disabled"]),DX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],PX=t=>{const{disabled:e,selected:n,classes:r}=t;return Ke({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},IX,r)},NX=be("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),LX=be("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${Sd.disabled}`]:e.disabled},{[`&.${Sd.selected}`]:e.selected}]})(({theme:t})=>ne({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:Ft(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Ft(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Sd.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Sd.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),jX=A.memo(function(e){const n=Ut({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:g,"aria-current":y,slots:b,slotProps:S}=n,C=rt(n,DX),_=A.useRef(null),T=PX(n);An(()=>{var O;r&&((O=_.current)==null||O.focus())},[r]);const w=(b==null?void 0:b.yearButton)??LX,E=wt({elementType:w,externalSlotProps:S==null?void 0:S.yearButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:_,type:"button",role:"radio","aria-current":y,"aria-checked":a,onClick:O=>f(O,l),onKeyDown:O=>p(O,l),onFocus:O=>m(O,l),onBlur:O=>g(O,l)},ownerState:n,className:T.yearButton});return v.jsx(NX,ne({className:Pe(T.root,o),ownerState:n},C,{children:v.jsx(w,ne({},E))}))});function $X(t){return Ye("MuiYearCalendar",t)}We("MuiYearCalendar",["root"]);const FX=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],BX=t=>{const{classes:e}=t;return Ke({root:["root"]},$X,e)};function zX(t,e){const n=Kt(),r=lu(),o=Ut({props:t,name:e});return ne({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Yr(n,o.minDate,r.minDate),maxDate:Yr(n,o.maxDate,r.maxDate)})}const VX=be("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Yp,maxHeight:AZ,boxSizing:"border-box",position:"relative"}),rI=A.forwardRef(function(e,n){const r=zX(e,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:g,onChange:y,readOnly:b,shouldDisableYear:S,onYearFocus:C,hasFocus:_,onFocusedViewChange:T,yearsOrder:w="asc",yearsPerRow:E,timezone:O,gridLabelId:N,slots:D,slotProps:L}=r,M=rt(r,FX),{value:R,handleValueChange:P,timezone:B}=hx({name:"YearCalendar",timezone:O,value:s,defaultValue:a,referenceDate:l,onChange:y,valueManager:Io}),z=zp(B),$=co(),F=Kt(),q=A.useMemo(()=>Io.getInitialReferenceValue({value:R,utils:F,props:r,timezone:B,referenceDate:l,granularity:_o.year}),[]),U=r,G=BX(U),Y=A.useMemo(()=>F.getYear(z),[F,z]),Z=A.useMemo(()=>R!=null?F.getYear(R):null,[R,F]),[fe,pe]=A.useState(()=>Z||F.getYear(q)),[ge,re]=ui({name:"YearCalendar",state:"hasFocus",controlled:_,default:o??!1}),he=$e(Me=>{re(Me),T&&T(Me)}),le=A.useCallback(Me=>{if(p&&F.isBeforeYear(Me,z)||f&&F.isAfterYear(Me,z)||g&&F.isBeforeYear(Me,g)||m&&F.isAfterYear(Me,m))return!0;if(!S)return!1;const Ne=F.startOfYear(Me);return S(Ne)},[f,p,m,g,z,S,F]),X=$e((Me,Ne)=>{if(b)return;const Ve=F.setYear(R??q,Ne);P(Ve)}),W=$e(Me=>{le(F.setYear(R??q,Me))||(pe(Me),he(!0),C==null||C(Me))});A.useEffect(()=>{pe(Me=>Z!==null&&Me!==Z?Z:Me)},[Z]);const ee=w!=="desc"?E*1:E*-1,ce=$&&w==="asc"||!$&&w==="desc"?-1:1,te=$e((Me,Ne)=>{switch(Me.key){case"ArrowUp":W(Ne-ee),Me.preventDefault();break;case"ArrowDown":W(Ne+ee),Me.preventDefault();break;case"ArrowLeft":W(Ne-ce),Me.preventDefault();break;case"ArrowRight":W(Ne+ce),Me.preventDefault();break}}),se=$e((Me,Ne)=>{W(Ne)}),ue=$e((Me,Ne)=>{fe===Ne&&he(!1)}),ye=A.useRef(null),Te=Et(n,ye);A.useEffect(()=>{if(o||ye.current===null)return;const Me=ye.current.querySelector('[tabindex="0"]');if(!Me)return;const Ne=Me.offsetHeight,Ve=Me.offsetTop,Ge=ye.current.clientHeight,Ie=ye.current.scrollTop,st=Ve+Ne;Ne>Ge||Ve<Ie||(ye.current.scrollTop=st-Ge/2-Ne/2)},[o]);const Se=F.getYearRange([g,m]);return w==="desc"&&Se.reverse(),v.jsx(VX,ne({ref:Te,className:Pe(G.root,i),ownerState:U,role:"radiogroup","aria-labelledby":N},M,{children:Se.map(Me=>{const Ne=F.getYear(Me),Ve=Ne===Z,Ge=u||le(Me);return v.jsx(jX,{selected:Ve,value:Ne,onClick:X,onKeyDown:te,autoFocus:ge&&Ne===fe,disabled:Ge,tabIndex:Ne===fe&&!Ge?0:-1,onFocus:se,onBlur:ue,"aria-current":Y===Ne?"date":void 0,yearsPerRow:E,slots:D,slotProps:L,children:F.format(Me,"year")},F.format(Me,"year"))})}))});process.env.NODE_ENV!=="production"&&(rI.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,onChange:c.func,onFocusedViewChange:c.func,onYearFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableYear:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const HX=t=>Ye("MuiPickersCalendarHeader",t),WX=We("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function qX(t){return Ye("MuiPickersArrowSwitcher",t)}We("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const UX=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],KX=["ownerState"],YX=["ownerState"],GX=be("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),JX=be("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),b_=be(hl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),ZX=t=>{const{classes:e}=t;return Ke({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},qX,e)},XX=A.forwardRef(function(e,n){const r=co(),o=Ut({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:a,slotProps:l,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:m,isPreviousDisabled:g,isPreviousHidden:y,onGoToPrevious:b,previousLabel:S,labelId:C}=o,_=rt(o,UX),T=o,w=ZX(T),E={isDisabled:u,isHidden:f,goTo:p,label:m},O={isDisabled:g,isHidden:y,goTo:b,label:S},N=(a==null?void 0:a.previousIconButton)??b_,D=wt({elementType:N,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:ne({},T,{hidden:O.isHidden}),className:Pe(w.button,w.previousIconButton)}),L=(a==null?void 0:a.nextIconButton)??b_,M=wt({elementType:L,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:ne({},T,{hidden:E.isHidden}),className:Pe(w.button,w.nextIconButton)}),R=(a==null?void 0:a.leftArrowIcon)??yY,P=wt({elementType:R,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:w.leftArrowIcon}),B=rt(P,KX),z=(a==null?void 0:a.rightArrowIcon)??bY,$=wt({elementType:z,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:w.rightArrowIcon}),F=rt($,YX);return v.jsxs(GX,ne({ref:n,className:Pe(w.root,s),ownerState:T},_,{children:[v.jsx(N,ne({},D,{children:r?v.jsx(z,ne({},F)):v.jsx(R,ne({},B))})),i?v.jsx(ns,{variant:"subtitle1",component:"span",id:C,children:i}):v.jsx(JX,{className:w.spacer,ownerState:T}),v.jsx(L,ne({},M,{children:r?v.jsx(R,ne({},B)):v.jsx(z,ne({},F))}))]}))});function QX(t,{disableFuture:e,maxDate:n,timezone:r}){const o=Kt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isBefore(i,n)?i:n);return!o.isAfter(s,t)},[e,n,t,o,r])}function eQ(t,{disablePast:e,minDate:n,timezone:r}){const o=Kt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isAfter(i,n)?i:n);return!o.isBefore(s,t)},[e,n,t,o,r])}const tQ=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],nQ=["ownerState"],rQ=t=>{const{classes:e}=t;return Ke({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},HX,e)},oQ=be("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),iQ=be("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>ne({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),sQ=be("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),aQ=be(hl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${WX.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),lQ=be(gY,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),oI=A.forwardRef(function(e,n){const r=mi(),o=Kt(),i=Ut({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:g,onMonthChange:y,onViewChange:b,view:S,reduceAnimations:C,views:_,labelId:T,className:w,timezone:E,format:O=`${o.formats.month} ${o.formats.year}`}=i,N=rt(i,tQ),D=i,L=rQ(i),M=(s==null?void 0:s.switchViewButton)??aQ,R=wt({elementType:M,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(S)},ownerState:D,className:L.switchViewButton}),P=(s==null?void 0:s.switchViewIcon)??lQ,B=wt({elementType:P,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:D,className:L.switchViewIcon}),z=rt(B,nQ),$=()=>y(o.addMonths(l,1),"left"),F=()=>y(o.addMonths(l,-1),"right"),q=QX(l,{disableFuture:f,maxDate:m,timezone:E}),U=eQ(l,{disablePast:p,minDate:g,timezone:E}),G=()=>{if(!(_.length===1||!b||u))if(_.length===2)b(_.find(Z=>Z!==S)||_[0]);else{const Z=_.indexOf(S)!==0?0:1;b(_[Z])}};if(_.length===1&&_[0]==="year")return null;const Y=o.formatByString(l,O);return v.jsxs(oQ,ne({},N,{ownerState:D,className:Pe(L.root,w),ref:n,children:[v.jsxs(iQ,{role:"presentation",onClick:G,ownerState:D,"aria-live":"polite",className:L.labelContainer,children:[v.jsx(Z2,{reduceAnimations:C,transKey:Y,children:v.jsx(sQ,{id:T,ownerState:D,className:L.label,children:Y})}),_.length>1&&!u&&v.jsx(M,ne({},R,{children:v.jsx(P,ne({},z))}))]}),v.jsx(Yi,{in:S==="day",children:v.jsx(XX,{slots:s,slotProps:a,onGoToPrevious:F,isPreviousDisabled:U,previousLabel:r.previousMonth,onGoToNext:$,isNextDisabled:q,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(oI.propTypes={classes:c.object,className:c.string,currentMonth:c.object.isRequired,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,format:c.string,labelId:c.string,maxDate:c.object.isRequired,minDate:c.object.isRequired,onMonthChange:c.func.isRequired,onViewChange:c.func,reduceAnimations:c.bool.isRequired,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string.isRequired,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});const cQ=be("div")({overflow:"hidden",width:Yp,maxHeight:Ox,display:"flex",flexDirection:"column",margin:"0 auto"}),uQ=t=>Ye("MuiDateCalendar",t);We("MuiDateCalendar",["root","viewTransitionContainer"]);const dQ=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],fQ=t=>{const{classes:e}=t;return Ke({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},uQ,e)};function pQ(t,e){const n=Kt(),r=lu(),o=$2(),i=Ut({props:t,name:e});return ne({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>v.jsx("span",{children:"..."})),minDate:Yr(n,i.minDate,r.minDate),maxDate:Yr(n,i.maxDate,r.maxDate)})}const hQ=be(cQ,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:Ox}),mQ=be(Z2,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),iI=A.forwardRef(function(e,n){const r=Kt(),o=jo(),i=pQ(e,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:m,onChange:g,onYearChange:y,onMonthChange:b,reduceAnimations:S,shouldDisableDate:C,shouldDisableMonth:_,shouldDisableYear:T,view:w,views:E,openTo:O,className:N,disabled:D,readOnly:L,minDate:M,maxDate:R,disableHighlightToday:P,focusedView:B,onFocusedViewChange:z,showDaysOutsideCurrentMonth:$,fixedWeekNumber:F,dayOfWeekFormatter:q,slots:U,slotProps:G,loading:Y,renderLoading:Z,displayWeekNumber:fe,yearsOrder:pe,yearsPerRow:ge,monthsPerRow:re,timezone:he}=i,le=rt(i,dQ),{value:X,handleValueChange:W,timezone:ee}=hx({name:"DateCalendar",timezone:he,value:l,defaultValue:u,referenceDate:f,onChange:g,valueManager:Io}),{view:ce,setView:te,focusedView:se,setFocusedView:ue,goToNextView:ye,setValueAndGoToNextView:Te}=F2({view:w,views:E,openTo:O,onChange:W,onViewChange:a,autoFocus:s,focusedView:B,onFocusedViewChange:z}),{referenceDate:Se,calendarState:Me,changeFocusedDay:Ne,changeMonth:Ve,handleChangeMonth:Ge,isDateDisabled:Ie,onMonthSwitchingAnimationEnd:st}=qZ({value:X,referenceDate:f,reduceAnimations:S,onMonthChange:b,minDate:M,maxDate:R,shouldDisableDate:C,disablePast:m,disableFuture:p,timezone:ee}),xt=D&&X||M,Gt=D&&X||R,bn=`${o}-grid-label`,nn=se!==null,Dt=(U==null?void 0:U.calendarHeader)??oI,wn=wt({elementType:Dt,externalSlotProps:G==null?void 0:G.calendarHeader,additionalProps:{views:E,view:ce,currentMonth:Me.currentMonth,onViewChange:te,onMonthChange:(tt,Ot)=>Ge({newMonth:tt,direction:Ot}),minDate:xt,maxDate:Gt,disabled:D,disablePast:m,disableFuture:p,reduceAnimations:S,timezone:ee,labelId:bn},ownerState:i}),Fn=$e(tt=>{const Ot=r.startOfMonth(tt),Gn=r.endOfMonth(tt),sr=Ie(tt)?dc({utils:r,date:tt,minDate:r.isBefore(M,Ot)?Ot:M,maxDate:r.isAfter(R,Gn)?Gn:R,disablePast:m,disableFuture:p,isDateDisabled:Ie,timezone:ee}):tt;sr?(Te(sr,"finish"),b==null||b(Ot)):(ye(),Ve(Ot)),Ne(sr,!0)}),dt=$e(tt=>{const Ot=r.startOfYear(tt),Gn=r.endOfYear(tt),sr=Ie(tt)?dc({utils:r,date:tt,minDate:r.isBefore(M,Ot)?Ot:M,maxDate:r.isAfter(R,Gn)?Gn:R,disablePast:m,disableFuture:p,isDateDisabled:Ie,timezone:ee}):tt;sr?(Te(sr,"finish"),y==null||y(sr)):(ye(),Ve(Ot)),Ne(sr,!0)}),In=$e(tt=>W(tt&&Cf(r,tt,X??Se),"finish",ce));A.useEffect(()=>{X!=null&&r.isValid(X)&&Ve(X)},[X]);const Vt=i,me=fQ(Vt),Le={disablePast:m,disableFuture:p,maxDate:R,minDate:M},ke={disableHighlightToday:P,readOnly:L,disabled:D,timezone:ee,gridLabelId:bn,slots:U,slotProps:G},je=A.useRef(ce);A.useEffect(()=>{je.current!==ce&&(se===je.current&&ue(ce,!0),je.current=ce)},[se,ue,ce]);const qe=A.useMemo(()=>[X],[X]);return v.jsxs(hQ,ne({ref:n,className:Pe(me.root,N),ownerState:Vt},le,{children:[v.jsx(Dt,ne({},wn,{slots:U,slotProps:G})),v.jsx(mQ,{reduceAnimations:S,className:me.viewTransitionContainer,transKey:ce,ownerState:Vt,children:v.jsxs("div",{children:[ce==="year"&&v.jsx(rI,ne({},Le,ke,{value:X,onChange:dt,shouldDisableYear:T,hasFocus:nn,onFocusedViewChange:tt=>ue("year",tt),yearsOrder:pe,yearsPerRow:ge,referenceDate:Se})),ce==="month"&&v.jsx(nI,ne({},Le,ke,{hasFocus:nn,className:N,value:X,onChange:Fn,shouldDisableMonth:_,onFocusedViewChange:tt=>ue("month",tt),monthsPerRow:re,referenceDate:Se})),ce==="day"&&v.jsx(xX,ne({},Me,Le,ke,{onMonthSwitchingAnimationEnd:st,onFocusedDayChange:Ne,reduceAnimations:S,selectedDays:qe,onSelectedDaysChange:In,shouldDisableDate:C,shouldDisableMonth:_,shouldDisableYear:T,hasFocus:nn,onFocusedViewChange:tt=>ue("day",tt),showDaysOutsideCurrentMonth:$,fixedWeekNumber:F,dayOfWeekFormatter:q,displayWeekNumber:fe,loading:Y,renderLoading:Z}))]})})]}))});process.env.NODE_ENV!=="production"&&(iI.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,fixedWeekNumber:c.number,focusedView:c.oneOf(["day","month","year"]),loading:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthChange:c.func,onViewChange:c.func,onYearChange:c.func,openTo:c.oneOf(["day","month","year"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const Ua=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:g,maxDate:y,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:C,reduceAnimations:_,onMonthChange:T,monthsPerRow:w,onYearChange:E,yearsOrder:O,yearsPerRow:N,slots:D,slotProps:L,loading:M,renderLoading:R,disableHighlightToday:P,readOnly:B,disabled:z,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:F,sx:q,autoFocus:U,fixedWeekNumber:G,displayWeekNumber:Y,timezone:Z})=>v.jsx(iI,{view:t,onViewChange:e,views:n.filter(VT),focusedView:r&&VT(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:g,maxDate:y,shouldDisableDate:b,shouldDisableMonth:S,shouldDisableYear:C,reduceAnimations:_,onMonthChange:T,monthsPerRow:w,onYearChange:E,yearsOrder:O,yearsPerRow:N,slots:D,slotProps:L,loading:M,renderLoading:R,disableHighlightToday:P,readOnly:B,disabled:z,showDaysOutsideCurrentMonth:$,dayOfWeekFormatter:F,sx:q,autoFocus:U,fixedWeekNumber:G,displayWeekNumber:Y,timezone:Z}),sI=A.forwardRef(function(e,n){var u,f;const r=mi(),o=Kt(),i=T2(e,"MuiDesktopDatePicker"),s=ne({day:Ua,month:Ua,year:Ua},i.viewRenderers),a=ne({},i,{viewRenderers:s,format:cx(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:ne({openPickerIcon:vY,field:Wp},i.slots),slotProps:ne({},i.slotProps,{field:p=>{var m;return ne({},vp((m=i.slotProps)==null?void 0:m.field,p),l2(i),{ref:n})},toolbar:ne({hidden:!0},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=HZ({props:a,valueManager:Io,valueType:"date",getOpenDialogAriaText:c2({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:au});return l()});sI.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:gn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};function gQ(t){return Ye("MuiDialogContent",t)}We("MuiDialogContent",["root","dividers"]);const yQ=We("MuiDialogTitle",["root"]),bQ=t=>{const{classes:e,dividers:n}=t;return Ke({root:["root",n&&"dividers"]},gQ,e)},vQ=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(It(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${yQ.root} + &`]:{paddingTop:0}}}]}))),aI=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=r,a={...r,dividers:i},l=bQ(a);return v.jsx(vQ,{className:Pe(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(aI.propTypes={children:c.node,classes:c.object,className:c.string,dividers:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function xQ(t){return Ye("MuiDialog",t)}const hc=We("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lI=A.createContext({});process.env.NODE_ENV!=="production"&&(lI.displayName="DialogContext");const SQ=be(rx,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),CQ=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,s={root:["root"],container:["container",`scroll${Re(n)}`],paper:["paper",`paperScroll${Re(n)}`,`paperWidth${Re(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ke(s,xQ,e)},wQ=be(ox,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),TQ=be("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Re(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"}}}]}),_Q=be(pl,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Re(n.scroll)}`],e[`paperWidth${Re(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(It(({theme:t})=>({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:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${hc.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${hc.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${hc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),cI=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiDialog"}),o=es(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:S="sm",onBackdropClick:C,onClick:_,onClose:T,open:w,PaperComponent:E=pl,PaperProps:O={},scroll:N="paper",slots:D={},slotProps:L={},TransitionComponent:M=Yi,transitionDuration:R=i,TransitionProps:P,...B}=r,z={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:S,scroll:N},$=CQ(z),F=A.useRef(),q=ue=>{F.current=ue.target===ue.currentTarget},U=ue=>{_&&_(ue),F.current&&(F.current=null,C&&C(ue),T&&T(ue,"backdropClick"))},G=jo(a),Y=A.useMemo(()=>({titleId:G}),[G]),Z={transition:M,...D},fe={transition:P,paper:O,backdrop:f,...L},pe={slots:Z,slotProps:fe},[ge,re]=Bt("root",{elementType:wQ,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:z,className:Pe($.root,m),ref:n}),[he,le]=Bt("backdrop",{elementType:SQ,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:z}),[X,W]=Bt("paper",{elementType:_Q,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:z,className:Pe($.paper,O.className)}),[ee,ce]=Bt("container",{elementType:TQ,externalForwardedProps:pe,ownerState:z,className:Pe($.container)}),[te,se]=Bt("transition",{elementType:Yi,externalForwardedProps:pe,ownerState:z,additionalProps:{appear:!0,in:w,timeout:R,role:"presentation"}});return v.jsx(ge,{closeAfterTransition:!0,slots:{backdrop:he},slotProps:{backdrop:{transitionDuration:R,as:u,...le}},disableEscapeKeyDown:g,onClose:T,open:w,onClick:U,...re,...B,children:v.jsx(te,{...se,children:v.jsx(ee,{onMouseDown:q,...ce,children:v.jsx(X,{as:E,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":G,"aria-modal":l,...W,children:v.jsx(lI.Provider,{value:Y,children:p})})})})})});process.env.NODE_ENV!=="production"&&(cI.propTypes={"aria-describedby":c.string,"aria-labelledby":c.string,"aria-modal":c.oneOfType([c.oneOf(["false","true"]),c.bool]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,disableEscapeKeyDown:c.bool,fullScreen:c.bool,fullWidth:c.bool,maxWidth:c.oneOfType([c.oneOf(["xs","sm","md","lg","xl",!1]),c.string]),onBackdropClick:c.func,onClick:c.func,onClose:c.func,open:c.bool.isRequired,PaperComponent:c.elementType,PaperProps:c.object,scroll:c.oneOf(["body","paper"]),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),container:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,container:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});const kQ=be(cI)({[`& .${hc.container}`]:{outline:0},[`& .${hc.paper}`]:{outline:0,minWidth:Yp}}),EQ=be(aI)({"&:first-of-type":{padding:0}});function MQ(t){const{children:e,onDismiss:n,open:r,slots:o,slotProps:i}=t,s=(o==null?void 0:o.dialog)??kQ,a=(o==null?void 0:o.mobileTransition)??Yi;return v.jsx(s,ne({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:a,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:v.jsx(EQ,{children:e})}))}const OQ=["props","getOpenDialogAriaText"],RQ=t=>{var Z;let{props:e,getOpenDialogAriaText:n}=t,r=rt(t,OQ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,name:y,label:b,inputRef:S,readOnly:C,disabled:_,localeText:T}=e,w=A.useRef(null),E=jo(),O=((Z=i==null?void 0:i.toolbar)==null?void 0:Z.hidden)??!1,{open:N,actions:D,layoutProps:L,renderCurrentView:M,fieldProps:R,contextValue:P}=B2(ne({},r,{props:e,fieldRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),B=o.field,z=wt({elementType:B,externalSlotProps:i==null?void 0:i.field,additionalProps:ne({},R,O&&{id:E},!(_||C)&&{onClick:D.onOpen,onKeyDown:IK(D.onOpen)},{readOnly:C??!0,disabled:_,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:g,label:b,name:y},S?{inputRef:S}:{}),ownerState:e});z.inputProps=ne({},z.inputProps,{"aria-label":n(R.value)});const $=ne({textField:o.textField},z.slots),F=o.layout??Rx;let q=E;O&&(b?q=`${E}-label`:q=void 0);const U=ne({},i,{toolbar:ne({},i==null?void 0:i.toolbar,{titleId:E}),mobilePaper:ne({"aria-labelledby":q},i==null?void 0:i.mobilePaper)}),G=Et(w,z.unstableFieldRef);return{renderPicker:()=>v.jsxs(h2,{contextValue:P,localeText:T,children:[v.jsx(B,ne({},z,{slots:$,slotProps:U,unstableFieldRef:G})),v.jsx(MQ,ne({},D,{open:N,slots:o,slotProps:U,children:v.jsx(F,ne({},L,U==null?void 0:U.layout,{slots:o,slotProps:U,children:M()}))}))]})}},uI=A.forwardRef(function(e,n){var u,f;const r=mi(),o=Kt(),i=T2(e,"MuiMobileDatePicker"),s=ne({day:Ua,month:Ua,year:Ua},i.viewRenderers),a=ne({},i,{viewRenderers:s,format:cx(o,i,!1),slots:ne({field:Wp},i.slots),slotProps:ne({},i.slotProps,{field:p=>{var m;return ne({},vp((m=i.slotProps)==null?void 0:m.field,p),l2(i),{ref:n})},toolbar:ne({hidden:!1},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=RQ({props:a,valueManager:Io,valueType:"date",getOpenDialogAriaText:c2({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:au});return l()});uI.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:gn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};const AQ=["desktopModeMediaQuery"],dI=A.forwardRef(function(e,n){const r=Ut({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=DK}=r,i=rt(r,AQ);return C2(o,{defaultMatches:!0})?v.jsx(sI,ne({ref:n},i)):v.jsx(uI,ne({ref:n},i))});process.env.NODE_ENV!=="production"&&(dI.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,desktopModeMediaQuery:c.string,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:gn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const IQ={invalidDate:"Date selected is invalid",minDate:"Date selected is too far in the past",maxDate:"Date selected is too far in the future",disableFuture:"Date selected cannot be in the future",disablePast:"Date selected cannot be in the past"},kf=t=>{const{name:e,label:n=Mn(e),required:r=!1,readOnly:o=!1,format:i="MM/DD/YYYY",errorMessages:s,isDatePicker:a=!1,margin:l="dense",staticLabel:u=!1,staticLabelProps:f={fontSize:".9em",color:"#808080"}}=t,[p,m,g]=qt.useField({name:e}),{setValue:y,setError:b}=g,{value:S}=p,{error:C}=m,_=P=>{if(!P)return null;const B=pn.utc(P);return B&&B.isValid()?pn(B):null},T=P=>{const B=P==null?void 0:P.utc();return!B||!B.isValid()?"":B.toISOString()},[w,E]=A.useState(_(S)),[O,N]=A.useState(null),D={...IQ,...s},L=["staticLabel","staticLabelProps","label","errorMessages","isDatePicker","dateFieldProps","datePickerProps","onChange"],M=(P,B)=>T(P)!==B;A.useEffect(()=>{M(w,S)&&y(T(w))},[w]),A.useEffect(()=>{M(w,S)&&E(_(S))},[S]),A.useEffect(()=>{const P=O?D[O]??O:"";b(P)},[O]);const R={label:u?void 0:n,format:i,onError:N,value:w,onChange:(P,B)=>{var z;E(P?P.utc():null),(z=t.onChange)==null||z.call(t,T(P),B)},...er({...t},L)};return v.jsxs(j.FormControl,{fullWidth:!0,margin:l,children:[(u||o)&&v.jsx(j.Typography,{...f,children:n}),o?v.jsx(j.Typography,{"data-testid":"date-field_readonly-value",children:w!=null&&w.isValid()?w.format(i):""}):v.jsxs(j.Box,{children:[v.jsx(Gv,{dateAdapter:Y8,children:v.jsx(j.Box,{children:a?v.jsx(dI,{...R,slotProps:{textField:{fullWidth:!0,error:!!C,required:!!r}}}):v.jsx(Wp,{id:`${e}-df`,...R,fullWidth:!0,slotProps:{textField:{error:!!C}}})})}),v.jsx(tr,{name:e,id:`${e}-err`})]})]})},DQ=t=>{const{nameTo:e,nameFrom:n,labelTo:r=Mn(e),labelFrom:o=Mn(n),fromFieldProps:i,toFieldProps:s,staticLabels:a=!1}=t,l=["nameTo","nameFrom","toFieldProps","fromFieldProps","labelTo","labelFrom"],u=j.useMediaQuery(j.useTheme().breakpoints.down("sm"));return v.jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",justifyContent:"space-between",gap:"10px"},children:[v.jsx(kf,{name:n,staticLabel:a,label:o,...er({...t,...i},l)}),v.jsx(kf,{name:e,staticLabel:a,label:r,...er({...t,...s},l)})]})};function Nn(t){this.content=t}Nn.prototype={constructor:Nn,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new Nn(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Nn(n)},addToStart:function(t,e){return new Nn([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Nn(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new Nn(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Nn.from(t),t.size?new Nn(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Nn.from(t),t.size?new Nn(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Nn.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Nn.from=function(t){if(t instanceof Nn)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Nn(e)};function fI(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=fI(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function pI(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let u=pI(s.content,a.content,n-1,r-1);if(u)return u}n-=l,r-=l}}class _e{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&r(l,o+a,i||null,s)!==!1&&l.content.size){let f=a+1;l.nodesBetween(Math.max(0,e-f),Math.min(l.content.size,n-f),r,o+f)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?o?typeof o=="function"?o(a):o:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new _e(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),r.push(a),o+=a.nodeSize),s=l}return new _e(r,o)}cutByIndex(e,n){return e==n?_e.empty:e==0&&n==this.content.length?this:new _e(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new _e(o,i)}addToStart(e){return new _e([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new _e(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return fI(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return pI(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Cd(0,e);if(e==this.size)return Cd(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Cd(r+1,s):Cd(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return _e.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new _e(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return _e.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new _e(n||e,r)}static from(e){if(!e)return _e.empty;if(e instanceof _e)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new _e([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}_e.empty=new _e([],0);const ug={index:0,offset:0};function Cd(t,e){return ug.index=t,ug.offset=e,ug}function Ef(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Ef(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ef(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let jt=class K0{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Ef(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return K0.none;if(e instanceof K0)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};jt.none=[];class Mf extends Error{}class Ae{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=mI(this.content,e+this.openStart,n);return r&&new Ae(r,this.openStart,this.openEnd)}removeBetween(e,n){return new Ae(hI(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return Ae.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Ae(_e.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new Ae(e,r,o)}}Ae.empty=new Ae(_e.empty,0,0);function hI(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:a}=t.findIndex(n);if(o==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(hI(i.content,e-o-1,n-o-1)))}function mI(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=mI(s.content,e-i-1,n);return a&&t.replaceChild(o,s.copy(a))}function PQ(t,e,n){if(n.openStart>t.depth)throw new Mf("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Mf("Inconsistent open depths");return gI(t,e,n,0)}function gI(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=gI(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,a=s.content;return Ls(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=NQ(n,t);return Ls(i,bI(t,s,a,e,r))}else return Ls(i,Of(t,e,r))}function yI(t,e){if(!e.type.compatibleContent(t.type))throw new Mf("Cannot join "+e.type.name+" onto "+t.type.name)}function Y0(t,e,n){let r=t.node(n);return yI(r,e.node(n)),r}function Ns(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function mc(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Ns(t.nodeAfter,r),i++));for(let a=i;a<s;a++)Ns(o.child(a),r);e&&e.depth==n&&e.textOffset&&Ns(e.nodeBefore,r)}function Ls(t,e){return t.type.checkContent(e),t.copy(e)}function bI(t,e,n,r,o){let i=t.depth>o&&Y0(t,e,o+1),s=r.depth>o&&Y0(n,r,o+1),a=[];return mc(null,t,o,a),i&&s&&e.index(o)==n.index(o)?(yI(i,s),Ns(Ls(i,bI(t,e,n,r,o+1)),a)):(i&&Ns(Ls(i,Of(t,e,o+1)),a),mc(e,n,o,a),s&&Ns(Ls(s,Of(n,r,o+1)),a)),mc(r,null,o,a),new _e(a)}function Of(t,e,n){let r=[];if(mc(null,t,n,r),t.depth>n){let o=Y0(t,e,n+1);Ns(Ls(o,Of(t,e,n+1)),r)}return mc(e,null,n,r),new _e(r)}function NQ(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(_e.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class jc{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return jt.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let a=r;r=o,o=a}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Rf(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(r.push(s,a,o+l),!u||(s=s.child(a),s.isText))break;i=u-1,o+=l+1}return new jc(n,r,i)}static resolveCached(e,n){let r=v_.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else v_.set(e,r=new LQ);let o=r.elts[r.i]=jc.resolve(e,n);return r.i=(r.i+1)%jQ,o}}class LQ{constructor(){this.elts=[],this.i=0}}const jQ=12,v_=new WeakMap;class Rf{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const $Q=Object.create(null);let zi=class G0{constructor(e,n,r,o=jt.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||_e.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Ef(this.attrs,n||e.defaultAttrs||$Q)&&jt.sameSet(this.marks,r||jt.none)}copy(e=null){return e==this.content?this:new G0(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new G0(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return Ae.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),a=o.start(s),u=o.node(s).content.cut(o.pos-a,i.pos-a);return new Ae(u,o.depth-s,i.depth-s)}replace(e,n,r){return PQ(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return jc.resolveCached(this,e)}resolveNoCache(e){return jc.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),vI(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=_e.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=o;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=jt.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!jt.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=_e.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};zi.prototype.text=void 0;class Af extends zi{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):vI(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Af(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Af(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function vI(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ws{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new FQ(e,n);if(r.next==null)return Ws.empty;let o=xI(r);r.next&&r.err("Unexpected trailing text");let i=UQ(qQ(o));return KQ(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,a){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return _e.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&o.indexOf(p)==-1){o.push(p);let m=i(p,a.concat(f));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let a=o;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!o.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:o}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
234
234
  `)}}Ws.empty=new Ws(!0);class FQ{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function xI(t){let e=[];do e.push(BQ(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function BQ(t){let e=[];do e.push(zQ(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function zQ(t){let e=WQ(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=VQ(t,e);else break;return e}function x_(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function VQ(t,e){let n=x_(t),r=n;return t.eat(",")&&(t.next!="}"?r=x_(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function HQ(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function WQ(t){if(t.eat("(")){let e=xI(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=HQ(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function qQ(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function o(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;o(u,a=n())}else if(s.type=="star"){let l=n();return r(a,l),o(i(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return o(i(s.expr,a),l),o(i(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let f=n();o(i(s.expr,l),f),l=f}if(s.max==-1)o(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let f=n();r(l,f),o(i(s.expr,l),f),l=f}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function SI(t,e){return e-t}function S_(t,e){let n=[];return r(e),n.sort(SI);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&r(l)}}}function UQ(t){let e=Object.create(null);return n(S_(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let f=0;f<o.length;f++)o[f][0]==a&&(u=o[f][1]);S_(t,l).forEach(f=>{u||o.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=e[r.join(",")]=new Ws(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let a=o[s][1].sort(SI);i.next.push({type:o[s][0],next:e[a.join(",")]||n(a)})}return i}}function KQ(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let a=0;a<o.next.length;a++){let{type:l,next:u}=o.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function CI(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function wI(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function TI(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let i=t[o];i.validate&&i.validate(e[o])}}function _I(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new GQ(t,r,e[r]);return n}let C_=class kI{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_I(e,r.attrs),this.defaultAttrs=CI(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Ws.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:wI(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new zi(this,this.computeAttrs(e),_e.from(n),jt.setFrom(r))}createChecked(e=null,n,r){return n=_e.from(n),this.checkContent(n),new zi(this,this.computeAttrs(e),n,jt.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=_e.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(_e.empty,!0);return i?new zi(this,e,n.append(i),jt.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){TI(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:jt.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new kI(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function YQ(t,e,n){let r=n.split("|");return o=>{let i=o===null?"null":typeof o;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class GQ{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?YQ(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Gp{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=_I(e,o.attrs),this.excluded=null;let i=CI(this.attrs);this.instance=i?new jt(this,i):null}create(e=null){return!e&&this.instance?this.instance:new jt(this,wI(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Gp(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){TI(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}let EI=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Nn.from(e.nodes),n.marks=Nn.from(e.marks||{}),this.nodes=C_.compile(this.spec.nodes,this),this.marks=Gp.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=r[s]||(r[s]=Ws.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?w_(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:w_(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof C_){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Af(r,r.defaultAttrs,e,jt.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return zi.fromJSON(this,e)}markFromJSON(e){return jt.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}};function w_(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(o=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function JQ(t){return t.tag!=null}function ZQ(t){return t.style!=null}class Vi{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(o=>{if(JQ(o))this.tags.push(o);else if(ZQ(o)){let i=/[^=]*/.exec(o.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let i=e.nodes[o.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new __(this,n,!1);return r.addAll(e,jt.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new __(this,n,!0);return r.addAll(e,jt.none,n.from,n.to),Ae.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(eee(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=k_(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=k_(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Vi(e,Vi.schemaRules(e)))}}const MI={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},XQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},OI={ol:!0,ul:!0},$c=1,J0=2,gc=4;function T_(t,e,n){return e!=null?(e?$c:0)|(e==="full"?J0:0):t&&t.whitespace=="pre"?$c|J0:n&~gc}class wd{constructor(e,n,r,o,i,s){this.type=e,this.attrs=n,this.marks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=jt.none,this.match=i||(s&gc?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(_e.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&$c)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=_e.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(_e.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!MI.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class __{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=n.topNode,i,s=T_(null,n.preserveWhitespace,0)|(r?gc:0);o?i=new wd(o.type,o.attrs,jt.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new wd(null,null,jt.none,!0,null,s):i=new wd(e.schema.topNodeType,null,jt.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,o=this.top,i=o.options&J0?"full":this.localPreserveWS||(o.options&$c)>0;if(i==="full"||o.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)i!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,`
235
235
  `);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=o.content[o.content.length-1],a=e.previousSibling;(!s||a&&a.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;OI.hasOwnProperty(s)&&this.parser.normalizeLists&&QQ(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(l?l.ignore:XQ.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,f=this.needsBlock;if(MI.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let p=l&&l.skip?n:this.readStyles(e,n);p&&this.addAll(e,p),u&&this.sync(i),this.needsBlock=f}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
236
236
  `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let i=this.parser.matchedStyles[o],s=r.getPropertyValue(i);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(u=>!l.clearMark(u)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r)||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(i=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}i&&this.sync(a)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,a=o==null?null:e.childNodes[o];s!=a;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n){let r,o;for(let i=this.open;i>=0;i--){let s=this.nodes[i],a=s.findWrapping(e);if(a&&(!r||r.length>a.length)&&(r=a,o=s,!a.length)||s.solid)break}if(!r)return null;this.sync(o);for(let i=0;i<r.length;i++)n=this.enterInner(r[i],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let r=this.findPlace(e,n);if(r){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let i=jt.none;for(let s of r.concat(e.marks))(o.type?o.type.allowsMarkType(s.type):E_(s.type,e.type))&&(i=s.addToSet(i));return o.content.push(e.mark(i)),!0}return!1}enter(e,n,r,o){let i=this.findPlace(e.create(n),r);return i&&(i=this.enterInner(e,n,r,!0,o)),i}enterInner(e,n,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=T_(e,i,s.options);s.options&gc&&s.content.length==0&&(a|=gc);let l=jt.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):E_(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new wd(e,n,l,o,null,a)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=$c)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(a,l)=>{for(;a>=0;a--){let u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let f=l>0||l==0&&o?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!f||f.name!=u&&!f.isInGroup(u))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function QQ(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&OI.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function eee(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function k_(t){let e={};for(let n in t)e[n]=t[n];return e}function E_(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:u,next:f}=a.edge(l);if(u==e||i.indexOf(f)<0&&s(f))return!0}};if(s(o.contentMatch))return!0}}class Zs{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=dg(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)o=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],f=this.serializeMark(u,s.isInline,n);f&&(i.push([u,o]),o.appendChild(f.dom),o=f.contentDOM||f.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=nf(dg(n),this.nodes[e.type.name](e),null,e.attrs);if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&nf(dg(r),o(e,n),null,e.attrs)}static renderSpec(e,n,r=null,o){return nf(e,n,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Zs(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=M_(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return M_(e.marks)}}function M_(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function dg(t){return t.document||window.document}const O_=new WeakMap;function tee(t){let e=O_.get(t);return e===void 0&&O_.set(t,e=nee(t)),e}function nee(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o<r.length;o++)n(r[o]);else for(let o in r)n(r[o])}return n(t),e}function nf(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let o=e[0],i;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=tee(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let a,l=n?t.createElementNS(n,o):t.createElement(o),u=e[1],f=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){f=2;for(let p in u)if(u[p]!=null){let m=p.indexOf(" ");m>0?l.setAttributeNS(p.slice(0,m),p.slice(m+1),u[p]):l.setAttribute(p,u[p])}}for(let p=f;p<e.length;p++){let m=e[p];if(m===0){if(p<e.length-1||p>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:g,contentDOM:y}=nf(t,m,n,r);if(l.appendChild(g),y){if(a)throw new RangeError("Multiple content holes");a=y}}}return{dom:l,contentDOM:a}}const RI=65535,AI=Math.pow(2,16);function ree(t,e){return t+e*AI}function R_(t){return t&RI}function oee(t){return(t-(t&RI))/AI}const II=1,DI=2,rf=4,PI=8;class Z0{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&PI)>0}get deletedBefore(){return(this.delInfo&(II|rf))>0}get deletedAfter(){return(this.delInfo&(DI|rf))>0}get deletedAcross(){return(this.delInfo&rf)>0}}class kr{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&kr.empty)return kr.empty}recover(e){let n=0,r=R_(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+oee(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let u=this.ranges[a+i],f=this.ranges[a+s],p=l+u;if(e<=p){let m=u?e==l?-1:e==p?1:n:n,g=l+o+(m<0?0:f);if(r)return g;let y=e==(n<0?l:p)?null:ree(a/3,e-l),b=e==l?DI:e==p?II:rf;return(n<0?e!=l:e!=p)&&(b|=PI),new Z0(g,b,y)}o+=f-u}return r?e+o:new Z0(e+o,0,null)}touches(e,n){let r=0,o=R_(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let u=this.ranges[a+i],f=l+u;if(e<=f&&a==o*3)return!0;r+=this.ranges[a+s]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),u=this.ranges[o+n],f=this.ranges[o+r];e(a,a+u,l,l+f),i+=f-u}}invert(){return new kr(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?kr.empty:new kr(e<0?[0,-e,0]:[0,0,e])}}kr.empty=new kr([]);class Fc{constructor(e,n,r=0,o=e?e.length:0){this.mirror=n,this.from=r,this.to=o,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Fc(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let o=e.getMirror(n);this.appendMap(e._maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e._maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Fc;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],a=s.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this._maps[l].recover(a.recover);continue}}o|=a.delInfo,e=a.pos}return r?e:new Z0(e,o,null)}}const fg=Object.create(null);class Yn{getMap(){return kr.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=fg[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in fg)throw new RangeError("Duplicate use of step JSON ID "+e);return fg[e]=n,n.prototype.jsonID=e,n}}class mn{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new mn(e,null)}static fail(e){return new mn(null,e)}static fromReplace(e,n,r,o){try{return mn.ok(e.replace(n,r,o))}catch(i){if(i instanceof Mf)return mn.fail(i.message);throw i}}}function Ax(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(Ax(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return _e.fromArray(r)}class $i extends Yn{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new Ae(Ax(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return mn.fromReplace(e,this.from,this.to,i)}invert(){return new Oo(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new $i(n.pos,r.pos,this.mark)}merge(e){return e instanceof $i&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new $i(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new $i(n.from,n.to,e.markFromJSON(n.mark))}}Yn.jsonID("addMark",$i);class Oo extends Yn{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new Ae(Ax(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return mn.fromReplace(e,this.from,this.to,r)}invert(){return new $i(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Oo(n.pos,r.pos,this.mark)}merge(e){return e instanceof Oo&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Oo(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Oo(n.from,n.to,e.markFromJSON(n.mark))}}Yn.jsonID("removeMark",Oo);class Fi extends Yn{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return mn.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return mn.fromReplace(e,this.pos,this.pos+1,new Ae(_e.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Fi(this.pos,n.marks[o]);return new Fi(this.pos,this.mark)}}return new ol(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Fi(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Fi(n.pos,e.markFromJSON(n.mark))}}Yn.jsonID("addNodeMark",Fi);class ol extends Yn{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return mn.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return mn.fromReplace(e,this.pos,this.pos+1,new Ae(_e.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Fi(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ol(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ol(n.pos,e.markFromJSON(n.mark))}}Yn.jsonID("removeNodeMark",ol);class kn extends Yn{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&X0(e,this.from,this.to)?mn.fail("Structure replace would overwrite content"):mn.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new kr([this.from,this.to-this.from,this.slice.size])}invert(e){return new kn(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new kn(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof kn)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?Ae.empty:new Ae(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new kn(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?Ae.empty:new Ae(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new kn(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new kn(n.from,n.to,Ae.fromJSON(e,n.slice),!!n.structure)}}Yn.jsonID("replace",kn);class On extends Yn{constructor(e,n,r,o,i,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(X0(e,this.from,this.gapFrom)||X0(e,this.gapTo,this.to)))return mn.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return mn.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?mn.fromReplace(e,this.from,this.to,r):mn.fail("Content does not fit in gap")}getMap(){return new kr([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new On(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new On(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new On(n.from,n.to,n.gapFrom,n.gapTo,Ae.fromJSON(e,n.slice),n.insert,!!n.structure)}}Yn.jsonID("replaceAround",On);function X0(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function iee(t,e,n,r){let o=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,u,f)=>{if(!l.isInline)return;let p=l.marks;if(!r.isInSet(p)&&f.type.allowsMarkType(r.type)){let m=Math.max(u,e),g=Math.min(u+l.nodeSize,n),y=r.addToSet(p);for(let b=0;b<p.length;b++)p[b].isInSet(y)||(s&&s.to==m&&s.mark.eq(p[b])?s.to=g:o.push(s=new Oo(m,g,p[b])));a&&a.to==m?a.to=g:i.push(a=new $i(m,g,r))}}),o.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function see(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;i++;let l=null;if(r instanceof Gp){let u=s.marks,f;for(;f=r.isInSet(u);)(l||(l=[])).push(f),u=f.removeFromSet(u)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let u=Math.min(a+s.nodeSize,n);for(let f=0;f<l.length;f++){let p=l[f],m;for(let g=0;g<o.length;g++){let y=o[g];y.step==i-1&&p.eq(o[g].style)&&(m=y)}m?(m.to=u,m.step=i):o.push({style:p,from:Math.max(a,e),to:u,step:i})}}}),o.forEach(s=>t.step(new Oo(s.from,s.to,s.style)))}function Ix(t,e,n,r=n.contentMatch,o=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let u=i.child(l),f=a+u.nodeSize,p=r.matchType(u.type);if(!p)s.push(new kn(a,f,Ae.empty));else{r=p;for(let m=0;m<u.marks.length;m++)n.allowsMarkType(u.marks[m].type)||t.step(new Oo(a,f,u.marks[m]));if(o&&u.isText&&n.whitespace!="pre"){let m,g=/\r?\n|\r/g,y;for(;m=g.exec(u.text);)y||(y=new Ae(_e.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new kn(a+m.index,a+m.index+m[0].length,y))}}a=f}if(!r.validEnd){let l=r.fillBefore(_e.empty,!0);t.replace(a,a,new Ae(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function aee(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function ml(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!aee(o,i,s))break}return null}function lee(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),a=o.after(i+1),l=s,u=a,f=_e.empty,p=0;for(let y=i,b=!1;y>n;y--)b||r.index(y)>0?(b=!0,f=_e.from(r.node(y).copy(f)),p++):l--;let m=_e.empty,g=0;for(let y=i,b=!1;y>n;y--)b||o.after(y+1)<o.end(y)?(b=!0,m=_e.from(o.node(y).copy(m)),g++):u++;t.step(new On(l,u,s,a,new Ae(f.append(m),p,g),f.size-p,!0))}function Dx(t,e,n=null,r=t){let o=cee(t,e),i=o&&uee(r,e);return i?o.map(A_).concat({type:e,attrs:n}).concat(i.map(A_)):null}function A_(t){return{type:t,attrs:null}}function cee(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function uee(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let u=r;l&&u<o;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function dee(t,e,n){let r=_e.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let a=n[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=_e.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new On(o,i,o,i,new Ae(r,0,0),n.length,!0))}function fee(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{let l=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,l)&&pee(t.doc,t.mapping.slice(i).map(a),r)){let u=null;if(r.schema.linebreakReplacement){let g=r.whitespace=="pre",y=!!r.contentMatch.matchType(r.schema.linebreakReplacement);g&&!y?u=!1:!g&&y&&(u=!0)}u===!1&&LI(t,s,a,i),Ix(t,t.mapping.slice(i).map(a,1),r,void 0,u===null);let f=t.mapping.slice(i),p=f.map(a,1),m=f.map(a+s.nodeSize,1);return t.step(new On(p,m,p+1,m-1,new Ae(_e.from(r.create(l,null,s.marks)),0,0),1,!0)),u===!0&&NI(t,s,a,i),!1}})}function NI(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(o.text);){let l=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function LI(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
@@ -320,10 +320,10 @@ img.ProseMirror-separator {
320
320
 
321
321
  `,textSerializers:r={}}=e||{};return zD(this.state.doc,{blockSeparator:n,textSerializers:{...Jx(this.schema),...r}})}get isEmpty(){return ah(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new ks(n,this)}get $doc(){return this.$pos(0)}}function Ks(t){return new hu({find:t.find,handler:({state:e,range:n,match:r})=>{const o=ct(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],a=r[0];if(s){const l=a.search(/\S/),u=n.from+a.indexOf(s),f=u+s.length;if(e1(n.from,n.to,e.doc).filter(g=>g.mark.type.excluded.find(b=>b===t.type&&b!==g.mark.type)).filter(g=>g.to>u).length)return null;f<n.to&&i.delete(f,n.to),u>n.from&&i.delete(n.from+l,u);const m=n.from+l+s.length;i.addMark(n.from+l,m,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function WD(t){return new hu({find:t.find,handler:({state:e,range:n,match:r})=>{const o=ct(t.getAttributes,void 0,r)||{},{tr:i}=e,s=n.from;let a=n.to;const l=t.type.create(o);if(r[1]){const u=r[0].lastIndexOf(r[1]);let f=s+u;f>a?f=a:a=f+r[1].length;const p=r[0][r[0].length-1];i.insertText(p,s+r[0].length-1),i.replaceWith(f,a,l)}else if(r[0]){const u=t.type.isInline?s:s-1;i.insert(u,t.type.create(o)).delete(i.mapping.map(s),i.mapping.map(a))}i.scrollIntoView()}})}function dv(t){return new hu({find:t.find,handler:({state:e,range:n,match:r})=>{const o=e.doc.resolve(n.from),i=ct(t.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,i)}})}function cl(t){return new hu({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=ct(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),u=l&&Dx(l,t.type,i);if(!u)return null;if(s.wrap(l,u),t.keepMarks&&t.editor){const{selection:p,storedMarks:m}=e,{splittableMarks:g}=t.editor.extensionManager,y=m||p.$to.parentOffset&&p.$from.marks();if(y){const b=y.filter(S=>g.includes(S.type.name));s.ensureMarks(b)}}if(t.keepAttributes){const p=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(p,i).run()}const f=s.doc.resolve(n.from-1).nodeBefore;f&&f.type===t.type&&is(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,f))&&s.join(n.from-1)}})}class en{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ct(ze(this,"addOptions",{name:this.name}))),this.storage=ct(ze(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new en(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>ih(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new en(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ct(ze(n,"addOptions",{name:n.name})),n.storage=ct(ze(n,"addStorage",{name:n.name,options:n.options})),n}}class Aoe{constructor(e,n,r){this.isDragging=!1,this.component=e,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var n,r,o,i,s,a,l;const{view:u}=this.editor,f=e.target,p=f.nodeType===3?(n=f.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):f.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(f)||!p)return;let m=0,g=0;if(this.dom!==p){const C=this.dom.getBoundingClientRect(),_=p.getBoundingClientRect(),T=(o=e.offsetX)!==null&&o!==void 0?o:(i=e.nativeEvent)===null||i===void 0?void 0:i.offsetX,w=(s=e.offsetY)!==null&&s!==void 0?s:(a=e.nativeEvent)===null||a===void 0?void 0:a.offsetY;m=_.x-C.x+T,g=_.y-C.y+w}(l=e.dataTransfer)===null||l===void 0||l.setDragImage(this.dom,m,g);const y=this.getPos();if(typeof y!="number")return;const b=Ue.create(u.state.doc,y),S=u.state.tr.setSelection(b);u.dispatch(S)}stopEvent(e){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const i=e.type.startsWith("drag"),s=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!s&&!i)return!0;const{isEditable:l}=this.editor,{isDragging:u}=this,f=!!this.node.type.spec.draggable,p=Ue.isSelectable(this.node),m=e.type==="copy",g=e.type==="paste",y=e.type==="cut",b=e.type==="mousedown";if(!f&&p&&i&&e.target===this.dom&&e.preventDefault(),f&&i&&!u&&e.target===this.dom)return e.preventDefault(),!1;if(f&&l&&!u&&b){const S=r.closest("[data-drag-handle]");S&&(this.dom===S||this.dom.contains(S))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(u||s||m||g||y||b&&p)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(sh()||jD())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const n=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:n})}}function Ji(t){return new Jne({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=ct(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];let u=n.to;if(a){const f=l.search(/\S/),p=n.from+l.indexOf(a),m=p+a.length;if(e1(n.from,n.to,e.doc).filter(y=>y.mark.type.excluded.find(S=>S===t.type&&S!==y.mark.type)).filter(y=>y.to>p).length)return null;m<n.to&&s.delete(m,n.to),p>n.from&&s.delete(n.from+f,p),u=n.from+f+a.length,s.addMark(n.from+f,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}function Ioe(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const qD=Object.fromEntries?Object.fromEntries:t=>{if(!t||!t[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const e={};return Object.keys(t).forEach(n=>{const[r,o]=t[n];e[r]=o}),e};function Zi(t){return Object.keys(t)}function As(t,e){if(!t)throw new Error(e)}function t1(t,e){return e}const n1=t=>{const e=t.length;let n=0,r="";for(;n<e;n++){const o=t[n];if(o==null)continue;let i;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=n1(o);else{As(!t1(o,!1)),process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="";for(const s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}return r};function Doe(t,e,n){var r="";return n.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(r+=o+" ")}),r}var Poe=function(e,n,r){var o=e.key+"-"+n.name;e.registered[o]===void 0&&(e.registered[o]=n.styles)},Noe=function(e,n,r){Poe(e,n);var o=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+o:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Loe(t,e){var n;const r=J.useRef();return(!r.current||e.length!==((n=r.current.prevDeps)===null||n===void 0?void 0:n.length)||r.current.prevDeps.map((o,i)=>o===e[i]).indexOf(!1)>=0)&&(r.current={v:t(),prevDeps:[...e]}),r.current.v}function joe(t){return t instanceof Object&&!("styles"in t)&&!("length"in t)&&!("__emotion_styles"in t)}const{createCssAndCx:$oe}=(()=>{function t(n,r,o){const i=[],s=Doe(n,i,o);return i.length<2?o:s+r(i)}function e(n){const{cache:r}=n,o=(...s)=>{const a=cA(s,r.registered);Noe(r,a);const l=`${r.key}-${a.name}`;e:{const u=s[0];if(!joe(u))break e;_k.saveClassNameCSSObjectMapping(r,l,u)}return l};return{css:o,cx:(...s)=>{const a=n1(s),l=_k.fixClassName(r,a,o);return t(r.registered,o,l)}}}return{createCssAndCx:e}})();function UD(t){const{useCache:e}=t;function n(){const r=e(),{css:o,cx:i}=Loe(()=>$oe({cache:r}),[r]);return{css:o,cx:i}}return{useCssAndCx:n}}const _k=(()=>{const t=new WeakMap;return{saveClassNameCSSObjectMapping:(e,n,r)=>{let o=t.get(e);o===void 0&&(o=new Map,t.set(e,o)),o.set(n,r)},fixClassName:(()=>{function e(n){let r=!1;return n.map(([o,i])=>{if(i===void 0)return o;let s;if(r)s={"&&":i};else{s=o;for(const a in i)if(a.startsWith("@media")){r=!0;break}}return s})}return(n,r,o)=>{const i=t.get(n);return n1(e(r.split(" ").map(s=>[s,i==null?void 0:i.get(s)])).map(s=>typeof s=="string"?s:o(s)))}})()}})();function Xi(t){if(!(t instanceof Object)||typeof t=="function")return t;const e=[];for(const n in t){const r=t[n],o=typeof r;if(!(o==="string"||o==="number"&&!isNaN(r)||o==="boolean"||r===void 0||r===null))return t;e.push(`${n}:${o}_${r}`)}return"xSqLiJdLMd9s"+e.join("|")}function r1(t,e,n){if(!(e instanceof Object))return t;const r={};return Zi(t).forEach(o=>r[o]=n(t[o],e[o])),Zi(e).forEach(o=>{if(o in t)return;const i=e[o];typeof i=="string"&&(r[o]=i)}),r}const KD=({classes:t,theme:e,muiStyleOverridesParams:n,css:r,cx:o,name:i})=>{var s,a;e:{if(i==="makeStyle no name"){i=void 0;break e}if(n!==void 0&&i===void 0)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}let l;try{l=i===void 0?void 0:((a=(s=e.components)===null||s===void 0?void 0:s[i])===null||a===void 0?void 0:a.styleOverrides)||void 0}catch{}const u=J.useMemo(()=>{if(l===void 0)return;const f={};for(const p in l){const m=l[p];m instanceof Object&&(f[p]=r(typeof m=="function"?m({theme:e,ownerState:n==null?void 0:n.ownerState,...n==null?void 0:n.props}):m))}return f},[l,Xi(n==null?void 0:n.props),Xi(n==null?void 0:n.ownerState),r]);return t=J.useMemo(()=>r1(t,u,o),[t,u,o]),{classes:t}};let Foe=0;function YD(t){const{useTheme:e,cache:n}=t,{useCache:r}=GD({cacheProvidedAtInception:n}),{useCssAndCx:o}=UD({useCache:r});function i(a){const{name:l,uniqId:u=`${Foe++}`}=a??{},f=typeof l!="object"?l:Object.keys(l)[0];return function(p){const m=typeof p=="function"?p:()=>p;return function(y,b){const S=e();let{css:C,cx:_}=o();const T=r();let w=J.useMemo(()=>{const E={},O=typeof Proxy<"u"&&new Proxy({},{get:(L,M)=>(typeof M=="symbol"&&As(!1),E[M]=`${T.key}-${u}${f!==void 0?`-${f}`:""}-${M}-ref`)}),N=m(S,y,O||{}),D=qD(Zi(N).map(L=>{const M=N[L];return M.label||(M.label=`${f!==void 0?`${f}-`:""}${L}`),[L,`${C(M)}${t1(L,L in E)?` ${E[L]}`:""}`]}));return Zi(E).forEach(L=>{L in D||(D[L]=E[L])}),D},[T,C,_,S,Xi(y)]);{const E=b==null?void 0:b.props.classes;w=J.useMemo(()=>r1(w,E,_),[w,Xi(E),_])}{const E=KD({classes:w,css:C,cx:_,name:f??"makeStyle no name",idOfUseStyles:u,muiStyleOverridesParams:b,theme:S});E.classes!==void 0&&(w=E.classes),E.css!==void 0&&(C=E.css),E.cx!==void 0&&(_=E.cx)}return{classes:w,theme:S,css:C,cx:_}}}}function s(){const a=e(),{css:l,cx:u}=o();return{theme:a,css:l,cx:u}}return{makeStyles:i,useStyles:s}}const Boe=J.createContext(void 0),{createUseCache:GD}=(()=>{function t(){return J.useContext(Boe)}function e(n){const{cacheProvidedAtInception:r}=n;function o(){var i;const s=lo.__unsafe_useEmotionCache(),a=t(),l=(i=r??a)!==null&&i!==void 0?i:s;if(l===null)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join(`
322
322
  `));return l}return{useCache:o}}return{createUseCache:e}})();function kk(t){return t.charAt(0).toUpperCase()+t.slice(1)}function zoe(t){const{useTheme:e,cache:n}=t,{makeStyles:r}=YD({useTheme:e,cache:n});function o(i,s,a){const l=typeof i=="string"?(()=>{const g=i,y=function({children:b,...S}){return J.createElement(g,S,b)};return Object.defineProperty(y,"name",{value:kk(g)}),y})():i,u=(()=>{{const{name:y}=a??{};if(y!==void 0)return typeof y!="object"?y:Object.keys(y)[0]}let g;e:{const y=l.displayName;if(typeof y!="string"||y==="")break e;g=y}e:{if(g!==void 0)break e;const y=l.name;if(typeof y!="string"||y==="")break e;g=y}if(g!==void 0)return g=g.replace(/\$/g,"usd"),g=g.replace(/\(/g,"_").replace(/\)/g,"_"),g=g.replace(/[^a-zA-Z0-9-_]/g,"_"),g})(),f=r({...a,name:u})(typeof s=="function"?(g,y,b)=>Mk(s(g,y,b)):Mk(s));function p(g){for(const y in g)if(y!=="root")return!0;return!1}const m=J.forwardRef(function(g,y){const{className:b,classes:S,...C}=g,{classes:_,cx:T}=f(g,{props:g}),w=T(_.root,b);return JD.set(_,{..._,root:w}),J.createElement(l,{ref:y,className:p(_)?b:w,...typeof i=="string"?{}:{classes:_},...C})});return u!==void 0&&(m.displayName=`${kk(u)}WithStyles`,Object.defineProperty(m,"name",{value:m.displayName})),m}return o.getClasses=Voe,{withStyles:o}}const JD=new WeakMap,Ek="getClasses should only be used in conjunction with withStyles";function Voe(t){const e=t.classes;if(e===void 0)throw new Error(Ek);const n=JD.get(e);if(n===void 0)throw new Error(Ek);return n}function Mk(t){const e={},n={};return Object.keys(t).forEach(r=>(r.startsWith("@media")?n:e)[r]=t[r]),Object.keys(n).forEach(r=>{const o=n[r];Object.keys(o).forEach(i=>{var s;return e[i]={...(s=e[i])!==null&&s!==void 0?s:{},[r]:o[i]}})}),e}const Hoe=!(typeof document=="object"&&typeof(document==null?void 0:document.getElementById)=="function")&&!(typeof jest<"u")&&!(typeof mocha<"u")&&!(typeof __vitest_worker__<"u");function ZD(t){XD=0,Ri.splice(0,Ri.length);const{useContext:e,usePlugin:n,cache:r}=t,{useCache:o}=GD({cacheProvidedAtInception:r}),{useCssAndCx:i}=UD({useCache:o});return{tss:sf({useContext:e,useCache:o,useCssAndCx:i,usePlugin:n??(({classes:l,cx:u,css:f})=>({classes:l,cx:u,css:f})),name:void 0,doesUseNestedSelectors:!1})}}let XD=0;const Ri=[];function sf(t){const{useContext:e,useCache:n,useCssAndCx:r,usePlugin:o,name:i,doesUseNestedSelectors:s}=t;return{withParams:()=>sf({...t}),withName:a=>sf({...t,name:typeof a!="object"?a:Object.keys(a)[0]}),withNestedSelectors:()=>sf({...t,doesUseNestedSelectors:!0}),create:a=>{const l=`x${XD++}`;if(i!==void 0)for(;;){const f=Ri.find(p=>p.name===i);if(f===void 0)break;Ri.splice(Ri.indexOf(f),1)}const u=typeof a=="function"?a:()=>a;return function(p){var m,g,y;const{classesOverrides:b,...S}=p??{},C=e(),{css:_,cx:T}=r(),w=n(),E=()=>{const D={},L=u({...p,...C,...s?{classes:typeof Proxy>"u"?{}:new Proxy({},{get:(R,P)=>{if(typeof P=="symbol"&&As(!1),Hoe&&i===void 0)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join(`
323
- `));e:{if(i===void 0)break e;let z=Ri.find(F=>F.name===i&&F.idOfUseStyles===l);z===void 0&&(z={name:i,idOfUseStyles:l,nestedSelectorRuleNames:new Set},Ri.push(z)),z.nestedSelectorRuleNames.add(P)}e:{if(i===void 0||!(Ri.find(F=>F.name===i&&F.idOfUseStyles!==l&&F.nestedSelectorRuleNames.has(P))!==void 0))break e;throw new Error([`tss-react: There are in your codebase two different useStyles named "${i}" that`,`both use use the nested selector ${P}.
323
+ `));e:{if(i===void 0)break e;let B=Ri.find(z=>z.name===i&&z.idOfUseStyles===l);B===void 0&&(B={name:i,idOfUseStyles:l,nestedSelectorRuleNames:new Set},Ri.push(B)),B.nestedSelectorRuleNames.add(P)}e:{if(i===void 0||!(Ri.find(z=>z.name===i&&z.idOfUseStyles!==l&&z.nestedSelectorRuleNames.has(P))!==void 0))break e;throw new Error([`tss-react: There are in your codebase two different useStyles named "${i}" that`,`both use use the nested selector ${P}.
324
324
  `,`This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope.
325
325
  `,`Solution: Ensure each useStyles using nested selectors has a unique name.
326
- `,'Use: tss.withName("UniqueName").withNestedSelectors<...>()...'].join(" "))}return D[P]=`${w.key}-${i!==void 0?i:l}-${P}-ref`}})}:{}});let M=qD(Zi(L).map(R=>{const P=L[R];return P.label||(P.label=`${i!==void 0?`${i}-`:""}${R}`),[R,`${_(P)}${t1(R,R in D)?` ${D[R]}`:""}`]}));return Zi(D).forEach(R=>{R in M||(M[R]=D[R])}),M=r1(M,b,T),M},O=Woe({cache:w,cssObjectByRuleNameOrGetCssObjectByRuleName:a,classesOverridesRef:Xi(b),paramsAndPluginParamsRef:Xi(S),idOfUseStyles:l,context:C,getClasses:E}),N=o({classes:O,css:_,cx:T,idOfUseStyles:l,name:i,...C,...S});return{classes:(m=N.classes)!==null&&m!==void 0?m:O,css:(g=N.css)!==null&&g!==void 0?g:_,cx:(y=N.cx)!==null&&y!==void 0?y:T,...C}}}}}const Od=new WeakMap;function Woe(t){const{cache:e,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:r,paramsAndPluginParamsRef:o,idOfUseStyles:i,context:s,getClasses:a}=t;e:{const u=Od.get(e);if(u===void 0)break e;const f=u.get(n);if(f===void 0)break e;const p=f.get(r);if(p===void 0)break e;const m=p.get(o);if(m===void 0)break e;const g=m.find(({context:y})=>{if(y===s)return!0;if(Zi(y).length!==Zi(s).length)return!1;for(const b in y)if(Xi(y[b])!==Xi(s[b]))return!1;return!0});if(g===void 0)break e;if((g==null?void 0:g.idOfUseStyles)!==i){m.splice(m.indexOf(g),1);break e}return g.result}const l=a();{Od.has(e)||Od.set(e,new WeakMap);const u=Od.get(e);As(u!==void 0),u.has(n)||u.set(n,new Map);const f=u.get(n);As(f!==void 0),f.has(r)||(f.size>200&&f.clear(),f.set(r,new Map));const p=f.get(r);if(As(p!==void 0),!p.has(o)){e:{const g=typeof o=="string"?257:5;if(p.size<g)break e;p.clear()}p.set(o,[])}let m=p.get(o);As(m!==void 0),m.length>5&&(m=[]),m.push({idOfUseStyles:i,context:s,result:l})}return l}function qoe(t){return{...YD(t),...zoe(t)}}const{tss:Uoe}=ZD({useContext:()=>({})});Uoe.create({});const{makeStyles:Yt,withStyles:Hpe}=qoe({useTheme:es}),{tss:Koe}=ZD({useContext:function(){return{theme:es()}},usePlugin:KD});Koe.create({});var Mg,Ok;function QD(){if(Ok)return Mg;Ok=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=n(e[r],r,e);return i}return Mg=t,Mg}var Og,Rk;function Yoe(){if(Rk)return Og;Rk=1;function t(){this.__data__=[],this.size=0}return Og=t,Og}var Rg,Ak;function eP(){if(Ak)return Rg;Ak=1;function t(e,n){return e===n||e!==e&&n!==n}return Rg=t,Rg}var Ag,Ik;function lh(){if(Ik)return Ag;Ik=1;var t=eP();function e(n,r){for(var o=n.length;o--;)if(t(n[o][0],r))return o;return-1}return Ag=e,Ag}var Ig,Dk;function Goe(){if(Dk)return Ig;Dk=1;var t=lh(),e=Array.prototype,n=e.splice;function r(o){var i=this.__data__,s=t(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():n.call(i,s,1),--this.size,!0}return Ig=r,Ig}var Dg,Pk;function Joe(){if(Pk)return Dg;Pk=1;var t=lh();function e(n){var r=this.__data__,o=t(r,n);return o<0?void 0:r[o][1]}return Dg=e,Dg}var Pg,Nk;function Zoe(){if(Nk)return Pg;Nk=1;var t=lh();function e(n){return t(this.__data__,n)>-1}return Pg=e,Pg}var Ng,Lk;function Xoe(){if(Lk)return Ng;Lk=1;var t=lh();function e(n,r){var o=this.__data__,i=t(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return Ng=e,Ng}var Lg,jk;function ch(){if(jk)return Lg;jk=1;var t=Yoe(),e=Goe(),n=Joe(),r=Zoe(),o=Xoe();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Lg=i,Lg}var jg,$k;function Qoe(){if($k)return jg;$k=1;var t=ch();function e(){this.__data__=new t,this.size=0}return jg=e,jg}var $g,Fk;function eie(){if(Fk)return $g;Fk=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return $g=t,$g}var Fg,Bk;function tie(){if(Bk)return Fg;Bk=1;function t(e){return this.__data__.get(e)}return Fg=t,Fg}var Bg,zk;function nie(){if(zk)return Bg;zk=1;function t(e){return this.__data__.has(e)}return Bg=t,Bg}var zg,Vk;function tP(){if(Vk)return zg;Vk=1;var t=Gs(),e=hi(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function s(a){if(!e(a))return!1;var l=t(a);return l==r||l==o||l==n||l==i}return zg=s,zg}var Vg,Hk;function rie(){if(Hk)return Vg;Hk=1;var t=fo(),e=t["__core-js_shared__"];return Vg=e,Vg}var Hg,Wk;function oie(){if(Wk)return Hg;Wk=1;var t=rie(),e=function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!e&&e in r}return Hg=n,Hg}var Wg,qk;function nP(){if(qk)return Wg;qk=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Wg=n,Wg}var qg,Uk;function iie(){if(Uk)return qg;Uk=1;var t=tP(),e=oie(),n=hi(),r=nP(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,l=s.toString,u=a.hasOwnProperty,f=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(m){if(!n(m)||e(m))return!1;var g=t(m)?f:i;return g.test(r(m))}return qg=p,qg}var Ug,Kk;function sie(){if(Kk)return Ug;Kk=1;function t(e,n){return e==null?void 0:e[n]}return Ug=t,Ug}var Kg,Yk;function Xs(){if(Yk)return Kg;Yk=1;var t=iie(),e=sie();function n(r,o){var i=e(r,o);return t(i)?i:void 0}return Kg=n,Kg}var Yg,Gk;function o1(){if(Gk)return Yg;Gk=1;var t=Xs(),e=fo(),n=t(e,"Map");return Yg=n,Yg}var Gg,Jk;function uh(){if(Jk)return Gg;Jk=1;var t=Xs(),e=t(Object,"create");return Gg=e,Gg}var Jg,Zk;function aie(){if(Zk)return Jg;Zk=1;var t=uh();function e(){this.__data__=t?t(null):{},this.size=0}return Jg=e,Jg}var Zg,Xk;function lie(){if(Xk)return Zg;Xk=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Zg=t,Zg}var Xg,Qk;function cie(){if(Qk)return Xg;Qk=1;var t=uh(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var s=this.__data__;if(t){var a=s[i];return a===e?void 0:a}return r.call(s,i)?s[i]:void 0}return Xg=o,Xg}var Qg,eE;function uie(){if(eE)return Qg;eE=1;var t=uh(),e=Object.prototype,n=e.hasOwnProperty;function r(o){var i=this.__data__;return t?i[o]!==void 0:n.call(i,o)}return Qg=r,Qg}var ey,tE;function die(){if(tE)return ey;tE=1;var t=uh(),e="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=t&&o===void 0?e:o,this}return ey=n,ey}var ty,nE;function fie(){if(nE)return ty;nE=1;var t=aie(),e=lie(),n=cie(),r=uie(),o=die();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,ty=i,ty}var ny,rE;function pie(){if(rE)return ny;rE=1;var t=fie(),e=ch(),n=o1();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return ny=r,ny}var ry,oE;function hie(){if(oE)return ry;oE=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return ry=t,ry}var oy,iE;function dh(){if(iE)return oy;iE=1;var t=hie();function e(n,r){var o=n.__data__;return t(r)?o[typeof r=="string"?"string":"hash"]:o.map}return oy=e,oy}var iy,sE;function mie(){if(sE)return iy;sE=1;var t=dh();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return iy=e,iy}var sy,aE;function gie(){if(aE)return sy;aE=1;var t=dh();function e(n){return t(this,n).get(n)}return sy=e,sy}var ay,lE;function yie(){if(lE)return ay;lE=1;var t=dh();function e(n){return t(this,n).has(n)}return ay=e,ay}var ly,cE;function bie(){if(cE)return ly;cE=1;var t=dh();function e(n,r){var o=t(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return ly=e,ly}var cy,uE;function rP(){if(uE)return cy;uE=1;var t=pie(),e=mie(),n=gie(),r=yie(),o=bie();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,cy=i,cy}var uy,dE;function vie(){if(dE)return uy;dE=1;var t=ch(),e=o1(),n=rP(),r=200;function o(i,s){var a=this.__data__;if(a instanceof t){var l=a.__data__;if(!e||l.length<r-1)return l.push([i,s]),this.size=++a.size,this;a=this.__data__=new n(l)}return a.set(i,s),this.size=a.size,this}return uy=o,uy}var dy,fE;function xie(){if(fE)return dy;fE=1;var t=ch(),e=Qoe(),n=eie(),r=tie(),o=nie(),i=vie();function s(a){var l=this.__data__=new t(a);this.size=l.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=i,dy=s,dy}var fy,pE;function Sie(){if(pE)return fy;pE=1;function t(e,n){for(var r=-1,o=e==null?0:e.length;++r<o&&n(e[r],r,e)!==!1;);return e}return fy=t,fy}var py,hE;function oP(){if(hE)return py;hE=1;var t=Xs(),e=function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}}();return py=e,py}var hy,mE;function iP(){if(mE)return hy;mE=1;var t=oP();function e(n,r,o){r=="__proto__"&&t?t(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return hy=e,hy}var my,gE;function sP(){if(gE)return my;gE=1;var t=iP(),e=eP(),n=Object.prototype,r=n.hasOwnProperty;function o(i,s,a){var l=i[s];(!(r.call(i,s)&&e(l,a))||a===void 0&&!(s in i))&&t(i,s,a)}return my=o,my}var gy,yE;function yu(){if(yE)return gy;yE=1;var t=sP(),e=iP();function n(r,o,i,s){var a=!i;i||(i={});for(var l=-1,u=o.length;++l<u;){var f=o[l],p=s?s(i[f],r[f],f,i,r):void 0;p===void 0&&(p=r[f]),a?e(i,f,p):t(i,f,p)}return i}return gy=n,gy}var yy,bE;function Cie(){if(bE)return yy;bE=1;function t(e,n){for(var r=-1,o=Array(e);++r<e;)o[r]=n(r);return o}return yy=t,yy}var by,vE;function wie(){if(vE)return by;vE=1;var t=Gs(),e=ts(),n="[object Arguments]";function r(o){return e(o)&&t(o)==n}return by=r,by}var vy,xE;function aP(){if(xE)return vy;xE=1;var t=wie(),e=ts(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(s){return e(s)&&r.call(s,"callee")&&!o.call(s,"callee")};return vy=i,vy}var xy,SE;function Qs(){if(SE)return xy;SE=1;var t=Array.isArray;return xy=t,xy}var rc={exports:{}},Sy,CE;function Tie(){if(CE)return Sy;CE=1;function t(){return!1}return Sy=t,Sy}rc.exports;var wE;function lP(){return wE||(wE=1,function(t,e){var n=fo(),r=Tie(),o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===o,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||r;t.exports=u}(rc,rc.exports)),rc.exports}var Cy,TE;function _ie(){if(TE)return Cy;TE=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o??t,!!o&&(i=="number"||i!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<o}return Cy=n,Cy}var wy,_E;function cP(){if(_E)return wy;_E=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return wy=e,wy}var Ty,kE;function kie(){if(kE)return Ty;kE=1;var t=Gs(),e=cP(),n=ts(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",u="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",S="[object ArrayBuffer]",C="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",N="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",M="[object Uint32Array]",R={};R[_]=R[T]=R[w]=R[E]=R[O]=R[N]=R[D]=R[L]=R[M]=!0,R[r]=R[o]=R[S]=R[i]=R[C]=R[s]=R[a]=R[l]=R[u]=R[f]=R[p]=R[m]=R[g]=R[y]=R[b]=!1;function P(z){return n(z)&&e(z.length)&&!!R[t(z)]}return Ty=P,Ty}var _y,EE;function fh(){if(EE)return _y;EE=1;function t(e){return function(n){return e(n)}}return _y=t,_y}var oc={exports:{}};oc.exports;var ME;function ph(){return ME||(ME=1,function(t,e){var n=RA(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,s=i&&n.process,a=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();t.exports=a}(oc,oc.exports)),oc.exports}var ky,OE;function Eie(){if(OE)return ky;OE=1;var t=kie(),e=fh(),n=ph(),r=n&&n.isTypedArray,o=r?e(r):t;return ky=o,ky}var Ey,RE;function uP(){if(RE)return Ey;RE=1;var t=Cie(),e=aP(),n=Qs(),r=lP(),o=_ie(),i=Eie(),s=Object.prototype,a=s.hasOwnProperty;function l(u,f){var p=n(u),m=!p&&e(u),g=!p&&!m&&r(u),y=!p&&!m&&!g&&i(u),b=p||m||g||y,S=b?t(u.length,String):[],C=S.length;for(var _ in u)(f||a.call(u,_))&&!(b&&(_=="length"||g&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,C)))&&S.push(_);return S}return Ey=l,Ey}var My,AE;function i1(){if(AE)return My;AE=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||t;return n===o}return My=e,My}var Oy,IE;function dP(){if(IE)return Oy;IE=1;function t(e,n){return function(r){return e(n(r))}}return Oy=t,Oy}var Ry,DE;function Mie(){if(DE)return Ry;DE=1;var t=dP(),e=t(Object.keys,Object);return Ry=e,Ry}var Ay,PE;function Oie(){if(PE)return Ay;PE=1;var t=i1(),e=Mie(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!t(i))return e(i);var s=[];for(var a in Object(i))r.call(i,a)&&a!="constructor"&&s.push(a);return s}return Ay=o,Ay}var Iy,NE;function fP(){if(NE)return Iy;NE=1;var t=tP(),e=cP();function n(r){return r!=null&&e(r.length)&&!t(r)}return Iy=n,Iy}var Dy,LE;function s1(){if(LE)return Dy;LE=1;var t=uP(),e=Oie(),n=fP();function r(o){return n(o)?t(o):e(o)}return Dy=r,Dy}var Py,jE;function Rie(){if(jE)return Py;jE=1;var t=yu(),e=s1();function n(r,o){return r&&t(o,e(o),r)}return Py=n,Py}var Ny,$E;function Aie(){if($E)return Ny;$E=1;function t(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return Ny=t,Ny}var Ly,FE;function Iie(){if(FE)return Ly;FE=1;var t=hi(),e=i1(),n=Aie(),r=Object.prototype,o=r.hasOwnProperty;function i(s){if(!t(s))return n(s);var a=e(s),l=[];for(var u in s)u=="constructor"&&(a||!o.call(s,u))||l.push(u);return l}return Ly=i,Ly}var jy,BE;function a1(){if(BE)return jy;BE=1;var t=uP(),e=Iie(),n=fP();function r(o){return n(o)?t(o,!0):e(o)}return jy=r,jy}var $y,zE;function Die(){if(zE)return $y;zE=1;var t=yu(),e=a1();function n(r,o){return r&&t(o,e(o),r)}return $y=n,$y}var ic={exports:{}};ic.exports;var VE;function Pie(){return VE||(VE=1,function(t,e){var n=fo(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,s=i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var p=u.length,m=a?a(p):new u.constructor(p);return u.copy(m),m}t.exports=l}(ic,ic.exports)),ic.exports}var Fy,HE;function Nie(){if(HE)return Fy;HE=1;function t(e,n){var r=-1,o=e.length;for(n||(n=Array(o));++r<o;)n[r]=e[r];return n}return Fy=t,Fy}var By,WE;function Lie(){if(WE)return By;WE=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=0,s=[];++r<o;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}return By=t,By}var zy,qE;function pP(){if(qE)return zy;qE=1;function t(){return[]}return zy=t,zy}var Vy,UE;function l1(){if(UE)return Vy;UE=1;var t=Lie(),e=pP(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(s){return s==null?[]:(s=Object(s),t(o(s),function(a){return r.call(s,a)}))}:e;return Vy=i,Vy}var Hy,KE;function jie(){if(KE)return Hy;KE=1;var t=yu(),e=l1();function n(r,o){return t(r,e(r),o)}return Hy=n,Hy}var Wy,YE;function c1(){if(YE)return Wy;YE=1;function t(e,n){for(var r=-1,o=n.length,i=e.length;++r<o;)e[i+r]=n[r];return e}return Wy=t,Wy}var qy,GE;function u1(){if(GE)return qy;GE=1;var t=dP(),e=t(Object.getPrototypeOf,Object);return qy=e,qy}var Uy,JE;function hP(){if(JE)return Uy;JE=1;var t=c1(),e=u1(),n=l1(),r=pP(),o=Object.getOwnPropertySymbols,i=o?function(s){for(var a=[];s;)t(a,n(s)),s=e(s);return a}:r;return Uy=i,Uy}var Ky,ZE;function $ie(){if(ZE)return Ky;ZE=1;var t=yu(),e=hP();function n(r,o){return t(r,e(r),o)}return Ky=n,Ky}var Yy,XE;function mP(){if(XE)return Yy;XE=1;var t=c1(),e=Qs();function n(r,o,i){var s=o(r);return e(r)?s:t(s,i(r))}return Yy=n,Yy}var Gy,QE;function Fie(){if(QE)return Gy;QE=1;var t=mP(),e=l1(),n=s1();function r(o){return t(o,n,e)}return Gy=r,Gy}var Jy,eM;function gP(){if(eM)return Jy;eM=1;var t=mP(),e=hP(),n=a1();function r(o){return t(o,n,e)}return Jy=r,Jy}var Zy,tM;function Bie(){if(tM)return Zy;tM=1;var t=Xs(),e=fo(),n=t(e,"DataView");return Zy=n,Zy}var Xy,nM;function zie(){if(nM)return Xy;nM=1;var t=Xs(),e=fo(),n=t(e,"Promise");return Xy=n,Xy}var Qy,rM;function Vie(){if(rM)return Qy;rM=1;var t=Xs(),e=fo(),n=t(e,"Set");return Qy=n,Qy}var eb,oM;function Hie(){if(oM)return eb;oM=1;var t=Xs(),e=fo(),n=t(e,"WeakMap");return eb=n,eb}var tb,iM;function d1(){if(iM)return tb;iM=1;var t=Bie(),e=o1(),n=zie(),r=Vie(),o=Hie(),i=Gs(),s=nP(),a="[object Map]",l="[object Object]",u="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",g=s(t),y=s(e),b=s(n),S=s(r),C=s(o),_=i;return(t&&_(new t(new ArrayBuffer(1)))!=m||e&&_(new e)!=a||n&&_(n.resolve())!=u||r&&_(new r)!=f||o&&_(new o)!=p)&&(_=function(T){var w=i(T),E=w==l?T.constructor:void 0,O=E?s(E):"";if(O)switch(O){case g:return m;case y:return a;case b:return u;case S:return f;case C:return p}return w}),tb=_,tb}var nb,sM;function Wie(){if(sM)return nb;sM=1;var t=Object.prototype,e=t.hasOwnProperty;function n(r){var o=r.length,i=new r.constructor(o);return o&&typeof r[0]=="string"&&e.call(r,"index")&&(i.index=r.index,i.input=r.input),i}return nb=n,nb}var rb,aM;function qie(){if(aM)return rb;aM=1;var t=fo(),e=t.Uint8Array;return rb=e,rb}var ob,lM;function f1(){if(lM)return ob;lM=1;var t=qie();function e(n){var r=new n.constructor(n.byteLength);return new t(r).set(new t(n)),r}return ob=e,ob}var ib,cM;function Uie(){if(cM)return ib;cM=1;var t=f1();function e(n,r){var o=r?t(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.byteLength)}return ib=e,ib}var sb,uM;function Kie(){if(uM)return sb;uM=1;var t=/\w*$/;function e(n){var r=new n.constructor(n.source,t.exec(n));return r.lastIndex=n.lastIndex,r}return sb=e,sb}var ab,dM;function Yie(){if(dM)return ab;dM=1;var t=ou(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;function r(o){return n?Object(n.call(o)):{}}return ab=r,ab}var lb,fM;function Gie(){if(fM)return lb;fM=1;var t=f1();function e(n,r){var o=r?t(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.length)}return lb=e,lb}var cb,pM;function Jie(){if(pM)return cb;pM=1;var t=f1(),e=Uie(),n=Kie(),r=Yie(),o=Gie(),i="[object Boolean]",s="[object Date]",a="[object Map]",l="[object Number]",u="[object RegExp]",f="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",O="[object Uint16Array]",N="[object Uint32Array]";function D(L,M,R){var P=L.constructor;switch(M){case g:return t(L);case i:case s:return new P(+L);case y:return e(L,R);case b:case S:case C:case _:case T:case w:case E:case O:case N:return o(L,R);case a:return new P;case l:case p:return new P(L);case u:return n(L);case f:return new P;case m:return r(L)}}return cb=D,cb}var ub,hM;function Zie(){if(hM)return ub;hM=1;var t=hi(),e=Object.create,n=function(){function r(){}return function(o){if(!t(o))return{};if(e)return e(o);r.prototype=o;var i=new r;return r.prototype=void 0,i}}();return ub=n,ub}var db,mM;function Xie(){if(mM)return db;mM=1;var t=Zie(),e=u1(),n=i1();function r(o){return typeof o.constructor=="function"&&!n(o)?t(e(o)):{}}return db=r,db}var fb,gM;function Qie(){if(gM)return fb;gM=1;var t=d1(),e=ts(),n="[object Map]";function r(o){return e(o)&&t(o)==n}return fb=r,fb}var pb,yM;function ese(){if(yM)return pb;yM=1;var t=Qie(),e=fh(),n=ph(),r=n&&n.isMap,o=r?e(r):t;return pb=o,pb}var hb,bM;function tse(){if(bM)return hb;bM=1;var t=d1(),e=ts(),n="[object Set]";function r(o){return e(o)&&t(o)==n}return hb=r,hb}var mb,vM;function nse(){if(vM)return mb;vM=1;var t=tse(),e=fh(),n=ph(),r=n&&n.isSet,o=r?e(r):t;return mb=o,mb}var gb,xM;function rse(){if(xM)return gb;xM=1;var t=xie(),e=Sie(),n=sP(),r=Rie(),o=Die(),i=Pie(),s=Nie(),a=jie(),l=$ie(),u=Fie(),f=gP(),p=d1(),m=Wie(),g=Jie(),y=Xie(),b=Qs(),S=lP(),C=ese(),_=hi(),T=nse(),w=s1(),E=a1(),O=1,N=2,D=4,L="[object Arguments]",M="[object Array]",R="[object Boolean]",P="[object Date]",z="[object Error]",F="[object Function]",$="[object GeneratorFunction]",B="[object Map]",q="[object Number]",K="[object Object]",G="[object RegExp]",Y="[object Set]",Z="[object String]",ge="[object Symbol]",he="[object WeakMap]",oe="[object ArrayBuffer]",Q="[object DataView]",fe="[object Float32Array]",ce="[object Float64Array]",ae="[object Int8Array]",W="[object Int16Array]",te="[object Int32Array]",ue="[object Uint8Array]",ee="[object Uint8ClampedArray]",se="[object Uint16Array]",de="[object Uint32Array]",ye={};ye[L]=ye[M]=ye[oe]=ye[Q]=ye[R]=ye[P]=ye[fe]=ye[ce]=ye[ae]=ye[W]=ye[te]=ye[B]=ye[q]=ye[K]=ye[G]=ye[Y]=ye[Z]=ye[ge]=ye[ue]=ye[ee]=ye[se]=ye[de]=!0,ye[z]=ye[F]=ye[he]=!1;function Te(Se,Me,Ne,Ve,Ge,Ie){var st,xt=Me&O,Gt=Me&N,bn=Me&D;if(Ne&&(st=Ge?Ne(Se,Ve,Ge,Ie):Ne(Se)),st!==void 0)return st;if(!_(Se))return Se;var nn=b(Se);if(nn){if(st=m(Se),!xt)return s(Se,st)}else{var Dt=p(Se),wn=Dt==F||Dt==$;if(S(Se))return i(Se,xt);if(Dt==K||Dt==L||wn&&!Ge){if(st=Gt||wn?{}:y(Se),!xt)return Gt?l(Se,o(st,Se)):a(Se,r(st,Se))}else{if(!ye[Dt])return Ge?Se:{};st=g(Se,Dt,xt)}}Ie||(Ie=new t);var Fn=Ie.get(Se);if(Fn)return Fn;Ie.set(Se,st),T(Se)?Se.forEach(function(Vt){st.add(Te(Vt,Me,Ne,Vt,Se,Ie))}):C(Se)&&Se.forEach(function(Vt,me){st.set(me,Te(Vt,Me,Ne,me,Se,Ie))});var dt=bn?Gt?f:u:Gt?E:w,In=nn?void 0:dt(Se);return e(In||Se,function(Vt,me){In&&(me=Vt,Vt=Se[me]),n(st,me,Te(Vt,Me,Ne,me,Se,Ie))}),st}return gb=Te,gb}var yb,SM;function ose(){if(SM)return yb;SM=1;var t=Qs(),e=Ap(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,s){if(t(i))return!1;var a=typeof i;return a=="number"||a=="symbol"||a=="boolean"||i==null||e(i)?!0:r.test(i)||!n.test(i)||s!=null&&i in Object(s)}return yb=o,yb}var bb,CM;function ise(){if(CM)return bb;CM=1;var t=rP(),e="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(e);var i=function(){var s=arguments,a=o?o.apply(this,s):s[0],l=i.cache;if(l.has(a))return l.get(a);var u=r.apply(this,s);return i.cache=l.set(a,u)||l,u};return i.cache=new(n.Cache||t),i}return n.Cache=t,bb=n,bb}var vb,wM;function sse(){if(wM)return vb;wM=1;var t=ise(),e=500;function n(r){var o=t(r,function(s){return i.size===e&&i.clear(),s}),i=o.cache;return o}return vb=n,vb}var xb,TM;function ase(){if(TM)return xb;TM=1;var t=sse(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(e,function(s,a,l,u){i.push(l?u.replace(n,"$1"):a||s)}),i});return xb=r,xb}var Sb,_M;function yP(){if(_M)return Sb;_M=1;var t=ou(),e=QD(),n=Qs(),r=Ap(),o=1/0,i=t?t.prototype:void 0,s=i?i.toString:void 0;function a(l){if(typeof l=="string")return l;if(n(l))return e(l,a)+"";if(r(l))return s?s.call(l):"";var u=l+"";return u=="0"&&1/l==-o?"-0":u}return Sb=a,Sb}var Cb,kM;function bP(){if(kM)return Cb;kM=1;var t=yP();function e(n){return n==null?"":t(n)}return Cb=e,Cb}var wb,EM;function p1(){if(EM)return wb;EM=1;var t=Qs(),e=ose(),n=ase(),r=bP();function o(i,s){return t(i)?i:e(i,s)?[i]:n(r(i))}return wb=o,wb}var Tb,MM;function lse(){if(MM)return Tb;MM=1;function t(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return Tb=t,Tb}var _b,OM;function vP(){if(OM)return _b;OM=1;var t=Ap(),e=1/0;function n(r){if(typeof r=="string"||t(r))return r;var o=r+"";return o=="0"&&1/r==-e?"-0":o}return _b=n,_b}var kb,RM;function cse(){if(RM)return kb;RM=1;var t=p1(),e=vP();function n(r,o){o=t(o,r);for(var i=0,s=o.length;r!=null&&i<s;)r=r[e(o[i++])];return i&&i==s?r:void 0}return kb=n,kb}var Eb,AM;function xP(){if(AM)return Eb;AM=1;function t(e,n,r){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(i);++o<i;)s[o]=e[o+n];return s}return Eb=t,Eb}var Mb,IM;function use(){if(IM)return Mb;IM=1;var t=cse(),e=xP();function n(r,o){return o.length<2?r:t(r,e(o,0,-1))}return Mb=n,Mb}var Ob,DM;function dse(){if(DM)return Ob;DM=1;var t=p1(),e=lse(),n=use(),r=vP();function o(i,s){return s=t(s,i),i=n(i,s),i==null||delete i[r(e(s))]}return Ob=o,Ob}var Rb,PM;function fse(){if(PM)return Rb;PM=1;var t=Gs(),e=u1(),n=ts(),r="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,l=s.call(Object);function u(f){if(!n(f)||t(f)!=r)return!1;var p=e(f);if(p===null)return!0;var m=a.call(p,"constructor")&&p.constructor;return typeof m=="function"&&m instanceof m&&s.call(m)==l}return Rb=u,Rb}var Ab,NM;function pse(){if(NM)return Ab;NM=1;var t=fse();function e(n){return t(n)?void 0:n}return Ab=e,Ab}var Ib,LM;function hse(){if(LM)return Ib;LM=1;var t=ou(),e=aP(),n=Qs(),r=t?t.isConcatSpreadable:void 0;function o(i){return n(i)||e(i)||!!(r&&i&&i[r])}return Ib=o,Ib}var Db,jM;function mse(){if(jM)return Db;jM=1;var t=c1(),e=hse();function n(r,o,i,s,a){var l=-1,u=r.length;for(i||(i=e),a||(a=[]);++l<u;){var f=r[l];o>0&&i(f)?o>1?n(f,o-1,i,s,a):t(a,f):s||(a[a.length]=f)}return a}return Db=n,Db}var Pb,$M;function gse(){if($M)return Pb;$M=1;var t=mse();function e(n){var r=n==null?0:n.length;return r?t(n,1):[]}return Pb=e,Pb}var Nb,FM;function yse(){if(FM)return Nb;FM=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return Nb=t,Nb}var Lb,BM;function bse(){if(BM)return Lb;BM=1;var t=yse(),e=Math.max;function n(r,o,i){return o=e(o===void 0?r.length-1:o,0),function(){for(var s=arguments,a=-1,l=e(s.length-o,0),u=Array(l);++a<l;)u[a]=s[o+a];a=-1;for(var f=Array(o+1);++a<o;)f[a]=s[a];return f[o]=i(u),t(r,this,f)}}return Lb=n,Lb}var jb,zM;function vse(){if(zM)return jb;zM=1;function t(e){return function(){return e}}return jb=t,jb}var $b,VM;function xse(){if(VM)return $b;VM=1;function t(e){return e}return $b=t,$b}var Fb,HM;function Sse(){if(HM)return Fb;HM=1;var t=vse(),e=oP(),n=xse(),r=e?function(o,i){return e(o,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return Fb=r,Fb}var Bb,WM;function Cse(){if(WM)return Bb;WM=1;var t=800,e=16,n=Date.now;function r(o){var i=0,s=0;return function(){var a=n(),l=e-(a-s);if(s=a,l>0){if(++i>=t)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return Bb=r,Bb}var zb,qM;function wse(){if(qM)return zb;qM=1;var t=Sse(),e=Cse(),n=e(t);return zb=n,zb}var Vb,UM;function Tse(){if(UM)return Vb;UM=1;var t=gse(),e=bse(),n=wse();function r(o){return n(e(o,void 0,t),o+"")}return Vb=r,Vb}var Hb,KM;function _se(){if(KM)return Hb;KM=1;var t=QD(),e=rse(),n=dse(),r=p1(),o=yu(),i=pse(),s=Tse(),a=gP(),l=1,u=2,f=4,p=s(function(m,g){var y={};if(m==null)return y;var b=!1;g=t(g,function(C){return C=r(C,m),b||(b=C.length>1),C}),o(m,a(m),y),b&&(y=e(y,l|u|f,i));for(var S=g.length;S--;)n(y,g[S]);return y});return Hb=p,Hb}var kse=_se();const Ea=ir(kse),zf={TABLE_ELEMENT:1,MENU_BAR:2,NOTCHED_OUTLINE:2};function SP(t){const e=Object.keys(t.typography.h1).some(r=>r.includes("@media")),n=lo.keyframes`
326
+ `,'Use: tss.withName("UniqueName").withNestedSelectors<...>()...'].join(" "))}return D[P]=`${w.key}-${i!==void 0?i:l}-${P}-ref`}})}:{}});let M=qD(Zi(L).map(R=>{const P=L[R];return P.label||(P.label=`${i!==void 0?`${i}-`:""}${R}`),[R,`${_(P)}${t1(R,R in D)?` ${D[R]}`:""}`]}));return Zi(D).forEach(R=>{R in M||(M[R]=D[R])}),M=r1(M,b,T),M},O=Woe({cache:w,cssObjectByRuleNameOrGetCssObjectByRuleName:a,classesOverridesRef:Xi(b),paramsAndPluginParamsRef:Xi(S),idOfUseStyles:l,context:C,getClasses:E}),N=o({classes:O,css:_,cx:T,idOfUseStyles:l,name:i,...C,...S});return{classes:(m=N.classes)!==null&&m!==void 0?m:O,css:(g=N.css)!==null&&g!==void 0?g:_,cx:(y=N.cx)!==null&&y!==void 0?y:T,...C}}}}}const Od=new WeakMap;function Woe(t){const{cache:e,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:r,paramsAndPluginParamsRef:o,idOfUseStyles:i,context:s,getClasses:a}=t;e:{const u=Od.get(e);if(u===void 0)break e;const f=u.get(n);if(f===void 0)break e;const p=f.get(r);if(p===void 0)break e;const m=p.get(o);if(m===void 0)break e;const g=m.find(({context:y})=>{if(y===s)return!0;if(Zi(y).length!==Zi(s).length)return!1;for(const b in y)if(Xi(y[b])!==Xi(s[b]))return!1;return!0});if(g===void 0)break e;if((g==null?void 0:g.idOfUseStyles)!==i){m.splice(m.indexOf(g),1);break e}return g.result}const l=a();{Od.has(e)||Od.set(e,new WeakMap);const u=Od.get(e);As(u!==void 0),u.has(n)||u.set(n,new Map);const f=u.get(n);As(f!==void 0),f.has(r)||(f.size>200&&f.clear(),f.set(r,new Map));const p=f.get(r);if(As(p!==void 0),!p.has(o)){e:{const g=typeof o=="string"?257:5;if(p.size<g)break e;p.clear()}p.set(o,[])}let m=p.get(o);As(m!==void 0),m.length>5&&(m=[]),m.push({idOfUseStyles:i,context:s,result:l})}return l}function qoe(t){return{...YD(t),...zoe(t)}}const{tss:Uoe}=ZD({useContext:()=>({})});Uoe.create({});const{makeStyles:Yt,withStyles:Hpe}=qoe({useTheme:es}),{tss:Koe}=ZD({useContext:function(){return{theme:es()}},usePlugin:KD});Koe.create({});var Mg,Ok;function QD(){if(Ok)return Mg;Ok=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=n(e[r],r,e);return i}return Mg=t,Mg}var Og,Rk;function Yoe(){if(Rk)return Og;Rk=1;function t(){this.__data__=[],this.size=0}return Og=t,Og}var Rg,Ak;function eP(){if(Ak)return Rg;Ak=1;function t(e,n){return e===n||e!==e&&n!==n}return Rg=t,Rg}var Ag,Ik;function lh(){if(Ik)return Ag;Ik=1;var t=eP();function e(n,r){for(var o=n.length;o--;)if(t(n[o][0],r))return o;return-1}return Ag=e,Ag}var Ig,Dk;function Goe(){if(Dk)return Ig;Dk=1;var t=lh(),e=Array.prototype,n=e.splice;function r(o){var i=this.__data__,s=t(i,o);if(s<0)return!1;var a=i.length-1;return s==a?i.pop():n.call(i,s,1),--this.size,!0}return Ig=r,Ig}var Dg,Pk;function Joe(){if(Pk)return Dg;Pk=1;var t=lh();function e(n){var r=this.__data__,o=t(r,n);return o<0?void 0:r[o][1]}return Dg=e,Dg}var Pg,Nk;function Zoe(){if(Nk)return Pg;Nk=1;var t=lh();function e(n){return t(this.__data__,n)>-1}return Pg=e,Pg}var Ng,Lk;function Xoe(){if(Lk)return Ng;Lk=1;var t=lh();function e(n,r){var o=this.__data__,i=t(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return Ng=e,Ng}var Lg,jk;function ch(){if(jk)return Lg;jk=1;var t=Yoe(),e=Goe(),n=Joe(),r=Zoe(),o=Xoe();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Lg=i,Lg}var jg,$k;function Qoe(){if($k)return jg;$k=1;var t=ch();function e(){this.__data__=new t,this.size=0}return jg=e,jg}var $g,Fk;function eie(){if(Fk)return $g;Fk=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return $g=t,$g}var Fg,Bk;function tie(){if(Bk)return Fg;Bk=1;function t(e){return this.__data__.get(e)}return Fg=t,Fg}var Bg,zk;function nie(){if(zk)return Bg;zk=1;function t(e){return this.__data__.has(e)}return Bg=t,Bg}var zg,Vk;function tP(){if(Vk)return zg;Vk=1;var t=Gs(),e=hi(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function s(a){if(!e(a))return!1;var l=t(a);return l==r||l==o||l==n||l==i}return zg=s,zg}var Vg,Hk;function rie(){if(Hk)return Vg;Hk=1;var t=fo(),e=t["__core-js_shared__"];return Vg=e,Vg}var Hg,Wk;function oie(){if(Wk)return Hg;Wk=1;var t=rie(),e=function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!e&&e in r}return Hg=n,Hg}var Wg,qk;function nP(){if(qk)return Wg;qk=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return Wg=n,Wg}var qg,Uk;function iie(){if(Uk)return qg;Uk=1;var t=tP(),e=oie(),n=hi(),r=nP(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,l=s.toString,u=a.hasOwnProperty,f=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(m){if(!n(m)||e(m))return!1;var g=t(m)?f:i;return g.test(r(m))}return qg=p,qg}var Ug,Kk;function sie(){if(Kk)return Ug;Kk=1;function t(e,n){return e==null?void 0:e[n]}return Ug=t,Ug}var Kg,Yk;function Xs(){if(Yk)return Kg;Yk=1;var t=iie(),e=sie();function n(r,o){var i=e(r,o);return t(i)?i:void 0}return Kg=n,Kg}var Yg,Gk;function o1(){if(Gk)return Yg;Gk=1;var t=Xs(),e=fo(),n=t(e,"Map");return Yg=n,Yg}var Gg,Jk;function uh(){if(Jk)return Gg;Jk=1;var t=Xs(),e=t(Object,"create");return Gg=e,Gg}var Jg,Zk;function aie(){if(Zk)return Jg;Zk=1;var t=uh();function e(){this.__data__=t?t(null):{},this.size=0}return Jg=e,Jg}var Zg,Xk;function lie(){if(Xk)return Zg;Xk=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Zg=t,Zg}var Xg,Qk;function cie(){if(Qk)return Xg;Qk=1;var t=uh(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var s=this.__data__;if(t){var a=s[i];return a===e?void 0:a}return r.call(s,i)?s[i]:void 0}return Xg=o,Xg}var Qg,eE;function uie(){if(eE)return Qg;eE=1;var t=uh(),e=Object.prototype,n=e.hasOwnProperty;function r(o){var i=this.__data__;return t?i[o]!==void 0:n.call(i,o)}return Qg=r,Qg}var ey,tE;function die(){if(tE)return ey;tE=1;var t=uh(),e="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=t&&o===void 0?e:o,this}return ey=n,ey}var ty,nE;function fie(){if(nE)return ty;nE=1;var t=aie(),e=lie(),n=cie(),r=uie(),o=die();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,ty=i,ty}var ny,rE;function pie(){if(rE)return ny;rE=1;var t=fie(),e=ch(),n=o1();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return ny=r,ny}var ry,oE;function hie(){if(oE)return ry;oE=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return ry=t,ry}var oy,iE;function dh(){if(iE)return oy;iE=1;var t=hie();function e(n,r){var o=n.__data__;return t(r)?o[typeof r=="string"?"string":"hash"]:o.map}return oy=e,oy}var iy,sE;function mie(){if(sE)return iy;sE=1;var t=dh();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return iy=e,iy}var sy,aE;function gie(){if(aE)return sy;aE=1;var t=dh();function e(n){return t(this,n).get(n)}return sy=e,sy}var ay,lE;function yie(){if(lE)return ay;lE=1;var t=dh();function e(n){return t(this,n).has(n)}return ay=e,ay}var ly,cE;function bie(){if(cE)return ly;cE=1;var t=dh();function e(n,r){var o=t(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return ly=e,ly}var cy,uE;function rP(){if(uE)return cy;uE=1;var t=pie(),e=mie(),n=gie(),r=yie(),o=bie();function i(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var u=s[a];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,cy=i,cy}var uy,dE;function vie(){if(dE)return uy;dE=1;var t=ch(),e=o1(),n=rP(),r=200;function o(i,s){var a=this.__data__;if(a instanceof t){var l=a.__data__;if(!e||l.length<r-1)return l.push([i,s]),this.size=++a.size,this;a=this.__data__=new n(l)}return a.set(i,s),this.size=a.size,this}return uy=o,uy}var dy,fE;function xie(){if(fE)return dy;fE=1;var t=ch(),e=Qoe(),n=eie(),r=tie(),o=nie(),i=vie();function s(a){var l=this.__data__=new t(a);this.size=l.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=o,s.prototype.set=i,dy=s,dy}var fy,pE;function Sie(){if(pE)return fy;pE=1;function t(e,n){for(var r=-1,o=e==null?0:e.length;++r<o&&n(e[r],r,e)!==!1;);return e}return fy=t,fy}var py,hE;function oP(){if(hE)return py;hE=1;var t=Xs(),e=function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}}();return py=e,py}var hy,mE;function iP(){if(mE)return hy;mE=1;var t=oP();function e(n,r,o){r=="__proto__"&&t?t(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return hy=e,hy}var my,gE;function sP(){if(gE)return my;gE=1;var t=iP(),e=eP(),n=Object.prototype,r=n.hasOwnProperty;function o(i,s,a){var l=i[s];(!(r.call(i,s)&&e(l,a))||a===void 0&&!(s in i))&&t(i,s,a)}return my=o,my}var gy,yE;function yu(){if(yE)return gy;yE=1;var t=sP(),e=iP();function n(r,o,i,s){var a=!i;i||(i={});for(var l=-1,u=o.length;++l<u;){var f=o[l],p=s?s(i[f],r[f],f,i,r):void 0;p===void 0&&(p=r[f]),a?e(i,f,p):t(i,f,p)}return i}return gy=n,gy}var yy,bE;function Cie(){if(bE)return yy;bE=1;function t(e,n){for(var r=-1,o=Array(e);++r<e;)o[r]=n(r);return o}return yy=t,yy}var by,vE;function wie(){if(vE)return by;vE=1;var t=Gs(),e=ts(),n="[object Arguments]";function r(o){return e(o)&&t(o)==n}return by=r,by}var vy,xE;function aP(){if(xE)return vy;xE=1;var t=wie(),e=ts(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(s){return e(s)&&r.call(s,"callee")&&!o.call(s,"callee")};return vy=i,vy}var xy,SE;function Qs(){if(SE)return xy;SE=1;var t=Array.isArray;return xy=t,xy}var rc={exports:{}},Sy,CE;function Tie(){if(CE)return Sy;CE=1;function t(){return!1}return Sy=t,Sy}rc.exports;var wE;function lP(){return wE||(wE=1,function(t,e){var n=fo(),r=Tie(),o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===o,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||r;t.exports=u}(rc,rc.exports)),rc.exports}var Cy,TE;function _ie(){if(TE)return Cy;TE=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o??t,!!o&&(i=="number"||i!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<o}return Cy=n,Cy}var wy,_E;function cP(){if(_E)return wy;_E=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return wy=e,wy}var Ty,kE;function kie(){if(kE)return Ty;kE=1;var t=Gs(),e=cP(),n=ts(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",u="[object Map]",f="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object WeakMap]",S="[object ArrayBuffer]",C="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",N="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",M="[object Uint32Array]",R={};R[_]=R[T]=R[w]=R[E]=R[O]=R[N]=R[D]=R[L]=R[M]=!0,R[r]=R[o]=R[S]=R[i]=R[C]=R[s]=R[a]=R[l]=R[u]=R[f]=R[p]=R[m]=R[g]=R[y]=R[b]=!1;function P(B){return n(B)&&e(B.length)&&!!R[t(B)]}return Ty=P,Ty}var _y,EE;function fh(){if(EE)return _y;EE=1;function t(e){return function(n){return e(n)}}return _y=t,_y}var oc={exports:{}};oc.exports;var ME;function ph(){return ME||(ME=1,function(t,e){var n=RA(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,s=i&&n.process,a=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();t.exports=a}(oc,oc.exports)),oc.exports}var ky,OE;function Eie(){if(OE)return ky;OE=1;var t=kie(),e=fh(),n=ph(),r=n&&n.isTypedArray,o=r?e(r):t;return ky=o,ky}var Ey,RE;function uP(){if(RE)return Ey;RE=1;var t=Cie(),e=aP(),n=Qs(),r=lP(),o=_ie(),i=Eie(),s=Object.prototype,a=s.hasOwnProperty;function l(u,f){var p=n(u),m=!p&&e(u),g=!p&&!m&&r(u),y=!p&&!m&&!g&&i(u),b=p||m||g||y,S=b?t(u.length,String):[],C=S.length;for(var _ in u)(f||a.call(u,_))&&!(b&&(_=="length"||g&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,C)))&&S.push(_);return S}return Ey=l,Ey}var My,AE;function i1(){if(AE)return My;AE=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||t;return n===o}return My=e,My}var Oy,IE;function dP(){if(IE)return Oy;IE=1;function t(e,n){return function(r){return e(n(r))}}return Oy=t,Oy}var Ry,DE;function Mie(){if(DE)return Ry;DE=1;var t=dP(),e=t(Object.keys,Object);return Ry=e,Ry}var Ay,PE;function Oie(){if(PE)return Ay;PE=1;var t=i1(),e=Mie(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!t(i))return e(i);var s=[];for(var a in Object(i))r.call(i,a)&&a!="constructor"&&s.push(a);return s}return Ay=o,Ay}var Iy,NE;function fP(){if(NE)return Iy;NE=1;var t=tP(),e=cP();function n(r){return r!=null&&e(r.length)&&!t(r)}return Iy=n,Iy}var Dy,LE;function s1(){if(LE)return Dy;LE=1;var t=uP(),e=Oie(),n=fP();function r(o){return n(o)?t(o):e(o)}return Dy=r,Dy}var Py,jE;function Rie(){if(jE)return Py;jE=1;var t=yu(),e=s1();function n(r,o){return r&&t(o,e(o),r)}return Py=n,Py}var Ny,$E;function Aie(){if($E)return Ny;$E=1;function t(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return Ny=t,Ny}var Ly,FE;function Iie(){if(FE)return Ly;FE=1;var t=hi(),e=i1(),n=Aie(),r=Object.prototype,o=r.hasOwnProperty;function i(s){if(!t(s))return n(s);var a=e(s),l=[];for(var u in s)u=="constructor"&&(a||!o.call(s,u))||l.push(u);return l}return Ly=i,Ly}var jy,BE;function a1(){if(BE)return jy;BE=1;var t=uP(),e=Iie(),n=fP();function r(o){return n(o)?t(o,!0):e(o)}return jy=r,jy}var $y,zE;function Die(){if(zE)return $y;zE=1;var t=yu(),e=a1();function n(r,o){return r&&t(o,e(o),r)}return $y=n,$y}var ic={exports:{}};ic.exports;var VE;function Pie(){return VE||(VE=1,function(t,e){var n=fo(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,s=i?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var p=u.length,m=a?a(p):new u.constructor(p);return u.copy(m),m}t.exports=l}(ic,ic.exports)),ic.exports}var Fy,HE;function Nie(){if(HE)return Fy;HE=1;function t(e,n){var r=-1,o=e.length;for(n||(n=Array(o));++r<o;)n[r]=e[r];return n}return Fy=t,Fy}var By,WE;function Lie(){if(WE)return By;WE=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=0,s=[];++r<o;){var a=e[r];n(a,r,e)&&(s[i++]=a)}return s}return By=t,By}var zy,qE;function pP(){if(qE)return zy;qE=1;function t(){return[]}return zy=t,zy}var Vy,UE;function l1(){if(UE)return Vy;UE=1;var t=Lie(),e=pP(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(s){return s==null?[]:(s=Object(s),t(o(s),function(a){return r.call(s,a)}))}:e;return Vy=i,Vy}var Hy,KE;function jie(){if(KE)return Hy;KE=1;var t=yu(),e=l1();function n(r,o){return t(r,e(r),o)}return Hy=n,Hy}var Wy,YE;function c1(){if(YE)return Wy;YE=1;function t(e,n){for(var r=-1,o=n.length,i=e.length;++r<o;)e[i+r]=n[r];return e}return Wy=t,Wy}var qy,GE;function u1(){if(GE)return qy;GE=1;var t=dP(),e=t(Object.getPrototypeOf,Object);return qy=e,qy}var Uy,JE;function hP(){if(JE)return Uy;JE=1;var t=c1(),e=u1(),n=l1(),r=pP(),o=Object.getOwnPropertySymbols,i=o?function(s){for(var a=[];s;)t(a,n(s)),s=e(s);return a}:r;return Uy=i,Uy}var Ky,ZE;function $ie(){if(ZE)return Ky;ZE=1;var t=yu(),e=hP();function n(r,o){return t(r,e(r),o)}return Ky=n,Ky}var Yy,XE;function mP(){if(XE)return Yy;XE=1;var t=c1(),e=Qs();function n(r,o,i){var s=o(r);return e(r)?s:t(s,i(r))}return Yy=n,Yy}var Gy,QE;function Fie(){if(QE)return Gy;QE=1;var t=mP(),e=l1(),n=s1();function r(o){return t(o,n,e)}return Gy=r,Gy}var Jy,eM;function gP(){if(eM)return Jy;eM=1;var t=mP(),e=hP(),n=a1();function r(o){return t(o,n,e)}return Jy=r,Jy}var Zy,tM;function Bie(){if(tM)return Zy;tM=1;var t=Xs(),e=fo(),n=t(e,"DataView");return Zy=n,Zy}var Xy,nM;function zie(){if(nM)return Xy;nM=1;var t=Xs(),e=fo(),n=t(e,"Promise");return Xy=n,Xy}var Qy,rM;function Vie(){if(rM)return Qy;rM=1;var t=Xs(),e=fo(),n=t(e,"Set");return Qy=n,Qy}var eb,oM;function Hie(){if(oM)return eb;oM=1;var t=Xs(),e=fo(),n=t(e,"WeakMap");return eb=n,eb}var tb,iM;function d1(){if(iM)return tb;iM=1;var t=Bie(),e=o1(),n=zie(),r=Vie(),o=Hie(),i=Gs(),s=nP(),a="[object Map]",l="[object Object]",u="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",g=s(t),y=s(e),b=s(n),S=s(r),C=s(o),_=i;return(t&&_(new t(new ArrayBuffer(1)))!=m||e&&_(new e)!=a||n&&_(n.resolve())!=u||r&&_(new r)!=f||o&&_(new o)!=p)&&(_=function(T){var w=i(T),E=w==l?T.constructor:void 0,O=E?s(E):"";if(O)switch(O){case g:return m;case y:return a;case b:return u;case S:return f;case C:return p}return w}),tb=_,tb}var nb,sM;function Wie(){if(sM)return nb;sM=1;var t=Object.prototype,e=t.hasOwnProperty;function n(r){var o=r.length,i=new r.constructor(o);return o&&typeof r[0]=="string"&&e.call(r,"index")&&(i.index=r.index,i.input=r.input),i}return nb=n,nb}var rb,aM;function qie(){if(aM)return rb;aM=1;var t=fo(),e=t.Uint8Array;return rb=e,rb}var ob,lM;function f1(){if(lM)return ob;lM=1;var t=qie();function e(n){var r=new n.constructor(n.byteLength);return new t(r).set(new t(n)),r}return ob=e,ob}var ib,cM;function Uie(){if(cM)return ib;cM=1;var t=f1();function e(n,r){var o=r?t(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.byteLength)}return ib=e,ib}var sb,uM;function Kie(){if(uM)return sb;uM=1;var t=/\w*$/;function e(n){var r=new n.constructor(n.source,t.exec(n));return r.lastIndex=n.lastIndex,r}return sb=e,sb}var ab,dM;function Yie(){if(dM)return ab;dM=1;var t=ou(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;function r(o){return n?Object(n.call(o)):{}}return ab=r,ab}var lb,fM;function Gie(){if(fM)return lb;fM=1;var t=f1();function e(n,r){var o=r?t(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.length)}return lb=e,lb}var cb,pM;function Jie(){if(pM)return cb;pM=1;var t=f1(),e=Uie(),n=Kie(),r=Yie(),o=Gie(),i="[object Boolean]",s="[object Date]",a="[object Map]",l="[object Number]",u="[object RegExp]",f="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",O="[object Uint16Array]",N="[object Uint32Array]";function D(L,M,R){var P=L.constructor;switch(M){case g:return t(L);case i:case s:return new P(+L);case y:return e(L,R);case b:case S:case C:case _:case T:case w:case E:case O:case N:return o(L,R);case a:return new P;case l:case p:return new P(L);case u:return n(L);case f:return new P;case m:return r(L)}}return cb=D,cb}var ub,hM;function Zie(){if(hM)return ub;hM=1;var t=hi(),e=Object.create,n=function(){function r(){}return function(o){if(!t(o))return{};if(e)return e(o);r.prototype=o;var i=new r;return r.prototype=void 0,i}}();return ub=n,ub}var db,mM;function Xie(){if(mM)return db;mM=1;var t=Zie(),e=u1(),n=i1();function r(o){return typeof o.constructor=="function"&&!n(o)?t(e(o)):{}}return db=r,db}var fb,gM;function Qie(){if(gM)return fb;gM=1;var t=d1(),e=ts(),n="[object Map]";function r(o){return e(o)&&t(o)==n}return fb=r,fb}var pb,yM;function ese(){if(yM)return pb;yM=1;var t=Qie(),e=fh(),n=ph(),r=n&&n.isMap,o=r?e(r):t;return pb=o,pb}var hb,bM;function tse(){if(bM)return hb;bM=1;var t=d1(),e=ts(),n="[object Set]";function r(o){return e(o)&&t(o)==n}return hb=r,hb}var mb,vM;function nse(){if(vM)return mb;vM=1;var t=tse(),e=fh(),n=ph(),r=n&&n.isSet,o=r?e(r):t;return mb=o,mb}var gb,xM;function rse(){if(xM)return gb;xM=1;var t=xie(),e=Sie(),n=sP(),r=Rie(),o=Die(),i=Pie(),s=Nie(),a=jie(),l=$ie(),u=Fie(),f=gP(),p=d1(),m=Wie(),g=Jie(),y=Xie(),b=Qs(),S=lP(),C=ese(),_=hi(),T=nse(),w=s1(),E=a1(),O=1,N=2,D=4,L="[object Arguments]",M="[object Array]",R="[object Boolean]",P="[object Date]",B="[object Error]",z="[object Function]",$="[object GeneratorFunction]",F="[object Map]",q="[object Number]",U="[object Object]",G="[object RegExp]",Y="[object Set]",Z="[object String]",fe="[object Symbol]",pe="[object WeakMap]",ge="[object ArrayBuffer]",re="[object DataView]",he="[object Float32Array]",le="[object Float64Array]",X="[object Int8Array]",W="[object Int16Array]",ee="[object Int32Array]",ce="[object Uint8Array]",te="[object Uint8ClampedArray]",se="[object Uint16Array]",ue="[object Uint32Array]",ye={};ye[L]=ye[M]=ye[ge]=ye[re]=ye[R]=ye[P]=ye[he]=ye[le]=ye[X]=ye[W]=ye[ee]=ye[F]=ye[q]=ye[U]=ye[G]=ye[Y]=ye[Z]=ye[fe]=ye[ce]=ye[te]=ye[se]=ye[ue]=!0,ye[B]=ye[z]=ye[pe]=!1;function Te(Se,Me,Ne,Ve,Ge,Ie){var st,xt=Me&O,Gt=Me&N,bn=Me&D;if(Ne&&(st=Ge?Ne(Se,Ve,Ge,Ie):Ne(Se)),st!==void 0)return st;if(!_(Se))return Se;var nn=b(Se);if(nn){if(st=m(Se),!xt)return s(Se,st)}else{var Dt=p(Se),wn=Dt==z||Dt==$;if(S(Se))return i(Se,xt);if(Dt==U||Dt==L||wn&&!Ge){if(st=Gt||wn?{}:y(Se),!xt)return Gt?l(Se,o(st,Se)):a(Se,r(st,Se))}else{if(!ye[Dt])return Ge?Se:{};st=g(Se,Dt,xt)}}Ie||(Ie=new t);var Fn=Ie.get(Se);if(Fn)return Fn;Ie.set(Se,st),T(Se)?Se.forEach(function(Vt){st.add(Te(Vt,Me,Ne,Vt,Se,Ie))}):C(Se)&&Se.forEach(function(Vt,me){st.set(me,Te(Vt,Me,Ne,me,Se,Ie))});var dt=bn?Gt?f:u:Gt?E:w,In=nn?void 0:dt(Se);return e(In||Se,function(Vt,me){In&&(me=Vt,Vt=Se[me]),n(st,me,Te(Vt,Me,Ne,me,Se,Ie))}),st}return gb=Te,gb}var yb,SM;function ose(){if(SM)return yb;SM=1;var t=Qs(),e=Ap(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,s){if(t(i))return!1;var a=typeof i;return a=="number"||a=="symbol"||a=="boolean"||i==null||e(i)?!0:r.test(i)||!n.test(i)||s!=null&&i in Object(s)}return yb=o,yb}var bb,CM;function ise(){if(CM)return bb;CM=1;var t=rP(),e="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(e);var i=function(){var s=arguments,a=o?o.apply(this,s):s[0],l=i.cache;if(l.has(a))return l.get(a);var u=r.apply(this,s);return i.cache=l.set(a,u)||l,u};return i.cache=new(n.Cache||t),i}return n.Cache=t,bb=n,bb}var vb,wM;function sse(){if(wM)return vb;wM=1;var t=ise(),e=500;function n(r){var o=t(r,function(s){return i.size===e&&i.clear(),s}),i=o.cache;return o}return vb=n,vb}var xb,TM;function ase(){if(TM)return xb;TM=1;var t=sse(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(e,function(s,a,l,u){i.push(l?u.replace(n,"$1"):a||s)}),i});return xb=r,xb}var Sb,_M;function yP(){if(_M)return Sb;_M=1;var t=ou(),e=QD(),n=Qs(),r=Ap(),o=1/0,i=t?t.prototype:void 0,s=i?i.toString:void 0;function a(l){if(typeof l=="string")return l;if(n(l))return e(l,a)+"";if(r(l))return s?s.call(l):"";var u=l+"";return u=="0"&&1/l==-o?"-0":u}return Sb=a,Sb}var Cb,kM;function bP(){if(kM)return Cb;kM=1;var t=yP();function e(n){return n==null?"":t(n)}return Cb=e,Cb}var wb,EM;function p1(){if(EM)return wb;EM=1;var t=Qs(),e=ose(),n=ase(),r=bP();function o(i,s){return t(i)?i:e(i,s)?[i]:n(r(i))}return wb=o,wb}var Tb,MM;function lse(){if(MM)return Tb;MM=1;function t(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return Tb=t,Tb}var _b,OM;function vP(){if(OM)return _b;OM=1;var t=Ap(),e=1/0;function n(r){if(typeof r=="string"||t(r))return r;var o=r+"";return o=="0"&&1/r==-e?"-0":o}return _b=n,_b}var kb,RM;function cse(){if(RM)return kb;RM=1;var t=p1(),e=vP();function n(r,o){o=t(o,r);for(var i=0,s=o.length;r!=null&&i<s;)r=r[e(o[i++])];return i&&i==s?r:void 0}return kb=n,kb}var Eb,AM;function xP(){if(AM)return Eb;AM=1;function t(e,n,r){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(i);++o<i;)s[o]=e[o+n];return s}return Eb=t,Eb}var Mb,IM;function use(){if(IM)return Mb;IM=1;var t=cse(),e=xP();function n(r,o){return o.length<2?r:t(r,e(o,0,-1))}return Mb=n,Mb}var Ob,DM;function dse(){if(DM)return Ob;DM=1;var t=p1(),e=lse(),n=use(),r=vP();function o(i,s){return s=t(s,i),i=n(i,s),i==null||delete i[r(e(s))]}return Ob=o,Ob}var Rb,PM;function fse(){if(PM)return Rb;PM=1;var t=Gs(),e=u1(),n=ts(),r="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,l=s.call(Object);function u(f){if(!n(f)||t(f)!=r)return!1;var p=e(f);if(p===null)return!0;var m=a.call(p,"constructor")&&p.constructor;return typeof m=="function"&&m instanceof m&&s.call(m)==l}return Rb=u,Rb}var Ab,NM;function pse(){if(NM)return Ab;NM=1;var t=fse();function e(n){return t(n)?void 0:n}return Ab=e,Ab}var Ib,LM;function hse(){if(LM)return Ib;LM=1;var t=ou(),e=aP(),n=Qs(),r=t?t.isConcatSpreadable:void 0;function o(i){return n(i)||e(i)||!!(r&&i&&i[r])}return Ib=o,Ib}var Db,jM;function mse(){if(jM)return Db;jM=1;var t=c1(),e=hse();function n(r,o,i,s,a){var l=-1,u=r.length;for(i||(i=e),a||(a=[]);++l<u;){var f=r[l];o>0&&i(f)?o>1?n(f,o-1,i,s,a):t(a,f):s||(a[a.length]=f)}return a}return Db=n,Db}var Pb,$M;function gse(){if($M)return Pb;$M=1;var t=mse();function e(n){var r=n==null?0:n.length;return r?t(n,1):[]}return Pb=e,Pb}var Nb,FM;function yse(){if(FM)return Nb;FM=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return Nb=t,Nb}var Lb,BM;function bse(){if(BM)return Lb;BM=1;var t=yse(),e=Math.max;function n(r,o,i){return o=e(o===void 0?r.length-1:o,0),function(){for(var s=arguments,a=-1,l=e(s.length-o,0),u=Array(l);++a<l;)u[a]=s[o+a];a=-1;for(var f=Array(o+1);++a<o;)f[a]=s[a];return f[o]=i(u),t(r,this,f)}}return Lb=n,Lb}var jb,zM;function vse(){if(zM)return jb;zM=1;function t(e){return function(){return e}}return jb=t,jb}var $b,VM;function xse(){if(VM)return $b;VM=1;function t(e){return e}return $b=t,$b}var Fb,HM;function Sse(){if(HM)return Fb;HM=1;var t=vse(),e=oP(),n=xse(),r=e?function(o,i){return e(o,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return Fb=r,Fb}var Bb,WM;function Cse(){if(WM)return Bb;WM=1;var t=800,e=16,n=Date.now;function r(o){var i=0,s=0;return function(){var a=n(),l=e-(a-s);if(s=a,l>0){if(++i>=t)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return Bb=r,Bb}var zb,qM;function wse(){if(qM)return zb;qM=1;var t=Sse(),e=Cse(),n=e(t);return zb=n,zb}var Vb,UM;function Tse(){if(UM)return Vb;UM=1;var t=gse(),e=bse(),n=wse();function r(o){return n(e(o,void 0,t),o+"")}return Vb=r,Vb}var Hb,KM;function _se(){if(KM)return Hb;KM=1;var t=QD(),e=rse(),n=dse(),r=p1(),o=yu(),i=pse(),s=Tse(),a=gP(),l=1,u=2,f=4,p=s(function(m,g){var y={};if(m==null)return y;var b=!1;g=t(g,function(C){return C=r(C,m),b||(b=C.length>1),C}),o(m,a(m),y),b&&(y=e(y,l|u|f,i));for(var S=g.length;S--;)n(y,g[S]);return y});return Hb=p,Hb}var kse=_se();const Ea=ir(kse),zf={TABLE_ELEMENT:1,MENU_BAR:2,NOTCHED_OUTLINE:2};function SP(t){const e=Object.keys(t.typography.h1).some(r=>r.includes("@media")),n=lo.keyframes`
327
327
  0%, 95% {
328
328
  opacity: 1;
329
329
  }
@@ -334,7 +334,7 @@ img.ProseMirror-separator {
334
334
  * encodeurl
335
335
  * Copyright(c) 2016 Douglas Christopher Wilson
336
336
  * MIT Licensed
337
- */var Wb,GM;function Ise(){if(GM)return Wb;GM=1,Wb=r;var t=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,e=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,n="$1�$2";function r(o){return String(o).replace(e,n).replace(t,encodeURI)}return Wb}var Dse=Ise();const Pse=ir(Dse);function TP(t){let e=t.trim();return e&&!/^(https?:\/\/|mailto:|tel:|sms:|\/|#)/.test(e)&&(e=`http://${e}`),Pse(e)}function Nse({editor:t,onCancel:e,onSave:n,labels:r,formatHref:o=TP}){var i,s,a,l,u,f;const p=t.isActive("link")?t.getAttributes("link").href:"",m=mu(t.state.selection.$from,ho("link",t.schema)),g=m?t.state.doc.textBetween(m.from,m.to):"",y=t.state.doc.textBetween(t.state.selection.$from.pos,t.state.selection.$to.pos),b=g||y,[S,C]=J.useState(b),[_,T]=J.useState(p),w=J.useRef(null),E=J.useRef(null),O=!p,N=(i=r==null?void 0:r.editLinkAddTitle)!==null&&i!==void 0?i:"Add link",D=(s=r==null?void 0:r.editLinkEditTitle)!==null&&s!==void 0?s:"Edit link",L=O?N:D;J.useEffect(()=>{var z,F;!O||!b?(z=w.current)===null||z===void 0||z.focus():(F=E.current)===null||F===void 0||F.focus()},[O,b]),wP("Escape",e);function M(){E.current&&T(o(E.current.value))}const[R,P]=J.useState(!1);return v.jsxs("form",{onSubmit:z=>{var F,$,B,q;z.preventDefault(),z.stopPropagation(),P(!0);const K=($=(F=w.current)===null||F===void 0?void 0:F.value)!==null&&$!==void 0?$:"",G=(q=(B=E.current)===null||B===void 0?void 0:B.value)!==null&&q!==void 0?q:"";n({text:K,link:G}),P(!1)},autoComplete:"off",children:[v.jsx(j.Typography,{variant:"h6",children:L}),v.jsx(j.TextField,{inputRef:w,value:S,disabled:R,onChange:z=>{C(z.target.value)},label:(a=r==null?void 0:r.editLinkTextInputLabel)!==null&&a!==void 0?a:"Text",margin:"normal",size:"small",fullWidth:!0,required:!0}),v.jsx(j.TextField,{inputRef:E,value:_,onChange:z=>{T(z.target.value)},disabled:R,label:(l=r==null?void 0:r.editLinkHrefInputLabel)!==null&&l!==void 0?l:"Link",margin:"dense",size:"small",type:"text",onBlur:M,onKeyDown:z=>{z.key==="Enter"&&M()},fullWidth:!0,required:!0}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:e,variant:"outlined",size:"small",children:(u=r==null?void 0:r.editLinkCancelButtonLabel)!==null&&u!==void 0?u:"Cancel"}),v.jsx(j.Button,{type:"submit",color:"primary",variant:"outlined",size:"small",disabled:R,children:(f=r==null?void 0:r.editLinkSaveButtonLabel)!==null&&f!==void 0?f:"Save"})]})]})}var qb,JM;function Lse(){if(JM)return qb;JM=1;var t=xP();function e(n,r,o){var i=n.length;return o=o===void 0?i:o,!r&&o>=i?n:t(n,r,o)}return qb=e,qb}var Ub,ZM;function h1(){if(ZM)return Ub;ZM=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",s="\\u200d",a=RegExp("["+s+t+o+i+"]");function l(u){return a.test(u)}return Ub=l,Ub}var Kb,XM;function jse(){if(XM)return Kb;XM=1;var t=Gs(),e=ts(),n="[object RegExp]";function r(o){return e(o)&&t(o)==n}return Kb=r,Kb}var Yb,QM;function $se(){if(QM)return Yb;QM=1;var t=jse(),e=fh(),n=ph(),r=n&&n.isRegExp,o=r?e(r):t;return Yb=o,Yb}var Gb,eO;function Fse(){if(eO)return Gb;eO=1;function t(e){return function(n){return n==null?void 0:n[e]}}return Gb=t,Gb}var Jb,tO;function Bse(){if(tO)return Jb;tO=1;var t=Fse(),e=t("length");return Jb=e,Jb}var Zb,nO;function zse(){if(nO)return Zb;nO=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",s="["+t+"]",a="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+a+"|"+l+")",f="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",y=u+"?",b="["+i+"]?",S="(?:"+g+"(?:"+[f,p,m].join("|")+")"+b+y+")*",C=b+y+S,_="(?:"+[f+a+"?",a,p,m,s].join("|")+")",T=RegExp(l+"(?="+l+")|"+_+C,"g");function w(E){for(var O=T.lastIndex=0;T.test(E);)++O;return O}return Zb=w,Zb}var Xb,rO;function Vse(){if(rO)return Xb;rO=1;var t=Bse(),e=h1(),n=zse();function r(o){return e(o)?n(o):t(o)}return Xb=r,Xb}var Qb,oO;function Hse(){if(oO)return Qb;oO=1;function t(e){return e.split("")}return Qb=t,Qb}var e0,iO;function Wse(){if(iO)return e0;iO=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",s="["+t+"]",a="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+a+"|"+l+")",f="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",y=u+"?",b="["+i+"]?",S="(?:"+g+"(?:"+[f,p,m].join("|")+")"+b+y+")*",C=b+y+S,_="(?:"+[f+a+"?",a,p,m,s].join("|")+")",T=RegExp(l+"(?="+l+")|"+_+C,"g");function w(E){return E.match(T)||[]}return e0=w,e0}var t0,sO;function qse(){if(sO)return t0;sO=1;var t=Hse(),e=h1(),n=Wse();function r(o){return e(o)?n(o):t(o)}return t0=r,t0}var n0,aO;function Use(){if(aO)return n0;aO=1;var t=AA(),e=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=t(o),o===e||o===-e){var i=o<0?-1:1;return i*n}return o===o?o:0}return n0=r,n0}var r0,lO;function Kse(){if(lO)return r0;lO=1;var t=Use();function e(n){var r=t(n),o=r%1;return r===r?o?r-o:r:0}return r0=e,r0}var o0,cO;function Yse(){if(cO)return o0;cO=1;var t=yP(),e=Lse(),n=h1(),r=hi(),o=$se(),i=Vse(),s=qse(),a=Kse(),l=bP(),u=30,f="...",p=/\w*$/;function m(g,y){var b=u,S=f;if(r(y)){var C="separator"in y?y.separator:C;b="length"in y?a(y.length):b,S="omission"in y?t(y.omission):S}g=l(g);var _=g.length;if(n(g)){var T=s(g);_=T.length}if(b>=_)return g;var w=b-i(S);if(w<1)return S;var E=T?e(T,0,w).join(""):g.slice(0,w);if(C===void 0)return E+S;if(T&&(w+=E.length-w),o(C)){if(g.slice(w).search(C)){var O,N=E;for(C.global||(C=RegExp(C.source,l(p.exec(C))+"g")),C.lastIndex=0;O=C.exec(N);)var D=O.index;E=E.slice(0,D===void 0?w:D)}}else if(g.indexOf(t(C),w)!=w){var L=E.lastIndexOf(C);L>-1&&(E=E.slice(0,L))}return E+S}return o0=m,o0}var Gse=Yse();const Jse=ir(Gse);function Zse(t,e=20){if(t.length<=e)return t;const n=Math.floor(e/2);return`${t.slice(0,n).trim()}…${t.slice(-n).trim()}`}const Xse=Yt({name:{ViewLinkMenuContent:_P}})({linkPreviewText:{overflowWrap:"anywhere"}});function _P({editor:t,onCancel:e,onEdit:n,onRemove:r,labels:o}){var i,s,a;const{classes:l}=Xse(),u=mu(t.state.selection.$to,ho("link",t.schema)),f=u?t.state.doc.textBetween(u.from,u.to):"",p=(i=t.getAttributes("link").href)!==null&&i!==void 0?i:"";return wP("Escape",e),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:l.linkPreviewText,children:Jse(f,{length:50,omission:"…"})}),v.jsx("div",{className:l.linkPreviewText,children:v.jsx(j.Link,{href:p,target:"_blank",rel:"noopener",children:Zse(p,50)})}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:n,color:"primary",variant:"outlined",size:"small",children:(s=o==null?void 0:o.viewLinkEditButtonLabel)!==null&&s!==void 0?s:"Edit"}),v.jsx(j.Button,{onClick:r,color:"error",variant:"outlined",size:"small",children:(a=o==null?void 0:o.viewLinkRemoveButtonLabel)!==null&&a!==void 0?a:"Remove"})]})]})}const Qse=Yt({name:{LinkBubbleMenu:kP}})(t=>({content:{padding:t.spacing(1.5,2,.5)}}));function kP({labels:t,formatHref:e,...n}){const{classes:r}=Qse(),o=vt();if(!(o!=null&&o.isEditable))return null;if(!("linkBubbleMenuHandler"in o.storage))throw new Error("You must add the LinkBubbleMenuHandler extension to the useEditor `extensions` array in order to use this component!");const i=o.storage.linkBubbleMenuHandler,s=i.state;let a=null;return s===Qn.VIEW_LINK_DETAILS?a=v.jsx(_P,{editor:o,onCancel:o.commands.closeLinkBubbleMenu,onEdit:o.commands.editLinkInBubbleMenu,onRemove:()=>{o.chain().unsetLink().setTextSelection(o.state.selection.to).focus().run()},labels:t}):s===Qn.EDIT_LINK&&(a=v.jsx(Nse,{editor:o,onCancel:o.commands.closeLinkBubbleMenu,onSave:({text:l,link:u})=>{o.chain().extendMarkRange("link").insertContent({type:"text",marks:[{type:"link",attrs:{href:u}}],text:l}).setLink({href:u}).focus().run(),o.commands.closeLinkBubbleMenu()},labels:t,formatHref:e})),v.jsx(hh,{editor:o,open:s!==Qn.HIDDEN,...i.bubbleMenuOptions,...n,children:v.jsx("div",{className:r.content,children:a})})}const i0=ea("MenuBar",["root","sticky","nonSticky","content"]),eae=Yt({name:{MenuBar:EP}})((t,{stickyOffset:e})=>({root:{borderBottomColor:t.palette.divider,borderBottomStyle:"solid",borderBottomWidth:1},sticky:{position:"sticky",top:e??0,zIndex:zf.MENU_BAR,background:t.palette.background.default},nonSticky:{},content:{}}));function EP({hide:t,disableSticky:e,stickyOffset:n,children:r,className:o,classes:i}){const{classes:s,cx:a}=eae({stickyOffset:n},{props:{classes:i}});return v.jsx(j.Collapse,{in:!t,unmountOnExit:!0,className:a(i0.root,s.root,e?[i0.nonSticky,s.nonSticky]:[i0.sticky,s.sticky],o),children:v.jsx("div",{className:s.content,children:r})})}const tae=Yt({name:{MenuDivider:_n}})(t=>({root:{height:18,margin:t.spacing(0,.5)}}));function _n(t){const{classes:e,cx:n}=tae();return v.jsx(j.Divider,{orientation:"vertical",...t,className:n(e.root,t.className)})}var nae="tippy-box",MP="tippy-content",rae="tippy-backdrop",OP="tippy-arrow",RP="tippy-svg-arrow",Ts={passive:!0,capture:!0},AP=function(){return document.body};function oae(t,e){return{}.hasOwnProperty.call(t,e)}function s0(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function m1(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function IP(t,e){return typeof t=="function"?t.apply(void 0,e):t}function uO(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function iae(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function sae(t){return t.split(/\s+/).filter(Boolean)}function Na(t){return[].concat(t)}function dO(t,e){t.indexOf(e)===-1&&t.push(e)}function aae(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function lae(t){return t.split("-")[0]}function Vf(t){return[].slice.call(t)}function fO(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function vc(){return document.createElement("div")}function qc(t){return["Element","Fragment"].some(function(e){return m1(t,e)})}function cae(t){return m1(t,"NodeList")}function uae(t){return m1(t,"MouseEvent")}function dae(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function fae(t){return qc(t)?[t]:cae(t)?Vf(t):Array.isArray(t)?t:Vf(document.querySelectorAll(t))}function a0(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function pO(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function pae(t){var e,n=Na(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function hae(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,a=o.props,l=a.interactiveBorder,u=lae(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=u==="bottom"?f.top.y:0,m=u==="top"?f.bottom.y:0,g=u==="right"?f.left.x:0,y=u==="left"?f.right.x:0,b=i.top-r+p>l,S=r-i.bottom-m>l,C=i.left-n+g>l,_=n-i.right-y>l;return b||S||C||_})}function l0(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function hO(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ko={isTouch:!1},mO=0;function mae(){ko.isTouch||(ko.isTouch=!0,window.performance&&document.addEventListener("mousemove",DP))}function DP(){var t=performance.now();t-mO<20&&(ko.isTouch=!1,document.removeEventListener("mousemove",DP)),mO=t}function gae(){var t=document.activeElement;if(dae(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function yae(){document.addEventListener("touchstart",mae,Ts),window.addEventListener("blur",gae)}var bae=typeof window<"u"&&typeof document<"u",vae=bae?!!window.msCrypto:!1;function Ma(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function gO(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function xae(t){return gO(`
337
+ */var Wb,GM;function Ise(){if(GM)return Wb;GM=1,Wb=r;var t=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,e=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,n="$1�$2";function r(o){return String(o).replace(e,n).replace(t,encodeURI)}return Wb}var Dse=Ise();const Pse=ir(Dse);function TP(t){let e=t.trim();return e&&!/^(https?:\/\/|mailto:|tel:|sms:|\/|#)/.test(e)&&(e=`http://${e}`),Pse(e)}function Nse({editor:t,onCancel:e,onSave:n,labels:r,formatHref:o=TP}){var i,s,a,l,u,f;const p=t.isActive("link")?t.getAttributes("link").href:"",m=mu(t.state.selection.$from,ho("link",t.schema)),g=m?t.state.doc.textBetween(m.from,m.to):"",y=t.state.doc.textBetween(t.state.selection.$from.pos,t.state.selection.$to.pos),b=g||y,[S,C]=J.useState(b),[_,T]=J.useState(p),w=J.useRef(null),E=J.useRef(null),O=!p,N=(i=r==null?void 0:r.editLinkAddTitle)!==null&&i!==void 0?i:"Add link",D=(s=r==null?void 0:r.editLinkEditTitle)!==null&&s!==void 0?s:"Edit link",L=O?N:D;J.useEffect(()=>{var B,z;!O||!b?(B=w.current)===null||B===void 0||B.focus():(z=E.current)===null||z===void 0||z.focus()},[O,b]),wP("Escape",e);function M(){E.current&&T(o(E.current.value))}const[R,P]=J.useState(!1);return v.jsxs("form",{onSubmit:B=>{var z,$,F,q;B.preventDefault(),B.stopPropagation(),P(!0);const U=($=(z=w.current)===null||z===void 0?void 0:z.value)!==null&&$!==void 0?$:"",G=(q=(F=E.current)===null||F===void 0?void 0:F.value)!==null&&q!==void 0?q:"";n({text:U,link:G}),P(!1)},autoComplete:"off",children:[v.jsx(j.Typography,{variant:"h6",children:L}),v.jsx(j.TextField,{inputRef:w,value:S,disabled:R,onChange:B=>{C(B.target.value)},label:(a=r==null?void 0:r.editLinkTextInputLabel)!==null&&a!==void 0?a:"Text",margin:"normal",size:"small",fullWidth:!0,required:!0}),v.jsx(j.TextField,{inputRef:E,value:_,onChange:B=>{T(B.target.value)},disabled:R,label:(l=r==null?void 0:r.editLinkHrefInputLabel)!==null&&l!==void 0?l:"Link",margin:"dense",size:"small",type:"text",onBlur:M,onKeyDown:B=>{B.key==="Enter"&&M()},fullWidth:!0,required:!0}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:e,variant:"outlined",size:"small",children:(u=r==null?void 0:r.editLinkCancelButtonLabel)!==null&&u!==void 0?u:"Cancel"}),v.jsx(j.Button,{type:"submit",color:"primary",variant:"outlined",size:"small",disabled:R,children:(f=r==null?void 0:r.editLinkSaveButtonLabel)!==null&&f!==void 0?f:"Save"})]})]})}var qb,JM;function Lse(){if(JM)return qb;JM=1;var t=xP();function e(n,r,o){var i=n.length;return o=o===void 0?i:o,!r&&o>=i?n:t(n,r,o)}return qb=e,qb}var Ub,ZM;function h1(){if(ZM)return Ub;ZM=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",s="\\u200d",a=RegExp("["+s+t+o+i+"]");function l(u){return a.test(u)}return Ub=l,Ub}var Kb,XM;function jse(){if(XM)return Kb;XM=1;var t=Gs(),e=ts(),n="[object RegExp]";function r(o){return e(o)&&t(o)==n}return Kb=r,Kb}var Yb,QM;function $se(){if(QM)return Yb;QM=1;var t=jse(),e=fh(),n=ph(),r=n&&n.isRegExp,o=r?e(r):t;return Yb=o,Yb}var Gb,eO;function Fse(){if(eO)return Gb;eO=1;function t(e){return function(n){return n==null?void 0:n[e]}}return Gb=t,Gb}var Jb,tO;function Bse(){if(tO)return Jb;tO=1;var t=Fse(),e=t("length");return Jb=e,Jb}var Zb,nO;function zse(){if(nO)return Zb;nO=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",s="["+t+"]",a="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+a+"|"+l+")",f="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",y=u+"?",b="["+i+"]?",S="(?:"+g+"(?:"+[f,p,m].join("|")+")"+b+y+")*",C=b+y+S,_="(?:"+[f+a+"?",a,p,m,s].join("|")+")",T=RegExp(l+"(?="+l+")|"+_+C,"g");function w(E){for(var O=T.lastIndex=0;T.test(E);)++O;return O}return Zb=w,Zb}var Xb,rO;function Vse(){if(rO)return Xb;rO=1;var t=Bse(),e=h1(),n=zse();function r(o){return e(o)?n(o):t(o)}return Xb=r,Xb}var Qb,oO;function Hse(){if(oO)return Qb;oO=1;function t(e){return e.split("")}return Qb=t,Qb}var e0,iO;function Wse(){if(iO)return e0;iO=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",s="["+t+"]",a="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+a+"|"+l+")",f="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",y=u+"?",b="["+i+"]?",S="(?:"+g+"(?:"+[f,p,m].join("|")+")"+b+y+")*",C=b+y+S,_="(?:"+[f+a+"?",a,p,m,s].join("|")+")",T=RegExp(l+"(?="+l+")|"+_+C,"g");function w(E){return E.match(T)||[]}return e0=w,e0}var t0,sO;function qse(){if(sO)return t0;sO=1;var t=Hse(),e=h1(),n=Wse();function r(o){return e(o)?n(o):t(o)}return t0=r,t0}var n0,aO;function Use(){if(aO)return n0;aO=1;var t=AA(),e=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=t(o),o===e||o===-e){var i=o<0?-1:1;return i*n}return o===o?o:0}return n0=r,n0}var r0,lO;function Kse(){if(lO)return r0;lO=1;var t=Use();function e(n){var r=t(n),o=r%1;return r===r?o?r-o:r:0}return r0=e,r0}var o0,cO;function Yse(){if(cO)return o0;cO=1;var t=yP(),e=Lse(),n=h1(),r=hi(),o=$se(),i=Vse(),s=qse(),a=Kse(),l=bP(),u=30,f="...",p=/\w*$/;function m(g,y){var b=u,S=f;if(r(y)){var C="separator"in y?y.separator:C;b="length"in y?a(y.length):b,S="omission"in y?t(y.omission):S}g=l(g);var _=g.length;if(n(g)){var T=s(g);_=T.length}if(b>=_)return g;var w=b-i(S);if(w<1)return S;var E=T?e(T,0,w).join(""):g.slice(0,w);if(C===void 0)return E+S;if(T&&(w+=E.length-w),o(C)){if(g.slice(w).search(C)){var O,N=E;for(C.global||(C=RegExp(C.source,l(p.exec(C))+"g")),C.lastIndex=0;O=C.exec(N);)var D=O.index;E=E.slice(0,D===void 0?w:D)}}else if(g.indexOf(t(C),w)!=w){var L=E.lastIndexOf(C);L>-1&&(E=E.slice(0,L))}return E+S}return o0=m,o0}var Gse=Yse();const Jse=ir(Gse);function Zse(t,e=20){if(t.length<=e)return t;const n=Math.floor(e/2);return`${t.slice(0,n).trim()}…${t.slice(-n).trim()}`}const Xse=Yt({name:{ViewLinkMenuContent:_P}})({linkPreviewText:{overflowWrap:"anywhere"}});function _P({editor:t,onCancel:e,onEdit:n,onRemove:r,labels:o}){var i,s,a;const{classes:l}=Xse(),u=mu(t.state.selection.$to,ho("link",t.schema)),f=u?t.state.doc.textBetween(u.from,u.to):"",p=(i=t.getAttributes("link").href)!==null&&i!==void 0?i:"";return wP("Escape",e),v.jsxs(v.Fragment,{children:[v.jsx("div",{className:l.linkPreviewText,children:Jse(f,{length:50,omission:"…"})}),v.jsx("div",{className:l.linkPreviewText,children:v.jsx(j.Link,{href:p,target:"_blank",rel:"noopener",children:Zse(p,50)})}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:n,color:"primary",variant:"outlined",size:"small",children:(s=o==null?void 0:o.viewLinkEditButtonLabel)!==null&&s!==void 0?s:"Edit"}),v.jsx(j.Button,{onClick:r,color:"error",variant:"outlined",size:"small",children:(a=o==null?void 0:o.viewLinkRemoveButtonLabel)!==null&&a!==void 0?a:"Remove"})]})]})}const Qse=Yt({name:{LinkBubbleMenu:kP}})(t=>({content:{padding:t.spacing(1.5,2,.5)}}));function kP({labels:t,formatHref:e,...n}){const{classes:r}=Qse(),o=vt();if(!(o!=null&&o.isEditable))return null;if(!("linkBubbleMenuHandler"in o.storage))throw new Error("You must add the LinkBubbleMenuHandler extension to the useEditor `extensions` array in order to use this component!");const i=o.storage.linkBubbleMenuHandler,s=i.state;let a=null;return s===Qn.VIEW_LINK_DETAILS?a=v.jsx(_P,{editor:o,onCancel:o.commands.closeLinkBubbleMenu,onEdit:o.commands.editLinkInBubbleMenu,onRemove:()=>{o.chain().unsetLink().setTextSelection(o.state.selection.to).focus().run()},labels:t}):s===Qn.EDIT_LINK&&(a=v.jsx(Nse,{editor:o,onCancel:o.commands.closeLinkBubbleMenu,onSave:({text:l,link:u})=>{o.chain().extendMarkRange("link").insertContent({type:"text",marks:[{type:"link",attrs:{href:u}}],text:l}).setLink({href:u}).focus().run(),o.commands.closeLinkBubbleMenu()},labels:t,formatHref:e})),v.jsx(hh,{editor:o,open:s!==Qn.HIDDEN,...i.bubbleMenuOptions,...n,children:v.jsx("div",{className:r.content,children:a})})}const i0=ea("MenuBar",["root","sticky","nonSticky","content"]),eae=Yt({name:{MenuBar:EP}})((t,{stickyOffset:e})=>({root:{borderBottomColor:t.palette.divider,borderBottomStyle:"solid",borderBottomWidth:1},sticky:{position:"sticky",top:e??0,zIndex:zf.MENU_BAR,background:t.palette.background.default},nonSticky:{},content:{}}));function EP({hide:t,disableSticky:e,stickyOffset:n,children:r,className:o,classes:i}){const{classes:s,cx:a}=eae({stickyOffset:n},{props:{classes:i}});return v.jsx(j.Collapse,{in:!t,unmountOnExit:!0,className:a(i0.root,s.root,e?[i0.nonSticky,s.nonSticky]:[i0.sticky,s.sticky],o),children:v.jsx("div",{className:s.content,children:r})})}const tae=Yt({name:{MenuDivider:_n}})(t=>({root:{height:18,margin:t.spacing(0,.5)}}));function _n(t){const{classes:e,cx:n}=tae();return v.jsx(j.Divider,{orientation:"vertical",...t,className:n(e.root,t.className)})}var nae="tippy-box",MP="tippy-content",rae="tippy-backdrop",OP="tippy-arrow",RP="tippy-svg-arrow",Ts={passive:!0,capture:!0},AP=function(){return document.body};function oae(t,e){return{}.hasOwnProperty.call(t,e)}function s0(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function m1(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function IP(t,e){return typeof t=="function"?t.apply(void 0,e):t}function uO(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function iae(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function sae(t){return t.split(/\s+/).filter(Boolean)}function Na(t){return[].concat(t)}function dO(t,e){t.indexOf(e)===-1&&t.push(e)}function aae(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function lae(t){return t.split("-")[0]}function Vf(t){return[].slice.call(t)}function fO(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function vc(){return document.createElement("div")}function qc(t){return["Element","Fragment"].some(function(e){return m1(t,e)})}function cae(t){return m1(t,"NodeList")}function uae(t){return m1(t,"MouseEvent")}function dae(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function fae(t){return qc(t)?[t]:cae(t)?Vf(t):Array.isArray(t)?t:Vf(document.querySelectorAll(t))}function a0(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function pO(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function pae(t){var e,n=Na(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function hae(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,a=o.props,l=a.interactiveBorder,u=lae(s.placement),f=s.modifiersData.offset;if(!f)return!0;var p=u==="bottom"?f.top.y:0,m=u==="top"?f.bottom.y:0,g=u==="right"?f.left.x:0,y=u==="left"?f.right.x:0,b=i.top-r+p>l,S=r-i.bottom-m>l,C=i.left-n+g>l,_=n-i.right-y>l;return b||S||C||_})}function l0(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function hO(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var ko={isTouch:!1},mO=0;function mae(){ko.isTouch||(ko.isTouch=!0,window.performance&&document.addEventListener("mousemove",DP))}function DP(){var t=performance.now();t-mO<20&&(ko.isTouch=!1,document.removeEventListener("mousemove",DP)),mO=t}function gae(){var t=document.activeElement;if(dae(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function yae(){document.addEventListener("touchstart",mae,Ts),window.addEventListener("blur",gae)}var bae=typeof window<"u"&&typeof document<"u",vae=bae?!!window.msCrypto:!1;function Ma(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function gO(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function xae(t){return gO(`
338
338
  %ctippy.js
339
339
 
340
340
  %c`+gO(t)+`
@@ -343,13 +343,13 @@ img.ProseMirror-separator {
343
343
  `)}function PP(t){return[xae(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Uc;process.env.NODE_ENV!=="production"&&Sae();function Sae(){Uc=new Set}function oi(t,e){if(t&&!Uc.has(e)){var n;Uc.add(e),(n=console).warn.apply(n,PP(e))}}function fv(t,e){if(t&&!Uc.has(e)){var n;Uc.add(e),(n=console).error.apply(n,PP(e))}}function Cae(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;fv(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),fv(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var NP={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wae={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Er=Object.assign({appendTo:AP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},NP,wae),Tae=Object.keys(Er),_ae=function(e){process.env.NODE_ENV!=="production"&&jP(e,[]);var n=Object.keys(e);n.forEach(function(r){Er[r]=e[r]})};function LP(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var a;r[i]=t[i]!==void 0?t[i]:(a=Er[i])!=null?a:s}return r},{});return Object.assign({},t,n)}function kae(t,e){var n=e?Object.keys(LP(Object.assign({},Er,{plugins:e}))):Tae,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function yO(t,e){var n=Object.assign({},e,{content:IP(e.content,[t])},e.ignoreAttributes?{}:kae(t,e.plugins));return n.aria=Object.assign({},Er.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function jP(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=iae(Er,Object.keys(NP)),i=!oae(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),oi(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
344
344
 
345
345
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
346
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Eae=function(){return"innerHTML"};function pv(t,e){t[Eae()]=e}function bO(t){var e=vc();return t===!0?e.className=OP:(e.className=RP,qc(t)?e.appendChild(t):pv(e,t)),e}function vO(t,e){qc(e.content)?(pv(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?pv(t,e.content):t.textContent=e.content)}function hv(t){var e=t.firstElementChild,n=Vf(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(MP)}),arrow:n.find(function(r){return r.classList.contains(OP)||r.classList.contains(RP)}),backdrop:n.find(function(r){return r.classList.contains(rae)})}}function $P(t){var e=vc(),n=vc();n.className=nae,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=vc();r.className=MP,r.setAttribute("data-state","hidden"),vO(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var a=hv(e),l=a.box,u=a.content,f=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&vO(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(l.removeChild(f),l.appendChild(bO(s.arrow))):l.appendChild(bO(s.arrow)):f&&l.removeChild(f)}return{popper:e,onUpdate:o}}$P.$$tippy=!0;var Mae=1,Rd=[],c0=[];function Oae(t,e){var n=yO(t,Object.assign({},Er,LP(fO(e)))),r,o,i,s=!1,a=!1,l=!1,u=!1,f,p,m,g=[],y=uO(de,n.interactiveDebounce),b,S=Mae++,C=null,_=aae(n.plugins),T={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:S,reference:t,popper:vc(),popperInstance:C,props:n,state:T,plugins:_,clearDelayTimeouts:bn,setProps:nn,setContent:Dt,show:wn,hide:Fn,hideWithInteractivity:dt,enable:xt,disable:Gt,unmount:In,destroy:Vt};if(!n.render)return process.env.NODE_ENV!=="production"&&fv(!0,"render() function has not been supplied."),w;var E=n.render(w),O=E.popper,N=E.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,t._tippy=w,O._tippy=w;var D=_.map(function(me){return me.fn(w)}),L=t.hasAttribute("aria-expanded");return ue(),Y(),q(),K("onCreate",[w]),n.showOnCreate&&Ie(),O.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",y)}),w;function M(){var me=w.props.touch;return Array.isArray(me)?me:[me,0]}function R(){return M()[0]==="hold"}function P(){var me;return!!((me=w.props.render)!=null&&me.$$tippy)}function z(){return b||t}function F(){var me=z().parentNode;return me?pae(me):document}function $(){return hv(O)}function B(me){return w.state.isMounted&&!w.state.isVisible||ko.isTouch||f&&f.type==="focus"?0:s0(w.props.delay,me?0:1,Er.delay)}function q(me){me===void 0&&(me=!1),O.style.pointerEvents=w.props.interactive&&!me?"":"none",O.style.zIndex=""+w.props.zIndex}function K(me,Le,ke){if(ke===void 0&&(ke=!0),D.forEach(function(qe){qe[me]&&qe[me].apply(qe,Le)}),ke){var je;(je=w.props)[me].apply(je,Le)}}function G(){var me=w.props.aria;if(me.content){var Le="aria-"+me.content,ke=O.id,je=Na(w.props.triggerTarget||t);je.forEach(function(qe){var tt=qe.getAttribute(Le);if(w.state.isVisible)qe.setAttribute(Le,tt?tt+" "+ke:ke);else{var Ot=tt&&tt.replace(ke,"").trim();Ot?qe.setAttribute(Le,Ot):qe.removeAttribute(Le)}})}}function Y(){if(!(L||!w.props.aria.expanded)){var me=Na(w.props.triggerTarget||t);me.forEach(function(Le){w.props.interactive?Le.setAttribute("aria-expanded",w.state.isVisible&&Le===z()?"true":"false"):Le.removeAttribute("aria-expanded")})}}function Z(){F().removeEventListener("mousemove",y),Rd=Rd.filter(function(me){return me!==y})}function ge(me){if(!(ko.isTouch&&(l||me.type==="mousedown"))){var Le=me.composedPath&&me.composedPath()[0]||me.target;if(!(w.props.interactive&&hO(O,Le))){if(Na(w.props.triggerTarget||t).some(function(ke){return hO(ke,Le)})){if(ko.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else K("onClickOutside",[w,me]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),a=!0,setTimeout(function(){a=!1}),w.state.isMounted||fe())}}}function he(){l=!0}function oe(){l=!1}function Q(){var me=F();me.addEventListener("mousedown",ge,!0),me.addEventListener("touchend",ge,Ts),me.addEventListener("touchstart",oe,Ts),me.addEventListener("touchmove",he,Ts)}function fe(){var me=F();me.removeEventListener("mousedown",ge,!0),me.removeEventListener("touchend",ge,Ts),me.removeEventListener("touchstart",oe,Ts),me.removeEventListener("touchmove",he,Ts)}function ce(me,Le){W(me,function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&Le()})}function ae(me,Le){W(me,Le)}function W(me,Le){var ke=$().box;function je(qe){qe.target===ke&&(l0(ke,"remove",je),Le())}if(me===0)return Le();l0(ke,"remove",p),l0(ke,"add",je),p=je}function te(me,Le,ke){ke===void 0&&(ke=!1);var je=Na(w.props.triggerTarget||t);je.forEach(function(qe){qe.addEventListener(me,Le,ke),g.push({node:qe,eventType:me,handler:Le,options:ke})})}function ue(){R()&&(te("touchstart",se,{passive:!0}),te("touchend",ye,{passive:!0})),sae(w.props.trigger).forEach(function(me){if(me!=="manual")switch(te(me,se),me){case"mouseenter":te("mouseleave",ye);break;case"focus":te(vae?"focusout":"blur",Te);break;case"focusin":te("focusout",Te);break}})}function ee(){g.forEach(function(me){var Le=me.node,ke=me.eventType,je=me.handler,qe=me.options;Le.removeEventListener(ke,je,qe)}),g=[]}function se(me){var Le,ke=!1;if(!(!w.state.isEnabled||Se(me)||a)){var je=((Le=f)==null?void 0:Le.type)==="focus";f=me,b=me.currentTarget,Y(),!w.state.isVisible&&uae(me)&&Rd.forEach(function(qe){return qe(me)}),me.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||s)&&w.props.hideOnClick!==!1&&w.state.isVisible?ke=!0:Ie(me),me.type==="click"&&(s=!ke),ke&&!je&&st(me)}}function de(me){var Le=me.target,ke=z().contains(Le)||O.contains(Le);if(!(me.type==="mousemove"&&ke)){var je=Ge().concat(O).map(function(qe){var tt,Ot=qe._tippy,Gn=(tt=Ot.popperInstance)==null?void 0:tt.state;return Gn?{popperRect:qe.getBoundingClientRect(),popperState:Gn,props:n}:null}).filter(Boolean);hae(je,me)&&(Z(),st(me))}}function ye(me){var Le=Se(me)||w.props.trigger.indexOf("click")>=0&&s;if(!Le){if(w.props.interactive){w.hideWithInteractivity(me);return}st(me)}}function Te(me){w.props.trigger.indexOf("focusin")<0&&me.target!==z()||w.props.interactive&&me.relatedTarget&&O.contains(me.relatedTarget)||st(me)}function Se(me){return ko.isTouch?R()!==me.type.indexOf("touch")>=0:!1}function Me(){Ne();var me=w.props,Le=me.popperOptions,ke=me.placement,je=me.offset,qe=me.getReferenceClientRect,tt=me.moveTransition,Ot=P()?hv(O).arrow:null,Gn=qe?{getBoundingClientRect:qe,contextElement:qe.contextElement||z()}:t,sr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(na){var gi=na.state;if(P()){var wu=$(),vl=wu.box;["placement","reference-hidden","escaped"].forEach(function(ra){ra==="placement"?vl.setAttribute("data-placement",gi.placement):gi.attributes.popper["data-popper-"+ra]?vl.setAttribute("data-"+ra,""):vl.removeAttribute("data-"+ra)}),gi.attributes.popper={}}}},Fo=[{name:"offset",options:{offset:je}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!tt}},sr];P()&&Ot&&Fo.push({name:"arrow",options:{element:Ot,padding:3}}),Fo.push.apply(Fo,(Le==null?void 0:Le.modifiers)||[]),w.popperInstance=N2(Gn,O,Object.assign({},Le,{placement:ke,onFirstUpdate:m,modifiers:Fo}))}function Ne(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function Ve(){var me=w.props.appendTo,Le,ke=z();w.props.interactive&&me===AP||me==="parent"?Le=ke.parentNode:Le=IP(me,[ke]),Le.contains(O)||Le.appendChild(O),w.state.isMounted=!0,Me(),process.env.NODE_ENV!=="production"&&oi(w.props.interactive&&me===Er.appendTo&&ke.nextElementSibling!==O,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
346
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var Eae=function(){return"innerHTML"};function pv(t,e){t[Eae()]=e}function bO(t){var e=vc();return t===!0?e.className=OP:(e.className=RP,qc(t)?e.appendChild(t):pv(e,t)),e}function vO(t,e){qc(e.content)?(pv(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?pv(t,e.content):t.textContent=e.content)}function hv(t){var e=t.firstElementChild,n=Vf(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(MP)}),arrow:n.find(function(r){return r.classList.contains(OP)||r.classList.contains(RP)}),backdrop:n.find(function(r){return r.classList.contains(rae)})}}function $P(t){var e=vc(),n=vc();n.className=nae,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=vc();r.className=MP,r.setAttribute("data-state","hidden"),vO(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var a=hv(e),l=a.box,u=a.content,f=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&vO(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(l.removeChild(f),l.appendChild(bO(s.arrow))):l.appendChild(bO(s.arrow)):f&&l.removeChild(f)}return{popper:e,onUpdate:o}}$P.$$tippy=!0;var Mae=1,Rd=[],c0=[];function Oae(t,e){var n=yO(t,Object.assign({},Er,LP(fO(e)))),r,o,i,s=!1,a=!1,l=!1,u=!1,f,p,m,g=[],y=uO(ue,n.interactiveDebounce),b,S=Mae++,C=null,_=aae(n.plugins),T={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:S,reference:t,popper:vc(),popperInstance:C,props:n,state:T,plugins:_,clearDelayTimeouts:bn,setProps:nn,setContent:Dt,show:wn,hide:Fn,hideWithInteractivity:dt,enable:xt,disable:Gt,unmount:In,destroy:Vt};if(!n.render)return process.env.NODE_ENV!=="production"&&fv(!0,"render() function has not been supplied."),w;var E=n.render(w),O=E.popper,N=E.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,t._tippy=w,O._tippy=w;var D=_.map(function(me){return me.fn(w)}),L=t.hasAttribute("aria-expanded");return ce(),Y(),q(),U("onCreate",[w]),n.showOnCreate&&Ie(),O.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&z().addEventListener("mousemove",y)}),w;function M(){var me=w.props.touch;return Array.isArray(me)?me:[me,0]}function R(){return M()[0]==="hold"}function P(){var me;return!!((me=w.props.render)!=null&&me.$$tippy)}function B(){return b||t}function z(){var me=B().parentNode;return me?pae(me):document}function $(){return hv(O)}function F(me){return w.state.isMounted&&!w.state.isVisible||ko.isTouch||f&&f.type==="focus"?0:s0(w.props.delay,me?0:1,Er.delay)}function q(me){me===void 0&&(me=!1),O.style.pointerEvents=w.props.interactive&&!me?"":"none",O.style.zIndex=""+w.props.zIndex}function U(me,Le,ke){if(ke===void 0&&(ke=!0),D.forEach(function(qe){qe[me]&&qe[me].apply(qe,Le)}),ke){var je;(je=w.props)[me].apply(je,Le)}}function G(){var me=w.props.aria;if(me.content){var Le="aria-"+me.content,ke=O.id,je=Na(w.props.triggerTarget||t);je.forEach(function(qe){var tt=qe.getAttribute(Le);if(w.state.isVisible)qe.setAttribute(Le,tt?tt+" "+ke:ke);else{var Ot=tt&&tt.replace(ke,"").trim();Ot?qe.setAttribute(Le,Ot):qe.removeAttribute(Le)}})}}function Y(){if(!(L||!w.props.aria.expanded)){var me=Na(w.props.triggerTarget||t);me.forEach(function(Le){w.props.interactive?Le.setAttribute("aria-expanded",w.state.isVisible&&Le===B()?"true":"false"):Le.removeAttribute("aria-expanded")})}}function Z(){z().removeEventListener("mousemove",y),Rd=Rd.filter(function(me){return me!==y})}function fe(me){if(!(ko.isTouch&&(l||me.type==="mousedown"))){var Le=me.composedPath&&me.composedPath()[0]||me.target;if(!(w.props.interactive&&hO(O,Le))){if(Na(w.props.triggerTarget||t).some(function(ke){return hO(ke,Le)})){if(ko.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[w,me]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),a=!0,setTimeout(function(){a=!1}),w.state.isMounted||he())}}}function pe(){l=!0}function ge(){l=!1}function re(){var me=z();me.addEventListener("mousedown",fe,!0),me.addEventListener("touchend",fe,Ts),me.addEventListener("touchstart",ge,Ts),me.addEventListener("touchmove",pe,Ts)}function he(){var me=z();me.removeEventListener("mousedown",fe,!0),me.removeEventListener("touchend",fe,Ts),me.removeEventListener("touchstart",ge,Ts),me.removeEventListener("touchmove",pe,Ts)}function le(me,Le){W(me,function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&Le()})}function X(me,Le){W(me,Le)}function W(me,Le){var ke=$().box;function je(qe){qe.target===ke&&(l0(ke,"remove",je),Le())}if(me===0)return Le();l0(ke,"remove",p),l0(ke,"add",je),p=je}function ee(me,Le,ke){ke===void 0&&(ke=!1);var je=Na(w.props.triggerTarget||t);je.forEach(function(qe){qe.addEventListener(me,Le,ke),g.push({node:qe,eventType:me,handler:Le,options:ke})})}function ce(){R()&&(ee("touchstart",se,{passive:!0}),ee("touchend",ye,{passive:!0})),sae(w.props.trigger).forEach(function(me){if(me!=="manual")switch(ee(me,se),me){case"mouseenter":ee("mouseleave",ye);break;case"focus":ee(vae?"focusout":"blur",Te);break;case"focusin":ee("focusout",Te);break}})}function te(){g.forEach(function(me){var Le=me.node,ke=me.eventType,je=me.handler,qe=me.options;Le.removeEventListener(ke,je,qe)}),g=[]}function se(me){var Le,ke=!1;if(!(!w.state.isEnabled||Se(me)||a)){var je=((Le=f)==null?void 0:Le.type)==="focus";f=me,b=me.currentTarget,Y(),!w.state.isVisible&&uae(me)&&Rd.forEach(function(qe){return qe(me)}),me.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||s)&&w.props.hideOnClick!==!1&&w.state.isVisible?ke=!0:Ie(me),me.type==="click"&&(s=!ke),ke&&!je&&st(me)}}function ue(me){var Le=me.target,ke=B().contains(Le)||O.contains(Le);if(!(me.type==="mousemove"&&ke)){var je=Ge().concat(O).map(function(qe){var tt,Ot=qe._tippy,Gn=(tt=Ot.popperInstance)==null?void 0:tt.state;return Gn?{popperRect:qe.getBoundingClientRect(),popperState:Gn,props:n}:null}).filter(Boolean);hae(je,me)&&(Z(),st(me))}}function ye(me){var Le=Se(me)||w.props.trigger.indexOf("click")>=0&&s;if(!Le){if(w.props.interactive){w.hideWithInteractivity(me);return}st(me)}}function Te(me){w.props.trigger.indexOf("focusin")<0&&me.target!==B()||w.props.interactive&&me.relatedTarget&&O.contains(me.relatedTarget)||st(me)}function Se(me){return ko.isTouch?R()!==me.type.indexOf("touch")>=0:!1}function Me(){Ne();var me=w.props,Le=me.popperOptions,ke=me.placement,je=me.offset,qe=me.getReferenceClientRect,tt=me.moveTransition,Ot=P()?hv(O).arrow:null,Gn=qe?{getBoundingClientRect:qe,contextElement:qe.contextElement||B()}:t,sr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(na){var gi=na.state;if(P()){var wu=$(),vl=wu.box;["placement","reference-hidden","escaped"].forEach(function(ra){ra==="placement"?vl.setAttribute("data-placement",gi.placement):gi.attributes.popper["data-popper-"+ra]?vl.setAttribute("data-"+ra,""):vl.removeAttribute("data-"+ra)}),gi.attributes.popper={}}}},Fo=[{name:"offset",options:{offset:je}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!tt}},sr];P()&&Ot&&Fo.push({name:"arrow",options:{element:Ot,padding:3}}),Fo.push.apply(Fo,(Le==null?void 0:Le.modifiers)||[]),w.popperInstance=N2(Gn,O,Object.assign({},Le,{placement:ke,onFirstUpdate:m,modifiers:Fo}))}function Ne(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function Ve(){var me=w.props.appendTo,Le,ke=B();w.props.interactive&&me===AP||me==="parent"?Le=ke.parentNode:Le=IP(me,[ke]),Le.contains(O)||Le.appendChild(O),w.state.isMounted=!0,Me(),process.env.NODE_ENV!=="production"&&oi(w.props.interactive&&me===Er.appendTo&&ke.nextElementSibling!==O,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
347
347
 
348
348
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
349
349
 
350
350
  `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
351
351
 
352
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Ge(){return Vf(O.querySelectorAll("[data-tippy-root]"))}function Ie(me){w.clearDelayTimeouts(),me&&K("onTrigger",[w,me]),Q();var Le=B(!0),ke=M(),je=ke[0],qe=ke[1];ko.isTouch&&je==="hold"&&qe&&(Le=qe),Le?r=setTimeout(function(){w.show()},Le):w.show()}function st(me){if(w.clearDelayTimeouts(),K("onUntrigger",[w,me]),!w.state.isVisible){fe();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(me.type)>=0&&s)){var Le=B(!1);Le?o=setTimeout(function(){w.state.isVisible&&w.hide()},Le):i=requestAnimationFrame(function(){w.hide()})}}function xt(){w.state.isEnabled=!0}function Gt(){w.hide(),w.state.isEnabled=!1}function bn(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function nn(me){if(process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("setProps")),!w.state.isDestroyed){K("onBeforeUpdate",[w,me]),ee();var Le=w.props,ke=yO(t,Object.assign({},Le,fO(me),{ignoreAttributes:!0}));w.props=ke,ue(),Le.interactiveDebounce!==ke.interactiveDebounce&&(Z(),y=uO(de,ke.interactiveDebounce)),Le.triggerTarget&&!ke.triggerTarget?Na(Le.triggerTarget).forEach(function(je){je.removeAttribute("aria-expanded")}):ke.triggerTarget&&t.removeAttribute("aria-expanded"),Y(),q(),N&&N(Le,ke),w.popperInstance&&(Me(),Ge().forEach(function(je){requestAnimationFrame(je._tippy.popperInstance.forceUpdate)})),K("onAfterUpdate",[w,me])}}function Dt(me){w.setProps({content:me})}function wn(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("show"));var me=w.state.isVisible,Le=w.state.isDestroyed,ke=!w.state.isEnabled,je=ko.isTouch&&!w.props.touch,qe=s0(w.props.duration,0,Er.duration);if(!(me||Le||ke||je)&&!z().hasAttribute("disabled")&&(K("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,P()&&(O.style.visibility="visible"),q(),Q(),w.state.isMounted||(O.style.transition="none"),P()){var tt=$(),Ot=tt.box,Gn=tt.content;a0([Ot,Gn],0)}m=function(){var Fo;if(!(!w.state.isVisible||u)){if(u=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,P()&&w.props.animation){var bl=$(),na=bl.box,gi=bl.content;a0([na,gi],qe),pO([na,gi],"visible")}G(),Y(),dO(c0,w),(Fo=w.popperInstance)==null||Fo.forceUpdate(),K("onMount",[w]),w.props.animation&&P()&&ae(qe,function(){w.state.isShown=!0,K("onShown",[w])})}},Ve()}}function Fn(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("hide"));var me=!w.state.isVisible,Le=w.state.isDestroyed,ke=!w.state.isEnabled,je=s0(w.props.duration,1,Er.duration);if(!(me||Le||ke)&&(K("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,u=!1,s=!1,P()&&(O.style.visibility="hidden"),Z(),fe(),q(!0),P()){var qe=$(),tt=qe.box,Ot=qe.content;w.props.animation&&(a0([tt,Ot],je),pO([tt,Ot],"hidden"))}G(),Y(),w.props.animation?P()&&ce(je,w.unmount):w.unmount()}}function dt(me){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("hideWithInteractivity")),F().addEventListener("mousemove",y),dO(Rd,y),y(me)}function In(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("unmount")),w.state.isVisible&&w.hide(),w.state.isMounted&&(Ne(),Ge().forEach(function(me){me._tippy.unmount()}),O.parentNode&&O.parentNode.removeChild(O),c0=c0.filter(function(me){return me!==w}),w.state.isMounted=!1,K("onHidden",[w]))}function Vt(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("destroy")),!w.state.isDestroyed&&(w.clearDelayTimeouts(),w.unmount(),ee(),delete t._tippy,w.state.isDestroyed=!0,K("onDestroy",[w]))}}function bu(t,e){e===void 0&&(e={});var n=Er.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(Cae(t),jP(e,n)),yae();var r=Object.assign({},e,{plugins:n}),o=fae(t);if(process.env.NODE_ENV!=="production"){var i=qc(r.content),s=o.length>1;oi(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
352
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Ge(){return Vf(O.querySelectorAll("[data-tippy-root]"))}function Ie(me){w.clearDelayTimeouts(),me&&U("onTrigger",[w,me]),re();var Le=F(!0),ke=M(),je=ke[0],qe=ke[1];ko.isTouch&&je==="hold"&&qe&&(Le=qe),Le?r=setTimeout(function(){w.show()},Le):w.show()}function st(me){if(w.clearDelayTimeouts(),U("onUntrigger",[w,me]),!w.state.isVisible){he();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(me.type)>=0&&s)){var Le=F(!1);Le?o=setTimeout(function(){w.state.isVisible&&w.hide()},Le):i=requestAnimationFrame(function(){w.hide()})}}function xt(){w.state.isEnabled=!0}function Gt(){w.hide(),w.state.isEnabled=!1}function bn(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function nn(me){if(process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("setProps")),!w.state.isDestroyed){U("onBeforeUpdate",[w,me]),te();var Le=w.props,ke=yO(t,Object.assign({},Le,fO(me),{ignoreAttributes:!0}));w.props=ke,ce(),Le.interactiveDebounce!==ke.interactiveDebounce&&(Z(),y=uO(ue,ke.interactiveDebounce)),Le.triggerTarget&&!ke.triggerTarget?Na(Le.triggerTarget).forEach(function(je){je.removeAttribute("aria-expanded")}):ke.triggerTarget&&t.removeAttribute("aria-expanded"),Y(),q(),N&&N(Le,ke),w.popperInstance&&(Me(),Ge().forEach(function(je){requestAnimationFrame(je._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[w,me])}}function Dt(me){w.setProps({content:me})}function wn(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("show"));var me=w.state.isVisible,Le=w.state.isDestroyed,ke=!w.state.isEnabled,je=ko.isTouch&&!w.props.touch,qe=s0(w.props.duration,0,Er.duration);if(!(me||Le||ke||je)&&!B().hasAttribute("disabled")&&(U("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,P()&&(O.style.visibility="visible"),q(),re(),w.state.isMounted||(O.style.transition="none"),P()){var tt=$(),Ot=tt.box,Gn=tt.content;a0([Ot,Gn],0)}m=function(){var Fo;if(!(!w.state.isVisible||u)){if(u=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,P()&&w.props.animation){var bl=$(),na=bl.box,gi=bl.content;a0([na,gi],qe),pO([na,gi],"visible")}G(),Y(),dO(c0,w),(Fo=w.popperInstance)==null||Fo.forceUpdate(),U("onMount",[w]),w.props.animation&&P()&&X(qe,function(){w.state.isShown=!0,U("onShown",[w])})}},Ve()}}function Fn(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("hide"));var me=!w.state.isVisible,Le=w.state.isDestroyed,ke=!w.state.isEnabled,je=s0(w.props.duration,1,Er.duration);if(!(me||Le||ke)&&(U("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,u=!1,s=!1,P()&&(O.style.visibility="hidden"),Z(),he(),q(!0),P()){var qe=$(),tt=qe.box,Ot=qe.content;w.props.animation&&(a0([tt,Ot],je),pO([tt,Ot],"hidden"))}G(),Y(),w.props.animation?P()&&le(je,w.unmount):w.unmount()}}function dt(me){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("hideWithInteractivity")),z().addEventListener("mousemove",y),dO(Rd,y),y(me)}function In(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("unmount")),w.state.isVisible&&w.hide(),w.state.isMounted&&(Ne(),Ge().forEach(function(me){me._tippy.unmount()}),O.parentNode&&O.parentNode.removeChild(O),c0=c0.filter(function(me){return me!==w}),w.state.isMounted=!1,U("onHidden",[w]))}function Vt(){process.env.NODE_ENV!=="production"&&oi(w.state.isDestroyed,Ma("destroy")),!w.state.isDestroyed&&(w.clearDelayTimeouts(),w.unmount(),te(),delete t._tippy,w.state.isDestroyed=!0,U("onDestroy",[w]))}}function bu(t,e){e===void 0&&(e={});var n=Er.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(Cae(t),jP(e,n)),yae();var r=Object.assign({},e,{plugins:n}),o=fae(t);if(process.env.NODE_ENV!=="production"){var i=qc(r.content),s=o.length>1;oi(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
353
353
 
354
354
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
355
355
 
@@ -386,17 +386,17 @@ img.ProseMirror-separator {
386
386
  *
387
387
  * This source code is licensed under the MIT license found in the
388
388
  * LICENSE file in the root directory of this source tree.
389
- */var wO;function Vae(){return wO||(wO=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=J,e=mh;function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;function u(f,p,m,g,y){var b=i(null),S;b.current===null?(S={hasValue:!1,value:null},b.current=S):S=b.current;var C=a(function(){var E=!1,O,N,D=function(P){if(!E){E=!0,O=P;var z=g(P);if(y!==void 0&&S.hasValue){var F=S.value;if(y(F,z))return N=F,F}return N=z,z}var $=O,B=N;if(r($,P))return B;var q=g(P);return y!==void 0&&y(B,q)?B:(O=P,N=q,q)},L=m===void 0?null:m,M=function(){return D(p())},R=L===null?void 0:function(){return D(L())};return[M,R]},[p,m,g,y]),_=C[0],T=C[1],w=o(f,_,T);return s(function(){S.hasValue=!0,S.value=w},[w]),l(w),w}p0.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),p0}process.env.NODE_ENV==="production"?gv.exports=zae():gv.exports=Vae();var Hae=gv.exports;const Wae=typeof window<"u"?J.useLayoutEffect:J.useEffect;class qae{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(o=>o())},r=this.editor;return r.on("transaction",n),()=>{r.off("transaction",n)}}}}function Uae(t){var e;const[n]=J.useState(()=>new qae(t.editor)),r=Hae.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:Bae);return Wae(()=>n.watch(t.editor),[t.editor,n]),J.useDebugValue(r),r}const TO=process.env.NODE_ENV!=="production",yv=typeof window>"u",Kae=yv||!!(typeof window<"u"&&window.next);class g1{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return yv||Kae?(TO&&console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."),null):this.createEditor();if(this.options.current.immediatelyRender&&yv&&TO)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var o,i;return(i=(o=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(o,...r)},onBlur:(...r)=>{var o,i;return(i=(o=this.options.current).onBlur)===null||i===void 0?void 0:i.call(o,...r)},onCreate:(...r)=>{var o,i;return(i=(o=this.options.current).onCreate)===null||i===void 0?void 0:i.call(o,...r)},onDestroy:(...r)=>{var o,i;return(i=(o=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(o,...r)},onFocus:(...r)=>{var o,i;return(i=(o=this.options.current).onFocus)===null||i===void 0?void 0:i.call(o,...r)},onSelectionUpdate:(...r)=>{var o,i;return(i=(o=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(o,...r)},onTransaction:(...r)=>{var o,i;return(i=(o=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(o,...r)},onUpdate:(...r)=>{var o,i;return(i=(o=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(o,...r)},onContentError:(...r)=>{var o,i;return(i=(o=this.options.current).onContentError)===null||i===void 0?void 0:i.call(o,...r)},onDrop:(...r)=>{var o,i;return(i=(o=this.options.current).onDrop)===null||i===void 0?void 0:i.call(o,...r)},onPaste:(...r)=>{var o,i;return(i=(o=this.options.current).onPaste)===null||i===void 0?void 0:i.call(o,...r)}};return new Roe(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((o,i)=>{var s;return o===((s=n.extensions)===null||s===void 0?void 0:s[i])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?g1.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,o)=>r===e[o]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function FP(t={},e=[]){const n=J.useRef(t);n.current=t;const[r]=J.useState(()=>new g1(n)),o=mh.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return J.useDebugValue(o),J.useEffect(r.onRender(e)),Uae({editor:o,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),o}const Yae=J.createContext({editor:null});Yae.Consumer;const BP=J.createContext({onDragStart:void 0}),zP=()=>J.useContext(BP),Gae=t=>{const e=t.as||"div",{nodeViewContentRef:n}=zP();return J.createElement(e,{...t,ref:n,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...t.style}})},y1=J.forwardRef((t,e)=>{const{onDragStart:n}=zP(),r=t.as||"div";return J.createElement(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function Jae(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function Zae(t){var e;return typeof t=="object"&&((e=t.$$typeof)===null||e===void 0?void 0:e.toString())==="Symbol(react.forward_ref)"}class VP{constructor(e,{editor:n,props:r={},as:o="div",className:i=""}){this.ref=null,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=n,this.props=r,this.element=document.createElement(o),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isInitialized?Es.flushSync(()=>{this.render()}):this.render()}render(){var e;const n=this.component,r=this.props,o=this.editor;(Jae(n)||Zae(n))&&(r.ref=i=>{this.ref=i}),this.reactElement=J.createElement(n,{...r}),(e=o==null?void 0:o.contentComponent)===null||e===void 0||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;const n=this.editor;(e=n==null?void 0:n.contentComponent)===null||e===void 0||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(n=>{this.element.setAttribute(n,e[n])})}}class Xae extends Aoe{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(u={})=>this.updateAttributes(u),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){const u=f=>f.charAt(0).toUpperCase()+f.substring(1);this.component.displayName=u(this.extension.name)}const o={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:u=>{u&&this.contentDOMElement&&u.firstChild!==this.contentDOMElement&&u.appendChild(this.contentDOMElement)}},i=this.component,s=J.memo(u=>J.createElement(BP.Provider,{value:o},J.createElement(i,u)));s.displayName="ReactNodeView",this.node.isLeaf?this.contentDOMElement=null:this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.style.whiteSpace="inherit");let a=this.node.isInline?"span":"div";this.options.as&&(a=this.options.as);const{className:l=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new VP(s,{editor:this.editor,props:e,as:a,className:`node-${this.node.type.name} ${l}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(!((e=this.renderer.element.firstElementChild)===null||e===void 0)&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){const{from:e,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(e<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,n,r){const o=i=>{this.renderer.updateProps(i),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const i=this.node,s=this.decorations,a=this.innerDecorations;return this.node=e,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:i,oldDecorations:s,newNode:e,newDecorations:n,oldInnerDecorations:a,innerDecorations:r,updateProps:()=>o({node:e,decorations:n,innerDecorations:r})})}return e===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=e,this.decorations=n,this.innerDecorations=r,o({node:e,decorations:n,innerDecorations:r})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const n=this.editor.extensionManager.attributes,r=$f(this.node,n);e=this.options.attrs({node:this.node,HTMLAttributes:r})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function b1(t,e){return n=>n.editor.contentComponent?new Xae(t,n,e):{}}const h0=ea("RichTextContent",["root","readonly","editable"]),Qae=Yt({name:{RichTextContent:v1}})(t=>({root:{"& .ProseMirror":{...SP(t)}},readonly:{},editable:{}}));function v1({className:t,classes:e={}}){const{classes:n,cx:r}=Qae(void 0,{props:{classes:e}}),o=vt(),i=J.useMemo(()=>r(h0.root,t,n.root,o!=null&&o.isEditable?[h0.editable,n.editable]:[h0.readonly,n.readonly]),[t,n,r,o==null?void 0:o.isEditable]);return v.jsx(j.Box,{className:i,component:$ae,editor:o})}function HP({editor:t,children:e}){return v.jsx(CP.Provider,{value:t,children:e})}const Oa=ea("FieldContainer",["root","outlined","standard","focused","disabled","notchedOutline"]),ele=Yt({name:{FieldContainer:WP},uniqId:"Os7ZPW"})((t,e,n)=>({root:{},outlined:{borderRadius:t.shape.borderRadius,padding:1,position:"relative",[`&:hover .${n.notchedOutline}`]:{borderColor:t.palette.text.primary},[`&.${n.focused} .${n.notchedOutline}`]:{borderColor:t.palette.primary.main,borderWidth:2},[`&.${n.disabled} .${n.notchedOutline}`]:{borderColor:t.palette.action.disabled}},standard:{},focused:{},disabled:{},notchedOutline:{position:"absolute",inset:0,borderRadius:"inherit",borderColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",borderStyle:"solid",borderWidth:1,pointerEvents:"none",overflow:"hidden",zIndex:zf.NOTCHED_OUTLINE}}));function WP({variant:t="outlined",children:e,focused:n,disabled:r,classes:o={},className:i}){const{classes:s,cx:a}=ele(void 0,{props:{classes:o}});return v.jsxs("div",{className:a(Oa.root,s.root,t==="outlined"?[Oa.outlined,s.outlined]:[Oa.standard,s.standard],n&&[Oa.focused,s.focused],r&&[Oa.disabled,s.disabled],i),children:[e,t==="outlined"&&v.jsx("div",{className:a(Oa.notchedOutline,s.notchedOutline),"aria-hidden":!0})]})}var tle=IA();const qP=ir(tle);function UP({editor:t,wait:e=250}){const[n,r]=J.useState(!!(t!=null&&t.isFocused)),o=J.useMemo(()=>qP(i=>{r(i)},e),[e]);return J.useEffect(()=>{const i=!!(t!=null&&t.isFocused);return o(i),i&&o.flush(),()=>{o.cancel()}},[t==null?void 0:t.isFocused,o]),n}class x1 extends J.Component{constructor(e){var n,r;super(e),this.updateDebounced=qP(this.forceUpdate,(n=e.wait)!==null&&n!==void 0?n:170,(r=e.options)!==null&&r!==void 0?r:{leading:!0,trailing:!0,maxWait:300})}shouldComponentUpdate(){return this.updateDebounced(),!1}componentWillUnmount(){this.updateDebounced.cancel()}render(){return this.props.children}}const Ra=ea("RichTextField",["root","standard","outlined","menuBar","menuBarContent","content"]),nle=Yt({name:{RichTextField:KP},uniqId:"E2Alw3"})((t,e,n)=>({root:{},standard:{[`& .${n.content}`]:{padding:t.spacing(1.5,0)},[`& .${n.menuBarContent}`]:{padding:t.spacing(1,0)}},outlined:{[`& .${n.content}`]:{padding:t.spacing(1.5)},[`& .${n.menuBarContent}`]:{padding:t.spacing(1,1.5)}},menuBar:{},menuBarContent:{},content:{}}));function KP({variant:t="outlined",controls:e,disableDebounceRenderControls:n=!1,disabled:r,className:o,classes:i={},footer:s,MenuBarProps:a,RichTextContentProps:l}){var u,f;const{classes:p,cx:m}=nle(void 0,{props:{classes:i}}),g=vt(),y=UP({editor:g});return v.jsxs(WP,{variant:t,focused:!r&&y,disabled:r,className:m(Ra.root,p.root,t==="outlined"?[Ra.outlined,p.outlined]:[Ra.standard,p.standard],o),children:[e&&v.jsx(EP,{...a,classes:{...a==null?void 0:a.classes,root:m(Ra.menuBar,p.menuBar,(u=a==null?void 0:a.classes)===null||u===void 0?void 0:u.root),content:m(Ra.content,p.menuBarContent,(f=a==null?void 0:a.classes)===null||f===void 0?void 0:f.content)},children:n?e:v.jsx(x1,{children:e})}),v.jsx(v1,{...l,className:m(Ra.content,p.content,l==null?void 0:l.className)}),s]})}const YP=J.forwardRef(function({className:e,renderControls:n,RichTextFieldProps:r={},children:o,editorDependencies:i=[],editable:s=!0,...a},l){const u=FP({editable:s,...a},i);return J.useImperativeHandle(l,()=>({editor:u}),[u]),J.useEffect(()=>{!u||u.isDestroyed||u.isEditable===s||queueMicrotask(()=>{u.setEditable(s)})},[s,u]),v.jsxs(HP,{editor:u,children:[v.jsx(KP,{disabled:!s,controls:n==null?void 0:n(u),className:e,...r}),o==null?void 0:o(u)]})});function rle(t){const e=FP({...t,editable:!1}),n=J.useRef(t.content);return J.useEffect(()=>{!e||e.isDestroyed||t.content===void 0||t.content===n.current||queueMicrotask(()=>{t.content!==void 0&&e.commands.setContent(t.content)})},[t.content,e]),J.useEffect(()=>{n.current=t.content},[t.content]),v.jsx(HP,{editor:e,children:v.jsx(v1,{})})}function ole(t){return t.content?v.jsx(rle,{...t}):null}const ile=j.createSvgIcon(v.jsxs(v.Fragment,{children:[v.jsx("path",{d:"M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"}),v.jsx("path",{d:"M9.293 9.293 5.586 13l3.707 3.707 1.414-1.414L8.414 13l2.293-2.293zm5.414 0-1.414 1.414L15.586 13l-2.293 2.293 1.414 1.414L18.414 13z"})]}),"CodeBlock"),sle=j.createSvgIcon(v.jsx("path",{d:"M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"}),"DeleteColumn"),ale=j.createSvgIcon(v.jsx("path",{d:"M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"}),"DeleteRow"),lle=j.createSvgIcon(v.jsx("path",{d:"M 2 20 h 20 v 4 H 2 v -4 z"}),"FormatColorBar"),cle=j.createSvgIcon(v.jsx("path",{d:"M 5.49 17 h 2.42 l 1.27 -3.58 h 5.65 L 16.09 17 h 2.42 L 13.25 3 h -2.5 L 5.49 17 z m 4.42 -5.61 l 2.03 -5.79 h 0.12 l 2.03 5.79 H 9.91 z"}),"FormatColorTextNoBar"),ule=j.createSvgIcon(v.jsx("path",{d:"M 10.6 8 l 5.4 5.425 l -4 4 q -0.6 0.6 -1.413 0.6 t -1.412 -0.6 L 8.5 18 h -5 l 3.15 -3.125 q -0.6 -0.6 -0.625 -1.438 T 6.6 12 l 4 -4 Z M 12 6.575 L 16 2.6 q 0.6 -0.6 1.413 -0.6 t 1.412 0.6 l 2.6 2.575 q 0.6 0.6 0.6 1.413 T 21.425 8 l -4 4 L 12 6.575 Z"}),"FormatInkHighlighterNoBar"),dle=j.createSvgIcon(v.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"}),"InsertColumnLeft"),fle=j.createSvgIcon(v.jsx("path",{d:"M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"}),"InsertColumnRight"),ple=j.createSvgIcon(v.jsx("path",{d:"M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"}),"InsertRowBottom"),hle=j.createSvgIcon(v.jsx("path",{d:"M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"}),"InsertRowTop"),mle=j.createSvgIcon(v.jsx("path",{d:"M12 5V19H19V5H12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"}),"LayoutColumnFill"),gle=j.createSvgIcon(v.jsx("path",{d:"M19 12H5V19H19V12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"}),"LayoutRowFill"),yle=j.createSvgIcon(v.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"}),"MergeCellsHorizontal"),ble=j.createSvgIcon(v.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V19H11V15H13V19H19V5H13V9H11V5ZM15 9L18 12L15 15V13H9V15L6 12L9 9V11H15V9Z"}),"SplitCellsHorizontal"),vle=j.createSvgIcon(v.jsx("path",{d:"M4 21h15.893c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2zm0-2v-5h4v5H4zM14 7v5h-4V7h4zM8 7v5H4V7h4zm2 12v-5h4v5h-4zm6 0v-5h3.894v5H16zm3.893-7H16V7h3.893v5z"}),"Table");let m0,g0;function xle(){return m0===void 0&&(m0=navigator.platform.includes("Mac")),m0}function Sle(){return xle()?"⌘":"Ctrl"}function Cle(){return g0===void 0&&(g0=window&&"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),g0}const wle=Yt({name:{MenuButtonTooltip:oo}})(t=>({titleContainer:{textAlign:"center"},label:{fontSize:t.typography.pxToRem(13)},shortcutKey:{fontSize:t.typography.pxToRem(12),border:`1px solid ${j.alpha(t.palette.text.secondary,.2)}`,backgroundColor:j.alpha(t.palette.background.paper,.3),height:"19px",lineHeight:"19px",padding:"0 4px",minWidth:17,borderRadius:t.shape.borderRadius,display:"inline-block","&:not(:first-of-type)":{marginLeft:1}}}));function oo({label:t,shortcutKeys:e,placement:n="top",contentWrapperClassName:r,children:o,...i}){const{classes:s}=wle();return v.jsx(j.Tooltip,{title:t||e&&e.length>0?v.jsxs("div",{className:s.titleContainer,children:[v.jsx("div",{className:s.label,children:t}),e&&e.length>0&&v.jsx(j.Typography,{variant:"body2",component:"div",children:e.map((a,l)=>v.jsx("span",{className:s.shortcutKey,children:a==="mod"?Sle():a},l))})]}):"",placement:n,arrow:!0,...i,children:v.jsx("span",{className:r,children:o})})}const Kc="1.25rem",Tle=Yt({name:{MenuButton:mt}})({root:{[`&& .${j.toggleButtonClasses.root}`]:{border:"none",padding:5}},menuButtonIcon:{fontSize:Kc}});function mt({tooltipLabel:t,tooltipShortcutKeys:e,IconComponent:n,buttonRef:r,children:o,...i}){const{classes:s}=Tle();return v.jsx("span",{className:s.root,children:v.jsx(oo,{label:t,shortcutKeys:e,children:v.jsx(j.ToggleButton,{ref:r,size:"small",value:t,...i,children:o??(n&&v.jsx(n,{className:s.menuButtonIcon}))})})})}const _le=Yt({name:{MenuControlsContainer:gh}})(t=>({root:{display:"flex",rowGap:t.spacing(.3),columnGap:t.spacing(.3),alignItems:"center",flexWrap:"wrap"}}));function gh({children:t,className:e,debounced:n,DebounceProps:r}){const{classes:o,cx:i}=_le(),s=v.jsx("div",{className:i(o.root,e),children:t});return n?v.jsx(x1,{...r,children:s}):s}function kle({className:t,labels:e}){var n,r,o,i,s,a,l,u,f,p,m,g,y;const b=vt();return v.jsxs(gh,{className:t,children:[v.jsx(mt,{tooltipLabel:(n=e==null?void 0:e.insertColumnBefore)!==null&&n!==void 0?n:"Insert column before",IconComponent:dle,onClick:()=>b==null?void 0:b.chain().focus().addColumnBefore().run(),disabled:!(b!=null&&b.can().addColumnBefore())}),v.jsx(mt,{tooltipLabel:(r=e==null?void 0:e.insertColumnAfter)!==null&&r!==void 0?r:"Insert column after",IconComponent:fle,onClick:()=>b==null?void 0:b.chain().focus().addColumnAfter().run(),disabled:!(b!=null&&b.can().addColumnAfter())}),v.jsx(mt,{tooltipLabel:(o=e==null?void 0:e.deleteColumn)!==null&&o!==void 0?o:"Delete column",IconComponent:sle,onClick:()=>b==null?void 0:b.chain().focus().deleteColumn().run(),disabled:!(b!=null&&b.can().deleteColumn())}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(i=e==null?void 0:e.insertRowAbove)!==null&&i!==void 0?i:"Insert row above",IconComponent:hle,onClick:()=>b==null?void 0:b.chain().focus().addRowBefore().run(),disabled:!(b!=null&&b.can().addRowBefore())}),v.jsx(mt,{tooltipLabel:(s=e==null?void 0:e.insertRowBelow)!==null&&s!==void 0?s:"Insert row below",IconComponent:ple,onClick:()=>b==null?void 0:b.chain().focus().addRowAfter().run(),disabled:!(b!=null&&b.can().addRowAfter())}),v.jsx(mt,{tooltipLabel:(a=e==null?void 0:e.deleteRow)!==null&&a!==void 0?a:"Delete row",IconComponent:ale,onClick:()=>b==null?void 0:b.chain().focus().deleteRow().run(),disabled:!(b!=null&&b.can().deleteRow())}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(l=e==null?void 0:e.mergeCells)!==null&&l!==void 0?l:"Merge cells",IconComponent:yle,onClick:()=>b==null?void 0:b.chain().focus().mergeCells().run(),disabled:!(b!=null&&b.can().mergeCells())}),v.jsx(mt,{tooltipLabel:(u=e==null?void 0:e.splitCell)!==null&&u!==void 0?u:"Split cell",IconComponent:ble,onClick:()=>b==null?void 0:b.chain().focus().splitCell().run(),disabled:!(b!=null&&b.can().splitCell())}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(f=e==null?void 0:e.toggleHeaderRow)!==null&&f!==void 0?f:"Toggle header row",IconComponent:gle,onClick:()=>b==null?void 0:b.chain().focus().toggleHeaderRow().run(),disabled:!(b!=null&&b.can().toggleHeaderRow())}),v.jsx(mt,{tooltipLabel:(p=e==null?void 0:e.toggleHeaderColumn)!==null&&p!==void 0?p:"Toggle header column",IconComponent:mle,onClick:()=>b==null?void 0:b.chain().focus().toggleHeaderColumn().run(),disabled:!(b!=null&&b.can().toggleHeaderColumn())}),v.jsx(mt,{tooltipLabel:(m=e==null?void 0:e.toggleHeaderCell)!==null&&m!==void 0?m:"Toggle header cell",IconComponent:Yq,onClick:()=>b==null?void 0:b.chain().focus().toggleHeaderCell().run(),disabled:!(b!=null&&b.can().toggleHeaderCell()),selected:(g=b==null?void 0:b.isActive("tableHeader"))!==null&&g!==void 0?g:!1}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(y=e==null?void 0:e.deleteTable)!==null&&y!==void 0?y:"Delete table",IconComponent:r8,onClick:()=>b==null?void 0:b.chain().focus().deleteTable().run(),disabled:!(b!=null&&b.can().deleteTable())})]})}const Ele=Yt({name:{TableBubbleMenu:GP}})(t=>({controls:{maxWidth:"90vw",padding:t.spacing(.5,1)}}));function GP({disableDebounce:t=!1,DebounceProps:e,labels:n,...r}){const o=vt(),{classes:i}=Ele(),s=UP({editor:o}),a=J.useMemo(()=>o?{getBoundingClientRect:()=>{const u=o.isActive("table")?Zx(o.state.selection.$anchor,g=>g.type.name==="table"):null;if(u){const g=o.view.nodeDOM(u.pos),y=g==null?void 0:g.querySelector("table");if(y)return y.getBoundingClientRect()}const{ranges:f}=o.state.selection,p=Math.min(...f.map(g=>g.$from.pos)),m=Math.max(...f.map(g=>g.$to.pos));return HD(o.view,p,m)}}:null,[o]);if(!(o!=null&&o.isEditable))return null;const l=v.jsx(kle,{className:i.controls,labels:n});return v.jsx(hh,{editor:o,open:s&&o.isActive("table"),anchorEl:a,placement:"top-start",fallbackPlacements:["bottom-start","top","bottom","top-end","bottom-end"],flipPadding:{top:35,left:8,right:8,bottom:-1/0},...r,children:t?l:v.jsx(x1,{...e,children:l})})}function gl(){return(gl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function S1(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}function bv(t){var e=J.useRef(t),n=J.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var ul=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},xc=function(t){return"touches"in t},vv=function(t){return t&&t.ownerDocument.defaultView||self},_O=function(t,e,n){var r=t.getBoundingClientRect(),o=xc(e)?function(i,s){for(var a=0;a<i.length;a++)if(i[a].identifier===s)return i[a];return i[0]}(e.touches,n):e;return{left:ul((o.pageX-(r.left+vv(t).pageXOffset))/r.width),top:ul((o.pageY-(r.top+vv(t).pageYOffset))/r.height)}},kO=function(t){!xc(t)&&t.preventDefault()},C1=J.memo(function(t){var e=t.onMove,n=t.onKey,r=S1(t,["onMove","onKey"]),o=J.useRef(null),i=bv(e),s=bv(n),a=J.useRef(null),l=J.useRef(!1),u=J.useMemo(function(){var g=function(S){kO(S),(xc(S)?S.touches.length>0:S.buttons>0)&&o.current?i(_O(o.current,S,a.current)):b(!1)},y=function(){return b(!1)};function b(S){var C=l.current,_=vv(o.current),T=S?_.addEventListener:_.removeEventListener;T(C?"touchmove":"mousemove",g),T(C?"touchend":"mouseup",y)}return[function(S){var C=S.nativeEvent,_=o.current;if(_&&(kO(C),!function(w,E){return E&&!xc(w)}(C,l.current)&&_)){if(xc(C)){l.current=!0;var T=C.changedTouches||[];T.length&&(a.current=T[0].identifier)}_.focus(),i(_O(_,C,a.current)),b(!0)}},function(S){var C=S.which||S.keyCode;C<37||C>40||(S.preventDefault(),s({left:C===39?.05:C===37?-.05:0,top:C===40?.05:C===38?-.05:0}))},b]},[s,i]),f=u[0],p=u[1],m=u[2];return J.useEffect(function(){return m},[m]),J.createElement("div",gl({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))}),vu=function(t){return t.filter(Boolean).join(" ")},w1=function(t){var e=t.color,n=t.left,r=t.top,o=r===void 0?.5:r,i=vu(["react-colorful__pointer",t.className]);return J.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},J.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},En=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},JP=function(t){return Rle(xv(t))},xv=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?En(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?En(parseInt(t.substring(6,8),16)/255,2):1}},ZP=function(t){return Ole(Mle(t))},XP=function(t){var e=t.s,n=t.v,r=t.a,o=(200-e)*n/100;return{h:En(t.h),s:En(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:En(o/2),a:En(r,2)}},Sv=function(t){var e=XP(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},y0=function(t){var e=XP(t);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},Mle=function(t){var e=t.h,n=t.s,r=t.v,o=t.a;e=e/360*6,n/=100,r/=100;var i=Math.floor(e),s=r*(1-n),a=r*(1-(e-i)*n),l=r*(1-(1-e+i)*n),u=i%6;return{r:En(255*[r,a,s,s,l,r][u]),g:En(255*[l,r,r,a,s,s][u]),b:En(255*[s,s,l,r,r,a][u]),a:En(o,2)}},Ad=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Ole=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=o<1?Ad(En(255*o)):"";return"#"+Ad(e)+Ad(n)+Ad(r)+i},Rle=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=Math.max(e,n,r),s=i-Math.min(e,n,r),a=s?i===e?(n-r)/s:i===n?2+(r-e)/s:4+(e-n)/s:0;return{h:En(60*(a<0?a+6:a)),s:En(i?s/i*100:0),v:En(i/255*100),a:o}},QP=J.memo(function(t){var e=t.hue,n=t.onChange,r=vu(["react-colorful__hue",t.className]);return J.createElement("div",{className:r},J.createElement(C1,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ul(e+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":En(e),"aria-valuemax":"360","aria-valuemin":"0"},J.createElement(w1,{className:"react-colorful__hue-pointer",left:e/360,color:Sv({h:e,s:100,v:100,a:1})})))}),eN=J.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:Sv({h:e.h,s:100,v:100,a:1})};return J.createElement("div",{className:"react-colorful__saturation",style:r},J.createElement(C1,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ul(e.s+100*o.left,0,100),v:ul(e.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+En(e.s)+"%, Brightness "+En(e.v)+"%"},J.createElement(w1,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Sv(e)})))}),tN=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},nN=function(t,e){return t.toLowerCase()===e.toLowerCase()||tN(xv(t),xv(e))};function rN(t,e,n){var r=bv(n),o=J.useState(function(){return t.toHsva(e)}),i=o[0],s=o[1],a=J.useRef({color:e,hsva:i});J.useEffect(function(){if(!t.equal(e,a.current.color)){var u=t.toHsva(e);a.current={hsva:u,color:e},s(u)}},[e,t]),J.useEffect(function(){var u;tN(i,a.current.hsva)||t.equal(u=t.fromHsva(i),a.current.color)||(a.current={hsva:i,color:u},r(u))},[i,t,r]);var l=J.useCallback(function(u){s(function(f){return Object.assign({},f,u)})},[]);return[i,l]}var Ale=typeof window<"u"?J.useLayoutEffect:J.useEffect,Ile=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},EO=new Map,oN=function(t){Ale(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!EO.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,EO.set(e,n);var r=Ile();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},Dle=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=S1(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oN(a);var l=rN(n,o,i),u=l[0],f=l[1],p=vu(["react-colorful",e]);return J.createElement("div",gl({},s,{ref:a,className:p}),J.createElement(eN,{hsva:u,onChange:f}),J.createElement(QP,{hue:u.h,onChange:f,className:"react-colorful__last-control"}))},Ple={defaultColor:"000",toHsva:JP,fromHsva:function(t){return ZP({h:t.h,s:t.s,v:t.v,a:1})},equal:nN},Nle=function(t){return J.createElement(Dle,gl({},t,{colorModel:Ple}))},Lle=function(t){var e=t.className,n=t.hsva,r=t.onChange,o={backgroundImage:"linear-gradient(90deg, "+y0(Object.assign({},n,{a:0}))+", "+y0(Object.assign({},n,{a:1}))+")"},i=vu(["react-colorful__alpha",e]),s=En(100*n.a);return J.createElement("div",{className:i},J.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),J.createElement(C1,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ul(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},J.createElement(w1,{className:"react-colorful__alpha-pointer",left:n.a,color:y0(n)})))},jle=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=S1(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oN(a);var l=rN(n,o,i),u=l[0],f=l[1],p=vu(["react-colorful",e]);return J.createElement("div",gl({},s,{ref:a,className:p}),J.createElement(eN,{hsva:u,onChange:f}),J.createElement(QP,{hue:u.h,onChange:f}),J.createElement(Lle,{hsva:u,onChange:f,className:"react-colorful__last-control"}))},$le={defaultColor:"0001",toHsva:JP,fromHsva:ZP,equal:nN},Fle=function(t){return J.createElement(jle,gl({},t,{colorModel:$le}))};function Ble(t){try{return j.rgbToHex(t)}catch{return null}}const T1=J.forwardRef(({value:t,label:e,padding:n,active:r,...o},i)=>{const{classes:s,cx:a,theme:l}=zle();return v.jsx("button",{ref:i,type:"button",style:{backgroundColor:t,padding:n},"aria-label":e??t,value:t,...o,className:a(s.root,!t&&s.colorNotSet,o.className),children:r&&v.jsx(Nq,{fontSize:"small",className:s.activeIcon,style:{color:t?l.palette.getContrastText(t):void 0}})})}),zle=Yt({name:{ColorSwatchButton:T1}})(t=>({root:{height:t.spacing(2.5),width:t.spacing(2.5),minWidth:t.spacing(2.5),borderRadius:t.shape.borderRadius,borderColor:t.palette.mode==="dark"?t.palette.grey[700]:t.palette.grey[400],borderStyle:"solid",borderWidth:1,cursor:"pointer",padding:0,backgroundClip:"content-box"},activeIcon:{height:"100%",width:"80%",verticalAlign:"middle"},colorNotSet:{background:`repeating-conic-gradient(
389
+ */var wO;function Vae(){return wO||(wO=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=J,e=mh;function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,o=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;function u(f,p,m,g,y){var b=i(null),S;b.current===null?(S={hasValue:!1,value:null},b.current=S):S=b.current;var C=a(function(){var E=!1,O,N,D=function(P){if(!E){E=!0,O=P;var B=g(P);if(y!==void 0&&S.hasValue){var z=S.value;if(y(z,B))return N=z,z}return N=B,B}var $=O,F=N;if(r($,P))return F;var q=g(P);return y!==void 0&&y(F,q)?F:(O=P,N=q,q)},L=m===void 0?null:m,M=function(){return D(p())},R=L===null?void 0:function(){return D(L())};return[M,R]},[p,m,g,y]),_=C[0],T=C[1],w=o(f,_,T);return s(function(){S.hasValue=!0,S.value=w},[w]),l(w),w}p0.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),p0}process.env.NODE_ENV==="production"?gv.exports=zae():gv.exports=Vae();var Hae=gv.exports;const Wae=typeof window<"u"?J.useLayoutEffect:J.useEffect;class qae{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(o=>o())},r=this.editor;return r.on("transaction",n),()=>{r.off("transaction",n)}}}}function Uae(t){var e;const[n]=J.useState(()=>new qae(t.editor)),r=Hae.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:Bae);return Wae(()=>n.watch(t.editor),[t.editor,n]),J.useDebugValue(r),r}const TO=process.env.NODE_ENV!=="production",yv=typeof window>"u",Kae=yv||!!(typeof window<"u"&&window.next);class g1{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return yv||Kae?(TO&&console.warn("Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."),null):this.createEditor();if(this.options.current.immediatelyRender&&yv&&TO)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var o,i;return(i=(o=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(o,...r)},onBlur:(...r)=>{var o,i;return(i=(o=this.options.current).onBlur)===null||i===void 0?void 0:i.call(o,...r)},onCreate:(...r)=>{var o,i;return(i=(o=this.options.current).onCreate)===null||i===void 0?void 0:i.call(o,...r)},onDestroy:(...r)=>{var o,i;return(i=(o=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(o,...r)},onFocus:(...r)=>{var o,i;return(i=(o=this.options.current).onFocus)===null||i===void 0?void 0:i.call(o,...r)},onSelectionUpdate:(...r)=>{var o,i;return(i=(o=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(o,...r)},onTransaction:(...r)=>{var o,i;return(i=(o=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(o,...r)},onUpdate:(...r)=>{var o,i;return(i=(o=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(o,...r)},onContentError:(...r)=>{var o,i;return(i=(o=this.options.current).onContentError)===null||i===void 0?void 0:i.call(o,...r)},onDrop:(...r)=>{var o,i;return(i=(o=this.options.current).onDrop)===null||i===void 0?void 0:i.call(o,...r)},onPaste:(...r)=>{var o,i;return(i=(o=this.options.current).onPaste)===null||i===void 0?void 0:i.call(o,...r)}};return new Roe(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((o,i)=>{var s;return o===((s=n.extensions)===null||s===void 0?void 0:s[i])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?g1.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,o)=>r===e[o]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function FP(t={},e=[]){const n=J.useRef(t);n.current=t;const[r]=J.useState(()=>new g1(n)),o=mh.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return J.useDebugValue(o),J.useEffect(r.onRender(e)),Uae({editor:o,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),o}const Yae=J.createContext({editor:null});Yae.Consumer;const BP=J.createContext({onDragStart:void 0}),zP=()=>J.useContext(BP),Gae=t=>{const e=t.as||"div",{nodeViewContentRef:n}=zP();return J.createElement(e,{...t,ref:n,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...t.style}})},y1=J.forwardRef((t,e)=>{const{onDragStart:n}=zP(),r=t.as||"div";return J.createElement(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function Jae(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function Zae(t){var e;return typeof t=="object"&&((e=t.$$typeof)===null||e===void 0?void 0:e.toString())==="Symbol(react.forward_ref)"}class VP{constructor(e,{editor:n,props:r={},as:o="div",className:i=""}){this.ref=null,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=n,this.props=r,this.element=document.createElement(o),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isInitialized?Es.flushSync(()=>{this.render()}):this.render()}render(){var e;const n=this.component,r=this.props,o=this.editor;(Jae(n)||Zae(n))&&(r.ref=i=>{this.ref=i}),this.reactElement=J.createElement(n,{...r}),(e=o==null?void 0:o.contentComponent)===null||e===void 0||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;const n=this.editor;(e=n==null?void 0:n.contentComponent)===null||e===void 0||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(n=>{this.element.setAttribute(n,e[n])})}}class Xae extends Aoe{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(u={})=>this.updateAttributes(u),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){const u=f=>f.charAt(0).toUpperCase()+f.substring(1);this.component.displayName=u(this.extension.name)}const o={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:u=>{u&&this.contentDOMElement&&u.firstChild!==this.contentDOMElement&&u.appendChild(this.contentDOMElement)}},i=this.component,s=J.memo(u=>J.createElement(BP.Provider,{value:o},J.createElement(i,u)));s.displayName="ReactNodeView",this.node.isLeaf?this.contentDOMElement=null:this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.style.whiteSpace="inherit");let a=this.node.isInline?"span":"div";this.options.as&&(a=this.options.as);const{className:l=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new VP(s,{editor:this.editor,props:e,as:a,className:`node-${this.node.type.name} ${l}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(!((e=this.renderer.element.firstElementChild)===null||e===void 0)&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){const{from:e,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(e<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,n,r){const o=i=>{this.renderer.updateProps(i),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const i=this.node,s=this.decorations,a=this.innerDecorations;return this.node=e,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:i,oldDecorations:s,newNode:e,newDecorations:n,oldInnerDecorations:a,innerDecorations:r,updateProps:()=>o({node:e,decorations:n,innerDecorations:r})})}return e===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=e,this.decorations=n,this.innerDecorations=r,o({node:e,decorations:n,innerDecorations:r})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const n=this.editor.extensionManager.attributes,r=$f(this.node,n);e=this.options.attrs({node:this.node,HTMLAttributes:r})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function b1(t,e){return n=>n.editor.contentComponent?new Xae(t,n,e):{}}const h0=ea("RichTextContent",["root","readonly","editable"]),Qae=Yt({name:{RichTextContent:v1}})(t=>({root:{"& .ProseMirror":{...SP(t)}},readonly:{},editable:{}}));function v1({className:t,classes:e={}}){const{classes:n,cx:r}=Qae(void 0,{props:{classes:e}}),o=vt(),i=J.useMemo(()=>r(h0.root,t,n.root,o!=null&&o.isEditable?[h0.editable,n.editable]:[h0.readonly,n.readonly]),[t,n,r,o==null?void 0:o.isEditable]);return v.jsx(j.Box,{className:i,component:$ae,editor:o})}function HP({editor:t,children:e}){return v.jsx(CP.Provider,{value:t,children:e})}const Oa=ea("FieldContainer",["root","outlined","standard","focused","disabled","notchedOutline"]),ele=Yt({name:{FieldContainer:WP},uniqId:"Os7ZPW"})((t,e,n)=>({root:{},outlined:{borderRadius:t.shape.borderRadius,padding:1,position:"relative",[`&:hover .${n.notchedOutline}`]:{borderColor:t.palette.text.primary},[`&.${n.focused} .${n.notchedOutline}`]:{borderColor:t.palette.primary.main,borderWidth:2},[`&.${n.disabled} .${n.notchedOutline}`]:{borderColor:t.palette.action.disabled}},standard:{},focused:{},disabled:{},notchedOutline:{position:"absolute",inset:0,borderRadius:"inherit",borderColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)",borderStyle:"solid",borderWidth:1,pointerEvents:"none",overflow:"hidden",zIndex:zf.NOTCHED_OUTLINE}}));function WP({variant:t="outlined",children:e,focused:n,disabled:r,classes:o={},className:i}){const{classes:s,cx:a}=ele(void 0,{props:{classes:o}});return v.jsxs("div",{className:a(Oa.root,s.root,t==="outlined"?[Oa.outlined,s.outlined]:[Oa.standard,s.standard],n&&[Oa.focused,s.focused],r&&[Oa.disabled,s.disabled],i),children:[e,t==="outlined"&&v.jsx("div",{className:a(Oa.notchedOutline,s.notchedOutline),"aria-hidden":!0})]})}var tle=IA();const qP=ir(tle);function UP({editor:t,wait:e=250}){const[n,r]=J.useState(!!(t!=null&&t.isFocused)),o=J.useMemo(()=>qP(i=>{r(i)},e),[e]);return J.useEffect(()=>{const i=!!(t!=null&&t.isFocused);return o(i),i&&o.flush(),()=>{o.cancel()}},[t==null?void 0:t.isFocused,o]),n}class x1 extends J.Component{constructor(e){var n,r;super(e),this.updateDebounced=qP(this.forceUpdate,(n=e.wait)!==null&&n!==void 0?n:170,(r=e.options)!==null&&r!==void 0?r:{leading:!0,trailing:!0,maxWait:300})}shouldComponentUpdate(){return this.updateDebounced(),!1}componentWillUnmount(){this.updateDebounced.cancel()}render(){return this.props.children}}const Ra=ea("RichTextField",["root","standard","outlined","menuBar","menuBarContent","content"]),nle=Yt({name:{RichTextField:KP},uniqId:"E2Alw3"})((t,e,n)=>({root:{},standard:{[`& .${n.content}`]:{padding:t.spacing(1.5,0)},[`& .${n.menuBarContent}`]:{padding:t.spacing(1,0)}},outlined:{[`& .${n.content}`]:{padding:t.spacing(1.5)},[`& .${n.menuBarContent}`]:{padding:t.spacing(1,1.5)}},menuBar:{},menuBarContent:{},content:{}}));function KP({variant:t="outlined",controls:e,disableDebounceRenderControls:n=!1,disabled:r,className:o,classes:i={},footer:s,MenuBarProps:a,RichTextContentProps:l}){var u,f;const{classes:p,cx:m}=nle(void 0,{props:{classes:i}}),g=vt(),y=UP({editor:g});return v.jsxs(WP,{variant:t,focused:!r&&y,disabled:r,className:m(Ra.root,p.root,t==="outlined"?[Ra.outlined,p.outlined]:[Ra.standard,p.standard],o),children:[e&&v.jsx(EP,{...a,classes:{...a==null?void 0:a.classes,root:m(Ra.menuBar,p.menuBar,(u=a==null?void 0:a.classes)===null||u===void 0?void 0:u.root),content:m(Ra.content,p.menuBarContent,(f=a==null?void 0:a.classes)===null||f===void 0?void 0:f.content)},children:n?e:v.jsx(x1,{children:e})}),v.jsx(v1,{...l,className:m(Ra.content,p.content,l==null?void 0:l.className)}),s]})}const YP=J.forwardRef(function({className:e,renderControls:n,RichTextFieldProps:r={},children:o,editorDependencies:i=[],editable:s=!0,...a},l){const u=FP({editable:s,...a},i);return J.useImperativeHandle(l,()=>({editor:u}),[u]),J.useEffect(()=>{!u||u.isDestroyed||u.isEditable===s||queueMicrotask(()=>{u.setEditable(s)})},[s,u]),v.jsxs(HP,{editor:u,children:[v.jsx(KP,{disabled:!s,controls:n==null?void 0:n(u),className:e,...r}),o==null?void 0:o(u)]})});function rle(t){const e=FP({...t,editable:!1}),n=J.useRef(t.content);return J.useEffect(()=>{!e||e.isDestroyed||t.content===void 0||t.content===n.current||queueMicrotask(()=>{t.content!==void 0&&e.commands.setContent(t.content)})},[t.content,e]),J.useEffect(()=>{n.current=t.content},[t.content]),v.jsx(HP,{editor:e,children:v.jsx(v1,{})})}function ole(t){return t.content?v.jsx(rle,{...t}):null}const ile=j.createSvgIcon(v.jsxs(v.Fragment,{children:[v.jsx("path",{d:"M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"}),v.jsx("path",{d:"M9.293 9.293 5.586 13l3.707 3.707 1.414-1.414L8.414 13l2.293-2.293zm5.414 0-1.414 1.414L15.586 13l-2.293 2.293 1.414 1.414L18.414 13z"})]}),"CodeBlock"),sle=j.createSvgIcon(v.jsx("path",{d:"M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"}),"DeleteColumn"),ale=j.createSvgIcon(v.jsx("path",{d:"M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"}),"DeleteRow"),lle=j.createSvgIcon(v.jsx("path",{d:"M 2 20 h 20 v 4 H 2 v -4 z"}),"FormatColorBar"),cle=j.createSvgIcon(v.jsx("path",{d:"M 5.49 17 h 2.42 l 1.27 -3.58 h 5.65 L 16.09 17 h 2.42 L 13.25 3 h -2.5 L 5.49 17 z m 4.42 -5.61 l 2.03 -5.79 h 0.12 l 2.03 5.79 H 9.91 z"}),"FormatColorTextNoBar"),ule=j.createSvgIcon(v.jsx("path",{d:"M 10.6 8 l 5.4 5.425 l -4 4 q -0.6 0.6 -1.413 0.6 t -1.412 -0.6 L 8.5 18 h -5 l 3.15 -3.125 q -0.6 -0.6 -0.625 -1.438 T 6.6 12 l 4 -4 Z M 12 6.575 L 16 2.6 q 0.6 -0.6 1.413 -0.6 t 1.412 0.6 l 2.6 2.575 q 0.6 0.6 0.6 1.413 T 21.425 8 l -4 4 L 12 6.575 Z"}),"FormatInkHighlighterNoBar"),dle=j.createSvgIcon(v.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"}),"InsertColumnLeft"),fle=j.createSvgIcon(v.jsx("path",{d:"M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"}),"InsertColumnRight"),ple=j.createSvgIcon(v.jsx("path",{d:"M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"}),"InsertRowBottom"),hle=j.createSvgIcon(v.jsx("path",{d:"M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"}),"InsertRowTop"),mle=j.createSvgIcon(v.jsx("path",{d:"M12 5V19H19V5H12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"}),"LayoutColumnFill"),gle=j.createSvgIcon(v.jsx("path",{d:"M19 12H5V19H19V12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"}),"LayoutRowFill"),yle=j.createSvgIcon(v.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"}),"MergeCellsHorizontal"),ble=j.createSvgIcon(v.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V19H11V15H13V19H19V5H13V9H11V5ZM15 9L18 12L15 15V13H9V15L6 12L9 9V11H15V9Z"}),"SplitCellsHorizontal"),vle=j.createSvgIcon(v.jsx("path",{d:"M4 21h15.893c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2zm0-2v-5h4v5H4zM14 7v5h-4V7h4zM8 7v5H4V7h4zm2 12v-5h4v5h-4zm6 0v-5h3.894v5H16zm3.893-7H16V7h3.893v5z"}),"Table");let m0,g0;function xle(){return m0===void 0&&(m0=navigator.platform.includes("Mac")),m0}function Sle(){return xle()?"⌘":"Ctrl"}function Cle(){return g0===void 0&&(g0=window&&"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),g0}const wle=Yt({name:{MenuButtonTooltip:oo}})(t=>({titleContainer:{textAlign:"center"},label:{fontSize:t.typography.pxToRem(13)},shortcutKey:{fontSize:t.typography.pxToRem(12),border:`1px solid ${j.alpha(t.palette.text.secondary,.2)}`,backgroundColor:j.alpha(t.palette.background.paper,.3),height:"19px",lineHeight:"19px",padding:"0 4px",minWidth:17,borderRadius:t.shape.borderRadius,display:"inline-block","&:not(:first-of-type)":{marginLeft:1}}}));function oo({label:t,shortcutKeys:e,placement:n="top",contentWrapperClassName:r,children:o,...i}){const{classes:s}=wle();return v.jsx(j.Tooltip,{title:t||e&&e.length>0?v.jsxs("div",{className:s.titleContainer,children:[v.jsx("div",{className:s.label,children:t}),e&&e.length>0&&v.jsx(j.Typography,{variant:"body2",component:"div",children:e.map((a,l)=>v.jsx("span",{className:s.shortcutKey,children:a==="mod"?Sle():a},l))})]}):"",placement:n,arrow:!0,...i,children:v.jsx("span",{className:r,children:o})})}const Kc="1.25rem",Tle=Yt({name:{MenuButton:mt}})({root:{[`&& .${j.toggleButtonClasses.root}`]:{border:"none",padding:5}},menuButtonIcon:{fontSize:Kc}});function mt({tooltipLabel:t,tooltipShortcutKeys:e,IconComponent:n,buttonRef:r,children:o,...i}){const{classes:s}=Tle();return v.jsx("span",{className:s.root,children:v.jsx(oo,{label:t,shortcutKeys:e,children:v.jsx(j.ToggleButton,{ref:r,size:"small",value:t,...i,children:o??(n&&v.jsx(n,{className:s.menuButtonIcon}))})})})}const _le=Yt({name:{MenuControlsContainer:gh}})(t=>({root:{display:"flex",rowGap:t.spacing(.3),columnGap:t.spacing(.3),alignItems:"center",flexWrap:"wrap"}}));function gh({children:t,className:e,debounced:n,DebounceProps:r}){const{classes:o,cx:i}=_le(),s=v.jsx("div",{className:i(o.root,e),children:t});return n?v.jsx(x1,{...r,children:s}):s}function kle({className:t,labels:e}){var n,r,o,i,s,a,l,u,f,p,m,g,y;const b=vt();return v.jsxs(gh,{className:t,children:[v.jsx(mt,{tooltipLabel:(n=e==null?void 0:e.insertColumnBefore)!==null&&n!==void 0?n:"Insert column before",IconComponent:dle,onClick:()=>b==null?void 0:b.chain().focus().addColumnBefore().run(),disabled:!(b!=null&&b.can().addColumnBefore())}),v.jsx(mt,{tooltipLabel:(r=e==null?void 0:e.insertColumnAfter)!==null&&r!==void 0?r:"Insert column after",IconComponent:fle,onClick:()=>b==null?void 0:b.chain().focus().addColumnAfter().run(),disabled:!(b!=null&&b.can().addColumnAfter())}),v.jsx(mt,{tooltipLabel:(o=e==null?void 0:e.deleteColumn)!==null&&o!==void 0?o:"Delete column",IconComponent:sle,onClick:()=>b==null?void 0:b.chain().focus().deleteColumn().run(),disabled:!(b!=null&&b.can().deleteColumn())}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(i=e==null?void 0:e.insertRowAbove)!==null&&i!==void 0?i:"Insert row above",IconComponent:hle,onClick:()=>b==null?void 0:b.chain().focus().addRowBefore().run(),disabled:!(b!=null&&b.can().addRowBefore())}),v.jsx(mt,{tooltipLabel:(s=e==null?void 0:e.insertRowBelow)!==null&&s!==void 0?s:"Insert row below",IconComponent:ple,onClick:()=>b==null?void 0:b.chain().focus().addRowAfter().run(),disabled:!(b!=null&&b.can().addRowAfter())}),v.jsx(mt,{tooltipLabel:(a=e==null?void 0:e.deleteRow)!==null&&a!==void 0?a:"Delete row",IconComponent:ale,onClick:()=>b==null?void 0:b.chain().focus().deleteRow().run(),disabled:!(b!=null&&b.can().deleteRow())}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(l=e==null?void 0:e.mergeCells)!==null&&l!==void 0?l:"Merge cells",IconComponent:yle,onClick:()=>b==null?void 0:b.chain().focus().mergeCells().run(),disabled:!(b!=null&&b.can().mergeCells())}),v.jsx(mt,{tooltipLabel:(u=e==null?void 0:e.splitCell)!==null&&u!==void 0?u:"Split cell",IconComponent:ble,onClick:()=>b==null?void 0:b.chain().focus().splitCell().run(),disabled:!(b!=null&&b.can().splitCell())}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(f=e==null?void 0:e.toggleHeaderRow)!==null&&f!==void 0?f:"Toggle header row",IconComponent:gle,onClick:()=>b==null?void 0:b.chain().focus().toggleHeaderRow().run(),disabled:!(b!=null&&b.can().toggleHeaderRow())}),v.jsx(mt,{tooltipLabel:(p=e==null?void 0:e.toggleHeaderColumn)!==null&&p!==void 0?p:"Toggle header column",IconComponent:mle,onClick:()=>b==null?void 0:b.chain().focus().toggleHeaderColumn().run(),disabled:!(b!=null&&b.can().toggleHeaderColumn())}),v.jsx(mt,{tooltipLabel:(m=e==null?void 0:e.toggleHeaderCell)!==null&&m!==void 0?m:"Toggle header cell",IconComponent:Yq,onClick:()=>b==null?void 0:b.chain().focus().toggleHeaderCell().run(),disabled:!(b!=null&&b.can().toggleHeaderCell()),selected:(g=b==null?void 0:b.isActive("tableHeader"))!==null&&g!==void 0?g:!1}),v.jsx(_n,{}),v.jsx(mt,{tooltipLabel:(y=e==null?void 0:e.deleteTable)!==null&&y!==void 0?y:"Delete table",IconComponent:r8,onClick:()=>b==null?void 0:b.chain().focus().deleteTable().run(),disabled:!(b!=null&&b.can().deleteTable())})]})}const Ele=Yt({name:{TableBubbleMenu:GP}})(t=>({controls:{maxWidth:"90vw",padding:t.spacing(.5,1)}}));function GP({disableDebounce:t=!1,DebounceProps:e,labels:n,...r}){const o=vt(),{classes:i}=Ele(),s=UP({editor:o}),a=J.useMemo(()=>o?{getBoundingClientRect:()=>{const u=o.isActive("table")?Zx(o.state.selection.$anchor,g=>g.type.name==="table"):null;if(u){const g=o.view.nodeDOM(u.pos),y=g==null?void 0:g.querySelector("table");if(y)return y.getBoundingClientRect()}const{ranges:f}=o.state.selection,p=Math.min(...f.map(g=>g.$from.pos)),m=Math.max(...f.map(g=>g.$to.pos));return HD(o.view,p,m)}}:null,[o]);if(!(o!=null&&o.isEditable))return null;const l=v.jsx(kle,{className:i.controls,labels:n});return v.jsx(hh,{editor:o,open:s&&o.isActive("table"),anchorEl:a,placement:"top-start",fallbackPlacements:["bottom-start","top","bottom","top-end","bottom-end"],flipPadding:{top:35,left:8,right:8,bottom:-1/0},...r,children:t?l:v.jsx(x1,{...e,children:l})})}function gl(){return(gl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function S1(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}function bv(t){var e=J.useRef(t),n=J.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var ul=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},xc=function(t){return"touches"in t},vv=function(t){return t&&t.ownerDocument.defaultView||self},_O=function(t,e,n){var r=t.getBoundingClientRect(),o=xc(e)?function(i,s){for(var a=0;a<i.length;a++)if(i[a].identifier===s)return i[a];return i[0]}(e.touches,n):e;return{left:ul((o.pageX-(r.left+vv(t).pageXOffset))/r.width),top:ul((o.pageY-(r.top+vv(t).pageYOffset))/r.height)}},kO=function(t){!xc(t)&&t.preventDefault()},C1=J.memo(function(t){var e=t.onMove,n=t.onKey,r=S1(t,["onMove","onKey"]),o=J.useRef(null),i=bv(e),s=bv(n),a=J.useRef(null),l=J.useRef(!1),u=J.useMemo(function(){var g=function(S){kO(S),(xc(S)?S.touches.length>0:S.buttons>0)&&o.current?i(_O(o.current,S,a.current)):b(!1)},y=function(){return b(!1)};function b(S){var C=l.current,_=vv(o.current),T=S?_.addEventListener:_.removeEventListener;T(C?"touchmove":"mousemove",g),T(C?"touchend":"mouseup",y)}return[function(S){var C=S.nativeEvent,_=o.current;if(_&&(kO(C),!function(w,E){return E&&!xc(w)}(C,l.current)&&_)){if(xc(C)){l.current=!0;var T=C.changedTouches||[];T.length&&(a.current=T[0].identifier)}_.focus(),i(_O(_,C,a.current)),b(!0)}},function(S){var C=S.which||S.keyCode;C<37||C>40||(S.preventDefault(),s({left:C===39?.05:C===37?-.05:0,top:C===40?.05:C===38?-.05:0}))},b]},[s,i]),f=u[0],p=u[1],m=u[2];return J.useEffect(function(){return m},[m]),J.createElement("div",gl({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))}),vu=function(t){return t.filter(Boolean).join(" ")},w1=function(t){var e=t.color,n=t.left,r=t.top,o=r===void 0?.5:r,i=vu(["react-colorful__pointer",t.className]);return J.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},J.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},En=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},JP=function(t){return Rle(xv(t))},xv=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?En(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?En(parseInt(t.substring(6,8),16)/255,2):1}},ZP=function(t){return Ole(Mle(t))},XP=function(t){var e=t.s,n=t.v,r=t.a,o=(200-e)*n/100;return{h:En(t.h),s:En(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:En(o/2),a:En(r,2)}},Sv=function(t){var e=XP(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},y0=function(t){var e=XP(t);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},Mle=function(t){var e=t.h,n=t.s,r=t.v,o=t.a;e=e/360*6,n/=100,r/=100;var i=Math.floor(e),s=r*(1-n),a=r*(1-(e-i)*n),l=r*(1-(1-e+i)*n),u=i%6;return{r:En(255*[r,a,s,s,l,r][u]),g:En(255*[l,r,r,a,s,s][u]),b:En(255*[s,s,l,r,r,a][u]),a:En(o,2)}},Ad=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Ole=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=o<1?Ad(En(255*o)):"";return"#"+Ad(e)+Ad(n)+Ad(r)+i},Rle=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=Math.max(e,n,r),s=i-Math.min(e,n,r),a=s?i===e?(n-r)/s:i===n?2+(r-e)/s:4+(e-n)/s:0;return{h:En(60*(a<0?a+6:a)),s:En(i?s/i*100:0),v:En(i/255*100),a:o}},QP=J.memo(function(t){var e=t.hue,n=t.onChange,r=vu(["react-colorful__hue",t.className]);return J.createElement("div",{className:r},J.createElement(C1,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ul(e+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":En(e),"aria-valuemax":"360","aria-valuemin":"0"},J.createElement(w1,{className:"react-colorful__hue-pointer",left:e/360,color:Sv({h:e,s:100,v:100,a:1})})))}),eN=J.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:Sv({h:e.h,s:100,v:100,a:1})};return J.createElement("div",{className:"react-colorful__saturation",style:r},J.createElement(C1,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ul(e.s+100*o.left,0,100),v:ul(e.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+En(e.s)+"%, Brightness "+En(e.v)+"%"},J.createElement(w1,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Sv(e)})))}),tN=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},nN=function(t,e){return t.toLowerCase()===e.toLowerCase()||tN(xv(t),xv(e))};function rN(t,e,n){var r=bv(n),o=J.useState(function(){return t.toHsva(e)}),i=o[0],s=o[1],a=J.useRef({color:e,hsva:i});J.useEffect(function(){if(!t.equal(e,a.current.color)){var u=t.toHsva(e);a.current={hsva:u,color:e},s(u)}},[e,t]),J.useEffect(function(){var u;tN(i,a.current.hsva)||t.equal(u=t.fromHsva(i),a.current.color)||(a.current={hsva:i,color:u},r(u))},[i,t,r]);var l=J.useCallback(function(u){s(function(f){return Object.assign({},f,u)})},[]);return[i,l]}var Ale=typeof window<"u"?J.useLayoutEffect:J.useEffect,Ile=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},EO=new Map,oN=function(t){Ale(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!EO.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,EO.set(e,n);var r=Ile();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},Dle=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=S1(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oN(a);var l=rN(n,o,i),u=l[0],f=l[1],p=vu(["react-colorful",e]);return J.createElement("div",gl({},s,{ref:a,className:p}),J.createElement(eN,{hsva:u,onChange:f}),J.createElement(QP,{hue:u.h,onChange:f,className:"react-colorful__last-control"}))},Ple={defaultColor:"000",toHsva:JP,fromHsva:function(t){return ZP({h:t.h,s:t.s,v:t.v,a:1})},equal:nN},Nle=function(t){return J.createElement(Dle,gl({},t,{colorModel:Ple}))},Lle=function(t){var e=t.className,n=t.hsva,r=t.onChange,o={backgroundImage:"linear-gradient(90deg, "+y0(Object.assign({},n,{a:0}))+", "+y0(Object.assign({},n,{a:1}))+")"},i=vu(["react-colorful__alpha",e]),s=En(100*n.a);return J.createElement("div",{className:i},J.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),J.createElement(C1,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ul(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},J.createElement(w1,{className:"react-colorful__alpha-pointer",left:n.a,color:y0(n)})))},jle=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=S1(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oN(a);var l=rN(n,o,i),u=l[0],f=l[1],p=vu(["react-colorful",e]);return J.createElement("div",gl({},s,{ref:a,className:p}),J.createElement(eN,{hsva:u,onChange:f}),J.createElement(QP,{hue:u.h,onChange:f}),J.createElement(Lle,{hsva:u,onChange:f,className:"react-colorful__last-control"}))},$le={defaultColor:"0001",toHsva:JP,fromHsva:ZP,equal:nN},Fle=function(t){return J.createElement(jle,gl({},t,{colorModel:$le}))};function Ble(t){try{return j.rgbToHex(t)}catch{return null}}const T1=J.forwardRef(({value:t,label:e,padding:n,active:r,...o},i)=>{const{classes:s,cx:a,theme:l}=zle();return v.jsx("button",{ref:i,type:"button",style:{backgroundColor:t,padding:n},"aria-label":e??t,value:t,...o,className:a(s.root,!t&&s.colorNotSet,o.className),children:r&&v.jsx(Nq,{fontSize:"small",className:s.activeIcon,style:{color:t?l.palette.getContrastText(t):void 0}})})}),zle=Yt({name:{ColorSwatchButton:T1}})(t=>({root:{height:t.spacing(2.5),width:t.spacing(2.5),minWidth:t.spacing(2.5),borderRadius:t.shape.borderRadius,borderColor:t.palette.mode==="dark"?t.palette.grey[700]:t.palette.grey[400],borderStyle:"solid",borderWidth:1,cursor:"pointer",padding:0,backgroundClip:"content-box"},activeIcon:{height:"100%",width:"80%",verticalAlign:"middle"},colorNotSet:{background:`repeating-conic-gradient(
390
390
  ${t.palette.grey[400]} 0% 25%, ${t.palette.common.white} 0% 50%)
391
391
  50% / 12px 12px`,backgroundClip:"content-box"}}));T1.displayName="ColorSwatchButton";const Id=ea("ColorPicker",["gradientPicker","colorTextInput","swatchContainer"]),Vle=Yt({name:{ColorPicker:iN}})(t=>({gradientPicker:{"&&":{width:"100%"}},colorTextInput:{marginTop:t.spacing(1)},swatchContainer:{display:"flex",flexWrap:"wrap",gap:5,marginTop:t.spacing(1)}}));function iN({value:t,onChange:e,swatchColors:n,colorToHex:r=Ble,disableAlpha:o=!1,labels:i={},classes:s={}}){const{classes:a,cx:l}=Vle(void 0,{props:{classes:s}}),{textFieldPlaceholder:u='Ex: "#7cb5ec"'}=i,f=J.useRef(null);J.useEffect(()=>{f.current&&f.current!==document.activeElement&&(f.current.value=t)},[t]);const p=(n??[]).map(g=>typeof g=="string"?{value:g}:g),m=r(t);return v.jsxs(v.Fragment,{children:[o?v.jsx(Nle,{color:m??"#000000",className:l(Id.gradientPicker,a.gradientPicker),onChange:g=>{e(g,"gradient")}}):v.jsx(Fle,{color:m??"#000000",className:l(Id.gradientPicker,a.gradientPicker),onChange:g=>{e(g,"gradient")}}),v.jsx(j.TextField,{placeholder:u,variant:"outlined",size:"small",defaultValue:t||"",inputRef:f,spellCheck:!1,className:l(Id.colorTextInput,a.colorTextInput),onChange:g=>{const y=g.target.value,b=r(y);b&&e(b,"text")},fullWidth:!0}),p.length>0&&v.jsx("div",{className:l(Id.swatchContainer,a.swatchContainer),children:p.map(g=>v.jsx(T1,{value:g.value,label:g.label,onClick:()=>{var y;e((y=g.value)!==null&&y!==void 0?y:"","swatch")},active:g.value==t||!g.value&&!t||!!g.value&&!!m&&r(g.value)===m},g.value))})]})}function Hle({value:t,onCancel:e,onSave:n,swatchColors:r,labels:o={},ColorPickerProps:i}){const{removeColorButton:s="None",removeColorButtonTooltipTitle:a="",cancelButton:l="Cancel",saveButton:u="OK"}=o,[f,p]=J.useState(t);return J.useEffect(()=>{p(t)},[t]),v.jsxs(v.Fragment,{children:[v.jsx(iN,{swatchColors:r,value:f,onChange:m=>{p(m)},labels:o,...i}),v.jsxs(j.Stack,{direction:"row",justifyContent:"space-between",sx:{mt:1},children:[v.jsx(j.Tooltip,{title:a,arrow:!0,children:v.jsx(j.Button,{onClick:()=>{n("")},size:"small",children:s})}),v.jsx(j.Button,{onClick:e,size:"small",children:l}),v.jsx(j.Button,{onClick:()=>{n(f)},size:"small",children:u})]})]})}const Wle=Yt({name:{ColorPickerPopper:sN}})(t=>({root:{zIndex:t.zIndex.tooltip,width:235}}));function sN({value:t,onSave:e,onCancel:n,swatchColors:r,ColorPickerProps:o,labels:i,...s}){const{classes:a,cx:l}=Wle();return v.jsx(j.Popper,{transition:!0,placement:"bottom-start",...s,className:l(a.root,s.className),children:({TransitionProps:u})=>v.jsx(j.Fade,{...u,timeout:100,children:v.jsx("div",{children:v.jsx(j.ClickAwayListener,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:n,children:v.jsx(j.Paper,{elevation:5,sx:{p:2.5,pb:1},children:v.jsx(Hle,{value:t||"",onSave:e,onCancel:n,swatchColors:r,ColorPickerProps:o,labels:i})})})})})})}function qle({...t}){const e=vt();return v.jsx(mt,{tooltipLabel:"Insert image",IconComponent:Dq,disabled:!(e!=null&&e.isEditable)||!e.can().setImage({src:"http://example.com"}),...t})}function Ule(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Insert table",IconComponent:vle,disabled:!(e!=null&&e.isEditable)||!e.can().insertTable(),onClick:()=>e==null?void 0:e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),...t})}function Kle(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Blockquote",tooltipShortcutKeys:["mod","Shift","B"],IconComponent:e8,selected:(e=n==null?void 0:n.isActive("blockquote"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleBlockquote(),onClick:()=>n==null?void 0:n.chain().focus().toggleBlockquote().run(),...t})}function Yle(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Bold",tooltipShortcutKeys:["mod","B"],IconComponent:Uq,selected:(e=n==null?void 0:n.isActive("bold"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleBold(),onClick:()=>n==null?void 0:n.chain().focus().toggleBold().run(),...t})}function Gle(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Bulleted list",tooltipShortcutKeys:["mod","Shift","8"],IconComponent:Xq,selected:(e=n==null?void 0:n.isActive("bulletList"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleBulletList(),onClick:()=>n==null?void 0:n.chain().focus().toggleBulletList().run(),...t})}function Jle(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Code",tooltipShortcutKeys:["mod","E"],IconComponent:Fq,selected:(e=n==null?void 0:n.isActive("code"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleCode(),onClick:()=>n==null?void 0:n.chain().focus().toggleCode().run(),...t})}function Zle(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Code block",tooltipShortcutKeys:["mod","Alt","C"],IconComponent:ile,selected:(e=n==null?void 0:n.isActive("codeBlock"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleCodeBlock(),onClick:()=>n==null?void 0:n.chain().focus().toggleCodeBlock().run(),...t})}const Xle=Yt({name:{MenuButtonColorPicker:_1}})(t=>({menuButtonIcon:{fontSize:Kc},colorIndicatorIcon:{position:"absolute"},colorIndicatorIconDisabled:{color:t.palette.action.disabled}}));function _1({value:t,onChange:e,swatchColors:n,labels:r,hideColorIndicator:o=!1,popperId:i,PopperProps:s,ColorPickerProps:a,...l}){const{classes:u,cx:f}=Xle(),[p,m]=J.useState(null),g=()=>{m(null)},{IconComponent:y,children:b,...S}=l;return v.jsxs(v.Fragment,{children:[v.jsx(mt,{onClick:C=>{p?g():m(C.currentTarget)},"aria-describedby":i,...S,children:b??v.jsxs(v.Fragment,{children:[y&&v.jsx(y,{className:u.menuButtonIcon}),!o&&t&&v.jsx(lle,{className:f(u.menuButtonIcon,u.colorIndicatorIcon,l.disabled&&u.colorIndicatorIconDisabled),style:l.disabled?void 0:{color:t}})]})}),v.jsx(sN,{id:i,open:!!p,anchorEl:p,value:t??"",onSave:C=>{e(C),g()},onCancel:g,swatchColors:n,ColorPickerProps:a,labels:r,...s})]})}function Qle(t){const e=vt(),n=J.useRef(null);return v.jsx(mt,{buttonRef:n,tooltipLabel:"Link",tooltipShortcutKeys:["mod","Shift","U"],IconComponent:yf,selected:e==null?void 0:e.isActive("link"),disabled:!(e!=null&&e.isEditable),onClick:()=>e==null?void 0:e.commands.openLinkBubbleMenu({anchorEl:n.current,placement:"bottom"}),...t})}function ece({defaultMarkColor:t="#ffff00",...e}){const n=vt(),r=n!=null&&n.isActive("highlight")?n.getAttributes("highlight").color||t:"";return v.jsx(_1,{IconComponent:ule,tooltipLabel:"Highlight color",tooltipShortcutKeys:["mod","Shift","H"],value:r,onChange:o=>{o?n==null||n.chain().focus().setHighlight({color:o}).run():n==null||n.chain().focus().unsetHighlight().run()},disabled:!(n!=null&&n.isEditable)||!n.can().toggleHighlight(),...e,labels:{removeColorButton:"None",removeColorButtonTooltipTitle:"Remove highlighting from this text",...e.labels}})}function tce(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Insert horizontal line",IconComponent:o8,disabled:!(e!=null&&e.isEditable)||!e.can().setHorizontalRule(),onClick:()=>e==null?void 0:e.chain().focus().setHorizontalRule().run(),...t})}function nce(t,e){const n=ho(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];return i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,a=>{s.push(...a.marks)}),s.filter(a=>a.type.name===n.name).map(a=>({...a.attrs}))}function rce(t,e){const n=Cn(e,t.schema),{from:r,to:o}=t.selection,i=[];return t.doc.nodesBetween(r,o,s=>{i.push(s)}),i.reverse().filter(s=>s.type.name===n.name).map(s=>({...s.attrs}))}function yh(t,e){const n=gu(typeof e=="string"?e:e.name,t.schema);return n==="node"?rce(t,e):n==="mark"?nce(t,e):[]}function Cv({images:t,editor:e,position:n}){if(!e||e.isDestroyed||t.length===0)return;const r=t.filter(o=>!!o.src).map(o=>({type:e.schema.nodes.image.name,attrs:o}));e.chain().command(({commands:o})=>n==null?o.insertContent(r):o.insertContentAt(n,r)).focus().run()}function oce(t){return t.toLowerCase().normalize("NFKD").replace(/[^\w\s-]+/g,"").replace(/[-\s]+/g,"-").replace(/^[\s-_]+|[\s-_]+$/g,"")}function ice({onUploadFiles:t,inputProps:e,insertImages:n=Cv,...r}){const o=vt(),i=J.useRef(null),s=async a=>{if(!o||o.isDestroyed||a.length===0)return;const l=await t(Array.from(a));n({editor:o,images:l})};return v.jsxs(v.Fragment,{children:[v.jsx(qle,{tooltipLabel:"Upload images",onClick:()=>{var a;return(a=i.current)===null||a===void 0?void 0:a.click()},...r}),v.jsx("input",{ref:i,type:"file",accept:"image/*",multiple:!0,onChange:async a=>{a.target.files&&await s(a.target.files),a.target.value=""},style:{display:"none"},...e})]})}function sce(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Indent",tooltipShortcutKeys:["Tab"],IconComponent:Jq,disabled:!(e!=null&&e.isEditable)||!e.can().sinkListItem("listItem"),onClick:()=>e==null?void 0:e.chain().focus().sinkListItem("listItem").run(),...t})}function ace(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Italic",tooltipShortcutKeys:["mod","I"],IconComponent:Zq,selected:(e=n==null?void 0:n.isActive("italic"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleItalic(),onClick:()=>n==null?void 0:n.chain().focus().toggleItalic().run(),...t})}function lce(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Ordered list",tooltipShortcutKeys:["mod","Shift","7"],IconComponent:Qq,selected:(e=n==null?void 0:n.isActive("orderedList"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleOrderedList(),onClick:()=>n==null?void 0:n.chain().focus().toggleOrderedList().run(),...t})}function cce(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Redo",tooltipShortcutKeys:["mod","Shift","Z"],IconComponent:d8,disabled:!(e!=null&&e.isEditable)||!e.can().redo(),onClick:()=>e==null?void 0:e.chain().focus().redo().run(),...t})}function uce(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Remove inline formatting",IconComponent:Kq,disabled:!(e!=null&&e.isEditable)||!e.can().unsetAllMarks(),onClick:()=>e==null?void 0:e.chain().focus().unsetAllMarks().run(),...t})}function dce(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Strikethrough",tooltipShortcutKeys:["mod","Shift","S"],IconComponent:g8,selected:(e=n==null?void 0:n.isActive("strike"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleStrike(),onClick:()=>n==null?void 0:n.chain().focus().toggleStrike().run(),...t})}function fce(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Subscript",tooltipShortcutKeys:["mod",","],IconComponent:y8,selected:(e=n==null?void 0:n.isActive("subscript"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleSubscript(),onClick:()=>n==null?void 0:n.chain().focus().toggleSubscript().run(),...t})}function pce(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Superscript",tooltipShortcutKeys:["mod","."],IconComponent:b8,selected:(e=n==null?void 0:n.isActive("superscript"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleSuperscript(),onClick:()=>n==null?void 0:n.chain().focus().toggleSuperscript().run(),...t})}function hce(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Task checklist",tooltipShortcutKeys:["mod","Shift","9"],IconComponent:Lq,selected:(e=n==null?void 0:n.isActive("taskList"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleTaskList(),onClick:()=>n==null?void 0:n.chain().focus().toggleTaskList().run(),...t})}function mce({IconComponent:t=cle,tooltipLabel:e="Text color",defaultTextColor:n="",...r}){const o=vt(),i=o?yh(o.state,"textStyle"):[],s=!!(o!=null&&o.isActive("textStyle")),a=i.map(f=>f.color||n);s||a.push(n);const l=new Set(a).size;let u;return l===1?u=a[0]:l>1?u="":u=n,v.jsx(_1,{IconComponent:t,tooltipLabel:e,value:u,onChange:f=>{o==null||o.chain().focus().setColor(f).run()},disabled:!(o!=null&&o.isEditable)||!o.can().setColor("#000"),...r,labels:{removeColorButton:"Reset",...r.labels}})}function gce(t){var e;const n=vt();return v.jsx(mt,{tooltipLabel:"Underline",tooltipShortcutKeys:["mod","U"],IconComponent:n8,selected:(e=n==null?void 0:n.isActive("underline"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleUnderline(),onClick:()=>n==null?void 0:n.chain().focus().toggleUnderline().run(),...t})}function yce(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Undo",tooltipShortcutKeys:["mod","Z"],IconComponent:v8,disabled:!(e!=null&&e.isEditable)||!e.can().undo(),onClick:()=>e==null?void 0:e.chain().focus().undo().run(),...t})}function bce(t){const e=vt();return v.jsx(mt,{tooltipLabel:"Unindent",tooltipShortcutKeys:["Shift","Tab"],IconComponent:Gq,disabled:!(e!=null&&e.isEditable)||!e.can().liftListItem("listItem"),onClick:()=>e==null?void 0:e.chain().focus().liftListItem("listItem").run(),...t})}const vce=Yt({name:{MenuSelect:xu}})(t=>({rootTooltipWrapper:{display:"inline-flex"},selectRoot:{[`&:not(:hover):not(.${j.outlinedInputClasses.focused}) .${j.outlinedInputClasses.notchedOutline}`]:{borderWidth:0},[`& .${j.svgIconClasses.root}`]:{color:t.palette.action.active},[`&.${j.selectClasses.disabled} .${j.svgIconClasses.root}`]:{color:t.palette.action.disabled}},select:{"&&&":{paddingLeft:t.spacing(1),paddingRight:t.spacing(3)}},selectDropdownIcon:{right:1},input:{paddingTop:"3px",paddingBottom:"3px",fontSize:"0.9em"}}));function xu({tooltipTitle:t,...e}){var n,r,o;const{classes:i,cx:s}=vce(),[a,l]=J.useState(!1),u=v.jsx(j.Select,{margin:"none",variant:"outlined",size:"small",...e,onMouseEnter:(...f)=>{var p;l(!0),(p=e.onMouseEnter)===null||p===void 0||p.call(e,...f)},onMouseLeave:(...f)=>{var p;l(!1),(p=e.onMouseLeave)===null||p===void 0||p.call(e,...f)},onClick:(...f)=>{var p;l(!1),(p=e.onClick)===null||p===void 0||p.call(e,...f)},onOpen:(...f)=>{var p;l(!1),(p=e.onOpen)===null||p===void 0||p.call(e,...f)},inputProps:{...e.inputProps,className:s(i.input,(n=e.inputProps)===null||n===void 0?void 0:n.className)},MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},...e.MenuProps},className:s(i.selectRoot,e.className),classes:{...e.classes,select:s(i.select,(r=e.classes)===null||r===void 0?void 0:r.select),icon:s(i.selectDropdownIcon,(o=e.classes)===null||o===void 0?void 0:o.icon)}});return t?v.jsx(oo,{label:t,contentWrapperClassName:i.rootTooltipWrapper,open:a,children:u}):u}const xce=Yt({name:{MenuSelectFontFamily:aN}})({selectInput:{width:55}}),b0="MULTIPLE";function aN({options:t,hideUnsetOption:e=!1,unsetOptionLabel:n="Default",emptyLabel:r="Font",...o}){var i;const{classes:s,cx:a}=xce(),l=vt(),u=l?yh(l.state,"textStyle"):[],f=!!(l!=null&&l.isActive("textStyle")),p=u.map(y=>{var b;return(b=y.fontFamily)!==null&&b!==void 0?b:""});f||p.push("");const m=new Set(p).size;let g;return m===1?g=p[0]:m>1?g=b0:g="",v.jsxs(xu,{onChange:y=>{const b=y.target.value;b?l==null||l.chain().setFontFamily(b).focus().run():l==null||l.chain().unsetFontFamily().focus().run()},disabled:!(l!=null&&l.isEditable)||!l.can().setFontFamily("serif"),renderValue:y=>{var b,S;return!y||y===b0?r:(S=(b=t.find(C=>C.value===y))===null||b===void 0?void 0:b.label)!==null&&S!==void 0?S:y},displayEmpty:!0,"aria-label":"Font families",tooltipTitle:"Font",...o,value:g||"",inputProps:{...o.inputProps,className:a(s.selectInput,(i=o.inputProps)===null||i===void 0?void 0:i.className)},children:[!e&&v.jsx(j.MenuItem,{value:"",children:n}),v.jsx(j.MenuItem,{style:{display:"none"},value:b0}),t.map(y=>{var b;return v.jsx(j.MenuItem,{value:y.value,children:v.jsx("span",{style:{fontFamily:y.value},children:(b=y.label)!==null&&b!==void 0?b:y.value})},y.value)})]})}const Sce=Yt({name:{MenuSelectFontSize:lN}})({selectInput:{width:17,display:"flex",alignItems:"center"},fontSizeIcon:{fontSize:Kc}}),Cce=["8px","9px","10px","11px","12px","14px","16px","18px","24px","30px","36px","48px","60px","72px","96px"];function MO(t){return t.replace("px","")}const v0="MULTIPLE";function lN({options:t=Cce,sizeOptions:e,hideUnsetOption:n=!1,unsetOptionLabel:r="Default",unsetOptionContent:o,emptyLabel:i,emptyValue:s,...a}){var l;const{classes:u,cx:f}=Sce(),p=vt();i=s??i,r=o??r,t=e??t;const m=(t??[]).map(_=>typeof _=="string"?{value:_}:_),g=p?yh(p.state,"textStyle"):[],y=!!(p!=null&&p.isActive("textStyle")),b=g.map(_=>{var T;return(T=_.fontSize)!==null&&T!==void 0?T:""});y||b.push("");const S=new Set(b).size;let C;return S===1?C=b[0]:S>1?C=v0:C="",v.jsxs(xu,{onChange:_=>{const T=_.target.value;T?p==null||p.chain().setFontSize(T).focus().run():p==null||p.chain().unsetFontSize().focus().run()},disabled:!(p!=null&&p.isEditable)||!p.can().setFontSize("12px"),renderValue:_=>!_||_===v0?i??v.jsx(t8,{className:u.fontSizeIcon}):MO(_),displayEmpty:!0,"aria-label":"Font sizes",tooltipTitle:"Font size",...a,value:C||"",inputProps:{...a.inputProps,className:f(u.selectInput,(l=a.inputProps)===null||l===void 0?void 0:l.className)},children:[!n&&v.jsx(j.MenuItem,{value:"",children:r}),v.jsx(j.MenuItem,{style:{display:"none"},value:v0}),m.map(_=>{var T;return v.jsx(j.MenuItem,{value:_.value,children:(T=_.label)!==null&&T!==void 0?T:MO(_.value)},_.value)})]})}const wce=Yt({name:{MenuSelectHeading:cN}})(t=>{const e=SP(t);return{selectInput:{width:77},menuOption:{display:"block",width:"100%"},headingOption:{marginBlockStart:0,marginBlockEnd:0,fontWeight:"bold"},headingOption1:{fontSize:e["& h1"].fontSize},headingOption2:{fontSize:e["& h2"].fontSize},headingOption3:{fontSize:e["& h3"].fontSize},headingOption4:{fontSize:e["& h4"].fontSize},headingOption5:{fontSize:e["& h5"].fontSize},headingOption6:{fontSize:e["& h6"].fontSize}}}),yt={Paragraph:"Paragraph",Heading1:"Heading 1",Heading2:"Heading 2",Heading3:"Heading 3",Heading4:"Heading 4",Heading5:"Heading 5",Heading6:"Heading 6"},OO={[yt.Heading1]:1,[yt.Heading2]:2,[yt.Heading3]:3,[yt.Heading4]:4,[yt.Heading5]:5,[yt.Heading6]:6},RO={1:yt.Heading1,2:yt.Heading2,3:yt.Heading3,4:yt.Heading4,5:yt.Heading5,6:yt.Heading6};function cN({labels:t,hideShortcuts:e=!1,...n}){var r,o,i,s,a,l,u,f;const{classes:p,cx:m}=wce(),g=vt(),y=J.useCallback(N=>{const D=N.target.value;D===yt.Paragraph?g==null||g.chain().setParagraph().focus().run():D in OO&&(g==null||g.chain().setHeading({level:OO[D]}).focus().run())},[g]);let b="",S;if(g!=null&&g.isActive("paragraph"))b=yt.Paragraph;else if(g!=null&&g.isActive("heading")){const D=yh(g.state,"heading").map(M=>M.level);S=new Set(D).size===1?D[0]:void 0,S&&S in RO&&(b=RO[S])}const C=b!=="",_=!!(g!=null&&g.can().setParagraph()),T=J.useMemo(()=>{var N;const D=g==null?void 0:g.extensionManager.extensions.find(L=>L.name=="heading");return new Set((N=D==null?void 0:D.options.levels)!==null&&N!==void 0?N:[])},[g]),w=T.values().next(),E=w.done?void 0:w.value,O=E!==void 0&&(S===E||!!(g!=null&&g.can().setHeading({level:E})));return v.jsxs(xu,{onChange:y,disabled:!(g!=null&&g.isEditable)||!C&&!_&&!O,displayEmpty:!0,renderValue:N=>{var D,L;let M;return N===""?M=(L=(D=t==null?void 0:t.emptyValue)!==null&&D!==void 0?D:t==null?void 0:t.empty)!==null&&L!==void 0?L:v.jsx("em",{children:"Change to…"}):N===yt.Paragraph?M=t==null?void 0:t.paragraph:N===yt.Heading1?M=t==null?void 0:t.heading1:N===yt.Heading2?M=t==null?void 0:t.heading2:N===yt.Heading3?M=t==null?void 0:t.heading3:N===yt.Heading4?M=t==null?void 0:t.heading4:N===yt.Heading5?M=t==null?void 0:t.heading5:N===yt.Heading6&&(M=t==null?void 0:t.heading6),M??N},"aria-label":"Text headings",tooltipTitle:"Styles",...n,value:b,inputProps:{...n.inputProps,className:m(p.selectInput,(r=n.inputProps)===null||r===void 0?void 0:r.className)},children:[v.jsx(j.MenuItem,{value:yt.Paragraph,disabled:!C&&!_,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","0"],placement:"right",contentWrapperClassName:p.menuOption,children:(o=t==null?void 0:t.paragraph)!==null&&o!==void 0?o:yt.Paragraph})}),T.has(1)&&v.jsx(j.MenuItem,{value:yt.Heading1,disabled:!O,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","1"],placement:"right",contentWrapperClassName:m(p.menuOption,p.headingOption,p.headingOption1),children:(i=t==null?void 0:t.heading1)!==null&&i!==void 0?i:yt.Heading1})}),T.has(2)&&v.jsx(j.MenuItem,{value:yt.Heading2,disabled:!O,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","2"],placement:"right",contentWrapperClassName:m(p.menuOption,p.headingOption,p.headingOption2),children:(s=t==null?void 0:t.heading2)!==null&&s!==void 0?s:yt.Heading2})}),T.has(3)&&v.jsx(j.MenuItem,{value:yt.Heading3,disabled:!O,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","3"],placement:"right",contentWrapperClassName:m(p.menuOption,p.headingOption,p.headingOption3),children:(a=t==null?void 0:t.heading3)!==null&&a!==void 0?a:yt.Heading3})}),T.has(4)&&v.jsx(j.MenuItem,{value:yt.Heading4,disabled:!O,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","4"],placement:"right",contentWrapperClassName:m(p.menuOption,p.headingOption,p.headingOption4),children:(l=t==null?void 0:t.heading4)!==null&&l!==void 0?l:yt.Heading4})}),T.has(5)&&v.jsx(j.MenuItem,{value:yt.Heading5,disabled:!O,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","5"],placement:"right",contentWrapperClassName:m(p.menuOption,p.headingOption,p.headingOption5),children:(u=t==null?void 0:t.heading5)!==null&&u!==void 0?u:yt.Heading5})}),T.has(6)&&v.jsx(j.MenuItem,{value:yt.Heading6,disabled:!O,children:v.jsx(oo,{label:"",shortcutKeys:e?void 0:["mod","alt","6"],placement:"right",contentWrapperClassName:m(p.menuOption,p.headingOption,p.headingOption6),children:(f=t==null?void 0:t.heading6)!==null&&f!==void 0?f:yt.Heading6})})]})}const Tce=Yt({name:{MenuSelectTextAlign:uN}})(t=>({selectInput:{width:Kc},menuItem:{paddingLeft:0,paddingRight:0},menuOption:{display:"flex",width:"100%",justifyContent:"center"},menuButtonIcon:{fontSize:Kc,color:t.palette.action.active}})),_ce=[{value:"left",label:"Left",shortcutKeys:["mod","Shift","L"],IconComponent:Wq},{value:"center",label:"Center",shortcutKeys:["mod","Shift","E"],IconComponent:Vq},{value:"right",label:"Right",shortcutKeys:["mod","Shift","R"],IconComponent:qq},{value:"justify",label:"Justify",shortcutKeys:["mod","Shift","J"],IconComponent:Hq}];function uN({options:t=_ce,emptyLabel:e="",alignmentOptions:n,...r}){var o,i,s;const{classes:a,cx:l}=Tce(),u=vt();t=(o=n==null?void 0:n.map(y=>({...y,value:y.alignment})))!==null&&o!==void 0?o:t;const f=J.useCallback(y=>{const b=y.target.value;u==null||u.chain().setTextAlign(b).focus().run()},[u]),p=J.useMemo(()=>{const y=u==null?void 0:u.extensionManager.extensions.find(b=>b.name=="textAlign");return y==null?void 0:y.options},[u]),m=J.useMemo(()=>new Set(p==null?void 0:p.alignments),[p]),g=(i=Array.from(m).find(y=>u==null?void 0:u.isActive({textAlign:y})))!==null&&i!==void 0?i:"";return v.jsx(xu,{onChange:f,disabled:!(u!=null&&u.isEditable)||!Array.from(m).some(y=>u.can().setTextAlign(y)),renderValue:y=>{let b;if(y){const S=t.find(C=>C.value===y);b=S?v.jsx(S.IconComponent,{className:a.menuButtonIcon}):y}else b=e;return v.jsx("span",{className:a.menuOption,children:b})},"aria-label":"Text alignments",tooltipTitle:"Align",value:g,displayEmpty:!0,...r,inputProps:{...r.inputProps,className:l(a.selectInput,(s=r.inputProps)===null||s===void 0?void 0:s.className)},children:t.filter(y=>m.has(y.value)).map(y=>{var b;return v.jsx(j.MenuItem,{value:y.value,disabled:!(u!=null&&u.can().setTextAlign(y.value)),className:a.menuItem,children:v.jsx(oo,{label:(b=y.label)!==null&&b!==void 0?b:"",shortcutKeys:y.shortcutKeys,placement:"right",contentWrapperClassName:a.menuOption,children:v.jsx(y.IconComponent,{className:a.menuButtonIcon})})},y.value)})})}const kce=un.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),dN=en.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,bt(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>dv({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}}),Ece=Yt({name:{HeadingWithAnchorComponent:fN},uniqId:"kNc4LD"})((t,e,n)=>({root:{[`&:hover .${n.link}`]:{opacity:100}},container:{display:"inline-block",position:"relative"},link:{position:"absolute",left:-21,color:`${t.palette.text.secondary} !important`,opacity:0,transition:t.transitions.create("opacity"),textDecoration:"none",outline:"none",[t.breakpoints.down("sm")]:{left:-18},'.ProseMirror[contenteditable="true"] &':{display:"none"}},linkIcon:{transform:"rotate(-45deg)",fontSize:"1.25rem",[t.breakpoints.down("sm")]:{fontSize:"1.15rem"}}})),Dd=ea("HeadingWithAnchorComponent",["root","container","link","linkIcon"]);function fN({editor:t,node:e,extension:n}){const{classes:r,cx:o}=Ece(),a=`h${n.options.levels.includes(e.attrs.level)?e.attrs.level:n.options.levels[0]}`,l=J.useMemo(()=>Jx(t.schema),[t.schema]),u=oce(zD(e,{textSerializers:l}));return v.jsx(y1,{as:a,id:u,...n.options.HTMLAttributes,className:o(Dd.root,r.root),style:{textAlign:e.attrs.textAlign},children:v.jsxs("span",{className:o(Dd.container,r.container),children:[v.jsx("a",{href:`#${u}`,contentEditable:!1,className:o(Dd.link,r.link),children:v.jsx(yf,{className:o(Dd.linkIcon,r.linkIcon)})}),v.jsx(Gae,{as:"span"})]})})}const Mce=dN.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),scrollToAnchorOnMount:!0}},onCreate(){this.options.scrollToAnchorOnMount&&setTimeout(()=>{Oce(this.editor)})},addNodeView(){return b1(fN)}});function Oce(t){if(t.isDestroyed||!("heading"in t.storage))return;const n=window.location.hash.slice(1);if(!n)return;const r=window.document.getElementById(n);r&&t.options.element.contains(r)&&r.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}const Rce=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Ace=en.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",bt(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[WD({find:Rce,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}}),Ice=Yt({name:{ResizableImageResizer:pN}})(t=>({root:{position:"absolute",bottom:-3,right:-3,width:12,height:12,background:t.palette.primary.main,cursor:"nwse-resize"}}));function pN({onResize:t,className:e,mouseDown:n,setMouseDown:r}){const{classes:o,cx:i}=Ice();J.useEffect(()=>{if(!n)return;const a=l=>{t(l)};return window.addEventListener("mousemove",a),()=>{window.removeEventListener("mousemove",a)}},[n,t]),J.useEffect(()=>{const a=()=>{r(!1)};return window.addEventListener("mouseup",a),()=>{window.removeEventListener("mouseup",a)}},[r]);const s=J.useCallback(a=>{r(!0)},[r]);return v.jsx("div",{className:i(o.root,e),onMouseDown:s})}const Dce=15,Pce=Yt({name:{ResizableImageComponent:hN}})(t=>({imageContainer:{display:"inline-flex",position:"relative"},image:{display:"block"},imageSelected:{outline:`3px solid ${t.palette.primary.main}`},resizer:{'.ProseMirror[contenteditable="false"] &':{display:"none"}}}));function hN(t){var e;const{node:n,selected:r,updateAttributes:o,extension:i}=t,{classes:s,cx:a}=Pce(),{attrs:l}=n,u=J.useRef(null),[f,p]=J.useState(!1),m=r||f,g=J.useMemo(()=>DA(b=>{if(!u.current)return;const S=u.current.getBoundingClientRect(),C=b.clientX-S.x,_=b.clientY-S.y,T=Math.max(C,S.width/S.height*_,Dce);o({width:Math.round(T)})},50,{trailing:!0}),[o]),y=i.options.ChildComponent;return v.jsx(y1,{style:{textAlign:l.textAlign,width:"100%"},as:i.options.inline?"span":"div",children:v.jsxs("div",{className:s.imageContainer,children:[v.jsx("img",{ref:u,src:l.src,height:"auto",width:l.width?l.width:void 0,alt:l.alt||void 0,title:l.title||void 0,className:a(s.image,m&&"ProseMirror-selectednode",m&&s.imageSelected),style:{maxWidth:l.width?void 0:"auto",aspectRatio:(e=l.aspectRatio)!==null&&e!==void 0?e:void 0},"data-drag-handle":!0,onLoad:b=>{const S={};l.width||(S.width=b.currentTarget.naturalWidth),l.aspectRatio||(S.aspectRatio=String(b.currentTarget.naturalWidth/b.currentTarget.naturalHeight)),(S.width||S.aspectRatio)&&o(S)}}),m&&v.jsx(pN,{onResize:g,className:s.resizer,mouseDown:f,setMouseDown:p}),y&&v.jsx(y,{...t})]})})}const Nce=Ace.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),isAllowedImgSrc:e=>!!e}},addAttributes(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),width:{default:null,renderHTML:e=>({width:e.width}),parseHTML:e=>e.getAttribute("width")},aspectRatio:{default:null,renderHTML:e=>e.aspectRatio?{style:`aspect-ratio: ${e.aspectRatio}`}:{},parseHTML:e=>e.style.aspectRatio}}},renderHTML({HTMLAttributes:t}){return["img",bt({height:"auto"},this.options.HTMLAttributes,t)]},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])',getAttrs:t=>{if(!(t instanceof Element))return!1;const e=t.getAttribute("src");return this.options.isAllowedImgSrc(e)&&null}}]},addInputRules(){var t;const e=(t=this.parent)===null||t===void 0?void 0:t.call(this);if(!e)return[];const n=r=>{const[,,o,i,s]=r;return{src:i,alt:o,title:s}};return e.map(r=>new hu({find:r.find,handler:o=>{const i=n(o.match);if(this.options.isAllowedImgSrc(i.src))return r.handler(o)}}))},addNodeView(){return b1(hN)}});var wv,Tv;if(typeof WeakMap<"u"){let t=new WeakMap;wv=e=>t.get(e),Tv=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;wv=r=>{for(let o=0;o<t.length;o+=2)if(t[o]==r)return t[o+1]},Tv=(r,o)=>(n==10&&(n=0),t[n++]=r,t[n++]=o)}var cn=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,o=e/this.width|0;let i=r+1,s=o+1;for(let a=1;i<this.width&&this.map[e+a]==n;a++)i++;for(let a=1;s<this.height&&this.map[e+this.width*a]==n;a++)s++;return{left:r,top:o,right:i,bottom:s}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:o,top:i,bottom:s}=this.findCell(t);return e=="horiz"?(n<0?r==0:o==this.width)?null:this.map[i*this.width+(n<0?r-1:o)]:(n<0?i==0:s==this.height)?null:this.map[r+this.width*(n<0?i-1:s)]}rectBetween(t,e){const{left:n,right:r,top:o,bottom:i}=this.findCell(t),{left:s,right:a,top:l,bottom:u}=this.findCell(e);return{left:Math.min(n,s),top:Math.min(o,l),right:Math.max(r,a),bottom:Math.max(i,u)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let o=t.left;o<t.right;o++){const i=r*this.width+o,s=this.map[i];n[s]||(n[s]=!0,!(o==t.left&&o&&this.map[i-1]==s||r==t.top&&r&&this.map[i-this.width]==s)&&e.push(s))}return e}positionAt(t,e,n){for(let r=0,o=0;;r++){const i=o+n.child(r).nodeSize;if(r==t){let s=e+t*this.width;const a=(t+1)*this.width;for(;s<a&&this.map[s]<o;)s++;return s==a?i-1:this.map[s]}o=i}}static get(t){return wv(t)||Tv(t,Lce(t))}};function Lce(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=jce(t),n=t.childCount,r=[];let o=0,i=null;const s=[];for(let u=0,f=e*n;u<f;u++)r[u]=0;for(let u=0,f=0;u<n;u++){const p=t.child(u);f++;for(let y=0;;y++){for(;o<r.length&&r[o]!=0;)o++;if(y==p.childCount)break;const b=p.child(y),{colspan:S,rowspan:C,colwidth:_}=b.attrs;for(let T=0;T<C;T++){if(T+u>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:f,n:C-T});break}const w=o+T*e;for(let E=0;E<S;E++){r[w+E]==0?r[w+E]=f:(i||(i=[])).push({type:"collision",row:u,pos:f,n:S-E});const O=_&&_[E];if(O){const N=(w+E)%e*2,D=s[N];D==null||D!=O&&s[N+1]==1?(s[N]=O,s[N+1]=1):D==O&&s[N+1]++}}}o+=S,f+=b.nodeSize}const m=(u+1)*e;let g=0;for(;o<m;)r[o++]==0&&g++;g&&(i||(i=[])).push({type:"missing",row:u,n:g}),f++}(e===0||n===0)&&(i||(i=[])).push({type:"zero_sized"});const a=new cn(e,n,r,i);let l=!1;for(let u=0;!l&&u<s.length;u+=2)s[u]!=null&&s[u+1]<n&&(l=!0);return l&&$ce(a,s,t),a}function jce(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const o=t.child(r);let i=0;if(n)for(let s=0;s<r;s++){const a=t.child(s);for(let l=0;l<a.childCount;l++){const u=a.child(l);s+u.attrs.rowspan>r&&(i+=u.attrs.colspan)}}for(let s=0;s<o.childCount;s++){const a=o.child(s);i+=a.attrs.colspan,a.attrs.rowspan>1&&(n=!0)}e==-1?e=i:e!=i&&(e=Math.max(e,i))}return e}function $ce(t,e,n){t.problems||(t.problems=[]);const r={};for(let o=0;o<t.map.length;o++){const i=t.map[o];if(r[i])continue;r[i]=!0;const s=n.nodeAt(i);if(!s)throw new RangeError(`No cell with offset ${i} found`);let a=null;const l=s.attrs;for(let u=0;u<l.colspan;u++){const f=(o+u)%t.width,p=e[f*2];p!=null&&(!l.colwidth||l.colwidth[u]!=p)&&((a||(a=Fce(l)))[u]=p)}a&&t.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:a})}}function Fce(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function Kn(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};for(const n in t.nodes){const r=t.nodes[n],o=r.spec.tableRole;o&&(e[o]=r)}}return e}var Pi=new yn("selectingCells");function yl(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function Bce(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function mo(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function bh(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=yl(e.$head)||zce(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function zce(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function _v(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function Vce(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function k1(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function mN(t,e,n){const r=t.node(-1),o=cn.get(r),i=t.start(-1),s=o.nextCell(t.pos-i,e,n);return s==null?null:t.node(0).resolve(i+s)}function Ys(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(o=>o>0)||(r.colwidth=null)),r}function gN(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let o=0;o<n;o++)r.colwidth.splice(e,0,0)}return r}function Hce(t,e,n){const r=Kn(e.type.schema).header_cell;for(let o=0;o<t.height;o++)if(e.nodeAt(t.map[n+o*t.width]).type!=r)return!1;return!0}var zt=class ti extends et{constructor(e,n=e){const r=e.node(-1),o=cn.get(r),i=e.start(-1),s=o.rectBetween(e.pos-i,n.pos-i),a=e.node(0),l=o.cellsInRect(s).filter(f=>f!=n.pos-i);l.unshift(n.pos-i);const u=l.map(f=>{const p=r.nodeAt(f);if(!p)throw RangeError(`No cell with offset ${f} found`);const m=i+f+1;return new HI(a.resolve(m),a.resolve(m+p.content.size))});super(u[0].$from,u[0].$to,u),this.$anchorCell=e,this.$headCell=n}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),o=e.resolve(n.map(this.$headCell.pos));if(_v(r)&&_v(o)&&k1(r,o)){const i=this.$anchorCell.node(-1)!=r.node(-1);return i&&this.isRowSelection()?ti.rowSelection(r,o):i&&this.isColSelection()?ti.colSelection(r,o):new ti(r,o)}return Je.between(r,o)}content(){const e=this.$anchorCell.node(-1),n=cn.get(e),r=this.$anchorCell.start(-1),o=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},s=[];for(let l=o.top;l<o.bottom;l++){const u=[];for(let f=l*n.width+o.left,p=o.left;p<o.right;p++,f++){const m=n.map[f];if(i[m])continue;i[m]=!0;const g=n.findCell(m);let y=e.nodeAt(m);if(!y)throw RangeError(`No cell with offset ${m} found`);const b=o.left-g.left,S=g.right-o.right;if(b>0||S>0){let C=y.attrs;if(b>0&&(C=Ys(C,0,b)),S>0&&(C=Ys(C,C.colspan-S,S)),g.left<o.left){if(y=y.type.createAndFill(C),!y)throw RangeError(`Could not create cell with attrs ${JSON.stringify(C)}`)}else y=y.type.create(C,y.content)}if(g.top<o.top||g.bottom>o.bottom){const C={...y.attrs,rowspan:Math.min(g.bottom,o.bottom)-Math.max(g.top,o.top)};g.top<o.top?y=y.type.createAndFill(C):y=y.type.create(C,y.content)}u.push(y)}s.push(e.child(l).copy(_e.from(u)))}const a=this.isColSelection()&&this.isRowSelection()?e:s;return new Ae(_e.from(a),1,1)}replace(e,n=Ae.empty){const r=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){const{$from:a,$to:l}=o[s],u=e.mapping.slice(r);e.replace(u.map(a.pos),u.map(l.pos),s?Ae.empty:n)}const i=et.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,n){this.replace(e,new Ae(_e.from(n),0,0))}forEachCell(e){const n=this.$anchorCell.node(-1),r=cn.get(n),o=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o));for(let s=0;s<i.length;s++)e(n.nodeAt(i[s]),o+i[s])}isColSelection(){const e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,o=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,o)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),o=cn.get(r),i=e.start(-1),s=o.findCell(e.pos-i),a=o.findCell(n.pos-i),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(i+o.map[s.left])),a.bottom<o.height&&(n=l.resolve(i+o.map[o.width*(o.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(i+o.map[a.left])),s.bottom<o.height&&(e=l.resolve(i+o.map[o.width*(o.height-1)+s.right-1]))),new ti(e,n)}isRowSelection(){const e=this.$anchorCell.node(-1),n=cn.get(e),r=this.$anchorCell.start(-1),o=n.colCount(this.$anchorCell.pos-r),i=n.colCount(this.$headCell.pos-r);if(Math.min(o,i)>0)return!1;const s=o+this.$anchorCell.nodeAfter.attrs.colspan,a=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==n.width}eq(e){return e instanceof ti&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),o=cn.get(r),i=e.start(-1),s=o.findCell(e.pos-i),a=o.findCell(n.pos-i),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(i+o.map[s.top*o.width])),a.right<o.width&&(n=l.resolve(i+o.map[o.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(i+o.map[a.top*o.width])),s.right<o.width&&(e=l.resolve(i+o.map[o.width*(s.top+1)-1]))),new ti(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new ti(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new ti(e.resolve(n),e.resolve(r))}getBookmark(){return new Wce(this.$anchorCell.pos,this.$headCell.pos)}};zt.prototype.visible=!1;et.jsonID("cell",zt);var Wce=class yN{constructor(e,n){this.anchor=e,this.head=n}map(e){return new yN(e.map(this.anchor),e.map(this.head))}resolve(e){const n=e.resolve(this.anchor),r=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&k1(n,r)?new zt(n,r):et.near(r,1)}};function qce(t){if(!(t.selection instanceof zt))return null;const e=[];return t.selection.forEachCell((n,r)=>{e.push($n.node(r,r+n.nodeSize,{class:"selectedCell"}))}),Xt.create(t.doc,e)}function Uce({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let n=t.pos,r=e.pos,o=t.depth;for(;o>=0&&!(t.after(o+1)<t.end(o));o--,n++);for(let i=e.depth;i>=0&&!(e.before(i+1)>e.start(i));i--,r--);return n==r&&/row|table/.test(t.node(o).type.spec.tableRole)}function Kce({$from:t,$to:e}){let n,r;for(let o=t.depth;o>0;o--){const i=t.node(o);if(i.type.spec.tableRole==="cell"||i.type.spec.tableRole==="header_cell"){n=i;break}}for(let o=e.depth;o>0;o--){const i=e.node(o);if(i.type.spec.tableRole==="cell"||i.type.spec.tableRole==="header_cell"){r=i;break}}return n!==r&&e.parentOffset===0}function Yce(t,e,n){const r=(e||t).selection,o=(e||t).doc;let i,s;if(r instanceof Ue&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")i=zt.create(o,r.from);else if(s=="row"){const a=o.resolve(r.from+1);i=zt.rowSelection(a,a)}else if(!n){const a=cn.get(r.node),l=r.from+1,u=l+a.map[a.width*a.height-1];i=zt.create(o,l+1,u)}}else r instanceof Je&&Uce(r)?i=Je.create(o,r.from):r instanceof Je&&Kce(r)&&(i=Je.create(o,r.$from.start(),r.$from.end()));return i&&(e||(e=t.tr)).setSelection(i),e}var Gce=new yn("fix-tables");function bN(t,e,n,r){const o=t.childCount,i=e.childCount;e:for(let s=0,a=0;s<i;s++){const l=e.child(s);for(let u=a,f=Math.min(o,s+3);u<f;u++)if(t.child(u)==l){a=u+1,n+=l.nodeSize;continue e}r(l,n),a<o&&t.child(a).sameMarkup(l)?bN(t.child(a),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function vN(t,e){let n;const r=(o,i)=>{o.type.spec.tableRole=="table"&&(n=Jce(t,o,i,n))};return e?e.doc!=t.doc&&bN(e.doc,t.doc,0,r):t.doc.descendants(r),n}function Jce(t,e,n,r){const o=cn.get(e);if(!o.problems)return r;r||(r=t.tr);const i=[];for(let l=0;l<o.height;l++)i.push(0);for(let l=0;l<o.problems.length;l++){const u=o.problems[l];if(u.type=="collision"){const f=e.nodeAt(u.pos);if(!f)continue;const p=f.attrs;for(let m=0;m<p.rowspan;m++)i[u.row+m]+=u.n;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,Ys(p,p.colspan-u.n,u.n))}else if(u.type=="missing")i[u.row]+=u.n;else if(u.type=="overlong_rowspan"){const f=e.nodeAt(u.pos);if(!f)continue;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,{...f.attrs,rowspan:f.attrs.rowspan-u.n})}else if(u.type=="colwidth mismatch"){const f=e.nodeAt(u.pos);if(!f)continue;r.setNodeMarkup(r.mapping.map(n+1+u.pos),null,{...f.attrs,colwidth:u.colwidth})}else if(u.type=="zero_sized"){const f=r.mapping.map(n);r.delete(f,f+e.nodeSize)}}let s,a;for(let l=0;l<i.length;l++)i[l]&&(s==null&&(s=l),a=l);for(let l=0,u=n+1;l<o.height;l++){const f=e.child(l),p=u+f.nodeSize,m=i[l];if(m>0){let g="cell";f.firstChild&&(g=f.firstChild.type.spec.tableRole);const y=[];for(let S=0;S<m;S++){const C=Kn(t.schema)[g].createAndFill();C&&y.push(C)}const b=(l==0||s==l-1)&&a==l?u+1:p-1;r.insert(r.mapping.map(b),y)}u=p}return r.setMeta(Gce,{fixTables:!0})}function $o(t){const e=t.selection,n=bh(t),r=n.node(-1),o=n.start(-1),i=cn.get(r);return{...e instanceof zt?i.rectBetween(e.$anchorCell.pos-o,e.$headCell.pos-o):i.findCell(n.pos-o),tableStart:o,map:i,table:r}}function xN(t,{map:e,tableStart:n,table:r},o){let i=o>0?-1:0;Hce(e,r,o+i)&&(i=o==0||o==e.width?null:0);for(let s=0;s<e.height;s++){const a=s*e.width+o;if(o>0&&o<e.width&&e.map[a-1]==e.map[a]){const l=e.map[a],u=r.nodeAt(l);t.setNodeMarkup(t.mapping.map(n+l),null,gN(u.attrs,o-e.colCount(l))),s+=u.attrs.rowspan-1}else{const l=i==null?Kn(r.type.schema).cell:r.nodeAt(e.map[a+i]).type,u=e.positionAt(s,o,r);t.insert(t.mapping.map(n+u),l.createAndFill())}}return t}function Zce(t,e){if(!mo(t))return!1;if(e){const n=$o(t);e(xN(t.tr,n,n.left))}return!0}function Xce(t,e){if(!mo(t))return!1;if(e){const n=$o(t);e(xN(t.tr,n,n.right))}return!0}function Qce(t,{map:e,table:n,tableStart:r},o){const i=t.mapping.maps.length;for(let s=0;s<e.height;){const a=s*e.width+o,l=e.map[a],u=n.nodeAt(l),f=u.attrs;if(o>0&&e.map[a-1]==l||o<e.width-1&&e.map[a+1]==l)t.setNodeMarkup(t.mapping.slice(i).map(r+l),null,Ys(f,o-e.colCount(l)));else{const p=t.mapping.slice(i).map(r+l);t.delete(p,p+u.nodeSize)}s+=f.rowspan}}function eue(t,e){if(!mo(t))return!1;if(e){const n=$o(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let o=n.right-1;Qce(r,n,o),o!=n.left;o--){const i=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!i)throw RangeError("No table found");n.table=i,n.map=cn.get(i)}e(r)}return!0}function tue(t,e,n){var r;const o=Kn(e.type.schema).header_cell;for(let i=0;i<t.width;i++)if(((r=e.nodeAt(t.map[i+n*t.width]))==null?void 0:r.type)!=o)return!1;return!0}function SN(t,{map:e,tableStart:n,table:r},o){var i;let s=n;for(let u=0;u<o;u++)s+=r.child(u).nodeSize;const a=[];let l=o>0?-1:0;tue(e,r,o+l)&&(l=o==0||o==e.height?null:0);for(let u=0,f=e.width*o;u<e.width;u++,f++)if(o>0&&o<e.height&&e.map[f]==e.map[f-e.width]){const p=e.map[f],m=r.nodeAt(p).attrs;t.setNodeMarkup(n+p,null,{...m,rowspan:m.rowspan+1}),u+=m.colspan-1}else{const p=l==null?Kn(r.type.schema).cell:(i=r.nodeAt(e.map[f+l*e.width]))==null?void 0:i.type,m=p==null?void 0:p.createAndFill();m&&a.push(m)}return t.insert(s,Kn(r.type.schema).row.create(null,a)),t}function nue(t,e){if(!mo(t))return!1;if(e){const n=$o(t);e(SN(t.tr,n,n.top))}return!0}function rue(t,e){if(!mo(t))return!1;if(e){const n=$o(t);e(SN(t.tr,n,n.bottom))}return!0}function oue(t,{map:e,table:n,tableStart:r},o){let i=0;for(let u=0;u<o;u++)i+=n.child(u).nodeSize;const s=i+n.child(o).nodeSize,a=t.mapping.maps.length;t.delete(i+r,s+r);const l=new Set;for(let u=0,f=o*e.width;u<e.width;u++,f++){const p=e.map[f];if(!l.has(p)){if(l.add(p),o>0&&p==e.map[f-e.width]){const m=n.nodeAt(p).attrs;t.setNodeMarkup(t.mapping.slice(a).map(p+r),null,{...m,rowspan:m.rowspan-1}),u+=m.colspan-1}else if(o<e.height&&p==e.map[f+e.width]){const m=n.nodeAt(p),g=m.attrs,y=m.type.create({...g,rowspan:m.attrs.rowspan-1},m.content),b=e.positionAt(o+1,u,n);t.insert(t.mapping.slice(a).map(r+b),y),u+=g.colspan-1}}}}function iue(t,e){if(!mo(t))return!1;if(e){const n=$o(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let o=n.bottom-1;oue(r,n,o),o!=n.top;o--){const i=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!i)throw RangeError("No table found");n.table=i,n.map=cn.get(n.table)}e(r)}return!0}function AO(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function sue({width:t,height:e,map:n},r){let o=r.top*t+r.left,i=o,s=(r.bottom-1)*t+r.left,a=o+(r.right-r.left-1);for(let l=r.top;l<r.bottom;l++){if(r.left>0&&n[i]==n[i-1]||r.right<t&&n[a]==n[a+1])return!0;i+=t,a+=t}for(let l=r.left;l<r.right;l++){if(r.top>0&&n[o]==n[o-t]||r.bottom<e&&n[s]==n[s+t])return!0;o++,s++}return!1}function IO(t,e){const n=t.selection;if(!(n instanceof zt)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=$o(t),{map:o}=r;if(sue(o,r))return!1;if(e){const i=t.tr,s={};let a=_e.empty,l,u;for(let f=r.top;f<r.bottom;f++)for(let p=r.left;p<r.right;p++){const m=o.map[f*o.width+p],g=r.table.nodeAt(m);if(!(s[m]||!g))if(s[m]=!0,l==null)l=m,u=g;else{AO(g)||(a=a.append(g.content));const y=i.mapping.map(m+r.tableStart);i.delete(y,y+g.nodeSize)}}if(l==null||u==null)return!0;if(i.setNodeMarkup(l+r.tableStart,null,{...gN(u.attrs,u.attrs.colspan,r.right-r.left-u.attrs.colspan),rowspan:r.bottom-r.top}),a.size){const f=l+1+u.content.size,p=AO(u)?l+1:f;i.replaceWith(p+r.tableStart,f+r.tableStart,a)}i.setSelection(new zt(i.doc.resolve(l+r.tableStart))),e(i)}return!0}function DO(t,e){const n=Kn(t.schema);return aue(({node:r})=>n[r.type.spec.tableRole])(t,e)}function aue(t){return(e,n)=>{var r;const o=e.selection;let i,s;if(o instanceof zt){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,s=o.$anchorCell.pos}else{if(i=Bce(o.$from),!i)return!1;s=(r=yl(o.$from))==null?void 0:r.pos}if(i==null||s==null||i.attrs.colspan==1&&i.attrs.rowspan==1)return!1;if(n){let a=i.attrs;const l=[],u=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const f=$o(e),p=e.tr;for(let g=0;g<f.right-f.left;g++)l.push(u?{...a,colwidth:u&&u[g]?[u[g]]:null}:a);let m;for(let g=f.top;g<f.bottom;g++){let y=f.map.positionAt(g,f.left,f.table);g==f.top&&(y+=i.nodeSize);for(let b=f.left,S=0;b<f.right;b++,S++)b==f.left&&g==f.top||p.insert(m=p.mapping.map(y+f.tableStart,1),t({node:i,row:g,col:b}).createAndFill(l[S]))}p.setNodeMarkup(s,t({node:i,row:f.top,col:f.left}),l[0]),o instanceof zt&&p.setSelection(new zt(p.doc.resolve(o.$anchorCell.pos),m?p.doc.resolve(m):void 0)),n(p)}return!0}}function lue(t,e){return function(n,r){if(!mo(n))return!1;const o=bh(n);if(o.nodeAfter.attrs[t]===e)return!1;if(r){const i=n.tr;n.selection instanceof zt?n.selection.forEachCell((s,a)=>{s.attrs[t]!==e&&i.setNodeMarkup(a,null,{...s.attrs,[t]:e})}):i.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[t]:e}),r(i)}return!0}}function cue(t){return function(e,n){if(!mo(e))return!1;if(n){const r=Kn(e.schema),o=$o(e),i=e.tr,s=o.map.cellsInRect(t=="column"?{left:o.left,top:0,right:o.right,bottom:o.map.height}:t=="row"?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),a=s.map(l=>o.table.nodeAt(l));for(let l=0;l<s.length;l++)a[l].type==r.header_cell&&i.setNodeMarkup(o.tableStart+s[l],r.cell,a[l].attrs);if(i.steps.length==0)for(let l=0;l<s.length;l++)i.setNodeMarkup(o.tableStart+s[l],r.header_cell,a[l].attrs);n(i)}return!0}}function PO(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let o=0;o<r.length;o++){const i=e.table.nodeAt(r[o]);if(i&&i.type!==n.header_cell)return!1}return!0}function Yc(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?cue(t):function(n,r){if(!mo(n))return!1;if(r){const o=Kn(n.schema),i=$o(n),s=n.tr,a=PO("row",i,o),l=PO("column",i,o),f=(t==="column"?a:t==="row"?l:!1)?1:0,p=t=="column"?{left:0,top:f,right:1,bottom:i.map.height}:t=="row"?{left:f,top:0,right:i.map.width,bottom:1}:i,m=t=="column"?l?o.cell:o.header_cell:t=="row"?a?o.cell:o.header_cell:o.cell;i.map.cellsInRect(p).forEach(g=>{const y=g+i.tableStart,b=s.doc.nodeAt(y);b&&s.setNodeMarkup(y,m,b.attrs)}),r(s)}return!0}}Yc("row",{useDeprecatedLogic:!0});Yc("column",{useDeprecatedLogic:!0});var uue=Yc("cell",{useDeprecatedLogic:!0});function due(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,o=t.before();r>=0;r--){const i=t.node(-1).child(r),s=i.lastChild;if(s)return o-1-s.nodeSize;o-=i.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let r=t.indexAfter(-1),o=t.after();r<n.childCount;r++){const i=n.child(r);if(i.childCount)return o+1;o+=i.nodeSize}}return null}function NO(t){return function(e,n){if(!mo(e))return!1;const r=due(bh(e),t);if(r==null)return!1;if(n){const o=e.doc.resolve(r);n(e.tr.setSelection(Je.between(o,Vce(o))).scrollIntoView())}return!0}}function fue(t,e){const n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function Pd(t,e){const n=t.selection;if(!(n instanceof zt))return!1;if(e){const r=t.tr,o=Kn(t.schema).cell.createAndFill().content;n.forEachCell((i,s)=>{i.content.eq(o)||r.replace(r.mapping.map(s+1),r.mapping.map(s+i.nodeSize-1),new Ae(o,0,0))}),r.docChanged&&e(r)}return!0}function pue(t){if(!t.size)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const o=e.child(0),i=o.type.spec.tableRole,s=o.type.schema,a=[];if(i=="row")for(let l=0;l<e.childCount;l++){let u=e.child(l).content;const f=l?0:Math.max(0,n-1),p=l<e.childCount-1?0:Math.max(0,r-1);(f||p)&&(u=kv(Kn(s).row,new Ae(u,f,p)).content),a.push(u)}else if(i=="cell"||i=="header_cell")a.push(n||r?kv(Kn(s).row,new Ae(e,n,r)).content:e);else return null;return hue(s,a)}function hue(t,e){const n=[];for(let o=0;o<e.length;o++){const i=e[o];for(let s=i.childCount-1;s>=0;s--){const{rowspan:a,colspan:l}=i.child(s).attrs;for(let u=o;u<o+a;u++)n[u]=(n[u]||0)+l}}let r=0;for(let o=0;o<n.length;o++)r=Math.max(r,n[o]);for(let o=0;o<n.length;o++)if(o>=e.length&&e.push(_e.empty),n[o]<r){const i=Kn(t).cell.createAndFill(),s=[];for(let a=n[o];a<r;a++)s.push(i);e[o]=e[o].append(_e.from(s))}return{height:e.length,width:r,rows:e}}function kv(t,e){const n=t.createAndFill();return new Px(n).replace(0,n.content.size,e).doc}function mue({width:t,height:e,rows:n},r,o){if(t!=r){const i=[],s=[];for(let a=0;a<n.length;a++){const l=n[a],u=[];for(let f=i[a]||0,p=0;f<r;p++){let m=l.child(p%l.childCount);f+m.attrs.colspan>r&&(m=m.type.createChecked(Ys(m.attrs,m.attrs.colspan,f+m.attrs.colspan-r),m.content)),u.push(m),f+=m.attrs.colspan;for(let g=1;g<m.attrs.rowspan;g++)i[a+g]=(i[a+g]||0)+m.attrs.colspan}s.push(_e.from(u))}n=s,t=r}if(e!=o){const i=[];for(let s=0,a=0;s<o;s++,a++){const l=[],u=n[a%e];for(let f=0;f<u.childCount;f++){let p=u.child(f);s+p.attrs.rowspan>o&&(p=p.type.create({...p.attrs,rowspan:Math.max(1,o-p.attrs.rowspan)},p.content)),l.push(p)}i.push(_e.from(l))}n=i,e=o}return{width:t,height:e,rows:n}}function gue(t,e,n,r,o,i,s){const a=t.doc.type.schema,l=Kn(a);let u,f;if(o>e.width)for(let p=0,m=0;p<e.height;p++){const g=n.child(p);m+=g.nodeSize;const y=[];let b;g.lastChild==null||g.lastChild.type==l.cell?b=u||(u=l.cell.createAndFill()):b=f||(f=l.header_cell.createAndFill());for(let S=e.width;S<o;S++)y.push(b);t.insert(t.mapping.slice(s).map(m-1+r),y)}if(i>e.height){const p=[];for(let y=0,b=(e.height-1)*e.width;y<Math.max(e.width,o);y++){const S=y>=e.width?!1:n.nodeAt(e.map[b+y]).type==l.header_cell;p.push(S?f||(f=l.header_cell.createAndFill()):u||(u=l.cell.createAndFill()))}const m=l.row.create(null,_e.from(p)),g=[];for(let y=e.height;y<i;y++)g.push(m);t.insert(t.mapping.slice(s).map(r+n.nodeSize-2),g)}return!!(u||f)}function LO(t,e,n,r,o,i,s,a){if(s==0||s==e.height)return!1;let l=!1;for(let u=o;u<i;u++){const f=s*e.width+u,p=e.map[f];if(e.map[f-e.width]==p){l=!0;const m=n.nodeAt(p),{top:g,left:y}=e.findCell(p);t.setNodeMarkup(t.mapping.slice(a).map(p+r),null,{...m.attrs,rowspan:s-g}),t.insert(t.mapping.slice(a).map(e.positionAt(s,y,n)),m.type.createAndFill({...m.attrs,rowspan:g+m.attrs.rowspan-s})),u+=m.attrs.colspan-1}}return l}function jO(t,e,n,r,o,i,s,a){if(s==0||s==e.width)return!1;let l=!1;for(let u=o;u<i;u++){const f=u*e.width+s,p=e.map[f];if(e.map[f-1]==p){l=!0;const m=n.nodeAt(p),g=e.colCount(p),y=t.mapping.slice(a).map(p+r);t.setNodeMarkup(y,null,Ys(m.attrs,s-g,m.attrs.colspan-(s-g))),t.insert(y+m.nodeSize,m.type.createAndFill(Ys(m.attrs,0,s-g))),u+=m.attrs.rowspan-1}}return l}function $O(t,e,n,r,o){let i=n?t.doc.nodeAt(n-1):t.doc;if(!i)throw new Error("No table found");let s=cn.get(i);const{top:a,left:l}=r,u=l+o.width,f=a+o.height,p=t.tr;let m=0;function g(){if(i=n?p.doc.nodeAt(n-1):p.doc,!i)throw new Error("No table found");s=cn.get(i),m=p.mapping.maps.length}gue(p,s,i,n,u,f,m)&&g(),LO(p,s,i,n,l,u,a,m)&&g(),LO(p,s,i,n,l,u,f,m)&&g(),jO(p,s,i,n,a,f,l,m)&&g(),jO(p,s,i,n,a,f,u,m)&&g();for(let y=a;y<f;y++){const b=s.positionAt(y,l,i),S=s.positionAt(y,u,i);p.replace(p.mapping.slice(m).map(b+n),p.mapping.slice(m).map(S+n),new Ae(o.rows[y-a],0,0))}g(),p.setSelection(new zt(p.doc.resolve(n+s.positionAt(a,l,i)),p.doc.resolve(n+s.positionAt(f-1,u-1,i)))),e(p)}var yue=qx({ArrowLeft:Nd("horiz",-1),ArrowRight:Nd("horiz",1),ArrowUp:Nd("vert",-1),ArrowDown:Nd("vert",1),"Shift-ArrowLeft":Ld("horiz",-1),"Shift-ArrowRight":Ld("horiz",1),"Shift-ArrowUp":Ld("vert",-1),"Shift-ArrowDown":Ld("vert",1),Backspace:Pd,"Mod-Backspace":Pd,Delete:Pd,"Mod-Delete":Pd});function af(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function Nd(t,e){return(n,r,o)=>{if(!o)return!1;const i=n.selection;if(i instanceof zt)return af(n,r,et.near(i.$headCell,e));if(t!="horiz"&&!i.empty)return!1;const s=CN(o,t,e);if(s==null)return!1;if(t=="horiz")return af(n,r,et.near(n.doc.resolve(i.head+e),e));{const a=n.doc.resolve(s),l=mN(a,t,e);let u;return l?u=et.near(l,1):e<0?u=et.near(n.doc.resolve(a.before(-1)),-1):u=et.near(n.doc.resolve(a.after(-1)),1),af(n,r,u)}}}function Ld(t,e){return(n,r,o)=>{if(!o)return!1;const i=n.selection;let s;if(i instanceof zt)s=i;else{const l=CN(o,t,e);if(l==null)return!1;s=new zt(n.doc.resolve(l))}const a=mN(s.$headCell,t,e);return a?af(n,r,new zt(s.$anchorCell,a)):!1}}function bue(t,e){const n=t.state.doc,r=yl(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new zt(r))),!0):!1}function vue(t,e,n){if(!mo(t.state))return!1;let r=pue(n);const o=t.state.selection;if(o instanceof zt){r||(r={width:1,height:1,rows:[_e.from(kv(Kn(t.state.schema).cell,n))]});const i=o.$anchorCell.node(-1),s=o.$anchorCell.start(-1),a=cn.get(i).rectBetween(o.$anchorCell.pos-s,o.$headCell.pos-s);return r=mue(r,a.right-a.left,a.bottom-a.top),$O(t.state,t.dispatch,s,a,r),!0}else if(r){const i=bh(t.state),s=i.start(-1);return $O(t.state,t.dispatch,s,cn.get(i.node(-1)).findCell(i.pos-s),r),!0}else return!1}function xue(t,e){var n;if(e.ctrlKey||e.metaKey)return;const r=FO(t,e.target);let o;if(e.shiftKey&&t.state.selection instanceof zt)i(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(o=yl(t.state.selection.$anchor))!=null&&((n=x0(t,e))==null?void 0:n.pos)!=o.pos)i(o,e),e.preventDefault();else if(!r)return;function i(l,u){let f=x0(t,u);const p=Pi.getState(t.state)==null;if(!f||!k1(l,f))if(p)f=l;else return;const m=new zt(l,f);if(p||!t.state.selection.eq(m)){const g=t.state.tr.setSelection(m);p&&g.setMeta(Pi,l.pos),t.dispatch(g)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),Pi.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(Pi,-1))}function a(l){const u=l,f=Pi.getState(t.state);let p;if(f!=null)p=t.state.doc.resolve(f);else if(FO(t,u.target)!=r&&(p=x0(t,e),!p))return s();p&&i(p,u)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function CN(t,e,n){if(!(t.state.selection instanceof Je))return null;const{$head:r}=t.state.selection;for(let o=r.depth-1;o>=0;o--){const i=r.node(o);if((n<0?r.index(o):r.indexAfter(o))!=(n<0?0:i.childCount))return null;if(i.type.spec.tableRole=="cell"||i.type.spec.tableRole=="header_cell"){const a=r.before(o),l=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(l)?a:null}}return null}function FO(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function x0(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});return n&&n?yl(t.state.doc.resolve(n.pos)):null}var Sue=class{constructor(e,n){this.node=e,this.defaultCellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${n}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Ev(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,Ev(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function Ev(t,e,n,r,o,i){var s;let a=0,l=!0,u=e.firstChild;const f=t.firstChild;if(f){for(let p=0,m=0;p<f.childCount;p++){const{colspan:g,colwidth:y}=f.child(p).attrs;for(let b=0;b<g;b++,m++){const S=o==m?i:y&&y[b],C=S?S+"px":"";if(a+=S||r,S||(l=!1),u)u.style.width!=C&&(u.style.width=C),u=u.nextSibling;else{const _=document.createElement("col");_.style.width=C,e.appendChild(_)}}}for(;u;){const p=u.nextSibling;(s=u.parentNode)==null||s.removeChild(u),u=p}l?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}}var Mr=new yn("tableColumnResizing");function wN({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:n=100,View:r=Sue,lastColumnResizable:o=!0}={}){const i=new tn({key:Mr,state:{init(s,a){var l,u;const f=(u=(l=i.spec)==null?void 0:l.props)==null?void 0:u.nodeViews,p=Kn(a.schema).table.name;return r&&f&&(f[p]=(m,g)=>new r(m,n,g)),new Cue(-1,!1)},apply(s,a){return a.apply(s)}},props:{attributes:s=>{const a=Mr.getState(s);return a&&a.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(s,a)=>{wue(s,a,t,o)},mouseleave:s=>{Tue(s)},mousedown:(s,a)=>{_ue(s,a,e,n)}},decorations:s=>{const a=Mr.getState(s);if(a&&a.activeHandle>-1)return Rue(s,a.activeHandle)},nodeViews:{}}});return i}var Cue=class lf{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,r=e.getMeta(Mr);if(r&&r.setHandle!=null)return new lf(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new lf(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let o=e.mapping.map(n.activeHandle,-1);return _v(e.doc.resolve(o))||(o=-1),new lf(o,n.dragging)}return n}};function wue(t,e,n,r){if(!t.editable)return;const o=Mr.getState(t.state);if(o&&!o.dragging){const i=Eue(e.target);let s=-1;if(i){const{left:a,right:l}=i.getBoundingClientRect();e.clientX-a<=n?s=BO(t,e,"left",n):l-e.clientX<=n&&(s=BO(t,e,"right",n))}if(s!=o.activeHandle){if(!r&&s!==-1){const a=t.state.doc.resolve(s),l=a.node(-1),u=cn.get(l),f=a.start(-1);if(u.colCount(a.pos-f)+a.nodeAfter.attrs.colspan-1==u.width-1)return}TN(t,s)}}}function Tue(t){if(!t.editable)return;const e=Mr.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&TN(t,-1)}function _ue(t,e,n,r){var o;if(!t.editable)return!1;const i=(o=t.dom.ownerDocument.defaultView)!=null?o:window,s=Mr.getState(t.state);if(!s||s.activeHandle==-1||s.dragging)return!1;const a=t.state.doc.nodeAt(s.activeHandle),l=kue(t,s.activeHandle,a.attrs);t.dispatch(t.state.tr.setMeta(Mr,{setDragging:{startX:e.clientX,startWidth:l}}));function u(p){i.removeEventListener("mouseup",u),i.removeEventListener("mousemove",f);const m=Mr.getState(t.state);m!=null&&m.dragging&&(Mue(t,m.activeHandle,zO(m.dragging,p,n)),t.dispatch(t.state.tr.setMeta(Mr,{setDragging:null})))}function f(p){if(!p.which)return u(p);const m=Mr.getState(t.state);if(m&&m.dragging){const g=zO(m.dragging,p,n);VO(t,m.activeHandle,g,r)}}return VO(t,s.activeHandle,l,r),i.addEventListener("mouseup",u),i.addEventListener("mousemove",f),e.preventDefault(),!0}function kue(t,e,{colspan:n,colwidth:r}){const o=r&&r[r.length-1];if(o)return o;const i=t.domAtPos(e);let a=i.node.childNodes[i.offset].offsetWidth,l=n;if(r)for(let u=0;u<n;u++)r[u]&&(a-=r[u],l--);return a/l}function Eue(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function BO(t,e,n,r){const o=n=="right"?-r:r,i=t.posAtCoords({left:e.clientX+o,top:e.clientY});if(!i)return-1;const{pos:s}=i,a=yl(t.state.doc.resolve(s));if(!a)return-1;if(n=="right")return a.pos;const l=cn.get(a.node(-1)),u=a.start(-1),f=l.map.indexOf(a.pos-u);return f%l.width==0?-1:u+l.map[f-1]}function zO(t,e,n){const r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function TN(t,e){t.dispatch(t.state.tr.setMeta(Mr,{setHandle:e}))}function Mue(t,e,n){const r=t.state.doc.resolve(e),o=r.node(-1),i=cn.get(o),s=r.start(-1),a=i.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=t.state.tr;for(let u=0;u<i.height;u++){const f=u*i.width+a;if(u&&i.map[f]==i.map[f-i.width])continue;const p=i.map[f],m=o.nodeAt(p).attrs,g=m.colspan==1?0:a-i.colCount(p);if(m.colwidth&&m.colwidth[g]==n)continue;const y=m.colwidth?m.colwidth.slice():Oue(m.colspan);y[g]=n,l.setNodeMarkup(s+p,null,{...m,colwidth:y})}l.docChanged&&t.dispatch(l)}function VO(t,e,n,r){const o=t.state.doc.resolve(e),i=o.node(-1),s=o.start(-1),a=cn.get(i).colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1;let l=t.domAtPos(o.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&Ev(i,l.firstChild,l,r,a,n)}function Oue(t){return Array(t).fill(0)}function Rue(t,e){var n;const r=[],o=t.doc.resolve(e),i=o.node(-1);if(!i)return Xt.empty;const s=cn.get(i),a=o.start(-1),l=s.colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1;for(let u=0;u<s.height;u++){const f=l+u*s.width;if((l==s.width-1||s.map[f]!=s.map[f+1])&&(u==0||s.map[f]!=s.map[f-s.width])){const p=s.map[f],m=a+p+i.nodeAt(p).nodeSize-1,g=document.createElement("div");g.className="column-resize-handle",(n=Mr.getState(t))!=null&&n.dragging&&r.push($n.node(a+p,a+p+i.nodeAt(p).nodeSize,{class:"column-resize-dragging"})),r.push($n.widget(m,g))}}return Xt.create(t.doc,r)}function _N({allowTableNodeSelection:t=!1}={}){return new tn({key:Pi,state:{init(){return null},apply(e,n){const r=e.getMeta(Pi);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:o,pos:i}=e.mapping.mapResult(n);return o?null:i}},props:{decorations:qce,handleDOMEvents:{mousedown:xue},createSelectionBetween(e){return Pi.getState(e.state)!=null?e.state.selection:null},handleTripleClick:bue,handleKeyDown:yue,handlePaste:vue},appendTransaction(e,n,r){return Yce(r,vN(r,n),t)}})}function Mv(t,e){return e?["width",`${Math.max(e,t)}px`]:["min-width",`${t}px`]}function HO(t,e,n,r,o,i){var s;let a=0,l=!0,u=e.firstChild;const f=t.firstChild;if(f!==null)for(let p=0,m=0;p<f.childCount;p+=1){const{colspan:g,colwidth:y}=f.child(p).attrs;for(let b=0;b<g;b+=1,m+=1){const S=o===m?i:y&&y[b],C=S?`${S}px`:"";if(a+=S||r,S||(l=!1),u){if(u.style.width!==C){const[_,T]=Mv(r,S);u.style.setProperty(_,T)}u=u.nextSibling}else{const _=document.createElement("col"),[T,w]=Mv(r,S);_.style.setProperty(T,w),e.appendChild(_)}}}for(;u;){const p=u.nextSibling;(s=u.parentNode)===null||s===void 0||s.removeChild(u),u=p}l?(n.style.width=`${a}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${a}px`)}class Aue{constructor(e,n){this.node=e,this.cellMinWidth=n,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),HO(e,this.colgroup,this.table,n),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,HO(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type==="attributes"&&(e.target===this.table||this.colgroup.contains(e.target))}}function Iue(t,e,n,r){let o=0,i=!0;const s=[],a=t.firstChild;if(!a)return{};for(let p=0,m=0;p<a.childCount;p+=1){const{colspan:g,colwidth:y}=a.child(p).attrs;for(let b=0;b<g;b+=1,m+=1){const S=n===m?r:y&&y[b];o+=S||e,S||(i=!1);const[C,_]=Mv(e,S);s.push(["col",{style:`${C}: ${_}`}])}}const l=i?`${o}px`:"",u=i?"":`${o}px`;return{colgroup:["colgroup",{},...s],tableWidth:l,tableMinWidth:u}}function WO(t,e){return t.createAndFill()}function Due(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(n=>{const r=t.nodes[n];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),t.cached.tableNodeTypes=e,e}function Pue(t,e,n,r,o){const i=Due(t),s=[],a=[];for(let u=0;u<n;u+=1){const f=WO(i.cell);if(f&&a.push(f),r){const p=WO(i.header_cell);p&&s.push(p)}}const l=[];for(let u=0;u<e;u+=1)l.push(i.row.createChecked(null,r&&u===0?s:a));return i.table.createChecked(null,l)}function Nue(t){return t instanceof zt}const jd=({editor:t})=>{const{selection:e}=t.state;if(!Nue(e))return!1;let n=0;const r=Zx(e.ranges[0].$from,i=>i.type.name==="table");return r==null||r.node.descendants(i=>{if(i.type.name==="table")return!1;["tableCell","tableHeader"].includes(i.type.name)&&(n+=1)}),n===e.ranges.length?(t.commands.deleteTable(),!0):!1},Lue=en.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Aue,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:n,tableWidth:r,tableMinWidth:o}=Iue(t,this.options.cellMinWidth);return["table",bt(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`min-width: ${o}`}),n,["tbody",0]]},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:o,editor:i})=>{const s=Pue(i.schema,t,e,n);if(o){const a=r.selection.from+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(Je.near(r.doc.resolve(a)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>Zce(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>Xce(t,e),deleteColumn:()=>({state:t,dispatch:e})=>eue(t,e),addRowBefore:()=>({state:t,dispatch:e})=>nue(t,e),addRowAfter:()=>({state:t,dispatch:e})=>rue(t,e),deleteRow:()=>({state:t,dispatch:e})=>iue(t,e),deleteTable:()=>({state:t,dispatch:e})=>fue(t,e),mergeCells:()=>({state:t,dispatch:e})=>IO(t,e),splitCell:()=>({state:t,dispatch:e})=>DO(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>Yc("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>Yc("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>uue(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>IO(t,e)?!0:DO(t,e),setCellAttribute:(t,e)=>({state:n,dispatch:r})=>lue(t,e)(n,r),goToNextCell:()=>({state:t,dispatch:e})=>NO(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>NO(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&vN(t),!0),setCellSelection:t=>({tr:e,dispatch:n})=>{if(n){const r=zt.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:jd,"Mod-Backspace":jd,Delete:jd,"Mod-Delete":jd}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[wN({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],_N({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:ct(ze(t,"tableRole",e))}}}),jue=Lue.extend({addProseMirrorPlugins(){return[...this.options.resizable?[wN({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],_N({allowTableNodeSelection:this.options.allowTableNodeSelection})]}}),$ue=t=>{const{onUploadFiles:e}=t,n=j.useTheme();return v.jsxs(gh,{children:[v.jsx(aN,{options:[{label:"Monospace",value:"monospace"},{label:"Serif",value:"serif"}]}),v.jsx(_n,{}),v.jsx(cN,{}),v.jsx(_n,{}),v.jsx(lN,{}),v.jsx(_n,{}),v.jsx(Yle,{}),v.jsx(ace,{}),v.jsx(gce,{}),v.jsx(dce,{}),v.jsx(fce,{}),v.jsx(pce,{}),v.jsx(_n,{}),v.jsx(mce,{defaultTextColor:n.palette.text.primary,swatchColors:[{value:"#000000",label:"Black"},{value:"#ffffff",label:"White"},{value:"#888888",label:"Grey"},{value:"#ff0000",label:"Red"},{value:"#ff9900",label:"Orange"},{value:"#ffff00",label:"Yellow"},{value:"#00d000",label:"Green"},{value:"#0000ff",label:"Blue"}]}),v.jsx(ece,{swatchColors:[{value:"#595959",label:"Dark grey"},{value:"#dddddd",label:"Light grey"},{value:"#ffa6a6",label:"Light red"},{value:"#ffd699",label:"Light orange"},{value:"#ffff00",label:"Yellow"},{value:"#99cc99",label:"Light green"},{value:"#90c6ff",label:"Light blue"},{value:"#8085e9",label:"Light purple"}]}),v.jsx(_n,{}),v.jsx(Qle,{}),v.jsx(_n,{}),v.jsx(uN,{}),v.jsx(_n,{}),v.jsx(lce,{}),v.jsx(Gle,{}),v.jsx(hce,{}),Cle()&&v.jsxs(v.Fragment,{children:[v.jsx(sce,{}),v.jsx(bce,{})]}),v.jsx(_n,{}),v.jsx(Kle,{}),v.jsx(_n,{}),v.jsx(Jle,{}),v.jsx(Zle,{}),v.jsx(_n,{}),e&&v.jsx(ice,{onUploadFiles:e}),v.jsx(_n,{}),v.jsx(tce,{}),v.jsx(Ule,{}),v.jsx(_n,{}),v.jsx(uce,{}),v.jsx(_n,{}),v.jsx(yce,{}),v.jsx(cce,{})]})},Fue=/^\s*>\s$/,kN=en.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[cl({find:Fue,type:this.type})]}}),Bue=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,zue=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Vue=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Hue=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,EN=yr.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Ks({find:Bue,type:this.type}),Ks({find:Vue,type:this.type})]},addPasteRules(){return[Ji({find:zue,type:this.type}),Ji({find:Hue,type:this.type})]}}),Wue="listItem",qO="textStyle",UO=/^\s*([-+*])\s$/,MN=en.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Wue,this.editor.getAttributes(qO)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=cl({find:UO,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=cl({find:UO,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(qO),editor:this.editor})),[t]}}),que=/(^|[^`])`([^`]+)`(?!`)/,Uue=/(^|[^`])`([^`]+)`(?!`)/g,ON=yr.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Ks({find:que,type:this.type})]},addPasteRules(){return[Ji({find:Uue,type:this.type})]}}),Kue=/^```([a-z]+)?[\s\n]$/,Yue=/^~~~([a-z]+)?[\s\n]$/,RN=en.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,i=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(n)).map(s=>s.replace(n,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",bt(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:o}=n;if(!o||r.parent.type!==this.type)return!1;const i=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
392
392
 
393
393
  `);return!i||!s?!1:t.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const a=o.after();return a===void 0?!1:r.nodeAt(a)?t.commands.command(({tr:u})=>(u.setSelection(et.near(r.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[dv({find:Kue,type:this.type,getAttributes:t=>({language:t[1]})}),dv({find:Yue,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new tn({key:new yn("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=o==null?void 0:o.mode;if(!n||!i)return!1;const{tr:s,schema:a}=t.state,l=a.text(n.replace(/\r\n?/g,`
394
394
  `));return s.replaceSelectionWith(this.type.create({language:i},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(Je.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),Gue=t=>{if(!t.children.length)return;const e=t.querySelectorAll("span");e&&e.forEach(n=>{var r,o;const i=n.getAttribute("style"),s=(o=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||o===void 0?void 0:o.getAttribute("style");n.setAttribute("style",`${s};${i}`)})},Jue=yr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&Gue(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(o=>o.type===this.type).some(o=>Object.values(o.attrs).some(i=>!!i))||t.removeMark(r,r+n.nodeSize,this.type)}),!0}}}}),Zue=un.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),AN=en.create({name:"doc",topNode:!0,content:"block+"});function Xue(t={}){return new tn({view(e){return new Que(e,t)}})}class Que{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let a=e.nodeBefore,l=e.nodeAfter;if(a||l){let u=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(u){let f=u.getBoundingClientRect(),p=a?f.bottom:f.top;a&&l&&(p=(p+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:f.left,right:f.right,top:p-this.width/2,bottom:p+this.width/2}}}}if(!r){let a=this.editorView.coordsAtPos(this.cursorPos);r={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,s=-pageYOffset;else{let a=o.getBoundingClientRect();i=a.left-o.scrollLeft,s=a.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=$I(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const IN=un.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Xue(this.options)]}}),ede=un.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily,renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});class ln extends et{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ln.valid(r)?new ln(r):et.near(r)}content(){return Ae.empty}eq(e){return e instanceof ln&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ln(e.resolve(n.pos))}getBookmark(){return new E1(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!tde(e)||!nde(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ln.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){i=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let l=e.doc.resolve(o);if(ln.valid(l))return l}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!Ue.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let a=e.doc.resolve(o);if(ln.valid(a))return a}return null}}}ln.prototype.visible=!1;ln.findFrom=ln.findGapCursorFrom;et.jsonID("gapcursor",ln);class E1{constructor(e){this.pos=e}map(e){return new E1(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ln.valid(n)?new ln(n):et.near(n)}}function tde(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function nde(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function rde(){return new tn({props:{decorations:ade,createSelectionBetween(t,e,n){return e.pos==n.pos&&ln.valid(n)?new ln(n):null},handleClick:ide,handleKeyDown:ode,handleDOMEvents:{beforeinput:sde}}})}const ode=qx({ArrowLeft:$d("horiz",-1),ArrowRight:$d("horiz",1),ArrowUp:$d("vert",-1),ArrowDown:$d("vert",1)});function $d(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,a=e>0?s.$to:s.$from,l=s.empty;if(s instanceof Je){if(!i.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=ln.findGapCursorFrom(a,e,l);return u?(o&&o(r.tr.setSelection(new ln(u))),!0):!1}}function ide(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ln.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Ue.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ln(r))),!0)}function sde(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ln))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=_e.empty;for(let s=r.length-1;s>=0;s--)o=_e.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new Ae(o,0,0));return i.setSelection(Je.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function ade(t){if(!(t.selection instanceof ln))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Xt.create(t.doc,[$n.widget(t.selection.head,e,{key:"gapcursor"})])}const DN=un.create({name:"gapCursor",addProseMirrorPlugins(){return[rde()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=ct(ze(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),PN=en.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",bt(this.options.HTMLAttributes,t)]},renderText(){return`
395
395
  `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=r.extensionManager,l=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&l&&s){const p=l.filter(m=>a.includes(m.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),lde=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,cde=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,ude=yr.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Ks({find:lde,type:this.type})]},addPasteRules(){return[Ji({find:cde,type:this.type})]}});var Hf=200,Rn=function(){};Rn.prototype.append=function(e){return e.length?(e=Rn.from(e),!this.length&&e||e.length<Hf&&this.leafAppend(e)||this.length<Hf&&e.leafPrepend(this)||this.appendInner(e)):this};Rn.prototype.prepend=function(e){return e.length?Rn.from(e).append(this):this};Rn.prototype.appendInner=function(e){return new dde(this,e)};Rn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Rn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};Rn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};Rn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};Rn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o};Rn.from=function(e){return e instanceof Rn?e:e&&e.length?new NN(e):Rn.empty};var NN=function(t){function e(r){t.call(this),this.values=r}e.__proto__=t,e.prototype=Object.create(t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,a){for(var l=i;l<s;l++)if(o(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,a){for(var l=i-1;l>=s;l--)if(o(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=Hf)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=Hf)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(Rn);Rn.empty=new NN([]);var dde=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e.__proto__=t,e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var a=this.left.length;if(o<a&&this.left.forEachInner(r,o,Math.min(i,a),s)===!1||i>a&&this.right.forEachInner(r,Math.max(o-a,0),Math.min(this.length,i)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var a=this.left.length;if(o>a&&this.right.forEachInvertedInner(r,o-a,Math.max(i,a)-a,s+a)===!1||i<a&&this.left.forEachInvertedInner(r,Math.min(o,a),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(Rn);const fde=500;class io{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,a,l,u=[],f=[];return this.items.forEach((p,m)=>{if(!p.step){o||(o=this.remapping(r,m+1),i=o.maps.length),i--,f.push(p);return}if(o){f.push(new So(p.map));let g=p.step.map(o.slice(i)),y;g&&s.maybeStep(g).doc&&(y=s.mapping.maps[s.mapping.maps.length-1],u.push(new So(y,void 0,void 0,u.length+f.length))),i--,y&&o.appendMap(y,i)}else s.maybeStep(p.step);if(p.selection)return a=o?p.selection.map(o.slice(i)):p.selection,l=new io(this.items.slice(0,r).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,n,r,o){let i=[],s=this.eventCount,a=this.items,l=!o&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let p=e.steps[f].invert(e.docs[f]),m=new So(e.mapping.maps[f],p,n),g;(g=l&&l.merge(m))&&(m=g,f?i.pop():a=a.slice(0,a.length-1)),i.push(m),n&&(s++,n=void 0),o||(l=m)}let u=s-r.depth;return u>hde&&(a=pde(a,u),s-=u),new io(a.append(i),s)}remapping(e,n){let r=new Fc;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new io(this.items.append(e.map(n=>new So(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(m=>{m.selection&&a--},o);let l=n;this.items.forEach(m=>{let g=i.getMirror(--l);if(g==null)return;s=Math.min(s,g);let y=i.maps[g];if(m.step){let b=e.steps[g].invert(e.docs[g]),S=m.selection&&m.selection.map(i.slice(l+1,g));S&&a++,r.push(new So(y,b,S))}else r.push(new So(y))},o);let u=[];for(let m=n;m<s;m++)u.push(new So(i.maps[m]));let f=this.items.slice(0,o).append(u).append(r),p=new io(f,a);return p.emptyItemCount()>fde&&(p=p.compress(this.items.length-r.length)),p}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,a)=>{if(a>=e)o.push(s),s.selection&&i++;else if(s.step){let l=s.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let f=s.selection&&s.selection.map(n.slice(r));f&&i++;let p=new So(u.invert(),l,f),m,g=o.length-1;(m=o.length&&o[g].merge(p))?o[g]=m:o.push(p)}}else s.map&&r--},this.items.length,0),new io(Rn.from(o.reverse()),i)}}io.empty=new io(Rn.empty,0);function pde(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class So{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new So(n.getMap().invert(),n,this.selection)}}}class Ai{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const hde=20;function mde(t,e,n,r){let o=n.getMeta(Fs),i;if(o)return o.historyState;n.getMeta(bde)&&(t=new Ai(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(Fs))return s.getMeta(Fs).redo?new Ai(t.done.addTransform(n,void 0,r,cf(e)),t.undone,KO(n.mapping.maps),t.prevTime,t.prevComposition):new Ai(t.done,t.undone.addTransform(n,void 0,r,cf(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!gde(n,t.prevRanges)),u=s?S0(t.prevRanges,n.mapping):KO(n.mapping.maps);return new Ai(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,cf(e)),io.empty,u,n.time,a??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Ai(t.done.rebased(n,i),t.undone.rebased(n,i),S0(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Ai(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),S0(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function gde(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function KO(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,i,s)=>e.push(i,s));return e}function S0(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function yde(t,e,n){let r=cf(e),o=Fs.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),o,r),l=new Ai(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(Fs,{redo:n,historyState:l})}let C0=!1,YO=null;function cf(t){let e=t.plugins;if(YO!=e){C0=!1,YO=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){C0=!0;break}}return C0}const Fs=new yn("history"),bde=new yn("closeHistory");function vde(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new tn({key:Fs,state:{init(){return new Ai(io.empty,io.empty,null,0,-1)},apply(e,n,r){return mde(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?jN:r=="historyRedo"?$N:null;return o?(n.preventDefault(),o(e.state,e.dispatch)):!1}}}})}function LN(t,e){return(n,r)=>{let o=Fs.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let i=yde(o,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const jN=LN(!1,!0),$N=LN(!0,!0),FN=un.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>jN(t,e),redo:()=>({state:t,dispatch:e})=>$N(t,e)}},addProseMirrorPlugins(){return[vde(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),BN=en.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",bt(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:r,$to:o}=n,i=t();return r.parentOffset===0?i.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):VD(n)?i.insertContentAt(o.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:s,dispatch:a})=>{var l;if(a){const{$to:u}=s.selection,f=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?s.setSelection(Je.create(s.doc,u.pos+1)):u.nodeAfter.isBlock?s.setSelection(Ue.create(s.doc,u.pos)):s.setSelection(Je.create(s.doc,u.pos));else{const p=(l=u.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();p&&(s.insert(f,p),s.setSelection(Je.create(s.doc,f+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[WD({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),xde=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Sde=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Cde=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,wde=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,zN=yr.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Ks({find:xde,type:this.type}),Ks({find:Cde,type:this.type})]},addPasteRules(){return[Ji({find:Sde,type:this.type}),Ji({find:wde,type:this.type})]}}),Tde="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",_de="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",dl=(t,e)=>{for(const n in e)t[n]=e[n];return t},Ov="numeric",Rv="ascii",Av="alpha",Sc="asciinumeric",sc="alphanumeric",Iv="domain",VN="emoji",kde="scheme",Ede="slashscheme",w0="whitespace";function Mde(t,e){return t in e||(e[t]=[]),e[t]}function Is(t,e,n){e[Ov]&&(e[Sc]=!0,e[sc]=!0),e[Rv]&&(e[Sc]=!0,e[Av]=!0),e[Sc]&&(e[sc]=!0),e[Av]&&(e[sc]=!0),e[sc]&&(e[Iv]=!0),e[VN]&&(e[Iv]=!0);for(const r in e){const o=Mde(r,n);o.indexOf(t)<0&&o.push(t)}}function Ode(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function fr(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}fr.groups={};fr.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||fr.groups;let o;return e&&e.j?o=e:(o=new fr(e),n&&r&&Is(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||fr.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,a=o.go(t);if(a?(s=new fr,dl(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new fr,i){if(r)if(s.t&&typeof s.t=="string"){const l=dl(Ode(s.t,r),n);Is(i,l,r)}else n&&Is(i,n,r);s.t=i}return o.j[t]=s,s}};const lt=(t,e,n,r,o)=>t.ta(e,n,r,o),on=(t,e,n,r,o)=>t.tr(e,n,r,o),GO=(t,e,n,r,o)=>t.ts(e,n,r,o),Oe=(t,e,n,r,o)=>t.tt(e,n,r,o),ni="WORD",Dv="UWORD",HN="ASCIINUMERICAL",WN="ALPHANUMERICAL",Gc="LOCALHOST",Pv="TLD",Nv="UTLD",uf="SCHEME",La="SLASH_SCHEME",M1="NUM",Lv="WS",O1="NL",Cc="OPENBRACE",wc="CLOSEBRACE",Wf="OPENBRACKET",qf="CLOSEBRACKET",Uf="OPENPAREN",Kf="CLOSEPAREN",Yf="OPENANGLEBRACKET",Gf="CLOSEANGLEBRACKET",Jf="FULLWIDTHLEFTPAREN",Zf="FULLWIDTHRIGHTPAREN",Xf="LEFTCORNERBRACKET",Qf="RIGHTCORNERBRACKET",ep="LEFTWHITECORNERBRACKET",tp="RIGHTWHITECORNERBRACKET",np="FULLWIDTHLESSTHAN",rp="FULLWIDTHGREATERTHAN",op="AMPERSAND",R1="APOSTROPHE",ip="ASTERISK",Ii="AT",sp="BACKSLASH",ap="BACKTICK",lp="CARET",Ni="COLON",A1="COMMA",cp="DOLLAR",Co="DOT",up="EQUALS",I1="EXCLAMATION",Br="HYPHEN",Tc="PERCENT",dp="PIPE",fp="PLUS",pp="POUND",_c="QUERY",D1="QUOTE",qN="FULLWIDTHMIDDLEDOT",P1="SEMI",wo="SLASH",kc="TILDE",hp="UNDERSCORE",UN="EMOJI",mp="SYM";var KN=Object.freeze({__proto__:null,WORD:ni,UWORD:Dv,ASCIINUMERICAL:HN,ALPHANUMERICAL:WN,LOCALHOST:Gc,TLD:Pv,UTLD:Nv,SCHEME:uf,SLASH_SCHEME:La,NUM:M1,WS:Lv,NL:O1,OPENBRACE:Cc,CLOSEBRACE:wc,OPENBRACKET:Wf,CLOSEBRACKET:qf,OPENPAREN:Uf,CLOSEPAREN:Kf,OPENANGLEBRACKET:Yf,CLOSEANGLEBRACKET:Gf,FULLWIDTHLEFTPAREN:Jf,FULLWIDTHRIGHTPAREN:Zf,LEFTCORNERBRACKET:Xf,RIGHTCORNERBRACKET:Qf,LEFTWHITECORNERBRACKET:ep,RIGHTWHITECORNERBRACKET:tp,FULLWIDTHLESSTHAN:np,FULLWIDTHGREATERTHAN:rp,AMPERSAND:op,APOSTROPHE:R1,ASTERISK:ip,AT:Ii,BACKSLASH:sp,BACKTICK:ap,CARET:lp,COLON:Ni,COMMA:A1,DOLLAR:cp,DOT:Co,EQUALS:up,EXCLAMATION:I1,HYPHEN:Br,PERCENT:Tc,PIPE:dp,PLUS:fp,POUND:pp,QUERY:_c,QUOTE:D1,FULLWIDTHMIDDLEDOT:qN,SEMI:P1,SLASH:wo,TILDE:kc,UNDERSCORE:hp,EMOJI:UN,SYM:mp});const Xo=/[a-z]/,Yl=new RegExp("\\p{L}","u"),T0=new RegExp("\\p{Emoji}","u"),Qo=/\d/,_0=/\s/,JO="\r",k0=`
396
- `,Rde="️",Ade="‍",E0="";let Fd=null,Bd=null;function Ide(t=[]){const e={};fr.groups=e;const n=new fr;Fd==null&&(Fd=ZO(Tde)),Bd==null&&(Bd=ZO(_de)),Oe(n,"'",R1),Oe(n,"{",Cc),Oe(n,"}",wc),Oe(n,"[",Wf),Oe(n,"]",qf),Oe(n,"(",Uf),Oe(n,")",Kf),Oe(n,"<",Yf),Oe(n,">",Gf),Oe(n,"(",Jf),Oe(n,")",Zf),Oe(n,"「",Xf),Oe(n,"」",Qf),Oe(n,"『",ep),Oe(n,"』",tp),Oe(n,"<",np),Oe(n,">",rp),Oe(n,"&",op),Oe(n,"*",ip),Oe(n,"@",Ii),Oe(n,"`",ap),Oe(n,"^",lp),Oe(n,":",Ni),Oe(n,",",A1),Oe(n,"$",cp),Oe(n,".",Co),Oe(n,"=",up),Oe(n,"!",I1),Oe(n,"-",Br),Oe(n,"%",Tc),Oe(n,"|",dp),Oe(n,"+",fp),Oe(n,"#",pp),Oe(n,"?",_c),Oe(n,'"',D1),Oe(n,"/",wo),Oe(n,";",P1),Oe(n,"~",kc),Oe(n,"_",hp),Oe(n,"\\",sp),Oe(n,"・",qN);const r=on(n,Qo,M1,{[Ov]:!0});on(r,Qo,r);const o=on(r,Xo,HN,{[Sc]:!0}),i=on(r,Yl,WN,{[sc]:!0}),s=on(n,Xo,ni,{[Rv]:!0});on(s,Qo,o),on(s,Xo,s),on(o,Qo,o),on(o,Xo,o);const a=on(n,Yl,Dv,{[Av]:!0});on(a,Xo),on(a,Qo,i),on(a,Yl,a),on(i,Qo,i),on(i,Xo),on(i,Yl,i);const l=Oe(n,k0,O1,{[w0]:!0}),u=Oe(n,JO,Lv,{[w0]:!0}),f=on(n,_0,Lv,{[w0]:!0});Oe(n,E0,f),Oe(u,k0,l),Oe(u,E0,f),on(u,_0,f),Oe(f,JO),Oe(f,k0),on(f,_0,f),Oe(f,E0,f);const p=on(n,T0,UN,{[VN]:!0});Oe(p,"#"),on(p,T0,p),Oe(p,Rde,p);const m=Oe(p,Ade);Oe(m,"#"),on(m,T0,p);const g=[[Xo,s],[Qo,o]],y=[[Xo,null],[Yl,a],[Qo,i]];for(let b=0;b<Fd.length;b++)Ei(n,Fd[b],Pv,ni,g);for(let b=0;b<Bd.length;b++)Ei(n,Bd[b],Nv,Dv,y);Is(Pv,{tld:!0,ascii:!0},e),Is(Nv,{utld:!0,alpha:!0},e),Ei(n,"file",uf,ni,g),Ei(n,"mailto",uf,ni,g),Ei(n,"http",La,ni,g),Ei(n,"https",La,ni,g),Ei(n,"ftp",La,ni,g),Ei(n,"ftps",La,ni,g),Is(uf,{scheme:!0,ascii:!0},e),Is(La,{slashscheme:!0,ascii:!0},e),t=t.sort((b,S)=>b[0]>S[0]?1:-1);for(let b=0;b<t.length;b++){const S=t[b][0],_=t[b][1]?{[kde]:!0}:{[Ede]:!0};S.indexOf("-")>=0?_[Iv]=!0:Xo.test(S)?Qo.test(S)?_[Sc]=!0:_[Rv]=!0:_[Ov]=!0,GO(n,S,S,_)}return GO(n,"localhost",Gc,{ascii:!0}),n.jd=new fr(mp),{start:n,tokens:dl({groups:e},KN)}}function YN(t,e){const n=Dde(e.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let a=t,l=null,u=0,f=null,p=-1,m=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(p=0,m=0,f=a):p>=0&&(p+=n[s].length,m++),u+=n[s].length,i+=n[s].length,s++;i-=p,s-=m,u-=p,o.push({t:f.t,v:e.slice(i-u,i),s:i-u,e:i})}return o}function Dde(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Ei(t,e,n,r,o){let i;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new fr(r),i.jr=o.slice(),t.j[l]=i),t=i}return i=new fr(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function ZO(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Jc={defaultProtocol:"http",events:null,format:XO,formatHref:XO,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function N1(t,e=null){let n=dl({},Jc);t&&(n=dl(n,t instanceof N1?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}N1.prototype={o:Jc,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Jc[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function XO(t){return t}function GN(t,e){this.t="token",this.v=t,this.tk=e}GN.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Jc.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),u=t.get("rel",n,e),f=t.getObj("attributes",n,e),p=t.getObj("events",n,e);return s.href=r,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),f&&dl(s,f),{tagName:o,attributes:s,content:i,eventListeners:p}}};function vh(t,e){class n extends GN{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const QO=vh("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eR=vh("text"),Pde=vh("nl"),zd=vh("url",{isLink:!0,toHref(t=Jc.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Gc&&t[1].t===Ni}}),Fr=t=>new fr(t);function Nde({groups:t}){const e=t.domain.concat([op,ip,Ii,sp,ap,lp,cp,up,Br,M1,Tc,dp,fp,pp,wo,mp,kc,hp]),n=[Ni,A1,Co,I1,Tc,_c,D1,P1,Yf,Gf,Cc,wc,qf,Wf,Uf,Kf,Jf,Zf,Xf,Qf,ep,tp,np,rp],r=[op,R1,ip,sp,ap,lp,cp,up,Br,Cc,wc,Tc,dp,fp,pp,_c,wo,mp,kc,hp],o=Fr(),i=Oe(o,kc);lt(i,r,i),lt(i,t.domain,i);const s=Fr(),a=Fr(),l=Fr();lt(o,t.domain,s),lt(o,t.scheme,a),lt(o,t.slashscheme,l),lt(s,r,i),lt(s,t.domain,s);const u=Oe(s,Ii);Oe(i,Ii,u),Oe(a,Ii,u),Oe(l,Ii,u);const f=Oe(i,Co);lt(f,r,i),lt(f,t.domain,i);const p=Fr();lt(u,t.domain,p),lt(p,t.domain,p);const m=Oe(p,Co);lt(m,t.domain,p);const g=Fr(QO);lt(m,t.tld,g),lt(m,t.utld,g),Oe(u,Gc,g);const y=Oe(p,Br);Oe(y,Br,y),lt(y,t.domain,p),lt(g,t.domain,p),Oe(g,Co,m),Oe(g,Br,y);const b=Oe(g,Ni);lt(b,t.numeric,QO);const S=Oe(s,Br),C=Oe(s,Co);Oe(S,Br,S),lt(S,t.domain,s),lt(C,r,i),lt(C,t.domain,s);const _=Fr(zd);lt(C,t.tld,_),lt(C,t.utld,_),lt(_,t.domain,s),lt(_,r,i),Oe(_,Co,C),Oe(_,Br,S),Oe(_,Ii,u);const T=Oe(_,Ni),w=Fr(zd);lt(T,t.numeric,w);const E=Fr(zd),O=Fr();lt(E,e,E),lt(E,n,O),lt(O,e,E),lt(O,n,O),Oe(_,wo,E),Oe(w,wo,E);const N=Oe(a,Ni),D=Oe(l,Ni),L=Oe(D,wo),M=Oe(L,wo);lt(a,t.domain,s),Oe(a,Co,C),Oe(a,Br,S),lt(l,t.domain,s),Oe(l,Co,C),Oe(l,Br,S),lt(N,t.domain,E),Oe(N,wo,E),Oe(N,_c,E),lt(M,t.domain,E),lt(M,e,E),Oe(M,wo,E);const R=[[Cc,wc],[Wf,qf],[Uf,Kf],[Yf,Gf],[Jf,Zf],[Xf,Qf],[ep,tp],[np,rp]];for(let P=0;P<R.length;P++){const[z,F]=R[P],$=Oe(E,z);Oe(O,z,$),Oe($,F,E);const B=Fr(zd);lt($,e,B);const q=Fr();lt($,n),lt(B,e,B),lt(B,n,q),lt(q,e,B),lt(q,n,q),Oe(B,F,E),Oe(q,F,E)}return Oe(o,Gc,_),Oe(o,O1,Pde),{start:o,tokens:KN}}function Lde(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let a=t,l=null,u=null,f=0,p=null,m=-1;for(;o<r&&!(l=a.go(n[o].t));)s.push(n[o++]);for(;o<r&&(u=l||a.go(n[o].t));)l=null,a=u,a.accepts()?(m=0,p=a):m>=0&&m++,o++,f++;if(m<0)o-=f,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(M0(eR,e,s)),s=[]),o-=m,f-=m;const g=p.t,y=n.slice(o-f,o);i.push(M0(g,e,y))}}return s.length>0&&i.push(M0(eR,e,s)),i}function M0(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const jde=typeof console<"u"&&console&&console.warn||(()=>{}),$de="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Wt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Fde(){return fr.groups={},Wt.scanner=null,Wt.parser=null,Wt.tokenQueue=[],Wt.pluginQueue=[],Wt.customSchemes=[],Wt.initialized=!1,Wt}function tR(t,e=!1){if(Wt.initialized&&jde(`linkifyjs: already initialized - will not register custom scheme "${t}" ${$de}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
396
+ `,Rde="️",Ade="‍",E0="";let Fd=null,Bd=null;function Ide(t=[]){const e={};fr.groups=e;const n=new fr;Fd==null&&(Fd=ZO(Tde)),Bd==null&&(Bd=ZO(_de)),Oe(n,"'",R1),Oe(n,"{",Cc),Oe(n,"}",wc),Oe(n,"[",Wf),Oe(n,"]",qf),Oe(n,"(",Uf),Oe(n,")",Kf),Oe(n,"<",Yf),Oe(n,">",Gf),Oe(n,"(",Jf),Oe(n,")",Zf),Oe(n,"「",Xf),Oe(n,"」",Qf),Oe(n,"『",ep),Oe(n,"』",tp),Oe(n,"<",np),Oe(n,">",rp),Oe(n,"&",op),Oe(n,"*",ip),Oe(n,"@",Ii),Oe(n,"`",ap),Oe(n,"^",lp),Oe(n,":",Ni),Oe(n,",",A1),Oe(n,"$",cp),Oe(n,".",Co),Oe(n,"=",up),Oe(n,"!",I1),Oe(n,"-",Br),Oe(n,"%",Tc),Oe(n,"|",dp),Oe(n,"+",fp),Oe(n,"#",pp),Oe(n,"?",_c),Oe(n,'"',D1),Oe(n,"/",wo),Oe(n,";",P1),Oe(n,"~",kc),Oe(n,"_",hp),Oe(n,"\\",sp),Oe(n,"・",qN);const r=on(n,Qo,M1,{[Ov]:!0});on(r,Qo,r);const o=on(r,Xo,HN,{[Sc]:!0}),i=on(r,Yl,WN,{[sc]:!0}),s=on(n,Xo,ni,{[Rv]:!0});on(s,Qo,o),on(s,Xo,s),on(o,Qo,o),on(o,Xo,o);const a=on(n,Yl,Dv,{[Av]:!0});on(a,Xo),on(a,Qo,i),on(a,Yl,a),on(i,Qo,i),on(i,Xo),on(i,Yl,i);const l=Oe(n,k0,O1,{[w0]:!0}),u=Oe(n,JO,Lv,{[w0]:!0}),f=on(n,_0,Lv,{[w0]:!0});Oe(n,E0,f),Oe(u,k0,l),Oe(u,E0,f),on(u,_0,f),Oe(f,JO),Oe(f,k0),on(f,_0,f),Oe(f,E0,f);const p=on(n,T0,UN,{[VN]:!0});Oe(p,"#"),on(p,T0,p),Oe(p,Rde,p);const m=Oe(p,Ade);Oe(m,"#"),on(m,T0,p);const g=[[Xo,s],[Qo,o]],y=[[Xo,null],[Yl,a],[Qo,i]];for(let b=0;b<Fd.length;b++)Ei(n,Fd[b],Pv,ni,g);for(let b=0;b<Bd.length;b++)Ei(n,Bd[b],Nv,Dv,y);Is(Pv,{tld:!0,ascii:!0},e),Is(Nv,{utld:!0,alpha:!0},e),Ei(n,"file",uf,ni,g),Ei(n,"mailto",uf,ni,g),Ei(n,"http",La,ni,g),Ei(n,"https",La,ni,g),Ei(n,"ftp",La,ni,g),Ei(n,"ftps",La,ni,g),Is(uf,{scheme:!0,ascii:!0},e),Is(La,{slashscheme:!0,ascii:!0},e),t=t.sort((b,S)=>b[0]>S[0]?1:-1);for(let b=0;b<t.length;b++){const S=t[b][0],_=t[b][1]?{[kde]:!0}:{[Ede]:!0};S.indexOf("-")>=0?_[Iv]=!0:Xo.test(S)?Qo.test(S)?_[Sc]=!0:_[Rv]=!0:_[Ov]=!0,GO(n,S,S,_)}return GO(n,"localhost",Gc,{ascii:!0}),n.jd=new fr(mp),{start:n,tokens:dl({groups:e},KN)}}function YN(t,e){const n=Dde(e.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let a=t,l=null,u=0,f=null,p=-1,m=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(p=0,m=0,f=a):p>=0&&(p+=n[s].length,m++),u+=n[s].length,i+=n[s].length,s++;i-=p,s-=m,u-=p,o.push({t:f.t,v:e.slice(i-u,i),s:i-u,e:i})}return o}function Dde(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Ei(t,e,n,r,o){let i;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new fr(r),i.jr=o.slice(),t.j[l]=i),t=i}return i=new fr(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function ZO(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Jc={defaultProtocol:"http",events:null,format:XO,formatHref:XO,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function N1(t,e=null){let n=dl({},Jc);t&&(n=dl(n,t instanceof N1?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}N1.prototype={o:Jc,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Jc[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function XO(t){return t}function GN(t,e){this.t="token",this.v=t,this.tk=e}GN.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Jc.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),u=t.get("rel",n,e),f=t.getObj("attributes",n,e),p=t.getObj("events",n,e);return s.href=r,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),f&&dl(s,f),{tagName:o,attributes:s,content:i,eventListeners:p}}};function vh(t,e){class n extends GN{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const QO=vh("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eR=vh("text"),Pde=vh("nl"),zd=vh("url",{isLink:!0,toHref(t=Jc.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Gc&&t[1].t===Ni}}),Fr=t=>new fr(t);function Nde({groups:t}){const e=t.domain.concat([op,ip,Ii,sp,ap,lp,cp,up,Br,M1,Tc,dp,fp,pp,wo,mp,kc,hp]),n=[Ni,A1,Co,I1,Tc,_c,D1,P1,Yf,Gf,Cc,wc,qf,Wf,Uf,Kf,Jf,Zf,Xf,Qf,ep,tp,np,rp],r=[op,R1,ip,sp,ap,lp,cp,up,Br,Cc,wc,Tc,dp,fp,pp,_c,wo,mp,kc,hp],o=Fr(),i=Oe(o,kc);lt(i,r,i),lt(i,t.domain,i);const s=Fr(),a=Fr(),l=Fr();lt(o,t.domain,s),lt(o,t.scheme,a),lt(o,t.slashscheme,l),lt(s,r,i),lt(s,t.domain,s);const u=Oe(s,Ii);Oe(i,Ii,u),Oe(a,Ii,u),Oe(l,Ii,u);const f=Oe(i,Co);lt(f,r,i),lt(f,t.domain,i);const p=Fr();lt(u,t.domain,p),lt(p,t.domain,p);const m=Oe(p,Co);lt(m,t.domain,p);const g=Fr(QO);lt(m,t.tld,g),lt(m,t.utld,g),Oe(u,Gc,g);const y=Oe(p,Br);Oe(y,Br,y),lt(y,t.domain,p),lt(g,t.domain,p),Oe(g,Co,m),Oe(g,Br,y);const b=Oe(g,Ni);lt(b,t.numeric,QO);const S=Oe(s,Br),C=Oe(s,Co);Oe(S,Br,S),lt(S,t.domain,s),lt(C,r,i),lt(C,t.domain,s);const _=Fr(zd);lt(C,t.tld,_),lt(C,t.utld,_),lt(_,t.domain,s),lt(_,r,i),Oe(_,Co,C),Oe(_,Br,S),Oe(_,Ii,u);const T=Oe(_,Ni),w=Fr(zd);lt(T,t.numeric,w);const E=Fr(zd),O=Fr();lt(E,e,E),lt(E,n,O),lt(O,e,E),lt(O,n,O),Oe(_,wo,E),Oe(w,wo,E);const N=Oe(a,Ni),D=Oe(l,Ni),L=Oe(D,wo),M=Oe(L,wo);lt(a,t.domain,s),Oe(a,Co,C),Oe(a,Br,S),lt(l,t.domain,s),Oe(l,Co,C),Oe(l,Br,S),lt(N,t.domain,E),Oe(N,wo,E),Oe(N,_c,E),lt(M,t.domain,E),lt(M,e,E),Oe(M,wo,E);const R=[[Cc,wc],[Wf,qf],[Uf,Kf],[Yf,Gf],[Jf,Zf],[Xf,Qf],[ep,tp],[np,rp]];for(let P=0;P<R.length;P++){const[B,z]=R[P],$=Oe(E,B);Oe(O,B,$),Oe($,z,E);const F=Fr(zd);lt($,e,F);const q=Fr();lt($,n),lt(F,e,F),lt(F,n,q),lt(q,e,F),lt(q,n,q),Oe(F,z,E),Oe(q,z,E)}return Oe(o,Gc,_),Oe(o,O1,Pde),{start:o,tokens:KN}}function Lde(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let a=t,l=null,u=null,f=0,p=null,m=-1;for(;o<r&&!(l=a.go(n[o].t));)s.push(n[o++]);for(;o<r&&(u=l||a.go(n[o].t));)l=null,a=u,a.accepts()?(m=0,p=a):m>=0&&m++,o++,f++;if(m<0)o-=f,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(M0(eR,e,s)),s=[]),o-=m,f-=m;const g=p.t,y=n.slice(o-f,o);i.push(M0(g,e,y))}}return s.length>0&&i.push(M0(eR,e,s)),i}function M0(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const jde=typeof console<"u"&&console&&console.warn||(()=>{}),$de="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Wt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Fde(){return fr.groups={},Wt.scanner=null,Wt.parser=null,Wt.tokenQueue=[],Wt.pluginQueue=[],Wt.customSchemes=[],Wt.initialized=!1,Wt}function tR(t,e=!1){if(Wt.initialized&&jde(`linkifyjs: already initialized - will not register custom scheme "${t}" ${$de}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
397
397
  1. Must only contain digits, lowercase ASCII letters or "-"
398
398
  2. Cannot start or end with "-"
399
- 3. "-" cannot repeat`);Wt.customSchemes.push([t,e])}function Bde(){Wt.scanner=Ide(Wt.customSchemes);for(let t=0;t<Wt.tokenQueue.length;t++)Wt.tokenQueue[t][1]({scanner:Wt.scanner});Wt.parser=Nde(Wt.scanner.tokens);for(let t=0;t<Wt.pluginQueue.length;t++)Wt.pluginQueue[t][1]({scanner:Wt.scanner,parser:Wt.parser});return Wt.initialized=!0,Wt}function L1(t){return Wt.initialized||Bde(),Lde(Wt.parser.start,t,YN(Wt.scanner.start,t))}L1.scan=YN;function JN(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new N1(n),o=L1(t),i=[];for(let s=0;s<o.length;s++){const a=o[s];a.isLink&&(!e||a.t===e)&&r.check(a)&&i.push(a.toFormattedObject(r))}return i}function zde(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function Vde(t){return new tn({key:new yn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,a=Ure(n.doc,[...e]);if(Xre(a).forEach(({newRange:u})=>{const f=Yre(r.doc,u,g=>g.isTextblock);let p,m;if(f.length>1?(p=f[0],m=r.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):f.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(p=f[0],m=r.doc.textBetween(p.pos,u.to,void 0," ")),p&&m){const g=m.split(" ").filter(C=>C!=="");if(g.length<=0)return!1;const y=g[g.length-1],b=p.pos+m.lastIndexOf(y);if(!y)return!1;const S=L1(y).map(C=>C.toObject(t.defaultProtocol));if(!zde(S))return!1;S.filter(C=>C.isLink).map(C=>({...C,from:b+C.start+1,to:b+C.end+1})).filter(C=>r.schema.marks.code?!r.doc.rangeHasMark(C.from,C.to,r.schema.marks.code):!0).filter(C=>t.validate(C.value)).filter(C=>t.shouldAutoLink(C.value)).forEach(C=>{e1(C.from,C.to,r.doc).some(_=>_.mark.type===t.type)||s.addMark(C.from,C.to,t.type.create({href:C.href}))})}}),!!s.steps.length)return s}})}function Hde(t){return new tn({key:new yn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=r.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=Qx(e.state,t.type.name),u=r.target,f=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:l.href,p=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&f?(window.open(f,p),!0):!1}}})}function Wde(t){return new tn({key:new yn("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const l=JN(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}const qde=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Ss(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(qde,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Ude=yr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){tR(t);return}tR(t.scheme,t.optionalSlashes)})},onDestroy(){Fde()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Ss(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Ss(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Ss(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",bt(this.options.HTMLAttributes,t),0]:["a",bt(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Ss(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Ss(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Ji({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=JN(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Ss(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(Vde({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!Ss(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(Hde({type:this.type})),this.options.linkOnPaste&&t.push(Wde({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),ZN=en.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",bt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});function Kde(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:a}=t,l=r&&!o,u=Ioe(n),f=new RegExp(`\\s${u}$`),p=s?"^":"",m=o?"":u,g=l?new RegExp(`${p}${u}.*?(?=\\s${m}|$)`,"gm"):new RegExp(`${p}(?:^)?${u}[^\\s${m}]*`,"gm"),y=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!y)return null;const b=a.pos-y.length,S=Array.from(y.matchAll(g)).pop();if(!S||S.input===void 0||S.index===void 0)return null;const C=S.input.slice(Math.max(0,S.index-1),S.index),_=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(C);if(i!==null&&!_)return null;const T=b+S.index;let w=T+S[0].length;return l&&f.test(y.slice(w-1,w+1))&&(S[0]+=" ",w+=1),T<a.pos&&w>=a.pos?{range:{from:T,to:w},query:S[0].slice(n.length),text:S[0]}:null}const Yde=new yn("suggestion");function Gde({pluginKey:t=Yde,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",command:u=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:g=Kde}){let y;const b=p==null?void 0:p(),S=new tn({key:t,view(){return{update:async(C,_)=>{var T,w,E,O,N,D,L;const M=(T=this.key)===null||T===void 0?void 0:T.getState(_),R=(w=this.key)===null||w===void 0?void 0:w.getState(C.state),P=M.active&&R.active&&M.range.from!==R.range.from,z=!M.active&&R.active,F=M.active&&!R.active,$=!z&&!F&&M.query!==R.query,B=z||P&&$,q=$||P,K=F||P&&$;if(!B&&!q&&!K)return;const G=K&&!B?M:R,Y=C.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);y={editor:e,range:G.range,query:G.query,text:G.text,items:[],command:Z=>u({editor:e,range:G.range,props:Z}),decorationNode:Y,clientRect:Y?()=>{var Z;const{decorationId:ge}=(Z=this.key)===null||Z===void 0?void 0:Z.getState(e.state),he=C.dom.querySelector(`[data-decoration-id="${ge}"]`);return(he==null?void 0:he.getBoundingClientRect())||null}:null},B&&((E=b==null?void 0:b.onBeforeStart)===null||E===void 0||E.call(b,y)),q&&((O=b==null?void 0:b.onBeforeUpdate)===null||O===void 0||O.call(b,y)),(q||B)&&(y.items=await f({editor:e,query:G.query})),K&&((N=b==null?void 0:b.onExit)===null||N===void 0||N.call(b,y)),q&&((D=b==null?void 0:b.onUpdate)===null||D===void 0||D.call(b,y)),B&&((L=b==null?void 0:b.onStart)===null||L===void 0||L.call(b,y))},destroy:()=>{var C;y&&((C=b==null?void 0:b.onExit)===null||C===void 0||C.call(b,y))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(C,_,T,w){const{isEditable:E}=e,{composing:O}=e.view,{selection:N}=C,{empty:D,from:L}=N,M={..._};if(M.composing=O,E&&(D||e.view.composing)){(L<_.range.from||L>_.range.to)&&!O&&!_.composing&&(M.active=!1);const R=g({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:N.$from}),P=`id_${Math.floor(Math.random()*4294967295)}`;R&&m({editor:e,state:w,range:R.range,isActive:_.active})?(M.active=!0,M.decorationId=_.decorationId?_.decorationId:P,M.range=R.range,M.query=R.query,M.text=R.text):M.active=!1}else M.active=!1;return M.active||(M.decorationId=null,M.range={from:0,to:0},M.query=null,M.text=null),M}},props:{handleKeyDown(C,_){var T;const{active:w,range:E}=S.getState(C.state);return w&&((T=b==null?void 0:b.onKeyDown)===null||T===void 0?void 0:T.call(b,{view:C,event:_,range:E}))||!1},decorations(C){const{active:_,range:T,decorationId:w}=S.getState(C);return _?Xt.create(C.doc,[$n.inline(T.from,T.to,{nodeName:a,class:l,"data-decoration-id":w})]):null}}});return S}const Jde=new yn("mention"),Zde=en.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:t,node:e}){var n;return`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e}){var n;return["span",bt(this.HTMLAttributes,t.HTMLAttributes),`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`]},suggestion:{char:"@",pluginKey:Jde,command:({editor:t,range:e,props:n})=>{var r,o,i;const s=t.view.state.selection.$to.nodeAfter;((r=s==null?void 0:s.text)===null||r===void 0?void 0:r.startsWith(" "))&&(e.to+=1),t.chain().focus().insertContentAt(e,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(i=(o=t.view.dom.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection())===null||i===void 0||i.collapseToEnd()},allow:({state:t,range:e})=>{const n=t.doc.resolve(e.from),r=t.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",bt({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t})];const n={...this.options};n.HTMLAttributes=bt({"data-type":this.name},this.options.HTMLAttributes,e);const r=this.options.renderHTML({options:n,node:t});return typeof r=="string"?["span",bt({"data-type":this.name},this.options.HTMLAttributes,e),r]:r},renderText({node:t}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:t})):this.options.renderText({options:this.options,node:t})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:o,anchor:i}=r;return o?(e.doc.nodesBetween(i-1,i,(s,a)=>{if(s.type.name===this.name)return n=!0,t.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",a,a+s.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[Gde({editor:this.editor,...this.options.suggestion})]}}),Xde="listItem",nR="textStyle",rR=/^(\d+)\.\s$/,XN=en.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",bt(this.options.HTMLAttributes,n),0]:["ol",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Xde,this.editor.getAttributes(nR)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=cl({find:rR,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=cl({find:rR,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(nR)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),QN=en.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),eL=un.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new tn({key:new yn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=r>=a&&r<=a+s.nodeSize,u=!s.isLeaf&&ah(s);if((l||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const p=$n.node(a,a+s.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});o.push(p)}return this.options.includeChildren}),Xt.create(t,o)}}})]}}),Qde=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,efe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tL=yr.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Ks({find:Qde,type:this.type})]},addPasteRules(){return[Ji({find:efe,type:this.type})]}}),tfe=yr.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),nfe=yr.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),rfe=en.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",bt(this.options.HTMLAttributes,t),0]}}),ofe=en.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",bt(this.options.HTMLAttributes,t),0]}}),ife=en.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",bt(this.options.HTMLAttributes,t),0]}}),sfe=/^\s*(\[([( |x])?\])\s$/,afe=en.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",bt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div");return i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",u=>u.preventDefault()),a.addEventListener("change",u=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:f}=u.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const m=n();if(typeof m!="number")return!1;const g=p.doc.nodeAt(m);return p.setNodeMarkup(m,void 0,{...g==null?void 0:g.attrs,checked:f}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,f)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([u,f])=>{o.setAttribute(u,f)}),o.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,s),o.append(i,l),Object.entries(e).forEach(([u,f])=>{o.setAttribute(u,f)}),{dom:o,contentDOM:l,update:u=>u.type!==this.type?!1:(o.dataset.checked=u.attrs.checked,a.checked=u.attrs.checked,!0)}}},addInputRules(){return[cl({find:sfe,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),lfe=en.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",bt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),nL=en.create({name:"text",group:"inline"}),cfe=un.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),ufe=yr.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),rL=J.forwardRef((t,e)=>{const[n,r]=J.useState(0),o=l=>{if(l>=t.items.length)return;const u=t.items[l],f={id:u.id,label:u.mentionLabel};t.command(f)},i=()=>{r((n+t.items.length-1)%t.items.length)},s=()=>{r((n+1)%t.items.length)},a=()=>{o(n)};return J.useEffect(()=>r(0),[t.items]),J.useImperativeHandle(e,()=>({onKeyDown:({event:l})=>l.key==="ArrowUp"?(i(),!0):l.key==="ArrowDown"?(s(),!0):l.key==="Enter"?(a(),!0):!1})),t.items.length>0?v.jsx(j.Paper,{elevation:5,children:v.jsx(j.List,{dense:!0,sx:{overflow:"hidden"},children:t.items.map((l,u)=>v.jsx(j.ListItem,{disablePadding:!0,children:v.jsx(j.ListItemButton,{selected:u===n,onClick:()=>o(u),children:l.mentionLabel})},l.id))})}):null});rL.displayName="SuggestionList";const oR={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){return{}}},dfe={items:async({query:t})=>Promise.resolve(["Lea Thompson","Cyndi Lauper","Tom Cruise","Madonna","Jerry Hall","Joan Collins","Winona Ryder","Christina Applegate","Alyssa Milano","Molly Ringwald","Ally Sheedy","Debbie Harry","Olivia Newton-John","Elton John","Michael J. Fox","Axl Rose","Emilio Estevez","Ralph Macchio","Rob Lowe","Jennifer Grey","Mickey Rourke","John Cusack","Matthew Broderick","Justine Bateman","Lisa Bonet","Benicio Monserrate Rafael del Toro Sánchez"].map((e,n)=>({mentionLabel:e,id:n.toString()})).filter(e=>e.mentionLabel.toLowerCase().startsWith(t.toLowerCase())).slice(0,5)),render:()=>{let t,e;return{onStart:n=>{t=new VP(rL,{props:n,editor:n.editor}),e=bu("body",{getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??oR},appendTo:()=>document.body,content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})[0]},onUpdate(n){t==null||t.updateProps(n),e==null||e.setProps({getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??oR}})},onKeyDown(n){return n.event.key==="Escape"?(e==null||e.hide(),!0):t!=null&&t.ref?t.ref.onKeyDown(n):!1},onExit(){e==null||e.destroy(),t==null||t.destroy(),e=void 0,t=void 0}}}},ffe=Ude.extend({inclusive:!1}),pfe=tfe.extend({excludes:"superscript"}),hfe=nfe.extend({excludes:"subscript"});function mfe({placeholder:t}={}){return J.useMemo(()=>[jue.configure({resizable:!0}),ife,ofe,rfe,MN,RN,AN,PN,ZN,XN,QN,pfe,hfe,nL,EN,kN,ON,zN,ufe,tL,ffe.configure({autolink:!0,linkOnPaste:!0,openOnClick:!1}),Ase,DN,Mce,cfe.configure({types:["heading","paragraph","image"]}),Jue,Zue,ede,kce,ude.configure({multicolor:!0}),BN,Nce,IN,lfe,afe.configure({nested:!0}),Zde.configure({suggestion:dfe}),eL.configure({placeholder:t}),FN],[t])}function iR(t){return Array.from(t).filter(e=>(e.type||"").toLowerCase().startsWith("image/"))}const gfe=t=>{const e=mfe({placeholder:"Add your own content here..."});if(t.renderContentOnly)return v.jsx(ole,{content:t.renderContentOnly,extensions:e});const{name:n,label:r,labelProps:o={fontSize:"0.9em",color:"#808080",fontWeight:"400"},onUploadFiles:i,readOnly:s=!1}=t,[a,l,u]=qt.useField({name:n}),{setValue:f}=u,{value:p}=a;J.useEffect(()=>{var C,_,T;(T=(_=(C=m==null?void 0:m.current)==null?void 0:C.editor)==null?void 0:_.commands)==null||T.setContent(p)},[p]);const m=J.useRef(null),g=J.useCallback((C,_)=>{var w;const T=(w=m.current)==null?void 0:w.editor;if(!(!T||!i))if(i instanceof Promise)i(C).then(E=>{Cv({images:E,editor:T,position:_})});else{const E=i(C);Cv({images:E,editor:T,position:_})}},[]),y=J.useCallback((C,_,T,w)=>{var O;if(!(_ instanceof DragEvent)||!_.dataTransfer)return!1;const E=iR(_.dataTransfer.files);if(E.length>0){const N=(O=C.posAtCoords({left:_.clientX,top:_.clientY}))==null?void 0:O.pos;return g(E,N),_.preventDefault(),!0}return!1},[g]),b=J.useCallback((C,_,T)=>{if(!_.clipboardData)return!1;const w=iR(_.clipboardData.files);return w.length>0?(g(w),!0):!1},[g]),S=v.jsx(j.Box,{sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:s?0:50}}},children:v.jsx(YP,{ref:m,extensions:e,content:p,editable:!s,editorProps:{handleDrop:y,handlePaste:b},renderControls:s?void 0:()=>v.jsx($ue,{onUploadFiles:i}),onBlur:()=>{var C,_;return f(((_=(C=m.current)==null?void 0:C.editor)==null?void 0:_.getHTML())??"")},RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:s}},children:()=>v.jsxs(v.Fragment,{children:[v.jsx(kP,{}),v.jsx(GP,{})]})})});return v.jsxs(j.Box,{display:"flex",flexDirection:"column",children:[r&&v.jsx(j.Typography,{...o,children:r}),S]})},jv=t=>{const{title:e="Loading...",message:n}=t;return v.jsxs(j.Box,{className:"loading-page",sx:{gap:2},"data-testid":"loading-page",children:[v.jsxs(j.Box,{className:"text-content",children:[v.jsx(j.Typography,{variant:"h1","data-testid":"title",children:e}),n&&v.jsx(j.Typography,{"data-testid":"message",children:n})]}),v.jsx(j.CircularProgress,{size:75,"data-testid":"loading-spinner"})]})},sR=t=>{const{colSpan:e,isExpanded:n,renderExpand:r,obj:o,asMobileCard:i=!1,reRenderExpand:s=!1}=t,[a,l]=J.useState(!1),[u,f]=J.useState(void 0);return J.useEffect(()=>{n&&(!a||s)&&(l(!0),f(r(o)))},[n,o]),i?v.jsx(j.Box,{children:v.jsx(j.Collapse,{in:n,children:u})}):v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{style:{paddingBottom:0,paddingTop:0},colSpan:e,children:v.jsx(j.Collapse,{in:n,children:u})})})},oL=t=>{const{id:e,getRowKey:n=W=>"id"in W&&(typeof W.id=="string"||typeof W.id=="number")?W.id:(console.warn(`Table: "id: string | number" not found in ${JSON.stringify(W)}. Please implement the Table.getRowKey prop so Table knows how to uniquely identify this row.`),JSON.stringify(W)),columns:r,data:o=[],onRowClick:i,renderExpand:s,hideColumnsOnMobile:a=[],sortField:l,sortOrder:u,onSortChange:f,allowSortCols:p,fixedLayout:m=!1,className:g,emptyTableMsg:y="No items to display",errorTableMsg:b,retryCallback:S,isLoading:C=!1,disableMobileCards:_=!1,highlightSelectedRow:T=!1,headerRowStyle:w={},stickyHeader:E,reRenderExpand:O=!1,...N}=t,{palette:D}=j.useTheme(),[L,M]=J.useState(void 0),[R,P]=J.useState(void 0);Array.isArray(m)&&m.length!==r.length&&console.error('Table component: Length of "fixedLayout" is not equal to the length of "columns".');const z=W=>{W!==l?f&&f(W,"asc"):f&&f(l,u==="asc"?"desc":"asc")},F=W=>l===W?u:null,$=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),B=$&&a?r.filter(W=>!a.includes(W.fieldName)):r,q=(W,te)=>te.split(".").reduce((ue,ee)=>{if(ue&&typeof ue=="object")return ue[ee]},W),K=(W,te)=>{const ue=q(te,W.fieldName);return W.render?W.render(ue,te,$):ue},G=f!==void 0,Y=W=>G?p?p.includes(W):!0:!1,Z=v.jsxs(j.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[v.jsx(i8,{})," ",y]}),ge=v.jsxs(j.Box,{"data-testid":"table-fetch-error-msg",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[v.jsx(EA,{color:"error"})," ",b,S&&v.jsx(j.Button,{variant:"text",onClick:S,children:"Retry?"})]}),he=()=>{if(C)return v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{colSpan:r.length,align:"center",children:v.jsx(j.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:v.jsx(jv,{})})})});if(b)return v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{colSpan:r.length,align:"center",children:ge})});if(o.length===0)return v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{colSpan:r.length,align:"center",children:Z})})},oe=()=>{if(C)return v.jsx(jv,{});if(b)return ge;if(o.length===0)return Z},Q=W=>{T&&P(W)},fe=W=>{if(i&&(i(W),Q(W)),s){const te=L===W?void 0:W;M(te),Q(te)}},ce=typeof T=="string"?T:D.grey[D.mode=="dark"?600:50],ae=W=>{const te=R===n(W)?ce:"inherit";return{cursor:i||s?"pointer":"default",backgroundColor:te,...i&&{"&:hover":{backgroundColor:te===ce?Za(te,.1):ce}}}};return $&&!_?v.jsxs("div",{...e?{id:`mobile-table-${e}`}:{},className:g,"data-testid":"mui-table-mobile",children:[G&&v.jsxs(v.Fragment,{children:[v.jsxs(j.Box,{display:"flex",className:"MBv2_Table_Stack_Sort",children:[v.jsx(j.TextField,{select:!0,sx:{flexGrow:1},id:"demo-simple-select",size:"small",value:l??"",label:"Sort By...",onChange:W=>z(W.target.value),fullWidth:!0,children:B.map(W=>{if(Y(W.fieldName))return v.jsx(j.MenuItem,{value:W.sortName??W.fieldName,children:W.label??Mn(W.fieldName)},`${W.key??"rowHeader"}-${W.fieldName}`)})}),v.jsx(j.IconButton,{onClick:()=>{l&&z(l)},children:v.jsx(m8,{className:`sort-icon-${u}`})})]}),v.jsx(j.Divider,{sx:{margin:"10px 0"}})]}),oe()??o.map(W=>v.jsxs(j.Card,{className:"MBv2_Table_Stack_Container",sx:{margin:"5px 0",padding:"5px",overflowX:"auto",...ae(W)},onClick:()=>fe(n(W)),"data-testid":`card-${n(W)}`,children:[v.jsx("table",{className:"MBv2_Table_Stack",children:v.jsx("tbody",{className:"MBv2_Table_Stack_Body",children:B.map(te=>v.jsxs("tr",{className:"MBv2_Table_Stack_Row",children:[v.jsx("td",{className:`MBv2_Table_Stack_Cell_Label MBv2_Table_Stack_Col_${te.fieldName}`,style:{textWrap:"nowrap"},children:te.label??Mn(te.fieldName)}),v.jsx("td",{className:`MBv2_Table_Stack_Cell_Value MBv2_Table_Stack_Val_${te.fieldName}`,style:{paddingLeft:"10px"},children:K(te,W)})]},`${te.key??"row"}-${n(W)}-${te.fieldName}`))})}),s&&v.jsx(sR,{colSpan:r.length,isExpanded:n(W)===L,obj:W,renderExpand:te=>s(te),asMobileCard:!0})]},n(W)))]}):v.jsx(j.TableContainer,{component:j.Card,"data-testid":"mui-table",...e?{id:`table-${e}`}:{},className:g,style:E?{maxHeight:E,overflow:"auto"}:{},children:v.jsxs(j.Table,{stickyHeader:E!=="undefined",style:{tableLayout:m?"fixed":"auto"},className:"MBv2_Table",sx:w?{"& .MuiTableCell-head":{...w}}:{},...N,children:[v.jsx(j.TableHead,{className:"MBv2_Table_Head",children:v.jsx(j.TableRow,{className:"MBv2_Table_Head_Row",children:B.map((W,te)=>{const ue=Y(W.fieldName);return v.jsx(j.TableCell,{width:Array.isArray(m)?m[te]:"auto",sx:W.tableCellSx??{},children:v.jsx(j.Box,{style:{display:"flex",alignItems:"center"},children:v.jsxs(j.Box,{sx:[ue&&{"&:hover":{cursor:"pointer",backgroundColor:D.mode==="dark"?"#222222":"#ededed",borderRadius:2}}],style:{display:"flex",alignItems:"center",padding:"5px",paddingLeft:"6px",marginLeft:"-6px"},onClick:ue?()=>z(W.sortName??W.fieldName):void 0,children:[v.jsx("strong",{className:"MBv2_Table_Col_Label",style:{wordBreak:"normal"},children:W.label??Mn(W.fieldName)}),ue&&F(W.fieldName)==="asc"&&v.jsx(LA,{style:{marginLeft:"5px"}}),ue&&F(W.fieldName)==="desc"&&v.jsx(s8,{style:{marginLeft:"5px"}}),ue&&F(W.fieldName)!=="asc"&&F(W.fieldName)!=="desc"&&v.jsx(f8,{style:{marginLeft:"5px"}})]})})},`${W.key??"rowHeader"}-${W.fieldName}`)})})}),v.jsx(j.TableBody,{className:"MBv2_Table_Body",children:he()??o.map(W=>v.jsxs(J.Fragment,{children:[v.jsx(j.TableRow,{"data-testid":`row-${n(W)}`,className:"MBv2_Table_Body_Row",onClick:()=>fe(n(W)),sx:ae(W),children:B.map(te=>v.jsx(j.TableCell,{className:`MBv2_Table_Body_Cell MBv2_Table_Body_Col_${te.fieldName}`,children:K(te,W)},`${te.key??"row"}-${n(W)}-${te.fieldName}`))}),s&&v.jsx(sR,{colSpan:r.length,isExpanded:n(W)===L,obj:W,renderExpand:te=>s(te),reRenderExpand:O})]},n(W)))})]})})},iL=t=>{const{paginationState:e,onPageChange:n,onRowsPerPageChange:r,hidePaginationControls:o=!1,rowsPerPageOptions:i=[5,10,25],...s}=t,{pageNo:a,pageSize:l,totalCount:u,sortField:f,sortOrder:p}=e,m=S=>{n(S)},g=S=>{r(parseInt(S.target.value,10))},y=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),b=!t.data||t.data&&t.data.length===0;return v.jsxs(j.Box,{children:[v.jsx(oL,{sortOrder:p,sortField:f,...s}),!o&&!b&&v.jsx(j.TablePagination,{"data-testid":"pagination-controls",component:"div",rowsPerPageOptions:y?[]:i,count:u,rowsPerPage:l,page:a,onPageChange:(S,C)=>m(C),onRowsPerPageChange:g,sx:{flexGrow:1,marginRight:{xs:0,md:15}}})]})},aR=()=>({height:window.innerHeight,width:window.innerWidth}),sL=()=>{const[t,e]=J.useState(aR());return J.useEffect(()=>{const n=()=>{e(aR())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t},Eo=t=>{const{name:e="button",color:n="primary",fullWidthOnMobile:r=!0,type:o="button",variant:i="contained"}=t,{width:s}=sL(),a=["locationInBar","closeDialog","fullWidthOnMobile"],l=r&&s<600;return v.jsx(j.Button,{role:"button",name:e,color:n,variant:i,type:o,fullWidth:t.fullWidth?!0:l,...er({...t},a)})},yfe=t=>{const{title:e,onCancel:n,onNewCitation:r,onNewAttachment:o,onEditCitation:i,onEditAttachment:s,onDeleteCitation:a,onDownloadAttachment:l,onSelect:u,getCitationsPaginated:f,selectedIds:p,setSelectedIds:m,onError:g=()=>{},setError:y,setSuccess:b,condenseTable:S=!1,canCreate:C=!1,canSelect:_=!1,addlActions:T}=t,{palette:w}=j.useTheme(),[E,O]=J.useState([]),[N,D]=J.useState(!1),[L,M]=J.useState(!0),[R,P]=J.useState(null),[z,F]=J.useState(null),[$,B]=J.useState({pageNo:0,pageSize:5,totalCount:0}),q=()=>{D(!1),M(!0),f({pageNo:$.pageNo,pageSize:$.pageSize}).then(oe=>(O(oe.data),B({...$,totalCount:oe.totalCount}),oe)).catch(oe=>{g(oe),D(!0),O([])}).finally(()=>M(!1))};J.useEffect(q,[$.pageNo,$.pageSize]);const K=()=>{F(null),P(null)},G=v.jsx(Eo,{variant:_?"outlined":"contained",size:_?"small":"medium",onClick:r,startIcon:v.jsx(yf,{}),children:"Add Citation"}),Y=v.jsx(Eo,{variant:_?"outlined":"contained",size:_?"small":"medium",onClick:o,startIcon:v.jsx(mT,{}),children:"Add Attachment"}),Z=oe=>v.jsx(j.IconButton,{color:"primary",onClick:()=>oe.fileName?s(oe):i(oe),"data-testid":`citation-table_edit-btn-${oe.id}`,children:v.jsx(zq,{})}),ge=oe=>{if(a)return v.jsx(j.IconButton,{color:"error",onClick:Q=>{F(oe.id),P(Q.currentTarget)},"data-testid":`citation-table_delete-btn-${oe.id}`,children:v.jsx(j0,{})})},he=oe=>{if(l)return v.jsx(j.IconButton,{color:"primary",onClick:()=>{l(oe).catch(Q=>y({title:`Failed to download ${oe.fileName}`,err:Q}))},"data-testid":`citation-table_download-btn-${oe.id}`,sx:{visibility:oe.fileName?"visible":"hidden"},children:v.jsx(Bq,{})})};return v.jsxs(v.Fragment,{children:[v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:"10px",children:[v.jsx(j.Typography,{variant:S?"h6":"h2",children:e}),!_&&C&&v.jsxs(j.Box,{display:"flex",flexDirection:"row",gap:1,children:[G,Y]})]}),v.jsx(iL,{"data-testid":"citation-table",title:e,size:S?"x-small":"medium",isLoading:L,columns:[..._?[{fieldName:"id",key:"select",label:"",render:(oe,Q)=>v.jsx(j.Checkbox,{"data-testid":`citation-table_checkbox-${oe}`,onChange:()=>{const fe=p.includes(Q.id);m(fe?p.filter(ce=>ce!==Q.id):[...p,Q.id])},checked:p.includes(oe)})}]:[],{fieldName:"fileName",key:"CitationOrAttachment",label:"Type",render:(oe,Q)=>v.jsx(j.Tooltip,{title:oe?"Attachment":"URL",children:oe?v.jsx(mT,{sx:{color:w.grey[500],marginTop:"4px"},"data-testid":`attachment-icon-${Q.id}`}):v.jsx(yf,{sx:{color:w.grey[500],marginTop:"6px"},"data-testid":`url-icon-${Q.id}`})})},{fieldName:"title",tableCellSx:{width:S?"100%":"auto"}},...S?[]:[{fieldName:"fileName",key:"URL/File Name",label:"URL/File Name",render:(oe,Q)=>v.jsx("span",{style:{wordBreak:"break-all"},children:oe||Q.url})},{fieldName:"source"},{fieldName:"accessedAt",render:(oe,Q)=>{if(!Q.fileName)return(oe==null?void 0:oe.slice(0,10))??""}},{fieldName:"classification"}],{fieldName:"id",key:"Action",label:"Action",render:(oe,Q)=>v.jsxs(j.Box,{display:"flex",flexDirection:"row",children:[he(Q),Z(Q),ge(Q),T==null?void 0:T(Q),v.jsx(j.Popper,{open:z===oe,anchorEl:R,placement:"bottom-end",style:{zIndex:1300},children:v.jsxs(j.Box,{component:j.Paper,p:1,display:"flex",gap:1,boxShadow:9,"data-testid":`citation-table_delete-prompt-${oe}`,children:[v.jsxs(j.Typography,{variant:"body2",children:["Are you sure you want to delete this"," ",Q.fileName?"attachment":"citation","?"]}),v.jsxs(j.Box,{display:"flex",flexDirection:"row",children:[v.jsx(Eo,{size:"small",variant:"text",onClick:K,"data-testid":`citation-table_delete-prompt-${oe}-noBtn`,children:"No"}),v.jsx(Eo,{size:"small",color:"error",startIcon:v.jsx(j0,{}),onClick:()=>{a==null||a(oe).then(()=>{q(),m(p.filter(fe=>fe!==oe)),b(`Successfully deleted "${Q.title}"`)}).catch(fe=>y({title:`Failed to delete ${Q.fileName?"attachment":"citation"}`,err:fe})).finally(K)},"data-testid":`citation-table_delete-prompt-${oe}-yesBtn`,children:"Yes"})]})]})})]})}],data:E,paginationState:$,onPageChange:oe=>B({...$,pageNo:oe}),onRowsPerPageChange:oe=>B({...$,pageSize:oe,pageNo:0}),errorTableMsg:N?"Failed to load citations.":void 0,retryCallback:q}),_&&v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:"20px",children:[v.jsx(j.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:C&&v.jsxs(v.Fragment,{children:[G,Y]})}),v.jsxs(j.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:[v.jsx(Eo,{variant:"outlined",size:"small",onClick:n,children:"Cancel"}),v.jsxs(Eo,{variant:"contained",size:"small",onClick:()=>u(p),children:["Select",p.length>0&&` (${p.length})`]})]})]})]})},j1=t=>{const{loading:e=!1,type:n="submit",size:r="medium",...o}=t,s={small:16,medium:20,large:24}[r];return v.jsx(Eo,{type:n,disabled:e,size:r,startIcon:e?v.jsx(j.CircularProgress,{size:s,color:"inherit"}):null,...o})},bfe=t=>{const{id:e,title:n,onSave:r,onCancel:o,getCitationById:i,setError:s}=t,a=J.useRef(null),[l,u]=J.useState(!0),[f,p]=J.useState({type:"Url",source:"",title:"",accessedAt:null,url:"",classification:""});J.useEffect(()=>{if(e===void 0){u(!1);return}i(e).then(g=>{p({...g,type:"Url"}),u(!1)}).catch(g=>{u(!1),s({title:"Failed to retrieve citation",err:g})})},[]);const m=()=>{var y,b,S;const g=(b=(y=a==null?void 0:a.current)==null?void 0:y.values)==null?void 0:b.url;g&&((S=a==null?void 0:a.current)==null||S.setFieldValue("url",TP(g)))};return v.jsxs(v.Fragment,{children:[n&&v.jsx(j.Typography,{variant:"h6",margin:"10px 0",children:n}),v.jsx(qt.Formik,{innerRef:a,enableReinitialize:!0,initialValues:f,onSubmit:async g=>{u(!0),r(g).catch(y=>{u(!1),s({title:`Failed to ${e===void 0?"save":"update"} citation`,err:y})}).finally(()=>u(!1))},children:v.jsxs(qt.Form,{autoComplete:"off",children:[v.jsx(Va,{name:"source",disabled:l,required:!0,margin:"none"}),v.jsx(Va,{name:"title",disabled:l,required:!0,margin:"none"}),v.jsx(kf,{name:"accessedAt",disabled:l,required:!0,margin:"none",isDatePicker:!0}),v.jsx(Va,{name:"url",disabled:l,required:!0,onBlur:m,margin:"none"}),v.jsx(PA,{row:!0,name:"classification",required:!0,radios:[{label:"Public Source",value:"Public Source"},{label:"Proprietary Source",value:"Proprietary Source"}],margin:"none"}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:o,variant:"outlined",size:"small",children:"Cancel"}),v.jsx(j1,{size:"small",loading:l,children:e?"Update Citation":"Add New Citation"})]})]})})]})};var O0,lR;function vfe(){if(lR)return O0;lR=1;function t(C){this._maxSize=C,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(C){return this._values[C]},t.prototype.set=function(C,_){return this._size>=this._maxSize&&this.clear(),C in this._values||this._size++,this._values[C]=_};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,a=new t(s),l=new t(s),u=new t(s);O0={Cache:t,split:p,normalizePath:f,setter:function(C){var _=f(C);return l.get(C)||l.set(C,function(w,E){for(var O=0,N=_.length,D=w;O<N-1;){var L=_[O];if(L==="__proto__"||L==="constructor"||L==="prototype")return w;D=D[_[O++]]}D[_[O]]=E})},getter:function(C,_){var T=f(C);return u.get(C)||u.set(C,function(E){for(var O=0,N=T.length;O<N;)if(E!=null||!_)E=E[T[O++]];else return;return E})},join:function(C){return C.reduce(function(_,T){return _+(g(T)||n.test(T)?"["+T+"]":(_?".":"")+T)},"")},forEach:function(C,_,T){m(Array.isArray(C)?C:p(C),_,T)}};function f(C){return a.get(C)||a.set(C,p(C).map(function(_){return _.replace(i,"$2")}))}function p(C){return C.match(e)||[""]}function m(C,_,T){var w=C.length,E,O,N,D;for(O=0;O<w;O++)E=C[O],E&&(S(E)&&(E='"'+E+'"'),D=g(E),N=!D&&/^\d+$/.test(E),_.call(T,E,D,N,O,C))}function g(C){return typeof C=="string"&&C&&["'",'"'].indexOf(C.charAt(0))!==-1}function y(C){return C.match(r)&&!C.match(n)}function b(C){return o.test(C)}function S(C){return!g(C)&&(y(C)||b(C))}return O0}var Bs=vfe(),R0,cR;function xfe(){if(cR)return R0;cR=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=f=>f.match(t)||[],n=f=>f[0].toUpperCase()+f.slice(1),r=(f,p)=>e(f).join(p).toLowerCase(),o=f=>e(f).reduce((p,m)=>`${p}${p?m[0].toUpperCase()+m.slice(1).toLowerCase():m.toLowerCase()}`,"");return R0={words:e,upperFirst:n,camelCase:o,pascalCase:f=>n(o(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>n(r(f," ")),titleCase:f=>e(f).map(n).join(" ")},R0}var A0=xfe(),Vd={exports:{}},uR;function Sfe(){if(uR)return Vd.exports;uR=1,Vd.exports=function(o){return t(e(o),o)},Vd.exports.array=t;function t(o,i){var s=o.length,a=new Array(s),l={},u=s,f=n(i),p=r(o);for(i.forEach(function(g){if(!p.has(g[0])||!p.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)l[u]||m(o[u],u,new Set);return a;function m(g,y,b){if(b.has(g)){var S;try{S=", node was:"+JSON.stringify(g)}catch{S=""}throw new Error("Cyclic dependency"+S)}if(!p.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!l[y]){l[y]=!0;var C=f.get(g)||new Set;if(C=Array.from(C),y=C.length){b.add(g);do{var _=C[--y];m(_,p.get(_),b)}while(y);b.delete(g)}a[--s]=g}}}function e(o){for(var i=new Set,s=0,a=o.length;s<a;s++){var l=o[s];i.add(l[0]),i.add(l[1])}return Array.from(i)}function n(o){for(var i=new Map,s=0,a=o.length;s<a;s++){var l=o[s];i.has(l[0])||i.set(l[0],new Set),i.has(l[1])||i.set(l[1],new Set),i.get(l[0]).add(l[1])}return i}function r(o){for(var i=new Map,s=0,a=o.length;s<a;s++)i.set(o[s],s);return i}return Vd.exports}var Cfe=Sfe();const wfe=ir(Cfe),Tfe=Object.prototype.toString,_fe=Error.prototype.toString,kfe=RegExp.prototype.toString,Efe=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Mfe=/^Symbol\((.*)\)(.*)$/;function Ofe(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function dR(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return Ofe(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return Efe.call(t).replace(Mfe,"Symbol($1)");const r=Tfe.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+_fe.call(t)+"]":r==="RegExp"?kfe.call(t):null}function Ui(t,e){let n=dR(t,e);return n!==null?n:JSON.stringify(t,function(r,o){let i=dR(this[r],e);return i!==null?i:o},2)}function aL(t){return t==null?[]:[].concat(t)}let lL,cL,uL,Rfe=/\$\{\s*(\w+)\s*\}/g;lL=Symbol.toStringTag;class fR{constructor(e,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[lL]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],aL(e).forEach(i=>{if(pr.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}cL=Symbol.hasInstance;uL=Symbol.toStringTag;class pr extends Error{static formatError(e,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof e=="string"?e.replace(Rfe,(o,i)=>Ui(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,o,i){const s=new fR(e,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[uL]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,pr)}static[cL](e){return fR[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let To={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Ui(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Ui(n,!0)}\``+o:`${t} must match the configured type. The validated value was: \`${Ui(n,!0)}\``+o}},dr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Afe={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},$v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ife={isValue:"${path} field must be ${value}"},df={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Dfe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Pfe={notType:t=>{const{path:e,value:n,spec:r}=t,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${e} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Ui(n,!0)}\``;if(n.length>o)return`${e} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Ui(n,!0)}\``}return pr.formatError(To.notType,t)}};Object.assign(Object.create(null),{mixed:To,string:dr,number:Afe,date:$v,object:df,array:Dfe,boolean:Ife,tuple:Pfe});const $1=t=>t&&t.__isYupSchema__;class gp{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new gp(e,(a,l)=>{var u;let f=s(...a)?o:i;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,e,n);if(o===void 0||o===e)return e;if(!$1(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Hd={context:"$",value:"."};class ta{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Hd.context,this.isValue=this.key[0]===Hd.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Hd.context:this.isValue?Hd.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Bs.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let o=this.isContext?r:this.isValue?e:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}ta.prototype.__isYupRef=!0;const Ds=t=>t==null;function Aa(t){function e({value:n,path:r="",options:o,originalValue:i,schema:s},a,l){const{name:u,test:f,params:p,message:m,skipAbsent:g}=t;let{parent:y,context:b,abortEarly:S=s.spec.abortEarly,disableStackTrace:C=s.spec.disableStackTrace}=o;function _(R){return ta.isRef(R)?R.getValue(n,y,b):R}function T(R={}){const P=Object.assign({value:n,originalValue:i,label:s.spec.label,path:R.path||r,spec:s.spec,disableStackTrace:R.disableStackTrace||C},p,R.params);for(const F of Object.keys(P))P[F]=_(P[F]);const z=new pr(pr.formatError(R.message||m,P),n,P.path,R.type||u,P.disableStackTrace);return z.params=P,z}const w=S?a:l;let E={path:r,parent:y,type:u,from:o.from,createError:T,resolve:_,options:o,originalValue:i,schema:s};const O=R=>{pr.isError(R)?w(R):R?l(null):w(T())},N=R=>{pr.isError(R)?w(R):a(R)};if(g&&Ds(n))return O(!0);let L;try{var M;if(L=f.call(E,n,E),typeof((M=L)==null?void 0:M.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(L).then(O,N)}}catch(R){N(R);return}O(L)}return e.OPTIONS=t,e}function Nfe(t,e,n,r=n){let o,i,s;return e?(Bs.forEach(e,(a,l,u)=>{let f=l?a.slice(1,a.length-1):a;t=t.resolve({context:r,parent:o,value:n});let p=t.type==="tuple",m=u?parseInt(f,10):0;if(t.innerType||p){if(p&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);o=n,n=n&&n[m],t=p?t.spec.types[m]:t.innerType}if(!u){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);o=n,n=n&&n[f],t=t.fields[f]}i=f,s=l?"["+a+"]":"."+a}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}class yp extends Set{describe(){const e=[];for(const n of this.values())e.push(ta.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new yp(this.values())}merge(e,n){const r=this.clone();return e.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Ba(t,e=new Map){if($1(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=Ba(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,o]of t.entries())n.set(r,Ba(o,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(Ba(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,o]of Object.entries(t))n[r]=Ba(o,e)}else throw Error(`Unable to clone ${t}`);return n}class Lo{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new yp,this._blacklist=new yp,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(To.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ba(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,o,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=e.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({value:e},n)),o=n.assert==="ignore-optionality",i=r._cast(e,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Ds(i))return i;let s=Ui(e),a=Ui(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
399
+ 3. "-" cannot repeat`);Wt.customSchemes.push([t,e])}function Bde(){Wt.scanner=Ide(Wt.customSchemes);for(let t=0;t<Wt.tokenQueue.length;t++)Wt.tokenQueue[t][1]({scanner:Wt.scanner});Wt.parser=Nde(Wt.scanner.tokens);for(let t=0;t<Wt.pluginQueue.length;t++)Wt.pluginQueue[t][1]({scanner:Wt.scanner,parser:Wt.parser});return Wt.initialized=!0,Wt}function L1(t){return Wt.initialized||Bde(),Lde(Wt.parser.start,t,YN(Wt.scanner.start,t))}L1.scan=YN;function JN(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new N1(n),o=L1(t),i=[];for(let s=0;s<o.length;s++){const a=o[s];a.isLink&&(!e||a.t===e)&&r.check(a)&&i.push(a.toFormattedObject(r))}return i}function zde(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function Vde(t){return new tn({key:new yn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,a=Ure(n.doc,[...e]);if(Xre(a).forEach(({newRange:u})=>{const f=Yre(r.doc,u,g=>g.isTextblock);let p,m;if(f.length>1?(p=f[0],m=r.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):f.length&&r.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(p=f[0],m=r.doc.textBetween(p.pos,u.to,void 0," ")),p&&m){const g=m.split(" ").filter(C=>C!=="");if(g.length<=0)return!1;const y=g[g.length-1],b=p.pos+m.lastIndexOf(y);if(!y)return!1;const S=L1(y).map(C=>C.toObject(t.defaultProtocol));if(!zde(S))return!1;S.filter(C=>C.isLink).map(C=>({...C,from:b+C.start+1,to:b+C.end+1})).filter(C=>r.schema.marks.code?!r.doc.rangeHasMark(C.from,C.to,r.schema.marks.code):!0).filter(C=>t.validate(C.value)).filter(C=>t.shouldAutoLink(C.value)).forEach(C=>{e1(C.from,C.to,r.doc).some(_=>_.mark.type===t.type)||s.addMark(C.from,C.to,t.type.create({href:C.href}))})}}),!!s.steps.length)return s}})}function Hde(t){return new tn({key:new yn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=r.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=Qx(e.state,t.type.name),u=r.target,f=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:l.href,p=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&f?(window.open(f,p),!0):!1}}})}function Wde(t){return new tn({key:new yn("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const l=JN(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}const qde=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Ss(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(qde,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Ude=yr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){tR(t);return}tR(t.scheme,t.optionalSlashes)})},onDestroy(){Fde()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Ss(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Ss(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Ss(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",bt(this.options.HTMLAttributes,t),0]:["a",bt(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Ss(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Ss(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Ji({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=JN(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Ss(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(Vde({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!Ss(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(Hde({type:this.type})),this.options.linkOnPaste&&t.push(Wde({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),ZN=en.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",bt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});function Kde(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:a}=t,l=r&&!o,u=Ioe(n),f=new RegExp(`\\s${u}$`),p=s?"^":"",m=o?"":u,g=l?new RegExp(`${p}${u}.*?(?=\\s${m}|$)`,"gm"):new RegExp(`${p}(?:^)?${u}[^\\s${m}]*`,"gm"),y=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!y)return null;const b=a.pos-y.length,S=Array.from(y.matchAll(g)).pop();if(!S||S.input===void 0||S.index===void 0)return null;const C=S.input.slice(Math.max(0,S.index-1),S.index),_=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(C);if(i!==null&&!_)return null;const T=b+S.index;let w=T+S[0].length;return l&&f.test(y.slice(w-1,w+1))&&(S[0]+=" ",w+=1),T<a.pos&&w>=a.pos?{range:{from:T,to:w},query:S[0].slice(n.length),text:S[0]}:null}const Yde=new yn("suggestion");function Gde({pluginKey:t=Yde,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",command:u=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:g=Kde}){let y;const b=p==null?void 0:p(),S=new tn({key:t,view(){return{update:async(C,_)=>{var T,w,E,O,N,D,L;const M=(T=this.key)===null||T===void 0?void 0:T.getState(_),R=(w=this.key)===null||w===void 0?void 0:w.getState(C.state),P=M.active&&R.active&&M.range.from!==R.range.from,B=!M.active&&R.active,z=M.active&&!R.active,$=!B&&!z&&M.query!==R.query,F=B||P&&$,q=$||P,U=z||P&&$;if(!F&&!q&&!U)return;const G=U&&!F?M:R,Y=C.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);y={editor:e,range:G.range,query:G.query,text:G.text,items:[],command:Z=>u({editor:e,range:G.range,props:Z}),decorationNode:Y,clientRect:Y?()=>{var Z;const{decorationId:fe}=(Z=this.key)===null||Z===void 0?void 0:Z.getState(e.state),pe=C.dom.querySelector(`[data-decoration-id="${fe}"]`);return(pe==null?void 0:pe.getBoundingClientRect())||null}:null},F&&((E=b==null?void 0:b.onBeforeStart)===null||E===void 0||E.call(b,y)),q&&((O=b==null?void 0:b.onBeforeUpdate)===null||O===void 0||O.call(b,y)),(q||F)&&(y.items=await f({editor:e,query:G.query})),U&&((N=b==null?void 0:b.onExit)===null||N===void 0||N.call(b,y)),q&&((D=b==null?void 0:b.onUpdate)===null||D===void 0||D.call(b,y)),F&&((L=b==null?void 0:b.onStart)===null||L===void 0||L.call(b,y))},destroy:()=>{var C;y&&((C=b==null?void 0:b.onExit)===null||C===void 0||C.call(b,y))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(C,_,T,w){const{isEditable:E}=e,{composing:O}=e.view,{selection:N}=C,{empty:D,from:L}=N,M={..._};if(M.composing=O,E&&(D||e.view.composing)){(L<_.range.from||L>_.range.to)&&!O&&!_.composing&&(M.active=!1);const R=g({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:N.$from}),P=`id_${Math.floor(Math.random()*4294967295)}`;R&&m({editor:e,state:w,range:R.range,isActive:_.active})?(M.active=!0,M.decorationId=_.decorationId?_.decorationId:P,M.range=R.range,M.query=R.query,M.text=R.text):M.active=!1}else M.active=!1;return M.active||(M.decorationId=null,M.range={from:0,to:0},M.query=null,M.text=null),M}},props:{handleKeyDown(C,_){var T;const{active:w,range:E}=S.getState(C.state);return w&&((T=b==null?void 0:b.onKeyDown)===null||T===void 0?void 0:T.call(b,{view:C,event:_,range:E}))||!1},decorations(C){const{active:_,range:T,decorationId:w}=S.getState(C);return _?Xt.create(C.doc,[$n.inline(T.from,T.to,{nodeName:a,class:l,"data-decoration-id":w})]):null}}});return S}const Jde=new yn("mention"),Zde=en.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({options:t,node:e}){var n;return`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e}){var n;return["span",bt(this.HTMLAttributes,t.HTMLAttributes),`${t.suggestion.char}${(n=e.attrs.label)!==null&&n!==void 0?n:e.attrs.id}`]},suggestion:{char:"@",pluginKey:Jde,command:({editor:t,range:e,props:n})=>{var r,o,i;const s=t.view.state.selection.$to.nodeAfter;((r=s==null?void 0:s.text)===null||r===void 0?void 0:r.startsWith(" "))&&(e.to+=1),t.chain().focus().insertContentAt(e,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),(i=(o=t.view.dom.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection())===null||i===void 0||i.collapseToEnd()},allow:({state:t,range:e})=>{const n=t.doc.resolve(e.from),r=t.schema.nodes[this.name];return!!n.parent.type.contentMatch.matchType(r)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",bt({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t})];const n={...this.options};n.HTMLAttributes=bt({"data-type":this.name},this.options.HTMLAttributes,e);const r=this.options.renderHTML({options:n,node:t});return typeof r=="string"?["span",bt({"data-type":this.name},this.options.HTMLAttributes,e),r]:r},renderText({node:t}){return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel({options:this.options,node:t})):this.options.renderText({options:this.options,node:t})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:o,anchor:i}=r;return o?(e.doc.nodesBetween(i-1,i,(s,a)=>{if(s.type.name===this.name)return n=!0,t.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",a,a+s.nodeSize),!1}),n):!1})}},addProseMirrorPlugins(){return[Gde({editor:this.editor,...this.options.suggestion})]}}),Xde="listItem",nR="textStyle",rR=/^(\d+)\.\s$/,XN=en.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",bt(this.options.HTMLAttributes,n),0]:["ol",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Xde,this.editor.getAttributes(nR)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=cl({find:rR,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=cl({find:rR,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(nR)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),QN=en.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),eL=un.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new tn({key:new yn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=r>=a&&r<=a+s.nodeSize,u=!s.isLeaf&&ah(s);if((l||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const p=$n.node(a,a+s.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});o.push(p)}return this.options.includeChildren}),Xt.create(t,o)}}})]}}),Qde=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,efe=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tL=yr.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Ks({find:Qde,type:this.type})]},addPasteRules(){return[Ji({find:efe,type:this.type})]}}),tfe=yr.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),nfe=yr.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),rfe=en.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",bt(this.options.HTMLAttributes,t),0]}}),ofe=en.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",bt(this.options.HTMLAttributes,t),0]}}),ife=en.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",bt(this.options.HTMLAttributes,t),0]}}),sfe=/^\s*(\[([( |x])?\])\s$/,afe=en.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList"}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",bt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div");return i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",u=>u.preventDefault()),a.addEventListener("change",u=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:f}=u.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const m=n();if(typeof m!="number")return!1;const g=p.doc.nodeAt(m);return p.setNodeMarkup(m,void 0,{...g==null?void 0:g.attrs,checked:f}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,f)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([u,f])=>{o.setAttribute(u,f)}),o.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,s),o.append(i,l),Object.entries(e).forEach(([u,f])=>{o.setAttribute(u,f)}),{dom:o,contentDOM:l,update:u=>u.type!==this.type?!1:(o.dataset.checked=u.attrs.checked,a.checked=u.attrs.checked,!0)}}},addInputRules(){return[cl({find:sfe,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),lfe=en.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",bt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),nL=en.create({name:"text",group:"inline"}),cfe=un.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e)}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),ufe=yr.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",bt(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),rL=J.forwardRef((t,e)=>{const[n,r]=J.useState(0),o=l=>{if(l>=t.items.length)return;const u=t.items[l],f={id:u.id,label:u.mentionLabel};t.command(f)},i=()=>{r((n+t.items.length-1)%t.items.length)},s=()=>{r((n+1)%t.items.length)},a=()=>{o(n)};return J.useEffect(()=>r(0),[t.items]),J.useImperativeHandle(e,()=>({onKeyDown:({event:l})=>l.key==="ArrowUp"?(i(),!0):l.key==="ArrowDown"?(s(),!0):l.key==="Enter"?(a(),!0):!1})),t.items.length>0?v.jsx(j.Paper,{elevation:5,children:v.jsx(j.List,{dense:!0,sx:{overflow:"hidden"},children:t.items.map((l,u)=>v.jsx(j.ListItem,{disablePadding:!0,children:v.jsx(j.ListItemButton,{selected:u===n,onClick:()=>o(u),children:l.mentionLabel})},l.id))})}):null});rL.displayName="SuggestionList";const oR={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){return{}}},dfe={items:async({query:t})=>Promise.resolve(["Lea Thompson","Cyndi Lauper","Tom Cruise","Madonna","Jerry Hall","Joan Collins","Winona Ryder","Christina Applegate","Alyssa Milano","Molly Ringwald","Ally Sheedy","Debbie Harry","Olivia Newton-John","Elton John","Michael J. Fox","Axl Rose","Emilio Estevez","Ralph Macchio","Rob Lowe","Jennifer Grey","Mickey Rourke","John Cusack","Matthew Broderick","Justine Bateman","Lisa Bonet","Benicio Monserrate Rafael del Toro Sánchez"].map((e,n)=>({mentionLabel:e,id:n.toString()})).filter(e=>e.mentionLabel.toLowerCase().startsWith(t.toLowerCase())).slice(0,5)),render:()=>{let t,e;return{onStart:n=>{t=new VP(rL,{props:n,editor:n.editor}),e=bu("body",{getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??oR},appendTo:()=>document.body,content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})[0]},onUpdate(n){t==null||t.updateProps(n),e==null||e.setProps({getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??oR}})},onKeyDown(n){return n.event.key==="Escape"?(e==null||e.hide(),!0):t!=null&&t.ref?t.ref.onKeyDown(n):!1},onExit(){e==null||e.destroy(),t==null||t.destroy(),e=void 0,t=void 0}}}},ffe=Ude.extend({inclusive:!1}),pfe=tfe.extend({excludes:"superscript"}),hfe=nfe.extend({excludes:"subscript"});function mfe({placeholder:t}={}){return J.useMemo(()=>[jue.configure({resizable:!0}),ife,ofe,rfe,MN,RN,AN,PN,ZN,XN,QN,pfe,hfe,nL,EN,kN,ON,zN,ufe,tL,ffe.configure({autolink:!0,linkOnPaste:!0,openOnClick:!1}),Ase,DN,Mce,cfe.configure({types:["heading","paragraph","image"]}),Jue,Zue,ede,kce,ude.configure({multicolor:!0}),BN,Nce,IN,lfe,afe.configure({nested:!0}),Zde.configure({suggestion:dfe}),eL.configure({placeholder:t}),FN],[t])}function iR(t){return Array.from(t).filter(e=>(e.type||"").toLowerCase().startsWith("image/"))}const gfe=t=>{const e=mfe({placeholder:"Add your own content here..."});if(t.renderContentOnly)return v.jsx(ole,{content:t.renderContentOnly,extensions:e});const{name:n,label:r,labelProps:o={fontSize:"0.9em",color:"#808080",fontWeight:"400"},onUploadFiles:i,readOnly:s=!1}=t,[a,l,u]=qt.useField({name:n}),{setValue:f}=u,{value:p}=a;J.useEffect(()=>{var C,_,T;(T=(_=(C=m==null?void 0:m.current)==null?void 0:C.editor)==null?void 0:_.commands)==null||T.setContent(p)},[p]);const m=J.useRef(null),g=J.useCallback((C,_)=>{var w;const T=(w=m.current)==null?void 0:w.editor;if(!(!T||!i))if(i instanceof Promise)i(C).then(E=>{Cv({images:E,editor:T,position:_})});else{const E=i(C);Cv({images:E,editor:T,position:_})}},[]),y=J.useCallback((C,_,T,w)=>{var O;if(!(_ instanceof DragEvent)||!_.dataTransfer)return!1;const E=iR(_.dataTransfer.files);if(E.length>0){const N=(O=C.posAtCoords({left:_.clientX,top:_.clientY}))==null?void 0:O.pos;return g(E,N),_.preventDefault(),!0}return!1},[g]),b=J.useCallback((C,_,T)=>{if(!_.clipboardData)return!1;const w=iR(_.clipboardData.files);return w.length>0?(g(w),!0):!1},[g]),S=v.jsx(j.Box,{sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:s?0:50}}},children:v.jsx(YP,{ref:m,extensions:e,content:p,editable:!s,editorProps:{handleDrop:y,handlePaste:b},renderControls:s?void 0:()=>v.jsx($ue,{onUploadFiles:i}),onBlur:()=>{var C,_;return f(((_=(C=m.current)==null?void 0:C.editor)==null?void 0:_.getHTML())??"")},RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:s}},children:()=>v.jsxs(v.Fragment,{children:[v.jsx(kP,{}),v.jsx(GP,{})]})})});return v.jsxs(j.Box,{display:"flex",flexDirection:"column",children:[r&&v.jsx(j.Typography,{...o,children:r}),S]})},jv=t=>{const{title:e="Loading...",message:n}=t;return v.jsxs(j.Box,{className:"loading-page",sx:{gap:2},"data-testid":"loading-page",children:[v.jsxs(j.Box,{className:"text-content",children:[v.jsx(j.Typography,{variant:"h1","data-testid":"title",children:e}),n&&v.jsx(j.Typography,{"data-testid":"message",children:n})]}),v.jsx(j.CircularProgress,{size:75,"data-testid":"loading-spinner"})]})},sR=t=>{const{colSpan:e,isExpanded:n,renderExpand:r,obj:o,asMobileCard:i=!1,reRenderExpand:s=!1}=t,[a,l]=J.useState(!1),[u,f]=J.useState(void 0);return J.useEffect(()=>{n&&(!a||s)&&(l(!0),f(r(o)))},[n,o]),i?v.jsx(j.Box,{children:v.jsx(j.Collapse,{in:n,children:u})}):v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{style:{paddingBottom:0,paddingTop:0},colSpan:e,children:v.jsx(j.Collapse,{in:n,children:u})})})},oL=t=>{const{id:e,getRowKey:n=W=>"id"in W&&(typeof W.id=="string"||typeof W.id=="number")?W.id:(console.warn(`Table: "id: string | number" not found in ${JSON.stringify(W)}. Please implement the Table.getRowKey prop so Table knows how to uniquely identify this row.`),JSON.stringify(W)),columns:r,data:o=[],onRowClick:i,renderExpand:s,hideColumnsOnMobile:a=[],sortField:l,sortOrder:u,onSortChange:f,allowSortCols:p,fixedLayout:m=!1,className:g,emptyTableMsg:y="No items to display",errorTableMsg:b,retryCallback:S,isLoading:C=!1,disableMobileCards:_=!1,highlightSelectedRow:T=!1,headerRowStyle:w={},stickyHeader:E,reRenderExpand:O=!1,...N}=t,{palette:D}=j.useTheme(),[L,M]=J.useState(void 0),[R,P]=J.useState(void 0);Array.isArray(m)&&m.length!==r.length&&console.error('Table component: Length of "fixedLayout" is not equal to the length of "columns".');const B=W=>{W!==l?f&&f(W,"asc"):f&&f(l,u==="asc"?"desc":"asc")},z=W=>l===W?u:null,$=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),F=$&&a?r.filter(W=>!(a.includes(W.fieldName)||W.hideCol)):r.filter(W=>!W.hideCol),q=(W,ee)=>ee.split(".").reduce((ce,te)=>{if(ce&&typeof ce=="object")return ce[te]},W),U=(W,ee)=>{const ce=q(ee,W.fieldName);return W.render?W.render(ce,ee,$):ce},G=f!==void 0,Y=W=>G?p?p.includes(W):!0:!1,Z=v.jsxs(j.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[v.jsx(i8,{})," ",y]}),fe=v.jsxs(j.Box,{"data-testid":"table-fetch-error-msg",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[v.jsx(EA,{color:"error"})," ",b,S&&v.jsx(j.Button,{variant:"text",onClick:S,children:"Retry?"})]}),pe=()=>{if(C)return v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{colSpan:r.length,align:"center",children:v.jsx(j.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:v.jsx(jv,{})})})});if(b)return v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{colSpan:r.length,align:"center",children:fe})});if(o.length===0)return v.jsx(j.TableRow,{children:v.jsx(j.TableCell,{colSpan:r.length,align:"center",children:Z})})},ge=()=>{if(C)return v.jsx(jv,{});if(b)return fe;if(o.length===0)return Z},re=W=>{T&&P(W)},he=W=>{if(i&&(i(W),re(W)),s){const ee=L===W?void 0:W;M(ee),re(ee)}},le=typeof T=="string"?T:D.grey[D.mode=="dark"?600:50],X=W=>{const ee=R===n(W)?le:"inherit";return{cursor:i||s?"pointer":"default",backgroundColor:ee,...i&&{"&:hover":{backgroundColor:ee===le?Za(ee,.1):le}}}};return $&&!_?v.jsxs("div",{...e?{id:`mobile-table-${e}`}:{},className:g,"data-testid":"mui-table-mobile",children:[G&&v.jsxs(v.Fragment,{children:[v.jsxs(j.Box,{display:"flex",className:"MBv2_Table_Stack_Sort",children:[v.jsx(j.TextField,{select:!0,sx:{flexGrow:1},id:"demo-simple-select",size:"small",value:l??"",label:"Sort By...",onChange:W=>B(W.target.value),fullWidth:!0,children:F.map(W=>{if(Y(W.fieldName))return v.jsx(j.MenuItem,{value:W.sortName??W.fieldName,children:W.label??Mn(W.fieldName)},`${W.key??"rowHeader"}-${W.fieldName}`)})}),v.jsx(j.IconButton,{onClick:()=>{l&&B(l)},children:v.jsx(m8,{className:`sort-icon-${u}`})})]}),v.jsx(j.Divider,{sx:{margin:"10px 0"}})]}),ge()??o.map(W=>v.jsxs(j.Card,{className:"MBv2_Table_Stack_Container",sx:{margin:"5px 0",padding:"5px",overflowX:"auto",...X(W)},onClick:()=>he(n(W)),"data-testid":`card-${n(W)}`,children:[v.jsx("table",{className:"MBv2_Table_Stack",children:v.jsx("tbody",{className:"MBv2_Table_Stack_Body",children:F.map(ee=>v.jsxs("tr",{className:"MBv2_Table_Stack_Row",children:[v.jsx("td",{className:`MBv2_Table_Stack_Cell_Label MBv2_Table_Stack_Col_${ee.fieldName}`,style:{textWrap:"nowrap"},children:ee.label??Mn(ee.fieldName)}),v.jsx("td",{className:`MBv2_Table_Stack_Cell_Value MBv2_Table_Stack_Val_${ee.fieldName}`,style:{paddingLeft:"10px"},children:U(ee,W)})]},`${ee.key??"row"}-${n(W)}-${ee.fieldName}`))})}),s&&v.jsx(sR,{colSpan:r.length,isExpanded:n(W)===L,obj:W,renderExpand:ee=>s(ee),asMobileCard:!0})]},n(W)))]}):v.jsx(j.TableContainer,{component:j.Card,"data-testid":"mui-table",...e?{id:`table-${e}`}:{},className:g,style:E?{maxHeight:E,overflow:"auto"}:{},children:v.jsxs(j.Table,{stickyHeader:E!=="undefined",style:{tableLayout:m?"fixed":"auto"},className:"MBv2_Table",sx:w?{"& .MuiTableCell-head":{...w}}:{},...N,children:[v.jsx(j.TableHead,{className:"MBv2_Table_Head",children:v.jsx(j.TableRow,{className:"MBv2_Table_Head_Row",children:F.map((W,ee)=>{const ce=Y(W.fieldName);return v.jsx(j.TableCell,{width:Array.isArray(m)?m[ee]:"auto",sx:W.tableCellSx??{},children:v.jsx(j.Box,{style:{display:"flex",alignItems:"center"},children:v.jsxs(j.Box,{sx:[ce&&{"&:hover":{cursor:"pointer",backgroundColor:D.mode==="dark"?"#222222":"#ededed",borderRadius:2}}],style:{display:"flex",alignItems:"center",padding:"5px",paddingLeft:"6px",marginLeft:"-6px"},onClick:ce?()=>B(W.sortName??W.fieldName):void 0,children:[v.jsx("strong",{className:"MBv2_Table_Col_Label",style:{wordBreak:"normal"},children:W.label??Mn(W.fieldName)}),ce&&z(W.fieldName)==="asc"&&v.jsx(LA,{style:{marginLeft:"5px"}}),ce&&z(W.fieldName)==="desc"&&v.jsx(s8,{style:{marginLeft:"5px"}}),ce&&z(W.fieldName)!=="asc"&&z(W.fieldName)!=="desc"&&v.jsx(f8,{style:{marginLeft:"5px"}})]})})},`${W.key??"rowHeader"}-${W.fieldName}`)})})}),v.jsx(j.TableBody,{className:"MBv2_Table_Body",children:pe()??o.map(W=>v.jsxs(J.Fragment,{children:[v.jsx(j.TableRow,{"data-testid":`row-${n(W)}`,className:"MBv2_Table_Body_Row",onClick:()=>he(n(W)),sx:X(W),children:F.map(ee=>v.jsx(j.TableCell,{className:`MBv2_Table_Body_Cell MBv2_Table_Body_Col_${ee.fieldName}`,children:U(ee,W)},`${ee.key??"row"}-${n(W)}-${ee.fieldName}`))}),s&&v.jsx(sR,{colSpan:r.length,isExpanded:n(W)===L,obj:W,renderExpand:ee=>s(ee),reRenderExpand:O})]},n(W)))})]})})},iL=t=>{const{paginationState:e,onPageChange:n,onRowsPerPageChange:r,hidePaginationControls:o=!1,rowsPerPageOptions:i=[5,10,25],...s}=t,{pageNo:a,pageSize:l,totalCount:u,sortField:f,sortOrder:p}=e,m=S=>{n(S)},g=S=>{r(parseInt(S.target.value,10))},y=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),b=!t.data||t.data&&t.data.length===0;return v.jsxs(j.Box,{children:[v.jsx(oL,{sortOrder:p,sortField:f,...s}),!o&&!b&&v.jsx(j.TablePagination,{"data-testid":"pagination-controls",component:"div",rowsPerPageOptions:y?[]:i,count:u,rowsPerPage:l,page:a,onPageChange:(S,C)=>m(C),onRowsPerPageChange:g,sx:{flexGrow:1,marginRight:{xs:0,md:15}}})]})},aR=()=>({height:window.innerHeight,width:window.innerWidth}),sL=()=>{const[t,e]=J.useState(aR());return J.useEffect(()=>{const n=()=>{e(aR())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t},Eo=t=>{const{name:e="button",color:n="primary",fullWidthOnMobile:r=!0,type:o="button",variant:i="contained"}=t,{width:s}=sL(),a=["locationInBar","closeDialog","fullWidthOnMobile"],l=r&&s<600;return v.jsx(j.Button,{role:"button",name:e,color:n,variant:i,type:o,fullWidth:t.fullWidth?!0:l,...er({...t},a)})},yfe=t=>{const{refreshKey:e,title:n,onCancel:r,onNewCitation:o,onNewAttachment:i,onEditCitation:s,onEditAttachment:a,onDeleteCitation:l,onDownloadAttachment:u,onSelect:f,getCitationsPaginated:p,selectedIds:m,setSelectedIds:g,onError:y=()=>{},setError:b,setSuccess:S,condenseTable:C=!1,canCreate:_=!1,canEdit:T=!1,canSelect:w=!1,addlActions:E}=t,{palette:O}=j.useTheme(),[N,D]=J.useState([]),[L,M]=J.useState(!1),[R,P]=J.useState(!0),[B,z]=J.useState(null),[$,F]=J.useState(null),[q,U]=J.useState({pageNo:0,pageSize:C?5:10,totalCount:0}),G=()=>{M(!1),P(!0),p({pageNo:q.pageNo,pageSize:q.pageSize}).then(X=>(D(X.data),U({...q,totalCount:X.totalCount}),X)).catch(X=>{y(X),M(!0),D([])}).finally(()=>P(!1))};J.useEffect(G,[q.pageNo,q.pageSize,e]);const Y=()=>{F(null),z(null)},Z=v.jsx(Eo,{variant:w?"outlined":"contained",size:w?"small":"medium",onClick:o,startIcon:v.jsx(yf,{}),children:"Add Citation"}),fe=v.jsx(Eo,{variant:w?"outlined":"contained",size:w?"small":"medium",onClick:i,startIcon:v.jsx(mT,{}),children:"Add Attachment"}),pe=X=>{if(T)return v.jsx(j.IconButton,{color:"primary",onClick:()=>X.fileName?a(X):s(X),"data-testid":`citation-table_edit-btn-${X.id}`,children:v.jsx(zq,{})})},ge=X=>{if(l)return v.jsx(j.IconButton,{color:"error",onClick:W=>{F(X.id),z(W.currentTarget)},"data-testid":`citation-table_delete-btn-${X.id}`,children:v.jsx(j0,{})})},re=X=>{if(u)return v.jsx(j.IconButton,{color:"primary",onClick:()=>{u(X).catch(W=>b({title:`Failed to download ${X.fileName}`,err:W}))},"data-testid":`citation-table_download-btn-${X.id}`,sx:{visibility:X.fileName?"visible":"hidden"},children:v.jsx(Bq,{})})},le=[{fieldName:"id",key:"select",label:"",hideCol:!w,render:(X,W)=>v.jsx(j.Checkbox,{"data-testid":`citation-table_checkbox-${X}`,onChange:()=>{const ee=m.includes(W.id);g(ee?m.filter(ce=>ce!==W.id):[...m,W.id])},checked:m.includes(X)})},{fieldName:"fileName",key:"CitationOrAttachment",label:"Type",render:(X,W)=>v.jsx(j.Tooltip,{title:X?"Attachment":"URL",children:X?v.jsx(mT,{sx:{color:O.grey[500],marginTop:"4px"},"data-testid":`attachment-icon-${W.id}`}):v.jsx(yf,{sx:{color:O.grey[500],marginTop:"6px"},"data-testid":`url-icon-${W.id}`})})},{fieldName:"title",tableCellSx:{width:C?"100%":"auto"}},{fieldName:"fileName",key:"URL/File Name",label:"URL/File Name",hideCol:C,render:(X,W)=>v.jsx("span",{style:{wordBreak:"break-all"},children:X||W.url})},{fieldName:"source",hideCol:C},{fieldName:"accessedAt",hideCol:C,render:(X,W)=>{if(!W.fileName)return(X==null?void 0:X.slice(0,10))??""}},{fieldName:"classification",hideCol:C},{fieldName:"id",key:"Action",label:"Action",hideCol:!(T||u||l||E),render:(X,W)=>v.jsxs(j.Box,{display:"flex",flexDirection:"row",children:[re(W),pe(W),ge(W),E==null?void 0:E(W),v.jsx(j.Popper,{open:$===X,anchorEl:B,placement:"bottom-end",style:{zIndex:1300},children:v.jsxs(j.Box,{component:j.Paper,p:1,display:"flex",gap:1,boxShadow:9,"data-testid":`citation-table_delete-prompt-${X}`,children:[v.jsxs(j.Typography,{variant:"body2",children:["Are you sure you want to delete this ",W.fileName?"attachment":"citation","?"]}),v.jsxs(j.Box,{display:"flex",flexDirection:"row",children:[v.jsx(Eo,{size:"small",variant:"text",onClick:Y,"data-testid":`citation-table_delete-prompt-${X}-noBtn`,children:"No"}),v.jsx(Eo,{size:"small",color:"error",startIcon:v.jsx(j0,{}),onClick:()=>{l==null||l(X).then(()=>{G(),g(m.filter(ee=>ee!==X)),S(`Successfully deleted "${W.title}"`)}).catch(ee=>b({title:`Failed to delete ${W.fileName?"attachment":"citation"}`,err:ee})).finally(Y)},"data-testid":`citation-table_delete-prompt-${X}-yesBtn`,children:"Yes"})]})]})})]})}];return v.jsxs(v.Fragment,{children:[v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:"10px",children:[v.jsx(j.Typography,{variant:C?"h6":"h2",children:n}),!w&&_&&v.jsxs(j.Box,{display:"flex",flexDirection:"row",gap:1,children:[Z,fe]})]}),v.jsx(iL,{"data-testid":"citation-table",title:n,size:C?"x-small":"medium",isLoading:R,columns:le,data:N,paginationState:q,onPageChange:X=>U({...q,pageNo:X}),onRowsPerPageChange:X=>U({...q,pageSize:X,pageNo:0}),errorTableMsg:L?"Failed to load citations.":void 0,retryCallback:G}),w&&v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",marginTop:"20px",children:[v.jsx(j.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:_&&v.jsxs(v.Fragment,{children:[Z,fe]})}),v.jsxs(j.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:[v.jsx(Eo,{variant:"outlined",size:"small",onClick:r,children:"Cancel"}),v.jsxs(Eo,{variant:"contained",size:"small",onClick:()=>f(m),children:["Select",m.length>0&&` (${m.length})`]})]})]})]})},j1=t=>{const{loading:e=!1,type:n="submit",size:r="medium",...o}=t,s={small:16,medium:20,large:24}[r];return v.jsx(Eo,{type:n,disabled:e,size:r,startIcon:e?v.jsx(j.CircularProgress,{size:s,color:"inherit"}):null,...o})},bfe=t=>{const{id:e,title:n,onSave:r,onCancel:o,getCitationById:i,setError:s}=t,a=J.useRef(null),[l,u]=J.useState(!0),[f,p]=J.useState({type:"Url",source:"",title:"",accessedAt:null,url:"",classification:""});J.useEffect(()=>{if(e===void 0){u(!1);return}i(e).then(g=>{p({...g,type:"Url"}),u(!1)}).catch(g=>{u(!1),s({title:"Failed to retrieve citation",err:g})})},[]);const m=()=>{var y,b,S;const g=(b=(y=a==null?void 0:a.current)==null?void 0:y.values)==null?void 0:b.url;g&&((S=a==null?void 0:a.current)==null||S.setFieldValue("url",TP(g)))};return v.jsxs(v.Fragment,{children:[n&&v.jsx(j.Typography,{variant:"h6",margin:"10px 0",children:n}),v.jsx(qt.Formik,{innerRef:a,enableReinitialize:!0,initialValues:f,onSubmit:async g=>{u(!0),r(g).catch(y=>{u(!1),s({title:`Failed to ${e===void 0?"save":"update"} citation`,err:y})}).finally(()=>u(!1))},children:v.jsxs(qt.Form,{autoComplete:"off",children:[v.jsx(Va,{name:"source",disabled:l,required:!0,margin:"none"}),v.jsx(Va,{name:"title",disabled:l,required:!0,margin:"none"}),v.jsx(kf,{name:"accessedAt",disabled:l,required:!0,margin:"none",isDatePicker:!0}),v.jsx(Va,{name:"url",disabled:l,required:!0,onBlur:m,margin:"none"}),v.jsx(PA,{row:!0,name:"classification",required:!0,radios:[{label:"Public Source",value:"Public Source"},{label:"Proprietary Source",value:"Proprietary Source"}],margin:"none"}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:o,variant:"outlined",size:"small",children:"Cancel"}),v.jsx(j1,{size:"small",loading:l,children:e?"Update Citation":"Add New Citation"})]})]})})]})};var O0,lR;function vfe(){if(lR)return O0;lR=1;function t(C){this._maxSize=C,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(C){return this._values[C]},t.prototype.set=function(C,_){return this._size>=this._maxSize&&this.clear(),C in this._values||this._size++,this._values[C]=_};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,a=new t(s),l=new t(s),u=new t(s);O0={Cache:t,split:p,normalizePath:f,setter:function(C){var _=f(C);return l.get(C)||l.set(C,function(w,E){for(var O=0,N=_.length,D=w;O<N-1;){var L=_[O];if(L==="__proto__"||L==="constructor"||L==="prototype")return w;D=D[_[O++]]}D[_[O]]=E})},getter:function(C,_){var T=f(C);return u.get(C)||u.set(C,function(E){for(var O=0,N=T.length;O<N;)if(E!=null||!_)E=E[T[O++]];else return;return E})},join:function(C){return C.reduce(function(_,T){return _+(g(T)||n.test(T)?"["+T+"]":(_?".":"")+T)},"")},forEach:function(C,_,T){m(Array.isArray(C)?C:p(C),_,T)}};function f(C){return a.get(C)||a.set(C,p(C).map(function(_){return _.replace(i,"$2")}))}function p(C){return C.match(e)||[""]}function m(C,_,T){var w=C.length,E,O,N,D;for(O=0;O<w;O++)E=C[O],E&&(S(E)&&(E='"'+E+'"'),D=g(E),N=!D&&/^\d+$/.test(E),_.call(T,E,D,N,O,C))}function g(C){return typeof C=="string"&&C&&["'",'"'].indexOf(C.charAt(0))!==-1}function y(C){return C.match(r)&&!C.match(n)}function b(C){return o.test(C)}function S(C){return!g(C)&&(y(C)||b(C))}return O0}var Bs=vfe(),R0,cR;function xfe(){if(cR)return R0;cR=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=f=>f.match(t)||[],n=f=>f[0].toUpperCase()+f.slice(1),r=(f,p)=>e(f).join(p).toLowerCase(),o=f=>e(f).reduce((p,m)=>`${p}${p?m[0].toUpperCase()+m.slice(1).toLowerCase():m.toLowerCase()}`,"");return R0={words:e,upperFirst:n,camelCase:o,pascalCase:f=>n(o(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>n(r(f," ")),titleCase:f=>e(f).map(n).join(" ")},R0}var A0=xfe(),Vd={exports:{}},uR;function Sfe(){if(uR)return Vd.exports;uR=1,Vd.exports=function(o){return t(e(o),o)},Vd.exports.array=t;function t(o,i){var s=o.length,a=new Array(s),l={},u=s,f=n(i),p=r(o);for(i.forEach(function(g){if(!p.has(g[0])||!p.has(g[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)l[u]||m(o[u],u,new Set);return a;function m(g,y,b){if(b.has(g)){var S;try{S=", node was:"+JSON.stringify(g)}catch{S=""}throw new Error("Cyclic dependency"+S)}if(!p.has(g))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(g));if(!l[y]){l[y]=!0;var C=f.get(g)||new Set;if(C=Array.from(C),y=C.length){b.add(g);do{var _=C[--y];m(_,p.get(_),b)}while(y);b.delete(g)}a[--s]=g}}}function e(o){for(var i=new Set,s=0,a=o.length;s<a;s++){var l=o[s];i.add(l[0]),i.add(l[1])}return Array.from(i)}function n(o){for(var i=new Map,s=0,a=o.length;s<a;s++){var l=o[s];i.has(l[0])||i.set(l[0],new Set),i.has(l[1])||i.set(l[1],new Set),i.get(l[0]).add(l[1])}return i}function r(o){for(var i=new Map,s=0,a=o.length;s<a;s++)i.set(o[s],s);return i}return Vd.exports}var Cfe=Sfe();const wfe=ir(Cfe),Tfe=Object.prototype.toString,_fe=Error.prototype.toString,kfe=RegExp.prototype.toString,Efe=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Mfe=/^Symbol\((.*)\)(.*)$/;function Ofe(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function dR(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return Ofe(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return Efe.call(t).replace(Mfe,"Symbol($1)");const r=Tfe.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+_fe.call(t)+"]":r==="RegExp"?kfe.call(t):null}function Ui(t,e){let n=dR(t,e);return n!==null?n:JSON.stringify(t,function(r,o){let i=dR(this[r],e);return i!==null?i:o},2)}function aL(t){return t==null?[]:[].concat(t)}let lL,cL,uL,Rfe=/\$\{\s*(\w+)\s*\}/g;lL=Symbol.toStringTag;class fR{constructor(e,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[lL]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],aL(e).forEach(i=>{if(pr.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}cL=Symbol.hasInstance;uL=Symbol.toStringTag;class pr extends Error{static formatError(e,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof e=="string"?e.replace(Rfe,(o,i)=>Ui(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,o,i){const s=new fR(e,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[uL]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,pr)}static[cL](e){return fR[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let To={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Ui(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Ui(n,!0)}\``+o:`${t} must match the configured type. The validated value was: \`${Ui(n,!0)}\``+o}},dr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Afe={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},$v={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Ife={isValue:"${path} field must be ${value}"},df={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Dfe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Pfe={notType:t=>{const{path:e,value:n,spec:r}=t,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${e} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Ui(n,!0)}\``;if(n.length>o)return`${e} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Ui(n,!0)}\``}return pr.formatError(To.notType,t)}};Object.assign(Object.create(null),{mixed:To,string:dr,number:Afe,date:$v,object:df,array:Dfe,boolean:Ife,tuple:Pfe});const $1=t=>t&&t.__isYupSchema__;class gp{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new gp(e,(a,l)=>{var u;let f=s(...a)?o:i;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,e,n);if(o===void 0||o===e)return e;if(!$1(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Hd={context:"$",value:"."};class ta{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Hd.context,this.isValue=this.key[0]===Hd.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Hd.context:this.isValue?Hd.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Bs.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let o=this.isContext?r:this.isValue?e:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}ta.prototype.__isYupRef=!0;const Ds=t=>t==null;function Aa(t){function e({value:n,path:r="",options:o,originalValue:i,schema:s},a,l){const{name:u,test:f,params:p,message:m,skipAbsent:g}=t;let{parent:y,context:b,abortEarly:S=s.spec.abortEarly,disableStackTrace:C=s.spec.disableStackTrace}=o;function _(R){return ta.isRef(R)?R.getValue(n,y,b):R}function T(R={}){const P=Object.assign({value:n,originalValue:i,label:s.spec.label,path:R.path||r,spec:s.spec,disableStackTrace:R.disableStackTrace||C},p,R.params);for(const z of Object.keys(P))P[z]=_(P[z]);const B=new pr(pr.formatError(R.message||m,P),n,P.path,R.type||u,P.disableStackTrace);return B.params=P,B}const w=S?a:l;let E={path:r,parent:y,type:u,from:o.from,createError:T,resolve:_,options:o,originalValue:i,schema:s};const O=R=>{pr.isError(R)?w(R):R?l(null):w(T())},N=R=>{pr.isError(R)?w(R):a(R)};if(g&&Ds(n))return O(!0);let L;try{var M;if(L=f.call(E,n,E),typeof((M=L)==null?void 0:M.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(L).then(O,N)}}catch(R){N(R);return}O(L)}return e.OPTIONS=t,e}function Nfe(t,e,n,r=n){let o,i,s;return e?(Bs.forEach(e,(a,l,u)=>{let f=l?a.slice(1,a.length-1):a;t=t.resolve({context:r,parent:o,value:n});let p=t.type==="tuple",m=u?parseInt(f,10):0;if(t.innerType||p){if(p&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);o=n,n=n&&n[m],t=p?t.spec.types[m]:t.innerType}if(!u){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);o=n,n=n&&n[f],t=t.fields[f]}i=f,s=l?"["+a+"]":"."+a}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}class yp extends Set{describe(){const e=[];for(const n of this.values())e.push(ta.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new yp(this.values())}merge(e,n){const r=this.clone();return e.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Ba(t,e=new Map){if($1(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=Ba(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,o]of t.entries())n.set(r,Ba(o,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(Ba(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,o]of Object.entries(t))n[r]=Ba(o,e)}else throw Error(`Unable to clone ${t}`);return n}class Lo{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new yp,this._blacklist=new yp,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(To.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ba(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,o,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=e.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({value:e},n)),o=n.assert==="ignore-optionality",i=r._cast(e,n);if(n.assert!==!1&&!r.isType(i)){if(o&&Ds(i))return i;let s=Ui(e),a=Ui(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
400
400
 
401
401
  attempted value: ${s}
402
- `+(a!==s?`result of cast: ${a}`:""))}return i}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((o,i)=>i.call(this,o,e,this),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,o){let{path:i,originalValue:s=e,strict:a=this.spec.strict}=n,l=e;a||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:i,value:l,originalValue:s,options:n,tests:u},r,f=>{if(f.length)return o(f,l);this.runTests({path:i,value:l,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(e,n,r){let o=!1,{tests:i,value:s,originalValue:a,path:l,options:u}=e,f=b=>{o||(o=!0,n(b,s))},p=b=>{o||(o=!0,r(b,s))},m=i.length,g=[];if(!m)return p([]);let y={value:s,originalValue:a,path:l,options:u,schema:this};for(let b=0;b<i.length;b++){const S=i[b];S(y,f,function(_){_&&(Array.isArray(_)?g.push(..._):g.push(_)),--m<=0&&p(g)})}}asNestedTest({key:e,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const a=e??n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let u=r[a];const f=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:i[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${o||""}[${l?a:`"${a}"`}]`:(o?`${o}.`:"")+e});return(p,m,g)=>this.resolve(f)._validate(u,f,m,g)}validate(e,n){var r;let o=this.resolve(Object.assign({},n,{value:e})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,a)=>o._validate(e,n,(l,u)=>{pr.isError(l)&&(l.value=u),a(l)},(l,u)=>{l.length?a(new pr(l,u,void 0,void 0,i)):s(u)}))}validateSync(e,n){var r;let o=this.resolve(Object.assign({},n,{value:e})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(e,Object.assign({},n,{sync:!0}),(a,l)=>{throw pr.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new pr(a,e,void 0,void 0,s);i=l}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(pr.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(pr.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):Ba(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=Aa({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=Aa({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=To.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=To.notNull){return this.nullability(!1,e)}required(e=To.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=To.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Aa(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),o=aL(e).map(i=>new ta(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new gp(o,n):gp.fromOptions(o,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=Aa({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=To.oneOf){let r=this.clone();return e.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Aa({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,n=To.notOneOf){let r=this.clone();return e.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Aa({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(p=>p.name===l.name)===u)}}}Lo.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Lo.prototype[`${t}At`]=function(e,n,r={}){const{parent:o,parentPath:i,schema:s}=Nfe(this,e,n,r.context);return s[t](o&&o[i],Object.assign({},r,{parent:o,path:e}))};for(const t of["equals","is"])Lo.prototype[t]=Lo.prototype.oneOf;for(const t of["not","nope"])Lo.prototype[t]=Lo.prototype.notOneOf;const Lfe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function jfe(t){const e=Fv(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let n=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(n=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(n=0-n)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+n,e.second,e.millisecond)}function Fv(t){var e,n;const r=Lfe.exec(t);return r?{year:ei(r[1]),month:ei(r[2],1)-1,day:ei(r[3],1),hour:ei(r[4]),minute:ei(r[5]),second:ei(r[6]),millisecond:r[7]?ei(r[7].substring(0,3)):0,precision:(e=(n=r[7])==null?void 0:n.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:ei(r[10]),minuteOffset:ei(r[11])}:null}function ei(t,e=0){return Number(t)||e}let $fe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ffe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Bfe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,zfe="^\\d{4}-\\d{2}-\\d{2}",Vfe="\\d{2}:\\d{2}:\\d{2}",Hfe="(([+-]\\d{2}(:?\\d{2})?)|Z)",Wfe=new RegExp(`${zfe}T${Vfe}(\\.\\d+)?${Hfe}$`),qfe=t=>Ds(t)||t===t.trim(),Ufe={}.toString();function Bv(){return new dL}class dL extends Lo{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const o=e!=null&&e.toString?e.toString():e;return o===Ufe?e:o})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||To.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=dr.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=dr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=dr.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||dr.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=dr.email){return this.matches($fe,{name:"email",message:e,excludeEmptyString:!0})}url(e=dr.url){return this.matches(Ffe,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=dr.uuid){return this.matches(Bfe,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let n="",r,o;return e&&(typeof e=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=e:n=e),this.matches(Wfe,{name:"datetime",message:n||dr.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||dr.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=Fv(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||dr.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=Fv(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=dr.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:qfe})}lowercase(e=dr.lowercase){return this.transform(n=>Ds(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ds(n)||n===n.toLowerCase()})}uppercase(e=dr.uppercase){return this.transform(n=>Ds(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ds(n)||n===n.toUpperCase()})}}Bv.prototype=dL.prototype;let Kfe=new Date(""),Yfe=t=>Object.prototype.toString.call(t)==="[object Date]";class xh extends Lo{constructor(){super({type:"date",check(e){return Yfe(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=jfe(e),isNaN(e)?xh.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(ta.isRef(e))r=e;else{let o=this.cast(e);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(e,n=$v.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(e,n=$v.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}xh.INVALID_DATE=Kfe;xh.prototype;function Gfe(t,e=[]){let n=[],r=new Set,o=new Set(e.map(([s,a])=>`${s}-${a}`));function i(s,a){let l=Bs.split(s)[0];r.add(l),o.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(t)){let a=t[s];r.add(s),ta.isRef(a)&&a.isSibling?i(a.path,s):$1(a)&&"deps"in a&&a.deps.forEach(l=>i(l,s))}return wfe.array(Array.from(r),n).reverse()}function pR(t,e){let n=1/0;return t.some((r,o)=>{var i;if((i=e.path)!=null&&i.includes(r))return n=o,!0}),n}function fL(t){return(e,n)=>pR(t,e)-pR(t,n)}const Jfe=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function ff(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=ff(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=ff(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(ff)}):"optional"in t?t.optional():t}const Zfe=(t,e)=>{const n=[...Bs.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),o=Bs.getter(Bs.join(n),!0)(t);return!!(o&&r in o)};let hR=t=>Object.prototype.toString.call(t)==="[object Object]";function mR(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const Xfe=fL([]);function pL(t){return new hL(t)}class hL extends Lo{constructor(e){super({type:"object",check(n){return hR(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Xfe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let o=super._cast(e,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(o).filter(p=>!this._nodes.includes(p))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),f=!1;for(const p of a){let m=i[p],g=p in o;if(m){let y,b=o[p];u.path=(n.path?`${n.path}.`:"")+p,m=m.resolve({value:b,context:n.context,parent:l});let S=m instanceof Lo?m.spec:void 0,C=S==null?void 0:S.strict;if(S!=null&&S.strip){f=f||p in o;continue}y=!n.__validating||!C?m.cast(o[p],u):o[p],y!==void 0&&(l[p]=y)}else g&&!s&&(l[p]=o[p]);(g!==p in l||l[p]!==o[p])&&(f=!0)}return f?l:o}_validate(e,n={},r,o){let{from:i=[],originalValue:s=e,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(e,n,r,(l,u)=>{if(!a||!hR(u)){o(l,u);return}s=s||u;let f=[];for(let p of this._nodes){let m=this.fields[p];!m||ta.isRef(m)||f.push(m.asNestedTest({options:n,key:p,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:f,value:u,originalValue:s,options:n},r,p=>{o(p.sort(this._sortErrors).concat(l),u)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=e;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=Gfe(e,n),r._sortErrors=fL(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),o)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return ff(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>e.includes(r)&&e.includes(o)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let o=Bs.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return Zfe(i,e)&&(s=Object.assign({},i),r||delete s[e],s[n]=o(i)),s})}json(){return this.transform(Jfe)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||df.exact,test(n){if(n==null)return!0;const r=mR(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,n=df.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=mR(this.schema,o);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=df.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[e(o)]=n[o];return r})}camelCase(){return this.transformKeys(A0.camelCase)}snakeCase(){return this.transformKeys(A0.snakeCase)}constantCase(){return this.transformKeys(e=>A0.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let a=e;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),r.fields[i]=s.describe(a)}return r}}pL.prototype=hL.prototype;const Qfe=t=>{const{id:e,title:n,onSave:r,onCancel:o,getCitationById:i,disableFileUpload:s=!1,setError:a}=t,l=J.useRef(null),[u,f]=J.useState(!0),[p,m]=J.useState({type:"Attachment",title:"",file:void 0,fileName:""});return J.useEffect(()=>{if(e===void 0){f(!1);return}i(e).then(g=>{m({...g,type:"Attachment",file:void 0}),f(!1)}).catch(g=>{f(!1),a({title:"Failed to retrieve attachment",err:g})})},[]),v.jsxs(v.Fragment,{children:[n&&v.jsx(j.Typography,{variant:"h6",margin:"10px 0",children:n}),v.jsx(qt.Formik,{innerRef:l,enableReinitialize:!0,initialValues:p,validationSchema:pL().shape({title:Bv().required("Title is required"),fileName:Bv().required("A file is required")}),onSubmit:async g=>{f(!0),r(g).catch(y=>{f(!1),a({title:`Failed to ${e===void 0?"save":"update"} attachment`,err:y})}).finally(()=>f(!1))},children:({values:g,setFieldValue:y})=>{var b;return J.useEffect(()=>{var S,C;(S=g.file)!=null&&S.name&&y("fileName",(C=g.file)==null?void 0:C.name)},[(b=g.file)==null?void 0:b.name]),v.jsxs(qt.Form,{autoComplete:"off",children:[v.jsx(Va,{name:"title",disabled:u,required:!0,margin:"none"}),v.jsxs(j.Box,{display:"flex",flexDirection:"row",alignItems:"flex-start",children:[v.jsx(OA,{name:"file",readOnly:s}),g.fileName&&v.jsx("span",{style:{margin:"6px 0 0 10px"},children:g.fileName}),v.jsx(tr,{name:"fileName",id:"fileName-err"})]}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:o,variant:"outlined",size:"small",children:"Cancel"}),v.jsx(j1,{size:"small",loading:u,children:e?"Update Attachment":"Add New Attachment"})]})]})}})]})},Su=t=>{const{open:e=!1,onClose:n,title:r,children:o,actions:i,closeBtnLabel:s,closeButtonPosition:a,closeButtonProps:l={},disableDismiss:u=!1,...f}=t;if(!e)return null;const p=a==="bottom"||a==="top-and-bottom",m=a==="top"||a==="top-and-bottom",g=()=>{if(s&&p)return v.jsx(j.Button,{className:"MBv2_Modal_Close",onClick:t.onClose,...l,children:s})},y=()=>{if(i)return v.jsx(j.DialogActions,{className:"MBv2_Modal_Actions",children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",gap:"0.25rem",children:[v.jsx(j.Box,{children:g()}),v.jsxs(j.Box,{display:"flex",gap:".25rem",children:[...i]})]})});if(s&&p)return v.jsx(j.DialogActions,{className:"MBv2_Modal_Actions",children:v.jsx(j.Box,{children:g()})})};return v.jsxs(j.Dialog,{className:"MBv2_Modal",open:e,onClose:()=>{u||n==null||n()},...f,children:[typeof r=="string"?v.jsx(j.DialogTitle,{className:"MBv2_Modal_Title",children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[r,m&&v.jsx(j.IconButton,{"data-testid":"modal-header-close-btn",onClick:n,children:v.jsx(jq,{})})]})}):r,o&&(typeof o=="string"?v.jsx(j.DialogContent,{className:"MBv2_Modal_Content",children:v.jsx(j.DialogContentText,{className:"MBv2_Modal_Content_Text",children:o})}):o),y()]})};function epe(t){return Ye("MuiAlert",t)}const gR=We("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),tpe=Fe(v.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),npe=Fe(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),rpe=Fe(v.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ope=Fe(v.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ipe=Fe(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),spe=t=>{const{variant:e,color:n,severity:r,classes:o}=t,i={root:["root",`color${Re(n||r)}`,`${e}${Re(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Ke(i,epe,o)},ape=be(pl,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Re(n.color||n.severity)}`]]}})(It(({theme:t})=>{const e=t.palette.mode==="light"?Za:Mc,n=t.palette.mode==="light"?Mc:Za;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${gR.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${gR.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Hn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),lpe=be("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),cpe=be("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),upe=be("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yR={success:v.jsx(tpe,{fontSize:"inherit"}),warning:v.jsx(npe,{fontSize:"inherit"}),error:v.jsx(rpe,{fontSize:"inherit"}),info:v.jsx(ope,{fontSize:"inherit"})},mL=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:u={},componentsProps:f={},icon:p,iconMapping:m=yR,onClose:g,role:y="alert",severity:b="success",slotProps:S={},slots:C={},variant:_="standard",...T}=r,w={...r,color:l,severity:b,variant:_,colorSeverity:l||b},E=spe(w),O={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...C},slotProps:{...f,...S}},[N,D]=Bt("root",{ref:n,shouldForwardComponentProp:!0,className:Pe(E.root,s),elementType:ape,externalForwardedProps:{...O,...T},ownerState:w,additionalProps:{role:y,elevation:0}}),[L,M]=Bt("icon",{className:E.icon,elementType:lpe,externalForwardedProps:O,ownerState:w}),[R,P]=Bt("message",{className:E.message,elementType:cpe,externalForwardedProps:O,ownerState:w}),[z,F]=Bt("action",{className:E.action,elementType:upe,externalForwardedProps:O,ownerState:w}),[$,B]=Bt("closeButton",{elementType:hl,externalForwardedProps:O,ownerState:w}),[q,K]=Bt("closeIcon",{elementType:ipe,externalForwardedProps:O,ownerState:w});return v.jsxs(N,{...D,children:[p!==!1?v.jsx(L,{...M,children:p||m[b]||yR[b]}):null,v.jsx(R,{...P,children:i}),o!=null?v.jsx(z,{...F,children:o}):null,o==null&&g?v.jsx(z,{...F,children:v.jsx($,{size:"small","aria-label":a,title:a,color:"inherit",onClick:g,...B,children:v.jsx(q,{fontSize:"small",...K})})}):null]})});process.env.NODE_ENV!=="production"&&(mL.propTypes={action:c.node,children:c.node,classes:c.object,className:c.string,closeText:c.string,color:c.oneOfType([c.oneOf(["error","info","success","warning"]),c.string]),components:c.shape({CloseButton:c.elementType,CloseIcon:c.elementType}),componentsProps:c.shape({closeButton:c.object,closeIcon:c.object}),icon:c.node,iconMapping:c.shape({error:c.node,info:c.node,success:c.node,warning:c.node}),onClose:c.func,role:c.string,severity:c.oneOfType([c.oneOf(["error","info","success","warning"]),c.string]),slotProps:c.shape({action:c.oneOfType([c.func,c.object]),closeButton:c.oneOfType([c.func,c.object]),closeIcon:c.oneOfType([c.func,c.object]),icon:c.oneOfType([c.func,c.object]),message:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({action:c.elementType,closeButton:c.elementType,closeIcon:c.elementType,icon:c.elementType,message:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});const Cu=t=>{var g;const{noIcon:e=!1,children:n,severity:r="success",variant:o="leftBorder",sx:i,title:s,...a}=t,{palette:l}=j.useTheme(),u=e?{icon:!1}:{},f=o==="leftBorder"?"standard":o,p=o==="leftBorder"?{...i,borderLeft:`4px solid ${(g=l[r])==null?void 0:g.main}`}:i,m=s?{icon:{sx:{mt:"6px"}}}:{};return v.jsxs(mL,{severity:r,variant:f,sx:p,slotProps:m,...u,...a,children:[s&&v.jsx(j.Typography,{variant:"h3",children:s}),n]})},gL=t=>v.jsx(Cu,{severity:"error",...t}),yL=t=>v.jsx(Cu,{severity:"success",...t}),dpe=t=>{const{error:e,setError:n,success:r,setSuccess:o}=t;return v.jsxs(v.Fragment,{children:[e&&v.jsx(gL,{"data-testid":"citation-menu-error",onClose:()=>n(void 0),children:e.title}),r&&v.jsx(yL,{"data-testid":"citation-menu-success",onClose:()=>o(void 0),children:r})]})};function F1({getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,onSelectCitations:s,onCancel:a,initialSelectedIds:l=[],onContentChange:u,onError:f=()=>{},renderAsSelectablePopup:p=!1,addlActions:m}){const[g,y]=J.useState("Insert Citation/Attachment(s)"),[b,S]=J.useState(l),[C,_]=J.useState(void 0),[T,w]=J.useState(void 0),[E,O]=J.useState(void 0);J.useEffect(()=>{u==null||u()},[g,T,E,u]),J.useEffect(()=>{p&&w(void 0)},[g]),J.useEffect(()=>{T&&f(T.err)},[T]);const N=async F=>{if(g==="Edit Citation"||g==="Edit Attachment"){if(F.id===void 0)throw Error("Failed to update citation. Citation is missing id");await n(F).then(()=>y("Insert Citation/Attachment(s)")).catch($=>w({title:"Failed to update citation",err:$}))}else(g==="Add Citation"||g==="Add Attachment")&&await(e==null?void 0:e(F).then($=>{S([...b,$.id]),y("Insert Citation/Attachment(s)")}).catch($=>w({title:"Failed to create citation",err:$})))},D=v.jsx(yfe,{getCitationsPaginated:F=>t(F).then($=>(u==null||u(),$)),onCancel:a,onNewCitation:()=>{_(void 0),y("Add Citation")},onNewAttachment:()=>{_(void 0),y("Add Attachment")},onEditCitation:F=>{_(F.id),y("Edit Citation")},onEditAttachment:F=>{_(F.id),y("Edit Attachment")},onDeleteCitation:r,onDownloadAttachment:i,onSelect:s,setSelectedIds:S,selectedIds:b,onError:f,setError:w,setSuccess:O,condenseTable:p,canSelect:p,title:p?g:"Attachments & Citations",addlActions:m,canCreate:!!e}),L=v.jsx(bfe,{id:C,onSave:N,onCancel:()=>y("Insert Citation/Attachment(s)"),getCitationById:o,setError:w,title:g}),M=v.jsx(Qfe,{id:C,onSave:N,onCancel:()=>y("Insert Citation/Attachment(s)"),getCitationById:o,disableFileUpload:g==="Edit Attachment",setError:w,title:g}),R=v.jsx(dpe,{error:T,setError:w,success:E,setSuccess:O}),P=g==="Add Citation"||g==="Edit Citation",z=g==="Add Attachment"||g==="Edit Attachment";if(p){let F=null;return!p||g==="Insert Citation/Attachment(s)"?F=D:P?F=L:z&&(F=M),v.jsxs(j.Box,{width:"500px",children:[R,v.jsx(j.Box,{paddingTop:"8px",children:F})]})}return v.jsxs(j.Box,{width:"100%",children:[g==="Insert Citation/Attachment(s)"&&R,v.jsx(j.Box,{paddingTop:"8px",children:D}),v.jsx(Su,{open:P||z,children:v.jsxs(j.Box,{padding:"10px 20px",minWidth:"400px","data-testid":"citation-form-modal",children:[R,P?L:M]})})]})}const fpe=Yt({name:{CitationBubbleMenuTipTap:bL}})(t=>({content:{padding:t.spacing(1.5,2,.5),backgroundColor:"#f9f9f9"}}));function bL({getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,...s}){const{classes:a}=fpe(),l=vt();if(!(l!=null&&l.isEditable))return null;if(!("citationBubbleMenuHandler"in l.storage))throw new Error("You must add the CitationBubbleMenuHandler extension to the useEditor `extensions` array in order to use this component!");const u=l.storage.citationBubbleMenuHandler,f=u.isOpen,p=u.selectedIds,m=u.selectedNodePos,g=C=>{l&&(C.length===0?l.commands.deleteCitation(m):p.length===0?l.commands.insertCitation({ids:C}):l.commands.updateCitation({ids:C},m))},y=C=>{g(C),l.commands.closeCitationBubbleMenu()},b=()=>{g(p),l.commands.closeCitationBubbleMenu()},S=J.useCallback(()=>{requestAnimationFrame(()=>{l!=null&&l.view&&l.view.dispatch(l.view.state.tr)})},[l]);return v.jsx(hh,{editor:l,open:f,...u.bubbleMenuOptions,...s,children:v.jsx("div",{className:a.content,children:v.jsx(F1,{getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,onSelectCitations:y,onCancel:b,initialSelectedIds:p,onContentChange:S,renderAsSelectablePopup:!0})})})}const ppe=un.create({name:"starterKit",addExtensions(){const t=[];return this.options.bold!==!1&&t.push(EN.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(kN.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(MN.configure(this.options.bulletList)),this.options.code!==!1&&t.push(ON.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(RN.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(AN.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(IN.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(DN.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(PN.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(dN.configure(this.options.heading)),this.options.history!==!1&&t.push(FN.configure(this.options.history)),this.options.horizontalRule!==!1&&t.push(BN.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(zN.configure(this.options.italic)),this.options.listItem!==!1&&t.push(ZN.configure(this.options.listItem)),this.options.orderedList!==!1&&t.push(XN.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(QN.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(tL.configure(this.options.strike)),this.options.text!==!1&&t.push(nL.configure(this.options.text)),t}}),hpe=()=>un.create({name:"citationBubbleMenuHandler",addStorage(){return{isOpen:!1,selectedIds:[],bubbleMenuOptions:void 0,selectedNodePos:0}},addCommands(){return{openCitationBubbleMenu:(t={},e)=>({editor:n,dispatch:r})=>{var a;const{doc:o}=n.state,i=o.nodeAt(e??0),s=((a=i==null?void 0:i.attrs)==null?void 0:a.ids)??[];return r&&(this.storage.isOpen=!0,this.storage.selectedIds=s,this.storage.bubbleMenuOptions=t,this.storage.selectedNodePos=e??0),!0},closeCitationBubbleMenu:()=>({commands:t,dispatch:e})=>this.storage.isOpen?(t.focus(),e&&(this.storage.isOpen=!1,this.storage.selectedIds=[],this.storage.selectedNodePos=0),!0):!1}},onSelectionUpdate(){this.storage.isOpen&&!this.editor.isActive("citation")&&this.editor.commands.closeCitationBubbleMenu()},addKeyboardShortcuts(){return{"Mod-Shift-c":()=>(this.editor.commands.openCitationBubbleMenu(),!0)}}});function mpe(t){const e=vt(),n=J.useRef(null);return v.jsx(mt,{buttonRef:n,tooltipLabel:"Insert Citation/Attachment",tooltipShortcutKeys:["mod","Shift","C"],disabled:!(e!=null&&e.isEditable),onClick:()=>e==null?void 0:e.commands.openCitationBubbleMenu({anchorEl:n.current,placement:"bottom"}),...t,children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",children:[v.jsx(Pq,{fontSize:"small"}),v.jsx(j.Typography,{variant:"body2",children:"Insert Citation/Attachment"})]})})}const vL=J.createContext(void 0),xL=()=>{const t=J.useContext(vL);if(!t)throw new Error("useSync must be used inside CitationFieldProvider");return t},gpe=({node:t,HTMLAttributes:e,selected:n,extension:r,updateAttributes:o,deleteNode:i})=>{const s=t.attrs.ids||[],{citations:a,isLoaded:l}=xL(),[u,f]=J.useState(String(s)),[p,m]=J.useState([]),g=r.options.citationMaxLength;if(J.useEffect(()=>{if(!l)return;const y=a.filter(C=>s.includes(C.id)),b=y.map(C=>gf.truncate(C.title,{length:g,omission:"..."})).join(", ");f(b),m(y);const S=y.map(C=>C.id);S.length===0?setTimeout(i,0):S.length!==s.length&&setTimeout(()=>o({ids:y.map(C=>C.id)}),0)},[a,s,l]),p.length!==0)return v.jsx(y1,{as:"span",...e,"data-testid":"citation-node-component",children:v.jsx(j.Tooltip,{title:v.jsx(j.Box,{className:"citation-tooltip",children:p.map((y,b)=>{var C;const S=[y.source,y.title,y.fileName,y.url,(C=y.accessedAt)==null?void 0:C.slice(0,10),y.classification];return v.jsxs(j.Typography,{variant:"subtitle2",children:[S.filter(Boolean).join(" | "),b<p.length-1&&v.jsx(j.Divider,{className:"citation-tooltip-divider"})]},y.id)})}),slotProps:{tooltip:{sx:{maxWidth:500}}},children:v.jsx("a",{href:"#",onClick:y=>{y.preventDefault(),y.stopPropagation()},className:n?"selected-citation-link":"citation-link",children:u})})})},ype=en.create({name:"citation",group:"inline",inline:!0,atom:!0,selectable:!0,addAttributes(){return{ids:{default:[],parseHTML:t=>{const e=t.getAttribute("ids");return e?e.split(",").map(n=>parseInt(n.trim(),10)).filter(n=>!isNaN(n)):[]},renderHTML:t=>({ids:Array.isArray(t.ids)?t.ids.join(","):""})}}},parseHTML(){return[{tag:"citation"}]},renderHTML({HTMLAttributes:t}){return["citation",bt(t)]},addNodeView(){return b1(gpe)},addProseMirrorPlugins(){return[new tn({props:{handleClickOn:(t,e,n,r,o,i)=>n&&n.type.name==="citation"?(this.editor.commands.openCitationBubbleMenu({},r),!0):!1}})]},addCommands(){return{insertCitation:t=>({commands:e})=>e.insertContent({type:"citation",attrs:t}),updateCitation:(t,e)=>({state:n,dispatch:r,tr:o})=>{const i=n.doc.nodeAt(e);return!i||i.type.name!=="citation"?!1:(o.setNodeMarkup(e,void 0,t),r&&r(o),!0)},deleteCitation:t=>({tr:e,dispatch:n})=>{if(typeof t!="number")return!1;const r=t,o=t+1;return n&&n(e.delete(r,o)),!0}}}}),bpe=t=>{const{name:e,label:n=Mn(e),hideLabel:r=!1,required:o=!1,readOnly:i=!1,margin:s="dense",citationMaxLength:a=24,getCitationsPaginated:l,onCreateCitation:u,onUpdateCitation:f,onDeleteCitation:p,getCitationById:m,onDownloadAttachment:g,onError:y=()=>{}}=t,b=[ppe,eL.configure({placeholder:"Start typing here..."}),hpe(),ype.configure({citationMaxLength:a})],[S,C,_]=qt.useField({name:e}),{setValue:T}=_,{value:w}=S,{addUpdateCitation:E,deleteCitation:O,batchUpdate:N}=xL();J.useEffect(()=>{var F;const P=(F=D==null?void 0:D.current)==null?void 0:F.editor;if(!P||!w)return;P.getHTML()!==w&&setTimeout(()=>{P.commands.setContent(w)},0)},[w]);const D=J.useRef(null),L={normal:{marginTop:"16px",marginBottom:"8px"},dense:{marginTop:"8px",marginBottom:"4px"},none:{margin:0}},M=()=>{var F,$;const P=(($=(F=D.current)==null?void 0:F.editor)==null?void 0:$.getHTML())??"<p></p>",z=!P.replace(/<\/?p>|<br>/g,"").trim();T(z?"<p></p>":P)},R=v.jsxs(j.Box,{id:`citation-field_${e}`,sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:i?0:50}}},...L[s],children:[v.jsx(YP,{ref:D,extensions:b,content:w,editable:!i,renderControls:i?void 0:()=>v.jsx(gh,{children:v.jsx(mpe,{})}),onBlur:M,RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:i}},children:()=>v.jsx(bL,{getCitationsPaginated:P=>l(P).then(z=>(N(z.data),z)),onCreateCitation:u&&(P=>u(P).then(z=>(E(z),z))),onUpdateCitation:P=>f(P).then(z=>(E(z),z)),onDeleteCitation:p&&(P=>p(P).then(()=>O(P))),getCitationById:m,onDownloadAttachment:g,onError:y})}),v.jsx(tr,{name:e,id:`${e}-err`})]});return v.jsxs(j.Box,{display:"flex",flexDirection:"column",width:"100%",children:[!r&&v.jsx(j.InputLabel,{htmlFor:`citation-field_${e}`,required:o,children:n}),R]})},vpe=t=>{const{name:e="submit"}=t;return v.jsx(Eo,{name:e,type:"submit",...t})},xpe=t=>{const{label:e="Return to Top",icon:n=LA,scrollThresholdPx:r=100}=t,o=j.useScrollTrigger({threshold:r}),i=J.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return v.jsx(j.Zoom,{in:o,children:v.jsx(j.Box,{sx:{position:"fixed",bottom:32,right:32,zIndex:1},children:v.jsxs(j.Fab,{onClick:i,color:"primary",size:"small",variant:"extended","aria-label":"Scroll back to top",children:[v.jsx(n,{fontSize:"medium"}),e]})})})},Spe=()=>{const{values:t,errors:e,status:n}=qt.useFormikContext(),{palette:r}=j.useTheme();return v.jsx(j.Paper,{style:{backgroundColor:r.mode==="dark"?"#303030":"#f0f0f0",margin:"10px 0"},children:v.jsxs(j.List,{children:[v.jsxs(j.ListItem,{children:[v.jsx(j.Typography,{display:"block",variant:"h6",children:"Values"}),v.jsx("br",{}),v.jsx(j.Divider,{variant:"inset"}),v.jsx("pre",{children:JSON.stringify(t,null,2)})]}),v.jsx(j.Divider,{variant:"inset",component:"li"}),v.jsxs(j.ListItem,{id:"testing",children:[v.jsx(j.Typography,{display:"block",variant:"h6",children:"Errors"}),v.jsx("br",{}),v.jsx(j.Divider,{variant:"inset"}),v.jsx("pre",{children:JSON.stringify(e,null,2)})]}),v.jsxs(j.ListItem,{children:[v.jsx(j.Typography,{display:"block",variant:"h6",children:"Status"}),v.jsx("br",{}),v.jsx(j.Divider,{variant:"inset"}),v.jsx("pre",{children:JSON.stringify(n,null,2)})]})]})})},Cpe=t=>{const{steps:e,orientation:n,inlineLabel:r=n=="vertical",isResponsive:o=!1}=t,{width:i}=sL();let s=!r,a=n;o&&(n&&console.warn("Stepper: Ignoring orientation. isResponsive is set to true, so the orientation is determined automatically based on the window size."),a=i<600?"vertical":"horizontal",a=="vertical"?s=!1:s=!r),n=="vertical"&&!r&&(console.warn("Stepper: ignoring inlineLabel={false}. Must use inline labels when orientation is vertical"),s=!1);const l=["steps","inlineLabel","orientation","isResponsive"],u={alternativeLabel:s,orientation:a,...er({...t},l)};return v.jsx(j.Stepper,{...u,children:e.map(f=>v.jsx(j.Step,{children:v.jsx(j.StepLabel,{children:f})},f))})},wpe=t=>{const{name:e,label:n=Mn(e),labelProps:r={fontSize:"1.1em",color:"#808080",fontWeight:"600"},initialState:o,renderFormGroup:i,addButtonContent:s="Add Another",removeButtonContent:a=t.removePosition==="right"?v.jsx(p8,{}):"Remove",variant:l="card",addButtonSx:u,removeButtonSx:f,allowRemoveAll:p=!1,readOnly:m=!1,emptyListMsg:g="None",showDivider:y=!1,removePosition:b="bottom"}=t,[S]=qt.useField({name:e}),{value:C}=S,_=T=>({display:"flex",flexDirection:T==="bottom"?"column":"row",alignItems:T==="bottom"?"flex-start":"center"});return v.jsxs(j.FormControl,{fullWidth:!0,children:[v.jsx(j.Typography,{...r,children:n}),m&&S.value.length===0?v.jsx(j.Typography,{children:g}):v.jsx(qt.FieldArray,{name:e,render:T=>v.jsxs("div",{children:[C.map((w,E)=>v.jsx(J.Fragment,{children:v.jsx(Tpe,{variant:l,content:v.jsxs(j.Box,{"data-testid":"form-group-container",sx:typeof b=="string"?_(b):{...b},children:[v.jsxs(j.Box,{width:"100%",children:[i(`${e}.${E}`,E),y&&E!==C.length-1&&v.jsx(j.Divider,{"data-testid":"divider"})]}),!m&&C.length>(p?0:1)&&v.jsx(j.Button,{"data-testid":"repeatable-form-group_remove-btn",sx:f,onClick:()=>T.remove(E),children:a})]})})},`${e}-${E}`)),!m&&v.jsx(j.Button,{"data-testid":"repeatable-form-group_add-btn",onClick:()=>T.push(o),sx:u,children:s})]})})]})},Tpe=({variant:t,content:e})=>{switch(t){case"card":return v.jsx(j.Card,{"data-testid":"repeatable-form-group_card",sx:{padding:"8px",marginBottom:"8px"},children:v.jsx(j.CardContent,{children:e})});case"elevatedCard":return v.jsx(j.Card,{"data-testid":"repeatable-form-group_elevated-card",elevation:4,sx:{border:"unset",padding:"8px",marginBottom:"8px"},children:v.jsx(j.CardContent,{children:e})});case"none":return e}},_pe=t=>{const{confirmBtnLabel:e,onConfirm:n,confirmButtonProps:r={color:"primary",variant:"contained"},closeBtnLabel:o="Cancel",closeButtonPosition:i="bottom",...s}=t;return v.jsx(Su,{actions:[v.jsx(j.Button,{className:"MBv2_ConfirmationModal_ConfirmBtn",onClick:n,...r,children:e})],closeBtnLabel:o,closeButtonPosition:i,...s})},kpe=t=>{const{closeBtnLabel:e="OK",closeButtonPosition:n="bottom",closeButtonProps:r={color:"primary",variant:"contained"},...o}=t;return v.jsx(Su,{closeBtnLabel:e,closeButtonPosition:n,closeButtonProps:r,...o})},Epe=t=>{const{primaryBtnLabel:e,onPrimaryAction:n,primaryActionProps:r={color:"primary",variant:"contained"},secondaryBtnLabel:o,onSecondaryAction:i,secondaryActionProps:s={color:"primary",variant:"outlined"},closeBtnLabel:a="Cancel",closeButtonPosition:l="bottom",...u}=t;return v.jsx(Su,{actions:[v.jsx(j.Button,{className:"MBv2_DecisionModal_SecondaryAction",onClick:i,...s,children:o}),v.jsx(j.Button,{className:"MBv2_DecisionModal_PrimaryAction",onClick:n,...r,children:e})],closeBtnLabel:a,closeButtonPosition:l,...u})},Mpe=t=>{const{featureMenuOptions:e=[],copyright:n,logo:r,sx:o={},fontColor:i="primary"}=t,{palette:s}=j.useTheme(),a=so.useNavigate();return v.jsxs(j.Box,{className:"MBv2_Footer",sx:{backgroundColor:s.mode==="dark"?"#222222":"#ededed",padding:"25px 30px",...o},children:[v.jsx(j.Box,{className:"MBv2_Footer_Logo",sx:{display:"flex",gap:2,alignItems:"center",paddingBottom:1},children:typeof r=="string"?v.jsx("img",{draggable:"false",src:r,style:{width:"200px"},alt:"logo"}):r}),v.jsxs(j.Box,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",className:"MBv2_Footer_Nav_Links_Container",gap:2,children:[v.jsx(j.Box,{sx:{flexGrow:1},className:"MBv2_Footer_Nav_Links",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:3,children:e==null?void 0:e.map(l=>v.jsx(j.Link,{"data-testid":l.label,sx:{cursor:"pointer",fontSize:15},color:i,...Zc(l,a),children:l.label},l.label))}),n&&v.jsx(j.Typography,{style:{fontSize:15},"data-testid":"copyright",className:"MBv2_Footer_Copyright",color:i,children:n})]})]})},SL=t=>{const{menuOptionLists:e,anchor:n="left",children:r}=t,{pathname:o}=so.useLocation(),i=so.useNavigate(),[s,a]=J.useState(!1),l=(m,g)=>v.jsx(j.MenuList,{children:m.map(y=>v.jsxs(j.MenuItem,{...Zc(y,i,()=>a(!1)),children:[y.icon&&v.jsx(j.ListItemIcon,{children:y.icon}),v.jsx(j.ListItemText,{primary:y.label})]},`mobile-drawer-group-${g}-item-${y.path}`))}),f=(()=>{if(e){const m=e.filter(g=>g&&g.length>0);return m.length===0?null:m.map((g,y)=>v.jsxs(J.Fragment,{children:[l(g,y),y<m.length-1&&v.jsx(j.Divider,{})]},`mobile-drawer-group-${y}`))}return r?v.jsx(j.Box,{role:"presentation",onClick:()=>a(!1),children:r}):null})(),p=f??!1;return J.useEffect(()=>{a(!1)},[o]),p&&v.jsxs(v.Fragment,{children:[v.jsx(j.IconButton,{onClick:()=>a(!0),color:"inherit",title:"Menu",children:v.jsx(l8,{})}),v.jsx(j.Drawer,{"data-testid":"mobile-drawer",anchor:n,open:s,onClose:()=>a(!1),children:v.jsx(j.Box,{sx:{width:300},display:"flex",flexDirection:"column",justifyContent:"space-between",children:v.jsx(j.Box,{display:"flex",justifyContent:"start",flexDirection:"column",children:f})})})]})},CL=t=>{const{env:e,isProd:n}=t;return n?null:v.jsx(j.Paper,{sx:{borderRadius:0,display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsxs(j.Typography,{variant:"h6",color:"error",children:[e," Environment - Test Data Only"]})})},wL=t=>{const{label:e,menuOptions:n=[],icon:r}=t,o=so.useNavigate(),[i,s]=A.useState(null),a=!!i,l=f=>{s(f.currentTarget)},u=()=>{s(null)};return n.length===0?null:v.jsxs(v.Fragment,{children:[v.jsx(j.Button,{startIcon:r,variant:"outlined",color:"inherit",sx:{minWidth:0,padding:1},onClick:l,children:e}),v.jsx(j.Menu,{anchorEl:i,open:a,onClick:u,children:n.map(f=>v.jsxs(j.MenuItem,{...Zc(f,o),children:[f.icon&&v.jsx(j.ListItemIcon,{children:f.icon}),v.jsx(j.ListItemText,{primary:f.label})]},f.label))})]})},TL=t=>{const{displayName:e,userMenuOptions:n}=t;return v.jsx(wL,{label:e,menuOptions:n,icon:v.jsx(u8,{})})},Sh=t=>{const{menuOptions:e,orientation:n="horizontal",activeTabIdx:r,sx:o=n=="vertical"?{"& .MuiTabs-indicator":{left:0}}:void 0,slotProps:i={indicator:{sx:n=="horizontal"?{height:4}:{width:4}}}}=t,{palette:s}=j.useTheme(),a=so.useNavigate();return v.jsx(j.Tabs,{orientation:n,value:r??!1,sx:o,slotProps:i,children:e.map((l,u)=>v.jsx(j.Tab,{icon:l.icon,label:l.label,value:u,...Zc(l,a),sx:{alignItems:n=="vertical"?"flex-start":void 0,borderBottom:n=="vertical"?"1px solid":void 0,borderColor:"divider","&.Mui-selected":{backgroundColor:n=="vertical"?s.grey[s.mode=="dark"?800:50]:void 0,color:"inherit"}}},l.label))})},_L=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t;return e.length>0&&v.jsx(j.Paper,{sx:{pl:4,pr:4,borderRadius:0},"data-testid":"navBar",children:v.jsx(Sh,{menuOptions:e,activeTabIdx:n,sx:r})})},kL=t=>{const{onToggle:e}=t,{palette:n}=j.useTheme(),r=n.mode==="dark";return v.jsx(j.IconButton,{onClick:e,color:"inherit",title:"Dark Mode Toggle",children:r?v.jsx(jA,{}):v.jsx(NA,{})})},Ope=t=>{const{envInfo:e,headerRef:n,logo:r,featureMenuOptions:o=[],userMenuOptions:i=[],onToggleDarkMode:s,quickLinks:a=[],displayName:l,banner:u,position:f="fixed",children:p,sx:m,navBarSx:g}=t,y=so.useNavigate(),b=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),{palette:S}=j.useTheme(),{pathname:C}=so.useLocation(),_=S.mode==="dark",[T,w]=A.useState(void 0);A.useEffect(()=>{const N=o.findIndex(D=>D.path&&C.startsWith(D.path));w(N>=0?N:void 0)},[C,o]);const E=s&&v.jsx(kL,{onToggle:s}),O=s&&(b||!b&&l)?[{icon:_?v.jsx(jA,{}):v.jsx(NA,{}),label:`Switch to ${_?"Light":"Dark"} mode`,onClick:s},...i]:i;return v.jsxs(j.AppBar,{ref:n,position:f,sx:m,elevation:4,children:[e&&v.jsx(CL,{...e}),u,v.jsxs(j.Toolbar,{sx:{color:"white",display:"flex",justifyContent:"space-between",gap:2},children:[v.jsx(j.Button,{disableRipple:!0,component:so.Link,to:"/",children:r&&typeof r=="string"?v.jsx("img",{draggable:"false",src:r,style:{width:"200px",filter:"brightness(0) invert(1)"},alt:"logo"}):r}),v.jsxs(j.Box,{display:"flex",gap:2,alignItems:"center",children:[!l&&!b&&E,b&&v.jsx(SL,{menuOptionLists:[o,a,O],anchor:"right"}),!b&&v.jsxs(v.Fragment,{children:[v.jsx(j.Box,{display:"flex",gap:0,children:a==null?void 0:a.map((N,D)=>v.jsxs(j.Box,{display:"flex",alignItems:"center",children:[D>0&&v.jsx(j.Typography,{className:"quickLink-divider",color:S.primary.contrastText,children:"|"}),v.jsx(j.Button,{variant:"text",sx:{color:"white"},...Zc(N,y),children:v.jsxs(j.Box,{display:"flex",gap:"3px",alignItems:"center",children:[N.icon,N.label]})})]},N.label))}),p,l&&v.jsx(TL,{displayName:l,userMenuOptions:O})]})]})]}),!b&&v.jsx(_L,{featureMenuOptions:o,activeTabIdx:T,sx:g})]})},Rpe=t=>{const{sx:e,menuOptions:n=[]}=t,{pathname:r}=so.useLocation(),o=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),[i,s]=J.useState(void 0);return J.useEffect(()=>{const a=n.findIndex(l=>l.path&&r.startsWith(l.path))??-1;s(a>=0?a:void 0)},[r,n]),!o&&n.length>0&&v.jsx(j.Box,{sx:e,children:v.jsx(j.Card,{sx:{height:"100%",width:200},children:v.jsx(Sh,{orientation:"vertical",menuOptions:n,activeTabIdx:i})})})},Ape=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t,{palette:o}=j.useTheme();return e.length>0&&v.jsx(Sh,{menuOptions:e,activeTabIdx:n,sx:{margin:"8px",backgroundColor:o.primary.dark,borderRadius:"8px","& .MuiTab-root":{color:o.secondary.light,flexDirection:"row",gap:"2px","& .MuiTab-icon":{marginBottom:"unset"},minHeight:"58px"},"& .MuiTab-root.Mui-selected":{color:o.primary.contrastText,fontSize:"120%"},"& .MuiTabs-indicator":{display:"none"},...r}})},Ipe=t=>v.jsx(Cu,{severity:"info",...t}),Dpe=t=>v.jsx(Cu,{severity:"warning",...t}),EL=t=>{const{crumbInfo:e}=t,n=so.useNavigate();return v.jsx(j.Breadcrumbs,{"aria-label":"breadcrumb",separator:v.jsx(c8,{color:"primary"}),sx:{marginBottom:2},children:e.map(({label:r,path:o},i)=>o&&i<e.length-1?v.jsx(j.Link,{color:"primary",sx:{cursor:"pointer"},onClick:()=>n(o),children:r},r):v.jsx(j.Typography,{color:"primary",children:r},r))})},Ppe=t=>{const{title:e,message:n,type:r,onClose:o,autoHideDuration:i=8e3,variant:s="leftBorder",elevation:a=6}=t,l=Npe(r);return v.jsx(j.Snackbar,{"data-testid":"message-snackbar",anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!0,onClose:u=>{u==null&&o()},autoHideDuration:i,children:v.jsx(Cu,{"data-testid":"message-snackbar-alert",severity:l,iconMapping:{info:bR(r),warning:bR(r)},onClose:o,elevation:a,variant:s,children:n?v.jsxs(v.Fragment,{children:[v.jsx(j.AlertTitle,{"data-testid":"alertTitle",sx:{fontWeight:"bold"},children:e}),n]}):e})})},Npe=t=>t=="logout"?"info":t=="timeout"?"warning":t,bR=t=>{if(t=="timeout")return v.jsx(Aq,{});if(t=="logout")return v.jsx(a8,{})},Lpe=t=>{const{title:e,createButtonLabel:n,showAddButton:r=!1,onAdd:o=()=>alert("Not implemented yet"),breadcrumbs:i=[],children:s,sx:a}=t,l=j.useMediaQuery(j.useTheme().breakpoints.down("sm"));return r&&o.toString()==='() => alert("Not implemented yet")'&&console.warn('PageHeader: "showAddButton" is true but "onAdd" is not defined.'),v.jsxs(j.Box,{sx:a,children:[i.length>0&&v.jsx(EL,{crumbInfo:i}),v.jsxs(j.Box,{className:"MBv2_PageHeader_Header",display:"flex",flexDirection:l?"column":"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[v.jsxs(j.Box,{className:"MBv2_PageHeader_TitleAndCreateBtn",display:"flex",flexDirection:"row",justifyContent:l||!s?"space-between":"start",alignItems:"center",width:"100%",gap:1,children:[typeof e=="string"?v.jsx(j.Typography,{className:"MBv2_PageHeader_Title",variant:"h2",children:e}):e,r&&v.jsxs(Eo,{className:"MBv2_PageHeader_CreateBtn",onClick:()=>o(),children:[v.jsx(Iq,{style:{marginRight:"0.5rem"}}),n]})]}),s&&v.jsx(j.Box,{width:l?"100%":"50%",children:s})]})]})},jpe=t=>{const{title:e,titleIcon:n,fullWidthIcon:r=!1,children:o,actionLabel:i,action:s,sx:a}=t,l=j.useMediaQuery(j.useTheme().breakpoints.down("sm"));return v.jsxs(j.Card,{sx:a||{padding:"30px 40px",display:"flex",flexDirection:"column",gap:"1rem"},children:[n&&v.jsx(j.Box,{className:"MBv2_SingleActionCard_Img",sx:[r?{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"20px",marginBottom:"10px"}:{display:"inline"}],children:n}),v.jsx(j.Typography,{variant:"h1",display:"inline",fontSize:"calc(20px + .9vw)",className:"MBv2_SingleActionCard_Title",children:e}),o,v.jsx(j.Button,{variant:"contained",color:"primary",onClick:s,fullWidth:l,className:"MBv2_SingleActionCard_ActionButton",children:i})]})};function $pe({...t}){return v.jsx(F1,{renderAsSelectablePopup:!0,...t})}function Fpe({...t}){return v.jsx(F1,{onSelectCitations:()=>{},onCancel:()=>{},renderAsSelectablePopup:!1,...t})}const Bpe=({children:t,getCitations:e})=>{const[n,r]=J.useState([]),[o,i]=J.useState(!1);J.useEffect(()=>{(async()=>e().then(f=>{r(p=>{const m=new Set(p.map(y=>y.id));return[...p.filter(y=>!m.has(y.id)),...f]}),i(!0)}).catch(f=>{console.error(`Error fetching citations: ${f==null?void 0:f.toString()}`)}))()},[]);const s=J.useCallback(u=>{r(f=>{const p=f.map(y=>{const b=u.find(S=>S.id===y.id);return b||y}),m=new Set(f.map(y=>y.id)),g=u.filter(y=>!m.has(y.id));return[...p,...g]})},[]),a=J.useCallback(u=>{const f=n.findIndex(p=>p.id===u.id);r(f!==-1?p=>{const m=[...p];return m[f]=u,m}:[...n,u])},[n]),l=J.useCallback(u=>r(n.filter(f=>f.id!==u)),[n]);return v.jsx(vL.Provider,{value:{citations:n,isLoaded:o,addUpdateCitation:a,deleteCitation:l,batchUpdate:s},children:t})};exports.AlertModal=kpe;exports.Autocomplete=MA;exports.Breadcrumbs=EL;exports.Button=Eo;exports.Checkbox=cq;exports.CheckboxGroup=uq;exports.CitationField=bpe;exports.CitationFieldProvider=Bpe;exports.CitationManager=Fpe;exports.ConfirmationModal=_pe;exports.DarkModeToggle=kL;exports.DateField=kf;exports.DateRangeField=DQ;exports.DecisionModal=Epe;exports.Drawer=SL;exports.DynamicAutocomplete=aq;exports.EnvironmentBanner=CL;exports.Error=tr;exports.ErrorAlert=gL;exports.FileList=fq;exports.FileUpload=OA;exports.FloatingNavBar=Ape;exports.Footer=Mpe;exports.FormDebugger=Spe;exports.Header=Ope;exports.InfoAlert=Ipe;exports.LoadingButton=j1;exports.LoadingIndicator=jv;exports.Location=Eq;exports.MenuButton=wL;exports.Modal=Su;exports.MultiAutocomplete=lq;exports.NavBar=_L;exports.PageHeader=Lpe;exports.PaginatedTable=iL;exports.ProfileMenu=TL;exports.RadioGroup=PA;exports.RangeSlider=Mq;exports.RepeatableFormGroup=wpe;exports.RichTextField=gfe;exports.ScrollToTop=xpe;exports.SearchField=x8;exports.Select=Oq;exports.SelectableCitationManager=$pe;exports.Sidebar=Rpe;exports.SingleActionCard=jpe;exports.Snackbar=Ppe;exports.Stepper=Cpe;exports.Submit=vpe;exports.SuccessAlert=yL;exports.Switch=Rq;exports.Table=oL;exports.Tabs=Sh;exports.TextField=Va;exports.WarningAlert=Dpe;exports.commonTheme=Sn;exports.darkTheme=a6;exports.lightTheme=s6;
402
+ `+(a!==s?`result of cast: ${a}`:""))}return i}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((o,i)=>i.call(this,o,e,this),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,o){let{path:i,originalValue:s=e,strict:a=this.spec.strict}=n,l=e;a||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:i,value:l,originalValue:s,options:n,tests:u},r,f=>{if(f.length)return o(f,l);this.runTests({path:i,value:l,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(e,n,r){let o=!1,{tests:i,value:s,originalValue:a,path:l,options:u}=e,f=b=>{o||(o=!0,n(b,s))},p=b=>{o||(o=!0,r(b,s))},m=i.length,g=[];if(!m)return p([]);let y={value:s,originalValue:a,path:l,options:u,schema:this};for(let b=0;b<i.length;b++){const S=i[b];S(y,f,function(_){_&&(Array.isArray(_)?g.push(..._):g.push(_)),--m<=0&&p(g)})}}asNestedTest({key:e,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const a=e??n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let u=r[a];const f=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:i[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${o||""}[${l?a:`"${a}"`}]`:(o?`${o}.`:"")+e});return(p,m,g)=>this.resolve(f)._validate(u,f,m,g)}validate(e,n){var r;let o=this.resolve(Object.assign({},n,{value:e})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,a)=>o._validate(e,n,(l,u)=>{pr.isError(l)&&(l.value=u),a(l)},(l,u)=>{l.length?a(new pr(l,u,void 0,void 0,i)):s(u)}))}validateSync(e,n){var r;let o=this.resolve(Object.assign({},n,{value:e})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(e,Object.assign({},n,{sync:!0}),(a,l)=>{throw pr.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new pr(a,e,void 0,void 0,s);i=l}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(pr.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(pr.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):Ba(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=Aa({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=Aa({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=To.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=To.notNull){return this.nullability(!1,e)}required(e=To.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=To.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Aa(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),o=aL(e).map(i=>new ta(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new gp(o,n):gp.fromOptions(o,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=Aa({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=To.oneOf){let r=this.clone();return e.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Aa({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,n=To.notOneOf){let r=this.clone();return e.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Aa({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(p=>p.name===l.name)===u)}}}Lo.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Lo.prototype[`${t}At`]=function(e,n,r={}){const{parent:o,parentPath:i,schema:s}=Nfe(this,e,n,r.context);return s[t](o&&o[i],Object.assign({},r,{parent:o,path:e}))};for(const t of["equals","is"])Lo.prototype[t]=Lo.prototype.oneOf;for(const t of["not","nope"])Lo.prototype[t]=Lo.prototype.notOneOf;const Lfe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function jfe(t){const e=Fv(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let n=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(n=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(n=0-n)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+n,e.second,e.millisecond)}function Fv(t){var e,n;const r=Lfe.exec(t);return r?{year:ei(r[1]),month:ei(r[2],1)-1,day:ei(r[3],1),hour:ei(r[4]),minute:ei(r[5]),second:ei(r[6]),millisecond:r[7]?ei(r[7].substring(0,3)):0,precision:(e=(n=r[7])==null?void 0:n.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:ei(r[10]),minuteOffset:ei(r[11])}:null}function ei(t,e=0){return Number(t)||e}let $fe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ffe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Bfe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,zfe="^\\d{4}-\\d{2}-\\d{2}",Vfe="\\d{2}:\\d{2}:\\d{2}",Hfe="(([+-]\\d{2}(:?\\d{2})?)|Z)",Wfe=new RegExp(`${zfe}T${Vfe}(\\.\\d+)?${Hfe}$`),qfe=t=>Ds(t)||t===t.trim(),Ufe={}.toString();function Bv(){return new dL}class dL extends Lo{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const o=e!=null&&e.toString?e.toString():e;return o===Ufe?e:o})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||To.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=dr.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=dr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=dr.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||dr.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=dr.email){return this.matches($fe,{name:"email",message:e,excludeEmptyString:!0})}url(e=dr.url){return this.matches(Ffe,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=dr.uuid){return this.matches(Bfe,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let n="",r,o;return e&&(typeof e=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=e:n=e),this.matches(Wfe,{name:"datetime",message:n||dr.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||dr.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=Fv(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||dr.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=Fv(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=dr.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:qfe})}lowercase(e=dr.lowercase){return this.transform(n=>Ds(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ds(n)||n===n.toLowerCase()})}uppercase(e=dr.uppercase){return this.transform(n=>Ds(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ds(n)||n===n.toUpperCase()})}}Bv.prototype=dL.prototype;let Kfe=new Date(""),Yfe=t=>Object.prototype.toString.call(t)==="[object Date]";class xh extends Lo{constructor(){super({type:"date",check(e){return Yfe(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=jfe(e),isNaN(e)?xh.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(ta.isRef(e))r=e;else{let o=this.cast(e);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(e,n=$v.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(e,n=$v.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}xh.INVALID_DATE=Kfe;xh.prototype;function Gfe(t,e=[]){let n=[],r=new Set,o=new Set(e.map(([s,a])=>`${s}-${a}`));function i(s,a){let l=Bs.split(s)[0];r.add(l),o.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(t)){let a=t[s];r.add(s),ta.isRef(a)&&a.isSibling?i(a.path,s):$1(a)&&"deps"in a&&a.deps.forEach(l=>i(l,s))}return wfe.array(Array.from(r),n).reverse()}function pR(t,e){let n=1/0;return t.some((r,o)=>{var i;if((i=e.path)!=null&&i.includes(r))return n=o,!0}),n}function fL(t){return(e,n)=>pR(t,e)-pR(t,n)}const Jfe=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function ff(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=ff(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=ff(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(ff)}):"optional"in t?t.optional():t}const Zfe=(t,e)=>{const n=[...Bs.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),o=Bs.getter(Bs.join(n),!0)(t);return!!(o&&r in o)};let hR=t=>Object.prototype.toString.call(t)==="[object Object]";function mR(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const Xfe=fL([]);function pL(t){return new hL(t)}class hL extends Lo{constructor(e){super({type:"object",check(n){return hR(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Xfe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let o=super._cast(e,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(o).filter(p=>!this._nodes.includes(p))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),f=!1;for(const p of a){let m=i[p],g=p in o;if(m){let y,b=o[p];u.path=(n.path?`${n.path}.`:"")+p,m=m.resolve({value:b,context:n.context,parent:l});let S=m instanceof Lo?m.spec:void 0,C=S==null?void 0:S.strict;if(S!=null&&S.strip){f=f||p in o;continue}y=!n.__validating||!C?m.cast(o[p],u):o[p],y!==void 0&&(l[p]=y)}else g&&!s&&(l[p]=o[p]);(g!==p in l||l[p]!==o[p])&&(f=!0)}return f?l:o}_validate(e,n={},r,o){let{from:i=[],originalValue:s=e,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(e,n,r,(l,u)=>{if(!a||!hR(u)){o(l,u);return}s=s||u;let f=[];for(let p of this._nodes){let m=this.fields[p];!m||ta.isRef(m)||f.push(m.asNestedTest({options:n,key:p,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:f,value:u,originalValue:s,options:n},r,p=>{o(p.sort(this._sortErrors).concat(l),u)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=e;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=Gfe(e,n),r._sortErrors=fL(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),o)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return ff(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>e.includes(r)&&e.includes(o)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let o=Bs.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return Zfe(i,e)&&(s=Object.assign({},i),r||delete s[e],s[n]=o(i)),s})}json(){return this.transform(Jfe)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||df.exact,test(n){if(n==null)return!0;const r=mR(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,n=df.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=mR(this.schema,o);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=df.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[e(o)]=n[o];return r})}camelCase(){return this.transformKeys(A0.camelCase)}snakeCase(){return this.transformKeys(A0.snakeCase)}constantCase(){return this.transformKeys(e=>A0.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let a=e;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),r.fields[i]=s.describe(a)}return r}}pL.prototype=hL.prototype;const Qfe=t=>{const{id:e,title:n,onSave:r,onCancel:o,getCitationById:i,disableFileUpload:s=!1,setError:a}=t,l=J.useRef(null),[u,f]=J.useState(!0),[p,m]=J.useState({type:"Attachment",title:"",file:void 0,fileName:""});return J.useEffect(()=>{if(e===void 0){f(!1);return}i(e).then(g=>{m({...g,type:"Attachment",file:void 0}),f(!1)}).catch(g=>{f(!1),a({title:"Failed to retrieve attachment",err:g})})},[]),v.jsxs(v.Fragment,{children:[n&&v.jsx(j.Typography,{variant:"h6",margin:"10px 0",children:n}),v.jsx(qt.Formik,{innerRef:l,enableReinitialize:!0,initialValues:p,validationSchema:pL().shape({title:Bv().required("Title is required"),fileName:Bv().required("A file is required")}),onSubmit:async g=>{f(!0),r(g).catch(y=>{f(!1),a({title:`Failed to ${e===void 0?"save":"update"} attachment`,err:y})}).finally(()=>f(!1))},children:({values:g,setFieldValue:y})=>{var b;return J.useEffect(()=>{var S,C;(S=g.file)!=null&&S.name&&y("fileName",(C=g.file)==null?void 0:C.name)},[(b=g.file)==null?void 0:b.name]),v.jsxs(qt.Form,{autoComplete:"off",children:[v.jsx(Va,{name:"title",disabled:u,required:!0,margin:"none"}),v.jsxs(j.Box,{display:"flex",flexDirection:"row",alignItems:"flex-start",children:[v.jsx(OA,{name:"file",readOnly:s}),g.fileName&&v.jsx("span",{style:{margin:"6px 0 0 10px"},children:g.fileName}),v.jsx(tr,{name:"fileName",id:"fileName-err"})]}),v.jsxs(j.DialogActions,{sx:{px:0},children:[v.jsx(j.Button,{onClick:o,variant:"outlined",size:"small",children:"Cancel"}),v.jsx(j1,{size:"small",loading:u,children:e?"Update Attachment":"Add New Attachment"})]})]})}})]})},Su=t=>{const{open:e=!1,onClose:n,title:r,children:o,actions:i,closeBtnLabel:s,closeButtonPosition:a,closeButtonProps:l={},disableDismiss:u=!1,...f}=t;if(!e)return null;const p=a==="bottom"||a==="top-and-bottom",m=a==="top"||a==="top-and-bottom",g=()=>{if(s&&p)return v.jsx(j.Button,{className:"MBv2_Modal_Close",onClick:t.onClose,...l,children:s})},y=()=>{if(i)return v.jsx(j.DialogActions,{className:"MBv2_Modal_Actions",children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",gap:"0.25rem",children:[v.jsx(j.Box,{children:g()}),v.jsxs(j.Box,{display:"flex",gap:".25rem",children:[...i]})]})});if(s&&p)return v.jsx(j.DialogActions,{className:"MBv2_Modal_Actions",children:v.jsx(j.Box,{children:g()})})};return v.jsxs(j.Dialog,{className:"MBv2_Modal",open:e,onClose:()=>{u||n==null||n()},...f,children:[typeof r=="string"?v.jsx(j.DialogTitle,{className:"MBv2_Modal_Title",children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[r,m&&v.jsx(j.IconButton,{"data-testid":"modal-header-close-btn",onClick:n,children:v.jsx(jq,{})})]})}):r,o&&(typeof o=="string"?v.jsx(j.DialogContent,{className:"MBv2_Modal_Content",children:v.jsx(j.DialogContentText,{className:"MBv2_Modal_Content_Text",children:o})}):o),y()]})};function epe(t){return Ye("MuiAlert",t)}const gR=We("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),tpe=Fe(v.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),npe=Fe(v.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),rpe=Fe(v.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),ope=Fe(v.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ipe=Fe(v.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),spe=t=>{const{variant:e,color:n,severity:r,classes:o}=t,i={root:["root",`color${Re(n||r)}`,`${e}${Re(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Ke(i,epe,o)},ape=be(pl,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Re(n.color||n.severity)}`]]}})(It(({theme:t})=>{const e=t.palette.mode==="light"?Za:Mc,n=t.palette.mode==="light"?Mc:Za;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${gR.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${gR.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Hn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),lpe=be("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),cpe=be("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),upe=be("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yR={success:v.jsx(tpe,{fontSize:"inherit"}),warning:v.jsx(npe,{fontSize:"inherit"}),error:v.jsx(rpe,{fontSize:"inherit"}),info:v.jsx(ope,{fontSize:"inherit"})},mL=A.forwardRef(function(e,n){const r=St({props:e,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:u={},componentsProps:f={},icon:p,iconMapping:m=yR,onClose:g,role:y="alert",severity:b="success",slotProps:S={},slots:C={},variant:_="standard",...T}=r,w={...r,color:l,severity:b,variant:_,colorSeverity:l||b},E=spe(w),O={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...C},slotProps:{...f,...S}},[N,D]=Bt("root",{ref:n,shouldForwardComponentProp:!0,className:Pe(E.root,s),elementType:ape,externalForwardedProps:{...O,...T},ownerState:w,additionalProps:{role:y,elevation:0}}),[L,M]=Bt("icon",{className:E.icon,elementType:lpe,externalForwardedProps:O,ownerState:w}),[R,P]=Bt("message",{className:E.message,elementType:cpe,externalForwardedProps:O,ownerState:w}),[B,z]=Bt("action",{className:E.action,elementType:upe,externalForwardedProps:O,ownerState:w}),[$,F]=Bt("closeButton",{elementType:hl,externalForwardedProps:O,ownerState:w}),[q,U]=Bt("closeIcon",{elementType:ipe,externalForwardedProps:O,ownerState:w});return v.jsxs(N,{...D,children:[p!==!1?v.jsx(L,{...M,children:p||m[b]||yR[b]}):null,v.jsx(R,{...P,children:i}),o!=null?v.jsx(B,{...z,children:o}):null,o==null&&g?v.jsx(B,{...z,children:v.jsx($,{size:"small","aria-label":a,title:a,color:"inherit",onClick:g,...F,children:v.jsx(q,{fontSize:"small",...U})})}):null]})});process.env.NODE_ENV!=="production"&&(mL.propTypes={action:c.node,children:c.node,classes:c.object,className:c.string,closeText:c.string,color:c.oneOfType([c.oneOf(["error","info","success","warning"]),c.string]),components:c.shape({CloseButton:c.elementType,CloseIcon:c.elementType}),componentsProps:c.shape({closeButton:c.object,closeIcon:c.object}),icon:c.node,iconMapping:c.shape({error:c.node,info:c.node,success:c.node,warning:c.node}),onClose:c.func,role:c.string,severity:c.oneOfType([c.oneOf(["error","info","success","warning"]),c.string]),slotProps:c.shape({action:c.oneOfType([c.func,c.object]),closeButton:c.oneOfType([c.func,c.object]),closeIcon:c.oneOfType([c.func,c.object]),icon:c.oneOfType([c.func,c.object]),message:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({action:c.elementType,closeButton:c.elementType,closeIcon:c.elementType,icon:c.elementType,message:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});const Cu=t=>{var g;const{noIcon:e=!1,children:n,severity:r="success",variant:o="leftBorder",sx:i,title:s,...a}=t,{palette:l}=j.useTheme(),u=e?{icon:!1}:{},f=o==="leftBorder"?"standard":o,p=o==="leftBorder"?{...i,borderLeft:`4px solid ${(g=l[r])==null?void 0:g.main}`}:i,m=s?{icon:{sx:{mt:"6px"}}}:{};return v.jsxs(mL,{severity:r,variant:f,sx:p,slotProps:m,...u,...a,children:[s&&v.jsx(j.Typography,{variant:"h3",children:s}),n]})},gL=t=>v.jsx(Cu,{severity:"error",...t}),yL=t=>v.jsx(Cu,{severity:"success",...t}),dpe=t=>{const{error:e,setError:n,success:r,setSuccess:o}=t;return v.jsxs(v.Fragment,{children:[e&&v.jsx(gL,{"data-testid":"citation-menu-error",onClose:()=>n(void 0),children:e.title}),r&&v.jsx(yL,{"data-testid":"citation-menu-success",onClose:()=>o(void 0),children:r})]})};function F1({getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,onSelectCitations:s,onCancel:a,initialSelectedIds:l=[],onContentChange:u,onError:f=()=>{},renderAsSelectablePopup:p=!1,addlActions:m}){const[g,y]=J.useState("Insert Citation/Attachment(s)"),[b,S]=J.useState(l),[C,_]=J.useState(void 0),[T,w]=J.useState(void 0),[E,O]=J.useState(void 0),[N,D]=J.useState(0);J.useEffect(()=>{u==null||u()},[g,T,E,u]),J.useEffect(()=>{p&&w(void 0)},[g]),J.useEffect(()=>{T&&f(T.err)},[T]);const L=()=>{p||D(q=>q+1)},M=async q=>{if(g==="Edit Citation"||g==="Edit Attachment"){if(q.id===void 0)throw Error("Failed to update citation. Citation is missing id");await(n==null?void 0:n(q).then(()=>{y("Insert Citation/Attachment(s)"),L()}).catch(U=>w({title:"Failed to update citation",err:U})))}else(g==="Add Citation"||g==="Add Attachment")&&await(e==null?void 0:e(q).then(U=>{S([...b,U.id]),y("Insert Citation/Attachment(s)"),L()}).catch(U=>w({title:"Failed to create citation",err:U})))},R=v.jsx(yfe,{refreshKey:N,getCitationsPaginated:q=>t(q).then(U=>(u==null||u(),U)),onCancel:a,onNewCitation:()=>{_(void 0),y("Add Citation")},onNewAttachment:()=>{_(void 0),y("Add Attachment")},onEditCitation:q=>{_(q.id),y("Edit Citation")},onEditAttachment:q=>{_(q.id),y("Edit Attachment")},onDeleteCitation:r,onDownloadAttachment:i,onSelect:s,setSelectedIds:S,selectedIds:b,onError:f,setError:w,setSuccess:O,condenseTable:p,canSelect:p,title:p?g:"Attachments & Citations",addlActions:m,canCreate:!!e,canEdit:!!n}),P=v.jsx(bfe,{id:C,onSave:M,onCancel:()=>y("Insert Citation/Attachment(s)"),getCitationById:o,setError:w,title:g}),B=v.jsx(Qfe,{id:C,onSave:M,onCancel:()=>y("Insert Citation/Attachment(s)"),getCitationById:o,disableFileUpload:g==="Edit Attachment",setError:w,title:g}),z=v.jsx(dpe,{error:T,setError:w,success:E,setSuccess:O}),$=g==="Add Citation"||g==="Edit Citation",F=g==="Add Attachment"||g==="Edit Attachment";if(p){let q=null;return!p||g==="Insert Citation/Attachment(s)"?q=R:$?q=P:F&&(q=B),v.jsxs(j.Box,{width:"500px",children:[z,v.jsx(j.Box,{paddingTop:"8px",children:q})]})}return v.jsxs(j.Box,{width:"100%",children:[g==="Insert Citation/Attachment(s)"&&z,v.jsx(j.Box,{paddingTop:"8px",children:R}),v.jsx(Su,{open:$||F,children:v.jsxs(j.Box,{padding:"10px 20px",minWidth:"400px","data-testid":"citation-form-modal",children:[z,$?P:B]})})]})}const fpe=Yt({name:{CitationBubbleMenuTipTap:bL}})(t=>({content:{padding:t.spacing(1.5,2,.5),backgroundColor:"#f9f9f9"}}));function bL({getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,...s}){const{classes:a}=fpe(),l=vt();if(!(l!=null&&l.isEditable))return null;if(!("citationBubbleMenuHandler"in l.storage))throw new Error("You must add the CitationBubbleMenuHandler extension to the useEditor `extensions` array in order to use this component!");const u=l.storage.citationBubbleMenuHandler,f=u.isOpen,p=u.selectedIds,m=u.selectedNodePos,g=C=>{l&&(C.length===0?l.commands.deleteCitation(m):p.length===0?l.commands.insertCitation({ids:C}):l.commands.updateCitation({ids:C},m))},y=C=>{g(C),l.commands.closeCitationBubbleMenu()},b=()=>{g(p),l.commands.closeCitationBubbleMenu()},S=J.useCallback(()=>{requestAnimationFrame(()=>{l!=null&&l.view&&l.view.dispatch(l.view.state.tr)})},[l]);return v.jsx(hh,{editor:l,open:f,...u.bubbleMenuOptions,...s,children:v.jsx("div",{className:a.content,children:v.jsx(F1,{getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,onSelectCitations:y,onCancel:b,initialSelectedIds:p,onContentChange:S,renderAsSelectablePopup:!0})})})}const ppe=un.create({name:"starterKit",addExtensions(){const t=[];return this.options.bold!==!1&&t.push(EN.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(kN.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(MN.configure(this.options.bulletList)),this.options.code!==!1&&t.push(ON.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(RN.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(AN.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(IN.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(DN.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(PN.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(dN.configure(this.options.heading)),this.options.history!==!1&&t.push(FN.configure(this.options.history)),this.options.horizontalRule!==!1&&t.push(BN.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(zN.configure(this.options.italic)),this.options.listItem!==!1&&t.push(ZN.configure(this.options.listItem)),this.options.orderedList!==!1&&t.push(XN.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push(QN.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(tL.configure(this.options.strike)),this.options.text!==!1&&t.push(nL.configure(this.options.text)),t}}),hpe=()=>un.create({name:"citationBubbleMenuHandler",addStorage(){return{isOpen:!1,selectedIds:[],bubbleMenuOptions:void 0,selectedNodePos:0}},addCommands(){return{openCitationBubbleMenu:(t={},e)=>({editor:n,dispatch:r})=>{var a;const{doc:o}=n.state,i=o.nodeAt(e??0),s=((a=i==null?void 0:i.attrs)==null?void 0:a.ids)??[];return r&&(this.storage.isOpen=!0,this.storage.selectedIds=s,this.storage.bubbleMenuOptions=t,this.storage.selectedNodePos=e??0),!0},closeCitationBubbleMenu:()=>({commands:t,dispatch:e})=>this.storage.isOpen?(t.focus(),e&&(this.storage.isOpen=!1,this.storage.selectedIds=[],this.storage.selectedNodePos=0),!0):!1}},onSelectionUpdate(){this.storage.isOpen&&!this.editor.isActive("citation")&&this.editor.commands.closeCitationBubbleMenu()},addKeyboardShortcuts(){return{"Mod-Shift-c":()=>(this.editor.commands.openCitationBubbleMenu(),!0)}}});function mpe(t){const e=vt(),n=J.useRef(null);return v.jsx(mt,{buttonRef:n,tooltipLabel:"Insert Citation/Attachment",tooltipShortcutKeys:["mod","Shift","C"],disabled:!(e!=null&&e.isEditable),onClick:()=>e==null?void 0:e.commands.openCitationBubbleMenu({anchorEl:n.current,placement:"bottom"}),...t,children:v.jsxs(j.Box,{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",children:[v.jsx(Pq,{fontSize:"small"}),v.jsx(j.Typography,{variant:"body2",children:"Insert Citation/Attachment"})]})})}const vL=J.createContext(void 0),xL=()=>{const t=J.useContext(vL);if(!t)throw new Error("useSync must be used inside CitationFieldProvider");return t},gpe=({node:t,HTMLAttributes:e,selected:n,extension:r,updateAttributes:o,deleteNode:i})=>{const s=t.attrs.ids||[],{citations:a,isLoaded:l}=xL(),[u,f]=J.useState(String(s)),[p,m]=J.useState([]),g=r.options.citationMaxLength;if(J.useEffect(()=>{if(!l)return;const y=a.filter(C=>s.includes(C.id)),b=y.map(C=>gf.truncate(C.title,{length:g,omission:"..."})).join(", ");f(b),m(y);const S=y.map(C=>C.id);S.length===0?setTimeout(i,0):S.length!==s.length&&setTimeout(()=>o({ids:y.map(C=>C.id)}),0)},[a,s,l]),p.length!==0)return v.jsx(y1,{as:"span",...e,"data-testid":"citation-node-component",children:v.jsx(j.Tooltip,{title:v.jsx(j.Box,{className:"citation-tooltip",children:p.map((y,b)=>{var C;const S=[y.source,y.title,y.fileName,y.url,(C=y.accessedAt)==null?void 0:C.slice(0,10),y.classification];return v.jsxs(j.Typography,{variant:"subtitle2",children:[S.filter(Boolean).join(" | "),b<p.length-1&&v.jsx(j.Divider,{className:"citation-tooltip-divider"})]},y.id)})}),slotProps:{tooltip:{sx:{maxWidth:500}}},children:v.jsx("a",{href:"#",onClick:y=>{y.preventDefault(),y.stopPropagation()},className:n?"selected-citation-link":"citation-link",children:u})})})},ype=en.create({name:"citation",group:"inline",inline:!0,atom:!0,selectable:!0,addAttributes(){return{ids:{default:[],parseHTML:t=>{const e=t.getAttribute("ids");return e?e.split(",").map(n=>parseInt(n.trim(),10)).filter(n=>!isNaN(n)):[]},renderHTML:t=>({ids:Array.isArray(t.ids)?t.ids.join(","):""})}}},parseHTML(){return[{tag:"citation"}]},renderHTML({HTMLAttributes:t}){return["citation",bt(t)]},addNodeView(){return b1(gpe)},addProseMirrorPlugins(){return[new tn({props:{handleClickOn:(t,e,n,r,o,i)=>n&&n.type.name==="citation"?(this.editor.commands.openCitationBubbleMenu({},r),!0):!1}})]},addCommands(){return{insertCitation:t=>({commands:e})=>e.insertContent({type:"citation",attrs:t}),updateCitation:(t,e)=>({state:n,dispatch:r,tr:o})=>{const i=n.doc.nodeAt(e);return!i||i.type.name!=="citation"?!1:(o.setNodeMarkup(e,void 0,t),r&&r(o),!0)},deleteCitation:t=>({tr:e,dispatch:n})=>{if(typeof t!="number")return!1;const r=t,o=t+1;return n&&n(e.delete(r,o)),!0}}}}),bpe=t=>{const{name:e,label:n=Mn(e),hideLabel:r=!1,required:o=!1,readOnly:i=!1,margin:s="dense",citationMaxLength:a=24,getCitationsPaginated:l,onCreateCitation:u,onUpdateCitation:f,onDeleteCitation:p,getCitationById:m,onDownloadAttachment:g,onError:y=()=>{}}=t,b=[ppe,eL.configure({placeholder:"Start typing here..."}),hpe(),ype.configure({citationMaxLength:a})],[S,C,_]=qt.useField({name:e}),{setValue:T}=_,{value:w}=S,{addUpdateCitation:E,deleteCitation:O,batchUpdate:N}=xL();J.useEffect(()=>{var z;const P=(z=D==null?void 0:D.current)==null?void 0:z.editor;if(!P||!w)return;P.getHTML()!==w&&setTimeout(()=>{P.commands.setContent(w)},0)},[w]);const D=J.useRef(null),L={normal:{marginTop:"16px",marginBottom:"8px"},dense:{marginTop:"8px",marginBottom:"4px"},none:{margin:0}},M=()=>{var z,$;const P=(($=(z=D.current)==null?void 0:z.editor)==null?void 0:$.getHTML())??"<p></p>",B=!P.replace(/<\/?p>|<br>/g,"").trim();T(B?"<p></p>":P)},R=v.jsxs(j.Box,{id:`citation-field_${e}`,sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:i?0:50}}},...L[s],children:[v.jsx(YP,{ref:D,extensions:b,content:w,editable:!i,renderControls:i?void 0:()=>v.jsx(gh,{children:v.jsx(mpe,{})}),onBlur:M,RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:i}},children:()=>v.jsx(bL,{getCitationsPaginated:P=>l(P).then(B=>(N(B.data),B)),onCreateCitation:u&&(P=>u(P).then(B=>(E(B),B))),onUpdateCitation:f&&(P=>f(P).then(B=>(E(B),B))),onDeleteCitation:p&&(P=>p(P).then(()=>O(P))),getCitationById:m,onDownloadAttachment:g,onError:y})}),v.jsx(tr,{name:e,id:`${e}-err`})]});return v.jsxs(j.Box,{display:"flex",flexDirection:"column",width:"100%",children:[!r&&v.jsx(j.InputLabel,{htmlFor:`citation-field_${e}`,required:o,children:n}),R]})},vpe=t=>{const{name:e="submit"}=t;return v.jsx(Eo,{name:e,type:"submit",...t})},xpe=t=>{const{label:e="Return to Top",icon:n=LA,scrollThresholdPx:r=100}=t,o=j.useScrollTrigger({threshold:r}),i=J.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return v.jsx(j.Zoom,{in:o,children:v.jsx(j.Box,{sx:{position:"fixed",bottom:32,right:32,zIndex:1},children:v.jsxs(j.Fab,{onClick:i,color:"primary",size:"small",variant:"extended","aria-label":"Scroll back to top",children:[v.jsx(n,{fontSize:"medium"}),e]})})})},Spe=()=>{const{values:t,errors:e,status:n}=qt.useFormikContext(),{palette:r}=j.useTheme();return v.jsx(j.Paper,{style:{backgroundColor:r.mode==="dark"?"#303030":"#f0f0f0",margin:"10px 0"},children:v.jsxs(j.List,{children:[v.jsxs(j.ListItem,{children:[v.jsx(j.Typography,{display:"block",variant:"h6",children:"Values"}),v.jsx("br",{}),v.jsx(j.Divider,{variant:"inset"}),v.jsx("pre",{children:JSON.stringify(t,null,2)})]}),v.jsx(j.Divider,{variant:"inset",component:"li"}),v.jsxs(j.ListItem,{id:"testing",children:[v.jsx(j.Typography,{display:"block",variant:"h6",children:"Errors"}),v.jsx("br",{}),v.jsx(j.Divider,{variant:"inset"}),v.jsx("pre",{children:JSON.stringify(e,null,2)})]}),v.jsxs(j.ListItem,{children:[v.jsx(j.Typography,{display:"block",variant:"h6",children:"Status"}),v.jsx("br",{}),v.jsx(j.Divider,{variant:"inset"}),v.jsx("pre",{children:JSON.stringify(n,null,2)})]})]})})},Cpe=t=>{const{steps:e,orientation:n,inlineLabel:r=n=="vertical",isResponsive:o=!1}=t,{width:i}=sL();let s=!r,a=n;o&&(n&&console.warn("Stepper: Ignoring orientation. isResponsive is set to true, so the orientation is determined automatically based on the window size."),a=i<600?"vertical":"horizontal",a=="vertical"?s=!1:s=!r),n=="vertical"&&!r&&(console.warn("Stepper: ignoring inlineLabel={false}. Must use inline labels when orientation is vertical"),s=!1);const l=["steps","inlineLabel","orientation","isResponsive"],u={alternativeLabel:s,orientation:a,...er({...t},l)};return v.jsx(j.Stepper,{...u,children:e.map(f=>v.jsx(j.Step,{children:v.jsx(j.StepLabel,{children:f})},f))})},wpe=t=>{const{name:e,label:n=Mn(e),labelProps:r={fontSize:"1.1em",color:"#808080",fontWeight:"600"},initialState:o,renderFormGroup:i,addButtonContent:s="Add Another",removeButtonContent:a=t.removePosition==="right"?v.jsx(p8,{}):"Remove",variant:l="card",addButtonSx:u,removeButtonSx:f,allowRemoveAll:p=!1,readOnly:m=!1,emptyListMsg:g="None",showDivider:y=!1,removePosition:b="bottom"}=t,[S]=qt.useField({name:e}),{value:C}=S,_=T=>({display:"flex",flexDirection:T==="bottom"?"column":"row",alignItems:T==="bottom"?"flex-start":"center"});return v.jsxs(j.FormControl,{fullWidth:!0,children:[v.jsx(j.Typography,{...r,children:n}),m&&S.value.length===0?v.jsx(j.Typography,{children:g}):v.jsx(qt.FieldArray,{name:e,render:T=>v.jsxs("div",{children:[C.map((w,E)=>v.jsx(J.Fragment,{children:v.jsx(Tpe,{variant:l,content:v.jsxs(j.Box,{"data-testid":"form-group-container",sx:typeof b=="string"?_(b):{...b},children:[v.jsxs(j.Box,{width:"100%",children:[i(`${e}.${E}`,E),y&&E!==C.length-1&&v.jsx(j.Divider,{"data-testid":"divider"})]}),!m&&C.length>(p?0:1)&&v.jsx(j.Button,{"data-testid":"repeatable-form-group_remove-btn",sx:f,onClick:()=>T.remove(E),children:a})]})})},`${e}-${E}`)),!m&&v.jsx(j.Button,{"data-testid":"repeatable-form-group_add-btn",onClick:()=>T.push(o),sx:u,children:s})]})})]})},Tpe=({variant:t,content:e})=>{switch(t){case"card":return v.jsx(j.Card,{"data-testid":"repeatable-form-group_card",sx:{padding:"8px",marginBottom:"8px"},children:v.jsx(j.CardContent,{children:e})});case"elevatedCard":return v.jsx(j.Card,{"data-testid":"repeatable-form-group_elevated-card",elevation:4,sx:{border:"unset",padding:"8px",marginBottom:"8px"},children:v.jsx(j.CardContent,{children:e})});case"none":return e}},_pe=t=>{const{confirmBtnLabel:e,onConfirm:n,confirmButtonProps:r={color:"primary",variant:"contained"},closeBtnLabel:o="Cancel",closeButtonPosition:i="bottom",...s}=t;return v.jsx(Su,{actions:[v.jsx(j.Button,{className:"MBv2_ConfirmationModal_ConfirmBtn",onClick:n,...r,children:e})],closeBtnLabel:o,closeButtonPosition:i,...s})},kpe=t=>{const{closeBtnLabel:e="OK",closeButtonPosition:n="bottom",closeButtonProps:r={color:"primary",variant:"contained"},...o}=t;return v.jsx(Su,{closeBtnLabel:e,closeButtonPosition:n,closeButtonProps:r,...o})},Epe=t=>{const{primaryBtnLabel:e,onPrimaryAction:n,primaryActionProps:r={color:"primary",variant:"contained"},secondaryBtnLabel:o,onSecondaryAction:i,secondaryActionProps:s={color:"primary",variant:"outlined"},closeBtnLabel:a="Cancel",closeButtonPosition:l="bottom",...u}=t;return v.jsx(Su,{actions:[v.jsx(j.Button,{className:"MBv2_DecisionModal_SecondaryAction",onClick:i,...s,children:o}),v.jsx(j.Button,{className:"MBv2_DecisionModal_PrimaryAction",onClick:n,...r,children:e})],closeBtnLabel:a,closeButtonPosition:l,...u})},Mpe=t=>{const{featureMenuOptions:e=[],copyright:n,logo:r,sx:o={},fontColor:i="primary"}=t,{palette:s}=j.useTheme(),a=so.useNavigate();return v.jsxs(j.Box,{className:"MBv2_Footer",sx:{backgroundColor:s.mode==="dark"?"#222222":"#ededed",padding:"25px 30px",...o},children:[v.jsx(j.Box,{className:"MBv2_Footer_Logo",sx:{display:"flex",gap:2,alignItems:"center",paddingBottom:1},children:typeof r=="string"?v.jsx("img",{draggable:"false",src:r,style:{width:"200px"},alt:"logo"}):r}),v.jsxs(j.Box,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",className:"MBv2_Footer_Nav_Links_Container",gap:2,children:[v.jsx(j.Box,{sx:{flexGrow:1},className:"MBv2_Footer_Nav_Links",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:3,children:e==null?void 0:e.map(l=>v.jsx(j.Link,{"data-testid":l.label,sx:{cursor:"pointer",fontSize:15},color:i,...Zc(l,a),children:l.label},l.label))}),n&&v.jsx(j.Typography,{style:{fontSize:15},"data-testid":"copyright",className:"MBv2_Footer_Copyright",color:i,children:n})]})]})},SL=t=>{const{menuOptionLists:e,anchor:n="left",children:r}=t,{pathname:o}=so.useLocation(),i=so.useNavigate(),[s,a]=J.useState(!1),l=(m,g)=>v.jsx(j.MenuList,{children:m.map(y=>v.jsxs(j.MenuItem,{...Zc(y,i,()=>a(!1)),children:[y.icon&&v.jsx(j.ListItemIcon,{children:y.icon}),v.jsx(j.ListItemText,{primary:y.label})]},`mobile-drawer-group-${g}-item-${y.path}`))}),f=(()=>{if(e){const m=e.filter(g=>g&&g.length>0);return m.length===0?null:m.map((g,y)=>v.jsxs(J.Fragment,{children:[l(g,y),y<m.length-1&&v.jsx(j.Divider,{})]},`mobile-drawer-group-${y}`))}return r?v.jsx(j.Box,{role:"presentation",onClick:()=>a(!1),children:r}):null})(),p=f??!1;return J.useEffect(()=>{a(!1)},[o]),p&&v.jsxs(v.Fragment,{children:[v.jsx(j.IconButton,{onClick:()=>a(!0),color:"inherit",title:"Menu",children:v.jsx(l8,{})}),v.jsx(j.Drawer,{"data-testid":"mobile-drawer",anchor:n,open:s,onClose:()=>a(!1),children:v.jsx(j.Box,{sx:{width:300},display:"flex",flexDirection:"column",justifyContent:"space-between",children:v.jsx(j.Box,{display:"flex",justifyContent:"start",flexDirection:"column",children:f})})})]})},CL=t=>{const{env:e,isProd:n}=t;return n?null:v.jsx(j.Paper,{sx:{borderRadius:0,display:"flex",alignItems:"center",justifyContent:"center"},children:v.jsxs(j.Typography,{variant:"h6",color:"error",children:[e," Environment - Test Data Only"]})})},wL=t=>{const{label:e,menuOptions:n=[],icon:r}=t,o=so.useNavigate(),[i,s]=A.useState(null),a=!!i,l=f=>{s(f.currentTarget)},u=()=>{s(null)};return n.length===0?null:v.jsxs(v.Fragment,{children:[v.jsx(j.Button,{startIcon:r,variant:"outlined",color:"inherit",sx:{minWidth:0,padding:1},onClick:l,children:e}),v.jsx(j.Menu,{anchorEl:i,open:a,onClick:u,children:n.map(f=>v.jsxs(j.MenuItem,{...Zc(f,o),children:[f.icon&&v.jsx(j.ListItemIcon,{children:f.icon}),v.jsx(j.ListItemText,{primary:f.label})]},f.label))})]})},TL=t=>{const{displayName:e,userMenuOptions:n}=t;return v.jsx(wL,{label:e,menuOptions:n,icon:v.jsx(u8,{})})},Sh=t=>{const{menuOptions:e,orientation:n="horizontal",activeTabIdx:r,sx:o=n=="vertical"?{"& .MuiTabs-indicator":{left:0}}:void 0,slotProps:i={indicator:{sx:n=="horizontal"?{height:4}:{width:4}}}}=t,{palette:s}=j.useTheme(),a=so.useNavigate();return v.jsx(j.Tabs,{orientation:n,value:r??!1,sx:o,slotProps:i,children:e.map((l,u)=>v.jsx(j.Tab,{icon:l.icon,label:l.label,value:u,...Zc(l,a),sx:{alignItems:n=="vertical"?"flex-start":void 0,borderBottom:n=="vertical"?"1px solid":void 0,borderColor:"divider","&.Mui-selected":{backgroundColor:n=="vertical"?s.grey[s.mode=="dark"?800:50]:void 0,color:"inherit"}}},l.label))})},_L=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t;return e.length>0&&v.jsx(j.Paper,{sx:{pl:4,pr:4,borderRadius:0},"data-testid":"navBar",children:v.jsx(Sh,{menuOptions:e,activeTabIdx:n,sx:r})})},kL=t=>{const{onToggle:e}=t,{palette:n}=j.useTheme(),r=n.mode==="dark";return v.jsx(j.IconButton,{onClick:e,color:"inherit",title:"Dark Mode Toggle",children:r?v.jsx(jA,{}):v.jsx(NA,{})})},Ope=t=>{const{envInfo:e,headerRef:n,logo:r,featureMenuOptions:o=[],userMenuOptions:i=[],onToggleDarkMode:s,quickLinks:a=[],displayName:l,banner:u,position:f="fixed",children:p,sx:m,navBarSx:g}=t,y=so.useNavigate(),b=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),{palette:S}=j.useTheme(),{pathname:C}=so.useLocation(),_=S.mode==="dark",[T,w]=A.useState(void 0);A.useEffect(()=>{const N=o.findIndex(D=>D.path&&C.startsWith(D.path));w(N>=0?N:void 0)},[C,o]);const E=s&&v.jsx(kL,{onToggle:s}),O=s&&(b||!b&&l)?[{icon:_?v.jsx(jA,{}):v.jsx(NA,{}),label:`Switch to ${_?"Light":"Dark"} mode`,onClick:s},...i]:i;return v.jsxs(j.AppBar,{ref:n,position:f,sx:m,elevation:4,children:[e&&v.jsx(CL,{...e}),u,v.jsxs(j.Toolbar,{sx:{color:"white",display:"flex",justifyContent:"space-between",gap:2},children:[v.jsx(j.Button,{disableRipple:!0,component:so.Link,to:"/",children:r&&typeof r=="string"?v.jsx("img",{draggable:"false",src:r,style:{width:"200px",filter:"brightness(0) invert(1)"},alt:"logo"}):r}),v.jsxs(j.Box,{display:"flex",gap:2,alignItems:"center",children:[!l&&!b&&E,b&&v.jsx(SL,{menuOptionLists:[o,a,O],anchor:"right"}),!b&&v.jsxs(v.Fragment,{children:[v.jsx(j.Box,{display:"flex",gap:0,children:a==null?void 0:a.map((N,D)=>v.jsxs(j.Box,{display:"flex",alignItems:"center",children:[D>0&&v.jsx(j.Typography,{className:"quickLink-divider",color:S.primary.contrastText,children:"|"}),v.jsx(j.Button,{variant:"text",sx:{color:"white"},...Zc(N,y),children:v.jsxs(j.Box,{display:"flex",gap:"3px",alignItems:"center",children:[N.icon,N.label]})})]},N.label))}),p,l&&v.jsx(TL,{displayName:l,userMenuOptions:O})]})]})]}),!b&&v.jsx(_L,{featureMenuOptions:o,activeTabIdx:T,sx:g})]})},Rpe=t=>{const{sx:e,menuOptions:n=[]}=t,{pathname:r}=so.useLocation(),o=j.useMediaQuery(j.useTheme().breakpoints.down("sm")),[i,s]=J.useState(void 0);return J.useEffect(()=>{const a=n.findIndex(l=>l.path&&r.startsWith(l.path))??-1;s(a>=0?a:void 0)},[r,n]),!o&&n.length>0&&v.jsx(j.Box,{sx:e,children:v.jsx(j.Card,{sx:{height:"100%",width:200},children:v.jsx(Sh,{orientation:"vertical",menuOptions:n,activeTabIdx:i})})})},Ape=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t,{palette:o}=j.useTheme();return e.length>0&&v.jsx(Sh,{menuOptions:e,activeTabIdx:n,sx:{margin:"8px",backgroundColor:o.primary.dark,borderRadius:"8px","& .MuiTab-root":{color:o.secondary.light,flexDirection:"row",gap:"2px","& .MuiTab-icon":{marginBottom:"unset"},minHeight:"58px"},"& .MuiTab-root.Mui-selected":{color:o.primary.contrastText,fontSize:"120%"},"& .MuiTabs-indicator":{display:"none"},...r}})},Ipe=t=>v.jsx(Cu,{severity:"info",...t}),Dpe=t=>v.jsx(Cu,{severity:"warning",...t}),EL=t=>{const{crumbInfo:e}=t,n=so.useNavigate();return v.jsx(j.Breadcrumbs,{"aria-label":"breadcrumb",separator:v.jsx(c8,{color:"primary"}),sx:{marginBottom:2},children:e.map(({label:r,path:o},i)=>o&&i<e.length-1?v.jsx(j.Link,{color:"primary",sx:{cursor:"pointer"},onClick:()=>n(o),children:r},r):v.jsx(j.Typography,{color:"primary",children:r},r))})},Ppe=t=>{const{title:e,message:n,type:r,onClose:o,autoHideDuration:i=8e3,variant:s="leftBorder",elevation:a=6}=t,l=Npe(r);return v.jsx(j.Snackbar,{"data-testid":"message-snackbar",anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!0,onClose:u=>{u==null&&o()},autoHideDuration:i,children:v.jsx(Cu,{"data-testid":"message-snackbar-alert",severity:l,iconMapping:{info:bR(r),warning:bR(r)},onClose:o,elevation:a,variant:s,children:n?v.jsxs(v.Fragment,{children:[v.jsx(j.AlertTitle,{"data-testid":"alertTitle",sx:{fontWeight:"bold"},children:e}),n]}):e})})},Npe=t=>t=="logout"?"info":t=="timeout"?"warning":t,bR=t=>{if(t=="timeout")return v.jsx(Aq,{});if(t=="logout")return v.jsx(a8,{})},Lpe=t=>{const{title:e,createButtonLabel:n,showAddButton:r=!1,onAdd:o=()=>alert("Not implemented yet"),breadcrumbs:i=[],children:s,sx:a}=t,l=j.useMediaQuery(j.useTheme().breakpoints.down("sm"));return r&&o.toString()==='() => alert("Not implemented yet")'&&console.warn('PageHeader: "showAddButton" is true but "onAdd" is not defined.'),v.jsxs(j.Box,{sx:a,children:[i.length>0&&v.jsx(EL,{crumbInfo:i}),v.jsxs(j.Box,{className:"MBv2_PageHeader_Header",display:"flex",flexDirection:l?"column":"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[v.jsxs(j.Box,{className:"MBv2_PageHeader_TitleAndCreateBtn",display:"flex",flexDirection:"row",justifyContent:l||!s?"space-between":"start",alignItems:"center",width:"100%",gap:1,children:[typeof e=="string"?v.jsx(j.Typography,{className:"MBv2_PageHeader_Title",variant:"h2",children:e}):e,r&&v.jsxs(Eo,{className:"MBv2_PageHeader_CreateBtn",onClick:()=>o(),children:[v.jsx(Iq,{style:{marginRight:"0.5rem"}}),n]})]}),s&&v.jsx(j.Box,{width:l?"100%":"50%",children:s})]})]})},jpe=t=>{const{title:e,titleIcon:n,fullWidthIcon:r=!1,children:o,actionLabel:i,action:s,sx:a}=t,l=j.useMediaQuery(j.useTheme().breakpoints.down("sm"));return v.jsxs(j.Card,{sx:a||{padding:"30px 40px",display:"flex",flexDirection:"column",gap:"1rem"},children:[n&&v.jsx(j.Box,{className:"MBv2_SingleActionCard_Img",sx:[r?{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"20px",marginBottom:"10px"}:{display:"inline"}],children:n}),v.jsx(j.Typography,{variant:"h1",display:"inline",fontSize:"calc(20px + .9vw)",className:"MBv2_SingleActionCard_Title",children:e}),o,v.jsx(j.Button,{variant:"contained",color:"primary",onClick:s,fullWidth:l,className:"MBv2_SingleActionCard_ActionButton",children:i})]})};function $pe({...t}){return v.jsx(F1,{renderAsSelectablePopup:!0,...t})}function Fpe({...t}){return v.jsx(F1,{onSelectCitations:()=>{},onCancel:()=>{},renderAsSelectablePopup:!1,...t})}const Bpe=({children:t,getCitations:e})=>{const[n,r]=J.useState([]),[o,i]=J.useState(!1);J.useEffect(()=>{(async()=>e().then(f=>{r(p=>{const m=new Set(p.map(y=>y.id));return[...p.filter(y=>!m.has(y.id)),...f]}),i(!0)}).catch(f=>{console.error(`Error fetching citations: ${f==null?void 0:f.toString()}`)}))()},[]);const s=J.useCallback(u=>{r(f=>{const p=f.map(y=>{const b=u.find(S=>S.id===y.id);return b||y}),m=new Set(f.map(y=>y.id)),g=u.filter(y=>!m.has(y.id));return[...p,...g]})},[]),a=J.useCallback(u=>{const f=n.findIndex(p=>p.id===u.id);r(f!==-1?p=>{const m=[...p];return m[f]=u,m}:[...n,u])},[n]),l=J.useCallback(u=>r(n.filter(f=>f.id!==u)),[n]);return v.jsx(vL.Provider,{value:{citations:n,isLoaded:o,addUpdateCitation:a,deleteCitation:l,batchUpdate:s},children:t})};exports.AlertModal=kpe;exports.Autocomplete=MA;exports.Breadcrumbs=EL;exports.Button=Eo;exports.Checkbox=cq;exports.CheckboxGroup=uq;exports.CitationField=bpe;exports.CitationFieldProvider=Bpe;exports.CitationManager=Fpe;exports.ConfirmationModal=_pe;exports.DarkModeToggle=kL;exports.DateField=kf;exports.DateRangeField=DQ;exports.DecisionModal=Epe;exports.Drawer=SL;exports.DynamicAutocomplete=aq;exports.EnvironmentBanner=CL;exports.Error=tr;exports.ErrorAlert=gL;exports.FileList=fq;exports.FileUpload=OA;exports.FloatingNavBar=Ape;exports.Footer=Mpe;exports.FormDebugger=Spe;exports.Header=Ope;exports.InfoAlert=Ipe;exports.LoadingButton=j1;exports.LoadingIndicator=jv;exports.Location=Eq;exports.MenuButton=wL;exports.Modal=Su;exports.MultiAutocomplete=lq;exports.NavBar=_L;exports.PageHeader=Lpe;exports.PaginatedTable=iL;exports.ProfileMenu=TL;exports.RadioGroup=PA;exports.RangeSlider=Mq;exports.RepeatableFormGroup=wpe;exports.RichTextField=gfe;exports.ScrollToTop=xpe;exports.SearchField=x8;exports.Select=Oq;exports.SelectableCitationManager=$pe;exports.Sidebar=Rpe;exports.SingleActionCard=jpe;exports.Snackbar=Ppe;exports.Stepper=Cpe;exports.Submit=vpe;exports.SuccessAlert=yL;exports.Switch=Rq;exports.Table=oL;exports.Tabs=Sh;exports.TextField=Va;exports.WarningAlert=Dpe;exports.commonTheme=Sn;exports.darkTheme=a6;exports.lightTheme=s6;