"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[417],{93362:function(e,t,o){o.d(t,{D:function(){return c},Z:function(){return h}});var n=o(87462),r=o(67294),a=o(57579),i=o(8925),l=o(2097),s=o(73633),p=o(7960);function u(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function c(e={}){const{ignoreAccents:t=!0,ignoreCase:o=!0,limit:n,matchFrom:r="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let p=i?l.trim():l;o&&(p=p.toLowerCase()),t&&(p=u(p));const c=p?e.filter((e=>{let n=(a||s)(e);return o&&(n=n.toLowerCase()),t&&(n=u(n)),"start"===r?0===n.indexOf(p):n.indexOf(p)>-1})):e;return"number"===typeof n?c.slice(0,n):c}}function d(e,t){for(let o=0;o{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function h(e){const{unstable_isActiveElementInListbox:t=f,unstable_classNamePrefix:o="Mui",autoComplete:u=!1,autoHighlight:c=!1,autoSelect:h=!1,blurOnSelect:m=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:v=!1,componentName:x="useAutocomplete",defaultValue:y=(e.multiple?[]:null),disableClearable:Z=!1,disableCloseOnSelect:O=!1,disabled:$,disabledItemsFocusable:I=!1,disableListWrap:S=!1,filterOptions:P=g,filterSelectedOptions:C=!1,freeSolo:k=!1,getOptionDisabled:w,getOptionLabel:L=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:A,handleHomeEndKeys:T=!e.freeSolo,id:R,includeInputInList:N=!1,inputValue:M,isOptionEqualToValue:D=((e,t)=>e===t),multiple:E=!1,onChange:z,onClose:F,onHighlightChange:H,onInputChange:j,onOpen:W,open:V,openOnFocus:B=!1,options:q,readOnly:G=!1,selectOnFocus:K=!e.freeSolo,value:U}=e,_=(0,a.Z)(R);let J=L;J=e=>{const t=L(e);return"string"!==typeof t?String(t):t};const Q=r.useRef(!1),X=r.useRef(!0),Y=r.useRef(null),ee=r.useRef(null),[te,oe]=r.useState(null),[ne,re]=r.useState(-1),ae=c?0:-1,ie=r.useRef(ae),[le,se]=(0,i.Z)({controlled:U,default:y,name:x}),[pe,ue]=(0,i.Z)({controlled:M,default:"",name:x,state:"inputValue"}),[ce,de]=r.useState(!1),ge=r.useCallback(((e,t)=>{if(!(E?le.length!C||!(E?le:[le]).some((t=>null!==t&&D(e,t))))),{inputValue:ve&&me?"":pe,getOptionLabel:J}):[],Ze=(0,l.Z)({filteredOptions:ye,value:le});r.useEffect((()=>{const e=le!==Ze.value;ce&&!e||k&&!e||ge(null,le)}),[le,ge,ce,Ze.value,k]);const Oe=fe&&ye.length>0&&!G;const $e=(0,s.Z)((e=>{-1===e?Y.current.focus():te.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{E&&ne>le.length-1&&(re(-1),$e(-1))}),[le,E,ne,$e]);const Ie=(0,s.Z)((({event:e,index:t,reason:n="auto"})=>{if(ie.current=t,-1===t?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${_}-option-${t}`),H&&H(e,-1===t?null:ye[t],n),!ee.current)return;const r=ee.current.querySelector(`[role="option"].${o}-focused`);r&&(r.classList.remove(`${o}-focused`),r.classList.remove(`${o}-focusVisible`));let a=ee.current;if("listbox"!==ee.current.getAttribute("role")&&(a=ee.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t)return void(a.scrollTop=0);const i=ee.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${o}-focused`),"keyboard"===n&&i.classList.add(`${o}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==n)){const e=i,t=a.clientHeight+a.scrollTop,o=e.offsetTop+e.offsetHeight;o>t?a.scrollTop=o-a.clientHeight:e.offsetTop-e.offsetHeight*(A?1.3:0){if(!xe)return;const r=function(e,t){if(!ee.current||-1===e)return-1;let o=e;for(;;){if("next"===t&&o===ye.length||"previous"===t&&-1===o)return-1;const e=ee.current.querySelector(`[data-option-index="${o}"]`),n=!I&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||n))return o;o+="next"===t?1:-1}}((()=>{const e=ye.length-1;if("reset"===t)return ae;if("start"===t)return 0;if("end"===t)return e;const o=ie.current+t;return o<0?-1===o&&N?-1:S&&-1!==ie.current||Math.abs(t)>1?0:e:o>e?o===e+1&&N?-1:S||Math.abs(t)>1?e:0:o})(),o);if(Ie({index:r,reason:n,event:e}),u&&"reset"!==t)if(-1===r)Y.current.value=pe;else{const e=J(ye[r]);Y.current.value=e;0===e.toLowerCase().indexOf(pe.toLowerCase())&&pe.length>0&&Y.current.setSelectionRange(pe.length,e.length)}})),Pe=r.useCallback((()=>{if(!xe)return;if((()=>{if(-1!==ie.current&&Ze.filteredOptions&&Ze.filteredOptions.length!==ye.length&&(E?le.length===Ze.value.length&&Ze.value.every(((e,t)=>J(le[t])===J(e))):(e=Ze.value,t=le,(e?J(e):"")===(t?J(t):"")))){const e=Ze.filteredOptions[ie.current];if(e&&ye.some((t=>J(t)===J(e))))return!0}var e,t;return!1})())return;const e=E?le[0]:le;if(0!==ye.length&&null!=e){if(ee.current)if(null==e)ie.current>=ye.length-1?Ie({index:ye.length-1}):Ie({index:ie.current});else{const t=ye[ie.current];if(E&&t&&-1!==d(le,(e=>D(t,e))))return;const o=d(ye,(t=>D(t,e)));-1===o?Se({diff:"reset"}):Ie({index:o})}}else Se({diff:"reset"})}),[ye.length,!E&&le,C,Se,Ie,xe,pe,E]),Ce=(0,s.Z)((e=>{(0,p.Z)(ee,e),e&&Pe()}));r.useEffect((()=>{Pe()}),[Pe]);const ke=e=>{fe||(he(!0),be(!0),W&&W(e))},we=(e,t)=>{fe&&(he(!1),F&&F(e,t))},Le=(e,t,o,n)=>{if(E){if(le.length===t.length&&le.every(((e,o)=>e===t[o])))return}else if(le===t)return;z&&z(e,t,o,n),se(t)},Ae=r.useRef(!1),Te=(e,t,o="selectOption",n="options")=>{let r=o,a=t;if(E){a=Array.isArray(le)?le.slice():[];const e=d(a,(e=>D(t,e)));-1===e?a.push(t):"freeSolo"!==n&&(a.splice(e,1),r="removeOption")}ge(e,a),Le(e,a,r,{option:t}),O||e&&(e.ctrlKey||e.metaKey)||we(e,r),(!0===m||"touch"===m&&Ae.current||"mouse"===m&&!Ae.current)&&Y.current.blur()};const Re=(e,t)=>{if(!E)return;""===pe&&we(e,"toggleInput");let o=ne;-1===ne?""===pe&&"previous"===t&&(o=le.length-1):(o+="next"===t?1:-1,o<0&&(o=0),o===le.length&&(o=-1)),o=function(e,t){if(-1===e)return-1;let o=e;for(;;){if("next"===t&&o===le.length||"previous"===t&&-1===o)return-1;const e=te.querySelector(`[data-tag-index="${o}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return o;o+="next"===t?1:-1}}(o,t),re(o),$e(o)},Ne=e=>{Q.current=!0,ue(""),j&&j(e,"","clear"),Le(e,E?[]:null,"clear")},Me=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==ne&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(re(-1),$e(-1)),229!==t.which))switch(t.key){case"Home":xe&&T&&(t.preventDefault(),Se({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":xe&&T&&(t.preventDefault(),Se({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Se({diff:-5,direction:"previous",reason:"keyboard",event:t}),ke(t);break;case"PageDown":t.preventDefault(),Se({diff:5,direction:"next",reason:"keyboard",event:t}),ke(t);break;case"ArrowDown":t.preventDefault(),Se({diff:1,direction:"next",reason:"keyboard",event:t}),ke(t);break;case"ArrowUp":t.preventDefault(),Se({diff:-1,direction:"previous",reason:"keyboard",event:t}),ke(t);break;case"ArrowLeft":Re(t,"previous");break;case"ArrowRight":Re(t,"next");break;case"Enter":if(-1!==ie.current&&xe){const e=ye[ie.current],o=!!w&&w(e);if(t.preventDefault(),o)return;Te(t,e,"selectOption"),u&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&""!==pe&&!1===ve&&(E&&t.preventDefault(),Te(t,pe,"createOption","freeSolo"));break;case"Escape":xe?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):v&&(""!==pe||E&&le.length>0)&&(t.preventDefault(),t.stopPropagation(),Ne(t));break;case"Backspace":if(E&&!G&&""===pe&&le.length>0){const e=-1===ne?le.length-1:ne,o=le.slice();o.splice(e,1),Le(t,o,"removeOption",{option:le[e]})}break;case"Delete":if(E&&!G&&""===pe&&le.length>0&&-1!==ne){const e=ne,o=le.slice();o.splice(e,1),Le(t,o,"removeOption",{option:le[e]})}}},De=e=>{de(!0),B&&!Q.current&&ke(e)},Ee=e=>{t(ee)?Y.current.focus():(de(!1),X.current=!0,Q.current=!1,h&&-1!==ie.current&&xe?Te(e,ye[ie.current],"blur"):h&&k&&""!==pe?Te(e,pe,"blur","freeSolo"):b&&ge(e,le),we(e,"blur"))},ze=e=>{const t=e.target.value;pe!==t&&(ue(t),be(!1),j&&j(e,t,"input")),""===t?Z||E||Le(e,null,"clear"):ke(e)},Fe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ie.current!==t&&Ie({event:e,index:t,reason:"mouse"})},He=e=>{Ie({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ae.current=!0},je=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Te(e,ye[t],"selectOption"),Ae.current=!1},We=e=>t=>{const o=le.slice();o.splice(e,1),Le(t,o,"removeOption",{option:le[e]})},Ve=e=>{fe?we(e,"toggleInput"):ke(e)},Be=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==_&&e.preventDefault()},qe=e=>{e.currentTarget.contains(e.target)&&(Y.current.focus(),K&&X.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),X.current=!1)},Ge=e=>{""!==pe&&fe||Ve(e)};let Ke=k&&pe.length>0;Ke=Ke||(E?le.length>0:null!==le);let Ue=ye;if(A){new Map;Ue=ye.reduce(((e,t,o)=>{const n=A(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:o,index:o,group:n,options:[t]}),e}),[])}return $&&ce&&Ee(),{getRootProps:(e={})=>(0,n.Z)({"aria-owns":Oe?`${_}-listbox`:null},e,{onKeyDown:Me(e),onMouseDown:Be,onClick:qe}),getInputLabelProps:()=>({id:`${_}-label`,htmlFor:_}),getInputProps:()=>({id:_,value:pe,onBlur:Ee,onFocus:De,onChange:ze,onMouseDown:Ge,"aria-activedescendant":xe?"":null,"aria-autocomplete":u?"both":"list","aria-controls":Oe?`${_}-listbox`:void 0,"aria-expanded":Oe,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:$}),getClearProps:()=>({tabIndex:-1,onClick:Ne}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ve}),getTagProps:({index:e})=>(0,n.Z)({key:e,"data-tag-index":e,tabIndex:-1},!G&&{onDelete:We(e)}),getListboxProps:()=>({role:"listbox",id:`${_}-listbox`,"aria-labelledby":`${_}-label`,ref:Ce,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const o=(E?le:[le]).some((e=>null!=e&&D(t,e))),n=!!w&&w(t);return{key:J(t),tabIndex:-1,role:"option",id:`${_}-option-${e}`,onMouseMove:Fe,onClick:je,onTouchStart:He,"data-option-index":e,"aria-disabled":n,"aria-selected":o}},id:_,inputValue:pe,value:le,dirty:Ke,expanded:xe&&te,popupOpen:xe,focused:ce||-1!==ne,anchorEl:te,setAnchorEl:oe,focusedTag:ne,groupedOptions:Ue}}},417:function(e,t,o){o.d(t,{Z:function(){return _}});var n=o(63366),r=o(87462),a=o(67294),i=o(86010),l=o(94780),s=o(93362),p=o(41796),u=o(16078),c=o(90948),d=o(33616),g=o(98216),f=o(1588),h=o(34867);function m(e){return(0,h.Z)("MuiListSubheader",e)}(0,f.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var b=o(85893);const v=["className","color","component","disableGutters","disableSticky","inset"],x=(0,c.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,"default"!==o.color&&t[`color${(0,g.Z)(o.color)}`],!o.disableGutters&&t.gutters,o.inset&&t.inset,!o.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,r.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),y=a.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiListSubheader"}),{className:a,color:s="default",component:p="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=o,h=(0,n.Z)(o,v),y=(0,r.Z)({},o,{color:s,component:p,disableGutters:u,disableSticky:c,inset:f}),Z=(e=>{const{classes:t,color:o,disableGutters:n,inset:r,disableSticky:a}=e,i={root:["root","default"!==o&&`color${(0,g.Z)(o)}`,!n&&"gutters",r&&"inset",!a&&"sticky"]};return(0,l.Z)(i,m,t)})(y);return(0,b.jsx)(x,(0,r.Z)({as:p,className:(0,i.Z)(Z.root,a),ref:t,ownerState:y},h))}));y.muiSkipListHighlight=!0;var Z=y,O=o(90629),$=o(93946),I=o(87918),S=o(7021),P=o(55827),C=o(54656),k=o(24707),w=(0,o(82066).Z)((0,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"),L=o(60224);function A(e){return(0,h.Z)("MuiAutocomplete",e)}var T,R,N=(0,f.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),M=o(51705);const D=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],E=["ref"],z=(0,c.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{fullWidth:n,hasClearIcon:r,hasPopupIcon:a,inputFocused:i,size:l}=o;return[{[`& .${N.tag}`]:t.tag},{[`& .${N.tag}`]:t[`tagSize${(0,g.Z)(l)}`]},{[`& .${N.inputRoot}`]:t.inputRoot},{[`& .${N.input}`]:t.input},{[`& .${N.input}`]:i&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,r&&t.hasClearIcon]}})((({ownerState:e})=>(0,r.Z)({[`&.${N.focused} .${N.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${N.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${N.tag}`]:(0,r.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${N.inputRoot}`]:{flexWrap:"wrap",[`.${N.hasPopupIcon}&, .${N.hasClearIcon}&`]:{paddingRight:30},[`.${N.hasPopupIcon}.${N.hasClearIcon}&`]:{paddingRight:56},[`& .${N.input}`]:{width:0,minWidth:30}},[`& .${S.Z.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${S.Z.root}.${P.Z.sizeSmall}`]:{[`& .${S.Z.input}`]:{padding:"2px 4px 3px 0"}},[`& .${C.Z.root}`]:{padding:9,[`.${N.hasPopupIcon}&, .${N.hasClearIcon}&`]:{paddingRight:39},[`.${N.hasPopupIcon}.${N.hasClearIcon}&`]:{paddingRight:65},[`& .${N.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${N.endAdornment}`]:{right:9}},[`& .${C.Z.root}.${P.Z.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${N.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${k.Z.root}`]:{paddingTop:19,paddingLeft:8,[`.${N.hasPopupIcon}&, .${N.hasClearIcon}&`]:{paddingRight:39},[`.${N.hasPopupIcon}.${N.hasClearIcon}&`]:{paddingRight:65},[`& .${k.Z.input}`]:{padding:"7px 4px"},[`& .${N.endAdornment}`]:{right:9}},[`& .${k.Z.root}.${P.Z.sizeSmall}`]:{paddingBottom:1,[`& .${k.Z.input}`]:{padding:"2.5px 4px"}},[`& .${P.Z.hiddenLabel}`]:{paddingTop:8},[`& .${k.Z.root}.${P.Z.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${N.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${k.Z.root}.${P.Z.hiddenLabel}.${P.Z.sizeSmall}`]:{[`& .${N.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${N.input}`]:(0,r.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),F=(0,c.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),H=(0,c.ZP)($.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),j=(0,c.ZP)($.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,r.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>(0,r.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),W=(0,c.ZP)(u.Z,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${N.option}`]:t.option},t.popper,o.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>(0,r.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),V=(0,c.ZP)(O.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>(0,r.Z)({},e.typography.body1,{overflow:"auto"}))),B=(0,c.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),q=(0,c.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),G=(0,c.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${N.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${N.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${N.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${N.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${N.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),K=(0,c.ZP)(Z,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),U=(0,c.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${N.option}`]:{paddingLeft:24}});var _=a.forwardRef((function(e,t){var o,p,c,f;const h=(0,d.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:m=!1,autoHighlight:v=!1,autoSelect:x=!1,blurOnSelect:y=!1,ChipProps:Z,className:$,clearIcon:S=T||(T=(0,b.jsx)(w,{fontSize:"small"})),clearOnBlur:P=!h.freeSolo,clearOnEscape:C=!1,clearText:k="Clear",closeText:N="Close",componentsProps:_={},defaultValue:J=(h.multiple?[]:null),disableClearable:Q=!1,disableCloseOnSelect:X=!1,disabled:Y=!1,disabledItemsFocusable:ee=!1,disableListWrap:te=!1,disablePortal:oe=!1,filterSelectedOptions:ne=!1,forcePopupIcon:re="auto",freeSolo:ae=!1,fullWidth:ie=!1,getLimitTagsText:le=(e=>`+${e}`),getOptionLabel:se=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:pe,handleHomeEndKeys:ue=!h.freeSolo,includeInputInList:ce=!1,limitTags:de=-1,ListboxComponent:ge="ul",ListboxProps:fe,loading:he=!1,loadingText:me="Loading\u2026",multiple:be=!1,noOptionsText:ve="No options",openOnFocus:xe=!1,openText:ye="Open",PaperComponent:Ze=O.Z,PopperComponent:Oe=u.Z,popupIcon:$e=R||(R=(0,b.jsx)(L.Z,{})),readOnly:Ie=!1,renderGroup:Se,renderInput:Pe,renderOption:Ce,renderTags:ke,selectOnFocus:we=!h.freeSolo,size:Le="medium",slotProps:Ae={}}=h,Te=(0,n.Z)(h,D),{getRootProps:Re,getInputProps:Ne,getInputLabelProps:Me,getPopupIndicatorProps:De,getClearProps:Ee,getTagProps:ze,getListboxProps:Fe,getOptionProps:He,value:je,dirty:We,expanded:Ve,id:Be,popupOpen:qe,focused:Ge,focusedTag:Ke,anchorEl:Ue,setAnchorEl:_e,inputValue:Je,groupedOptions:Qe}=(0,s.Z)((0,r.Z)({},h,{componentName:"Autocomplete"})),Xe=!Q&&!Y&&We&&!Ie,Ye=(!ae||!0===re)&&!1!==re,{onMouseDown:et}=Ne(),{ref:tt}=null!=fe?fe:{},ot=Fe(),{ref:nt}=ot,rt=(0,n.Z)(ot,E),at=(0,M.Z)(nt,tt),it=(0,r.Z)({},h,{disablePortal:oe,expanded:Ve,focused:Ge,fullWidth:ie,hasClearIcon:Xe,hasPopupIcon:Ye,inputFocused:-1===Ke,popupOpen:qe,size:Le}),lt=(e=>{const{classes:t,disablePortal:o,expanded:n,focused:r,fullWidth:a,hasClearIcon:i,hasPopupIcon:s,inputFocused:p,popupOpen:u,size:c}=e,d={root:["root",n&&"expanded",r&&"focused",a&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",p&&"inputFocused"],tag:["tag",`tagSize${(0,g.Z)(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",o&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,l.Z)(d,A,t)})(it);let st;if(be&&je.length>0){const e=e=>(0,r.Z)({className:lt.tag,disabled:Y},ze(e));st=ke?ke(je,e,it):je.map(((t,o)=>(0,b.jsx)(I.Z,(0,r.Z)({label:se(t),size:Le},e({index:o}),Z))))}if(de>-1&&Array.isArray(st)){const e=st.length-de;!Ge&&e>0&&(st=st.splice(0,de),st.push((0,b.jsx)("span",{className:lt.tag,children:le(e)},st.length)))}const pt=Se||(e=>(0,b.jsxs)("li",{children:[(0,b.jsx)(K,{className:lt.groupLabel,ownerState:it,component:"div",children:e.group}),(0,b.jsx)(U,{className:lt.groupUl,ownerState:it,children:e.children})]},e.key)),ut=Ce||((e,t)=>(0,b.jsx)("li",(0,r.Z)({},e,{children:se(t)}))),ct=(e,t)=>{const o=He({option:e,index:t});return ut((0,r.Z)({},o,{className:lt.option}),e,{selected:o["aria-selected"],index:t,inputValue:Je})},dt=null!=(o=Ae.clearIndicator)?o:_.clearIndicator,gt=null!=(p=Ae.paper)?p:_.paper,ft=null!=(c=Ae.popper)?c:_.popper,ht=null!=(f=Ae.popupIndicator)?f:_.popupIndicator;return(0,b.jsxs)(a.Fragment,{children:[(0,b.jsx)(z,(0,r.Z)({ref:t,className:(0,i.Z)(lt.root,$),ownerState:it},Re(Te),{children:Pe({id:Be,disabled:Y,fullWidth:!0,size:"small"===Le?"small":void 0,InputLabelProps:Me(),InputProps:(0,r.Z)({ref:_e,className:lt.inputRoot,startAdornment:st,onClick:e=>{e.target===e.currentTarget&&et(e)}},(Xe||Ye)&&{endAdornment:(0,b.jsxs)(F,{className:lt.endAdornment,ownerState:it,children:[Xe?(0,b.jsx)(H,(0,r.Z)({},Ee(),{"aria-label":k,title:k,ownerState:it},dt,{className:(0,i.Z)(lt.clearIndicator,null==dt?void 0:dt.className),children:S})):null,Ye?(0,b.jsx)(j,(0,r.Z)({},De(),{disabled:Y,"aria-label":qe?N:ye,title:qe?N:ye,ownerState:it},ht,{className:(0,i.Z)(lt.popupIndicator,null==ht?void 0:ht.className),children:$e})):null]})}),inputProps:(0,r.Z)({className:lt.input,disabled:Y,readOnly:Ie},Ne())})})),Ue?(0,b.jsx)(W,(0,r.Z)({as:Oe,disablePortal:oe,style:{width:Ue?Ue.clientWidth:null},ownerState:it,role:"presentation",anchorEl:Ue,open:qe},ft,{className:(0,i.Z)(lt.popper,null==ft?void 0:ft.className),children:(0,b.jsxs)(V,(0,r.Z)({ownerState:it,as:Ze},gt,{className:(0,i.Z)(lt.paper,null==gt?void 0:gt.className),children:[he&&0===Qe.length?(0,b.jsx)(B,{className:lt.loading,ownerState:it,children:me}):null,0!==Qe.length||ae||he?null:(0,b.jsx)(q,{className:lt.noOptions,ownerState:it,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ve}),Qe.length>0?(0,b.jsx)(G,(0,r.Z)({as:ge,className:lt.listbox,ownerState:it},rt,fe,{ref:at,children:Qe.map(((e,t)=>pe?pt({key:e.key,group:e.group,children:e.options.map(((t,o)=>ct(t,e.index+o)))}):ct(e,t)))})):null]}))})):null]})}))},2097:function(e,t,o){var n=o(67294);t.Z=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current}}}]);