UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

3 lines • 64.7 kB
import{i as e}from"./chunk-DseTPa7n.js";import{B as t,C as n,D as r,E as i,F as a,G as o,L as s,P as c,Q as l,S as u,T as d,V as f,Z as p,a as m,b as h,g,h as _,j as v,k as y,m as b,n as x,o as S,p as C,s as w,v as T,w as E,x as D,y as O,z as k}from"./Box-CXFf6N2h.js";import{o as A}from"./i18n.store-fGbhAfs-.js";import{d as j,f as M,h as N,i as ee,m as P,o as F,p as I,s as L,u as R,v as te}from"./KeyboardArrowDown-Bd9MEjfK.js";import{c as z,d as ne,f as B,i as re,l as V,o as ie,r as H,s as U,t as ae,u as W}from"./useRovingTabIndex-CsU9_6jv.js";import{t as oe}from"./createSimplePaletteValueFilter-CS4iIFa3.js";import{t as se}from"./List-C08Y9n9o.js";var G=e(A(),1);function K(e,t){return G.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function q(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}var J=l(),ce=K;function le(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Y(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{le(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=f(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=f(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function X(e){return t(`MuiPaper`,e)}k(`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`.split(`.`));var ue=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return v({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},X,i)},de=E(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(D(({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:e})=>!e.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)`}}]}))),fe=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiPaper`}),i=r(),{className:o,component:s=`div`,elevation:c=1,square:l=!1,variant:u=`elevation`,...d}=n,p={...n,component:s,elevation:c,square:l,variant:u};return(0,J.jsx)(de,{as:s,ownerState:p,className:f(ue(p).root,o),ref:t,...d,style:{...u===`elevation`&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[c]},...!i.vars&&i.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${a(`#fff`,y(c))}, ${a(`#fff`,y(c))})`}},...d.style}})});function pe(e){return parseInt(e,10)||0}var me={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function he(e){for(let t in e)return!1;return!0}function ge(e){return he(e)||e.outerHeightStyle===0&&!e.overflowing}var _e=G.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...c}=e,{current:l}=G.useRef(o!=null),u=G.useRef(null),d=b(t,u),f=G.useRef(null),p=G.useRef(null),m=G.useCallback(()=>{let t=u.current,n=p.current;if(!t||!n)return;let a=z(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===` `&&(n.value+=` `);let o=a.boxSizing,s=pe(a.paddingBottom)+pe(a.paddingTop),c=pe(a.borderBottomWidth)+pe(a.borderTopWidth),l=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,f=l;return i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d),{outerHeightStyle:f+(o===`border-box`?s+c:0),overflowing:Math.abs(f-l)<=1}},[r,i,e.placeholder]),h=g(()=>{let e=u.current,t=m();if(!e||!t||ge(t))return!1;let n=t.outerHeightStyle;return f.current!=null&&f.current!==n}),_=G.useCallback(()=>{let e=u.current,t=m();if(!e||!t||ge(t))return;let n=t.outerHeightStyle;f.current!==n&&(f.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[m]),v=G.useRef(-1);return s(()=>{let e=B(_),t=u?.current;if(!t)return;let n=z(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(v.current),_(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[m,_,h]),s(()=>{_()}),(0,J.jsxs)(G.Fragment,{children:[(0,J.jsx)(`textarea`,{value:o,onChange:e=>{l||_();let t=e.target,r=t.value.length,i=t.value.endsWith(` `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:d,rows:i,style:a,...c}),(0,J.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...me.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function Z({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var ve=G.createContext(void 0);function Q(){return G.useContext(ve)}function ye(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function be(e,t=!1){return e&&(ye(e.value)&&e.value!==``||t&&ye(e.defaultValue)&&e.defaultValue!==``)}function xe(e){return e.startAdornment}function Se(e){return t(`MuiInputBase`,e)}var $=k(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),Ce,we=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size===`small`&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${n(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Te=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},Ee=e=>{let{classes:t,color:r,disabled:i,error:a,endAdornment:o,focused:s,formControl:c,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:m,type:h}=e;return v({root:[`root`,`color${n(r)}`,i&&`disabled`,a&&`error`,l&&`fullWidth`,s&&`focused`,c&&`formControl`,p&&p!==`medium`&&`size${n(p)}`,d&&`multiline`,m&&`adornedStart`,o&&`adornedEnd`,u&&`hiddenLabel`,f&&`readOnly`],input:[`input`,i&&`disabled`,h===`search`&&`inputTypeSearch`,f&&`readOnly`]},Se,t)},De=E(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:we})(D(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),Oe=E(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Te})(D(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create(`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${$.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${$.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:`mui-auto-fill-cancel`,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:`mui-auto-fill`}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),ke=u({"@keyframes mui-auto-fill":{from:{display:`block`}},"@keyframes mui-auto-fill-cancel":{from:{display:`block`}}}),Ae=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiInputBase`}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:o,color:s,defaultValue:c,disabled:l,disableInjectingGlobalStyles:u,endAdornment:d,error:m,fullWidth:g=!1,id:_,inputComponent:v=`input`,inputProps:y={},inputRef:b,margin:x,maxRows:S,minRows:T,multiline:E=!1,name:D,onBlur:O,onChange:k,onClick:A,onFocus:j,onKeyDown:M,onKeyUp:N,placeholder:ee,readOnly:P,renderSuffix:F,rows:I,size:L,slotProps:R={},slots:te={},startAdornment:z,type:ne=`text`,value:B,...re}=n,V=y.value==null?B:y.value,{current:H}=G.useRef(V!=null),U=G.useRef(),ae=G.useCallback(e=>{},[]),W=C(U,b,y.ref,ae),[oe,se]=G.useState(!1),K=Q(),q=Z({props:n,muiFormControl:K,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});q.focused=K?K.focused:oe,G.useEffect(()=>{!K&&l&&oe&&(se(!1),O&&O())},[K,l,oe,O]);let ce=K&&K.onFilled,le=K&&K.onEmpty,Y=G.useCallback(e=>{be(e)?ce&&ce():le&&le()},[ce,le]);ie(()=>{H&&Y({value:V})},[V,Y,H]);let X=e=>{j&&j(e),y.onFocus&&y.onFocus(e),K&&K.onFocus?K.onFocus(e):se(!0)},ue=e=>{O&&O(e),y.onBlur&&y.onBlur(e),K&&K.onBlur?K.onBlur(e):se(!1)},de=(e,...t)=>{if(!H){let t=e.target||U.current;if(t==null)throw Error(p(1));Y({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)};G.useEffect(()=>{Y(U.current)},[]);let fe=e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),A&&A(e)},pe=v,me=y;E&&pe===`input`&&(me=I?{type:void 0,minRows:I,maxRows:I,...me}:{type:void 0,maxRows:S,minRows:T,...me},pe=_e);let he=e=>{Y(e.animationName===`mui-auto-fill-cancel`?U.current:{value:`x`})};G.useEffect(()=>{K&&K.setAdornedStart(!!z)},[K,z]);let ge={...n,color:q.color||`primary`,disabled:q.disabled,endAdornment:d,error:q.error,focused:q.focused,formControl:K,fullWidth:g,hiddenLabel:q.hiddenLabel,multiline:E,size:q.size,startAdornment:z,type:ne},ye=Ee(ge),xe=te.root||De,Se=R.root||{},$=te.input||Oe;return me={...me,...R.input},(0,J.jsxs)(G.Fragment,{children:[!u&&typeof ke==`function`&&(Ce||=(0,J.jsx)(ke,{})),(0,J.jsxs)(xe,{...Se,ref:t,onClick:fe,...re,...!w(xe)&&{ownerState:{...ge,...Se.ownerState}},className:f(ye.root,Se.className,o,P&&`MuiInputBase-readOnly`),children:[z,(0,J.jsx)(ve.Provider,{value:null,children:(0,J.jsx)($,{"aria-invalid":q.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:c,disabled:q.disabled,id:_,onAnimationStart:he,name:D,placeholder:ee,readOnly:P,required:q.required,rows:I,value:V,onKeyDown:M,onKeyUp:N,type:ne,...me,...!w($)&&{as:pe,ownerState:{...ge,...me.ownerState}},ref:W,className:f(ye.input,me.className,P&&`MuiInputBase-readOnly`),onBlur:ue,onChange:de,onFocus:X})}),d,F?F({...q,startAdornment:z}):null]})]})});function je(e){return t(`MuiInput`,e)}var Me={...$,...k(`MuiInput`,[`root`,`underline`,`input`])};function Ne(e){return t(`MuiOutlinedInput`,e)}var Pe={...$,...k(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function Fe(e){return t(`MuiFilledInput`,e)}var Ie={...$,...k(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])},Le=O((0,J.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),Re={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},ze={opacity:0,visibility:`hidden`},Be=G.forwardRef(function(e,t){let n=r(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=i,...v}=e,y=G.useRef(null),b=C(y,L(s),t),x=M(y,f),S=M(y,(e,t)=>{I(e);let r=j({style:g,timeout:_,easing:c},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),u&&u(e,t)}),w=M(y,d),T=M(y,h),E=M(y,e=>{let t=j({style:g,timeout:_,easing:c},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),p&&p(e)}),D=M(y,e=>{e.style.transition=``,m&&m(e)});return(0,J.jsx)(P,{appear:o,in:l,nodeRef:y,onEnter:S,onEntered:w,onEntering:x,onExit:E,onExited:D,onExiting:T,addEndListener:e=>{a&&a(y.current,e)},timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=R(e,l,Re,ze,g,s.props.style);return G.cloneElement(s,{style:r,ref:b,...n})}})});function Ve(e){return t(`MuiBackdrop`,e)}k(`MuiBackdrop`,[`root`,`invisible`]);var He=e=>{let{classes:t,invisible:n}=e;return v({root:[`root`,n&&`invisible`]},Ve,t)},Ue=E(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{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`}}]}),We=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,p={...n,component:a,invisible:o},g=He(p),_={component:a,slots:l,slotProps:c},[v,y]=m(`root`,{elementType:Ue,externalForwardedProps:_,className:f(g.root,i),ownerState:p}),[b,x]=m(`transition`,{elementType:Be,externalForwardedProps:_,ownerState:p});return(0,J.jsx)(b,{in:s,timeout:u,...d,...x,children:(0,J.jsx)(v,{...y,ref:t,children:r})})});function Ge(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ke(e){let t=T(e);return t.body===e?z(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function qe(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Je(e){return parseFloat(z(e).getComputedStyle(e).paddingRight)||0}function Ye(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Xe(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Ye(e);t&&n&&qe(e,i)})}function Ze(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Qe(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Ke(r)){let e=Ge(z(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Je(r)+e}px`;let t=T(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Je(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=T(r).body;else{let t=r.parentElement,n=z(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function $e(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var et=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&qe(e.modalRef,!1);let r=$e(t);Xe(t,e.mount,e.modalRef,r,!0);let i=Ze(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Ze(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Qe(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Ze(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&qe(e.modalRef,t),Xe(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&qe(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},tt=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function nt(e){let 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 rt(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function it(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||rt(e))}function at(e){let t=[],n=[];return Array.from(e.querySelectorAll(tt)).forEach((e,r)=>{let i=nt(e);i===-1||!it(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ot(){return!0}function st(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=at,isEnabled:o=ot,open:s}=e,c=G.useRef(!1),l=G.useRef(null),u=G.useRef(null),d=G.useRef(null),f=G.useRef(null),p=G.useRef(!1),m=G.useRef(null),h=b(L(t),m),g=G.useRef(null);G.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),G.useEffect(()=>{if(!s||!m.current)return;let e=W(T(m.current));return m.current.contains(e)||(m.current.hasAttribute(`tabIndex`)||m.current.setAttribute(`tabIndex`,`-1`),p.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),G.useEffect(()=>{if(!s||!m.current)return;let e=T(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&W(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=W(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(t.contains(n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=W(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,J.jsxs)(G.Fragment,{children:[(0,J.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),G.cloneElement(t,{ref:h,onFocus:_}),(0,J.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function ct(e){return typeof e==`function`?e():e}function lt(e){return e?e.props.hasOwnProperty(`in`):!1}var ut=()=>{},dt=new et;function ft(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=G.useRef({}),d=G.useRef(null),f=G.useRef(null),p=b(f,l),[m,h]=G.useState(!c),_=lt(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>T(d.current),x=()=>(u.current.modalRef=f.current,u.current.mount=d.current,u.current),C=()=>{dt.mount(x(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},w=g(()=>{let e=ct(t)||y().body;dt.add(x(),e),f.current&&C()}),E=()=>dt.isTopModal(x()),D=g(e=>{d.current=e,e&&(c&&E()?C():f.current&&qe(f.current,v))}),O=G.useCallback(()=>{dt.remove(x(),v)},[v]);G.useEffect(()=>()=>{O()},[O]),G.useEffect(()=>{c?w():(!_||!r)&&O()},[c,O,_,r,w]);let k=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!E())&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},A=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=S(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:k(r),ref:p}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:A(t),open:c}},getTransitionProps:()=>({onEnter:q(()=>{h(!1),i&&i()},o?.props.onEnter??ut),onExited:q(()=>{h(!0),a&&a(),r&&O()},o?.props.onExited??ut)}),rootRef:p,portalRef:D,isTopModal:E,exited:m,hasTransition:_}}function pt(e){return t(`MuiModal`,e)}k(`MuiModal`,[`root`,`hidden`,`backdrop`]);var mt=e=>{let{open:t,exited:n,classes:r}=e;return v({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},pt,r)},ht=E(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(D(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),gt=E(We,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),_t=G.forwardRef(function(e,t){let n=h({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:g=!1,hideBackdrop:_=!1,keepMounted:v=!1,onClose:y,onTransitionEnter:b,onTransitionExited:x,open:S,slotProps:C={},slots:w={},theme:T,...E}=n,D={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:p,disableScrollLock:g,hideBackdrop:_,keepMounted:v},{getRootProps:O,getBackdropProps:k,getTransitionProps:A,portalRef:j,isTopModal:M,exited:N,hasTransition:ee}=ft({...D,rootRef:t}),P={...D,exited:N},I=mt(P),L={};if(o.props.tabIndex===void 0&&(L.tabIndex=`-1`),ee){let{onEnter:e,onExited:t}=A();L.onEnter=e,L.onExited=t}let R={slots:w,slotProps:C},[te,z]=m(`root`,{ref:t,elementType:ht,externalForwardedProps:{...R,...E,component:c},getSlotProps:O,ownerState:P,className:f(i,I?.root,!P.open&&P.exited&&I?.hidden)}),[ne,B]=m(`backdrop`,{elementType:gt,externalForwardedProps:R,shouldForwardComponentProp:!0,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:I?.backdrop,ownerState:P});return!v&&!S&&(!ee||N)?null:(0,J.jsx)(F,{ref:j,container:s,disablePortal:d,children:(0,J.jsxs)(te,{...z,children:[_?null:(0,J.jsx)(ne,{...B}),(0,J.jsx)(st,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:p,isEnabled:M,open:S,children:G.cloneElement(o,L)})]})})}),vt=e=>{let{classes:t,disableUnderline:r,startAdornment:i,endAdornment:a,size:o,hiddenLabel:s,multiline:c}=e,l=v({root:[`root`,!r&&`underline`,i&&`adornedStart`,a&&`adornedEnd`,o===`small`&&`size${n(o)}`,s&&`hiddenLabel`,c&&`multiline`],input:[`input`]},Fe,t);return{...t,...l}},yt=E(De,{shouldForwardProp:e=>d(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...we(e,t),!n.disableUnderline&&t.underline]}})(D(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ie.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ie.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Ie.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Ie.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:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Ie.disabled}, .${Ie.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ie.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(oe()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),bt=E(Oe,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Te})(D(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`,borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`},[e.getColorSchemeSelector(`dark`)]:{"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`}}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),xt=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:s=`input`,multiline:c=!1,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:s,multiline:c,type:d},m=vt(n),g={root:{ownerState:p},input:{ownerState:p}},_=l?o(g,l):g;return(0,J.jsx)(Ae,{slots:{root:u.root??yt,input:u.input??bt},slotProps:_,fullWidth:i,inputComponent:s,multiline:c,ref:t,type:d,...f,classes:m})});xt.muiName=`Input`;function St(e){return t(`MuiFormControl`,e)}k(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Ct=e=>{let{classes:t,margin:r,fullWidth:i}=e;return v({root:[`root`,r!==`none`&&`margin${n(r)}`,i&&`fullWidth`]},St,t)},wt=E(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`margin${n(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Tt=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:p=`none`,required:m=!1,size:g=`medium`,variant:_=`outlined`,...v}=n,y={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:p,required:m,size:g,variant:_},b=Ct(y),[x,S]=G.useState(()=>{let e=!1;return r&&G.Children.forEach(r,t=>{if(!ce(t,[`Input`,`Select`]))return;let n=ce(t,[`Select`])?t.props.input:t;n&&xe(n.props)&&(e=!0)}),e}),[C,w]=G.useState(()=>{let e=!1;return r&&G.Children.forEach(r,t=>{ce(t,[`Input`,`Select`])&&(be(t.props,!0)||be(t.props.inputProps,!0))&&(e=!0)}),e}),[T,E]=G.useState(!1);s&&T&&E(!1);let D=l!==void 0&&!s?l:T;G.useRef(!1);let O=G.useCallback(()=>{w(!0)},[]),k=G.useCallback(()=>{w(!1)},[]),A=G.useMemo(()=>({adornedStart:x,setAdornedStart:S,color:a,disabled:s,error:c,filled:C,focused:D,fullWidth:u,hiddenLabel:d,size:g,onBlur:()=>{E(!1)},onFocus:()=>{E(!0)},onEmpty:k,onFilled:O,registerEffect:void 0,required:m,variant:_}),[x,a,s,c,C,D,u,d,void 0,k,O,m,g,_]);return(0,J.jsx)(ve.Provider,{value:A,children:(0,J.jsx)(wt,{as:o,ownerState:y,className:f(b.root,i),ref:t,...v,children:r})})});function Et(e){return t(`MuiFormHelperText`,e)}var Dt=k(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]),Ot,kt=e=>{let{classes:t,contained:r,size:i,disabled:a,error:o,filled:s,focused:c,required:l}=e;return v({root:[`root`,a&&`disabled`,o&&`error`,i&&`size${n(i)}`,r&&`contained`,c&&`focused`,s&&`filled`,l&&`required`]},Et,t)},At=E(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t[`size${n(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(D(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Dt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dt.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),jt=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:p,...m}=n,g=Z({props:n,muiFormControl:Q(),states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),_={...n,component:a,contained:g.variant===`filled`||g.variant===`outlined`,variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};return delete _.ownerState,(0,J.jsx)(At,{as:a,className:f(kt(_).root,i),ref:t,...m,ownerState:_,children:r===` `?Ot||=(0,J.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):r})});function Mt(e){return t(`MuiFormLabel`,e)}var Nt=k(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Pt=e=>{let{classes:t,color:r,focused:i,disabled:a,error:o,filled:s,required:c}=e;return v({root:[`root`,`color${n(r)}`,a&&`disabled`,o&&`error`,s&&`filled`,i&&`focused`,c&&`required`],asterisk:[`asterisk`,o&&`error`]},Mt,t)},Ft=E(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(D(({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(oe()).map(([t])=>({props:{color:t},style:{[`&.${Nt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Nt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),It=E(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(D(({theme:e})=>({[`&.${Nt.error}`]:{color:(e.vars||e).palette.error.main}}))),Lt=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...p}=n,m=Z({props:n,muiFormControl:Q(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),g={...n,color:m.color||`primary`,component:o,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},_=Pt(g);return(0,J.jsxs)(Ft,{as:o,ownerState:g,className:f(_.root,i),ref:t,...p,children:[r,m.required&&(0,J.jsxs)(It,{ownerState:g,"aria-hidden":!0,className:_.asterisk,children:[` `,`*`]})]})});function Rt(e){return t(`MuiInputLabel`,e)}var zt=k(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),Bt=e=>{let{classes:t,disableUnderline:n}=e,r=v({root:[`root`,!n&&`underline`],input:[`input`]},je,t);return{...t,...r}},Vt=E(De,{shouldForwardProp:e=>d(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...we(e,t),!n.disableUnderline&&t.underline]}})(D(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${zt.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Me.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Me.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,transition:e.transitions.create(`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Me.disabled}, .${Me.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Me.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(oe()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Ht=E(Oe,{name:`MuiInput`,slot:`Input`,overridesResolver:Te})({}),Ut=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:s=!1,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=Bt(n),p={root:{ownerState:{disableUnderline:r}}},m=c?o(c,p):p;return(0,J.jsx)(Ae,{slots:{root:l.root??Vt,input:l.input??Ht},slotProps:m,fullWidth:i,inputComponent:a,multiline:s,ref:t,type:u,...d,classes:f})});Ut.muiName=`Input`;var Wt=e=>{let{classes:t,formControl:r,size:i,shrink:a,disableAnimation:o,variant:s,required:c}=e,l=v({root:[`root`,r&&`formControl`,!o&&`animated`,a&&`shrink`,i&&i!==`medium`&&`size${n(i)}`,s],asterisk:[c&&`asterisk`]},Rt,t);return{...t,...l}},Gt=E(Lt,{shouldForwardProp:e=>d(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Nt.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]]}})(D(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition: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:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Kt=G.forwardRef(function(e,t){let n=h({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=Q(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=Z({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),p={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},m=Wt(p);return(0,J.jsx)(Gt,{"data-shrink":u,ref:t,className:f(m.root,s),...c,ownerState:p,classes:m})}),qt=Ge;function Jt(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function Yt(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function Xt(e){return e==null||typeof e==`string`&&!e.trim()}function Zt(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var Qt=G.createContext(null);function $t(){return G.useContext(Qt)}var en=Qt.Provider,tn=G.createContext(void 0);function nn(){let e=G.useContext(tn);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function rn(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function an(e,t){if(t===void 0)return!0;let n=rn(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function on(e,t){return an(e,t)?ae(e):!1}function sn(e,t){Jt(e,t)}var cn=G.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=G.useRef(null),p=G.useRef(!1),[m,h]=G.useState(!1),g=$t(),v=G.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),y=H({activeItemId:void 0,getDefaultActiveItemId:G.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&ae(e))?.id??e.find(e=>ae(e))?.id??null:e.find(e=>ae(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:b,focusNext:x,getActiveItem:S,getContainerProps:w,getItemMap:T}=y,E=_((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=S();if(e?.element){let t=Array.from(T().values()).some(e=>e.selected);return h(u===`menu`&&t&&!e.selected&&g==null),sn(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});ie(()=>{if(!r&&!i){p.current=!1,h(!1);return}E()},[b,i,r,E]),G.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${qt(U(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=W(V(f.current));return e&&f.current.contains(e)?e:E(!0)}}),[E]);let D=w(),O=C(f,D.ref,t),k=G.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]);return(0,J.jsx)(se,{role:`menu`,ref:O,className:o,onKeyDown:_(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l){l(e);return}if(D.onKeyDown(e),e.key.length===1){let t=v.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=W(V(f.current)),a=i&&!t.repeating&&an(i,t);t.previousKeyMatched&&(a||x(e=>on(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)}),onFocus:D.onFocus,tabIndex:-1,...d,children:(0,J.jsx)(tn.Provider,{value:k,children:(0,J.jsx)(re.Provider,{value:y,children:a})})})});function ln(e){return t(`MuiPopover`,e)}k(`MuiPopover`,[`root`,`paper`]);function un(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function dn(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function fn(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function pn(e){return typeof e==`function`?e():e}var mn=e=>{let{classes:t}=e;return v({root:[`root`],paper:[`paper`]},ln,t)},hn=E(_t,{name:`MuiPopover`,slot:`Root`})({}),gn=E(fe,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),_n=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:p=8,marginThreshold:g=16,open:_,slots:v={},slotProps:y={},transformOrigin:b={vertical:`top`,horizontal:`left`},transitionDuration:x=`auto`,disableScrollLock:S=!1,...C}=n,T=G.useRef(),E={...n,anchorOrigin:a,anchorReference:s,elevation:p,marginThreshold:g,transformOrigin:b,transitionDuration:x},D=mn(E),O=G.useCallback(()=>{if(s===`anchorPosition`)return o;let e=pn(i),t=(e&&e.nodeType===1?e:V(T.current).body).getBoundingClientRect();return{top:t.top+un(t,a.vertical),left:t.left+dn(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),k=G.useCallback(e=>({vertical:un(e,b.vertical),horizontal:dn(e,b.horizontal)}),[b.horizontal,b.vertical]),A=G.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if(s===`none`)return{top:null,left:null,transformOrigin:fn(n)};let r=O(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=U(pn(i)),d=u.innerHeight-g,f=u.innerWidth-g;if(g!=null&&a<g){let e=a-g;a-=e,n.vertical+=e}else if(g!=null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(g!=null&&o<g){let e=o-g;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:fn(n)}},[i,s,O,k,g]),[j,M]=G.useState(_),N=G.useCallback(()=>{let e=T.current;if(!e)return;let t=A(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,M(!0)},[A]);G.useEffect(()=>(S&&window.addEventListener(`scroll`,N),()=>window.removeEventListener(`scroll`,N)),[i,S,N]);let P=()=>{N()},F=()=>{M(!1)};G.useEffect(()=>{_&&N()}),G.useImperativeHandle(r,()=>_?{updatePosition:()=>{N()}}:null,[_,N]),G.useEffect(()=>{if(!_)return;let e=ne(()=>{N()}),t=U(pn(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,_,N]);let I=x,L={slots:v,slotProps:y},[R,te]=m(`transition`,{elementType:ee,externalForwardedProps:L,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),P()},onExited:t=>{e.onExited?.(t),F()}}),additionalProps:{appear:!0,in:_}});x===`auto`&&!R.muiSupportAuto&&(I=void 0);let z=u||(i?V(pn(i)).body:void 0),[B,{slots:re,slotProps:ie,...H}]=m(`root`,{ref:t,elementType:hn,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:Y(typeof y.backdrop==`function`?y.backdrop(E):y.backdrop,{invisible:!0})},container:z,open:_},ownerState:E,className:f(D.root,l)}),[ae,W]=m(`paper`,{ref:T,className:D.paper,elementType:gn,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:j?void 0:{opacity:0}},ownerState:E});return(0,J.jsx)(B,{...H,...!w(B)&&{slots:re,slotProps:ie,disableAutoFocus:d,disableScrollLock:S},children:(0,J.jsx)(R,{...te,timeout:I,children:(0,J.jsx)(ae,{...W,children:c})})})});function vn(e){return t(`MuiMenu`,e)}k(`MuiMenu`,[`root`,`paper`,`list`]);var yn={vertical:`top`,horizontal:`right`},bn={vertical:`top`,horizontal:`left`},xn=e=>{let{classes:t}=e;return v({root:[`root`],paper:[`paper`],list:[`list`]},vn,t)},Sn=E(_n,{shouldForwardProp:e=>d(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),Cn=E(gn,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),wn=E(cn,{name:`MuiMenu`,slot:`List`})({outline:0}),Tn=G.forwardRef(function(e,t){let n=h({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:l,PopoverClasses:u,transitionDuration:d=`auto`,variant:f=`selectedMenu`,slots:p={},slotProps:g={},..._}=n,v=c(),y={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:d,variant:f},b=xn(y),S=r&&l,C=S&&!o,w=G.useRef(null),T=(e,t)=>{w.current&&(w.current.adjustStyleForScrollbar(e,{direction:v?`rtl`:`ltr`}),S&&w.current.focusInitialTarget?.())},E=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},D={slots:p,slotProps:g},O=x({elementType:p.root,externalSlotProps:g.root,ownerState:y,className:[b.root,a]}),[k,A]=m(`paper`,{className:b.paper,elementType:Cn,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:y}),[j,M]=m(`list`,{className:b.list,elementType:wn,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{E(t),e.onKeyDown?.(t)}}),ownerState:y}),N=typeof g.transition==`function`?g.transition(y):g.transition;return(0,J.jsx)(Sn,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:v?`right`:`left`},transformOrigin:v?yn:bn,slots:{root:p.root,paper:k,backdrop:p.backdrop,transition:p.transition},slotProps:{root:O,paper:A,backdrop:typeof g.backdrop==`function`?g.backdrop(y):g.backdrop,transition:{...N,onEntering:(...e)=>{T(...e),N?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:d,ownerState:y,..._,classes:u,children:(0,J.jsx)(j,{actions:w,autoFocus:S,autoFocusItem:C,variant:f,...M,children:i})})});function En(e){return t(`MuiNativeSelect`,e)}var Dn=k(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]),On=e=>{let{classes:t,variant:r,disabled:i,multiple:a,open:o,error:s}=e;return v({select:[`select`,r,i&&`disabled`,a&&`multiple`,s&&`error`],icon:[`icon`,`icon${n(r)}`,o&&`iconOpen`,i&&`disabled`]},En,t)},kn=E(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${Dn.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),An=E(kn,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:d,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Dn.multiple}`]:t.multiple}]}})({}),jn=E(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),Mn=E(jn,{name:`Mu