@recursica/mui-adapter 0.22.0 → 0.23.0
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/CHANGELOG.md +23 -0
- package/dist/index.d.ts +157 -6
- package/dist/mui-adapter.cjs +76 -76
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +5885 -5650
- package/dist/mui-adapter.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.module.css +13 -0
- package/src/components/Chip/CHIP_IMPLEMENTATION_NOTES.md +102 -0
- package/src/components/Chip/Chip.module.css +30 -4
- package/src/components/Chip/Chip.tsx +40 -4
- package/src/components/Chip/USAGE.md +19 -0
- package/src/components/FileUpload/FILEUPLOAD_IMPLEMENTATION_NOTES.md +249 -0
- package/src/components/FileUpload/FileUpload.module.css +203 -38
- package/src/components/FileUpload/FileUpload.stories.tsx +348 -4
- package/src/components/FileUpload/FileUpload.tsx +350 -6
- package/src/components/FileUpload/USAGE.md +163 -5
- package/src/index.ts +3 -1
package/dist/mui-adapter.cjs
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
"use strict";var jh=Object.defineProperty;var Lh=(e,t,n)=>t in e?jh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>Lh(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),Q=require("react"),pe=require("@mui/material"),Nn=require("@emotion/react"),Vh=require("@emotion/styled"),er=require("react-dom");var wi=typeof document<"u"?document.currentScript:null;function $d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const S=$d(Q),Fh=$d(er),Bh=["className","classes","style","sx","color","bgcolor","backgroundColor","typography","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderRadius","boxShadow","display","position","zIndex"],zh=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),at={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function Or(e){const t={...e};return"sx"in t&&delete t.sx,t}function fe(e,t){if(t)return e;const n={...e};for(const o of Bh)o in n&&delete n[o];for(const[o,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&zh.has(o)&&s in at&&(n[o]=at[s]);return n}const Wh="Accordion-module__root___Dem6d",Uh="Accordion-module__item___7ryVk",Hh="Accordion-module__noDivider___Ni2tT",qh="Accordion-module__control___b4wgX",Yh="Accordion-module__label___Ss7uW",Gh="Accordion-module__chevron___i-HVZ",Kh="Accordion-module__iconLeftWrapper___5oLen",Xh="Accordion-module__panel___Wx50w",Qh="Accordion-module__content___PEM9t",rn={root:Wh,item:Uh,noDivider:Hh,control:qh,label:Yh,chevron:Gh,iconLeftWrapper:Kh,panel:Xh,content:Qh},Zh=()=>b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{width:"100%",height:"100%"},children:b.jsx("polyline",{points:"6 9 12 15 18 9"})}),ga=Q.createContext(null),Dd=Q.forwardRef(function({variant:t="default",overStyled:n=!1,value:o,defaultValue:s,onChange:i,multiple:a=!1,chevron:l,children:c,...u},d){const m=fe(u,n),h=m.className,f=[rn.root,h].filter(Boolean).join(" ")||void 0,[g,p]=Q.useState(s!==void 0?s:a?[]:null),y=o!==void 0?o:g,x=T=>{let w;if(a){const C=Array.isArray(y)?y:y?[y]:[];w=C.includes(T)?C.filter(I=>I!==T):[...C,T]}else w=y===T?null:T;p(w),i==null||i(w)};return b.jsx(ga.Provider,{value:{value:y,onChange:x,chevron:l},children:b.jsx("div",{ref:d,...m,className:f,"data-variant":t,children:c})})});Dd.displayName="Accordion";const ba=Q.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:s,value:i,disabled:a=!1,overStyled:l=!1,style:c,...u},d){const m=fe(u,l),h=m.className,f=[rn.item,o?void 0:rn.noDivider,h].filter(Boolean).join(" ")||void 0,g=Q.useContext(ga),p=g?Array.isArray(g.value)?g.value.includes(i):g.value===i:void 0,y=()=>{g==null||g.onChange(i)},x={backgroundColor:"transparent",...c};return b.jsx(pe.Accordion,{ref:d,...m,className:f,disableGutters:!0,elevation:0,square:!0,expanded:p,onChange:y,disabled:a,"data-disabled":a||void 0,style:x,children:t?b.jsxs(b.Fragment,{children:[b.jsx($s,{leftIcon:n,children:t}),b.jsx(Ds,{children:s})]}):s})});ba.displayName="AccordionItem";const $s=Q.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...s},i){const a=fe(s,o),l=a.className,c=[rn.control,l].filter(Boolean).join(" ")||void 0,u=Q.useContext(ga),d=(u==null?void 0:u.chevron)??b.jsx(Zh,{});return b.jsxs(pe.AccordionSummary,{ref:i,...a,className:c,expandIcon:b.jsx("span",{className:rn.chevron,children:d}),children:[t&&b.jsx("span",{className:rn.iconLeftWrapper,"aria-hidden":!0,children:t}),b.jsx("div",{className:rn.label,children:n})]})});$s.displayName="AccordionControl";const Ds=Q.forwardRef(function({overStyled:t=!1,children:n,...o},s){const i=fe(o,t),a=i.className,l=[rn.panel,a].filter(Boolean).join(" ")||void 0;return b.jsx(pe.AccordionDetails,{ref:s,...i,className:l,children:b.jsx("div",{className:rn.content,children:n})})});Ds.displayName="AccordionPanel";const As=Dd;As.Item=ba;As.Control=$s;As.Panel=Ds;const Jh="AssistiveElement-module__root___WhQ43",eg="AssistiveElement-module__text___vrHAg",tg="AssistiveElement-module__icon___Q-CVz",Ur={root:Jh,text:eg,icon:tg},cn=Q.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:s=!0,overStyled:i=!1,className:a,children:l,role:c,...u}=t,d=fe(u,i),m=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10"}),b.jsx("path",{d:"M12 16v-4"}),b.jsx("path",{d:"M12 8h.01"})]}),h=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),b.jsx("path",{d:"M12 9v4"}),b.jsx("path",{d:"M12 17h.01"})]}),f=o==="error",g=c??(f?"alert":void 0);return b.jsxs(pe.FormHelperText,{ref:n,...d,component:"div",error:f,role:g,"data-variant":o,className:a?`${Ur.root} ${a}`:Ur.root,children:[s&&b.jsx("div",{className:Ur.icon,children:o==="error"?b.jsx(h,{}):b.jsx(m,{})}),b.jsx("div",{className:Ur.text,children:l})]})});cn.displayName="AssistiveElement";const ng="Label-module__root___e6HXZ",og="Label-module__innerLayout___Xxapo",rg="Label-module__text___OGeEw",sg="Label-module__required___Ggrzc",ig="Label-module__endNodes___es7ew",ag="Label-module__optionalText___Y2yun",lg="Label-module__actionArea___O-f1X",cg="Label-module__editIcon___9hO1G",Ut={root:ng,innerLayout:og,text:rg,required:sg,endNodes:ig,optionalText:ag,actionArea:lg,editIcon:cg},ya=Q.forwardRef(function(t,n){const{overStyled:o=!1,required:s=!1,labelOptionalText:i="",labelWithEditIcon:a=!1,onLabelEditClick:l,labelActionArea:c,children:u,className:d,...m}=t,h=fe(m,o),f=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"M12 20h9"}),b.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return b.jsx(pe.InputLabel,{ref:n,...h,shrink:!0,className:d?`${Ut.root} ${d}`:Ut.root,children:b.jsxs("div",{className:Ut.innerLayout,children:[b.jsxs("span",{className:Ut.textWrapper,children:[b.jsx("span",{className:Ut.text,children:u}),s&&b.jsx("span",{className:Ut.required,children:" *"})]}),b.jsxs("div",{className:Ut.endNodes,children:[c&&b.jsx("span",{className:Ut.actionArea,children:c}),a&&b.jsx("button",{type:"button",className:Ut.editIcon,onClick:l,"aria-label":"Edit label",children:b.jsx(f,{})})]}),!s&&i&&!c&&b.jsx("span",{className:Ut.optionalText,children:i===!0?"(optional)":i})]})})});ya.displayName="Label";const ug="FormControlLayout-module__root___yNDhZ",dg="FormControlLayout-module__leftSection___GBM1r",pg="FormControlLayout-module__rightSection___bcL4v",Wo={root:ug,leftSection:dg,rightSection:pg},un=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i="default",controlMaxWidth:a,controlMinWidth:l,leftSection:c,className:u,children:d,style:m,...h}=t,f=fe(h,o);return b.jsxs("div",{ref:n,className:u?`${Wo.root} ${u}`:Wo.root,"data-form-layout":s,style:{...m,...a?{"--form-control-max-width":a}:{},...l?{"--form-control-min-width":l}:{}},...f,children:[s==="side-by-side"?b.jsx("div",{className:Wo.leftSection,"data-label-size":i,children:c}):c&&b.jsx("div",{className:Wo.leftSection,"data-label-size":i,children:c}),b.jsx("div",{className:Wo.rightSection,children:d})]})});un.displayName="FormControlLayout";const fg="FormControlWrapper-module__root___c-UHo",mg="FormControlWrapper-module__inputSection___HenXk",Ti={root:fg,inputSection:mg},Tn=Q.forwardRef(function(t,n){const{overStyled:o=!1,label:s,assistiveText:i,description:a,helperText:l,assistiveWithIcon:c=!0,error:u,required:d,disabled:m,focused:h,id:f,formLayout:g="stacked",labelSize:p="default",labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:T,labelActionArea:w,controlMaxWidth:C,controlMinWidth:I,className:E,style:R,children:$,...L}=t,V=fe(L,o),j=Q.useId(),v=f||`recursica-fc-${j}`,P=i||a||l,_=`${v}-label`,O=P?`${v}-assistive`:void 0,k=u?`${v}-error`:void 0,D=Q.Children.map($,N=>{if(Q.isValidElement(N)){const z=N.props;return Q.cloneElement(N,{"aria-labelledby":_,...O&&!z["aria-describedby"]?{"aria-describedby":O}:{},...k&&!z["aria-errormessage"]?{"aria-errormessage":k}:{}})}return N});return b.jsx(pe.FormControl,{ref:n,error:!!u,required:d,disabled:m,focused:h,className:E?`${Ti.root} ${E}`:Ti.root,style:R,"data-error":u?"true":void 0,"data-disabled":m?"true":void 0,"data-focused":h?"true":void 0,...V,children:b.jsx(un,{formLayout:g,labelSize:p,controlMaxWidth:C,controlMinWidth:I,leftSection:s&&b.jsx(ya,{id:_,htmlFor:v,required:d,labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:T,labelActionArea:w,children:s}),children:b.jsxs("div",{className:Ti.inputSection,children:[D,(P||u)&&b.jsx(cn,{id:u?k:O,assistiveVariant:u?"error":"help",assistiveWithIcon:c,children:u&&typeof u=="string"?u:P})]})})})});Tn.displayName="FormControlWrapper";const hg="ReadOnlyField-module__root___hKci7",gg="ReadOnlyField-module__text___bPxk9",ro={root:hg,text:gg},va=Q.forwardRef(function(t,n){const{value:o,type:s="text",readOnlyComponent:i,emptyValueComponent:a,className:l,...c}=t;if(a&&typeof a!="string"){const m=a;if(m.check&&m.check(o))return b.jsx(Tn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return b.jsx(Tn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx("p",{className:ro.text,children:"N/A"})});if(i){const m=i;return b.jsx(Tn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}let d=o;return s==="boolean"||s==="switch"?(d=o?"True":"False",s==="switch"&&(d=o?"On":"Off")):Array.isArray(o)?d=o.join(", "):d=String(o),b.jsx(Tn,{ref:n,className:`${ro.root} ${l||""}`,...c,children:b.jsx("p",{className:ro.text,children:d})})});va.displayName="ReadOnlyField";const Bt=Q.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:s,readOnlyNativeProps:i,emptyValueComponent:a,activeComponent:l,overStyled:c,onLabelEditClick:u,...d},m){if(t){if(n){const h=n;return b.jsx(Tn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:b.jsx(h,{...i})})}return b.jsx(va,{ref:m,type:o,value:s,emptyValueComponent:a,onLabelEditClick:u,overStyled:c,...d})}return b.jsx(Tn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:l})});Bt.displayName="WithReadOnlyWrapper";const bg="Autocomplete-module__layoutOverride___IIkyG",yg="Autocomplete-module__root___22Jqm",vg="Autocomplete-module__input___MlbJR",xg="Autocomplete-module__section___WRvD5",Sg="Autocomplete-module__dropdown___A9XVI",Cg="Autocomplete-module__option___cZsvO",ut={layoutOverride:bg,root:yg,input:vg,section:xg,dropdown:Sg,option:Cg},Ad=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,withAsterisk:p,id:y,className:x,style:T,disabled:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,data:L,leftSection:V,rightSection:j,placeholder:v,ListboxProps:P,..._}=t,k=fe(_,o);delete k.size,delete k.variant,delete k.radius;const D={root:ut.root,inputRoot:ut.input,listbox:ut.dropdown,option:ut.option},N=k.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const A=N;D.root=A.wrapper?`${ut.root} ${A.wrapper}`:ut.root,D.inputRoot=A.input?`${ut.input} ${A.input}`:ut.input,D.listbox=A.dropdown?`${ut.dropdown} ${A.dropdown}`:ut.dropdown,D.option=A.option?`${ut.option} ${A.option}`:ut.option}const z=x?`${ut.layoutOverride} ${x}`:ut.layoutOverride;return b.jsx(Bt,{className:z,style:T,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:y,disabled:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:D,disabled:w,value:R,defaultValue:$,forcePopupIcon:!1,"data-error":f?"true":void 0,"data-disabled":w?"true":void 0,"data-with-left-section":V?"true":void 0,"data-with-right-section":j?"true":void 0,ListboxProps:{...P,className:D.listbox},options:L||[],renderInput:A=>{const{InputProps:F,...W}=A;return b.jsx(pe.TextField,{...W,placeholder:v,variant:"standard",InputProps:{...F,startAdornment:V?b.jsx("span",{className:ut.section,"data-position":"left",children:V}):F.startAdornment,endAdornment:j?b.jsx("span",{className:ut.section,"data-position":"right",children:j}):F.endAdornment}})}})})});Ad.displayName="Autocomplete";const wg="Avatar-module__root___fXu-J",Tg="Avatar-module__iconWrapper___ojly2",Ig="Avatar-module__textWrapper___zp-jD",Eg="Avatar-module__image___ieqGp",Og="Avatar-module__placeholder___IDW7-",Dt={root:wg,iconWrapper:Tg,textWrapper:Ig,image:Eg,placeholder:Og},jd=Q.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:s,src:i,overStyled:a=!1,...l},c){const u=fe(l,a),d=u;let m="text";i?m="image":o&&(m="icon");const h={root:Dt.root,image:Dt.image,placeholder:Dt.placeholder},f=d.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const p=f;h.root=p.root?`${Dt.root} ${p.root}`:Dt.root,h.image=p.image?`${Dt.image} ${p.image}`:Dt.image,h.placeholder=p.placeholder?`${Dt.placeholder} ${p.placeholder}`:Dt.placeholder}const g=d.className;return b.jsx(pe.Avatar,{ref:c,className:g,classes:h,variant:"circular",src:i,"data-variant":n,"data-size":t,"data-style":m,...u,children:o!=null?b.jsx("span",{className:Dt.iconWrapper,"aria-hidden":!0,children:o}):s!=null?b.jsx("span",{className:Dt.textWrapper,children:s}):void 0})});jd.displayName="Avatar";const _g=jd,kg="Badge-module__root___5osNT",Uo={root:kg},Ld=Q.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},s){const i=fe(o,n),a={root:Uo.root},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${Uo.root} ${d.root}`:Uo.root}const c=i.className,u=c?`${Uo.root} ${c}`:Uo.root;return b.jsx(pe.Badge,{ref:s,variant:"standard","data-variant":t,...i,className:u,classes:a})});Ld.displayName="Badge";const Pg=Ld,Rg=Q.forwardRef(function(t,n){return b.jsx(pe.Box,{ref:n,...t})}),Ng="Breadcrumb-module__root___x-9ln",Mg="Breadcrumb-module__separator___qrUX-",bn={root:Ng,separator:Mg},Vd=Q.forwardRef(function({overStyled:t=!1,separator:n=">",...o},s){const i=fe({separator:n,...o},t),a={root:bn.root,separator:bn.separator},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${bn.root} ${d.root}`:bn.root,a.separator=d.separator?`${bn.separator} ${d.separator}`:bn.separator}const c=i.className,u=c?`${bn.root} ${c}`:bn.root;return b.jsx(pe.Breadcrumbs,{ref:s,...i,className:u,classes:a})});Vd.displayName="Breadcrumb";const $g="Loader-module__root___6iYOP",ac={root:$g},xa=Q.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...s},i){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",c=fe(s,o),u=c.className,d=u?`${ac.root} ${u}`:ac.root,m=()=>t==="bars"||t==="dots"?b.jsxs(b.Fragment,{children:[b.jsx("span",{}),b.jsx("span",{}),b.jsx("span",{})]}):null;return b.jsx("span",{ref:i,"data-variant":t,"data-size":l,...c,className:d,children:m()})});xa.displayName="Loader";const Dg="Button-module__root___Q2R8-",Ag="Button-module__labelText___rFV5p",jg="Button-module__iconWrapper___uEKPa",Ho={root:Dg,labelText:Ag,iconWrapper:jg};function Lg(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const Sa=Q.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:s,overStyled:i=!1,loaderVariant:a="oval",loaderSize:l,useRecursicaLoader:c=!0,...u},d){const m=fe(u,i),h=m;delete h.color;const f=!!o||!!h.startIcon,g=!!h.endIcon,p=Lg(s),y=(f||g)&&!p;let x="label";y?x="icon-only":(f||g)&&(x="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&y&&!h["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const T=h.className,w=T?`${Ho.root} ${T}`:Ho.root;delete h.className;const C=l??(n==="small"?"small":"default");let I=h.loadingIndicator;return c&&(I=b.jsx(xa,{variant:a,size:C})),b.jsx(pe.Button,{ref:d,disableRipple:!0,disableElevation:!0,className:w,loading:!!h.loading,loadingIndicator:I,fullWidth:!!h.fullWidth,startIcon:h.loading?b.jsx("span",{className:Ho.iconWrapper,"aria-hidden":!0,children:I}):o!=null?b.jsx("span",{className:Ho.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":x,...h.loading?{"data-loading":"true"}:{},...m,disabled:!!h.disabled||!!h.loading,children:b.jsx("span",{className:Ho.labelText,children:s})})});Sa.displayName="Button";const Vg="Card-module__root___c9KvZ",Fg="Card-module__header___PTXf2",Bg="Card-module__footer___Mu-JC",zg="Card-module__section___BRT8H",Wg="Card-module__content___oFIQa",dn={root:Vg,header:Fg,footer:Bg,section:zg,content:Wg},Fd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(u=>{u in n&&!(u in s)&&(s[u]=n[u])});const a={root:dn.root},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;Object.keys(u).forEach(d=>{a[d]?a[d]=`${a[d]} ${u[d]}`:a[d]=u[d]})}const c=s.className;return b.jsx(pe.Card,{ref:o,...s,className:c,classes:a})});Fd.displayName="Card";const Bd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${dn.section} ${i}`:dn.section})});Bd.displayName="CardSection";const zd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${dn.header} ${i}`:dn.header})});zd.displayName="CardHeader";const Wd=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${dn.footer} ${i}`:dn.footer})});Wd.displayName="CardFooter";const Ud=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${dn.content} ${i}`:dn.content})});Ud.displayName="CardContent";const Hd=Fd,js=Hd;js.Section=Bd;js.Header=zd;js.Footer=Wd;js.Content=Ud;const Ug=Hd,Hg="Checkbox-module__groupRoot___cBS0o",qg="Checkbox-module__root___mY3qk",Yg="Checkbox-module__body___5yC7q",Gg="Checkbox-module__inner___rTke4",Kg="Checkbox-module__input___2kt-h",Xg="Checkbox-module__inputChecked___zaCIH",Qg="Checkbox-module__inputIndeterminate___CVPhn",Zg="Checkbox-module__disabled___x7-eg",Jg="Checkbox-module__icon___-O7i6",eb="Checkbox-module__labelWrapper___GpZkr",tb="Checkbox-module__label___cwRtI",qe={groupRoot:Hg,root:qg,body:Yg,inner:Gg,input:Kg,inputChecked:Xg,inputIndeterminate:Qg,disabled:Zg,icon:Jg,labelWrapper:eb,label:tb},qd=Q.createContext(null),Ca=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:T,children:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,onChange:L,row:V,...j}=t,v=fe(j,o),P=v;delete P.size;const _=(O,k)=>{L&&L(k)};return b.jsx(Bt,{className:x,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(qd.Provider,{value:{value:R!==void 0?R:$,onChange:_,name:P.name,readOnly:C||!!P.disabled},children:b.jsx(pe.FormGroup,{ref:n,row:V,...v,className:`${qe.groupRoot} ${v.className||""}`.trim(),"data-layout":s,children:w})})})});Ca.displayName="CheckboxGroup";const wa=Q.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=fe(p,o),x=y;delete x.size,delete x.color;const T={root:qe.root,checked:qe.checked,disabled:qe.disabled},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const O=w;T.root=O.root?`${qe.root} ${O.root}`:qe.root,T.checked=O.checked?`${qe.checked} ${O.checked}`:qe.checked,T.disabled=O.disabled?`${qe.disabled} ${O.disabled}`:qe.disabled}const C=x.className,I=C?`${qe.root} ${C}`:qe.root,E=Q.useContext(qd),R=E!==null,$=R?E.readOnly:!1,L=R?(E.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=R||x.checked!==void 0;if(s&&i){const O=i,k=b.jsx(O,{...t,checked:L,label:m});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:k}):b.jsx(b.Fragment,{children:k})}const j=O=>{if(R){const k=O.target.checked?[...E.value||[],x.value]:(E.value||[]).filter(D=>D!==x.value);E.onChange&&E.onChange(O,k)}else x.onChange&&x.onChange(O,O.target.checked)},v=O=>b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...O,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),P=b.jsx(pe.Checkbox,{ref:n,className:m?qe.inner:`${I} ${qe.inner}`,classes:T,disabled:s||a||$,...y,...V?{checked:L}:{},onChange:j,disableRipple:!0,sx:m?{padding:0}:void 0,icon:b.jsx("div",{className:qe.input}),checkedIcon:b.jsx("div",{className:`${qe.input} ${qe.inputChecked}`,children:b.jsx(v,{className:qe.icon})}),indeterminateIcon:b.jsx("div",{className:`${qe.input} ${qe.inputIndeterminate}`,children:b.jsx("svg",{className:qe.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:b.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),_=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:qe.body,children:[P,b.jsxs("div",{className:qe.labelWrapper,children:[b.jsx("label",{className:qe.label,htmlFor:x.id,"data-disabled":s||a||$?!0:void 0,children:m}),f?b.jsx(cn,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(cn,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):b.jsx("div",{className:I,style:g,children:P});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:_}):_});wa.displayName="Checkbox";wa.Group=Ca;const nb="Chip-module__root___f5pFk",ob="Chip-module__label___Ov9pg",rb="Chip-module__checkIconWrapper___1OtE-",sb="Chip-module__innerWrapper___EnrTF",ib="Chip-module__children___zbRAR",ab="Chip-module__leadingIcon___JBtjQ",lb="Chip-module__removeIconWrapper___VOO7u",ft={root:nb,label:ob,checkIconWrapper:rb,innerWrapper:sb,children:ib,leadingIcon:ab,removeIconWrapper:lb};function cb(e){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[b.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function ub(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Yd=Q.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:s="Remove",children:i,checked:a,overStyled:l=!1,...c},u){const d=fe(c,l),m=d,h={root:ft.root,label:ft.label,icon:ft.leadingIcon,deleteIcon:ft.removeIconWrapper},f=m.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const w=f;h.root=w.root?`${ft.root} ${w.root}`:ft.root,h.label=w.label?`${ft.label} ${w.label}`:ft.label}const g=m.className,p=g?`${ft.root} ${g}`:ft.root,y=t?"":void 0,x=a?"":void 0,T=!i&&(!!n||!!o);return b.jsx(pe.Chip,{ref:u,className:p,classes:h,...y!==void 0?{"data-error":""}:{},...x!==void 0?{"data-checked":""}:{},...T?{"data-icon-only":""}:{},...d,icon:a?b.jsx("span",{className:ft.checkIconWrapper,"aria-hidden":!0,children:b.jsx(ub,{})}):n?b.jsx("span",{className:ft.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?b.jsx("span",{className:ft.removeIconWrapper,children:b.jsx(cb,{})}):void 0,label:b.jsx("span",{className:ft.innerWrapper,children:b.jsx("span",{className:ft.children,children:i})})})});Yd.displayName="Chip";const Gd=Q.forwardRef(function({children:t,size:n,fluid:o,...s},i){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=o?!1:typeof n=="string"&&a[n]?a[n]:n;return b.jsx(pe.Container,{ref:i,maxWidth:l,...s,children:t})});Gd.displayName="Container";const db=({disabled:e,label:t,assistiveText:n,error:o,required:s,withAsterisk:i,placeholder:a,value:l,defaultValue:c,onChange:u,readOnly:d,formLayout:m,leftSection:h,labelWithEditIcon:f,onLabelEditClick:g,...p})=>b.jsx("div",{...p,children:"DatePicker"}),pb="Dropdown-module__layoutOverride___FNcvP",fb="Dropdown-module__root___uVyL0",mb="Dropdown-module__input___dK4dN",hb="Dropdown-module__dropdown___gG-Sw",gb="Dropdown-module__option___nAGU-",mt={layoutOverride:pb,root:fb,input:mb,dropdown:hb,option:gb},Kd=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",containerWidth:i,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,withAsterisk:y,id:x,className:T,style:w,disabled:C,readOnly:I,readOnlyComponent:E,emptyValueComponent:R,value:$,defaultValue:L,data:V,searchable:j,clearable:v,...P}=t,_=fe(P,o),O=_;delete O.size,delete O.variant;const k={...w||{},width:i||"100%"},D=T?`${mt.layoutOverride} ${T}`:mt.layoutOverride,N=()=>V?V.map((z,A)=>typeof z=="string"?b.jsx(pe.MenuItem,{value:z,className:mt.option,"data-selected":z===($??L)?"true":void 0,children:z},`${z}-${A}`):b.jsx(pe.MenuItem,{value:z.value,disabled:z.disabled,className:mt.option,"data-selected":z.value===($??L)?"true":void 0,children:z.label},`${z.value}-${A}`)):null;return b.jsx(Bt,{className:D,style:k,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:!!g,required:p,id:x,readOnly:I,readOnlyComponent:E,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:$!==void 0?String($):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Select,{ref:n,disabled:C,value:$,defaultValue:L,error:!!g,required:p,displayEmpty:!0,className:mt.root,classes:{select:mt.input,icon:mt.icon},MenuProps:{classes:{paper:mt.dropdown}},"data-disabled":C?"true":void 0,"data-error":g?"true":void 0,inputProps:{"data-disabled":C?"true":void 0,"data-error":g?"true":void 0,...O.inputProps},..._,children:N()})})});Kd.displayName="Dropdown";const bb=e=>b.jsx("div",{...e,children:"FileInput"}),yb=e=>b.jsx("div",{...e,children:"FileUpload"}),Xd=Q.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,direction:i,align:a,justify:l,wrap:c,...u},d){const m=Or(u),h=typeof n=="string"&&n in at?at[n]:n,f=typeof o=="string"&&o in at?at[o]:o,g=typeof s=="string"&&s in at?at[s]:s;return b.jsx(pe.Box,{ref:d,...m,display:"flex",gap:h,rowGap:f,columnGap:g,flexDirection:i,alignItems:a,justifyContent:l,flexWrap:c,children:t})});Xd.displayName="Flex";const vb="Grid-module__root___s-qPY",xb="Grid-module__col___tbuNg",Sb="Grid-module__hiddenFromXs___Ap3ch",Cb="Grid-module__hiddenFromSm___ZD0Wm",wb="Grid-module__hiddenFromMd___O3Zhg",Tb="Grid-module__hiddenFromLg___RxDrc",Ib="Grid-module__hiddenFromXl___k7ytz",Eb="Grid-module__visibleFromSm___w20SX",Ob="Grid-module__visibleFromMd___ePFrO",_b="Grid-module__visibleFromLg___L6vtD",kb="Grid-module__visibleFromXl___HLWTL",Vt={root:vb,col:xb,hiddenFromXs:Sb,hiddenFromSm:Cb,hiddenFromMd:wb,hiddenFromLg:Tb,hiddenFromXl:Ib,visibleFromSm:Eb,visibleFromMd:Ob,visibleFromLg:_b,visibleFromXl:kb},Qd=Q.createContext({grow:!1});function Ta(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function lc(e){return e==="auto"?"grow":e==="content"?"auto":e}function Pb(e){const t=Ta(e);if(t===void 0||typeof t!="object")return lc(t);const n={};return Object.entries(t).forEach(([o,s])=>{n[o]=lc(s)}),n}function Rb(e){return Ta(e)}function Nb(e){if(e===void 0||typeof e=="number")return e;const t=Ta(e);return t.xs??t.sm??t.md??t.lg??t.xl}const Mb={xs:Vt.hiddenFromXs,sm:Vt.hiddenFromSm,md:Vt.hiddenFromMd,lg:Vt.hiddenFromLg,xl:Vt.hiddenFromXl},$b={sm:Vt.visibleFromSm,md:Vt.visibleFromMd,lg:Vt.visibleFromLg,xl:Vt.visibleFromXl};function cc(e){return e==="base"?"xs":e}const Zd=Q.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:s=!1,justify:i,align:a,style:l,...c},u){const d=Or(c),m=typeof n=="string"&&n in at?at[n]:n;return b.jsx(Qd.Provider,{value:{grow:s},children:b.jsx(pe.Grid,{ref:u,...d,container:!0,columns:o,spacing:m,className:Vt.root,style:{justifyContent:i,alignItems:a,...l},children:t})})});Zd.displayName="Grid";const Ia=Q.forwardRef(function({children:t,span:n,offset:o,order:s,visibleFrom:i,hiddenFrom:a,style:l,className:c,...u},d){const{grow:m}=Q.useContext(Qd),h=Or(u),f=Nb(s),g=i?$b[cc(i)]:a?Mb[cc(a)]:void 0,p=[Vt.col,g,c].filter(Boolean).join(" ");return b.jsx(pe.Grid,{ref:d,size:Pb(n),offset:Rb(o),className:p,...h,style:{order:f,...m?{flexGrow:1}:{},...l},children:t})});Ia.displayName="GridCol";const Jd=Zd;Jd.Col=Ia;const ep=Q.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,justify:i,align:a,wrap:l,...c},u){const d=Or(c),m=typeof n=="string"&&n in at?at[n]:n,h=typeof o=="string"&&o in at?at[o]:o,f=typeof s=="string"&&s in at?at[s]:s;return b.jsx(pe.Stack,{ref:u,...d,direction:"row",flexWrap:l||"wrap",justifyContent:i,alignItems:a,spacing:m,sx:{...h?{rowGap:h}:{},...f?{columnGap:f}:{}},children:t})});ep.displayName="Group";const Db="HoverCard-module__dropdown___FBPFW",Ab="HoverCard-module__arrow___S9AkE",uc={dropdown:Db,arrow:Ab},tp=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:s=0,closeDelay:i=150,disabled:a=!1,offset:l=5,children:c,...u}){const d=fe(u,t),m={tooltip:uc.dropdown,arrow:uc.arrow},h=d.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const p=h;Object.keys(p).forEach(y=>{m[y]?m[y]=`${m[y]} ${p[y]}`:m[y]=p[y]})}let f=null,g=null;return Q.Children.forEach(c,p=>{var y,x;if(Q.isValidElement(p)){const T=p;((y=T.type)==null?void 0:y.displayName)==="HoverCardTarget"?f=T.props.children:((x=T.type)==null?void 0:x.displayName)==="HoverCardDropdown"&&(g=T.props.children)}}),f||(f=b.jsx("div",{})),g||(g=b.jsx("div",{})),b.jsx(pe.Tooltip,{...d,title:g,placement:o,arrow:n,enterDelay:s,leaveDelay:i,disableHoverListener:a,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,l]}}]}},classes:m,children:Q.isValidElement(f)?f:b.jsx("span",{children:f})})};tp.displayName="HoverCard";const np=function({children:t}){return b.jsx(b.Fragment,{children:t})};np.displayName="HoverCardTarget";const op=function({children:t}){return b.jsx(b.Fragment,{children:t})};op.displayName="HoverCardDropdown";const Ea=tp;Ea.Target=np;Ea.Dropdown=op;const jb="Link-module__root___I0VGE",Lb="Link-module__iconWrapper___W-LlF",Vb="Link-module__labelText___wSvUy",Hr={root:jb,iconWrapper:Lb,labelText:Vb},rp=Q.forwardRef(function({icon:t,children:n,overStyled:o=!1,...s},i){const a=fe(s,o),c=a.className,u=c?`${Hr.root} ${c}`:Hr.root;return b.jsxs(pe.Link,{ref:i,className:u,underline:"none",...t?{"data-has-icon":""}:{},...a,children:[t&&b.jsx("span",{className:Hr.iconWrapper,"aria-hidden":!0,children:t}),b.jsx("span",{className:Hr.labelText,children:n})]})});rp.displayName="Link";const Fb="Menu-module__dropdown___j4xuA",Bb="Menu-module__item___NMXha",zb="Menu-module__divider___wPiNq",sr={dropdown:Fb,item:Bb,divider:zb},sp=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.Menu,{ref:s,...i,className:`${sr.dropdown} ${n||""}`,classes:{paper:sr.dropdown,list:sr.dropdown}})});sp.displayName="Menu";const ip=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.MenuItem,{ref:s,className:`${sr.item} ${n||""}`,...i})});ip.displayName="MenuItem";const ap=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.Divider,{ref:s,className:`${sr.divider} ${n||""}`,...i})});ap.displayName="MenuDivider";const Wb="Modal-module__root___ytPLl",Ub="Modal-module__inner___SSUJE",Hb="Modal-module__content___dWO-B",qb="Modal-module__header___ILG9i",Yb="Modal-module__title___A5OeE",Gb="Modal-module__scrollArea___KD-hm",Kb="Modal-module__footer___rro2w",Xb="Modal-module__close___-ER1C",on={root:Wb,inner:Ub,content:Hb,header:qb,title:Yb,scrollArea:Gb,footer:Kb,close:Xb},Qb=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),lp=Q.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:s,children:i,onClose:a,className:l,...c},u){const d=fe(c,t);let m=null;const h=[];return Q.Children.forEach(i,f=>{var g;Q.isValidElement(f)&&(f.type===_a||((g=f.type)==null?void 0:g.displayName)==="Modal.Footer")?m=f:h.push(f)}),b.jsxs(pe.Dialog,{ref:u,...d,className:`${on.root} ${l||""}`,classes:{paper:on.inner},open:n||d.open||!1,onClose:a,children:[(s||o)&&b.jsxs("div",{className:on.header,children:[s&&b.jsx("div",{className:on.title,children:s}),o&&b.jsx(pe.IconButton,{onClick:f=>a==null?void 0:a(f,"backdropClick"),className:on.close,children:b.jsx(Qb,{})})]}),b.jsx(Oa,{children:h}),m]})});lp.displayName="Modal";const cp=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.DialogTitle,{ref:s,className:`${on.title} ${n||""}`,...i})});cp.displayName="Modal.Title";const Oa=Q.forwardRef(function({overStyled:t=!1,className:n,children:o,...s},i){const a=fe(s,t),l=Q.useRef(null),[c,u]=Q.useState(!1),[d,m]=Q.useState(!1),h=Q.useCallback(()=>{if(l.current){const{scrollTop:f,scrollHeight:g,clientHeight:p}=l.current;u(f>0),m(Math.ceil(f+p)<g)}},[]);return Q.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,o]),b.jsx(pe.DialogContent,{ref:f=>{typeof i=="function"?i(f):i&&(i.current=f),l&&(l.current=f)},onScroll:()=>h(),"data-scrolled-top":c||void 0,"data-scrolled-bottom":d||void 0,className:`${on.content} ${on.scrollArea} ${n||""}`,...a,children:o})});Oa.displayName="Modal.Body";const _a=Q.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.DialogActions,{ref:s,className:`${on.footer} ${n||""}`,...i})});_a.displayName="Modal.Footer";const Ls=lp;Ls.Title=cp;Ls.Body=Oa;Ls.Footer=_a;const Zb="NumberInput-module__layoutOverride___5-9T4",Jb="NumberInput-module__root___C6rAn",ey="NumberInput-module__input___Ss8p7",ty="NumberInput-module__section___MijP0",ny="NumberInput-module__controls___8UfQ2",oy="NumberInput-module__control___Qre9-",Fn={layoutOverride:Zb,root:Jb,input:ey,section:ty,controls:ny,control:oy},up=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:T,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:R,leftSection:$,rightSection:L,min:V,max:j,step:v,hideControls:P=!1,..._}=t,O=fe(_,o),k=O;delete k.size,delete k.variant,delete k.radius;const D={wrapper:Fn.root,input:Fn.input,section:Fn.section,controls:Fn.controls,control:Fn.control},N=y?`${Fn.layoutOverride} ${y}`:Fn.layoutOverride,z=$?b.jsx("div",{className:D.section,"data-position":"left",children:$}):void 0,A=L?b.jsx("div",{className:D.section,"data-position":"right",children:L}):void 0;return b.jsx(Bt,{className:N,style:x,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:E!==void 0?E==null?void 0:E.toString():R==null?void 0:R.toString(),readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{ref:n,...O,classes:D,disabled:T,value:E,defaultValue:R,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:z,endAdornment:A},inputProps:{min:V,max:j,step:v,...k.inputProps}})})});up.displayName="NumberInput";const ry="Pagination-module__root___ITRjt",yn={root:ry};function sy(e){const t={root:yn.root,ul:yn.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${yn.root} ${i.root}`:yn.root,t.ul=i.ul?`${yn.ul} ${i.ul}`:yn.ul}const o=e.className;return{className:o?`${yn.root} ${o}`:yn.root,classNames:t}}const dp=Q.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:s,total:i,withEdges:a,withControls:l,...c}=t,u=fe(c,o),d=sy(u);return b.jsx("div",{ref:n,className:d.className,children:b.jsx(pe.Pagination,{...u,count:i,showFirstButton:a,showLastButton:a,hidePrevButton:l===!1?!0:void 0,hideNextButton:l===!1?!0:void 0,classes:d.classNames})})});dp.displayName="Pagination";const iy=dp,ay="Panel-module__content___wdGo-",ly="Panel-module__inner___ruA2b",cy="Panel-module__header___o7SiC",uy="Panel-module__title___181OP",dy="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",py="Panel-module__body___SEC3T",fy="Panel-module__footer___t6-hz",Sn={content:ay,inner:ly,header:cy,title:uy,titleTruncate:dy,body:py,footer:fy},pp=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:s=!1,opened:i,...a}){const l=fe(a,t),c={content:Sn.content,header:Sn.header,title:s?Sn.titleTruncate:Sn.title,body:Sn.body,inner:Sn.inner},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const d=u;Object.keys(d).forEach(m=>{c[m]?c[m]=`${c[m]} ${d[m]}`:c[m]=d[m]})}return b.jsx(pe.Drawer,{anchor:n,keepMounted:o,open:!!i,...l,classes:c})};pp.displayName="Panel";const ka=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className,a=i?`${Sn.footer} ${i}`:Sn.footer;return b.jsx("div",{ref:o,...s,className:a})});ka.displayName="PanelFooter";const fp=pp;fp.Footer=ka;const my="Radio-module__groupRoot___bfUii",hy="Radio-module__root___kAjTD",gy="Radio-module__body___q2Wpj",by="Radio-module__inner___QaTBB",yy="Radio-module__radio___MfgN-",vy="Radio-module__radioChecked___ZFb28",xy="Radio-module__disabled___0-cna",Sy="Radio-module__icon___DWznm",Cy="Radio-module__labelWrapper___dB0Gi",wy="Radio-module__label___vAFIP",Je={groupRoot:my,root:hy,body:gy,inner:by,radio:yy,radioChecked:vy,disabled:xy,icon:Sy,labelWrapper:Cy,label:wy},Pa=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:T,children:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,onChange:L,...V}=t,j=fe(V,o),v=j;return delete v.size,b.jsx(Bt,{className:x,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(pe.RadioGroup,{ref:n,...j,value:R,defaultValue:$,onChange:L?(P,_)=>L(_):void 0,className:Je.groupRoot,"data-layout":s,children:w})})});Pa.displayName="RadioGroup";const Ty=({className:e,style:t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:b.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Ra=Q.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=fe(p,o),x=y;delete x.size,delete x.color;const T={root:Je.root,checked:Je.checked,disabled:Je.disabled},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const $=w;T.root=$.root?`${Je.root} ${$.root}`:Je.root,T.checked=$.checked?`${Je.checked} ${$.checked}`:Je.checked,T.disabled=$.disabled?`${Je.disabled} ${$.disabled}`:Je.disabled}const C=x.className,I=C?`${Je.root} ${C}`:Je.root;if(s&&i){const $=!!(x.checked??x.defaultChecked),L=i,V=b.jsx(L,{...t,checked:$,label:x.label});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:V}):b.jsx(b.Fragment,{children:V})}const E=b.jsx(pe.Radio,{ref:n,...y,icon:b.jsx("div",{className:Je.radio}),checkedIcon:b.jsx("div",{className:`${Je.radio} ${Je.radioChecked}`,children:b.jsx(Ty,{className:Je.icon})}),className:m?Je.inner:`${I} ${Je.inner}`,classes:T,disabled:s||a,disableRipple:!0,sx:m?{padding:0}:void 0}),R=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:Je.body,children:[E,b.jsxs("div",{className:Je.labelWrapper,children:[b.jsx("label",{className:Je.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),f?b.jsx(cn,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(cn,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):b.jsx("div",{className:I,style:g,children:E});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:R}):R});Ra.displayName="Radio";Ra.Group=Pa;const Iy="SegmentedControl-module__root___JFRhg",Ey="SegmentedControl-module__label___mS17q",Oy="SegmentedControl-module__control___znOdQ",At={root:Iy,label:Ey,control:Oy};function _y(e){const t={root:At.root,control:At.control,label:At.label},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${At.root} ${i.root}`:At.root,t.control=i.control?`${At.control} ${i.control}`:At.control,t.label=i.label?`${At.label} ${i.label}`:At.label}const o=e.className;return{className:o?`${At.root} ${o}`:At.root,classNames:t}}const mp=Q.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:s=[],value:i,onChange:a,...l},c){const u=fe(l,t),d=u;delete d.disabled;const m=_y(d),h=(f,g)=>{g!==null&&a&&a(g)};return b.jsx(pe.ToggleButtonGroup,{ref:c,...u,className:m.className,classes:m.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:i,onChange:h,children:s.map(f=>{const g=typeof f=="string"?f:f.value,p=typeof f=="string"?f:f.label,y=typeof f=="string"?!1:f.disabled;return b.jsx(pe.ToggleButton,{value:g,disabled:y,className:m.classNames.control,children:b.jsx("div",{className:m.classNames.label,children:p})},g)})})});mp.displayName="SegmentedControl";const ky=mp,Py="Slider-module__layoutOverride___zYPun",Ry="Slider-module__sliderContainer___y8I0J",Ny="Slider-module__sliderTrackWrapper___UHpVh",My="Slider-module__iconWrapper___uqHpC",$y="Slider-module__sliderRoot___LI86H",Dy="Slider-module__sliderTrack___oqnlG",Ay="Slider-module__sliderBar___TI4VY",jy="Slider-module__sliderThumb___OFn8p",Ly="Slider-module__sliderMark___1lM2B",Vy="Slider-module__sliderTooltip___J1Aqb",Fy="Slider-module__minMaxGuide___TaGqz",By="Slider-module__rightGuideContainer___8dOT8",zy="Slider-module__currentValue___dGV2T",Wy="Slider-module__inputField___6x578",Uy="Slider-module__readOnlyValue___-ZzMW",Me={layoutOverride:Py,sliderContainer:Ry,sliderTrackWrapper:Ny,iconWrapper:My,sliderRoot:$y,sliderTrack:Dy,sliderBar:Ay,sliderThumb:jy,sliderMark:Ly,sliderTooltip:Vy,minMaxGuide:Fy,rightGuideContainer:By,currentValue:zy,inputField:Wy,readOnlyValue:Uy},Hy=({value:e})=>b.jsx("div",{className:Me.readOnlyValue,children:e}),hp=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,tooltipLabel:h,assistiveText:f,assistiveWithIcon:g,error:p,required:y,withAsterisk:x,id:T,className:w,style:C,disabled:I,readOnly:E,readOnlyComponent:R,emptyValueComponent:$,value:L,defaultValue:V,icon:j,showInput:v=!1,showMinMaxLabels:P=!0,min:_=0,max:O=100,step:k=1,onChange:D,onChangeEnd:N,...z}=t,[A,F]=Q.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:V!==void 0?Array.isArray(V)?V[0]:V:_),W=L!==void 0?Array.isArray(L)?L[0]:L:A,[K,Z]=Q.useState(W.toString());Q.useEffect(()=>{Z(W.toString())},[W]);const Y=(oe,ye)=>{const me=Array.isArray(ye)?ye[0]:ye;L===void 0&&F(me),D==null||D(me)},X=oe=>{const ye=oe.target.value;Z(ye);const me=parseFloat(ye);if(!isNaN(me)){const re=Math.max(_,Math.min(O,me));Y(null,re)}},ne=()=>{Z(W.toString())},q=fe(z,o),B=q;delete B.size,delete B.color,delete B.wrapperProps;const H={root:Me.sliderRoot,rail:Me.sliderTrack,track:Me.sliderBar,thumb:Me.sliderThumb,mark:Me.sliderMark,markLabel:Me.sliderMarkLabel,valueLabel:Me.sliderTooltip},ae=B.classNames;if(ae&&typeof ae=="object"&&!Array.isArray(ae)){const oe=ae;H.root=oe.root?`${Me.sliderRoot} ${oe.root}`:Me.sliderRoot,H.rail=oe.track?`${Me.sliderTrack} ${oe.track}`:Me.sliderTrack,H.track=oe.bar?`${Me.sliderBar} ${oe.bar}`:Me.sliderBar,H.thumb=oe.thumb?`${Me.sliderThumb} ${oe.thumb}`:Me.sliderThumb,H.mark=oe.mark?`${Me.sliderMark} ${oe.mark}`:Me.sliderMark,H.markLabel=oe.markLabel?`${Me.sliderMarkLabel} ${oe.markLabel}`:Me.sliderMarkLabel}const G=w?`${Me.layoutOverride} ${w}`:Me.layoutOverride,de=j?b.jsx("span",{className:Me.iconWrapper,"aria-hidden":!0,children:j}):null;return b.jsx(Bt,{ref:n,className:G,style:C,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:f,assistiveWithIcon:g,error:!!p,required:y,id:T,readOnly:E,readOnlyComponent:R||Hy,emptyValueComponent:$,readOnlyType:"text",readOnlyValue:W,readOnlyNativeProps:{value:W},activeComponent:b.jsxs("div",{className:Me.sliderContainer,"data-form-layout":s,"data-disabled":I?"true":void 0,"data-error":p?"true":void 0,children:[de,P&&b.jsx("span",{className:Me.minMaxGuide,children:_}),b.jsx("div",{className:Me.sliderTrackWrapper,children:b.jsx(pe.Slider,{...q,classes:H,disabled:I,value:W,onChange:Y,onChangeCommitted:N,min:_,max:O,step:k,valueLabelDisplay:h===null?"off":"auto",valueLabelFormat:typeof h=="function"?h:void 0})}),b.jsxs("div",{className:Me.rightGuideContainer,children:[!v&&b.jsx("span",{className:Me.currentValue,children:W}),P&&b.jsx("span",{className:Me.minMaxGuide,children:O})]}),v&&b.jsx("input",{type:"number",className:Me.inputField,value:K,onChange:X,onBlur:ne,min:_,max:O,step:k??void 0,disabled:I,"data-error":p?"true":void 0})]})})});hp.displayName="Slider";const gp=Q.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:s,...i},a){const l=Or(i),c=typeof n=="string"&&n in at?at[n]:n;return b.jsx(pe.Stack,{ref:a,...l,spacing:c,alignItems:o,justifyContent:s,children:t})});gp.displayName="Stack";const qy="Stepper-module__root___jbSYO",Yy="Stepper-module__horizontal___USHT1",Gy="Stepper-module__steps___4HPO6",Ky="Stepper-module__step___s2nqL",Xy="Stepper-module__stepLabel___N6nuy",Qy="Stepper-module__stepDescription___DnDAy",Zy="Stepper-module__separator___pU0No",Jy="Stepper-module__vertical___d4mOs",ev="Stepper-module__large___J18-y",tv="Stepper-module__small___Ub-zb",nv="Stepper-module__stepIcon___YQHNq",ov="Stepper-module__verticalSeparator___frWc1",Et={root:qy,horizontal:Yy,steps:Gy,step:Ky,stepLabel:Xy,stepDescription:Qy,separator:Zy,vertical:Jy,large:ev,small:tv,stepIcon:nv,verticalSeparator:ov},bp=Q.forwardRef(function(t,n){const{overStyled:o=!1,size:s="large",orientation:i="horizontal",className:a,style:l,...c}=t,u=fe(c,o);return b.jsx("div",{className:`${Et.root} ${i==="horizontal"?Et.horizontal:Et.vertical} ${s==="large"?Et.large:Et.small} ${a||""}`,style:l,"data-size":s,"data-orientation":i,children:b.jsx(pe.Stepper,{ref:n,...u,orientation:i,connector:b.jsx(pe.StepConnector,{classes:{root:i==="horizontal"?Et.separator:Et.verticalSeparator}}),classes:{root:Et.steps}})})});bp.displayName="Stepper";const rv=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.Step,{ref:n,...fe(i,o),classes:{root:Et.step},className:s||""})});rv.displayName="Step";const sv=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepButton,{ref:n,className:s||"",...fe(i,o)})});sv.displayName="StepButton";const iv=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,description:i,...a}=t;return b.jsx(pe.StepLabel,{ref:n,...fe(a,o),className:s||"",classes:{label:Et.stepLabel,iconContainer:Et.stepIcon},optional:i?b.jsx("div",{className:Et.stepDescription,children:i}):a.optional})});iv.displayName="StepLabel";const av=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepConnector,{ref:n,className:s||"",...fe(i,o)})});av.displayName="StepConnector";const lv="Switch-module__root___Y5Ydi",cv="Switch-module__switchRoot___5nKws",uv="Switch-module__track___7ObdZ",dv="Switch-module__thumb___-FTeK",pv="Switch-module__body___Sw9Wr",fv="Switch-module__switchBase___-sCur",mv="Switch-module__thumbIconWrapper___sCY-1",hv="Switch-module__checkIcon___ZBAQN",gv="Switch-module__closeIcon___bLLGw",bv="Switch-module__labelWrapper___YSOwx",yv="Switch-module__label___LrH7V",vv="Switch-module__groupRoot___-Uepi",Pe={root:lv,switchRoot:cv,track:uv,thumb:dv,body:pv,switchBase:fv,thumbIconWrapper:mv,checkIcon:hv,closeIcon:gv,labelWrapper:bv,label:yv,groupRoot:vv},yp=Q.createContext(null),Na=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:T,children:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,onChange:L,...V}=t,j=fe(V,o),v=j;delete v.size;const P=(_,O)=>{L&&L(O)};return b.jsx(Bt,{className:x,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(yp.Provider,{value:{value:R!==void 0?R:$,onChange:P,name:v.name,readOnly:C||!!v.disabled},children:b.jsx(pe.FormGroup,{ref:n,...j,className:`${Pe.groupRoot} ${j.className||""}`.trim(),"data-layout":s,children:w})})})});Na.displayName="SwitchGroup";function xv(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Sv(e){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Ma=Q.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=fe(p,o),x=y;delete x.size,delete x.color,delete x.radius,delete x.variant;const T={root:Pe.switchRoot,body:Pe.body,track:Pe.track,switchBase:Pe.switchBase,trackLabel:Pe.trackLabel,labelWrapper:Pe.labelWrapper,label:Pe.label},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const O=w;T.root=O.root?`${Pe.switchRoot} ${O.root}`:Pe.switchRoot,T.body=O.body?`${Pe.body} ${O.body}`:Pe.body,T.track=O.track?`${Pe.track} ${O.track}`:Pe.track,T.trackLabel=O.trackLabel?`${Pe.trackLabel} ${O.trackLabel}`:Pe.trackLabel,T.labelWrapper=O.labelWrapper?`${Pe.labelWrapper} ${O.labelWrapper}`:Pe.labelWrapper,T.label=O.label?`${Pe.label} ${O.label}`:Pe.label}const C=x.className,I=C?`${Pe.root} ${C}`:Pe.root,E=Q.useContext(yp),R=E!==null,$=R?!!E.readOnly:!1,L=R?(E.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=O=>{var z;if(!R)return;const k=E.value||[],D=x.value,N=O.target.checked?[...k,D]:k.filter(A=>A!==D);(z=E.onChange)==null||z.call(E,O,N)};if(s&&i){const O=i,k=b.jsx(O,{...t,checked:L,label:x.label});return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:k}):b.jsx(b.Fragment,{children:k})}const j=b.jsx("span",{className:Pe.thumb,children:b.jsxs("span",{className:Pe.thumbIconWrapper,children:[b.jsx(xv,{className:Pe.checkIcon}),b.jsx(Sv,{className:Pe.closeIcon})]})}),v=s||a||$,P=b.jsx(pe.Switch,{ref:n,className:m?Pe.inner:`${I} ${Pe.inner}`,classes:T,color:"default",disabled:v,"data-disabled":v||void 0,icon:j,checkedIcon:j,...y,...R?{checked:L,onChange:V}:{},disableRipple:!0}),_=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:Pe.body,children:[P,b.jsxs("div",{className:Pe.labelWrapper,children:[b.jsx("label",{className:Pe.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),f?b.jsx(cn,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(cn,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):P;return l?b.jsx(un,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:_}):_});Ma.displayName="Switch";Ma.Group=Na;const Cv="Table-module__root___aMWWS",wv={root:Cv},vp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className,a=wv.root,l=i?`${a} ${i}`:a;return b.jsx(pe.Table,{ref:o,...s,className:l})});vp.displayName="Table";const xp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableBody,{ref:o,...s})});xp.displayName="TableBody";const Sp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableCell,{ref:o,...s})});Sp.displayName="TableCell";const Cp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableContainer,{ref:o,...s})});Cp.displayName="TableContainer";const wp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableHead,{ref:o,...s})});wp.displayName="TableHead";const Tp=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableRow,{ref:o,...s})});Tp.displayName="TableRow";const Ip=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableFooter,{ref:o,...s})});Ip.displayName="TableFooter";const Ep=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableSortLabel,{ref:o,...s})});Ep.displayName="TableSortLabel";const Mn=vp;Mn.Body=xp;Mn.Cell=Sp;Mn.Container=Cp;Mn.Head=wp;Mn.Row=Tp;Mn.Footer=Ip;Mn.SortLabel=Ep;const Tv="Tabs-module__root___-VKVI",Iv="Tabs-module__list___qRVME",Ev="Tabs-module__indicator___kvQsf",Ov="Tabs-module__tab___IdDYc",_v="Tabs-module__panel___08i9c",ir={root:Tv,list:Iv,indicator:Ev,tab:Ov,panel:_v};function to(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}},Yr={exports:{}},Re={};/** @license React v16.13.1
|
|
1
|
+
"use strict";var Fh=Object.defineProperty;var Bh=(e,t,n)=>t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var U=(e,t,n)=>Bh(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),K=require("react"),pe=require("@mui/material"),$n=require("@emotion/react"),zh=require("@emotion/styled"),ir=require("react-dom");var Oi=typeof document<"u"?document.currentScript:null;function jd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const S=jd(K),Wh=jd(ir),Uh=["className","classes","style","sx","color","bgcolor","backgroundColor","typography","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderRadius","boxShadow","display","position","zIndex"],qh=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),ut={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function Mr(e){const t={...e};return"sx"in t&&delete t.sx,t}function fe(e,t){if(t)return e;const n={...e};for(const o of Uh)o in n&&delete n[o];for(const[o,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&qh.has(o)&&s in ut&&(n[o]=ut[s]);return n}const Hh="Accordion-module__root___Dem6d",Yh="Accordion-module__item___7ryVk",Gh="Accordion-module__noDivider___Ni2tT",Kh="Accordion-module__control___b4wgX",Xh="Accordion-module__label___Ss7uW",Qh="Accordion-module__chevron___i-HVZ",Zh="Accordion-module__iconLeftWrapper___5oLen",Jh="Accordion-module__panel___Wx50w",eg="Accordion-module__content___PEM9t",rn={root:Hh,item:Yh,noDivider:Gh,control:Kh,label:Xh,chevron:Qh,iconLeftWrapper:Zh,panel:Jh,content:eg},tg=()=>b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{width:"100%",height:"100%"},children:b.jsx("polyline",{points:"6 9 12 15 18 9"})}),Sa=K.createContext(null),Ld=K.forwardRef(function({variant:t="default",overStyled:n=!1,value:o,defaultValue:s,onChange:i,multiple:a=!1,chevron:l,children:c,...u},d){const m=fe(u,n),h=m.className,f=[rn.root,h].filter(Boolean).join(" ")||void 0,[g,p]=K.useState(s!==void 0?s:a?[]:null),y=o!==void 0?o:g,x=T=>{let w;if(a){const C=Array.isArray(y)?y:y?[y]:[];w=C.includes(T)?C.filter(I=>I!==T):[...C,T]}else w=y===T?null:T;p(w),i==null||i(w)};return b.jsx(Sa.Provider,{value:{value:y,onChange:x,chevron:l},children:b.jsx("div",{ref:d,...m,className:f,"data-variant":t,children:c})})});Ld.displayName="Accordion";const Ca=K.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:s,value:i,disabled:a=!1,overStyled:l=!1,style:c,...u},d){const m=fe(u,l),h=m.className,f=[rn.item,o?void 0:rn.noDivider,h].filter(Boolean).join(" ")||void 0,g=K.useContext(Sa),p=g?Array.isArray(g.value)?g.value.includes(i):g.value===i:void 0,y=()=>{g==null||g.onChange(i)},x={backgroundColor:"transparent",...c};return b.jsx(pe.Accordion,{ref:d,...m,className:f,disableGutters:!0,elevation:0,square:!0,expanded:p,onChange:y,disabled:a,"data-disabled":a||void 0,style:x,children:t?b.jsxs(b.Fragment,{children:[b.jsx(Ls,{leftIcon:n,children:t}),b.jsx(Vs,{children:s})]}):s})});Ca.displayName="AccordionItem";const Ls=K.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...s},i){const a=fe(s,o),l=a.className,c=[rn.control,l].filter(Boolean).join(" ")||void 0,u=K.useContext(Sa),d=(u==null?void 0:u.chevron)??b.jsx(tg,{});return b.jsxs(pe.AccordionSummary,{ref:i,...a,className:c,expandIcon:b.jsx("span",{className:rn.chevron,children:d}),children:[t&&b.jsx("span",{className:rn.iconLeftWrapper,"aria-hidden":!0,children:t}),b.jsx("div",{className:rn.label,children:n})]})});Ls.displayName="AccordionControl";const Vs=K.forwardRef(function({overStyled:t=!1,children:n,...o},s){const i=fe(o,t),a=i.className,l=[rn.panel,a].filter(Boolean).join(" ")||void 0;return b.jsx(pe.AccordionDetails,{ref:s,...i,className:l,children:b.jsx("div",{className:rn.content,children:n})})});Vs.displayName="AccordionPanel";const Fs=Ld;Fs.Item=Ca;Fs.Control=Ls;Fs.Panel=Vs;const ng="AssistiveElement-module__root___WhQ43",og="AssistiveElement-module__text___vrHAg",rg="AssistiveElement-module__icon___Q-CVz",Yr={root:ng,text:og,icon:rg},un=K.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:s=!0,overStyled:i=!1,className:a,children:l,role:c,...u}=t,d=fe(u,i),m=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10"}),b.jsx("path",{d:"M12 16v-4"}),b.jsx("path",{d:"M12 8h.01"})]}),h=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),b.jsx("path",{d:"M12 9v4"}),b.jsx("path",{d:"M12 17h.01"})]}),f=o==="error",g=c??(f?"alert":void 0);return b.jsxs(pe.FormHelperText,{ref:n,...d,component:"div",error:f,role:g,"data-variant":o,className:a?`${Yr.root} ${a}`:Yr.root,children:[s&&b.jsx("div",{className:Yr.icon,children:o==="error"?b.jsx(h,{}):b.jsx(m,{})}),b.jsx("div",{className:Yr.text,children:l})]})});un.displayName="AssistiveElement";const sg="Label-module__root___e6HXZ",ig="Label-module__innerLayout___Xxapo",ag="Label-module__text___OGeEw",lg="Label-module__required___Ggrzc",cg="Label-module__endNodes___es7ew",ug="Label-module__optionalText___Y2yun",dg="Label-module__actionArea___O-f1X",pg="Label-module__editIcon___9hO1G",qt={root:sg,innerLayout:ig,text:ag,required:lg,endNodes:cg,optionalText:ug,actionArea:dg,editIcon:pg},wa=K.forwardRef(function(t,n){const{overStyled:o=!1,required:s=!1,labelOptionalText:i="",labelWithEditIcon:a=!1,onLabelEditClick:l,labelActionArea:c,children:u,className:d,...m}=t,h=fe(m,o),f=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"M12 20h9"}),b.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return b.jsx(pe.InputLabel,{ref:n,...h,shrink:!0,className:d?`${qt.root} ${d}`:qt.root,children:b.jsxs("div",{className:qt.innerLayout,children:[b.jsxs("span",{className:qt.textWrapper,children:[b.jsx("span",{className:qt.text,children:u}),s&&b.jsx("span",{className:qt.required,children:" *"})]}),b.jsxs("div",{className:qt.endNodes,children:[c&&b.jsx("span",{className:qt.actionArea,children:c}),a&&b.jsx("button",{type:"button",className:qt.editIcon,onClick:l,"aria-label":"Edit label",children:b.jsx(f,{})})]}),!s&&i&&!c&&b.jsx("span",{className:qt.optionalText,children:i===!0?"(optional)":i})]})})});wa.displayName="Label";const fg="FormControlLayout-module__root___yNDhZ",mg="FormControlLayout-module__leftSection___GBM1r",hg="FormControlLayout-module__rightSection___bcL4v",Ko={root:fg,leftSection:mg,rightSection:hg},dn=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i="default",controlMaxWidth:a,controlMinWidth:l,leftSection:c,className:u,children:d,style:m,...h}=t,f=fe(h,o);return b.jsxs("div",{ref:n,className:u?`${Ko.root} ${u}`:Ko.root,"data-form-layout":s,style:{...m,...a?{"--form-control-max-width":a}:{},...l?{"--form-control-min-width":l}:{}},...f,children:[s==="side-by-side"?b.jsx("div",{className:Ko.leftSection,"data-label-size":i,children:c}):c&&b.jsx("div",{className:Ko.leftSection,"data-label-size":i,children:c}),b.jsx("div",{className:Ko.rightSection,children:d})]})});dn.displayName="FormControlLayout";const gg="FormControlWrapper-module__root___c-UHo",bg="FormControlWrapper-module__inputSection___HenXk",ki={root:gg,inputSection:bg},sn=K.forwardRef(function(t,n){const{overStyled:o=!1,label:s,assistiveText:i,description:a,helperText:l,assistiveWithIcon:c=!0,error:u,required:d,disabled:m,focused:h,id:f,formLayout:g="stacked",labelSize:p="default",labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:T,labelActionArea:w,controlMaxWidth:C,controlMinWidth:I,className:E,style:R,children:$,...L}=t,V=fe(L,o),A=K.useId(),v=f||`recursica-fc-${A}`,P=i||a||l,O=`${v}-label`,_=P?`${v}-assistive`:void 0,k=u?`${v}-error`:void 0,D=K.Children.map($,N=>{if(K.isValidElement(N)){const z=N.props;return K.cloneElement(N,{"aria-labelledby":O,..._&&!z["aria-describedby"]?{"aria-describedby":_}:{},...k&&!z["aria-errormessage"]?{"aria-errormessage":k}:{}})}return N});return b.jsx(pe.FormControl,{ref:n,error:!!u,required:d,disabled:m,focused:h,className:E?`${ki.root} ${E}`:ki.root,style:R,"data-error":u?"true":void 0,"data-disabled":m?"true":void 0,"data-focused":h?"true":void 0,...V,children:b.jsx(dn,{formLayout:g,labelSize:p,controlMaxWidth:C,controlMinWidth:I,leftSection:s&&b.jsx(wa,{id:O,htmlFor:v,required:d,labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:T,labelActionArea:w,children:s}),children:b.jsxs("div",{className:ki.inputSection,children:[D,(P||u)&&b.jsx(un,{id:u?k:_,assistiveVariant:u?"error":"help",assistiveWithIcon:c,children:u&&typeof u=="string"?u:P})]})})})});sn.displayName="FormControlWrapper";const yg="ReadOnlyField-module__root___hKci7",vg="ReadOnlyField-module__text___bPxk9",uo={root:yg,text:vg},Ta=K.forwardRef(function(t,n){const{value:o,type:s="text",readOnlyComponent:i,emptyValueComponent:a,className:l,...c}=t;if(a&&typeof a!="string"){const m=a;if(m.check&&m.check(o))return b.jsx(sn,{ref:n,className:`${uo.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return b.jsx(sn,{ref:n,className:`${uo.root} ${l||""}`,...c,children:b.jsx("p",{className:uo.text,children:"N/A"})});if(i){const m=i;return b.jsx(sn,{ref:n,className:`${uo.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}let d=o;return s==="boolean"||s==="switch"?(d=o?"True":"False",s==="switch"&&(d=o?"On":"Off")):Array.isArray(o)?d=o.join(", "):d=String(o),b.jsx(sn,{ref:n,className:`${uo.root} ${l||""}`,...c,children:b.jsx("p",{className:uo.text,children:d})})});Ta.displayName="ReadOnlyField";const Wt=K.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:s,readOnlyNativeProps:i,emptyValueComponent:a,activeComponent:l,overStyled:c,onLabelEditClick:u,...d},m){if(t){if(n){const h=n;return b.jsx(sn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:b.jsx(h,{...i})})}return b.jsx(Ta,{ref:m,type:o,value:s,emptyValueComponent:a,onLabelEditClick:u,overStyled:c,...d})}return b.jsx(sn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:l})});Wt.displayName="WithReadOnlyWrapper";const xg="Autocomplete-module__layoutOverride___IIkyG",Sg="Autocomplete-module__root___22Jqm",Cg="Autocomplete-module__input___MlbJR",wg="Autocomplete-module__section___WRvD5",Tg="Autocomplete-module__dropdown___A9XVI",Ig="Autocomplete-module__option___cZsvO",pt={layoutOverride:xg,root:Sg,input:Cg,section:wg,dropdown:Tg,option:Ig},Vd=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,withAsterisk:p,id:y,className:x,style:T,disabled:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,data:L,leftSection:V,rightSection:A,placeholder:v,ListboxProps:P,...O}=t,k=fe(O,o);delete k.size,delete k.variant,delete k.radius;const D={root:pt.root,inputRoot:pt.input,listbox:pt.dropdown,option:pt.option},N=k.classNames;if(N&&typeof N=="object"&&!Array.isArray(N)){const j=N;D.root=j.wrapper?`${pt.root} ${j.wrapper}`:pt.root,D.inputRoot=j.input?`${pt.input} ${j.input}`:pt.input,D.listbox=j.dropdown?`${pt.dropdown} ${j.dropdown}`:pt.dropdown,D.option=j.option?`${pt.option} ${j.option}`:pt.option}const z=x?`${pt.layoutOverride} ${x}`:pt.layoutOverride;return b.jsx(Wt,{className:z,style:T,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:y,disabled:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:D,disabled:w,value:R,defaultValue:$,forcePopupIcon:!1,"data-error":f?"true":void 0,"data-disabled":w?"true":void 0,"data-with-left-section":V?"true":void 0,"data-with-right-section":A?"true":void 0,ListboxProps:{...P,className:D.listbox},options:L||[],renderInput:j=>{const{InputProps:B,...W}=j;return b.jsx(pe.TextField,{...W,placeholder:v,variant:"standard",InputProps:{...B,startAdornment:V?b.jsx("span",{className:pt.section,"data-position":"left",children:V}):B.startAdornment,endAdornment:A?b.jsx("span",{className:pt.section,"data-position":"right",children:A}):B.endAdornment}})}})})});Vd.displayName="Autocomplete";const Eg="Avatar-module__root___fXu-J",_g="Avatar-module__iconWrapper___ojly2",Og="Avatar-module__textWrapper___zp-jD",kg="Avatar-module__image___ieqGp",Pg="Avatar-module__placeholder___IDW7-",jt={root:Eg,iconWrapper:_g,textWrapper:Og,image:kg,placeholder:Pg},Fd=K.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:s,src:i,overStyled:a=!1,...l},c){const u=fe(l,a),d=u;let m="text";i?m="image":o&&(m="icon");const h={root:jt.root,image:jt.image,placeholder:jt.placeholder},f=d.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const p=f;h.root=p.root?`${jt.root} ${p.root}`:jt.root,h.image=p.image?`${jt.image} ${p.image}`:jt.image,h.placeholder=p.placeholder?`${jt.placeholder} ${p.placeholder}`:jt.placeholder}const g=d.className;return b.jsx(pe.Avatar,{ref:c,className:g,classes:h,variant:"circular",src:i,"data-variant":n,"data-size":t,"data-style":m,...u,children:o!=null?b.jsx("span",{className:jt.iconWrapper,"aria-hidden":!0,children:o}):s!=null?b.jsx("span",{className:jt.textWrapper,children:s}):void 0})});Fd.displayName="Avatar";const Rg=Fd,Ng="Badge-module__root___5osNT",Xo={root:Ng},Bd=K.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},s){const i=fe(o,n),a={root:Xo.root},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${Xo.root} ${d.root}`:Xo.root}const c=i.className,u=c?`${Xo.root} ${c}`:Xo.root;return b.jsx(pe.Badge,{ref:s,variant:"standard","data-variant":t,...i,className:u,classes:a})});Bd.displayName="Badge";const Mg=Bd,$g=K.forwardRef(function(t,n){return b.jsx(pe.Box,{ref:n,...t})}),Dg="Breadcrumb-module__root___x-9ln",Ag="Breadcrumb-module__separator___qrUX-",vn={root:Dg,separator:Ag},zd=K.forwardRef(function({overStyled:t=!1,separator:n=">",...o},s){const i=fe({separator:n,...o},t),a={root:vn.root,separator:vn.separator},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${vn.root} ${d.root}`:vn.root,a.separator=d.separator?`${vn.separator} ${d.separator}`:vn.separator}const c=i.className,u=c?`${vn.root} ${c}`:vn.root;return b.jsx(pe.Breadcrumbs,{ref:s,...i,className:u,classes:a})});zd.displayName="Breadcrumb";const jg="Loader-module__root___6iYOP",uc={root:jg},Ia=K.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...s},i){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",c=fe(s,o),u=c.className,d=u?`${uc.root} ${u}`:uc.root,m=()=>t==="bars"||t==="dots"?b.jsxs(b.Fragment,{children:[b.jsx("span",{}),b.jsx("span",{}),b.jsx("span",{})]}):null;return b.jsx("span",{ref:i,"data-variant":t,"data-size":l,...c,className:d,children:m()})});Ia.displayName="Loader";const Lg="Button-module__root___Q2R8-",Vg="Button-module__labelText___rFV5p",Fg="Button-module__iconWrapper___uEKPa",Qo={root:Lg,labelText:Vg,iconWrapper:Fg};function Bg(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const Bs=K.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:s,overStyled:i=!1,loaderVariant:a="oval",loaderSize:l,useRecursicaLoader:c=!0,...u},d){const m=fe(u,i),h=m;delete h.color;const f=!!o||!!h.startIcon,g=!!h.endIcon,p=Bg(s),y=(f||g)&&!p;let x="label";y?x="icon-only":(f||g)&&(x="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&y&&!h["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const T=h.className,w=T?`${Qo.root} ${T}`:Qo.root;delete h.className;const C=l??(n==="small"?"small":"default");let I=h.loadingIndicator;return c&&(I=b.jsx(Ia,{variant:a,size:C})),b.jsx(pe.Button,{ref:d,disableRipple:!0,disableElevation:!0,className:w,loading:!!h.loading,loadingIndicator:I,fullWidth:!!h.fullWidth,startIcon:h.loading?b.jsx("span",{className:Qo.iconWrapper,"aria-hidden":!0,children:I}):o!=null?b.jsx("span",{className:Qo.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":x,...h.loading?{"data-loading":"true"}:{},...m,disabled:!!h.disabled||!!h.loading,children:b.jsx("span",{className:Qo.labelText,children:s})})});Bs.displayName="Button";const zg="Card-module__root___c9KvZ",Wg="Card-module__header___PTXf2",Ug="Card-module__footer___Mu-JC",qg="Card-module__section___BRT8H",Hg="Card-module__content___oFIQa",pn={root:zg,header:Wg,footer:Ug,section:qg,content:Hg},Wd=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(u=>{u in n&&!(u in s)&&(s[u]=n[u])});const a={root:pn.root},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;Object.keys(u).forEach(d=>{a[d]?a[d]=`${a[d]} ${u[d]}`:a[d]=u[d]})}const c=s.className;return b.jsx(pe.Card,{ref:o,...s,className:c,classes:a})});Wd.displayName="Card";const Ud=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${pn.section} ${i}`:pn.section})});Ud.displayName="CardSection";const qd=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${pn.header} ${i}`:pn.header})});qd.displayName="CardHeader";const Hd=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${pn.footer} ${i}`:pn.footer})});Hd.displayName="CardFooter";const Yd=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${pn.content} ${i}`:pn.content})});Yd.displayName="CardContent";const Gd=Wd,zs=Gd;zs.Section=Ud;zs.Header=qd;zs.Footer=Hd;zs.Content=Yd;const Yg=Gd,Gg="Checkbox-module__groupRoot___cBS0o",Kg="Checkbox-module__root___mY3qk",Xg="Checkbox-module__body___5yC7q",Qg="Checkbox-module__inner___rTke4",Zg="Checkbox-module__input___2kt-h",Jg="Checkbox-module__inputChecked___zaCIH",eb="Checkbox-module__inputIndeterminate___CVPhn",tb="Checkbox-module__disabled___x7-eg",nb="Checkbox-module__icon___-O7i6",ob="Checkbox-module__labelWrapper___GpZkr",rb="Checkbox-module__label___cwRtI",Ge={groupRoot:Gg,root:Kg,body:Xg,inner:Qg,input:Zg,inputChecked:Jg,inputIndeterminate:eb,disabled:tb,icon:nb,labelWrapper:ob,label:rb},Kd=K.createContext(null),Ea=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:T,children:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,onChange:L,row:V,...A}=t,v=fe(A,o),P=v;delete P.size;const O=(_,k)=>{L&&L(k)};return b.jsx(Wt,{className:x,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(Kd.Provider,{value:{value:R!==void 0?R:$,onChange:O,name:P.name,readOnly:C||!!P.disabled},children:b.jsx(pe.FormGroup,{ref:n,row:V,...v,className:`${Ge.groupRoot} ${v.className||""}`.trim(),"data-layout":s,children:w})})})});Ea.displayName="CheckboxGroup";const _a=K.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=fe(p,o),x=y;delete x.size,delete x.color;const T={root:Ge.root,checked:Ge.checked,disabled:Ge.disabled},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const _=w;T.root=_.root?`${Ge.root} ${_.root}`:Ge.root,T.checked=_.checked?`${Ge.checked} ${_.checked}`:Ge.checked,T.disabled=_.disabled?`${Ge.disabled} ${_.disabled}`:Ge.disabled}const C=x.className,I=C?`${Ge.root} ${C}`:Ge.root,E=K.useContext(Kd),R=E!==null,$=R?E.readOnly:!1,L=R?(E.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=R||x.checked!==void 0;if(s&&i){const _=i,k=b.jsx(_,{...t,checked:L,label:m});return l?b.jsx(dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:k}):b.jsx(b.Fragment,{children:k})}const A=_=>{if(R){const k=_.target.checked?[...E.value||[],x.value]:(E.value||[]).filter(D=>D!==x.value);E.onChange&&E.onChange(_,k)}else x.onChange&&x.onChange(_,_.target.checked)},v=_=>b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",..._,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),P=b.jsx(pe.Checkbox,{ref:n,className:m?Ge.inner:`${I} ${Ge.inner}`,classes:T,disabled:s||a||$,...y,...V?{checked:L}:{},onChange:A,disableRipple:!0,sx:m?{padding:0}:void 0,icon:b.jsx("div",{className:Ge.input}),checkedIcon:b.jsx("div",{className:`${Ge.input} ${Ge.inputChecked}`,children:b.jsx(v,{className:Ge.icon})}),indeterminateIcon:b.jsx("div",{className:`${Ge.input} ${Ge.inputIndeterminate}`,children:b.jsx("svg",{className:Ge.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:b.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),O=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:Ge.body,children:[P,b.jsxs("div",{className:Ge.labelWrapper,children:[b.jsx("label",{className:Ge.label,htmlFor:x.id,"data-disabled":s||a||$?!0:void 0,children:m}),f?b.jsx(un,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(un,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):b.jsx("div",{className:I,style:g,children:P});return l?b.jsx(dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:O}):O});_a.displayName="Checkbox";_a.Group=Ea;const sb="Chip-module__root___f5pFk",ib="Chip-module__label___Ov9pg",ab="Chip-module__checkIconWrapper___1OtE-",lb="Chip-module__innerWrapper___EnrTF",cb="Chip-module__children___zbRAR",ub="Chip-module__leadingIcon___JBtjQ",db="Chip-module__removeIconWrapper___VOO7u",ht={root:sb,label:ib,checkIconWrapper:ab,innerWrapper:lb,children:cb,leadingIcon:ub,removeIconWrapper:db};function pb(e){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[b.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function fb(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const ys=K.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:s="Remove",removeTabIndex:i,removeIconRef:a,children:l,checked:c,overStyled:u=!1,...d},m){const h=fe(d,u),f=h,g={root:ht.root,label:ht.label,icon:ht.leadingIcon,deleteIcon:ht.removeIconWrapper},p=f.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const E=p;g.root=E.root?`${ht.root} ${E.root}`:ht.root,g.label=E.label?`${ht.label} ${E.label}`:ht.label}const y=f.className,x=y?`${ht.root} ${y}`:ht.root,T=t?"":void 0,w=c?"":void 0,C=!l&&(!!n||!!o),I=o!==void 0||f.onClick!==void 0||f.onChange!==void 0;return b.jsx(pe.Chip,{ref:m,className:x,classes:g,...T!==void 0?{"data-error":""}:{},...w!==void 0?{"data-checked":""}:{},...C?{"data-icon-only":""}:{},...I?{"data-interactive":""}:{},...h,icon:c?b.jsx("span",{className:ht.checkIconWrapper,"aria-hidden":!0,children:b.jsx(fb,{})}):n?b.jsx("span",{className:ht.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?b.jsx("span",{ref:a,role:"button",className:ht.removeIconWrapper,"aria-label":s,tabIndex:i??0,onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),E.stopPropagation(),o(E))},children:b.jsx(pb,{})}):void 0,label:b.jsx("span",{className:ht.innerWrapper,children:b.jsx("span",{className:ht.children,children:l})})})});ys.displayName="Chip";const Xd=K.forwardRef(function({children:t,size:n,fluid:o,...s},i){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=o?!1:typeof n=="string"&&a[n]?a[n]:n;return b.jsx(pe.Container,{ref:i,maxWidth:l,...s,children:t})});Xd.displayName="Container";const mb=({disabled:e,label:t,assistiveText:n,error:o,required:s,withAsterisk:i,placeholder:a,value:l,defaultValue:c,onChange:u,readOnly:d,formLayout:m,leftSection:h,labelWithEditIcon:f,onLabelEditClick:g,...p})=>b.jsx("div",{...p,children:"DatePicker"}),hb="Dropdown-module__layoutOverride___FNcvP",gb="Dropdown-module__root___uVyL0",bb="Dropdown-module__input___dK4dN",yb="Dropdown-module__dropdown___gG-Sw",vb="Dropdown-module__option___nAGU-",gt={layoutOverride:hb,root:gb,input:bb,dropdown:yb,option:vb},Qd=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",containerWidth:i,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,withAsterisk:y,id:x,className:T,style:w,disabled:C,readOnly:I,readOnlyComponent:E,emptyValueComponent:R,value:$,defaultValue:L,data:V,searchable:A,clearable:v,...P}=t,O=fe(P,o),_=O;delete _.size,delete _.variant;const k={...w||{},width:i||"100%"},D=T?`${gt.layoutOverride} ${T}`:gt.layoutOverride,N=()=>V?V.map((z,j)=>typeof z=="string"?b.jsx(pe.MenuItem,{value:z,className:gt.option,"data-selected":z===($??L)?"true":void 0,children:z},`${z}-${j}`):b.jsx(pe.MenuItem,{value:z.value,disabled:z.disabled,className:gt.option,"data-selected":z.value===($??L)?"true":void 0,children:z.label},`${z.value}-${j}`)):null;return b.jsx(Wt,{className:D,style:k,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:!!g,required:p,id:x,readOnly:I,readOnlyComponent:E,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:$!==void 0?String($):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Select,{ref:n,disabled:C,value:$,defaultValue:L,error:!!g,required:p,displayEmpty:!0,className:gt.root,classes:{select:gt.input,icon:gt.icon},MenuProps:{classes:{paper:gt.dropdown}},"data-disabled":C?"true":void 0,"data-error":g?"true":void 0,inputProps:{"data-disabled":C?"true":void 0,"data-error":g?"true":void 0,..._.inputProps},...O,children:N()})})});Qd.displayName="Dropdown";const xb=e=>b.jsx("div",{...e,children:"FileInput"}),Sb="FileUpload-module__layoutOverride___bPpi8",Cb="FileUpload-module__root___Q-vcm",wb="FileUpload-module__dropzone___jqua0",Tb="FileUpload-module__uploadIcon___bb3Nc",Ib="FileUpload-module__dropzoneText___L7vS-",Eb="FileUpload-module__fileList___XIWLl",xn={layoutOverride:Sb,root:Cb,dropzone:wb,uploadIcon:Tb,dropzoneText:Ib,fileList:Eb},_b="_root_1qhn7_3",Ob="_contents_1qhn7_18",po={root:_b,contents:Ob},Oa=K.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:s,...i},a){const l=t?o?`${po.root} ${po.contents} ${o}`:`${po.root} ${po.contents}`:o?`${po.root} ${o}`:po.root;return b.jsx("div",{ref:a,className:l,style:s,...t?{}:{"data-recursica-layer":String(e)},...i,children:n})});Oa.displayName="Layer";const ka=({emptyText:e="N/A"})=>b.jsx(K.Fragment,{children:e});ka.displayName="EmptyValueRenderer";ka.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const kb={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},Rn=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Oi&&Oi.tagName.toUpperCase()==="SCRIPT"&&Oi.src||new URL("mui-adapter.cjs",document.baseURI).href}&&kb)return!0}catch{}if(typeof window<"u"){const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")}return!1})(),Xi=new Set;let En=!1;function Zd(e){if(!Rn)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(En=e!==void 0?e:!En,typeof document<"u"){const t=document.documentElement,n=En?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${En?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return Xi.forEach(t=>t()),En}function Pb(){return Rn&&En}function Jd(){const[e,t]=K.useState(En);return K.useEffect(()=>{if(!Rn)return;Pa(),Ra();const n=()=>t(En);return Xi.add(n),()=>{Xi.delete(n)}},[]),Rn&&e}function Pa(){if(!Rn)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const e="recursica-over-styled-styles";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`
|
|
2
|
+
:root {
|
|
3
|
+
--recursica-over-styled-shadow: none;
|
|
4
|
+
}
|
|
5
|
+
.recursica-over-styled {
|
|
6
|
+
display: contents !important;
|
|
7
|
+
}
|
|
8
|
+
.recursica-over-styled > * {
|
|
9
|
+
box-shadow: var(--recursica-over-styled-shadow) !important;
|
|
10
|
+
}
|
|
11
|
+
`,document.head.appendChild(t))}function Ra(){if(!Rn)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const e=t=>{try{t.recursica=t.recursica||{},t.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Zd()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const dc="data-recursica-theme";function Rb({children:e,theme:t="light",initLayer0:n=!0}){return K.useEffect(()=>{const o=document.documentElement;return o.setAttribute(dc,t),()=>{o.removeAttribute(dc)}},[t]),K.useEffect(()=>{Pa(),Ra()},[]),n?b.jsx(Oa,{layer:0,children:e}):b.jsx(b.Fragment,{children:e})}const Nb=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],Mb=(e,t)=>{const n=document.activeElement;return new Promise((o,s)=>{if(t&&t.current){const i=document.createElement("textarea");i.readOnly=!0,i.defaultValue=e,t.current.appendChild(i),i.select();const a=document.execCommand("copy");t.current.removeChild(i),n&&n.focus(),a?o():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function ep(e,t){const n=(t??"").split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const o=e.name.toLowerCase(),s=e.type.toLowerCase();return n.some(i=>i.startsWith(".")?o.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i)}function be(e){if(!Rn||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=K.forwardRef((o,s)=>{const{overStyled:i}=o,a=Jd(),l=K.createElement(e,{...o,ref:s});return i&&a?b.jsx("div",{className:"recursica-over-styled",children:l}):l});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const s=e[o];(typeof s=="function"||s&&s.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=be(s):t[o]=s}return t}function $b(){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[b.jsx("path",{d:"M12 3v12"}),b.jsx("path",{d:"M7 8l5-5 5 5"}),b.jsx("path",{d:"M4 21h16"})]})}const tp=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,withAsterisk:y,id:x,className:T,style:w,disabled:C,readOnly:I,files:E,onFilesAdded:R,onFileRemove:$,accept:L,multiple:V=!0,maxSize:A,maxFiles:v,onFilesRejected:P,invalidFileTypeMessage:O="File type not accepted",maxFilesMessage:_=`Maximum of ${v} files allowed`,icon:k,dropzoneLabel:D="Drag and drop files here to upload",browseButtonLabel:N="Browse files",removeFileLabel:z="Remove",...j}=t,W=fe(j,o),X=K.useRef(null),[Z,Y]=K.useState(!1),[Q,ne]=K.useState(!1),H=xe=>{if(C)return;const Ce=Array.from(xe);if(Ce.length===0)return;const Ne=(E==null?void 0:E.length)??0,rt=[],yn=[];let zn=!1,Wn=!1;for(const co of Ce){const Un=!ep(co,L);Un&&(zn=!0);const Hr=A!==void 0&&co.size>A,Et=v!==void 0&&Ne+rt.length>=v;Et&&(Wn=!0),(Un||Hr||Et?yn:rt).push(co)}Y(zn),ne(Wn),rt.length>0&&(R==null||R(rt)),yn.length>0&&(P==null||P(yn))},F=K.useRef(0),[q,ae]=K.useState(!1),G=xe=>{xe.preventDefault(),F.current+=1,ae(!0)},ue=xe=>{xe.preventDefault(),F.current-=1,F.current<=0&&(F.current=0,ae(!1))},oe=xe=>{xe.preventDefault()},ye=xe=>{xe.preventDefault(),F.current=0,ae(!1),H(xe.dataTransfer.files)},he=()=>{var xe;C||(xe=X.current)==null||xe.click()},re=xe=>{xe.target.files&&H(xe.target.files),xe.target.value=""},[J,ge]=K.useState(0),ie=K.useRef([]),me=K.useRef((E==null?void 0:E.length)??0);K.useEffect(()=>{var Ce;const xe=(E==null?void 0:E.length)??0;if(xe>0&&xe<me.current){const Ne=Math.min(J,xe-1);ge(Ne),(Ce=ie.current[Ne])==null||Ce.focus()}me.current=xe},[E]);const se=xe=>{var rt;const Ce=(E==null?void 0:E.length)??0;if(Ce===0)return;let Ne;xe.key==="ArrowRight"||xe.key==="ArrowDown"?Ne=(J+1)%Ce:(xe.key==="ArrowLeft"||xe.key==="ArrowUp")&&(Ne=(J-1+Ce)%Ce),Ne!==void 0&&(xe.preventDefault(),ge(Ne),(rt=ie.current[Ne])==null||rt.focus())},Ie=g??(Z?O:Q?_:void 0),Pe=T?`${xn.layoutOverride} ${T}`:xn.layoutOverride;return b.jsx(sn,{overStyled:o,className:Pe,style:w,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:Ie,required:p,disabled:C,id:x,children:b.jsxs("div",{ref:n,className:xn.root,"data-disabled":C?"true":void 0,"data-error":Ie?"true":void 0,...W,children:[!I&&b.jsxs("div",{className:xn.dropzone,"data-dragging":q?"true":void 0,onDragEnter:C?void 0:G,onDragLeave:C?void 0:ue,onDragOver:C?void 0:oe,onDrop:C?void 0:ye,children:[b.jsx("span",{className:xn.uploadIcon,children:k??b.jsx($b,{})}),b.jsx("span",{className:xn.dropzoneText,children:D}),b.jsx(Bs,{variant:"outline",disabled:C,onClick:he,children:N}),b.jsx("input",{ref:X,type:"file",hidden:!0,accept:L,multiple:V,disabled:C,onChange:re})]}),E&&E.length>0&&(I?b.jsx("div",{className:xn.fileList,children:E.map(xe=>{const Ce=xe.id??xe.file.name;return b.jsx(ys,{tabIndex:-1,children:xe.file.name},Ce)})}):b.jsx("div",{className:xn.fileList,onKeyDown:se,children:E.map((xe,Ce)=>{const Ne=xe.id??xe.file.name;return b.jsx(ys,{tabIndex:-1,removeLabel:z,removeTabIndex:Ce===J?0:-1,removeIconRef:rt=>{ie.current[Ce]=rt},onRemove:C?void 0:()=>$==null?void 0:$(Ne),children:xe.file.name},Ne)})}))]})})});tp.displayName="FileUpload";const np=K.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,direction:i,align:a,justify:l,wrap:c,...u},d){const m=Mr(u),h=typeof n=="string"&&n in ut?ut[n]:n,f=typeof o=="string"&&o in ut?ut[o]:o,g=typeof s=="string"&&s in ut?ut[s]:s;return b.jsx(pe.Box,{ref:d,...m,display:"flex",gap:h,rowGap:f,columnGap:g,flexDirection:i,alignItems:a,justifyContent:l,flexWrap:c,children:t})});np.displayName="Flex";const Db="Grid-module__root___s-qPY",Ab="Grid-module__col___tbuNg",jb="Grid-module__hiddenFromXs___Ap3ch",Lb="Grid-module__hiddenFromSm___ZD0Wm",Vb="Grid-module__hiddenFromMd___O3Zhg",Fb="Grid-module__hiddenFromLg___RxDrc",Bb="Grid-module__hiddenFromXl___k7ytz",zb="Grid-module__visibleFromSm___w20SX",Wb="Grid-module__visibleFromMd___ePFrO",Ub="Grid-module__visibleFromLg___L6vtD",qb="Grid-module__visibleFromXl___HLWTL",Bt={root:Db,col:Ab,hiddenFromXs:jb,hiddenFromSm:Lb,hiddenFromMd:Vb,hiddenFromLg:Fb,hiddenFromXl:Bb,visibleFromSm:zb,visibleFromMd:Wb,visibleFromLg:Ub,visibleFromXl:qb},op=K.createContext({grow:!1});function Na(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function pc(e){return e==="auto"?"grow":e==="content"?"auto":e}function Hb(e){const t=Na(e);if(t===void 0||typeof t!="object")return pc(t);const n={};return Object.entries(t).forEach(([o,s])=>{n[o]=pc(s)}),n}function Yb(e){return Na(e)}function Gb(e){if(e===void 0||typeof e=="number")return e;const t=Na(e);return t.xs??t.sm??t.md??t.lg??t.xl}const Kb={xs:Bt.hiddenFromXs,sm:Bt.hiddenFromSm,md:Bt.hiddenFromMd,lg:Bt.hiddenFromLg,xl:Bt.hiddenFromXl},Xb={sm:Bt.visibleFromSm,md:Bt.visibleFromMd,lg:Bt.visibleFromLg,xl:Bt.visibleFromXl};function fc(e){return e==="base"?"xs":e}const rp=K.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:s=!1,justify:i,align:a,style:l,...c},u){const d=Mr(c),m=typeof n=="string"&&n in ut?ut[n]:n;return b.jsx(op.Provider,{value:{grow:s},children:b.jsx(pe.Grid,{ref:u,...d,container:!0,columns:o,spacing:m,className:Bt.root,style:{justifyContent:i,alignItems:a,...l},children:t})})});rp.displayName="Grid";const Ma=K.forwardRef(function({children:t,span:n,offset:o,order:s,visibleFrom:i,hiddenFrom:a,style:l,className:c,...u},d){const{grow:m}=K.useContext(op),h=Mr(u),f=Gb(s),g=i?Xb[fc(i)]:a?Kb[fc(a)]:void 0,p=[Bt.col,g,c].filter(Boolean).join(" ");return b.jsx(pe.Grid,{ref:d,size:Hb(n),offset:Yb(o),className:p,...h,style:{order:f,...m?{flexGrow:1}:{},...l},children:t})});Ma.displayName="GridCol";const sp=rp;sp.Col=Ma;const ip=K.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,justify:i,align:a,wrap:l,...c},u){const d=Mr(c),m=typeof n=="string"&&n in ut?ut[n]:n,h=typeof o=="string"&&o in ut?ut[o]:o,f=typeof s=="string"&&s in ut?ut[s]:s;return b.jsx(pe.Stack,{ref:u,...d,direction:"row",flexWrap:l||"wrap",justifyContent:i,alignItems:a,spacing:m,sx:{...h?{rowGap:h}:{},...f?{columnGap:f}:{}},children:t})});ip.displayName="Group";const Qb="HoverCard-module__dropdown___FBPFW",Zb="HoverCard-module__arrow___S9AkE",mc={dropdown:Qb,arrow:Zb},ap=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:s=0,closeDelay:i=150,disabled:a=!1,offset:l=5,children:c,...u}){const d=fe(u,t),m={tooltip:mc.dropdown,arrow:mc.arrow},h=d.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const p=h;Object.keys(p).forEach(y=>{m[y]?m[y]=`${m[y]} ${p[y]}`:m[y]=p[y]})}let f=null,g=null;return K.Children.forEach(c,p=>{var y,x;if(K.isValidElement(p)){const T=p;((y=T.type)==null?void 0:y.displayName)==="HoverCardTarget"?f=T.props.children:((x=T.type)==null?void 0:x.displayName)==="HoverCardDropdown"&&(g=T.props.children)}}),f||(f=b.jsx("div",{})),g||(g=b.jsx("div",{})),b.jsx(pe.Tooltip,{...d,title:g,placement:o,arrow:n,enterDelay:s,leaveDelay:i,disableHoverListener:a,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,l]}}]}},classes:m,children:K.isValidElement(f)?f:b.jsx("span",{children:f})})};ap.displayName="HoverCard";const lp=function({children:t}){return b.jsx(b.Fragment,{children:t})};lp.displayName="HoverCardTarget";const cp=function({children:t}){return b.jsx(b.Fragment,{children:t})};cp.displayName="HoverCardDropdown";const $a=ap;$a.Target=lp;$a.Dropdown=cp;const Jb="Link-module__root___I0VGE",ey="Link-module__iconWrapper___W-LlF",ty="Link-module__labelText___wSvUy",Gr={root:Jb,iconWrapper:ey,labelText:ty},up=K.forwardRef(function({icon:t,children:n,overStyled:o=!1,...s},i){const a=fe(s,o),c=a.className,u=c?`${Gr.root} ${c}`:Gr.root;return b.jsxs(pe.Link,{ref:i,className:u,underline:"none",...t?{"data-has-icon":""}:{},...a,children:[t&&b.jsx("span",{className:Gr.iconWrapper,"aria-hidden":!0,children:t}),b.jsx("span",{className:Gr.labelText,children:n})]})});up.displayName="Link";const ny="Menu-module__dropdown___j4xuA",oy="Menu-module__item___NMXha",ry="Menu-module__divider___wPiNq",dr={dropdown:ny,item:oy,divider:ry},dp=K.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.Menu,{ref:s,...i,className:`${dr.dropdown} ${n||""}`,classes:{paper:dr.dropdown,list:dr.dropdown}})});dp.displayName="Menu";const pp=K.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.MenuItem,{ref:s,className:`${dr.item} ${n||""}`,...i})});pp.displayName="MenuItem";const fp=K.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.Divider,{ref:s,className:`${dr.divider} ${n||""}`,...i})});fp.displayName="MenuDivider";const sy="Modal-module__root___ytPLl",iy="Modal-module__inner___SSUJE",ay="Modal-module__content___dWO-B",ly="Modal-module__header___ILG9i",cy="Modal-module__title___A5OeE",uy="Modal-module__scrollArea___KD-hm",dy="Modal-module__footer___rro2w",py="Modal-module__close___-ER1C",on={root:sy,inner:iy,content:ay,header:ly,title:cy,scrollArea:uy,footer:dy,close:py},fy=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),mp=K.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:s,children:i,onClose:a,className:l,...c},u){const d=fe(c,t);let m=null;const h=[];return K.Children.forEach(i,f=>{var g;K.isValidElement(f)&&(f.type===Aa||((g=f.type)==null?void 0:g.displayName)==="Modal.Footer")?m=f:h.push(f)}),b.jsxs(pe.Dialog,{ref:u,...d,className:`${on.root} ${l||""}`,classes:{paper:on.inner},open:n||d.open||!1,onClose:a,children:[(s||o)&&b.jsxs("div",{className:on.header,children:[s&&b.jsx("div",{className:on.title,children:s}),o&&b.jsx(pe.IconButton,{onClick:f=>a==null?void 0:a(f,"backdropClick"),className:on.close,children:b.jsx(fy,{})})]}),b.jsx(Da,{children:h}),m]})});mp.displayName="Modal";const hp=K.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.DialogTitle,{ref:s,className:`${on.title} ${n||""}`,...i})});hp.displayName="Modal.Title";const Da=K.forwardRef(function({overStyled:t=!1,className:n,children:o,...s},i){const a=fe(s,t),l=K.useRef(null),[c,u]=K.useState(!1),[d,m]=K.useState(!1),h=K.useCallback(()=>{if(l.current){const{scrollTop:f,scrollHeight:g,clientHeight:p}=l.current;u(f>0),m(Math.ceil(f+p)<g)}},[]);return K.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,o]),b.jsx(pe.DialogContent,{ref:f=>{typeof i=="function"?i(f):i&&(i.current=f),l&&(l.current=f)},onScroll:()=>h(),"data-scrolled-top":c||void 0,"data-scrolled-bottom":d||void 0,className:`${on.content} ${on.scrollArea} ${n||""}`,...a,children:o})});Da.displayName="Modal.Body";const Aa=K.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=fe(o,t);return b.jsx(pe.DialogActions,{ref:s,className:`${on.footer} ${n||""}`,...i})});Aa.displayName="Modal.Footer";const Ws=mp;Ws.Title=hp;Ws.Body=Da;Ws.Footer=Aa;const my="NumberInput-module__layoutOverride___5-9T4",hy="NumberInput-module__root___C6rAn",gy="NumberInput-module__input___Ss8p7",by="NumberInput-module__section___MijP0",yy="NumberInput-module__controls___8UfQ2",vy="NumberInput-module__control___Qre9-",qn={layoutOverride:my,root:hy,input:gy,section:by,controls:yy,control:vy},gp=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:T,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:R,leftSection:$,rightSection:L,min:V,max:A,step:v,hideControls:P=!1,...O}=t,_=fe(O,o),k=_;delete k.size,delete k.variant,delete k.radius;const D={wrapper:qn.root,input:qn.input,section:qn.section,controls:qn.controls,control:qn.control},N=y?`${qn.layoutOverride} ${y}`:qn.layoutOverride,z=$?b.jsx("div",{className:D.section,"data-position":"left",children:$}):void 0,j=L?b.jsx("div",{className:D.section,"data-position":"right",children:L}):void 0;return b.jsx(Wt,{className:N,style:x,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:E!==void 0?E==null?void 0:E.toString():R==null?void 0:R.toString(),readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{ref:n,..._,classes:D,disabled:T,value:E,defaultValue:R,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:z,endAdornment:j},inputProps:{min:V,max:A,step:v,...k.inputProps}})})});gp.displayName="NumberInput";const xy="Pagination-module__root___ITRjt",Sn={root:xy};function Sy(e){const t={root:Sn.root,ul:Sn.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${Sn.root} ${i.root}`:Sn.root,t.ul=i.ul?`${Sn.ul} ${i.ul}`:Sn.ul}const o=e.className;return{className:o?`${Sn.root} ${o}`:Sn.root,classNames:t}}const bp=K.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:s,total:i,withEdges:a,withControls:l,...c}=t,u=fe(c,o),d=Sy(u);return b.jsx("div",{ref:n,className:d.className,children:b.jsx(pe.Pagination,{...u,count:i,showFirstButton:a,showLastButton:a,hidePrevButton:l===!1?!0:void 0,hideNextButton:l===!1?!0:void 0,classes:d.classNames})})});bp.displayName="Pagination";const Cy=bp,wy="Panel-module__content___wdGo-",Ty="Panel-module__inner___ruA2b",Iy="Panel-module__header___o7SiC",Ey="Panel-module__title___181OP",_y="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Oy="Panel-module__body___SEC3T",ky="Panel-module__footer___t6-hz",Tn={content:wy,inner:Ty,header:Iy,title:Ey,titleTruncate:_y,body:Oy,footer:ky},yp=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:s=!1,opened:i,...a}){const l=fe(a,t),c={content:Tn.content,header:Tn.header,title:s?Tn.titleTruncate:Tn.title,body:Tn.body,inner:Tn.inner},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const d=u;Object.keys(d).forEach(m=>{c[m]?c[m]=`${c[m]} ${d[m]}`:c[m]=d[m]})}return b.jsx(pe.Drawer,{anchor:n,keepMounted:o,open:!!i,...l,classes:c})};yp.displayName="Panel";const ja=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className,a=i?`${Tn.footer} ${i}`:Tn.footer;return b.jsx("div",{ref:o,...s,className:a})});ja.displayName="PanelFooter";const vp=yp;vp.Footer=ja;const Py="Radio-module__groupRoot___bfUii",Ry="Radio-module__root___kAjTD",Ny="Radio-module__body___q2Wpj",My="Radio-module__inner___QaTBB",$y="Radio-module__radio___MfgN-",Dy="Radio-module__radioChecked___ZFb28",Ay="Radio-module__disabled___0-cna",jy="Radio-module__icon___DWznm",Ly="Radio-module__labelWrapper___dB0Gi",Vy="Radio-module__label___vAFIP",tt={groupRoot:Py,root:Ry,body:Ny,inner:My,radio:$y,radioChecked:Dy,disabled:Ay,icon:jy,labelWrapper:Ly,label:Vy},La=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:T,children:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,onChange:L,...V}=t,A=fe(V,o),v=A;return delete v.size,b.jsx(Wt,{className:x,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(pe.RadioGroup,{ref:n,...A,value:R,defaultValue:$,onChange:L?(P,O)=>L(O):void 0,className:tt.groupRoot,"data-layout":s,children:w})})});La.displayName="RadioGroup";const Fy=({className:e,style:t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:b.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Va=K.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=fe(p,o),x=y;delete x.size,delete x.color;const T={root:tt.root,checked:tt.checked,disabled:tt.disabled},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const $=w;T.root=$.root?`${tt.root} ${$.root}`:tt.root,T.checked=$.checked?`${tt.checked} ${$.checked}`:tt.checked,T.disabled=$.disabled?`${tt.disabled} ${$.disabled}`:tt.disabled}const C=x.className,I=C?`${tt.root} ${C}`:tt.root;if(s&&i){const $=!!(x.checked??x.defaultChecked),L=i,V=b.jsx(L,{...t,checked:$,label:x.label});return l?b.jsx(dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:V}):b.jsx(b.Fragment,{children:V})}const E=b.jsx(pe.Radio,{ref:n,...y,icon:b.jsx("div",{className:tt.radio}),checkedIcon:b.jsx("div",{className:`${tt.radio} ${tt.radioChecked}`,children:b.jsx(Fy,{className:tt.icon})}),className:m?tt.inner:`${I} ${tt.inner}`,classes:T,disabled:s||a,disableRipple:!0,sx:m?{padding:0}:void 0}),R=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:tt.body,children:[E,b.jsxs("div",{className:tt.labelWrapper,children:[b.jsx("label",{className:tt.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),f?b.jsx(un,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(un,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):b.jsx("div",{className:I,style:g,children:E});return l?b.jsx(dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:R}):R});Va.displayName="Radio";Va.Group=La;const By="SegmentedControl-module__root___JFRhg",zy="SegmentedControl-module__label___mS17q",Wy="SegmentedControl-module__control___znOdQ",Lt={root:By,label:zy,control:Wy};function Uy(e){const t={root:Lt.root,control:Lt.control,label:Lt.label},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${Lt.root} ${i.root}`:Lt.root,t.control=i.control?`${Lt.control} ${i.control}`:Lt.control,t.label=i.label?`${Lt.label} ${i.label}`:Lt.label}const o=e.className;return{className:o?`${Lt.root} ${o}`:Lt.root,classNames:t}}const xp=K.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:s=[],value:i,onChange:a,...l},c){const u=fe(l,t),d=u;delete d.disabled;const m=Uy(d),h=(f,g)=>{g!==null&&a&&a(g)};return b.jsx(pe.ToggleButtonGroup,{ref:c,...u,className:m.className,classes:m.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:i,onChange:h,children:s.map(f=>{const g=typeof f=="string"?f:f.value,p=typeof f=="string"?f:f.label,y=typeof f=="string"?!1:f.disabled;return b.jsx(pe.ToggleButton,{value:g,disabled:y,className:m.classNames.control,children:b.jsx("div",{className:m.classNames.label,children:p})},g)})})});xp.displayName="SegmentedControl";const qy=xp,Hy="Slider-module__layoutOverride___zYPun",Yy="Slider-module__sliderContainer___y8I0J",Gy="Slider-module__sliderTrackWrapper___UHpVh",Ky="Slider-module__iconWrapper___uqHpC",Xy="Slider-module__sliderRoot___LI86H",Qy="Slider-module__sliderTrack___oqnlG",Zy="Slider-module__sliderBar___TI4VY",Jy="Slider-module__sliderThumb___OFn8p",ev="Slider-module__sliderMark___1lM2B",tv="Slider-module__sliderTooltip___J1Aqb",nv="Slider-module__minMaxGuide___TaGqz",ov="Slider-module__rightGuideContainer___8dOT8",rv="Slider-module__currentValue___dGV2T",sv="Slider-module__inputField___6x578",iv="Slider-module__readOnlyValue___-ZzMW",Ae={layoutOverride:Hy,sliderContainer:Yy,sliderTrackWrapper:Gy,iconWrapper:Ky,sliderRoot:Xy,sliderTrack:Qy,sliderBar:Zy,sliderThumb:Jy,sliderMark:ev,sliderTooltip:tv,minMaxGuide:nv,rightGuideContainer:ov,currentValue:rv,inputField:sv,readOnlyValue:iv},av=({value:e})=>b.jsx("div",{className:Ae.readOnlyValue,children:e}),Sp=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,tooltipLabel:h,assistiveText:f,assistiveWithIcon:g,error:p,required:y,withAsterisk:x,id:T,className:w,style:C,disabled:I,readOnly:E,readOnlyComponent:R,emptyValueComponent:$,value:L,defaultValue:V,icon:A,showInput:v=!1,showMinMaxLabels:P=!0,min:O=0,max:_=100,step:k=1,onChange:D,onChangeEnd:N,...z}=t,[j,B]=K.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:V!==void 0?Array.isArray(V)?V[0]:V:O),W=L!==void 0?Array.isArray(L)?L[0]:L:j,[X,Z]=K.useState(W.toString());K.useEffect(()=>{Z(W.toString())},[W]);const Y=(oe,ye)=>{const he=Array.isArray(ye)?ye[0]:ye;L===void 0&&B(he),D==null||D(he)},Q=oe=>{const ye=oe.target.value;Z(ye);const he=parseFloat(ye);if(!isNaN(he)){const re=Math.max(O,Math.min(_,he));Y(null,re)}},ne=()=>{Z(W.toString())},H=fe(z,o),F=H;delete F.size,delete F.color,delete F.wrapperProps;const q={root:Ae.sliderRoot,rail:Ae.sliderTrack,track:Ae.sliderBar,thumb:Ae.sliderThumb,mark:Ae.sliderMark,markLabel:Ae.sliderMarkLabel,valueLabel:Ae.sliderTooltip},ae=F.classNames;if(ae&&typeof ae=="object"&&!Array.isArray(ae)){const oe=ae;q.root=oe.root?`${Ae.sliderRoot} ${oe.root}`:Ae.sliderRoot,q.rail=oe.track?`${Ae.sliderTrack} ${oe.track}`:Ae.sliderTrack,q.track=oe.bar?`${Ae.sliderBar} ${oe.bar}`:Ae.sliderBar,q.thumb=oe.thumb?`${Ae.sliderThumb} ${oe.thumb}`:Ae.sliderThumb,q.mark=oe.mark?`${Ae.sliderMark} ${oe.mark}`:Ae.sliderMark,q.markLabel=oe.markLabel?`${Ae.sliderMarkLabel} ${oe.markLabel}`:Ae.sliderMarkLabel}const G=w?`${Ae.layoutOverride} ${w}`:Ae.layoutOverride,ue=A?b.jsx("span",{className:Ae.iconWrapper,"aria-hidden":!0,children:A}):null;return b.jsx(Wt,{ref:n,className:G,style:C,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:f,assistiveWithIcon:g,error:!!p,required:y,id:T,readOnly:E,readOnlyComponent:R||av,emptyValueComponent:$,readOnlyType:"text",readOnlyValue:W,readOnlyNativeProps:{value:W},activeComponent:b.jsxs("div",{className:Ae.sliderContainer,"data-form-layout":s,"data-disabled":I?"true":void 0,"data-error":p?"true":void 0,children:[ue,P&&b.jsx("span",{className:Ae.minMaxGuide,children:O}),b.jsx("div",{className:Ae.sliderTrackWrapper,children:b.jsx(pe.Slider,{...H,classes:q,disabled:I,value:W,onChange:Y,onChangeCommitted:N,min:O,max:_,step:k,valueLabelDisplay:h===null?"off":"auto",valueLabelFormat:typeof h=="function"?h:void 0})}),b.jsxs("div",{className:Ae.rightGuideContainer,children:[!v&&b.jsx("span",{className:Ae.currentValue,children:W}),P&&b.jsx("span",{className:Ae.minMaxGuide,children:_})]}),v&&b.jsx("input",{type:"number",className:Ae.inputField,value:X,onChange:Q,onBlur:ne,min:O,max:_,step:k??void 0,disabled:I,"data-error":p?"true":void 0})]})})});Sp.displayName="Slider";const Cp=K.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:s,...i},a){const l=Mr(i),c=typeof n=="string"&&n in ut?ut[n]:n;return b.jsx(pe.Stack,{ref:a,...l,spacing:c,alignItems:o,justifyContent:s,children:t})});Cp.displayName="Stack";const lv="Stepper-module__root___jbSYO",cv="Stepper-module__horizontal___USHT1",uv="Stepper-module__steps___4HPO6",dv="Stepper-module__step___s2nqL",pv="Stepper-module__stepLabel___N6nuy",fv="Stepper-module__stepDescription___DnDAy",mv="Stepper-module__separator___pU0No",hv="Stepper-module__vertical___d4mOs",gv="Stepper-module__large___J18-y",bv="Stepper-module__small___Ub-zb",yv="Stepper-module__stepIcon___YQHNq",vv="Stepper-module__verticalSeparator___frWc1",Ot={root:lv,horizontal:cv,steps:uv,step:dv,stepLabel:pv,stepDescription:fv,separator:mv,vertical:hv,large:gv,small:bv,stepIcon:yv,verticalSeparator:vv},wp=K.forwardRef(function(t,n){const{overStyled:o=!1,size:s="large",orientation:i="horizontal",className:a,style:l,...c}=t,u=fe(c,o);return b.jsx("div",{className:`${Ot.root} ${i==="horizontal"?Ot.horizontal:Ot.vertical} ${s==="large"?Ot.large:Ot.small} ${a||""}`,style:l,"data-size":s,"data-orientation":i,children:b.jsx(pe.Stepper,{ref:n,...u,orientation:i,connector:b.jsx(pe.StepConnector,{classes:{root:i==="horizontal"?Ot.separator:Ot.verticalSeparator}}),classes:{root:Ot.steps}})})});wp.displayName="Stepper";const xv=K.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.Step,{ref:n,...fe(i,o),classes:{root:Ot.step},className:s||""})});xv.displayName="Step";const Sv=K.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepButton,{ref:n,className:s||"",...fe(i,o)})});Sv.displayName="StepButton";const Cv=K.forwardRef(function(t,n){const{overStyled:o=!1,className:s,description:i,...a}=t;return b.jsx(pe.StepLabel,{ref:n,...fe(a,o),className:s||"",classes:{label:Ot.stepLabel,iconContainer:Ot.stepIcon},optional:i?b.jsx("div",{className:Ot.stepDescription,children:i}):a.optional})});Cv.displayName="StepLabel";const wv=K.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepConnector,{ref:n,className:s||"",...fe(i,o)})});wv.displayName="StepConnector";const Tv="Switch-module__root___Y5Ydi",Iv="Switch-module__switchRoot___5nKws",Ev="Switch-module__track___7ObdZ",_v="Switch-module__thumb___-FTeK",Ov="Switch-module__body___Sw9Wr",kv="Switch-module__switchBase___-sCur",Pv="Switch-module__thumbIconWrapper___sCY-1",Rv="Switch-module__checkIcon___ZBAQN",Nv="Switch-module__closeIcon___bLLGw",Mv="Switch-module__labelWrapper___YSOwx",$v="Switch-module__label___LrH7V",Dv="Switch-module__groupRoot___-Uepi",Me={root:Tv,switchRoot:Iv,track:Ev,thumb:_v,body:Ov,switchBase:kv,thumbIconWrapper:Pv,checkIcon:Rv,closeIcon:Nv,labelWrapper:Mv,label:$v,groupRoot:Dv},Tp=K.createContext(null),Fa=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:T,children:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,onChange:L,...V}=t,A=fe(V,o),v=A;delete v.size;const P=(O,_)=>{L&&L(_)};return b.jsx(Wt,{className:x,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,readOnly:C&&!!I,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(Tp.Provider,{value:{value:R!==void 0?R:$,onChange:P,name:v.name,readOnly:C||!!v.disabled},children:b.jsx(pe.FormGroup,{ref:n,...A,className:`${Me.groupRoot} ${A.className||""}`.trim(),"data-layout":s,children:w})})})});Fa.displayName="SwitchGroup";function Av(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function jv(e){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Ba=K.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=fe(p,o),x=y;delete x.size,delete x.color,delete x.radius,delete x.variant;const T={root:Me.switchRoot,body:Me.body,track:Me.track,switchBase:Me.switchBase,trackLabel:Me.trackLabel,labelWrapper:Me.labelWrapper,label:Me.label},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const _=w;T.root=_.root?`${Me.switchRoot} ${_.root}`:Me.switchRoot,T.body=_.body?`${Me.body} ${_.body}`:Me.body,T.track=_.track?`${Me.track} ${_.track}`:Me.track,T.trackLabel=_.trackLabel?`${Me.trackLabel} ${_.trackLabel}`:Me.trackLabel,T.labelWrapper=_.labelWrapper?`${Me.labelWrapper} ${_.labelWrapper}`:Me.labelWrapper,T.label=_.label?`${Me.label} ${_.label}`:Me.label}const C=x.className,I=C?`${Me.root} ${C}`:Me.root,E=K.useContext(Tp),R=E!==null,$=R?!!E.readOnly:!1,L=R?(E.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=_=>{var z;if(!R)return;const k=E.value||[],D=x.value,N=_.target.checked?[...k,D]:k.filter(j=>j!==D);(z=E.onChange)==null||z.call(E,_,N)};if(s&&i){const _=i,k=b.jsx(_,{...t,checked:L,label:x.label});return l?b.jsx(dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:k}):b.jsx(b.Fragment,{children:k})}const A=b.jsx("span",{className:Me.thumb,children:b.jsxs("span",{className:Me.thumbIconWrapper,children:[b.jsx(Av,{className:Me.checkIcon}),b.jsx(jv,{className:Me.closeIcon})]})}),v=s||a||$,P=b.jsx(pe.Switch,{ref:n,className:m?Me.inner:`${I} ${Me.inner}`,classes:T,color:"default",disabled:v,"data-disabled":v||void 0,icon:A,checkedIcon:A,...y,...R?{checked:L,onChange:V}:{},disableRipple:!0}),O=m?b.jsx("div",{className:I,style:g,children:b.jsxs("div",{className:Me.body,children:[P,b.jsxs("div",{className:Me.labelWrapper,children:[b.jsx("label",{className:Me.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),f?b.jsx(un,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(un,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):P;return l?b.jsx(dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:O}):O});Ba.displayName="Switch";Ba.Group=Fa;const Lv="Table-module__root___aMWWS",Vv={root:Lv},Ip=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i=s.className,a=Vv.root,l=i?`${a} ${i}`:a;return b.jsx(pe.Table,{ref:o,...s,className:l})});Ip.displayName="Table";const Ep=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableBody,{ref:o,...s})});Ep.displayName="TableBody";const _p=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableCell,{ref:o,...s})});_p.displayName="TableCell";const Op=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableContainer,{ref:o,...s})});Op.displayName="TableContainer";const kp=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableHead,{ref:o,...s})});kp.displayName="TableHead";const Pp=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableRow,{ref:o,...s})});Pp.displayName="TableRow";const Rp=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableFooter,{ref:o,...s})});Rp.displayName="TableFooter";const Np=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t);return b.jsx(pe.TableSortLabel,{ref:o,...s})});Np.displayName="TableSortLabel";const Dn=Ip;Dn.Body=Ep;Dn.Cell=_p;Dn.Container=Op;Dn.Head=kp;Dn.Row=Pp;Dn.Footer=Rp;Dn.SortLabel=Np;const Fv="Tabs-module__root___-VKVI",Bv="Tabs-module__list___qRVME",zv="Tabs-module__indicator___kvQsf",Wv="Tabs-module__tab___IdDYc",Uv="Tabs-module__panel___08i9c",pr={root:Fv,list:Bv,indicator:zv,tab:Wv,panel:Uv};function io(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kr={exports:{}},Xr={exports:{}},$e={};/** @license React v16.13.1
|
|
2
12
|
* react-is.production.min.js
|
|
3
13
|
*
|
|
4
14
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
15
|
*
|
|
6
16
|
* This source code is licensed under the MIT license found in the
|
|
7
17
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
18
|
+
*/var hc;function qv(){if(hc)return $e;hc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(I){if(typeof I=="object"&&I!==null){var E=I.$$typeof;switch(E){case t:switch(I=I.type,I){case c:case u:case o:case i:case s:case m:return I;default:switch(I=I&&I.$$typeof,I){case l:case d:case g:case f:case a:return I;default:return E}}case n:return E}}}function C(I){return w(I)===u}return $e.AsyncMode=c,$e.ConcurrentMode=u,$e.ContextConsumer=l,$e.ContextProvider=a,$e.Element=t,$e.ForwardRef=d,$e.Fragment=o,$e.Lazy=g,$e.Memo=f,$e.Portal=n,$e.Profiler=i,$e.StrictMode=s,$e.Suspense=m,$e.isAsyncMode=function(I){return C(I)||w(I)===c},$e.isConcurrentMode=C,$e.isContextConsumer=function(I){return w(I)===l},$e.isContextProvider=function(I){return w(I)===a},$e.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},$e.isForwardRef=function(I){return w(I)===d},$e.isFragment=function(I){return w(I)===o},$e.isLazy=function(I){return w(I)===g},$e.isMemo=function(I){return w(I)===f},$e.isPortal=function(I){return w(I)===n},$e.isProfiler=function(I){return w(I)===i},$e.isStrictMode=function(I){return w(I)===s},$e.isSuspense=function(I){return w(I)===m},$e.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===o||I===u||I===i||I===s||I===m||I===h||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===f||I.$$typeof===a||I.$$typeof===l||I.$$typeof===d||I.$$typeof===y||I.$$typeof===x||I.$$typeof===T||I.$$typeof===p)},$e.typeOf=w,$e}var De={};/** @license React v16.13.1
|
|
9
19
|
* react-is.development.js
|
|
10
20
|
*
|
|
11
21
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
22
|
*
|
|
13
23
|
* This source code is licensed under the MIT license found in the
|
|
14
24
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
25
|
+
*/var gc;function Hv(){return gc||(gc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(G){return typeof G=="string"||typeof G=="function"||G===o||G===u||G===i||G===s||G===m||G===h||typeof G=="object"&&G!==null&&(G.$$typeof===g||G.$$typeof===f||G.$$typeof===a||G.$$typeof===l||G.$$typeof===d||G.$$typeof===y||G.$$typeof===x||G.$$typeof===T||G.$$typeof===p)}function C(G){if(typeof G=="object"&&G!==null){var ue=G.$$typeof;switch(ue){case t:var oe=G.type;switch(oe){case c:case u:case o:case i:case s:case m:return oe;default:var ye=oe&&oe.$$typeof;switch(ye){case l:case d:case g:case f:case a:return ye;default:return ue}}case n:return ue}}}var I=c,E=u,R=l,$=a,L=t,V=d,A=o,v=g,P=f,O=n,_=i,k=s,D=m,N=!1;function z(G){return N||(N=!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.")),j(G)||C(G)===c}function j(G){return C(G)===u}function B(G){return C(G)===l}function W(G){return C(G)===a}function X(G){return typeof G=="object"&&G!==null&&G.$$typeof===t}function Z(G){return C(G)===d}function Y(G){return C(G)===o}function Q(G){return C(G)===g}function ne(G){return C(G)===f}function H(G){return C(G)===n}function F(G){return C(G)===i}function q(G){return C(G)===s}function ae(G){return C(G)===m}De.AsyncMode=I,De.ConcurrentMode=E,De.ContextConsumer=R,De.ContextProvider=$,De.Element=L,De.ForwardRef=V,De.Fragment=A,De.Lazy=v,De.Memo=P,De.Portal=O,De.Profiler=_,De.StrictMode=k,De.Suspense=D,De.isAsyncMode=z,De.isConcurrentMode=j,De.isContextConsumer=B,De.isContextProvider=W,De.isElement=X,De.isForwardRef=Z,De.isFragment=Y,De.isLazy=Q,De.isMemo=ne,De.isPortal=H,De.isProfiler=F,De.isStrictMode=q,De.isSuspense=ae,De.isValidElementType=w,De.typeOf=C})()),De}var bc;function Mp(){return bc||(bc=1,process.env.NODE_ENV==="production"?Xr.exports=qv():Xr.exports=Hv()),Xr.exports}/*
|
|
16
26
|
object-assign
|
|
17
27
|
(c) Sindre Sorhus
|
|
18
28
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
29
|
+
*/var Pi,yc;function Yv(){if(yc)return Pi;yc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pi=s()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}return c},Pi}var Ri,vc;function za(){if(vc)return Ri;vc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ri=e,Ri}var Ni,xc;function $p(){return xc||(xc=1,Ni=Function.call.bind(Object.prototype.hasOwnProperty)),Ni}var Mi,Sc;function Gv(){if(Sc)return Mi;Sc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=za(),n={},o=$p();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var m;try{if(typeof i[d]!="function"){var h=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=i[d](a,d,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var f=u?u():"";e("Failed "+l+" type: "+m.message+(f??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Mi=s,Mi}var $i,Cc;function Kv(){if(Cc)return $i;Cc=1;var e=Mp(),t=Yv(),n=za(),o=$p(),s=Gv(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return $i=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(j){var B=j&&(u&&j[u]||j[d]);if(typeof B=="function")return B}var h="<<anonymous>>",f={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:T(),arrayOf:w,element:C(),elementType:I(),instanceOf:E,node:V(),objectOf:$,oneOf:R,oneOfType:L,shape:v,exact:P};function g(j,B){return j===B?j!==0||1/j===1/B:j!==j&&B!==B}function p(j,B){this.message=j,this.data=B&&typeof B=="object"?B:{},this.stack=""}p.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var B={},W=0;function X(Y,Q,ne,H,F,q,ae){if(H=H||h,q=q||ne,ae!==n){if(c){var G=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 G.name="Invariant Violation",G}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=H+":"+ne;!B[ue]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+H+"`. 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."),B[ue]=!0,W++)}}return Q[ne]==null?Y?Q[ne]===null?new p("The "+F+" `"+q+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new p("The "+F+" `"+q+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:j(Q,ne,H,F,q)}var Z=X.bind(null,!1);return Z.isRequired=X.bind(null,!0),Z}function x(j){function B(W,X,Z,Y,Q,ne){var H=W[X],F=k(H);if(F!==j){var q=D(H);return new p("Invalid "+Y+" `"+Q+"` of type "+("`"+q+"` supplied to `"+Z+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(B)}function T(){return y(a)}function w(j){function B(W,X,Z,Y,Q){if(typeof j!="function")return new p("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ne=W[X];if(!Array.isArray(ne)){var H=k(ne);return new p("Invalid "+Y+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected an array."))}for(var F=0;F<ne.length;F++){var q=j(ne,F,Z,Y,Q+"["+F+"]",n);if(q instanceof Error)return q}return null}return y(B)}function C(){function j(B,W,X,Z,Y){var Q=B[W];if(!l(Q)){var ne=k(Q);return new p("Invalid "+Z+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return y(j)}function I(){function j(B,W,X,Z,Y){var Q=B[W];if(!e.isValidElementType(Q)){var ne=k(Q);return new p("Invalid "+Z+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return y(j)}function E(j){function B(W,X,Z,Y,Q){if(!(W[X]instanceof j)){var ne=j.name||h,H=z(W[X]);return new p("Invalid "+Y+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(B)}function R(j){if(!Array.isArray(j))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.")),a;function B(W,X,Z,Y,Q){for(var ne=W[X],H=0;H<j.length;H++)if(g(ne,j[H]))return null;var F=JSON.stringify(j,function(ae,G){var ue=D(G);return ue==="symbol"?String(G):G});return new p("Invalid "+Y+" `"+Q+"` of value `"+String(ne)+"` "+("supplied to `"+Z+"`, expected one of "+F+"."))}return y(B)}function $(j){function B(W,X,Z,Y,Q){if(typeof j!="function")return new p("Property `"+Q+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ne=W[X],H=k(ne);if(H!=="object")return new p("Invalid "+Y+" `"+Q+"` of type "+("`"+H+"` supplied to `"+Z+"`, expected an object."));for(var F in ne)if(o(ne,F)){var q=j(ne,F,Z,Y,Q+"."+F,n);if(q instanceof Error)return q}return null}return y(B)}function L(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var B=0;B<j.length;B++){var W=j[B];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(W)+" at index "+B+"."),a}function X(Z,Y,Q,ne,H){for(var F=[],q=0;q<j.length;q++){var ae=j[q],G=ae(Z,Y,Q,ne,H,n);if(G==null)return null;G.data&&o(G.data,"expectedType")&&F.push(G.data.expectedType)}var ue=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new p("Invalid "+ne+" `"+H+"` supplied to "+("`"+Q+"`"+ue+"."))}return y(X)}function V(){function j(B,W,X,Z,Y){return O(B[W])?null:new p("Invalid "+Z+" `"+Y+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return y(j)}function A(j,B,W,X,Z){return new p((j||"React class")+": "+B+" type `"+W+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function v(j){function B(W,X,Z,Y,Q){var ne=W[X],H=k(ne);if(H!=="object")return new p("Invalid "+Y+" `"+Q+"` of type `"+H+"` "+("supplied to `"+Z+"`, expected `object`."));for(var F in j){var q=j[F];if(typeof q!="function")return A(Z,Y,Q,F,D(q));var ae=q(ne,F,Z,Y,Q+"."+F,n);if(ae)return ae}return null}return y(B)}function P(j){function B(W,X,Z,Y,Q){var ne=W[X],H=k(ne);if(H!=="object")return new p("Invalid "+Y+" `"+Q+"` of type `"+H+"` "+("supplied to `"+Z+"`, expected `object`."));var F=t({},W[X],j);for(var q in F){var ae=j[q];if(o(j,q)&&typeof ae!="function")return A(Z,Y,Q,q,D(ae));if(!ae)return new p("Invalid "+Y+" `"+Q+"` key `"+q+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(W[X],null," ")+`
|
|
30
|
+
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var G=ae(ne,q,Z,Y,Q+"."+q,n);if(G)return G}return null}return y(B)}function O(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(O);if(j===null||l(j))return!0;var B=m(j);if(B){var W=B.call(j),X;if(B!==j.entries){for(;!(X=W.next()).done;)if(!O(X.value))return!1}else for(;!(X=W.next()).done;){var Z=X.value;if(Z&&!O(Z[1]))return!1}}else return!1;return!0;default:return!1}}function _(j,B){return j==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function k(j){var B=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":_(B,j)?"symbol":B}function D(j){if(typeof j>"u"||j===null)return""+j;var B=k(j);if(B==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return B}function N(j){var B=D(j);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function z(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return f.checkPropTypes=s,f.resetWarningCache=s.resetWarningCache,f.PropTypes=f,f},$i}var Di,wc;function Xv(){if(wc)return Di;wc=1;var e=za();function t(){}function n(){}return n.resetWarningCache=t,Di=function(){function o(a,l,c,u,d,m){if(m!==e){var h=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 h.name="Invariant Violation",h}}o.isRequired=o;function s(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Di}var Tc;function Qv(){if(Tc)return Kr.exports;if(Tc=1,process.env.NODE_ENV!=="production"){var e=Mp(),t=!0;Kr.exports=Kv()(e.isElement,t)}else Kr.exports=Xv()();return Kr.exports}var Zv=Qv();const r=io(Zv);function Dp(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Dp(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ce(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Dp(e))&&(o&&(o+=" "),o+=t);return o}function Cr(e,t,n=!1){const o={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=Cr(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ce(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}function je(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Ic=e=>e,Jv=()=>{let e=Ic;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ic}}},ex=Jv();function no(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function le(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":no(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ec(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}var Qr={exports:{}},Fe={};/**
|
|
21
31
|
* @license React
|
|
22
32
|
* react-is.production.js
|
|
23
33
|
*
|
|
@@ -25,7 +35,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=ae(ne,H,Z,Y,X+"."+
|
|
|
25
35
|
*
|
|
26
36
|
* This source code is licensed under the MIT license found in the
|
|
27
37
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var
|
|
38
|
+
*/var _c;function tx(){if(_c)return Fe;_c=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case s:case o:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case m:case d:return p;case i:return p;default:return y}}case t:return y}}}return Fe.ContextConsumer=i,Fe.ContextProvider=a,Fe.Element=e,Fe.ForwardRef=l,Fe.Fragment=n,Fe.Lazy=m,Fe.Memo=d,Fe.Portal=t,Fe.Profiler=s,Fe.StrictMode=o,Fe.Suspense=c,Fe.SuspenseList=u,Fe.isContextConsumer=function(p){return g(p)===i},Fe.isContextProvider=function(p){return g(p)===a},Fe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Fe.isForwardRef=function(p){return g(p)===l},Fe.isFragment=function(p){return g(p)===n},Fe.isLazy=function(p){return g(p)===m},Fe.isMemo=function(p){return g(p)===d},Fe.isPortal=function(p){return g(p)===t},Fe.isProfiler=function(p){return g(p)===s},Fe.isStrictMode=function(p){return g(p)===o},Fe.isSuspense=function(p){return g(p)===c},Fe.isSuspenseList=function(p){return g(p)===u},Fe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===s||p===o||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===f||p.getModuleId!==void 0)},Fe.typeOf=g,Fe}var Be={};/**
|
|
29
39
|
* @license React
|
|
30
40
|
* react-is.development.js
|
|
31
41
|
*
|
|
@@ -33,24 +43,24 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var G=ae(ne,H,Z,Y,X+"."+
|
|
|
33
43
|
*
|
|
34
44
|
* This source code is licensed under the MIT license found in the
|
|
35
45
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
37
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,s]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(i)}function
|
|
46
|
+
*/var Oc;function nx(){return Oc||(Oc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case o:case i:case s:case u:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case m:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Be.ContextConsumer=a,Be.ContextProvider=l,Be.Element=t,Be.ForwardRef=c,Be.Fragment=o,Be.Lazy=h,Be.Memo=m,Be.Portal=n,Be.Profiler=i,Be.StrictMode=s,Be.Suspense=u,Be.SuspenseList=d,Be.isContextConsumer=function(p){return e(p)===a},Be.isContextProvider=function(p){return e(p)===l},Be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Be.isForwardRef=function(p){return e(p)===c},Be.isFragment=function(p){return e(p)===o},Be.isLazy=function(p){return e(p)===h},Be.isMemo=function(p){return e(p)===m},Be.isPortal=function(p){return e(p)===n},Be.isProfiler=function(p){return e(p)===i},Be.isStrictMode=function(p){return e(p)===s},Be.isSuspense=function(p){return e(p)===u},Be.isSuspenseList=function(p){return e(p)===d},Be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===i||p===s||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},Be.typeOf=e})()),Be}var kc;function ox(){return kc||(kc=1,process.env.NODE_ENV==="production"?Qr.exports=tx():Qr.exports=nx()),Qr.exports}var vs=ox();function Yt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ap(e){if(S.isValidElement(e)||vs.isValidElementType(e)||!Yt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ap(e[n])}),t}function Tt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Yt(e)&&Yt(t)&&Object.keys(t).forEach(s=>{S.isValidElement(t[s])||vs.isValidElementType(t[s])?o[s]=t[s]:Yt(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Yt(e[s])?o[s]=Tt(e[s],t[s],n):n.clone?o[s]=Yt(t[s])?Ap(t[s]):t[s]:o[s]=t[s]}),o}function fr(e,t){return t?Tt(e,t,{clone:!1}):e}const An=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function Pc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=s.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,s)=>{const i=t[s];return delete o[s],o[s]=i,o},{...t}):t}function rx(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function sx(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
47
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,s]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(i)}function ix(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},s=i=>(n(o,i),o);return n(s),{...e,containerQueries:s}}const Us={xs:0,sm:600,md:900,lg:1200,xl:1536},Rc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Us[e]}px)`},ax={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Us[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function fn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||Rc;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||Rc;return Object.keys(t).reduce((a,l)=>{if(rx(i.keys,l)){const c=sx(o.containerQueries?o:ax,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Us).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function lx(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const i=e.up(s);return o[i]={},o},{}))||{}}function Nc(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function qs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function xs(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=qs(e,n)||o,t&&(s=t(s,o,e)),s}function nt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=qs(c,o)||{};return fn(a,l,m=>{let h=xs(u,s,m);return m===h&&typeof m=="string"&&(h=xs(u,s,`${t}${m==="default"?"":le(m)}`,m)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:An}:{},i.filterProps=[t],i}function cx(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ux={m:"margin",p:"padding"},dx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},px=cx(e=>{if(e.length>2)if(Mc[e])e=Mc[e];else return[e];const[t,n]=e.split(""),o=ux[t],s=dx[n]||"";return Array.isArray(s)?s.map(i=>o+i):[o+s]}),Hs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fx=[...Hs,...Ys];function $r(e,t,n,o){const s=qs(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof s=="string"?s.startsWith("var(")&&i===0?0:s.startsWith("var(")&&i===1?s:`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>s.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${a} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
38
48
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
39
49
|
`)));const l=s[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
40
|
-
`)),()=>{})}function Da(e){return _r(e,"spacing",8,"spacing")}function kr(e,t){return typeof t=="string"||t==null?t:e(t)}function Zv(e,t){return n=>e.reduce((o,s)=>(o[s]=kr(t,n),o),{})}function Jv(e,t,n,o){if(!t.includes(n))return null;const s=Xv(n),i=Zv(s,o),a=e[n];return pn(e,a,i)}function Rp(e,t){const n=Da(e.theme);return Object.keys(e).map(o=>Jv(e,t,o,n)).reduce(ar,{})}function Xe(e){return Rp(e,Bs)}Xe.propTypes=process.env.NODE_ENV!=="production"?Bs.reduce((e,t)=>(e[t]=$n,e),{}):{};Xe.filterProps=Bs;function Qe(e){return Rp(e,zs)}Qe.propTypes=process.env.NODE_ENV!=="production"?zs.reduce((e,t)=>(e[t]=$n,e),{}):{};Qe.filterProps=zs;process.env.NODE_ENV!=="production"&&Qv.reduce((e,t)=>(e[t]=$n,e),{});function Ws(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(i=>{o[i]=s}),o),{}),n=o=>Object.keys(o).reduce((s,i)=>t[i]?ar(s,t[i](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function _t(e){return typeof e!="number"?e:`${e}px solid`}function Mt(e,t){return et({prop:e,themeKey:"borders",transform:t})}const ex=Mt("border",_t),tx=Mt("borderTop",_t),nx=Mt("borderRight",_t),ox=Mt("borderBottom",_t),rx=Mt("borderLeft",_t),sx=Mt("borderColor"),ix=Mt("borderTopColor"),ax=Mt("borderRightColor"),lx=Mt("borderBottomColor"),cx=Mt("borderLeftColor"),ux=Mt("outline",_t),dx=Mt("outlineColor"),Us=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_r(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:kr(t,o)});return pn(e,e.borderRadius,n)}return null};Us.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$n}:{};Us.filterProps=["borderRadius"];Ws(ex,tx,nx,ox,rx,sx,ix,ax,lx,cx,Us,ux,dx);const Hs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_r(e.theme,"spacing",8,"gap"),n=o=>({gap:kr(t,o)});return pn(e,e.gap,n)}return null};Hs.propTypes=process.env.NODE_ENV!=="production"?{gap:$n}:{};Hs.filterProps=["gap"];const qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_r(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:kr(t,o)});return pn(e,e.columnGap,n)}return null};qs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$n}:{};qs.filterProps=["columnGap"];const Ys=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_r(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:kr(t,o)});return pn(e,e.rowGap,n)}return null};Ys.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$n}:{};Ys.filterProps=["rowGap"];const px=et({prop:"gridColumn"}),fx=et({prop:"gridRow"}),mx=et({prop:"gridAutoFlow"}),hx=et({prop:"gridAutoColumns"}),gx=et({prop:"gridAutoRows"}),bx=et({prop:"gridTemplateColumns"}),yx=et({prop:"gridTemplateRows"}),vx=et({prop:"gridTemplateAreas"}),xx=et({prop:"gridArea"});Ws(Hs,qs,Ys,px,fx,mx,hx,gx,bx,yx,vx,xx);function Co(e,t){return t==="grey"?t:e}const Sx=et({prop:"color",themeKey:"palette",transform:Co}),Cx=et({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Co}),wx=et({prop:"backgroundColor",themeKey:"palette",transform:Co});Ws(Sx,Cx,wx);function St(e){return e<=1&&e!==0?`${e*100}%`:e}const Tx=et({prop:"width",transform:St}),Aa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,i,a,l,c;const o=((a=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Vs[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:St(n)}};return pn(e,e.maxWidth,t)}return null};Aa.filterProps=["maxWidth"];const Ix=et({prop:"minWidth",transform:St}),Ex=et({prop:"height",transform:St}),Ox=et({prop:"maxHeight",transform:St}),_x=et({prop:"minHeight",transform:St});et({prop:"size",cssProperty:"width",transform:St});et({prop:"size",cssProperty:"height",transform:St});const kx=et({prop:"boxSizing"});Ws(Tx,Aa,Ix,Ex,Ox,_x,kx);const Pr={border:{themeKey:"borders",transform:_t},borderTop:{themeKey:"borders",transform:_t},borderRight:{themeKey:"borders",transform:_t},borderBottom:{themeKey:"borders",transform:_t},borderLeft:{themeKey:"borders",transform:_t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_t},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Us},color:{themeKey:"palette",transform:Co},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Co},backgroundColor:{themeKey:"palette",transform:Co},p:{style:Qe},pt:{style:Qe},pr:{style:Qe},pb:{style:Qe},pl:{style:Qe},px:{style:Qe},py:{style:Qe},padding:{style:Qe},paddingTop:{style:Qe},paddingRight:{style:Qe},paddingBottom:{style:Qe},paddingLeft:{style:Qe},paddingX:{style:Qe},paddingY:{style:Qe},paddingInline:{style:Qe},paddingInlineStart:{style:Qe},paddingInlineEnd:{style:Qe},paddingBlock:{style:Qe},paddingBlockStart:{style:Qe},paddingBlockEnd:{style:Qe},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Hs},rowGap:{style:Ys},columnGap:{style:qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:St},maxWidth:{style:Aa},minWidth:{transform:St},height:{transform:St},maxHeight:{transform:St},minHeight:{transform:St},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Px(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Rx(e,t){return typeof e=="function"?e(t):e}function Nx(){function e(n,o,s,i){const a={[n]:o,theme:s},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:m}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const h=Fs(s,u)||{};return m?m(a):pn(a,o,g=>{let p=gs(h,d,g);return g===p&&typeof g=="string"&&(p=gs(h,d,`${n}${g==="default"?"":le(g)}`,g)),c===!1?p:{[c]:p}})}function t(n){const{sx:o,theme:s={},nested:i}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Pr;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=qv(s.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(f=>{const g=Rx(u[f],s);if(g!=null)if(typeof g=="object")if(a[f])h=ar(h,e(f,g,s,a));else{const p=pn({theme:s},g,y=>({[f]:y}));Px(p,g)?h[f]=t({sx:g,theme:s,nested:!0}):h=ar(h,p)}else h=ar(h,e(f,g,s,a))}),!i&&s.modularCssLayers?{"@layer sx":Ec(s,_c(m,h))}:Ec(s,_c(m,h))}return Array.isArray(o)?o.map(l):l(o)}return t}const Po=Nx();Po.filterProps=["sx"];const Mx=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Pr;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function $x(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=Mx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return qt(l)?{...o,...l}:o}:i={...o,...t},{...s,sx:i}}function Dx(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ax={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function jx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lx=/[A-Z]|^ms/g,Vx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Np=function(t){return t.charCodeAt(1)===45},Pc=function(t){return t!=null&&typeof t!="boolean"},Ri=jx(function(e){return Np(e)?e:e.replace(Lx,"-$&").toLowerCase()}),Rc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vx,function(o,s,i){return In={name:s,styles:i,next:In},s})}return Ax[t]!==1&&!Np(t)&&typeof n=="number"&&n!==0?n+"px":n};function bs(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return In={name:s.name,styles:s.styles,next:In},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)In={name:a.name,styles:a.styles,next:In},a=a.next;var l=i.styles+";";return l}return Fx(e,t,n)}}var c=n;return c}function Fx(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=bs(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Pc(l)&&(o+=Ri(i)+":"+Rc(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Pc(a[c])&&(o+=Ri(i)+":"+Rc(i,a[c])+";");else{var u=bs(e,t,a);switch(i){case"animation":case"animationName":{o+=Ri(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Nc=/label:\s*([^\s;{]+)\s*(;|$)/g,In;function Bx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";In=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=bs(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=bs(n,t,e[l]),o){var c=i;s+=c[l]}Nc.lastIndex=0;for(var u="",d;(d=Nc.exec(s))!==null;)u+="-"+d[1];var m=Dx(s)+u;return{name:m,styles:s,next:In}}/**
|
|
50
|
+
`)),()=>{})}function Wa(e){return $r(e,"spacing",8,"spacing")}function Dr(e,t){return typeof t=="string"||t==null?t:e(t)}function mx(e,t){return n=>e.reduce((o,s)=>(o[s]=Dr(t,n),o),{})}function hx(e,t,n,o){if(!t.includes(n))return null;const s=px(n),i=mx(s,o),a=e[n];return fn(e,a,i)}function jp(e,t){const n=Wa(e.theme);return Object.keys(e).map(o=>hx(e,t,o,n)).reduce(fr,{})}function Ze(e){return jp(e,Hs)}Ze.propTypes=process.env.NODE_ENV!=="production"?Hs.reduce((e,t)=>(e[t]=An,e),{}):{};Ze.filterProps=Hs;function Je(e){return jp(e,Ys)}Je.propTypes=process.env.NODE_ENV!=="production"?Ys.reduce((e,t)=>(e[t]=An,e),{}):{};Je.filterProps=Ys;process.env.NODE_ENV!=="production"&&fx.reduce((e,t)=>(e[t]=An,e),{});function Gs(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(i=>{o[i]=s}),o),{}),n=o=>Object.keys(o).reduce((s,i)=>t[i]?fr(s,t[i](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function Pt(e){return typeof e!="number"?e:`${e}px solid`}function Dt(e,t){return nt({prop:e,themeKey:"borders",transform:t})}const gx=Dt("border",Pt),bx=Dt("borderTop",Pt),yx=Dt("borderRight",Pt),vx=Dt("borderBottom",Pt),xx=Dt("borderLeft",Pt),Sx=Dt("borderColor"),Cx=Dt("borderTopColor"),wx=Dt("borderRightColor"),Tx=Dt("borderBottomColor"),Ix=Dt("borderLeftColor"),Ex=Dt("outline",Pt),_x=Dt("outlineColor"),Ks=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$r(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Dr(t,o)});return fn(e,e.borderRadius,n)}return null};Ks.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:An}:{};Ks.filterProps=["borderRadius"];Gs(gx,bx,yx,vx,xx,Sx,Cx,wx,Tx,Ix,Ks,Ex,_x);const Xs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$r(e.theme,"spacing",8,"gap"),n=o=>({gap:Dr(t,o)});return fn(e,e.gap,n)}return null};Xs.propTypes=process.env.NODE_ENV!=="production"?{gap:An}:{};Xs.filterProps=["gap"];const Qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$r(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Dr(t,o)});return fn(e,e.columnGap,n)}return null};Qs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:An}:{};Qs.filterProps=["columnGap"];const Zs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$r(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Dr(t,o)});return fn(e,e.rowGap,n)}return null};Zs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:An}:{};Zs.filterProps=["rowGap"];const Ox=nt({prop:"gridColumn"}),kx=nt({prop:"gridRow"}),Px=nt({prop:"gridAutoFlow"}),Rx=nt({prop:"gridAutoColumns"}),Nx=nt({prop:"gridAutoRows"}),Mx=nt({prop:"gridTemplateColumns"}),$x=nt({prop:"gridTemplateRows"}),Dx=nt({prop:"gridTemplateAreas"}),Ax=nt({prop:"gridArea"});Gs(Xs,Qs,Zs,Ox,kx,Px,Rx,Nx,Mx,$x,Dx,Ax);function Oo(e,t){return t==="grey"?t:e}const jx=nt({prop:"color",themeKey:"palette",transform:Oo}),Lx=nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oo}),Vx=nt({prop:"backgroundColor",themeKey:"palette",transform:Oo});Gs(jx,Lx,Vx);function Ct(e){return e<=1&&e!==0?`${e*100}%`:e}const Fx=nt({prop:"width",transform:Ct}),Ua=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,i,a,l,c;const o=((a=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Us[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ct(n)}};return fn(e,e.maxWidth,t)}return null};Ua.filterProps=["maxWidth"];const Bx=nt({prop:"minWidth",transform:Ct}),zx=nt({prop:"height",transform:Ct}),Wx=nt({prop:"maxHeight",transform:Ct}),Ux=nt({prop:"minHeight",transform:Ct});nt({prop:"size",cssProperty:"width",transform:Ct});nt({prop:"size",cssProperty:"height",transform:Ct});const qx=nt({prop:"boxSizing"});Gs(Fx,Ua,Bx,zx,Wx,Ux,qx);const Ar={border:{themeKey:"borders",transform:Pt},borderTop:{themeKey:"borders",transform:Pt},borderRight:{themeKey:"borders",transform:Pt},borderBottom:{themeKey:"borders",transform:Pt},borderLeft:{themeKey:"borders",transform:Pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ks},color:{themeKey:"palette",transform:Oo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oo},backgroundColor:{themeKey:"palette",transform:Oo},p:{style:Je},pt:{style:Je},pr:{style:Je},pb:{style:Je},pl:{style:Je},px:{style:Je},py:{style:Je},padding:{style:Je},paddingTop:{style:Je},paddingRight:{style:Je},paddingBottom:{style:Je},paddingLeft:{style:Je},paddingX:{style:Je},paddingY:{style:Je},paddingInline:{style:Je},paddingInlineStart:{style:Je},paddingInlineEnd:{style:Je},paddingBlock:{style:Je},paddingBlockStart:{style:Je},paddingBlockEnd:{style:Je},m:{style:Ze},mt:{style:Ze},mr:{style:Ze},mb:{style:Ze},ml:{style:Ze},mx:{style:Ze},my:{style:Ze},margin:{style:Ze},marginTop:{style:Ze},marginRight:{style:Ze},marginBottom:{style:Ze},marginLeft:{style:Ze},marginX:{style:Ze},marginY:{style:Ze},marginInline:{style:Ze},marginInlineStart:{style:Ze},marginInlineEnd:{style:Ze},marginBlock:{style:Ze},marginBlockStart:{style:Ze},marginBlockEnd:{style:Ze},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xs},rowGap:{style:Zs},columnGap:{style:Qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ct},maxWidth:{style:Ua},minWidth:{transform:Ct},height:{transform:Ct},maxHeight:{transform:Ct},minHeight:{transform:Ct},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Hx(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Yx(e,t){return typeof e=="function"?e(t):e}function Gx(){function e(n,o,s,i){const a={[n]:o,theme:s},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:m}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const h=qs(s,u)||{};return m?m(a):fn(a,o,g=>{let p=xs(h,d,g);return g===p&&typeof g=="string"&&(p=xs(h,d,`${n}${g==="default"?"":le(g)}`,g)),c===!1?p:{[c]:p}})}function t(n){const{sx:o,theme:s={},nested:i}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Ar;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=lx(s.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(f=>{const g=Yx(u[f],s);if(g!=null)if(typeof g=="object")if(a[f])h=fr(h,e(f,g,s,a));else{const p=fn({theme:s},g,y=>({[f]:y}));Hx(p,g)?h[f]=t({sx:g,theme:s,nested:!0}):h=fr(h,p)}else h=fr(h,e(f,g,s,a))}),!i&&s.modularCssLayers?{"@layer sx":Pc(s,Nc(m,h))}:Pc(s,Nc(m,h))}return Array.isArray(o)?o.map(l):l(o)}return t}const Ao=Gx();Ao.filterProps=["sx"];const Kx=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Ar;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function Xx(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=Kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Yt(l)?{...o,...l}:o}:i={...o,...t},{...s,sx:i}}function Qx(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Zx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Jx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var eS=/[A-Z]|^ms/g,tS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lp=function(t){return t.charCodeAt(1)===45},$c=function(t){return t!=null&&typeof t!="boolean"},Ai=Jx(function(e){return Lp(e)?e:e.replace(eS,"-$&").toLowerCase()}),Dc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(tS,function(o,s,i){return _n={name:s,styles:i,next:_n},s})}return Zx[t]!==1&&!Lp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ss(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return _n={name:s.name,styles:s.styles,next:_n},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)_n={name:a.name,styles:a.styles,next:_n},a=a.next;var l=i.styles+";";return l}return nS(e,t,n)}}var c=n;return c}function nS(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=Ss(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;$c(l)&&(o+=Ai(i)+":"+Dc(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)$c(a[c])&&(o+=Ai(i)+":"+Dc(i,a[c])+";");else{var u=Ss(e,t,a);switch(i){case"animation":case"animationName":{o+=Ai(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Ac=/label:\s*([^\s;{]+)\s*(;|$)/g,_n;function oS(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";_n=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=Ss(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=Ss(n,t,e[l]),o){var c=i;s+=c[l]}Ac.lastIndex=0;for(var u="",d;(d=Ac.exec(s))!==null;)u+="-"+d[1];var m=Qx(s)+u;return{name:m,styles:s,next:_n}}/**
|
|
41
51
|
* @mui/styled-engine v7.3.10
|
|
42
52
|
*
|
|
43
53
|
* @license MIT
|
|
44
54
|
* This source code is licensed under the MIT license found in the
|
|
45
55
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/function
|
|
47
|
-
`)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function
|
|
56
|
+
*/function rS(e,t){const n=zh(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
57
|
+
`)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function sS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const jc=[];function eo(e){return jc[0]=e,oS(jc)}const iS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function aS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,i=iS(t),a=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function u(h,f){const g=a.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:f)-o/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?u(h,a[a.indexOf(h)+1]):l(h)}function m(h){const f=a.indexOf(h);return f===0?l(a[1]):f===a.length-1?c(a[f]):u(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:m,unit:n,...s}}const lS={borderRadius:4};function Vp(e=8,t=Wa({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function cS(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function qa(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:i={},...a}=e,l=aS(n),c=Vp(s);let u=Tt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...lS,...i}},a);return u=ix(u),u.applyStyles=cS,u=t.reduce((d,m)=>Tt(d,m),u),u.unstable_sxConfig={...Ar,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(m){return Ao({sx:m,theme:this})},u}function uS(e){return Object.keys(e).length===0}function Fp(e=null){const t=S.useContext($n.ThemeContext);return!t||uS(t)?e:t}const dS=qa();function Bp(e=dS){return Fp(e)}const pS={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 Re(e,t,n="Mui"){const o=pS[t];return o?`${n}-${o}`:`${ex.generate(e)}-${t}`}function Ee(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Re(e,s,n)}),o}function zp(e,t=""){return e.displayName||e.name||t}function Lc(e,t,n){const o=zp(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function fS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return zp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vs.ForwardRef:return Lc(e,e.render,"ForwardRef");case vs.Memo:return Lc(e,e.type,"memo");default:return}}}function Wp(e){const{variants:t,...n}=e,o={variants:t,style:eo(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=eo(s.style))}),o}const mS=qa();function zt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Zn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function hS(e){return e?(t,n)=>n[e]:null}function gS(e,t,n){e.theme=xS(e.theme)?n:e.theme[t]||e.theme}function as(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(s=>as(e,s,n));if(Array.isArray(o==null?void 0:o.variants)){let s;if(o.isProcessed)s=n?Zn(o.style,n):o.style;else{const{variants:i,...a}=o;s=n?Zn(eo(a),n):a}return Up(e,o.variants,[s],n)}return o!=null&&o.isProcessed?n?Zn(eo(o.style),n):o.style:n?Zn(eo(o),n):o}function Up(e,t,n=[],o=void 0){var i;let s;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(s))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?Zn(eo(l.style(s)),o):l.style(s))):n.push(o?Zn(eo(l.style),o):l.style)}return n}function bS(e={}){const{themeId:t,defaultTheme:n=mS,rootShouldForwardProp:o=zt,slotShouldForwardProp:s=zt}=e;function i(l){gS(l,t,n)}return(l,c={})=>{sS(l,E=>E.filter(R=>R!==Ao));const{name:u,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:f=hS(qp(d)),...g}=c,p=u&&u.startsWith("Mui")||d?"components":"custom",y=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let T=zt;d==="Root"||d==="root"?T=o:d?T=s:SS(l)&&(T=void 0);const w=rS(l,{shouldForwardProp:T,label:vS(u,d),...g}),C=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function($){return as($,E,$.theme.modularCssLayers?p:void 0)};if(Yt(E)){const R=Wp(E);return function(L){return R.variants?as(L,R,L.theme.modularCssLayers?p:void 0):L.theme.modularCssLayers?Zn(R.style,p):R.style}}return E},I=(...E)=>{const R=[],$=E.map(C),L=[];if(R.push(i),u&&f&&L.push(function(P){var D,N;const _=(N=(D=P.theme.components)==null?void 0:D[u])==null?void 0:N.styleOverrides;if(!_)return null;const k={};for(const z in _)k[z]=as(P,_[z],P.theme.modularCssLayers?"theme":void 0);return f(P,k)}),u&&!y&&L.push(function(P){var k,D;const O=P.theme,_=(D=(k=O==null?void 0:O.components)==null?void 0:k[u])==null?void 0:D.variants;return _?Up(P,_,[],P.theme.modularCssLayers?"theme":void 0):null}),x||L.push(Ao),Array.isArray($[0])){const v=$.shift(),P=new Array(R.length).fill(""),O=new Array(L.length).fill("");let _;_=[...P,...v,...O],_.raw=[...P,...v.raw,...O],R.unshift(_)}const V=[...R,...$,...L],A=w(...V);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=yS(u,d,l)),A};return w.withConfig&&(I.withConfig=w.withConfig),I}}function yS(e,t,n){return e?`${e}${le(t||"")}`:`Styled(${fS(n)})`}function vS(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${qp(t||"Root")}`),n}function xS(e){for(const t in e)return!1;return!0}function SS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Hp(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Cr(t.components[n].defaultProps,o)}function CS({props:e,name:t,defaultTheme:n,themeId:o}){let s=Bp(n);return s=s[o]||s,Hp({theme:s,name:t,props:e})}const Nn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function wS(e,t,n,o,s){const[i,a]=S.useState(()=>s&&n?n(e).matches:o?o(e).matches:t);return Nn(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const TS={...S},Yp=TS.useSyncExternalStore;function IS(e,t,n,o,s){const i=S.useCallback(()=>t,[t]),a=S.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,s,n]),[l,c]=S.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,m=>(d.addEventListener("change",m),()=>{d.removeEventListener("change",m)})]},[i,n,e]);return Yp(c,l,a)}function Gp(e={}){const{themeId:t}=e;return function(o,s={}){let i=Fp();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Hp({name:"MuiUseMediaQuery",props:s,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="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(`
|
|
48
58
|
`));let m=typeof o=="function"?o(i):o;m=m.replace(/^@media( ?)/m,""),m.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
49
|
-
`));const f=(
|
|
50
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
51
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Qn(10,s))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:s}}const pS=e=>{const t=Pn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},tr=(e,t)=>{try{return pS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Gs(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Wp(e){e=Pn(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Gs({type:l,values:c})}function Hi(e){e=Pn(e);let t=e.type==="hsl"||e.type==="hsla"?Pn(Wp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Dc(e,t){const n=Hi(e),o=Hi(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function ys(e,t){return e=Pn(e),t=La(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gs(e)}function Bn(e,t,n){try{return ys(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ks(e,t){if(e=Pn(e),t=La(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Gs(e)}function De(e,t,n){try{return Ks(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xs(e,t){if(e=Pn(e),t=La(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Gs(e)}function Ae(e,t,n){try{return Xs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function fS(e,t=.15){return Hi(e)>.5?Ks(e,t):Xs(e,t)}function Kr(e,t,n){try{return fS(e,t)}catch{return e}}const mS="exact-prop: ";function Up(e){return process.env.NODE_ENV==="production"?e:{...e,[mS]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const hS=S.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const Dn=()=>S.useContext(hS)??!1,gS=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function bS(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?gr(s.defaultProps,o,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?gr(s,o,t.components.mergeClassNameAndStyle):o}function yS({props:e,name:t}){const n=S.useContext(gS);return bS({props:e,name:t,theme:{components:n}})}let Ac=0;function vS(e){const[t,n]=S.useState(e),o=e||t;return S.useEffect(()=>{t==null&&(Ac+=1,n(`mui-${Ac}`))},[t]),o}const xS={...S},jc=xS.useId;function Va(e){if(jc!==void 0){const t=jc();return e??t}return vS(e)}const Lc={theme:void 0};function SS(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(Lc.theme=s.theme,i=jp(e(Lc)),t=i,n=s.theme),i}}function CS(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Vc=(e,t,n,o=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=o.includes(i)?[]:{}),s=s[i])})},wS=(e,t,n)=>{function o(s,i=[],a=[]){Object.entries(s).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},TS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ni(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},a={};return wS(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,m=TS(l,c);Object.assign(s,{[d]:m}),Vc(i,l,`var(${d})`,u),Vc(a,l,`var(${d}, ${m})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function IS(e,t={}){const{getSelector:n=x,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=Ni(u,t);let f=h;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([C,I])=>{const{vars:E,css:R,varsWithDefaults:$}=Ni(I,t);f=wt(f,$),g[C]={css:R,vars:E}}),p){const{css:C,vars:I,varsWithDefaults:E}=Ni(p,t);f=wt(f,E),g[c]={css:C,vars:I}}function x(C,I){var R,$;let E=s;if(s==="class"&&(E=".%s"),s==="data"&&(E="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(E=`[${s}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${(($=(R=a[C])==null?void 0:R.palette)==null?void 0:$.mode)||C})`]:{":root":I}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:f,generateThemeVars:()=>{let C={...d};return Object.entries(g).forEach(([,{vars:I}])=>{C=wt(C,I)}),C},generateStyleSheets:()=>{var L,V;const C=[],I=e.defaultColorScheme||"light";function E(j,v){Object.keys(v).length&&C.push(typeof j=="string"?{[j]:{...v}}:j)}E(n(void 0,{...m}),m);const{[I]:R,...$}=g;if(R){const{css:j}=R,v=(V=(L=a[I])==null?void 0:L.palette)==null?void 0:V.mode,P=!o&&v?{colorScheme:v,...j}:{...j};E(n(I,{...P}),P)}return Object.entries($).forEach(([j,{css:v}])=>{var O,k;const P=(k=(O=a[j])==null?void 0:O.palette)==null?void 0:k.mode,_=!o&&P?{colorScheme:P,...v}:{...v};E(n(j,{..._}),_)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function ES(e){return function(n){return e==="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})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function wo(e,t){var n,o,s;return S.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}const br={black:"#000",white:"#fff"},OS={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"},so={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},io={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},qo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ao={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},lo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},co={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Hp(){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:br.white,default:br.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 qp=Hp();function Yp(){return{text:{primary:br.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:br.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 qi=Yp();function Fc(e,t,n,o){const s=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Xs(e.main,s):t==="dark"&&(e.dark=Ks(e.main,i)))}function Bc(e,t,n,o,s){const i=s.light||s,a=s.dark||s*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function _S(e="light"){return e==="dark"?{main:ao[200],light:ao[50],dark:ao[400]}:{main:ao[700],light:ao[400],dark:ao[800]}}function kS(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function PS(e="light"){return e==="dark"?{main:io[500],light:io[300],dark:io[700]}:{main:io[700],light:io[400],dark:io[800]}}function RS(e="light"){return e==="dark"?{main:lo[400],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[500],dark:lo[900]}}function NS(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[800],light:co[500],dark:co[900]}}function MS(e="light"){return e==="dark"?{main:qo[400],light:qo[300],dark:qo[700]}:{main:"#ed6c02",light:qo[500],dark:qo[900]}}function $S(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Fa(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,a=e.primary||_S(t),l=e.secondary||kS(t),c=e.error||PS(t),u=e.info||RS(t),d=e.success||NS(t),m=e.warning||MS(t);function h(y){if(s)return $S(y);const x=Dc(y,qi.text.primary)>=n?qi.text.primary:qp.text.primary;if(process.env.NODE_ENV!=="production"){const T=Dc(y,x);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${x} on ${y}`,"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(`
|
|
59
|
+
`));const f=(Yp!==void 0?IS:wS)(m,l,c,u,d);return process.env.NODE_ENV!=="production"&&S.useDebugValue({query:m,match:f}),f}}Gp();function ES(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ha(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),ES(e,t,n)}function _S(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Mn(e){if(e.type)return e;if(e.charAt(0)==="#")return Mn(_S(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
60
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:no(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
|
|
61
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:no(10,s))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:s}}const OS=e=>{const t=Mn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ar=(e,t)=>{try{return OS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Js(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Kp(e){e=Mn(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Js({type:l,values:c})}function Qi(e){e=Mn(e);let t=e.type==="hsl"||e.type==="hsla"?Mn(Kp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vc(e,t){const n=Qi(e),o=Qi(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Cs(e,t){return e=Mn(e),t=Ha(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Js(e)}function Hn(e,t,n){try{return Cs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ei(e,t){if(e=Mn(e),t=Ha(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Js(e)}function Le(e,t,n){try{return ei(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ti(e,t){if(e=Mn(e),t=Ha(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Js(e)}function Ve(e,t,n){try{return ti(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function kS(e,t=.15){return Qi(e)>.5?ei(e,t):ti(e,t)}function Zr(e,t,n){try{return kS(e,t)}catch{return e}}const PS="exact-prop: ";function Xp(e){return process.env.NODE_ENV==="production"?e:{...e,[PS]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const RS=S.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const jn=()=>S.useContext(RS)??!1,NS=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function MS(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?Cr(s.defaultProps,o,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Cr(s,o,t.components.mergeClassNameAndStyle):o}function $S({props:e,name:t}){const n=S.useContext(NS);return MS({props:e,name:t,theme:{components:n}})}let Fc=0;function DS(e){const[t,n]=S.useState(e),o=e||t;return S.useEffect(()=>{t==null&&(Fc+=1,n(`mui-${Fc}`))},[t]),o}const AS={...S},Bc=AS.useId;function Ya(e){if(Bc!==void 0){const t=Bc();return e??t}return DS(e)}const zc={theme:void 0};function jS(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(zc.theme=s.theme,i=Wp(e(zc)),t=i,n=s.theme),i}}function LS(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Wc=(e,t,n,o=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=o.includes(i)?[]:{}),s=s[i])})},VS=(e,t,n)=>{function o(s,i=[],a=[]){Object.entries(s).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},FS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ji(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},a={};return VS(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,m=FS(l,c);Object.assign(s,{[d]:m}),Wc(i,l,`var(${d})`,u),Wc(a,l,`var(${d}, ${m})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function BS(e,t={}){const{getSelector:n=x,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=ji(u,t);let f=h;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([C,I])=>{const{vars:E,css:R,varsWithDefaults:$}=ji(I,t);f=Tt(f,$),g[C]={css:R,vars:E}}),p){const{css:C,vars:I,varsWithDefaults:E}=ji(p,t);f=Tt(f,E),g[c]={css:C,vars:I}}function x(C,I){var R,$;let E=s;if(s==="class"&&(E=".%s"),s==="data"&&(E="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(E=`[${s}="%s"]`),C){if(E==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${(($=(R=a[C])==null?void 0:R.palette)==null?void 0:$.mode)||C})`]:{":root":I}};if(E)return e.defaultColorScheme===C?`:root, ${E.replace("%s",String(C))}`:E.replace("%s",String(C))}return":root"}return{vars:f,generateThemeVars:()=>{let C={...d};return Object.entries(g).forEach(([,{vars:I}])=>{C=Tt(C,I)}),C},generateStyleSheets:()=>{var L,V;const C=[],I=e.defaultColorScheme||"light";function E(A,v){Object.keys(v).length&&C.push(typeof A=="string"?{[A]:{...v}}:A)}E(n(void 0,{...m}),m);const{[I]:R,...$}=g;if(R){const{css:A}=R,v=(V=(L=a[I])==null?void 0:L.palette)==null?void 0:V.mode,P=!o&&v?{colorScheme:v,...A}:{...A};E(n(I,{...P}),P)}return Object.entries($).forEach(([A,{css:v}])=>{var _,k;const P=(k=(_=a[A])==null?void 0:_.palette)==null?void 0:k.mode,O=!o&&P?{colorScheme:P,...v}:{...v};E(n(A,{...O}),O)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function zS(e){return function(n){return e==="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})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function ko(e,t){var n,o,s;return S.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}const wr={black:"#000",white:"#fff"},WS={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"},fo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},mo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Zo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ho={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},go={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},bo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Qp(){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:wr.white,default:wr.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 Zp=Qp();function Jp(){return{text:{primary:wr.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:wr.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 Zi=Jp();function Uc(e,t,n,o){const s=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ti(e.main,s):t==="dark"&&(e.dark=ei(e.main,i)))}function qc(e,t,n,o,s){const i=s.light||s,a=s.dark||s*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function US(e="light"){return e==="dark"?{main:ho[200],light:ho[50],dark:ho[400]}:{main:ho[700],light:ho[400],dark:ho[800]}}function qS(e="light"){return e==="dark"?{main:fo[200],light:fo[50],dark:fo[400]}:{main:fo[500],light:fo[300],dark:fo[700]}}function HS(e="light"){return e==="dark"?{main:mo[500],light:mo[300],dark:mo[700]}:{main:mo[700],light:mo[400],dark:mo[800]}}function YS(e="light"){return e==="dark"?{main:go[400],light:go[300],dark:go[700]}:{main:go[700],light:go[500],dark:go[900]}}function GS(e="light"){return e==="dark"?{main:bo[400],light:bo[300],dark:bo[700]}:{main:bo[800],light:bo[500],dark:bo[900]}}function KS(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:"#ed6c02",light:Zo[500],dark:Zo[900]}}function XS(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ga(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,a=e.primary||US(t),l=e.secondary||qS(t),c=e.error||HS(t),u=e.info||YS(t),d=e.success||GS(t),m=e.warning||KS(t);function h(y){if(s)return XS(y);const x=Vc(y,Zi.text.primary)>=n?Zi.text.primary:Zp.text.primary;if(process.env.NODE_ENV!=="production"){const T=Vc(y,x);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${x} on ${y}`,"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(`
|
|
52
62
|
`))}return x}const f=({color:y,name:x,mainShade:T=500,lightShade:w=300,darkShade:C=700})=>{if(y={...y},!y.main&&y[T]&&(y.main=y[T]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
53
|
-
The color object needs to have a \`main\` property or a \`${T}\` property.`:
|
|
63
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:no(11,x?` (${x})`:"",T));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
54
64
|
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
55
65
|
|
|
56
66
|
Did you intend to use one of the following approaches?
|
|
@@ -63,20 +73,20 @@ const theme1 = createTheme({ palette: {
|
|
|
63
73
|
|
|
64
74
|
const theme2 = createTheme({ palette: {
|
|
65
75
|
primary: { main: green[500] },
|
|
66
|
-
} });`:
|
|
67
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof a=="string"?a:
|
|
76
|
+
} });`:no(12,x?` (${x})`:"",JSON.stringify(y.main)));return s?(qc(s,y,"light",w,o),qc(s,y,"dark",C,o)):(Uc(y,"light",w,o),Uc(y,"dark",C,o)),y.contrastText||(y.contrastText=h(y.main)),y};let g;return t==="light"?g=Qp():t==="dark"&&(g=Jp()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Tt({common:{...wr},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:c,name:"error"}),warning:f({color:m,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:d,name:"success"}),grey:WS,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:o,...g},i)}function QS(e){const t={};return Object.entries(e).forEach(o=>{const[s,i]=o;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function ZS(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function JS(e){return Math.round(e*1e5)/1e5}const Hc={textTransform:"uppercase"},Yc='"Roboto", "Helvetica", "Arial", sans-serif';function eC(e,t){const{fontFamily:n=Yc,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,f=d||(y=>`${y/c*h}rem`),g=(y,x,T,w,C)=>({fontFamily:n,fontWeight:y,fontSize:f(x),lineHeight:T,...n===Yc?{letterSpacing:`${JS(w/x)}em`}:{},...C,...u}),p={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Hc),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Hc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tt({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...p},m,{clone:!1})}const tC=.2,nC=.14,oC=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${tC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oC})`].join(",")}const rC=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],sC={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ef={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gc(e){return`${Math.round(e)}ms`}function iC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function aC(e){const t={...sC,...e.easing},n={...ef,...e.duration};return{getAutoHeightDuration:iC,create:(s=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",m=h=>!Number.isNaN(parseFloat(h));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
77
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof a=="string"?a:Gc(a)} ${l} ${typeof c=="string"?c:Gc(c)}`).join(",")},...e,easing:t,duration:n}}const lC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cC(e){return Yt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function tf(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let i=0;i<s.length;i++){const[a,l]=s[i];!cC(l)||a.startsWith("unstable_")?delete o[a]:Yt(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
68
78
|
|
|
69
79
|
const theme = ${JSON.stringify(t,null,2)};
|
|
70
80
|
|
|
71
81
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
72
82
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
73
83
|
|
|
74
|
-
export default theme;`}function
|
|
75
|
-
`))}y[T]={}}}};Object.keys(f.components).forEach(y=>{const x=f.components[y].styleOverrides;x&&y.startsWith("Mui")&&p(x,y)})}return f.unstable_sxConfig={...
|
|
76
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function nC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ht=e=>{try{return e()}catch{}},oC=(e="mui")=>CS(e);function Mi(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=QS({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Yi({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...Xp(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Qp(i)},l}function rC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=ZS,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(n)[0],h=o||(n.light&&m!=="light"?"light":m),f=oC(i),{[h]:g,light:p,dark:y,...x}=n,T={...x};let w=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Qn(21,h));let C;a&&(C="oklch");const I=Mi(C,T,w,d,h);p&&!T.light&&Mi(C,T,p,void 0,"light"),y&&!T.dark&&Mi(C,T,y,void 0,"dark");let E={defaultColorScheme:h,...I,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:f,colorSchemes:T,font:{...DS(I.typography),...I.font},spacing:nC(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const v=E.colorSchemes[j].palette,P=O=>{const k=O.split("-"),D=k[1],N=k[2];return f(O,v[D][N])};v.mode==="light"&&(ee(v.common,"background","#fff"),ee(v.common,"onBackground","#000")),v.mode==="dark"&&(ee(v.common,"background","#000"),ee(v.common,"onBackground","#fff"));function _(O,k,D){if(C){let N;return O===Bn&&(N=`transparent ${((1-D)*100).toFixed(0)}%`),O===De&&(N=`#000 ${(D*100).toFixed(0)}%`),O===Ae&&(N=`#fff ${(D*100).toFixed(0)}%`),`color-mix(in ${C}, ${k}, ${N})`}return O(k,D)}if(tC(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){ee(v.Alert,"errorColor",_(De,a?f("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",_(De,a?f("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",_(De,a?f("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",_(De,a?f("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",P("palette-error-main")),ee(v.Alert,"infoFilledBg",P("palette-info-main")),ee(v.Alert,"successFilledBg",P("palette-success-main")),ee(v.Alert,"warningFilledBg",P("palette-warning-main")),ee(v.Alert,"errorFilledColor",Ht(()=>v.getContrastText(v.error.main))),ee(v.Alert,"infoFilledColor",Ht(()=>v.getContrastText(v.info.main))),ee(v.Alert,"successFilledColor",Ht(()=>v.getContrastText(v.success.main))),ee(v.Alert,"warningFilledColor",Ht(()=>v.getContrastText(v.warning.main))),ee(v.Alert,"errorStandardBg",_(Ae,a?f("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",_(Ae,a?f("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",_(Ae,a?f("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",_(Ae,a?f("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",P("palette-error-main")),ee(v.Alert,"infoIconColor",P("palette-info-main")),ee(v.Alert,"successIconColor",P("palette-success-main")),ee(v.Alert,"warningIconColor",P("palette-warning-main")),ee(v.AppBar,"defaultBg",P("palette-grey-100")),ee(v.Avatar,"defaultBg",P("palette-grey-400")),ee(v.Button,"inheritContainedBg",P("palette-grey-300")),ee(v.Button,"inheritContainedHoverBg",P("palette-grey-A100")),ee(v.Chip,"defaultBorder",P("palette-grey-400")),ee(v.Chip,"defaultAvatarColor",P("palette-grey-700")),ee(v.Chip,"defaultIconColor",P("palette-grey-700")),ee(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(v.LinearProgress,"primaryBg",_(Ae,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.LinearProgress,"secondaryBg",_(Ae,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.LinearProgress,"errorBg",_(Ae,a?f("palette-error-main"):v.error.main,.62)),ee(v.LinearProgress,"infoBg",_(Ae,a?f("palette-info-main"):v.info.main,.62)),ee(v.LinearProgress,"successBg",_(Ae,a?f("palette-success-main"):v.success.main,.62)),ee(v.LinearProgress,"warningBg",_(Ae,a?f("palette-warning-light"):v.warning.main,.62)),ee(v.Skeleton,"bg",C?_(Bn,a?f("palette-text-primary"):v.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),ee(v.Slider,"primaryTrack",_(Ae,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.Slider,"secondaryTrack",_(Ae,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.Slider,"errorTrack",_(Ae,a?f("palette-error-main"):v.error.main,.62)),ee(v.Slider,"infoTrack",_(Ae,a?f("palette-info-main"):v.info.main,.62)),ee(v.Slider,"successTrack",_(Ae,a?f("palette-success-main"):v.success.main,.62)),ee(v.Slider,"warningTrack",_(Ae,a?f("palette-warning-main"):v.warning.main,.62));const O=C?_(De,a?f("palette-background-default"):v.background.default,.6825):Kr(v.background.default,.8);ee(v.SnackbarContent,"bg",O),ee(v.SnackbarContent,"color",Ht(()=>C?qi.text.primary:v.getContrastText(O))),ee(v.SpeedDialAction,"fabHoverBg",Kr(v.background.paper,.15)),ee(v.StepConnector,"border",P("palette-grey-400")),ee(v.StepContent,"border",P("palette-grey-400")),ee(v.Switch,"defaultColor",P("palette-common-white")),ee(v.Switch,"defaultDisabledColor",P("palette-grey-100")),ee(v.Switch,"primaryDisabledColor",_(Ae,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.Switch,"secondaryDisabledColor",_(Ae,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.Switch,"errorDisabledColor",_(Ae,a?f("palette-error-main"):v.error.main,.62)),ee(v.Switch,"infoDisabledColor",_(Ae,a?f("palette-info-main"):v.info.main,.62)),ee(v.Switch,"successDisabledColor",_(Ae,a?f("palette-success-main"):v.success.main,.62)),ee(v.Switch,"warningDisabledColor",_(Ae,a?f("palette-warning-main"):v.warning.main,.62)),ee(v.TableCell,"border",_(Ae,Bn(a?f("palette-divider"):v.divider,1),.88)),ee(v.Tooltip,"bg",_(Bn,a?f("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){ee(v.Alert,"errorColor",_(Ae,a?f("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",_(Ae,a?f("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",_(Ae,a?f("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",_(Ae,a?f("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",P("palette-error-dark")),ee(v.Alert,"infoFilledBg",P("palette-info-dark")),ee(v.Alert,"successFilledBg",P("palette-success-dark")),ee(v.Alert,"warningFilledBg",P("palette-warning-dark")),ee(v.Alert,"errorFilledColor",Ht(()=>v.getContrastText(v.error.dark))),ee(v.Alert,"infoFilledColor",Ht(()=>v.getContrastText(v.info.dark))),ee(v.Alert,"successFilledColor",Ht(()=>v.getContrastText(v.success.dark))),ee(v.Alert,"warningFilledColor",Ht(()=>v.getContrastText(v.warning.dark))),ee(v.Alert,"errorStandardBg",_(De,a?f("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",_(De,a?f("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",_(De,a?f("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",_(De,a?f("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",P("palette-error-main")),ee(v.Alert,"infoIconColor",P("palette-info-main")),ee(v.Alert,"successIconColor",P("palette-success-main")),ee(v.Alert,"warningIconColor",P("palette-warning-main")),ee(v.AppBar,"defaultBg",P("palette-grey-900")),ee(v.AppBar,"darkBg",P("palette-background-paper")),ee(v.AppBar,"darkColor",P("palette-text-primary")),ee(v.Avatar,"defaultBg",P("palette-grey-600")),ee(v.Button,"inheritContainedBg",P("palette-grey-800")),ee(v.Button,"inheritContainedHoverBg",P("palette-grey-700")),ee(v.Chip,"defaultBorder",P("palette-grey-700")),ee(v.Chip,"defaultAvatarColor",P("palette-grey-300")),ee(v.Chip,"defaultIconColor",P("palette-grey-300")),ee(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(v.LinearProgress,"primaryBg",_(De,a?f("palette-primary-main"):v.primary.main,.5)),ee(v.LinearProgress,"secondaryBg",_(De,a?f("palette-secondary-main"):v.secondary.main,.5)),ee(v.LinearProgress,"errorBg",_(De,a?f("palette-error-main"):v.error.main,.5)),ee(v.LinearProgress,"infoBg",_(De,a?f("palette-info-main"):v.info.main,.5)),ee(v.LinearProgress,"successBg",_(De,a?f("palette-success-main"):v.success.main,.5)),ee(v.LinearProgress,"warningBg",_(De,a?f("palette-warning-main"):v.warning.main,.5)),ee(v.Skeleton,"bg",C?_(Bn,a?f("palette-text-primary"):v.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),ee(v.Slider,"primaryTrack",_(De,a?f("palette-primary-main"):v.primary.main,.5)),ee(v.Slider,"secondaryTrack",_(De,a?f("palette-secondary-main"):v.secondary.main,.5)),ee(v.Slider,"errorTrack",_(De,a?f("palette-error-main"):v.error.main,.5)),ee(v.Slider,"infoTrack",_(De,a?f("palette-info-main"):v.info.main,.5)),ee(v.Slider,"successTrack",_(De,a?f("palette-success-main"):v.success.main,.5)),ee(v.Slider,"warningTrack",_(De,a?f("palette-warning-light"):v.warning.main,.5));const O=C?_(Ae,a?f("palette-background-default"):v.background.default,.985):Kr(v.background.default,.98);ee(v.SnackbarContent,"bg",O),ee(v.SnackbarContent,"color",Ht(()=>C?qp.text.primary:v.getContrastText(O))),ee(v.SpeedDialAction,"fabHoverBg",Kr(v.background.paper,.15)),ee(v.StepConnector,"border",P("palette-grey-600")),ee(v.StepContent,"border",P("palette-grey-600")),ee(v.Switch,"defaultColor",P("palette-grey-300")),ee(v.Switch,"defaultDisabledColor",P("palette-grey-600")),ee(v.Switch,"primaryDisabledColor",_(De,a?f("palette-primary-main"):v.primary.main,.55)),ee(v.Switch,"secondaryDisabledColor",_(De,a?f("palette-secondary-main"):v.secondary.main,.55)),ee(v.Switch,"errorDisabledColor",_(De,a?f("palette-error-main"):v.error.main,.55)),ee(v.Switch,"infoDisabledColor",_(De,a?f("palette-info-main"):v.info.main,.55)),ee(v.Switch,"successDisabledColor",_(De,a?f("palette-success-main"):v.success.main,.55)),ee(v.Switch,"warningDisabledColor",_(De,a?f("palette-warning-light"):v.warning.main,.55)),ee(v.TableCell,"border",_(De,Bn(a?f("palette-divider"):v.divider,1),.68)),ee(v.Tooltip,"bg",_(Bn,a?f("palette-grey-700"):v.grey[700],.92))}a||(Jt(v.background,"default"),Jt(v.background,"paper"),Jt(v.common,"background"),Jt(v.common,"onBackground"),Jt(v,"divider")),Object.keys(v).forEach(O=>{const k=v[O];O!=="tonalOffset"&&!a&&k&&typeof k=="object"&&(k.main&&ee(v[O],"mainChannel",tr(nr(k.main))),k.light&&ee(v[O],"lightChannel",tr(nr(k.light))),k.dark&&ee(v[O],"darkChannel",tr(nr(k.dark))),k.contrastText&&ee(v[O],"contrastTextChannel",tr(nr(k.contrastText))),O==="text"&&(Jt(v[O],"primary"),Jt(v[O],"secondary")),O==="action"&&(k.active&&Jt(v[O],"active"),k.selected&&Jt(v[O],"selected")))})}),E=t.reduce((j,v)=>wt(j,v),E);const R={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:eC(E),enableContrastVars:a},{vars:$,generateThemeVars:L,generateStyleSheets:V}=IS(E,R);return E.vars=$,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,v])=>{E[j]=v}),E.generateThemeVars=L,E.generateStyleSheets=V,E.generateSpacing=function(){return Mp(d.spacing,Da(this))},E.getColorSchemeSelector=ES(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...Pr,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(v){return Po({sx:v,theme:this})},E.toRuntimeSource=Kp,E}function qc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Fa({...n===!0?{}:n.palette,mode:t})})}function sC(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=s==null?void 0:s[l],u={...s,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Yi(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const m=Yi({...e,palette:d},...t);return m.defaultColorScheme=l,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},qc(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},qc(m,"light",u.light)),m}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),rC({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Ba=sC(),Qs="$$material";function Rr(){const e=Dp(Ba);return process.env.NODE_ENV!=="production"&&S.useDebugValue(e),e[Qs]||e}function iC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bo=e=>iC(e)&&e!=="classes",te=tS({themeId:Qs,defaultTheme:Ba,rootShouldForwardProp:Bo});function aC(){return $x}const Ke=SS;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function We(e){return yS(e)}function lC(e){return _e("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cC=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return $e(s,lC,o)},uC=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Ke(({theme:e})=>{var t,n,o,s,i,a,l,c,u,d,m,h,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,x;return{props:{color:p},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vs=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...f}=o,g=S.isValidElement(s)&&s.type==="svg",p={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const x=cC(p);return b.jsxs(uC,{as:l,className:ce(x.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...y,...f,...g&&s.props,ownerState:p,children:[g?s.props.children:s,m?b.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(vs.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});vs.muiName="SvgIcon";function rt(e,t){function n(o,s){return b.jsx(vs,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=vs.muiName,S.memo(S.forwardRef(n))}function Gt(e){return e&&e.ownerDocument||document}function yr(e){return Gt(e).defaultView||window}function Yc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function dC(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function pC(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=S.useRef(t!==void 0),[a,l]=S.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
|
|
84
|
+
export default theme;`}function Kc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const uC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function dC(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Cs(t,uC(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Kc(n)})`:ti(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Kc(n)})`:ei(t,n)}})}function Ji(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.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://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":no(20));const m=Ga({...i,colorSpace:u}),h=qa(e);let f=Tt(h,{mixins:ZS(h.breakpoints,o),palette:m,shadows:rC.slice(),typography:eC(m,l),transitions:aC(a),zIndex:{...lC}});if(f=Tt(f,d),f=t.reduce((g,p)=>Tt(g,p),f),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,x)=>{let T;for(T in y){const w=y[T];if(g.includes(T)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const C=Re("",T);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
85
|
+
`))}y[T]={}}}};Object.keys(f.components).forEach(y=>{const x=f.components[y].styleOverrides;x&&y.startsWith("Mui")&&p(x,y)})}return f.unstable_sxConfig={...Ar,...d==null?void 0:d.unstable_sxConfig},f.unstable_sx=function(p){return Ao({sx:p,theme:this})},f.toRuntimeSource=tf,dC(f),f}function ea(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const pC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ea(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function nf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function of(e){return e==="dark"?pC:[]}function fC(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:s,...i}=e,a=Ga({...t,colorSpace:s});return{palette:a,opacity:{...nf(a.mode),...n},overlays:o||of(a.mode),...i}}function mC(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gC=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return hC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function bC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ee(e,t,n){!e[t]&&n&&(e[t]=n)}function lr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Kp(e)}function Jt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ar(lr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
86
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function yC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ht=e=>{try{return e()}catch{}},vC=(e="mui")=>LS(e);function Li(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=fC({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Ji({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...nf(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||of(i)},l}function xC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=mC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(n)[0],h=o||(n.light&&m!=="light"?"light":m),f=vC(i),{[h]:g,light:p,dark:y,...x}=n,T={...x};let w=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:no(21,h));let C;a&&(C="oklch");const I=Li(C,T,w,d,h);p&&!T.light&&Li(C,T,p,void 0,"light"),y&&!T.dark&&Li(C,T,y,void 0,"dark");let E={defaultColorScheme:h,...I,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:f,colorSchemes:T,font:{...QS(I.typography),...I.font},spacing:yC(d.spacing)};Object.keys(E.colorSchemes).forEach(A=>{const v=E.colorSchemes[A].palette,P=_=>{const k=_.split("-"),D=k[1],N=k[2];return f(_,v[D][N])};v.mode==="light"&&(ee(v.common,"background","#fff"),ee(v.common,"onBackground","#000")),v.mode==="dark"&&(ee(v.common,"background","#000"),ee(v.common,"onBackground","#fff"));function O(_,k,D){if(C){let N;return _===Hn&&(N=`transparent ${((1-D)*100).toFixed(0)}%`),_===Le&&(N=`#000 ${(D*100).toFixed(0)}%`),_===Ve&&(N=`#fff ${(D*100).toFixed(0)}%`),`color-mix(in ${C}, ${k}, ${N})`}return _(k,D)}if(bC(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){ee(v.Alert,"errorColor",O(Le,a?f("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",O(Le,a?f("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",O(Le,a?f("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",O(Le,a?f("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",P("palette-error-main")),ee(v.Alert,"infoFilledBg",P("palette-info-main")),ee(v.Alert,"successFilledBg",P("palette-success-main")),ee(v.Alert,"warningFilledBg",P("palette-warning-main")),ee(v.Alert,"errorFilledColor",Ht(()=>v.getContrastText(v.error.main))),ee(v.Alert,"infoFilledColor",Ht(()=>v.getContrastText(v.info.main))),ee(v.Alert,"successFilledColor",Ht(()=>v.getContrastText(v.success.main))),ee(v.Alert,"warningFilledColor",Ht(()=>v.getContrastText(v.warning.main))),ee(v.Alert,"errorStandardBg",O(Ve,a?f("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",O(Ve,a?f("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",O(Ve,a?f("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",O(Ve,a?f("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",P("palette-error-main")),ee(v.Alert,"infoIconColor",P("palette-info-main")),ee(v.Alert,"successIconColor",P("palette-success-main")),ee(v.Alert,"warningIconColor",P("palette-warning-main")),ee(v.AppBar,"defaultBg",P("palette-grey-100")),ee(v.Avatar,"defaultBg",P("palette-grey-400")),ee(v.Button,"inheritContainedBg",P("palette-grey-300")),ee(v.Button,"inheritContainedHoverBg",P("palette-grey-A100")),ee(v.Chip,"defaultBorder",P("palette-grey-400")),ee(v.Chip,"defaultAvatarColor",P("palette-grey-700")),ee(v.Chip,"defaultIconColor",P("palette-grey-700")),ee(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(v.LinearProgress,"primaryBg",O(Ve,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.LinearProgress,"secondaryBg",O(Ve,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.LinearProgress,"errorBg",O(Ve,a?f("palette-error-main"):v.error.main,.62)),ee(v.LinearProgress,"infoBg",O(Ve,a?f("palette-info-main"):v.info.main,.62)),ee(v.LinearProgress,"successBg",O(Ve,a?f("palette-success-main"):v.success.main,.62)),ee(v.LinearProgress,"warningBg",O(Ve,a?f("palette-warning-light"):v.warning.main,.62)),ee(v.Skeleton,"bg",C?O(Hn,a?f("palette-text-primary"):v.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),ee(v.Slider,"primaryTrack",O(Ve,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.Slider,"secondaryTrack",O(Ve,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.Slider,"errorTrack",O(Ve,a?f("palette-error-main"):v.error.main,.62)),ee(v.Slider,"infoTrack",O(Ve,a?f("palette-info-main"):v.info.main,.62)),ee(v.Slider,"successTrack",O(Ve,a?f("palette-success-main"):v.success.main,.62)),ee(v.Slider,"warningTrack",O(Ve,a?f("palette-warning-main"):v.warning.main,.62));const _=C?O(Le,a?f("palette-background-default"):v.background.default,.6825):Zr(v.background.default,.8);ee(v.SnackbarContent,"bg",_),ee(v.SnackbarContent,"color",Ht(()=>C?Zi.text.primary:v.getContrastText(_))),ee(v.SpeedDialAction,"fabHoverBg",Zr(v.background.paper,.15)),ee(v.StepConnector,"border",P("palette-grey-400")),ee(v.StepContent,"border",P("palette-grey-400")),ee(v.Switch,"defaultColor",P("palette-common-white")),ee(v.Switch,"defaultDisabledColor",P("palette-grey-100")),ee(v.Switch,"primaryDisabledColor",O(Ve,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.Switch,"secondaryDisabledColor",O(Ve,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.Switch,"errorDisabledColor",O(Ve,a?f("palette-error-main"):v.error.main,.62)),ee(v.Switch,"infoDisabledColor",O(Ve,a?f("palette-info-main"):v.info.main,.62)),ee(v.Switch,"successDisabledColor",O(Ve,a?f("palette-success-main"):v.success.main,.62)),ee(v.Switch,"warningDisabledColor",O(Ve,a?f("palette-warning-main"):v.warning.main,.62)),ee(v.TableCell,"border",O(Ve,Hn(a?f("palette-divider"):v.divider,1),.88)),ee(v.Tooltip,"bg",O(Hn,a?f("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){ee(v.Alert,"errorColor",O(Ve,a?f("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",O(Ve,a?f("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",O(Ve,a?f("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",O(Ve,a?f("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",P("palette-error-dark")),ee(v.Alert,"infoFilledBg",P("palette-info-dark")),ee(v.Alert,"successFilledBg",P("palette-success-dark")),ee(v.Alert,"warningFilledBg",P("palette-warning-dark")),ee(v.Alert,"errorFilledColor",Ht(()=>v.getContrastText(v.error.dark))),ee(v.Alert,"infoFilledColor",Ht(()=>v.getContrastText(v.info.dark))),ee(v.Alert,"successFilledColor",Ht(()=>v.getContrastText(v.success.dark))),ee(v.Alert,"warningFilledColor",Ht(()=>v.getContrastText(v.warning.dark))),ee(v.Alert,"errorStandardBg",O(Le,a?f("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",O(Le,a?f("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",O(Le,a?f("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",O(Le,a?f("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",P("palette-error-main")),ee(v.Alert,"infoIconColor",P("palette-info-main")),ee(v.Alert,"successIconColor",P("palette-success-main")),ee(v.Alert,"warningIconColor",P("palette-warning-main")),ee(v.AppBar,"defaultBg",P("palette-grey-900")),ee(v.AppBar,"darkBg",P("palette-background-paper")),ee(v.AppBar,"darkColor",P("palette-text-primary")),ee(v.Avatar,"defaultBg",P("palette-grey-600")),ee(v.Button,"inheritContainedBg",P("palette-grey-800")),ee(v.Button,"inheritContainedHoverBg",P("palette-grey-700")),ee(v.Chip,"defaultBorder",P("palette-grey-700")),ee(v.Chip,"defaultAvatarColor",P("palette-grey-300")),ee(v.Chip,"defaultIconColor",P("palette-grey-300")),ee(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(v.LinearProgress,"primaryBg",O(Le,a?f("palette-primary-main"):v.primary.main,.5)),ee(v.LinearProgress,"secondaryBg",O(Le,a?f("palette-secondary-main"):v.secondary.main,.5)),ee(v.LinearProgress,"errorBg",O(Le,a?f("palette-error-main"):v.error.main,.5)),ee(v.LinearProgress,"infoBg",O(Le,a?f("palette-info-main"):v.info.main,.5)),ee(v.LinearProgress,"successBg",O(Le,a?f("palette-success-main"):v.success.main,.5)),ee(v.LinearProgress,"warningBg",O(Le,a?f("palette-warning-main"):v.warning.main,.5)),ee(v.Skeleton,"bg",C?O(Hn,a?f("palette-text-primary"):v.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),ee(v.Slider,"primaryTrack",O(Le,a?f("palette-primary-main"):v.primary.main,.5)),ee(v.Slider,"secondaryTrack",O(Le,a?f("palette-secondary-main"):v.secondary.main,.5)),ee(v.Slider,"errorTrack",O(Le,a?f("palette-error-main"):v.error.main,.5)),ee(v.Slider,"infoTrack",O(Le,a?f("palette-info-main"):v.info.main,.5)),ee(v.Slider,"successTrack",O(Le,a?f("palette-success-main"):v.success.main,.5)),ee(v.Slider,"warningTrack",O(Le,a?f("palette-warning-light"):v.warning.main,.5));const _=C?O(Ve,a?f("palette-background-default"):v.background.default,.985):Zr(v.background.default,.98);ee(v.SnackbarContent,"bg",_),ee(v.SnackbarContent,"color",Ht(()=>C?Zp.text.primary:v.getContrastText(_))),ee(v.SpeedDialAction,"fabHoverBg",Zr(v.background.paper,.15)),ee(v.StepConnector,"border",P("palette-grey-600")),ee(v.StepContent,"border",P("palette-grey-600")),ee(v.Switch,"defaultColor",P("palette-grey-300")),ee(v.Switch,"defaultDisabledColor",P("palette-grey-600")),ee(v.Switch,"primaryDisabledColor",O(Le,a?f("palette-primary-main"):v.primary.main,.55)),ee(v.Switch,"secondaryDisabledColor",O(Le,a?f("palette-secondary-main"):v.secondary.main,.55)),ee(v.Switch,"errorDisabledColor",O(Le,a?f("palette-error-main"):v.error.main,.55)),ee(v.Switch,"infoDisabledColor",O(Le,a?f("palette-info-main"):v.info.main,.55)),ee(v.Switch,"successDisabledColor",O(Le,a?f("palette-success-main"):v.success.main,.55)),ee(v.Switch,"warningDisabledColor",O(Le,a?f("palette-warning-light"):v.warning.main,.55)),ee(v.TableCell,"border",O(Le,Hn(a?f("palette-divider"):v.divider,1),.68)),ee(v.Tooltip,"bg",O(Hn,a?f("palette-grey-700"):v.grey[700],.92))}a||(Jt(v.background,"default"),Jt(v.background,"paper"),Jt(v.common,"background"),Jt(v.common,"onBackground"),Jt(v,"divider")),Object.keys(v).forEach(_=>{const k=v[_];_!=="tonalOffset"&&!a&&k&&typeof k=="object"&&(k.main&&ee(v[_],"mainChannel",ar(lr(k.main))),k.light&&ee(v[_],"lightChannel",ar(lr(k.light))),k.dark&&ee(v[_],"darkChannel",ar(lr(k.dark))),k.contrastText&&ee(v[_],"contrastTextChannel",ar(lr(k.contrastText))),_==="text"&&(Jt(v[_],"primary"),Jt(v[_],"secondary")),_==="action"&&(k.active&&Jt(v[_],"active"),k.selected&&Jt(v[_],"selected")))})}),E=t.reduce((A,v)=>Tt(A,v),E);const R={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:gC(E),enableContrastVars:a},{vars:$,generateThemeVars:L,generateStyleSheets:V}=BS(E,R);return E.vars=$,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([A,v])=>{E[A]=v}),E.generateThemeVars=L,E.generateStyleSheets=V,E.generateSpacing=function(){return Vp(d.spacing,Wa(this))},E.getColorSchemeSelector=zS(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...Ar,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(v){return Ao({sx:v,theme:this})},E.toRuntimeSource=tf,E}function Xc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ga({...n===!0?{}:n.palette,mode:t})})}function SC(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=s==null?void 0:s[l],u={...s,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Ji(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const m=Ji({...e,palette:d},...t);return m.defaultColorScheme=l,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Xc(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Xc(m,"light",u.light)),m}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),xC({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Ka=SC(),ni="$$material";function jr(){const e=Bp(Ka);return process.env.NODE_ENV!=="production"&&S.useDebugValue(e),e[ni]||e}function CC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Yo=e=>CC(e)&&e!=="classes",te=bS({themeId:ni,defaultTheme:Ka,rootShouldForwardProp:Yo});function wC(){return Xx}const Qe=jS;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function He(e){return $S(e)}function TC(e){return Re("MuiSvgIcon",e)}Ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const IC=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return je(s,TC,o)},EC=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Qe(({theme:e})=>{var t,n,o,s,i,a,l,c,u,d,m,h,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,x;return{props:{color:p},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ws=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...f}=o,g=S.isValidElement(s)&&s.type==="svg",p={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const x=IC(p);return b.jsxs(EC,{as:l,className:ce(x.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...y,...f,...g&&s.props,ownerState:p,children:[g?s.props.children:s,m?b.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(ws.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});ws.muiName="SvgIcon";function at(e,t){function n(o,s){return b.jsx(ws,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ws.muiName,S.memo(S.forwardRef(n))}function Kt(e){return e&&e.ownerDocument||document}function Tr(e){return Kt(e).defaultView||window}function Qc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _C(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function OC(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=S.useRef(t!==void 0),[a,l]=S.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
|
|
77
87
|
`))},[s,o,t]);const{current:d}=S.useRef(n);S.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
78
|
-
`))},[JSON.stringify(n)])}const u=S.useCallback(d=>{i||l(d)},[]);return[c,u]}function
|
|
79
|
-
`))}return!1}const Kc={};function Zp(e,t){const n=S.useRef(Kc);return n.current===Kc&&(n.current=e(t)),n}class xs{constructor(){U(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 xs}static use(){const t=Zp(xs.create).current,[n,o]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=o,S.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=yC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function bC(){return xs.use()}function yC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},M.apply(null,arguments)}function xe(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Ki(e,t){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Ki(e,t)}function Jp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ki(e,t)}const Xc={disabled:!1};var vC=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]);const Ss=Q.createContext(null);var xC=function(t){return t.scrollTop},or="unmounted",Hn="exited",qn="entering",go="entered",Xi="exiting",zt=(function(e){Jp(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=s,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Hn,i.appearStatus=qn):c=go:o.unmountOnExit||o.mountOnEnter?c=or:c=Hn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===or?{status:Hn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==qn&&a!==go&&(i=qn):(a===qn||a===go)&&(i=Xi)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===qn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this);a&&xC(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hn&&this.setState({status:or})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[er.findDOMNode(this),l],u=c[0],d=c[1],m=this.getTimeouts(),h=l?m.appear:m.enter;if(!s&&!a||Xc.disabled){this.safeSetState({status:go},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:qn},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:go},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:er.findDOMNode(this);if(!i||Xc.disabled){this.safeSetState({status:Hn},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Xi},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:Hn},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===or)return null;var i=this.props,a=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 l=xe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.createElement(Ss.Provider,{value:null},typeof a=="function"?a(s,l):Q.cloneElement(Q.Children.only(a),l))},t})(Q.Component);zt.contextType=Ss;zt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,s,i){var a=e[t];return r.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,s,i)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=vC;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function uo(){}zt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uo,onEntering:uo,onEntered:uo,onExit:uo,onExiting:uo,onExited:uo};zt.UNMOUNTED=or;zt.EXITED=Hn;zt.ENTERING=qn;zt.ENTERED=go;zt.EXITING=Xi;function SC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wa(e,t){var n=function(i){return t&&Q.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Q.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function CC(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var i in e)i in t?s.length&&(o[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function Gn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function wC(e,t){return Wa(e.children,function(n){return Q.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Gn(n,"appear",e),enter:Gn(n,"enter",e),exit:Gn(n,"exit",e)})})}function TC(e,t,n){var o=Wa(e.children),s=CC(t,o);return Object.keys(s).forEach(function(i){var a=s[i];if(Q.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=Q.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=Q.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Gn(a,"exit",e),enter:Gn(a,"enter",e)}):!c&&l&&!d?s[i]=Q.cloneElement(a,{in:!1}):c&&l&&Q.isValidElement(u)&&(s[i]=Q.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Gn(a,"exit",e),enter:Gn(a,"enter",e)}))}}),s}var IC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},EC={component:"div",childFactory:function(t){return t}},Ua=(function(e){Jp(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=i.handleExited.bind(SC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?wC(s,l):TC(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=Wa(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=M({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=xe(s,["component","childFactory"]),c=this.state.contextValue,u=IC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Q.createElement(Ss.Provider,{value:c},u):Q.createElement(Ss.Provider,{value:c},Q.createElement(i,l,u))},t})(Q.Component);Ua.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{};Ua.defaultProps=EC;const OC=[];function _C(e){S.useEffect(e,OC)}let kC=class ef{constructor(){U(this,"currentId",null);U(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});U(this,"disposeEffect",()=>this.clear)}static create(){return new ef}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Ha(){const e=Zp(kC.create).current;return _C(e.disposeEffect),e}function tf(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,m]=S.useState(!1),h=ce(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},g=ce(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&m(!0),S.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,u);return()=>{clearTimeout(p)}}},[c,l,u]),b.jsx("span",{className:h,style:f,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(tf.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const Ot=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qi=550,PC=80,RC=Nn.keyframes`
|
|
88
|
+
`))},[JSON.stringify(n)])}const u=S.useCallback(d=>{i||l(d)},[]);return[c,u]}function Po(e){const t=S.useRef(e);return Nn(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function ft(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function kC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function PC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{kC(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ce(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,s=n(e,o),i=ce(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...s,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const oi=r.oneOfType([r.func,r.object]);function Ln(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function RC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function NC(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!RC(i)&&(l="Did you accidentally provide a plain function component instead?"),i===S.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const Xa=Ln(r.elementType,NC);function Zc(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
89
|
+
`))}return!1}const Jc={};function rf(e,t){const n=S.useRef(Jc);return n.current===Jc&&(n.current=e(t)),n}class Ts{constructor(){U(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 Ts}static use(){const t=rf(Ts.create).current,[n,o]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=o,S.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=$C(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function MC(){return Ts.use()}function $C(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},M.apply(null,arguments)}function Se(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function ta(e,t){return ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ta(e,t)}function sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ta(e,t)}const eu={disabled:!1};var DC=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]);const Is=K.createContext(null);var AC=function(t){return t.scrollTop},cr="unmounted",Xn="exited",Qn="entering",Co="entered",na="exiting",Ut=(function(e){sf(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=s,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Xn,i.appearStatus=Qn):c=Co:o.unmountOnExit||o.mountOnEnter?c=cr:c=Xn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===cr?{status:Xn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==Qn&&a!==Co&&(i=Qn):(a===Qn||a===Co)&&(i=na)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===Qn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this);a&&AC(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xn&&this.setState({status:cr})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[ir.findDOMNode(this),l],u=c[0],d=c[1],m=this.getTimeouts(),h=l?m.appear:m.enter;if(!s&&!a||eu.disabled){this.safeSetState({status:Co},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Qn},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:Co},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:ir.findDOMNode(this);if(!i||eu.disabled){this.safeSetState({status:Xn},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:na},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:Xn},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===cr)return null;var i=this.props,a=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 l=Se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return K.createElement(Is.Provider,{value:null},typeof a=="function"?a(s,l):K.cloneElement(K.Children.only(a),l))},t})(K.Component);Ut.contextType=Is;Ut.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,s,i){var a=e[t];return r.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,s,i)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=DC;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function yo(){}Ut.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yo,onEntering:yo,onEntered:yo,onExit:yo,onExiting:yo,onExited:yo};Ut.UNMOUNTED=cr;Ut.EXITED=Xn;Ut.ENTERING=Qn;Ut.ENTERED=Co;Ut.EXITING=na;function jC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qa(e,t){var n=function(i){return t&&K.isValidElement(i)?t(i):i},o=Object.create(null);return e&&K.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function LC(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var i in e)i in t?s.length&&(o[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function Jn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function VC(e,t){return Qa(e.children,function(n){return K.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Jn(n,"appear",e),enter:Jn(n,"enter",e),exit:Jn(n,"exit",e)})})}function FC(e,t,n){var o=Qa(e.children),s=LC(t,o);return Object.keys(s).forEach(function(i){var a=s[i];if(K.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=K.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=K.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Jn(a,"exit",e),enter:Jn(a,"enter",e)}):!c&&l&&!d?s[i]=K.cloneElement(a,{in:!1}):c&&l&&K.isValidElement(u)&&(s[i]=K.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Jn(a,"exit",e),enter:Jn(a,"enter",e)}))}}),s}var BC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},zC={component:"div",childFactory:function(t){return t}},Za=(function(e){sf(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=i.handleExited.bind(jC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?VC(s,l):FC(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=Qa(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=M({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=Se(s,["component","childFactory"]),c=this.state.contextValue,u=BC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?K.createElement(Is.Provider,{value:c},u):K.createElement(Is.Provider,{value:c},K.createElement(i,l,u))},t})(K.Component);Za.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{};Za.defaultProps=zC;const WC=[];function UC(e){S.useEffect(e,WC)}let qC=class af{constructor(){U(this,"currentId",null);U(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});U(this,"disposeEffect",()=>this.clear)}static create(){return new af}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Ja(){const e=rf(qC.create).current;return UC(e.disposeEffect),e}function lf(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,m]=S.useState(!1),h=ce(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},g=ce(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&m(!0),S.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,u);return()=>{clearTimeout(p)}}},[c,l,u]),b.jsx("span",{className:h,style:f,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(lf.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const kt=Ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),oa=550,HC=80,YC=$n.keyframes`
|
|
80
90
|
0% {
|
|
81
91
|
transform: scale(0);
|
|
82
92
|
opacity: 0.1;
|
|
@@ -86,7 +96,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
86
96
|
transform: scale(1);
|
|
87
97
|
opacity: 0.3;
|
|
88
98
|
}
|
|
89
|
-
`,
|
|
99
|
+
`,GC=$n.keyframes`
|
|
90
100
|
0% {
|
|
91
101
|
opacity: 1;
|
|
92
102
|
}
|
|
@@ -94,7 +104,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
94
104
|
100% {
|
|
95
105
|
opacity: 0;
|
|
96
106
|
}
|
|
97
|
-
`,
|
|
107
|
+
`,KC=$n.keyframes`
|
|
98
108
|
0% {
|
|
99
109
|
transform: scale(1);
|
|
100
110
|
}
|
|
@@ -106,23 +116,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
106
116
|
100% {
|
|
107
117
|
transform: scale(1);
|
|
108
118
|
}
|
|
109
|
-
|
|
119
|
+
`,XC=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),QC=te(lf,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
110
120
|
opacity: 0;
|
|
111
121
|
position: absolute;
|
|
112
122
|
|
|
113
|
-
&.${
|
|
123
|
+
&.${kt.rippleVisible} {
|
|
114
124
|
opacity: 0.3;
|
|
115
125
|
transform: scale(1);
|
|
116
|
-
animation-name: ${
|
|
117
|
-
animation-duration: ${
|
|
126
|
+
animation-name: ${YC};
|
|
127
|
+
animation-duration: ${oa}ms;
|
|
118
128
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
119
129
|
}
|
|
120
130
|
|
|
121
|
-
&.${
|
|
131
|
+
&.${kt.ripplePulsate} {
|
|
122
132
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
123
133
|
}
|
|
124
134
|
|
|
125
|
-
& .${
|
|
135
|
+
& .${kt.child} {
|
|
126
136
|
opacity: 1;
|
|
127
137
|
display: block;
|
|
128
138
|
width: 100%;
|
|
@@ -131,25 +141,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
131
141
|
background-color: currentColor;
|
|
132
142
|
}
|
|
133
143
|
|
|
134
|
-
& .${
|
|
144
|
+
& .${kt.childLeaving} {
|
|
135
145
|
opacity: 0;
|
|
136
|
-
animation-name: ${
|
|
137
|
-
animation-duration: ${
|
|
146
|
+
animation-name: ${GC};
|
|
147
|
+
animation-duration: ${oa}ms;
|
|
138
148
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
139
149
|
}
|
|
140
150
|
|
|
141
|
-
& .${
|
|
151
|
+
& .${kt.childPulsate} {
|
|
142
152
|
position: absolute;
|
|
143
153
|
/* @noflip */
|
|
144
154
|
left: 0px;
|
|
145
155
|
top: 0;
|
|
146
|
-
animation-name: ${
|
|
156
|
+
animation-name: ${KC};
|
|
147
157
|
animation-duration: 2500ms;
|
|
148
158
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
149
159
|
animation-iteration-count: infinite;
|
|
150
160
|
animation-delay: 200ms;
|
|
151
161
|
}
|
|
152
|
-
`,
|
|
162
|
+
`,cf=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:a,...l}=o,[c,u]=S.useState([]),d=S.useRef(0),m=S.useRef(null);S.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=S.useRef(!1),f=Ja(),g=S.useRef(null),p=S.useRef(null),y=S.useCallback(C=>{const{pulsate:I,rippleX:E,rippleY:R,rippleSize:$,cb:L}=C;u(V=>[...V,b.jsx(QC,{classes:{ripple:ce(i.ripple,kt.ripple),rippleVisible:ce(i.rippleVisible,kt.rippleVisible),ripplePulsate:ce(i.ripplePulsate,kt.ripplePulsate),child:ce(i.child,kt.child),childLeaving:ce(i.childLeaving,kt.childLeaving),childPulsate:ce(i.childPulsate,kt.childPulsate)},timeout:oa,pulsate:I,rippleX:E,rippleY:R,rippleSize:$},d.current)]),d.current+=1,m.current=L},[i]),x=S.useCallback((C={},I={},E=()=>{})=>{const{pulsate:R=!1,center:$=s||I.pulsate,fakeElement:L=!1}=I;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const V=L?null:p.current,A=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,P,O;if($||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)v=Math.round(A.width/2),P=Math.round(A.height/2);else{const{clientX:_,clientY:k}=C.touches&&C.touches.length>0?C.touches[0]:C;v=Math.round(_-A.left),P=Math.round(k-A.top)}if($)O=Math.sqrt((2*A.width**2+A.height**2)/3),O%2===0&&(O+=1);else{const _=Math.max(Math.abs((V?V.clientWidth:0)-v),v)*2+2,k=Math.max(Math.abs((V?V.clientHeight:0)-P),P)*2+2;O=Math.sqrt(_**2+k**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:v,rippleY:P,rippleSize:O,cb:E})},f.start(HC,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:R,rippleX:v,rippleY:P,rippleSize:O,cb:E})},[s,y,f]),T=S.useCallback(()=>{x({},{pulsate:!0})},[x]),w=S.useCallback((C,I)=>{if(f.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{w(C,I)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),m.current=I},[f]);return S.useImperativeHandle(n,()=>({pulsate:T,start:x,stop:w}),[T,x,w]),b.jsx(XC,{className:ce(kt.root,i.root,a),ref:p,...l,children:b.jsx(Za,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(cf.propTypes={center:r.bool,classes:r.object,className:r.string});function ZC(e){return Re("MuiButtonBase",e)}const JC=Ee("MuiButtonBase",["root","disabled","focusVisible"]),ew=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,a=je({root:["root",t&&"disabled",n&&"focusVisible"]},ZC,s);return n&&o&&(a.root+=` ${o}`),a},tw=te("button",{name:"MuiButtonBase",slot:"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"},[`&.${JC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oo=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:p,onClick:y,onContextMenu:x,onDragLeave:T,onFocus:w,onFocusVisible:C,onKeyDown:I,onKeyUp:E,onMouseDown:R,onMouseLeave:$,onMouseUp:L,onTouchEnd:V,onTouchMove:A,onTouchStart:v,tabIndex:P=0,TouchRippleProps:O,touchRippleRef:_,type:k,...D}=o,N=S.useRef(null),z=MC(),j=ft(z.ref,_),[B,W]=S.useState(!1);u&&B&&W(!1),S.useImperativeHandle(s,()=>({focusVisible:()=>{W(!0),N.current.focus()}}),[]);const X=z.shouldMount&&!d&&!u;S.useEffect(()=>{B&&h&&!d&&z.pulsate()},[d,h,B,z]);const Z=en(z,"start",R,m),Y=en(z,"stop",x,m),Q=en(z,"stop",T,m),ne=en(z,"stop",L,m),H=en(z,"stop",se=>{B&&se.preventDefault(),$&&$(se)},m),F=en(z,"start",v,m),q=en(z,"stop",V,m),ae=en(z,"stop",A,m),G=en(z,"stop",se=>{Zc(se.target)||W(!1),p&&p(se)},!1),ue=Po(se=>{N.current||(N.current=se.currentTarget),Zc(se.target)&&(W(!0),C&&C(se)),w&&w(se)}),oe=()=>{const se=N.current;return se?se.tagName==="BUTTON"?!1:!(se.tagName==="A"&&se.href):c&&c!=="button"},ye=Po(se=>{h&&!se.repeat&&B&&se.key===" "&&z.stop(se,()=>{z.start(se)}),se.target===se.currentTarget&&oe()&&se.key===" "&&se.preventDefault(),I&&I(se),se.target===se.currentTarget&&oe()&&se.key==="Enter"&&!u&&(se.preventDefault(),y&&y(se))}),he=Po(se=>{h&&se.key===" "&&B&&!se.defaultPrevented&&z.stop(se,()=>{z.pulsate(se)}),E&&E(se),y&&se.target===se.currentTarget&&oe()&&se.key===" "&&!se.defaultPrevented&&!u&&y(se)});let re=c;re==="button"&&(D.href||D.to)&&(re=g);const J={};if(re==="button"){const se=!!D.formAction;J.type=k===void 0&&!se?"button":k,J.disabled=u}else!D.href&&!D.to&&(J.role="button"),u&&(J["aria-disabled"]=u);const ge=ft(n,N),ie={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:h,tabIndex:P,focusVisible:B},me=ew(ie);return b.jsxs(tw,{as:re,className:ce(me.root,l),ownerState:ie,onBlur:G,onClick:y,onContextMenu:Y,onFocus:ue,onKeyDown:ye,onKeyUp:he,onMouseDown:Z,onMouseLeave:H,onMouseUp:ne,onDragLeave:Q,onTouchEnd:q,onTouchMove:ae,onTouchStart:F,ref:ge,tabIndex:u?-1:P,type:k,...J,...D,children:[a,X?b.jsx(cf,{ref:j,center:i,...O}):null]})});function en(e,t,n,o=!1){return Po(s=>(n&&n(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(oo.propTypes={action:oi,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:Xa,disabled:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,formAction:r.oneOfType([r.func,r.string]),href:r.any,LinkComponent:r.elementType,onBlur:r.func,onClick:r.func,onContextMenu:r.func,onDragLeave:r.func,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onKeyUp:r.func,onMouseDown:r.func,onMouseLeave:r.func,onMouseUp:r.func,onTouchEnd:r.func,onTouchMove:r.func,onTouchStart:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string])});function nw(e){return typeof e.main=="string"}function ow(e,t=[]){if(!nw(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function bt(e=[]){return([,t])=>t&&ow(t,e)}function rw(e){return Re("MuiCircularProgress",e)}Ee("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Vt=44,ra=$n.keyframes`
|
|
153
163
|
0% {
|
|
154
164
|
transform: rotate(0deg);
|
|
155
165
|
}
|
|
@@ -157,7 +167,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
157
167
|
100% {
|
|
158
168
|
transform: rotate(360deg);
|
|
159
169
|
}
|
|
160
|
-
`,
|
|
170
|
+
`,sa=$n.keyframes`
|
|
161
171
|
0% {
|
|
162
172
|
stroke-dasharray: 1px, 200px;
|
|
163
173
|
stroke-dashoffset: 0;
|
|
@@ -172,11 +182,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
172
182
|
stroke-dasharray: 1px, 200px;
|
|
173
183
|
stroke-dashoffset: -126px;
|
|
174
184
|
}
|
|
175
|
-
`,
|
|
176
|
-
animation: ${
|
|
177
|
-
`:null,
|
|
178
|
-
animation: ${
|
|
179
|
-
`:null,HC=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,i={root:["root",n,`color${le(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${le(n)}`,s&&"circleDisableShrink"]};return $e(i,zC,t)},qC=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Ke(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:WC||{animation:`${Zi} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),YC=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),GC=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ke(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:UC||{animation:`${Ji} 1.4s ease-in-out infinite`}}]}))),KC=te("circle",{name:"MuiCircularProgress",slot:"Track"})(Ke(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Js=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...f}=o,g={...o,color:i,disableShrink:a,size:c,thickness:d,value:m,variant:h,enableTrackSlot:l},p=HC(g),y={},x={},T={};if(h==="determinate"){const w=2*Math.PI*((jt-d)/2);y.strokeDasharray=w.toFixed(3),T["aria-valuenow"]=Math.round(m),y.strokeDashoffset=`${((100-m)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return b.jsx(qC,{className:ce(p.root,s),style:{width:c,height:c,...x,...u},ownerState:g,ref:n,role:"progressbar",...T,...f,children:b.jsxs(YC,{className:p.svg,ownerState:g,viewBox:`${jt/2} ${jt/2} ${jt} ${jt}`,children:[l?b.jsx(KC,{className:p.track,ownerState:g,cx:jt,cy:jt,r:(jt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(GC,{className:p.circle,style:y,ownerState:g,cx:jt,cy:jt,r:(jt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Js.propTypes={classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.string]),disableShrink:An(r.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:r.bool,size:r.oneOfType([r.number,r.string]),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thickness:r.number,value:r.number,variant:r.oneOf(["determinate","indeterminate"])});function XC(e){return _e("MuiButton",e)}const zn=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"]),of=S.createContext({});process.env.NODE_ENV!=="production"&&(of.displayName="ButtonGroupContext");const rf=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(rf.displayName="ButtonGroupButtonContext");const QC=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${le(t)}`,`size${le(s)}`,`${i}Size${le(s)}`,`color${le(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${le(l)}`],startIcon:["icon","startIcon",`iconSize${le(s)}`],endIcon:["icon","endIcon",`iconSize${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=$e(u,XC,c);return{...c,...d}},sf=[{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}}}],ZC=te(Zn,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${zn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:o})=>o.startIcon||o.loading&&o.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${zn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${zn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${zn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ht()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${zn.loading}`]:{color:"transparent"}}}]}})),JC=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...sf]})),ew=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...sf]})),tw=te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({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:(e.vars||e).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}}]})),Qc=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),nn=S.forwardRef(function(t,n){const o=S.useContext(of),s=S.useContext(rf),i=gr(o,t),a=We({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:g,focusVisibleClassName:p,fullWidth:y=!1,id:x,loading:T=null,loadingIndicator:w,loadingPosition:C="center",size:I="medium",startIcon:E,type:R,variant:$="text",...L}=a,V=Va(x),j=w??b.jsx(Js,{"aria-labelledby":V,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:f,fullWidth:y,loading:T,loadingIndicator:j,loadingPosition:C,size:I,type:R,variant:$},P=QC(v),_=(E||T&&C==="start")&&b.jsx(JC,{className:P.startIcon,ownerState:v,children:E||b.jsx(Qc,{className:P.loadingIconPlaceholder,ownerState:v})}),O=(g||T&&C==="end")&&b.jsx(ew,{className:P.endIcon,ownerState:v,children:g||b.jsx(Qc,{className:P.loadingIconPlaceholder,ownerState:v})}),k=s||"",D=typeof T=="boolean"?b.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:T&&b.jsx(tw,{className:P.loadingIndicator,ownerState:v,children:j})}):null,{root:N,...z}=P;return b.jsxs(ZC,{ownerState:v,className:ce(o.className,P.root,d,k),component:u,disabled:m||T,focusRipple:!f,focusVisibleClassName:ce(P.focusVisible,p),ref:n,type:R,id:T?V:x,...L,classes:z,children:[_,C!=="end"&&D,l,C==="end"&&D,O]})});process.env.NODE_ENV!=="production"&&(nn.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,id:r.string,loading:r.bool,loadingIndicator:r.node,loadingPosition:r.oneOf(["center","end","start"]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});const af=S.createContext(null);process.env.NODE_ENV!=="production"&&(af.displayName="TabContext");process.env.NODE_ENV!=="production"&&(r.node,r.oneOfType([r.number,r.string]).isRequired);function nw(){return S.useContext(af)}function ow(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function rw(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}var Xr={exports:{}},Ve={};/**
|
|
185
|
+
`,sw=typeof ra!="string"?$n.css`
|
|
186
|
+
animation: ${ra} 1.4s linear infinite;
|
|
187
|
+
`:null,iw=typeof sa!="string"?$n.css`
|
|
188
|
+
animation: ${sa} 1.4s ease-in-out infinite;
|
|
189
|
+
`:null,aw=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,i={root:["root",n,`color${le(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${le(n)}`,s&&"circleDisableShrink"]};return je(i,rw,t)},lw=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:sw||{animation:`${ra} 1.4s linear infinite`}},...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),cw=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),uw=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:iw||{animation:`${sa} 1.4s ease-in-out infinite`}}]}))),dw=te("circle",{name:"MuiCircularProgress",slot:"Track"})(Qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ri=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...f}=o,g={...o,color:i,disableShrink:a,size:c,thickness:d,value:m,variant:h,enableTrackSlot:l},p=aw(g),y={},x={},T={};if(h==="determinate"){const w=2*Math.PI*((Vt-d)/2);y.strokeDasharray=w.toFixed(3),T["aria-valuenow"]=Math.round(m),y.strokeDashoffset=`${((100-m)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return b.jsx(lw,{className:ce(p.root,s),style:{width:c,height:c,...x,...u},ownerState:g,ref:n,role:"progressbar",...T,...f,children:b.jsxs(cw,{className:p.svg,ownerState:g,viewBox:`${Vt/2} ${Vt/2} ${Vt} ${Vt}`,children:[l?b.jsx(dw,{className:p.track,ownerState:g,cx:Vt,cy:Vt,r:(Vt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(uw,{className:p.circle,style:y,ownerState:g,cx:Vt,cy:Vt,r:(Vt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(ri.propTypes={classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.string]),disableShrink:Ln(r.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:r.bool,size:r.oneOfType([r.number,r.string]),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thickness:r.number,value:r.number,variant:r.oneOf(["determinate","indeterminate"])});function pw(e){return Re("MuiButton",e)}const Yn=Ee("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"]),uf=S.createContext({});process.env.NODE_ENV!=="production"&&(uf.displayName="ButtonGroupContext");const df=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(df.displayName="ButtonGroupButtonContext");const fw=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${le(t)}`,`size${le(s)}`,`${i}Size${le(s)}`,`color${le(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${le(l)}`],startIcon:["icon","startIcon",`iconSize${le(s)}`],endIcon:["icon","endIcon",`iconSize${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=je(u,pw,c);return{...c,...d}},pf=[{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}}}],mw=te(oo,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:o})=>o.startIcon||o.loading&&o.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Yn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Yn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${Yn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(bt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Yn.loading}`]:{color:"transparent"}}}]}})),hw=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...pf]})),gw=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...pf]})),bw=te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({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:(e.vars||e).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}}]})),tu=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),nn=S.forwardRef(function(t,n){const o=S.useContext(uf),s=S.useContext(df),i=Cr(o,t),a=He({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:g,focusVisibleClassName:p,fullWidth:y=!1,id:x,loading:T=null,loadingIndicator:w,loadingPosition:C="center",size:I="medium",startIcon:E,type:R,variant:$="text",...L}=a,V=Ya(x),A=w??b.jsx(ri,{"aria-labelledby":V,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:f,fullWidth:y,loading:T,loadingIndicator:A,loadingPosition:C,size:I,type:R,variant:$},P=fw(v),O=(E||T&&C==="start")&&b.jsx(hw,{className:P.startIcon,ownerState:v,children:E||b.jsx(tu,{className:P.loadingIconPlaceholder,ownerState:v})}),_=(g||T&&C==="end")&&b.jsx(gw,{className:P.endIcon,ownerState:v,children:g||b.jsx(tu,{className:P.loadingIconPlaceholder,ownerState:v})}),k=s||"",D=typeof T=="boolean"?b.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:T&&b.jsx(bw,{className:P.loadingIndicator,ownerState:v,children:A})}):null,{root:N,...z}=P;return b.jsxs(mw,{ownerState:v,className:ce(o.className,P.root,d,k),component:u,disabled:m||T,focusRipple:!f,focusVisibleClassName:ce(P.focusVisible,p),ref:n,type:R,id:T?V:x,...L,classes:z,children:[O,C!=="end"&&D,l,C==="end"&&D,_]})});process.env.NODE_ENV!=="production"&&(nn.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,id:r.string,loading:r.bool,loadingIndicator:r.node,loadingPosition:r.oneOf(["center","end","start"]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});const ff=S.createContext(null);process.env.NODE_ENV!=="production"&&(ff.displayName="TabContext");process.env.NODE_ENV!=="production"&&(r.node,r.oneOfType([r.number,r.string]).isRequired);function yw(){return S.useContext(ff)}function vw(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function xw(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}var Jr={exports:{}},ze={};/**
|
|
180
190
|
* @license React
|
|
181
191
|
* react-is.production.js
|
|
182
192
|
*
|
|
@@ -184,7 +194,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
184
194
|
*
|
|
185
195
|
* This source code is licensed under the MIT license found in the
|
|
186
196
|
* LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/var
|
|
197
|
+
*/var nu;function Sw(){if(nu)return ze;nu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case s:case o:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case m:case d:return p;case i:return p;default:return y}}case t:return y}}}return ze.ContextConsumer=i,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=l,ze.Fragment=n,ze.Lazy=m,ze.Memo=d,ze.Portal=t,ze.Profiler=s,ze.StrictMode=o,ze.Suspense=c,ze.SuspenseList=u,ze.isContextConsumer=function(p){return g(p)===i},ze.isContextProvider=function(p){return g(p)===a},ze.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ze.isForwardRef=function(p){return g(p)===l},ze.isFragment=function(p){return g(p)===n},ze.isLazy=function(p){return g(p)===m},ze.isMemo=function(p){return g(p)===d},ze.isPortal=function(p){return g(p)===t},ze.isProfiler=function(p){return g(p)===s},ze.isStrictMode=function(p){return g(p)===o},ze.isSuspense=function(p){return g(p)===c},ze.isSuspenseList=function(p){return g(p)===u},ze.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===s||p===o||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===f||p.getModuleId!==void 0)},ze.typeOf=g,ze}var We={};/**
|
|
188
198
|
* @license React
|
|
189
199
|
* react-is.development.js
|
|
190
200
|
*
|
|
@@ -192,29 +202,29 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
192
202
|
*
|
|
193
203
|
* This source code is licensed under the MIT license found in the
|
|
194
204
|
* LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/var Jc;function iw(){return Jc||(Jc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case o:case i:case s:case u:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case m:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Fe.ContextConsumer=a,Fe.ContextProvider=l,Fe.Element=t,Fe.ForwardRef=c,Fe.Fragment=o,Fe.Lazy=h,Fe.Memo=m,Fe.Portal=n,Fe.Profiler=i,Fe.StrictMode=s,Fe.Suspense=u,Fe.SuspenseList=d,Fe.isContextConsumer=function(p){return e(p)===a},Fe.isContextProvider=function(p){return e(p)===l},Fe.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Fe.isForwardRef=function(p){return e(p)===c},Fe.isFragment=function(p){return e(p)===o},Fe.isLazy=function(p){return e(p)===h},Fe.isMemo=function(p){return e(p)===m},Fe.isPortal=function(p){return e(p)===n},Fe.isProfiler=function(p){return e(p)===i},Fe.isStrictMode=function(p){return e(p)===s},Fe.isSuspense=function(p){return e(p)===u},Fe.isSuspenseList=function(p){return e(p)===d},Fe.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===i||p===s||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},Fe.typeOf=e})()),Fe}var eu;function aw(){return eu||(eu=1,process.env.NODE_ENV==="production"?Xr.exports=sw():Xr.exports=iw()),Xr.exports}var lw=aw();function ea(e){return typeof e=="string"}function lf(e,t,n){return e===void 0||ea(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function cf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function tu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function uf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=cf({...s,...o}),l=tu(o),c=tu(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function df(e,t,n){return typeof e=="function"?e(t,n):e}function cw(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:df(n,o),{props:l,internalRef:c}=uf({...i,externalSlotProps:a}),u=dt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return lf(t,{...l,ref:u},o)}function rr(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function pf(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function Ye(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=i,f=d[e]||o,g=df(m[e],s),{props:{component:p,...y},internalRef:x}=uf({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),T=dt(x,g==null?void 0:g.ref,t.ref),w=e==="root"?p||u:p,C=lf(f,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...w&&!l&&{as:w},...w&&l&&{component:w},ref:T},s);return[f,C]}function Be({props:e,name:t}){return iS({props:e,name:t,defaultTheme:Ba,themeId:Qs})}function uw(e){return _e("MuiTabPanel",e)}we("MuiTabPanel",["root","hidden"]);const dw=e=>{const{classes:t,hidden:n}=e;return $e({root:["root",n&&"hidden"]},uw,t)},pw=te("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),ff=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiTabPanel"}),{children:s,className:i,value:a,keepMounted:l=!1,...c}=o,u={...o},d=dw(u),m=nw();if(m===null)throw new TypeError("No TabContext provided");const h=ow(m,a),f=rw(m,a);return b.jsx(pw,{"aria-labelledby":f,className:ce(d.root,i),hidden:a!==m.value,id:h,ref:n,role:"tabpanel",ownerState:u,...c,children:(l||a===m.value)&&s})});process.env.NODE_ENV!=="production"&&(ff.propTypes={children:r.node,classes:r.object,className:r.string,keepMounted:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.number,r.string]).isRequired});const Cs=S.createContext({});process.env.NODE_ENV!=="production"&&(Cs.displayName="TimelineContext");function fw(e){return _e("MuiTimeline",e)}we("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function ei(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${le(e)}`}const mw=e=>{const{position:t,classes:n}=e,o={root:["root",t&&ei(t)]};return $e(o,fw,n)},hw=te("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[ei(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),mf=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiTimeline"}),{position:s="right",className:i,...a}=o,l={...o,position:s},c=mw(l),u=S.useMemo(()=>({position:s}),[s]);return b.jsx(Cs.Provider,{value:u,children:b.jsx(hw,{className:ce(c.root,i),ownerState:l,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(mf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function gw(e){return _e("MuiTypography",e)}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 bw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},yw=aC(),vw=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return $e(l,gw,a)},xw=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ke(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(ht()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${le(n)}`},style:{color:(e.vars||e).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}}]}})),nu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},no=S.forwardRef(function(t,n){const{color:o,...s}=We({props:t,name:"MuiTypography"}),i=!bw[o],a=yw({...s,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=nu,...p}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:f,variantMapping:g},x=u||(h?"p":g[f]||nu[f])||"span",T=vw(y);return b.jsx(xw,{as:x,ref:n,className:ce(T.root,c),...p,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(no.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});const Sw=we("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Cw=we("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function ww(e){return _e("MuiTimelineItem",e)}we("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Tw=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,s={root:["root",ei(t),!o&&"missingOppositeContent"]};return $e(s,ww,n)},Iw=te("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[ei(n.position)]]}})(({ownerState:e})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...e.position==="left"&&{flexDirection:"row-reverse"},...(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${Sw.root}`]:{textAlign:"right"},[`& .${Cw.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),hf=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiTimelineItem"}),{position:s,className:i,...a}=o,{position:l}=S.useContext(Cs);let c=!1;S.Children.forEach(o.children,h=>{wo(h,["TimelineOppositeContent"])&&(c=!0)});const u={...o,position:s||l||"right",hasOppositeContent:c},d=Tw(u),m=S.useMemo(()=>({position:u.position}),[u.position]);return b.jsx(Cs.Provider,{value:m,children:b.jsx(Iw,{className:ce(d.root,i),ownerState:u,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(hf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function ou(e,t){var o;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(n&&n instanceof ShadowRoot){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode??s.host??null}}return!1}const gf=Q.forwardRef(function(t,n){const{variant:o="default",orientation:s="horizontal",inverted:i=!1,overStyled:a=!1,className:l,...c}=t,u=fe(c,a);return b.jsx(pe.Tabs,{ref:n,...u,orientation:s,className:`${ir.root} ${l||""}`,"data-variant":o,"data-orientation":s,"data-inverted":i||void 0,classes:{flexContainer:ir.list,indicator:ir.indicator}})});gf.displayName="Tabs";const bf=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=fe(i,o);return b.jsx(pe.Tab,{ref:n,className:`${ir.tab} ${s||""}`,...a})});bf.displayName="Tab";const yf=Q.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=fe(i,o);return b.jsx(ff,{ref:n,className:`${ir.panel} ${s||""}`,...a})});yf.displayName="TabPanel";const ti=Q.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},s){const i=fe(o,n),l=i.className,c=l?`${t} ${l}`:t;return b.jsx(pe.Typography,{ref:s,className:c,variant:"inherit",...i})});ti.displayName="Typography";const vf=Q.forwardRef(function({variant:t="body",...n},o){const s=`recursica_brand_typography_${t}`;return b.jsx(ti,{ref:o,typographyClass:s,...n})});vf.displayName="Text";const Ew="TextArea-module__layoutOverride___4MCdm",Ow="TextArea-module__root___3dyeu",_w="TextArea-module__input___8l36v",vn={layoutOverride:Ew,root:Ow,input:_w},xf=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,withAsterisk:p,id:y,className:x,style:T,disabled:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,...L}=t,V=fe(L,o),j=V;delete j.size,delete j.variant,delete j.radius;const v={wrapper:vn.root,input:vn.input},P=j.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const O=P;v.wrapper=O.wrapper?`${vn.root} ${O.wrapper}`:vn.root,v.input=O.input?`${vn.input} ${O.input}`:vn.input}const _=x?`${vn.layoutOverride} ${x}`:vn.layoutOverride;return b.jsx(Bt,{className:_,style:T,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:y,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{multiline:!0,inputRef:n,classes:v,disabled:w,value:R,defaultValue:$,label:void 0,error:void 0,required:void 0,...V})})});xf.displayName="TextArea";const kw="TextField-module__layoutOverride___SNZqc",Pw="TextField-module__root___2ZYkG",Rw="TextField-module__input___RL-My",Nw="TextField-module__section___bCIJ0",tn={layoutOverride:kw,root:Pw,input:Rw,section:Nw},Sf=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:T,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:R,leftSection:$,rightSection:L,...V}=t,j=fe(V,o),v=j;delete v.size,delete v.color;const P={wrapper:tn.root,input:tn.input,section:tn.section},_=v.classes;if(_&&typeof _=="object"&&!Array.isArray(_)){const N=_;P.wrapper=N.root?`${tn.root} ${N.root}`:tn.root,P.input=N.input?`${tn.input} ${N.input}`:tn.input}const O=y?`${tn.layoutOverride} ${y}`:tn.layoutOverride,k=$?b.jsx("div",{className:P.section,"data-position":"left",children:$}):void 0,D=L?b.jsx("div",{className:P.section,"data-position":"right",children:L}):void 0;return b.jsx(Bt,{className:O,style:x,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:C,emptyValueComponent:I||void 0,readOnlyType:"text",readOnlyValue:E!==void 0?E:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.InputBase,{inputRef:n,...j,classes:{root:P.wrapper,input:P.input},disabled:T,value:E,defaultValue:R,startAdornment:k,endAdornment:D,"data-disabled":T?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":$?"true":void 0,"data-with-right-section":L?"true":void 0})})});Sf.displayName="TextField";function Oe(e,...t){const n=new URL("https://mui.com/x/production-error");return n.searchParams.set("code",e.toString()),t.forEach(o=>n.searchParams.append("args[]",o)),`MUI X error #${e}; visit ${n} for the full message.`}const Mw=["localeText"],ws=S.createContext(null);process.env.NODE_ENV!=="production"&&(ws.displayName="PickerAdapterContext");const ni=function(t){const{localeText:n}=t,o=xe(t,Mw),{adapter:s,localeText:i}=S.useContext(ws)??{adapter:void 0,localeText:void 0},a=Be({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:h}=a,f=S.useMemo(()=>M({},h,i,n),[h,i,n]),g=S.useMemo(()=>{if(!c)return s||null;const x=new c({locale:m,formats:u,instance:d});if(!x.isMUIAdapter)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`. Using adapters from @date-io directly is not supported. For example, use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`. See https://mui.com/x/react-date-pickers/quickstart/#installation":Oe(143));return x},[c,m,u,d,s]),p=S.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),y=S.useMemo(()=>({adapter:g,defaultDates:p,localeText:f}),[p,g,f]);return b.jsx(ws.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ni.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ni.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});var ss={exports:{}},$w=ss.exports,ru;function Dw(){return ru||(ru=1,(function(e,t){(function(n,o){e.exports=o()})($w,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",h="quarter",f="year",g="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|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,T={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(_){var O=["th","st","nd","rd"],k=_%100;return"["+_+(O[(k-20)%10]||O[k]||O[0])+"]"}},w=function(_,O,k){var D=String(_);return!D||D.length>=O?_:""+Array(O+1-D.length).join(k)+_},C={s:w,z:function(_){var O=-_.utcOffset(),k=Math.abs(O),D=Math.floor(k/60),N=k%60;return(O<=0?"+":"-")+w(D,2,"0")+":"+w(N,2,"0")},m:function _(O,k){if(O.date()<k.date())return-_(k,O);var D=12*(k.year()-O.year())+(k.month()-O.month()),N=O.clone().add(D,m),z=k-N<0,A=O.clone().add(D+(z?-1:1),m);return+(-(D+(k-N)/(z?N-A:A-N))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:m,y:f,w:d,d:u,D:g,h:c,m:l,s:a,ms:i,Q:h}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},I="en",E={};E[I]=T;var R="$isDayjsObject",$=function(_){return _ instanceof v||!(!_||!_[R])},L=function _(O,k,D){var N;if(!O)return I;if(typeof O=="string"){var z=O.toLowerCase();E[z]&&(N=z),k&&(E[z]=k,N=z);var A=O.split("-");if(!N&&A.length>1)return _(A[0])}else{var F=O.name;E[F]=O,N=F}return!D&&N&&(I=N),N||!D&&I},V=function(_,O){if($(_))return _.clone();var k=typeof O=="object"?O:{};return k.date=_,k.args=arguments,new v(k)},j=C;j.l=L,j.i=$,j.w=function(_,O){return V(_,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var v=(function(){function _(k){this.$L=L(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[R]=!0}var O=_.prototype;return O.parse=function(k){this.$d=(function(D){var N=D.date,z=D.utc;if(N===null)return new Date(NaN);if(j.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var A=N.match(y);if(A){var F=A[2]-1||0,W=(A[7]||"0").substring(0,3);return z?new Date(Date.UTC(A[1],F,A[3]||1,A[4]||0,A[5]||0,A[6]||0,W)):new Date(A[1],F,A[3]||1,A[4]||0,A[5]||0,A[6]||0,W)}}return new Date(N)})(k),this.init()},O.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},O.$utils=function(){return j},O.isValid=function(){return this.$d.toString()!==p},O.isSame=function(k,D){var N=V(k);return this.startOf(D)<=N&&N<=this.endOf(D)},O.isAfter=function(k,D){return V(k)<this.startOf(D)},O.isBefore=function(k,D){return this.endOf(D)<V(k)},O.$g=function(k,D,N){return j.u(k)?this[D]:this.set(N,k)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(k,D){var N=this,z=!!j.u(D)||D,A=j.p(k),F=function(B,H){var ae=j.w(N.$u?Date.UTC(N.$y,H,B):new Date(N.$y,H,B),N);return z?ae:ae.endOf(u)},W=function(B,H){return j.w(N.toDate()[B].apply(N.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(H)),N)},K=this.$W,Z=this.$M,Y=this.$D,X="set"+(this.$u?"UTC":"");switch(A){case f:return z?F(1,0):F(31,11);case m:return z?F(1,Z):F(0,Z+1);case d:var ne=this.$locale().weekStart||0,q=(K<ne?K+7:K)-ne;return F(z?Y-q:Y+(6-q),Z);case u:case g:return W(X+"Hours",0);case c:return W(X+"Minutes",1);case l:return W(X+"Seconds",2);case a:return W(X+"Milliseconds",3);default:return this.clone()}},O.endOf=function(k){return this.startOf(k,!1)},O.$set=function(k,D){var N,z=j.p(k),A="set"+(this.$u?"UTC":""),F=(N={},N[u]=A+"Date",N[g]=A+"Date",N[m]=A+"Month",N[f]=A+"FullYear",N[c]=A+"Hours",N[l]=A+"Minutes",N[a]=A+"Seconds",N[i]=A+"Milliseconds",N)[z],W=z===u?this.$D+(D-this.$W):D;if(z===m||z===f){var K=this.clone().set(g,1);K.$d[F](W),K.init(),this.$d=K.set(g,Math.min(this.$D,K.daysInMonth())).$d}else F&&this.$d[F](W);return this.init(),this},O.set=function(k,D){return this.clone().$set(k,D)},O.get=function(k){return this[j.p(k)]()},O.add=function(k,D){var N,z=this;k=Number(k);var A=j.p(D),F=function(Z){var Y=V(z);return j.w(Y.date(Y.date()+Math.round(Z*k)),z)};if(A===m)return this.set(m,this.$M+k);if(A===f)return this.set(f,this.$y+k);if(A===u)return F(1);if(A===d)return F(7);var W=(N={},N[l]=o,N[c]=s,N[a]=n,N)[A]||1,K=this.$d.getTime()+k*W;return j.w(K,this)},O.subtract=function(k,D){return this.add(-1*k,D)},O.format=function(k){var D=this,N=this.$locale();if(!this.isValid())return N.invalidDate||p;var z=k||"YYYY-MM-DDTHH:mm:ssZ",A=j.z(this),F=this.$H,W=this.$m,K=this.$M,Z=N.weekdays,Y=N.months,X=N.meridiem,ne=function(H,ae,G,de){return H&&(H[ae]||H(D,z))||G[ae].slice(0,de)},q=function(H){return j.s(F%12||12,H,"0")},B=X||function(H,ae,G){var de=H<12?"AM":"PM";return G?de.toLowerCase():de};return z.replace(x,(function(H,ae){return ae||(function(G){switch(G){case"YY":return String(D.$y).slice(-2);case"YYYY":return j.s(D.$y,4,"0");case"M":return K+1;case"MM":return j.s(K+1,2,"0");case"MMM":return ne(N.monthsShort,K,Y,3);case"MMMM":return ne(Y,K);case"D":return D.$D;case"DD":return j.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ne(N.weekdaysMin,D.$W,Z,2);case"ddd":return ne(N.weekdaysShort,D.$W,Z,3);case"dddd":return Z[D.$W];case"H":return String(F);case"HH":return j.s(F,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return B(F,W,!0);case"A":return B(F,W,!1);case"m":return String(W);case"mm":return j.s(W,2,"0");case"s":return String(D.$s);case"ss":return j.s(D.$s,2,"0");case"SSS":return j.s(D.$ms,3,"0");case"Z":return A}return null})(H)||A.replace(":","")}))},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(k,D,N){var z,A=this,F=j.p(D),W=V(k),K=(W.utcOffset()-this.utcOffset())*o,Z=this-W,Y=function(){return j.m(A,W)};switch(F){case f:z=Y()/12;break;case m:z=Y();break;case h:z=Y()/3;break;case d:z=(Z-K)/6048e5;break;case u:z=(Z-K)/864e5;break;case c:z=Z/s;break;case l:z=Z/o;break;case a:z=Z/n;break;default:z=Z}return N?z:j.a(z)},O.daysInMonth=function(){return this.endOf(m).$D},O.$locale=function(){return E[this.$L]},O.locale=function(k,D){if(!k)return this.$L;var N=this.clone(),z=L(k,D,!0);return z&&(N.$L=z),N},O.clone=function(){return j.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},_})(),P=v.prototype;return V.prototype=P,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",g]].forEach((function(_){P[_[1]]=function(O){return this.$g(O,_[0],_[1])}})),V.extend=function(_,O){return _.$i||(_(O,v,V),_.$i=!0),V},V.locale=L,V.isDayjs=$,V.unix=function(_){return V(1e3*_)},V.en=E[I],V.Ls=E,V.p={},V}))})(ss)),ss.exports}var Aw=Dw();const it=to(Aw);var is={exports:{}},jw=is.exports,su;function Lw(){return su||(su=1,(function(e,t){(function(n,o){e.exports=o()})(jw,(function(){var n="week",o="year";return function(s,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),m=a(this).endOf(n);if(d.isBefore(m))return 1}var h=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(h,n,!0);return f<0?a(this).startOf("week").week():Math.ceil(f)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(is)),is.exports}var Vw=Lw();const Fw=to(Vw);var as={exports:{}},Bw=as.exports,iu;function zw(){return iu||(iu=1,(function(e,t){(function(n,o){e.exports=o()})(Bw,(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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(x){this[y]=+x}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var T=x.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w})(y)}],h=function(y){var x=c[y];return x&&(x.indexOf?x:x.s.concat(x.f))},f=function(y,x){var T,w=c.meridiem;if(w){for(var C=1;C<=24;C+=1)if(y.indexOf(w(C,0,x))>-1){T=C>12;break}}else T=y===(x?"pm":"PM");return T},g={A:[l,function(y){this.afternoon=f(y,!1)}],a:[l,function(y){this.afternoon=f(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var x=c.ordinal,T=y.match(/\d+/);if(this.day=T[0],x)for(var w=1;w<=31;w+=1)x(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var x=h("months"),T=(h("monthsShort")||x.map((function(w){return w.slice(0,3)}))).indexOf(y)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[l,function(y){var x=h("months").indexOf(y)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function p(y){var x,T;x=y,T=c&&c.formats;for(var w=(y=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,j,v){var P=v&&v.toUpperCase();return j||T[v]||n[v]||T[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(_,O,k){return O||k.slice(1)}))}))).match(o),C=w.length,I=0;I<C;I+=1){var E=w[I],R=g[E],$=R&&R[0],L=R&&R[1];w[I]=L?{regex:$,parser:L}:E.replace(/^\[|\]$/g,"")}return function(V){for(var j={},v=0,P=0;v<C;v+=1){var _=w[v];if(typeof _=="string")P+=_.length;else{var O=_.regex,k=_.parser,D=V.slice(P),N=O.exec(D)[0];k.call(j,N),V=V.replace(N,"")}}return(function(z){var A=z.afternoon;if(A!==void 0){var F=z.hours;A?F<12&&(z.hours+=12):F===12&&(z.hours=0),delete z.afternoon}})(j),j}}return function(y,x,T){T.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var w=x.prototype,C=w.parse;w.parse=function(I){var E=I.date,R=I.utc,$=I.args;this.$u=R;var L=$[1];if(typeof L=="string"){var V=$[2]===!0,j=$[3]===!0,v=V||j,P=$[2];j&&(P=$[2]),c=this.$locale(),!V&&P&&(c=T.Ls[P]),this.$d=(function(D,N,z,A){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*D);var F=p(N)(D),W=F.year,K=F.month,Z=F.day,Y=F.hours,X=F.minutes,ne=F.seconds,q=F.milliseconds,B=F.zone,H=F.week,ae=new Date,G=Z||(W||K?1:ae.getDate()),de=W||ae.getFullYear(),oe=0;W&&!K||(oe=K>0?K-1:ae.getMonth());var ye,me=Y||0,re=X||0,J=ne||0,ge=q||0;return B?new Date(Date.UTC(de,oe,G,me,re,J,ge+60*B.offset*1e3)):z?new Date(Date.UTC(de,oe,G,me,re,J,ge)):(ye=new Date(de,oe,G,me,re,J,ge),H&&(ye=A(ye).week(H).toDate()),ye)}catch{return new Date("")}})(E,L,R,T),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),v&&E!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var _=L.length,O=1;O<=_;O+=1){$[1]=L[O-1];var k=T.apply(this,$);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}O===_&&(this.$d=new Date(""))}else C.call(this,I)}}}))})(as)),as.exports}var Ww=zw();const Cf=to(Ww);var ls={exports:{}},Uw=ls.exports,au;function Hw(){return au||(au=1,(function(e,t){(function(n,o){e.exports=o()})(Uw,(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(o,s,i){var a=s.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,g,p){var y=p&&p.toUpperCase();return g||h[p]||n[p]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,T,w){return T||w.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(ls)),ls.exports}var qw=Hw();const Yw=to(qw);var cs={exports:{}},Gw=cs.exports,lu;function Kw(){return lu||(lu=1,(function(e,t){(function(n,o){e.exports=o()})(Gw,(function(){return function(n,o,s){o.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(cs)),cs.exports}var Xw=Kw();const Qw=to(Xw);var us={exports:{}},Zw=us.exports,cu;function Jw(){return cu||(cu=1,(function(e,t){(function(n,o){e.exports=o()})(Zw,(function(){return function(n,o){var s=o.prototype,i=s.format;s.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"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(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}}));return i.bind(this)(d)}}}))})(us)),us.exports}var eT=Jw();const tT=to(eT),uu=new Set;function fn(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
196
|
-
`):e;uu.has(n)||(uu.add(n),t==="error"?console.error(n):console.warn(n))}it.extend(Yw);it.extend(Fw);it.extend(Qw);it.extend(tT);const nT={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"},oT={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",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};function $i(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs UTC plugin. UTC and timezone support requires the dayjs UTC plugin to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.":Oe(138))}function du(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs timezone plugin. Timezone support requires both the dayjs UTC and timezone plugins to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.":Oe(139))}class rT{constructor({locale:t,formats:n}={}){U(this,"isMUIAdapter",!0);U(this,"isTimezoneCompatible",!0);U(this,"lib","dayjs");U(this,"escapedCharacters",{start:"[",end:"]"});U(this,"formatTokenMap",nT);U(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});U(this,"hasUTCPlugin",()=>typeof it.utc<"u");U(this,"hasTimezonePlugin",()=>typeof it.tz<"u");U(this,"isSame",(t,n,o)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(o)===s.format(o)});U(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return it.tz.guess();default:return t}});U(this,"createSystemDate",t=>this.setLocaleToValue(it(t)));U(this,"createUTCDate",t=>(this.hasUTCPlugin()||$i(),this.setLocaleToValue(it.utc(t))));U(this,"createTZDate",(t,n)=>{this.hasUTCPlugin()||$i(),this.hasTimezonePlugin()||du();const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(it(t).tz(this.cleanTimezone(n),o))});U(this,"getLocaleFormats",()=>{const t=it.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&fn(["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."]),o=t.en),o.formats});U(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});U(this,"restoreDayOfMonth",(t,n)=>{const o=this.getTimezone(t);if(!this.hasUTCPlugin()||o==="system"||o==="UTC")return t;const s=it.utc(t.format("YYYY-MM-DDTHH:mm:ss.SSS"));if(!s.isValid())return t;const i=Math.min(n.date(),s.daysInMonth());return t.date()===i?t:t.set("date",i)});U(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));U(this,"getInvalidDate",()=>it(new Date("Invalid date")));U(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});U(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC")return this.hasUTCPlugin()||$i(),t.utc();if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;du()}return this.setLocaleToValue(it.tz(t,this.cleanTimezone(n)))});U(this,"toJsDate",t=>t.toDate());U(this,"parse",(t,n)=>t===""?null:it(t,n,this.locale,!0));U(this,"getCurrentLocaleCode",()=>this.locale||"en");U(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));U(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});U(this,"isValid",t=>t==null?!1:t.isValid());U(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));U(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));U(this,"formatNumber",t=>t);U(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());U(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));U(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));U(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));U(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));U(this,"isAfter",(t,n)=>t>n);U(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));U(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));U(this,"isBefore",(t,n)=>t<n);U(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));U(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));U(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);U(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));U(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));U(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));U(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));U(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));U(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));U(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));U(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));U(this,"addYears",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"year"),t)));U(this,"addMonths",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"month"),t)));U(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));U(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));U(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));U(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));U(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));U(this,"getYear",t=>t.year());U(this,"getMonth",t=>t.month());U(this,"getDate",t=>t.date());U(this,"getHours",t=>t.hour());U(this,"getMinutes",t=>t.minute());U(this,"getSeconds",t=>t.second());U(this,"getMilliseconds",t=>t.millisecond());U(this,"setYear",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("year",n),t)));U(this,"setMonth",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("month",n),t)));U(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));U(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));U(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));U(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));U(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));U(this,"getDaysInMonth",t=>t.daysInMonth());U(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<o;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a});U(this,"getWeekNumber",t=>t.week());U(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=M({},oT,n),it.extend(Cf)}getDayOfWeek(t){return t.day()+1}}const wf=zp({themeId:Qs}),gn=r.oneOfType([r.func,r.object]);function Ro(e,t,n){return typeof e=="function"?e(t,n):e}const Yo=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),sT=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error(process.env.NODE_ENV!=="production"?'MUI X Date Pickers: The `views` prop must contain at least one view. The date picker needs at least one view to display. Add a valid view to the views array (e.g., ["year", "month", "day"]).':Oe(153));return{views:s,openTo:i}},pu=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},iT=(e,t)=>e.isValid(t)?t:null,aT=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Tf=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},qa=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),En=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},lT=["hours","minutes","seconds"],cT=["hours","minutes","seconds","meridiem"],No=e=>lT.includes(e),If=e=>cT.includes(e),uT=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,vr=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Ef=(e,t,n,o)=>{const s=vr(o.getHours(e),t,n);return o.setHours(e,s)},fu=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Nr=(e,t)=>(n,o)=>e?t.isAfter(n,o):fu(n,t)>fu(o,t),Of=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return Yo(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:Yo(n,["minutes"])?s.minutes:Yo(n,["seconds"])?s.seconds:Yo(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:Yo(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},Cn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},dT=e=>Math.max(...e.map(t=>Cn[t.type]??1)),Go=(e,t,n)=>{if(t===Cn.year)return e.startOfYear(n);if(t===Cn.month)return e.startOfMonth(n);if(t===Cn.day)return e.startOfDay(n);let o=n;return t<Cn.minutes&&(o=e.setMinutes(o,0)),t<Cn.seconds&&(o=e.setSeconds(o,0)),t<Cn.milliseconds&&(o=e.setMilliseconds(o,0)),o},pT=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():Go(t,n,qa(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=Go(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=Go(t,n,e.maxDate));const a=Nr(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=Go(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:pu(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=Go(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:pu(t,i,e.maxTime))),i},Ya=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token "${t}" is not supported by the Date and Time Pickers.
|
|
197
|
-
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.`:
|
|
205
|
+
*/var ou;function Cw(){return ou||(ou=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case o:case i:case s:case u:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case m:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");We.ContextConsumer=a,We.ContextProvider=l,We.Element=t,We.ForwardRef=c,We.Fragment=o,We.Lazy=h,We.Memo=m,We.Portal=n,We.Profiler=i,We.StrictMode=s,We.Suspense=u,We.SuspenseList=d,We.isContextConsumer=function(p){return e(p)===a},We.isContextProvider=function(p){return e(p)===l},We.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},We.isForwardRef=function(p){return e(p)===c},We.isFragment=function(p){return e(p)===o},We.isLazy=function(p){return e(p)===h},We.isMemo=function(p){return e(p)===m},We.isPortal=function(p){return e(p)===n},We.isProfiler=function(p){return e(p)===i},We.isStrictMode=function(p){return e(p)===s},We.isSuspense=function(p){return e(p)===u},We.isSuspenseList=function(p){return e(p)===d},We.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===i||p===s||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},We.typeOf=e})()),We}var ru;function ww(){return ru||(ru=1,process.env.NODE_ENV==="production"?Jr.exports=Sw():Jr.exports=Cw()),Jr.exports}var Tw=ww();function ia(e){return typeof e=="string"}function mf(e,t,n){return e===void 0||ia(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function hf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function su(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=hf({...s,...o}),l=su(o),c=su(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function bf(e,t,n){return typeof e=="function"?e(t,n):e}function Iw(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:bf(n,o),{props:l,internalRef:c}=gf({...i,externalSlotProps:a}),u=ft(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return mf(t,{...l,ref:u},o)}function ur(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function yf(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function Ke(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=i,f=d[e]||o,g=bf(m[e],s),{props:{component:p,...y},internalRef:x}=gf({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),T=ft(x,g==null?void 0:g.ref,t.ref),w=e==="root"?p||u:p,C=mf(f,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...w&&!l&&{as:w},...w&&l&&{component:w},ref:T},s);return[f,C]}function Ue({props:e,name:t}){return CS({props:e,name:t,defaultTheme:Ka,themeId:ni})}function Ew(e){return Re("MuiTabPanel",e)}Ee("MuiTabPanel",["root","hidden"]);const _w=e=>{const{classes:t,hidden:n}=e;return je({root:["root",n&&"hidden"]},Ew,t)},Ow=te("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),vf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiTabPanel"}),{children:s,className:i,value:a,keepMounted:l=!1,...c}=o,u={...o},d=_w(u),m=yw();if(m===null)throw new TypeError("No TabContext provided");const h=vw(m,a),f=xw(m,a);return b.jsx(Ow,{"aria-labelledby":f,className:ce(d.root,i),hidden:a!==m.value,id:h,ref:n,role:"tabpanel",ownerState:u,...c,children:(l||a===m.value)&&s})});process.env.NODE_ENV!=="production"&&(vf.propTypes={children:r.node,classes:r.object,className:r.string,keepMounted:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.number,r.string]).isRequired});const Es=S.createContext({});process.env.NODE_ENV!=="production"&&(Es.displayName="TimelineContext");function kw(e){return Re("MuiTimeline",e)}Ee("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function si(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${le(e)}`}const Pw=e=>{const{position:t,classes:n}=e,o={root:["root",t&&si(t)]};return je(o,kw,n)},Rw=te("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[si(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),xf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiTimeline"}),{position:s="right",className:i,...a}=o,l={...o,position:s},c=Pw(l),u=S.useMemo(()=>({position:s}),[s]);return b.jsx(Es.Provider,{value:u,children:b.jsx(Rw,{className:ce(c.root,i),ownerState:l,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(xf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Nw(e){return Re("MuiTypography",e)}Ee("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Mw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$w=wC(),Dw=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return je(l,Nw,a)},Aw=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Qe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(bt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${le(n)}`},style:{color:(e.vars||e).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}}]}})),iu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ao=S.forwardRef(function(t,n){const{color:o,...s}=He({props:t,name:"MuiTypography"}),i=!Mw[o],a=$w({...s,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=iu,...p}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:f,variantMapping:g},x=u||(h?"p":g[f]||iu[f])||"span",T=Dw(y);return b.jsx(Aw,{as:x,ref:n,className:ce(T.root,c),...p,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(ao.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});const jw=Ee("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Lw=Ee("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Vw(e){return Re("MuiTimelineItem",e)}Ee("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Fw=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,s={root:["root",si(t),!o&&"missingOppositeContent"]};return je(s,Vw,n)},Bw=te("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[si(n.position)]]}})(({ownerState:e})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...e.position==="left"&&{flexDirection:"row-reverse"},...(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${jw.root}`]:{textAlign:"right"},[`& .${Lw.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),Sf=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiTimelineItem"}),{position:s,className:i,...a}=o,{position:l}=S.useContext(Es);let c=!1;S.Children.forEach(o.children,h=>{ko(h,["TimelineOppositeContent"])&&(c=!0)});const u={...o,position:s||l||"right",hasOppositeContent:c},d=Fw(u),m=S.useMemo(()=>({position:u.position}),[u.position]);return b.jsx(Es.Provider,{value:m,children:b.jsx(Bw,{className:ce(d.root,i),ownerState:u,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function au(e,t){var o;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(n&&n instanceof ShadowRoot){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode??s.host??null}}return!1}const Cf=K.forwardRef(function(t,n){const{variant:o="default",orientation:s="horizontal",inverted:i=!1,overStyled:a=!1,className:l,...c}=t,u=fe(c,a);return b.jsx(pe.Tabs,{ref:n,...u,orientation:s,className:`${pr.root} ${l||""}`,"data-variant":o,"data-orientation":s,"data-inverted":i||void 0,classes:{flexContainer:pr.list,indicator:pr.indicator}})});Cf.displayName="Tabs";const wf=K.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=fe(i,o);return b.jsx(pe.Tab,{ref:n,className:`${pr.tab} ${s||""}`,...a})});wf.displayName="Tab";const Tf=K.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=fe(i,o);return b.jsx(vf,{ref:n,className:`${pr.panel} ${s||""}`,...a})});Tf.displayName="TabPanel";const ii=K.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},s){const i=fe(o,n),l=i.className,c=l?`${t} ${l}`:t;return b.jsx(pe.Typography,{ref:s,className:c,variant:"inherit",...i})});ii.displayName="Typography";const If=K.forwardRef(function({variant:t="body",...n},o){const s=`recursica_brand_typography_${t}`;return b.jsx(ii,{ref:o,typographyClass:s,...n})});If.displayName="Text";const zw="TextArea-module__layoutOverride___4MCdm",Ww="TextArea-module__root___3dyeu",Uw="TextArea-module__input___8l36v",Cn={layoutOverride:zw,root:Ww,input:Uw},Ef=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,withAsterisk:p,id:y,className:x,style:T,disabled:w,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,value:R,defaultValue:$,...L}=t,V=fe(L,o),A=V;delete A.size,delete A.variant,delete A.radius;const v={wrapper:Cn.root,input:Cn.input},P=A.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const _=P;v.wrapper=_.wrapper?`${Cn.root} ${_.wrapper}`:Cn.root,v.input=_.input?`${Cn.input} ${_.input}`:Cn.input}const O=x?`${Cn.layoutOverride} ${x}`:Cn.layoutOverride;return b.jsx(Wt,{className:O,style:T,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:y,readOnly:C,readOnlyComponent:I,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:R!==void 0?R:$,readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{multiline:!0,inputRef:n,classes:v,disabled:w,value:R,defaultValue:$,label:void 0,error:void 0,required:void 0,...V})})});Ef.displayName="TextArea";const qw="TextField-module__layoutOverride___SNZqc",Hw="TextField-module__root___2ZYkG",Yw="TextField-module__input___RL-My",Gw="TextField-module__section___bCIJ0",tn={layoutOverride:qw,root:Hw,input:Yw,section:Gw},_f=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:T,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:R,leftSection:$,rightSection:L,...V}=t,A=fe(V,o),v=A;delete v.size,delete v.color;const P={wrapper:tn.root,input:tn.input,section:tn.section},O=v.classes;if(O&&typeof O=="object"&&!Array.isArray(O)){const N=O;P.wrapper=N.root?`${tn.root} ${N.root}`:tn.root,P.input=N.input?`${tn.input} ${N.input}`:tn.input}const _=y?`${tn.layoutOverride} ${y}`:tn.layoutOverride,k=$?b.jsx("div",{className:P.section,"data-position":"left",children:$}):void 0,D=L?b.jsx("div",{className:P.section,"data-position":"right",children:L}):void 0;return b.jsx(Wt,{className:_,style:x,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:C,emptyValueComponent:I||void 0,readOnlyType:"text",readOnlyValue:E!==void 0?E:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.InputBase,{inputRef:n,...A,classes:{root:P.wrapper,input:P.input},disabled:T,value:E,defaultValue:R,startAdornment:k,endAdornment:D,"data-disabled":T?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":$?"true":void 0,"data-with-right-section":L?"true":void 0})})});_f.displayName="TextField";function ke(e,...t){const n=new URL("https://mui.com/x/production-error");return n.searchParams.set("code",e.toString()),t.forEach(o=>n.searchParams.append("args[]",o)),`MUI X error #${e}; visit ${n} for the full message.`}const Kw=["localeText"],_s=S.createContext(null);process.env.NODE_ENV!=="production"&&(_s.displayName="PickerAdapterContext");const ai=function(t){const{localeText:n}=t,o=Se(t,Kw),{adapter:s,localeText:i}=S.useContext(_s)??{adapter:void 0,localeText:void 0},a=Ue({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:h}=a,f=S.useMemo(()=>M({},h,i,n),[h,i,n]),g=S.useMemo(()=>{if(!c)return s||null;const x=new c({locale:m,formats:u,instance:d});if(!x.isMUIAdapter)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`. Using adapters from @date-io directly is not supported. For example, use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`. See https://mui.com/x/react-date-pickers/quickstart/#installation":ke(143));return x},[c,m,u,d,s]),p=S.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),y=S.useMemo(()=>({adapter:g,defaultDates:p,localeText:f}),[p,g,f]);return b.jsx(_s.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ai.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ai.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});var ls={exports:{}},Xw=ls.exports,lu;function Qw(){return lu||(lu=1,(function(e,t){(function(n,o){e.exports=o()})(Xw,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",h="quarter",f="year",g="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|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,T={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(O){var _=["th","st","nd","rd"],k=O%100;return"["+O+(_[(k-20)%10]||_[k]||_[0])+"]"}},w=function(O,_,k){var D=String(O);return!D||D.length>=_?O:""+Array(_+1-D.length).join(k)+O},C={s:w,z:function(O){var _=-O.utcOffset(),k=Math.abs(_),D=Math.floor(k/60),N=k%60;return(_<=0?"+":"-")+w(D,2,"0")+":"+w(N,2,"0")},m:function O(_,k){if(_.date()<k.date())return-O(k,_);var D=12*(k.year()-_.year())+(k.month()-_.month()),N=_.clone().add(D,m),z=k-N<0,j=_.clone().add(D+(z?-1:1),m);return+(-(D+(k-N)/(z?N-j:j-N))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:m,y:f,w:d,d:u,D:g,h:c,m:l,s:a,ms:i,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},I="en",E={};E[I]=T;var R="$isDayjsObject",$=function(O){return O instanceof v||!(!O||!O[R])},L=function O(_,k,D){var N;if(!_)return I;if(typeof _=="string"){var z=_.toLowerCase();E[z]&&(N=z),k&&(E[z]=k,N=z);var j=_.split("-");if(!N&&j.length>1)return O(j[0])}else{var B=_.name;E[B]=_,N=B}return!D&&N&&(I=N),N||!D&&I},V=function(O,_){if($(O))return O.clone();var k=typeof _=="object"?_:{};return k.date=O,k.args=arguments,new v(k)},A=C;A.l=L,A.i=$,A.w=function(O,_){return V(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var v=(function(){function O(k){this.$L=L(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[R]=!0}var _=O.prototype;return _.parse=function(k){this.$d=(function(D){var N=D.date,z=D.utc;if(N===null)return new Date(NaN);if(A.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var j=N.match(y);if(j){var B=j[2]-1||0,W=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,W)):new Date(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,W)}}return new Date(N)})(k),this.init()},_.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},_.$utils=function(){return A},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(k,D){var N=V(k);return this.startOf(D)<=N&&N<=this.endOf(D)},_.isAfter=function(k,D){return V(k)<this.startOf(D)},_.isBefore=function(k,D){return this.endOf(D)<V(k)},_.$g=function(k,D,N){return A.u(k)?this[D]:this.set(N,k)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(k,D){var N=this,z=!!A.u(D)||D,j=A.p(k),B=function(F,q){var ae=A.w(N.$u?Date.UTC(N.$y,q,F):new Date(N.$y,q,F),N);return z?ae:ae.endOf(u)},W=function(F,q){return A.w(N.toDate()[F].apply(N.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(q)),N)},X=this.$W,Z=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(j){case f:return z?B(1,0):B(31,11);case m:return z?B(1,Z):B(0,Z+1);case d:var ne=this.$locale().weekStart||0,H=(X<ne?X+7:X)-ne;return B(z?Y-H:Y+(6-H),Z);case u:case g:return W(Q+"Hours",0);case c:return W(Q+"Minutes",1);case l:return W(Q+"Seconds",2);case a:return W(Q+"Milliseconds",3);default:return this.clone()}},_.endOf=function(k){return this.startOf(k,!1)},_.$set=function(k,D){var N,z=A.p(k),j="set"+(this.$u?"UTC":""),B=(N={},N[u]=j+"Date",N[g]=j+"Date",N[m]=j+"Month",N[f]=j+"FullYear",N[c]=j+"Hours",N[l]=j+"Minutes",N[a]=j+"Seconds",N[i]=j+"Milliseconds",N)[z],W=z===u?this.$D+(D-this.$W):D;if(z===m||z===f){var X=this.clone().set(g,1);X.$d[B](W),X.init(),this.$d=X.set(g,Math.min(this.$D,X.daysInMonth())).$d}else B&&this.$d[B](W);return this.init(),this},_.set=function(k,D){return this.clone().$set(k,D)},_.get=function(k){return this[A.p(k)]()},_.add=function(k,D){var N,z=this;k=Number(k);var j=A.p(D),B=function(Z){var Y=V(z);return A.w(Y.date(Y.date()+Math.round(Z*k)),z)};if(j===m)return this.set(m,this.$M+k);if(j===f)return this.set(f,this.$y+k);if(j===u)return B(1);if(j===d)return B(7);var W=(N={},N[l]=o,N[c]=s,N[a]=n,N)[j]||1,X=this.$d.getTime()+k*W;return A.w(X,this)},_.subtract=function(k,D){return this.add(-1*k,D)},_.format=function(k){var D=this,N=this.$locale();if(!this.isValid())return N.invalidDate||p;var z=k||"YYYY-MM-DDTHH:mm:ssZ",j=A.z(this),B=this.$H,W=this.$m,X=this.$M,Z=N.weekdays,Y=N.months,Q=N.meridiem,ne=function(q,ae,G,ue){return q&&(q[ae]||q(D,z))||G[ae].slice(0,ue)},H=function(q){return A.s(B%12||12,q,"0")},F=Q||function(q,ae,G){var ue=q<12?"AM":"PM";return G?ue.toLowerCase():ue};return z.replace(x,(function(q,ae){return ae||(function(G){switch(G){case"YY":return String(D.$y).slice(-2);case"YYYY":return A.s(D.$y,4,"0");case"M":return X+1;case"MM":return A.s(X+1,2,"0");case"MMM":return ne(N.monthsShort,X,Y,3);case"MMMM":return ne(Y,X);case"D":return D.$D;case"DD":return A.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return ne(N.weekdaysMin,D.$W,Z,2);case"ddd":return ne(N.weekdaysShort,D.$W,Z,3);case"dddd":return Z[D.$W];case"H":return String(B);case"HH":return A.s(B,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return F(B,W,!0);case"A":return F(B,W,!1);case"m":return String(W);case"mm":return A.s(W,2,"0");case"s":return String(D.$s);case"ss":return A.s(D.$s,2,"0");case"SSS":return A.s(D.$ms,3,"0");case"Z":return j}return null})(q)||j.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(k,D,N){var z,j=this,B=A.p(D),W=V(k),X=(W.utcOffset()-this.utcOffset())*o,Z=this-W,Y=function(){return A.m(j,W)};switch(B){case f:z=Y()/12;break;case m:z=Y();break;case h:z=Y()/3;break;case d:z=(Z-X)/6048e5;break;case u:z=(Z-X)/864e5;break;case c:z=Z/s;break;case l:z=Z/o;break;case a:z=Z/n;break;default:z=Z}return N?z:A.a(z)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return E[this.$L]},_.locale=function(k,D){if(!k)return this.$L;var N=this.clone(),z=L(k,D,!0);return z&&(N.$L=z),N},_.clone=function(){return A.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()},O})(),P=v.prototype;return V.prototype=P,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",g]].forEach((function(O){P[O[1]]=function(_){return this.$g(_,O[0],O[1])}})),V.extend=function(O,_){return O.$i||(O(_,v,V),O.$i=!0),V},V.locale=L,V.isDayjs=$,V.unix=function(O){return V(1e3*O)},V.en=E[I],V.Ls=E,V.p={},V}))})(ls)),ls.exports}var Zw=Qw();const ct=io(Zw);var cs={exports:{}},Jw=cs.exports,cu;function eT(){return cu||(cu=1,(function(e,t){(function(n,o){e.exports=o()})(Jw,(function(){var n="week",o="year";return function(s,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),m=a(this).endOf(n);if(d.isBefore(m))return 1}var h=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(h,n,!0);return f<0?a(this).startOf("week").week():Math.ceil(f)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(cs)),cs.exports}var tT=eT();const nT=io(tT);var us={exports:{}},oT=us.exports,uu;function rT(){return uu||(uu=1,(function(e,t){(function(n,o){e.exports=o()})(oT,(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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(x){this[y]=+x}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var T=x.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w})(y)}],h=function(y){var x=c[y];return x&&(x.indexOf?x:x.s.concat(x.f))},f=function(y,x){var T,w=c.meridiem;if(w){for(var C=1;C<=24;C+=1)if(y.indexOf(w(C,0,x))>-1){T=C>12;break}}else T=y===(x?"pm":"PM");return T},g={A:[l,function(y){this.afternoon=f(y,!1)}],a:[l,function(y){this.afternoon=f(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var x=c.ordinal,T=y.match(/\d+/);if(this.day=T[0],x)for(var w=1;w<=31;w+=1)x(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var x=h("months"),T=(h("monthsShort")||x.map((function(w){return w.slice(0,3)}))).indexOf(y)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[l,function(y){var x=h("months").indexOf(y)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function p(y){var x,T;x=y,T=c&&c.formats;for(var w=(y=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,A,v){var P=v&&v.toUpperCase();return A||T[v]||n[v]||T[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,_,k){return _||k.slice(1)}))}))).match(o),C=w.length,I=0;I<C;I+=1){var E=w[I],R=g[E],$=R&&R[0],L=R&&R[1];w[I]=L?{regex:$,parser:L}:E.replace(/^\[|\]$/g,"")}return function(V){for(var A={},v=0,P=0;v<C;v+=1){var O=w[v];if(typeof O=="string")P+=O.length;else{var _=O.regex,k=O.parser,D=V.slice(P),N=_.exec(D)[0];k.call(A,N),V=V.replace(N,"")}}return(function(z){var j=z.afternoon;if(j!==void 0){var B=z.hours;j?B<12&&(z.hours+=12):B===12&&(z.hours=0),delete z.afternoon}})(A),A}}return function(y,x,T){T.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var w=x.prototype,C=w.parse;w.parse=function(I){var E=I.date,R=I.utc,$=I.args;this.$u=R;var L=$[1];if(typeof L=="string"){var V=$[2]===!0,A=$[3]===!0,v=V||A,P=$[2];A&&(P=$[2]),c=this.$locale(),!V&&P&&(c=T.Ls[P]),this.$d=(function(D,N,z,j){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*D);var B=p(N)(D),W=B.year,X=B.month,Z=B.day,Y=B.hours,Q=B.minutes,ne=B.seconds,H=B.milliseconds,F=B.zone,q=B.week,ae=new Date,G=Z||(W||X?1:ae.getDate()),ue=W||ae.getFullYear(),oe=0;W&&!X||(oe=X>0?X-1:ae.getMonth());var ye,he=Y||0,re=Q||0,J=ne||0,ge=H||0;return F?new Date(Date.UTC(ue,oe,G,he,re,J,ge+60*F.offset*1e3)):z?new Date(Date.UTC(ue,oe,G,he,re,J,ge)):(ye=new Date(ue,oe,G,he,re,J,ge),q&&(ye=j(ye).week(q).toDate()),ye)}catch{return new Date("")}})(E,L,R,T),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),v&&E!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var O=L.length,_=1;_<=O;_+=1){$[1]=L[_-1];var k=T.apply(this,$);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}_===O&&(this.$d=new Date(""))}else C.call(this,I)}}}))})(us)),us.exports}var sT=rT();const Of=io(sT);var ds={exports:{}},iT=ds.exports,du;function aT(){return du||(du=1,(function(e,t){(function(n,o){e.exports=o()})(iT,(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(o,s,i){var a=s.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,g,p){var y=p&&p.toUpperCase();return g||h[p]||n[p]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,T,w){return T||w.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(ds)),ds.exports}var lT=aT();const cT=io(lT);var ps={exports:{}},uT=ps.exports,pu;function dT(){return pu||(pu=1,(function(e,t){(function(n,o){e.exports=o()})(uT,(function(){return function(n,o,s){o.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(ps)),ps.exports}var pT=dT();const fT=io(pT);var fs={exports:{}},mT=fs.exports,fu;function hT(){return fu||(fu=1,(function(e,t){(function(n,o){e.exports=o()})(mT,(function(){return function(n,o){var s=o.prototype,i=s.format;s.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"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(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}}));return i.bind(this)(d)}}}))})(fs)),fs.exports}var gT=hT();const bT=io(gT),mu=new Set;function mn(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
206
|
+
`):e;mu.has(n)||(mu.add(n),t==="error"?console.error(n):console.warn(n))}ct.extend(cT);ct.extend(nT);ct.extend(fT);ct.extend(bT);const yT={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"},vT={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",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};function Vi(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs UTC plugin. UTC and timezone support requires the dayjs UTC plugin to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.":ke(138))}function hu(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs timezone plugin. Timezone support requires both the dayjs UTC and timezone plugins to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.":ke(139))}class xT{constructor({locale:t,formats:n}={}){U(this,"isMUIAdapter",!0);U(this,"isTimezoneCompatible",!0);U(this,"lib","dayjs");U(this,"escapedCharacters",{start:"[",end:"]"});U(this,"formatTokenMap",yT);U(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});U(this,"hasUTCPlugin",()=>typeof ct.utc<"u");U(this,"hasTimezonePlugin",()=>typeof ct.tz<"u");U(this,"isSame",(t,n,o)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(o)===s.format(o)});U(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return ct.tz.guess();default:return t}});U(this,"createSystemDate",t=>this.setLocaleToValue(ct(t)));U(this,"createUTCDate",t=>(this.hasUTCPlugin()||Vi(),this.setLocaleToValue(ct.utc(t))));U(this,"createTZDate",(t,n)=>{this.hasUTCPlugin()||Vi(),this.hasTimezonePlugin()||hu();const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(ct(t).tz(this.cleanTimezone(n),o))});U(this,"getLocaleFormats",()=>{const t=ct.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&mn(["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."]),o=t.en),o.formats});U(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});U(this,"restoreDayOfMonth",(t,n)=>{const o=this.getTimezone(t);if(!this.hasUTCPlugin()||o==="system"||o==="UTC")return t;const s=ct.utc(t.format("YYYY-MM-DDTHH:mm:ss.SSS"));if(!s.isValid())return t;const i=Math.min(n.date(),s.daysInMonth());return t.date()===i?t:t.set("date",i)});U(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));U(this,"getInvalidDate",()=>ct(new Date("Invalid date")));U(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});U(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC")return this.hasUTCPlugin()||Vi(),t.utc();if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;hu()}return this.setLocaleToValue(ct.tz(t,this.cleanTimezone(n)))});U(this,"toJsDate",t=>t.toDate());U(this,"parse",(t,n)=>t===""?null:ct(t,n,this.locale,!0));U(this,"getCurrentLocaleCode",()=>this.locale||"en");U(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));U(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});U(this,"isValid",t=>t==null?!1:t.isValid());U(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));U(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));U(this,"formatNumber",t=>t);U(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());U(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));U(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));U(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));U(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));U(this,"isAfter",(t,n)=>t>n);U(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));U(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));U(this,"isBefore",(t,n)=>t<n);U(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));U(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));U(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);U(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));U(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));U(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));U(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));U(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));U(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));U(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));U(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));U(this,"addYears",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"year"),t)));U(this,"addMonths",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"month"),t)));U(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));U(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));U(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));U(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));U(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));U(this,"getYear",t=>t.year());U(this,"getMonth",t=>t.month());U(this,"getDate",t=>t.date());U(this,"getHours",t=>t.hour());U(this,"getMinutes",t=>t.minute());U(this,"getSeconds",t=>t.second());U(this,"getMilliseconds",t=>t.millisecond());U(this,"setYear",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("year",n),t)));U(this,"setMonth",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("month",n),t)));U(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));U(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));U(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));U(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));U(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));U(this,"getDaysInMonth",t=>t.daysInMonth());U(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<o;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a});U(this,"getWeekNumber",t=>t.week());U(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=M({},vT,n),ct.extend(Of)}getDayOfWeek(t){return t.day()+1}}const kf=Gp({themeId:ni}),bn=r.oneOfType([r.func,r.object]);function jo(e,t,n){return typeof e=="function"?e(t,n):e}const Jo=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),ST=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error(process.env.NODE_ENV!=="production"?'MUI X Date Pickers: The `views` prop must contain at least one view. The date picker needs at least one view to display. Add a valid view to the views array (e.g., ["year", "month", "day"]).':ke(153));return{views:s,openTo:i}},gu=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},CT=(e,t)=>e.isValid(t)?t:null,wT=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Pf=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},el=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),On=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},TT=["hours","minutes","seconds"],IT=["hours","minutes","seconds","meridiem"],Lo=e=>TT.includes(e),Rf=e=>IT.includes(e),ET=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Ir=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Nf=(e,t,n,o)=>{const s=Ir(o.getHours(e),t,n);return o.setHours(e,s)},bu=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Lr=(e,t)=>(n,o)=>e?t.isAfter(n,o):bu(n,t)>bu(o,t),Mf=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return Jo(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:Jo(n,["minutes"])?s.minutes:Jo(n,["seconds"])?s.seconds:Jo(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:Jo(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},In={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},_T=e=>Math.max(...e.map(t=>In[t.type]??1)),er=(e,t,n)=>{if(t===In.year)return e.startOfYear(n);if(t===In.month)return e.startOfMonth(n);if(t===In.day)return e.startOfDay(n);let o=n;return t<In.minutes&&(o=e.setMinutes(o,0)),t<In.seconds&&(o=e.setSeconds(o,0)),t<In.milliseconds&&(o=e.setMilliseconds(o,0)),o},OT=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():er(t,n,el(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=er(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=er(t,n,e.maxDate));const a=Lr(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=er(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:gu(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=er(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:gu(t,i,e.maxTime))),i},tl=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token "${t}" is not supported by the Date and Time Pickers.
|
|
207
|
+
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.`:ke(157,t));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},li=(e,t)=>{const n=[],o=e.date(void 0,"default"),s=e.startOfWeek(o),i=e.endOfWeek(o);let a=s;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},$f=(e,t,n,o)=>{switch(n){case"month":return Pf(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return li(e,o);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(i=>e.formatByString(i,o))}default:return[]}},yu="s",kT=["0","1","2","3","4","5","6","7","8","9"],PT=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),yu)==="0"?kT:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),yu))},Xt=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let s=0;s<e.length;s+=1){o+=e[s];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},nl=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),vu=(e,t)=>{const n=Xt(e,t);return n!==" "&&!Number.isNaN(Number(n))},ol=(e,t)=>Number(e).toString().padStart(t,"0"),Df=(e,t,n,o,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
|
|
198
208
|
This type of format is only supported for 'day' sections`].join(`
|
|
199
|
-
`));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=Ka(i,s.maxLength)),Ga(i,o)},hT=(e,t,n)=>{let o=e.value||e.placeholder;const s=e.hasLeadingZerosInFormat;return e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Kt(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}`),o},gu=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Ya(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},gT=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Pf=(e,t,n,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(s,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X:Invalid section type":Oe(158))}},bT=(e,t,n)=>{const o=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),i.push(hT(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},yT=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),vT=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Tf(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:gT(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=oi(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i),d=Number(Kt(e.formatByString(e.startOfDay(o),c),t)),m=Number(Kt(e.formatByString(e.endOfDay(o),c),t));return m!==u?d===0?{minimum:0,maximum:m}:{minimum:1,maximum:d}:d>u?{minimum:1,maximum:d}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let bu=!1;const yu=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!bu){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!n.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),bu=!0)}},xT=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=Ka(s,t.maxLength));const i=oi(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12?"am":"pm";return Ef(o,s,!0,e)}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},vu={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},xu=(e,t,n,o,s)=>[...n].sort((i,a)=>vu[i.type]-vu[a.type]).reduce((i,a)=>!s||a.modified?xT(e,a,t,i):i,o),ST=e=>{const t={};return e.forEach((n,o)=>{const s=o===0?null:o-1,i=o===e.length-1?null:o+1;t[o]={leftIndex:s,rightIndex:i}}),{neighbors:t,startIndex:0,endIndex:e.length-1}},ta=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},CT=["value","referenceDate"],jn={emptyValue:null,getTodayValue:qa,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=xe(e,CT);return o.adapter.isValid(t)?t:n??pT(o)},cleanValue:iT,areValuesEqual:aT,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},wT={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getHiddenInputValueFromSections:yT,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>M({},t,{value:""}))};function gt(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const mn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ve(e){const t=S.useRef(e);return mn(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function Io(e){return e&&e.ownerDocument||document}function bo(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const TT=e=>{setTimeout(e,0)},Rf=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Rf(t.shadowRoot):t:null},an=e=>Rf(Io(e)),Ts=e=>Array.from(e.children).indexOf(an(e)),IT="@media (pointer: fine)";function Nf(e){const t={};for(const n of Object.keys(e))(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return t}const ET=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),Mf={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.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"},OT=Mf;ET(Mf);const $f=()=>{const e=S.useContext(ws);if(e===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers localization context.\nIt looks like you forgot to wrap your component in LocalizationProvider.\nThis can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package":Oe(149));if(e.adapter===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers adapter from its localization context.\nIt looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.":Oe(150));const t=S.useMemo(()=>M({},OT,e.localeText),[e.localeText]);return S.useMemo(()=>M({},e,{localeText:t}),[e,t])},nt=()=>$f().adapter,Qt=()=>$f().localeText,na=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],oa=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Df=["minDateTime","maxDateTime"],_T=[...na,...oa,...Df],Af=e=>_T.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),kT=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","fieldRef","startFieldRef","endFieldRef","disabled","readOnly","dateSeparator","autoFocus","focused"],PT=(e,t)=>S.useMemo(()=>{const n=M({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return kT.forEach(s),t==="date"?na.forEach(s):t==="time"?oa.forEach(s):t==="date-time"&&(na.forEach(s),oa.forEach(s),Df.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),RT=({adapter:e,format:t})=>{let n=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),n-=1,n<0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.":Oe(154));return s},NT=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:s}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},MT=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},$T=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:s,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Should not call `commitToken` with an empty token":Oe(155));const c=Ya(e,a),u=Pf(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",m=e.isValid(t);let h=m?e.formatByString(t,a):"",f=null;if(d)if(u)f=h===""?e.formatByString(i,a).length:h.length;else{if(c.maxLength==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`:Oe(156,a));f=c.maxLength,m&&(h=Ga(Ka(Kt(h,s),f),s))}return M({},c,{format:a,maxLength:f,value:h,placeholder:MT(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},DT=e=>{var f;const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((g,p)=>p.length-g.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),m=g=>o.find(p=>p.start<=g&&p.end>=g);let h=0;for(;h<n.length;){const g=m(h),p=g!=null,y=(f=c.exec(n.slice(h)))==null?void 0:f[1];if(!p&&y!=null&&u.test(y)){let x=y;for(;x.length>0;){const T=d.exec(x)[1];x=x.slice(T.length),i.push($T(M({},e,{now:s,token:T,startSeparator:a}))),a=""}h+=y.length}else{const x=n[h];p&&(g==null?void 0:g.start)===h||(g==null?void 0:g.end)===h||(i.length===0?a+=x:(i[i.length-1].endSeparator+=x,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},AT=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const s=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),Su=e=>{let t=RT(e);e.isRtl&&(t=t.split(" ").reverse().join(" "));const n=NT(M({},e,{expandedFormat:t})),o=DT(M({},e,{expandedFormat:t,escapedParts:n}));return AT(M({},e,{sections:o}))},ri=S.createContext(null);process.env.NODE_ENV!=="production"&&(ri.displayName="PickerContext");const zo=()=>{const e=S.useContext(ri);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component":Oe(151));return e},Xa=()=>S.useContext(ri),Qa=S.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Qa.displayName="IsValidValueContext");function jT(){return S.useContext(Qa)}const Za=S.createContext(null);process.env.NODE_ENV!=="production"&&(Za.displayName="PickerFieldPrivateContext");function LT(){return S.useContext(Za)}const Ja=S.createContext(null);process.env.NODE_ENV!=="production"&&(Ja.displayName="PickerActionsContext");const el=S.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(el.displayName="PickerPrivateContext");function jf(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(ri.Provider,{value:t,children:b.jsx(Ja.Provider,{value:n,children:b.jsx(el.Provider,{value:o,children:b.jsx(Za.Provider,{value:s,children:b.jsx(Qa.Provider,{value:i,children:b.jsx(ni,{localeText:a,children:l})})})})})})}const VT=()=>{const e=S.useContext(Ja);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component":Oe(148));return e},po=e=>e.saveQuery!=null,FT=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=nt(),c=({keyPressed:m,sectionIndex:h},f,g)=>{const p=m.toLowerCase(),y=n.sections[h];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const T=`${n.characterQuery.value}${p}`,w=f(T,y);if(!po(w))return s({sectionIndex:h,value:T,sectionType:y.type}),w}const x=f(p,y);return po(x)&&!x.saveQuery?(s(null),null):(s({sectionIndex:h,value:p,sectionType:y.type}),po(x)?null:x)},u=m=>{const h=(p,y,x)=>{const T=y.filter(w=>w.toLowerCase().startsWith(x));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},f=(p,y,x,T)=>{const w=C=>_f(l,o,y.type,C);if(y.contentType==="letter")return h(y.format,w(y.format),p);if(x&&T!=null&&Ya(l,x).contentType==="letter"){const C=w(x),I=h(x,C,p);return po(I)?{saveQuery:!1}:M({},I,{sectionValue:T(I.sectionValue,C)})}return{saveQuery:!1}};return c(m,(p,y)=>{switch(y.type){case"month":{const x=T=>gu(l,T,l.formats.month,y.format);return f(p,y,l.formats.month,x)}case"weekDay":{const x=(T,w)=>w.indexOf(T).toString();return f(p,y,l.formats.weekday,x)}case"meridiem":return f(p,y);default:return{saveQuery:!1}}})},d=m=>{const h=({queryValue:g,skipIfBelowMinimum:p,section:y})=>{const x=Kt(g,e),T=Number(x),w=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(T>w.maximum)return{saveQuery:!1};if(p&&T<w.minimum)return{saveQuery:!0};const C=T*10>w.maximum||x.length===w.maximum.toString().length;return{sectionValue:kf(l,T,w,e,y),shouldGoToNextSection:C}};return c(m,(g,p)=>{if(p.contentType==="digit"||p.contentType==="digit-with-letter")return h({queryValue:g,skipIfBelowMinimum:!1,section:p});if(p.type==="month"){Pf(l,"digit","month","MM");const y=h({queryValue:g,skipIfBelowMinimum:!0,section:{type:p.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(po(y))return y;const x=gu(l,y.sectionValue,"MM",p.format);return M({},y,{sectionValue:x})}if(p.type==="weekDay"){const y=h({queryValue:g,skipIfBelowMinimum:!0,section:p});if(po(y))return y;const x=oi(l,p.format)[Number(y.sectionValue)-1];return M({},y,{sectionValue:x})}return{saveQuery:!1}},g=>hu(g,e))};return ve(m=>{const h=n.sections[m.sectionIndex],g=hu(m.keyPressed,e)?d(M({},m,{keyPressed:Ga(m.keyPressed,e)})):u(m);if(g==null){i(null);return}a({section:h,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})};function Is(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=S.useRef(t!==void 0),[a,l]=S.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
|
|
209
|
+
`));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=ol(i,s.maxLength)),nl(i,o)},RT=(e,t,n)=>{let o=e.value||e.placeholder;const s=e.hasLeadingZerosInFormat;return e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Xt(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}`),o},xu=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&tl(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},NT=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Af=(e,t,n,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(s,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X:Invalid section type":ke(158))}},MT=(e,t,n)=>{const o=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),i.push(RT(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},$T=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),DT=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Pf(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:NT(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=li(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i),d=Number(Xt(e.formatByString(e.startOfDay(o),c),t)),m=Number(Xt(e.formatByString(e.endOfDay(o),c),t));return m!==u?d===0?{minimum:0,maximum:m}:{minimum:1,maximum:d}:d>u?{minimum:1,maximum:d}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Su=!1;const Cu=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Su){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!n.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Su=!0)}},AT=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=ol(s,t.maxLength));const i=li(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12?"am":"pm";return Nf(o,s,!0,e)}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},wu={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Tu=(e,t,n,o,s)=>[...n].sort((i,a)=>wu[i.type]-wu[a.type]).reduce((i,a)=>!s||a.modified?AT(e,a,t,i):i,o),jT=e=>{const t={};return e.forEach((n,o)=>{const s=o===0?null:o-1,i=o===e.length-1?null:o+1;t[o]={leftIndex:s,rightIndex:i}}),{neighbors:t,startIndex:0,endIndex:e.length-1}},aa=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},LT=["value","referenceDate"],Vn={emptyValue:null,getTodayValue:el,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Se(e,LT);return o.adapter.isValid(t)?t:n??OT(o)},cleanValue:CT,areValuesEqual:wT,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},VT={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getHiddenInputValueFromSections:$T,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>M({},t,{value:""}))};function yt(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const hn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ve(e){const t=S.useRef(e);return hn(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function Ro(e){return e&&e.ownerDocument||document}function wo(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const FT=e=>{setTimeout(e,0)},jf=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?jf(t.shadowRoot):t:null},ln=e=>jf(Ro(e)),Os=e=>Array.from(e.children).indexOf(ln(e)),BT="@media (pointer: fine)";function Lf(e){const t={};for(const n of Object.keys(e))(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return t}const zT=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),Vf={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.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"},WT=Vf;zT(Vf);const Ff=()=>{const e=S.useContext(_s);if(e===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers localization context.\nIt looks like you forgot to wrap your component in LocalizationProvider.\nThis can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package":ke(149));if(e.adapter===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers adapter from its localization context.\nIt looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.":ke(150));const t=S.useMemo(()=>M({},WT,e.localeText),[e.localeText]);return S.useMemo(()=>M({},e,{localeText:t}),[e,t])},st=()=>Ff().adapter,Zt=()=>Ff().localeText,la=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],ca=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Bf=["minDateTime","maxDateTime"],UT=[...la,...ca,...Bf],zf=e=>UT.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),qT=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","fieldRef","startFieldRef","endFieldRef","disabled","readOnly","dateSeparator","autoFocus","focused"],HT=(e,t)=>S.useMemo(()=>{const n=M({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return qT.forEach(s),t==="date"?la.forEach(s):t==="time"?ca.forEach(s):t==="date-time"&&(la.forEach(s),ca.forEach(s),Bf.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),YT=({adapter:e,format:t})=>{let n=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),n-=1,n<0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.":ke(154));return s},GT=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:s}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},KT=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},XT=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:s,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Should not call `commitToken` with an empty token":ke(155));const c=tl(e,a),u=Af(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",m=e.isValid(t);let h=m?e.formatByString(t,a):"",f=null;if(d)if(u)f=h===""?e.formatByString(i,a).length:h.length;else{if(c.maxLength==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`:ke(156,a));f=c.maxLength,m&&(h=nl(ol(Xt(h,s),f),s))}return M({},c,{format:a,maxLength:f,value:h,placeholder:KT(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},QT=e=>{var f;const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((g,p)=>p.length-g.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),m=g=>o.find(p=>p.start<=g&&p.end>=g);let h=0;for(;h<n.length;){const g=m(h),p=g!=null,y=(f=c.exec(n.slice(h)))==null?void 0:f[1];if(!p&&y!=null&&u.test(y)){let x=y;for(;x.length>0;){const T=d.exec(x)[1];x=x.slice(T.length),i.push(XT(M({},e,{now:s,token:T,startSeparator:a}))),a=""}h+=y.length}else{const x=n[h];p&&(g==null?void 0:g.start)===h||(g==null?void 0:g.end)===h||(i.length===0?a+=x:(i[i.length-1].endSeparator+=x,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},ZT=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const s=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),Iu=e=>{let t=YT(e);e.isRtl&&(t=t.split(" ").reverse().join(" "));const n=GT(M({},e,{expandedFormat:t})),o=QT(M({},e,{expandedFormat:t,escapedParts:n}));return ZT(M({},e,{sections:o}))},ci=S.createContext(null);process.env.NODE_ENV!=="production"&&(ci.displayName="PickerContext");const Go=()=>{const e=S.useContext(ci);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component":ke(151));return e},rl=()=>S.useContext(ci),sl=S.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(sl.displayName="IsValidValueContext");function JT(){return S.useContext(sl)}const il=S.createContext(null);process.env.NODE_ENV!=="production"&&(il.displayName="PickerFieldPrivateContext");function e0(){return S.useContext(il)}const al=S.createContext(null);process.env.NODE_ENV!=="production"&&(al.displayName="PickerActionsContext");const ll=S.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(ll.displayName="PickerPrivateContext");function Wf(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(ci.Provider,{value:t,children:b.jsx(al.Provider,{value:n,children:b.jsx(ll.Provider,{value:o,children:b.jsx(il.Provider,{value:s,children:b.jsx(sl.Provider,{value:i,children:b.jsx(ai,{localeText:a,children:l})})})})})})}const t0=()=>{const e=S.useContext(al);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component":ke(148));return e},vo=e=>e.saveQuery!=null,n0=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=st(),c=({keyPressed:m,sectionIndex:h},f,g)=>{const p=m.toLowerCase(),y=n.sections[h];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const T=`${n.characterQuery.value}${p}`,w=f(T,y);if(!vo(w))return s({sectionIndex:h,value:T,sectionType:y.type}),w}const x=f(p,y);return vo(x)&&!x.saveQuery?(s(null),null):(s({sectionIndex:h,value:p,sectionType:y.type}),vo(x)?null:x)},u=m=>{const h=(p,y,x)=>{const T=y.filter(w=>w.toLowerCase().startsWith(x));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},f=(p,y,x,T)=>{const w=C=>$f(l,o,y.type,C);if(y.contentType==="letter")return h(y.format,w(y.format),p);if(x&&T!=null&&tl(l,x).contentType==="letter"){const C=w(x),I=h(x,C,p);return vo(I)?{saveQuery:!1}:M({},I,{sectionValue:T(I.sectionValue,C)})}return{saveQuery:!1}};return c(m,(p,y)=>{switch(y.type){case"month":{const x=T=>xu(l,T,l.formats.month,y.format);return f(p,y,l.formats.month,x)}case"weekDay":{const x=(T,w)=>w.indexOf(T).toString();return f(p,y,l.formats.weekday,x)}case"meridiem":return f(p,y);default:return{saveQuery:!1}}})},d=m=>{const h=({queryValue:g,skipIfBelowMinimum:p,section:y})=>{const x=Xt(g,e),T=Number(x),w=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(T>w.maximum)return{saveQuery:!1};if(p&&T<w.minimum)return{saveQuery:!0};const C=T*10>w.maximum||x.length===w.maximum.toString().length;return{sectionValue:Df(l,T,w,e,y),shouldGoToNextSection:C}};return c(m,(g,p)=>{if(p.contentType==="digit"||p.contentType==="digit-with-letter")return h({queryValue:g,skipIfBelowMinimum:!1,section:p});if(p.type==="month"){Af(l,"digit","month","MM");const y=h({queryValue:g,skipIfBelowMinimum:!0,section:{type:p.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(vo(y))return y;const x=xu(l,y.sectionValue,"MM",p.format);return M({},y,{sectionValue:x})}if(p.type==="weekDay"){const y=h({queryValue:g,skipIfBelowMinimum:!0,section:p});if(vo(y))return y;const x=li(l,p.format)[Number(y.sectionValue)-1];return M({},y,{sectionValue:x})}return{saveQuery:!1}},g=>vu(g,e))};return ve(m=>{const h=n.sections[m.sectionIndex],g=vu(m.keyPressed,e)?d(M({},m,{keyPressed:nl(m.keyPressed,e)})):u(m);if(g==null){i(null);return}a({section:h,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})};function ks(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=S.useRef(t!==void 0),[a,l]=S.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){S.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
|
|
200
210
|
`))},[s,o,t]);const{current:d}=S.useRef(n);S.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
201
|
-
`))},[JSON.stringify(n)])}const u=S.useCallback(d=>{i||l(d)},[]);return[c,u]}const Cu={};function BT(e,t){const n=S.useRef(Cu);return n.current===Cu&&(n.current=e(t)),n}const zT=[];function WT(e){S.useEffect(e,zT)}class tl{constructor(){U(this,"currentId",null);U(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});U(this,"disposeEffect",()=>this.clear)}static create(){return new tl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ds(){const e=BT(tl.create).current;return WT(e.disposeEffect),e}const si=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,m=e.date(void 0,n),h=Nr(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&h(s,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(d&&e.isAfter(t,m)):return"disableFuture";case!!(u&&e.isBefore(t,m)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.getMinutes(t)%a!==0):return"minutesStep";default:return null}};si.valueManager=jn;function Lf(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,a=nt(),l=S.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);S.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=ve(m=>n({adapter:a,value:m,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Mr=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:s,onChange:i,valueManager:a})=>{const l=nt(),[c,u]=Is({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=S.useMemo(()=>a.getTimezone(l,c),[l,a,c]),m=ve(p=>d==null?p:a.setTimezone(l,d,p)),h=S.useMemo(()=>t||d||(s?l.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,l]),f=S.useMemo(()=>a.setTimezone(l,h,c),[a,l,h,c]),g=ve((p,...y)=>{const x=m(p);u(x),i==null||i(x,...y)});return{value:f,handleValueChange:g,timezone:h}},UT=5e3,HT=e=>{var me;const t=nt(),n=Qt(),o=Dn(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:m,onChange:h,format:f,formatDensity:g="dense",selectedSections:p,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:T},forwardedProps:{error:w}}=e,{value:C,handleValueChange:I,timezone:E}=Mr({name:"a field component",timezone:T,value:u,defaultValue:d,referenceDate:m,onChange:h,valueManager:a}),R=S.useRef(C);S.useEffect(()=>{R.current=C},[C]);const{hasValidationError:$}=Lf({props:c,validator:s,timezone:E,value:C,onError:c.onError}),L=S.useMemo(()=>mT(t),[t]),V=S.useMemo(()=>vT(t,L,E),[t,L,E]),j=S.useCallback(re=>l.getSectionsFromValue(re,J=>Su({adapter:t,localeText:n,localizedDigits:L,format:f,date:J,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o})),[l,f,n,L,o,x,t,g]),[v,P]=S.useState(()=>{const re=j(C);yu(re,i);const J={sections:re,lastExternalValue:C,lastSectionsDependencies:{format:f,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ge=dT(re),ie=a.getInitialReferenceValue({referenceDate:m,value:C,adapter:t,props:c,granularity:ge,timezone:E});return M({},J,{referenceValue:ie})}),[_,O]=Is({controlled:p,default:null,name:"useField",state:"selectedSections"}),k=re=>{O(re),y==null||y(re)},D=S.useMemo(()=>ta(_,v.sections),[_,v.sections]),N=D==="all"?0:D,z=S.useMemo(()=>ST(v.sections),[v.sections]),A=S.useMemo(()=>v.sections.every(re=>re.value===""),[v.sections]),F=S.useMemo(()=>{if(N!=null)return!1;const re=v.sections.filter(J=>J.value!=="");return re.length>0&&v.sections.length-re.length>0},[v.sections,N]),W=S.useMemo(()=>w!==void 0?w:$||F,[$,F,w]),K=re=>{const J={validationError:s({adapter:t,value:re,timezone:E,props:c})};I(re,J)},Z=(re,J)=>{const ge=[...v.sections];return ge[re]=M({},ge[re],{value:J,modified:!0}),ge},Y=S.useRef(null),X=ds(),ne=re=>{N!=null&&(Y.current={sectionIndex:N,value:re},X.start(0,()=>{Y.current=null}))},q=()=>{a.areValuesEqual(t,C,a.emptyValue)?P(re=>M({},re,{sections:re.sections.map(J=>M({},J,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(P(re=>M({},re,{characterQuery:null})),K(a.emptyValue))},B=()=>{if(N==null)return;const re=v.sections[N];re.value!==""&&(ne(""),l.getDateFromSection(C,re)===null?P(J=>M({},J,{sections:Z(N,""),tempValueStrAndroid:null,characterQuery:null})):(P(J=>M({},J,{characterQuery:null})),K(l.updateDateInValue(C,re,null))))},H=re=>{const J=(ie,he)=>{const se=t.parse(ie,f);if(!t.isValid(se))return null;const Ie=Su({adapter:t,localeText:n,localizedDigits:L,format:f,date:se,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o});return xu(t,se,Ie,he,!1)},ge=l.parseValueStr(re,v.referenceValue,J);K(ge)},ae=ds(),G=({section:re,newSectionValue:J,shouldGoToNextSection:ge})=>{X.clear(),ae.clear();const ie=l.getDateFromSection(C,re);ge&&N<v.sections.length-1&&k(N+1);const he=Z(N,J),se=l.getDateSectionsFromValue(he,re),Ie=bT(t,se,L);if(t.isValid(Ie)){const ke=xu(t,Ie,se,l.getDateFromSection(v.referenceValue,re),!0);return ie==null&&ae.start(0,()=>{R.current===C&&P(bt=>M({},bt,{sections:l.clearDateSections(v.sections,re),tempValueStrAndroid:null}))}),K(l.updateDateInValue(C,re,ke))}return se.every(ke=>ke.value!=="")&&(ie==null||t.isValid(ie))?(ne(J),K(l.updateDateInValue(C,re,Ie))):(ie!=null&&(ne(J),K(l.updateDateInValue(C,re,Ie))),P(ke=>M({},ke,{sections:he,tempValueStrAndroid:null})))},de=re=>P(J=>M({},J,{tempValueStrAndroid:re})),oe=ve(re=>{P(J=>M({},J,{characterQuery:re}))});if(C!==v.lastExternalValue){const re=Y.current!=null&&!t.isValid(l.getDateFromSection(C,v.sections[Y.current.sectionIndex]));let J;re?J=Z(Y.current.sectionIndex,Y.current.value):J=j(C),P(ge=>M({},ge,{lastExternalValue:C,sections:J,sectionsDependencies:{format:f,isRtl:o,locale:t.locale},referenceValue:re?ge.referenceValue:l.updateReferenceValue(t,C,ge.referenceValue),tempValueStrAndroid:null}))}if(o!==v.lastSectionsDependencies.isRtl||f!==v.lastSectionsDependencies.format||t.locale!==v.lastSectionsDependencies.locale){const re=j(C);yu(re,i),P(J=>M({},J,{lastSectionsDependencies:{format:f,isRtl:o,locale:t.locale},sections:re,tempValueStrAndroid:null,characterQuery:null}))}v.characterQuery!=null&&!W&&N==null&&oe(null),v.characterQuery!=null&&((me=v.sections[v.characterQuery.sectionIndex])==null?void 0:me.type)!==v.characterQuery.sectionType&&oe(null),S.useEffect(()=>{Y.current!=null&&(Y.current=null)});const ye=ds();return S.useEffect(()=>(v.characterQuery!=null&&ye.start(UT,()=>oe(null)),()=>{}),[v.characterQuery,oe,ye]),S.useEffect(()=>{v.tempValueStrAndroid!=null&&N!=null&&B()},[v.sections]),{activeSectionIndex:N,areAllSectionsEmpty:A,error:W,localizedDigits:L,parsedSelectedSections:D,sectionOrder:z,sectionsValueBoundaries:V,state:v,timezone:E,value:C,clearValue:q,clearActiveSection:B,setCharacterQuery:oe,setSelectedSections:k,setTempAndroidValueStr:de,updateSectionValue:G,updateValueFromValueStr:H,getSectionsFromValue:j}};function qT(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=Xa(),i=LT(),a=gt(n.fieldRef,o?null:i==null?void 0:i.internalFieldRef,o?null:i==null?void 0:i.fieldRef),l=s==null?void 0:s.setValue,c=S.useCallback((d,m)=>l==null?void 0:l(d,{validationError:m.validationError,shouldClose:!1}),[l]),u=S.useMemo(()=>i!=null&&s!=null?M({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,fieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function nl(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:s}}=e;if(!n.isReady())return;const i=Io(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(an(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():s.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function YT(e){const{manager:{internal_fieldValueManager:t},focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,sectionOrder:d,state:m,value:h,activeSectionIndex:f,localizedDigits:g,timezone:p,clearValue:y,clearActiveSection:x,setCharacterQuery:T,setSelectedSections:w,updateValueFromValueStr:C,updateSectionValue:I},internalPropsWithDefaults:{disabled:E=!1,readOnly:R=!1,minutesStep:$}}=e,L=nt(),V=ve(N=>{var z;if(!E)switch(!0){case((N.ctrlKey||N.metaKey)&&(((z=N.key)==null?void 0:z.toUpperCase())==="A"||String.fromCharCode(N.keyCode)==="A")&&!N.shiftKey&&!N.altKey):{N.preventDefault(),w("all");break}case N.key==="ArrowRight":{if(N.preventDefault(),c==null)w(d.startIndex);else if(c==="all")w(d.endIndex);else{const A=d.neighbors[c].rightIndex;A!==null&&w(A)}break}case N.key==="ArrowLeft":{if(N.preventDefault(),c==null)w(d.endIndex);else if(c==="all")w(d.startIndex);else{const A=d.neighbors[c].leftIndex;A!==null&&w(A)}break}case N.key==="Delete":{if(N.preventDefault(),R)break;c==null||c==="all"?y():x();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(N.key):{if(N.preventDefault(),R||f==null)break;c==="all"&&w(f);const A=m.sections[f],F=XT(L,p,A,N.key,u,g,t.getDateFromSection(h,A),{minutesStep:$});I({section:A,newSectionValue:F,shouldGoToNextSection:!1});break}}}),j=ds(),v=ve(()=>{if(!(E||!s.isReady())){if(c==="all"){o(!0),j.start(0,()=>{const N=document.getSelection();if(!N||N.rangeCount===0){w(d.startIndex);return}const z=N.getRangeAt(0).startOffset;if(z===0){w(d.startIndex);return}let A=0,F=0;for(;F<z&&A<m.sections.length;){const W=m.sections[A];A+=1,F+=`${W.startSeparator}${W.value||W.placeholder}${W.endSeparator}`.length}w(A-1)});return}n||(o(!0),c==null&&w(d.startIndex))}}),P=ve(N=>{if(E||!s.isReady()||c==="all"||N.button!==0)return;const z=N.target,A=s.getRoot();if(!A.contains(z))return;const F=z.closest("[data-sectionindex]"),W=F?Number(F.dataset.sectionindex):GT(A,N.clientX);W==null||!Number.isInteger(W)||(N.preventDefault(),o(!0),w(W))}),_=ve(N=>{if(!s.isReady()||c!=="all")return;const A=N.target.textContent??"";s.getRoot().innerHTML=m.sections.map(F=>`${F.startSeparator}${F.value||F.placeholder}${F.endSeparator}`).join(""),nl({focused:n,domGetters:s,stateResponse:i}),A.length===0||A.charCodeAt(0)===10?(y(),w("all")):A.length>1?C(A):(c==="all"&&w(0),a({keyPressed:A,sectionIndex:0}))}),O=ve(N=>{if(R||c!=="all"){N.preventDefault();return}const z=N.clipboardData.getData("text");N.preventDefault(),T(null),C(z)}),k=ve(()=>{if(n||E||!s.isReady())return;const N=an(s.getRoot());o(!0),s.getSectionIndexFromDOMElement(N)!=null||w(d.startIndex)}),D=ve(()=>{setTimeout(()=>{if(!s.isReady())return;const N=an(s.getRoot());!s.getRoot().contains(N)&&(o(!1),w(null))})});return{onKeyDown:V,onBlur:D,onFocus:k,onClick:v,onMouseDown:P,onPaste:O,onInput:_,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function GT(e,t){const n=e.querySelectorAll('[role="spinbutton"]');if(n.length===0)return null;let o=0,s=1/0;for(let i=0;i<n.length;i+=1){const a=n[i].getBoundingClientRect(),l=(a.left+a.right)/2,c=Math.abs(t-l);c<s&&(s=c,o=i)}return o}function KT(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function XT(e,t,n,o,s,i,a,l){const c=KT(o),u=o==="Home",d=o==="End",m=n.value===""||u||d,h=()=>{const g=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),p=T=>kf(e,T,g,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let x;if(m){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=g.minimum:x=g.maximum}else x=parseInt(Kt(n.value,i),10)+c*y;return x%y!==0&&((c<0||u)&&(x+=y-(y+x)%y),(c>0||d)&&(x-=x%y)),x>g.maximum?p(g.minimum+(x-g.maximum-1)%(g.maximum-g.minimum+1)):x<g.minimum?p(g.maximum-(g.minimum-x-1)%(g.maximum-g.minimum+1)):p(x)},f=()=>{const g=_f(e,t,n.type,n.format);if(g.length===0)return n.value;if(m)return c>0||u?g[0]:g[g.length-1];const x=((g.indexOf(n.value)+c)%g.length+g.length)%g.length;return g[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():f()}function QT(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=ve(l=>{s(l.target.value)});return{value:S.useMemo(()=>n?"":t.getHiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function ZT(e){const{stateResponse:{parsedSelectedSections:t,setSelectedSections:n},internalPropsWithDefaults:{disabled:o=!1}}=e,s=ve(i=>{if(o||i.isDefaultPrevented())return;const a=Number(i.currentTarget.dataset.sectionindex);Number.isInteger(a)&&t!==a&&n(a)});return S.useCallback(i=>({"data-sectionindex":i,onClick:s}),[s])}function JT(e){const t=nt(),n=Qt(),{focused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:m,localizedDigits:h,clearActiveSection:f,setCharacterQuery:g,setSelectedSections:p,updateSectionValue:y,updateValueFromValueStr:x},internalPropsWithDefaults:{disabled:T=!1,readOnly:w=!1}}=e,C=c==="all",I=!C&&!T&&!w,E=ve(v=>{if(!s.isReady())return;const P=d.sections[v];s.getSectionContent(v).innerHTML=P.value||P.placeholder,nl({focused:o,domGetters:s,stateResponse:i})}),R=ve(v=>{if(!s.isReady())return;const P=v.target,_=P.textContent??"",O=s.getSectionIndexFromDOMElement(P),k=d.sections[O];if(w){E(O);return}if(_.length===0){if(k.value===""){E(O);return}const D=v.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){E(O);return}E(O),f();return}a({keyPressed:_,sectionIndex:O}),E(O)}),$=ve(v=>{v.preventDefault()}),L=ve(v=>{if(v.preventDefault(),w||T||typeof c!="number")return;const P=d.sections[c],_=v.clipboardData.getData("text"),O=/^[a-zA-Z]+$/.test(_),k=/^[0-9]+$/.test(_),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(_);P.contentType==="letter"&&O||P.contentType==="digit"&&k||P.contentType==="digit-with-letter"&&D?(g(null),y({section:P,newSectionValue:_,shouldGoToNextSection:!0})):!O&&!k&&(g(null),x(_))}),V=ve(v=>{v.preventDefault(),v.dataTransfer.dropEffect="none"}),j=S.useCallback(v=>()=>{T||p(v)},[T,p]);return S.useCallback((v,P)=>{const _=u[v.type]({currentDate:l.getDateFromSection(m,v),contentType:v.contentType,format:v.format});return{onInput:R,onPaste:L,onMouseUp:$,onDragOver:V,onFocus:j(P),"aria-readonly":w,"aria-valuenow":t0(v,t,h),"aria-valuemin":_.minimum,"aria-valuemax":_.maximum,"aria-valuetext":v.value?e0(v,t,h):n.empty,"aria-label":n[v.type],"aria-disabled":T,tabIndex:!I||C||P>0?-1:0,contentEditable:!C&&!T&&!w,role:"spinbutton","data-range-position":v.dateName||void 0,spellCheck:I?!1:void 0,autoCapitalize:I?"none":void 0,autoCorrect:I?"off":void 0,children:v.value||v.placeholder,inputMode:v.contentType==="letter"?"text":"numeric"}},[u,C,T,w,I,n,t,h,R,L,$,V,j,l,m])}function e0(e,t,n){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const s=t.setMonth(t.date(),Number(Kt(e.value,n))-1);return t.isValid(s)?t.format(s,"month"):""}const o=t.parse(e.value,e.format);return o&&t.isValid(o)?t.format(o,"month"):void 0}case"day":if(e.contentType==="digit"){const o=t.setDate(t.startOfYear(t.date()),Number(Kt(e.value,n)));return t.isValid(o)?t.format(o,"dayOfMonth"):""}return e.value;case"weekDay":return;default:return}}function t0(e,t,n){if(!e.value)return;const o=Kt(e.value,n);switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(o);case"meridiem":{const s=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return s?t.getHours(s)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(o,10):Number(o);case"month":{if(e.contentType==="digit")return Number(o);const s=t.parse(e.value,e.format);return s?t.getMonth(s)+1:void 0}default:return e.contentType!=="letter"?Number(o):void 0}}const n0=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=PT(t,s);process.env.NODE_ENV!=="production"&&l.enableAccessibleFieldDOMStructure!=null&&fn(["MUI X: The `enableAccessibleFieldDOMStructure` prop has been removed.","The accessible DOM structure is now the default and only option.","You can safely remove the prop from your code.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v8/)."]);const c=qT({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:m,onMouseDown:h,onFocus:f,onInput:g,onPaste:p,onKeyDown:y,onClear:x,clearable:T}=l,{disabled:w=!1,readOnly:C=!1,autoFocus:I=!1,focused:E,fieldRef:R}=c,$=S.useRef(null),L=gt(u,$),V=S.useMemo(()=>({isReady:()=>$.current!=null,getRoot:()=>$.current.getRoot(),getSectionContainer:J=>$.current.getSectionContainer(J),getSectionContent:J=>$.current.getSectionContent(J),getSectionIndexFromDOMElement:J=>$.current.getSectionIndexFromDOMElement(J)}),[$]),j=HT({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:v,error:P,parsedSelectedSections:_,sectionOrder:O,state:k,value:D,clearValue:N,setSelectedSections:z}=j,A=FT({stateResponse:j}),F=i(D),[W,K]=S.useState(!1);function Z(J=0){if(w||!$.current||wu($)!=null)return;const ge=ta(J,k.sections);K(!0),$.current.getSectionContent(ge).focus()}const Y=YT({manager:n,internalPropsWithDefaults:c,stateResponse:j,applyCharacterEditing:A,focused:W,setFocused:K,domGetters:V}),X=QT({manager:n,stateResponse:j}),ne=ZT({stateResponse:j,internalPropsWithDefaults:c}),q=JT({manager:n,stateResponse:j,applyCharacterEditing:A,internalPropsWithDefaults:c,domGetters:V,focused:W}),B=ve(J=>{y==null||y(J),Y.onKeyDown(J)}),H=ve(J=>{Y.onBlur(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||d==null||d(J)}),ae=ve(J=>{Y.onFocus(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||f==null||f(J)}),G=ve(J=>{J.isDefaultPrevented()||(m==null||m(J),Y.onClick(J))}),de=ve(J=>{J.isDefaultPrevented()||(h==null||h(J),Y.onMouseDown(J))}),oe=ve(J=>{p==null||p(J),Y.onPaste(J)}),ye=ve(J=>{g==null||g(J),Y.onInput(J)}),me=ve((J,...ge)=>{J.preventDefault(),x==null||x(J,...ge),N(),Tu($)?z(O.startIndex):Z(0)}),re=S.useMemo(()=>k.sections.map((J,ge)=>{const ie=q(J,ge);return{container:ne(ge),content:ie,before:{children:J.startSeparator},after:{children:J.endSeparator,"data-range-position":J.isEndFormatSeparator?ie["data-range-position"]:void 0}}}),[k.sections,ne,q]);return S.useEffect(()=>{if($.current==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\nYou probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\n\nLearn 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":Oe(249));I&&!w&&$.current.getSectionContent(O.startIndex).focus()},[]),mn(()=>{if(!(!W||!$.current)){if(_==="all")$.current.getRoot().focus();else if(typeof _=="number"){const J=$.current.getSectionContent(_);J&&J.focus()}}},[_,W]),mn(()=>{nl({focused:W,domGetters:V,stateResponse:j})}),S.useImperativeHandle(R,()=>({getSections:()=>k.sections,getActiveSectionIndex:()=>wu($),setSelectedSections:J=>{if(w||!$.current)return;const ge=ta(J,k.sections);K((ge==="all"?0:ge)!==null),z(J)},focusField:Z,isFieldFocused:()=>Tu($),clearValue:N})),M({},l,Y,{onBlur:H,onClick:G,onMouseDown:de,onFocus:ae,onInput:ye,onPaste:oe,onKeyDown:B,onClear:me},X,{error:P,clearable:!!(T&&!v&&!C&&!w),focused:E??W,sectionListRef:L,elements:re,areAllSectionsEmpty:v,disabled:w,readOnly:C,autoFocus:I,openPickerAriaLabel:F})};function wu(e){var n;const t=an((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function Tu(e){var n;const t=an((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const ol=e=>{const t=nt(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function o0(e={}){const{ampm:t}=e;return S.useMemo(()=>({valueType:"time",validator:si,internal_valueManager:jn,internal_fieldValueManager:wT,internal_useApplyDefaultValuesToFieldInternalProps:s0,internal_useOpenPickerButtonAriaLabel:r0(t)}),[t])}function r0(e){return function(n){const o=nt(),s=Qt();return S.useMemo(()=>{const i=e??o.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=o.isValid(n)?o.format(n,i):null;return s.openTimePickerDialogue(a)},[n,s,o])}}function s0(e){const t=nt(),n=Vf(e),o=S.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return S.useMemo(()=>M({},e,n,{format:e.format??(o?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,o,t])}function Vf(e){return S.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}const i0=e=>{const t=o0(e);return n0({manager:t,props:e})};function a0(e){return _e("MuiIconButton",e)}const Iu=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),l0=e=>{const{classes:t,disabled:n,color:o,edge:s,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${le(o)}`,s&&`edge${le(s)}`,`size${le(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return $e(l,a0,t)},c0=te(Zn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Ke(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),Ke(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ht()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ht()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Iu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Iu.loading}`]:{color:"transparent"}}))),u0=te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Jn=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:f,...g}=o,p=Va(m),y=f??b.jsx(Js,{"aria-labelledby":p,color:"inherit",size:16}),x={...o,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:y,size:d},T=l0(x);return b.jsxs(c0,{id:h?p:m,className:ce(T.root,a),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...g,ownerState:x,children:[typeof h=="boolean"&&b.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:b.jsx(u0,{className:T.loadingIndicator,ownerState:x,children:h&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Jn.propTypes={children:An(r.node,e=>S.Children.toArray(e.children).some(n=>S.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(`
|
|
202
|
-
`)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),id:r.string,loading:r.bool,loadingIndicator:r.node,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const ii=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(ii.displayName="FormControlContext");function oo(){return S.useContext(ii)}function d0(e){return _e("MuiInputAdornment",e)}const Eu=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ou;const p0=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},f0=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${le(s)}`,a,o&&"hiddenLabel",i&&`size${le(i)}`]};return $e(l,d0,t)},m0=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:p0})(Ke(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Eu.positionStart}&:not(.${Eu.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Ff=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...m}=o,h=oo()||{};let f=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!f&&(f=h.variant);const g={...o,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:f},p=f0(g);return b.jsx(ii.Provider,{value:null,children:b.jsx(m0,{as:a,ownerState:g,className:ce(p.root,i),ref:n,...m,children:typeof s=="string"&&!c?b.jsx(no,{color:"textSecondary",children:s}):b.jsxs(S.Fragment,{children:[u==="start"?Ou||(Ou=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(Ff.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function h0(e){return typeof e=="string"}function g0(e,t,n){return e===void 0||h0(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function b0(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function y0(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))b0(n,e[n])&&(t[n]=e[n]);return t}function _u(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function v0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=y0({...s,...o}),l=_u(o),c=_u(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function ze(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Ro(n,o),{props:l,internalRef:c}=v0({...i,externalSlotProps:a}),u=gt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return g0(t,{...l,ref:u},o)}const pt=()=>S.useContext(el);function rl(e){const{ownerState:t}=pt(),n=Dn();return S.useMemo(()=>M({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}rt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const x0=rt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),S0=rt(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");rt(b.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");const C0=rt(b.jsxs(S.Fragment,{children:[b.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"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");rt(b.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");rt(b.jsxs(S.Fragment,{children:[b.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"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const w0=rt(b.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");function tt(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}let ku=0;function T0(e){const[t,n]=S.useState(e),o=e||t;return S.useEffect(()=>{t==null&&(ku+=1,n(`mui-${ku}`))},[t]),o}const I0={...S},Pu=I0.useId;function sl(e){if(Pu!==void 0){const t=Pu();return e??t}return T0(e)}function il({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}function E0(e){return _e("MuiFormLabel",e)}const lr=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),O0=e=>{const{classes:t,color:n,focused:o,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${le(n)}`,s&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return $e(c,E0,t)},_0=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ht()).map(([t])=>({props:{color:t},style:{[`&.${lr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),k0=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ke(({theme:e})=>({[`&.${lr.error}`]:{color:(e.vars||e).palette.error.main}}))),Bf=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:m,required:h,...f}=o,g=oo(),p=il({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},x=O0(y);return b.jsxs(_0,{as:l,ownerState:y,className:ce(x.root,i),ref:n,...f,children:[s,p.required&&b.jsxs(k0,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Bf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function P0(e){return _e("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const R0=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",o&&o!=="medium"&&`size${le(o)}`,a],asterisk:[l&&"asterisk"]},u=$e(c,P0,t);return{...t,...u}},N0=te(Bf,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lr.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),zf=S.forwardRef(function(t,n){const o=We({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=oo();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=il({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),f={...o,disableAnimation:s,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=R0(f);return b.jsx(N0,{"data-shrink":m,ref:n,className:ce(g.root,c),...u,ownerState:f,classes:g})});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function M0(e){return _e("MuiFormHelperText",e)}const Ru=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Nu;const $0=e=>{const{classes:t,contained:n,size:o,disabled:s,error:i,filled:a,focused:l,required:c}=e,u={root:["root",s&&"disabled",i&&"error",o&&`size${le(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return $e(u,M0,t)},D0=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ru.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ru.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Wf=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:m,required:h,variant:f,...g}=o,p=oo(),y=il({props:o,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),x={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const T=$0(x);return b.jsx(D0,{as:a,className:ce(T.root,i),ref:n,...g,ownerState:x,children:s===" "?Nu||(Nu=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});process.env.NODE_ENV!=="production"&&(Wf.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function Mu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function $u(e,t=!1){return e&&(Mu(e.value)&&e.value!==""||t&&Mu(e.defaultValue)&&e.defaultValue!=="")}function A0(e){return e.startAdornment}function j0(e){return _e("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const L0=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${le(n)}`,o&&"fullWidth"]};return $e(s,j0,t)},V0=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Uf=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:p="medium",variant:y="outlined",...x}=o,T={...o,color:a,component:l,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:f,required:g,size:p,variant:y},w=L0(T),[C,I]=S.useState(()=>{let k=!1;return s&&S.Children.forEach(s,D=>{if(!wo(D,["Input","Select"]))return;const N=wo(D,["Select"])?D.props.input:D;N&&A0(N.props)&&(k=!0)}),k}),[E,R]=S.useState(()=>{let k=!1;return s&&S.Children.forEach(s,D=>{wo(D,["Input","Select"])&&($u(D.props,!0)||$u(D.props.inputProps,!0))&&(k=!0)}),k}),[$,L]=S.useState(!1);c&&$&&L(!1);const V=d!==void 0&&!c?d:$;let j;const v=S.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(v.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
203
|
-
`)),v.current=!0,()=>{v.current=!1}));const P=S.useCallback(()=>{R(!0)},[]),_=S.useCallback(()=>{R(!1)},[]),O=S.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:a,disabled:c,error:u,filled:E,focused:V,fullWidth:m,hiddenLabel:h,size:p,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:_,onFilled:P,registerEffect:j,required:g,variant:y}),[C,a,c,u,E,V,m,h,j,_,P,g,p,y]);return b.jsx(ii.Provider,{value:O,children:b.jsx(V0,{as:l,ownerState:T,className:ce(w.root,i),ref:n,...x,children:s})})});process.env.NODE_ENV!=="production"&&(Uf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});const Du=e=>e,F0=()=>{let e=Du;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Du}}},B0=F0(),z0={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 ot(e,t,n="Mui"){const o=z0[t];return o?`${n}-${o}`:`${B0.generate(e)}-${t}`}function st(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=ot(e,s,n)}),o}function W0(e){return ot("MuiPickersTextField",e)}st("MuiPickersTextField",["root","focused","disabled","error","required"]);function U0(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function H0(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":U0(7));return e.charAt(0).toUpperCase()+e.slice(1)}const q0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Y0(e){return ot("MuiPickersInputBase",e)}const On=st("MuiPickersInputBase",["root","focused","disabled","readOnly","error","notchedOutline","sectionsContainer","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function G0(e){return ot("MuiPickersSectionList",e)}const yo=st("MuiPickersSectionList",["root","section","sectionContent"]),K0=["slots","slotProps","elements","sectionListRef","classes"],Hf=te("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),qf=te("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Yf=te("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Gf=te("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),X0=e=>tt({root:["root"],section:["section"],sectionContent:["sectionContent"]},G0,e);function Kf(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=pt(),a=(t==null?void 0:t.section)??qf,l=ze({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??Gf,u=ze({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??Yf,m=ze({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:M({},i,{separatorPosition:"before"})}),h=ze({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:M({},i,{separatorPosition:"after"})}),f=S.useRef(null),g=gt(u.ref,f),p=y=>{const x=y.relatedTarget,T=y.currentTarget.closest(`.${yo.root}`);if(T&&x instanceof Node&&T.contains(x)){y.stopPropagation();return}};return b.jsxs(a,M({},l,{children:[b.jsx(d,M({},m)),b.jsx(c,M({},u,{ref:g,onBlur:p})),b.jsx(d,M({},h))]}))}process.env.NODE_ENV!=="production"&&(Kf.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const al=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=xe(o,K0),d=X0(c),{ownerState:m}=pt(),h=S.useRef(null),f=gt(n,h),g=x=>{if(!h.current)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`:Oe(145,x));return h.current};S.useImperativeHandle(l,()=>({getRoot(){return g("getRoot")},getSectionContainer(x){return g("getSectionContainer").querySelector(`.${yo.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return g("getSectionContent").querySelector(`.${yo.section}[data-sectionindex="${x}"] .${yo.sectionContent}`)},getSectionIndexFromDOMElement(x){const T=g("getSectionIndexFromDOMElement");if(x==null||!T.contains(x))return null;let w=null;return x.classList.contains(yo.section)?w=x:x.classList.contains(yo.sectionContent)&&(w=x.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const p=(s==null?void 0:s.root)??Hf,y=ze({elementType:p,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:f,suppressContentEditableWarning:!0},className:d.root,ownerState:m});return b.jsx(p,M({},y,{children:y.contentEditable?a.map(({content:x,before:T,after:w})=>`${T.children}${x.children}${w.children}`).join(""):b.jsx(S.Fragment,{children:a.map((x,T)=>b.jsx(Kf,{slots:s,slotProps:i,element:x,classes:d},T))})}))});process.env.NODE_ENV!=="production"&&(al.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(al.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const ll=S.createContext(null);process.env.NODE_ENV!=="production"&&(ll.displayName="PickerTextFieldOwnerStateContext");const ai=()=>{const e=S.useContext(ll);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component":Oe(146));return e},Q0=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],Z0=["ref"];function J0(e,t){return n=>{const o=Ro(e,n)??{};return M({},o,{className:ce(t,o.className)})}}const eI=e=>Math.round(e*1e5)/1e5,li=te("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>M({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${eI(.15/16)}em`,[`&.${On.disabled}`]:{color:(e.vars||e).palette.action.disabled,cursor:"default"},variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),cl=te(Hf,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0,hasStartAdornment:!1,inputHasLabel:!0,isLabelShrunk:!1},style:{opacity:0}}]})),tI=te(qf,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),nI=te(Gf,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none","@supports (-webkit-app-region: drag)":{[`.${On.root}:not(:focus-within) &`]:{WebkitUserModify:"read-only",userSelect:"none"}}})),oI=te(Yf,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),rI=te("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(M({},q0)),sI=te("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),iI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,m={root:["root",n&&!o&&"focused",o&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${H0(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return tt(m,Y0,e)};function Au(e,t,n,o){var s;if(e.content["data-range-position"]!==void 0){const i=(s=t.current)==null?void 0:s.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function aI(e,t){var s,i,a,l,c;let n=0;if(((s=t.current)==null?void 0:s.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Au(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Au(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const $r=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:m,slots:h,slotProps:f,contentEditable:g,tabIndex:p,onInput:y,onPaste:x,onKeyDown:T,name:w,readOnly:C,inputRef:I,sectionListRef:E,onFocus:R,onBlur:$,classes:L,ownerState:V}=o,j=xe(o,Q0),v=ai(),P=S.useRef(null),_=S.useRef(null),O=S.useRef([]),k=gt(n,P),D=oo();if(!D)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: PickersInputBase should always be used inside a PickersTextField component":Oe(152));const N=V??v,z=de=>{var oe;(oe=D.onFocus)==null||oe.call(D,de),R==null||R(de)},A=de=>{z(de)},F=de=>{var oe,ye;if(T==null||T(de),de.key==="Enter"&&!de.defaultMuiPrevented){if((oe=P.current)!=null&&oe.dataset.multiInput)return;const me=(ye=P.current)==null?void 0:ye.closest("form"),re=me==null?void 0:me.querySelector('[type="submit"]');if(!me||!re)return;de.preventDefault(),me.requestSubmit(re)}},W=de=>{var oe;(oe=D.onBlur)==null||oe.call(D,de),$==null||$(de)};S.useEffect(()=>{D&&D.setAdornedStart(!!d)},[D,d]),S.useEffect(()=>{D&&(i?D.onEmpty():D.onFilled())},[D,i]);const K=iI(L,N),Z=(h==null?void 0:h.root)||li,Y=ze({elementType:Z,externalSlotProps:f==null?void 0:f.root,externalForwardedProps:j,additionalProps:{"aria-invalid":D.error,ref:k},className:K.root,ownerState:N}),X=(h==null?void 0:h.input)||cl,ne=(h==null?void 0:h.htmlInput)||rI,q=ze({elementType:ne,externalSlotProps:f==null?void 0:f.htmlInput,ownerState:N}),{ref:B}=q,H=xe(q,Z0),ae=gt(B,I),G=s.some(de=>de.content["data-range-position"]!==void 0);return S.useEffect(()=>{if(!G||!N.isPickerOpen)return;const{activeBarWidth:de,sectionOffsets:oe}=aI(s,P);O.current=[oe[0],oe[1]],_.current&&(_.current.style.width=`${de}px`)},[s,G,N.isPickerOpen]),b.jsxs(Z,M({},Y,{children:[d,b.jsx(al,{sectionListRef:E,elements:s,contentEditable:g,tabIndex:p,className:K.sectionsContainer,onFocus:z,onBlur:W,onInput:y,onPaste:x,onKeyDown:F,slots:{root:X,section:tI,sectionContent:nI,sectionSeparator:oI},slotProps:{root:M({},f==null?void 0:f.input,{ownerState:N}),sectionContent:J0(f==null?void 0:f.sectionContent,On.sectionContent),sectionSeparator:({separatorPosition:de})=>({className:de==="before"?On.sectionBefore:On.sectionAfter})}}),u,m?m(M({},D)):null,b.jsx(ne,M({name:w,className:K.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:D.required,disabled:D.disabled,onFocus:A},H,{ref:ae})),G&&b.jsx(sI,{className:K.activeBar,ref:_,ownerState:{sectionOffsets:O.current}})]}))});process.env.NODE_ENV!=="production"&&($r.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&($r.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function lI(e){return ot("MuiPickersOutlinedInput",e)}const Lt=M({},On,st("MuiPickersOutlinedInput",["root","notchedOutline","input"])),cI=["children","className","label","notched","shrink"],uI=te("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.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:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}}),ju=te("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),dI=te("legend",{slot:"internal",shouldForwardProp:e=>Ft(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function pI(e){const{className:t,label:n,notched:o}=e,s=xe(e,cI),i=ai();return b.jsx(uI,M({"aria-hidden":!0,className:t},s,{ownerState:i,children:b.jsx(dI,{ownerState:i,notched:o,children:n?b.jsx(ju,{children:n}):b.jsx(ju,{className:"notranslate",children:""})})}))}const fI=["label","autoFocus","ownerState","classes","notched","slots","slotProps"],mI=te(li,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Lt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Lt.focused} .${Lt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Lt.error} .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Lt.disabled}`]:{[`& .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${Lt.focused}:not(.${Lt.error}) .${Lt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),hI=te(cl,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),gI=e=>{const n=tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lI,e);return M({},e,n)},ci=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a,slots:l,slotProps:c}=o,u=xe(o,fI),d=oo(),m=gI(i);return b.jsx($r,M({},u,{slots:M({root:mI,input:hI},l),slotProps:c,renderSuffix:h=>{const f=typeof a<"u"?a:!!(h.adornedStart||h.focused||h.filled);return b.jsx(pI,{shrink:f,notched:f,className:m.notchedOutline,label:s!=null&&s!==""&&(d!=null&&d.required)?b.jsxs(S.Fragment,{children:[s," ","*"]}):s})},label:s,classes:m,ref:n}))});process.env.NODE_ENV!=="production"&&(ci.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(ci.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});ci.muiName="Input";function bI(e){return ot("MuiPickersFilledInput",e)}const Wn=M({},On,st("MuiPickersFilledInput",["root","underline","input"])),yI=["label","autoFocus","disableUnderline","hiddenLabel","classes","slots","slotProps"],vI=te(li,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Wn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Wn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wn.disabled}, .${Wn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Wn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),xI=te(cl,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ft(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),SI=(e,t)=>{const{inputHasUnderline:n}=t,s=tt({root:["root",n&&"underline"],input:["input"]},bI,e);return M({},e,s)},ui=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l,slots:c,slotProps:u}=o,d=xe(o,yI),m=ai(),h=M({},m,{inputHasUnderline:!i}),f=SI(l,h);return b.jsx($r,M({},d,{slots:M({root:vI,input:xI},c),slotProps:M({},u,{root:M({disableUnderline:i},u==null?void 0:u.root),input:M({hiddenLabel:a},u==null?void 0:u.input)}),label:s,classes:f,ref:n,ownerState:h}))});process.env.NODE_ENV!=="production"&&(ui.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(ui.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});ui.muiName="Input";function CI(e){return ot("MuiPickersFilledInput",e)}const Ko=M({},On,st("MuiPickersInput",["root","underline","input"])),wI=["label","autoFocus","disableUnderline","ownerState","classes","slots","slotProps"],TI=te(li,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ko.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ko.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ko.disabled}, .${Ko.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ko.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),II=(e,t)=>{const{inputHasUnderline:n}=t,s=tt({root:["root",!n&&"underline"],input:["input"]},CI,e);return M({},e,s)},di=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a,slots:l,slotProps:c}=o,u=xe(o,wI),d=ai(),m=M({},d,{inputHasUnderline:!i}),h=II(a,m);return b.jsx($r,M({},u,{slots:M({root:TI},l),slotProps:M({},c,{root:M({disableUnderline:i},c==null?void 0:c.root)}),ownerState:m,label:s,classes:h,ref:n}))});process.env.NODE_ENV!=="production"&&(di.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(di.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});di.muiName="Input";const EI=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onMouseDown","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","label","slots","slotProps","data-active-range-position"],OI={standard:di,filled:ui,outlined:ci},_I=te(Uf,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),kI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return tt({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},W0,e)},pi=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersTextField"});if(process.env.NODE_ENV!=="production"){const ie=t;(ie.InputProps||ie.inputProps||ie.InputLabelProps||ie.FormHelperTextProps)&&fn(["MUI X: `PickersTextField` no longer supports the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They are silently dropped, which can hide configuration bugs in JavaScript codebases that do not benefit from TypeScript checks.","Use `slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel` and `slotProps.formHelperText` instead.","You can run the `migrate-text-field-props` codemod to migrate automatically."])}const{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:m="outlined",required:h=!1,hiddenLabel:f=!1,inputRef:g,sectionListRef:p,elements:y,areAllSectionsEmpty:x,onClick:T,onMouseDown:w,onKeyDown:C,onKeyUp:I,onPaste:E,onInput:R,endAdornment:$,startAdornment:L,tabIndex:V,contentEditable:j,focused:v,value:P,onChange:_,fullWidth:O,id:k,name:D,helperText:N,label:z,slots:A,slotProps:F,"data-active-range-position":W}=o,K=xe(o,EI),Z=S.useRef(null),Y=gt(n,Z),X=sl(k),ne=N&&X?`${X}-helper-text`:void 0,q=z&&X?`${X}-label`:void 0,B=F==null?void 0:F.input,H=F==null?void 0:F.inputLabel,ae=rl({disabled:o.disabled,required:o.required,readOnly:B==null?void 0:B.readOnly}),G=S.useMemo(()=>M({},ae,{isFieldValueEmpty:x,isFieldFocused:v??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!(L??(B==null?void 0:B.startAdornment)),hasEndAdornment:!!($??(B==null?void 0:B.endAdornment)),inputHasLabel:!!z,isLabelShrunk:!!(H!=null&&H.shrink)}),[ae,x,v,d,o.size,c,O,L,$,B==null?void 0:B.startAdornment,B==null?void 0:B.endAdornment,z,H==null?void 0:H.shrink]),de=kI(l,G),oe=(A==null?void 0:A.input)??OI[m],ye=(A==null?void 0:A.root)??_I,me=(A==null?void 0:A.inputLabel)??zf,re=(A==null?void 0:A.formHelperText)??Wf,J={};m==="outlined"?(H&&typeof H.shrink<"u"&&(J.notched=H.shrink),J.label=z):m==="filled"&&(J.hiddenLabel=f);const ge=ze({elementType:ye,externalSlotProps:F==null?void 0:F.root,externalForwardedProps:M({},K,{className:a}),additionalProps:{ref:Y,focused:v,disabled:u,variant:m,error:d,color:c,fullWidth:O,required:h},className:de.root,ownerState:G});return b.jsx(ll.Provider,{value:G,children:b.jsxs(ye,M({},ge,{children:[z!=null&&z!==""&&b.jsx(me,M({htmlFor:X,id:q},H,{children:z})),b.jsx(oe,M({elements:y,areAllSectionsEmpty:x,onClick:T,onMouseDown:w,onKeyDown:C,onKeyUp:I,onInput:R,onPaste:E,onFocus:s,onBlur:i,endAdornment:$,startAdornment:L,tabIndex:V,contentEditable:j,value:P,onChange:_,id:X,fullWidth:O,inputRef:g,sectionListRef:p,label:z,name:D,role:"group","aria-labelledby":q,"aria-describedby":ne,"aria-live":ne?"polite":void 0,"data-active-range-position":W},J,B,{slots:M({},B==null?void 0:B.slots,(A==null?void 0:A.htmlInput)!==void 0&&{htmlInput:A.htmlInput}),slotProps:M({},B==null?void 0:B.slotProps,(F==null?void 0:F.htmlInput)!==void 0&&{htmlInput:F.htmlInput})})),N&&b.jsx(re,M({id:ne},F==null?void 0:F.formHelperText,{children:N}))]}))})});process.env.NODE_ENV!=="production"&&(pi.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(pi.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const PI=["readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel","InputProps","inputProps","InputLabelProps","FormHelperTextProps"],RI=["ownerState"],NI=["ownerState"],MI=["ownerState"],$I=["ownerState"],DI=["InputProps","inputProps","InputLabelProps","FormHelperTextProps"],AI=e=>{var f;const t=e,{readOnly:n,onClear:o,clearable:s,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=t,h=xe(t,PI);return process.env.NODE_ENV!=="production"&&(c||u||d||m)&&fn(["MUI X: The `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props are no longer supported on Picker / Field components.","They have been silently dropped because they would otherwise be forwarded as unknown attributes on the underlying form control.","Use the `slotProps` shape instead (`slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel`, `slotProps.formHelperText`).","See https://mui.com/x/migration/migration-pickers-v8/#textfield-props for migration details."]),{clearable:s,onClear:o,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,textFieldProps:M({},h,{slotProps:M({},h==null?void 0:h.slotProps,{input:M({},(f=h==null?void 0:h.slotProps)==null?void 0:f.input,{readOnly:n})})})}},fi=S.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(fi.displayName="PickerFieldUIContext");function jI(e){var A;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=Qt(),s=Xa(),i=S.useContext(fi),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:m="end"}=AI(t),h=rl(a),f=ve(F=>{F.preventDefault(),s==null||s.setOpen(!0)}),g=s?s.triggerStatus:"hidden",p=c?d:null,y=g!=="hidden"?m:null,x=i.slots.textField??pi,T=i.slots.inputAdornment??Ff,w=ze({elementType:T,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:M({},h,{position:"start"})}),C=xe(w,RI),I=ze({elementType:T,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:M({},h,{position:"end"})}),E=xe(I,NI),R=i.slots.openPickerButton??Jn,$=ze({elementType:R,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:g==="disabled",onClick:f,"aria-label":u,"data-mui-picker-open-button":"true",edge:a.variant!=="standard"?y:!1},ownerState:h}),L=xe($,MI),V=i.slots.openPickerIcon??n,j=ze({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:h}),v=i.slots.clearButton??Jn,P=ze({elementType:v,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&p!==y?p:!1},ownerState:h}),_=xe(P,$I),O=i.slots.clearIcon??w0,k=ze({elementType:O,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});a.ref=gt(a.ref,s==null?void 0:s.rootRef);const D=(A=a.slotProps)==null?void 0:A.input,N={},z=gt(D==null?void 0:D.ref,s==null?void 0:s.triggerRef);return s&&(N.ref=z),!(D!=null&&D.startAdornment)&&(p==="start"||y==="start")&&(N.startAdornment=b.jsxs(T,M({},C,{children:[y==="start"&&b.jsx(R,M({},L,{children:b.jsx(V,M({},j))})),p==="start"&&b.jsx(v,M({},_,{children:b.jsx(O,M({},k))}))]}))),!(D!=null&&D.endAdornment)&&(p==="end"||y==="end")&&(N.endAdornment=b.jsxs(T,M({},E,{children:[p==="end"&&b.jsx(v,M({},_,{children:b.jsx(O,M({},k))})),y==="end"&&b.jsx(R,M({},L,{children:b.jsx(V,M({},j))}))]}))),!N.endAdornment&&!N.startAdornment&&i.slots.inputAdornment&&(N.endAdornment=b.jsx(T,M({},E))),p!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]),a.slotProps=M({},a.slotProps,{input:M({},D,N)}),b.jsx(x,M({},a))}function LI(e,t){return e?t?n=>M({},Ro(t,n),Ro(e,n)):e:t}function VI(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=S.useContext(fi),i=Xa(),a=rl(n),l=n??{},{InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=l,h=xe(l,DI);process.env.NODE_ENV!=="production"&&(c||u||d||m)&&fn(["MUI X: Field components no longer accept the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They have been dropped to avoid leaking unknown attributes onto the underlying form control.","Use the nested `slotProps.textField.slotProps.{input,htmlInput,inputLabel,formHelperText}` shape instead."]);const f=ze({elementType:pi,externalSlotProps:LI(s.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:h,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:s.inputRef},ownerState:a});if(i&&i.keepOpenDuringFieldFocus&&i.triggerStatus==="enabled"&&!i.open&&!i.readOnly&&!i.disabled){const g=f.onFocus,p=f.onMouseDown,y=x=>{var I;const T=x.nativeEvent??x,w=(I=T==null?void 0:T.composedPath)==null?void 0:I.call(T);if(Array.isArray(w)){for(const E of w)if(E&&E.getAttribute&&E.getAttribute("data-mui-picker-open-button")==="true")return!0}const C=x.target;return C&&C.closest?!!C.closest('[data-mui-picker-open-button="true"]'):!1};f.onFocus=x=>{g==null||g(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)},f.onMouseDown=x=>{p==null||p(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)}}return f}function FI(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=S.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(fi.Provider,{value:i,children:s})}const BI=["slots","slotProps"],mi=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=o,a=xe(o,BI),l=VI({slotProps:i,ref:n,externalForwardedProps:a}),c=i0(l);return b.jsx(FI,{slots:s,slotProps:i,inputRef:a.inputRef,children:b.jsx(jI,{fieldResponse:c,defaultOpenPickerIcon:C0})})});process.env.NODE_ENV!=="production"&&(mi.displayName="TimeField");process.env.NODE_ENV!=="production"&&(mi.propTypes={ampm:r.bool,areAllSectionsEmpty:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,endAdornment:r.node,error:r.bool,fieldRef:r.oneOfType([r.func,r.object]),focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:gn,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onClick:r.func,onError:r.func,onFocus:r.func,onInput:r.func,onKeyDown:r.func,onMouseDown:r.func,onPaste:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function zI(e){return ot("MuiPickersToolbarText",e)}st("MuiPickersToolbarText",["root"]);const WI=["className","classes","selected","value"],UI=e=>tt({root:["root"]},zI,e),HI=te(no,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),ul=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=o,c=xe(o,WI),u=UI(i);return b.jsx(HI,M({ref:n,className:ce(u.root,s),component:"span",ownerState:o},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(ul.displayName="PickersToolbarText");function Xf(e){return ot("MuiPickersToolbar",e)}st("MuiPickersToolbar",["root","title","content"]);const qI=["align","className","classes","selected","typographyClassName","value","variant","width"],YI=e=>tt({root:["root"]},Xf,e),GI=te(nn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),vo=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:m}=o,h=xe(o,qI),f=YI(a);return b.jsx(GI,M({variant:"text",ref:n,className:ce(f.root,i),ownerState:o},m?{sx:{width:m}}:{},h,{children:b.jsx(ul,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(vo.displayName="PickersToolbarButton");function Qf(){const{ownerState:e}=pt(),t=Dn();return S.useMemo(()=>M({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const KI=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],XI=e=>tt({root:["root"],title:["title"],content:["content"]},Xf,e),QI=te("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),ZI=te("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Ft(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Zf=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,m=xe(o,KI),h=Qf(),f=XI(a);return c?null:b.jsxs(QI,M({ref:n,className:ce(f.root,i),ownerState:h},m,{children:[b.jsx(no,{variant:"overline",id:u,className:f.title,sx:{color:"text.secondary"},children:l}),b.jsx(ZI,{className:f.content,ownerState:h,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(Zf.displayName="PickersToolbar");function dl(e,t,n,o){const s=nt(),i=S.useMemo(()=>s.isValid(e)?e:null,[s,e]),a=uT(i,s),l=S.useCallback(c=>{const u=i==null?null:Ef(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:a,handleMeridiemChange:l}}function JI(e){return ot("MuiTimePickerToolbar",e)}const cr=st("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),eE=["ampm","ampmInClock","className","classes"],tE=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return tt({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},JI,e)},nE=te(Zf,{name:"MuiTimePickerToolbar",slot:"Root"})({}),oE=te(ul,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),rE=te("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${cr.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${cr.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),sE=te("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${cr.ampmLabel}`]:t.ampmLabel},{[`&.${cr.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${cr.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function Jf(e){const t=Be({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,className:s,classes:i}=t,a=xe(t,eE),l=nt(),c=Qt(),u=Qf(),d=tE(i,u),{value:m,setValue:h,disabled:f,readOnly:g,view:p,setView:y,views:x}=zo(),T=!!(n&&!o&&x.includes("hours")),{meridiemMode:w,handleMeridiemChange:C}=dl(m,n,R=>h(R,{changeImportance:"set",source:"view"})),I=R=>l.isValid(m)?l.format(m,R):"--",E=b.jsx(oE,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return b.jsxs(nE,M({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:ce(d.root,s)},a,{children:[b.jsxs(rE,{className:d.hourMinuteLabel,ownerState:u,children:[bo(x,"hours")&&b.jsx(vo,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:p==="hours",value:I(n?"hours12h":"hours24h")}),bo(x,["hours","minutes"])&&E,bo(x,"minutes")&&b.jsx(vo,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:p==="minutes",value:I("minutes")}),bo(x,["minutes","seconds"])&&E,bo(x,"seconds")&&b.jsx(vo,{variant:"h3",onClick:()=>y("seconds"),selected:p==="seconds",value:I("seconds")})]}),T&&b.jsxs(sE,{className:d.ampmSelection,ownerState:u,children:[b.jsx(vo,{disableRipple:!0,variant:"subtitle2",selected:w==="am",typographyClassName:d.ampmLabel,value:En(l,"am"),onClick:g?void 0:()=>C("am"),disabled:f}),b.jsx(vo,{disableRipple:!0,variant:"subtitle2",selected:w==="pm",typographyClassName:d.ampmLabel,value:En(l,"pm"),onClick:g?void 0:()=>C("pm"),disabled:f})]})]}))}process.env.NODE_ENV!=="production"&&(Jf.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node});function em(e,t){var l;const n=nt(),o=Be({props:e,name:t}),s=Vf(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=S.useMemo(()=>{var c;return((c=o.localeText)==null?void 0:c.toolbarTitle)==null?o.localeText:M({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return M({},o,s,{ampm:i,localeText:a},sT({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:M({toolbar:Jf},o.slots),slotProps:M({},o.slotProps,{toolbar:M({ampm:i,ampmInClock:o.ampmInClock},(l=o.slotProps)==null?void 0:l.toolbar)})})}function iE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function tm(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!iE(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Dr=An(r.element,tm);Dr.isRequired=An(r.element.isRequired,tm);function hi(e){var t;return parseInt(S.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const nm=e=>e.scrollTop;function lt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function om(e,t,n,o,s,i){const a=e==="exited"&&!t?o:n[e]||n.exited;return s||i?{...a,...s,...i}:a}function Mo(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function ur(e){return`scale(${e}, ${e**2})`}const aE={entering:{opacity:1,transform:ur(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:ur(.75)},exited:{opacity:0,transform:ur(.75)}},lE={opacity:0,transform:ur(.75),visibility:"hidden"},Es=S.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:f,style:g,timeout:p="auto",...y}=t,x=Ha(),T=S.useRef(),w=Rr(),C=S.useRef(null),I=dt(C,hi(i),n),E=lt(C,d),R=lt(C,(P,_)=>{nm(P);const{duration:O,delay:k,easing:D}=Mo({style:g,timeout:p,easing:a},{mode:"enter"});let N;p==="auto"?(N=w.transitions.getAutoHeightDuration(P.clientHeight),T.current=N):N=O,P.style.transition=[w.transitions.create("opacity",{duration:N,delay:k}),w.transitions.create("transform",{duration:N*.666,delay:k,easing:D})].join(","),c&&c(P,_)}),$=lt(C,u),L=lt(C,f),V=lt(C,P=>{const{duration:_,delay:O,easing:k}=Mo({style:g,timeout:p,easing:a},{mode:"exit"});let D;p==="auto"?(D=w.transitions.getAutoHeightDuration(P.clientHeight),T.current=D):D=_,P.style.transition=[w.transitions.create("opacity",{duration:D,delay:O}),w.transitions.create("transform",{duration:D*.666,delay:O||D*.333,easing:k})].join(","),P.style.opacity=0,P.style.transform=ur(.75),m&&m(P)}),j=lt(C,P=>{P.style.transition="",h&&h(P)}),v=P=>{p==="auto"&&x.start(T.current||0,P),o&&o(C.current,P)};return b.jsx(zt,{appear:s,in:l,nodeRef:C,onEnter:R,onEntered:$,onEntering:E,onExit:V,onExited:j,onExiting:L,addEndListener:v,timeout:p==="auto"?null:p,...y,children:(P,{ownerState:_,...O})=>{const k=om(P,l,aE,lE,g,i.props.style);return S.cloneElement(i,{style:k,ref:I,...O})}})});process.env.NODE_ENV!=="production"&&(Es.propTypes={addEndListener:r.func,appear:r.bool,children:Dr.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});Es&&(Es.muiSupportAuto=!0);const cE={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},uE={opacity:0,visibility:"hidden"},$o=S.forwardRef(function(t,n){const o=Rr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:f,onExited:g,onExiting:p,style:y,timeout:x=s,...T}=t,w=S.useRef(null),C=dt(w,hi(l),n),I=lt(w,h),E=lt(w,(v,P)=>{nm(v);const _=Mo({style:y,timeout:x,easing:c},{mode:"enter"});v.style.transition=o.transitions.create("opacity",_),d&&d(v,P)}),R=lt(w,m),$=lt(w,p),L=lt(w,v=>{const P=Mo({style:y,timeout:x,easing:c},{mode:"exit"});v.style.transition=o.transitions.create("opacity",P),f&&f(v)}),V=lt(w,v=>{v.style.transition="",g&&g(v)}),j=v=>{i&&i(w.current,v)};return b.jsx(zt,{appear:a,in:u,nodeRef:w,onEnter:E,onEntered:R,onEntering:I,onExit:L,onExited:V,onExiting:$,addEndListener:j,timeout:x,...T,children:(v,{ownerState:P,..._})=>{const O=om(v,u,cE,uE,y,l.props.style);return S.cloneElement(l,{style:O,ref:C,..._})}})});process.env.NODE_ENV!=="production"&&($o.propTypes={addEndListener:r.func,appear:r.bool,children:Dr.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function dE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function rm(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=dE(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function sm(e,t,n,o){return e[t]===void 0?null:rm(e,t,n,o)}function ra(){return null}sm.isRequired=rm;ra.isRequired=ra;const pE=process.env.NODE_ENV==="production"?ra:sm;function fE(e){return _e("MuiPaper",e)}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 mE=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return $e(i,fE,s)},hE=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ke(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ar=S.forwardRef(function(t,n){var f;const o=We({props:t,name:"MuiPaper"}),s=Rr(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,m={...o,component:a,elevation:l,square:c,variant:u},h=mE(m);return process.env.NODE_ENV!=="production"&&s.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
204
|
-
`)),b.jsx(hE,{as:a,ownerState:m,className:ce(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":(f=s.vars.overlays)==null?void 0:f[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ys("#fff",Gi(l))}, ${ys("#fff",Gi(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Ar.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:An(pE,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});function Do(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var yt="top",Rt="bottom",Nt="right",vt="left",pl="auto",jr=[yt,Rt,Nt,vt],Ao="start",xr="end",gE="clippingParents",im="viewport",Xo="popper",bE="reference",Lu=jr.reduce(function(e,t){return e.concat([t+"-"+Ao,t+"-"+xr])},[]),am=[].concat(jr,[pl]).reduce(function(e,t){return e.concat([t,t+"-"+Ao,t+"-"+xr])},[]),yE="beforeRead",vE="read",xE="afterRead",SE="beforeMain",CE="main",wE="afterMain",TE="beforeWrite",IE="write",EE="afterWrite",OE=[yE,vE,xE,SE,CE,wE,TE,IE,EE];function Xt(e){return e?(e.nodeName||"").toLowerCase():null}function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eo(e){var t=Tt(e).Element;return e instanceof t||e instanceof Element}function kt(e){var t=Tt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fl(e){if(typeof ShadowRoot>"u")return!1;var t=Tt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _E(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!kt(i)||!Xt(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function kE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!kt(s)||!Xt(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const PE={name:"applyStyles",enabled:!0,phase:"write",fn:_E,effect:kE,requires:["computeStyles"]};function Yt(e){return e.split("-")[0]}var Xn=Math.max,Os=Math.min,jo=Math.round;function sa(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function lm(){return!/^((?!chrome|android).)*safari/i.test(sa())}function Lo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&kt(e)&&(s=e.offsetWidth>0&&jo(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&jo(o.height)/e.offsetHeight||1);var a=eo(e)?Tt(e):window,l=a.visualViewport,c=!lm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/s,d=(o.top+(c&&l?l.offsetTop:0))/i,m=o.width/s,h=o.height/i;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function ml(e){var t=Lo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function cm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fl(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function hn(e){return Tt(e).getComputedStyle(e)}function RE(e){return["table","td","th"].indexOf(Xt(e))>=0}function Ln(e){return((eo(e)?e.ownerDocument:e.document)||window.document).documentElement}function gi(e){return Xt(e)==="html"?e:e.assignedSlot||e.parentNode||(fl(e)?e.host:null)||Ln(e)}function Vu(e){return!kt(e)||hn(e).position==="fixed"?null:e.offsetParent}function NE(e){var t=/firefox/i.test(sa()),n=/Trident/i.test(sa());if(n&&kt(e)){var o=hn(e);if(o.position==="fixed")return null}var s=gi(e);for(fl(s)&&(s=s.host);kt(s)&&["html","body"].indexOf(Xt(s))<0;){var i=hn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function Lr(e){for(var t=Tt(e),n=Vu(e);n&&RE(n)&&hn(n).position==="static";)n=Vu(n);return n&&(Xt(n)==="html"||Xt(n)==="body"&&hn(n).position==="static")?t:n||NE(e)||t}function hl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dr(e,t,n){return Xn(e,Os(t,n))}function ME(e,t,n){var o=dr(e,t,n);return o>n?n:o}function um(){return{top:0,right:0,bottom:0,left:0}}function dm(e){return Object.assign({},um(),e)}function pm(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var $E=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,dm(typeof t!="number"?t:pm(t,jr))};function DE(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Yt(n.placement),c=hl(l),u=[vt,Nt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var m=$E(s.padding,n),h=ml(i),f=c==="y"?yt:vt,g=c==="y"?Rt:Nt,p=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=Lr(i),T=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=p/2-y/2,C=m[f],I=T-h[d]-m[g],E=T/2-h[d]/2+w,R=dr(C,E,I),$=c;n.modifiersData[o]=(t={},t[$]=R,t.centerOffset=R-E,t)}}function AE(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||cm(t.elements.popper,s)&&(t.elements.arrow=s))}const jE={name:"arrow",enabled:!0,phase:"main",fn:DE,effect:AE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vo(e){return e.split("-")[1]}var LE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VE(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:jo(n*s)/s||0,y:jo(o*s)/s||0}}function Fu(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=a.x,f=h===void 0?0:h,g=a.y,p=g===void 0?0:g,y=typeof d=="function"?d({x:f,y:p}):{x:f,y:p};f=y.x,p=y.y;var x=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),w=vt,C=yt,I=window;if(u){var E=Lr(n),R="clientHeight",$="clientWidth";if(E===Tt(n)&&(E=Ln(n),hn(E).position!=="static"&&l==="absolute"&&(R="scrollHeight",$="scrollWidth")),E=E,s===yt||(s===vt||s===Nt)&&i===xr){C=Rt;var L=m&&E===I&&I.visualViewport?I.visualViewport.height:E[R];p-=L-o.height,p*=c?1:-1}if(s===vt||(s===yt||s===Rt)&&i===xr){w=Nt;var V=m&&E===I&&I.visualViewport?I.visualViewport.width:E[$];f-=V-o.width,f*=c?1:-1}}var j=Object.assign({position:l},u&&LE),v=d===!0?VE({x:f,y:p},Tt(n)):{x:f,y:p};if(f=v.x,p=v.y,c){var P;return Object.assign({},j,(P={},P[C]=T?"0":"",P[w]=x?"0":"",P.transform=(I.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",P))}return Object.assign({},j,(t={},t[C]=T?p+"px":"",t[w]=x?f+"px":"",t.transform="",t))}function FE(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Yt(t.placement),variation:Vo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const BE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FE,data:{}};var Qr={passive:!0};function zE(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,a=o.resize,l=a===void 0?!0:a,c=Tt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Qr)}),l&&c.addEventListener("resize",n.update,Qr),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Qr)}),l&&c.removeEventListener("resize",n.update,Qr)}}const WE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zE,data:{}};var UE={left:"right",right:"left",bottom:"top",top:"bottom"};function ps(e){return e.replace(/left|right|bottom|top/g,function(t){return UE[t]})}var HE={start:"end",end:"start"};function Bu(e){return e.replace(/start|end/g,function(t){return HE[t]})}function gl(e){var t=Tt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function bl(e){return Lo(Ln(e)).left+gl(e).scrollLeft}function qE(e,t){var n=Tt(e),o=Ln(e),s=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=lm();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+bl(e),y:c}}function YE(e){var t,n=Ln(e),o=gl(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Xn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Xn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+bl(e),c=-o.scrollTop;return hn(s||n).direction==="rtl"&&(l+=Xn(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function yl(e){var t=hn(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function fm(e){return["html","body","#document"].indexOf(Xt(e))>=0?e.ownerDocument.body:kt(e)&&yl(e)?e:fm(gi(e))}function pr(e,t){var n;t===void 0&&(t=[]);var o=fm(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Tt(o),a=s?[i].concat(i.visualViewport||[],yl(o)?o:[]):o,l=t.concat(a);return s?l:l.concat(pr(gi(a)))}function ia(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function GE(e,t){var n=Lo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function zu(e,t,n){return t===im?ia(qE(e,n)):eo(t)?GE(t,n):ia(YE(Ln(e)))}function KE(e){var t=pr(gi(e)),n=["absolute","fixed"].indexOf(hn(e).position)>=0,o=n&&kt(e)?Lr(e):e;return eo(o)?t.filter(function(s){return eo(s)&&cm(s,o)&&Xt(s)!=="body"}):[]}function XE(e,t,n,o){var s=t==="clippingParents"?KE(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=zu(e,u,o);return c.top=Xn(d.top,c.top),c.right=Os(d.right,c.right),c.bottom=Os(d.bottom,c.bottom),c.left=Xn(d.left,c.left),c},zu(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mm(e){var t=e.reference,n=e.element,o=e.placement,s=o?Yt(o):null,i=o?Vo(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case yt:c={x:a,y:t.y-n.height};break;case Rt:c={x:a,y:t.y+t.height};break;case Nt:c={x:t.x+t.width,y:l};break;case vt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?hl(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ao:c[u]=c[u]-(t[d]/2-n[d]/2);break;case xr:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Sr(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?gE:l,u=n.rootBoundary,d=u===void 0?im:u,m=n.elementContext,h=m===void 0?Xo:m,f=n.altBoundary,g=f===void 0?!1:f,p=n.padding,y=p===void 0?0:p,x=dm(typeof y!="number"?y:pm(y,jr)),T=h===Xo?bE:Xo,w=e.rects.popper,C=e.elements[g?T:h],I=XE(eo(C)?C:C.contextElement||Ln(e.elements.popper),c,d,a),E=Lo(e.elements.reference),R=mm({reference:E,element:w,placement:s}),$=ia(Object.assign({},w,R)),L=h===Xo?$:E,V={top:I.top-L.top+x.top,bottom:L.bottom-I.bottom+x.bottom,left:I.left-L.left+x.left,right:L.right-I.right+x.right},j=e.modifiersData.offset;if(h===Xo&&j){var v=j[s];Object.keys(V).forEach(function(P){var _=[Nt,Rt].indexOf(P)>=0?1:-1,O=[yt,Rt].indexOf(P)>=0?"y":"x";V[P]+=v[O]*_})}return V}function QE(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?am:c,d=Vo(o),m=d?l?Lu:Lu.filter(function(g){return Vo(g)===d}):jr,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var f=h.reduce(function(g,p){return g[p]=Sr(e,{placement:p,boundary:s,rootBoundary:i,padding:a})[Yt(p)],g},{});return Object.keys(f).sort(function(g,p){return f[g]-f[p]})}function ZE(e){if(Yt(e)===pl)return[];var t=ps(e);return[Bu(e),t,Bu(t)]}function JE(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,m=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,p=n.allowedAutoPlacements,y=t.options.placement,x=Yt(y),T=x===y,w=c||(T||!g?[ps(y)]:ZE(y)),C=[y].concat(w).reduce(function(Z,Y){return Z.concat(Yt(Y)===pl?QE(t,{placement:Y,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:p}):Y)},[]),I=t.rects.reference,E=t.rects.popper,R=new Map,$=!0,L=C[0],V=0;V<C.length;V++){var j=C[V],v=Yt(j),P=Vo(j)===Ao,_=[yt,Rt].indexOf(v)>=0,O=_?"width":"height",k=Sr(t,{placement:j,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),D=_?P?Nt:vt:P?Rt:yt;I[O]>E[O]&&(D=ps(D));var N=ps(D),z=[];if(i&&z.push(k[v]<=0),l&&z.push(k[D]<=0,k[N]<=0),z.every(function(Z){return Z})){L=j,$=!1;break}R.set(j,z)}if($)for(var A=g?3:1,F=function(Y){var X=C.find(function(ne){var q=R.get(ne);if(q)return q.slice(0,Y).every(function(B){return B})});if(X)return L=X,"break"},W=A;W>0;W--){var K=F(W);if(K==="break")break}t.placement!==L&&(t.modifiersData[o]._skip=!0,t.placement=L,t.reset=!0)}}const eO={name:"flip",enabled:!0,phase:"main",fn:JE,requiresIfExists:["offset"],data:{_skip:!1}};function Wu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Uu(e){return[yt,Nt,Rt,vt].some(function(t){return e[t]>=0})}function tO(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=Sr(t,{elementContext:"reference"}),l=Sr(t,{altBoundary:!0}),c=Wu(a,o),u=Wu(l,s,i),d=Uu(c),m=Uu(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const nO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tO};function oO(e,t,n){var o=Yt(e),s=[vt,yt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[vt,Nt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function rO(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=am.reduce(function(d,m){return d[m]=oO(m,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const sO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rO};function iO(e){var t=e.state,n=e.name;t.modifiersData[n]=mm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const aO={name:"popperOffsets",enabled:!0,phase:"read",fn:iO,data:{}};function lO(e){return e==="x"?"y":"x"}function cO(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,m=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,p=g===void 0?0:g,y=Sr(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),x=Yt(t.placement),T=Vo(t.placement),w=!T,C=hl(x),I=lO(C),E=t.modifiersData.popperOffsets,R=t.rects.reference,$=t.rects.popper,L=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,V=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(E){if(i){var P,_=C==="y"?yt:vt,O=C==="y"?Rt:Nt,k=C==="y"?"height":"width",D=E[C],N=D+y[_],z=D-y[O],A=f?-$[k]/2:0,F=T===Ao?R[k]:$[k],W=T===Ao?-$[k]:-R[k],K=t.elements.arrow,Z=f&&K?ml(K):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:um(),X=Y[_],ne=Y[O],q=dr(0,R[k],Z[k]),B=w?R[k]/2-A-q-X-V.mainAxis:F-q-X-V.mainAxis,H=w?-R[k]/2+A+q+ne+V.mainAxis:W+q+ne+V.mainAxis,ae=t.elements.arrow&&Lr(t.elements.arrow),G=ae?C==="y"?ae.clientTop||0:ae.clientLeft||0:0,de=(P=j==null?void 0:j[C])!=null?P:0,oe=D+B-de-G,ye=D+H-de,me=dr(f?Os(N,oe):N,D,f?Xn(z,ye):z);E[C]=me,v[C]=me-D}if(l){var re,J=C==="x"?yt:vt,ge=C==="x"?Rt:Nt,ie=E[I],he=I==="y"?"height":"width",se=ie+y[J],Ie=ie-y[ge],ke=[yt,vt].indexOf(x)!==-1,bt=(re=j==null?void 0:j[I])!=null?re:0,Ue=ke?se:ie-R[he]-$[he]-bt+V.altAxis,ct=ke?ie+R[he]+$[he]-bt-V.altAxis:Ie,Wt=f&&ke?ME(Ue,ie,ct):dr(f?Ue:se,ie,f?ct:Ie);E[I]=Wt,v[I]=Wt-ie}t.modifiersData[o]=v}}const uO={name:"preventOverflow",enabled:!0,phase:"main",fn:cO,requiresIfExists:["offset"]};function dO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pO(e){return e===Tt(e)||!kt(e)?gl(e):dO(e)}function fO(e){var t=e.getBoundingClientRect(),n=jo(t.width)/e.offsetWidth||1,o=jo(t.height)/e.offsetHeight||1;return n!==1||o!==1}function mO(e,t,n){n===void 0&&(n=!1);var o=kt(t),s=kt(t)&&fO(t),i=Ln(t),a=Lo(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Xt(t)!=="body"||yl(i))&&(l=pO(t)),kt(t)?(c=Lo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=bl(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function hO(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function gO(e){var t=hO(e);return OE.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function bO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yO(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Hu={placement:"bottom",modifiers:[],strategy:"absolute"};function qu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function vO(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Hu:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hu,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],h=!1,f={state:d,setOptions:function(x){var T=typeof x=="function"?x(d.options):x;p(),d.options=Object.assign({},i,d.options,T),d.scrollParents={reference:eo(l)?pr(l):l.contextElement?pr(l.contextElement):[],popper:pr(c)};var w=gO(yO([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(C){return C.enabled}),g(),f.update()},forceUpdate:function(){if(!h){var x=d.elements,T=x.reference,w=x.popper;if(qu(T,w)){d.rects={reference:mO(T,Lr(w),d.options.strategy==="fixed"),popper:ml(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var I=d.orderedModifiers[C],E=I.fn,R=I.options,$=R===void 0?{}:R,L=I.name;typeof E=="function"&&(d=E({state:d,options:$,name:L,instance:f})||d)}}}},update:bO(function(){return new Promise(function(y){f.forceUpdate(),y(d)})}),destroy:function(){p(),h=!0}};if(!qu(l,c))return f;f.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var x=y.name,T=y.options,w=T===void 0?{}:T,C=y.effect;if(typeof C=="function"){var I=C({state:d,name:x,instance:f,options:w}),E=function(){};m.push(I||E)}})}function p(){m.forEach(function(y){return y()}),m=[]}return f}}var xO=[WE,aO,BE,PE,sO,eO,uO,jE,nO],SO=vO({defaultModifiers:xO});function CO(e){return typeof e=="function"?e():e}const Cr=S.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[a,l]=S.useState(null),c=dt(S.isValidElement(o)?hi(o):null,n);if(kn(()=>{i||l(CO(s)||document.body)},[s,i]),kn(()=>{if(a&&!i)return Yc(n,a),()=>{Yc(n,null)}},[n,a,i]),i){if(S.isValidElement(o)){const u={ref:c};return S.cloneElement(o,u)}return o}return a&&Fh.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Cr.propTypes={children:r.node,container:r.oneOfType([Do,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(Cr.propTypes=Up(Cr.propTypes));function wO(e){return _e("MuiPopper",e)}we("MuiPopper",["root"]);function TO(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function _s(e){return typeof e=="function"?e():e}function bi(e){return e.nodeType!==void 0}function IO(e){return!bi(e)}const EO=e=>{const{classes:t}=e;return $e({root:["root"]},wO,t)},OO={},_O=S.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:f={},TransitionProps:g,ownerState:p,...y}=t,x=S.useRef(null),T=dt(x,n),w=S.useRef(null),C=dt(w,m),I=S.useRef(C);kn(()=>{I.current=C},[C]),S.useImperativeHandle(m,()=>w.current,[]);const E=TO(u,i),[R,$]=S.useState(E),[L,V]=S.useState(_s(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&V(_s(o))},[o]),kn(()=>{if(!L||!c)return;const O=z=>{$(z.placement)};if(process.env.NODE_ENV!=="production"&&L&&bi(L)&&L.nodeType===1){const z=L.getBoundingClientRect();pf()&&z.top===0&&z.left===0&&z.right===0&&z.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(`
|
|
205
|
-
`))}let k=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{
|
|
206
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
207
|
-
`))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([
|
|
208
|
-
`)),I.setAttribute("tabIndex","-1")),f.current&&I.focus()),()=>{s||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),S.useEffect(()=>{if(!l||!g.current)return;const w=Gt(g.current),C=R=>{if(y.current=R,o||!a()||R.key!=="Tab")return;rr(w)===g.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())},I=()=>{var V,j;const R=g.current;if(R===null)return;const $=rr(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(ou(R,$)||o&&$!==u.current&&$!==d.current)return;if($!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let L=[];if(($===u.current||$===d.current)&&(L=i(g.current)),L.length>0){const v=!!((V=y.current)!=null&&V.shiftKey&&((j=y.current)==null?void 0:j.key)==="Tab"),P=L[0],_=L[L.length-1];typeof P!="string"&&typeof _!="string"&&(v?_.focus():P.focus())}else R.focus()};w.addEventListener("focusin",I),w.addEventListener("keydown",C,!0);const E=setInterval(()=>{const R=rr(w);R&&R.tagName==="BODY"&&I()},50);return()=>{clearInterval(E),w.removeEventListener("focusin",I),w.removeEventListener("keydown",C,!0)}},[n,o,s,a,l,i]);const x=w=>{m.current===null&&(m.current=w.relatedTarget),f.current=!0,h.current=w.target;const C=t.props.onFocus;C&&C(w)},T=w=>{m.current===null&&(m.current=w.relatedTarget),f.current=!0};return b.jsxs(S.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:p,onFocus:x}),b.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(wr.propTypes={children:Dr,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired});process.env.NODE_ENV!=="production"&&(wr.propTypes=Up(wr.propTypes));const jO=e=>e.type==="hidden";function LO(e){const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!jO(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)}function VO(e){return ot("MuiPickerPopper",e)}st("MuiPickerPopper",["root","paper"]);const FO=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],BO=e=>tt({root:["root"],paper:["paper"]},VO,e),zO=te(gm,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),WO=te(Ar,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function UO(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function HO(e,t){const n=S.useRef(!1),o=S.useRef(!1),s=S.useRef(null),i=S.useRef(!1);S.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=ve(c=>{if(!i.current){o.current=!1;return}const u=o.current;o.current=!1;const d=Io(s.current);if(!s.current||"clientX"in c&&UO(c,d))return;if(n.current){n.current=!1;return}let m;c.composedPath?m=c.composedPath().indexOf(s.current)>-1:m=!d.documentElement.contains(c.target)||s.current.contains(c.target),!m&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return S.useEffect(()=>{if(e){const c=Io(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),S.useEffect(()=>{if(e){const c=Io(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[s,l,l]}const bm=S.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=xe(e,FO),d=ze({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,M({},u,d,{onClick:m=>{var h;l(m),(h=d.onClick)==null||h.call(d,m)},onTouchStart:m=>{var h;c(m),(h=d.onTouchStart)==null||h.call(d,m)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(bm.displayName="PickerPopperPaperWrapper");const qO=e=>{const t=e instanceof HTMLElement?e:null;return t?LO(t):!1};function YO(e){const t=Be({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u,keepOpenDuringFieldFocus:d}=zo(),{ownerState:m,rootRefObject:h}=pt(),{dismissViews:f,getCurrentViewMode:g,onPopperExited:p,triggerElement:y,viewContainerRole:x}=pt();S.useEffect(()=>{function N(z){l&&z.key==="Escape"&&f()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[f,l]);const T=S.useRef(null);S.useEffect(()=>{x==="tooltip"||g()==="field"||(l?T.current=an(h.current):T.current&&T.current instanceof HTMLElement&&setTimeout(()=>{T.current instanceof HTMLElement&&T.current.focus()}))},[l,x,g,h]);const w=BO(a),C=ve(N=>{d&&y&&N&&"target"in N&&y.contains(N.target)||(x==="tooltip"?TT(()=>{var z,A;(z=h.current)!=null&&z.contains(an(h.current))||(A=c.current)!=null&&A.contains(an(c.current))||f()}):(N.composedPath().some(qO)&&(T.current=null),f()))}),[I,E,R]=HO(l,C),$=S.useRef(null),L=gt($,c),V=gt(L,I),j=N=>{N.key==="Escape"&&(N.stopPropagation(),f())},v=(s==null?void 0:s.desktopTransition)??u?$o:Es,P=(s==null?void 0:s.desktopTrapFocus)??wr,_=(s==null?void 0:s.desktopPaper)??WO,O=(s==null?void 0:s.popper)??zO,k=ze({elementType:O,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:x??void 0,open:l,placement:o,anchorEl:y,onKeyDown:j},className:w.root,ownerState:m}),D=S.useMemo(()=>M({},m,{popperPlacement:k.placement}),[m,k.placement]);return b.jsx(O,M({},k,{children:({TransitionProps:N})=>b.jsx(P,M({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip"},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(v,M({},N,i==null?void 0:i.desktopTransition,{onExited:z=>{var A,F,W;p==null||p(),(F=(A=i==null?void 0:i.desktopTransition)==null?void 0:A.onExited)==null||F.call(A,z),(W=N==null?void 0:N.onExited)==null||W.call(N)},children:b.jsx(bm,{PaperComponent:_,ownerState:D,ref:V,onPaperClick:E,onPaperTouchStart:R,paperClasses:w.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const GO="@media (prefers-reduced-motion: reduce)",Eo=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Yu=Eo&&Eo[1]?parseInt(Eo[1],10):null,Gu=Eo&&Eo[2]?parseInt(Eo[2],10):null,KO=Yu&&Yu<10||Gu&&Gu<13||!1;function XO(e){const t=wf(GO,{defaultMatches:!1});return e??(t||KO)}const ym={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function QO(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return ym;const i=t.findIndex(l=>n(s.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(M({},s,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(m=>n(l,m)),d=t.find(m=>n(c,m));return u===d}}}}let Di=!1;function yi({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(Di||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),Di=!0),o==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),Di=!0)));const u=S.useRef(n),d=S.useRef(s),m=S.useRef(s.includes(n)?n:s[0]),[h,f]=Is({name:"useViews",state:"view",controlled:o,default:m.current}),g=S.useRef(i?h:null),[p,y]=Is({name:"useViews",state:"focusedView",controlled:a,default:g.current}),x=c?c({setView:f,view:h,defaultView:m.current,views:s}):ym;S.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(L=>!s.includes(L)))&&(f(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,f,h,s]);const T=s.indexOf(h),w=s[T-1]??null,C=s[T+1]??null,I=ve((L,V)=>{y(V?L:j=>L===j?null:j),l==null||l(L,V)}),E=ve(L=>{I(L,!0),L!==h&&(f(L),t&&t(L))}),R=ve(()=>{C&&E(C)}),$=ve((L,V,j)=>{const v=V==="finish",P=j?s.indexOf(j)<s.length-1:!!C;e(L,v&&P?"partial":V,j);let O=null;if(j!=null&&j!==h?O=j:v&&(O=h),O==null)return;const k=s[s.indexOf(O)+1];k==null||!x.areViewsInSameStep(O,k)||E(k)});return M({},x,{view:h,setView:E,focusedView:p,setFocusedView:I,nextView:C,previousView:w,defaultView:s.includes(n)?n:s[0],goToNextView:R,setValueAndGoToNextView:$})}function Ku(){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"}function ZO(e,t){const[n,o]=S.useState(Ku);return mn(()=>{const s=()=>{o(Ku())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),bo(e,["hours","minutes","seconds"])?"portrait":t??n}function JO(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:m,onOpen:h,onClose:f}=t,{current:g}=S.useRef(i),{current:p}=S.useRef(s!==void 0),{current:y}=S.useRef(m!==void 0),x=nt();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&fn(["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)."]),process.env.NODE_ENV!=="production"&&(S.useEffect(()=>{p!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${p?"":"un"}controlled value of a Picker to be ${p?"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(`
|
|
211
|
+
`))},[JSON.stringify(n)])}const u=S.useCallback(d=>{i||l(d)},[]);return[c,u]}const Eu={};function o0(e,t){const n=S.useRef(Eu);return n.current===Eu&&(n.current=e(t)),n}const r0=[];function s0(e){S.useEffect(e,r0)}class cl{constructor(){U(this,"currentId",null);U(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});U(this,"disposeEffect",()=>this.clear)}static create(){return new cl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ms(){const e=o0(cl.create).current;return s0(e.disposeEffect),e}const ui=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,m=e.date(void 0,n),h=Lr(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&h(s,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(d&&e.isAfter(t,m)):return"disableFuture";case!!(u&&e.isBefore(t,m)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.getMinutes(t)%a!==0):return"minutesStep";default:return null}};ui.valueManager=Vn;function Uf(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,a=st(),l=S.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);S.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=ve(m=>n({adapter:a,value:m,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Vr=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:s,onChange:i,valueManager:a})=>{const l=st(),[c,u]=ks({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=S.useMemo(()=>a.getTimezone(l,c),[l,a,c]),m=ve(p=>d==null?p:a.setTimezone(l,d,p)),h=S.useMemo(()=>t||d||(s?l.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,l]),f=S.useMemo(()=>a.setTimezone(l,h,c),[a,l,h,c]),g=ve((p,...y)=>{const x=m(p);u(x),i==null||i(x,...y)});return{value:f,handleValueChange:g,timezone:h}},i0=5e3,a0=e=>{var he;const t=st(),n=Zt(),o=jn(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:m,onChange:h,format:f,formatDensity:g="dense",selectedSections:p,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:T},forwardedProps:{error:w}}=e,{value:C,handleValueChange:I,timezone:E}=Vr({name:"a field component",timezone:T,value:u,defaultValue:d,referenceDate:m,onChange:h,valueManager:a}),R=S.useRef(C);S.useEffect(()=>{R.current=C},[C]);const{hasValidationError:$}=Uf({props:c,validator:s,timezone:E,value:C,onError:c.onError}),L=S.useMemo(()=>PT(t),[t]),V=S.useMemo(()=>DT(t,L,E),[t,L,E]),A=S.useCallback(re=>l.getSectionsFromValue(re,J=>Iu({adapter:t,localeText:n,localizedDigits:L,format:f,date:J,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o})),[l,f,n,L,o,x,t,g]),[v,P]=S.useState(()=>{const re=A(C);Cu(re,i);const J={sections:re,lastExternalValue:C,lastSectionsDependencies:{format:f,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ge=_T(re),ie=a.getInitialReferenceValue({referenceDate:m,value:C,adapter:t,props:c,granularity:ge,timezone:E});return M({},J,{referenceValue:ie})}),[O,_]=ks({controlled:p,default:null,name:"useField",state:"selectedSections"}),k=re=>{_(re),y==null||y(re)},D=S.useMemo(()=>aa(O,v.sections),[O,v.sections]),N=D==="all"?0:D,z=S.useMemo(()=>jT(v.sections),[v.sections]),j=S.useMemo(()=>v.sections.every(re=>re.value===""),[v.sections]),B=S.useMemo(()=>{if(N!=null)return!1;const re=v.sections.filter(J=>J.value!=="");return re.length>0&&v.sections.length-re.length>0},[v.sections,N]),W=S.useMemo(()=>w!==void 0?w:$||B,[$,B,w]),X=re=>{const J={validationError:s({adapter:t,value:re,timezone:E,props:c})};I(re,J)},Z=(re,J)=>{const ge=[...v.sections];return ge[re]=M({},ge[re],{value:J,modified:!0}),ge},Y=S.useRef(null),Q=ms(),ne=re=>{N!=null&&(Y.current={sectionIndex:N,value:re},Q.start(0,()=>{Y.current=null}))},H=()=>{a.areValuesEqual(t,C,a.emptyValue)?P(re=>M({},re,{sections:re.sections.map(J=>M({},J,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(P(re=>M({},re,{characterQuery:null})),X(a.emptyValue))},F=()=>{if(N==null)return;const re=v.sections[N];re.value!==""&&(ne(""),l.getDateFromSection(C,re)===null?P(J=>M({},J,{sections:Z(N,""),tempValueStrAndroid:null,characterQuery:null})):(P(J=>M({},J,{characterQuery:null})),X(l.updateDateInValue(C,re,null))))},q=re=>{const J=(ie,me)=>{const se=t.parse(ie,f);if(!t.isValid(se))return null;const Ie=Iu({adapter:t,localeText:n,localizedDigits:L,format:f,date:se,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o});return Tu(t,se,Ie,me,!1)},ge=l.parseValueStr(re,v.referenceValue,J);X(ge)},ae=ms(),G=({section:re,newSectionValue:J,shouldGoToNextSection:ge})=>{Q.clear(),ae.clear();const ie=l.getDateFromSection(C,re);ge&&N<v.sections.length-1&&k(N+1);const me=Z(N,J),se=l.getDateSectionsFromValue(me,re),Ie=MT(t,se,L);if(t.isValid(Ie)){const Pe=Tu(t,Ie,se,l.getDateFromSection(v.referenceValue,re),!0);return ie==null&&ae.start(0,()=>{R.current===C&&P(xe=>M({},xe,{sections:l.clearDateSections(v.sections,re),tempValueStrAndroid:null}))}),X(l.updateDateInValue(C,re,Pe))}return se.every(Pe=>Pe.value!=="")&&(ie==null||t.isValid(ie))?(ne(J),X(l.updateDateInValue(C,re,Ie))):(ie!=null&&(ne(J),X(l.updateDateInValue(C,re,Ie))),P(Pe=>M({},Pe,{sections:me,tempValueStrAndroid:null})))},ue=re=>P(J=>M({},J,{tempValueStrAndroid:re})),oe=ve(re=>{P(J=>M({},J,{characterQuery:re}))});if(C!==v.lastExternalValue){const re=Y.current!=null&&!t.isValid(l.getDateFromSection(C,v.sections[Y.current.sectionIndex]));let J;re?J=Z(Y.current.sectionIndex,Y.current.value):J=A(C),P(ge=>M({},ge,{lastExternalValue:C,sections:J,sectionsDependencies:{format:f,isRtl:o,locale:t.locale},referenceValue:re?ge.referenceValue:l.updateReferenceValue(t,C,ge.referenceValue),tempValueStrAndroid:null}))}if(o!==v.lastSectionsDependencies.isRtl||f!==v.lastSectionsDependencies.format||t.locale!==v.lastSectionsDependencies.locale){const re=A(C);Cu(re,i),P(J=>M({},J,{lastSectionsDependencies:{format:f,isRtl:o,locale:t.locale},sections:re,tempValueStrAndroid:null,characterQuery:null}))}v.characterQuery!=null&&!W&&N==null&&oe(null),v.characterQuery!=null&&((he=v.sections[v.characterQuery.sectionIndex])==null?void 0:he.type)!==v.characterQuery.sectionType&&oe(null),S.useEffect(()=>{Y.current!=null&&(Y.current=null)});const ye=ms();return S.useEffect(()=>(v.characterQuery!=null&&ye.start(i0,()=>oe(null)),()=>{}),[v.characterQuery,oe,ye]),S.useEffect(()=>{v.tempValueStrAndroid!=null&&N!=null&&F()},[v.sections]),{activeSectionIndex:N,areAllSectionsEmpty:j,error:W,localizedDigits:L,parsedSelectedSections:D,sectionOrder:z,sectionsValueBoundaries:V,state:v,timezone:E,value:C,clearValue:H,clearActiveSection:F,setCharacterQuery:oe,setSelectedSections:k,setTempAndroidValueStr:ue,updateSectionValue:G,updateValueFromValueStr:q,getSectionsFromValue:A}};function l0(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=rl(),i=e0(),a=yt(n.fieldRef,o?null:i==null?void 0:i.internalFieldRef,o?null:i==null?void 0:i.fieldRef),l=s==null?void 0:s.setValue,c=S.useCallback((d,m)=>l==null?void 0:l(d,{validationError:m.validationError,shouldClose:!1}),[l]),u=S.useMemo(()=>i!=null&&s!=null?M({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,fieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function ul(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:s}}=e;if(!n.isReady())return;const i=Ro(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(ln(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():s.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function c0(e){const{manager:{internal_fieldValueManager:t},focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,sectionOrder:d,state:m,value:h,activeSectionIndex:f,localizedDigits:g,timezone:p,clearValue:y,clearActiveSection:x,setCharacterQuery:T,setSelectedSections:w,updateValueFromValueStr:C,updateSectionValue:I},internalPropsWithDefaults:{disabled:E=!1,readOnly:R=!1,minutesStep:$}}=e,L=st(),V=ve(N=>{var z;if(!E)switch(!0){case((N.ctrlKey||N.metaKey)&&(((z=N.key)==null?void 0:z.toUpperCase())==="A"||String.fromCharCode(N.keyCode)==="A")&&!N.shiftKey&&!N.altKey):{N.preventDefault(),w("all");break}case N.key==="ArrowRight":{if(N.preventDefault(),c==null)w(d.startIndex);else if(c==="all")w(d.endIndex);else{const j=d.neighbors[c].rightIndex;j!==null&&w(j)}break}case N.key==="ArrowLeft":{if(N.preventDefault(),c==null)w(d.endIndex);else if(c==="all")w(d.startIndex);else{const j=d.neighbors[c].leftIndex;j!==null&&w(j)}break}case N.key==="Delete":{if(N.preventDefault(),R)break;c==null||c==="all"?y():x();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(N.key):{if(N.preventDefault(),R||f==null)break;c==="all"&&w(f);const j=m.sections[f],B=p0(L,p,j,N.key,u,g,t.getDateFromSection(h,j),{minutesStep:$});I({section:j,newSectionValue:B,shouldGoToNextSection:!1});break}}}),A=ms(),v=ve(()=>{if(!(E||!s.isReady())){if(c==="all"){o(!0),A.start(0,()=>{const N=document.getSelection();if(!N||N.rangeCount===0){w(d.startIndex);return}const z=N.getRangeAt(0).startOffset;if(z===0){w(d.startIndex);return}let j=0,B=0;for(;B<z&&j<m.sections.length;){const W=m.sections[j];j+=1,B+=`${W.startSeparator}${W.value||W.placeholder}${W.endSeparator}`.length}w(j-1)});return}n||(o(!0),c==null&&w(d.startIndex))}}),P=ve(N=>{if(E||!s.isReady()||c==="all"||N.button!==0)return;const z=N.target,j=s.getRoot();if(!j.contains(z))return;const B=z.closest("[data-sectionindex]"),W=B?Number(B.dataset.sectionindex):u0(j,N.clientX);W==null||!Number.isInteger(W)||(N.preventDefault(),o(!0),w(W))}),O=ve(N=>{if(!s.isReady()||c!=="all")return;const j=N.target.textContent??"";s.getRoot().innerHTML=m.sections.map(B=>`${B.startSeparator}${B.value||B.placeholder}${B.endSeparator}`).join(""),ul({focused:n,domGetters:s,stateResponse:i}),j.length===0||j.charCodeAt(0)===10?(y(),w("all")):j.length>1?C(j):(c==="all"&&w(0),a({keyPressed:j,sectionIndex:0}))}),_=ve(N=>{if(R||c!=="all"){N.preventDefault();return}const z=N.clipboardData.getData("text");N.preventDefault(),T(null),C(z)}),k=ve(()=>{if(n||E||!s.isReady())return;const N=ln(s.getRoot());o(!0),s.getSectionIndexFromDOMElement(N)!=null||w(d.startIndex)}),D=ve(()=>{setTimeout(()=>{if(!s.isReady())return;const N=ln(s.getRoot());!s.getRoot().contains(N)&&(o(!1),w(null))})});return{onKeyDown:V,onBlur:D,onFocus:k,onClick:v,onMouseDown:P,onPaste:_,onInput:O,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function u0(e,t){const n=e.querySelectorAll('[role="spinbutton"]');if(n.length===0)return null;let o=0,s=1/0;for(let i=0;i<n.length;i+=1){const a=n[i].getBoundingClientRect(),l=(a.left+a.right)/2,c=Math.abs(t-l);c<s&&(s=c,o=i)}return o}function d0(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function p0(e,t,n,o,s,i,a,l){const c=d0(o),u=o==="Home",d=o==="End",m=n.value===""||u||d,h=()=>{const g=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),p=T=>Df(e,T,g,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let x;if(m){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=g.minimum:x=g.maximum}else x=parseInt(Xt(n.value,i),10)+c*y;return x%y!==0&&((c<0||u)&&(x+=y-(y+x)%y),(c>0||d)&&(x-=x%y)),x>g.maximum?p(g.minimum+(x-g.maximum-1)%(g.maximum-g.minimum+1)):x<g.minimum?p(g.maximum-(g.minimum-x-1)%(g.maximum-g.minimum+1)):p(x)},f=()=>{const g=$f(e,t,n.type,n.format);if(g.length===0)return n.value;if(m)return c>0||u?g[0]:g[g.length-1];const x=((g.indexOf(n.value)+c)%g.length+g.length)%g.length;return g[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():f()}function f0(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=ve(l=>{s(l.target.value)});return{value:S.useMemo(()=>n?"":t.getHiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function m0(e){const{stateResponse:{parsedSelectedSections:t,setSelectedSections:n},internalPropsWithDefaults:{disabled:o=!1}}=e,s=ve(i=>{if(o||i.isDefaultPrevented())return;const a=Number(i.currentTarget.dataset.sectionindex);Number.isInteger(a)&&t!==a&&n(a)});return S.useCallback(i=>({"data-sectionindex":i,onClick:s}),[s])}function h0(e){const t=st(),n=Zt(),{focused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:m,localizedDigits:h,clearActiveSection:f,setCharacterQuery:g,setSelectedSections:p,updateSectionValue:y,updateValueFromValueStr:x},internalPropsWithDefaults:{disabled:T=!1,readOnly:w=!1}}=e,C=c==="all",I=!C&&!T&&!w,E=ve(v=>{if(!s.isReady())return;const P=d.sections[v];s.getSectionContent(v).innerHTML=P.value||P.placeholder,ul({focused:o,domGetters:s,stateResponse:i})}),R=ve(v=>{if(!s.isReady())return;const P=v.target,O=P.textContent??"",_=s.getSectionIndexFromDOMElement(P),k=d.sections[_];if(w){E(_);return}if(O.length===0){if(k.value===""){E(_);return}const D=v.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){E(_);return}E(_),f();return}a({keyPressed:O,sectionIndex:_}),E(_)}),$=ve(v=>{v.preventDefault()}),L=ve(v=>{if(v.preventDefault(),w||T||typeof c!="number")return;const P=d.sections[c],O=v.clipboardData.getData("text"),_=/^[a-zA-Z]+$/.test(O),k=/^[0-9]+$/.test(O),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(O);P.contentType==="letter"&&_||P.contentType==="digit"&&k||P.contentType==="digit-with-letter"&&D?(g(null),y({section:P,newSectionValue:O,shouldGoToNextSection:!0})):!_&&!k&&(g(null),x(O))}),V=ve(v=>{v.preventDefault(),v.dataTransfer.dropEffect="none"}),A=S.useCallback(v=>()=>{T||p(v)},[T,p]);return S.useCallback((v,P)=>{const O=u[v.type]({currentDate:l.getDateFromSection(m,v),contentType:v.contentType,format:v.format});return{onInput:R,onPaste:L,onMouseUp:$,onDragOver:V,onFocus:A(P),"aria-readonly":w,"aria-valuenow":b0(v,t,h),"aria-valuemin":O.minimum,"aria-valuemax":O.maximum,"aria-valuetext":v.value?g0(v,t,h):n.empty,"aria-label":n[v.type],"aria-disabled":T,tabIndex:!I||C||P>0?-1:0,contentEditable:!C&&!T&&!w,role:"spinbutton","data-range-position":v.dateName||void 0,spellCheck:I?!1:void 0,autoCapitalize:I?"none":void 0,autoCorrect:I?"off":void 0,children:v.value||v.placeholder,inputMode:v.contentType==="letter"?"text":"numeric"}},[u,C,T,w,I,n,t,h,R,L,$,V,A,l,m])}function g0(e,t,n){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const s=t.setMonth(t.date(),Number(Xt(e.value,n))-1);return t.isValid(s)?t.format(s,"month"):""}const o=t.parse(e.value,e.format);return o&&t.isValid(o)?t.format(o,"month"):void 0}case"day":if(e.contentType==="digit"){const o=t.setDate(t.startOfYear(t.date()),Number(Xt(e.value,n)));return t.isValid(o)?t.format(o,"dayOfMonth"):""}return e.value;case"weekDay":return;default:return}}function b0(e,t,n){if(!e.value)return;const o=Xt(e.value,n);switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(o);case"meridiem":{const s=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return s?t.getHours(s)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(o,10):Number(o);case"month":{if(e.contentType==="digit")return Number(o);const s=t.parse(e.value,e.format);return s?t.getMonth(s)+1:void 0}default:return e.contentType!=="letter"?Number(o):void 0}}const y0=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=HT(t,s);process.env.NODE_ENV!=="production"&&l.enableAccessibleFieldDOMStructure!=null&&mn(["MUI X: The `enableAccessibleFieldDOMStructure` prop has been removed.","The accessible DOM structure is now the default and only option.","You can safely remove the prop from your code.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v8/)."]);const c=l0({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:m,onMouseDown:h,onFocus:f,onInput:g,onPaste:p,onKeyDown:y,onClear:x,clearable:T}=l,{disabled:w=!1,readOnly:C=!1,autoFocus:I=!1,focused:E,fieldRef:R}=c,$=S.useRef(null),L=yt(u,$),V=S.useMemo(()=>({isReady:()=>$.current!=null,getRoot:()=>$.current.getRoot(),getSectionContainer:J=>$.current.getSectionContainer(J),getSectionContent:J=>$.current.getSectionContent(J),getSectionIndexFromDOMElement:J=>$.current.getSectionIndexFromDOMElement(J)}),[$]),A=a0({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:v,error:P,parsedSelectedSections:O,sectionOrder:_,state:k,value:D,clearValue:N,setSelectedSections:z}=A,j=n0({stateResponse:A}),B=i(D),[W,X]=S.useState(!1);function Z(J=0){if(w||!$.current||_u($)!=null)return;const ge=aa(J,k.sections);X(!0),$.current.getSectionContent(ge).focus()}const Y=c0({manager:n,internalPropsWithDefaults:c,stateResponse:A,applyCharacterEditing:j,focused:W,setFocused:X,domGetters:V}),Q=f0({manager:n,stateResponse:A}),ne=m0({stateResponse:A,internalPropsWithDefaults:c}),H=h0({manager:n,stateResponse:A,applyCharacterEditing:j,internalPropsWithDefaults:c,domGetters:V,focused:W}),F=ve(J=>{y==null||y(J),Y.onKeyDown(J)}),q=ve(J=>{Y.onBlur(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||d==null||d(J)}),ae=ve(J=>{Y.onFocus(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||f==null||f(J)}),G=ve(J=>{J.isDefaultPrevented()||(m==null||m(J),Y.onClick(J))}),ue=ve(J=>{J.isDefaultPrevented()||(h==null||h(J),Y.onMouseDown(J))}),oe=ve(J=>{p==null||p(J),Y.onPaste(J)}),ye=ve(J=>{g==null||g(J),Y.onInput(J)}),he=ve((J,...ge)=>{J.preventDefault(),x==null||x(J,...ge),N(),Ou($)?z(_.startIndex):Z(0)}),re=S.useMemo(()=>k.sections.map((J,ge)=>{const ie=H(J,ge);return{container:ne(ge),content:ie,before:{children:J.startSeparator},after:{children:J.endSeparator,"data-range-position":J.isEndFormatSeparator?ie["data-range-position"]:void 0}}}),[k.sections,ne,H]);return S.useEffect(()=>{if($.current==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\nYou probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\n\nLearn 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":ke(249));I&&!w&&$.current.getSectionContent(_.startIndex).focus()},[]),hn(()=>{if(!(!W||!$.current)){if(O==="all")$.current.getRoot().focus();else if(typeof O=="number"){const J=$.current.getSectionContent(O);J&&J.focus()}}},[O,W]),hn(()=>{ul({focused:W,domGetters:V,stateResponse:A})}),S.useImperativeHandle(R,()=>({getSections:()=>k.sections,getActiveSectionIndex:()=>_u($),setSelectedSections:J=>{if(w||!$.current)return;const ge=aa(J,k.sections);X((ge==="all"?0:ge)!==null),z(J)},focusField:Z,isFieldFocused:()=>Ou($),clearValue:N})),M({},l,Y,{onBlur:q,onClick:G,onMouseDown:ue,onFocus:ae,onInput:ye,onPaste:oe,onKeyDown:F,onClear:he},Q,{error:P,clearable:!!(T&&!v&&!C&&!w),focused:E??W,sectionListRef:L,elements:re,areAllSectionsEmpty:v,disabled:w,readOnly:C,autoFocus:I,openPickerAriaLabel:B})};function _u(e){var n;const t=ln((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function Ou(e){var n;const t=ln((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const dl=e=>{const t=st(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function v0(e={}){const{ampm:t}=e;return S.useMemo(()=>({valueType:"time",validator:ui,internal_valueManager:Vn,internal_fieldValueManager:VT,internal_useApplyDefaultValuesToFieldInternalProps:S0,internal_useOpenPickerButtonAriaLabel:x0(t)}),[t])}function x0(e){return function(n){const o=st(),s=Zt();return S.useMemo(()=>{const i=e??o.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=o.isValid(n)?o.format(n,i):null;return s.openTimePickerDialogue(a)},[n,s,o])}}function S0(e){const t=st(),n=qf(e),o=S.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return S.useMemo(()=>M({},e,n,{format:e.format??(o?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,o,t])}function qf(e){return S.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}const C0=e=>{const t=v0(e);return y0({manager:t,props:e})};function w0(e){return Re("MuiIconButton",e)}const ku=Ee("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),T0=e=>{const{classes:t,disabled:n,color:o,edge:s,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${le(o)}`,s&&`edge${le(s)}`,`size${le(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return je(l,w0,t)},I0=te(oo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Qe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),Qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ku.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${ku.loading}`]:{color:"transparent"}}))),E0=te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ro=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:f,...g}=o,p=Ya(m),y=f??b.jsx(ri,{"aria-labelledby":p,color:"inherit",size:16}),x={...o,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:y,size:d},T=T0(x);return b.jsxs(I0,{id:h?p:m,className:ce(T.root,a),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...g,ownerState:x,children:[typeof h=="boolean"&&b.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:b.jsx(E0,{className:T.loadingIndicator,ownerState:x,children:h&&y})}),i]})});process.env.NODE_ENV!=="production"&&(ro.propTypes={children:Ln(r.node,e=>S.Children.toArray(e.children).some(n=>S.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(`
|
|
212
|
+
`)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),id:r.string,loading:r.bool,loadingIndicator:r.node,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const di=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(di.displayName="FormControlContext");function lo(){return S.useContext(di)}function _0(e){return Re("MuiInputAdornment",e)}const Pu=Ee("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ru;const O0=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},k0=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${le(s)}`,a,o&&"hiddenLabel",i&&`size${le(i)}`]};return je(l,_0,t)},P0=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:O0})(Qe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Pu.positionStart}&:not(.${Pu.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Hf=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...m}=o,h=lo()||{};let f=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!f&&(f=h.variant);const g={...o,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:f},p=k0(g);return b.jsx(di.Provider,{value:null,children:b.jsx(P0,{as:a,ownerState:g,className:ce(p.root,i),ref:n,...m,children:typeof s=="string"&&!c?b.jsx(ao,{color:"textSecondary",children:s}):b.jsxs(S.Fragment,{children:[u==="start"?Ru||(Ru=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,s]})})})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function R0(e){return typeof e=="string"}function N0(e,t,n){return e===void 0||R0(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function M0(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function $0(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))M0(n,e[n])&&(t[n]=e[n]);return t}function Nu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=$0({...s,...o}),l=Nu(o),c=Nu(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function qe(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:jo(n,o),{props:l,internalRef:c}=D0({...i,externalSlotProps:a}),u=yt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return N0(t,{...l,ref:u},o)}const mt=()=>S.useContext(ll);function pl(e){const{ownerState:t}=mt(),n=jn();return S.useMemo(()=>M({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}at(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const A0=at(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),j0=at(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");at(b.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");const L0=at(b.jsxs(S.Fragment,{children:[b.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"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");at(b.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");at(b.jsxs(S.Fragment,{children:[b.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"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const V0=at(b.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");function ot(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}let Mu=0;function F0(e){const[t,n]=S.useState(e),o=e||t;return S.useEffect(()=>{t==null&&(Mu+=1,n(`mui-${Mu}`))},[t]),o}const B0={...S},$u=B0.useId;function fl(e){if($u!==void 0){const t=$u();return e??t}return F0(e)}function ml({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}function z0(e){return Re("MuiFormLabel",e)}const mr=Ee("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),W0=e=>{const{classes:t,color:n,focused:o,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${le(n)}`,s&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return je(c,z0,t)},U0=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{[`&.${mr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),q0=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Qe(({theme:e})=>({[`&.${mr.error}`]:{color:(e.vars||e).palette.error.main}}))),Yf=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:m,required:h,...f}=o,g=lo(),p=ml({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},x=W0(y);return b.jsxs(U0,{as:l,ownerState:y,className:ce(x.root,i),ref:n,...f,children:[s,p.required&&b.jsxs(q0,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Yf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function H0(e){return Re("MuiInputLabel",e)}Ee("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Y0=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",o&&o!=="medium"&&`size${le(o)}`,a],asterisk:[l&&"asterisk"]},u=je(c,H0,t);return{...t,...u}},G0=te(Yf,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mr.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Qe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Gf=S.forwardRef(function(t,n){const o=He({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=lo();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=ml({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),f={...o,disableAnimation:s,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=Y0(f);return b.jsx(G0,{"data-shrink":m,ref:n,className:ce(g.root,c),...u,ownerState:f,classes:g})});process.env.NODE_ENV!=="production"&&(Gf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function K0(e){return Re("MuiFormHelperText",e)}const Du=Ee("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Au;const X0=e=>{const{classes:t,contained:n,size:o,disabled:s,error:i,filled:a,focused:l,required:c}=e,u={root:["root",s&&"disabled",i&&"error",o&&`size${le(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return je(u,K0,t)},Q0=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Du.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Du.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Kf=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:m,required:h,variant:f,...g}=o,p=lo(),y=ml({props:o,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),x={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const T=X0(x);return b.jsx(Q0,{as:a,className:ce(T.root,i),ref:n,...g,ownerState:x,children:s===" "?Au||(Au=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});process.env.NODE_ENV!=="production"&&(Kf.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function ju(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Lu(e,t=!1){return e&&(ju(e.value)&&e.value!==""||t&&ju(e.defaultValue)&&e.defaultValue!=="")}function Z0(e){return e.startAdornment}function J0(e){return Re("MuiFormControl",e)}Ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const eI=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${le(n)}`,o&&"fullWidth"]};return je(s,J0,t)},tI=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Xf=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:p="medium",variant:y="outlined",...x}=o,T={...o,color:a,component:l,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:f,required:g,size:p,variant:y},w=eI(T),[C,I]=S.useState(()=>{let k=!1;return s&&S.Children.forEach(s,D=>{if(!ko(D,["Input","Select"]))return;const N=ko(D,["Select"])?D.props.input:D;N&&Z0(N.props)&&(k=!0)}),k}),[E,R]=S.useState(()=>{let k=!1;return s&&S.Children.forEach(s,D=>{ko(D,["Input","Select"])&&(Lu(D.props,!0)||Lu(D.props.inputProps,!0))&&(k=!0)}),k}),[$,L]=S.useState(!1);c&&$&&L(!1);const V=d!==void 0&&!c?d:$;let A;const v=S.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(v.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
213
|
+
`)),v.current=!0,()=>{v.current=!1}));const P=S.useCallback(()=>{R(!0)},[]),O=S.useCallback(()=>{R(!1)},[]),_=S.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:a,disabled:c,error:u,filled:E,focused:V,fullWidth:m,hiddenLabel:h,size:p,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:O,onFilled:P,registerEffect:A,required:g,variant:y}),[C,a,c,u,E,V,m,h,A,O,P,g,p,y]);return b.jsx(di.Provider,{value:_,children:b.jsx(tI,{as:l,ownerState:T,className:ce(w.root,i),ref:n,...x,children:s})})});process.env.NODE_ENV!=="production"&&(Xf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});const Vu=e=>e,nI=()=>{let e=Vu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vu}}},oI=nI(),rI={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 it(e,t,n="Mui"){const o=rI[t];return o?`${n}-${o}`:`${oI.generate(e)}-${t}`}function lt(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=it(e,s,n)}),o}function sI(e){return it("MuiPickersTextField",e)}lt("MuiPickersTextField",["root","focused","disabled","error","required"]);function iI(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function aI(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":iI(7));return e.charAt(0).toUpperCase()+e.slice(1)}const lI={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function cI(e){return it("MuiPickersInputBase",e)}const kn=lt("MuiPickersInputBase",["root","focused","disabled","readOnly","error","notchedOutline","sectionsContainer","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function uI(e){return it("MuiPickersSectionList",e)}const To=lt("MuiPickersSectionList",["root","section","sectionContent"]),dI=["slots","slotProps","elements","sectionListRef","classes"],Qf=te("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Zf=te("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Jf=te("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),em=te("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),pI=e=>ot({root:["root"],section:["section"],sectionContent:["sectionContent"]},uI,e);function tm(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=mt(),a=(t==null?void 0:t.section)??Zf,l=qe({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??em,u=qe({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??Jf,m=qe({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:M({},i,{separatorPosition:"before"})}),h=qe({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:M({},i,{separatorPosition:"after"})}),f=S.useRef(null),g=yt(u.ref,f),p=y=>{const x=y.relatedTarget,T=y.currentTarget.closest(`.${To.root}`);if(T&&x instanceof Node&&T.contains(x)){y.stopPropagation();return}};return b.jsxs(a,M({},l,{children:[b.jsx(d,M({},m)),b.jsx(c,M({},u,{ref:g,onBlur:p})),b.jsx(d,M({},h))]}))}process.env.NODE_ENV!=="production"&&(tm.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const hl=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Se(o,dI),d=pI(c),{ownerState:m}=mt(),h=S.useRef(null),f=yt(n,h),g=x=>{if(!h.current)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`:ke(145,x));return h.current};S.useImperativeHandle(l,()=>({getRoot(){return g("getRoot")},getSectionContainer(x){return g("getSectionContainer").querySelector(`.${To.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return g("getSectionContent").querySelector(`.${To.section}[data-sectionindex="${x}"] .${To.sectionContent}`)},getSectionIndexFromDOMElement(x){const T=g("getSectionIndexFromDOMElement");if(x==null||!T.contains(x))return null;let w=null;return x.classList.contains(To.section)?w=x:x.classList.contains(To.sectionContent)&&(w=x.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const p=(s==null?void 0:s.root)??Qf,y=qe({elementType:p,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:f,suppressContentEditableWarning:!0},className:d.root,ownerState:m});return b.jsx(p,M({},y,{children:y.contentEditable?a.map(({content:x,before:T,after:w})=>`${T.children}${x.children}${w.children}`).join(""):b.jsx(S.Fragment,{children:a.map((x,T)=>b.jsx(tm,{slots:s,slotProps:i,element:x,classes:d},T))})}))});process.env.NODE_ENV!=="production"&&(hl.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(hl.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const gl=S.createContext(null);process.env.NODE_ENV!=="production"&&(gl.displayName="PickerTextFieldOwnerStateContext");const pi=()=>{const e=S.useContext(gl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component":ke(146));return e},fI=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],mI=["ref"];function hI(e,t){return n=>{const o=jo(e,n)??{};return M({},o,{className:ce(t,o.className)})}}const gI=e=>Math.round(e*1e5)/1e5,fi=te("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>M({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${gI(.15/16)}em`,[`&.${kn.disabled}`]:{color:(e.vars||e).palette.action.disabled,cursor:"default"},variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),bl=te(Qf,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0,hasStartAdornment:!1,inputHasLabel:!0,isLabelShrunk:!1},style:{opacity:0}}]})),bI=te(Zf,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),yI=te(em,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none","@supports (-webkit-app-region: drag)":{[`.${kn.root}:not(:focus-within) &`]:{WebkitUserModify:"read-only",userSelect:"none"}}})),vI=te(Jf,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),xI=te("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(M({},lI)),SI=te("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),CI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,m={root:["root",n&&!o&&"focused",o&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${aI(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return ot(m,cI,e)};function Fu(e,t,n,o){var s;if(e.content["data-range-position"]!==void 0){const i=(s=t.current)==null?void 0:s.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function wI(e,t){var s,i,a,l,c;let n=0;if(((s=t.current)==null?void 0:s.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Fu(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Fu(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const Fr=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:m,slots:h,slotProps:f,contentEditable:g,tabIndex:p,onInput:y,onPaste:x,onKeyDown:T,name:w,readOnly:C,inputRef:I,sectionListRef:E,onFocus:R,onBlur:$,classes:L,ownerState:V}=o,A=Se(o,fI),v=pi(),P=S.useRef(null),O=S.useRef(null),_=S.useRef([]),k=yt(n,P),D=lo();if(!D)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: PickersInputBase should always be used inside a PickersTextField component":ke(152));const N=V??v,z=ue=>{var oe;(oe=D.onFocus)==null||oe.call(D,ue),R==null||R(ue)},j=ue=>{z(ue)},B=ue=>{var oe,ye;if(T==null||T(ue),ue.key==="Enter"&&!ue.defaultMuiPrevented){if((oe=P.current)!=null&&oe.dataset.multiInput)return;const he=(ye=P.current)==null?void 0:ye.closest("form"),re=he==null?void 0:he.querySelector('[type="submit"]');if(!he||!re)return;ue.preventDefault(),he.requestSubmit(re)}},W=ue=>{var oe;(oe=D.onBlur)==null||oe.call(D,ue),$==null||$(ue)};S.useEffect(()=>{D&&D.setAdornedStart(!!d)},[D,d]),S.useEffect(()=>{D&&(i?D.onEmpty():D.onFilled())},[D,i]);const X=CI(L,N),Z=(h==null?void 0:h.root)||fi,Y=qe({elementType:Z,externalSlotProps:f==null?void 0:f.root,externalForwardedProps:A,additionalProps:{"aria-invalid":D.error,ref:k},className:X.root,ownerState:N}),Q=(h==null?void 0:h.input)||bl,ne=(h==null?void 0:h.htmlInput)||xI,H=qe({elementType:ne,externalSlotProps:f==null?void 0:f.htmlInput,ownerState:N}),{ref:F}=H,q=Se(H,mI),ae=yt(F,I),G=s.some(ue=>ue.content["data-range-position"]!==void 0);return S.useEffect(()=>{if(!G||!N.isPickerOpen)return;const{activeBarWidth:ue,sectionOffsets:oe}=wI(s,P);_.current=[oe[0],oe[1]],O.current&&(O.current.style.width=`${ue}px`)},[s,G,N.isPickerOpen]),b.jsxs(Z,M({},Y,{children:[d,b.jsx(hl,{sectionListRef:E,elements:s,contentEditable:g,tabIndex:p,className:X.sectionsContainer,onFocus:z,onBlur:W,onInput:y,onPaste:x,onKeyDown:B,slots:{root:Q,section:bI,sectionContent:yI,sectionSeparator:vI},slotProps:{root:M({},f==null?void 0:f.input,{ownerState:N}),sectionContent:hI(f==null?void 0:f.sectionContent,kn.sectionContent),sectionSeparator:({separatorPosition:ue})=>({className:ue==="before"?kn.sectionBefore:kn.sectionAfter})}}),u,m?m(M({},D)):null,b.jsx(ne,M({name:w,className:X.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:D.required,disabled:D.disabled,onFocus:j},q,{ref:ae})),G&&b.jsx(SI,{className:X.activeBar,ref:O,ownerState:{sectionOffsets:_.current}})]}))});process.env.NODE_ENV!=="production"&&(Fr.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Fr.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:bn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function TI(e){return it("MuiPickersOutlinedInput",e)}const Ft=M({},kn,lt("MuiPickersOutlinedInput",["root","notchedOutline","input"])),II=["children","className","label","notched","shrink"],EI=te("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.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:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}}),Bu=te("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),_I=te("legend",{slot:"internal",shouldForwardProp:e=>zt(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function OI(e){const{className:t,label:n,notched:o}=e,s=Se(e,II),i=pi();return b.jsx(EI,M({"aria-hidden":!0,className:t},s,{ownerState:i,children:b.jsx(_I,{ownerState:i,notched:o,children:n?b.jsx(Bu,{children:n}):b.jsx(Bu,{className:"notranslate",children:""})})}))}const kI=["label","autoFocus","ownerState","classes","notched","slots","slotProps"],PI=te(fi,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ft.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ft.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ft.focused} .${Ft.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Ft.error} .${Ft.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ft.disabled}`]:{[`& .${Ft.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${Ft.focused}:not(.${Ft.error}) .${Ft.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),RI=te(bl,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),NI=e=>{const n=ot({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},TI,e);return M({},e,n)},mi=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a,slots:l,slotProps:c}=o,u=Se(o,kI),d=lo(),m=NI(i);return b.jsx(Fr,M({},u,{slots:M({root:PI,input:RI},l),slotProps:c,renderSuffix:h=>{const f=typeof a<"u"?a:!!(h.adornedStart||h.focused||h.filled);return b.jsx(OI,{shrink:f,notched:f,className:m.notchedOutline,label:s!=null&&s!==""&&(d!=null&&d.required)?b.jsxs(S.Fragment,{children:[s," ","*"]}):s})},label:s,classes:m,ref:n}))});process.env.NODE_ENV!=="production"&&(mi.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(mi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:bn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});mi.muiName="Input";function MI(e){return it("MuiPickersFilledInput",e)}const Gn=M({},kn,lt("MuiPickersFilledInput",["root","underline","input"])),$I=["label","autoFocus","disableUnderline","hiddenLabel","classes","slots","slotProps"],DI=te(fi,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>zt(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Gn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Gn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gn.disabled}, .${Gn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),AI=te(bl,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>zt(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),jI=(e,t)=>{const{inputHasUnderline:n}=t,s=ot({root:["root",n&&"underline"],input:["input"]},MI,e);return M({},e,s)},hi=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l,slots:c,slotProps:u}=o,d=Se(o,$I),m=pi(),h=M({},m,{inputHasUnderline:!i}),f=jI(l,h);return b.jsx(Fr,M({},d,{slots:M({root:DI,input:AI},c),slotProps:M({},u,{root:M({disableUnderline:i},u==null?void 0:u.root),input:M({hiddenLabel:a},u==null?void 0:u.input)}),label:s,classes:f,ref:n,ownerState:h}))});process.env.NODE_ENV!=="production"&&(hi.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(hi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputRef:bn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});hi.muiName="Input";function LI(e){return it("MuiPickersFilledInput",e)}const tr=M({},kn,lt("MuiPickersInput",["root","underline","input"])),VI=["label","autoFocus","disableUnderline","ownerState","classes","slots","slotProps"],FI=te(fi,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>zt(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${tr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${tr.disabled}, .${tr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${tr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),BI=(e,t)=>{const{inputHasUnderline:n}=t,s=ot({root:["root",!n&&"underline"],input:["input"]},LI,e);return M({},e,s)},gi=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a,slots:l,slotProps:c}=o,u=Se(o,VI),d=pi(),m=M({},d,{inputHasUnderline:!i}),h=BI(a,m);return b.jsx(Fr,M({},u,{slots:M({root:FI},l),slotProps:M({},c,{root:M({disableUnderline:i},c==null?void 0:c.root)}),ownerState:m,label:s,classes:h,ref:n}))});process.env.NODE_ENV!=="production"&&(gi.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(gi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:bn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});gi.muiName="Input";const zI=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onMouseDown","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","label","slots","slotProps","data-active-range-position"],WI={standard:gi,filled:hi,outlined:mi},UI=te(Xf,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),qI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return ot({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},sI,e)},bi=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersTextField"});if(process.env.NODE_ENV!=="production"){const ie=t;(ie.InputProps||ie.inputProps||ie.InputLabelProps||ie.FormHelperTextProps)&&mn(["MUI X: `PickersTextField` no longer supports the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They are silently dropped, which can hide configuration bugs in JavaScript codebases that do not benefit from TypeScript checks.","Use `slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel` and `slotProps.formHelperText` instead.","You can run the `migrate-text-field-props` codemod to migrate automatically."])}const{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:m="outlined",required:h=!1,hiddenLabel:f=!1,inputRef:g,sectionListRef:p,elements:y,areAllSectionsEmpty:x,onClick:T,onMouseDown:w,onKeyDown:C,onKeyUp:I,onPaste:E,onInput:R,endAdornment:$,startAdornment:L,tabIndex:V,contentEditable:A,focused:v,value:P,onChange:O,fullWidth:_,id:k,name:D,helperText:N,label:z,slots:j,slotProps:B,"data-active-range-position":W}=o,X=Se(o,zI),Z=S.useRef(null),Y=yt(n,Z),Q=fl(k),ne=N&&Q?`${Q}-helper-text`:void 0,H=z&&Q?`${Q}-label`:void 0,F=B==null?void 0:B.input,q=B==null?void 0:B.inputLabel,ae=pl({disabled:o.disabled,required:o.required,readOnly:F==null?void 0:F.readOnly}),G=S.useMemo(()=>M({},ae,{isFieldValueEmpty:x,isFieldFocused:v??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:_??!1,hasStartAdornment:!!(L??(F==null?void 0:F.startAdornment)),hasEndAdornment:!!($??(F==null?void 0:F.endAdornment)),inputHasLabel:!!z,isLabelShrunk:!!(q!=null&&q.shrink)}),[ae,x,v,d,o.size,c,_,L,$,F==null?void 0:F.startAdornment,F==null?void 0:F.endAdornment,z,q==null?void 0:q.shrink]),ue=qI(l,G),oe=(j==null?void 0:j.input)??WI[m],ye=(j==null?void 0:j.root)??UI,he=(j==null?void 0:j.inputLabel)??Gf,re=(j==null?void 0:j.formHelperText)??Kf,J={};m==="outlined"?(q&&typeof q.shrink<"u"&&(J.notched=q.shrink),J.label=z):m==="filled"&&(J.hiddenLabel=f);const ge=qe({elementType:ye,externalSlotProps:B==null?void 0:B.root,externalForwardedProps:M({},X,{className:a}),additionalProps:{ref:Y,focused:v,disabled:u,variant:m,error:d,color:c,fullWidth:_,required:h},className:ue.root,ownerState:G});return b.jsx(gl.Provider,{value:G,children:b.jsxs(ye,M({},ge,{children:[z!=null&&z!==""&&b.jsx(he,M({htmlFor:Q,id:H},q,{children:z})),b.jsx(oe,M({elements:y,areAllSectionsEmpty:x,onClick:T,onMouseDown:w,onKeyDown:C,onKeyUp:I,onInput:R,onPaste:E,onFocus:s,onBlur:i,endAdornment:$,startAdornment:L,tabIndex:V,contentEditable:A,value:P,onChange:O,id:Q,fullWidth:_,inputRef:g,sectionListRef:p,label:z,name:D,role:"group","aria-labelledby":H,"aria-describedby":ne,"aria-live":ne?"polite":void 0,"data-active-range-position":W},J,F,{slots:M({},F==null?void 0:F.slots,(j==null?void 0:j.htmlInput)!==void 0&&{htmlInput:j.htmlInput}),slotProps:M({},F==null?void 0:F.slotProps,(B==null?void 0:B.htmlInput)!==void 0&&{htmlInput:B.htmlInput})})),N&&b.jsx(re,M({id:ne},B==null?void 0:B.formHelperText,{children:N}))]}))})});process.env.NODE_ENV!=="production"&&(bi.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(bi.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:bn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const HI=["readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel","InputProps","inputProps","InputLabelProps","FormHelperTextProps"],YI=["ownerState"],GI=["ownerState"],KI=["ownerState"],XI=["ownerState"],QI=["InputProps","inputProps","InputLabelProps","FormHelperTextProps"],ZI=e=>{var f;const t=e,{readOnly:n,onClear:o,clearable:s,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=t,h=Se(t,HI);return process.env.NODE_ENV!=="production"&&(c||u||d||m)&&mn(["MUI X: The `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props are no longer supported on Picker / Field components.","They have been silently dropped because they would otherwise be forwarded as unknown attributes on the underlying form control.","Use the `slotProps` shape instead (`slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel`, `slotProps.formHelperText`).","See https://mui.com/x/migration/migration-pickers-v8/#textfield-props for migration details."]),{clearable:s,onClear:o,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,textFieldProps:M({},h,{slotProps:M({},h==null?void 0:h.slotProps,{input:M({},(f=h==null?void 0:h.slotProps)==null?void 0:f.input,{readOnly:n})})})}},yi=S.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(yi.displayName="PickerFieldUIContext");function JI(e){var j;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=Zt(),s=rl(),i=S.useContext(yi),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:m="end"}=ZI(t),h=pl(a),f=ve(B=>{B.preventDefault(),s==null||s.setOpen(!0)}),g=s?s.triggerStatus:"hidden",p=c?d:null,y=g!=="hidden"?m:null,x=i.slots.textField??bi,T=i.slots.inputAdornment??Hf,w=qe({elementType:T,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:M({},h,{position:"start"})}),C=Se(w,YI),I=qe({elementType:T,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:M({},h,{position:"end"})}),E=Se(I,GI),R=i.slots.openPickerButton??ro,$=qe({elementType:R,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:g==="disabled",onClick:f,"aria-label":u,"data-mui-picker-open-button":"true",edge:a.variant!=="standard"?y:!1},ownerState:h}),L=Se($,KI),V=i.slots.openPickerIcon??n,A=qe({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:h}),v=i.slots.clearButton??ro,P=qe({elementType:v,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&p!==y?p:!1},ownerState:h}),O=Se(P,XI),_=i.slots.clearIcon??V0,k=qe({elementType:_,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});a.ref=yt(a.ref,s==null?void 0:s.rootRef);const D=(j=a.slotProps)==null?void 0:j.input,N={},z=yt(D==null?void 0:D.ref,s==null?void 0:s.triggerRef);return s&&(N.ref=z),!(D!=null&&D.startAdornment)&&(p==="start"||y==="start")&&(N.startAdornment=b.jsxs(T,M({},C,{children:[y==="start"&&b.jsx(R,M({},L,{children:b.jsx(V,M({},A))})),p==="start"&&b.jsx(v,M({},O,{children:b.jsx(_,M({},k))}))]}))),!(D!=null&&D.endAdornment)&&(p==="end"||y==="end")&&(N.endAdornment=b.jsxs(T,M({},E,{children:[p==="end"&&b.jsx(v,M({},O,{children:b.jsx(_,M({},k))})),y==="end"&&b.jsx(R,M({},L,{children:b.jsx(V,M({},A))}))]}))),!N.endAdornment&&!N.startAdornment&&i.slots.inputAdornment&&(N.endAdornment=b.jsx(T,M({},E))),p!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]),a.slotProps=M({},a.slotProps,{input:M({},D,N)}),b.jsx(x,M({},a))}function eE(e,t){return e?t?n=>M({},jo(t,n),jo(e,n)):e:t}function tE(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=S.useContext(yi),i=rl(),a=pl(n),l=n??{},{InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=l,h=Se(l,QI);process.env.NODE_ENV!=="production"&&(c||u||d||m)&&mn(["MUI X: Field components no longer accept the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They have been dropped to avoid leaking unknown attributes onto the underlying form control.","Use the nested `slotProps.textField.slotProps.{input,htmlInput,inputLabel,formHelperText}` shape instead."]);const f=qe({elementType:bi,externalSlotProps:eE(s.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:h,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:s.inputRef},ownerState:a});if(i&&i.keepOpenDuringFieldFocus&&i.triggerStatus==="enabled"&&!i.open&&!i.readOnly&&!i.disabled){const g=f.onFocus,p=f.onMouseDown,y=x=>{var I;const T=x.nativeEvent??x,w=(I=T==null?void 0:T.composedPath)==null?void 0:I.call(T);if(Array.isArray(w)){for(const E of w)if(E&&E.getAttribute&&E.getAttribute("data-mui-picker-open-button")==="true")return!0}const C=x.target;return C&&C.closest?!!C.closest('[data-mui-picker-open-button="true"]'):!1};f.onFocus=x=>{g==null||g(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)},f.onMouseDown=x=>{p==null||p(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)}}return f}function nE(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=S.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(yi.Provider,{value:i,children:s})}const oE=["slots","slotProps"],vi=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=o,a=Se(o,oE),l=tE({slotProps:i,ref:n,externalForwardedProps:a}),c=C0(l);return b.jsx(nE,{slots:s,slotProps:i,inputRef:a.inputRef,children:b.jsx(JI,{fieldResponse:c,defaultOpenPickerIcon:L0})})});process.env.NODE_ENV!=="production"&&(vi.displayName="TimeField");process.env.NODE_ENV!=="production"&&(vi.propTypes={ampm:r.bool,areAllSectionsEmpty:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,endAdornment:r.node,error:r.bool,fieldRef:r.oneOfType([r.func,r.object]),focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:bn,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onClick:r.func,onError:r.func,onFocus:r.func,onInput:r.func,onKeyDown:r.func,onMouseDown:r.func,onPaste:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function rE(e){return it("MuiPickersToolbarText",e)}lt("MuiPickersToolbarText",["root"]);const sE=["className","classes","selected","value"],iE=e=>ot({root:["root"]},rE,e),aE=te(ao,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),yl=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=o,c=Se(o,sE),u=iE(i);return b.jsx(aE,M({ref:n,className:ce(u.root,s),component:"span",ownerState:o},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(yl.displayName="PickersToolbarText");function nm(e){return it("MuiPickersToolbar",e)}lt("MuiPickersToolbar",["root","title","content"]);const lE=["align","className","classes","selected","typographyClassName","value","variant","width"],cE=e=>ot({root:["root"]},nm,e),uE=te(nn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Io=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:m}=o,h=Se(o,lE),f=cE(a);return b.jsx(uE,M({variant:"text",ref:n,className:ce(f.root,i),ownerState:o},m?{sx:{width:m}}:{},h,{children:b.jsx(yl,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(Io.displayName="PickersToolbarButton");function om(){const{ownerState:e}=mt(),t=jn();return S.useMemo(()=>M({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const dE=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],pE=e=>ot({root:["root"],title:["title"],content:["content"]},nm,e),fE=te("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),mE=te("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>zt(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),rm=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,m=Se(o,dE),h=om(),f=pE(a);return c?null:b.jsxs(fE,M({ref:n,className:ce(f.root,i),ownerState:h},m,{children:[b.jsx(ao,{variant:"overline",id:u,className:f.title,sx:{color:"text.secondary"},children:l}),b.jsx(mE,{className:f.content,ownerState:h,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(rm.displayName="PickersToolbar");function vl(e,t,n,o){const s=st(),i=S.useMemo(()=>s.isValid(e)?e:null,[s,e]),a=ET(i,s),l=S.useCallback(c=>{const u=i==null?null:Nf(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:a,handleMeridiemChange:l}}function hE(e){return it("MuiTimePickerToolbar",e)}const hr=lt("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),gE=["ampm","ampmInClock","className","classes"],bE=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return ot({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},hE,e)},yE=te(rm,{name:"MuiTimePickerToolbar",slot:"Root"})({}),vE=te(yl,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),xE=te("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${hr.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${hr.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),SE=te("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${hr.ampmLabel}`]:t.ampmLabel},{[`&.${hr.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${hr.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function sm(e){const t=Ue({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,className:s,classes:i}=t,a=Se(t,gE),l=st(),c=Zt(),u=om(),d=bE(i,u),{value:m,setValue:h,disabled:f,readOnly:g,view:p,setView:y,views:x}=Go(),T=!!(n&&!o&&x.includes("hours")),{meridiemMode:w,handleMeridiemChange:C}=vl(m,n,R=>h(R,{changeImportance:"set",source:"view"})),I=R=>l.isValid(m)?l.format(m,R):"--",E=b.jsx(vE,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return b.jsxs(yE,M({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:ce(d.root,s)},a,{children:[b.jsxs(xE,{className:d.hourMinuteLabel,ownerState:u,children:[wo(x,"hours")&&b.jsx(Io,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:p==="hours",value:I(n?"hours12h":"hours24h")}),wo(x,["hours","minutes"])&&E,wo(x,"minutes")&&b.jsx(Io,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:p==="minutes",value:I("minutes")}),wo(x,["minutes","seconds"])&&E,wo(x,"seconds")&&b.jsx(Io,{variant:"h3",onClick:()=>y("seconds"),selected:p==="seconds",value:I("seconds")})]}),T&&b.jsxs(SE,{className:d.ampmSelection,ownerState:u,children:[b.jsx(Io,{disableRipple:!0,variant:"subtitle2",selected:w==="am",typographyClassName:d.ampmLabel,value:On(l,"am"),onClick:g?void 0:()=>C("am"),disabled:f}),b.jsx(Io,{disableRipple:!0,variant:"subtitle2",selected:w==="pm",typographyClassName:d.ampmLabel,value:On(l,"pm"),onClick:g?void 0:()=>C("pm"),disabled:f})]})]}))}process.env.NODE_ENV!=="production"&&(sm.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node});function im(e,t){var l;const n=st(),o=Ue({props:e,name:t}),s=qf(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=S.useMemo(()=>{var c;return((c=o.localeText)==null?void 0:c.toolbarTitle)==null?o.localeText:M({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return M({},o,s,{ampm:i,localeText:a},ST({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:M({toolbar:sm},o.slots),slotProps:M({},o.slotProps,{toolbar:M({ampm:i,ampmInClock:o.ampmInClock},(l=o.slotProps)==null?void 0:l.toolbar)})})}function CE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function am(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!CE(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Br=Ln(r.element,am);Br.isRequired=Ln(r.element.isRequired,am);function xi(e){var t;return parseInt(S.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const lm=e=>e.scrollTop;function dt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function cm(e,t,n,o,s,i){const a=e==="exited"&&!t?o:n[e]||n.exited;return s||i?{...a,...s,...i}:a}function Vo(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function gr(e){return`scale(${e}, ${e**2})`}const wE={entering:{opacity:1,transform:gr(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:gr(.75)},exited:{opacity:0,transform:gr(.75)}},TE={opacity:0,transform:gr(.75),visibility:"hidden"},Ps=S.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:f,style:g,timeout:p="auto",...y}=t,x=Ja(),T=S.useRef(),w=jr(),C=S.useRef(null),I=ft(C,xi(i),n),E=dt(C,d),R=dt(C,(P,O)=>{lm(P);const{duration:_,delay:k,easing:D}=Vo({style:g,timeout:p,easing:a},{mode:"enter"});let N;p==="auto"?(N=w.transitions.getAutoHeightDuration(P.clientHeight),T.current=N):N=_,P.style.transition=[w.transitions.create("opacity",{duration:N,delay:k}),w.transitions.create("transform",{duration:N*.666,delay:k,easing:D})].join(","),c&&c(P,O)}),$=dt(C,u),L=dt(C,f),V=dt(C,P=>{const{duration:O,delay:_,easing:k}=Vo({style:g,timeout:p,easing:a},{mode:"exit"});let D;p==="auto"?(D=w.transitions.getAutoHeightDuration(P.clientHeight),T.current=D):D=O,P.style.transition=[w.transitions.create("opacity",{duration:D,delay:_}),w.transitions.create("transform",{duration:D*.666,delay:_||D*.333,easing:k})].join(","),P.style.opacity=0,P.style.transform=gr(.75),m&&m(P)}),A=dt(C,P=>{P.style.transition="",h&&h(P)}),v=P=>{p==="auto"&&x.start(T.current||0,P),o&&o(C.current,P)};return b.jsx(Ut,{appear:s,in:l,nodeRef:C,onEnter:R,onEntered:$,onEntering:E,onExit:V,onExited:A,onExiting:L,addEndListener:v,timeout:p==="auto"?null:p,...y,children:(P,{ownerState:O,..._})=>{const k=cm(P,l,wE,TE,g,i.props.style);return S.cloneElement(i,{style:k,ref:I,..._})}})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={addEndListener:r.func,appear:r.bool,children:Br.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});Ps&&(Ps.muiSupportAuto=!0);const IE={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},EE={opacity:0,visibility:"hidden"},Fo=S.forwardRef(function(t,n){const o=jr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:f,onExited:g,onExiting:p,style:y,timeout:x=s,...T}=t,w=S.useRef(null),C=ft(w,xi(l),n),I=dt(w,h),E=dt(w,(v,P)=>{lm(v);const O=Vo({style:y,timeout:x,easing:c},{mode:"enter"});v.style.transition=o.transitions.create("opacity",O),d&&d(v,P)}),R=dt(w,m),$=dt(w,p),L=dt(w,v=>{const P=Vo({style:y,timeout:x,easing:c},{mode:"exit"});v.style.transition=o.transitions.create("opacity",P),f&&f(v)}),V=dt(w,v=>{v.style.transition="",g&&g(v)}),A=v=>{i&&i(w.current,v)};return b.jsx(Ut,{appear:a,in:u,nodeRef:w,onEnter:E,onEntered:R,onEntering:I,onExit:L,onExited:V,onExiting:$,addEndListener:A,timeout:x,...T,children:(v,{ownerState:P,...O})=>{const _=cm(v,u,IE,EE,y,l.props.style);return S.cloneElement(l,{style:_,ref:C,...O})}})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={addEndListener:r.func,appear:r.bool,children:Br.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function _E(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function um(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=_E(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function dm(e,t,n,o){return e[t]===void 0?null:um(e,t,n,o)}function ua(){return null}dm.isRequired=um;ua.isRequired=ua;const OE=process.env.NODE_ENV==="production"?ua:dm;function kE(e){return Re("MuiPaper",e)}Ee("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 PE=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return je(i,kE,s)},RE=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Qe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),zr=S.forwardRef(function(t,n){var f;const o=He({props:t,name:"MuiPaper"}),s=jr(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,m={...o,component:a,elevation:l,square:c,variant:u},h=PE(m);return process.env.NODE_ENV!=="production"&&s.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
214
|
+
`)),b.jsx(RE,{as:a,ownerState:m,className:ce(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":(f=s.vars.overlays)==null?void 0:f[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Cs("#fff",ea(l))}, ${Cs("#fff",ea(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(zr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:Ln(OE,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});function Bo(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var vt="top",Mt="bottom",$t="right",xt="left",xl="auto",Wr=[vt,Mt,$t,xt],zo="start",Er="end",NE="clippingParents",pm="viewport",nr="popper",ME="reference",zu=Wr.reduce(function(e,t){return e.concat([t+"-"+zo,t+"-"+Er])},[]),fm=[].concat(Wr,[xl]).reduce(function(e,t){return e.concat([t,t+"-"+zo,t+"-"+Er])},[]),$E="beforeRead",DE="read",AE="afterRead",jE="beforeMain",LE="main",VE="afterMain",FE="beforeWrite",BE="write",zE="afterWrite",WE=[$E,DE,AE,jE,LE,VE,FE,BE,zE];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function so(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Rt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Sl(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function UE(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Rt(i)||!Qt(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function qE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Rt(s)||!Qt(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const HE={name:"applyStyles",enabled:!0,phase:"write",fn:UE,effect:qE,requires:["computeStyles"]};function Gt(e){return e.split("-")[0]}var to=Math.max,Rs=Math.min,Wo=Math.round;function da(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function mm(){return!/^((?!chrome|android).)*safari/i.test(da())}function Uo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&Rt(e)&&(s=e.offsetWidth>0&&Wo(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Wo(o.height)/e.offsetHeight||1);var a=so(e)?It(e):window,l=a.visualViewport,c=!mm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/s,d=(o.top+(c&&l?l.offsetTop:0))/i,m=o.width/s,h=o.height/i;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function Cl(e){var t=Uo(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function hm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Sl(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function gn(e){return It(e).getComputedStyle(e)}function YE(e){return["table","td","th"].indexOf(Qt(e))>=0}function Fn(e){return((so(e)?e.ownerDocument:e.document)||window.document).documentElement}function Si(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Sl(e)?e.host:null)||Fn(e)}function Wu(e){return!Rt(e)||gn(e).position==="fixed"?null:e.offsetParent}function GE(e){var t=/firefox/i.test(da()),n=/Trident/i.test(da());if(n&&Rt(e)){var o=gn(e);if(o.position==="fixed")return null}var s=Si(e);for(Sl(s)&&(s=s.host);Rt(s)&&["html","body"].indexOf(Qt(s))<0;){var i=gn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function Ur(e){for(var t=It(e),n=Wu(e);n&&YE(n)&&gn(n).position==="static";)n=Wu(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&gn(n).position==="static")?t:n||GE(e)||t}function wl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function br(e,t,n){return to(e,Rs(t,n))}function KE(e,t,n){var o=br(e,t,n);return o>n?n:o}function gm(){return{top:0,right:0,bottom:0,left:0}}function bm(e){return Object.assign({},gm(),e)}function ym(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var XE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,bm(typeof t!="number"?t:ym(t,Wr))};function QE(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Gt(n.placement),c=wl(l),u=[xt,$t].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var m=XE(s.padding,n),h=Cl(i),f=c==="y"?vt:xt,g=c==="y"?Mt:$t,p=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=Ur(i),T=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=p/2-y/2,C=m[f],I=T-h[d]-m[g],E=T/2-h[d]/2+w,R=br(C,E,I),$=c;n.modifiersData[o]=(t={},t[$]=R,t.centerOffset=R-E,t)}}function ZE(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||hm(t.elements.popper,s)&&(t.elements.arrow=s))}const JE={name:"arrow",enabled:!0,phase:"main",fn:QE,effect:ZE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qo(e){return e.split("-")[1]}var e_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function t_(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:Wo(n*s)/s||0,y:Wo(o*s)/s||0}}function Uu(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=a.x,f=h===void 0?0:h,g=a.y,p=g===void 0?0:g,y=typeof d=="function"?d({x:f,y:p}):{x:f,y:p};f=y.x,p=y.y;var x=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),w=xt,C=vt,I=window;if(u){var E=Ur(n),R="clientHeight",$="clientWidth";if(E===It(n)&&(E=Fn(n),gn(E).position!=="static"&&l==="absolute"&&(R="scrollHeight",$="scrollWidth")),E=E,s===vt||(s===xt||s===$t)&&i===Er){C=Mt;var L=m&&E===I&&I.visualViewport?I.visualViewport.height:E[R];p-=L-o.height,p*=c?1:-1}if(s===xt||(s===vt||s===Mt)&&i===Er){w=$t;var V=m&&E===I&&I.visualViewport?I.visualViewport.width:E[$];f-=V-o.width,f*=c?1:-1}}var A=Object.assign({position:l},u&&e_),v=d===!0?t_({x:f,y:p},It(n)):{x:f,y:p};if(f=v.x,p=v.y,c){var P;return Object.assign({},A,(P={},P[C]=T?"0":"",P[w]=x?"0":"",P.transform=(I.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",P))}return Object.assign({},A,(t={},t[C]=T?p+"px":"",t[w]=x?f+"px":"",t.transform="",t))}function n_(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Gt(t.placement),variation:qo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Uu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Uu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const o_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:n_,data:{}};var es={passive:!0};function r_(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,a=o.resize,l=a===void 0?!0:a,c=It(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,es)}),l&&c.addEventListener("resize",n.update,es),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,es)}),l&&c.removeEventListener("resize",n.update,es)}}const s_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:r_,data:{}};var i_={left:"right",right:"left",bottom:"top",top:"bottom"};function hs(e){return e.replace(/left|right|bottom|top/g,function(t){return i_[t]})}var a_={start:"end",end:"start"};function qu(e){return e.replace(/start|end/g,function(t){return a_[t]})}function Tl(e){var t=It(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Il(e){return Uo(Fn(e)).left+Tl(e).scrollLeft}function l_(e,t){var n=It(e),o=Fn(e),s=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=mm();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+Il(e),y:c}}function c_(e){var t,n=Fn(e),o=Tl(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=to(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=to(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+Il(e),c=-o.scrollTop;return gn(s||n).direction==="rtl"&&(l+=to(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function El(e){var t=gn(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function vm(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:Rt(e)&&El(e)?e:vm(Si(e))}function yr(e,t){var n;t===void 0&&(t=[]);var o=vm(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=It(o),a=s?[i].concat(i.visualViewport||[],El(o)?o:[]):o,l=t.concat(a);return s?l:l.concat(yr(Si(a)))}function pa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function u_(e,t){var n=Uo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Hu(e,t,n){return t===pm?pa(l_(e,n)):so(t)?u_(t,n):pa(c_(Fn(e)))}function d_(e){var t=yr(Si(e)),n=["absolute","fixed"].indexOf(gn(e).position)>=0,o=n&&Rt(e)?Ur(e):e;return so(o)?t.filter(function(s){return so(s)&&hm(s,o)&&Qt(s)!=="body"}):[]}function p_(e,t,n,o){var s=t==="clippingParents"?d_(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=Hu(e,u,o);return c.top=to(d.top,c.top),c.right=Rs(d.right,c.right),c.bottom=Rs(d.bottom,c.bottom),c.left=to(d.left,c.left),c},Hu(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function xm(e){var t=e.reference,n=e.element,o=e.placement,s=o?Gt(o):null,i=o?qo(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case vt:c={x:a,y:t.y-n.height};break;case Mt:c={x:a,y:t.y+t.height};break;case $t:c={x:t.x+t.width,y:l};break;case xt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?wl(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case zo:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Er:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function _r(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?NE:l,u=n.rootBoundary,d=u===void 0?pm:u,m=n.elementContext,h=m===void 0?nr:m,f=n.altBoundary,g=f===void 0?!1:f,p=n.padding,y=p===void 0?0:p,x=bm(typeof y!="number"?y:ym(y,Wr)),T=h===nr?ME:nr,w=e.rects.popper,C=e.elements[g?T:h],I=p_(so(C)?C:C.contextElement||Fn(e.elements.popper),c,d,a),E=Uo(e.elements.reference),R=xm({reference:E,element:w,placement:s}),$=pa(Object.assign({},w,R)),L=h===nr?$:E,V={top:I.top-L.top+x.top,bottom:L.bottom-I.bottom+x.bottom,left:I.left-L.left+x.left,right:L.right-I.right+x.right},A=e.modifiersData.offset;if(h===nr&&A){var v=A[s];Object.keys(V).forEach(function(P){var O=[$t,Mt].indexOf(P)>=0?1:-1,_=[vt,Mt].indexOf(P)>=0?"y":"x";V[P]+=v[_]*O})}return V}function f_(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?fm:c,d=qo(o),m=d?l?zu:zu.filter(function(g){return qo(g)===d}):Wr,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var f=h.reduce(function(g,p){return g[p]=_r(e,{placement:p,boundary:s,rootBoundary:i,padding:a})[Gt(p)],g},{});return Object.keys(f).sort(function(g,p){return f[g]-f[p]})}function m_(e){if(Gt(e)===xl)return[];var t=hs(e);return[qu(e),t,qu(t)]}function h_(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,m=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,p=n.allowedAutoPlacements,y=t.options.placement,x=Gt(y),T=x===y,w=c||(T||!g?[hs(y)]:m_(y)),C=[y].concat(w).reduce(function(Z,Y){return Z.concat(Gt(Y)===xl?f_(t,{placement:Y,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:p}):Y)},[]),I=t.rects.reference,E=t.rects.popper,R=new Map,$=!0,L=C[0],V=0;V<C.length;V++){var A=C[V],v=Gt(A),P=qo(A)===zo,O=[vt,Mt].indexOf(v)>=0,_=O?"width":"height",k=_r(t,{placement:A,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),D=O?P?$t:xt:P?Mt:vt;I[_]>E[_]&&(D=hs(D));var N=hs(D),z=[];if(i&&z.push(k[v]<=0),l&&z.push(k[D]<=0,k[N]<=0),z.every(function(Z){return Z})){L=A,$=!1;break}R.set(A,z)}if($)for(var j=g?3:1,B=function(Y){var Q=C.find(function(ne){var H=R.get(ne);if(H)return H.slice(0,Y).every(function(F){return F})});if(Q)return L=Q,"break"},W=j;W>0;W--){var X=B(W);if(X==="break")break}t.placement!==L&&(t.modifiersData[o]._skip=!0,t.placement=L,t.reset=!0)}}const g_={name:"flip",enabled:!0,phase:"main",fn:h_,requiresIfExists:["offset"],data:{_skip:!1}};function Yu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gu(e){return[vt,$t,Mt,xt].some(function(t){return e[t]>=0})}function b_(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=_r(t,{elementContext:"reference"}),l=_r(t,{altBoundary:!0}),c=Yu(a,o),u=Yu(l,s,i),d=Gu(c),m=Gu(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const y_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:b_};function v_(e,t,n){var o=Gt(e),s=[xt,vt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[xt,$t].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function x_(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=fm.reduce(function(d,m){return d[m]=v_(m,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const S_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x_};function C_(e){var t=e.state,n=e.name;t.modifiersData[n]=xm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const w_={name:"popperOffsets",enabled:!0,phase:"read",fn:C_,data:{}};function T_(e){return e==="x"?"y":"x"}function I_(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,m=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,p=g===void 0?0:g,y=_r(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),x=Gt(t.placement),T=qo(t.placement),w=!T,C=wl(x),I=T_(C),E=t.modifiersData.popperOffsets,R=t.rects.reference,$=t.rects.popper,L=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,V=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(E){if(i){var P,O=C==="y"?vt:xt,_=C==="y"?Mt:$t,k=C==="y"?"height":"width",D=E[C],N=D+y[O],z=D-y[_],j=f?-$[k]/2:0,B=T===zo?R[k]:$[k],W=T===zo?-$[k]:-R[k],X=t.elements.arrow,Z=f&&X?Cl(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:gm(),Q=Y[O],ne=Y[_],H=br(0,R[k],Z[k]),F=w?R[k]/2-j-H-Q-V.mainAxis:B-H-Q-V.mainAxis,q=w?-R[k]/2+j+H+ne+V.mainAxis:W+H+ne+V.mainAxis,ae=t.elements.arrow&&Ur(t.elements.arrow),G=ae?C==="y"?ae.clientTop||0:ae.clientLeft||0:0,ue=(P=A==null?void 0:A[C])!=null?P:0,oe=D+F-ue-G,ye=D+q-ue,he=br(f?Rs(N,oe):N,D,f?to(z,ye):z);E[C]=he,v[C]=he-D}if(l){var re,J=C==="x"?vt:xt,ge=C==="x"?Mt:$t,ie=E[I],me=I==="y"?"height":"width",se=ie+y[J],Ie=ie-y[ge],Pe=[vt,xt].indexOf(x)!==-1,xe=(re=A==null?void 0:A[I])!=null?re:0,Ce=Pe?se:ie-R[me]-$[me]-xe+V.altAxis,Ne=Pe?ie+R[me]+$[me]-xe-V.altAxis:Ie,rt=f&&Pe?KE(Ce,ie,Ne):br(f?Ce:se,ie,f?Ne:Ie);E[I]=rt,v[I]=rt-ie}t.modifiersData[o]=v}}const E_={name:"preventOverflow",enabled:!0,phase:"main",fn:I_,requiresIfExists:["offset"]};function __(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function O_(e){return e===It(e)||!Rt(e)?Tl(e):__(e)}function k_(e){var t=e.getBoundingClientRect(),n=Wo(t.width)/e.offsetWidth||1,o=Wo(t.height)/e.offsetHeight||1;return n!==1||o!==1}function P_(e,t,n){n===void 0&&(n=!1);var o=Rt(t),s=Rt(t)&&k_(t),i=Fn(t),a=Uo(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Qt(t)!=="body"||El(i))&&(l=O_(t)),Rt(t)?(c=Uo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Il(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function R_(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function N_(e){var t=R_(e);return WE.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function M_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function $_(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ku={placement:"bottom",modifiers:[],strategy:"absolute"};function Xu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function D_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Ku:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ku,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],h=!1,f={state:d,setOptions:function(x){var T=typeof x=="function"?x(d.options):x;p(),d.options=Object.assign({},i,d.options,T),d.scrollParents={reference:so(l)?yr(l):l.contextElement?yr(l.contextElement):[],popper:yr(c)};var w=N_($_([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(C){return C.enabled}),g(),f.update()},forceUpdate:function(){if(!h){var x=d.elements,T=x.reference,w=x.popper;if(Xu(T,w)){d.rects={reference:P_(T,Ur(w),d.options.strategy==="fixed"),popper:Cl(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var I=d.orderedModifiers[C],E=I.fn,R=I.options,$=R===void 0?{}:R,L=I.name;typeof E=="function"&&(d=E({state:d,options:$,name:L,instance:f})||d)}}}},update:M_(function(){return new Promise(function(y){f.forceUpdate(),y(d)})}),destroy:function(){p(),h=!0}};if(!Xu(l,c))return f;f.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var x=y.name,T=y.options,w=T===void 0?{}:T,C=y.effect;if(typeof C=="function"){var I=C({state:d,name:x,instance:f,options:w}),E=function(){};m.push(I||E)}})}function p(){m.forEach(function(y){return y()}),m=[]}return f}}var A_=[s_,w_,o_,HE,S_,g_,E_,JE,y_],j_=D_({defaultModifiers:A_});function L_(e){return typeof e=="function"?e():e}const Or=S.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[a,l]=S.useState(null),c=ft(S.isValidElement(o)?xi(o):null,n);if(Nn(()=>{i||l(L_(s)||document.body)},[s,i]),Nn(()=>{if(a&&!i)return Qc(n,a),()=>{Qc(n,null)}},[n,a,i]),i){if(S.isValidElement(o)){const u={ref:c};return S.cloneElement(o,u)}return o}return a&&Wh.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Or.propTypes={children:r.node,container:r.oneOfType([Bo,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(Or.propTypes=Xp(Or.propTypes));function V_(e){return Re("MuiPopper",e)}Ee("MuiPopper",["root"]);function F_(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ns(e){return typeof e=="function"?e():e}function Ci(e){return e.nodeType!==void 0}function B_(e){return!Ci(e)}const z_=e=>{const{classes:t}=e;return je({root:["root"]},V_,t)},W_={},U_=S.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:f={},TransitionProps:g,ownerState:p,...y}=t,x=S.useRef(null),T=ft(x,n),w=S.useRef(null),C=ft(w,m),I=S.useRef(C);Nn(()=>{I.current=C},[C]),S.useImperativeHandle(m,()=>w.current,[]);const E=F_(u,i),[R,$]=S.useState(E),[L,V]=S.useState(Ns(o));S.useEffect(()=>{w.current&&w.current.forceUpdate()}),S.useEffect(()=>{o&&V(Ns(o))},[o]),Nn(()=>{if(!L||!c)return;const _=z=>{$(z.placement)};if(process.env.NODE_ENV!=="production"&&L&&Ci(L)&&L.nodeType===1){const z=L.getBoundingClientRect();yf()&&z.top===0&&z.left===0&&z.right===0&&z.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(`
|
|
215
|
+
`))}let k=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{_(z)}}];l!=null&&(k=k.concat(l)),d&&d.modifiers!=null&&(k=k.concat(d.modifiers));const D=j_(L,x.current,{placement:E,...d,modifiers:k});I.current(D);const N=x.current;return()=>{if(N){const{style:z}=N,j=z.position,B=z.top,W=z.left,X=z.transform;D.destroy(),z.position=j,z.top=B,z.left=W,z.transform=X}else D.destroy();I.current(null)}},[L,a,l,c,d,E]);const A={placement:R};g!==null&&(A.TransitionProps=g);const v=z_(t),P=f.root??"div",O=Iw({elementType:P,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:v.root});return b.jsx(P,{...O,children:typeof s=="function"?s(A):s})}),Sm=S.forwardRef(function(t,n){const{anchorEl:o,children:s,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:h=W_,popperRef:f,style:g,transition:p=!1,slotProps:y={},slots:x={},...T}=t,[w,C]=S.useState(!0),I=()=>{C(!1)},E=()=>{C(!0)};if(!c&&!d&&(!p||w))return null;let R;if(i)R=i;else if(o){const V=Ns(o);R=V&&Ci(V)?Kt(V).body:Kt(null).body}const $=!d&&c&&(!p||w)?"none":void 0,L=p?{in:d,onEnter:I,onExited:E}:void 0;return b.jsx(Or,{disablePortal:l,container:R,children:b.jsx(U_,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:p?!w:d,placement:m,popperOptions:h,popperRef:f,slotProps:y,slots:x,...T,style:{position:"fixed",top:0,left:0,display:$,...g},TransitionProps:L,children:s})})});process.env.NODE_ENV!=="production"&&(Sm.propTypes={anchorEl:Ln(r.oneOfType([Bo,r.object,r.func]),e=>{if(e.open){const t=Ns(e.anchorEl);if(t&&Ci(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&yf()&&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(`
|
|
216
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||B_(t)&&t.contextElement!=null&&t.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(`
|
|
217
|
+
`))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([Bo,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:oi,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});const q_=te(Sm,{name:"MuiPopper",slot:"Root"})({}),Cm=S.forwardRef(function(t,n){const o=jn(),s=He({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:f,placement:g,popperOptions:p,popperRef:y,transition:x,slots:T,slotProps:w,...C}=s,I=(T==null?void 0:T.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:f,placement:g,popperOptions:p,popperRef:y,transition:x,...C};return b.jsx(q_,{as:a,direction:o?"rtl":"ltr",slots:{root:I},slotProps:w??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(Cm.propTypes={anchorEl:r.oneOfType([Bo,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Bo,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:oi,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});const fa="data-mui-focusable";function H_(e){return e?e.hasAttribute(fa)?e:e.querySelector(`[${fa}]`):null}const Y_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function G_(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function K_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function X_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||K_(e))}function Q_(e){const t=[],n=[];return Array.from(e.querySelectorAll(Y_)).forEach((o,s)=>{const i=G_(o);i===-1||!X_(o)||(i===0?t.push(o):n.push({documentOrder:s,tabIndex:i,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function Z_(){return!0}function kr(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:i=Q_,isEnabled:a=Z_,open:l}=e,c=S.useRef(!1),u=S.useRef(null),d=S.useRef(null),m=S.useRef(null),h=S.useRef(null),f=S.useRef(!1),g=S.useRef(null),p=ft(xi(t),g),y=S.useRef(null);S.useEffect(()=>{!l||!g.current||(f.current=!n)},[n,l]),S.useEffect(()=>{if(c.current=!1,!l||!g.current)return;const w=Kt(g.current),C=ur(w),I=H_(g.current)??g.current;return au(g.current,C)||(I.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(`
|
|
218
|
+
`)),I.setAttribute("tabIndex","-1")),f.current&&I.focus()),()=>{s||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),S.useEffect(()=>{if(!l||!g.current)return;const w=Kt(g.current),C=R=>{if(y.current=R,o||!a()||R.key!=="Tab")return;ur(w)===g.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())},I=()=>{var V,A;const R=g.current;if(R===null)return;const $=ur(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(au(R,$)||o&&$!==u.current&&$!==d.current)return;if($!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let L=[];if(($===u.current||$===d.current)&&(L=i(g.current)),L.length>0){const v=!!((V=y.current)!=null&&V.shiftKey&&((A=y.current)==null?void 0:A.key)==="Tab"),P=L[0],O=L[L.length-1];typeof P!="string"&&typeof O!="string"&&(v?O.focus():P.focus())}else R.focus()};w.addEventListener("focusin",I),w.addEventListener("keydown",C,!0);const E=setInterval(()=>{const R=ur(w);R&&R.tagName==="BODY"&&I()},50);return()=>{clearInterval(E),w.removeEventListener("focusin",I),w.removeEventListener("keydown",C,!0)}},[n,o,s,a,l,i]);const x=w=>{m.current===null&&(m.current=w.relatedTarget),f.current=!0,h.current=w.target;const C=t.props.onFocus;C&&C(w)},T=w=>{m.current===null&&(m.current=w.relatedTarget),f.current=!0};return b.jsxs(S.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:p,onFocus:x}),b.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(kr.propTypes={children:Br,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired});process.env.NODE_ENV!=="production"&&(kr.propTypes=Xp(kr.propTypes));const J_=e=>e.type==="hidden";function eO(e){const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!J_(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)}function tO(e){return it("MuiPickerPopper",e)}lt("MuiPickerPopper",["root","paper"]);const nO=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],oO=e=>ot({root:["root"],paper:["paper"]},tO,e),rO=te(Cm,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),sO=te(zr,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function iO(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function aO(e,t){const n=S.useRef(!1),o=S.useRef(!1),s=S.useRef(null),i=S.useRef(!1);S.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=ve(c=>{if(!i.current){o.current=!1;return}const u=o.current;o.current=!1;const d=Ro(s.current);if(!s.current||"clientX"in c&&iO(c,d))return;if(n.current){n.current=!1;return}let m;c.composedPath?m=c.composedPath().indexOf(s.current)>-1:m=!d.documentElement.contains(c.target)||s.current.contains(c.target),!m&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return S.useEffect(()=>{if(e){const c=Ro(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),S.useEffect(()=>{if(e){const c=Ro(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[s,l,l]}const wm=S.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Se(e,nO),d=qe({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,M({},u,d,{onClick:m=>{var h;l(m),(h=d.onClick)==null||h.call(d,m)},onTouchStart:m=>{var h;c(m),(h=d.onTouchStart)==null||h.call(d,m)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(wm.displayName="PickerPopperPaperWrapper");const lO=e=>{const t=e instanceof HTMLElement?e:null;return t?eO(t):!1};function cO(e){const t=Ue({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u,keepOpenDuringFieldFocus:d}=Go(),{ownerState:m,rootRefObject:h}=mt(),{dismissViews:f,getCurrentViewMode:g,onPopperExited:p,triggerElement:y,viewContainerRole:x}=mt();S.useEffect(()=>{function N(z){l&&z.key==="Escape"&&f()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[f,l]);const T=S.useRef(null);S.useEffect(()=>{x==="tooltip"||g()==="field"||(l?T.current=ln(h.current):T.current&&T.current instanceof HTMLElement&&setTimeout(()=>{T.current instanceof HTMLElement&&T.current.focus()}))},[l,x,g,h]);const w=oO(a),C=ve(N=>{d&&y&&N&&"target"in N&&y.contains(N.target)||(x==="tooltip"?FT(()=>{var z,j;(z=h.current)!=null&&z.contains(ln(h.current))||(j=c.current)!=null&&j.contains(ln(c.current))||f()}):(N.composedPath().some(lO)&&(T.current=null),f()))}),[I,E,R]=aO(l,C),$=S.useRef(null),L=yt($,c),V=yt(L,I),A=N=>{N.key==="Escape"&&(N.stopPropagation(),f())},v=(s==null?void 0:s.desktopTransition)??u?Fo:Ps,P=(s==null?void 0:s.desktopTrapFocus)??kr,O=(s==null?void 0:s.desktopPaper)??sO,_=(s==null?void 0:s.popper)??rO,k=qe({elementType:_,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:x??void 0,open:l,placement:o,anchorEl:y,onKeyDown:A},className:w.root,ownerState:m}),D=S.useMemo(()=>M({},m,{popperPlacement:k.placement}),[m,k.placement]);return b.jsx(_,M({},k,{children:({TransitionProps:N})=>b.jsx(P,M({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip"},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(v,M({},N,i==null?void 0:i.desktopTransition,{onExited:z=>{var j,B,W;p==null||p(),(B=(j=i==null?void 0:i.desktopTransition)==null?void 0:j.onExited)==null||B.call(j,z),(W=N==null?void 0:N.onExited)==null||W.call(N)},children:b.jsx(wm,{PaperComponent:O,ownerState:D,ref:V,onPaperClick:E,onPaperTouchStart:R,paperClasses:w.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const uO="@media (prefers-reduced-motion: reduce)",No=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Qu=No&&No[1]?parseInt(No[1],10):null,Zu=No&&No[2]?parseInt(No[2],10):null,dO=Qu&&Qu<10||Zu&&Zu<13||!1;function pO(e){const t=kf(uO,{defaultMatches:!1});return e??(t||dO)}const Tm={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function fO(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return Tm;const i=t.findIndex(l=>n(s.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(M({},s,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(m=>n(l,m)),d=t.find(m=>n(c,m));return u===d}}}}let Fi=!1;function wi({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(Fi||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),Fi=!0),o==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),Fi=!0)));const u=S.useRef(n),d=S.useRef(s),m=S.useRef(s.includes(n)?n:s[0]),[h,f]=ks({name:"useViews",state:"view",controlled:o,default:m.current}),g=S.useRef(i?h:null),[p,y]=ks({name:"useViews",state:"focusedView",controlled:a,default:g.current}),x=c?c({setView:f,view:h,defaultView:m.current,views:s}):Tm;S.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(L=>!s.includes(L)))&&(f(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,f,h,s]);const T=s.indexOf(h),w=s[T-1]??null,C=s[T+1]??null,I=ve((L,V)=>{y(V?L:A=>L===A?null:A),l==null||l(L,V)}),E=ve(L=>{I(L,!0),L!==h&&(f(L),t&&t(L))}),R=ve(()=>{C&&E(C)}),$=ve((L,V,A)=>{const v=V==="finish",P=A?s.indexOf(A)<s.length-1:!!C;e(L,v&&P?"partial":V,A);let _=null;if(A!=null&&A!==h?_=A:v&&(_=h),_==null)return;const k=s[s.indexOf(_)+1];k==null||!x.areViewsInSameStep(_,k)||E(k)});return M({},x,{view:h,setView:E,focusedView:p,setFocusedView:I,nextView:C,previousView:w,defaultView:s.includes(n)?n:s[0],goToNextView:R,setValueAndGoToNextView:$})}function Ju(){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"}function mO(e,t){const[n,o]=S.useState(Ju);return hn(()=>{const s=()=>{o(Ju())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),wo(e,["hours","minutes","seconds"])?"portrait":t??n}function hO(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:m,onOpen:h,onClose:f}=t,{current:g}=S.useRef(i),{current:p}=S.useRef(s!==void 0),{current:y}=S.useRef(m!==void 0),x=st();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&mn(["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)."]),process.env.NODE_ENV!=="production"&&(S.useEffect(()=>{p!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${p?"":"un"}controlled value of a Picker to be ${p?"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(`
|
|
209
219
|
`))},[s]),S.useEffect(()=>{!p&&g!==i&&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(`
|
|
210
|
-
`))},[JSON.stringify(g)]));const{timezone:T,value:w,handleValueChange:C}=Mr({name:"a picker component",timezone:c,value:s,defaultValue:g,referenceDate:l,onChange:a,valueManager:n}),[I,E]=S.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:R}=Lf({props:t,validator:o,timezone:T,value:w,onError:t.onError}),$=ve(v=>{const P=typeof v=="function"?v(I.open):v;y||E(_=>M({},_,{open:P})),P&&h&&h(),P||f==null||f()}),L=ve((v,P)=>{const{changeImportance:_="accept",skipPublicationIfPristine:O=!1,validationError:k,shortcut:D,source:N,shouldClose:z=_==="accept"}=P??{};let A,F;!O&&!p&&!I.hasBeenModifiedSinceMount?(A=!0,F=_==="accept"):(A=!n.areValuesEqual(x,v,w),F=_==="accept"&&!n.areValuesEqual(x,v,I.lastCommittedValue)),E(Z=>M({},Z,{clockShallowValue:A?void 0:Z.clockShallowValue,lastCommittedValue:F?v:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const K=()=>{if(!W){let Z;N?Z=N:D?Z="view":Z="unknown",W={validationError:k??R(v),source:Z},D&&(W.shortcut=D)}return W};A&&C(v,K()),F&&u&&u(v,K()),z&&$(!1)});w!==I.lastExternalValue&&E(v=>M({},v,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=ve((v,P="partial")=>{if(P==="shallow"){E(_=>M({},_,{clockShallowValue:v,hasBeenModifiedSinceMount:!0}));return}L(v,{changeImportance:P==="finish"&&d?"accept":"set",source:"view"})});S.useEffect(()=>{if(y){if(m===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must not mix controlling and uncontrolled mode for `open` prop":Oe(160));E(v=>M({},v,{open:m}))}},[y,m]);const j=S.useMemo(()=>n.cleanValue(x,I.clockShallowValue===void 0?w:I.clockShallowValue),[x,n,I.clockShallowValue,w]);return{timezone:T,state:I,setValue:L,setValueFromView:V,setOpen:$,value:w,viewValue:j}}const e_=["className","sx"],vm=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:m})=>{const{views:h,view:f,openTo:g,onViewChange:p,viewRenderers:y,reduceAnimations:x,orientation:T,disableOpenPicker:w,closeOnSelect:C,disabled:I,readOnly:E,formatDensity:R,selectedSections:$,onSelectedSectionsChange:L,format:V,label:j,autoFocus:v,name:P,keepOpenDuringFieldFocus:_}=t,{className:O,sx:k}=t,D=xe(t,e_),N=sl(),z=nt(),A=XO(x),F=ZO(h,T),{current:W}=S.useRef(g??null),[K,Z]=S.useState(null),Y=S.useRef(null),X=S.useRef(null),ne=S.useRef(null),q=gt(e,ne),{timezone:B,state:H,setOpen:ae,setValue:G,setValueFromView:de,value:oe,viewValue:ye}=JO({props:t,valueManager:n,validator:i}),{view:me,setView:re,defaultView:J,focusedView:ge,setFocusedView:ie,setValueAndGoToNextView:he,goToNextStep:se,hasNextStep:Ie,hasSeveralSteps:ke}=yi({view:f,views:h,openTo:g,onChange:de,onViewChange:p,autoFocus:l,getStepNavigation:m}),bt=ve(()=>{var Ge;oe===null&&((Ge=X.current)!=null&&Ge.clearValue)&&X.current.clearValue(),G(n.emptyValue,{source:"view"})}),Ue=ve(()=>G(n.getTodayValue(z,B,o),{source:"view"})),ct=ve(()=>G(oe,{source:"view"})),Wt=ve(()=>G(H.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Fr=ve(()=>{G(oe,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Br,viewModeLookup:zr,timeViewsCount:tc}=S.useMemo(()=>h.reduce((Ge,$t)=>{const ic=y[$t]==null?"field":"UI";return Ge.viewModeLookup[$t]=ic,ic==="UI"&&(Ge.hasUIView=!0,No($t)&&(Ge.timeViewsCount+=1)),Ge},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,h]),Wr=zr[me],nc=ve(()=>Wr),[Zt,Mh]=S.useState(Wr==="UI"?me:null);Zt!==me&&zr[me]==="UI"&&Mh(me),mn(()=>{Wr==="field"&&H.open&&(ae(!1),setTimeout(()=>{var Ge,$t;(Ge=X==null?void 0:X.current)==null||Ge.setSelectedSections(me),($t=X==null?void 0:X.current)==null||$t.focusField(me)}))},[me]),mn(()=>{if(!H.open)return;let Ge=me;Wr==="field"&&Zt!=null&&(Ge=Zt),Ge!==J&&zr[Ge]==="UI"&&zr[J]==="UI"&&(Ge=J),Ge!==me&&re(Ge),ie(Ge,!0)},[H.open]);const Si=S.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(z,oe,n.emptyValue),isPickerOpen:H.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:F,pickerVariant:s}),[z,n,oe,H.open,F,s,t.disabled,t.readOnly]),oc=S.useMemo(()=>w||!Br?"hidden":I||E?"disabled":"enabled",[w,Br,I,E]),rc=ve(se),sc=S.useMemo(()=>C&&!ke?[]:["cancel","nextOrAccept"],[C,ke]),Ci=S.useMemo(()=>({setValue:G,setOpen:ae,clearValue:bt,setValueToToday:Ue,acceptValueChanges:ct,cancelValueChanges:Wt,setView:re,goToNextStep:rc}),[G,ae,bt,Ue,ct,Wt,re,rc]),$h=S.useMemo(()=>M({},Ci,{value:oe,timezone:B,open:H.open,views:h,view:Zt,initialView:W,disabled:I??!1,readOnly:E??!1,autoFocus:v??!1,variant:s,orientation:F,popupRef:Y,reduceAnimations:A,triggerRef:Z,triggerStatus:oc,keepOpenDuringFieldFocus:!!_,hasNextStep:Ie,fieldFormat:V??"",name:P,label:j,rootSx:k,rootRef:q,rootClassName:O}),[Ci,oe,q,s,F,A,I,E,V,O,P,j,k,oc,_,Ie,B,H.open,Zt,h,W,v]),Dh=S.useMemo(()=>({dismissViews:Fr,ownerState:Si,hasUIView:Br,getCurrentViewMode:nc,rootRefObject:ne,labelId:N,triggerElement:K,viewContainerRole:d,defaultActionBarActions:sc,onPopperExited:a}),[Fr,Si,Br,nc,N,K,d,sc,a]),Ah=S.useMemo(()=>({formatDensity:R,selectedSections:$,onSelectedSectionsChange:L,internalFieldRef:X}),[R,$,L,X]);return{providerProps:{localeText:u,contextValue:$h,privateContextValue:Dh,actionsContextValue:Ci,fieldPrivateContextValue:Ah,isValidContextValue:Ge=>{const $t=i({adapter:z,value:Ge,timezone:B,props:t});return!n.hasError($t)}},renderCurrentView:()=>{if(Zt==null)return null;const Ge=y[Zt];if(Ge==null)return null;const $t=M({},D,{views:h,timezone:B,value:ye,onChange:he,view:Zt,onViewChange:re,showViewSwitcher:tc>1,timeViewsCount:tc},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ge,onFocusedViewChange:ie});return c?b.jsx(c,{viewRenderers:y,popperView:Zt,rendererProps:$t}):Ge($t)},ownerState:Si}};function xm(e){return ot("MuiPickersLayout",e)}const Un=st("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function t_(e){return _e("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const n_=e=>{const{classes:t,disableSpacing:n}=e;return $e({root:["root",!n&&"spacing"]},t_,t)},o_=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Sm=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=n_(l);return b.jsx(o_,{className:ce(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Sm.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const r_=["actions"],s_=te(Sm,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Cm(e){const{actions:t}=e,n=xe(e,r_),o=Qt(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=zo();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(m=>{switch(m){case"clear":return b.jsx(nn,{onClick:s,children:o.clearButtonLabel},m);case"cancel":return b.jsx(nn,{onClick:l,children:o.cancelButtonLabel},m);case"accept":return b.jsx(nn,{onClick:a,children:o.okButtonLabel},m);case"today":return b.jsx(nn,{onClick:i,children:o.todayButtonLabel},m);case"next":return b.jsx(nn,{onClick:c,children:o.nextStepButtonLabel},m);case"nextOrAccept":return u?b.jsx(nn,{onClick:c,children:o.nextStepButtonLabel},m):b.jsx(nn,{onClick:a,children:o.okButtonLabel},m);default:return null}});return b.jsx(s_,M({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Cm.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const wm=S.memo(Cm);process.env.NODE_ENV!=="production"&&(wm.displayName="PickersActionBar");const _n=S.createContext({});process.env.NODE_ENV!=="production"&&(_n.displayName="ListContext");function i_(e){return _e("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const a_=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return $e({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},i_,t)},l_=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),vl=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,m=S.useMemo(()=>({dense:l}),[l]),h={...o,component:a,dense:l,disablePadding:c},f=a_(h);return b.jsx(_n.Provider,{value:m,children:b.jsxs(l_,{as:a,className:ce(f.root,i),ref:n,ownerState:h,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(vl.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function c_(e){return _e("MuiListItem",e)}we("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const u_=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function d_(e){return _e("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const p_=e=>{const{disableGutters:t,classes:n}=e;return $e({root:["root",t&&"disableGutters"]},d_,n)},f_=te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),xl=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,a=S.useContext(_n),l={...o,disableGutters:a.disableGutters},c=p_(l);return b.jsx(f_,{className:ce(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(xl.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});xl.muiName="ListItemSecondaryAction";const m_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},h_=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return $e({root:["root",o&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},c_,n)},g_=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:m_})(Ke(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${u_.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),b_=te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Tm=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:m,...h}={},dense:f=!1,disableGutters:g=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:x,slotProps:T={},slots:w={},...C}=o,I=S.useContext(_n),E=S.useMemo(()=>({dense:f||I.dense||!1,alignItems:s,disableGutters:g}),[s,I.dense,f,g]),R=S.useRef(null),$=S.Children.toArray(i),L=$.length&&wo($[$.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:s,dense:E.dense,disableGutters:g,disablePadding:p,divider:y,hasSecondaryAction:L},j=h_(V),v=dt(R,n),P={slots:w,slotProps:T},[_,O]=Ye("secondaryAction",{elementType:xl,externalForwardedProps:P,ownerState:V,className:j.secondaryAction}),k=w.root||c.Root||g_,D=T.root||u.root||{},N={className:ce(j.root,D.className,a),...C};let z=l||"li";return L?(z=!N.component&&!l?"div":z,d==="li"&&(z==="li"?z="div":N.component==="li"&&(N.component="div")),b.jsx(_n.Provider,{value:E,children:b.jsxs(b_,{as:d,className:ce(j.container,m),ref:v,ownerState:V,...h,children:[b.jsx(k,{...D,...!ea(k)&&{as:z,ownerState:{...V,...D.ownerState}},...N,children:$}),$.pop()]})})):b.jsx(_n.Provider,{value:E,children:b.jsxs(k,{...D,as:z,ref:v,...!ea(k)&&{ownerState:{...V,...D.ownerState}},...N,children:[$,x&&b.jsx(_,{...O,children:x})]})})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:An(r.node,e=>{const t=S.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if(wo(s,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.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:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:za,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object,secondaryAction:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,secondaryAction:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const y_=rt(b.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 v_(e){return _e("MuiChip",e)}const Te=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"]),x_=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${le(o)}`,`color${le(s)}`,l&&"clickable",l&&`clickableColor${le(s)}`,a&&"deletable",a&&`deletableColor${le(s)}`,`${c}${le(s)}`],label:["label",`label${le(o)}`],avatar:["avatar",`avatar${le(o)}`,`avatarColor${le(s)}`],icon:["icon",`icon${le(o)}`,`iconColor${le(i)}`],deleteIcon:["deleteIcon",`deleteIcon${le(o)}`,`deleteIconColor${le(s)}`,`deleteIcon${le(c)}Color${le(s)}`]};return $e(u,v_,t)},S_=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Te.avatar}`]:t.avatar},{[`& .${Te.avatar}`]:t[`avatar${le(l)}`]},{[`& .${Te.avatar}`]:t[`avatarColor${le(o)}`]},{[`& .${Te.icon}`]:t.icon},{[`& .${Te.icon}`]:t[`icon${le(l)}`]},{[`& .${Te.icon}`]:t[`iconColor${le(s)}`]},{[`& .${Te.deleteIcon}`]:t.deleteIcon},{[`& .${Te.deleteIcon}`]:t[`deleteIcon${le(l)}`]},{[`& .${Te.deleteIcon}`]:t[`deleteIconColor${le(o)}`]},{[`& .${Te.deleteIcon}`]:t[`deleteIcon${le(c)}Color${le(o)}`]},t.root,t[`size${le(l)}`],t[`color${le(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${le(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${le(o)}`],t[c],t[`${c}${le(o)}`]]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Te.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Te.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Te.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Te.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Te.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Te.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Te.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Te.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Te.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(ht(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Te.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Te.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Te.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Te.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(ht(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Te.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Te.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(ht(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Te.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Te.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Te.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Te.avatar}`]:{marginLeft:4},[`& .${Te.avatarSmall}`]:{marginLeft:2},[`& .${Te.icon}`]:{marginLeft:4},[`& .${Te.iconSmall}`]:{marginLeft:2},[`& .${Te.deleteIcon}`]:{marginRight:5},[`& .${Te.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(ht()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Te.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Te.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Te.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),C_=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${le(o)}`]]}})({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 Xu(e){return e.key==="Backspace"||e.key==="Delete"}const Im=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:f,onDelete:g,onKeyDown:p,onKeyUp:y,size:x="medium",variant:T="filled",tabIndex:w,skipFocusWhenDisabled:C=!1,slots:I={},slotProps:E={},...R}=o,$=S.useRef(null),L=dt($,n),V=X=>{X.stopPropagation(),g(X)},j=X=>{X.currentTarget===X.target&&Xu(X)&&X.preventDefault(),p&&p(X)},v=X=>{X.currentTarget===X.target&&g&&Xu(X)&&g(X),y&&y(X)},P=a!==!1&&f?!0:a,_=P||g?Zn:c||"div",O={...o,component:_,disabled:d,size:x,color:l,iconColor:S.isValidElement(m)&&m.props.color||l,onDelete:!!g,clickable:P,variant:T},k=x_(O),D=_===Zn?{component:c||"div",focusVisibleClassName:k.focusVisible,...g&&{disableRipple:!0}}:{};let N=null;g&&(N=u&&S.isValidElement(u)?S.cloneElement(u,{className:ce(u.props.className,k.deleteIcon),onClick:V}):b.jsx(y_,{className:k.deleteIcon,onClick:V}));let z=null;s&&S.isValidElement(s)&&(z=S.cloneElement(s,{className:ce(k.avatar,s.props.className)}));let A=null;m&&S.isValidElement(m)&&(A=S.cloneElement(m,{className:ce(k.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&z&&A&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const F={slots:I,slotProps:E},[W,K]=Ye("root",{elementType:S_,externalForwardedProps:{...F,...R},ownerState:O,shouldForwardComponentProp:!0,ref:L,className:ce(k.root,i),additionalProps:{disabled:P&&d?!0:void 0,tabIndex:C&&d?-1:w,...D},getSlotProps:X=>({...X,onClick:ne=>{var q;(q=X.onClick)==null||q.call(X,ne),f==null||f(ne)},onKeyDown:ne=>{var q;(q=X.onKeyDown)==null||q.call(X,ne),j(ne)},onKeyUp:ne=>{var q;(q=X.onKeyUp)==null||q.call(X,ne),v(ne)}})}),[Z,Y]=Ye("label",{elementType:C_,externalForwardedProps:F,ownerState:O,className:k.label});return b.jsxs(W,{as:_,...K,children:[z||A,b.jsx(Z,{...Y,children:h}),N]})});process.env.NODE_ENV!=="production"&&(Im.propTypes={avatar:r.element,children:dC,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,slotProps:r.shape({label:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({label:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const Em=320,Om=336,_m=232,w_=48,T_=["items","changeImportance"],I_=["getValue"],E_=te(vl,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function km(e){const{items:t,changeImportance:n="accept"}=e,o=xe(e,T_),{setValue:s}=VT(),i=jT();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=xe(l,I_);const d=c({isValid:i});return M({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(E_,M({dense:!0,sx:[{maxHeight:Om,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Tm,{children:b.jsx(Im,M({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(km.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const O_=["ownerState"];function __(e){return e.view!==null}const k_=(e,t)=>{const{pickerOrientation:n}=t;return tt({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},xm,e)},P_=e=>{const{ownerState:t,defaultActionBarActions:n}=pt(),{view:o}=zo(),s=Dn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=S.useMemo(()=>M({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=k_(c,u),m=(a==null?void 0:a.actionBar)??wm,h=ze({elementType:m,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),f=xe(h,O_),g=b.jsx(m,M({},f)),p=a==null?void 0:a.toolbar,y=ze({elementType:p,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),x=__(y)&&p?b.jsx(p,M({},y)):null,T=i,w=a==null?void 0:a.tabs,C=o&&w?b.jsx(w,M({className:d.tabs},l==null?void 0:l.tabs)):null,I=(a==null?void 0:a.shortcuts)??km,E=ze({elementType:I,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),R=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,$=o&&I?b.jsx(I,M({},E)):null;return{toolbar:x,content:T,tabs:C,actionBar:g,shortcuts:$,ownerState:M({},u,{hasShortcuts:R})}},R_=["sx","className","classes","children","slots","slotProps"],N_=(e,t)=>{const{pickerOrientation:n}=t;return tt({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},xm,e)},M_=te("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Un.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Un.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Un.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Un.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Un.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Un.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Un.shortcuts}`]:{gridColumn:4}}}]}),$_=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),vi=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=P_(o),{orientation:d,variant:m}=zo(),{sx:h,className:f,classes:g}=o,p=xe(o,R_),y=N_(g,u);return b.jsxs(M_,M({ref:n,sx:h,className:ce(y.root,f),ownerState:u},p,{children:[d==="landscape"?c:s,d==="landscape"?s:c,b.jsx($_,{className:y.contentWrapper,ownerState:u,children:m==="desktop"?b.jsxs(S.Fragment,{children:[i,a]}):b.jsxs(S.Fragment,{children:[a,i]})}),l]}))});process.env.NODE_ENV!=="production"&&(vi.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(vi.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Pm(e){const{steps:t}=e;return QO({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:s,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const D_=["props","steps"],A_=["ownerState"],j_=e=>{var E;let{props:t,steps:n}=e,o=xe(e,D_);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Pm({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=vm(M({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),f=d.privateContextValue.labelId,g=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,p=s.field,y=ze({elementType:p,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Nf(t),additionalProps:M({},g&&{id:f}),ownerState:h}),x=xe(y,A_),T=s.layout??vi;let w=f;g&&(a?w=`${f}-label`:w=void 0);const C=M({},i,{toolbar:M({},i==null?void 0:i.toolbar,{titleId:f}),popper:M({"aria-labelledby":w},i==null?void 0:i.popper)}),I=()=>b.jsxs(jf,M({},d,{children:[b.jsx(p,M({},x,{slots:M({},s,x.slots),slotProps:M({},C,x.slotProps),inputRef:l})),b.jsx(YO,{slots:s,slotProps:C,children:b.jsx(T,M({},C==null?void 0:C.layout,{slots:s,slotProps:C,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}};function L_(e){return ot("MuiPickersArrowSwitcher",e)}st("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const V_=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],F_=["ownerState"],B_=["ownerState"],z_=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),W_=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Qu=te(Jn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),U_=e=>tt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},L_,e),Rm=S.forwardRef(function(t,n){const o=Dn(),s=Be({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:m,nextLabel:h,isPreviousDisabled:f,isPreviousHidden:g,onGoToPrevious:p,previousLabel:y,labelId:x,classes:T}=s,w=xe(s,V_),{ownerState:C}=pt(),I=U_(T),E={isDisabled:u,isHidden:d,goTo:m,label:h},R={isDisabled:f,isHidden:g,goTo:p,label:y},$=(l==null?void 0:l.previousIconButton)??Qu,L=ze({elementType:$,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:M({},C,{isButtonHidden:R.isHidden??!1}),className:ce(I.button,I.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Qu,j=ze({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:M({},C,{isButtonHidden:E.isHidden??!1}),className:ce(I.button,I.nextIconButton)}),v=(l==null?void 0:l.leftArrowIcon)??x0,P=ze({elementType:v,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:I.leftArrowIcon}),_=xe(P,F_),O=(l==null?void 0:l.rightArrowIcon)??S0,k=ze({elementType:O,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:I.rightArrowIcon}),D=xe(k,B_);return b.jsxs(z_,M({ref:n,className:ce(I.root,a),ownerState:C},w,{children:[b.jsx($,M({},L,{children:o?b.jsx(O,M({},D)):b.jsx(v,M({},_))})),i?b.jsx(no,{variant:"subtitle1",component:"span",id:x,children:i}):b.jsx(W_,{className:I.spacer,ownerState:C}),b.jsx(V,M({},j,{children:o?b.jsx(v,M({},_)):b.jsx(O,M({},D))}))]}))});process.env.NODE_ENV!=="production"&&(Rm.displayName="PickersArrowSwitcher");const Sl=te("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Em,maxHeight:Om,display:"flex",flexDirection:"column",margin:"0 auto"});function H_(e){return ot("MuiTimeClock",e)}st("MuiTimeClock",["root","arrowSwitcher"]);const Fo=220,ln=36,Tr={x:Fo/2,y:Fo/2},Nm={x:Tr.x,y:0},q_=Nm.x-Tr.x,Y_=Nm.y-Tr.y,G_=e=>e*(180/Math.PI),Mm=(e,t,n)=>{const o=t-Tr.x,s=n-Tr.y,i=Math.atan2(q_,Y_)-Math.atan2(o,s);let a=G_(i);a=Math.round(a/e)*e,a%=360;const l=Math.floor(a/e)||0,c=o**2+s**2,u=Math.sqrt(c);return{value:l,distance:u}},K_=(e,t,n=1)=>{const o=n*6;let{value:s}=Mm(o,e,t);return s=s*n%60,s},X_=(e,t,n)=>{const{value:o,distance:s}=Mm(30,e,t);let i=o||12;return n?i%=12:s<Fo/2-ln&&(i+=12,i%=24),i};function Q_(e){return ot("MuiClockPointer",e)}st("MuiClockPointer",["root","thumb"]);const Z_=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],J_=e=>tt({root:["root"],thumb:["thumb"]},Q_,e),ek=te("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),tk=te("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${ln/2}px)`,border:`${(ln-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function nk(e){const t=Be({props:e,name:"MuiClockPointer"}),{className:n,classes:o,isBetweenTwoClockValues:s,isInner:i,type:a,viewValue:l}=t,c=xe(t,Z_),u=S.useRef(a);S.useEffect(()=>{u.current=a},[a]);const{ownerState:d}=pt(),m=M({},d,{isClockPointerAnimated:u.current!==a,isClockPointerBetweenTwoValues:s}),h=J_(o),f=()=>{let p=360/(a==="hours"?12:60)*l;return a==="hours"&&l>12&&(p-=360),{height:Math.round((i?.26:.4)*Fo),transform:`rotateZ(${p}deg)`}};return b.jsx(ek,M({style:f(),className:ce(h.root,n),ownerState:m},c,{children:b.jsx(tk,{ownerState:m,className:h.thumb})}))}function ok(e){return ot("MuiClock",e)}st("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const rk=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return tt(n,ok,e)},sk=te("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),ik=te("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),ak=te("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),lk=te("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),ck=te("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),$m=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:ln,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),uk=te(Jn,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>M({},$m(e,"am"),{position:"absolute",left:8})),dk=te(Jn,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>M({},$m(e,"pm"),{position:"absolute",right:8})),Zu=te(no,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function pk(e){const t=Be({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:s,children:i,value:a,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:m,selectedId:h,type:f,viewValue:g,viewRange:[p,y],disabled:x=!1,readOnly:T,className:w,classes:C}=t,I=nt(),E=Qt(),{ownerState:R}=pt(),$=M({},R,{isClockDisabled:x,clockMeridiemMode:u}),L=S.useRef(!1),V=S.useRef(null),j=S.useRef(null),v=S.useRef(void 0),P=rk(C,$),_=c(g,f),O=!n&&f==="hours"&&(g<1||g>12),k=(B,H)=>{x||T||c(B,f)||m(B,H)},D=(B,H)=>{const ae=j.current;if(!ae)return;const G=ae.getBoundingClientRect(),de=B.clientX-G.left,oe=B.clientY-G.top,ye=f==="seconds"||f==="minutes"?K_(de,oe,d):X_(de,oe,!!n);k(ye,H)},N=()=>{var B;L.current=!1,V.current=null,(B=v.current)==null||B.call(v)},z=ve(B=>{B.pointerId===V.current&&(B.preventDefault(),D(B,"shallow"))}),A=ve(B=>{B.pointerId===V.current&&(N(),D(B,"finish"))}),F=ve(B=>{B.pointerId===V.current&&N()}),W=B=>{if(B.button>0||B.isPrimary===!1||x||T)return;N(),L.current=!0,V.current=B.pointerId;const H=Io(j.current);H.addEventListener("pointermove",z),H.addEventListener("pointerup",A),H.addEventListener("pointercancel",F),v.current=()=>{H.removeEventListener("pointermove",z),H.removeEventListener("pointerup",A),H.removeEventListener("pointercancel",F),v.current=void 0},D(B.nativeEvent,"shallow")},K=f==="hours"?!1:g%5!==0,Z=f==="minutes"?d:1,Y=S.useRef(null);mn(()=>{s&&Y.current.focus()},[s]),S.useEffect(()=>()=>{var B;return(B=v.current)==null?void 0:B.call(v)},[]);const X=B=>Math.max(p,Math.min(y,B)),ne=B=>(B+(y+1))%(y+1),q=B=>{if(!L.current)switch(B.key){case"Home":k(p,"partial"),B.preventDefault();break;case"End":k(y,"partial"),B.preventDefault();break;case"ArrowUp":k(ne(g+Z),"partial"),B.preventDefault();break;case"ArrowDown":k(ne(g-Z),"partial"),B.preventDefault();break;case"PageUp":k(X(g+5),"partial"),B.preventDefault();break;case"PageDown":k(X(g-5),"partial"),B.preventDefault();break;case"Enter":case" ":k(g,"finish"),B.preventDefault();break}};return b.jsxs(sk,{className:ce(P.root,w),children:[b.jsxs(ik,{className:P.clock,children:[b.jsx(lk,{ref:j,onPointerDown:W,ownerState:$,className:P.squareMask}),!_&&b.jsxs(S.Fragment,{children:[b.jsx(ck,{className:P.pin}),a!=null&&b.jsx(nk,{type:f,viewValue:g,isInner:O,isBetweenTwoClockValues:K})]}),b.jsx(ak,{"aria-activedescendant":h,"aria-label":E.clockLabelText(f,a==null?null:I.format(a,n?"fullTime12h":"fullTime24h")),ref:Y,role:"listbox",onKeyDown:q,tabIndex:0,className:P.wrapper,children:i})]}),n&&o&&b.jsxs(S.Fragment,{children:[b.jsx(uk,{onClick:T?void 0:()=>l("am"),disabled:x||u===null,ownerState:$,className:P.amButton,title:En(I,"am"),children:b.jsx(Zu,{variant:"caption",className:P.meridiemText,children:En(I,"am")})}),b.jsx(dk,{disabled:x||u===null,onClick:T?void 0:()=>l("pm"),ownerState:$,className:P.pmButton,title:En(I,"pm"),children:b.jsx(Zu,{variant:"caption",className:P.meridiemText,children:En(I,"pm")})})]})]})}function fk(e){return ot("MuiClockNumber",e)}const Zr=st("MuiClockNumber",["root","selected","disabled"]),mk=["className","classes","disabled","index","inner","label","selected"],hk=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return tt(n,fk,e)},gk=te("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Zr.disabled}`]:t.disabled},{[`&.${Zr.selected}`]:t.selected}]})(({theme:e})=>({height:ln,width:ln,position:"absolute",left:`calc((100% - ${ln}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Zr.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Zr.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Dm(e){const t=Be({props:e,name:"MuiClockNumber"}),{className:n,classes:o,disabled:s,index:i,inner:a,label:l,selected:c}=t,u=xe(t,mk),{ownerState:d}=pt(),m=M({},d,{isClockNumberInInnerRing:a,isClockNumberSelected:c,isClockNumberDisabled:s}),h=hk(o,m),f=i%12/12*Math.PI*2-Math.PI/2,g=(Fo-ln-2)/2*(a?.65:1),p=Math.round(Math.cos(f)*g),y=Math.round(Math.sin(f)*g);return b.jsx(gk,M({className:ce(h.root,n),"aria-disabled":s?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${y+(Fo-ln)/2}px`},ownerState:m},u,{children:l}))}const bk=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:s,adapter:i})=>{const a=t?i.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=m=>a===null?!1:e?m===12?a===12||a===0:a===m||a-12===m:a===m;for(let m=c;m<=u;m+=1){let h=m.toString();m===0&&(h="00");const f=!e&&(m===0||m>12);h=i.formatNumber(h);const g=d(m);l.push(b.jsx(Dm,{id:g?s:void 0,index:m,inner:f,selected:g,disabled:o(m),label:h,"aria-label":n(h)},m))}return l},Ju=({adapter:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:s})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,l],c)=>{const u=a===t;return b.jsx(Dm,{label:l,id:u?s:void 0,index:c+1,inner:!1,disabled:n(a),selected:u,"aria-label":o(l)},a)})},Cl=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=S.useMemo(()=>jn.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:Cn.day,timezone:s,getTodayDate:()=>qa(n,s,"date")}),[t,s]);return e??i},yk=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],vk=e=>tt({root:["root"],arrowSwitcher:["arrowSwitcher"]},H_,e),xk=te(Sl,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),Sk=te(Rm,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),Ck=["hours","minutes"],wl=S.forwardRef(function(t,n){const o=nt(),s=Be({props:t,name:"MuiTimeClock"}),{ampm:i=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:m,referenceDate:h,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:g,minTime:p,disableFuture:y,disablePast:x,minutesStep:T=1,shouldDisableTime:w,showViewSwitcher:C,onChange:I,view:E,views:R=Ck,openTo:$,onViewChange:L,focusedView:V,onFocusedViewChange:j,className:v,classes:P,disabled:_,readOnly:O,timezone:k}=s,D=xe(s,yk),{value:N,handleValueChange:z,timezone:A}=Mr({name:"TimeClock",timezone:k,value:d,defaultValue:m,referenceDate:h,onChange:I,valueManager:jn}),F=Cl({value:N,referenceDate:h,adapter:o,props:s,timezone:A}),W=Qt(),K=ol(A),Z=sl(),{ownerState:Y}=pt(),{view:X,setView:ne,previousView:q,nextView:B,setValueAndGoToNextView:H}=yi({view:E,views:R,openTo:$,onViewChange:L,onChange:z,focusedView:V,onFocusedViewChange:j}),{meridiemMode:ae,handleMeridiemChange:G}=dl(F,i,H),de=S.useCallback((me,re)=>{const J=Nr(f,o),ge=re==="hours"||re==="minutes"&&R.includes("seconds"),ie=({start:se,end:Ie})=>!(p&&J(p,Ie)||g&&J(se,g)||y&&J(se,K)||x&&J(K,ge?Ie:se)),he=(se,Ie=1)=>{if(se%Ie!==0)return!1;if(w)switch(re){case"hours":return!w(o.setHours(F,se),"hours");case"minutes":return!w(o.setMinutes(F,se),"minutes");case"seconds":return!w(o.setSeconds(F,se),"seconds");default:return!1}return!0};switch(re){case"hours":{const se=vr(me,ae,i),Ie=o.setHours(F,se);if(o.getHours(Ie)!==se)return!0;const ke=o.setSeconds(o.setMinutes(Ie,0),0),bt=o.setSeconds(o.setMinutes(Ie,59),59);return!ie({start:ke,end:bt})||!he(se)}case"minutes":{const se=o.setMinutes(F,me),Ie=o.setSeconds(se,0),ke=o.setSeconds(se,59);return!ie({start:Ie,end:ke})||!he(me,T)}case"seconds":{const se=o.setSeconds(F,me);return!ie({start:se,end:se})||!he(me)}default:throw new Error("not supported")}},[i,F,f,g,ae,p,T,w,o,y,x,K,R]),oe=S.useMemo(()=>{switch(X){case"hours":{const me=(ge,ie)=>{const he=vr(ge,ae,i);H(o.setHours(F,he),ie,"hours")},re=o.getHours(F);let J;return i?re>12?J=[12,23]:J=[0,11]:J=[0,23],{onChange:me,viewValue:re,children:bk({value:N,adapter:o,ampm:i,getClockNumberText:W.hoursClockNumberText,isDisabled:ge=>_||de(ge,"hours"),selectedId:Z}),viewRange:J}}case"minutes":{const me=o.getMinutes(F);return{viewValue:me,onChange:(J,ge)=>{H(o.setMinutes(F,J),ge,"minutes")},children:Ju({adapter:o,value:me,getClockNumberText:W.minutesClockNumberText,isDisabled:J=>_||de(J,"minutes"),selectedId:Z}),viewRange:[0,59]}}case"seconds":{const me=o.getSeconds(F);return{viewValue:me,onChange:(J,ge)=>{H(o.setSeconds(F,J),ge,"seconds")},children:Ju({adapter:o,value:me,getClockNumberText:W.secondsClockNumberText,isDisabled:J=>_||de(J,"seconds"),selectedId:Z}),viewRange:[0,59]}}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must provide the type for ClockView":Oe(147))}},[X,o,N,i,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,ae,H,F,de,Z,_]),ye=vk(P);return b.jsxs(xk,M({ref:n,className:ce(ye.root,v),ownerState:Y},D,{children:[b.jsx(pk,M({autoFocus:l??!!V,ampmInClock:a&&R.includes("hours"),value:N,type:X,ampm:i,minutesStep:T,isTimeDisabled:de,meridiemMode:ae,handleMeridiemChange:G,selectedId:Z,disabled:_,readOnly:O},oe)),C&&b.jsx(Sk,{className:ye.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>ne(q),isPreviousDisabled:!q,previousLabel:W.openPreviousView,onGoToNext:()=>ne(B),isNextDisabled:!B,nextLabel:W.openNextView,ownerState:Y})]}))});process.env.NODE_ENV!=="production"&&(wl.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(wl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,showViewSwitcher:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const ed=we("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),td=we("MuiListItemIcon",["root","alignItemsFlexStart"]),nd=we("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function wk(e){return _e("MuiMenuItem",e)}const Qo=we("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function Am(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ai(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function od(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Zo(e,t,n,o,s,i){let a=!1,l=s(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!jm(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const Tl=S.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,f=S.useRef(null),g=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kn(()=>{s&&f.current.focus()},[s]),S.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const I=!f.current.style.width;if(w.clientHeight<f.current.clientHeight&&I){const E=`${Am(yr(w))}px`;f.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,f.current.style.width=`calc(100% + ${E})`}return f.current}}),[]);const p=w=>{const C=f.current,I=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const R=rr(Gt(C));if(I==="ArrowDown")w.preventDefault(),Zo(C,R,u,c,Ai);else if(I==="ArrowUp")w.preventDefault(),Zo(C,R,u,c,od);else if(I==="Home")w.preventDefault(),Zo(C,null,u,c,Ai);else if(I==="End")w.preventDefault(),Zo(C,null,u,c,od);else if(I.length===1){const $=g.current,L=I.toLowerCase(),V=performance.now();$.keys.length>0&&(V-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&L!==$.keys[0]&&($.repeating=!1)),$.lastTime=V,$.keys.push(L);const j=R&&!$.repeating&&jm(R,$);$.previousKeyMatched&&(j||Zo(C,R,!1,c,Ai,$))?w.preventDefault():$.previousKeyMatched=!1}d&&d(w)},y=dt(f,n);let x=-1;S.Children.forEach(a,(w,C)=>{if(!S.isValidElement(w)){x===C&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&lw.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
211
|
-
`)),w.props.disabled||(m==="selectedMenu"&&w.props.selected||x===-1)&&(x=C),x===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const T=S.Children.map(a,(w,C)=>{if(C===x){const I={};return i&&(I.autoFocus=!0),w.props.tabIndex===void 0&&m==="selectedMenu"&&(I.tabIndex=0),S.cloneElement(w,I)}return w});return b.jsx(vl,{role:"menu",ref:y,className:l,onKeyDown:p,tabIndex:s?0:-1,...h,children:T})});process.env.NODE_ENV!=="production"&&(Tl.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});function Tk(e){const t=Gt(e);return t.body===e?yr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function fr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rd(e){return parseFloat(yr(e).getComputedStyle(e).paddingRight)||0}function Ik(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function sd(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!Ik(a);l&&c&&fr(a,s)})}function ji(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function Ek(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Tk(o)){const a=Am(yr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${rd(o)+a}px`;const l=Gt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${rd(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Gt(o).body;else{const a=o.parentElement,l=yr(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}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:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function Ok(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _k{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&fr(t.modalRef,!1);const s=Ok(n);sd(n,t.mount,t.modalRef,s,!0);const i=ji(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=ji(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=Ek(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=ji(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&fr(t.modalRef,n),sd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&fr(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function kk(e){return _e("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const Pk=e=>{const{classes:t,invisible:n}=e;return $e({root:["root",n&&"invisible"]},kk,t)},Rk=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Il=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:f,transitionDuration:g,...p}=o,y={...o,component:a,invisible:l},x=Pk(y),T={transition:f,root:u.Root,...h},w={...d,...m},C={component:a,slots:T,slotProps:w},[I,E]=Ye("root",{elementType:Rk,externalForwardedProps:C,className:ce(x.root,i),ownerState:y}),[R,$]=Ye("transition",{elementType:$o,externalForwardedProps:C,ownerState:y});return b.jsx(R,{in:c,timeout:g,...p,...$,children:b.jsx(I,{"aria-hidden":!0,...E,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(Il.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function Nk(e){return typeof e=="function"?e():e}function Mk(e){return e?e.props.hasOwnProperty("in"):!1}const id=()=>{},Jr=new _k;function $k(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,m=S.useRef({}),h=S.useRef(null),f=S.useRef(null),g=dt(f,d),[p,y]=S.useState(!u),x=Mk(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const w=()=>Gt(h.current),C=()=>(m.current.modalRef=f.current,m.current.mount=h.current,m.current),I=()=>{Jr.mount(C(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},E=To(()=>{const O=Nk(t)||w().body;Jr.add(C(),O),f.current&&I()}),R=()=>Jr.isTopModal(C()),$=To(O=>{h.current=O,O&&(u&&R()?I():f.current&&fr(f.current,T))}),L=S.useCallback(()=>{Jr.remove(C(),T)},[T]);S.useEffect(()=>()=>{L()},[L]),S.useEffect(()=>{u?E():(!x||!s)&&L()},[u,L,x,s,E]);const V=O=>k=>{var D;(D=O.onKeyDown)==null||D.call(O,k),!(k.key!=="Escape"||k.which===229||!R())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},j=O=>k=>{var D;(D=O.onClick)==null||D.call(O,k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(O={})=>{const k=cf(e);delete k.onTransitionEnter,delete k.onTransitionExited;const D={...k,...O};return{role:"presentation",...D,onKeyDown:V(D),ref:g}},getBackdropProps:(O={})=>{const k=O;return{"aria-hidden":!0,...k,onClick:j(k),open:u}},getTransitionProps:()=>{const O=()=>{y(!1),i&&i()},k=()=>{y(!0),a&&a(),s&&L()};return{onEnter:Cc(O,(l==null?void 0:l.props.onEnter)??id),onExited:Cc(k,(l==null?void 0:l.props.onExited)??id)}},rootRef:g,portalRef:$,isTopModal:R,exited:p,hasTransition:x}}function Dk(e){return _e("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const Ak=e=>{const{open:t,exited:n,classes:o}=e;return $e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Dk,o)},jk=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Lk=te(Il,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Lm=S.forwardRef(function(t,n){const o=We({name:"MuiModal",props:t}),{BackdropComponent:s=Lk,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:T=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:I=!1,onClose:E,onTransitionEnter:R,onTransitionExited:$,open:L,slotProps:V={},slots:j={},theme:v,...P}=o,_={...o,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:T,disableScrollLock:w,hideBackdrop:C,keepMounted:I},{getRootProps:O,getBackdropProps:k,getTransitionProps:D,portalRef:N,isTopModal:z,exited:A,hasTransition:F}=$k({..._,rootRef:n}),W={..._,exited:A},K=Ak(W),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),F){const{onEnter:H,onExited:ae}=D();Z.onEnter=H,Z.onExited=ae}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...j},slotProps:{...f,...V}},[X,ne]=Ye("root",{ref:n,elementType:jk,externalForwardedProps:{...Y,...P,component:m},getSlotProps:O,ownerState:W,className:ce(l,K==null?void 0:K.root,!W.open&&W.exited&&(K==null?void 0:K.hidden))}),[q,B]=Ye("backdrop",{ref:i==null?void 0:i.ref,elementType:s,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:H=>k({...H,onClick:ae=>{H!=null&&H.onClick&&H.onClick(ae)}}),className:ce(i==null?void 0:i.className,K==null?void 0:K.backdrop),ownerState:W});return!I&&!L&&(!F||A)?null:b.jsx(Cr,{ref:N,container:d,disablePortal:x,children:b.jsxs(X,{...ne,children:[!C&&s?b.jsx(q,{...B}):null,b.jsx(wr,{disableEnforceFocus:p,disableAutoFocus:g,disableRestoreFocus:T,isEnabled:z,open:L,children:S.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(Lm.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:Dr.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Do,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const El=S.createContext(null);process.env.NODE_ENV!=="production"&&(El.displayName="SelectFocusSourceContext");function Vk(){return S.useContext(El)}El.Provider;function Fk(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}const Bk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},zk=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:i,classes:a}=e,c=$e({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},wk,a);return{...a,...c}},Wk=te(Zn,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Bk})(Ke(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Qo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Qo.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Qo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ed.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ed.inset}`]:{marginLeft:52},[`& .${nd.root}`]:{marginTop:0,marginBottom:0},[`& .${nd.inset}`]:{paddingLeft:36},[`& .${td.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${td.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ol=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...f}=o,g=Vk(),p=S.useContext(_n),y=S.useMemo(()=>({dense:a||p.dense||!1,disableGutters:c}),[p.dense,a,c]),x=S.useRef(null);kn(()=>{s&&(x.current?Fk(x.current,g):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const T={...o,dense:y.dense,divider:l,disableGutters:c},w=zk(o),C=dt(x,n),{root:I,...E}=w;let R;return o.disabled||(R=m!==void 0?m:-1),b.jsx(_n.Provider,{value:y,children:b.jsx(Wk,{ref:C,role:d,tabIndex:R,component:i,focusVisibleClassName:ce(w.focusVisible,u),className:ce(w.root,h),...f,ownerState:T,classes:E})})});process.env.NODE_ENV!=="production"&&(Ol.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function Uk(e){return ot("MuiDigitalClock",e)}st("MuiDigitalClock",["root","list","item"]);const Hk=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],qk=e=>tt({root:["root"],list:["list"],item:["item"]},Uk,e),Yk=te(Sl,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:_m,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),Gk=te(Tl,{name:"MuiDigitalClock",slot:"List"})({padding:0}),Kk=te(Ol,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),_l=S.forwardRef(function(t,n){const o=nt(),s=S.useRef(null),i=gt(n,s),a=S.useRef(null),l=S.useRef(null),c=Be({props:t,name:"MuiDigitalClock"}),{ampm:u=o.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:m,slots:h,slotProps:f,value:g,defaultValue:p,referenceDate:y,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:T,minTime:w,disableFuture:C,disablePast:I,minutesStep:E=1,shouldDisableTime:R,onChange:$,view:L,openTo:V,onViewChange:j,focusedView:v,onFocusedViewChange:P,className:_,classes:O,disabled:k,readOnly:D,views:N=["hours"],skipDisabled:z=!1,timezone:A}=c,F=xe(c,Hk),{value:W,handleValueChange:K,timezone:Z}=Mr({name:"DigitalClock",timezone:A,value:g,defaultValue:p,referenceDate:y,onChange:$,valueManager:jn}),Y=Qt(),X=ol(Z),{ownerState:ne}=pt(),q=M({},ne,{hasDigitalClockAlreadyBeenRendered:!!s.current}),B=qk(O),H=(h==null?void 0:h.digitalClockItem)??Kk,ae=ze({elementType:H,externalSlotProps:f==null?void 0:f.digitalClockItem,ownerState:q,className:B.item}),G=Cl({value:W,referenceDate:y,adapter:o,props:c,timezone:Z}),de=ve(ie=>K(ie,"finish","hours")),{setValueAndGoToNextView:oe}=yi({view:L,views:N,openTo:V,onViewChange:j,onChange:de,focusedView:v,onFocusedViewChange:P}),ye=ve(ie=>{oe(ie,"finish")});mn(()=>{if(s.current===null)return;const ie=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const he=ie.offsetTop;(m||v)&&ie!==l.current&&(l.current=ie,ie.focus()),s.current.scrollTop=he-4});const me=S.useCallback(ie=>{const he=Nr(x,o),se=()=>!(w&&he(w,ie)||T&&he(ie,T)||C&&he(ie,X)||I&&he(X,ie)),Ie=()=>o.getMinutes(ie)%E!==0?!1:R?!R(ie,"hours"):!0;return!se()||!Ie()},[x,o,w,T,C,X,I,E,R]),re=S.useMemo(()=>{const ie=[];let se=o.startOfDay(G);for(;o.isSameDay(G,se);)ie.push(se),se=o.addMinutes(se,d);return ie},[G,d,o]),J=re.findIndex(ie=>o.isEqual(ie,G)),ge=ie=>{switch(ie.key){case"PageUp":{const he=Ts(a.current)-5,se=a.current.children,Ie=Math.max(0,he),ke=se[Ie];ke&&ke.focus(),ie.preventDefault();break}case"PageDown":{const he=Ts(a.current)+5,se=a.current.children,Ie=Math.min(se.length-1,he),ke=se[Ie];ke&&ke.focus(),ie.preventDefault();break}}};return b.jsx(Yk,M({ref:i,className:ce(B.root,_),ownerState:q},F,{children:b.jsx(Gk,{ref:a,role:"listbox","aria-label":Y.timePickerToolbarTitle,className:B.list,onKeyDown:ge,children:re.map((ie,he)=>{const se=me(ie);if(z&&se)return null;const Ie=o.isEqual(ie,W),ke=o.format(ie,u?"fullTime12h":"fullTime24h"),Ue=J===he||J===-1&&he===0?0:-1;return b.jsx(H,M({onClick:()=>!D&&ye(ie),selected:Ie,disabled:k||se,disableRipple:D,role:"option","aria-disabled":D,"aria-selected":Ie,tabIndex:Ue,itemValue:ie,formattedValue:ke},ae,{children:ke}),`${ie.valueOf()}-${ke}`)})})}))});process.env.NODE_ENV!=="production"&&(_l.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(_l.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function Xk(e){return ot("MuiMultiSectionDigitalClock",e)}st("MuiMultiSectionDigitalClock",["root"]);function Qk(e){return ot("MuiMultiSectionDigitalClockSection",e)}st("MuiMultiSectionDigitalClockSection",["root","item"]);const Zk=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Jk=e=>tt({root:["root"],item:["item"]},Qk,e),e1=te(Tl,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:_m,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),t1=te(Ol,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:w_,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),Vm=S.forwardRef(function(t,n){const o=S.useRef(null),s=gt(n,o),i=S.useRef(null),a=S.useRef(!1),l=Be({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:u,className:d,classes:m,disabled:h,readOnly:f,items:g,active:p,slots:y,slotProps:x,skipDisabled:T}=l,w=xe(l,Zk),{ownerState:C}=pt(),I=M({},C,{hasDigitalClockAlreadyBeenRendered:!!o.current}),E=Jk(m),R=(y==null?void 0:y.digitalClockSectionItem)??t1;mn(()=>{if(o.current===null)return;const j=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(!j)return;const v=document.activeElement,P=i.current===j,_=!!v&&o.current.contains(v),O=P&&a.current;if(p&&c&&(!P||O)&&(i.current==null||a.current||_)&&(i.current=j,a.current=!1,j.focus()),P)return;const k=j.offsetTop,D=j.offsetHeight,N=o.current.clientHeight,z=o.current.scrollHeight,A=k-N/2+D/2,F=z-N,W=Math.min(A,F);o.current.scrollTop=Math.max(0,W)});const $=ve(j=>{const v=j.relatedTarget,P=v==null?void 0:v.parentElement,_=v==null?void 0:v.getAttribute("role"),O=(P==null?void 0:P.nodeName)==="UL"&&P!==o.current||_==="gridcell";a.current=O,i.current&&(P==null?void 0:P.nodeName)==="UL"&&P!==o.current&&(i.current=null)});S.useEffect(()=>{p||(i.current=null)},[p]);const L=g.findIndex(j=>j.isFocused(j.value)),V=ve(j=>{switch(j.key){case"Tab":{a.current=!0;break}case"PageUp":{const v=Ts(o.current)-5,P=o.current.children,_=Math.max(0,v),O=P[_];O&&O.focus(),j.preventDefault();break}case"PageDown":{const v=Ts(o.current)+5,P=o.current.children,_=Math.min(P.length-1,v),O=P[_];O&&O.focus(),j.preventDefault();break}}});return b.jsx(e1,M({ref:s,className:ce(E.root,d),ownerState:I,role:"listbox",onKeyDown:V,onBlur:$},w,{children:g.map((j,v)=>{var D;const P=(D=j.isDisabled)==null?void 0:D.call(j,j.value),_=h||P;if(T&&_)return null;const O=j.isSelected(j.value),k=L===v||L===-1&&v===0?0:-1;return b.jsx(R,M({onClick:()=>!f&&u(j.value),selected:O,disabled:_,disableRipple:f,role:"option","aria-disabled":f||_||void 0,"aria-label":j.ariaLabel,"aria-selected":O,tabIndex:k,className:E.item},x==null?void 0:x.digitalClockSectionItem,{children:j.label}),j.label)})}))});process.env.NODE_ENV!=="production"&&(Vm.displayName="MultiSectionDigitalClockSection");const n1=({now:e,value:t,adapter:n,ampm:o,isDisabled:s,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(g,p)=>{const y=p??c;return y===null?!1:o?g===12?y===12||y===0:y===g||y-12===g:y===g},m=g=>d(g,n.getHours(l)),h=n.setDate(n.setMonth(n.startOfDay(e),0),15),f=o?11:23;for(let g=0;g<=f;g+=a){let p=n.format(n.setHours(h,g),o?"hours12h":"hours24h");const y=i(parseInt(p,10).toString());p=n.formatNumber(p),u.push({value:g,label:p,isSelected:d,isDisabled:s,isFocused:m,ariaLabel:y})}return u},ad=({value:e,adapter:t,isDisabled:n,timeStep:o,resolveLabel:s,resolveAriaLabel:i,hasValue:a=!0})=>{const l=u=>e===null?!1:a&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const m=o*d;return{value:m,label:t.formatNumber(s(m)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:i(m.toString())}})]},o1=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],r1=e=>tt({root:["root"]},Xk,e),s1=te(Sl,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),kl=S.forwardRef(function(t,n){const o=nt(),s=Dn(),i=Be({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:m,defaultValue:h,referenceDate:f,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:p,minTime:y,disableFuture:x,disablePast:T,minutesStep:w=1,shouldDisableTime:C,onChange:I,view:E,views:R=["hours","minutes"],openTo:$,onViewChange:L,focusedView:V,onFocusedViewChange:j,className:v,classes:P,disabled:_,readOnly:O,skipDisabled:k=!1,timezone:D}=i,N=xe(i,o1),{value:z,handleValueChange:A,timezone:F}=Mr({name:"MultiSectionDigitalClock",timezone:D,value:m,defaultValue:h,referenceDate:f,onChange:I,valueManager:jn}),W=Qt(),K=ol(F),Z=S.useMemo(()=>M({hours:1,minutes:5,seconds:5},l),[l]),Y=Cl({value:z,referenceDate:f,adapter:o,props:i,timezone:F}),X=ve((ie,he,se)=>A(ie,he,se)),ne=S.useMemo(()=>!a||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[a,R]),{view:q,setValueAndGoToNextView:B,focusedView:H}=yi({view:E,views:ne,openTo:$,onViewChange:L,onChange:X,focusedView:V,onFocusedViewChange:j}),ae=ve(ie=>{B(ie,"finish","meridiem")}),{meridiemMode:G,handleMeridiemChange:de}=dl(Y,a,ae,"finish"),oe=S.useCallback((ie,he)=>{const se=Nr(g,o),Ie=he==="hours"||he==="minutes"&&ne.includes("seconds"),ke=({start:Ue,end:ct})=>!(y&&se(y,ct)||p&&se(Ue,p)||x&&se(Ue,K)||T&&se(K,Ie?ct:Ue)),bt=(Ue,ct=1)=>{if(Ue%ct!==0)return!1;if(C)switch(he){case"hours":return!C(o.setHours(Y,Ue),"hours");case"minutes":return!C(o.setMinutes(Y,Ue),"minutes");case"seconds":return!C(o.setSeconds(Y,Ue),"seconds");default:return!1}return!0};switch(he){case"hours":{const Ue=vr(ie,G,a),ct=o.setHours(Y,Ue);if(o.getHours(ct)!==Ue)return!0;const Wt=o.setSeconds(o.setMinutes(ct,0),0),Fr=o.setSeconds(o.setMinutes(ct,59),59);return!ke({start:Wt,end:Fr})||!bt(Ue)}case"minutes":{const Ue=o.setMinutes(Y,ie),ct=o.setSeconds(Ue,0),Wt=o.setSeconds(Ue,59);return!ke({start:ct,end:Wt})||!bt(ie,w)}case"seconds":{const Ue=o.setSeconds(Y,ie);return!ke({start:Ue,end:Ue})||!bt(ie)}default:throw new Error("not supported")}},[a,Y,g,p,G,y,w,C,o,x,T,K,ne]),ye=S.useCallback(ie=>{switch(ie){case"hours":return{onChange:he=>{const se=vr(he,G,a);B(o.setHours(Y,se),"finish","hours")},items:n1({now:K,value:z,ampm:a,adapter:o,isDisabled:he=>oe(he,"hours"),timeStep:Z.hours,resolveAriaLabel:W.hoursClockNumberText,valueOrReferenceDate:Y})};case"minutes":return{onChange:he=>{B(o.setMinutes(Y,he),"finish","minutes")},items:ad({value:o.getMinutes(Y),adapter:o,isDisabled:he=>oe(he,"minutes"),resolveLabel:he=>o.format(o.setMinutes(K,he),"minutes"),timeStep:Z.minutes,hasValue:!!z,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:he=>{B(o.setSeconds(Y,he),"finish","seconds")},items:ad({value:o.getSeconds(Y),adapter:o,isDisabled:he=>oe(he,"seconds"),resolveLabel:he=>o.format(o.setSeconds(K,he),"seconds"),timeStep:Z.seconds,hasValue:!!z,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const he=En(o,"am"),se=En(o,"pm");return{onChange:de,items:[{value:"am",label:he,isSelected:()=>!!z&&G==="am",isFocused:()=>!!Y&&G==="am",ariaLabel:he},{value:"pm",label:se,isSelected:()=>!!z&&G==="pm",isFocused:()=>!!Y&&G==="pm",ariaLabel:se}]}}default:throw new Error(process.env.NODE_ENV!=="production"?`MUI X Date Pickers: Unknown view "${ie}" found in MultiSectionDigitalClock. This view is not supported by the component. Use valid view values: "hours", "minutes", "seconds", or "meridiem".`:Oe(144,ie))}},[K,z,a,o,Z.hours,Z.minutes,Z.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,G,B,Y,oe,de]),me=S.useMemo(()=>{if(!s)return ne;const ie=ne.filter(he=>he!=="meridiem");return ie.reverse(),ne.includes("meridiem")&&ie.push("meridiem"),ie},[s,ne]),re=S.useMemo(()=>ne.reduce((ie,he)=>M({},ie,{[he]:ye(he)}),{}),[ne,ye]),{ownerState:J}=pt(),ge=r1(P);return b.jsx(s1,M({ref:n,className:ce(ge.root,v),ownerState:J,role:"group"},N,{children:me.map(ie=>b.jsx(Vm,{items:re[ie].items,onChange:re[ie].onChange,active:q===ie,autoFocus:c||H===ie,disabled:_,readOnly:O,slots:u,slotProps:d,skipDisabled:k,"aria-label":W.selectViewText(ie)},ie))}))});process.env.NODE_ENV!=="production"&&(kl.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(kl.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const fs=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,ampmInClock:T,slots:w,slotProps:C,readOnly:I,disabled:E,sx:R,autoFocus:$,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:j})=>b.jsx(wl,{view:e,onViewChange:t,focusedView:n&&No(n)?n:null,onFocusedViewChange:o,views:s.filter(No),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,ampmInClock:T,slots:w,slotProps:C,readOnly:I,disabled:E,sx:R,autoFocus:$,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:j});process.env.NODE_ENV!=="production"&&(fs.displayName="renderTimeViewClock");const Fm=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:V,timezone:j})=>b.jsx(_l,{view:e,onViewChange:t,focusedView:n&&No(n)?n:null,onFocusedViewChange:o,views:s.filter(No),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeStep:L==null?void 0:L.minutes,skipDisabled:V,timezone:j});process.env.NODE_ENV!=="production"&&(Fm.displayName="renderDigitalClockTimeView");const la=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:V,timezone:j})=>b.jsx(kl,{view:e,onViewChange:t,focusedView:n&&If(n)?n:null,onFocusedViewChange:o,views:s.filter(No),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:V,timezone:j});process.env.NODE_ENV!=="production"&&(la.displayName="renderMultiSectionDigitalClockTimeView");const i1=(e,t,n)=>n?t.filter(o=>!If(o)||o==="hours"):e?[...t,"meridiem"]:t,a1=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function l1({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=M({hours:1,minutes:5,seconds:5},n),a=a1(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:i1(t,o,a)}}const Pl=S.forwardRef(function(t,n){var p,y;const o=nt(),s=em(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:l}=l1(s),c=i?Fm:la,u=M({hours:c,minutes:c,seconds:c,meridiem:c},s.viewRenderers),d=s.ampmInClock??!0,h=((p=u.hours)==null?void 0:p.name)===la.name?a:a.filter(x=>x!=="meridiem"),f=M({},s,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:Of(o,s),views:i?["hours"]:h,slots:M({field:mi},s.slots),slotProps:M({},s.slotProps,{field:x=>{var T;return M({},Ro((T=s.slotProps)==null?void 0:T.field,x),Af(s))},toolbar:M({hidden:!0,ampmInClock:d},(y=s.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:g}=j_({ref:n,props:f,valueManager:jn,valueType:"time",validator:si,steps:null});return g()});process.env.NODE_ENV!=="production"&&(Pl.displayName="DesktopTimePicker");process.env.NODE_ENV!=="production"&&(Pl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:gn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});function c1(e){return _e("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);const u1=we("MuiDialogTitle",["root"]),d1=e=>{const{classes:t,dividers:n}=e;return $e({root:["root",n&&"dividers"]},c1,t)},p1=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${u1.root} + &`]:{paddingTop:0}}}]}))),Bm=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=o,l={...o,dividers:i},c=d1(l);return b.jsx(p1,{className:ce(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Bm.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function f1(e){return _e("MuiDialog",e)}const mr=we("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),zm=S.createContext({});process.env.NODE_ENV!=="production"&&(zm.displayName="DialogContext");const m1=te(Il,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),h1=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(o))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return $e(a,f1,t)},g1=te(Lm,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),b1=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),y1=te(Ar,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${mr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${mr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${mr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Wm=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialog"}),s=Rr(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:m,className:h,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:y="sm",onClick:x,onClose:T,open:w,PaperComponent:C=Ar,PaperProps:I={},role:E="dialog",scroll:R="paper",slots:$={},slotProps:L={},TransitionComponent:V=$o,transitionDuration:j=i,TransitionProps:v,...P}=o,_={...o,disableEscapeKeyDown:f,fullScreen:g,fullWidth:p,maxWidth:y,scroll:R},O=h1(_),k=S.useRef(),D=oe=>{k.current=oe.target===oe.currentTarget},N=oe=>{x&&x(oe),k.current&&(k.current=null,T&&T(oe,"backdropClick"))},z=Va(l),A=S.useMemo(()=>({titleId:z}),[z]),F={transition:V,...$},W={transition:v,paper:I,backdrop:d,...L},K={slots:F,slotProps:W},[Z,Y]=Ye("root",{elementType:g1,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:_,className:ce(O.root,h),ref:n}),[X,ne]=Ye("backdrop",{elementType:m1,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:_,className:O.backdrop}),[q,B]=Ye("paper",{elementType:y1,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:_,className:O.paper,additionalProps:{elevation:24,role:E,"aria-describedby":a,"aria-labelledby":z,"aria-modal":c,tabIndex:-1,[aa]:""}}),[H,ae]=Ye("container",{elementType:b1,externalForwardedProps:K,ownerState:_,className:O.container}),[G,de]=Ye("transition",{elementType:$o,externalForwardedProps:K,ownerState:_,additionalProps:{appear:!0,in:w,timeout:j,role:"presentation"}});return b.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:X},slotProps:{backdrop:{transitionDuration:j,as:u,...ne}},disableEscapeKeyDown:f,onClose:T,open:w,onClick:N,...Y,...P,children:b.jsx(G,{...de,children:b.jsx(H,{onMouseDown:D,...ae,children:b.jsx(q,{as:C,...B,children:b.jsx(zm.Provider,{value:A,children:m})})})})})});process.env.NODE_ENV!=="production"&&(Wm.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,role:r.oneOf(["alertdialog","dialog"]),scroll:r.oneOf(["body","paper"]),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),container:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,container:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const v1=te(Wm,{slot:"internal"})({[`& .${mr.container}`]:{outline:0},[`& .${mr.paper}`]:{outline:0,minWidth:Em}}),x1=te(Bm,{slot:"internal"})({"&:first-of-type":{padding:0}});function S1(e){var c,u;const{children:t,slots:n,slotProps:o}=e,{open:s}=zo(),{dismissViews:i,onPopperExited:a}=pt(),l=(n==null?void 0:n.dialog)??v1;return b.jsx(l,M({open:s,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{PaperComponent:n==null?void 0:n.mobilePaper,slots:M({transition:(n==null?void 0:n.mobileTransition)??$o},(c=o==null?void 0:o.dialog)==null?void 0:c.slots),slotProps:M({transition:o==null?void 0:o.mobileTransition,paper:o==null?void 0:o.mobilePaper},(u=o==null?void 0:o.dialog)==null?void 0:u.slotProps),children:b.jsx(x1,{children:t})}))}const C1=["props","steps"],w1=["ownerState"],T1=e=>{var E;let{props:t,steps:n}=e,o=xe(e,C1);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Pm({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=vm(M({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),f=d.privateContextValue.labelId,g=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,p=s.field,y=ze({elementType:p,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Nf(t),additionalProps:M({},g&&{id:f}),ownerState:h}),x=xe(y,w1),T=s.layout??vi;let w=f;g&&(a?w=`${f}-label`:w=void 0);const C=M({},i,{toolbar:M({},i==null?void 0:i.toolbar,{titleId:f}),mobilePaper:M({"aria-labelledby":w},i==null?void 0:i.mobilePaper)}),I=()=>b.jsxs(jf,M({},d,{children:[b.jsx(p,M({},x,{slots:M({},s,x.slots),slotProps:M({},C,x.slotProps),inputRef:l})),b.jsx(S1,{slots:s,slotProps:C,children:b.jsx(T,M({},C==null?void 0:C.layout,{slots:s,slotProps:C,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}},Rl=S.forwardRef(function(t,n){var u;const o=nt(),s=em(t,"MuiMobileTimePicker"),i=M({hours:fs,minutes:fs,seconds:fs},s.viewRenderers),a=s.ampmInClock??!1,l=M({},s,{ampmInClock:a,viewRenderers:i,format:Of(o,s),slots:M({field:mi},s.slots),slotProps:M({},s.slotProps,{field:d=>{var m;return M({},Ro((m=s.slotProps)==null?void 0:m.field,d),Af(s))},toolbar:M({hidden:!1,ampmInClock:a},(u=s.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=T1({ref:n,props:l,valueManager:jn,valueType:"time",validator:si,steps:null});return c()});process.env.NODE_ENV!=="production"&&(Rl.displayName="MobileTimePicker");process.env.NODE_ENV!=="production"&&(Rl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:gn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const I1=["desktopModeMediaQuery"],Nl=S.forwardRef(function(t,n){const o=Be({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s=IT}=o,i=xe(o,I1);return wf(s,{defaultMatches:!0})?b.jsx(Pl,M({ref:n},i)):b.jsx(Rl,M({ref:n},i))});process.env.NODE_ENV!=="production"&&(Nl.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(Nl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:gn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Um=Q.forwardRef(function(t,n){const{overStyled:o=!1,disabled:s,data:i,onChange:a,className:l,value:c,defaultValue:u,error:d,...m}=t,h=fe(m,o),f=h;delete f.size,delete f.variant,delete f.className;const g=l?`${mt.root} ${l}`:mt.root,p=c??u,y=()=>i.map((x,T)=>typeof x=="string"?b.jsx(pe.MenuItem,{value:x,className:mt.option,"data-selected":x===p?"true":void 0,children:x},`${x}-${T}`):b.jsx(pe.MenuItem,{value:x.value,disabled:x.disabled,className:mt.option,"data-selected":x.value===p?"true":void 0,children:x.label},`${x.value}-${T}`));return b.jsx(pe.Select,{ref:n,disabled:s,value:c,defaultValue:u,onChange:x=>a==null?void 0:a(x.target.value??null),displayEmpty:!0,error:!!d,className:g,classes:{select:mt.input,icon:mt.icon},MenuProps:{classes:{paper:mt.dropdown}},"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,inputProps:{"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,...f.inputProps},...h,children:y()})});Um.displayName="BareDropdown";const E1="TimePicker-module__layoutOverride___zKo4Q",O1="TimePicker-module__root___BcvRu",_1="TimePicker-module__field___lOxtw",k1="TimePicker-module__amPmSelect___mSdvt",Jo={layoutOverride:E1,root:O1,field:_1,amPmSelect:k1};it.extend(Cf);const Hm="HH:mm:ss",qm="HH:mm",P1=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function xo(e){if(!e)return;const t=e.length>5?Hm:qm;return it(e,t)}function R1(e){const t=xo(e);return t?t.format(e&&e.length>5?"h:mm:ss A":"h:mm A"):e}const Ym=Q.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:T,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:R,onChange:$,withSeconds:L,minTime:V,maxTime:j,...v}=t,P=fe(v,o),[_,O]=Q.useState(()=>xo(E)??xo(R)??null);Q.useEffect(()=>{E!==void 0&&O(xo(E)??null)},[E]);const k=_?_.hour()>=12:!1,D=y?`${Jo.layoutOverride} ${y}`:Jo.layoutOverride,N=F=>{O(F),$==null||$(F?F.format(L?Hm:qm):null)},z=F=>{N(F)},A=F=>{if(!_||!F)return;const W=F==="PM",K=_.hour(),Z=K>=12;if(W===Z)return;const Y=W?K+12:K-12;N(_.hour(Y))};return b.jsx(Bt,{ref:n,className:D,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:C,emptyValueComponent:I||void 0,readOnlyType:"text",readOnlyValue:R1(E!==void 0?E:R),readOnlyNativeProps:t,activeComponent:b.jsxs("div",{className:Jo.root,"data-error":f?"true":void 0,children:[b.jsx(ni,{dateAdapter:rT,children:b.jsx(Nl,{...P,value:_,onChange:z,disabled:T,format:`hh:${L?"mm:ss":"mm"}`,views:L?["hours","minutes","seconds"]:["hours","minutes"],minTime:xo(V),maxTime:xo(j),slots:{openPickerButton:()=>null},slotProps:{field:{className:Jo.field}}})}),b.jsx(Um,{overStyled:!0,className:Jo.amPmSelect,style:{width:"fit-content"},data:P1,value:k?"PM":"AM",onChange:A,disabled:T,error:!!f,"aria-label":"AM or PM"})]})})});Ym.displayName="TimePicker";const N1="Timeline-module__root___LwRdZ",M1="Timeline-module__item___T5xdQ",$1="Timeline-module__itemBody___XAV-E",D1="Timeline-module__itemBullet___rPXCy",A1="Timeline-module__itemTitle___GgRRW",j1="Timeline-module__itemContent___vurs-",L1="Timeline-module__description___f9sxV",V1="Timeline-module__timestamp___owiRu",xn={root:N1,item:M1,itemBody:$1,itemBullet:D1,itemTitle:A1,itemContent:j1,description:L1,timestamp:V1},Ml=Q.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:s,children:i,...a},l){const c=fe(a,t),u={item:xn.item,itemBody:xn.itemBody,itemContent:xn.itemContent,itemBullet:xn.itemBullet,itemTitle:xn.itemTitle},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;Object.keys(h).forEach(f=>{u[f]?u[f]=`${u[f]} ${h[f]}`:u[f]=h[f]})}const m=n?b.jsxs(b.Fragment,{children:[i&&b.jsx("div",{className:xn.description,children:i}),b.jsx("div",{className:xn.timestamp,children:n})]}):i;return b.jsx(hf,{ref:l,...c,classes:u,"data-variant":o,children:m})});Ml.displayName="TimelineItem";const Gm=Q.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i={root:xn.root},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const l=a;Object.keys(l).forEach(c=>{i[c]?i[c]=`${i[c]} ${l[c]}`:i[c]=l[c]})}return b.jsx(mf,{ref:o,...s,classes:i})});Gm.displayName="Timeline";const Km=Gm;Km.Item=Ml;const Xm=Q.forwardRef(function({order:t=1,component:n,...o},s){const i=`recursica_brand_typography_h${t}`,a=`h${t}`;return b.jsx(ti,{ref:s,typographyClass:i,component:n||a,...o})});Xm.displayName="Title";const F1="Toast-module__root___MUvfI",B1="Toast-module__icon___VwvE1",z1="Toast-module__title___-H6R2",W1="Toast-module__description___-QwfC",U1="Toast-module__closeButton___vGr7g",H1="Toast-module__body___VLkXA",fo={root:F1,icon:B1,title:z1,description:W1,closeButton:U1,body:H1},q1=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),Qm=Q.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:s,icon:i,children:a,onClose:l,className:c,...u},d){const m=fe(u,t),h={root:fo.root,message:fo.body,icon:fo.icon,action:fo.closeButton},f=m.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const p=f;Object.keys(p).forEach(y=>{h[y]?h[y]=`${h[y]} ${p[y]}`:h[y]=p[y]})}const g=()=>{l&&l()};return b.jsxs(pe.Alert,{ref:d,...m,icon:i,"data-variant":n,className:`${c||""}`,classes:h,action:o?b.jsx(pe.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:g,children:b.jsx(q1,{})}):void 0,children:[s&&b.jsx(pe.AlertTitle,{className:fo.title,children:s}),b.jsx("div",{className:fo.description,children:a})]})});Qm.displayName="Toast";const Y1="Tooltip-module__tooltip___UA7H9",G1="Tooltip-module__arrow___4zROk",ld={tooltip:Y1,arrow:G1},Zm=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:s,...i}){const{title:a,...l}=i,c=fe(l,t),u={tooltip:ld.tooltip,arrow:ld.arrow},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;Object.keys(f).forEach(g=>{u[g]?u[g]=`${u[g]} ${f[g]}`:u[g]=f[g]})}const m=c.withArrow,h=n??m;return b.jsx(pe.Tooltip,{...c,title:o||a||"",open:s,placement:"top",arrow:h,classes:u})};Zm.displayName="Tooltip";const K1=Zm,X1=e=>b.jsx("div",{...e,children:"TransferList"}),cd={};function Jm(e,t){const n=S.useRef(cd);return n.current===cd&&(n.current=e(t)),n}function ca(e,t,n,o){const s=Jm(Q1).current;return Z1(s,e,t,n,o)&&J1(s,[e,t,n,o]),s.callback}function Q1(){return{callback:null,cleanup:null,refs:[]}}function Z1(e,t,n,o,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==s}function J1(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(o[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=o[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}var eP=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const s={};e(s)===s&&(o=!0)}catch{}if(o){let s;try{throw new Error}catch(i){({stack:s}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
220
|
+
`))},[JSON.stringify(g)]));const{timezone:T,value:w,handleValueChange:C}=Vr({name:"a picker component",timezone:c,value:s,defaultValue:g,referenceDate:l,onChange:a,valueManager:n}),[I,E]=S.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:R}=Uf({props:t,validator:o,timezone:T,value:w,onError:t.onError}),$=ve(v=>{const P=typeof v=="function"?v(I.open):v;y||E(O=>M({},O,{open:P})),P&&h&&h(),P||f==null||f()}),L=ve((v,P)=>{const{changeImportance:O="accept",skipPublicationIfPristine:_=!1,validationError:k,shortcut:D,source:N,shouldClose:z=O==="accept"}=P??{};let j,B;!_&&!p&&!I.hasBeenModifiedSinceMount?(j=!0,B=O==="accept"):(j=!n.areValuesEqual(x,v,w),B=O==="accept"&&!n.areValuesEqual(x,v,I.lastCommittedValue)),E(Z=>M({},Z,{clockShallowValue:j?void 0:Z.clockShallowValue,lastCommittedValue:B?v:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const X=()=>{if(!W){let Z;N?Z=N:D?Z="view":Z="unknown",W={validationError:k??R(v),source:Z},D&&(W.shortcut=D)}return W};j&&C(v,X()),B&&u&&u(v,X()),z&&$(!1)});w!==I.lastExternalValue&&E(v=>M({},v,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=ve((v,P="partial")=>{if(P==="shallow"){E(O=>M({},O,{clockShallowValue:v,hasBeenModifiedSinceMount:!0}));return}L(v,{changeImportance:P==="finish"&&d?"accept":"set",source:"view"})});S.useEffect(()=>{if(y){if(m===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must not mix controlling and uncontrolled mode for `open` prop":ke(160));E(v=>M({},v,{open:m}))}},[y,m]);const A=S.useMemo(()=>n.cleanValue(x,I.clockShallowValue===void 0?w:I.clockShallowValue),[x,n,I.clockShallowValue,w]);return{timezone:T,state:I,setValue:L,setValueFromView:V,setOpen:$,value:w,viewValue:A}}const gO=["className","sx"],Im=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:m})=>{const{views:h,view:f,openTo:g,onViewChange:p,viewRenderers:y,reduceAnimations:x,orientation:T,disableOpenPicker:w,closeOnSelect:C,disabled:I,readOnly:E,formatDensity:R,selectedSections:$,onSelectedSectionsChange:L,format:V,label:A,autoFocus:v,name:P,keepOpenDuringFieldFocus:O}=t,{className:_,sx:k}=t,D=Se(t,gO),N=fl(),z=st(),j=pO(x),B=mO(h,T),{current:W}=S.useRef(g??null),[X,Z]=S.useState(null),Y=S.useRef(null),Q=S.useRef(null),ne=S.useRef(null),H=yt(e,ne),{timezone:F,state:q,setOpen:ae,setValue:G,setValueFromView:ue,value:oe,viewValue:ye}=hO({props:t,valueManager:n,validator:i}),{view:he,setView:re,defaultView:J,focusedView:ge,setFocusedView:ie,setValueAndGoToNextView:me,goToNextStep:se,hasNextStep:Ie,hasSeveralSteps:Pe}=wi({view:f,views:h,openTo:g,onChange:ue,onViewChange:p,autoFocus:l,getStepNavigation:m}),xe=ve(()=>{var Xe;oe===null&&((Xe=Q.current)!=null&&Xe.clearValue)&&Q.current.clearValue(),G(n.emptyValue,{source:"view"})}),Ce=ve(()=>G(n.getTodayValue(z,F,o),{source:"view"})),Ne=ve(()=>G(oe,{source:"view"})),rt=ve(()=>G(q.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),yn=ve(()=>{G(oe,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:zn,viewModeLookup:Wn,timeViewsCount:co}=S.useMemo(()=>h.reduce((Xe,At)=>{const cc=y[At]==null?"field":"UI";return Xe.viewModeLookup[At]=cc,cc==="UI"&&(Xe.hasUIView=!0,Lo(At)&&(Xe.timeViewsCount+=1)),Xe},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,h]),Un=Wn[he],Hr=ve(()=>Un),[Et,sc]=S.useState(Un==="UI"?he:null);Et!==he&&Wn[he]==="UI"&&sc(he),hn(()=>{Un==="field"&&q.open&&(ae(!1),setTimeout(()=>{var Xe,At;(Xe=Q==null?void 0:Q.current)==null||Xe.setSelectedSections(he),(At=Q==null?void 0:Q.current)==null||At.focusField(he)}))},[he]),hn(()=>{if(!q.open)return;let Xe=he;Un==="field"&&Et!=null&&(Xe=Et),Xe!==J&&Wn[Xe]==="UI"&&Wn[J]==="UI"&&(Xe=J),Xe!==he&&re(Xe),ie(Xe,!0)},[q.open]);const Ei=S.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(z,oe,n.emptyValue),isPickerOpen:q.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:B,pickerVariant:s}),[z,n,oe,q.open,B,s,t.disabled,t.readOnly]),ic=S.useMemo(()=>w||!zn?"hidden":I||E?"disabled":"enabled",[w,zn,I,E]),ac=ve(se),lc=S.useMemo(()=>C&&!Pe?[]:["cancel","nextOrAccept"],[C,Pe]),_i=S.useMemo(()=>({setValue:G,setOpen:ae,clearValue:xe,setValueToToday:Ce,acceptValueChanges:Ne,cancelValueChanges:rt,setView:re,goToNextStep:ac}),[G,ae,xe,Ce,Ne,rt,re,ac]),jh=S.useMemo(()=>M({},_i,{value:oe,timezone:F,open:q.open,views:h,view:Et,initialView:W,disabled:I??!1,readOnly:E??!1,autoFocus:v??!1,variant:s,orientation:B,popupRef:Y,reduceAnimations:j,triggerRef:Z,triggerStatus:ic,keepOpenDuringFieldFocus:!!O,hasNextStep:Ie,fieldFormat:V??"",name:P,label:A,rootSx:k,rootRef:H,rootClassName:_}),[_i,oe,H,s,B,j,I,E,V,_,P,A,k,ic,O,Ie,F,q.open,Et,h,W,v]),Lh=S.useMemo(()=>({dismissViews:yn,ownerState:Ei,hasUIView:zn,getCurrentViewMode:Hr,rootRefObject:ne,labelId:N,triggerElement:X,viewContainerRole:d,defaultActionBarActions:lc,onPopperExited:a}),[yn,Ei,zn,Hr,N,X,d,lc,a]),Vh=S.useMemo(()=>({formatDensity:R,selectedSections:$,onSelectedSectionsChange:L,internalFieldRef:Q}),[R,$,L,Q]);return{providerProps:{localeText:u,contextValue:jh,privateContextValue:Lh,actionsContextValue:_i,fieldPrivateContextValue:Vh,isValidContextValue:Xe=>{const At=i({adapter:z,value:Xe,timezone:F,props:t});return!n.hasError(At)}},renderCurrentView:()=>{if(Et==null)return null;const Xe=y[Et];if(Xe==null)return null;const At=M({},D,{views:h,timezone:F,value:ye,onChange:me,view:Et,onViewChange:re,showViewSwitcher:co>1,timeViewsCount:co},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ge,onFocusedViewChange:ie});return c?b.jsx(c,{viewRenderers:y,popperView:Et,rendererProps:At}):Xe(At)},ownerState:Ei}};function Em(e){return it("MuiPickersLayout",e)}const Kn=lt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function bO(e){return Re("MuiDialogActions",e)}Ee("MuiDialogActions",["root","spacing"]);const yO=e=>{const{classes:t,disableSpacing:n}=e;return je({root:["root",!n&&"spacing"]},bO,t)},vO=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_m=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=yO(l);return b.jsx(vO,{className:ce(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(_m.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const xO=["actions"],SO=te(_m,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Om(e){const{actions:t}=e,n=Se(e,xO),o=Zt(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Go();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(m=>{switch(m){case"clear":return b.jsx(nn,{onClick:s,children:o.clearButtonLabel},m);case"cancel":return b.jsx(nn,{onClick:l,children:o.cancelButtonLabel},m);case"accept":return b.jsx(nn,{onClick:a,children:o.okButtonLabel},m);case"today":return b.jsx(nn,{onClick:i,children:o.todayButtonLabel},m);case"next":return b.jsx(nn,{onClick:c,children:o.nextStepButtonLabel},m);case"nextOrAccept":return u?b.jsx(nn,{onClick:c,children:o.nextStepButtonLabel},m):b.jsx(nn,{onClick:a,children:o.okButtonLabel},m);default:return null}});return b.jsx(SO,M({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Om.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const km=S.memo(Om);process.env.NODE_ENV!=="production"&&(km.displayName="PickersActionBar");const Pn=S.createContext({});process.env.NODE_ENV!=="production"&&(Pn.displayName="ListContext");function CO(e){return Re("MuiList",e)}Ee("MuiList",["root","padding","dense","subheader"]);const wO=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return je({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},CO,t)},TO=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),_l=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,m=S.useMemo(()=>({dense:l}),[l]),h={...o,component:a,dense:l,disablePadding:c},f=wO(h);return b.jsx(Pn.Provider,{value:m,children:b.jsxs(TO,{as:a,className:ce(f.root,i),ref:n,ownerState:h,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(_l.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function IO(e){return Re("MuiListItem",e)}Ee("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const EO=Ee("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function _O(e){return Re("MuiListItemSecondaryAction",e)}Ee("MuiListItemSecondaryAction",["root","disableGutters"]);const OO=e=>{const{disableGutters:t,classes:n}=e;return je({root:["root",t&&"disableGutters"]},_O,n)},kO=te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ol=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,a=S.useContext(Pn),l={...o,disableGutters:a.disableGutters},c=OO(l);return b.jsx(kO,{className:ce(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ol.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});Ol.muiName="ListItemSecondaryAction";const PO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},RO=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return je({root:["root",o&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},IO,n)},NO=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:PO})(Qe(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${EO.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),MO=te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Pm=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:m,...h}={},dense:f=!1,disableGutters:g=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:x,slotProps:T={},slots:w={},...C}=o,I=S.useContext(Pn),E=S.useMemo(()=>({dense:f||I.dense||!1,alignItems:s,disableGutters:g}),[s,I.dense,f,g]),R=S.useRef(null),$=S.Children.toArray(i),L=$.length&&ko($[$.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:s,dense:E.dense,disableGutters:g,disablePadding:p,divider:y,hasSecondaryAction:L},A=RO(V),v=ft(R,n),P={slots:w,slotProps:T},[O,_]=Ke("secondaryAction",{elementType:Ol,externalForwardedProps:P,ownerState:V,className:A.secondaryAction}),k=w.root||c.Root||NO,D=T.root||u.root||{},N={className:ce(A.root,D.className,a),...C};let z=l||"li";return L?(z=!N.component&&!l?"div":z,d==="li"&&(z==="li"?z="div":N.component==="li"&&(N.component="div")),b.jsx(Pn.Provider,{value:E,children:b.jsxs(MO,{as:d,className:ce(A.container,m),ref:v,ownerState:V,...h,children:[b.jsx(k,{...D,...!ia(k)&&{as:z,ownerState:{...V,...D.ownerState}},...N,children:$}),$.pop()]})})):b.jsx(Pn.Provider,{value:E,children:b.jsxs(k,{...D,as:z,ref:v,...!ia(k)&&{ownerState:{...V,...D.ownerState}},...N,children:[$,x&&b.jsx(O,{..._,children:x})]})})});process.env.NODE_ENV!=="production"&&(Pm.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:Ln(r.node,e=>{const t=S.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if(ko(s,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.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:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:Xa,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object,secondaryAction:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,secondaryAction:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const $O=at(b.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 DO(e){return Re("MuiChip",e)}const _e=Ee("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"]),AO=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${le(o)}`,`color${le(s)}`,l&&"clickable",l&&`clickableColor${le(s)}`,a&&"deletable",a&&`deletableColor${le(s)}`,`${c}${le(s)}`],label:["label",`label${le(o)}`],avatar:["avatar",`avatar${le(o)}`,`avatarColor${le(s)}`],icon:["icon",`icon${le(o)}`,`iconColor${le(i)}`],deleteIcon:["deleteIcon",`deleteIcon${le(o)}`,`deleteIconColor${le(s)}`,`deleteIcon${le(c)}Color${le(s)}`]};return je(u,DO,t)},jO=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${_e.avatar}`]:t.avatar},{[`& .${_e.avatar}`]:t[`avatar${le(l)}`]},{[`& .${_e.avatar}`]:t[`avatarColor${le(o)}`]},{[`& .${_e.icon}`]:t.icon},{[`& .${_e.icon}`]:t[`icon${le(l)}`]},{[`& .${_e.icon}`]:t[`iconColor${le(s)}`]},{[`& .${_e.deleteIcon}`]:t.deleteIcon},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${le(l)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIconColor${le(o)}`]},{[`& .${_e.deleteIcon}`]:t[`deleteIcon${le(c)}Color${le(o)}`]},t.root,t[`size${le(l)}`],t[`color${le(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${le(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${le(o)}`],t[c],t[`${c}${le(o)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${_e.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${_e.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${_e.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${_e.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${_e.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${_e.icon}`]:{marginLeft:5,marginRight:-6},[`& .${_e.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${_e.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${_e.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(bt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${_e.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${_e.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${_e.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${_e.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(bt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${_e.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${_e.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(bt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${_e.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_e.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${_e.avatar}`]:{marginLeft:4},[`& .${_e.avatarSmall}`]:{marginLeft:2},[`& .${_e.icon}`]:{marginLeft:4},[`& .${_e.iconSmall}`]:{marginLeft:2},[`& .${_e.deleteIcon}`]:{marginRight:5},[`& .${_e.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(bt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${_e.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${_e.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${_e.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),LO=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${le(o)}`]]}})({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 ed(e){return e.key==="Backspace"||e.key==="Delete"}const Rm=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:f,onDelete:g,onKeyDown:p,onKeyUp:y,size:x="medium",variant:T="filled",tabIndex:w,skipFocusWhenDisabled:C=!1,slots:I={},slotProps:E={},...R}=o,$=S.useRef(null),L=ft($,n),V=Q=>{Q.stopPropagation(),g(Q)},A=Q=>{Q.currentTarget===Q.target&&ed(Q)&&Q.preventDefault(),p&&p(Q)},v=Q=>{Q.currentTarget===Q.target&&g&&ed(Q)&&g(Q),y&&y(Q)},P=a!==!1&&f?!0:a,O=P||g?oo:c||"div",_={...o,component:O,disabled:d,size:x,color:l,iconColor:S.isValidElement(m)&&m.props.color||l,onDelete:!!g,clickable:P,variant:T},k=AO(_),D=O===oo?{component:c||"div",focusVisibleClassName:k.focusVisible,...g&&{disableRipple:!0}}:{};let N=null;g&&(N=u&&S.isValidElement(u)?S.cloneElement(u,{className:ce(u.props.className,k.deleteIcon),onClick:V}):b.jsx($O,{className:k.deleteIcon,onClick:V}));let z=null;s&&S.isValidElement(s)&&(z=S.cloneElement(s,{className:ce(k.avatar,s.props.className)}));let j=null;m&&S.isValidElement(m)&&(j=S.cloneElement(m,{className:ce(k.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&z&&j&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const B={slots:I,slotProps:E},[W,X]=Ke("root",{elementType:jO,externalForwardedProps:{...B,...R},ownerState:_,shouldForwardComponentProp:!0,ref:L,className:ce(k.root,i),additionalProps:{disabled:P&&d?!0:void 0,tabIndex:C&&d?-1:w,...D},getSlotProps:Q=>({...Q,onClick:ne=>{var H;(H=Q.onClick)==null||H.call(Q,ne),f==null||f(ne)},onKeyDown:ne=>{var H;(H=Q.onKeyDown)==null||H.call(Q,ne),A(ne)},onKeyUp:ne=>{var H;(H=Q.onKeyUp)==null||H.call(Q,ne),v(ne)}})}),[Z,Y]=Ke("label",{elementType:LO,externalForwardedProps:B,ownerState:_,className:k.label});return b.jsxs(W,{as:O,...X,children:[z||j,b.jsx(Z,{...Y,children:h}),N]})});process.env.NODE_ENV!=="production"&&(Rm.propTypes={avatar:r.element,children:_C,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,slotProps:r.shape({label:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({label:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const Nm=320,Mm=336,$m=232,VO=48,FO=["items","changeImportance"],BO=["getValue"],zO=te(_l,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Dm(e){const{items:t,changeImportance:n="accept"}=e,o=Se(e,FO),{setValue:s}=t0(),i=JT();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Se(l,BO);const d=c({isValid:i});return M({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(zO,M({dense:!0,sx:[{maxHeight:Mm,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Pm,{children:b.jsx(Rm,M({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Dm.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const WO=["ownerState"];function UO(e){return e.view!==null}const qO=(e,t)=>{const{pickerOrientation:n}=t;return ot({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Em,e)},HO=e=>{const{ownerState:t,defaultActionBarActions:n}=mt(),{view:o}=Go(),s=jn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=S.useMemo(()=>M({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=qO(c,u),m=(a==null?void 0:a.actionBar)??km,h=qe({elementType:m,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),f=Se(h,WO),g=b.jsx(m,M({},f)),p=a==null?void 0:a.toolbar,y=qe({elementType:p,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),x=UO(y)&&p?b.jsx(p,M({},y)):null,T=i,w=a==null?void 0:a.tabs,C=o&&w?b.jsx(w,M({className:d.tabs},l==null?void 0:l.tabs)):null,I=(a==null?void 0:a.shortcuts)??Dm,E=qe({elementType:I,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),R=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,$=o&&I?b.jsx(I,M({},E)):null;return{toolbar:x,content:T,tabs:C,actionBar:g,shortcuts:$,ownerState:M({},u,{hasShortcuts:R})}},YO=["sx","className","classes","children","slots","slotProps"],GO=(e,t)=>{const{pickerOrientation:n}=t;return ot({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Em,e)},KO=te("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Kn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Kn.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Kn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Kn.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Kn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Kn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Kn.shortcuts}`]:{gridColumn:4}}}]}),XO=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ti=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=HO(o),{orientation:d,variant:m}=Go(),{sx:h,className:f,classes:g}=o,p=Se(o,YO),y=GO(g,u);return b.jsxs(KO,M({ref:n,sx:h,className:ce(y.root,f),ownerState:u},p,{children:[d==="landscape"?c:s,d==="landscape"?s:c,b.jsx(XO,{className:y.contentWrapper,ownerState:u,children:m==="desktop"?b.jsxs(S.Fragment,{children:[i,a]}):b.jsxs(S.Fragment,{children:[a,i]})}),l]}))});process.env.NODE_ENV!=="production"&&(Ti.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Ti.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Am(e){const{steps:t}=e;return fO({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:s,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const QO=["props","steps"],ZO=["ownerState"],JO=e=>{var E;let{props:t,steps:n}=e,o=Se(e,QO);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Am({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=Im(M({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),f=d.privateContextValue.labelId,g=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,p=s.field,y=qe({elementType:p,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Lf(t),additionalProps:M({},g&&{id:f}),ownerState:h}),x=Se(y,ZO),T=s.layout??Ti;let w=f;g&&(a?w=`${f}-label`:w=void 0);const C=M({},i,{toolbar:M({},i==null?void 0:i.toolbar,{titleId:f}),popper:M({"aria-labelledby":w},i==null?void 0:i.popper)}),I=()=>b.jsxs(Wf,M({},d,{children:[b.jsx(p,M({},x,{slots:M({},s,x.slots),slotProps:M({},C,x.slotProps),inputRef:l})),b.jsx(cO,{slots:s,slotProps:C,children:b.jsx(T,M({},C==null?void 0:C.layout,{slots:s,slotProps:C,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}};function ek(e){return it("MuiPickersArrowSwitcher",e)}lt("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const tk=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],nk=["ownerState"],ok=["ownerState"],rk=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),sk=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),td=te(ro,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),ik=e=>ot({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},ek,e),jm=S.forwardRef(function(t,n){const o=jn(),s=Ue({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:m,nextLabel:h,isPreviousDisabled:f,isPreviousHidden:g,onGoToPrevious:p,previousLabel:y,labelId:x,classes:T}=s,w=Se(s,tk),{ownerState:C}=mt(),I=ik(T),E={isDisabled:u,isHidden:d,goTo:m,label:h},R={isDisabled:f,isHidden:g,goTo:p,label:y},$=(l==null?void 0:l.previousIconButton)??td,L=qe({elementType:$,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:M({},C,{isButtonHidden:R.isHidden??!1}),className:ce(I.button,I.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??td,A=qe({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:M({},C,{isButtonHidden:E.isHidden??!1}),className:ce(I.button,I.nextIconButton)}),v=(l==null?void 0:l.leftArrowIcon)??A0,P=qe({elementType:v,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:I.leftArrowIcon}),O=Se(P,nk),_=(l==null?void 0:l.rightArrowIcon)??j0,k=qe({elementType:_,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:I.rightArrowIcon}),D=Se(k,ok);return b.jsxs(rk,M({ref:n,className:ce(I.root,a),ownerState:C},w,{children:[b.jsx($,M({},L,{children:o?b.jsx(_,M({},D)):b.jsx(v,M({},O))})),i?b.jsx(ao,{variant:"subtitle1",component:"span",id:x,children:i}):b.jsx(sk,{className:I.spacer,ownerState:C}),b.jsx(V,M({},A,{children:o?b.jsx(v,M({},O)):b.jsx(_,M({},D))}))]}))});process.env.NODE_ENV!=="production"&&(jm.displayName="PickersArrowSwitcher");const kl=te("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Nm,maxHeight:Mm,display:"flex",flexDirection:"column",margin:"0 auto"});function ak(e){return it("MuiTimeClock",e)}lt("MuiTimeClock",["root","arrowSwitcher"]);const Ho=220,cn=36,Pr={x:Ho/2,y:Ho/2},Lm={x:Pr.x,y:0},lk=Lm.x-Pr.x,ck=Lm.y-Pr.y,uk=e=>e*(180/Math.PI),Vm=(e,t,n)=>{const o=t-Pr.x,s=n-Pr.y,i=Math.atan2(lk,ck)-Math.atan2(o,s);let a=uk(i);a=Math.round(a/e)*e,a%=360;const l=Math.floor(a/e)||0,c=o**2+s**2,u=Math.sqrt(c);return{value:l,distance:u}},dk=(e,t,n=1)=>{const o=n*6;let{value:s}=Vm(o,e,t);return s=s*n%60,s},pk=(e,t,n)=>{const{value:o,distance:s}=Vm(30,e,t);let i=o||12;return n?i%=12:s<Ho/2-cn&&(i+=12,i%=24),i};function fk(e){return it("MuiClockPointer",e)}lt("MuiClockPointer",["root","thumb"]);const mk=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],hk=e=>ot({root:["root"],thumb:["thumb"]},fk,e),gk=te("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),bk=te("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${cn/2}px)`,border:`${(cn-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function yk(e){const t=Ue({props:e,name:"MuiClockPointer"}),{className:n,classes:o,isBetweenTwoClockValues:s,isInner:i,type:a,viewValue:l}=t,c=Se(t,mk),u=S.useRef(a);S.useEffect(()=>{u.current=a},[a]);const{ownerState:d}=mt(),m=M({},d,{isClockPointerAnimated:u.current!==a,isClockPointerBetweenTwoValues:s}),h=hk(o),f=()=>{let p=360/(a==="hours"?12:60)*l;return a==="hours"&&l>12&&(p-=360),{height:Math.round((i?.26:.4)*Ho),transform:`rotateZ(${p}deg)`}};return b.jsx(gk,M({style:f(),className:ce(h.root,n),ownerState:m},c,{children:b.jsx(bk,{ownerState:m,className:h.thumb})}))}function vk(e){return it("MuiClock",e)}lt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const xk=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return ot(n,vk,e)},Sk=te("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Ck=te("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),wk=te("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),Tk=te("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Ik=te("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Fm=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:cn,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),Ek=te(ro,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>M({},Fm(e,"am"),{position:"absolute",left:8})),_k=te(ro,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>M({},Fm(e,"pm"),{position:"absolute",right:8})),nd=te(ao,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Ok(e){const t=Ue({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:s,children:i,value:a,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:m,selectedId:h,type:f,viewValue:g,viewRange:[p,y],disabled:x=!1,readOnly:T,className:w,classes:C}=t,I=st(),E=Zt(),{ownerState:R}=mt(),$=M({},R,{isClockDisabled:x,clockMeridiemMode:u}),L=S.useRef(!1),V=S.useRef(null),A=S.useRef(null),v=S.useRef(void 0),P=xk(C,$),O=c(g,f),_=!n&&f==="hours"&&(g<1||g>12),k=(F,q)=>{x||T||c(F,f)||m(F,q)},D=(F,q)=>{const ae=A.current;if(!ae)return;const G=ae.getBoundingClientRect(),ue=F.clientX-G.left,oe=F.clientY-G.top,ye=f==="seconds"||f==="minutes"?dk(ue,oe,d):pk(ue,oe,!!n);k(ye,q)},N=()=>{var F;L.current=!1,V.current=null,(F=v.current)==null||F.call(v)},z=ve(F=>{F.pointerId===V.current&&(F.preventDefault(),D(F,"shallow"))}),j=ve(F=>{F.pointerId===V.current&&(N(),D(F,"finish"))}),B=ve(F=>{F.pointerId===V.current&&N()}),W=F=>{if(F.button>0||F.isPrimary===!1||x||T)return;N(),L.current=!0,V.current=F.pointerId;const q=Ro(A.current);q.addEventListener("pointermove",z),q.addEventListener("pointerup",j),q.addEventListener("pointercancel",B),v.current=()=>{q.removeEventListener("pointermove",z),q.removeEventListener("pointerup",j),q.removeEventListener("pointercancel",B),v.current=void 0},D(F.nativeEvent,"shallow")},X=f==="hours"?!1:g%5!==0,Z=f==="minutes"?d:1,Y=S.useRef(null);hn(()=>{s&&Y.current.focus()},[s]),S.useEffect(()=>()=>{var F;return(F=v.current)==null?void 0:F.call(v)},[]);const Q=F=>Math.max(p,Math.min(y,F)),ne=F=>(F+(y+1))%(y+1),H=F=>{if(!L.current)switch(F.key){case"Home":k(p,"partial"),F.preventDefault();break;case"End":k(y,"partial"),F.preventDefault();break;case"ArrowUp":k(ne(g+Z),"partial"),F.preventDefault();break;case"ArrowDown":k(ne(g-Z),"partial"),F.preventDefault();break;case"PageUp":k(Q(g+5),"partial"),F.preventDefault();break;case"PageDown":k(Q(g-5),"partial"),F.preventDefault();break;case"Enter":case" ":k(g,"finish"),F.preventDefault();break}};return b.jsxs(Sk,{className:ce(P.root,w),children:[b.jsxs(Ck,{className:P.clock,children:[b.jsx(Tk,{ref:A,onPointerDown:W,ownerState:$,className:P.squareMask}),!O&&b.jsxs(S.Fragment,{children:[b.jsx(Ik,{className:P.pin}),a!=null&&b.jsx(yk,{type:f,viewValue:g,isInner:_,isBetweenTwoClockValues:X})]}),b.jsx(wk,{"aria-activedescendant":h,"aria-label":E.clockLabelText(f,a==null?null:I.format(a,n?"fullTime12h":"fullTime24h")),ref:Y,role:"listbox",onKeyDown:H,tabIndex:0,className:P.wrapper,children:i})]}),n&&o&&b.jsxs(S.Fragment,{children:[b.jsx(Ek,{onClick:T?void 0:()=>l("am"),disabled:x||u===null,ownerState:$,className:P.amButton,title:On(I,"am"),children:b.jsx(nd,{variant:"caption",className:P.meridiemText,children:On(I,"am")})}),b.jsx(_k,{disabled:x||u===null,onClick:T?void 0:()=>l("pm"),ownerState:$,className:P.pmButton,title:On(I,"pm"),children:b.jsx(nd,{variant:"caption",className:P.meridiemText,children:On(I,"pm")})})]})]})}function kk(e){return it("MuiClockNumber",e)}const ts=lt("MuiClockNumber",["root","selected","disabled"]),Pk=["className","classes","disabled","index","inner","label","selected"],Rk=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return ot(n,kk,e)},Nk=te("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ts.disabled}`]:t.disabled},{[`&.${ts.selected}`]:t.selected}]})(({theme:e})=>({height:cn,width:cn,position:"absolute",left:`calc((100% - ${cn}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${ts.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${ts.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Bm(e){const t=Ue({props:e,name:"MuiClockNumber"}),{className:n,classes:o,disabled:s,index:i,inner:a,label:l,selected:c}=t,u=Se(t,Pk),{ownerState:d}=mt(),m=M({},d,{isClockNumberInInnerRing:a,isClockNumberSelected:c,isClockNumberDisabled:s}),h=Rk(o,m),f=i%12/12*Math.PI*2-Math.PI/2,g=(Ho-cn-2)/2*(a?.65:1),p=Math.round(Math.cos(f)*g),y=Math.round(Math.sin(f)*g);return b.jsx(Nk,M({className:ce(h.root,n),"aria-disabled":s?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${y+(Ho-cn)/2}px`},ownerState:m},u,{children:l}))}const Mk=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:s,adapter:i})=>{const a=t?i.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=m=>a===null?!1:e?m===12?a===12||a===0:a===m||a-12===m:a===m;for(let m=c;m<=u;m+=1){let h=m.toString();m===0&&(h="00");const f=!e&&(m===0||m>12);h=i.formatNumber(h);const g=d(m);l.push(b.jsx(Bm,{id:g?s:void 0,index:m,inner:f,selected:g,disabled:o(m),label:h,"aria-label":n(h)},m))}return l},od=({adapter:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:s})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,l],c)=>{const u=a===t;return b.jsx(Bm,{label:l,id:u?s:void 0,index:c+1,inner:!1,disabled:n(a),selected:u,"aria-label":o(l)},a)})},Pl=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=S.useMemo(()=>Vn.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:In.day,timezone:s,getTodayDate:()=>el(n,s,"date")}),[t,s]);return e??i},$k=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],Dk=e=>ot({root:["root"],arrowSwitcher:["arrowSwitcher"]},ak,e),Ak=te(kl,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),jk=te(jm,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),Lk=["hours","minutes"],Rl=S.forwardRef(function(t,n){const o=st(),s=Ue({props:t,name:"MuiTimeClock"}),{ampm:i=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:m,referenceDate:h,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:g,minTime:p,disableFuture:y,disablePast:x,minutesStep:T=1,shouldDisableTime:w,showViewSwitcher:C,onChange:I,view:E,views:R=Lk,openTo:$,onViewChange:L,focusedView:V,onFocusedViewChange:A,className:v,classes:P,disabled:O,readOnly:_,timezone:k}=s,D=Se(s,$k),{value:N,handleValueChange:z,timezone:j}=Vr({name:"TimeClock",timezone:k,value:d,defaultValue:m,referenceDate:h,onChange:I,valueManager:Vn}),B=Pl({value:N,referenceDate:h,adapter:o,props:s,timezone:j}),W=Zt(),X=dl(j),Z=fl(),{ownerState:Y}=mt(),{view:Q,setView:ne,previousView:H,nextView:F,setValueAndGoToNextView:q}=wi({view:E,views:R,openTo:$,onViewChange:L,onChange:z,focusedView:V,onFocusedViewChange:A}),{meridiemMode:ae,handleMeridiemChange:G}=vl(B,i,q),ue=S.useCallback((he,re)=>{const J=Lr(f,o),ge=re==="hours"||re==="minutes"&&R.includes("seconds"),ie=({start:se,end:Ie})=>!(p&&J(p,Ie)||g&&J(se,g)||y&&J(se,X)||x&&J(X,ge?Ie:se)),me=(se,Ie=1)=>{if(se%Ie!==0)return!1;if(w)switch(re){case"hours":return!w(o.setHours(B,se),"hours");case"minutes":return!w(o.setMinutes(B,se),"minutes");case"seconds":return!w(o.setSeconds(B,se),"seconds");default:return!1}return!0};switch(re){case"hours":{const se=Ir(he,ae,i),Ie=o.setHours(B,se);if(o.getHours(Ie)!==se)return!0;const Pe=o.setSeconds(o.setMinutes(Ie,0),0),xe=o.setSeconds(o.setMinutes(Ie,59),59);return!ie({start:Pe,end:xe})||!me(se)}case"minutes":{const se=o.setMinutes(B,he),Ie=o.setSeconds(se,0),Pe=o.setSeconds(se,59);return!ie({start:Ie,end:Pe})||!me(he,T)}case"seconds":{const se=o.setSeconds(B,he);return!ie({start:se,end:se})||!me(he)}default:throw new Error("not supported")}},[i,B,f,g,ae,p,T,w,o,y,x,X,R]),oe=S.useMemo(()=>{switch(Q){case"hours":{const he=(ge,ie)=>{const me=Ir(ge,ae,i);q(o.setHours(B,me),ie,"hours")},re=o.getHours(B);let J;return i?re>12?J=[12,23]:J=[0,11]:J=[0,23],{onChange:he,viewValue:re,children:Mk({value:N,adapter:o,ampm:i,getClockNumberText:W.hoursClockNumberText,isDisabled:ge=>O||ue(ge,"hours"),selectedId:Z}),viewRange:J}}case"minutes":{const he=o.getMinutes(B);return{viewValue:he,onChange:(J,ge)=>{q(o.setMinutes(B,J),ge,"minutes")},children:od({adapter:o,value:he,getClockNumberText:W.minutesClockNumberText,isDisabled:J=>O||ue(J,"minutes"),selectedId:Z}),viewRange:[0,59]}}case"seconds":{const he=o.getSeconds(B);return{viewValue:he,onChange:(J,ge)=>{q(o.setSeconds(B,J),ge,"seconds")},children:od({adapter:o,value:he,getClockNumberText:W.secondsClockNumberText,isDisabled:J=>O||ue(J,"seconds"),selectedId:Z}),viewRange:[0,59]}}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must provide the type for ClockView":ke(147))}},[Q,o,N,i,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,ae,q,B,ue,Z,O]),ye=Dk(P);return b.jsxs(Ak,M({ref:n,className:ce(ye.root,v),ownerState:Y},D,{children:[b.jsx(Ok,M({autoFocus:l??!!V,ampmInClock:a&&R.includes("hours"),value:N,type:Q,ampm:i,minutesStep:T,isTimeDisabled:ue,meridiemMode:ae,handleMeridiemChange:G,selectedId:Z,disabled:O,readOnly:_},oe)),C&&b.jsx(jk,{className:ye.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>ne(H),isPreviousDisabled:!H,previousLabel:W.openPreviousView,onGoToNext:()=>ne(F),isNextDisabled:!F,nextLabel:W.openNextView,ownerState:Y})]}))});process.env.NODE_ENV!=="production"&&(Rl.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(Rl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,showViewSwitcher:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const rd=Ee("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sd=Ee("MuiListItemIcon",["root","alignItemsFlexStart"]),id=Ee("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Vk(e){return Re("MuiMenuItem",e)}const or=Ee("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function zm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Bi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ad(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Wm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function rr(e,t,n,o,s,i){let a=!1,l=s(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Wm(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const Nl=S.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,f=S.useRef(null),g=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Nn(()=>{s&&f.current.focus()},[s]),S.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:C})=>{const I=!f.current.style.width;if(w.clientHeight<f.current.clientHeight&&I){const E=`${zm(Tr(w))}px`;f.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=E,f.current.style.width=`calc(100% + ${E})`}return f.current}}),[]);const p=w=>{const C=f.current,I=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const R=ur(Kt(C));if(I==="ArrowDown")w.preventDefault(),rr(C,R,u,c,Bi);else if(I==="ArrowUp")w.preventDefault(),rr(C,R,u,c,ad);else if(I==="Home")w.preventDefault(),rr(C,null,u,c,Bi);else if(I==="End")w.preventDefault(),rr(C,null,u,c,ad);else if(I.length===1){const $=g.current,L=I.toLowerCase(),V=performance.now();$.keys.length>0&&(V-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&L!==$.keys[0]&&($.repeating=!1)),$.lastTime=V,$.keys.push(L);const A=R&&!$.repeating&&Wm(R,$);$.previousKeyMatched&&(A||rr(C,R,!1,c,Bi,$))?w.preventDefault():$.previousKeyMatched=!1}d&&d(w)},y=ft(f,n);let x=-1;S.Children.forEach(a,(w,C)=>{if(!S.isValidElement(w)){x===C&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Tw.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
221
|
+
`)),w.props.disabled||(m==="selectedMenu"&&w.props.selected||x===-1)&&(x=C),x===C&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const T=S.Children.map(a,(w,C)=>{if(C===x){const I={};return i&&(I.autoFocus=!0),w.props.tabIndex===void 0&&m==="selectedMenu"&&(I.tabIndex=0),S.cloneElement(w,I)}return w});return b.jsx(_l,{role:"menu",ref:y,className:l,onKeyDown:p,tabIndex:s?0:-1,...h,children:T})});process.env.NODE_ENV!=="production"&&(Nl.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});function Fk(e){const t=Kt(e);return t.body===e?Tr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ld(e){return parseFloat(Tr(e).getComputedStyle(e).paddingRight)||0}function Bk(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function cd(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!Bk(a);l&&c&&vr(a,s)})}function zi(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function zk(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Fk(o)){const a=zm(Tr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${ld(o)+a}px`;const l=Kt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ld(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Kt(o).body;else{const a=o.parentElement,l=Tr(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}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:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function Wk(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Uk{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&vr(t.modalRef,!1);const s=Wk(n);cd(n,t.mount,t.modalRef,s,!0);const i=zi(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=zi(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=zk(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=zi(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&vr(t.modalRef,n),cd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&vr(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function qk(e){return Re("MuiBackdrop",e)}Ee("MuiBackdrop",["root","invisible"]);const Hk=e=>{const{classes:t,invisible:n}=e;return je({root:["root",n&&"invisible"]},qk,t)},Yk=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Ml=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:f,transitionDuration:g,...p}=o,y={...o,component:a,invisible:l},x=Hk(y),T={transition:f,root:u.Root,...h},w={...d,...m},C={component:a,slots:T,slotProps:w},[I,E]=Ke("root",{elementType:Yk,externalForwardedProps:C,className:ce(x.root,i),ownerState:y}),[R,$]=Ke("transition",{elementType:Fo,externalForwardedProps:C,ownerState:y});return b.jsx(R,{in:c,timeout:g,...p,...$,children:b.jsx(I,{"aria-hidden":!0,...E,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(Ml.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function Gk(e){return typeof e=="function"?e():e}function Kk(e){return e?e.props.hasOwnProperty("in"):!1}const ud=()=>{},ns=new Uk;function Xk(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,m=S.useRef({}),h=S.useRef(null),f=S.useRef(null),g=ft(f,d),[p,y]=S.useState(!u),x=Kk(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const w=()=>Kt(h.current),C=()=>(m.current.modalRef=f.current,m.current.mount=h.current,m.current),I=()=>{ns.mount(C(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},E=Po(()=>{const _=Gk(t)||w().body;ns.add(C(),_),f.current&&I()}),R=()=>ns.isTopModal(C()),$=Po(_=>{h.current=_,_&&(u&&R()?I():f.current&&vr(f.current,T))}),L=S.useCallback(()=>{ns.remove(C(),T)},[T]);S.useEffect(()=>()=>{L()},[L]),S.useEffect(()=>{u?E():(!x||!s)&&L()},[u,L,x,s,E]);const V=_=>k=>{var D;(D=_.onKeyDown)==null||D.call(_,k),!(k.key!=="Escape"||k.which===229||!R())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},A=_=>k=>{var D;(D=_.onClick)==null||D.call(_,k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(_={})=>{const k=hf(e);delete k.onTransitionEnter,delete k.onTransitionExited;const D={...k,..._};return{role:"presentation",...D,onKeyDown:V(D),ref:g}},getBackdropProps:(_={})=>{const k=_;return{"aria-hidden":!0,...k,onClick:A(k),open:u}},getTransitionProps:()=>{const _=()=>{y(!1),i&&i()},k=()=>{y(!0),a&&a(),s&&L()};return{onEnter:Ec(_,(l==null?void 0:l.props.onEnter)??ud),onExited:Ec(k,(l==null?void 0:l.props.onExited)??ud)}},rootRef:g,portalRef:$,isTopModal:R,exited:p,hasTransition:x}}function Qk(e){return Re("MuiModal",e)}Ee("MuiModal",["root","hidden","backdrop"]);const Zk=e=>{const{open:t,exited:n,classes:o}=e;return je({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Qk,o)},Jk=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Qe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),e1=te(Ml,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Um=S.forwardRef(function(t,n){const o=He({name:"MuiModal",props:t}),{BackdropComponent:s=e1,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:T=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:I=!1,onClose:E,onTransitionEnter:R,onTransitionExited:$,open:L,slotProps:V={},slots:A={},theme:v,...P}=o,O={...o,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:T,disableScrollLock:w,hideBackdrop:C,keepMounted:I},{getRootProps:_,getBackdropProps:k,getTransitionProps:D,portalRef:N,isTopModal:z,exited:j,hasTransition:B}=Xk({...O,rootRef:n}),W={...O,exited:j},X=Zk(W),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),B){const{onEnter:q,onExited:ae}=D();Z.onEnter=q,Z.onExited=ae}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...A},slotProps:{...f,...V}},[Q,ne]=Ke("root",{ref:n,elementType:Jk,externalForwardedProps:{...Y,...P,component:m},getSlotProps:_,ownerState:W,className:ce(l,X==null?void 0:X.root,!W.open&&W.exited&&(X==null?void 0:X.hidden))}),[H,F]=Ke("backdrop",{ref:i==null?void 0:i.ref,elementType:s,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:q=>k({...q,onClick:ae=>{q!=null&&q.onClick&&q.onClick(ae)}}),className:ce(i==null?void 0:i.className,X==null?void 0:X.backdrop),ownerState:W});return!I&&!L&&(!B||j)?null:b.jsx(Or,{ref:N,container:d,disablePortal:x,children:b.jsxs(Q,{...ne,children:[!C&&s?b.jsx(H,{...F}):null,b.jsx(kr,{disableEnforceFocus:p,disableAutoFocus:g,disableRestoreFocus:T,isEnabled:z,open:L,children:S.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(Um.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:Br.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Bo,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const $l=S.createContext(null);process.env.NODE_ENV!=="production"&&($l.displayName="SelectFocusSourceContext");function t1(){return S.useContext($l)}$l.Provider;function n1(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}const o1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},r1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:i,classes:a}=e,c=je({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},Vk,a);return{...a,...c}},s1=te(oo,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:o1})(Qe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${or.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${or.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${or.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${or.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${or.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rd.inset}`]:{marginLeft:52},[`& .${id.root}`]:{marginTop:0,marginBottom:0},[`& .${id.inset}`]:{paddingLeft:36},[`& .${sd.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${sd.root} svg`]:{fontSize:"1.25rem"}}}]}))),Dl=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...f}=o,g=t1(),p=S.useContext(Pn),y=S.useMemo(()=>({dense:a||p.dense||!1,disableGutters:c}),[p.dense,a,c]),x=S.useRef(null);Nn(()=>{s&&(x.current?n1(x.current,g):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const T={...o,dense:y.dense,divider:l,disableGutters:c},w=r1(o),C=ft(x,n),{root:I,...E}=w;let R;return o.disabled||(R=m!==void 0?m:-1),b.jsx(Pn.Provider,{value:y,children:b.jsx(s1,{ref:C,role:d,tabIndex:R,component:i,focusVisibleClassName:ce(w.focusVisible,u),className:ce(w.root,h),...f,ownerState:T,classes:E})})});process.env.NODE_ENV!=="production"&&(Dl.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function i1(e){return it("MuiDigitalClock",e)}lt("MuiDigitalClock",["root","list","item"]);const a1=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],l1=e=>ot({root:["root"],list:["list"],item:["item"]},i1,e),c1=te(kl,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:$m,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),u1=te(Nl,{name:"MuiDigitalClock",slot:"List"})({padding:0}),d1=te(Dl,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),Al=S.forwardRef(function(t,n){const o=st(),s=S.useRef(null),i=yt(n,s),a=S.useRef(null),l=S.useRef(null),c=Ue({props:t,name:"MuiDigitalClock"}),{ampm:u=o.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:m,slots:h,slotProps:f,value:g,defaultValue:p,referenceDate:y,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:T,minTime:w,disableFuture:C,disablePast:I,minutesStep:E=1,shouldDisableTime:R,onChange:$,view:L,openTo:V,onViewChange:A,focusedView:v,onFocusedViewChange:P,className:O,classes:_,disabled:k,readOnly:D,views:N=["hours"],skipDisabled:z=!1,timezone:j}=c,B=Se(c,a1),{value:W,handleValueChange:X,timezone:Z}=Vr({name:"DigitalClock",timezone:j,value:g,defaultValue:p,referenceDate:y,onChange:$,valueManager:Vn}),Y=Zt(),Q=dl(Z),{ownerState:ne}=mt(),H=M({},ne,{hasDigitalClockAlreadyBeenRendered:!!s.current}),F=l1(_),q=(h==null?void 0:h.digitalClockItem)??d1,ae=qe({elementType:q,externalSlotProps:f==null?void 0:f.digitalClockItem,ownerState:H,className:F.item}),G=Pl({value:W,referenceDate:y,adapter:o,props:c,timezone:Z}),ue=ve(ie=>X(ie,"finish","hours")),{setValueAndGoToNextView:oe}=wi({view:L,views:N,openTo:V,onViewChange:A,onChange:ue,focusedView:v,onFocusedViewChange:P}),ye=ve(ie=>{oe(ie,"finish")});hn(()=>{if(s.current===null)return;const ie=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const me=ie.offsetTop;(m||v)&&ie!==l.current&&(l.current=ie,ie.focus()),s.current.scrollTop=me-4});const he=S.useCallback(ie=>{const me=Lr(x,o),se=()=>!(w&&me(w,ie)||T&&me(ie,T)||C&&me(ie,Q)||I&&me(Q,ie)),Ie=()=>o.getMinutes(ie)%E!==0?!1:R?!R(ie,"hours"):!0;return!se()||!Ie()},[x,o,w,T,C,Q,I,E,R]),re=S.useMemo(()=>{const ie=[];let se=o.startOfDay(G);for(;o.isSameDay(G,se);)ie.push(se),se=o.addMinutes(se,d);return ie},[G,d,o]),J=re.findIndex(ie=>o.isEqual(ie,G)),ge=ie=>{switch(ie.key){case"PageUp":{const me=Os(a.current)-5,se=a.current.children,Ie=Math.max(0,me),Pe=se[Ie];Pe&&Pe.focus(),ie.preventDefault();break}case"PageDown":{const me=Os(a.current)+5,se=a.current.children,Ie=Math.min(se.length-1,me),Pe=se[Ie];Pe&&Pe.focus(),ie.preventDefault();break}}};return b.jsx(c1,M({ref:i,className:ce(F.root,O),ownerState:H},B,{children:b.jsx(u1,{ref:a,role:"listbox","aria-label":Y.timePickerToolbarTitle,className:F.list,onKeyDown:ge,children:re.map((ie,me)=>{const se=he(ie);if(z&&se)return null;const Ie=o.isEqual(ie,W),Pe=o.format(ie,u?"fullTime12h":"fullTime24h"),Ce=J===me||J===-1&&me===0?0:-1;return b.jsx(q,M({onClick:()=>!D&&ye(ie),selected:Ie,disabled:k||se,disableRipple:D,role:"option","aria-disabled":D,"aria-selected":Ie,tabIndex:Ce,itemValue:ie,formattedValue:Pe},ae,{children:Pe}),`${ie.valueOf()}-${Pe}`)})})}))});process.env.NODE_ENV!=="production"&&(Al.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(Al.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function p1(e){return it("MuiMultiSectionDigitalClock",e)}lt("MuiMultiSectionDigitalClock",["root"]);function f1(e){return it("MuiMultiSectionDigitalClockSection",e)}lt("MuiMultiSectionDigitalClockSection",["root","item"]);const m1=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],h1=e=>ot({root:["root"],item:["item"]},f1,e),g1=te(Nl,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:$m,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),b1=te(Dl,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:VO,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),qm=S.forwardRef(function(t,n){const o=S.useRef(null),s=yt(n,o),i=S.useRef(null),a=S.useRef(!1),l=Ue({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:u,className:d,classes:m,disabled:h,readOnly:f,items:g,active:p,slots:y,slotProps:x,skipDisabled:T}=l,w=Se(l,m1),{ownerState:C}=mt(),I=M({},C,{hasDigitalClockAlreadyBeenRendered:!!o.current}),E=h1(m),R=(y==null?void 0:y.digitalClockSectionItem)??b1;hn(()=>{if(o.current===null)return;const A=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(!A)return;const v=document.activeElement,P=i.current===A,O=!!v&&o.current.contains(v),_=P&&a.current;if(p&&c&&(!P||_)&&(i.current==null||a.current||O)&&(i.current=A,a.current=!1,A.focus()),P)return;const k=A.offsetTop,D=A.offsetHeight,N=o.current.clientHeight,z=o.current.scrollHeight,j=k-N/2+D/2,B=z-N,W=Math.min(j,B);o.current.scrollTop=Math.max(0,W)});const $=ve(A=>{const v=A.relatedTarget,P=v==null?void 0:v.parentElement,O=v==null?void 0:v.getAttribute("role"),_=(P==null?void 0:P.nodeName)==="UL"&&P!==o.current||O==="gridcell";a.current=_,i.current&&(P==null?void 0:P.nodeName)==="UL"&&P!==o.current&&(i.current=null)});S.useEffect(()=>{p||(i.current=null)},[p]);const L=g.findIndex(A=>A.isFocused(A.value)),V=ve(A=>{switch(A.key){case"Tab":{a.current=!0;break}case"PageUp":{const v=Os(o.current)-5,P=o.current.children,O=Math.max(0,v),_=P[O];_&&_.focus(),A.preventDefault();break}case"PageDown":{const v=Os(o.current)+5,P=o.current.children,O=Math.min(P.length-1,v),_=P[O];_&&_.focus(),A.preventDefault();break}}});return b.jsx(g1,M({ref:s,className:ce(E.root,d),ownerState:I,role:"listbox",onKeyDown:V,onBlur:$},w,{children:g.map((A,v)=>{var D;const P=(D=A.isDisabled)==null?void 0:D.call(A,A.value),O=h||P;if(T&&O)return null;const _=A.isSelected(A.value),k=L===v||L===-1&&v===0?0:-1;return b.jsx(R,M({onClick:()=>!f&&u(A.value),selected:_,disabled:O,disableRipple:f,role:"option","aria-disabled":f||O||void 0,"aria-label":A.ariaLabel,"aria-selected":_,tabIndex:k,className:E.item},x==null?void 0:x.digitalClockSectionItem,{children:A.label}),A.label)})}))});process.env.NODE_ENV!=="production"&&(qm.displayName="MultiSectionDigitalClockSection");const y1=({now:e,value:t,adapter:n,ampm:o,isDisabled:s,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(g,p)=>{const y=p??c;return y===null?!1:o?g===12?y===12||y===0:y===g||y-12===g:y===g},m=g=>d(g,n.getHours(l)),h=n.setDate(n.setMonth(n.startOfDay(e),0),15),f=o?11:23;for(let g=0;g<=f;g+=a){let p=n.format(n.setHours(h,g),o?"hours12h":"hours24h");const y=i(parseInt(p,10).toString());p=n.formatNumber(p),u.push({value:g,label:p,isSelected:d,isDisabled:s,isFocused:m,ariaLabel:y})}return u},dd=({value:e,adapter:t,isDisabled:n,timeStep:o,resolveLabel:s,resolveAriaLabel:i,hasValue:a=!0})=>{const l=u=>e===null?!1:a&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const m=o*d;return{value:m,label:t.formatNumber(s(m)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:i(m.toString())}})]},v1=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],x1=e=>ot({root:["root"]},p1,e),S1=te(kl,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),jl=S.forwardRef(function(t,n){const o=st(),s=jn(),i=Ue({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:m,defaultValue:h,referenceDate:f,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:p,minTime:y,disableFuture:x,disablePast:T,minutesStep:w=1,shouldDisableTime:C,onChange:I,view:E,views:R=["hours","minutes"],openTo:$,onViewChange:L,focusedView:V,onFocusedViewChange:A,className:v,classes:P,disabled:O,readOnly:_,skipDisabled:k=!1,timezone:D}=i,N=Se(i,v1),{value:z,handleValueChange:j,timezone:B}=Vr({name:"MultiSectionDigitalClock",timezone:D,value:m,defaultValue:h,referenceDate:f,onChange:I,valueManager:Vn}),W=Zt(),X=dl(B),Z=S.useMemo(()=>M({hours:1,minutes:5,seconds:5},l),[l]),Y=Pl({value:z,referenceDate:f,adapter:o,props:i,timezone:B}),Q=ve((ie,me,se)=>j(ie,me,se)),ne=S.useMemo(()=>!a||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[a,R]),{view:H,setValueAndGoToNextView:F,focusedView:q}=wi({view:E,views:ne,openTo:$,onViewChange:L,onChange:Q,focusedView:V,onFocusedViewChange:A}),ae=ve(ie=>{F(ie,"finish","meridiem")}),{meridiemMode:G,handleMeridiemChange:ue}=vl(Y,a,ae,"finish"),oe=S.useCallback((ie,me)=>{const se=Lr(g,o),Ie=me==="hours"||me==="minutes"&&ne.includes("seconds"),Pe=({start:Ce,end:Ne})=>!(y&&se(y,Ne)||p&&se(Ce,p)||x&&se(Ce,X)||T&&se(X,Ie?Ne:Ce)),xe=(Ce,Ne=1)=>{if(Ce%Ne!==0)return!1;if(C)switch(me){case"hours":return!C(o.setHours(Y,Ce),"hours");case"minutes":return!C(o.setMinutes(Y,Ce),"minutes");case"seconds":return!C(o.setSeconds(Y,Ce),"seconds");default:return!1}return!0};switch(me){case"hours":{const Ce=Ir(ie,G,a),Ne=o.setHours(Y,Ce);if(o.getHours(Ne)!==Ce)return!0;const rt=o.setSeconds(o.setMinutes(Ne,0),0),yn=o.setSeconds(o.setMinutes(Ne,59),59);return!Pe({start:rt,end:yn})||!xe(Ce)}case"minutes":{const Ce=o.setMinutes(Y,ie),Ne=o.setSeconds(Ce,0),rt=o.setSeconds(Ce,59);return!Pe({start:Ne,end:rt})||!xe(ie,w)}case"seconds":{const Ce=o.setSeconds(Y,ie);return!Pe({start:Ce,end:Ce})||!xe(ie)}default:throw new Error("not supported")}},[a,Y,g,p,G,y,w,C,o,x,T,X,ne]),ye=S.useCallback(ie=>{switch(ie){case"hours":return{onChange:me=>{const se=Ir(me,G,a);F(o.setHours(Y,se),"finish","hours")},items:y1({now:X,value:z,ampm:a,adapter:o,isDisabled:me=>oe(me,"hours"),timeStep:Z.hours,resolveAriaLabel:W.hoursClockNumberText,valueOrReferenceDate:Y})};case"minutes":return{onChange:me=>{F(o.setMinutes(Y,me),"finish","minutes")},items:dd({value:o.getMinutes(Y),adapter:o,isDisabled:me=>oe(me,"minutes"),resolveLabel:me=>o.format(o.setMinutes(X,me),"minutes"),timeStep:Z.minutes,hasValue:!!z,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:me=>{F(o.setSeconds(Y,me),"finish","seconds")},items:dd({value:o.getSeconds(Y),adapter:o,isDisabled:me=>oe(me,"seconds"),resolveLabel:me=>o.format(o.setSeconds(X,me),"seconds"),timeStep:Z.seconds,hasValue:!!z,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const me=On(o,"am"),se=On(o,"pm");return{onChange:ue,items:[{value:"am",label:me,isSelected:()=>!!z&&G==="am",isFocused:()=>!!Y&&G==="am",ariaLabel:me},{value:"pm",label:se,isSelected:()=>!!z&&G==="pm",isFocused:()=>!!Y&&G==="pm",ariaLabel:se}]}}default:throw new Error(process.env.NODE_ENV!=="production"?`MUI X Date Pickers: Unknown view "${ie}" found in MultiSectionDigitalClock. This view is not supported by the component. Use valid view values: "hours", "minutes", "seconds", or "meridiem".`:ke(144,ie))}},[X,z,a,o,Z.hours,Z.minutes,Z.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,G,F,Y,oe,ue]),he=S.useMemo(()=>{if(!s)return ne;const ie=ne.filter(me=>me!=="meridiem");return ie.reverse(),ne.includes("meridiem")&&ie.push("meridiem"),ie},[s,ne]),re=S.useMemo(()=>ne.reduce((ie,me)=>M({},ie,{[me]:ye(me)}),{}),[ne,ye]),{ownerState:J}=mt(),ge=x1(P);return b.jsx(S1,M({ref:n,className:ce(ge.root,v),ownerState:J,role:"group"},N,{children:he.map(ie=>b.jsx(qm,{items:re[ie].items,onChange:re[ie].onChange,active:H===ie,autoFocus:c||q===ie,disabled:O,readOnly:_,slots:u,slotProps:d,skipDisabled:k,"aria-label":W.selectViewText(ie)},ie))}))});process.env.NODE_ENV!=="production"&&(jl.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(jl.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const gs=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,ampmInClock:T,slots:w,slotProps:C,readOnly:I,disabled:E,sx:R,autoFocus:$,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:A})=>b.jsx(Rl,{view:e,onViewChange:t,focusedView:n&&Lo(n)?n:null,onFocusedViewChange:o,views:s.filter(Lo),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,ampmInClock:T,slots:w,slotProps:C,readOnly:I,disabled:E,sx:R,autoFocus:$,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:A});process.env.NODE_ENV!=="production"&&(gs.displayName="renderTimeViewClock");const Hm=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:V,timezone:A})=>b.jsx(Al,{view:e,onViewChange:t,focusedView:n&&Lo(n)?n:null,onFocusedViewChange:o,views:s.filter(Lo),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeStep:L==null?void 0:L.minutes,skipDisabled:V,timezone:A});process.env.NODE_ENV!=="production"&&(Hm.displayName="renderDigitalClockTimeView");const ma=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:V,timezone:A})=>b.jsx(jl,{view:e,onViewChange:t,focusedView:n&&Rf(n)?n:null,onFocusedViewChange:o,views:s.filter(Lo),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:T,slotProps:w,readOnly:C,disabled:I,sx:E,autoFocus:R,disableIgnoringDatePartForTimeValidation:$,timeSteps:L,skipDisabled:V,timezone:A});process.env.NODE_ENV!=="production"&&(ma.displayName="renderMultiSectionDigitalClockTimeView");const C1=(e,t,n)=>n?t.filter(o=>!Rf(o)||o==="hours"):e?[...t,"meridiem"]:t,w1=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function T1({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=M({hours:1,minutes:5,seconds:5},n),a=w1(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:C1(t,o,a)}}const Ll=S.forwardRef(function(t,n){var p,y;const o=st(),s=im(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:l}=T1(s),c=i?Hm:ma,u=M({hours:c,minutes:c,seconds:c,meridiem:c},s.viewRenderers),d=s.ampmInClock??!0,h=((p=u.hours)==null?void 0:p.name)===ma.name?a:a.filter(x=>x!=="meridiem"),f=M({},s,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:Mf(o,s),views:i?["hours"]:h,slots:M({field:vi},s.slots),slotProps:M({},s.slotProps,{field:x=>{var T;return M({},jo((T=s.slotProps)==null?void 0:T.field,x),zf(s))},toolbar:M({hidden:!0,ampmInClock:d},(y=s.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:g}=JO({ref:n,props:f,valueManager:Vn,valueType:"time",validator:ui,steps:null});return g()});process.env.NODE_ENV!=="production"&&(Ll.displayName="DesktopTimePicker");process.env.NODE_ENV!=="production"&&(Ll.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:bn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});function I1(e){return Re("MuiDialogContent",e)}Ee("MuiDialogContent",["root","dividers"]);const E1=Ee("MuiDialogTitle",["root"]),_1=e=>{const{classes:t,dividers:n}=e;return je({root:["root",n&&"dividers"]},I1,t)},O1=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Qe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${E1.root} + &`]:{paddingTop:0}}}]}))),Ym=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=o,l={...o,dividers:i},c=_1(l);return b.jsx(O1,{className:ce(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function k1(e){return Re("MuiDialog",e)}const xr=Ee("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Gm=S.createContext({});process.env.NODE_ENV!=="production"&&(Gm.displayName="DialogContext");const P1=te(Ml,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),R1=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(o))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return je(a,k1,t)},N1=te(Um,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),M1=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),$1=te(zr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Qe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${xr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${xr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Km=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiDialog"}),s=jr(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:m,className:h,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:y="sm",onClick:x,onClose:T,open:w,PaperComponent:C=zr,PaperProps:I={},role:E="dialog",scroll:R="paper",slots:$={},slotProps:L={},TransitionComponent:V=Fo,transitionDuration:A=i,TransitionProps:v,...P}=o,O={...o,disableEscapeKeyDown:f,fullScreen:g,fullWidth:p,maxWidth:y,scroll:R},_=R1(O),k=S.useRef(),D=oe=>{k.current=oe.target===oe.currentTarget},N=oe=>{x&&x(oe),k.current&&(k.current=null,T&&T(oe,"backdropClick"))},z=Ya(l),j=S.useMemo(()=>({titleId:z}),[z]),B={transition:V,...$},W={transition:v,paper:I,backdrop:d,...L},X={slots:B,slotProps:W},[Z,Y]=Ke("root",{elementType:N1,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:O,className:ce(_.root,h),ref:n}),[Q,ne]=Ke("backdrop",{elementType:P1,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:O,className:_.backdrop}),[H,F]=Ke("paper",{elementType:$1,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:O,className:_.paper,additionalProps:{elevation:24,role:E,"aria-describedby":a,"aria-labelledby":z,"aria-modal":c,tabIndex:-1,[fa]:""}}),[q,ae]=Ke("container",{elementType:M1,externalForwardedProps:X,ownerState:O,className:_.container}),[G,ue]=Ke("transition",{elementType:Fo,externalForwardedProps:X,ownerState:O,additionalProps:{appear:!0,in:w,timeout:A,role:"presentation"}});return b.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:A,as:u,...ne}},disableEscapeKeyDown:f,onClose:T,open:w,onClick:N,...Y,...P,children:b.jsx(G,{...ue,children:b.jsx(q,{onMouseDown:D,...ae,children:b.jsx(H,{as:C,...F,children:b.jsx(Gm.Provider,{value:j,children:m})})})})})});process.env.NODE_ENV!=="production"&&(Km.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,role:r.oneOf(["alertdialog","dialog"]),scroll:r.oneOf(["body","paper"]),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),container:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,container:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const D1=te(Km,{slot:"internal"})({[`& .${xr.container}`]:{outline:0},[`& .${xr.paper}`]:{outline:0,minWidth:Nm}}),A1=te(Ym,{slot:"internal"})({"&:first-of-type":{padding:0}});function j1(e){var c,u;const{children:t,slots:n,slotProps:o}=e,{open:s}=Go(),{dismissViews:i,onPopperExited:a}=mt(),l=(n==null?void 0:n.dialog)??D1;return b.jsx(l,M({open:s,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{PaperComponent:n==null?void 0:n.mobilePaper,slots:M({transition:(n==null?void 0:n.mobileTransition)??Fo},(c=o==null?void 0:o.dialog)==null?void 0:c.slots),slotProps:M({transition:o==null?void 0:o.mobileTransition,paper:o==null?void 0:o.mobilePaper},(u=o==null?void 0:o.dialog)==null?void 0:u.slotProps),children:b.jsx(A1,{children:t})}))}const L1=["props","steps"],V1=["ownerState"],F1=e=>{var E;let{props:t,steps:n}=e,o=Se(e,L1);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Am({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=Im(M({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),f=d.privateContextValue.labelId,g=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,p=s.field,y=qe({elementType:p,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Lf(t),additionalProps:M({},g&&{id:f}),ownerState:h}),x=Se(y,V1),T=s.layout??Ti;let w=f;g&&(a?w=`${f}-label`:w=void 0);const C=M({},i,{toolbar:M({},i==null?void 0:i.toolbar,{titleId:f}),mobilePaper:M({"aria-labelledby":w},i==null?void 0:i.mobilePaper)}),I=()=>b.jsxs(Wf,M({},d,{children:[b.jsx(p,M({},x,{slots:M({},s,x.slots),slotProps:M({},C,x.slotProps),inputRef:l})),b.jsx(j1,{slots:s,slotProps:C,children:b.jsx(T,M({},C==null?void 0:C.layout,{slots:s,slotProps:C,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(I.displayName="renderPicker"),{renderPicker:I}},Vl=S.forwardRef(function(t,n){var u;const o=st(),s=im(t,"MuiMobileTimePicker"),i=M({hours:gs,minutes:gs,seconds:gs},s.viewRenderers),a=s.ampmInClock??!1,l=M({},s,{ampmInClock:a,viewRenderers:i,format:Mf(o,s),slots:M({field:vi},s.slots),slotProps:M({},s.slotProps,{field:d=>{var m;return M({},jo((m=s.slotProps)==null?void 0:m.field,d),zf(s))},toolbar:M({hidden:!1,ampmInClock:a},(u=s.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=F1({ref:n,props:l,valueManager:Vn,valueType:"time",validator:ui,steps:null});return c()});process.env.NODE_ENV!=="production"&&(Vl.displayName="MobileTimePicker");process.env.NODE_ENV!=="production"&&(Vl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:bn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const B1=["desktopModeMediaQuery"],Fl=S.forwardRef(function(t,n){const o=Ue({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s=BT}=o,i=Se(o,B1);return kf(s,{defaultMatches:!0})?b.jsx(Ll,M({ref:n},i)):b.jsx(Vl,M({ref:n},i))});process.env.NODE_ENV!=="production"&&(Fl.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(Fl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:bn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Xm=K.forwardRef(function(t,n){const{overStyled:o=!1,disabled:s,data:i,onChange:a,className:l,value:c,defaultValue:u,error:d,...m}=t,h=fe(m,o),f=h;delete f.size,delete f.variant,delete f.className;const g=l?`${gt.root} ${l}`:gt.root,p=c??u,y=()=>i.map((x,T)=>typeof x=="string"?b.jsx(pe.MenuItem,{value:x,className:gt.option,"data-selected":x===p?"true":void 0,children:x},`${x}-${T}`):b.jsx(pe.MenuItem,{value:x.value,disabled:x.disabled,className:gt.option,"data-selected":x.value===p?"true":void 0,children:x.label},`${x.value}-${T}`));return b.jsx(pe.Select,{ref:n,disabled:s,value:c,defaultValue:u,onChange:x=>a==null?void 0:a(x.target.value??null),displayEmpty:!0,error:!!d,className:g,classes:{select:gt.input,icon:gt.icon},MenuProps:{classes:{paper:gt.dropdown}},"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,inputProps:{"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,...f.inputProps},...h,children:y()})});Xm.displayName="BareDropdown";const z1="TimePicker-module__layoutOverride___zKo4Q",W1="TimePicker-module__root___BcvRu",U1="TimePicker-module__field___lOxtw",q1="TimePicker-module__amPmSelect___mSdvt",sr={layoutOverride:z1,root:W1,field:U1,amPmSelect:q1};ct.extend(Of);const Qm="HH:mm:ss",Zm="HH:mm",H1=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Eo(e){if(!e)return;const t=e.length>5?Qm:Zm;return ct(e,t)}function Y1(e){const t=Eo(e);return t?t.format(e&&e.length>5?"h:mm:ss A":"h:mm A"):e}const Jm=K.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:T,readOnly:w,readOnlyComponent:C,emptyValueComponent:I,value:E,defaultValue:R,onChange:$,withSeconds:L,minTime:V,maxTime:A,...v}=t,P=fe(v,o),[O,_]=K.useState(()=>Eo(E)??Eo(R)??null);K.useEffect(()=>{E!==void 0&&_(Eo(E)??null)},[E]);const k=O?O.hour()>=12:!1,D=y?`${sr.layoutOverride} ${y}`:sr.layoutOverride,N=B=>{_(B),$==null||$(B?B.format(L?Qm:Zm):null)},z=B=>{N(B)},j=B=>{if(!O||!B)return;const W=B==="PM",X=O.hour(),Z=X>=12;if(W===Z)return;const Y=W?X+12:X-12;N(O.hour(Y))};return b.jsx(Wt,{ref:n,className:D,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:C,emptyValueComponent:I||void 0,readOnlyType:"text",readOnlyValue:Y1(E!==void 0?E:R),readOnlyNativeProps:t,activeComponent:b.jsxs("div",{className:sr.root,"data-error":f?"true":void 0,children:[b.jsx(ai,{dateAdapter:xT,children:b.jsx(Fl,{...P,value:O,onChange:z,disabled:T,format:`hh:${L?"mm:ss":"mm"}`,views:L?["hours","minutes","seconds"]:["hours","minutes"],minTime:Eo(V),maxTime:Eo(A),slots:{openPickerButton:()=>null},slotProps:{field:{className:sr.field}}})}),b.jsx(Xm,{overStyled:!0,className:sr.amPmSelect,style:{width:"fit-content"},data:H1,value:k?"PM":"AM",onChange:j,disabled:T,error:!!f,"aria-label":"AM or PM"})]})})});Jm.displayName="TimePicker";const G1="Timeline-module__root___LwRdZ",K1="Timeline-module__item___T5xdQ",X1="Timeline-module__itemBody___XAV-E",Q1="Timeline-module__itemBullet___rPXCy",Z1="Timeline-module__itemTitle___GgRRW",J1="Timeline-module__itemContent___vurs-",eP="Timeline-module__description___f9sxV",tP="Timeline-module__timestamp___owiRu",wn={root:G1,item:K1,itemBody:X1,itemBullet:Q1,itemTitle:Z1,itemContent:J1,description:eP,timestamp:tP},Bl=K.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:s,children:i,...a},l){const c=fe(a,t),u={item:wn.item,itemBody:wn.itemBody,itemContent:wn.itemContent,itemBullet:wn.itemBullet,itemTitle:wn.itemTitle},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;Object.keys(h).forEach(f=>{u[f]?u[f]=`${u[f]} ${h[f]}`:u[f]=h[f]})}const m=n?b.jsxs(b.Fragment,{children:[i&&b.jsx("div",{className:wn.description,children:i}),b.jsx("div",{className:wn.timestamp,children:n})]}):i;return b.jsx(Sf,{ref:l,...c,classes:u,"data-variant":o,children:m})});Bl.displayName="TimelineItem";const eh=K.forwardRef(function({overStyled:t=!1,...n},o){const s=fe(n,t),i={root:wn.root},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const l=a;Object.keys(l).forEach(c=>{i[c]?i[c]=`${i[c]} ${l[c]}`:i[c]=l[c]})}return b.jsx(xf,{ref:o,...s,classes:i})});eh.displayName="Timeline";const th=eh;th.Item=Bl;const nh=K.forwardRef(function({order:t=1,component:n,...o},s){const i=`recursica_brand_typography_h${t}`,a=`h${t}`;return b.jsx(ii,{ref:s,typographyClass:i,component:n||a,...o})});nh.displayName="Title";const nP="Toast-module__root___MUvfI",oP="Toast-module__icon___VwvE1",rP="Toast-module__title___-H6R2",sP="Toast-module__description___-QwfC",iP="Toast-module__closeButton___vGr7g",aP="Toast-module__body___VLkXA",xo={root:nP,icon:oP,title:rP,description:sP,closeButton:iP,body:aP},lP=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),oh=K.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:s,icon:i,children:a,onClose:l,className:c,...u},d){const m=fe(u,t),h={root:xo.root,message:xo.body,icon:xo.icon,action:xo.closeButton},f=m.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const p=f;Object.keys(p).forEach(y=>{h[y]?h[y]=`${h[y]} ${p[y]}`:h[y]=p[y]})}const g=()=>{l&&l()};return b.jsxs(pe.Alert,{ref:d,...m,icon:i,"data-variant":n,className:`${c||""}`,classes:h,action:o?b.jsx(pe.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:g,children:b.jsx(lP,{})}):void 0,children:[s&&b.jsx(pe.AlertTitle,{className:xo.title,children:s}),b.jsx("div",{className:xo.description,children:a})]})});oh.displayName="Toast";const cP="Tooltip-module__tooltip___UA7H9",uP="Tooltip-module__arrow___4zROk",pd={tooltip:cP,arrow:uP},rh=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:s,...i}){const{title:a,...l}=i,c=fe(l,t),u={tooltip:pd.tooltip,arrow:pd.arrow},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;Object.keys(f).forEach(g=>{u[g]?u[g]=`${u[g]} ${f[g]}`:u[g]=f[g]})}const m=c.withArrow,h=n??m;return b.jsx(pe.Tooltip,{...c,title:o||a||"",open:s,placement:"top",arrow:h,classes:u})};rh.displayName="Tooltip";const dP=rh,pP=e=>b.jsx("div",{...e,children:"TransferList"}),fd={};function sh(e,t){const n=S.useRef(fd);return n.current===fd&&(n.current=e(t)),n}function ha(e,t,n,o){const s=sh(fP).current;return mP(s,e,t,n,o)&&hP(s,[e,t,n,o]),s.callback}function fP(){return{callback:null,cleanup:null,refs:[]}}function mP(e,t,n,o,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==s}function hP(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(o[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=o[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}var gP=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const s={};e(s)===s&&(o=!0)}catch{}if(o){let s;try{throw new Error}catch(i){({stack:s}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
212
222
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
213
223
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
214
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},
|
|
224
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},bP=(e,t,n)=>{const{memoize:o,memoizeOptions:s}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=o(()=>({}),...s);if(!(l.apply(null,i)===l.apply(null,a))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
215
225
|
This means your output selector will likely run more frequently than intended.
|
|
216
226
|
Avoid returning a new reference inside your input selector, e.g.
|
|
217
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},
|
|
227
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},yP={inputStabilityCheck:"once",identityFunctionCheck:"once"},Ms=Symbol("NOT_FOUND");function vP(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function xP(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var md=e=>Array.isArray(e)?e:[e];function SP(e){const t=Array.isArray(e[0])?e[0]:e;return xP(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function hd(e,t){const n=[],{length:o}=e;for(let s=0;s<o;s++)n.push(e[s].apply(null,t));return n}var CP=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:o}={...yP,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:gP},inputStabilityCheck:{shouldRun:o==="always"||o==="once"&&e,run:bP}}};function wP(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Ms},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function TP(e,t){let n=[];function o(l){const c=n.findIndex(u=>t(l,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Ms}function s(l,c){o(l)===Ms&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:o,put:s,getEntries:i,clear:a}}var IP=(e,t)=>e===t;function EP(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:s}=n;for(let i=0;i<s;i++)if(!e(n[i],o[i]))return!1;return!0}}function _P(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=IP,maxSize:s=1,resultEqualityCheck:i}=n,a=EP(o);let l=0;const c=s<=1?wP(a):TP(s,a);function u(){let d=c.get(arguments);if(d===Ms){if(d=e.apply(null,arguments),l++,i){const h=c.getEntries().find(f=>i(f.value,d));h&&(d=h.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var OP=class{constructor(e){this.value=e}deref(){return this.value}},kP=()=>typeof WeakRef>"u"?OP:WeakRef,ih=kP(),PP=0,gd=1;function os(){return{s:PP,v:void 0,o:null,p:null}}function RP(e){return e instanceof ih?e.deref():e}function NP(e,t={}){let n=os();const{resultEqualityCheck:o}=t;let s,i=0;function a(){let l=n;const{length:c}=arguments;for(let m=0,h=c;m<h;m++){const f=arguments[m];if(typeof f=="function"||typeof f=="object"&&f!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const p=g.get(f);p===void 0?(l=os(),g.set(f,l)):l=p}else{let g=l.p;g===null&&(l.p=g=new Map);const p=g.get(f);p===void 0?(l=os(),g.set(f,l)):l=p}}const u=l;let d;if(l.s===gd)d=l.v;else if(d=e.apply(null,arguments),i++,o){const m=RP(s);m!=null&&o(m,d)&&(d=m,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new ih(d):d}return u.s=gd,u.v=d,d}return a.clearCache=()=>{n=os(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function MP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...s)=>{let i=0,a=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),vP(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:m,memoizeOptions:h=[],argsMemoize:f=NP,argsMemoizeOptions:g=[]}=d,p=md(h),y=md(g),x=SP(s),T=m(function(){return i++,u.apply(null,arguments)},...p);let w=!0;const C=f(function(){a++;const E=hd(x,arguments);if(l=T.apply(null,E),process.env.NODE_ENV!=="production"){const{devModeChecks:R={}}=d,{identityFunctionCheck:$,inputStabilityCheck:L}=CP(w,R);if($.shouldRun&&$.run(u,E,l),L.shouldRun){const V=hd(x,arguments);L.run({inputSelectorResults:E,inputSelectorResultsCopy:V},{memoize:m,memoizeOptions:p},arguments)}w&&(w=!1)}return l},...y);return Object.assign(C,{resultFunc:u,memoizedResultFunc:T,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:m,argsMemoize:f})};return Object.assign(o,{withTypes:()=>o}),o}const $P=MP({memoize:_P,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Te=(e,t,n,o,s,i,a,l,...c)=>{if(c.length>0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of selectors. The createSelector function supports up to 8 input selectors. Consider combining selectors or restructuring your selector logic.":ke(179));let u;if(e&&t&&n&&o)u=(d,m,h,f)=>{const g=e(d,m,h,f),p=t(d,m,h,f),y=n(d,m,h,f);return o(g,p,y,m,h,f)};else if(e&&t&&n)u=(d,m,h,f)=>{const g=e(d,m,h,f),p=t(d,m,h,f);return n(g,p,m,h,f)};else if(e&&t)u=(d,m,h,f)=>{const g=e(d,m,h,f);return t(g,m,h,f)};else if(e)u=e;else throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Missing arguments for createSelector. At least one selector function is required. Provide one or more selector functions as arguments.":ke(180));return u},DP=e=>(...t)=>{const n=new WeakMap;let o=1;const s=t[t.length-1],i=t.length-1||1,a=Math.max(s.length-i,0);if(a>3)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector combiner. The combiner function supports up to 3 additional arguments beyond the selector outputs. Consider restructuring your selector to use fewer arguments.":ke(181));return(c,u,d,m)=>{let h=c.__cacheKey__;h||(h={id:o},c.__cacheKey__=h,o+=1);let f=n.get(h);if(!f){const g=t.length===1?[x=>x,s]:t;let p=t;const y=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{p=[...g.slice(0,-1),()=>y[0],s];break}case 2:{p=[...g.slice(0,-1),()=>y[0],()=>y[1],s];break}case 3:{p=[...g.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],s];break}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector. The memoized selector supports up to 3 additional arguments. Consider restructuring your selector to use fewer arguments.":ke(182))}f=$P(...p),f.selectorArgs=y,n.set(h,f)}switch(a){case 3:f.selectorArgs[2]=m;case 2:f.selectorArgs[1]=d;case 1:f.selectorArgs[0]=u}switch(a){case 0:return f(c);case 1:return f(c,u);case 2:return f(c,u,d);case 3:return f(c,u,d,m);default:throw new Error("unreachable")}}},qr=DP();var rs={exports:{}},Wi={};/**
|
|
218
228
|
* @license React
|
|
219
229
|
* use-sync-external-store-shim.production.js
|
|
220
230
|
*
|
|
@@ -222,7 +232,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
222
232
|
*
|
|
223
233
|
* This source code is licensed under the MIT license found in the
|
|
224
234
|
* LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/var
|
|
235
|
+
*/var bd;function AP(){if(bd)return Wi;bd=1;var e=K;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,s=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(m,h){var f=h(),g=o({inst:{value:f,getSnapshot:h}}),p=g[0].inst,y=g[1];return i(function(){p.value=f,p.getSnapshot=h,c(p)&&y({inst:p})},[m,f,h]),s(function(){return c(p)&&y({inst:p}),m(function(){c(p)&&y({inst:p})})},[m]),a(f),f}function c(m){var h=m.getSnapshot;m=m.value;try{var f=h();return!n(m,f)}catch{return!0}}function u(m,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Wi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Wi}var Ui={};/**
|
|
226
236
|
* @license React
|
|
227
237
|
* use-sync-external-store-shim.development.js
|
|
228
238
|
*
|
|
@@ -230,7 +240,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
230
240
|
*
|
|
231
241
|
* This source code is licensed under the MIT license found in the
|
|
232
242
|
* LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/var
|
|
243
|
+
*/var yd;function jP(){return yd||(yd=1,process.env.NODE_ENV!=="production"&&(function(){function e(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}function t(f,g){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=g();if(!m){var y=g();i(p,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}y=a({inst:{value:p,getSnapshot:g}});var x=y[0].inst,T=y[1];return c(function(){x.value=p,x.getSnapshot=g,n(x)&&T({inst:x})},[f,p,g]),l(function(){return n(x)&&T({inst:x}),f(function(){n(x)&&T({inst:x})})},[f]),u(p),p}function n(f){var g=f.getSnapshot;f=f.value;try{var p=g();return!i(f,p)}catch{return!0}}function o(f,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=K,i=typeof Object.is=="function"?Object.is:e,a=s.useState,l=s.useEffect,c=s.useLayoutEffect,u=s.useDebugValue,d=!1,m=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;Ui.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ui}var vd;function zl(){return vd||(vd=1,process.env.NODE_ENV==="production"?rs.exports=AP():rs.exports=jP()),rs.exports}var LP=zl(),ss={exports:{}},qi={};/**
|
|
234
244
|
* @license React
|
|
235
245
|
* use-sync-external-store-shim/with-selector.production.js
|
|
236
246
|
*
|
|
@@ -238,7 +248,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
238
248
|
*
|
|
239
249
|
* This source code is licensed under the MIT license found in the
|
|
240
250
|
* LICENSE file in the root directory of this source tree.
|
|
241
|
-
*/var
|
|
251
|
+
*/var xd;function VP(){if(xd)return qi;xd=1;var e=K,t=zl();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return qi.useSyncExternalStoreWithSelector=function(u,d,m,h,f){var g=i(null);if(g.current===null){var p={hasValue:!1,value:null};g.current=p}else p=g.current;g=l(function(){function x(E){if(!T){if(T=!0,w=E,E=h(E),f!==void 0&&p.hasValue){var R=p.value;if(f(R,E))return C=R}return C=E}if(R=C,o(w,E))return R;var $=h(E);return f!==void 0&&f(R,$)?(w=E,R):(w=E,C=$)}var T=!1,w,C,I=m===void 0?null:m;return[function(){return x(d())},I===null?void 0:function(){return x(I())}]},[d,m,h,f]);var y=s(u,g[0],g[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),c(y),y},qi}var Hi={};/**
|
|
242
252
|
* @license React
|
|
243
253
|
* use-sync-external-store-shim/with-selector.development.js
|
|
244
254
|
*
|
|
@@ -246,20 +256,10 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
246
256
|
*
|
|
247
257
|
* This source code is licensed under the MIT license found in the
|
|
248
258
|
* LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/var bd;function TP(){return bd||(bd=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Q,n=$l(),o=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Bi.useSyncExternalStoreWithSelector=function(u,d,m,h,f){var g=i(null);if(g.current===null){var p={hasValue:!1,value:null};g.current=p}else p=g.current;g=l(function(){function x(E){if(!T){if(T=!0,w=E,E=h(E),f!==void 0&&p.hasValue){var R=p.value;if(f(R,E))return C=R}return C=E}if(R=C,o(w,E))return R;var $=h(E);return f!==void 0&&f(R,$)?(w=E,R):(w=E,C=$)}var T=!1,w,C,I=m===void 0?null:m;return[function(){return x(d())},I===null?void 0:function(){return x(I())}]},[d,m,h,f]);var y=s(u,g[0],g[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Bi}var yd;function IP(){return yd||(yd=1,process.env.NODE_ENV==="production"?ns.exports=wP():ns.exports=TP()),ns.exports}var EP=IP();const OP=parseInt(S.version,10),_P=OP>=19,kP=_P?PP:RP;function Ee(e,t,n,o,s){return kP(e,t,n,o,s)}function PP(e,t,n,o,s){const i=S.useCallback(()=>t(e.getSnapshot(),n,o,s),[e,t,n,o,s]);return CP.useSyncExternalStore(e.subscribe,i,i)}function RP(e,t,n,o,s){return EP.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,s))}class Dl{constructor(t){U(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));U(this,"getSnapshot",()=>this.state);U(this,"use",(t,n,o,s)=>Ee(this,t,n,o,s));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new Dl(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let s;for(;s=o.next(),!s.done;){if(n!==this.updateTick)return;const i=s.value;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(M({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(M({},this.state,{[t]:n}))}}function NP(e){return _e("MuiAlert",e)}const vd=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"]),MP=rt(b.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"),$P=rt(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),DP=rt(b.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"),AP=rt(b.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"),jP=rt(b.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"),LP=e=>{const{variant:t,color:n,severity:o,classes:s}=e,i={root:["root",`color${le(n||o)}`,`${t}${le(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return $e(i,NP,s)},VP=te(Ar,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(Ke(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(ht(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${vd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(ht(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${vd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(ht(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),FP=te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),BP=te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),zP=te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),xd={success:b.jsx(MP,{fontSize:"inherit"}),warning:b.jsx($P,{fontSize:"inherit"}),error:b.jsx(DP,{fontSize:"inherit"}),info:b.jsx(AP,{fontSize:"inherit"})},th=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:m,iconMapping:h=xd,onClose:f,role:g="alert",severity:p="success",slotProps:y={},slots:x={},variant:T="standard",...w}=o,C={...o,color:c,severity:p,variant:T,colorSeverity:c||p},I=LP(C),E={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...y}},[R,$]=Ye("root",{ref:n,shouldForwardComponentProp:!0,className:ce(I.root,a),elementType:VP,externalForwardedProps:{...E,...w},ownerState:C,additionalProps:{role:g,elevation:0}}),[L,V]=Ye("icon",{className:I.icon,elementType:FP,externalForwardedProps:E,ownerState:C}),[j,v]=Ye("message",{className:I.message,elementType:BP,externalForwardedProps:E,ownerState:C}),[P,_]=Ye("action",{className:I.action,elementType:zP,externalForwardedProps:E,ownerState:C}),[O,k]=Ye("closeButton",{elementType:Jn,externalForwardedProps:E,ownerState:C}),[D,N]=Ye("closeIcon",{elementType:jP,externalForwardedProps:E,ownerState:C});return b.jsxs(R,{...$,children:[m!==!1?b.jsx(L,{...V,children:m||h[p]||xd[p]}):null,b.jsx(j,{...v,children:i}),s!=null?b.jsx(P,{..._,children:s}):null,s==null&&f?b.jsx(P,{..._,children:b.jsx(O,{size:"small","aria-label":l,title:l,color:"inherit",onClick:f,...k,children:b.jsx(D,{fontSize:"small",...N})})}):null]})});process.env.NODE_ENV!=="production"&&(th.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function nh(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Sd=e=>e,WP=()=>{let e=Sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Sd}}},UP=WP(),HP={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 Al(e,t,n="Mui"){const o=HP[t];return o?`${n}-${o}`:`${UP.generate(e)}-${t}`}function oh(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Al(e,s,n)}),o}function qP(e){return Al("MuiRichTreeView",e)}oh("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function rh(e){return Be}const jl=Object.freeze([]),Oo=Object.freeze({}),Ll=S.createContext(null);process.env.NODE_ENV!=="production"&&(Ll.displayName="TreeViewContext");const Vn=()=>{const e=S.useContext(Ll);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Could not find the Tree View context. This happens when a component is rendered outside of a SimpleTreeView or RichTreeView parent component. Ensure your component is a child of a Tree View component. This can also happen if you are bundling multiple versions of the Tree View.":Oe(190));return e},Vl=S.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(Vl.displayName="TreeViewStyleContext");const Fl=()=>S.useContext(Vl),YP=e=>{const{store:t,apiRef:n,rootRef:o}=e,s=Jm(()=>t.buildPublicAPI()).current;GP(s,n);const i=S.useCallback(l=>{let c=null,u=null;const d=[],m={};t.itemPluginManager.listPlugins().forEach(g=>{const p=g({props:l,rootRef:c,contentRef:u});p!=null&&p.rootRef&&(c=p.rootRef),p!=null&&p.contentRef&&(u=p.contentRef),p!=null&&p.propsEnhancers&&(d.push(p.propsEnhancers),Object.keys(p.propsEnhancers).forEach(y=>{m[y]=!0}))});const h=g=>p=>{const y={};return d.forEach(x=>{const T=x[g];T!=null&&Object.assign(y,T(p))}),y},f=Object.fromEntries(Object.keys(m).map(g=>[g,h(g)]));return{contentRef:u,rootRef:c,propsEnhancers:f}},[t]),a=S.useCallback(({itemId:l,children:c,idAttribute:u})=>{let d=c;const m=t.itemPluginManager.listWrappers();for(let h=m.length-1;h>=0;h-=1){const f=m[h];d=f({store:t,itemId:l,children:d,idAttribute:u})}return d},[t]);return S.useMemo(()=>({runItemPlugins:i,wrapItem:a,publicAPI:s,store:t,rootRef:o}),[i,a,s,t,o])};function GP(e,t){t!=null&&t.current!==e&&(t.current=e)}function KP(e){const{store:t,apiRef:n,rootRef:o,classes:s=Oo,slots:i=Oo,slotProps:a=Oo,children:l}=e,c=YP({store:t,apiRef:n,rootRef:o}),u=S.useMemo(()=>({classes:s,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:a.collapseIcon,expandIcon:a.expandIcon,endIcon:a.endIcon}}),[s,i.collapseIcon,i.expandIcon,i.endIcon,a.collapseIcon,a.expandIcon,a.endIcon]);return b.jsx(Ll.Provider,{value:c,children:b.jsx(Vl.Provider,{value:u,children:l})})}function XP(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function QP(e){return typeof e=="string"}function ZP(e,t,n){return e===void 0||QP(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function JP(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function It(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))JP(n,e[n])&&(t[n]=e[n]);return t}function Cd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function eR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=It({...s,...o}),l=Cd(o),c=Cd(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function ua(e,t,n){return typeof e=="function"?e(t,n):e}function xt(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:ua(n,o),{props:l,internalRef:c}=eR({...i,externalSlotProps:a}),u=XP(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return ZP(t,{...l,ref:u},o)}const tR=Object.is;function nR(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const s in e)if(n+=1,!tR(e[s],t[s])||!(s in t))return!1;for(const s in t)o+=1;return n===o}function oR(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function rR(e){return _e("MuiCollapse",e)}we("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const sR=e=>{const{orientation:t,classes:n}=e;return $e({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},rR,n)},iR=te("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ke(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),aR=te("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),lR=te("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Ps=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:m,onEntered:h,onEntering:f,onExit:g,onExited:p,onExiting:y,orientation:x="vertical",slots:T={},slotProps:w={},style:C,timeout:I=Gp.standard,TransitionComponent:E=zt,...R}=o,$={...o,orientation:x,collapsedSize:l},L=sR($),V=Rr(),j=Ha(),v=S.useRef(null),P=S.useRef(),_=typeof l=="number"?`${l}px`:l,O=x==="horizontal",k=O?"width":"height",D=S.useRef(null),N=dt(n,D),z=()=>v.current?v.current[O?"clientWidth":"clientHeight"]:0,A=lt(D,(oe,ye)=>{v.current&&O&&(v.current.style.position="absolute"),oe.style[k]=_,m&&m(oe,ye)}),F=lt(D,(oe,ye)=>{const me=z();v.current&&O&&(v.current.style.position="");const{duration:re,easing:J}=Mo({style:C,timeout:I,easing:u},{mode:"enter"});if(I==="auto"){const ge=V.transitions.getAutoHeightDuration(me);oe.style.transitionDuration=`${ge}ms`,P.current=ge}else oe.style.transitionDuration=typeof re=="string"?re:`${re}ms`;oe.style[k]=`${me}px`,oe.style.transitionTimingFunction=J,f&&f(oe,ye)}),W=lt(D,(oe,ye)=>{oe.style[k]="auto",h&&h(oe,ye)}),K=lt(D,oe=>{oe.style[k]=`${z()}px`,g&&g(oe)}),Z=lt(D,p),Y=lt(D,oe=>{const ye=z(),{duration:me,easing:re}=Mo({style:C,timeout:I,easing:u},{mode:"exit"});if(I==="auto"){const J=V.transitions.getAutoHeightDuration(ye);oe.style.transitionDuration=`${J}ms`,P.current=J}else oe.style.transitionDuration=typeof me=="string"?me:`${me}ms`;oe.style[k]=_,oe.style.transitionTimingFunction=re,y&&y(oe)}),X=oe=>{I==="auto"&&j.start(P.current||0,oe),s&&s(D.current,oe)},ne={slots:T,slotProps:w,component:c},[q,B]=Ye("root",{ref:N,className:ce(L.root,a),elementType:iR,externalForwardedProps:ne,ownerState:$,additionalProps:{style:{[O?"minWidth":"minHeight"]:_,...C}}}),[H,ae]=Ye("wrapper",{ref:v,className:L.wrapper,elementType:aR,externalForwardedProps:ne,ownerState:$}),[G,de]=Ye("wrapperInner",{className:L.wrapperInner,elementType:lR,externalForwardedProps:ne,ownerState:$});return b.jsx(E,{in:d,onEnter:A,onEntered:W,onEntering:F,onExit:K,onExited:Z,onExiting:Y,addEndListener:X,nodeRef:D,timeout:I==="auto"?null:I,...R,children:(oe,{ownerState:ye,...me})=>{const re={...$,state:oe};return b.jsx(q,{...B,className:ce(B.className,{entered:L.entered,exited:!d&&_==="0px"&&L.hidden}[oe]),ownerState:re,...me,children:b.jsx(H,{...ae,ownerState:re,children:b.jsx(G,{...de,ownerState:re,children:i})})})}})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={addEndListener:r.func,children:r.node,classes:r.object,className:r.string,collapsedSize:r.oneOfType([r.number,r.string]),component:za,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,orientation:r.oneOf(["horizontal","vertical"]),slotProps:r.shape({root:r.oneOfType([r.func,r.object]),wrapper:r.oneOfType([r.func,r.object]),wrapperInner:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,wrapper:r.elementType,wrapperInner:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});Ps&&(Ps.muiSupportAuto=!0);function cR(e){return _e("PrivateSwitchBase",e)}we("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const uR=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,i={root:["root",n&&"checked",o&&"disabled",s&&`edge${le(s)}`],input:["input"]};return $e(i,cR,t)},dR=te(Zn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),pR=te("input",{name:"MuiSwitchBase",shouldForwardProp:Bo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),sh=S.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:f,name:g,onBlur:p,onChange:y,onFocus:x,readOnly:T,required:w=!1,tabIndex:C,type:I,value:E,slots:R={},slotProps:$={},...L}=t,[V,j]=pC({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),v=oo(),P=Y=>{x&&x(Y),v&&v.onFocus&&v.onFocus(Y)},_=Y=>{p&&p(Y),v&&v.onBlur&&v.onBlur(Y)},O=Y=>{if(Y.nativeEvent.defaultPrevented||T)return;const X=Y.target.checked;j(X),y&&y(Y,X)};let k=l;v&&typeof k>"u"&&(k=v.disabled);const D=I==="checkbox"||I==="radio",N={...t,checked:V,disabled:k,disableFocusRipple:c,edge:u},z=uR(N),A={slots:R,slotProps:{input:h,...$}},[F,W]=Ye("root",{ref:n,elementType:dR,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...A,component:"span",...L},getSlotProps:Y=>({...Y,onFocus:X=>{var ne;(ne=Y.onFocus)==null||ne.call(Y,X),P(X)},onBlur:X=>{var ne;(ne=Y.onBlur)==null||ne.call(Y,X),_(X)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[K,Z]=Ye("input",{ref:f,elementType:pR,className:z.input,externalForwardedProps:A,getSlotProps:Y=>({...Y,onChange:X=>{var ne;(ne=Y.onChange)==null||ne.call(Y,X),O(X)}}),ownerState:N,additionalProps:{autoFocus:o,checked:s,defaultChecked:a,disabled:k,id:D?m:void 0,name:g,readOnly:T,required:w,tabIndex:C,type:I,...I==="checkbox"&&E===void 0?{}:{value:E}}});return b.jsxs(F,{...W,children:[b.jsx(K,{...Z}),V?i:d]})});process.env.NODE_ENV!=="production"&&(sh.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:Zs,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const fR=rt(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),mR=rt(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),hR=rt(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function gR(e){return _e("MuiCheckbox",e)}const zi=we("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),bR=e=>{const{classes:t,indeterminate:n,color:o,size:s}=e,i={root:["root",n&&"indeterminate",`color${le(o)}`,`size${le(s)}`]},a=$e(i,gR,t);return{...t,...a}},yR=te(sh,{shouldForwardProp:e=>Bo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${le(n.size)}`],n.color!=="default"&&t[`color${le(n.color)}`]]}})(Ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ht()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ht()).map(([t])=>({props:{color:t},style:{[`&.${zi.checked}, &.${zi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${zi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),vR=b.jsx(mR,{}),xR=b.jsx(fR,{}),SR=b.jsx(hR,{}),ih=S.forwardRef(function(t,n){const o=We({props:t,name:"MuiCheckbox"}),{checkedIcon:s=vR,color:i="primary",icon:a=xR,indeterminate:l=!1,indeterminateIcon:c=SR,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:f={},slotProps:g={},...p}=o,y=l?c:a,x=l?c:s,T={...o,disableRipple:m,color:i,indeterminate:l,size:d},w=bR(T),C=g.input??u,[I,E]=Ye("root",{ref:n,elementType:yR,className:ce(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:g,...p},ownerState:T,additionalProps:{type:"checkbox",icon:S.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:S.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:m,slots:f,slotProps:{input:mC(typeof C=="function"?C(T):C,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return b.jsx(I,{...E,classes:w})});process.env.NODE_ENV!=="production"&&(ih.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const Pt="__TREE_VIEW_ROOT_PARENT_ID__",ah=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},Rs=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function lh(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],m=h=>{const f=t.getItemId?t.getItemId(h):h.id;CR({id:f,parentId:o,item:h,itemMetaLookup:a,siblingsMetaLookup:l});const g=t.getItemLabel?t.getItemLabel(h):h.label;if(g==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a \`label\` property. You can use the \`getItemLabel\` prop to specify a custom label for each item. An item was provided without a label: ${JSON.stringify(h)}`:Oe(192,JSON.stringify(h)));const p=(t.getItemChildren?t.getItemChildren(h):h.children)||[];d.push({id:f,children:p}),c[f]=h,l[f]={id:f,label:g,parentId:o,idAttribute:void 0,expandable:i(h,p),disabled:t.isItemDisabled?t.isItemDisabled(h):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(h):!0,depth:s},u.push(f)};for(const h of n)m(h);return{metaLookup:l,modelLookup:c,orderedChildrenIds:u,childrenIndexes:ah(u),itemsChildren:d}}function wd(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,existingItemMetaLookup:a}=e,l={},c={},u={},d={},m=M({},a),h=(f,g,p)=>{const y=lh({storeParameters:t,items:f,parentId:g,depth:p,isItemExpandable:i,otherItemsMetaLookup:m});Object.assign(l,y.metaLookup),Object.assign(m,y.metaLookup),Object.assign(c,y.modelLookup),u[g??Pt]=y.orderedChildrenIds,d[g??Pt]=y.childrenIndexes;for(const x of y.itemsChildren)h(x.children,x.id,p+1)};return h(n,o,s),{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}}function CR({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:s}){if(e==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. You can use the \`getItemId\` prop to specify a custom id for each item. An item was provided without an id: ${JSON.stringify(n)}`:Oe(193,JSON.stringify(n)));if(s[e]!=null||o[e]!=null&&o[e].parentId!==t)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${e}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Oe(194,e))}const wR=[],ue={domStructure:Ce(e=>e.domStructure),disabledItemFocusable:Ce(e=>e.disabledItemsFocusable),itemMetaLookup:Ce(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:Ce(e=>e.itemOrderedChildrenIdsLookup),itemMeta:Ce((e,t)=>e.itemMetaLookup[t??Pt]??null),itemOrderedChildrenIds:Ce((e,t)=>e.itemOrderedChildrenIdsLookup[t??Pt]??wR),itemModel:Ce((e,t)=>e.itemModelLookup[t]),isItemDisabled:Ce((e,t)=>Rs(e.itemMetaLookup,t)),itemIndex:Ce((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Pt][n.id]}),itemParentId:Ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:Ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:Ce((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!Rs(e.itemMetaLookup,t)),itemChildrenIndentation:Ce(e=>e.itemChildrenIndentation),itemHeight:Ce(e=>e.itemHeight)},Td=Ce(e=>e.providedTreeId??e.treeId),xi={treeId:Td,treeItemIdAttribute:Ce(Td,(e,t,n)=>n??`${e??""}-${t}`)};class _o{constructor(t){U(this,"getItem",t=>ue.itemModel(this.store.state,t));U(this,"getItemTree",()=>{const t=n=>{const o=ue.itemModel(this.store.state,n),s=M({},o),i=ue.itemOrderedChildrenIds(this.store.state,n);return i.length>0?s.children=i.map(t):delete s.children,s};return ue.itemOrderedChildrenIds(this.store.state,null).map(t)});U(this,"getItemOrderedChildrenIds",t=>ue.itemOrderedChildrenIds(this.store.state,t));U(this,"getParentId",t=>{const n=ue.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});U(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=M({},this.store.state.itemMetaLookup);o[t]=M({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});U(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&ue.itemMeta(this.store.state,n)==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items to the parent with id "${n}" because it is not present in the tree. Pass the id of an existing item, or \`null\` to add the items at the root level.`:Oe(295,n));const s=n==null?-1:ue.itemDepth(this.store.state,n),i=this.store.parameters.dataSource,a=(x,T)=>T!=null&&T.length>0?!0:i==null?!1:i.getChildrenCount(x)!==0,{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}=wd({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:a,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const x of Object.keys(l))if(this.store.state.itemMetaLookup[x]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${x}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Oe(194,x));const m=n??Pt,h=ue.itemOrderedChildrenIds(this.store.state,n),f=o??h.length;if(f<0||f>h.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${f}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${h.length}).`:Oe(296,f,h.length));const g=u[m],p=[...h];p.splice(f,0,...g),u[m]=p,d[m]=ah(p);const y=M({},this.store.state.itemMetaLookup,l);n!=null&&!y[n].expandable&&(y[n]=M({},y[n],{expandable:!0})),this.store.update({itemMetaLookup:y,itemModelLookup:M({},this.store.state.itemModelLookup,c),itemOrderedChildrenIdsLookup:M({},this.store.state.itemOrderedChildrenIdsLookup,u),itemChildrenIndexesLookup:M({},this.store.state.itemChildrenIndexesLookup,d)}),this.store.selection.propagateSelectionToNewItems(n,g)});U(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));U(this,"getItemDOMElement",t=>{const n=ue.itemMeta(this.store.state,t);if(n==null)return null;const o=xi.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});U(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const s=n??Pt,i=n==null?-1:ue.itemDepth(this.store.state,n),{metaLookup:a,modelLookup:l,orderedChildrenIds:c,childrenIndexes:u}=lh({storeParameters:this.store.parameters,items:t,parentId:n,depth:i+1,isItemExpandable:o?d=>o(d)!==0:()=>!1,otherItemsMetaLookup:ue.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:M({},this.store.state.itemModelLookup,l),itemMetaLookup:M({},this.store.state.itemMetaLookup,a),itemOrderedChildrenIdsLookup:M({},this.store.state.itemOrderedChildrenIdsLookup,{[s]:c}),itemChildrenIndexesLookup:M({},this.store.state.itemChildrenIndexesLookup,{[s]:u})})});U(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((l,c)=>{const u=n[c];return u.parentId===t?l:M({},l,{[u.id]:u})},{}),s=M({},this.store.state.itemOrderedChildrenIdsLookup),i=M({},this.store.state.itemChildrenIndexesLookup),a=t??Pt;delete i[a],delete s[a],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i})});U(this,"handleItemClick",(t,n)=>{var o,s;(s=(o=this.store.parameters).onItemClick)==null||s.call(o,t,n)});this.store=t}}U(_o,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const s=o;return t[s]!==n[s]})),U(_o,"buildItemsStateIfNeeded",t=>wd({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const Wi=Vr(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Ze={expandedItemsRaw:Ce(e=>e.expandedItems),expandedItemsMap:Wi,flatList:Vr(ue.itemOrderedChildrenIdsLookup,Wi,(e,t)=>{function n(o){if(!t.has(o))return[o];const s=[o],i=e[o]||[];for(const a of i)s.push(...n(a));return s}return(e[Pt]??[]).flatMap(n)}),triggerSlot:Ce(e=>e.expansionTrigger),isItemExpanded:Ce(Wi,(e,t)=>e.has(t)),isItemExpandable:Ce(ue.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},ch=Vr(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),uh=Vr(ch,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),da=Ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),pa=Ce(uh,(e,t)=>e.has(t)),dh=Ce(ue.isItemDisabled,da,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),ph=Ce(e=>e.selectionPropagation),Id=Ce((e,t)=>{if(pa(e,t))return"selected";if(ue.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const s=a=>{a!==t&&dh(e,a)&&(pa(e,a)?n=!0:o=!0),ue.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),ph(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),Se={selectedItemsRaw:Ce(e=>e.selectedItems),selectedItems:ch,selectedItemsMap:uh,enabled:Ce(e=>!e.disableSelection),isMultiSelectEnabled:Ce(e=>e.multiSelect),isCheckboxSelectionEnabled:Ce(e=>e.checkboxSelection),propagationRules:ph,isItemSelected:pa,itemSelectionStatus:Id,isItemIndeterminate:Ce(Id,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:Ce(da,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:dh,isItemSelectable:da},Ed=Vr(Se.selectedItems,Ze.expandedItemsMap,ue.itemMetaLookup,ue.disabledItemFocusable,e=>ue.itemOrderedChildrenIds(e,null),(e,t,n,o,s)=>{const i=e.find(l=>{if(!o&&Rs(n,l))return!1;const c=n[l];return c&&(c.parentId==null||t.has(c.parentId))});if(i!=null)return i;const a=s.find(l=>o||!Rs(n,l));return a??null}),So={defaultFocusableItemId:Ed,isItemTheDefaultFocusableItem:Ce(Ed,(e,t)=>e===t),focusedItemId:Ce(e=>e.focusedItemId),isItemFocused:Ce((e,t)=>e.focusedItemId===t)},Ns={isEmpty:Ce(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:Ce((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??Pt])??!1}),itemHasError:Ce((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??Pt])}),itemError:Ce((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??Pt]})},sn={isItemEditable:Ce(e=>e.isItemEditable,ue.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:Ce((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:Ce(e=>!!e.editedItemId)},fh=e=>Array.isArray(e)?e.length>0&&e.some(fh):!!e,mh=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=Vn(),s=Ee(n,Ze.isItemExpandable,e),i=Ee(n,Ns.isItemLoading,e),a=Ee(n,Ns.itemHasError,e),l=fh(t)||s,c=Ee(n,Ze.isItemExpanded,e),u=Ee(n,So.isItemFocused,e),d=Ee(n,Se.isItemSelected,e),m=Ee(n,Se.isItemIndeterminate,e),h=Ee(n,ue.isItemDisabled,e),f=Ee(n,sn.isItemBeingEdited,e),g=Ee(n,sn.isItemEditable,e),p={expandable:l,expanded:c,focused:u,selected:d,indeterminate:m,disabled:h,editing:f,editable:g,loading:i,error:a},y=R=>{if(p.disabled)return;p.focused||n.focus.focusItem(R,e);const $=Se.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey);p.expandable&&!($&&Ze.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:R,itemId:e})},x=R=>{if(!Se.canItemBeSelected(n.state,e))return;!p.focused&&!p.editing&&n.focus.focusItem(R,e),Se.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey)?R.shiftKey?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:R,itemId:e,shouldBeSelected:!0})},T=R=>{const $=R.nativeEvent.shiftKey,L=Se.isMultiSelectEnabled(n.state);L&&$?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:L,shouldBeSelected:R.target.checked})},w=()=>{n.labelEditing&&(f?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:y,handleSelection:x,handleCheckboxSelection:T,toggleItemEditing:w,handleSaveItemLabel:(R,$)=>{n.labelEditing&&sn.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,$),w(),n.focus.focusItem(R,e))},handleCancelItemLabelEditing:R=>{n.labelEditing&&sn.isItemBeingEdited(n.state,e)&&(w(),n.focus.focusItem(R,e))}},status:p,publicAPI:o}},Bl=S.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Bl.displayName="TreeViewItemDepthContext");const fa=(e,t)=>{let n=t.length-1;for(;n>=0&&!ue.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},zl=(e,t)=>{const n=ue.itemMeta(e,t);if(!n)return null;const o=ue.itemOrderedChildrenIds(e,n.parentId),s=ue.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!ue.canItemBeFocused(e,o[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:zl(e,n.parentId);let a=o[i],l=fa(e,ue.itemOrderedChildrenIds(e,a));for(;Ze.isItemExpanded(e,a)&&l!=null;)a=l,l=fa(e,ue.itemOrderedChildrenIds(e,a));return a},hr=(e,t)=>{if(Ze.isItemExpanded(e,t)){const o=ue.itemOrderedChildrenIds(e,t).find(s=>ue.canItemBeFocused(e,s));if(o!=null)return o}let n=ue.itemMeta(e,t);for(;n!=null;){const o=ue.itemOrderedChildrenIds(e,n.parentId),s=ue.itemIndex(e,n.id);if(s<o.length-1){let i=s+1;for(;!ue.canItemBeFocused(e,o[i])&&i<o.length-1;)i+=1;if(ue.canItemBeFocused(e,o[i]))return o[i]}n=ue.itemMeta(e,n.parentId)}return null},hh=e=>{let t=null;for(;t==null||Ze.isItemExpanded(e,t);){const n=ue.itemOrderedChildrenIds(e,t),o=fa(e,n);if(o==null)return t;t=o}return t},Ir=e=>ue.itemOrderedChildrenIds(e,null).find(t=>ue.canItemBeFocused(e,t)),gh=(e,t,n)=>{if(t===n)return[t,n];const o=ue.itemMeta(e,t),s=ue.itemMeta(e,n);if(!o||!s)return[t,n];if(o.parentId===s.id||s.parentId===o.id)return s.parentId===o.id?[o.id,s.id]:[s.id,o.id];const i=[o.id],a=[s.id];let l=o.parentId,c=s.parentId,u=a.indexOf(l)!==-1,d=i.indexOf(c)!==-1,m=!0,h=!0;for(;!d&&!u;)m&&(i.push(l),u=a.indexOf(l)!==-1,m=l!==null,!u&&m&&(l=ue.itemParentId(e,l))),h&&!u&&(a.push(c),d=i.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=ue.itemParentId(e,c)));const f=u?l:c,g=ue.itemOrderedChildrenIds(e,f),p=i[i.indexOf(f)-1],y=a[a.indexOf(f)-1];return g.indexOf(p)<g.indexOf(y)?[t,n]:[n,t]},TR=(e,t,n)=>{const o=c=>{if(Ze.isItemExpandable(e,c)&&Ze.isItemExpanded(e,c))return ue.itemOrderedChildrenIds(e,c)[0];let u=ue.itemMeta(e,c);for(;u!=null;){const d=ue.itemOrderedChildrenIds(e,u.parentId),m=ue.itemIndex(e,u.id);if(m<d.length-1)return d[m+1];u=u.parentId?ue.itemMeta(e,u.parentId):null}throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Invalid range - unable to find a path between the two items. This may occur if the items are not in the same tree or the tree structure is invalid. Verify that both items exist in the tree.":Oe(191))},[s,i]=gh(e,t,n),a=[s];let l=s;for(;l!==i;)l=o(l),ue.isItemDisabled(e,l)||a.push(l);return a},IR=e=>{let t=Ir(e);const n=[];for(;t!=null;)n.push(t),t=hr(e,t);return n},ma=(e,t)=>t!==e.closest('*[role="treeitem"]');class ER{constructor(t){U(this,"setExpandedItems",(t,n)=>{var o,s;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(s=(o=this.store.parameters).onExpandedItemsChange)==null||s.call(o,t,n)});U(this,"isItemExpanded",t=>Ze.isItemExpanded(this.store.state,t));U(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));U(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const s=Ze.isItemExpanded(this.store.state,t),i=o??!s;if(s===i)return;const a={isExpansionPrevented:!1,shouldBeExpanded:i,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",a,n),!a.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:i})});U(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var a,l;const s=Ze.expandedItemsRaw(this.store.state);let i;o?i=[t].concat(s):i=s.filter(c=>c!==t),(l=(a=this.store.parameters).onItemExpansionToggle)==null||l.call(a,n,t,o),this.setExpandedItems(n,i)});U(this,"expandAllSiblings",(t,n)=>{const o=ue.itemMeta(this.store.state,n);if(o==null)return;const i=ue.itemOrderedChildrenIds(this.store.state,o.parentId).filter(l=>Ze.isItemExpandable(this.store.state,l)&&!Ze.isItemExpanded(this.store.state,l)),a=Ze.expandedItemsRaw(this.store.state).concat(i);i.length>0&&(this.store.parameters.onItemExpansionToggle&&i.forEach(l=>{this.store.parameters.onItemExpansionToggle(t,l,!0)}),this.setExpandedItems(t,a))});U(this,"addExpandableItems",t=>{const n=M({},this.store.state.itemMetaLookup);for(const o of t)n[o]=M({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class OR{constructor(t){U(this,"setFocusedItemId",t=>{So.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});U(this,"applyItemFocus",(t,n)=>{var o,s,i;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(i=(s=this.store.parameters).onItemFocus)==null||i.call(s,t,n)});U(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));U(this,"focusItem",(t,n)=>{const o=ue.itemMeta(this.store.state,n);o&&(o.parentId==null||Ze.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});U(this,"removeFocusedItem",()=>{const t=So.focusedItemId(this.store.state);if(t==null)return;if(ue.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});U(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=So.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});U(this,"handleRootBlur",t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)});this.store=t;let n=t.state;this.store.disposables.defer(this.store.subscribe(o=>{if(o.itemMetaLookup===n.itemMetaLookup){n=o;return}const s=So.focusedItemId(o);if(s==null||ue.itemMeta(o,s)){n=o;return}const i=l=>l==null||!ue.itemMeta(o,l)?null:l,a=i(hr(n,s))??i(zl(n,s))??Ir(o);a==null?this.setFocusedItemId(null):this.applyItemFocus(null,a),n=o}))}}const _R=({props:e})=>{const{itemId:t}=e,{store:n}=Vn(),o=Ee(n,Se.isCheckboxSelectionEnabled),s=Ee(n,Se.isFeatureEnabledForItem,t),i=Ee(n,Se.canItemBeSelected,t),a=Ee(n,ue.isItemDisabled,t),l=Ee(n,Se.isItemSelectable,t),c=Ee(n,Se.itemSelectionStatus,t),u=a||!l;return{propsEnhancers:{root:()=>{let d;return u?d=void 0:c==="selected"?d=!0:c==="indeterminate"?d="mixed":i?d=!1:d=void 0,{"aria-checked":d}},checkbox:({externalEventHandlers:d,interactions:m})=>({tabIndex:-1,onChange:f=>{var g;(g=d.onChange)==null||g.call(d,f),!f.defaultMuiPrevented&&Se.canItemBeSelected(n.state,t)&&m.handleCheckboxSelection(f)},visible:o&&s,disabled:!i,checked:c==="selected",indeterminate:c==="indeterminate"})}}};class kR{constructor(t){U(this,"lastSelectedItem",null);U(this,"lastSelectedRange",{});U(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:s=Oo,selectedItems:i,onItemSelectionToggle:a,onSelectedItemsChange:l}=this.store.parameters,c=Se.selectedItemsRaw(this.store.state);let u;const d=Se.isMultiSelectEnabled(this.store.state);if(d&&(s.descendants||s.parents)?u=PR({store:this.store,selectionPropagation:s,newModel:n,oldModel:c,additionalItemsToPropagate:o}):u=n,i===void 0&&this.store.set("selectedItems",u),a)if(d){const m=bh({newModel:u,oldModel:c});a&&(m.added.forEach(h=>{a(t,h,!0)}),m.removed.forEach(h=>{a(t,h,!1)}))}else u!==c&&(c!=null&&a(t,c,!1),u!=null&&a(t,u,!0));l==null||l(t,u)});U(this,"selectRange",(t,[n,o])=>{if(!Se.isMultiSelectEnabled(this.store.state))return;let i=Se.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(i=i.filter(u=>!this.lastSelectedRange[u]));const a=ms(i),l=TR(this.store.state,n,o).filter(u=>Se.isItemSelectable(this.store.state,u)),c=l.filter(u=>!a[u]);i=i.concat(c),this.setSelectedItems(t,i),this.lastSelectedRange=ms(l)});U(this,"getItemSelection",t=>Se.itemSelectionStatus(this.store.state,t));U(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));U(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=Oo}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!Se.isMultiSelectEnabled(this.store.state)||!Se.isItemSelected(this.store.state,t))return;const s=Se.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,s,n)});U(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:s})=>{if(!Se.enabled(this.store.state))return;let i;const a=Se.isMultiSelectEnabled(this.store.state);if(o&&a){const l=Se.selectedItems(this.store.state),c=Se.isItemSelected(this.store.state,t);c&&(s===!1||s==null)?i=l.filter(u=>u!==t):!c&&(s===!0||s==null)?i=[t].concat(l):i=l}else s===!1||s==null&&Se.isItemSelected(this.store.state,t)?i=a?[]:null:i=a?[t]:t;this.setSelectedItems(n,i,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});U(this,"selectAllNavigableItems",t=>{if(!Se.isMultiSelectEnabled(this.store.state))return;const o=IR(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=ms(o)});U(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,s]=gh(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,s])}});U(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[Ir(this.store.state),n])});U(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,hh(this.store.state)])});U(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!Se.isMultiSelectEnabled(this.store.state))return;let i=Se.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(Se.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(i=i.filter(a=>a!==n),delete this.lastSelectedRange[n]):(Se.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,i)});this.store=t,t.itemPluginManager.register(_R,null)}}function PR({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:s}){if(!t.descendants&&!t.parents)return n;let i=!1;const a=ms(n),l=bh({newModel:n,oldModel:o});return s==null||s.forEach(c=>{a[c]?l.added.includes(c)||l.added.push(c):l.removed.includes(c)||l.removed.push(c)}),l.added.forEach(c=>{if(t.descendants){const u=d=>{d!==c&&Se.canItemBeSelected(e.state,d)&&(i=!0,a[d]=!0),ue.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=m=>Se.canItemBeSelected(e.state,m)?a[m]?ue.itemOrderedChildrenIds(e.state,m).every(u):!1:ue.itemOrderedChildrenIds(e.state,m).every(u),d=m=>{const h=ue.itemParentId(e.state,m);if(h==null)return;ue.itemOrderedChildrenIds(e.state,h).every(u)&&(Se.canItemBeSelected(e.state,h)&&(i=!0,a[h]=!0),d(h))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=ue.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=ue.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),ue.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n}function bh({oldModel:e,newModel:t}){const n=new Map;t.forEach(s=>{n.set(s,!0)});const o=new Map;return e.forEach(s=>{o.set(s,!0)}),{added:t.filter(s=>!o.has(s)),removed:e.filter(s=>!n.has(s))}}function ms(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const RR=(e,t,n)=>typeof n=="function"?n(e,t):n,yh=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=Vn(),s=S.useContext(Bl),i=Ee(o,RR,e.itemId,s),{id:a,itemId:l,label:c,children:u,rootRef:d}=e,{rootRef:m,contentRef:h,propsEnhancers:f}=t(e),{interactions:g,status:p}=mh({itemId:l,children:u}),y=S.useRef(null),x=S.useRef(null),T=ca(d,m,y),w=ca(h,x),C=S.useRef(null),I=Ee(o,Se.isCheckboxSelectionEnabled),E=Ee(o,xi.treeItemIdAttribute,l,a),R=Ee(o,So.isItemTheDefaultFocusableItem,l),$=Ee(o,ue.itemHeight),L={rootRefObject:y,contentRefObject:x,interactions:g},V=q=>B=>{var H;(H=q.onFocus)==null||H.call(q,B),!B.defaultMuiPrevented&&!p.focused&&ue.canItemBeFocused(o.state,l)&&B.currentTarget===B.target&&o.focus.focusItem(B,l)},j=q=>B=>{var ae,G,de,oe,ye;if((ae=q.onBlur)==null||ae.call(q,B),B.defaultMuiPrevented)return;const H=o.items.getItemDOMElement(l);p.editing||B.relatedTarget&&ma(B.relatedTarget,H)&&(B.target&&((de=(G=B.target)==null?void 0:G.dataset)==null?void 0:de.element)==="labelInput"&&ma(B.target,H)||((ye=(oe=B.relatedTarget)==null?void 0:oe.dataset)==null?void 0:ye.element)==="labelInput")||o.focus.removeFocusedItem()},v=q=>B=>{var H,ae,G;(H=q.onKeyDown)==null||H.call(q,B),!(B.defaultMuiPrevented||((G=(ae=B.target)==null?void 0:ae.dataset)==null?void 0:G.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(B,l)},P=q=>B=>{var H;(H=q.onDoubleClick)==null||H.call(q,B),!B.defaultMuiPrevented&&g.toggleItemEditing()},_=q=>B=>{var H,ae;(H=q.onClick)==null||H.call(q,B),o.items.handleItemClick(B,l),!(B.defaultMuiPrevented||(ae=C.current)!=null&&ae.contains(B.target))&&(Ze.triggerSlot(o.state)==="content"&&g.handleExpansion(B),I||g.handleSelection(B))},O=q=>B=>{var H;(H=q.onMouseDown)==null||H.call(q,B),!B.defaultMuiPrevented&&(B.shiftKey||B.ctrlKey||B.metaKey||p.disabled)&&B.preventDefault()},k=q=>B=>{var H;(H=q.onClick)==null||H.call(q,B),!B.defaultMuiPrevented&&Ze.triggerSlot(o.state)==="iconContainer"&&g.handleExpansion(B)};return{getContextProviderProps:()=>({itemId:l,id:a}),getRootProps:(q={})=>{var G;const B=M({},It(e),It(q)),H=M({},B,{ref:T,role:"treeitem",tabIndex:R?0:-1,id:E,"aria-expanded":p.expandable?p.expanded:void 0,"aria-disabled":p.disabled||void 0},q,{style:M({},q.style??{},{"--TreeView-itemDepth":i},$==null?{}:{"--TreeView-itemHeight":`${$}px`}),onFocus:V(B),onBlur:j(B),onKeyDown:v(B)}),ae=((G=f.root)==null?void 0:G.call(f,M({},L,{externalEventHandlers:B})))??{};return M({},H,ae)},getContentProps:(q={})=>{var G;const B=It(q),H=M({},B,q,{ref:w,onClick:_(B),onMouseDown:O(B)});["expanded","selected","focused","disabled","editing","editable"].forEach(de=>{p[de]&&(H[`data-${de}`]="")});const ae=((G=f.content)==null?void 0:G.call(f,M({},L,{externalEventHandlers:B})))??{};return M({},H,ae)},getGroupTransitionProps:(q={})=>{const B=It(q);return M({},B,{unmountOnExit:!0,component:"ul",role:"group",in:p.expanded,children:u},q)},getIconContainerProps:(q={})=>{const B=It(q);return M({},B,q,{onClick:k(B)})},getCheckboxProps:(q={})=>{var G;const B=It(q),H=M({},B,{ref:C,"aria-hidden":!0},q),ae=((G=f.checkbox)==null?void 0:G.call(f,M({},L,{externalEventHandlers:B})))??{};return M({},H,ae)},getLabelProps:(q={})=>{var G;const B=M({},It(q)),H=M({},B,{children:c},q,{onDoubleClick:P(B)}),ae=((G=f.label)==null?void 0:G.call(f,M({},L,{externalEventHandlers:B})))??{};return M({},ae,H)},getLabelInputProps:(q={})=>{var ae;const B=It(q),H=((ae=f.labelInput)==null?void 0:ae.call(f,M({},L,{externalEventHandlers:B})))??{};return M({},q,H)},getDragAndDropOverlayProps:(q={})=>{var ae;const B=It(q),H=((ae=f.dragAndDropOverlay)==null?void 0:ae.call(f,M({},L,{externalEventHandlers:B})))??{};return M({},q,H)},getErrorContainerProps:(q={})=>{const B=It(q);return M({},B,q)},getLoadingContainerProps:(q={})=>{const B=It(q);return M({size:"12px",thickness:6},B,q)},rootRef:T,status:p,publicAPI:n}};function NR(e){return Al("MuiTreeItem",e)}oh("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const MR=rt(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),$R=rt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),DR=["ownerState"];function Ui(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Wl(e){const{slots:t,slotProps:n,status:o}=e,{slots:s,slotProps:i}=Fl(),a={collapseIcon:Ui(t==null?void 0:t.collapseIcon,s.collapseIcon,$R),expandIcon:Ui(t==null?void 0:t.expandIcon,s.expandIcon,MR),endIcon:Ui(t==null?void 0:t.endIcon,s.endIcon),icon:t==null?void 0:t.icon};let l;a!=null&&a.icon?l="icon":o.expandable?o.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const c=a[l],u=xt({elementType:c,externalSlotProps:m=>M({},ua(i[l],m),ua(n==null?void 0:n[l],m)),ownerState:{}}),d=xe(u,DR);return c?b.jsx(c,M({},d)):null}process.env.NODE_ENV!=="production"&&(Wl.propTypes={slotProps:r.object,slots:r.object,status:r.shape({disabled:r.bool.isRequired,editable:r.bool.isRequired,editing:r.bool.isRequired,error:r.bool.isRequired,expandable:r.bool.isRequired,expanded:r.bool.isRequired,focused:r.bool.isRequired,indeterminate:r.bool,loading:r.bool.isRequired,selected:r.bool.isRequired}).isRequired});const AR=te("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>Ft(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.alpha((e.vars||e).palette.primary.dark,(e.vars||e).palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function vh(e){return e.action==null?null:b.jsx(AR,M({},e))}process.env.NODE_ENV!=="production"&&(vh.propTypes={action:r.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:r.object});function Ul(e){const{children:t,itemId:n,id:o}=e,{wrapItem:s,store:i}=Vn(),a=Ee(i,xi.treeItemIdAttribute,n,o);return b.jsx(S.Fragment,{children:s({children:t,itemId:n,store:i,idAttribute:a})})}process.env.NODE_ENV!=="production"&&(Ul.propTypes={children:r.node,id:r.string,itemId:r.string.isRequired});const jR=te("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>M({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),LR=["visible"],VR=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],FR=rh(),xh=te("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Sh=te("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>Ft(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",height:"var(--TreeView-itemHeight, unset)",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}})),Ch=te("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>Ft(e)&&e!=="editable"})(({theme:e})=>M({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),wh=te("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),Th=te(Ps,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),BR=te("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),zR=te(Js,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),Ih=te(S.forwardRef((e,t)=>{const{visible:n}=e,o=xe(e,LR);return n?b.jsx(ih,M({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(Ih.displayName="TreeItemCheckbox");const WR=e=>{const{classes:t}=Fl(),n=M({},e,{root:ce(e==null?void 0:e.root,t.root),content:ce(e==null?void 0:e.content,t.itemContent),iconContainer:ce(e==null?void 0:e.iconContainer,t.itemIconContainer),checkbox:ce(e==null?void 0:e.checkbox,t.itemCheckbox),label:ce(e==null?void 0:e.label,t.itemLabel),groupTransition:ce(e==null?void 0:e.groupTransition,t.itemGroupTransition),labelInput:ce(e==null?void 0:e.labelInput,t.itemLabelInput),dragAndDropOverlay:ce(e==null?void 0:e.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ce(e==null?void 0:e.errorIcon,t.itemErrorIcon),loadingIcon:ce(e==null?void 0:e.loadingIcon,t.itemLoadingIcon)});return nh({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},NR,n)},Hl=S.forwardRef(function(t,n){const o=FR({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:m={},classes:h}=o,f=xe(o,VR),{getContextProviderProps:g,getRootProps:p,getContentProps:y,getIconContainerProps:x,getCheckboxProps:T,getLabelProps:w,getGroupTransitionProps:C,getLabelInputProps:I,getDragAndDropOverlayProps:E,getErrorContainerProps:R,getLoadingContainerProps:$,status:L}=yh({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),V=WR(h),j=d.root??xh,v=xt({elementType:j,getSlotProps:p,externalForwardedProps:f,externalSlotProps:m.root,additionalProps:{ref:n},ownerState:{},className:V.root}),P=d.content??Sh,_=xt({elementType:P,getSlotProps:y,externalSlotProps:m.content,ownerState:{},className:V.content}),O=d.iconContainer??wh,k=xt({elementType:O,getSlotProps:x,externalSlotProps:m.iconContainer,ownerState:{},className:V.iconContainer}),D=d.label??Ch,N=xt({elementType:D,getSlotProps:w,externalSlotProps:m.label,ownerState:{},className:V.label}),z=d.checkbox??Ih,A=xt({elementType:z,getSlotProps:T,externalSlotProps:m.checkbox,ownerState:{},className:V.checkbox}),F=d.groupTransition??void 0,W=xt({elementType:F,getSlotProps:C,externalSlotProps:m.groupTransition,ownerState:{},className:V.groupTransition}),K=d.labelInput??jR,Z=xt({elementType:K,getSlotProps:I,externalSlotProps:m.labelInput,ownerState:{},className:V.labelInput}),Y=d.dragAndDropOverlay??vh,X=xt({elementType:Y,getSlotProps:E,externalSlotProps:m.dragAndDropOverlay,ownerState:{},className:V.dragAndDropOverlay}),ne=d.errorIcon??BR,q=xt({elementType:ne,getSlotProps:R,externalSlotProps:m.errorIcon,ownerState:{},className:V.errorIcon}),B=d.loadingIcon??zR,H=xt({elementType:B,getSlotProps:$,externalSlotProps:m.loadingIcon,ownerState:{},className:V.loadingIcon});return b.jsx(Ul,M({},g(),{children:b.jsxs(j,M({},v,{children:[b.jsxs(P,M({},_,{children:[b.jsxs(O,M({},k,{children:[L.error&&b.jsx(ne,M({},q)),L.loading?b.jsx(B,M({},H)):b.jsx(Wl,{status:L,slots:d,slotProps:m})]})),b.jsx(z,M({},A)),L.editing?b.jsx(K,M({},Z)):b.jsx(D,M({},N)),b.jsx(Y,M({},X))]})),u&&b.jsx(Th,M({as:F},W))]}))}))});process.env.NODE_ENV!=="production"&&(Hl.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(Hl.propTypes={children:r.any,classes:r.object,className:r.string,disabled:r.bool,disableSelection:r.bool,id:r.string,itemId:r.string.isRequired,label:r.node,onBlur:r.func,onFocus:oR,onKeyDown:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function UR(e,t,n){const o=Ee(e,xi.treeId),s=Ee(e,ue.itemChildrenIndentation),i=Ee(e,Se.isMultiSelectEnabled);return a=>M({ref:n,role:"tree",id:o,"aria-multiselectable":i},t,a,{style:M({},t.style,{"--TreeView-itemChildrenIndentation":typeof s=="number"?`${s}px`:s}),onFocus:l=>{var c;(c=a.onFocus)==null||c.call(a,l),e.focus.handleRootFocus(l)},onBlur:l=>{var c;(c=a.onBlur)==null||c.call(a,l),e.focus.handleRootBlur(l)}})}const HR=["ownerState"],ql=S.createContext(null);process.env.NODE_ENV!=="production"&&(ql.displayName="RichTreeViewItemsContext");const qR=()=>jl,YR=e=>ue.itemOrderedChildrenIds(e,null),Eh=S.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:s}){const i=S.useContext(ql),{store:a}=Vn(),l=Ee(a,ue.itemMeta,o),c=Ee(a,s?qR:ue.itemOrderedChildrenIds,o),u=t??Hl,d=xt({elementType:u,externalSlotProps:n,additionalProps:{label:l==null?void 0:l.label,id:l==null?void 0:l.idAttribute,itemId:o},ownerState:{itemId:o,label:l==null?void 0:l.label}}),m=xe(d,HR);return b.jsx(u,M({},m,{children:i?c==null?void 0:c.map(i):null}))},nR);process.env.NODE_ENV!=="production"&&(Eh.displayName="RichTreeViewItem");function GR(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:s,rootRef:i}=e,{store:a}=Vn(),{classes:l}=Fl(),c=t==null?void 0:t.item,u=n==null?void 0:n.item,d=Ee(a,ue.domStructure),m=Ee(a,d==="flat"?Ze.flatList:YR),h=UR(a,s,i),f=t.root,g=xt({elementType:f,externalSlotProps:n==null?void 0:n.root,className:l.root,getSlotProps:h,ownerState:o}),p=d==="flat",y=S.useCallback(x=>b.jsx(Eh,{itemSlot:c,itemSlotProps:u,itemId:x,skipChildren:p},x),[c,u,p]);return b.jsx(ql.Provider,{value:y,children:b.jsx(f,M({},g,{children:m.map(y)}))})}const KR=["apiRef","slots","slotProps","disabledItemsFocusable","items","isItemDisabled","isItemSelectionDisabled","getItemLabel","getItemChildren","getItemId","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus","itemHeight","onItemLabelChange","isItemEditable","domStructure"];function XR(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:f,expandedItems:g,defaultExpandedItems:p,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:T,disableSelection:w,selectedItems:C,defaultSelectedItems:I,multiSelect:E,checkboxSelection:R,selectionPropagation:$,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:j,itemHeight:v,onItemLabelChange:P,isItemEditable:_,domStructure:O}=e,k=xe(e,KR),D=S.useMemo(()=>({disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:f,expandedItems:g,defaultExpandedItems:p,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:T,disableSelection:w,selectedItems:C,defaultSelectedItems:I,multiSelect:E,checkboxSelection:R,selectionPropagation:$,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:j,itemHeight:v,onItemLabelChange:P,isItemEditable:_,domStructure:O}),[s,i,a,l,c,u,d,m,h,f,g,p,y,x,T,w,C,I,E,R,$,L,V,j,v,P,_,O]);return{apiRef:t,slots:n,slotProps:o,parameters:D,forwardedProps:k}}const QR=()=>{},ZR=typeof document<"u"?S.useLayoutEffect:QR;function Yl(e){S.useEffect(e,jl)}const JR={...S},Er=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),Od=typeof SuppressedError=="function"?SuppressedError:void 0;function eN(e,t){if(Od)return new Od(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function os(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class Gl{constructor(){U(this,"stack",[]);U(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if(os(this.isDisposed),t!=null){const n=t[Er];if(typeof n!="function")throw new TypeError("MUI X: The value is not disposable.");this.stack.push(()=>n.call(t))}return t}adopt(t,n){return os(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){os(this.isDisposed),this.stack.push(t)}move(){os(this.isDisposed);const t=new Gl;return t.stack=this.stack,this.stack=[],this.isDisposed=!0,t}dispose(){if(this.isDisposed)return;this.isDisposed=!0;let t=!1,n;for(let o=this.stack.length-1;o>=0;o-=1)try{this.stack[o]()}catch(s){n=t?eN(s,n):s,t=!0}if(this.stack=[],t)throw n}[Er](){this.dispose()}}const tN=globalThis.DisposableStack??Gl;function nN(e){const t=[];let n=e;for(;typeof n=="object"&&n!==null&&"error"in n&&"suppressed"in n;)t.push(n.error),n=n.suppressed;return t.push(n),t}const oN=16,_d=JR,mo=_d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??_d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function rN(){var e,t,n;try{const o=((t=(e=mo==null?void 0:mo.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=mo==null?void 0:mo.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&oN)!==0}catch{return!1}}const Ms=Symbol("useDisposable.mount"),sN=Symbol("useDisposable.devState"),ko=Symbol();function iN(e){const t=S.useRef(ko);if(t.current===ko){const n=e(),o=()=>{n[Er](),t.current=ko};n[Ms]=()=>o,t.current=n}return Yl(t.current[Ms]),t.current}function aN(e){const t=S.useRef(ko);if(t.current===ko){const n=e(),o={detectedStrict:rN(),mountCount:0,disposed:!1};n[sN]=o,n[Ms]=()=>{if(o.mountCount+=1,o.mountCount>1&&o.disposed)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: useDisposable failed to detect React StrictMode.
|
|
259
|
+
*/var Sd;function FP(){return Sd||(Sd=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=K,n=zl(),o=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Hi.useSyncExternalStoreWithSelector=function(u,d,m,h,f){var g=i(null);if(g.current===null){var p={hasValue:!1,value:null};g.current=p}else p=g.current;g=l(function(){function x(E){if(!T){if(T=!0,w=E,E=h(E),f!==void 0&&p.hasValue){var R=p.value;if(f(R,E))return C=R}return C=E}if(R=C,o(w,E))return R;var $=h(E);return f!==void 0&&f(R,$)?(w=E,R):(w=E,C=$)}var T=!1,w,C,I=m===void 0?null:m;return[function(){return x(d())},I===null?void 0:function(){return x(I())}]},[d,m,h,f]);var y=s(u,g[0],g[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Hi}var Cd;function BP(){return Cd||(Cd=1,process.env.NODE_ENV==="production"?ss.exports=VP():ss.exports=FP()),ss.exports}var zP=BP();const WP=parseInt(S.version,10),UP=WP>=19,qP=UP?HP:YP;function Oe(e,t,n,o,s){return qP(e,t,n,o,s)}function HP(e,t,n,o,s){const i=S.useCallback(()=>t(e.getSnapshot(),n,o,s),[e,t,n,o,s]);return LP.useSyncExternalStore(e.subscribe,i,i)}function YP(e,t,n,o,s){return zP.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,s))}class Wl{constructor(t){U(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));U(this,"getSnapshot",()=>this.state);U(this,"use",(t,n,o,s)=>Oe(this,t,n,o,s));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new Wl(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let s;for(;s=o.next(),!s.done;){if(n!==this.updateTick)return;const i=s.value;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(M({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(M({},this.state,{[t]:n}))}}function GP(e){return Re("MuiAlert",e)}const wd=Ee("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),KP=at(b.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"),XP=at(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),QP=at(b.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"),ZP=at(b.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"),JP=at(b.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"),eR=e=>{const{variant:t,color:n,severity:o,classes:s}=e,i={root:["root",`color${le(n||o)}`,`${t}${le(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return je(i,GP,s)},tR=te(zr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(Qe(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(bt(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${wd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(bt(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${wd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(bt(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),nR=te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),oR=te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),rR=te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Td={success:b.jsx(KP,{fontSize:"inherit"}),warning:b.jsx(XP,{fontSize:"inherit"}),error:b.jsx(QP,{fontSize:"inherit"}),info:b.jsx(ZP,{fontSize:"inherit"})},ah=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:m,iconMapping:h=Td,onClose:f,role:g="alert",severity:p="success",slotProps:y={},slots:x={},variant:T="standard",...w}=o,C={...o,color:c,severity:p,variant:T,colorSeverity:c||p},I=eR(C),E={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...y}},[R,$]=Ke("root",{ref:n,shouldForwardComponentProp:!0,className:ce(I.root,a),elementType:tR,externalForwardedProps:{...E,...w},ownerState:C,additionalProps:{role:g,elevation:0}}),[L,V]=Ke("icon",{className:I.icon,elementType:nR,externalForwardedProps:E,ownerState:C}),[A,v]=Ke("message",{className:I.message,elementType:oR,externalForwardedProps:E,ownerState:C}),[P,O]=Ke("action",{className:I.action,elementType:rR,externalForwardedProps:E,ownerState:C}),[_,k]=Ke("closeButton",{elementType:ro,externalForwardedProps:E,ownerState:C}),[D,N]=Ke("closeIcon",{elementType:JP,externalForwardedProps:E,ownerState:C});return b.jsxs(R,{...$,children:[m!==!1?b.jsx(L,{...V,children:m||h[p]||Td[p]}):null,b.jsx(A,{...v,children:i}),s!=null?b.jsx(P,{...O,children:s}):null,s==null&&f?b.jsx(P,{...O,children:b.jsx(_,{size:"small","aria-label":l,title:l,color:"inherit",onClick:f,...k,children:b.jsx(D,{fontSize:"small",...N})})}):null]})});process.env.NODE_ENV!=="production"&&(ah.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function lh(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Id=e=>e,sR=()=>{let e=Id;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Id}}},iR=sR(),aR={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 Ul(e,t,n="Mui"){const o=aR[t];return o?`${n}-${o}`:`${iR.generate(e)}-${t}`}function ch(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Ul(e,s,n)}),o}function lR(e){return Ul("MuiRichTreeView",e)}ch("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function uh(e){return Ue}const ql=Object.freeze([]),Mo=Object.freeze({}),Hl=S.createContext(null);process.env.NODE_ENV!=="production"&&(Hl.displayName="TreeViewContext");const Bn=()=>{const e=S.useContext(Hl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Could not find the Tree View context. This happens when a component is rendered outside of a SimpleTreeView or RichTreeView parent component. Ensure your component is a child of a Tree View component. This can also happen if you are bundling multiple versions of the Tree View.":ke(190));return e},Yl=S.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(Yl.displayName="TreeViewStyleContext");const Gl=()=>S.useContext(Yl),cR=e=>{const{store:t,apiRef:n,rootRef:o}=e,s=sh(()=>t.buildPublicAPI()).current;uR(s,n);const i=S.useCallback(l=>{let c=null,u=null;const d=[],m={};t.itemPluginManager.listPlugins().forEach(g=>{const p=g({props:l,rootRef:c,contentRef:u});p!=null&&p.rootRef&&(c=p.rootRef),p!=null&&p.contentRef&&(u=p.contentRef),p!=null&&p.propsEnhancers&&(d.push(p.propsEnhancers),Object.keys(p.propsEnhancers).forEach(y=>{m[y]=!0}))});const h=g=>p=>{const y={};return d.forEach(x=>{const T=x[g];T!=null&&Object.assign(y,T(p))}),y},f=Object.fromEntries(Object.keys(m).map(g=>[g,h(g)]));return{contentRef:u,rootRef:c,propsEnhancers:f}},[t]),a=S.useCallback(({itemId:l,children:c,idAttribute:u})=>{let d=c;const m=t.itemPluginManager.listWrappers();for(let h=m.length-1;h>=0;h-=1){const f=m[h];d=f({store:t,itemId:l,children:d,idAttribute:u})}return d},[t]);return S.useMemo(()=>({runItemPlugins:i,wrapItem:a,publicAPI:s,store:t,rootRef:o}),[i,a,s,t,o])};function uR(e,t){t!=null&&t.current!==e&&(t.current=e)}function dR(e){const{store:t,apiRef:n,rootRef:o,classes:s=Mo,slots:i=Mo,slotProps:a=Mo,children:l}=e,c=cR({store:t,apiRef:n,rootRef:o}),u=S.useMemo(()=>({classes:s,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:a.collapseIcon,expandIcon:a.expandIcon,endIcon:a.endIcon}}),[s,i.collapseIcon,i.expandIcon,i.endIcon,a.collapseIcon,a.expandIcon,a.endIcon]);return b.jsx(Hl.Provider,{value:c,children:b.jsx(Yl.Provider,{value:u,children:l})})}function pR(...e){const t=S.useRef(void 0),n=S.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function fR(e){return typeof e=="string"}function mR(e,t,n){return e===void 0||fR(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function hR(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function _t(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))hR(n,e[n])&&(t[n]=e[n]);return t}function Ed(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gR(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ce(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=_t({...s,...o}),l=Ed(o),c=Ed(s),u=t(a),d=ce(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function ga(e,t,n){return typeof e=="function"?e(t,n):e}function St(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:ga(n,o),{props:l,internalRef:c}=gR({...i,externalSlotProps:a}),u=pR(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return mR(t,{...l,ref:u},o)}const bR=Object.is;function yR(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const s in e)if(n+=1,!bR(e[s],t[s])||!(s in t))return!1;for(const s in t)o+=1;return n===o}function vR(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function xR(e){return Re("MuiCollapse",e)}Ee("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SR=e=>{const{orientation:t,classes:n}=e;return je({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},xR,n)},CR=te("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Qe(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),wR=te("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),TR=te("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),$s=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:m,onEntered:h,onEntering:f,onExit:g,onExited:p,onExiting:y,orientation:x="vertical",slots:T={},slotProps:w={},style:C,timeout:I=ef.standard,TransitionComponent:E=Ut,...R}=o,$={...o,orientation:x,collapsedSize:l},L=SR($),V=jr(),A=Ja(),v=S.useRef(null),P=S.useRef(),O=typeof l=="number"?`${l}px`:l,_=x==="horizontal",k=_?"width":"height",D=S.useRef(null),N=ft(n,D),z=()=>v.current?v.current[_?"clientWidth":"clientHeight"]:0,j=dt(D,(oe,ye)=>{v.current&&_&&(v.current.style.position="absolute"),oe.style[k]=O,m&&m(oe,ye)}),B=dt(D,(oe,ye)=>{const he=z();v.current&&_&&(v.current.style.position="");const{duration:re,easing:J}=Vo({style:C,timeout:I,easing:u},{mode:"enter"});if(I==="auto"){const ge=V.transitions.getAutoHeightDuration(he);oe.style.transitionDuration=`${ge}ms`,P.current=ge}else oe.style.transitionDuration=typeof re=="string"?re:`${re}ms`;oe.style[k]=`${he}px`,oe.style.transitionTimingFunction=J,f&&f(oe,ye)}),W=dt(D,(oe,ye)=>{oe.style[k]="auto",h&&h(oe,ye)}),X=dt(D,oe=>{oe.style[k]=`${z()}px`,g&&g(oe)}),Z=dt(D,p),Y=dt(D,oe=>{const ye=z(),{duration:he,easing:re}=Vo({style:C,timeout:I,easing:u},{mode:"exit"});if(I==="auto"){const J=V.transitions.getAutoHeightDuration(ye);oe.style.transitionDuration=`${J}ms`,P.current=J}else oe.style.transitionDuration=typeof he=="string"?he:`${he}ms`;oe.style[k]=O,oe.style.transitionTimingFunction=re,y&&y(oe)}),Q=oe=>{I==="auto"&&A.start(P.current||0,oe),s&&s(D.current,oe)},ne={slots:T,slotProps:w,component:c},[H,F]=Ke("root",{ref:N,className:ce(L.root,a),elementType:CR,externalForwardedProps:ne,ownerState:$,additionalProps:{style:{[_?"minWidth":"minHeight"]:O,...C}}}),[q,ae]=Ke("wrapper",{ref:v,className:L.wrapper,elementType:wR,externalForwardedProps:ne,ownerState:$}),[G,ue]=Ke("wrapperInner",{className:L.wrapperInner,elementType:TR,externalForwardedProps:ne,ownerState:$});return b.jsx(E,{in:d,onEnter:j,onEntered:W,onEntering:B,onExit:X,onExited:Z,onExiting:Y,addEndListener:Q,nodeRef:D,timeout:I==="auto"?null:I,...R,children:(oe,{ownerState:ye,...he})=>{const re={...$,state:oe};return b.jsx(H,{...F,className:ce(F.className,{entered:L.entered,exited:!d&&O==="0px"&&L.hidden}[oe]),ownerState:re,...he,children:b.jsx(q,{...ae,ownerState:re,children:b.jsx(G,{...ue,ownerState:re,children:i})})})}})});process.env.NODE_ENV!=="production"&&($s.propTypes={addEndListener:r.func,children:r.node,classes:r.object,className:r.string,collapsedSize:r.oneOfType([r.number,r.string]),component:Xa,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,orientation:r.oneOf(["horizontal","vertical"]),slotProps:r.shape({root:r.oneOfType([r.func,r.object]),wrapper:r.oneOfType([r.func,r.object]),wrapperInner:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,wrapper:r.elementType,wrapperInner:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});$s&&($s.muiSupportAuto=!0);function IR(e){return Re("PrivateSwitchBase",e)}Ee("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ER=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,i={root:["root",n&&"checked",o&&"disabled",s&&`edge${le(s)}`],input:["input"]};return je(i,IR,t)},_R=te(oo,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),OR=te("input",{name:"MuiSwitchBase",shouldForwardProp:Yo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),dh=S.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:f,name:g,onBlur:p,onChange:y,onFocus:x,readOnly:T,required:w=!1,tabIndex:C,type:I,value:E,slots:R={},slotProps:$={},...L}=t,[V,A]=OC({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),v=lo(),P=Y=>{x&&x(Y),v&&v.onFocus&&v.onFocus(Y)},O=Y=>{p&&p(Y),v&&v.onBlur&&v.onBlur(Y)},_=Y=>{if(Y.nativeEvent.defaultPrevented||T)return;const Q=Y.target.checked;A(Q),y&&y(Y,Q)};let k=l;v&&typeof k>"u"&&(k=v.disabled);const D=I==="checkbox"||I==="radio",N={...t,checked:V,disabled:k,disableFocusRipple:c,edge:u},z=ER(N),j={slots:R,slotProps:{input:h,...$}},[B,W]=Ke("root",{ref:n,elementType:_R,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...L},getSlotProps:Y=>({...Y,onFocus:Q=>{var ne;(ne=Y.onFocus)==null||ne.call(Y,Q),P(Q)},onBlur:Q=>{var ne;(ne=Y.onBlur)==null||ne.call(Y,Q),O(Q)}}),ownerState:N,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[X,Z]=Ke("input",{ref:f,elementType:OR,className:z.input,externalForwardedProps:j,getSlotProps:Y=>({...Y,onChange:Q=>{var ne;(ne=Y.onChange)==null||ne.call(Y,Q),_(Q)}}),ownerState:N,additionalProps:{autoFocus:o,checked:s,defaultChecked:a,disabled:k,id:D?m:void 0,name:g,readOnly:T,required:w,tabIndex:C,type:I,...I==="checkbox"&&E===void 0?{}:{value:E}}});return b.jsxs(B,{...W,children:[b.jsx(X,{...Z}),V?i:d]})});process.env.NODE_ENV!=="production"&&(dh.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:oi,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const kR=at(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),PR=at(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),RR=at(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function NR(e){return Re("MuiCheckbox",e)}const Yi=Ee("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),MR=e=>{const{classes:t,indeterminate:n,color:o,size:s}=e,i={root:["root",n&&"indeterminate",`color${le(o)}`,`size${le(s)}`]},a=je(i,NR,t);return{...t,...a}},$R=te(dh,{shouldForwardProp:e=>Yo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${le(n.size)}`],n.color!=="default"&&t[`color${le(n.color)}`]]}})(Qe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(bt()).map(([t])=>({props:{color:t},style:{[`&.${Yi.checked}, &.${Yi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Yi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),DR=b.jsx(PR,{}),AR=b.jsx(kR,{}),jR=b.jsx(RR,{}),ph=S.forwardRef(function(t,n){const o=He({props:t,name:"MuiCheckbox"}),{checkedIcon:s=DR,color:i="primary",icon:a=AR,indeterminate:l=!1,indeterminateIcon:c=jR,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:f={},slotProps:g={},...p}=o,y=l?c:a,x=l?c:s,T={...o,disableRipple:m,color:i,indeterminate:l,size:d},w=MR(T),C=g.input??u,[I,E]=Ke("root",{ref:n,elementType:$R,className:ce(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:g,...p},ownerState:T,additionalProps:{type:"checkbox",icon:S.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:S.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:m,slots:f,slotProps:{input:PC(typeof C=="function"?C(T):C,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return b.jsx(I,{...E,classes:w})});process.env.NODE_ENV!=="production"&&(ph.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const Nt="__TREE_VIEW_ROOT_PARENT_ID__",fh=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},Ds=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function mh(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],m=h=>{const f=t.getItemId?t.getItemId(h):h.id;LR({id:f,parentId:o,item:h,itemMetaLookup:a,siblingsMetaLookup:l});const g=t.getItemLabel?t.getItemLabel(h):h.label;if(g==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a \`label\` property. You can use the \`getItemLabel\` prop to specify a custom label for each item. An item was provided without a label: ${JSON.stringify(h)}`:ke(192,JSON.stringify(h)));const p=(t.getItemChildren?t.getItemChildren(h):h.children)||[];d.push({id:f,children:p}),c[f]=h,l[f]={id:f,label:g,parentId:o,idAttribute:void 0,expandable:i(h,p),disabled:t.isItemDisabled?t.isItemDisabled(h):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(h):!0,depth:s},u.push(f)};for(const h of n)m(h);return{metaLookup:l,modelLookup:c,orderedChildrenIds:u,childrenIndexes:fh(u),itemsChildren:d}}function _d(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,existingItemMetaLookup:a}=e,l={},c={},u={},d={},m=M({},a),h=(f,g,p)=>{const y=mh({storeParameters:t,items:f,parentId:g,depth:p,isItemExpandable:i,otherItemsMetaLookup:m});Object.assign(l,y.metaLookup),Object.assign(m,y.metaLookup),Object.assign(c,y.modelLookup),u[g??Nt]=y.orderedChildrenIds,d[g??Nt]=y.childrenIndexes;for(const x of y.itemsChildren)h(x.children,x.id,p+1)};return h(n,o,s),{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}}function LR({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:s}){if(e==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. You can use the \`getItemId\` prop to specify a custom id for each item. An item was provided without an id: ${JSON.stringify(n)}`:ke(193,JSON.stringify(n)));if(s[e]!=null||o[e]!=null&&o[e].parentId!==t)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${e}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:ke(194,e))}const VR=[],de={domStructure:Te(e=>e.domStructure),disabledItemFocusable:Te(e=>e.disabledItemsFocusable),itemMetaLookup:Te(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:Te(e=>e.itemOrderedChildrenIdsLookup),itemMeta:Te((e,t)=>e.itemMetaLookup[t??Nt]??null),itemOrderedChildrenIds:Te((e,t)=>e.itemOrderedChildrenIdsLookup[t??Nt]??VR),itemModel:Te((e,t)=>e.itemModelLookup[t]),isItemDisabled:Te((e,t)=>Ds(e.itemMetaLookup,t)),itemIndex:Te((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Nt][n.id]}),itemParentId:Te((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:Te((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:Te((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!Ds(e.itemMetaLookup,t)),itemChildrenIndentation:Te(e=>e.itemChildrenIndentation),itemHeight:Te(e=>e.itemHeight)},Od=Te(e=>e.providedTreeId??e.treeId),Ii={treeId:Od,treeItemIdAttribute:Te(Od,(e,t,n)=>n??`${e??""}-${t}`)};class $o{constructor(t){U(this,"getItem",t=>de.itemModel(this.store.state,t));U(this,"getItemTree",()=>{const t=n=>{const o=de.itemModel(this.store.state,n),s=M({},o),i=de.itemOrderedChildrenIds(this.store.state,n);return i.length>0?s.children=i.map(t):delete s.children,s};return de.itemOrderedChildrenIds(this.store.state,null).map(t)});U(this,"getItemOrderedChildrenIds",t=>de.itemOrderedChildrenIds(this.store.state,t));U(this,"getParentId",t=>{const n=de.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});U(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=M({},this.store.state.itemMetaLookup);o[t]=M({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});U(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&de.itemMeta(this.store.state,n)==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items to the parent with id "${n}" because it is not present in the tree. Pass the id of an existing item, or \`null\` to add the items at the root level.`:ke(295,n));const s=n==null?-1:de.itemDepth(this.store.state,n),i=this.store.parameters.dataSource,a=(x,T)=>T!=null&&T.length>0?!0:i==null?!1:i.getChildrenCount(x)!==0,{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}=_d({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:a,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const x of Object.keys(l))if(this.store.state.itemMetaLookup[x]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${x}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:ke(194,x));const m=n??Nt,h=de.itemOrderedChildrenIds(this.store.state,n),f=o??h.length;if(f<0||f>h.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${f}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${h.length}).`:ke(296,f,h.length));const g=u[m],p=[...h];p.splice(f,0,...g),u[m]=p,d[m]=fh(p);const y=M({},this.store.state.itemMetaLookup,l);n!=null&&!y[n].expandable&&(y[n]=M({},y[n],{expandable:!0})),this.store.update({itemMetaLookup:y,itemModelLookup:M({},this.store.state.itemModelLookup,c),itemOrderedChildrenIdsLookup:M({},this.store.state.itemOrderedChildrenIdsLookup,u),itemChildrenIndexesLookup:M({},this.store.state.itemChildrenIndexesLookup,d)}),this.store.selection.propagateSelectionToNewItems(n,g)});U(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));U(this,"getItemDOMElement",t=>{const n=de.itemMeta(this.store.state,t);if(n==null)return null;const o=Ii.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});U(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const s=n??Nt,i=n==null?-1:de.itemDepth(this.store.state,n),{metaLookup:a,modelLookup:l,orderedChildrenIds:c,childrenIndexes:u}=mh({storeParameters:this.store.parameters,items:t,parentId:n,depth:i+1,isItemExpandable:o?d=>o(d)!==0:()=>!1,otherItemsMetaLookup:de.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:M({},this.store.state.itemModelLookup,l),itemMetaLookup:M({},this.store.state.itemMetaLookup,a),itemOrderedChildrenIdsLookup:M({},this.store.state.itemOrderedChildrenIdsLookup,{[s]:c}),itemChildrenIndexesLookup:M({},this.store.state.itemChildrenIndexesLookup,{[s]:u})})});U(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((l,c)=>{const u=n[c];return u.parentId===t?l:M({},l,{[u.id]:u})},{}),s=M({},this.store.state.itemOrderedChildrenIdsLookup),i=M({},this.store.state.itemChildrenIndexesLookup),a=t??Nt;delete i[a],delete s[a],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i})});U(this,"handleItemClick",(t,n)=>{var o,s;(s=(o=this.store.parameters).onItemClick)==null||s.call(o,t,n)});this.store=t}}U($o,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const s=o;return t[s]!==n[s]})),U($o,"buildItemsStateIfNeeded",t=>_d({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const Gi=qr(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),et={expandedItemsRaw:Te(e=>e.expandedItems),expandedItemsMap:Gi,flatList:qr(de.itemOrderedChildrenIdsLookup,Gi,(e,t)=>{function n(o){if(!t.has(o))return[o];const s=[o],i=e[o]||[];for(const a of i)s.push(...n(a));return s}return(e[Nt]??[]).flatMap(n)}),triggerSlot:Te(e=>e.expansionTrigger),isItemExpanded:Te(Gi,(e,t)=>e.has(t)),isItemExpandable:Te(de.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},hh=qr(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),gh=qr(hh,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),ba=Te((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),ya=Te(gh,(e,t)=>e.has(t)),bh=Te(de.isItemDisabled,ba,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),yh=Te(e=>e.selectionPropagation),kd=Te((e,t)=>{if(ya(e,t))return"selected";if(de.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const s=a=>{a!==t&&bh(e,a)&&(ya(e,a)?n=!0:o=!0),de.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),yh(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),we={selectedItemsRaw:Te(e=>e.selectedItems),selectedItems:hh,selectedItemsMap:gh,enabled:Te(e=>!e.disableSelection),isMultiSelectEnabled:Te(e=>e.multiSelect),isCheckboxSelectionEnabled:Te(e=>e.checkboxSelection),propagationRules:yh,isItemSelected:ya,itemSelectionStatus:kd,isItemIndeterminate:Te(kd,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:Te(ba,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:bh,isItemSelectable:ba},Pd=qr(we.selectedItems,et.expandedItemsMap,de.itemMetaLookup,de.disabledItemFocusable,e=>de.itemOrderedChildrenIds(e,null),(e,t,n,o,s)=>{const i=e.find(l=>{if(!o&&Ds(n,l))return!1;const c=n[l];return c&&(c.parentId==null||t.has(c.parentId))});if(i!=null)return i;const a=s.find(l=>o||!Ds(n,l));return a??null}),_o={defaultFocusableItemId:Pd,isItemTheDefaultFocusableItem:Te(Pd,(e,t)=>e===t),focusedItemId:Te(e=>e.focusedItemId),isItemFocused:Te((e,t)=>e.focusedItemId===t)},As={isEmpty:Te(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:Te((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??Nt])??!1}),itemHasError:Te((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??Nt])}),itemError:Te((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??Nt]})},an={isItemEditable:Te(e=>e.isItemEditable,de.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:Te((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:Te(e=>!!e.editedItemId)},vh=e=>Array.isArray(e)?e.length>0&&e.some(vh):!!e,xh=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=Bn(),s=Oe(n,et.isItemExpandable,e),i=Oe(n,As.isItemLoading,e),a=Oe(n,As.itemHasError,e),l=vh(t)||s,c=Oe(n,et.isItemExpanded,e),u=Oe(n,_o.isItemFocused,e),d=Oe(n,we.isItemSelected,e),m=Oe(n,we.isItemIndeterminate,e),h=Oe(n,de.isItemDisabled,e),f=Oe(n,an.isItemBeingEdited,e),g=Oe(n,an.isItemEditable,e),p={expandable:l,expanded:c,focused:u,selected:d,indeterminate:m,disabled:h,editing:f,editable:g,loading:i,error:a},y=R=>{if(p.disabled)return;p.focused||n.focus.focusItem(R,e);const $=we.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey);p.expandable&&!($&&et.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:R,itemId:e})},x=R=>{if(!we.canItemBeSelected(n.state,e))return;!p.focused&&!p.editing&&n.focus.focusItem(R,e),we.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey)?R.shiftKey?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:R,itemId:e,shouldBeSelected:!0})},T=R=>{const $=R.nativeEvent.shiftKey,L=we.isMultiSelectEnabled(n.state);L&&$?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:L,shouldBeSelected:R.target.checked})},w=()=>{n.labelEditing&&(f?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:y,handleSelection:x,handleCheckboxSelection:T,toggleItemEditing:w,handleSaveItemLabel:(R,$)=>{n.labelEditing&&an.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,$),w(),n.focus.focusItem(R,e))},handleCancelItemLabelEditing:R=>{n.labelEditing&&an.isItemBeingEdited(n.state,e)&&(w(),n.focus.focusItem(R,e))}},status:p,publicAPI:o}},Kl=S.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Kl.displayName="TreeViewItemDepthContext");const va=(e,t)=>{let n=t.length-1;for(;n>=0&&!de.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},Xl=(e,t)=>{const n=de.itemMeta(e,t);if(!n)return null;const o=de.itemOrderedChildrenIds(e,n.parentId),s=de.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!de.canItemBeFocused(e,o[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:Xl(e,n.parentId);let a=o[i],l=va(e,de.itemOrderedChildrenIds(e,a));for(;et.isItemExpanded(e,a)&&l!=null;)a=l,l=va(e,de.itemOrderedChildrenIds(e,a));return a},Sr=(e,t)=>{if(et.isItemExpanded(e,t)){const o=de.itemOrderedChildrenIds(e,t).find(s=>de.canItemBeFocused(e,s));if(o!=null)return o}let n=de.itemMeta(e,t);for(;n!=null;){const o=de.itemOrderedChildrenIds(e,n.parentId),s=de.itemIndex(e,n.id);if(s<o.length-1){let i=s+1;for(;!de.canItemBeFocused(e,o[i])&&i<o.length-1;)i+=1;if(de.canItemBeFocused(e,o[i]))return o[i]}n=de.itemMeta(e,n.parentId)}return null},Sh=e=>{let t=null;for(;t==null||et.isItemExpanded(e,t);){const n=de.itemOrderedChildrenIds(e,t),o=va(e,n);if(o==null)return t;t=o}return t},Rr=e=>de.itemOrderedChildrenIds(e,null).find(t=>de.canItemBeFocused(e,t)),Ch=(e,t,n)=>{if(t===n)return[t,n];const o=de.itemMeta(e,t),s=de.itemMeta(e,n);if(!o||!s)return[t,n];if(o.parentId===s.id||s.parentId===o.id)return s.parentId===o.id?[o.id,s.id]:[s.id,o.id];const i=[o.id],a=[s.id];let l=o.parentId,c=s.parentId,u=a.indexOf(l)!==-1,d=i.indexOf(c)!==-1,m=!0,h=!0;for(;!d&&!u;)m&&(i.push(l),u=a.indexOf(l)!==-1,m=l!==null,!u&&m&&(l=de.itemParentId(e,l))),h&&!u&&(a.push(c),d=i.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=de.itemParentId(e,c)));const f=u?l:c,g=de.itemOrderedChildrenIds(e,f),p=i[i.indexOf(f)-1],y=a[a.indexOf(f)-1];return g.indexOf(p)<g.indexOf(y)?[t,n]:[n,t]},FR=(e,t,n)=>{const o=c=>{if(et.isItemExpandable(e,c)&&et.isItemExpanded(e,c))return de.itemOrderedChildrenIds(e,c)[0];let u=de.itemMeta(e,c);for(;u!=null;){const d=de.itemOrderedChildrenIds(e,u.parentId),m=de.itemIndex(e,u.id);if(m<d.length-1)return d[m+1];u=u.parentId?de.itemMeta(e,u.parentId):null}throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Invalid range - unable to find a path between the two items. This may occur if the items are not in the same tree or the tree structure is invalid. Verify that both items exist in the tree.":ke(191))},[s,i]=Ch(e,t,n),a=[s];let l=s;for(;l!==i;)l=o(l),de.isItemDisabled(e,l)||a.push(l);return a},BR=e=>{let t=Rr(e);const n=[];for(;t!=null;)n.push(t),t=Sr(e,t);return n},xa=(e,t)=>t!==e.closest('*[role="treeitem"]');class zR{constructor(t){U(this,"setExpandedItems",(t,n)=>{var o,s;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(s=(o=this.store.parameters).onExpandedItemsChange)==null||s.call(o,t,n)});U(this,"isItemExpanded",t=>et.isItemExpanded(this.store.state,t));U(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));U(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const s=et.isItemExpanded(this.store.state,t),i=o??!s;if(s===i)return;const a={isExpansionPrevented:!1,shouldBeExpanded:i,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",a,n),!a.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:i})});U(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var a,l;const s=et.expandedItemsRaw(this.store.state);let i;o?i=[t].concat(s):i=s.filter(c=>c!==t),(l=(a=this.store.parameters).onItemExpansionToggle)==null||l.call(a,n,t,o),this.setExpandedItems(n,i)});U(this,"expandAllSiblings",(t,n)=>{const o=de.itemMeta(this.store.state,n);if(o==null)return;const i=de.itemOrderedChildrenIds(this.store.state,o.parentId).filter(l=>et.isItemExpandable(this.store.state,l)&&!et.isItemExpanded(this.store.state,l)),a=et.expandedItemsRaw(this.store.state).concat(i);i.length>0&&(this.store.parameters.onItemExpansionToggle&&i.forEach(l=>{this.store.parameters.onItemExpansionToggle(t,l,!0)}),this.setExpandedItems(t,a))});U(this,"addExpandableItems",t=>{const n=M({},this.store.state.itemMetaLookup);for(const o of t)n[o]=M({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class WR{constructor(t){U(this,"setFocusedItemId",t=>{_o.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});U(this,"applyItemFocus",(t,n)=>{var o,s,i;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(i=(s=this.store.parameters).onItemFocus)==null||i.call(s,t,n)});U(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));U(this,"focusItem",(t,n)=>{const o=de.itemMeta(this.store.state,n);o&&(o.parentId==null||et.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});U(this,"removeFocusedItem",()=>{const t=_o.focusedItemId(this.store.state);if(t==null)return;if(de.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});U(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=_o.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});U(this,"handleRootBlur",t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)});this.store=t;let n=t.state;this.store.disposables.defer(this.store.subscribe(o=>{if(o.itemMetaLookup===n.itemMetaLookup){n=o;return}const s=_o.focusedItemId(o);if(s==null||de.itemMeta(o,s)){n=o;return}const i=l=>l==null||!de.itemMeta(o,l)?null:l,a=i(Sr(n,s))??i(Xl(n,s))??Rr(o);a==null?this.setFocusedItemId(null):this.applyItemFocus(null,a),n=o}))}}const UR=({props:e})=>{const{itemId:t}=e,{store:n}=Bn(),o=Oe(n,we.isCheckboxSelectionEnabled),s=Oe(n,we.isFeatureEnabledForItem,t),i=Oe(n,we.canItemBeSelected,t),a=Oe(n,de.isItemDisabled,t),l=Oe(n,we.isItemSelectable,t),c=Oe(n,we.itemSelectionStatus,t),u=a||!l;return{propsEnhancers:{root:()=>{let d;return u?d=void 0:c==="selected"?d=!0:c==="indeterminate"?d="mixed":i?d=!1:d=void 0,{"aria-checked":d}},checkbox:({externalEventHandlers:d,interactions:m})=>({tabIndex:-1,onChange:f=>{var g;(g=d.onChange)==null||g.call(d,f),!f.defaultMuiPrevented&&we.canItemBeSelected(n.state,t)&&m.handleCheckboxSelection(f)},visible:o&&s,disabled:!i,checked:c==="selected",indeterminate:c==="indeterminate"})}}};class qR{constructor(t){U(this,"lastSelectedItem",null);U(this,"lastSelectedRange",{});U(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:s=Mo,selectedItems:i,onItemSelectionToggle:a,onSelectedItemsChange:l}=this.store.parameters,c=we.selectedItemsRaw(this.store.state);let u;const d=we.isMultiSelectEnabled(this.store.state);if(d&&(s.descendants||s.parents)?u=HR({store:this.store,selectionPropagation:s,newModel:n,oldModel:c,additionalItemsToPropagate:o}):u=n,i===void 0&&this.store.set("selectedItems",u),a)if(d){const m=wh({newModel:u,oldModel:c});a&&(m.added.forEach(h=>{a(t,h,!0)}),m.removed.forEach(h=>{a(t,h,!1)}))}else u!==c&&(c!=null&&a(t,c,!1),u!=null&&a(t,u,!0));l==null||l(t,u)});U(this,"selectRange",(t,[n,o])=>{if(!we.isMultiSelectEnabled(this.store.state))return;let i=we.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(i=i.filter(u=>!this.lastSelectedRange[u]));const a=bs(i),l=FR(this.store.state,n,o).filter(u=>we.isItemSelectable(this.store.state,u)),c=l.filter(u=>!a[u]);i=i.concat(c),this.setSelectedItems(t,i),this.lastSelectedRange=bs(l)});U(this,"getItemSelection",t=>we.itemSelectionStatus(this.store.state,t));U(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));U(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=Mo}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!we.isMultiSelectEnabled(this.store.state)||!we.isItemSelected(this.store.state,t))return;const s=we.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,s,n)});U(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:s})=>{if(!we.enabled(this.store.state))return;let i;const a=we.isMultiSelectEnabled(this.store.state);if(o&&a){const l=we.selectedItems(this.store.state),c=we.isItemSelected(this.store.state,t);c&&(s===!1||s==null)?i=l.filter(u=>u!==t):!c&&(s===!0||s==null)?i=[t].concat(l):i=l}else s===!1||s==null&&we.isItemSelected(this.store.state,t)?i=a?[]:null:i=a?[t]:t;this.setSelectedItems(n,i,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});U(this,"selectAllNavigableItems",t=>{if(!we.isMultiSelectEnabled(this.store.state))return;const o=BR(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=bs(o)});U(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,s]=Ch(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,s])}});U(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[Rr(this.store.state),n])});U(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,Sh(this.store.state)])});U(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!we.isMultiSelectEnabled(this.store.state))return;let i=we.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(we.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(i=i.filter(a=>a!==n),delete this.lastSelectedRange[n]):(we.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,i)});this.store=t,t.itemPluginManager.register(UR,null)}}function HR({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:s}){if(!t.descendants&&!t.parents)return n;let i=!1;const a=bs(n),l=wh({newModel:n,oldModel:o});return s==null||s.forEach(c=>{a[c]?l.added.includes(c)||l.added.push(c):l.removed.includes(c)||l.removed.push(c)}),l.added.forEach(c=>{if(t.descendants){const u=d=>{d!==c&&we.canItemBeSelected(e.state,d)&&(i=!0,a[d]=!0),de.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=m=>we.canItemBeSelected(e.state,m)?a[m]?de.itemOrderedChildrenIds(e.state,m).every(u):!1:de.itemOrderedChildrenIds(e.state,m).every(u),d=m=>{const h=de.itemParentId(e.state,m);if(h==null)return;de.itemOrderedChildrenIds(e.state,h).every(u)&&(we.canItemBeSelected(e.state,h)&&(i=!0,a[h]=!0),d(h))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=de.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=de.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),de.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n}function wh({oldModel:e,newModel:t}){const n=new Map;t.forEach(s=>{n.set(s,!0)});const o=new Map;return e.forEach(s=>{o.set(s,!0)}),{added:t.filter(s=>!o.has(s)),removed:e.filter(s=>!n.has(s))}}function bs(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const YR=(e,t,n)=>typeof n=="function"?n(e,t):n,Th=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=Bn(),s=S.useContext(Kl),i=Oe(o,YR,e.itemId,s),{id:a,itemId:l,label:c,children:u,rootRef:d}=e,{rootRef:m,contentRef:h,propsEnhancers:f}=t(e),{interactions:g,status:p}=xh({itemId:l,children:u}),y=S.useRef(null),x=S.useRef(null),T=ha(d,m,y),w=ha(h,x),C=S.useRef(null),I=Oe(o,we.isCheckboxSelectionEnabled),E=Oe(o,Ii.treeItemIdAttribute,l,a),R=Oe(o,_o.isItemTheDefaultFocusableItem,l),$=Oe(o,de.itemHeight),L={rootRefObject:y,contentRefObject:x,interactions:g},V=H=>F=>{var q;(q=H.onFocus)==null||q.call(H,F),!F.defaultMuiPrevented&&!p.focused&&de.canItemBeFocused(o.state,l)&&F.currentTarget===F.target&&o.focus.focusItem(F,l)},A=H=>F=>{var ae,G,ue,oe,ye;if((ae=H.onBlur)==null||ae.call(H,F),F.defaultMuiPrevented)return;const q=o.items.getItemDOMElement(l);p.editing||F.relatedTarget&&xa(F.relatedTarget,q)&&(F.target&&((ue=(G=F.target)==null?void 0:G.dataset)==null?void 0:ue.element)==="labelInput"&&xa(F.target,q)||((ye=(oe=F.relatedTarget)==null?void 0:oe.dataset)==null?void 0:ye.element)==="labelInput")||o.focus.removeFocusedItem()},v=H=>F=>{var q,ae,G;(q=H.onKeyDown)==null||q.call(H,F),!(F.defaultMuiPrevented||((G=(ae=F.target)==null?void 0:ae.dataset)==null?void 0:G.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(F,l)},P=H=>F=>{var q;(q=H.onDoubleClick)==null||q.call(H,F),!F.defaultMuiPrevented&&g.toggleItemEditing()},O=H=>F=>{var q,ae;(q=H.onClick)==null||q.call(H,F),o.items.handleItemClick(F,l),!(F.defaultMuiPrevented||(ae=C.current)!=null&&ae.contains(F.target))&&(et.triggerSlot(o.state)==="content"&&g.handleExpansion(F),I||g.handleSelection(F))},_=H=>F=>{var q;(q=H.onMouseDown)==null||q.call(H,F),!F.defaultMuiPrevented&&(F.shiftKey||F.ctrlKey||F.metaKey||p.disabled)&&F.preventDefault()},k=H=>F=>{var q;(q=H.onClick)==null||q.call(H,F),!F.defaultMuiPrevented&&et.triggerSlot(o.state)==="iconContainer"&&g.handleExpansion(F)};return{getContextProviderProps:()=>({itemId:l,id:a}),getRootProps:(H={})=>{var G;const F=M({},_t(e),_t(H)),q=M({},F,{ref:T,role:"treeitem",tabIndex:R?0:-1,id:E,"aria-expanded":p.expandable?p.expanded:void 0,"aria-disabled":p.disabled||void 0},H,{style:M({},H.style??{},{"--TreeView-itemDepth":i},$==null?{}:{"--TreeView-itemHeight":`${$}px`}),onFocus:V(F),onBlur:A(F),onKeyDown:v(F)}),ae=((G=f.root)==null?void 0:G.call(f,M({},L,{externalEventHandlers:F})))??{};return M({},q,ae)},getContentProps:(H={})=>{var G;const F=_t(H),q=M({},F,H,{ref:w,onClick:O(F),onMouseDown:_(F)});["expanded","selected","focused","disabled","editing","editable"].forEach(ue=>{p[ue]&&(q[`data-${ue}`]="")});const ae=((G=f.content)==null?void 0:G.call(f,M({},L,{externalEventHandlers:F})))??{};return M({},q,ae)},getGroupTransitionProps:(H={})=>{const F=_t(H);return M({},F,{unmountOnExit:!0,component:"ul",role:"group",in:p.expanded,children:u},H)},getIconContainerProps:(H={})=>{const F=_t(H);return M({},F,H,{onClick:k(F)})},getCheckboxProps:(H={})=>{var G;const F=_t(H),q=M({},F,{ref:C,"aria-hidden":!0},H),ae=((G=f.checkbox)==null?void 0:G.call(f,M({},L,{externalEventHandlers:F})))??{};return M({},q,ae)},getLabelProps:(H={})=>{var G;const F=M({},_t(H)),q=M({},F,{children:c},H,{onDoubleClick:P(F)}),ae=((G=f.label)==null?void 0:G.call(f,M({},L,{externalEventHandlers:F})))??{};return M({},ae,q)},getLabelInputProps:(H={})=>{var ae;const F=_t(H),q=((ae=f.labelInput)==null?void 0:ae.call(f,M({},L,{externalEventHandlers:F})))??{};return M({},H,q)},getDragAndDropOverlayProps:(H={})=>{var ae;const F=_t(H),q=((ae=f.dragAndDropOverlay)==null?void 0:ae.call(f,M({},L,{externalEventHandlers:F})))??{};return M({},H,q)},getErrorContainerProps:(H={})=>{const F=_t(H);return M({},F,H)},getLoadingContainerProps:(H={})=>{const F=_t(H);return M({size:"12px",thickness:6},F,H)},rootRef:T,status:p,publicAPI:n}};function GR(e){return Ul("MuiTreeItem",e)}ch("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const KR=at(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),XR=at(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),QR=["ownerState"];function Ki(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Ql(e){const{slots:t,slotProps:n,status:o}=e,{slots:s,slotProps:i}=Gl(),a={collapseIcon:Ki(t==null?void 0:t.collapseIcon,s.collapseIcon,XR),expandIcon:Ki(t==null?void 0:t.expandIcon,s.expandIcon,KR),endIcon:Ki(t==null?void 0:t.endIcon,s.endIcon),icon:t==null?void 0:t.icon};let l;a!=null&&a.icon?l="icon":o.expandable?o.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const c=a[l],u=St({elementType:c,externalSlotProps:m=>M({},ga(i[l],m),ga(n==null?void 0:n[l],m)),ownerState:{}}),d=Se(u,QR);return c?b.jsx(c,M({},d)):null}process.env.NODE_ENV!=="production"&&(Ql.propTypes={slotProps:r.object,slots:r.object,status:r.shape({disabled:r.bool.isRequired,editable:r.bool.isRequired,editing:r.bool.isRequired,error:r.bool.isRequired,expandable:r.bool.isRequired,expanded:r.bool.isRequired,focused:r.bool.isRequired,indeterminate:r.bool,loading:r.bool.isRequired,selected:r.bool.isRequired}).isRequired});const ZR=te("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>zt(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.alpha((e.vars||e).palette.primary.dark,(e.vars||e).palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function Ih(e){return e.action==null?null:b.jsx(ZR,M({},e))}process.env.NODE_ENV!=="production"&&(Ih.propTypes={action:r.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:r.object});function Zl(e){const{children:t,itemId:n,id:o}=e,{wrapItem:s,store:i}=Bn(),a=Oe(i,Ii.treeItemIdAttribute,n,o);return b.jsx(S.Fragment,{children:s({children:t,itemId:n,store:i,idAttribute:a})})}process.env.NODE_ENV!=="production"&&(Zl.propTypes={children:r.node,id:r.string,itemId:r.string.isRequired});const JR=te("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>M({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),eN=["visible"],tN=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],nN=uh(),Eh=te("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),_h=te("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>zt(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",height:"var(--TreeView-itemHeight, unset)",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}})),Oh=te("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>zt(e)&&e!=="editable"})(({theme:e})=>M({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),kh=te("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),Ph=te($s,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),oN=te("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),rN=te(ri,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),Rh=te(S.forwardRef((e,t)=>{const{visible:n}=e,o=Se(e,eN);return n?b.jsx(ph,M({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(Rh.displayName="TreeItemCheckbox");const sN=e=>{const{classes:t}=Gl(),n=M({},e,{root:ce(e==null?void 0:e.root,t.root),content:ce(e==null?void 0:e.content,t.itemContent),iconContainer:ce(e==null?void 0:e.iconContainer,t.itemIconContainer),checkbox:ce(e==null?void 0:e.checkbox,t.itemCheckbox),label:ce(e==null?void 0:e.label,t.itemLabel),groupTransition:ce(e==null?void 0:e.groupTransition,t.itemGroupTransition),labelInput:ce(e==null?void 0:e.labelInput,t.itemLabelInput),dragAndDropOverlay:ce(e==null?void 0:e.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ce(e==null?void 0:e.errorIcon,t.itemErrorIcon),loadingIcon:ce(e==null?void 0:e.loadingIcon,t.itemLoadingIcon)});return lh({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},GR,n)},Jl=S.forwardRef(function(t,n){const o=nN({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:m={},classes:h}=o,f=Se(o,tN),{getContextProviderProps:g,getRootProps:p,getContentProps:y,getIconContainerProps:x,getCheckboxProps:T,getLabelProps:w,getGroupTransitionProps:C,getLabelInputProps:I,getDragAndDropOverlayProps:E,getErrorContainerProps:R,getLoadingContainerProps:$,status:L}=Th({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),V=sN(h),A=d.root??Eh,v=St({elementType:A,getSlotProps:p,externalForwardedProps:f,externalSlotProps:m.root,additionalProps:{ref:n},ownerState:{},className:V.root}),P=d.content??_h,O=St({elementType:P,getSlotProps:y,externalSlotProps:m.content,ownerState:{},className:V.content}),_=d.iconContainer??kh,k=St({elementType:_,getSlotProps:x,externalSlotProps:m.iconContainer,ownerState:{},className:V.iconContainer}),D=d.label??Oh,N=St({elementType:D,getSlotProps:w,externalSlotProps:m.label,ownerState:{},className:V.label}),z=d.checkbox??Rh,j=St({elementType:z,getSlotProps:T,externalSlotProps:m.checkbox,ownerState:{},className:V.checkbox}),B=d.groupTransition??void 0,W=St({elementType:B,getSlotProps:C,externalSlotProps:m.groupTransition,ownerState:{},className:V.groupTransition}),X=d.labelInput??JR,Z=St({elementType:X,getSlotProps:I,externalSlotProps:m.labelInput,ownerState:{},className:V.labelInput}),Y=d.dragAndDropOverlay??Ih,Q=St({elementType:Y,getSlotProps:E,externalSlotProps:m.dragAndDropOverlay,ownerState:{},className:V.dragAndDropOverlay}),ne=d.errorIcon??oN,H=St({elementType:ne,getSlotProps:R,externalSlotProps:m.errorIcon,ownerState:{},className:V.errorIcon}),F=d.loadingIcon??rN,q=St({elementType:F,getSlotProps:$,externalSlotProps:m.loadingIcon,ownerState:{},className:V.loadingIcon});return b.jsx(Zl,M({},g(),{children:b.jsxs(A,M({},v,{children:[b.jsxs(P,M({},O,{children:[b.jsxs(_,M({},k,{children:[L.error&&b.jsx(ne,M({},H)),L.loading?b.jsx(F,M({},q)):b.jsx(Ql,{status:L,slots:d,slotProps:m})]})),b.jsx(z,M({},j)),L.editing?b.jsx(X,M({},Z)):b.jsx(D,M({},N)),b.jsx(Y,M({},Q))]})),u&&b.jsx(Ph,M({as:B},W))]}))}))});process.env.NODE_ENV!=="production"&&(Jl.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(Jl.propTypes={children:r.any,classes:r.object,className:r.string,disabled:r.bool,disableSelection:r.bool,id:r.string,itemId:r.string.isRequired,label:r.node,onBlur:r.func,onFocus:vR,onKeyDown:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function iN(e,t,n){const o=Oe(e,Ii.treeId),s=Oe(e,de.itemChildrenIndentation),i=Oe(e,we.isMultiSelectEnabled);return a=>M({ref:n,role:"tree",id:o,"aria-multiselectable":i},t,a,{style:M({},t.style,{"--TreeView-itemChildrenIndentation":typeof s=="number"?`${s}px`:s}),onFocus:l=>{var c;(c=a.onFocus)==null||c.call(a,l),e.focus.handleRootFocus(l)},onBlur:l=>{var c;(c=a.onBlur)==null||c.call(a,l),e.focus.handleRootBlur(l)}})}const aN=["ownerState"],ec=S.createContext(null);process.env.NODE_ENV!=="production"&&(ec.displayName="RichTreeViewItemsContext");const lN=()=>ql,cN=e=>de.itemOrderedChildrenIds(e,null),Nh=S.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:s}){const i=S.useContext(ec),{store:a}=Bn(),l=Oe(a,de.itemMeta,o),c=Oe(a,s?lN:de.itemOrderedChildrenIds,o),u=t??Jl,d=St({elementType:u,externalSlotProps:n,additionalProps:{label:l==null?void 0:l.label,id:l==null?void 0:l.idAttribute,itemId:o},ownerState:{itemId:o,label:l==null?void 0:l.label}}),m=Se(d,aN);return b.jsx(u,M({},m,{children:i?c==null?void 0:c.map(i):null}))},yR);process.env.NODE_ENV!=="production"&&(Nh.displayName="RichTreeViewItem");function uN(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:s,rootRef:i}=e,{store:a}=Bn(),{classes:l}=Gl(),c=t==null?void 0:t.item,u=n==null?void 0:n.item,d=Oe(a,de.domStructure),m=Oe(a,d==="flat"?et.flatList:cN),h=iN(a,s,i),f=t.root,g=St({elementType:f,externalSlotProps:n==null?void 0:n.root,className:l.root,getSlotProps:h,ownerState:o}),p=d==="flat",y=S.useCallback(x=>b.jsx(Nh,{itemSlot:c,itemSlotProps:u,itemId:x,skipChildren:p},x),[c,u,p]);return b.jsx(ec.Provider,{value:y,children:b.jsx(f,M({},g,{children:m.map(y)}))})}const dN=["apiRef","slots","slotProps","disabledItemsFocusable","items","isItemDisabled","isItemSelectionDisabled","getItemLabel","getItemChildren","getItemId","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus","itemHeight","onItemLabelChange","isItemEditable","domStructure"];function pN(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:f,expandedItems:g,defaultExpandedItems:p,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:T,disableSelection:w,selectedItems:C,defaultSelectedItems:I,multiSelect:E,checkboxSelection:R,selectionPropagation:$,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:A,itemHeight:v,onItemLabelChange:P,isItemEditable:O,domStructure:_}=e,k=Se(e,dN),D=S.useMemo(()=>({disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:f,expandedItems:g,defaultExpandedItems:p,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:T,disableSelection:w,selectedItems:C,defaultSelectedItems:I,multiSelect:E,checkboxSelection:R,selectionPropagation:$,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:A,itemHeight:v,onItemLabelChange:P,isItemEditable:O,domStructure:_}),[s,i,a,l,c,u,d,m,h,f,g,p,y,x,T,w,C,I,E,R,$,L,V,A,v,P,O,_]);return{apiRef:t,slots:n,slotProps:o,parameters:D,forwardedProps:k}}const fN=()=>{},mN=typeof document<"u"?S.useLayoutEffect:fN;function tc(e){S.useEffect(e,ql)}const hN={...S},Nr=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),Rd=typeof SuppressedError=="function"?SuppressedError:void 0;function gN(e,t){if(Rd)return new Rd(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function is(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class nc{constructor(){U(this,"stack",[]);U(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if(is(this.isDisposed),t!=null){const n=t[Nr];if(typeof n!="function")throw new TypeError("MUI X: The value is not disposable.");this.stack.push(()=>n.call(t))}return t}adopt(t,n){return is(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){is(this.isDisposed),this.stack.push(t)}move(){is(this.isDisposed);const t=new nc;return t.stack=this.stack,this.stack=[],this.isDisposed=!0,t}dispose(){if(this.isDisposed)return;this.isDisposed=!0;let t=!1,n;for(let o=this.stack.length-1;o>=0;o-=1)try{this.stack[o]()}catch(s){n=t?gN(s,n):s,t=!0}if(this.stack=[],t)throw n}[Nr](){this.dispose()}}const bN=globalThis.DisposableStack??nc;function yN(e){const t=[];let n=e;for(;typeof n=="object"&&n!==null&&"error"in n&&"suppressed"in n;)t.push(n.error),n=n.suppressed;return t.push(n),t}const vN=16,Nd=hN,So=Nd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Nd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function xN(){var e,t,n;try{const o=((t=(e=So==null?void 0:So.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=So==null?void 0:So.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&vN)!==0}catch{return!1}}const js=Symbol("useDisposable.mount"),SN=Symbol("useDisposable.devState"),Do=Symbol();function CN(e){const t=S.useRef(Do);if(t.current===Do){const n=e(),o=()=>{n[Nr](),t.current=Do};n[js]=()=>o,t.current=n}return tc(t.current[js]),t.current}function wN(e){const t=S.useRef(Do);if(t.current===Do){const n=e(),o={detectedStrict:xN(),mountCount:0,disposed:!1};n[SN]=o,n[js]=()=>{if(o.mountCount+=1,o.mountCount>1&&o.disposed)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: useDisposable failed to detect React StrictMode.
|
|
250
260
|
The instance was disposed on StrictMode's simulated unmount and is about to be reused while torn down.
|
|
251
|
-
This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:
|
|
252
|
-
`)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const s=Array.from(o.highPriority.keys()),i=Array.from(o.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];o.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];o.regular.has(l)&&l.apply(this,n)}}once(t,n){const o=this;this.on(t,function s(...i){o.removeListener(t,s),n.apply(o,i)})}}const
|
|
261
|
+
This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:ke(288));return()=>{o.detectedStrict&&o.mountCount<2||(o.disposed=!0,n[Nr](),t.current=Do)}},t.current=n}return tc(t.current[js]),t.current}const TN=process.env.NODE_ENV==="production"?CN:wN;function IN(e,t){const n=jn(),o=TN(()=>new e(M({},t,{isRtl:n})));return mN(()=>o.updateStateFromParameters(M({},t,{isRtl:n})),[o,n,t]),tc(o.mountEffect),o}class EN{constructor(){U(this,"maxListeners",20);U(this,"warnOnce",!1);U(this,"events",{})}on(t,n,o={}){let s=this.events[t];if(s||(s={highPriority:new Map,regular:new Map},this.events[t]=s),o.isFirst?s.highPriority.set(n,!0):s.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=s.highPriority.size+s.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
|
|
262
|
+
`)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const s=Array.from(o.highPriority.keys()),i=Array.from(o.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];o.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];o.regular.has(l)&&l.apply(this,n)}}once(t,n){const o=this;this.on(t,function s(...i){o.removeListener(t,s),n.apply(o,i)})}}const _N=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function Mh(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:_N({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??Mo,itemHeight:e.itemHeight??null}}function Md(e,t,n){return e!==void 0?e:t!==void 0?t:n}function ON(e){return M({treeId:void 0,focusedItemId:null},Mh(e),$o.buildItemsStateIfNeeded(e),{expandedItems:Md(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:Md(e.selectedItems,e.defaultSelectedItems,e.multiSelect?ql:null)})}let $d=0;const kN=()=>($d+=1,`mui-tree-view-${$d}`);class PN{constructor(){U(this,"timeoutIds",new Map);U(this,"intervalIds",new Map);U(this,"startTimeout",(t,n,o)=>{this.clearTimeout(t);const s=setTimeout(()=>{this.timeoutIds.delete(t),o()},n);this.timeoutIds.set(t,s)});U(this,"startInterval",(t,n,o)=>{this.clearInterval(t);const s=setInterval(o,n);this.intervalIds.set(t,s)});U(this,"clearTimeout",t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))});U(this,"clearInterval",t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))});U(this,"clearAll",()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()})}}const RN=({props:e})=>{const{store:t}=Bn(),{label:n,itemId:o}=e,[s,i]=S.useState(n),a=Oe(t,an.isItemEditable,o);return!Oe(t,an.isItemBeingEdited,o)&&s!==n&&i(n),{propsEnhancers:{label:()=>({editable:a}),labelInput:({externalEventHandlers:c,interactions:u})=>a?{value:s??"","data-element":"labelInput",onChange:f=>{var g;(g=c.onChange)==null||g.call(c,f),i(f.target.value)},onKeyDown:f=>{var p;if((p=c.onKeyDown)==null||p.call(c,f),f.defaultMuiPrevented)return;const g=f.target;f.key==="Enter"&&g.value?u.handleSaveItemLabel(f,g.value):f.key==="Escape"&&u.handleCancelItemLabelEditing(f)},onBlur:f=>{var g;(g=c.onBlur)==null||g.call(c,f),!f.defaultMuiPrevented&&f.target.value&&u.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}};class NN{constructor(t){U(this,"buildPublicAPI",()=>({setEditedItem:this.setEditedItem,updateItemLabel:this.updateItemLabel}));U(this,"setEditedItem",t=>{t!==null&&!an.isItemEditable(this.store.state,t)||this.store.set("editedItemId",t)});U(this,"updateItemLabel",(t,n)=>{if(!n)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The Tree View component requires all items to have a \`label\` property.
|
|
253
263
|
The label of an item cannot be empty.
|
|
254
|
-
Item ID: ${t}`:Oe(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",M({},this.store.state.itemMetaLookup,{[t]:M({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(hN,null)}}const bN=500;class yN{constructor(t){U(this,"typeaheadQuery","");U(this,"canToggleItemSelection",t=>Se.canItemBeSelected(this.store.state,t));U(this,"canToggleItemExpansion",t=>!ue.isItemDisabled(this.store.state,t)&&Ze.isItemExpandable(this.store.state,t));U(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=u=>{const d=hr(this.store.state,u);return d===null?Ir(this.store.state):d},s=u=>{let d=null;const m={};let h=u.length>1?t:o(t);for(;d==null&&!m[h];){const f=this.labelMap[h];f!=null&&f.startsWith(u)?d=h:(m[h]=!0,h=o(h))}return d},i=n.toLowerCase(),a=`${this.typeaheadQuery}${i}`,l=s(a);if(l!=null)return this.typeaheadQuery=a,l;const c=s(i);return c!=null?(this.typeaheadQuery=i,c):(this.typeaheadQuery="",null)});U(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});U(this,"handleItemKeyDown",async(t,n)=>{var a;if(t.defaultMuiPrevented||t.altKey||ma(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,s=t.key,i=Se.isMultiSelectEnabled(this.store.state);switch(!0){case(s===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),i&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:i,shouldBeSelected:void 0});break}case s==="Enter":{(a=this.store.labelEditing)!=null&&a.setEditedItem&&sn.isItemEditable(this.store.state,n)&&!sn.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(i?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):Se.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case s==="ArrowDown":{const l=hr(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case s==="ArrowUp":{const l=zl(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case(s==="ArrowRight"&&!this.store.parameters.isRtl||s==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(Ze.isItemExpanded(this.store.state,n)){const l=hr(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(s==="ArrowLeft"&&!this.store.parameters.isRtl||s==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&Ze.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const l=ue.itemParentId(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}break}case s==="Home":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,Ir(this.store.state)),t.preventDefault();break}case s==="End":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,hh(this.store.state)),t.preventDefault();break}case s==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&i&&Se.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&vN(s)):{this.store.timeoutManager.clearTimeout("typeahead");const l=this.getFirstItemMatchingTypeaheadQuery(n,s);l!=null?(this.store.focus.focusItem(t,l),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",bN,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Rd(ue.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(ue.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Rd(o))})}}function vN(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Rd(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class xN{constructor(){U(this,"itemPlugins",[]);U(this,"itemWrappers",[]);U(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});U(this,"listPlugins",()=>this.itemPlugins);U(this,"listWrappers",()=>this.itemWrappers)}}class SN extends Dl{constructor(n,o,s){const i=pN(n),a=s.getInitialState(i,n);super(a);U(this,"initialParameters",null);U(this,"disposables",new tN);U(this,"eventManager",this.disposables.adopt(new uN,n=>n.removeAllListeners()));U(this,"timeoutManager",this.disposables.adopt(new mN,n=>n.clearAll()));U(this,"itemPluginManager",new xN);U(this,"mountEffect",()=>{});U(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));U(this,"registerStoreEffect",(n,o)=>{let s=n(this.state);this.disposables.defer(this.subscribe(i=>{const a=n(i);a!==s&&(o(s,a),s=a)}))});U(this,"publishEvent",(n,o,s)=>{CN(s)&&s.isPropagationStopped()||this.eventManager.emit(n,o,s)});U(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=s,this.items=new _o(this),this.focus=new OR(this),this.expansion=new ER(this),this.selection=new kR(this),this.keyboardNavigation=new yN(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return M({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(a,l,c)=>{var u,d;if(n[l]!==void 0&&(a[l]=n[l]),process.env.NODE_ENV!=="production"){const m=n[c],h=n[l]!==void 0,f=(u=this.initialParameters)==null?void 0:u[c],g=((d=this.initialParameters)==null?void 0:d[l])!==void 0;g!==h?fn([`MUI X Tree View: A component is changing the ${g?"":"un"}controlled ${l} state of ${this.instanceName} to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${l} 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"],"error"):JSON.stringify(f)!==JSON.stringify(m)&&fn([`MUI X Tree View: A component is changing the default ${l} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},s=Oh(n);o(s,"expandedItems","defaultExpandedItems"),o(s,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(s.treeId=fN()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&_o.shouldRebuildItemsState(n,this.parameters)&&Object.assign(s,_o.buildItemsStateIfNeeded(n));const i=this.mapper.updateStateFromParameters(s,n,o);this.update(i),this.parameters=n}[Er](){if(!this.disposables.disposed)try{this.disposables.dispose()}catch(n){process.env.NODE_ENV!=="production"&&console.error("MUI X Tree View: error while disposing the store.",...nN(n))}}}function CN(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Nd=e=>({isItemEditable:e.isItemEditable??!1}),_h={getInitialState:(e,t)=>M({},e,Nd(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>M({},e,Nd(t)),shouldIgnoreItemsStateUpdate:()=>!1};class kh extends SN{constructor(){super(...arguments);U(this,"labelEditing",new gN(this))}buildPublicAPI(){return M({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}U(kh,"rawMapper",_h);class wN extends kh{constructor(t){super(t,"RichTreeView",_h)}}const TN=rh(),IN=e=>{const{classes:t}=e;return S.useMemo(()=>nh({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},qP,t),[t])},EN=te("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Kl=S.forwardRef(function(t,n){const o=TN({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&fn(["MUI X: The Rich Tree View component does not support JSX children.","If you want to add items, you need to use the `items` prop.","Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);const{slots:s,slotProps:i,apiRef:a,parameters:l,forwardedProps:c}=XR(o),u=cN(wN,l),d=S.useRef(null),m=ca(n,d),h=Ee(u,Ns.isItemLoading,null),f=Ee(u,Ns.itemError,null),g=IN(o),p=S.useMemo(()=>M({root:EN},s),[s]);return h?b.jsx(no,{children:"Loading…"}):f?b.jsx(th,{severity:"error",children:f.message}):b.jsx(KP,{store:u,classes:g,slots:p,slotProps:i,apiRef:a,rootRef:d,children:b.jsx(Bl.Provider,{value:ue.itemDepth,children:b.jsx(GR,{slots:p,slotProps:i,forwardedProps:c,ownerState:o,rootRef:m})})})});process.env.NODE_ENV!=="production"&&(Kl.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(Kl.propTypes={apiRef:r.shape({current:r.shape({addItems:r.func,focusItem:r.func,getItem:r.func,getItemDOMElement:r.func,getItemOrderedChildrenIds:r.func,getItemSelection:r.func,getItemTree:r.func,getParentId:r.func,isItemExpanded:r.func,setEditedItem:r.func,setIsItemDisabled:r.func,setItemExpansion:r.func,setItemSelection:r.func,updateItemLabel:r.func})}),checkboxSelection:r.bool,classes:r.object,className:r.string,defaultExpandedItems:r.arrayOf(r.string),defaultSelectedItems:r.any,disabledItemsFocusable:r.bool,disableSelection:r.bool,domStructure:r.oneOf(["flat","nested"]),expandedItems:r.arrayOf(r.string),expansionTrigger:r.oneOf(["content","iconContainer"]),getItemChildren:r.func,getItemId:r.func,getItemLabel:r.func,id:r.string,isItemDisabled:r.func,isItemEditable:r.oneOfType([r.func,r.bool]),isItemSelectionDisabled:r.func,itemChildrenIndentation:r.oneOfType([r.number,r.string]),itemHeight:r.number,items:r.array.isRequired,multiSelect:r.bool,onExpandedItemsChange:r.func,onItemClick:r.func,onItemExpansionToggle:r.func,onItemFocus:r.func,onItemLabelChange:r.func,onItemSelectionToggle:r.func,onSelectedItemsChange:r.func,selectedItems:r.any,selectionPropagation:r.shape({descendants:r.bool,parents:r.bool}),slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const ON=e=>{const{store:t}=Vn();return Ee(t,ue.itemModel,e)},_N="Tree-module__root___ANcH3",kN="Tree-module__subtree___KoLT8",PN="Tree-module__node___Hvnjg",RN="Tree-module__row___sq5ff",NN="Tree-module__label___zJDit",MN="Tree-module__iconContainer___vq55M",$N="Tree-module__expandButton___W0WTT",DN="Tree-module__expandButtonHidden___Xopam",AN="Tree-module__chevron___umezQ",jN="Tree-module__chevronExpanded___QYVrI",Ct={root:_N,subtree:kN,node:PN,row:RN,label:NN,iconContainer:MN,expandButton:$N,expandButtonHidden:DN,chevron:AN,chevronExpanded:jN};function LN(e){const t=[],n=o=>{o.forEach(s=>{t.push(s.value),s.children&&n(s.children)})};return n(e),t}function VN({rotated:e}){return b.jsx("svg",{className:e?`${Ct.chevron} ${Ct.chevronExpanded}`:Ct.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:b.jsx("path",{d:"M5 3l5 5-5 5"})})}function Xl({rotated:e,hidden:t}){return b.jsx(Sa,{overStyled:!0,variant:"text",size:"small",icon:b.jsx(VN,{rotated:e}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:t?`${Ct.expandButton} ${Ct.expandButtonHidden}`:Ct.expandButton})}function FN(){return b.jsx(Xl,{})}function BN(){return b.jsx(Xl,{rotated:!0})}function zN(){return b.jsx(Xl,{hidden:!0})}const WN=Q.forwardRef(function({id:t,itemId:n,label:o,disabled:s,children:i,className:a,...l},c){const{getContextProviderProps:u,getRootProps:d,getContentProps:m,getIconContainerProps:h,getLabelProps:f,getGroupTransitionProps:g,status:p}=yh({id:t,itemId:n,children:i,label:o,disabled:s,rootRef:c}),{interactions:y}=mh({itemId:n,children:i}),x=ON(n),T=h({className:Ct.iconContainer}),w=C=>{C.key==="Enter"&&(C.preventDefault(),C.defaultMuiPrevented=!0,y.handleSelection(C))};return b.jsx(Ul,{...u(),children:b.jsxs(xh,{...d({...l,className:`${Ct.node} ${a??""}`,onKeyDown:w}),children:[b.jsxs(Sh,{...m({className:Ct.row}),status:p,children:[b.jsx(wh,{...T,onClick:C=>{C.stopPropagation(),T.onClick(C)},children:b.jsx(Wl,{status:p})}),b.jsx(Ch,{...f({className:Ct.label}),children:(x==null?void 0:x.label)??o})]}),i&&b.jsx(Th,{...g({className:Ct.subtree})})]})})}),Ph=Q.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:s,multiple:i=!1,disabled:a=!1,onNodeExpand:l,onNodeCollapse:c,onSelectedChange:u,...d},m){const h=fe(d,t),f=o==="*"?LN(n):o,g=h.className,p=g?`${Ct.root} ${g}`:Ct.root;return b.jsx(Kl,{ref:m,...h,items:n,getItemId:y=>y.value,getItemLabel:y=>typeof y.label=="string"?y.label:y.value,defaultExpandedItems:f,defaultSelectedItems:i?s??[]:s==null?void 0:s[0],multiSelect:i,isItemDisabled:a?()=>!0:void 0,expansionTrigger:"iconContainer",onItemExpansionToggle:(y,x,T)=>{T?l==null||l(x):c==null||c(x)},onSelectedItemsChange:(y,x)=>{u==null||u(Array.isArray(x)?x:x?[x]:[])},slots:{expandIcon:FN,collapseIcon:BN,endIcon:zN,item:WN},classes:{root:p}})});Ph.displayName="Tree";const UN="_root_1qhn7_3",HN="_contents_1qhn7_18",ho={root:UN,contents:HN},Ql=Q.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:s,...i},a){const l=t?o?`${ho.root} ${ho.contents} ${o}`:`${ho.root} ${ho.contents}`:o?`${ho.root} ${o}`:ho.root;return b.jsx("div",{ref:a,className:l,style:s,...t?{}:{"data-recursica-layer":String(e)},...i,children:n})});Ql.displayName="Layer";const Zl=({emptyText:e="N/A"})=>b.jsx(Q.Fragment,{children:e});Zl.displayName="EmptyValueRenderer";Zl.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const qN={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},Rn=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:wi&&wi.tagName.toUpperCase()==="SCRIPT"&&wi.src||new URL("mui-adapter.cjs",document.baseURI).href}&&qN)return!0}catch{}if(typeof window<"u"){const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")}return!1})(),ha=new Set;let wn=!1;function Rh(e){if(!Rn)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(wn=e!==void 0?e:!wn,typeof document<"u"){const t=document.documentElement,n=wn?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${wn?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return ha.forEach(t=>t()),wn}function YN(){return Rn&&wn}function Nh(){const[e,t]=Q.useState(wn);return Q.useEffect(()=>{if(!Rn)return;Jl(),ec();const n=()=>t(wn);return ha.add(n),()=>{ha.delete(n)}},[]),Rn&&e}function Jl(){if(!Rn)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const e="recursica-over-styled-styles";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`
|
|
255
|
-
:root {
|
|
256
|
-
--recursica-over-styled-shadow: none;
|
|
257
|
-
}
|
|
258
|
-
.recursica-over-styled {
|
|
259
|
-
display: contents !important;
|
|
260
|
-
}
|
|
261
|
-
.recursica-over-styled > * {
|
|
262
|
-
box-shadow: var(--recursica-over-styled-shadow) !important;
|
|
263
|
-
}
|
|
264
|
-
`,document.head.appendChild(t))}function ec(){if(!Rn)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const e=t=>{try{t.recursica=t.recursica||{},t.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${Rh()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const Md="data-recursica-theme";function GN({children:e,theme:t="light",initLayer0:n=!0}){return Q.useEffect(()=>{const o=document.documentElement;return o.setAttribute(Md,t),()=>{o.removeAttribute(Md)}},[t]),Q.useEffect(()=>{Jl(),ec()},[]),n?b.jsx(Ql,{layer:0,children:e}):b.jsx(b.Fragment,{children:e})}const KN=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],XN=(e,t)=>{const n=document.activeElement;return new Promise((o,s)=>{if(t&&t.current){const i=document.createElement("textarea");i.readOnly=!0,i.defaultValue=e,t.current.appendChild(i),i.select();const a=document.execCommand("copy");t.current.removeChild(i),n&&n.focus(),a?o():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function be(e){if(!Rn||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=Q.forwardRef((o,s)=>{const{overStyled:i}=o,a=Nh(),l=Q.createElement(e,{...o,ref:s});return i&&a?b.jsx("div",{className:"recursica-over-styled",children:l}):l});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const s=e[o];(typeof s=="function"||s&&s.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=be(s):t[o]=s}return t}const QN=Rg,ZN=Xd,JN=Jd,eM=Ia,tM=ep,nM=gp,oM=Gd,rM=ti,sM=bb,iM=yb,aM=be(As),lM=be(ba),cM=be($s),uM=be(Ds),dM=be(cn),pM=be(Ad),fM=be(_g),mM=be(Pg),hM=be(Vd),gM=be(Sa),bM=be(Ug),yM=be(wa),vM=be(Ca),xM=be(Yd),SM=be(db),CM=be(Kd),wM=be(un),TM=be(Tn),IM=be(Ea),EM=be(ya),OM=be(rp),_M=be(xa),kM=be(sp),PM=be(ip),RM=be(ap),NM=be(Ls),MM=be(up),$M=be(iy),DM=be(fp),AM=be(ka),jM=be(Ra),LM=be(Pa),VM=be(va),FM=be(ky),BM=be(hp),zM=be(bp),WM=be(Ma),UM=be(Na),HM=be(Mn),qM=be(bf),YM=be(yf),GM=be(gf),KM=be(vf),XM=be(xf),QM=be(Sf),ZM=be(Ym),JM=be(Km),e$=be(Ml),t$=be(Xm),n$=be(Qm),o$=be(K1),r$=be(X1),s$=be(Ph);exports.Accordion=aM;exports.AccordionControl=cM;exports.AccordionItem=lM;exports.AccordionPanel=uM;exports.AssistiveElement=dM;exports.Autocomplete=pM;exports.Avatar=fM;exports.Badge=mM;exports.Box=QN;exports.Breadcrumb=hM;exports.Button=gM;exports.Card=bM;exports.Checkbox=yM;exports.CheckboxGroup=vM;exports.Chip=xM;exports.Container=oM;exports.DatePicker=SM;exports.Dropdown=CM;exports.EmptyValueRenderer=Zl;exports.FileInput=sM;exports.FileUpload=iM;exports.Flex=ZN;exports.FormControlLayout=wM;exports.FormControlWrapper=TM;exports.Grid=JN;exports.GridCol=eM;exports.Group=tM;exports.HoverCard=IM;exports.IS_DEV=Rn;exports.Label=EM;exports.Layer=Ql;exports.Link=OM;exports.Loader=_M;exports.Menu=kM;exports.MenuDivider=RM;exports.MenuItem=PM;exports.Modal=NM;exports.NumberInput=MM;exports.Pagination=$M;exports.Panel=DM;exports.PanelFooter=AM;exports.RECURSICA_COMPONENTS=KN;exports.Radio=jM;exports.RadioGroup=LM;exports.ReadOnlyField=VM;exports.RecursicaThemeProvider=GN;exports.SegmentedControl=FM;exports.Slider=BM;exports.Stack=nM;exports.Stepper=zM;exports.Switch=WM;exports.SwitchGroup=UM;exports.Tab=qM;exports.TabPanel=YM;exports.Table=HM;exports.Tabs=GM;exports.Text=KM;exports.TextArea=XM;exports.TextField=QM;exports.TimePicker=ZM;exports.Timeline=JM;exports.TimelineItem=e$;exports.Title=t$;exports.Toast=n$;exports.Tooltip=o$;exports.TransferList=r$;exports.Tree=s$;exports.Typography=rM;exports.copyToClipboard=XN;exports.injectOverStyledStyles=Jl;exports.isGlobalOverStyledActive=YN;exports.registerOverStyledConsoleCommand=ec;exports.toggleGlobalOverStyled=Rh;exports.useGlobalOverStyled=Nh;exports.wrapComponent=be;
|
|
264
|
+
Item ID: ${t}`:ke(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",M({},this.store.state.itemMetaLookup,{[t]:M({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(RN,null)}}const MN=500;class $N{constructor(t){U(this,"typeaheadQuery","");U(this,"canToggleItemSelection",t=>we.canItemBeSelected(this.store.state,t));U(this,"canToggleItemExpansion",t=>!de.isItemDisabled(this.store.state,t)&&et.isItemExpandable(this.store.state,t));U(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=u=>{const d=Sr(this.store.state,u);return d===null?Rr(this.store.state):d},s=u=>{let d=null;const m={};let h=u.length>1?t:o(t);for(;d==null&&!m[h];){const f=this.labelMap[h];f!=null&&f.startsWith(u)?d=h:(m[h]=!0,h=o(h))}return d},i=n.toLowerCase(),a=`${this.typeaheadQuery}${i}`,l=s(a);if(l!=null)return this.typeaheadQuery=a,l;const c=s(i);return c!=null?(this.typeaheadQuery=i,c):(this.typeaheadQuery="",null)});U(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});U(this,"handleItemKeyDown",async(t,n)=>{var a;if(t.defaultMuiPrevented||t.altKey||xa(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,s=t.key,i=we.isMultiSelectEnabled(this.store.state);switch(!0){case(s===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),i&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:i,shouldBeSelected:void 0});break}case s==="Enter":{(a=this.store.labelEditing)!=null&&a.setEditedItem&&an.isItemEditable(this.store.state,n)&&!an.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(i?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):we.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case s==="ArrowDown":{const l=Sr(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case s==="ArrowUp":{const l=Xl(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case(s==="ArrowRight"&&!this.store.parameters.isRtl||s==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(et.isItemExpanded(this.store.state,n)){const l=Sr(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(s==="ArrowLeft"&&!this.store.parameters.isRtl||s==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&et.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const l=de.itemParentId(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}break}case s==="Home":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,Rr(this.store.state)),t.preventDefault();break}case s==="End":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,Sh(this.store.state)),t.preventDefault();break}case s==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&i&&we.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&DN(s)):{this.store.timeoutManager.clearTimeout("typeahead");const l=this.getFirstItemMatchingTypeaheadQuery(n,s);l!=null?(this.store.focus.focusItem(t,l),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",MN,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Dd(de.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(de.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Dd(o))})}}function DN(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Dd(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class AN{constructor(){U(this,"itemPlugins",[]);U(this,"itemWrappers",[]);U(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});U(this,"listPlugins",()=>this.itemPlugins);U(this,"listWrappers",()=>this.itemWrappers)}}class jN extends Wl{constructor(n,o,s){const i=ON(n),a=s.getInitialState(i,n);super(a);U(this,"initialParameters",null);U(this,"disposables",new bN);U(this,"eventManager",this.disposables.adopt(new EN,n=>n.removeAllListeners()));U(this,"timeoutManager",this.disposables.adopt(new PN,n=>n.clearAll()));U(this,"itemPluginManager",new AN);U(this,"mountEffect",()=>{});U(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));U(this,"registerStoreEffect",(n,o)=>{let s=n(this.state);this.disposables.defer(this.subscribe(i=>{const a=n(i);a!==s&&(o(s,a),s=a)}))});U(this,"publishEvent",(n,o,s)=>{LN(s)&&s.isPropagationStopped()||this.eventManager.emit(n,o,s)});U(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=s,this.items=new $o(this),this.focus=new WR(this),this.expansion=new zR(this),this.selection=new qR(this),this.keyboardNavigation=new $N(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return M({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(a,l,c)=>{var u,d;if(n[l]!==void 0&&(a[l]=n[l]),process.env.NODE_ENV!=="production"){const m=n[c],h=n[l]!==void 0,f=(u=this.initialParameters)==null?void 0:u[c],g=((d=this.initialParameters)==null?void 0:d[l])!==void 0;g!==h?mn([`MUI X Tree View: A component is changing the ${g?"":"un"}controlled ${l} state of ${this.instanceName} to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${l} 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"],"error"):JSON.stringify(f)!==JSON.stringify(m)&&mn([`MUI X Tree View: A component is changing the default ${l} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},s=Mh(n);o(s,"expandedItems","defaultExpandedItems"),o(s,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(s.treeId=kN()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&$o.shouldRebuildItemsState(n,this.parameters)&&Object.assign(s,$o.buildItemsStateIfNeeded(n));const i=this.mapper.updateStateFromParameters(s,n,o);this.update(i),this.parameters=n}[Nr](){if(!this.disposables.disposed)try{this.disposables.dispose()}catch(n){process.env.NODE_ENV!=="production"&&console.error("MUI X Tree View: error while disposing the store.",...yN(n))}}}function LN(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Ad=e=>({isItemEditable:e.isItemEditable??!1}),$h={getInitialState:(e,t)=>M({},e,Ad(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>M({},e,Ad(t)),shouldIgnoreItemsStateUpdate:()=>!1};class Dh extends jN{constructor(){super(...arguments);U(this,"labelEditing",new NN(this))}buildPublicAPI(){return M({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}U(Dh,"rawMapper",$h);class VN extends Dh{constructor(t){super(t,"RichTreeView",$h)}}const FN=uh(),BN=e=>{const{classes:t}=e;return S.useMemo(()=>lh({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},lR,t),[t])},zN=te("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),oc=S.forwardRef(function(t,n){const o=FN({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&mn(["MUI X: The Rich Tree View component does not support JSX children.","If you want to add items, you need to use the `items` prop.","Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);const{slots:s,slotProps:i,apiRef:a,parameters:l,forwardedProps:c}=pN(o),u=IN(VN,l),d=S.useRef(null),m=ha(n,d),h=Oe(u,As.isItemLoading,null),f=Oe(u,As.itemError,null),g=BN(o),p=S.useMemo(()=>M({root:zN},s),[s]);return h?b.jsx(ao,{children:"Loading…"}):f?b.jsx(ah,{severity:"error",children:f.message}):b.jsx(dR,{store:u,classes:g,slots:p,slotProps:i,apiRef:a,rootRef:d,children:b.jsx(Kl.Provider,{value:de.itemDepth,children:b.jsx(uN,{slots:p,slotProps:i,forwardedProps:c,ownerState:o,rootRef:m})})})});process.env.NODE_ENV!=="production"&&(oc.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(oc.propTypes={apiRef:r.shape({current:r.shape({addItems:r.func,focusItem:r.func,getItem:r.func,getItemDOMElement:r.func,getItemOrderedChildrenIds:r.func,getItemSelection:r.func,getItemTree:r.func,getParentId:r.func,isItemExpanded:r.func,setEditedItem:r.func,setIsItemDisabled:r.func,setItemExpansion:r.func,setItemSelection:r.func,updateItemLabel:r.func})}),checkboxSelection:r.bool,classes:r.object,className:r.string,defaultExpandedItems:r.arrayOf(r.string),defaultSelectedItems:r.any,disabledItemsFocusable:r.bool,disableSelection:r.bool,domStructure:r.oneOf(["flat","nested"]),expandedItems:r.arrayOf(r.string),expansionTrigger:r.oneOf(["content","iconContainer"]),getItemChildren:r.func,getItemId:r.func,getItemLabel:r.func,id:r.string,isItemDisabled:r.func,isItemEditable:r.oneOfType([r.func,r.bool]),isItemSelectionDisabled:r.func,itemChildrenIndentation:r.oneOfType([r.number,r.string]),itemHeight:r.number,items:r.array.isRequired,multiSelect:r.bool,onExpandedItemsChange:r.func,onItemClick:r.func,onItemExpansionToggle:r.func,onItemFocus:r.func,onItemLabelChange:r.func,onItemSelectionToggle:r.func,onSelectedItemsChange:r.func,selectedItems:r.any,selectionPropagation:r.shape({descendants:r.bool,parents:r.bool}),slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const WN=e=>{const{store:t}=Bn();return Oe(t,de.itemModel,e)},UN="Tree-module__root___ANcH3",qN="Tree-module__subtree___KoLT8",HN="Tree-module__node___Hvnjg",YN="Tree-module__row___sq5ff",GN="Tree-module__label___zJDit",KN="Tree-module__iconContainer___vq55M",XN="Tree-module__expandButton___W0WTT",QN="Tree-module__expandButtonHidden___Xopam",ZN="Tree-module__chevron___umezQ",JN="Tree-module__chevronExpanded___QYVrI",wt={root:UN,subtree:qN,node:HN,row:YN,label:GN,iconContainer:KN,expandButton:XN,expandButtonHidden:QN,chevron:ZN,chevronExpanded:JN};function eM(e){const t=[],n=o=>{o.forEach(s=>{t.push(s.value),s.children&&n(s.children)})};return n(e),t}function tM({rotated:e}){return b.jsx("svg",{className:e?`${wt.chevron} ${wt.chevronExpanded}`:wt.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:b.jsx("path",{d:"M5 3l5 5-5 5"})})}function rc({rotated:e,hidden:t}){return b.jsx(Bs,{overStyled:!0,variant:"text",size:"small",icon:b.jsx(tM,{rotated:e}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:t?`${wt.expandButton} ${wt.expandButtonHidden}`:wt.expandButton})}function nM(){return b.jsx(rc,{})}function oM(){return b.jsx(rc,{rotated:!0})}function rM(){return b.jsx(rc,{hidden:!0})}const sM=K.forwardRef(function({id:t,itemId:n,label:o,disabled:s,children:i,className:a,...l},c){const{getContextProviderProps:u,getRootProps:d,getContentProps:m,getIconContainerProps:h,getLabelProps:f,getGroupTransitionProps:g,status:p}=Th({id:t,itemId:n,children:i,label:o,disabled:s,rootRef:c}),{interactions:y}=xh({itemId:n,children:i}),x=WN(n),T=h({className:wt.iconContainer}),w=C=>{C.key==="Enter"&&(C.preventDefault(),C.defaultMuiPrevented=!0,y.handleSelection(C))};return b.jsx(Zl,{...u(),children:b.jsxs(Eh,{...d({...l,className:`${wt.node} ${a??""}`,onKeyDown:w}),children:[b.jsxs(_h,{...m({className:wt.row}),status:p,children:[b.jsx(kh,{...T,onClick:C=>{C.stopPropagation(),T.onClick(C)},children:b.jsx(Ql,{status:p})}),b.jsx(Oh,{...f({className:wt.label}),children:(x==null?void 0:x.label)??o})]}),i&&b.jsx(Ph,{...g({className:wt.subtree})})]})})}),Ah=K.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:s,multiple:i=!1,disabled:a=!1,onNodeExpand:l,onNodeCollapse:c,onSelectedChange:u,...d},m){const h=fe(d,t),f=o==="*"?eM(n):o,g=h.className,p=g?`${wt.root} ${g}`:wt.root;return b.jsx(oc,{ref:m,...h,items:n,getItemId:y=>y.value,getItemLabel:y=>typeof y.label=="string"?y.label:y.value,defaultExpandedItems:f,defaultSelectedItems:i?s??[]:s==null?void 0:s[0],multiSelect:i,isItemDisabled:a?()=>!0:void 0,expansionTrigger:"iconContainer",onItemExpansionToggle:(y,x,T)=>{T?l==null||l(x):c==null||c(x)},onSelectedItemsChange:(y,x)=>{u==null||u(Array.isArray(x)?x:x?[x]:[])},slots:{expandIcon:nM,collapseIcon:oM,endIcon:rM,item:sM},classes:{root:p}})});Ah.displayName="Tree";const iM=$g,aM=np,lM=sp,cM=Ma,uM=ip,dM=Cp,pM=Xd,fM=ii,mM=xb,hM=be(Fs),gM=be(Ca),bM=be(Ls),yM=be(Vs),vM=be(un),xM=be(Vd),SM=be(Rg),CM=be(Mg),wM=be(zd),TM=be(Bs),IM=be(Yg),EM=be(_a),_M=be(Ea),OM=be(ys),kM=be(mb),PM=be(Qd),RM=be(tp),NM=be(dn),MM=be(sn),$M=be($a),DM=be(wa),AM=be(up),jM=be(Ia),LM=be(dp),VM=be(pp),FM=be(fp),BM=be(Ws),zM=be(gp),WM=be(Cy),UM=be(vp),qM=be(ja),HM=be(Va),YM=be(La),GM=be(Ta),KM=be(qy),XM=be(Sp),QM=be(wp),ZM=be(Ba),JM=be(Fa),e$=be(Dn),t$=be(wf),n$=be(Tf),o$=be(Cf),r$=be(If),s$=be(Ef),i$=be(_f),a$=be(Jm),l$=be(th),c$=be(Bl),u$=be(nh),d$=be(oh),p$=be(dP),f$=be(pP),m$=be(Ah);exports.Accordion=hM;exports.AccordionControl=bM;exports.AccordionItem=gM;exports.AccordionPanel=yM;exports.AssistiveElement=vM;exports.Autocomplete=xM;exports.Avatar=SM;exports.Badge=CM;exports.Box=iM;exports.Breadcrumb=wM;exports.Button=TM;exports.Card=IM;exports.Checkbox=EM;exports.CheckboxGroup=_M;exports.Chip=OM;exports.Container=pM;exports.DatePicker=kM;exports.Dropdown=PM;exports.EmptyValueRenderer=ka;exports.FileInput=mM;exports.FileUpload=RM;exports.Flex=aM;exports.FormControlLayout=NM;exports.FormControlWrapper=MM;exports.Grid=lM;exports.GridCol=cM;exports.Group=uM;exports.HoverCard=$M;exports.IS_DEV=Rn;exports.Label=DM;exports.Layer=Oa;exports.Link=AM;exports.Loader=jM;exports.Menu=LM;exports.MenuDivider=FM;exports.MenuItem=VM;exports.Modal=BM;exports.NumberInput=zM;exports.Pagination=WM;exports.Panel=UM;exports.PanelFooter=qM;exports.RECURSICA_COMPONENTS=Nb;exports.Radio=HM;exports.RadioGroup=YM;exports.ReadOnlyField=GM;exports.RecursicaThemeProvider=Rb;exports.SegmentedControl=KM;exports.Slider=XM;exports.Stack=dM;exports.Stepper=QM;exports.Switch=ZM;exports.SwitchGroup=JM;exports.Tab=t$;exports.TabPanel=n$;exports.Table=e$;exports.Tabs=o$;exports.Text=r$;exports.TextArea=s$;exports.TextField=i$;exports.TimePicker=a$;exports.Timeline=l$;exports.TimelineItem=c$;exports.Title=u$;exports.Toast=d$;exports.Tooltip=p$;exports.TransferList=f$;exports.Tree=m$;exports.Typography=fM;exports.copyToClipboard=Mb;exports.fileMatchesAccept=ep;exports.injectOverStyledStyles=Pa;exports.isGlobalOverStyledActive=Pb;exports.registerOverStyledConsoleCommand=Ra;exports.toggleGlobalOverStyled=Zd;exports.useGlobalOverStyled=Jd;exports.wrapComponent=be;
|
|
265
265
|
//# sourceMappingURL=mui-adapter.cjs.map
|