fansunited-widget-client-configuration 1.1.0-RC1 → 1.1.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.
@@ -63,11 +63,11 @@
63
63
  *
64
64
  * This source code is licensed under the MIT license found in the
65
65
  * LICENSE file in the root directory of this source tree.
66
- */var RS;function WU(){if(RS)return Ft;RS=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case r:switch(f=f.type,f){case t:case i:case n:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof,f){case o:case s:case d:case u:return f;case a:return f;default:return v}}case e:return v}}}return Ft.ContextConsumer=a,Ft.ContextProvider=o,Ft.Element=r,Ft.ForwardRef=s,Ft.Fragment=t,Ft.Lazy=d,Ft.Memo=u,Ft.Portal=e,Ft.Profiler=i,Ft.StrictMode=n,Ft.Suspense=l,Ft.SuspenseList=c,Ft.isContextConsumer=function(f){return m(f)===a},Ft.isContextProvider=function(f){return m(f)===o},Ft.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===r},Ft.isForwardRef=function(f){return m(f)===s},Ft.isFragment=function(f){return m(f)===t},Ft.isLazy=function(f){return m(f)===d},Ft.isMemo=function(f){return m(f)===u},Ft.isPortal=function(f){return m(f)===e},Ft.isProfiler=function(f){return m(f)===i},Ft.isStrictMode=function(f){return m(f)===n},Ft.isSuspense=function(f){return m(f)===l},Ft.isSuspenseList=function(f){return m(f)===c},Ft.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===t||f===i||f===n||f===l||f===c||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===u||f.$$typeof===o||f.$$typeof===a||f.$$typeof===s||f.$$typeof===h||f.getModuleId!==void 0)},Ft.typeOf=m,Ft}var DS;function qU(){return DS||(DS=1,Sv.exports=WU()),Sv.exports}var MS=qU();const GU=["ownerState"],KU=["variants"],YU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function JU(r){return Object.keys(r).length===0}function QU(r){return typeof r=="string"&&r.charCodeAt(0)>96}function Tv(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const XU=Ad(),ZU=r=>r&&r.charAt(0).toLowerCase()+r.slice(1);function Ed({defaultTheme:r,theme:e,themeId:t}){return JU(e)?r:e[t]||e}function e4(r){return r?(e,t)=>t[r]:null}function Od(r,e){let{ownerState:t}=e,n=$e(e,GU);const i=typeof r=="function"?r(F({ownerState:t},n)):r;if(Array.isArray(i))return i.flatMap(a=>Od(a,F({ownerState:t},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let s=$e(i,KU);return a.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(F({ownerState:t},n,t)):Object.keys(l.props).forEach(u=>{t?.[u]!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(F({ownerState:t},n,t)):l.style))}),s}return i}function LS(r={}){const{themeId:e,defaultTheme:t=XU,rootShouldForwardProp:n=Tv,slotShouldForwardProp:i=Tv}=r,a=o=>Ll(F({},o,{theme:Ed(F({},o,{defaultTheme:t,themeId:e}))}));return a.__mui_systemSx=!0,(o,s={})=>{qH(o,b=>b.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=e4(ZU(c))}=s,h=$e(s,YU),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,f=d||!1;let v,w=Tv;c==="Root"||c==="root"?w=n:c?w=i:QU(o)&&(w=void 0);const y=vS(o,F({shouldForwardProp:w,label:v},h)),g=b=>typeof b=="function"&&b.__emotion_real!==b||ya(b)?C=>Od(b,F({},C,{theme:Ed({theme:C.theme,defaultTheme:t,themeId:e})})):b,x=(b,...C)=>{let I=g(b);const S=C?C.map(g):[];l&&p&&S.push(k=>{const T=Ed(F({},k,{defaultTheme:t,themeId:e}));if(!T.components||!T.components[l]||!T.components[l].styleOverrides)return null;const E=T.components[l].styleOverrides,M={};return Object.entries(E).forEach(([O,L])=>{M[O]=Od(L,F({},k,{theme:T}))}),p(k,M)}),l&&!m&&S.push(k=>{var T;const E=Ed(F({},k,{defaultTheme:t,themeId:e})),M=E==null||(T=E.components)==null||(T=T[l])==null?void 0:T.variants;return Od({variants:M},F({},k,{theme:E}))}),f||S.push(a);const P=S.length-C.length;if(Array.isArray(b)&&P>0){const k=new Array(P).fill("");I=[...b,...k],I.raw=[...b.raw,...k]}const _=y(I,...S);return o.muiName&&(_.muiName=o.muiName),_};return y.withConfig&&(x.withConfig=y.withConfig),x}}const $S=LS();function NS(r,e){const t=F({},e);return Object.keys(r).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=F({},r[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=r[n]||{},a=e[n];t[n]={},!a||!Object.keys(a)?t[n]=i:!i||!Object.keys(i)?t[n]=a:(t[n]=F({},a),Object.keys(i).forEach(o=>{t[n][o]=NS(i[o],a[o])}))}else t[n]===void 0&&(t[n]=r[n])}),t}function t4(r){const{theme:e,name:t,props:n}=r;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:NS(e.components[t].defaultProps,n)}function kv({props:r,name:e,defaultTheme:t,themeId:n}){let i=_v(t);return n&&(i=i[n]||i),t4({theme:i,name:e,props:r})}const yi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Nl(r,e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(r,t))}function r4(r){r=r.slice(1);const e=new RegExp(`.{1,${r.length>=6?2:1}}`,"g");let t=r.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function FS(r){if(r.type)return r;if(r.charAt(0)==="#")return FS(r4(r));const e=r.indexOf("("),t=r.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(wd(9,r));let n=r.substring(e+1,r.length-1),i;if(t==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(wd(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:t,values:n,colorSpace:i}}const no=r=>{const e=FS(r);return e.values.slice(0,3).map((t,n)=>e.type.indexOf("hsl")!==-1&&n!==0?`${t}%`:t).join(" ")};function jS(...r){return r.reduce((e,t)=>t==null?e:function(...i){e.apply(this,i),t.apply(this,i)},()=>{})}function n4(r,e=166){let t;function n(...i){const a=()=>{r.apply(this,i)};clearTimeout(t),t=setTimeout(a,e)}return n.clear=()=>{clearTimeout(t)},n}function Wo(r,e){var t,n;return D.isValidElement(r)&&e.indexOf((t=r.type.muiName)!=null?t:(n=r.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Hr(r){return r&&r.ownerDocument||document}function Fl(r){return Hr(r).defaultView||window}function Rd(r,e){typeof r=="function"?r(e):r&&(r.current=e)}let BS=0;function i4(r){const[e,t]=D.useState(r),n=r||e;return D.useEffect(()=>{e==null&&(BS+=1,t(`mui-${BS}`))},[e]),n}const zS=D.useId;function Cn(r){if(zS!==void 0){const e=zS();return r??e}return i4(r)}function wa({controlled:r,default:e,name:t,state:n="value"}){const{current:i}=D.useRef(r!==void 0),[a,o]=D.useState(e),s=i?r:a,l=D.useCallback(c=>{i||o(c)},[]);return[s,l]}function cn(r){const e=D.useRef(r);return yi(()=>{e.current=r}),D.useRef((...t)=>(0,e.current)(...t)).current}function Tt(...r){return D.useMemo(()=>r.every(e=>e==null)?null:e=>{r.forEach(t=>{Rd(t,e)})},r)}const HS={};function a4(r,e){const t=D.useRef(HS);return t.current===HS&&(t.current=r(e)),t}const o4=[];function s4(r){D.useEffect(r,o4)}class jl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Bl(){const r=a4(jl.create).current;return s4(r.disposeEffect),r}let Dd=!0,Av=!1;const l4=new jl,c4={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u4(r){const{type:e,tagName:t}=r;return!!(t==="INPUT"&&c4[e]&&!r.readOnly||t==="TEXTAREA"&&!r.readOnly||r.isContentEditable)}function d4(r){r.metaKey||r.altKey||r.ctrlKey||(Dd=!0)}function Pv(){Dd=!1}function p4(){this.visibilityState==="hidden"&&Av&&(Dd=!0)}function h4(r){r.addEventListener("keydown",d4,!0),r.addEventListener("mousedown",Pv,!0),r.addEventListener("pointerdown",Pv,!0),r.addEventListener("touchstart",Pv,!0),r.addEventListener("visibilitychange",p4,!0)}function f4(r){const{target:e}=r;try{return e.matches(":focus-visible")}catch{}return Dd||u4(e)}function zl(){const r=D.useCallback(i=>{i!=null&&h4(i.ownerDocument)},[]),e=D.useRef(!1);function t(){return e.current?(Av=!0,l4.start(100,()=>{Av=!1}),e.current=!1,!0):!1}function n(i){return f4(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:r}}function m4(r){const e=r.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const g4=r=>{const e=D.useRef({});return D.useEffect(()=>{e.current=r}),e.current},US={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Je(r,e,t=void 0){const n={};return Object.keys(r).forEach(i=>{n[i]=r[i].reduce((a,o)=>{if(o){const s=e(o);s!==""&&a.push(s),t&&t[o]&&a.push(t[o])}return a},[]).join(" ")}),n}function VS(r){return typeof r=="string"}function WS(r,e,t){return r===void 0||VS(r)?e:F({},e,{ownerState:F({},e.ownerState,t)})}function Or(r,e=[]){if(r===void 0)return{};const t={};return Object.keys(r).filter(n=>n.match(/^on[A-Z]/)&&typeof r[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=r[n]}),t}function qS(r){if(r===void 0)return{};const e={};return Object.keys(r).filter(t=>!(t.match(/^on[A-Z]/)&&typeof r[t]=="function")).forEach(t=>{e[t]=r[t]}),e}function GS(r){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:i,className:a}=r;if(!e){const h=St(t?.className,a,i?.className,n?.className),m=F({},t?.style,i?.style,n?.style),f=F({},t,i,n);return h.length>0&&(f.className=h),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:void 0}}const o=Or(F({},i,n)),s=qS(n),l=qS(i),c=e(o),u=St(c?.className,t?.className,a,i?.className,n?.className),d=F({},c?.style,t?.style,i?.style,n?.style),p=F({},c,t,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function KS(r,e,t){return typeof r=="function"?r(e,t):r}const v4=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function y4(r){var e;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=r,o=$e(r,v4),s=a?{}:KS(n,i),{props:l,internalRef:c}=GS(F({},o,{externalSlotProps:s})),u=Tt(c,s?.ref,(e=r.additionalProps)==null?void 0:e.ref);return WS(t,F({},l,{ref:u}),i)}function Md(r){if(parseInt(D.version,10)>=19){var e;return(r==null||(e=r.props)==null?void 0:e.ref)||null}return r?.ref||null}function Ev(r=""){function e(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${r?`${r}-`:""}${i}${e(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${r?`${r}-`:""}${n}${e(...i)})`}const YS=(r,e,t,n=[])=>{let i=r;e.forEach((a,o)=>{o===e.length-1?Array.isArray(i)?i[Number(a)]=t:i&&typeof i=="object"&&(i[a]=t):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},b4=(r,e,t)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,l])=>{(!t||t&&!t([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...o,s]:o):e([...a,s],l,o))})}n(r)},w4=(r,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>r.includes(n))||r[r.length-1].toLowerCase().indexOf("opacity")>=0?e:`${e}px`:e;function Ov(r,e){const{prefix:t,shouldSkipGeneratingVar:n}=e||{},i={},a={},o={};return b4(r,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${t?`${t}-`:""}${s.join("-")}`;Object.assign(i,{[u]:w4(s,l)}),YS(a,s,`var(${u})`,c),YS(o,s,`var(${u}, ${l})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function Hl(r){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(r)}function x4(r,e){if(Hl(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(Hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function C4(r){var e=x4(r,"string");return Hl(e)=="symbol"?e:e+""}const I4=["colorSchemes","components","defaultColorScheme"];function _4(r,e){const{colorSchemes:t={},defaultColorScheme:n="light"}=r,i=$e(r,I4),{vars:a,css:o,varsWithDefaults:s}=Ov(i,e);let l=s;const c={},{[n]:u}=t,d=$e(t,[n].map(C4));if(Object.entries(d||{}).forEach(([h,m])=>{const{vars:f,css:v,varsWithDefaults:w}=Ov(m,e);l=ri(l,w),c[h]={css:v,vars:f}}),u){const{css:h,vars:m,varsWithDefaults:f}=Ov(u,e);l=ri(l,f),c[n]={css:h,vars:m}}return{vars:l,generateCssVars:h=>{var m;if(!h){var f;const w=F({},o);return{css:w,vars:a,selector:(e==null||(f=e.getSelector)==null?void 0:f.call(e,h,w))||":root"}}const v=F({},c[h].css);return{css:v,vars:c[h].vars,selector:(e==null||(m=e.getSelector)==null?void 0:m.call(e,h,v))||":root"}}}}const S4=(r,e)=>r.filter(t=>e.includes(t)),qo=(r,e,t)=>{const n=r.keys[0];Array.isArray(e)?e.forEach((i,a)=>{t((o,s)=>{a<=r.keys.length-1&&(a===0?Object.assign(o,s):o[r.up(r.keys[a])]=s)},i)}):e&&typeof e=="object"?(Object.keys(e).length>r.keys.length?r.keys:S4(r.keys,Object.keys(e))).forEach(a=>{if(r.keys.indexOf(a)!==-1){const o=e[a];o!==void 0&&t((s,l)=>{n===a?Object.assign(s,l):s[r.up(a)]=l},o)}}):(typeof e=="number"||typeof e=="string")&&t((i,a)=>{Object.assign(i,a)},e)};function Ni(r){return r?`Level${r}`:""}function Ul(r){return r.unstable_level>0&&r.container}function JS(r){return function(t){return`var(--Grid-${t}Spacing${Ni(r.unstable_level)})`}}function Rv(r){return function(t){return r.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${Ni(r.unstable_level-1)})`}}function Dv(r){return r.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Ni(r.unstable_level-1)})`}const T4=({theme:r,ownerState:e})=>{const t=JS(e),n={};return qo(r.breakpoints,e.gridSize,(i,a)=>{let o={};a===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Dv(e)}${Ul(e)?` + ${t("column")}`:""})`}),i(n,o)}),n},k4=({theme:r,ownerState:e})=>{const t={};return qo(r.breakpoints,e.gridOffset,(n,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Dv(e)})`}),n(t,a)}),t},A4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t=Ul(e)?{[`--Grid-columns${Ni(e.unstable_level)}`]:Dv(e)}:{"--Grid-columns":12};return qo(r.breakpoints,e.columns,(n,i)=>{n(t,{[`--Grid-columns${Ni(e.unstable_level)}`]:i})}),t},P4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t=Rv(e),n=Ul(e)?{[`--Grid-rowSpacing${Ni(e.unstable_level)}`]:t("row")}:{};return qo(r.breakpoints,e.rowSpacing,(i,a)=>{var o;i(n,{[`--Grid-rowSpacing${Ni(e.unstable_level)}`]:typeof a=="string"?a:(o=r.spacing)==null?void 0:o.call(r,a)})}),n},E4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t=Rv(e),n=Ul(e)?{[`--Grid-columnSpacing${Ni(e.unstable_level)}`]:t("column")}:{};return qo(r.breakpoints,e.columnSpacing,(i,a)=>{var o;i(n,{[`--Grid-columnSpacing${Ni(e.unstable_level)}`]:typeof a=="string"?a:(o=r.spacing)==null?void 0:o.call(r,a)})}),n},O4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t={};return qo(r.breakpoints,e.direction,(n,i)=>{n(t,{flexDirection:i})}),t},R4=({ownerState:r})=>{const e=JS(r),t=Rv(r);return F({minWidth:0,boxSizing:"border-box"},r.container&&F({display:"flex",flexWrap:"wrap"},r.wrap&&r.wrap!=="wrap"&&{flexWrap:r.wrap},{margin:`calc(${e("row")} / -2) calc(${e("column")} / -2)`},r.disableEqualOverflow&&{margin:`calc(${e("row")} * -1) 0px 0px calc(${e("column")} * -1)`}),(!r.container||Ul(r))&&F({padding:`calc(${t("row")} / 2) calc(${t("column")} / 2)`},(r.disableEqualOverflow||r.parentDisableEqualOverflow)&&{padding:`${t("row")} 0px 0px ${t("column")}`}))},D4=r=>{const e=[];return Object.entries(r).forEach(([t,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${t}-${String(n)}`)}),e},M4=(r,e="xs")=>{function t(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(t(r))return[`spacing-${e}-${String(r)}`];if(typeof r=="object"&&!Array.isArray(r)){const n=[];return Object.entries(r).forEach(([i,a])=>{t(a)&&n.push(`spacing-${i}-${String(a)}`)}),n}return[]},L4=r=>r===void 0?[]:typeof r=="object"?Object.entries(r).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(r)}`],$4=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],N4=Ad(),F4=$S("div",{name:"MuiGrid",slot:"Root",overridesResolver:(r,e)=>e.root});function j4(r){return kv({props:r,name:"MuiGrid",defaultTheme:N4})}function B4(r={}){const{createStyledComponent:e=F4,useThemeProps:t=j4,componentName:n="MuiGrid"}=r,i=D.createContext(void 0),a=(l,c)=>{const{container:u,direction:d,spacing:p,wrap:h,gridSize:m}=l,f={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...L4(d),...D4(m),...u?M4(p,c.breakpoints.keys[0]):[]]};return Je(f,v=>Pd(n,v),{})},o=e(A4,E4,P4,T4,O4,R4,k4),s=D.forwardRef(function(c,u){var d,p,h,m,f,v,w,y;const g=_v(),x=t(c),b=$l(x),C=D.useContext(i),{className:I,children:S,columns:P=12,container:_=!1,component:k="div",direction:T="row",wrap:E="wrap",spacing:M=0,rowSpacing:O=M,columnSpacing:L=M,disableEqualOverflow:N,unstable_level:W=0}=b,V=$e(b,$4);let U=N;W&&N!==void 0&&(U=c.disableEqualOverflow);const R={},$={},j={};Object.entries(V).forEach(([se,ce])=>{g.breakpoints.values[se]!==void 0?R[se]=ce:g.breakpoints.values[se.replace("Offset","")]!==void 0?$[se.replace("Offset","")]=ce:j[se]=ce});const B=(d=c.columns)!=null?d:W?void 0:P,J=(p=c.spacing)!=null?p:W?void 0:M,G=(h=(m=c.rowSpacing)!=null?m:c.spacing)!=null?h:W?void 0:O,K=(f=(v=c.columnSpacing)!=null?v:c.spacing)!=null?f:W?void 0:L,q=F({},b,{level:W,columns:B,container:_,direction:T,wrap:E,spacing:J,rowSpacing:G,columnSpacing:K,gridSize:R,gridOffset:$,disableEqualOverflow:(w=(y=U)!=null?y:C)!=null?w:!1,parentDisableEqualOverflow:C}),X=a(q,g);let ee=Y.jsx(o,F({ref:u,as:k,ownerState:q,className:St(X.root,I)},j,{children:D.Children.map(S,se=>{if(D.isValidElement(se)&&Wo(se,["Grid"])){var ce,Ae;return D.cloneElement(se,{unstable_level:(ce=(Ae=se.props)==null?void 0:Ae.unstable_level)!=null?ce:W+1})}return se})}));return U!==void 0&&U!==(C??!1)&&(ee=Y.jsx(i.Provider,{value:U,children:ee})),ee});return s.muiName="Grid",s}const z4=["component","direction","spacing","divider","children","className","useFlexGap"],H4=Ad(),U4=$S("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,e)=>e.root});function V4(r){return kv({props:r,name:"MuiStack",defaultTheme:H4})}function W4(r,e){const t=D.Children.toArray(r).filter(Boolean);return t.reduce((n,i,a)=>(n.push(i),a<t.length-1&&n.push(D.cloneElement(e,{key:`separator-${a}`})),n),[])}const q4=r=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r],G4=({ownerState:r,theme:e})=>{let t=F({display:"flex",flexDirection:"column"},ni({theme:e},bv({values:r.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(r.spacing){const n=Cv(e),i=Object.keys(e.breakpoints.values).reduce((l,c)=>((typeof r.spacing=="object"&&r.spacing[c]!=null||typeof r.direction=="object"&&r.direction[c]!=null)&&(l[c]=!0),l),{}),a=bv({values:r.direction,base:i}),o=bv({values:r.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),t=ri(t,ni({theme:e},o,(l,c)=>r.useFlexGap?{gap:ro(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${q4(c?a[c]:r.direction)}`]:ro(n,l)}}))}return t=JH(e.breakpoints,t),t};function K4(r={}){const{createStyledComponent:e=U4,useThemeProps:t=V4,componentName:n="MuiStack"}=r,i=()=>Je({root:["root"]},l=>Pd(n,l),{}),a=e(G4);return D.forwardRef(function(l,c){const u=t(l),d=$l(u),{component:p="div",direction:h="column",spacing:m=0,divider:f,children:v,className:w,useFlexGap:y=!1}=d,g=$e(d,z4),x={direction:h,spacing:m,useFlexGap:y},b=i();return Y.jsx(a,F({as:p,ownerState:x,ref:c,className:St(b.root,w)},g,{children:f?W4(v,f):v}))})}const Y4=F({},kd,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function J4(r){var e;return!!r[0].match(/^(typography|variants|breakpoints)$/)||!!r[0].match(/sxConfig$/)||r[0]==="palette"&&!!((e=r[1])!=null&&e.match(/^(mode)$/))||r[0]==="focus"&&r[1]!=="thickness"}const tt=(r,e)=>Pd(r,e,"Mui"),Xe=(r,e)=>OS(r,e,"Mui"),Q4=r=>r&&typeof r=="object"&&Object.keys(r).some(e=>{var t;return(t=e.match)==null?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),QS=(r,e,t)=>{e.includes("Color")&&(r.color=t),e.includes("Bg")&&(r.backgroundColor=t),e.includes("Border")&&(r.borderColor=t)},XS=(r,e,t)=>{const n={};return Object.entries(e||{}).forEach(([i,a])=>{if(i.match(new RegExp(`${r}(color|bg|border)`,"i"))&&a){const o=t?t(i):a;i.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default",n["--Icon-color"]="currentColor"),i.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),i.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),QS(n,i,o)}}),n},Gr=(r,e)=>{let t={};if(e){const{getCssVar:n,palette:i}=e;Object.entries(i).forEach(a=>{const[o,s]=a;Q4(s)&&typeof s=="object"&&(t=F({},t,{[o]:XS(r,s,l=>`var(--variant-${l}, ${n(`palette-${o}-${l}`,i[o][l])})`)}))})}return t.context=XS(r,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),t},X4=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Z4=["colorSchemes"],e3=(r="joy")=>Ev(r);function t3(r){var e,t,n,i,a,o,s,l,c,u;const d={},{cssVarPrefix:p="joy",breakpoints:h,spacing:m,components:f,variants:v,shouldSkipGeneratingVar:w=J4}=d,y=$e(d,X4),g=e3(p),x={primary:Rl.blue,neutral:Rl.grey,danger:Rl.red,success:Rl.green,warning:Rl.yellow,common:{white:"#FFF",black:"#000"}},b=q=>{var X;const ee=q.split("-"),se=ee[1],ce=ee[2];return g(q,(X=x[se])==null?void 0:X[ce])},C=q=>({plainColor:b(`palette-${q}-500`),plainHoverBg:b(`palette-${q}-100`),plainActiveBg:b(`palette-${q}-200`),plainDisabledColor:b("palette-neutral-400"),outlinedColor:b(`palette-${q}-500`),outlinedBorder:b(`palette-${q}-300`),outlinedHoverBg:b(`palette-${q}-100`),outlinedActiveBg:b(`palette-${q}-200`),outlinedDisabledColor:b("palette-neutral-400"),outlinedDisabledBorder:b("palette-neutral-200"),softColor:b(`palette-${q}-700`),softBg:b(`palette-${q}-100`),softHoverBg:b(`palette-${q}-200`),softActiveColor:b(`palette-${q}-800`),softActiveBg:b(`palette-${q}-300`),softDisabledColor:b("palette-neutral-400"),softDisabledBg:b("palette-neutral-50"),solidColor:b("palette-common-white"),solidBg:b(`palette-${q}-500`),solidHoverBg:b(`palette-${q}-600`),solidActiveBg:b(`palette-${q}-700`),solidDisabledColor:b("palette-neutral-400"),solidDisabledBg:b("palette-neutral-100")}),I=q=>({plainColor:b(`palette-${q}-300`),plainHoverBg:b(`palette-${q}-800`),plainActiveBg:b(`palette-${q}-700`),plainDisabledColor:b("palette-neutral-500"),outlinedColor:b(`palette-${q}-200`),outlinedBorder:b(`palette-${q}-700`),outlinedHoverBg:b(`palette-${q}-800`),outlinedActiveBg:b(`palette-${q}-700`),outlinedDisabledColor:b("palette-neutral-500"),outlinedDisabledBorder:b("palette-neutral-800"),softColor:b(`palette-${q}-200`),softBg:b(`palette-${q}-800`),softHoverBg:b(`palette-${q}-700`),softActiveColor:b(`palette-${q}-100`),softActiveBg:b(`palette-${q}-600`),softDisabledColor:b("palette-neutral-500"),softDisabledBg:b("palette-neutral-800"),solidColor:b("palette-common-white"),solidBg:b(`palette-${q}-500`),solidHoverBg:b(`palette-${q}-600`),solidActiveBg:b(`palette-${q}-700`),solidDisabledColor:b("palette-neutral-500"),solidDisabledBg:b("palette-neutral-800")}),S={palette:{mode:"light",primary:F({},x.primary,C("primary")),neutral:F({},x.neutral,C("neutral"),{plainColor:b("palette-neutral-700"),plainHoverColor:b("palette-neutral-900"),outlinedColor:b("palette-neutral-700")}),danger:F({},x.danger,C("danger")),success:F({},x.success,C("success")),warning:F({},x.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:b("palette-neutral-800"),secondary:b("palette-neutral-700"),tertiary:b("palette-neutral-600"),icon:b("palette-neutral-500")},background:{body:b("palette-common-white"),surface:b("palette-neutral-50"),popup:b("palette-common-white"),level1:b("palette-neutral-100"),level2:b("palette-neutral-200"),level3:b("palette-neutral-300"),tooltip:b("palette-neutral-500"),backdrop:`rgba(${g("palette-neutral-darkChannel",no(x.neutral[900]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",no(x.neutral[500]))} / 0.2)`,focusVisible:b("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},P={palette:{mode:"dark",primary:F({},x.primary,I("primary")),neutral:F({},x.neutral,I("neutral"),{plainColor:b("palette-neutral-300"),plainHoverColor:b("palette-neutral-300")}),danger:F({},x.danger,I("danger")),success:F({},x.success,I("success")),warning:F({},x.warning,I("warning")),common:{white:"#FFF",black:"#000"},text:{primary:b("palette-neutral-100"),secondary:b("palette-neutral-300"),tertiary:b("palette-neutral-400"),icon:b("palette-neutral-400")},background:{body:b("palette-common-black"),surface:b("palette-neutral-900"),popup:b("palette-common-black"),level1:b("palette-neutral-800"),level2:b("palette-neutral-700"),level3:b("palette-neutral-600"),tooltip:b("palette-neutral-600"),backdrop:`rgba(${g("palette-neutral-darkChannel",no(x.neutral[50]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",no(x.neutral[500]))} / 0.16)`,focusVisible:b("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},_='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',k=F({body:`"Inter", ${g(`fontFamily-fallback, ${_}`)}`,display:`"Inter", ${g(`fontFamily-fallback, ${_}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:_},y.fontFamily),T=F({sm:300,md:500,lg:600,xl:700},y.fontWeight),E=F({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},y.fontSize),M=F({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},y.lineHeight),O=(e=(t=y.colorSchemes)==null||(t=t.light)==null?void 0:t.shadowRing)!=null?e:S.shadowRing,L=(n=(i=y.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowChannel)!=null?n:S.shadowChannel,N=(a=(o=y.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowOpacity)!=null?a:S.shadowOpacity,W={colorSchemes:{light:S,dark:P},fontSize:E,fontFamily:k,fontWeight:T,focus:{thickness:"2px",selector:`&.${tt("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${g("focus-thickness",(s=(l=y.focus)==null?void 0:l.thickness)!=null?s:"2px")})`,outline:`${g("focus-thickness",(c=(u=y.focus)==null?void 0:u.thickness)!=null?c:"2px")} solid ${g("palette-focusVisible",x.primary[500])}`}},lineHeight:M,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${g("shadowRing",O)}, 0px 1px 2px 0px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,sm:`${g("shadowRing",O)}, 0px 1px 2px 0px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 2px 4px 0px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,md:`${g("shadowRing",O)}, 0px 2px 8px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 6px 12px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,lg:`${g("shadowRing",O)}, 0px 2px 8px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 12px 16px -4px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,xl:`${g("shadowRing",O)}, 0px 2px 8px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 20px 24px -4px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-xl, ${T.xl}`),fontSize:g(`fontSize-xl4, ${E.xl4}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},h2:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-xl, ${T.xl}`),fontSize:g(`fontSize-xl3, ${E.xl3}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},h3:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-lg, ${T.lg}`),fontSize:g(`fontSize-xl2, ${E.xl2}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},h4:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-lg, ${T.lg}`),fontSize:g(`fontSize-xl, ${E.xl}`),lineHeight:g(`lineHeight-md, ${M.md}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},"title-lg":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-lg, ${T.lg}`),fontSize:g(`fontSize-lg, ${E.lg}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),color:g(`palette-text-primary, ${S.palette.text.primary}`)},"title-md":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-md, ${T.md}`),fontSize:g(`fontSize-md, ${E.md}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-primary, ${S.palette.text.primary}`)},"title-sm":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-md, ${T.md}`),fontSize:g(`fontSize-sm, ${E.sm}`),lineHeight:g(`lineHeight-sm, ${M.sm}`),color:g(`palette-text-primary, ${S.palette.text.primary}`)},"body-lg":{fontFamily:g(`fontFamily-body, ${k.body}`),fontSize:g(`fontSize-lg, ${E.lg}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-secondary, ${S.palette.text.secondary}`)},"body-md":{fontFamily:g(`fontFamily-body, ${k.body}`),fontSize:g(`fontSize-md, ${E.md}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-secondary, ${S.palette.text.secondary}`)},"body-sm":{fontFamily:g(`fontFamily-body, ${k.body}`),fontSize:g(`fontSize-sm, ${E.sm}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-tertiary, ${S.palette.text.tertiary}`)},"body-xs":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-md, ${T.md}`),fontSize:g(`fontSize-xs, ${E.xs}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-tertiary, ${S.palette.text.tertiary}`)}}},V=y?ri(W,y):W,{colorSchemes:U}=V,R=$e(V,Z4),$=F({colorSchemes:U},R,{breakpoints:bS(h??{}),components:ri({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:q,theme:X})=>{var ee;const se=q.instanceFontSize;return F({margin:"var(--Icon-margin)"},q.fontSize&&q.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${X.vars.fontSize[q.fontSize]})`},!q.htmlColor&&F({color:`var(--Icon-color, ${$.vars.palette.text.icon})`},q.color&&q.color!=="inherit"&&X.vars.palette[q.color]&&{color:`rgba(${(ee=X.vars.palette[q.color])==null?void 0:ee.mainChannel} / 1)`}),se&&se!=="inherit"&&{"--Icon-fontSize":X.vars.fontSize[se]})}}}},f),cssVarPrefix:p,getCssVar:g,spacing:SS(m)});function j(q,X){Object.keys(X).forEach(ee=>{const se={main:"500",light:"200",dark:"700"};q==="dark"&&(se.main=400),!X[ee].mainChannel&&X[ee][se.main]&&(X[ee].mainChannel=no(X[ee][se.main])),!X[ee].lightChannel&&X[ee][se.light]&&(X[ee].lightChannel=no(X[ee][se.light])),!X[ee].darkChannel&&X[ee][se.dark]&&(X[ee].darkChannel=no(X[ee][se.dark]))})}Object.entries($.colorSchemes).forEach(([q,X])=>{j(q,X.palette)});const B={prefix:p,shouldSkipGeneratingVar:w},{vars:J,generateCssVars:G}=_4(F({colorSchemes:U},R),B);$.vars=J,$.generateCssVars=G,$.unstable_sxConfig=F({},Y4,void 0),$.unstable_sx=function(X){return Ll({sx:X,theme:this})},$.getColorSchemeSelector=q=>q==="light"?"&":`&[data-joy-color-scheme="${q}"], [data-joy-color-scheme="${q}"] &`;const K={getCssVar:g,palette:$.colorSchemes.light.palette};return $.variants=ri({plain:Gr("plain",K),plainHover:Gr("plainHover",K),plainActive:Gr("plainActive",K),plainDisabled:Gr("plainDisabled",K),outlined:Gr("outlined",K),outlinedHover:Gr("outlinedHover",K),outlinedActive:Gr("outlinedActive",K),outlinedDisabled:Gr("outlinedDisabled",K),soft:Gr("soft",K),softHover:Gr("softHover",K),softActive:Gr("softActive",K),softDisabled:Gr("softDisabled",K),solid:Gr("solid",K),solidHover:Gr("solidHover",K),solidActive:Gr("solidActive",K),solidDisabled:Gr("solidDisabled",K)},v),$.palette=F({},$.colorSchemes.light.palette,{colorScheme:"light"}),$.shouldSkipGeneratingVar=w,$.applyStyles=TS,$}const Mv=t3(),he=LS({defaultTheme:Mv,themeId:vv});function Ze({props:r,name:e}){return kv({props:r,name:e,defaultTheme:F({},Mv,{components:{}}),themeId:vv})}function Lv(r,e,t=(n,i)=>n===i){return r.length===e.length&&r.every((n,i)=>t(n,e[i]))}const r3={disableDefaultClasses:!1},n3=D.createContext(r3);function i3(r){const{disableDefaultClasses:e}=D.useContext(n3);return t=>e?"":r(t)}function a3(r){const{rootElementName:e=""}=r,[t,n]=D.useState(e.toUpperCase()),i=D.useCallback(a=>{var o;n((o=a?.tagName)!=null?o:"")},[]);return[t,i]}const ZS="base";function o3(r){return`${ZS}--${r}`}function s3(r,e){return`${ZS}-${r}-${e}`}function l3(r,e){const t=ES[e];return t?o3(t):s3(r,e)}function xa(r={}){const{disabled:e=!1,focusableWhenDisabled:t,href:n,rootRef:i,tabIndex:a,to:o,type:s,rootElementName:l}=r,c=D.useRef(null),[u,d]=D.useState(!1),{isFocusVisibleRef:p,onFocus:h,onBlur:m,ref:f}=zl(),[v,w]=D.useState(!1);e&&!t&&v&&w(!1),D.useEffect(()=>{p.current=v},[v,p]);const[y,g]=a3({rootElementName:l??(n||o?"a":void 0)}),x=O=>L=>{var N;v&&L.preventDefault(),(N=O.onMouseLeave)==null||N.call(O,L)},b=O=>L=>{var N;m(L),p.current===!1&&w(!1),(N=O.onBlur)==null||N.call(O,L)},C=O=>L=>{var N;if(c.current||(c.current=L.currentTarget),h(L),p.current===!0){var W;w(!0),(W=O.onFocusVisible)==null||W.call(O,L)}(N=O.onFocus)==null||N.call(O,L)},I=()=>{const O=c.current;return y==="BUTTON"||y==="INPUT"&&["button","submit","reset"].includes(O?.type)||y==="A"&&O?.href},S=O=>L=>{if(!e){var N;(N=O.onClick)==null||N.call(O,L)}},P=O=>L=>{var N;e||(d(!0),document.addEventListener("mouseup",()=>{d(!1)},{once:!0})),(N=O.onMouseDown)==null||N.call(O,L)},_=O=>L=>{var N;if((N=O.onKeyDown)==null||N.call(O,L),!L.defaultMuiPrevented&&(L.target===L.currentTarget&&!I()&&L.key===" "&&L.preventDefault(),L.target===L.currentTarget&&L.key===" "&&!e&&d(!0),L.target===L.currentTarget&&!I()&&L.key==="Enter"&&!e)){var W;(W=O.onClick)==null||W.call(O,L),L.preventDefault()}},k=O=>L=>{var N;if(L.target===L.currentTarget&&d(!1),(N=O.onKeyUp)==null||N.call(O,L),L.target===L.currentTarget&&!I()&&!e&&L.key===" "&&!L.defaultMuiPrevented){var W;(W=O.onClick)==null||W.call(O,L)}},T=Tt(g,i,f,c),E={};return a!==void 0&&(E.tabIndex=a),y==="BUTTON"?(E.type=s??"button",t?E["aria-disabled"]=e:E.disabled=e):y==="INPUT"?s&&["button","submit","reset"].includes(s)&&(t?E["aria-disabled"]=e:E.disabled=e):y!==""&&(!n&&!o&&(E.role="button",E.tabIndex=a??0),e&&(E["aria-disabled"]=e,E.tabIndex=t?a??0:-1)),{getRootProps:(O={})=>{const L=F({},Or(r),Or(O)),N=F({type:s},L,E,O,{onBlur:b(L),onClick:S(L),onFocus:C(L),onKeyDown:_(L),onKeyUp:k(L),onMouseDown:P(L),onMouseLeave:x(L),ref:T});return delete N.onFocusVisible,N},focusVisible:v,setFocusVisible:w,active:u,rootRef:T}}function e1(r){return r.substring(2).toLowerCase()}function c3(r,e){return e.documentElement.clientWidth<r.clientX||e.documentElement.clientHeight<r.clientY}function u3(r){const{children:e,disableReactTree:t=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=r,o=D.useRef(!1),s=D.useRef(null),l=D.useRef(!1),c=D.useRef(!1);D.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Tt(Md(e),s),d=cn(m=>{const f=c.current;c.current=!1;const v=Hr(s.current);if(!l.current||!s.current||"clientX"in m&&c3(m,v))return;if(o.current){o.current=!1;return}let w;m.composedPath?w=m.composedPath().indexOf(s.current)>-1:w=!v.documentElement.contains(m.target)||s.current.contains(m.target),!w&&(t||!f)&&i(m)}),p=m=>f=>{c.current=!0;const v=e.props[m];v&&v(f)},h={ref:u};return a!==!1&&(h[a]=p(a)),D.useEffect(()=>{if(a!==!1){const m=e1(a),f=Hr(s.current),v=()=>{o.current=!0};return f.addEventListener(m,d),f.addEventListener("touchmove",v),()=>{f.removeEventListener(m,d),f.removeEventListener("touchmove",v)}}},[d,a]),n!==!1&&(h[n]=p(n)),D.useEffect(()=>{if(n!==!1){const m=e1(n),f=Hr(s.current);return f.addEventListener(m,d),()=>{f.removeEventListener(m,d)}}},[d,n]),Y.jsx(D.Fragment,{children:D.cloneElement(e,h)})}function d3(r,e){return r===e}const $v={},t1=()=>{};function Nv(r,e){const t=F({},r);return Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t}function p3(r){const{nextState:e,initialState:t,stateComparers:n,onStateChange:i,controlledProps:a,lastActionRef:o}=r,s=D.useRef(t);D.useEffect(()=>{if(o.current===null)return;const l=Nv(s.current,a);Object.keys(e).forEach(c=>{var u;const d=(u=n[c])!=null?u:d3,p=e[c],h=l[c];if(h==null&&p!=null||h!=null&&p==null||h!=null&&p!=null&&!d(p,h)){var m,f;i?.((m=o.current.event)!=null?m:null,c,p,(f=o.current.type)!=null?f:"",e)}}),s.current=e,o.current=null},[s,e,o,i,n,a])}function h3(r){const e=D.useRef(null),{reducer:t,initialState:n,controlledProps:i=$v,stateComparers:a=$v,onStateChange:o=t1,actionContext:s}=r;D.useRef(i);const l=D.useCallback((p,h)=>{e.current=h;const m=Nv(p,i);return t(m,h)},[i,t]),[c,u]=D.useReducer(l,n),d=D.useCallback(p=>{u(F({},p,{context:s}))},[s]);return p3({nextState:c,initialState:n,stateComparers:a??$v,onStateChange:o??t1,controlledProps:i,lastActionRef:e}),[Nv(c,i),d]}const f3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function m3(r){const e=parseInt(r.getAttribute("tabindex")||"",10);return Number.isNaN(e)?r.contentEditable==="true"||(r.nodeName==="AUDIO"||r.nodeName==="VIDEO"||r.nodeName==="DETAILS")&&r.getAttribute("tabindex")===null?0:r.tabIndex:e}function g3(r){if(r.tagName!=="INPUT"||r.type!=="radio"||!r.name)return!1;const e=n=>r.ownerDocument.querySelector(`input[type="radio"]${n}`);let t=e(`[name="${r.name}"]:checked`);return t||(t=e(`[name="${r.name}"]`)),t!==r}function v3(r){return!(r.disabled||r.tagName==="INPUT"&&r.type==="hidden"||g3(r))}function y3(r){const e=[],t=[];return Array.from(r.querySelectorAll(f3)).forEach((n,i)=>{const a=m3(n);a===-1||!v3(n)||(a===0?e.push(n):t.push({documentOrder:i,tabIndex:a,node:n}))}),t.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(e)}function b3(){return!0}function w3(r){const{children:e,disableAutoFocus:t=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=y3,isEnabled:o=b3,open:s}=r,l=D.useRef(!1),c=D.useRef(null),u=D.useRef(null),d=D.useRef(null),p=D.useRef(null),h=D.useRef(!1),m=D.useRef(null),f=Tt(Md(e),m),v=D.useRef(null);D.useEffect(()=>{!s||!m.current||(h.current=!t)},[t,s]),D.useEffect(()=>{if(!s||!m.current)return;const g=Hr(m.current);return m.current.contains(g.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),D.useEffect(()=>{if(!s||!m.current)return;const g=Hr(m.current),x=I=>{v.current=I,!(n||!o()||I.key!=="Tab")&&g.activeElement===m.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},b=()=>{const I=m.current;if(I===null)return;if(!g.hasFocus()||!o()||l.current){l.current=!1;return}if(I.contains(g.activeElement)||n&&g.activeElement!==c.current&&g.activeElement!==u.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let S=[];if((g.activeElement===c.current||g.activeElement===u.current)&&(S=a(m.current)),S.length>0){var P,_;const k=!!((P=v.current)!=null&&P.shiftKey&&((_=v.current)==null?void 0:_.key)==="Tab"),T=S[0],E=S[S.length-1];typeof T!="string"&&typeof E!="string"&&(k?E.focus():T.focus())}else I.focus()};g.addEventListener("focusin",b),g.addEventListener("keydown",x,!0);const C=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(C),g.removeEventListener("focusin",b),g.removeEventListener("keydown",x,!0)}},[t,n,i,o,s,a]);const w=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0,p.current=g.target;const x=e.props.onFocus;x&&x(g)},y=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0};return Y.jsxs(D.Fragment,{children:[Y.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),D.cloneElement(e,{ref:f,onFocus:w}),Y.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const x3=D.createContext(void 0);function C3(){return D.useContext(x3)}function I3(r={}){const{defaultValue:e,disabled:t=!1,error:n=!1,onBlur:i,onChange:a,onFocus:o,required:s=!1,value:l,inputRef:c}=r,u=C3();let d,p,h,m,f;if(u){var v,w,y;d=void 0,p=(v=u.disabled)!=null?v:!1,h=(w=u.error)!=null?w:!1,m=(y=u.required)!=null?y:!1,f=u.value}else d=e,p=t,h=n,m=s,f=l;const{current:g}=D.useRef(f!=null),x=D.useCallback(O=>{},[]),b=D.useRef(null),C=Tt(b,c,x),[I,S]=D.useState(!1);D.useEffect(()=>{!u&&p&&I&&(S(!1),i?.())},[u,p,I,i]);const P=O=>L=>{var N;if(u!=null&&u.disabled){L.stopPropagation();return}if((N=O.onFocus)==null||N.call(O,L),u&&u.onFocus){var W;u==null||(W=u.onFocus)==null||W.call(u)}else S(!0)},_=O=>L=>{var N;(N=O.onBlur)==null||N.call(O,L),u&&u.onBlur?u.onBlur():S(!1)},k=O=>(L,...N)=>{var W,V;if(!g&&(L.target||b.current)==null)throw new Error(wd(17));u==null||(W=u.onChange)==null||W.call(u,L),(V=O.onChange)==null||V.call(O,L,...N)},T=O=>L=>{var N;b.current&&L.currentTarget===L.target&&b.current.focus(),(N=O.onClick)==null||N.call(O,L)};return{disabled:p,error:h,focused:I,formControlContext:u,getInputProps:(O={})=>{const N=F({},{onBlur:i,onChange:a,onFocus:o},Or(O)),W=F({},N,{onBlur:_(N),onChange:k(N),onFocus:P(N)});return F({},W,{"aria-invalid":h||void 0,defaultValue:d,value:f,required:m,disabled:p},O,{ref:C},W)},getRootProps:(O={})=>{const L=Or(r,["onBlur","onChange","onFocus"]),N=F({},L,Or(O));return F({},O,N,{onClick:T(N)})},inputRef:C,required:m,value:f}}const Kt={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function _3(r,e,t,n,i,a){if(t.length===0||!n&&t.every((s,l)=>i(s,l)))return-1;let o=r;for(;;){if(!a&&e==="next"&&o===t.length||!a&&e==="previous"&&o===-1)return-1;if(n?!1:i(t[o],o))o+=e==="next"?1:-1,a&&(o=(o+t.length)%t.length);else return o}}function Mr(r,e,t){var n;const{items:i,isItemDisabled:a,disableListWrap:o,disabledItemsFocusable:s,itemComparer:l,focusManagement:c}=t,u=c==="DOM"?0:-1,d=i.length-1,p=r==null?-1:i.findIndex(w=>l(w,r));let h,m,f=!o;switch(e){case"reset":if(u===-1)return null;h=0,m="next",f=!1;break;case"start":h=0,m="next",f=!1;break;case"end":h=d,m="previous",f=!1;break;default:{const w=p+e;w<0?!f&&p!==-1||Math.abs(e)>1?(h=0,m="next"):(h=d,m="previous"):w>d?!f||Math.abs(e)>1?(h=d,m="previous"):(h=0,m="next"):(h=w,m=e>=0?"next":"previous")}}const v=_3(h,m,i,s,a,f);return v===-1&&r!==null&&!a(r,p)?r:(n=i[v])!=null?n:null}function S3(r,e,t,n){return t==="none"?[]:t==="single"?n(e[0],r)?e:[r]:e.some(i=>n(i,r))?e.filter(i=>!n(i,r)):[...e,r]}function Fv(r,e,t){const{itemComparer:n,isItemDisabled:i,selectionMode:a,items:o}=t,{selectedValues:s}=e,l=o.findIndex(u=>n(r,u));if(i(r,l))return e;const c=S3(r,s,a,n);return F({},e,{selectedValues:c,highlightedValue:r})}function T3(r,e,t){const n=e.highlightedValue,{orientation:i,pageSize:a}=t;switch(r){case"Home":return F({},e,{highlightedValue:Mr(n,"start",t)});case"End":return F({},e,{highlightedValue:Mr(n,"end",t)});case"PageUp":return F({},e,{highlightedValue:Mr(n,-a,t)});case"PageDown":return F({},e,{highlightedValue:Mr(n,a,t)});case"ArrowUp":if(i!=="vertical")break;return F({},e,{highlightedValue:Mr(n,-1,t)});case"ArrowDown":if(i!=="vertical")break;return F({},e,{highlightedValue:Mr(n,1,t)});case"ArrowLeft":{if(i==="vertical")break;return F({},e,{highlightedValue:Mr(n,i==="horizontal-ltr"?-1:1,t)})}case"ArrowRight":{if(i==="vertical")break;return F({},e,{highlightedValue:Mr(n,i==="horizontal-ltr"?1:-1,t)})}case"Enter":case" ":return e.highlightedValue===null?e:Fv(e.highlightedValue,e,t)}return e}function k3(r,e){return e.focusManagement==="DOM"?r:F({},r,{highlightedValue:null})}function A3(r,e,t){var n;const i=(n=t(r))==null?void 0:n.trim().toLowerCase();return!i||i.length===0?!1:i.indexOf(e)===0}function P3(r,e,t){const{items:n,isItemDisabled:i,disabledItemsFocusable:a,getItemAsString:o}=t,s=e.length>1;let l=s?r.highlightedValue:Mr(r.highlightedValue,1,t);for(let c=0;c<n.length;c+=1){if(!l||!s&&r.highlightedValue===l)return r;if(A3(l,e,o)&&(!i(l,n.indexOf(l))||a))return F({},r,{highlightedValue:l});l=Mr(l,1,t)}return r}function E3(r,e,t,n){var i;const{itemComparer:a,focusManagement:o}=n;let s=null;if(t.highlightedValue!=null){var l;s=(l=r.find(d=>a(d,t.highlightedValue)))!=null?l:null}else o==="DOM"&&e.length===0&&(s=Mr(null,"reset",n));const u=((i=t.selectedValues)!=null?i:[]).filter(d=>r.some(p=>a(p,d)));return F({},t,{highlightedValue:s,selectedValues:u})}function O3(r,e){return F({},r,{highlightedValue:Mr(null,"reset",e)})}function R3(r,e){return F({},r,{highlightedValue:Mr(null,"end",e)})}function D3(r,e){return F({},r,{selectedValues:[],highlightedValue:Mr(null,"reset",e)})}function jv(r,e){const{type:t,context:n}=e;switch(t){case Kt.keyDown:return T3(e.key,r,n);case Kt.itemClick:return Fv(e.item,r,n);case Kt.blur:return k3(r,n);case Kt.textNavigation:return P3(r,e.searchString,n);case Kt.itemsChange:return E3(e.items,e.previousItems,r,n);case Kt.resetHighlight:return O3(r,n);case Kt.highlightLast:return R3(r,n);case Kt.clearSelection:return D3(r,n);default:return r}}const M3=500;function L3(r){const e=D.useRef({searchString:"",lastTime:null});return D.useCallback(t=>{if(t.key.length===1&&t.key!==" "){const n=e.current,i=t.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>M3?n.searchString=i:(n.searchString.length!==1||i!==n.searchString)&&(n.searchString+=i),n.lastTime=a,r(n.searchString,t)}},[r])}const r1={},$3=()=>{},N3=(r,e)=>r===e,F3=()=>!1,j3=r=>typeof r=="string"?r:String(r),B3=()=>({highlightedValue:null,selectedValues:[]});function n1(r){const{controlledProps:e=r1,disabledItemsFocusable:t=!1,disableListWrap:n=!1,focusManagement:i="activeDescendant",getInitialState:a=B3,getItemDomElement:o,getItemId:s,isItemDisabled:l=F3,rootRef:c,onStateChange:u=$3,items:d,itemComparer:p=N3,getItemAsString:h=j3,onChange:m,onHighlightChange:f,onItemsChange:v,orientation:w="vertical",pageSize:y=5,reducerActionContext:g=r1,selectionMode:x="single",stateReducer:b,componentName:C="useList"}=r,I=D.useRef(null),S=Tt(c,I),P=D.useCallback((K,q,X)=>{if(f?.(K,q,X),i==="DOM"&&q!=null&&(X===Kt.itemClick||X===Kt.keyDown||X===Kt.textNavigation)){var ee;o==null||(ee=o(q))==null||ee.focus()}},[o,f,i]),_=D.useMemo(()=>({highlightedValue:p,selectedValues:(K,q)=>Lv(K,q,p)}),[p]),k=D.useCallback((K,q,X,ee,se)=>{switch(u?.(K,q,X,ee,se),q){case"highlightedValue":P(K,X,ee);break;case"selectedValues":m?.(K,X,ee);break}},[P,m,u]),T=D.useMemo(()=>({disabledItemsFocusable:t,disableListWrap:n,focusManagement:i,isItemDisabled:l,itemComparer:p,items:d,getItemAsString:h,onHighlightChange:P,orientation:w,pageSize:y,selectionMode:x,stateComparers:_}),[t,n,i,l,p,d,h,P,w,y,x,_]),E=a(),M=b??jv,O=D.useMemo(()=>F({},g,T),[g,T]),[L,N]=h3({reducer:M,actionContext:O,initialState:E,controlledProps:e,stateComparers:_,onStateChange:k}),{highlightedValue:W,selectedValues:V}=L,U=L3((K,q)=>N({type:Kt.textNavigation,event:q,searchString:K})),R=D.useRef([]);D.useEffect(()=>{Lv(R.current,d,p)||(N({type:Kt.itemsChange,event:null,items:d,previousItems:R.current}),R.current=d,v?.(d))},[d,p,N,v]);const $=K=>q=>{var X;if((X=K.onKeyDown)==null||X.call(K,q),q.defaultMuiPrevented)return;const ee=["Home","End","PageUp","PageDown"];w==="vertical"?ee.push("ArrowUp","ArrowDown"):ee.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&ee.push(" ","Enter"),ee.includes(q.key)&&q.preventDefault(),N({type:Kt.keyDown,key:q.key,event:q}),U(q)},j=K=>q=>{var X,ee;(X=K.onBlur)==null||X.call(K,q),!q.defaultMuiPrevented&&((ee=I.current)!=null&&ee.contains(q.relatedTarget)||N({type:Kt.blur,event:q}))},B=(K={})=>{const q=Or(K);return F({},K,{"aria-activedescendant":i==="activeDescendant"&&W!=null?s(W):void 0,tabIndex:i==="DOM"?-1:0,ref:S},q,{onBlur:j(q),onKeyDown:$(q)})},J=D.useCallback(K=>{const q=(V??[]).some(se=>se!=null&&p(K,se)),X=W!=null&&p(K,W);return{focusable:i==="DOM",highlighted:X,selected:q}},[p,V,W,i]),G=D.useMemo(()=>({dispatch:N,getItemState:J}),[N,J]);return D.useDebugValue({state:L}),{contextValue:G,dispatch:N,getRootProps:B,rootRef:S,state:L}}const Vl=D.createContext(null);function i1(r){const{handlePointerOverEvents:e=!1,item:t}=r,n=D.useContext(Vl);if(!n)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:a}=n,{highlighted:o,selected:s,focusable:l}=a(t),c=D.useCallback(h=>m=>{var f;(f=h.onClick)==null||f.call(h,m),!m.defaultPrevented&&i({type:Kt.itemClick,item:t,event:m})},[i,t]),u=D.useCallback(h=>m=>{var f;(f=h.onMouseOver)==null||f.call(h,m),!m.defaultPrevented&&i({type:Kt.itemHover,item:t,event:m})},[i,t]);let d;return l&&(d=o?0:-1),{getRootProps:(h={})=>{const m=Or(h);return F({},h,{onClick:c(m),onPointerOver:e?u(m):void 0,tabIndex:d})},highlighted:o,selected:s}}const Ld=D.createContext(null);function z3(r){const e=Array.from(r.keys()).map(t=>{const n=r.get(t);return{key:t,subitem:n}});return e.sort((t,n)=>{const i=t.subitem.ref.current,a=n.subitem.ref.current;return i===null||a===null||i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(e.map(t=>[t.key,t.subitem]))}function Bv(){const[r,e]=D.useState(new Map),t=D.useRef(new Set),n=D.useCallback(function(c){t.current.delete(c),e(u=>{const d=new Map(u);return d.delete(c),d})},[]),i=D.useCallback(function(c,u){let d;return typeof c=="function"?d=c(t.current):d=c,t.current.add(d),e(p=>{const h=new Map(p);return h.set(d,u),h}),{id:d,deregister:()=>n(d)}},[n]),a=D.useMemo(()=>z3(r),[r]),o=D.useCallback(function(c){return Array.from(a.keys()).indexOf(c)},[a]);return{contextValue:D.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:r.size}),[o,i,r.size]),subitems:a}}function zv(r,e){const t=D.useContext(Ld);if(t===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:n}=t,[i,a]=D.useState(typeof r=="function"?void 0:r);return yi(()=>{const{id:o,deregister:s}=n(r,e);return a(o),s},[n,e,r]),{id:i,index:i!==void 0?t.getItemIndex(i):-1,totalItemCount:t.totalSubitemCount}}function Wl(r,e){return function(n={}){const i=F({},n,r(n));return F({},i,e(i))}}function H3(r){return typeof r=="function"?r():r}const a1=D.forwardRef(function(e,t){const{children:n,container:i,disablePortal:a=!1}=e,[o,s]=D.useState(null),l=Tt(D.isValidElement(n)?Md(n):null,t);if(yi(()=>{a||s(H3(i)||document.body)},[i,a]),yi(()=>{if(o&&!a)return Rd(t,o),()=>{Rd(t,null)}},[t,o,a]),a){if(D.isValidElement(n)){const c={ref:l};return D.cloneElement(n,c)}return Y.jsx(D.Fragment,{children:n})}return Y.jsx(D.Fragment,{children:o&&WL.createPortal(n,o)})});function U3(r){const e=Hr(r);return e.body===r?Fl(r).innerWidth>e.documentElement.clientWidth:r.scrollHeight>r.clientHeight}function ql(r,e){e?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden")}function o1(r){return parseInt(Fl(r).getComputedStyle(r).paddingRight,10)||0}function V3(r){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(r.tagName)!==-1,n=r.tagName==="INPUT"&&r.getAttribute("type")==="hidden";return t||n}function s1(r,e,t,n,i){const a=[e,t,...n];[].forEach.call(r.children,o=>{const s=a.indexOf(o)===-1,l=!V3(o);s&&l&&ql(o,i)})}function Hv(r,e){let t=-1;return r.some((n,i)=>e(n)?(t=i,!0):!1),t}function W3(r,e){const t=[],n=r.container;if(!e.disableScrollLock){if(U3(n)){const o=m4(Hr(n));t.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${o1(n)+o}px`;const s=Hr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{t.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${o1(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Hr(n).body;else{const o=n.parentElement,s=Fl(n);a=o?.nodeName==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}t.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{t.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function q3(r){const e=[];return[].forEach.call(r.children,t=>{t.getAttribute("aria-hidden")==="true"&&e.push(t)}),e}class G3{constructor(){this.containers=void 0,this.modals=void 0,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&&ql(e.modalRef,!1);const i=q3(t);s1(t,e.mount,e.modalRef,i,!0);const a=Hv(this.containers,o=>o.container===t);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=Hv(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[n];i.restore||(i.restore=W3(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const i=Hv(this.containers,o=>o.modals.indexOf(e)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&ql(e.modalRef,t),s1(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&ql(o.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function K3(r){return typeof r=="function"?r():r}function Y3(r){return r?r.props.hasOwnProperty("in"):!1}const J3=new G3;function Q3(r){const{container:e,disableEscapeKeyDown:t=!1,disableScrollLock:n=!1,manager:i=J3,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=r,p=D.useRef({}),h=D.useRef(null),m=D.useRef(null),f=Tt(m,d),[v,w]=D.useState(!u),y=Y3(l);let g=!0;(r["aria-hidden"]==="false"||r["aria-hidden"]===!1)&&(g=!1);const x=()=>Hr(h.current),b=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),C=()=>{i.mount(b(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},I=cn(()=>{const L=K3(e)||x().body;i.add(b(),L),m.current&&C()}),S=D.useCallback(()=>i.isTopModal(b()),[i]),P=cn(L=>{h.current=L,L&&(u&&S()?C():m.current&&ql(m.current,g))}),_=D.useCallback(()=>{i.remove(b(),g)},[g,i]);D.useEffect(()=>()=>{_()},[_]),D.useEffect(()=>{u?I():(!y||!a)&&_()},[u,_,y,a,I]);const k=L=>N=>{var W;(W=L.onKeyDown)==null||W.call(L,N),!(N.key!=="Escape"||N.which===229||!S())&&(t||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},T=L=>N=>{var W;(W=L.onClick)==null||W.call(L,N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(L={})=>{const N=Or(r);delete N.onTransitionEnter,delete N.onTransitionExited;const W=F({},N,L);return F({role:"presentation"},W,{onKeyDown:k(W),ref:f})},getBackdropProps:(L={})=>{const N=L;return F({"aria-hidden":!0},N,{onClick:T(N),open:u})},getTransitionProps:()=>{const L=()=>{w(!1),o&&o()},N=()=>{w(!0),s&&s(),a&&_()};return{onEnter:jS(L,l?.props.onEnter),onExited:jS(N,l?.props.onExited)}},rootRef:f,portalRef:P,isTopModal:S,exited:v,hasTransition:y}}function X3(r){const{value:e,label:t,disabled:n,rootRef:i,id:a}=r,{getRootProps:o,highlighted:s,selected:l}=i1({item:e}),{getRootProps:c,rootRef:u}=xa({disabled:n,focusableWhenDisabled:!0}),d=Cn(a),p=D.useRef(null),h=D.useMemo(()=>({disabled:n,label:t,value:e,ref:p,id:d}),[n,t,e,d]),{index:m}=zv(e,h),f=Tt(i,p,u),v=y=>g=>{var x;(x=y.onKeyDown)==null||x.call(y,g),!g.defaultMuiPrevented&&[" ","Enter"].includes(g.key)&&(g.defaultMuiPrevented=!0)},w=(y={})=>({onKeyDown:v(y)});return{getRootProps:(y={})=>{const g=Or(y),x=Wl(o,Wl(c,w));return F({},y,g,x(g),{id:d,ref:f,role:"option","aria-selected":l})},highlighted:s,index:m,selected:l,rootRef:f}}function Z3(r){const e=D.useContext(Vl);if(!e)throw new Error("Option: ListContext was not found.");const{getItemState:t,dispatch:n}=e,{highlighted:i,selected:a,focusable:o}=t(r),s=D.useCallback(c=>{if(c!==r)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:a,focusable:o}},[i,a,o,r]);return{contextValue:D.useMemo(()=>({dispatch:n,getItemState:s}),[n,s])}}var un="top",$n="bottom",Nn="right",dn="left",Uv="auto",Gl=[un,$n,Nn,dn],Go="start",Kl="end",eV="clippingParents",l1="viewport",Yl="popper",tV="reference",c1=Gl.reduce(function(r,e){return r.concat([e+"-"+Go,e+"-"+Kl])},[]),u1=[].concat(Gl,[Uv]).reduce(function(r,e){return r.concat([e,e+"-"+Go,e+"-"+Kl])},[]),rV="beforeRead",nV="read",iV="afterRead",aV="beforeMain",oV="main",sV="afterMain",lV="beforeWrite",cV="write",uV="afterWrite",dV=[rV,nV,iV,aV,oV,sV,lV,cV,uV];function bi(r){return r?(r.nodeName||"").toLowerCase():null}function In(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function io(r){var e=In(r).Element;return r instanceof e||r instanceof Element}function Fn(r){var e=In(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function Vv(r){if(typeof ShadowRoot>"u")return!1;var e=In(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function pV(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},a=e.elements[t];!Fn(a)||!bi(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function hV(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),s=o.reduce(function(l,c){return l[c]="",l},{});!Fn(i)||!bi(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const fV={name:"applyStyles",enabled:!0,phase:"write",fn:pV,effect:hV,requires:["computeStyles"]};function wi(r){return r.split("-")[0]}var ao=Math.max,$d=Math.min,Ko=Math.round;function Wv(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function d1(){return!/^((?!chrome|android).)*safari/i.test(Wv())}function Yo(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=r.getBoundingClientRect(),i=1,a=1;e&&Fn(r)&&(i=r.offsetWidth>0&&Ko(n.width)/r.offsetWidth||1,a=r.offsetHeight>0&&Ko(n.height)/r.offsetHeight||1);var o=io(r)?In(r):window,s=o.visualViewport,l=!d1()&&t,c=(n.left+(l&&s?s.offsetLeft:0))/i,u=(n.top+(l&&s?s.offsetTop:0))/a,d=n.width/i,p=n.height/a;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function qv(r){var e=Yo(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function p1(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&Vv(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Fi(r){return In(r).getComputedStyle(r)}function mV(r){return["table","td","th"].indexOf(bi(r))>=0}function Ca(r){return((io(r)?r.ownerDocument:r.document)||window.document).documentElement}function Nd(r){return bi(r)==="html"?r:r.assignedSlot||r.parentNode||(Vv(r)?r.host:null)||Ca(r)}function h1(r){return!Fn(r)||Fi(r).position==="fixed"?null:r.offsetParent}function gV(r){var e=/firefox/i.test(Wv()),t=/Trident/i.test(Wv());if(t&&Fn(r)){var n=Fi(r);if(n.position==="fixed")return null}var i=Nd(r);for(Vv(i)&&(i=i.host);Fn(i)&&["html","body"].indexOf(bi(i))<0;){var a=Fi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Jl(r){for(var e=In(r),t=h1(r);t&&mV(t)&&Fi(t).position==="static";)t=h1(t);return t&&(bi(t)==="html"||bi(t)==="body"&&Fi(t).position==="static")?e:t||gV(r)||e}function Gv(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ql(r,e,t){return ao(r,$d(e,t))}function vV(r,e,t){var n=Ql(r,e,t);return n>t?t:n}function f1(){return{top:0,right:0,bottom:0,left:0}}function m1(r){return Object.assign({},f1(),r)}function g1(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var yV=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,m1(typeof e!="number"?e:g1(e,Gl))};function bV(r){var e,t=r.state,n=r.name,i=r.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=wi(t.placement),l=Gv(s),c=[dn,Nn].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=yV(i.padding,t),p=qv(a),h=l==="y"?un:dn,m=l==="y"?$n:Nn,f=t.rects.reference[u]+t.rects.reference[l]-o[l]-t.rects.popper[u],v=o[l]-t.rects.reference[l],w=Jl(a),y=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,g=f/2-v/2,x=d[h],b=y-p[u]-d[m],C=y/2-p[u]/2+g,I=Ql(x,C,b),S=l;t.modifiersData[n]=(e={},e[S]=I,e.centerOffset=I-C,e)}}function wV(r){var e=r.state,t=r.options,n=t.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||p1(e.elements.popper,i)&&(e.elements.arrow=i))}const xV={name:"arrow",enabled:!0,phase:"main",fn:bV,effect:wV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jo(r){return r.split("-")[1]}var CV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IV(r,e){var t=r.x,n=r.y,i=e.devicePixelRatio||1;return{x:Ko(t*i)/i||0,y:Ko(n*i)/i||0}}function v1(r){var e,t=r.popper,n=r.popperRect,i=r.placement,a=r.variation,o=r.offsets,s=r.position,l=r.gpuAcceleration,c=r.adaptive,u=r.roundOffsets,d=r.isFixed,p=o.x,h=p===void 0?0:p,m=o.y,f=m===void 0?0:m,v=typeof u=="function"?u({x:h,y:f}):{x:h,y:f};h=v.x,f=v.y;var w=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),g=dn,x=un,b=window;if(c){var C=Jl(t),I="clientHeight",S="clientWidth";if(C===In(t)&&(C=Ca(t),Fi(C).position!=="static"&&s==="absolute"&&(I="scrollHeight",S="scrollWidth")),C=C,i===un||(i===dn||i===Nn)&&a===Kl){x=$n;var P=d&&C===b&&b.visualViewport?b.visualViewport.height:C[I];f-=P-n.height,f*=l?1:-1}if(i===dn||(i===un||i===$n)&&a===Kl){g=Nn;var _=d&&C===b&&b.visualViewport?b.visualViewport.width:C[S];h-=_-n.width,h*=l?1:-1}}var k=Object.assign({position:s},c&&CV),T=u===!0?IV({x:h,y:f},In(t)):{x:h,y:f};if(h=T.x,f=T.y,l){var E;return Object.assign({},k,(E={},E[x]=y?"0":"",E[g]=w?"0":"",E.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",E))}return Object.assign({},k,(e={},e[x]=y?f+"px":"",e[g]=w?h+"px":"",e.transform="",e))}function _V(r){var e=r.state,t=r.options,n=t.gpuAcceleration,i=n===void 0?!0:n,a=t.adaptive,o=a===void 0?!0:a,s=t.roundOffsets,l=s===void 0?!0:s,c={placement:wi(e.placement),variation:Jo(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,v1(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,v1(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const SV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_V,data:{}};var Fd={passive:!0};function TV(r){var e=r.state,t=r.instance,n=r.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=In(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",t.update,Fd)}),s&&l.addEventListener("resize",t.update,Fd),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",t.update,Fd)}),s&&l.removeEventListener("resize",t.update,Fd)}}const kV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:TV,data:{}};var AV={left:"right",right:"left",bottom:"top",top:"bottom"};function jd(r){return r.replace(/left|right|bottom|top/g,function(e){return AV[e]})}var PV={start:"end",end:"start"};function y1(r){return r.replace(/start|end/g,function(e){return PV[e]})}function Kv(r){var e=In(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function Yv(r){return Yo(Ca(r)).left+Kv(r).scrollLeft}function EV(r,e){var t=In(r),n=Ca(r),i=t.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=d1();(c||!c&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Yv(r),y:l}}function OV(r){var e,t=Ca(r),n=Kv(r),i=(e=r.ownerDocument)==null?void 0:e.body,a=ao(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ao(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Yv(r),l=-n.scrollTop;return Fi(i||t).direction==="rtl"&&(s+=ao(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Jv(r){var e=Fi(r),t=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+n)}function b1(r){return["html","body","#document"].indexOf(bi(r))>=0?r.ownerDocument.body:Fn(r)&&Jv(r)?r:b1(Nd(r))}function Xl(r,e){var t;e===void 0&&(e=[]);var n=b1(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),a=In(n),o=i?[a].concat(a.visualViewport||[],Jv(n)?n:[]):n,s=e.concat(o);return i?s:s.concat(Xl(Nd(o)))}function Qv(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function RV(r,e){var t=Yo(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function w1(r,e,t){return e===l1?Qv(EV(r,t)):io(e)?RV(e,t):Qv(OV(Ca(r)))}function DV(r){var e=Xl(Nd(r)),t=["absolute","fixed"].indexOf(Fi(r).position)>=0,n=t&&Fn(r)?Jl(r):r;return io(n)?e.filter(function(i){return io(i)&&p1(i,n)&&bi(i)!=="body"}):[]}function MV(r,e,t,n){var i=e==="clippingParents"?DV(r):[].concat(e),a=[].concat(i,[t]),o=a[0],s=a.reduce(function(l,c){var u=w1(r,c,n);return l.top=ao(u.top,l.top),l.right=$d(u.right,l.right),l.bottom=$d(u.bottom,l.bottom),l.left=ao(u.left,l.left),l},w1(r,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function x1(r){var e=r.reference,t=r.element,n=r.placement,i=n?wi(n):null,a=n?Jo(n):null,o=e.x+e.width/2-t.width/2,s=e.y+e.height/2-t.height/2,l;switch(i){case un:l={x:o,y:e.y-t.height};break;case $n:l={x:o,y:e.y+e.height};break;case Nn:l={x:e.x+e.width,y:s};break;case dn:l={x:e.x-t.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?Gv(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Go:l[c]=l[c]-(e[u]/2-t[u]/2);break;case Kl:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function Zl(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=n===void 0?r.placement:n,a=t.strategy,o=a===void 0?r.strategy:a,s=t.boundary,l=s===void 0?eV:s,c=t.rootBoundary,u=c===void 0?l1:c,d=t.elementContext,p=d===void 0?Yl:d,h=t.altBoundary,m=h===void 0?!1:h,f=t.padding,v=f===void 0?0:f,w=m1(typeof v!="number"?v:g1(v,Gl)),y=p===Yl?tV:Yl,g=r.rects.popper,x=r.elements[m?y:p],b=MV(io(x)?x:x.contextElement||Ca(r.elements.popper),l,u,o),C=Yo(r.elements.reference),I=x1({reference:C,element:g,placement:i}),S=Qv(Object.assign({},g,I)),P=p===Yl?S:C,_={top:b.top-P.top+w.top,bottom:P.bottom-b.bottom+w.bottom,left:b.left-P.left+w.left,right:P.right-b.right+w.right},k=r.modifiersData.offset;if(p===Yl&&k){var T=k[i];Object.keys(_).forEach(function(E){var M=[Nn,$n].indexOf(E)>=0?1:-1,O=[un,$n].indexOf(E)>=0?"y":"x";_[E]+=T[O]*M})}return _}function LV(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=t.boundary,a=t.rootBoundary,o=t.padding,s=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?u1:l,u=Jo(n),d=u?s?c1:c1.filter(function(m){return Jo(m)===u}):Gl,p=d.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,f){return m[f]=Zl(r,{placement:f,boundary:i,rootBoundary:a,padding:o})[wi(f)],m},{});return Object.keys(h).sort(function(m,f){return h[m]-h[f]})}function $V(r){if(wi(r)===Uv)return[];var e=jd(r);return[y1(r),e,y1(e)]}function NV(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var i=t.mainAxis,a=i===void 0?!0:i,o=t.altAxis,s=o===void 0?!0:o,l=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,m=h===void 0?!0:h,f=t.allowedAutoPlacements,v=e.options.placement,w=wi(v),y=w===v,g=l||(y||!m?[jd(v)]:$V(v)),x=[v].concat(g).reduce(function(B,J){return B.concat(wi(J)===Uv?LV(e,{placement:J,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}):J)},[]),b=e.rects.reference,C=e.rects.popper,I=new Map,S=!0,P=x[0],_=0;_<x.length;_++){var k=x[_],T=wi(k),E=Jo(k)===Go,M=[un,$n].indexOf(T)>=0,O=M?"width":"height",L=Zl(e,{placement:k,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),N=M?E?Nn:dn:E?$n:un;b[O]>C[O]&&(N=jd(N));var W=jd(N),V=[];if(a&&V.push(L[T]<=0),s&&V.push(L[N]<=0,L[W]<=0),V.every(function(B){return B})){P=k,S=!1;break}I.set(k,V)}if(S)for(var U=m?3:1,R=function(J){var G=x.find(function(K){var q=I.get(K);if(q)return q.slice(0,J).every(function(X){return X})});if(G)return P=G,"break"},$=U;$>0;$--){var j=R($);if(j==="break")break}e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const FV={name:"flip",enabled:!0,phase:"main",fn:NV,requiresIfExists:["offset"],data:{_skip:!1}};function C1(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function I1(r){return[un,Nn,$n,dn].some(function(e){return r[e]>=0})}function jV(r){var e=r.state,t=r.name,n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Zl(e,{elementContext:"reference"}),s=Zl(e,{altBoundary:!0}),l=C1(o,n),c=C1(s,i,a),u=I1(l),d=I1(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const BV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jV};function zV(r,e,t){var n=wi(r),i=[dn,un].indexOf(n)>=0?-1:1,a=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[dn,Nn].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function HV(r){var e=r.state,t=r.options,n=r.name,i=t.offset,a=i===void 0?[0,0]:i,o=u1.reduce(function(u,d){return u[d]=zV(d,e.rects,a),u},{}),s=o[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}const UV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HV};function VV(r){var e=r.state,t=r.name;e.modifiersData[t]=x1({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WV={name:"popperOffsets",enabled:!0,phase:"read",fn:VV,data:{}};function qV(r){return r==="x"?"y":"x"}function GV(r){var e=r.state,t=r.options,n=r.name,i=t.mainAxis,a=i===void 0?!0:i,o=t.altAxis,s=o===void 0?!1:o,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,p=t.tether,h=p===void 0?!0:p,m=t.tetherOffset,f=m===void 0?0:m,v=Zl(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=wi(e.placement),y=Jo(e.placement),g=!y,x=Gv(w),b=qV(x),C=e.modifiersData.popperOffsets,I=e.rects.reference,S=e.rects.popper,P=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,_=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(C){if(a){var E,M=x==="y"?un:dn,O=x==="y"?$n:Nn,L=x==="y"?"height":"width",N=C[x],W=N+v[M],V=N-v[O],U=h?-S[L]/2:0,R=y===Go?I[L]:S[L],$=y===Go?-S[L]:-I[L],j=e.elements.arrow,B=h&&j?qv(j):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:f1(),G=J[M],K=J[O],q=Ql(0,I[L],B[L]),X=g?I[L]/2-U-q-G-_.mainAxis:R-q-G-_.mainAxis,ee=g?-I[L]/2+U+q+K+_.mainAxis:$+q+K+_.mainAxis,se=e.elements.arrow&&Jl(e.elements.arrow),ce=se?x==="y"?se.clientTop||0:se.clientLeft||0:0,Ae=(E=k?.[x])!=null?E:0,Le=N+X-Ae-ce,Ee=N+ee-Ae,Oe=Ql(h?$d(W,Le):W,N,h?ao(V,Ee):V);C[x]=Oe,T[x]=Oe-N}if(s){var ve,ne=x==="x"?un:dn,ae=x==="x"?$n:Nn,pe=C[b],xe=b==="y"?"height":"width",ue=pe+v[ne],Pe=pe-v[ae],je=[un,dn].indexOf(w)!==-1,Be=(ve=k?.[b])!=null?ve:0,st=je?ue:pe-I[xe]-S[xe]-Be+_.altAxis,Qe=je?pe+I[xe]+S[xe]-Be-_.altAxis:Pe,de=h&&je?vV(st,pe,Qe):Ql(h?st:ue,pe,h?Qe:Pe);C[b]=de,T[b]=de-pe}e.modifiersData[n]=T}}const KV={name:"preventOverflow",enabled:!0,phase:"main",fn:GV,requiresIfExists:["offset"]};function YV(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function JV(r){return r===In(r)||!Fn(r)?Kv(r):YV(r)}function QV(r){var e=r.getBoundingClientRect(),t=Ko(e.width)/r.offsetWidth||1,n=Ko(e.height)/r.offsetHeight||1;return t!==1||n!==1}function XV(r,e,t){t===void 0&&(t=!1);var n=Fn(e),i=Fn(e)&&QV(e),a=Ca(e),o=Yo(r,i,t),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!t)&&((bi(e)!=="body"||Jv(a))&&(s=JV(e)),Fn(e)?(l=Yo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Yv(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function ZV(r){var e=new Map,t=new Set,n=[];r.forEach(function(a){e.set(a.name,a)});function i(a){t.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!t.has(s)){var l=e.get(s);l&&i(l)}}),n.push(a)}return r.forEach(function(a){t.has(a.name)||i(a)}),n}function eW(r){var e=ZV(r);return dV.reduce(function(t,n){return t.concat(e.filter(function(i){return i.phase===n}))},[])}function tW(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function rW(r){var e=r.reduce(function(t,n){var i=t[n.name];return t[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var _1={placement:"bottom",modifiers:[],strategy:"absolute"};function S1(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function nW(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,i=e.defaultOptions,a=i===void 0?_1:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_1,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(w){var y=typeof w=="function"?w(u.options):w;f(),u.options=Object.assign({},a,u.options,y),u.scrollParents={reference:io(s)?Xl(s):s.contextElement?Xl(s.contextElement):[],popper:Xl(l)};var g=eW(rW([].concat(n,u.options.modifiers)));return u.orderedModifiers=g.filter(function(x){return x.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var w=u.elements,y=w.reference,g=w.popper;if(S1(y,g)){u.rects={reference:XV(y,Jl(g),u.options.strategy==="fixed"),popper:qv(g)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(_){return u.modifiersData[_.name]=Object.assign({},_.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var b=u.orderedModifiers[x],C=b.fn,I=b.options,S=I===void 0?{}:I,P=b.name;typeof C=="function"&&(u=C({state:u,options:S,name:P,instance:h})||u)}}}},update:tW(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){f(),p=!0}};if(!S1(s,l))return h;h.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var w=v.name,y=v.options,g=y===void 0?{}:y,x=v.effect;if(typeof x=="function"){var b=x({state:u,name:w,instance:h,options:g}),C=function(){};d.push(b||C)}})}function f(){d.forEach(function(v){return v()}),d=[]}return h}}var iW=[kV,WV,SV,fV,UV,FV,KV,xV,BV],aW=nW({defaultModifiers:iW});const oW="Popper";function sW(r){return l3(oW,r)}const lW=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],cW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function uW(r,e){if(e==="ltr")return r;switch(r){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 r}}function Xv(r){return typeof r=="function"?r():r}function dW(r){return r.nodeType!==void 0}const pW=()=>Je({root:["root"]},i3(sW)),hW={},fW=D.forwardRef(function(e,t){var n;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:f}=e,v=$e(e,lW),w=D.useRef(null),y=Tt(w,t),g=D.useRef(null),x=Tt(g,p),b=D.useRef(x);yi(()=>{b.current=x},[x]),D.useImperativeHandle(p,()=>g.current,[]);const C=uW(u,o),[I,S]=D.useState(C),[P,_]=D.useState(Xv(i));D.useEffect(()=>{g.current&&g.current.forceUpdate()}),D.useEffect(()=>{i&&_(Xv(i))},[i]),yi(()=>{if(!P||!c)return;const O=W=>{S(W.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{O(W)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const N=aW(P,w.current,F({placement:C},d,{modifiers:L}));return b.current(N),()=>{N.destroy(),b.current(null)}},[P,s,l,c,d,C]);const k={placement:I};f!==null&&(k.TransitionProps=f);const T=pW(),E=(n=m.root)!=null?n:"div",M=y4({elementType:E,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:T.root});return Y.jsx(E,F({},M,{children:typeof a=="function"?a(k):a}))}),Zv=D.forwardRef(function(e,t){const{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=hW,popperRef:h,style:m,transition:f=!1,slotProps:v={},slots:w={}}=e,y=$e(e,cW),[g,x]=D.useState(!0),b=()=>{x(!1)},C=()=>{x(!0)};if(!l&&!u&&(!f||g))return null;let I;if(a)I=a;else if(n){const _=Xv(n);I=_&&dW(_)?Hr(_).body:Hr(null).body}const S=!u&&l&&(!f||g)?"none":void 0,P=f?{in:u,onEnter:b,onExited:C}:void 0;return Y.jsx(a1,{disablePortal:s,container:I,children:Y.jsx(fW,F({anchorEl:n,direction:o,disablePortal:s,modifiers:c,ref:t,open:f?!g:u,placement:d,popperOptions:p,popperRef:h,slotProps:v,slots:w},y,{style:F({position:"fixed",top:0,left:0,display:S},m),TransitionProps:P,children:i}))})}),Bd={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},mW=r=>{const{label:e,value:t}=r;return typeof e=="string"?e:typeof t=="string"?t:String(r)};function gW(r,e){const{open:t}=r,{context:{selectionMode:n}}=e;if(e.type===Bd.buttonClick){var i;const l=(i=r.selectedValues[0])!=null?i:Mr(null,"start",e.context);return F({},r,{open:!t,highlightedValue:t?null:l})}if(e.type===Bd.browserAutoFill)return Fv(e.item,r,e.context);const a=jv(r,e);switch(e.type){case Kt.keyDown:if(r.open){if(e.event.key==="Escape")return F({},a,{open:!1})}else{if(e.event.key==="ArrowDown"){var o;return F({},r,{open:!0,highlightedValue:(o=r.selectedValues[0])!=null?o:Mr(null,"start",e.context)})}if(e.event.key==="ArrowUp"){var s;return F({},r,{open:!0,highlightedValue:(s=r.selectedValues[0])!=null?s:Mr(null,"end",e.context)})}}break;case Kt.itemClick:if(n==="single")return F({},a,{open:!1});break;case Kt.blur:return F({},a,{open:!1});default:return a}return a}function vW(r){return Array.isArray(r)?r.length===0?"":JSON.stringify(r.map(e=>e.value)):r?.value==null?"":typeof r.value=="string"||typeof r.value=="number"?r.value:JSON.stringify(r.value)}function yW(r){const{areOptionsEqual:e,buttonRef:t,defaultOpen:n=!1,defaultValue:i,disabled:a=!1,listboxId:o,listboxRef:s,multiple:l=!1,name:c,required:u,onChange:d,onHighlightChange:p,onOpenChange:h,open:m,options:f,getOptionAsString:v=mW,getSerializedValue:w=vW,value:y,componentName:g="useSelect"}=r,x=D.useRef(null),b=Tt(t,x),C=D.useRef(null),I=Cn(o);let S;y===void 0&&i===void 0?S=[]:i!==void 0&&(l?S=i:S=i==null?[]:[i]);const P=D.useMemo(()=>{if(y!==void 0)return l?y:y==null?[]:[y]},[y,l]),{subitems:_,contextValue:k}=Bv(),T=D.useMemo(()=>f!=null?new Map(f.map((_e,ke)=>[_e.value,{value:_e.value,label:_e.label,disabled:_e.disabled,ref:D.createRef(),id:`${I}_${ke}`}])):_,[f,_,I]),E=Tt(s,C),{getRootProps:M,active:O,focusVisible:L,rootRef:N}=xa({disabled:a,rootRef:b}),W=D.useMemo(()=>Array.from(T.keys()),[T]),V=D.useCallback(_e=>{if(e!==void 0){const ke=W.find(We=>e(We,_e));return T.get(ke)}return T.get(_e)},[T,e,W]),U=D.useCallback(_e=>{var ke;const We=V(_e);return(ke=We?.disabled)!=null?ke:!1},[V]),R=D.useCallback(_e=>{const ke=V(_e);return ke?v(ke):""},[V,v]),$=D.useMemo(()=>({selectedValues:P,open:m}),[P,m]),j=D.useCallback(_e=>{var ke;return(ke=T.get(_e))==null?void 0:ke.id},[T]),B=D.useCallback((_e,ke)=>{if(l)d?.(_e,ke);else{var We;d?.(_e,(We=ke[0])!=null?We:null)}},[l,d]),J=D.useCallback((_e,ke)=>{p?.(_e,ke??null)},[p]),G=D.useCallback((_e,ke,We)=>{if(ke==="open"&&(h?.(We),We===!1&&_e?.type!=="blur")){var ze;(ze=x.current)==null||ze.focus()}},[h]),K=D.useCallback(_e=>{var ke,We;return _e==null?null:(ke=(We=_.get(_e))==null?void 0:We.ref.current)!=null?ke:null},[_]),q={getInitialState:()=>{var _e;return{highlightedValue:null,selectedValues:(_e=S)!=null?_e:[],open:n}},getItemId:j,controlledProps:$,focusManagement:"DOM",getItemDomElement:K,itemComparer:e,isItemDisabled:U,rootRef:E,onChange:B,onHighlightChange:J,onStateChange:G,reducerActionContext:D.useMemo(()=>({multiple:l}),[l]),items:W,getItemAsString:R,selectionMode:l?"multiple":"single",stateReducer:gW,componentName:g},{dispatch:X,getRootProps:ee,contextValue:se,state:{open:ce,highlightedValue:Ae,selectedValues:Le},rootRef:Ee}=n1(q),Oe=D.useRef(ce);yi(()=>{if(ce&&Ae!==null){var _e;const ke=(_e=V(Ae))==null?void 0:_e.ref;if(!C.current||!(ke!=null&&ke.current))return;Oe.current||ke.current.focus({preventScroll:!0});const We=C.current.getBoundingClientRect(),ze=ke.current.getBoundingClientRect();ze.top<We.top?C.current.scrollTop-=We.top-ze.top:ze.bottom>We.bottom&&(C.current.scrollTop+=ze.bottom-We.bottom)}},[ce,Ae,V]);const ve=D.useCallback(_e=>V(_e),[V]),ne=_e=>ke=>{var We;if(_e==null||(We=_e.onClick)==null||We.call(_e,ke),!ke.defaultMuiPrevented){const ze={type:Bd.buttonClick,event:ke};X(ze)}},ae=_e=>ke=>{var We;(We=_e.onKeyDown)==null||We.call(_e,ke),!ke.defaultMuiPrevented&&(ke.key==="ArrowDown"||ke.key==="ArrowUp")&&(ke.preventDefault(),X({type:Kt.keyDown,key:ke.key,event:ke}))},pe=(_e={})=>({onClick:ne(_e),onKeyDown:ae(_e)}),xe=(_e={})=>F({},_e,pe(_e),{role:"combobox","aria-expanded":ce,"aria-controls":I}),ue=(_e={})=>{const ke=Or(_e),We=Wl(xe,M);return F({},_e,We(ke))},Pe=_e=>ke=>{var We,ze;(We=_e.onBlur)==null||We.call(_e,ke),!ke.defaultMuiPrevented&&((ze=C.current)!=null&&ze.contains(ke.relatedTarget)||ke.relatedTarget===x.current)&&(ke.defaultMuiPrevented=!0)},je=(_e={})=>({onBlur:Pe(_e)}),Be=(_e={})=>{const ke=Or(_e),We=Wl(je,ee);return F({id:I,role:"listbox","aria-multiselectable":l?"true":void 0},_e,We(ke))};D.useDebugValue({selectedOptions:Le,highlightedOption:Ae,open:ce});const st=D.useMemo(()=>F({},se,k),[se,k]);let Qe;r.multiple?Qe=Le:Qe=Le.length>0?Le[0]:null;let de;if(l)de=Qe.map(_e=>ve(_e)).filter(_e=>_e!==void 0);else{var Ce;de=(Ce=ve(Qe))!=null?Ce:null}const ye=_e=>ke=>{var We;if(_e==null||(We=_e.onChange)==null||We.call(_e,ke),ke.defaultMuiPrevented)return;const ze=T.get(ke.target.value);ke.target.value===""?X({type:Kt.clearSelection}):ze!==void 0&&X({type:Bd.browserAutoFill,item:ze.value,event:ke})};return{buttonActive:O,buttonFocusVisible:L,buttonRef:N,contextValue:st,disabled:a,dispatch:X,getButtonProps:ue,getHiddenInputProps:(_e={})=>{const ke=Or(_e);return F({name:c,tabIndex:-1,"aria-hidden":!0,required:u?!0:void 0,value:w(de),style:US},_e,{onChange:ye(ke)})},getListboxProps:Be,getOptionMetadata:ve,listboxRef:Ee,open:ce,options:W,value:Qe,highlightedOption:Ae}}function bW(r){const{value:e,children:t}=r,{dispatch:n,getItemIndex:i,getItemState:a,registerItem:o,totalSubitemCount:s}=e,l=D.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:i}),[n,i,a]),c=D.useMemo(()=>({getItemIndex:i,registerItem:o,totalSubitemCount:s}),[o,i,s]);return Y.jsx(Ld.Provider,{value:c,children:Y.jsx(Vl.Provider,{value:l,children:t})})}const wW=2;function T1(r,e){return r-e}function k1(r,e){var t;const{index:n}=(t=r.reduce((i,a,o)=>{const s=Math.abs(e-a);return i===null||s<i.distance||s===i.distance?{distance:s,index:o}:i},null))!=null?t:{};return n}function zd(r,e){if(e.current!==void 0&&r.changedTouches){const t=r;for(let n=0;n<t.changedTouches.length;n+=1){const i=t.changedTouches[n];if(i.identifier===e.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:r.clientX,y:r.clientY}}function Hd(r,e,t){return(r-e)*100/(t-e)}function xW(r,e,t){return(t-e)*r+e}function CW(r){if(Math.abs(r)<1){const t=r.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const e=r.toString().split(".")[1];return e?e.length:0}function IW(r,e,t){const n=Math.round((r-t)/e)*e+t;return Number(n.toFixed(CW(e)))}function A1({values:r,newValue:e,index:t}){const n=r.slice();return n[t]=e,n.sort(T1)}function Ud({sliderRef:r,activeIndex:e,setActive:t}){var n,i;const a=Hr(r.current);if(!((n=r.current)!=null&&n.contains(a.activeElement))||Number(a==null||(i=a.activeElement)==null?void 0:i.getAttribute("data-index"))!==e){var o;(o=r.current)==null||o.querySelector(`[type="range"][data-index="${e}"]`).focus()}t&&t(e)}function Vd(r,e){return typeof r=="number"&&typeof e=="number"?r===e:typeof r=="object"&&typeof e=="object"?Lv(r,e):!1}const _W={horizontal:{offset:r=>({left:`${r}%`}),leap:r=>({width:`${r}%`})},"horizontal-reverse":{offset:r=>({right:`${r}%`}),leap:r=>({width:`${r}%`})},vertical:{offset:r=>({bottom:`${r}%`}),leap:r=>({height:`${r}%`})}},SW=r=>r;let Wd;function P1(){return Wd===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Wd=CSS.supports("touch-action","none"):Wd=!0),Wd}function TW(r){const{"aria-labelledby":e,defaultValue:t,disabled:n=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=SW,step:f=1,shiftStep:v=10,tabIndex:w,value:y}=r,g=D.useRef(void 0),[x,b]=D.useState(-1),[C,I]=D.useState(-1),[S,P]=D.useState(!1),_=D.useRef(0),[k,T]=wa({controlled:y,default:t??l,name:"Slider"}),E=u&&((de,Ce,ye)=>{const Ne=de.nativeEvent||de,_e=new Ne.constructor(Ne.type,Ne);Object.defineProperty(_e,"target",{writable:!0,value:{value:Ce,name:c}}),u(_e,Ce,ye)}),M=Array.isArray(k);let O=M?k.slice().sort(T1):[k];O=O.map(de=>de==null?l:Nl(de,l,s));const L=o===!0&&f!==null?[...Array(Math.floor((s-l)/f)+1)].map((de,Ce)=>({value:l+f*Ce})):o||[],N=L.map(de=>de.value),{isFocusVisibleRef:W,onBlur:V,onFocus:U,ref:R}=zl(),[$,j]=D.useState(-1),B=D.useRef(null),J=Tt(R,B),G=Tt(h,J),K=de=>Ce=>{var ye;const Ne=Number(Ce.currentTarget.getAttribute("data-index"));U(Ce),W.current===!0&&j(Ne),I(Ne),de==null||(ye=de.onFocus)==null||ye.call(de,Ce)},q=de=>Ce=>{var ye;V(Ce),W.current===!1&&j(-1),I(-1),de==null||(ye=de.onBlur)==null||ye.call(de,Ce)},X=(de,Ce)=>{const ye=Number(de.currentTarget.getAttribute("data-index")),Ne=O[ye],_e=N.indexOf(Ne);let ke=Ce;if(L&&f==null){const We=N[N.length-1];ke>We?ke=We:ke<N[0]?ke=N[0]:ke=ke<Ne?N[_e-1]:N[_e+1]}if(ke=Nl(ke,l,s),M){i&&(ke=Nl(ke,O[ye-1]||-1/0,O[ye+1]||1/0));const We=ke;ke=A1({values:O,newValue:ke,index:ye});let ze=ye;i||(ze=ke.indexOf(We)),Ud({sliderRef:B,activeIndex:ze})}T(ke),j(ye),E&&!Vd(ke,k)&&E(de,ke,ye),d&&d(de,ke)},ee=de=>Ce=>{var ye;if(f!==null){const Ne=Number(Ce.currentTarget.getAttribute("data-index")),_e=O[Ne];let ke=null;(Ce.key==="ArrowLeft"||Ce.key==="ArrowDown")&&Ce.shiftKey||Ce.key==="PageDown"?ke=Math.max(_e-v,l):((Ce.key==="ArrowRight"||Ce.key==="ArrowUp")&&Ce.shiftKey||Ce.key==="PageUp")&&(ke=Math.min(_e+v,s)),ke!==null&&(X(Ce,ke),Ce.preventDefault())}de==null||(ye=de.onKeyDown)==null||ye.call(de,Ce)};yi(()=>{if(n&&B.current.contains(document.activeElement)){var de;(de=document.activeElement)==null||de.blur()}},[n]),n&&x!==-1&&b(-1),n&&$!==-1&&j(-1);const se=de=>Ce=>{var ye;(ye=de.onChange)==null||ye.call(de,Ce),X(Ce,Ce.target.valueAsNumber)},ce=D.useRef(void 0);let Ae=p;a&&p==="horizontal"&&(Ae+="-reverse");const Le=({finger:de,move:Ce=!1})=>{const{current:ye}=B,{width:Ne,height:_e,bottom:ke,left:We}=ye.getBoundingClientRect();let ze;Ae.indexOf("vertical")===0?ze=(ke-de.y)/_e:ze=(de.x-We)/Ne,Ae.indexOf("-reverse")!==-1&&(ze=1-ze);let kt;if(kt=xW(ze,l,s),f)kt=IW(kt,f,l);else{const yr=k1(N,kt);kt=N[yr]}kt=Nl(kt,l,s);let ht=0;if(M){Ce?ht=ce.current:ht=k1(O,kt),i&&(kt=Nl(kt,O[ht-1]||-1/0,O[ht+1]||1/0));const yr=kt;kt=A1({values:O,newValue:kt,index:ht}),i&&Ce||(ht=kt.indexOf(yr),ce.current=ht)}return{newValue:kt,activeIndex:ht}},Ee=cn(de=>{const Ce=zd(de,g);if(!Ce)return;if(_.current+=1,de.type==="mousemove"&&de.buttons===0){Oe(de);return}const{newValue:ye,activeIndex:Ne}=Le({finger:Ce,move:!0});Ud({sliderRef:B,activeIndex:Ne,setActive:b}),T(ye),!S&&_.current>wW&&P(!0),E&&!Vd(ye,k)&&E(de,ye,Ne)}),Oe=cn(de=>{const Ce=zd(de,g);if(P(!1),!Ce)return;const{newValue:ye}=Le({finger:Ce,move:!0});b(-1),de.type==="touchend"&&I(-1),d&&d(de,ye),g.current=void 0,ne()}),ve=cn(de=>{if(n)return;P1()||de.preventDefault();const Ce=de.changedTouches[0];Ce!=null&&(g.current=Ce.identifier);const ye=zd(de,g);if(ye!==!1){const{newValue:_e,activeIndex:ke}=Le({finger:ye});Ud({sliderRef:B,activeIndex:ke,setActive:b}),T(_e),E&&!Vd(_e,k)&&E(de,_e,ke)}_.current=0;const Ne=Hr(B.current);Ne.addEventListener("touchmove",Ee,{passive:!0}),Ne.addEventListener("touchend",Oe,{passive:!0})}),ne=D.useCallback(()=>{const de=Hr(B.current);de.removeEventListener("mousemove",Ee),de.removeEventListener("mouseup",Oe),de.removeEventListener("touchmove",Ee),de.removeEventListener("touchend",Oe)},[Oe,Ee]);D.useEffect(()=>{const{current:de}=B;return de.addEventListener("touchstart",ve,{passive:P1()}),()=>{de.removeEventListener("touchstart",ve),ne()}},[ne,ve]),D.useEffect(()=>{n&&ne()},[n,ne]);const ae=de=>Ce=>{var ye;if((ye=de.onMouseDown)==null||ye.call(de,Ce),n||Ce.defaultPrevented||Ce.button!==0)return;Ce.preventDefault();const Ne=zd(Ce,g);if(Ne!==!1){const{newValue:ke,activeIndex:We}=Le({finger:Ne});Ud({sliderRef:B,activeIndex:We,setActive:b}),T(ke),E&&!Vd(ke,k)&&E(Ce,ke,We)}_.current=0;const _e=Hr(B.current);_e.addEventListener("mousemove",Ee,{passive:!0}),_e.addEventListener("mouseup",Oe)},pe=Hd(M?O[0]:l,l,s),xe=Hd(O[O.length-1],l,s)-pe,ue=(de={})=>{const Ce=Or(de),ye={onMouseDown:ae(Ce||{})},Ne=F({},Ce,ye);return F({},de,{ref:G},Ne)},Pe=de=>Ce=>{var ye;(ye=de.onMouseOver)==null||ye.call(de,Ce);const Ne=Number(Ce.currentTarget.getAttribute("data-index"));I(Ne)},je=de=>Ce=>{var ye;(ye=de.onMouseLeave)==null||ye.call(de,Ce),I(-1)};return{active:x,axis:Ae,axisProps:_W,dragging:S,focusedThumbIndex:$,getHiddenInputProps:(de={})=>{var Ce;const ye=Or(de),Ne={onChange:se(ye||{}),onFocus:K(ye||{}),onBlur:q(ye||{}),onKeyDown:ee(ye||{})},_e=F({},ye,Ne);return F({tabIndex:w,"aria-labelledby":e,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:c,type:"range",min:r.min,max:r.max,step:r.step===null&&r.marks?"any":(Ce=r.step)!=null?Ce:void 0,disabled:n},de,_e,{style:F({},US,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ue,getThumbProps:(de={})=>{const Ce=Or(de),ye={onMouseOver:Pe(Ce||{}),onMouseLeave:je(Ce||{})};return F({},de,Ce,ye)},marks:L,open:C,range:M,rootRef:G,trackLeap:xe,trackOffset:pe,values:O,getThumbStyle:de=>({pointerEvents:x!==-1&&x!==de?"none":void 0})}}function kW(r={}){const{autoHideDuration:e=null,disableWindowBlurListener:t=!1,onClose:n,open:i,resumeHideDuration:a}=r,o=Bl();D.useEffect(()=>{if(!i)return;function w(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&n?.(y,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,n]);const s=cn((w,y)=>{n?.(w,y)}),l=cn(w=>{!n||w==null||o.start(w,()=>{s(null,"timeout")})});D.useEffect(()=>(i&&l(e),o.clear),[i,e,l,o]);const c=w=>{n?.(w,"clickaway")},u=o.clear,d=D.useCallback(()=>{e!=null&&l(a??e*.5)},[e,a,l]),p=w=>y=>{const g=w.onBlur;g?.(y),d()},h=w=>y=>{const g=w.onFocus;g?.(y),u()},m=w=>y=>{const g=w.onMouseEnter;g?.(y),u()},f=w=>y=>{const g=w.onMouseLeave;g?.(y),d()};return D.useEffect(()=>{if(!t&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[t,i,d,u]),{getRootProps:(w={})=>{const y=F({},Or(r),Or(w));return F({role:"presentation"},w,y,{onBlur:p(y),onFocus:h(y),onMouseEnter:m(y),onMouseLeave:f(y)})},onClickAway:c}}function E1(r){const{checked:e,defaultChecked:t,disabled:n,onBlur:i,onChange:a,onFocus:o,onFocusVisible:s,readOnly:l,required:c}=r,[u,d]=wa({controlled:e,default:!!t,name:"Switch",state:"checked"}),p=S=>P=>{var _;P.nativeEvent.defaultPrevented||(d(P.target.checked),a?.(P),(_=S.onChange)==null||_.call(S,P))},{isFocusVisibleRef:h,onBlur:m,onFocus:f,ref:v}=zl(),[w,y]=D.useState(!1);n&&w&&y(!1),D.useEffect(()=>{h.current=w},[w,h]);const g=D.useRef(null),x=S=>P=>{var _;g.current||(g.current=P.currentTarget),f(P),h.current===!0&&(y(!0),s?.(P)),o?.(P),(_=S.onFocus)==null||_.call(S,P)},b=S=>P=>{var _;m(P),h.current===!1&&y(!1),i?.(P),(_=S.onBlur)==null||_.call(S,P)},C=Tt(v,g);return{checked:u,disabled:!!n,focusVisible:w,getInputProps:(S={})=>F({checked:e,defaultChecked:t,disabled:n,readOnly:l,ref:C,required:c,type:"checkbox",role:"switch","aria-checked":e},S,{onChange:p(S),onFocus:x(S),onBlur:b(S)}),inputRef:C,readOnly:!!l}}function AW(r){const{value:e,defaultValue:t,onChange:n,orientation:i="horizontal",direction:a="ltr",selectionFollowsFocus:o=!1}=r,[s,l]=wa({controlled:e,default:t,name:"Tabs",state:"value"}),c=D.useCallback((v,w)=>{l(w),n?.(v,w)},[n,l]),{subitems:u,contextValue:d}=Bv(),p=D.useRef(()=>{}),h=D.useCallback(v=>{var w;return(w=u.get(v))==null?void 0:w.id},[u]),m=D.useCallback(v=>p.current(v),[]),f=D.useCallback(v=>{p.current=v},[]);return{contextValue:F({direction:a,getTabId:m,getTabPanelId:h,onSelected:c,orientation:i,registerTabIdLookup:f,selectionFollowsFocus:o,value:s},d)}}const O1=D.createContext(null);function qd(){const r=D.useContext(O1);if(r==null)throw new Error("No TabsContext provided");return r}function PW(r){const{value:e,children:t}=r,{direction:n,getItemIndex:i,onSelected:a,orientation:o,registerItem:s,registerTabIdLookup:l,selectionFollowsFocus:c,totalSubitemCount:u,value:d,getTabId:p,getTabPanelId:h}=e,m=D.useMemo(()=>({getItemIndex:i,registerItem:s,totalSubitemCount:u}),[s,i,u]),f=D.useMemo(()=>({direction:n,getTabId:p,getTabPanelId:h,onSelected:a,orientation:o,registerTabIdLookup:l,selectionFollowsFocus:c,value:d}),[n,p,h,a,o,l,c,d]);return Y.jsx(Ld.Provider,{value:m,children:Y.jsx(O1.Provider,{value:f,children:t})})}function EW(r){return r.size}function OW(r){const{value:e,id:t,rootRef:n}=r,i=qd();if(i===null)throw new Error("No TabContext provided");const{value:a,getTabId:o}=i,s=Cn(t),l=D.useRef(null),c=Tt(l,n),u=D.useMemo(()=>({id:s,ref:l}),[s]),{id:d}=zv(e??EW,u),p=d!==a,h=d!==void 0?o(d):void 0;return{hidden:p,getRootProps:(f={})=>F({"aria-labelledby":h??void 0,hidden:p,id:s??void 0},f,{ref:c}),rootRef:c}}const R1={valueChange:"valueChange"};function RW(r,e){if(e.type===R1.valueChange)return F({},r,{highlightedValue:e.value});const t=jv(r,e),{context:{selectionFollowsFocus:n}}=e;if(e.type===Kt.itemsChange){if(t.selectedValues.length>0)return F({},t,{highlightedValue:t.selectedValues[0]});Mr(null,"reset",e.context)}return n&&t.highlightedValue!=null?F({},t,{selectedValues:[t.highlightedValue]}):t}function DW(r){var e;const{rootRef:t}=r,{direction:n="ltr",onSelected:i,orientation:a="horizontal",value:o,registerTabIdLookup:s,selectionFollowsFocus:l}=qd(),{subitems:c,contextValue:u}=Bv(),d=D.useCallback(k=>{var T;return(T=c.get(k))==null?void 0:T.id},[c]);s(d);const p=D.useMemo(()=>Array.from(c.keys()),[c]),h=D.useCallback(k=>{var T,E;return k==null?null:(T=(E=c.get(k))==null?void 0:E.ref.current)!=null?T:null},[c]),m=n==="rtl";let f;a==="vertical"?f="vertical":f=m?"horizontal-rtl":"horizontal-ltr";const v=D.useCallback((k,T)=>{var E;i(k,(E=T[0])!=null?E:null)},[i]),w=D.useMemo(()=>o===void 0?{}:o!=null?{selectedValues:[o]}:{selectedValues:[]},[o]),y=D.useCallback(k=>{var T,E;return(T=(E=c.get(k))==null?void 0:E.disabled)!=null?T:!1},[c]),{contextValue:g,dispatch:x,getRootProps:b,state:{highlightedValue:C,selectedValues:I},rootRef:S}=n1({controlledProps:w,disabledItemsFocusable:!l,focusManagement:"DOM",getItemDomElement:h,isItemDisabled:y,items:p,rootRef:t,onChange:v,orientation:f,reducerActionContext:D.useMemo(()=>({selectionFollowsFocus:l||!1}),[l]),selectionMode:"single",stateReducer:RW});D.useEffect(()=>{o!==void 0&&o!=null&&x({type:R1.valueChange,value:o})},[x,o]);const P=(k={})=>F({},k,b(k),{"aria-orientation":a==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:D.useMemo(()=>F({},u,g),[u,g]),dispatch:x,getRootProps:P,highlightedValue:C,isRtl:m,orientation:a,rootRef:S,selectedValue:(e=I[0])!=null?e:null}}function MW(r){const{value:e,children:t}=r,{dispatch:n,getItemIndex:i,getItemState:a,registerItem:o,totalSubitemCount:s}=e,l=D.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:i}),[n,i,a]),c=D.useMemo(()=>({getItemIndex:i,registerItem:o,totalSubitemCount:s}),[o,i,s]);return Y.jsx(Ld.Provider,{value:c,children:Y.jsx(Vl.Provider,{value:l,children:t})})}function LW(r){return r.size}function $W(r){const{value:e,rootRef:t,disabled:n=!1,id:i}=r,a=D.useRef(null),o=Cn(i),{value:s,selectionFollowsFocus:l,getTabPanelId:c}=qd(),u=D.useMemo(()=>({disabled:n,ref:a,id:o}),[n,a,o]),{id:d,index:p,totalItemCount:h}=zv(e??LW,u),{getRootProps:m,highlighted:f,selected:v}=i1({item:d}),{getRootProps:w,rootRef:y,active:g,focusVisible:x,setFocusVisible:b}=xa({disabled:n,focusableWhenDisabled:!l,type:"button"}),C=Tt(a,t,y),I=d!==void 0?c(d):void 0;return{getRootProps:(P={})=>{const _=Or(P),k=Wl(m,w);return F({},P,k(_),{role:"tab","aria-controls":I,"aria-selected":v,id:o,ref:C})},active:g,focusVisible:x,highlighted:f,index:p,rootRef:C,selected:v||d===s,setFocusVisible:b,totalTabsCount:h}}const NW=["onChange","maxRows","minRows","style","value"];function Gd(r){return parseInt(r,10)||0}const FW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function jW(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflowing}const BW=D.forwardRef(function(e,t){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=e,l=$e(e,NW),{current:c}=D.useRef(s!=null),u=D.useRef(null),d=Tt(t,u),p=D.useRef(null),h=D.useRef(null),m=D.useCallback(()=>{const w=u.current,g=Fl(w).getComputedStyle(w);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=g.width,x.value=w.value||e.placeholder||"x",x.value.slice(-1)===`
66
+ */var RS;function WU(){if(RS)return Ft;RS=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case r:switch(f=f.type,f){case t:case i:case n:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof,f){case o:case s:case d:case u:return f;case a:return f;default:return v}}case e:return v}}}return Ft.ContextConsumer=a,Ft.ContextProvider=o,Ft.Element=r,Ft.ForwardRef=s,Ft.Fragment=t,Ft.Lazy=d,Ft.Memo=u,Ft.Portal=e,Ft.Profiler=i,Ft.StrictMode=n,Ft.Suspense=l,Ft.SuspenseList=c,Ft.isContextConsumer=function(f){return m(f)===a},Ft.isContextProvider=function(f){return m(f)===o},Ft.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===r},Ft.isForwardRef=function(f){return m(f)===s},Ft.isFragment=function(f){return m(f)===t},Ft.isLazy=function(f){return m(f)===d},Ft.isMemo=function(f){return m(f)===u},Ft.isPortal=function(f){return m(f)===e},Ft.isProfiler=function(f){return m(f)===i},Ft.isStrictMode=function(f){return m(f)===n},Ft.isSuspense=function(f){return m(f)===l},Ft.isSuspenseList=function(f){return m(f)===c},Ft.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===t||f===i||f===n||f===l||f===c||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===u||f.$$typeof===o||f.$$typeof===a||f.$$typeof===s||f.$$typeof===h||f.getModuleId!==void 0)},Ft.typeOf=m,Ft}var DS;function qU(){return DS||(DS=1,Sv.exports=WU()),Sv.exports}var MS=qU();const GU=["ownerState"],KU=["variants"],YU=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function JU(r){return Object.keys(r).length===0}function QU(r){return typeof r=="string"&&r.charCodeAt(0)>96}function Tv(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const XU=Ad(),ZU=r=>r&&r.charAt(0).toLowerCase()+r.slice(1);function Ed({defaultTheme:r,theme:e,themeId:t}){return JU(e)?r:e[t]||e}function e4(r){return r?(e,t)=>t[r]:null}function Od(r,e){let{ownerState:t}=e,n=$e(e,GU);const i=typeof r=="function"?r(F({ownerState:t},n)):r;if(Array.isArray(i))return i.flatMap(a=>Od(a,F({ownerState:t},n)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let s=$e(i,KU);return a.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(F({ownerState:t},n,t)):Object.keys(l.props).forEach(u=>{t?.[u]!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof l.style=="function"?l.style(F({ownerState:t},n,t)):l.style))}),s}return i}function LS(r={}){const{themeId:e,defaultTheme:t=XU,rootShouldForwardProp:n=Tv,slotShouldForwardProp:i=Tv}=r,a=o=>Ll(F({},o,{theme:Ed(F({},o,{defaultTheme:t,themeId:e}))}));return a.__mui_systemSx=!0,(o,s={})=>{qH(o,b=>b.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:p=e4(ZU(c))}=s,h=$e(s,YU),m=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,f=d||!1;let v,w=Tv;c==="Root"||c==="root"?w=n:c?w=i:QU(o)&&(w=void 0);const y=vS(o,F({shouldForwardProp:w,label:v},h)),g=b=>typeof b=="function"&&b.__emotion_real!==b||ya(b)?C=>Od(b,F({},C,{theme:Ed({theme:C.theme,defaultTheme:t,themeId:e})})):b,x=(b,...C)=>{let I=g(b);const S=C?C.map(g):[];l&&p&&S.push(k=>{const T=Ed(F({},k,{defaultTheme:t,themeId:e}));if(!T.components||!T.components[l]||!T.components[l].styleOverrides)return null;const E=T.components[l].styleOverrides,M={};return Object.entries(E).forEach(([O,L])=>{M[O]=Od(L,F({},k,{theme:T}))}),p(k,M)}),l&&!m&&S.push(k=>{var T;const E=Ed(F({},k,{defaultTheme:t,themeId:e})),M=E==null||(T=E.components)==null||(T=T[l])==null?void 0:T.variants;return Od({variants:M},F({},k,{theme:E}))}),f||S.push(a);const P=S.length-C.length;if(Array.isArray(b)&&P>0){const k=new Array(P).fill("");I=[...b,...k],I.raw=[...b.raw,...k]}const _=y(I,...S);return o.muiName&&(_.muiName=o.muiName),_};return y.withConfig&&(x.withConfig=y.withConfig),x}}const $S=LS();function NS(r,e){const t=F({},e);return Object.keys(r).forEach(n=>{if(n.toString().match(/^(components|slots)$/))t[n]=F({},r[n],t[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=r[n]||{},a=e[n];t[n]={},!a||!Object.keys(a)?t[n]=i:!i||!Object.keys(i)?t[n]=a:(t[n]=F({},a),Object.keys(i).forEach(o=>{t[n][o]=NS(i[o],a[o])}))}else t[n]===void 0&&(t[n]=r[n])}),t}function t4(r){const{theme:e,name:t,props:n}=r;return!e||!e.components||!e.components[t]||!e.components[t].defaultProps?n:NS(e.components[t].defaultProps,n)}function kv({props:r,name:e,defaultTheme:t,themeId:n}){let i=_v(t);return n&&(i=i[n]||i),t4({theme:i,name:e,props:r})}const yi=typeof window<"u"?D.useLayoutEffect:D.useEffect;function Nl(r,e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(r,t))}function r4(r){r=r.slice(1);const e=new RegExp(`.{1,${r.length>=6?2:1}}`,"g");let t=r.match(e);return t&&t[0].length===1&&(t=t.map(n=>n+n)),t?`rgb${t.length===4?"a":""}(${t.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function FS(r){if(r.type)return r;if(r.charAt(0)==="#")return FS(r4(r));const e=r.indexOf("("),t=r.substring(0,e);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(wd(9,r));let n=r.substring(e+1,r.length-1),i;if(t==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(wd(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:t,values:n,colorSpace:i}}const no=r=>{const e=FS(r);return e.values.slice(0,3).map((t,n)=>e.type.indexOf("hsl")!==-1&&n!==0?`${t}%`:t).join(" ")};function jS(...r){return r.reduce((e,t)=>t==null?e:function(...i){e.apply(this,i),t.apply(this,i)},()=>{})}function n4(r,e=166){let t;function n(...i){const a=()=>{r.apply(this,i)};clearTimeout(t),t=setTimeout(a,e)}return n.clear=()=>{clearTimeout(t)},n}function Wo(r,e){var t,n;return D.isValidElement(r)&&e.indexOf((t=r.type.muiName)!=null?t:(n=r.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Hr(r){return r&&r.ownerDocument||document}function Fl(r){return Hr(r).defaultView||window}function Rd(r,e){typeof r=="function"?r(e):r&&(r.current=e)}let BS=0;function i4(r){const[e,t]=D.useState(r),n=r||e;return D.useEffect(()=>{e==null&&(BS+=1,t(`mui-${BS}`))},[e]),n}const zS=D.useId;function Cn(r){if(zS!==void 0){const e=zS();return r??e}return i4(r)}function wa({controlled:r,default:e,name:t,state:n="value"}){const{current:i}=D.useRef(r!==void 0),[a,o]=D.useState(e),s=i?r:a,l=D.useCallback(c=>{i||o(c)},[]);return[s,l]}function cn(r){const e=D.useRef(r);return yi(()=>{e.current=r}),D.useRef((...t)=>(0,e.current)(...t)).current}function Tt(...r){return D.useMemo(()=>r.every(e=>e==null)?null:e=>{r.forEach(t=>{Rd(t,e)})},r)}const HS={};function a4(r,e){const t=D.useRef(HS);return t.current===HS&&(t.current=r(e)),t}const o4=[];function s4(r){D.useEffect(r,o4)}class jl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function Bl(){const r=a4(jl.create).current;return s4(r.disposeEffect),r}let Dd=!0,Av=!1;const l4=new jl,c4={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u4(r){const{type:e,tagName:t}=r;return!!(t==="INPUT"&&c4[e]&&!r.readOnly||t==="TEXTAREA"&&!r.readOnly||r.isContentEditable)}function d4(r){r.metaKey||r.altKey||r.ctrlKey||(Dd=!0)}function Pv(){Dd=!1}function p4(){this.visibilityState==="hidden"&&Av&&(Dd=!0)}function h4(r){r.addEventListener("keydown",d4,!0),r.addEventListener("mousedown",Pv,!0),r.addEventListener("pointerdown",Pv,!0),r.addEventListener("touchstart",Pv,!0),r.addEventListener("visibilitychange",p4,!0)}function f4(r){const{target:e}=r;try{return e.matches(":focus-visible")}catch{}return Dd||u4(e)}function zl(){const r=D.useCallback(i=>{i!=null&&h4(i.ownerDocument)},[]),e=D.useRef(!1);function t(){return e.current?(Av=!0,l4.start(100,()=>{Av=!1}),e.current=!1,!0):!1}function n(i){return f4(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:n,onBlur:t,ref:r}}function m4(r){const e=r.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}const g4=r=>{const e=D.useRef({});return D.useEffect(()=>{e.current=r}),e.current},US={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Je(r,e,t=void 0){const n={};return Object.keys(r).forEach(i=>{n[i]=r[i].reduce((a,o)=>{if(o){const s=e(o);s!==""&&a.push(s),t&&t[o]&&a.push(t[o])}return a},[]).join(" ")}),n}function VS(r){return typeof r=="string"}function WS(r,e,t){return r===void 0||VS(r)?e:F({},e,{ownerState:F({},e.ownerState,t)})}function Or(r,e=[]){if(r===void 0)return{};const t={};return Object.keys(r).filter(n=>n.match(/^on[A-Z]/)&&typeof r[n]=="function"&&!e.includes(n)).forEach(n=>{t[n]=r[n]}),t}function qS(r){if(r===void 0)return{};const e={};return Object.keys(r).filter(t=>!(t.match(/^on[A-Z]/)&&typeof r[t]=="function")).forEach(t=>{e[t]=r[t]}),e}function GS(r){const{getSlotProps:e,additionalProps:t,externalSlotProps:n,externalForwardedProps:i,className:a}=r;if(!e){const h=St(t?.className,a,i?.className,n?.className),m=F({},t?.style,i?.style,n?.style),f=F({},t,i,n);return h.length>0&&(f.className=h),Object.keys(m).length>0&&(f.style=m),{props:f,internalRef:void 0}}const o=Or(F({},i,n)),s=qS(n),l=qS(i),c=e(o),u=St(c?.className,t?.className,a,i?.className,n?.className),d=F({},c?.style,t?.style,i?.style,n?.style),p=F({},c,t,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function KS(r,e,t){return typeof r=="function"?r(e,t):r}const v4=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function y4(r){var e;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=r,o=$e(r,v4),s=a?{}:KS(n,i),{props:l,internalRef:c}=GS(F({},o,{externalSlotProps:s})),u=Tt(c,s?.ref,(e=r.additionalProps)==null?void 0:e.ref);return WS(t,F({},l,{ref:u}),i)}function Md(r){if(parseInt(D.version,10)>=19){var e;return(r==null||(e=r.props)==null?void 0:e.ref)||null}return r?.ref||null}function Ev(r=""){function e(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${r?`${r}-`:""}${i}${e(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${r?`${r}-`:""}${n}${e(...i)})`}const YS=(r,e,t,n=[])=>{let i=r;e.forEach((a,o)=>{o===e.length-1?Array.isArray(i)?i[Number(a)]=t:i&&typeof i=="object"&&(i[a]=t):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},b4=(r,e,t)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,l])=>{(!t||t&&!t([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...o,s]:o):e([...a,s],l,o))})}n(r)},w4=(r,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>r.includes(n))||r[r.length-1].toLowerCase().indexOf("opacity")>=0?e:`${e}px`:e;function Ov(r,e){const{prefix:t,shouldSkipGeneratingVar:n}=e||{},i={},a={},o={};return b4(r,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${t?`${t}-`:""}${s.join("-")}`;Object.assign(i,{[u]:w4(s,l)}),YS(a,s,`var(${u})`,c),YS(o,s,`var(${u}, ${l})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function Hl(r){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(r)}function x4(r,e){if(Hl(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(Hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function C4(r){var e=x4(r,"string");return Hl(e)=="symbol"?e:e+""}const I4=["colorSchemes","components","defaultColorScheme"];function _4(r,e){const{colorSchemes:t={},defaultColorScheme:n="light"}=r,i=$e(r,I4),{vars:a,css:o,varsWithDefaults:s}=Ov(i,e);let l=s;const c={},{[n]:u}=t,d=$e(t,[n].map(C4));if(Object.entries(d||{}).forEach(([h,m])=>{const{vars:f,css:v,varsWithDefaults:w}=Ov(m,e);l=ri(l,w),c[h]={css:v,vars:f}}),u){const{css:h,vars:m,varsWithDefaults:f}=Ov(u,e);l=ri(l,f),c[n]={css:h,vars:m}}return{vars:l,generateCssVars:h=>{var m;if(!h){var f;const w=F({},o);return{css:w,vars:a,selector:(e==null||(f=e.getSelector)==null?void 0:f.call(e,h,w))||":root"}}const v=F({},c[h].css);return{css:v,vars:c[h].vars,selector:(e==null||(m=e.getSelector)==null?void 0:m.call(e,h,v))||":root"}}}}const S4=(r,e)=>r.filter(t=>e.includes(t)),qo=(r,e,t)=>{const n=r.keys[0];Array.isArray(e)?e.forEach((i,a)=>{t((o,s)=>{a<=r.keys.length-1&&(a===0?Object.assign(o,s):o[r.up(r.keys[a])]=s)},i)}):e&&typeof e=="object"?(Object.keys(e).length>r.keys.length?r.keys:S4(r.keys,Object.keys(e))).forEach(a=>{if(r.keys.indexOf(a)!==-1){const o=e[a];o!==void 0&&t((s,l)=>{n===a?Object.assign(s,l):s[r.up(a)]=l},o)}}):(typeof e=="number"||typeof e=="string")&&t((i,a)=>{Object.assign(i,a)},e)};function Ni(r){return r?`Level${r}`:""}function Ul(r){return r.unstable_level>0&&r.container}function JS(r){return function(t){return`var(--Grid-${t}Spacing${Ni(r.unstable_level)})`}}function Rv(r){return function(t){return r.unstable_level===0?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${Ni(r.unstable_level-1)})`}}function Dv(r){return r.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${Ni(r.unstable_level-1)})`}const T4=({theme:r,ownerState:e})=>{const t=JS(e),n={};return qo(r.breakpoints,e.gridSize,(i,a)=>{let o={};a===!0&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / ${Dv(e)}${Ul(e)?` + ${t("column")}`:""})`}),i(n,o)}),n},k4=({theme:r,ownerState:e})=>{const t={};return qo(r.breakpoints,e.gridOffset,(n,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / ${Dv(e)})`}),n(t,a)}),t},A4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t=Ul(e)?{[`--Grid-columns${Ni(e.unstable_level)}`]:Dv(e)}:{"--Grid-columns":12};return qo(r.breakpoints,e.columns,(n,i)=>{n(t,{[`--Grid-columns${Ni(e.unstable_level)}`]:i})}),t},P4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t=Rv(e),n=Ul(e)?{[`--Grid-rowSpacing${Ni(e.unstable_level)}`]:t("row")}:{};return qo(r.breakpoints,e.rowSpacing,(i,a)=>{var o;i(n,{[`--Grid-rowSpacing${Ni(e.unstable_level)}`]:typeof a=="string"?a:(o=r.spacing)==null?void 0:o.call(r,a)})}),n},E4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t=Rv(e),n=Ul(e)?{[`--Grid-columnSpacing${Ni(e.unstable_level)}`]:t("column")}:{};return qo(r.breakpoints,e.columnSpacing,(i,a)=>{var o;i(n,{[`--Grid-columnSpacing${Ni(e.unstable_level)}`]:typeof a=="string"?a:(o=r.spacing)==null?void 0:o.call(r,a)})}),n},O4=({theme:r,ownerState:e})=>{if(!e.container)return{};const t={};return qo(r.breakpoints,e.direction,(n,i)=>{n(t,{flexDirection:i})}),t},R4=({ownerState:r})=>{const e=JS(r),t=Rv(r);return F({minWidth:0,boxSizing:"border-box"},r.container&&F({display:"flex",flexWrap:"wrap"},r.wrap&&r.wrap!=="wrap"&&{flexWrap:r.wrap},{margin:`calc(${e("row")} / -2) calc(${e("column")} / -2)`},r.disableEqualOverflow&&{margin:`calc(${e("row")} * -1) 0px 0px calc(${e("column")} * -1)`}),(!r.container||Ul(r))&&F({padding:`calc(${t("row")} / 2) calc(${t("column")} / 2)`},(r.disableEqualOverflow||r.parentDisableEqualOverflow)&&{padding:`${t("row")} 0px 0px ${t("column")}`}))},D4=r=>{const e=[];return Object.entries(r).forEach(([t,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${t}-${String(n)}`)}),e},M4=(r,e="xs")=>{function t(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(t(r))return[`spacing-${e}-${String(r)}`];if(typeof r=="object"&&!Array.isArray(r)){const n=[];return Object.entries(r).forEach(([i,a])=>{t(a)&&n.push(`spacing-${i}-${String(a)}`)}),n}return[]},L4=r=>r===void 0?[]:typeof r=="object"?Object.entries(r).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(r)}`],$4=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],N4=Ad(),F4=$S("div",{name:"MuiGrid",slot:"Root",overridesResolver:(r,e)=>e.root});function j4(r){return kv({props:r,name:"MuiGrid",defaultTheme:N4})}function B4(r={}){const{createStyledComponent:e=F4,useThemeProps:t=j4,componentName:n="MuiGrid"}=r,i=D.createContext(void 0),a=(l,c)=>{const{container:u,direction:d,spacing:p,wrap:h,gridSize:m}=l,f={root:["root",u&&"container",h!=="wrap"&&`wrap-xs-${String(h)}`,...L4(d),...D4(m),...u?M4(p,c.breakpoints.keys[0]):[]]};return Je(f,v=>Pd(n,v),{})},o=e(A4,E4,P4,T4,O4,R4,k4),s=D.forwardRef(function(c,u){var d,p,h,m,f,v,w,y;const g=_v(),x=t(c),b=$l(x),C=D.useContext(i),{className:I,children:S,columns:P=12,container:_=!1,component:k="div",direction:T="row",wrap:E="wrap",spacing:M=0,rowSpacing:O=M,columnSpacing:L=M,disableEqualOverflow:N,unstable_level:W=0}=b,V=$e(b,$4);let U=N;W&&N!==void 0&&(U=c.disableEqualOverflow);const R={},$={},j={};Object.entries(V).forEach(([se,ce])=>{g.breakpoints.values[se]!==void 0?R[se]=ce:g.breakpoints.values[se.replace("Offset","")]!==void 0?$[se.replace("Offset","")]=ce:j[se]=ce});const B=(d=c.columns)!=null?d:W?void 0:P,J=(p=c.spacing)!=null?p:W?void 0:M,G=(h=(m=c.rowSpacing)!=null?m:c.spacing)!=null?h:W?void 0:O,K=(f=(v=c.columnSpacing)!=null?v:c.spacing)!=null?f:W?void 0:L,q=F({},b,{level:W,columns:B,container:_,direction:T,wrap:E,spacing:J,rowSpacing:G,columnSpacing:K,gridSize:R,gridOffset:$,disableEqualOverflow:(w=(y=U)!=null?y:C)!=null?w:!1,parentDisableEqualOverflow:C}),X=a(q,g);let ee=Y.jsx(o,F({ref:u,as:k,ownerState:q,className:St(X.root,I)},j,{children:D.Children.map(S,se=>{if(D.isValidElement(se)&&Wo(se,["Grid"])){var ce,Ae;return D.cloneElement(se,{unstable_level:(ce=(Ae=se.props)==null?void 0:Ae.unstable_level)!=null?ce:W+1})}return se})}));return U!==void 0&&U!==(C??!1)&&(ee=Y.jsx(i.Provider,{value:U,children:ee})),ee});return s.muiName="Grid",s}const z4=["component","direction","spacing","divider","children","className","useFlexGap"],H4=Ad(),U4=$S("div",{name:"MuiStack",slot:"Root",overridesResolver:(r,e)=>e.root});function V4(r){return kv({props:r,name:"MuiStack",defaultTheme:H4})}function W4(r,e){const t=D.Children.toArray(r).filter(Boolean);return t.reduce((n,i,a)=>(n.push(i),a<t.length-1&&n.push(D.cloneElement(e,{key:`separator-${a}`})),n),[])}const q4=r=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r],G4=({ownerState:r,theme:e})=>{let t=F({display:"flex",flexDirection:"column"},ni({theme:e},bv({values:r.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n})));if(r.spacing){const n=Cv(e),i=Object.keys(e.breakpoints.values).reduce((l,c)=>((typeof r.spacing=="object"&&r.spacing[c]!=null||typeof r.direction=="object"&&r.direction[c]!=null)&&(l[c]=!0),l),{}),a=bv({values:r.direction,base:i}),o=bv({values:r.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,c,u)=>{if(!a[l]){const p=c>0?a[u[c-1]]:"column";a[l]=p}}),t=ri(t,ni({theme:e},o,(l,c)=>r.useFlexGap?{gap:ro(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${q4(c?a[c]:r.direction)}`]:ro(n,l)}}))}return t=JH(e.breakpoints,t),t};function K4(r={}){const{createStyledComponent:e=U4,useThemeProps:t=V4,componentName:n="MuiStack"}=r,i=()=>Je({root:["root"]},l=>Pd(n,l),{}),a=e(G4);return D.forwardRef(function(l,c){const u=t(l),d=$l(u),{component:p="div",direction:h="column",spacing:m=0,divider:f,children:v,className:w,useFlexGap:y=!1}=d,g=$e(d,z4),x={direction:h,spacing:m,useFlexGap:y},b=i();return Y.jsx(a,F({as:p,ownerState:x,ref:c,className:St(b.root,w)},g,{children:f?W4(v,f):v}))})}const Y4=F({},kd,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});function J4(r){var e;return!!r[0].match(/^(typography|variants|breakpoints)$/)||!!r[0].match(/sxConfig$/)||r[0]==="palette"&&!!((e=r[1])!=null&&e.match(/^(mode)$/))||r[0]==="focus"&&r[1]!=="thickness"}const tt=(r,e)=>Pd(r,e,"Mui"),Xe=(r,e)=>OS(r,e,"Mui"),Q4=r=>r&&typeof r=="object"&&Object.keys(r).some(e=>{var t;return(t=e.match)==null?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),QS=(r,e,t)=>{e.includes("Color")&&(r.color=t),e.includes("Bg")&&(r.backgroundColor=t),e.includes("Border")&&(r.borderColor=t)},XS=(r,e,t)=>{const n={};return Object.entries(e||{}).forEach(([i,a])=>{if(i.match(new RegExp(`${r}(color|bg|border)`,"i"))&&a){const o=t?t(i):a;i.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default",n["--Icon-color"]="currentColor"),i.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),i.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),QS(n,i,o)}}),n},Gr=(r,e)=>{let t={};if(e){const{getCssVar:n,palette:i}=e;Object.entries(i).forEach(a=>{const[o,s]=a;Q4(s)&&typeof s=="object"&&(t=F({},t,{[o]:XS(r,s,l=>`var(--variant-${l}, ${n(`palette-${o}-${l}`,i[o][l])})`)}))})}return t.context=XS(r,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),t},X4=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Z4=["colorSchemes"],eV=(r="joy")=>Ev(r);function tV(r){var e,t,n,i,a,o,s,l,c,u;const d={},{cssVarPrefix:p="joy",breakpoints:h,spacing:m,components:f,variants:v,shouldSkipGeneratingVar:w=J4}=d,y=$e(d,X4),g=eV(p),x={primary:Rl.blue,neutral:Rl.grey,danger:Rl.red,success:Rl.green,warning:Rl.yellow,common:{white:"#FFF",black:"#000"}},b=q=>{var X;const ee=q.split("-"),se=ee[1],ce=ee[2];return g(q,(X=x[se])==null?void 0:X[ce])},C=q=>({plainColor:b(`palette-${q}-500`),plainHoverBg:b(`palette-${q}-100`),plainActiveBg:b(`palette-${q}-200`),plainDisabledColor:b("palette-neutral-400"),outlinedColor:b(`palette-${q}-500`),outlinedBorder:b(`palette-${q}-300`),outlinedHoverBg:b(`palette-${q}-100`),outlinedActiveBg:b(`palette-${q}-200`),outlinedDisabledColor:b("palette-neutral-400"),outlinedDisabledBorder:b("palette-neutral-200"),softColor:b(`palette-${q}-700`),softBg:b(`palette-${q}-100`),softHoverBg:b(`palette-${q}-200`),softActiveColor:b(`palette-${q}-800`),softActiveBg:b(`palette-${q}-300`),softDisabledColor:b("palette-neutral-400"),softDisabledBg:b("palette-neutral-50"),solidColor:b("palette-common-white"),solidBg:b(`palette-${q}-500`),solidHoverBg:b(`palette-${q}-600`),solidActiveBg:b(`palette-${q}-700`),solidDisabledColor:b("palette-neutral-400"),solidDisabledBg:b("palette-neutral-100")}),I=q=>({plainColor:b(`palette-${q}-300`),plainHoverBg:b(`palette-${q}-800`),plainActiveBg:b(`palette-${q}-700`),plainDisabledColor:b("palette-neutral-500"),outlinedColor:b(`palette-${q}-200`),outlinedBorder:b(`palette-${q}-700`),outlinedHoverBg:b(`palette-${q}-800`),outlinedActiveBg:b(`palette-${q}-700`),outlinedDisabledColor:b("palette-neutral-500"),outlinedDisabledBorder:b("palette-neutral-800"),softColor:b(`palette-${q}-200`),softBg:b(`palette-${q}-800`),softHoverBg:b(`palette-${q}-700`),softActiveColor:b(`palette-${q}-100`),softActiveBg:b(`palette-${q}-600`),softDisabledColor:b("palette-neutral-500"),softDisabledBg:b("palette-neutral-800"),solidColor:b("palette-common-white"),solidBg:b(`palette-${q}-500`),solidHoverBg:b(`palette-${q}-600`),solidActiveBg:b(`palette-${q}-700`),solidDisabledColor:b("palette-neutral-500"),solidDisabledBg:b("palette-neutral-800")}),S={palette:{mode:"light",primary:F({},x.primary,C("primary")),neutral:F({},x.neutral,C("neutral"),{plainColor:b("palette-neutral-700"),plainHoverColor:b("palette-neutral-900"),outlinedColor:b("palette-neutral-700")}),danger:F({},x.danger,C("danger")),success:F({},x.success,C("success")),warning:F({},x.warning,C("warning")),common:{white:"#FFF",black:"#000"},text:{primary:b("palette-neutral-800"),secondary:b("palette-neutral-700"),tertiary:b("palette-neutral-600"),icon:b("palette-neutral-500")},background:{body:b("palette-common-white"),surface:b("palette-neutral-50"),popup:b("palette-common-white"),level1:b("palette-neutral-100"),level2:b("palette-neutral-200"),level3:b("palette-neutral-300"),tooltip:b("palette-neutral-500"),backdrop:`rgba(${g("palette-neutral-darkChannel",no(x.neutral[900]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",no(x.neutral[500]))} / 0.2)`,focusVisible:b("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},P={palette:{mode:"dark",primary:F({},x.primary,I("primary")),neutral:F({},x.neutral,I("neutral"),{plainColor:b("palette-neutral-300"),plainHoverColor:b("palette-neutral-300")}),danger:F({},x.danger,I("danger")),success:F({},x.success,I("success")),warning:F({},x.warning,I("warning")),common:{white:"#FFF",black:"#000"},text:{primary:b("palette-neutral-100"),secondary:b("palette-neutral-300"),tertiary:b("palette-neutral-400"),icon:b("palette-neutral-400")},background:{body:b("palette-common-black"),surface:b("palette-neutral-900"),popup:b("palette-common-black"),level1:b("palette-neutral-800"),level2:b("palette-neutral-700"),level3:b("palette-neutral-600"),tooltip:b("palette-neutral-600"),backdrop:`rgba(${g("palette-neutral-darkChannel",no(x.neutral[50]))} / 0.25)`},divider:`rgba(${g("palette-neutral-mainChannel",no(x.neutral[500]))} / 0.16)`,focusVisible:b("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},_='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',k=F({body:`"Inter", ${g(`fontFamily-fallback, ${_}`)}`,display:`"Inter", ${g(`fontFamily-fallback, ${_}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:_},y.fontFamily),T=F({sm:300,md:500,lg:600,xl:700},y.fontWeight),E=F({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},y.fontSize),M=F({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},y.lineHeight),O=(e=(t=y.colorSchemes)==null||(t=t.light)==null?void 0:t.shadowRing)!=null?e:S.shadowRing,L=(n=(i=y.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowChannel)!=null?n:S.shadowChannel,N=(a=(o=y.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowOpacity)!=null?a:S.shadowOpacity,W={colorSchemes:{light:S,dark:P},fontSize:E,fontFamily:k,fontWeight:T,focus:{thickness:"2px",selector:`&.${tt("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${g("focus-thickness",(s=(l=y.focus)==null?void 0:l.thickness)!=null?s:"2px")})`,outline:`${g("focus-thickness",(c=(u=y.focus)==null?void 0:u.thickness)!=null?c:"2px")} solid ${g("palette-focusVisible",x.primary[500])}`}},lineHeight:M,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${g("shadowRing",O)}, 0px 1px 2px 0px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,sm:`${g("shadowRing",O)}, 0px 1px 2px 0px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 2px 4px 0px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,md:`${g("shadowRing",O)}, 0px 2px 8px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 6px 12px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,lg:`${g("shadowRing",O)}, 0px 2px 8px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 12px 16px -4px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`,xl:`${g("shadowRing",O)}, 0px 2px 8px -2px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)}), 0px 20px 24px -4px rgba(${g("shadowChannel",L)} / ${g("shadowOpacity",N)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-xl, ${T.xl}`),fontSize:g(`fontSize-xl4, ${E.xl4}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},h2:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-xl, ${T.xl}`),fontSize:g(`fontSize-xl3, ${E.xl3}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},h3:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-lg, ${T.lg}`),fontSize:g(`fontSize-xl2, ${E.xl2}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},h4:{fontFamily:g(`fontFamily-display, ${k.display}`),fontWeight:g(`fontWeight-lg, ${T.lg}`),fontSize:g(`fontSize-xl, ${E.xl}`),lineHeight:g(`lineHeight-md, ${M.md}`),letterSpacing:"-0.025em",color:g(`palette-text-primary, ${S.palette.text.primary}`)},"title-lg":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-lg, ${T.lg}`),fontSize:g(`fontSize-lg, ${E.lg}`),lineHeight:g(`lineHeight-xs, ${M.xs}`),color:g(`palette-text-primary, ${S.palette.text.primary}`)},"title-md":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-md, ${T.md}`),fontSize:g(`fontSize-md, ${E.md}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-primary, ${S.palette.text.primary}`)},"title-sm":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-md, ${T.md}`),fontSize:g(`fontSize-sm, ${E.sm}`),lineHeight:g(`lineHeight-sm, ${M.sm}`),color:g(`palette-text-primary, ${S.palette.text.primary}`)},"body-lg":{fontFamily:g(`fontFamily-body, ${k.body}`),fontSize:g(`fontSize-lg, ${E.lg}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-secondary, ${S.palette.text.secondary}`)},"body-md":{fontFamily:g(`fontFamily-body, ${k.body}`),fontSize:g(`fontSize-md, ${E.md}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-secondary, ${S.palette.text.secondary}`)},"body-sm":{fontFamily:g(`fontFamily-body, ${k.body}`),fontSize:g(`fontSize-sm, ${E.sm}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-tertiary, ${S.palette.text.tertiary}`)},"body-xs":{fontFamily:g(`fontFamily-body, ${k.body}`),fontWeight:g(`fontWeight-md, ${T.md}`),fontSize:g(`fontSize-xs, ${E.xs}`),lineHeight:g(`lineHeight-md, ${M.md}`),color:g(`palette-text-tertiary, ${S.palette.text.tertiary}`)}}},V=y?ri(W,y):W,{colorSchemes:U}=V,R=$e(V,Z4),$=F({colorSchemes:U},R,{breakpoints:bS(h??{}),components:ri({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:q,theme:X})=>{var ee;const se=q.instanceFontSize;return F({margin:"var(--Icon-margin)"},q.fontSize&&q.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${X.vars.fontSize[q.fontSize]})`},!q.htmlColor&&F({color:`var(--Icon-color, ${$.vars.palette.text.icon})`},q.color&&q.color!=="inherit"&&X.vars.palette[q.color]&&{color:`rgba(${(ee=X.vars.palette[q.color])==null?void 0:ee.mainChannel} / 1)`}),se&&se!=="inherit"&&{"--Icon-fontSize":X.vars.fontSize[se]})}}}},f),cssVarPrefix:p,getCssVar:g,spacing:SS(m)});function j(q,X){Object.keys(X).forEach(ee=>{const se={main:"500",light:"200",dark:"700"};q==="dark"&&(se.main=400),!X[ee].mainChannel&&X[ee][se.main]&&(X[ee].mainChannel=no(X[ee][se.main])),!X[ee].lightChannel&&X[ee][se.light]&&(X[ee].lightChannel=no(X[ee][se.light])),!X[ee].darkChannel&&X[ee][se.dark]&&(X[ee].darkChannel=no(X[ee][se.dark]))})}Object.entries($.colorSchemes).forEach(([q,X])=>{j(q,X.palette)});const B={prefix:p,shouldSkipGeneratingVar:w},{vars:J,generateCssVars:G}=_4(F({colorSchemes:U},R),B);$.vars=J,$.generateCssVars=G,$.unstable_sxConfig=F({},Y4,void 0),$.unstable_sx=function(X){return Ll({sx:X,theme:this})},$.getColorSchemeSelector=q=>q==="light"?"&":`&[data-joy-color-scheme="${q}"], [data-joy-color-scheme="${q}"] &`;const K={getCssVar:g,palette:$.colorSchemes.light.palette};return $.variants=ri({plain:Gr("plain",K),plainHover:Gr("plainHover",K),plainActive:Gr("plainActive",K),plainDisabled:Gr("plainDisabled",K),outlined:Gr("outlined",K),outlinedHover:Gr("outlinedHover",K),outlinedActive:Gr("outlinedActive",K),outlinedDisabled:Gr("outlinedDisabled",K),soft:Gr("soft",K),softHover:Gr("softHover",K),softActive:Gr("softActive",K),softDisabled:Gr("softDisabled",K),solid:Gr("solid",K),solidHover:Gr("solidHover",K),solidActive:Gr("solidActive",K),solidDisabled:Gr("solidDisabled",K)},v),$.palette=F({},$.colorSchemes.light.palette,{colorScheme:"light"}),$.shouldSkipGeneratingVar=w,$.applyStyles=TS,$}const Mv=tV(),he=LS({defaultTheme:Mv,themeId:vv});function Ze({props:r,name:e}){return kv({props:r,name:e,defaultTheme:F({},Mv,{components:{}}),themeId:vv})}function Lv(r,e,t=(n,i)=>n===i){return r.length===e.length&&r.every((n,i)=>t(n,e[i]))}const rV={disableDefaultClasses:!1},nV=D.createContext(rV);function iV(r){const{disableDefaultClasses:e}=D.useContext(nV);return t=>e?"":r(t)}function aV(r){const{rootElementName:e=""}=r,[t,n]=D.useState(e.toUpperCase()),i=D.useCallback(a=>{var o;n((o=a?.tagName)!=null?o:"")},[]);return[t,i]}const ZS="base";function oV(r){return`${ZS}--${r}`}function sV(r,e){return`${ZS}-${r}-${e}`}function lV(r,e){const t=ES[e];return t?oV(t):sV(r,e)}function xa(r={}){const{disabled:e=!1,focusableWhenDisabled:t,href:n,rootRef:i,tabIndex:a,to:o,type:s,rootElementName:l}=r,c=D.useRef(null),[u,d]=D.useState(!1),{isFocusVisibleRef:p,onFocus:h,onBlur:m,ref:f}=zl(),[v,w]=D.useState(!1);e&&!t&&v&&w(!1),D.useEffect(()=>{p.current=v},[v,p]);const[y,g]=aV({rootElementName:l??(n||o?"a":void 0)}),x=O=>L=>{var N;v&&L.preventDefault(),(N=O.onMouseLeave)==null||N.call(O,L)},b=O=>L=>{var N;m(L),p.current===!1&&w(!1),(N=O.onBlur)==null||N.call(O,L)},C=O=>L=>{var N;if(c.current||(c.current=L.currentTarget),h(L),p.current===!0){var W;w(!0),(W=O.onFocusVisible)==null||W.call(O,L)}(N=O.onFocus)==null||N.call(O,L)},I=()=>{const O=c.current;return y==="BUTTON"||y==="INPUT"&&["button","submit","reset"].includes(O?.type)||y==="A"&&O?.href},S=O=>L=>{if(!e){var N;(N=O.onClick)==null||N.call(O,L)}},P=O=>L=>{var N;e||(d(!0),document.addEventListener("mouseup",()=>{d(!1)},{once:!0})),(N=O.onMouseDown)==null||N.call(O,L)},_=O=>L=>{var N;if((N=O.onKeyDown)==null||N.call(O,L),!L.defaultMuiPrevented&&(L.target===L.currentTarget&&!I()&&L.key===" "&&L.preventDefault(),L.target===L.currentTarget&&L.key===" "&&!e&&d(!0),L.target===L.currentTarget&&!I()&&L.key==="Enter"&&!e)){var W;(W=O.onClick)==null||W.call(O,L),L.preventDefault()}},k=O=>L=>{var N;if(L.target===L.currentTarget&&d(!1),(N=O.onKeyUp)==null||N.call(O,L),L.target===L.currentTarget&&!I()&&!e&&L.key===" "&&!L.defaultMuiPrevented){var W;(W=O.onClick)==null||W.call(O,L)}},T=Tt(g,i,f,c),E={};return a!==void 0&&(E.tabIndex=a),y==="BUTTON"?(E.type=s??"button",t?E["aria-disabled"]=e:E.disabled=e):y==="INPUT"?s&&["button","submit","reset"].includes(s)&&(t?E["aria-disabled"]=e:E.disabled=e):y!==""&&(!n&&!o&&(E.role="button",E.tabIndex=a??0),e&&(E["aria-disabled"]=e,E.tabIndex=t?a??0:-1)),{getRootProps:(O={})=>{const L=F({},Or(r),Or(O)),N=F({type:s},L,E,O,{onBlur:b(L),onClick:S(L),onFocus:C(L),onKeyDown:_(L),onKeyUp:k(L),onMouseDown:P(L),onMouseLeave:x(L),ref:T});return delete N.onFocusVisible,N},focusVisible:v,setFocusVisible:w,active:u,rootRef:T}}function e1(r){return r.substring(2).toLowerCase()}function cV(r,e){return e.documentElement.clientWidth<r.clientX||e.documentElement.clientHeight<r.clientY}function uV(r){const{children:e,disableReactTree:t=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=r,o=D.useRef(!1),s=D.useRef(null),l=D.useRef(!1),c=D.useRef(!1);D.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Tt(Md(e),s),d=cn(m=>{const f=c.current;c.current=!1;const v=Hr(s.current);if(!l.current||!s.current||"clientX"in m&&cV(m,v))return;if(o.current){o.current=!1;return}let w;m.composedPath?w=m.composedPath().indexOf(s.current)>-1:w=!v.documentElement.contains(m.target)||s.current.contains(m.target),!w&&(t||!f)&&i(m)}),p=m=>f=>{c.current=!0;const v=e.props[m];v&&v(f)},h={ref:u};return a!==!1&&(h[a]=p(a)),D.useEffect(()=>{if(a!==!1){const m=e1(a),f=Hr(s.current),v=()=>{o.current=!0};return f.addEventListener(m,d),f.addEventListener("touchmove",v),()=>{f.removeEventListener(m,d),f.removeEventListener("touchmove",v)}}},[d,a]),n!==!1&&(h[n]=p(n)),D.useEffect(()=>{if(n!==!1){const m=e1(n),f=Hr(s.current);return f.addEventListener(m,d),()=>{f.removeEventListener(m,d)}}},[d,n]),Y.jsx(D.Fragment,{children:D.cloneElement(e,h)})}function dV(r,e){return r===e}const $v={},t1=()=>{};function Nv(r,e){const t=F({},r);return Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),t}function pV(r){const{nextState:e,initialState:t,stateComparers:n,onStateChange:i,controlledProps:a,lastActionRef:o}=r,s=D.useRef(t);D.useEffect(()=>{if(o.current===null)return;const l=Nv(s.current,a);Object.keys(e).forEach(c=>{var u;const d=(u=n[c])!=null?u:dV,p=e[c],h=l[c];if(h==null&&p!=null||h!=null&&p==null||h!=null&&p!=null&&!d(p,h)){var m,f;i?.((m=o.current.event)!=null?m:null,c,p,(f=o.current.type)!=null?f:"",e)}}),s.current=e,o.current=null},[s,e,o,i,n,a])}function hV(r){const e=D.useRef(null),{reducer:t,initialState:n,controlledProps:i=$v,stateComparers:a=$v,onStateChange:o=t1,actionContext:s}=r;D.useRef(i);const l=D.useCallback((p,h)=>{e.current=h;const m=Nv(p,i);return t(m,h)},[i,t]),[c,u]=D.useReducer(l,n),d=D.useCallback(p=>{u(F({},p,{context:s}))},[s]);return pV({nextState:c,initialState:n,stateComparers:a??$v,onStateChange:o??t1,controlledProps:i,lastActionRef:e}),[Nv(c,i),d]}const fV=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mV(r){const e=parseInt(r.getAttribute("tabindex")||"",10);return Number.isNaN(e)?r.contentEditable==="true"||(r.nodeName==="AUDIO"||r.nodeName==="VIDEO"||r.nodeName==="DETAILS")&&r.getAttribute("tabindex")===null?0:r.tabIndex:e}function gV(r){if(r.tagName!=="INPUT"||r.type!=="radio"||!r.name)return!1;const e=n=>r.ownerDocument.querySelector(`input[type="radio"]${n}`);let t=e(`[name="${r.name}"]:checked`);return t||(t=e(`[name="${r.name}"]`)),t!==r}function vV(r){return!(r.disabled||r.tagName==="INPUT"&&r.type==="hidden"||gV(r))}function yV(r){const e=[],t=[];return Array.from(r.querySelectorAll(fV)).forEach((n,i)=>{const a=mV(n);a===-1||!vV(n)||(a===0?e.push(n):t.push({documentOrder:i,tabIndex:a,node:n}))}),t.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(e)}function bV(){return!0}function wV(r){const{children:e,disableAutoFocus:t=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=yV,isEnabled:o=bV,open:s}=r,l=D.useRef(!1),c=D.useRef(null),u=D.useRef(null),d=D.useRef(null),p=D.useRef(null),h=D.useRef(!1),m=D.useRef(null),f=Tt(Md(e),m),v=D.useRef(null);D.useEffect(()=>{!s||!m.current||(h.current=!t)},[t,s]),D.useEffect(()=>{if(!s||!m.current)return;const g=Hr(m.current);return m.current.contains(g.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),D.useEffect(()=>{if(!s||!m.current)return;const g=Hr(m.current),x=I=>{v.current=I,!(n||!o()||I.key!=="Tab")&&g.activeElement===m.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},b=()=>{const I=m.current;if(I===null)return;if(!g.hasFocus()||!o()||l.current){l.current=!1;return}if(I.contains(g.activeElement)||n&&g.activeElement!==c.current&&g.activeElement!==u.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let S=[];if((g.activeElement===c.current||g.activeElement===u.current)&&(S=a(m.current)),S.length>0){var P,_;const k=!!((P=v.current)!=null&&P.shiftKey&&((_=v.current)==null?void 0:_.key)==="Tab"),T=S[0],E=S[S.length-1];typeof T!="string"&&typeof E!="string"&&(k?E.focus():T.focus())}else I.focus()};g.addEventListener("focusin",b),g.addEventListener("keydown",x,!0);const C=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(C),g.removeEventListener("focusin",b),g.removeEventListener("keydown",x,!0)}},[t,n,i,o,s,a]);const w=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0,p.current=g.target;const x=e.props.onFocus;x&&x(g)},y=g=>{d.current===null&&(d.current=g.relatedTarget),h.current=!0};return Y.jsxs(D.Fragment,{children:[Y.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),D.cloneElement(e,{ref:f,onFocus:w}),Y.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const xV=D.createContext(void 0);function CV(){return D.useContext(xV)}function IV(r={}){const{defaultValue:e,disabled:t=!1,error:n=!1,onBlur:i,onChange:a,onFocus:o,required:s=!1,value:l,inputRef:c}=r,u=CV();let d,p,h,m,f;if(u){var v,w,y;d=void 0,p=(v=u.disabled)!=null?v:!1,h=(w=u.error)!=null?w:!1,m=(y=u.required)!=null?y:!1,f=u.value}else d=e,p=t,h=n,m=s,f=l;const{current:g}=D.useRef(f!=null),x=D.useCallback(O=>{},[]),b=D.useRef(null),C=Tt(b,c,x),[I,S]=D.useState(!1);D.useEffect(()=>{!u&&p&&I&&(S(!1),i?.())},[u,p,I,i]);const P=O=>L=>{var N;if(u!=null&&u.disabled){L.stopPropagation();return}if((N=O.onFocus)==null||N.call(O,L),u&&u.onFocus){var W;u==null||(W=u.onFocus)==null||W.call(u)}else S(!0)},_=O=>L=>{var N;(N=O.onBlur)==null||N.call(O,L),u&&u.onBlur?u.onBlur():S(!1)},k=O=>(L,...N)=>{var W,V;if(!g&&(L.target||b.current)==null)throw new Error(wd(17));u==null||(W=u.onChange)==null||W.call(u,L),(V=O.onChange)==null||V.call(O,L,...N)},T=O=>L=>{var N;b.current&&L.currentTarget===L.target&&b.current.focus(),(N=O.onClick)==null||N.call(O,L)};return{disabled:p,error:h,focused:I,formControlContext:u,getInputProps:(O={})=>{const N=F({},{onBlur:i,onChange:a,onFocus:o},Or(O)),W=F({},N,{onBlur:_(N),onChange:k(N),onFocus:P(N)});return F({},W,{"aria-invalid":h||void 0,defaultValue:d,value:f,required:m,disabled:p},O,{ref:C},W)},getRootProps:(O={})=>{const L=Or(r,["onBlur","onChange","onFocus"]),N=F({},L,Or(O));return F({},O,N,{onClick:T(N)})},inputRef:C,required:m,value:f}}const Kt={blur:"list:blur",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};function _V(r,e,t,n,i,a){if(t.length===0||!n&&t.every((s,l)=>i(s,l)))return-1;let o=r;for(;;){if(!a&&e==="next"&&o===t.length||!a&&e==="previous"&&o===-1)return-1;if(n?!1:i(t[o],o))o+=e==="next"?1:-1,a&&(o=(o+t.length)%t.length);else return o}}function Mr(r,e,t){var n;const{items:i,isItemDisabled:a,disableListWrap:o,disabledItemsFocusable:s,itemComparer:l,focusManagement:c}=t,u=c==="DOM"?0:-1,d=i.length-1,p=r==null?-1:i.findIndex(w=>l(w,r));let h,m,f=!o;switch(e){case"reset":if(u===-1)return null;h=0,m="next",f=!1;break;case"start":h=0,m="next",f=!1;break;case"end":h=d,m="previous",f=!1;break;default:{const w=p+e;w<0?!f&&p!==-1||Math.abs(e)>1?(h=0,m="next"):(h=d,m="previous"):w>d?!f||Math.abs(e)>1?(h=d,m="previous"):(h=0,m="next"):(h=w,m=e>=0?"next":"previous")}}const v=_V(h,m,i,s,a,f);return v===-1&&r!==null&&!a(r,p)?r:(n=i[v])!=null?n:null}function SV(r,e,t,n){return t==="none"?[]:t==="single"?n(e[0],r)?e:[r]:e.some(i=>n(i,r))?e.filter(i=>!n(i,r)):[...e,r]}function Fv(r,e,t){const{itemComparer:n,isItemDisabled:i,selectionMode:a,items:o}=t,{selectedValues:s}=e,l=o.findIndex(u=>n(r,u));if(i(r,l))return e;const c=SV(r,s,a,n);return F({},e,{selectedValues:c,highlightedValue:r})}function TV(r,e,t){const n=e.highlightedValue,{orientation:i,pageSize:a}=t;switch(r){case"Home":return F({},e,{highlightedValue:Mr(n,"start",t)});case"End":return F({},e,{highlightedValue:Mr(n,"end",t)});case"PageUp":return F({},e,{highlightedValue:Mr(n,-a,t)});case"PageDown":return F({},e,{highlightedValue:Mr(n,a,t)});case"ArrowUp":if(i!=="vertical")break;return F({},e,{highlightedValue:Mr(n,-1,t)});case"ArrowDown":if(i!=="vertical")break;return F({},e,{highlightedValue:Mr(n,1,t)});case"ArrowLeft":{if(i==="vertical")break;return F({},e,{highlightedValue:Mr(n,i==="horizontal-ltr"?-1:1,t)})}case"ArrowRight":{if(i==="vertical")break;return F({},e,{highlightedValue:Mr(n,i==="horizontal-ltr"?1:-1,t)})}case"Enter":case" ":return e.highlightedValue===null?e:Fv(e.highlightedValue,e,t)}return e}function kV(r,e){return e.focusManagement==="DOM"?r:F({},r,{highlightedValue:null})}function AV(r,e,t){var n;const i=(n=t(r))==null?void 0:n.trim().toLowerCase();return!i||i.length===0?!1:i.indexOf(e)===0}function PV(r,e,t){const{items:n,isItemDisabled:i,disabledItemsFocusable:a,getItemAsString:o}=t,s=e.length>1;let l=s?r.highlightedValue:Mr(r.highlightedValue,1,t);for(let c=0;c<n.length;c+=1){if(!l||!s&&r.highlightedValue===l)return r;if(AV(l,e,o)&&(!i(l,n.indexOf(l))||a))return F({},r,{highlightedValue:l});l=Mr(l,1,t)}return r}function EV(r,e,t,n){var i;const{itemComparer:a,focusManagement:o}=n;let s=null;if(t.highlightedValue!=null){var l;s=(l=r.find(d=>a(d,t.highlightedValue)))!=null?l:null}else o==="DOM"&&e.length===0&&(s=Mr(null,"reset",n));const u=((i=t.selectedValues)!=null?i:[]).filter(d=>r.some(p=>a(p,d)));return F({},t,{highlightedValue:s,selectedValues:u})}function OV(r,e){return F({},r,{highlightedValue:Mr(null,"reset",e)})}function RV(r,e){return F({},r,{highlightedValue:Mr(null,"end",e)})}function DV(r,e){return F({},r,{selectedValues:[],highlightedValue:Mr(null,"reset",e)})}function jv(r,e){const{type:t,context:n}=e;switch(t){case Kt.keyDown:return TV(e.key,r,n);case Kt.itemClick:return Fv(e.item,r,n);case Kt.blur:return kV(r,n);case Kt.textNavigation:return PV(r,e.searchString,n);case Kt.itemsChange:return EV(e.items,e.previousItems,r,n);case Kt.resetHighlight:return OV(r,n);case Kt.highlightLast:return RV(r,n);case Kt.clearSelection:return DV(r,n);default:return r}}const MV=500;function LV(r){const e=D.useRef({searchString:"",lastTime:null});return D.useCallback(t=>{if(t.key.length===1&&t.key!==" "){const n=e.current,i=t.key.toLowerCase(),a=performance.now();n.searchString.length>0&&n.lastTime&&a-n.lastTime>MV?n.searchString=i:(n.searchString.length!==1||i!==n.searchString)&&(n.searchString+=i),n.lastTime=a,r(n.searchString,t)}},[r])}const r1={},$V=()=>{},NV=(r,e)=>r===e,FV=()=>!1,jV=r=>typeof r=="string"?r:String(r),BV=()=>({highlightedValue:null,selectedValues:[]});function n1(r){const{controlledProps:e=r1,disabledItemsFocusable:t=!1,disableListWrap:n=!1,focusManagement:i="activeDescendant",getInitialState:a=BV,getItemDomElement:o,getItemId:s,isItemDisabled:l=FV,rootRef:c,onStateChange:u=$V,items:d,itemComparer:p=NV,getItemAsString:h=jV,onChange:m,onHighlightChange:f,onItemsChange:v,orientation:w="vertical",pageSize:y=5,reducerActionContext:g=r1,selectionMode:x="single",stateReducer:b,componentName:C="useList"}=r,I=D.useRef(null),S=Tt(c,I),P=D.useCallback((K,q,X)=>{if(f?.(K,q,X),i==="DOM"&&q!=null&&(X===Kt.itemClick||X===Kt.keyDown||X===Kt.textNavigation)){var ee;o==null||(ee=o(q))==null||ee.focus()}},[o,f,i]),_=D.useMemo(()=>({highlightedValue:p,selectedValues:(K,q)=>Lv(K,q,p)}),[p]),k=D.useCallback((K,q,X,ee,se)=>{switch(u?.(K,q,X,ee,se),q){case"highlightedValue":P(K,X,ee);break;case"selectedValues":m?.(K,X,ee);break}},[P,m,u]),T=D.useMemo(()=>({disabledItemsFocusable:t,disableListWrap:n,focusManagement:i,isItemDisabled:l,itemComparer:p,items:d,getItemAsString:h,onHighlightChange:P,orientation:w,pageSize:y,selectionMode:x,stateComparers:_}),[t,n,i,l,p,d,h,P,w,y,x,_]),E=a(),M=b??jv,O=D.useMemo(()=>F({},g,T),[g,T]),[L,N]=hV({reducer:M,actionContext:O,initialState:E,controlledProps:e,stateComparers:_,onStateChange:k}),{highlightedValue:W,selectedValues:V}=L,U=LV((K,q)=>N({type:Kt.textNavigation,event:q,searchString:K})),R=D.useRef([]);D.useEffect(()=>{Lv(R.current,d,p)||(N({type:Kt.itemsChange,event:null,items:d,previousItems:R.current}),R.current=d,v?.(d))},[d,p,N,v]);const $=K=>q=>{var X;if((X=K.onKeyDown)==null||X.call(K,q),q.defaultMuiPrevented)return;const ee=["Home","End","PageUp","PageDown"];w==="vertical"?ee.push("ArrowUp","ArrowDown"):ee.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&ee.push(" ","Enter"),ee.includes(q.key)&&q.preventDefault(),N({type:Kt.keyDown,key:q.key,event:q}),U(q)},j=K=>q=>{var X,ee;(X=K.onBlur)==null||X.call(K,q),!q.defaultMuiPrevented&&((ee=I.current)!=null&&ee.contains(q.relatedTarget)||N({type:Kt.blur,event:q}))},B=(K={})=>{const q=Or(K);return F({},K,{"aria-activedescendant":i==="activeDescendant"&&W!=null?s(W):void 0,tabIndex:i==="DOM"?-1:0,ref:S},q,{onBlur:j(q),onKeyDown:$(q)})},J=D.useCallback(K=>{const q=(V??[]).some(se=>se!=null&&p(K,se)),X=W!=null&&p(K,W);return{focusable:i==="DOM",highlighted:X,selected:q}},[p,V,W,i]),G=D.useMemo(()=>({dispatch:N,getItemState:J}),[N,J]);return D.useDebugValue({state:L}),{contextValue:G,dispatch:N,getRootProps:B,rootRef:S,state:L}}const Vl=D.createContext(null);function i1(r){const{handlePointerOverEvents:e=!1,item:t}=r,n=D.useContext(Vl);if(!n)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:a}=n,{highlighted:o,selected:s,focusable:l}=a(t),c=D.useCallback(h=>m=>{var f;(f=h.onClick)==null||f.call(h,m),!m.defaultPrevented&&i({type:Kt.itemClick,item:t,event:m})},[i,t]),u=D.useCallback(h=>m=>{var f;(f=h.onMouseOver)==null||f.call(h,m),!m.defaultPrevented&&i({type:Kt.itemHover,item:t,event:m})},[i,t]);let d;return l&&(d=o?0:-1),{getRootProps:(h={})=>{const m=Or(h);return F({},h,{onClick:c(m),onPointerOver:e?u(m):void 0,tabIndex:d})},highlighted:o,selected:s}}const Ld=D.createContext(null);function zV(r){const e=Array.from(r.keys()).map(t=>{const n=r.get(t);return{key:t,subitem:n}});return e.sort((t,n)=>{const i=t.subitem.ref.current,a=n.subitem.ref.current;return i===null||a===null||i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(e.map(t=>[t.key,t.subitem]))}function Bv(){const[r,e]=D.useState(new Map),t=D.useRef(new Set),n=D.useCallback(function(c){t.current.delete(c),e(u=>{const d=new Map(u);return d.delete(c),d})},[]),i=D.useCallback(function(c,u){let d;return typeof c=="function"?d=c(t.current):d=c,t.current.add(d),e(p=>{const h=new Map(p);return h.set(d,u),h}),{id:d,deregister:()=>n(d)}},[n]),a=D.useMemo(()=>zV(r),[r]),o=D.useCallback(function(c){return Array.from(a.keys()).indexOf(c)},[a]);return{contextValue:D.useMemo(()=>({getItemIndex:o,registerItem:i,totalSubitemCount:r.size}),[o,i,r.size]),subitems:a}}function zv(r,e){const t=D.useContext(Ld);if(t===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:n}=t,[i,a]=D.useState(typeof r=="function"?void 0:r);return yi(()=>{const{id:o,deregister:s}=n(r,e);return a(o),s},[n,e,r]),{id:i,index:i!==void 0?t.getItemIndex(i):-1,totalItemCount:t.totalSubitemCount}}function Wl(r,e){return function(n={}){const i=F({},n,r(n));return F({},i,e(i))}}function HV(r){return typeof r=="function"?r():r}const a1=D.forwardRef(function(e,t){const{children:n,container:i,disablePortal:a=!1}=e,[o,s]=D.useState(null),l=Tt(D.isValidElement(n)?Md(n):null,t);if(yi(()=>{a||s(HV(i)||document.body)},[i,a]),yi(()=>{if(o&&!a)return Rd(t,o),()=>{Rd(t,null)}},[t,o,a]),a){if(D.isValidElement(n)){const c={ref:l};return D.cloneElement(n,c)}return Y.jsx(D.Fragment,{children:n})}return Y.jsx(D.Fragment,{children:o&&WL.createPortal(n,o)})});function UV(r){const e=Hr(r);return e.body===r?Fl(r).innerWidth>e.documentElement.clientWidth:r.scrollHeight>r.clientHeight}function ql(r,e){e?r.setAttribute("aria-hidden","true"):r.removeAttribute("aria-hidden")}function o1(r){return parseInt(Fl(r).getComputedStyle(r).paddingRight,10)||0}function VV(r){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(r.tagName)!==-1,n=r.tagName==="INPUT"&&r.getAttribute("type")==="hidden";return t||n}function s1(r,e,t,n,i){const a=[e,t,...n];[].forEach.call(r.children,o=>{const s=a.indexOf(o)===-1,l=!VV(o);s&&l&&ql(o,i)})}function Hv(r,e){let t=-1;return r.some((n,i)=>e(n)?(t=i,!0):!1),t}function WV(r,e){const t=[],n=r.container;if(!e.disableScrollLock){if(UV(n)){const o=m4(Hr(n));t.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${o1(n)+o}px`;const s=Hr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{t.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${o1(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Hr(n).body;else{const o=n.parentElement,s=Fl(n);a=o?.nodeName==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}t.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{t.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function qV(r){const e=[];return[].forEach.call(r.children,t=>{t.getAttribute("aria-hidden")==="true"&&e.push(t)}),e}class GV{constructor(){this.containers=void 0,this.modals=void 0,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&&ql(e.modalRef,!1);const i=qV(t);s1(t,e.mount,e.modalRef,i,!0);const a=Hv(this.containers,o=>o.container===t);return a!==-1?(this.containers[a].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=Hv(this.containers,a=>a.modals.indexOf(e)!==-1),i=this.containers[n];i.restore||(i.restore=WV(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const i=Hv(this.containers,o=>o.modals.indexOf(e)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),e.modalRef&&ql(e.modalRef,t),s1(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&ql(o.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function KV(r){return typeof r=="function"?r():r}function YV(r){return r?r.props.hasOwnProperty("in"):!1}const JV=new GV;function QV(r){const{container:e,disableEscapeKeyDown:t=!1,disableScrollLock:n=!1,manager:i=JV,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=r,p=D.useRef({}),h=D.useRef(null),m=D.useRef(null),f=Tt(m,d),[v,w]=D.useState(!u),y=YV(l);let g=!0;(r["aria-hidden"]==="false"||r["aria-hidden"]===!1)&&(g=!1);const x=()=>Hr(h.current),b=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),C=()=>{i.mount(b(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},I=cn(()=>{const L=KV(e)||x().body;i.add(b(),L),m.current&&C()}),S=D.useCallback(()=>i.isTopModal(b()),[i]),P=cn(L=>{h.current=L,L&&(u&&S()?C():m.current&&ql(m.current,g))}),_=D.useCallback(()=>{i.remove(b(),g)},[g,i]);D.useEffect(()=>()=>{_()},[_]),D.useEffect(()=>{u?I():(!y||!a)&&_()},[u,_,y,a,I]);const k=L=>N=>{var W;(W=L.onKeyDown)==null||W.call(L,N),!(N.key!=="Escape"||N.which===229||!S())&&(t||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},T=L=>N=>{var W;(W=L.onClick)==null||W.call(L,N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(L={})=>{const N=Or(r);delete N.onTransitionEnter,delete N.onTransitionExited;const W=F({},N,L);return F({role:"presentation"},W,{onKeyDown:k(W),ref:f})},getBackdropProps:(L={})=>{const N=L;return F({"aria-hidden":!0},N,{onClick:T(N),open:u})},getTransitionProps:()=>{const L=()=>{w(!1),o&&o()},N=()=>{w(!0),s&&s(),a&&_()};return{onEnter:jS(L,l?.props.onEnter),onExited:jS(N,l?.props.onExited)}},rootRef:f,portalRef:P,isTopModal:S,exited:v,hasTransition:y}}function XV(r){const{value:e,label:t,disabled:n,rootRef:i,id:a}=r,{getRootProps:o,highlighted:s,selected:l}=i1({item:e}),{getRootProps:c,rootRef:u}=xa({disabled:n,focusableWhenDisabled:!0}),d=Cn(a),p=D.useRef(null),h=D.useMemo(()=>({disabled:n,label:t,value:e,ref:p,id:d}),[n,t,e,d]),{index:m}=zv(e,h),f=Tt(i,p,u),v=y=>g=>{var x;(x=y.onKeyDown)==null||x.call(y,g),!g.defaultMuiPrevented&&[" ","Enter"].includes(g.key)&&(g.defaultMuiPrevented=!0)},w=(y={})=>({onKeyDown:v(y)});return{getRootProps:(y={})=>{const g=Or(y),x=Wl(o,Wl(c,w));return F({},y,g,x(g),{id:d,ref:f,role:"option","aria-selected":l})},highlighted:s,index:m,selected:l,rootRef:f}}function ZV(r){const e=D.useContext(Vl);if(!e)throw new Error("Option: ListContext was not found.");const{getItemState:t,dispatch:n}=e,{highlighted:i,selected:a,focusable:o}=t(r),s=D.useCallback(c=>{if(c!==r)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:a,focusable:o}},[i,a,o,r]);return{contextValue:D.useMemo(()=>({dispatch:n,getItemState:s}),[n,s])}}var un="top",$n="bottom",Nn="right",dn="left",Uv="auto",Gl=[un,$n,Nn,dn],Go="start",Kl="end",e3="clippingParents",l1="viewport",Yl="popper",t3="reference",c1=Gl.reduce(function(r,e){return r.concat([e+"-"+Go,e+"-"+Kl])},[]),u1=[].concat(Gl,[Uv]).reduce(function(r,e){return r.concat([e,e+"-"+Go,e+"-"+Kl])},[]),r3="beforeRead",n3="read",i3="afterRead",a3="beforeMain",o3="main",s3="afterMain",l3="beforeWrite",c3="write",u3="afterWrite",d3=[r3,n3,i3,a3,o3,s3,l3,c3,u3];function bi(r){return r?(r.nodeName||"").toLowerCase():null}function In(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function io(r){var e=In(r).Element;return r instanceof e||r instanceof Element}function Fn(r){var e=In(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function Vv(r){if(typeof ShadowRoot>"u")return!1;var e=In(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function p3(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},a=e.elements[t];!Fn(a)||!bi(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function h3(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),s=o.reduce(function(l,c){return l[c]="",l},{});!Fn(i)||!bi(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const f3={name:"applyStyles",enabled:!0,phase:"write",fn:p3,effect:h3,requires:["computeStyles"]};function wi(r){return r.split("-")[0]}var ao=Math.max,$d=Math.min,Ko=Math.round;function Wv(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function d1(){return!/^((?!chrome|android).)*safari/i.test(Wv())}function Yo(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=r.getBoundingClientRect(),i=1,a=1;e&&Fn(r)&&(i=r.offsetWidth>0&&Ko(n.width)/r.offsetWidth||1,a=r.offsetHeight>0&&Ko(n.height)/r.offsetHeight||1);var o=io(r)?In(r):window,s=o.visualViewport,l=!d1()&&t,c=(n.left+(l&&s?s.offsetLeft:0))/i,u=(n.top+(l&&s?s.offsetTop:0))/a,d=n.width/i,p=n.height/a;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function qv(r){var e=Yo(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function p1(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&Vv(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Fi(r){return In(r).getComputedStyle(r)}function m3(r){return["table","td","th"].indexOf(bi(r))>=0}function Ca(r){return((io(r)?r.ownerDocument:r.document)||window.document).documentElement}function Nd(r){return bi(r)==="html"?r:r.assignedSlot||r.parentNode||(Vv(r)?r.host:null)||Ca(r)}function h1(r){return!Fn(r)||Fi(r).position==="fixed"?null:r.offsetParent}function g3(r){var e=/firefox/i.test(Wv()),t=/Trident/i.test(Wv());if(t&&Fn(r)){var n=Fi(r);if(n.position==="fixed")return null}var i=Nd(r);for(Vv(i)&&(i=i.host);Fn(i)&&["html","body"].indexOf(bi(i))<0;){var a=Fi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Jl(r){for(var e=In(r),t=h1(r);t&&m3(t)&&Fi(t).position==="static";)t=h1(t);return t&&(bi(t)==="html"||bi(t)==="body"&&Fi(t).position==="static")?e:t||g3(r)||e}function Gv(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ql(r,e,t){return ao(r,$d(e,t))}function v3(r,e,t){var n=Ql(r,e,t);return n>t?t:n}function f1(){return{top:0,right:0,bottom:0,left:0}}function m1(r){return Object.assign({},f1(),r)}function g1(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var y3=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,m1(typeof e!="number"?e:g1(e,Gl))};function b3(r){var e,t=r.state,n=r.name,i=r.options,a=t.elements.arrow,o=t.modifiersData.popperOffsets,s=wi(t.placement),l=Gv(s),c=[dn,Nn].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=y3(i.padding,t),p=qv(a),h=l==="y"?un:dn,m=l==="y"?$n:Nn,f=t.rects.reference[u]+t.rects.reference[l]-o[l]-t.rects.popper[u],v=o[l]-t.rects.reference[l],w=Jl(a),y=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,g=f/2-v/2,x=d[h],b=y-p[u]-d[m],C=y/2-p[u]/2+g,I=Ql(x,C,b),S=l;t.modifiersData[n]=(e={},e[S]=I,e.centerOffset=I-C,e)}}function w3(r){var e=r.state,t=r.options,n=t.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||p1(e.elements.popper,i)&&(e.elements.arrow=i))}const x3={name:"arrow",enabled:!0,phase:"main",fn:b3,effect:w3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jo(r){return r.split("-")[1]}var C3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I3(r,e){var t=r.x,n=r.y,i=e.devicePixelRatio||1;return{x:Ko(t*i)/i||0,y:Ko(n*i)/i||0}}function v1(r){var e,t=r.popper,n=r.popperRect,i=r.placement,a=r.variation,o=r.offsets,s=r.position,l=r.gpuAcceleration,c=r.adaptive,u=r.roundOffsets,d=r.isFixed,p=o.x,h=p===void 0?0:p,m=o.y,f=m===void 0?0:m,v=typeof u=="function"?u({x:h,y:f}):{x:h,y:f};h=v.x,f=v.y;var w=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),g=dn,x=un,b=window;if(c){var C=Jl(t),I="clientHeight",S="clientWidth";if(C===In(t)&&(C=Ca(t),Fi(C).position!=="static"&&s==="absolute"&&(I="scrollHeight",S="scrollWidth")),C=C,i===un||(i===dn||i===Nn)&&a===Kl){x=$n;var P=d&&C===b&&b.visualViewport?b.visualViewport.height:C[I];f-=P-n.height,f*=l?1:-1}if(i===dn||(i===un||i===$n)&&a===Kl){g=Nn;var _=d&&C===b&&b.visualViewport?b.visualViewport.width:C[S];h-=_-n.width,h*=l?1:-1}}var k=Object.assign({position:s},c&&C3),T=u===!0?I3({x:h,y:f},In(t)):{x:h,y:f};if(h=T.x,f=T.y,l){var E;return Object.assign({},k,(E={},E[x]=y?"0":"",E[g]=w?"0":"",E.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",E))}return Object.assign({},k,(e={},e[x]=y?f+"px":"",e[g]=w?h+"px":"",e.transform="",e))}function _3(r){var e=r.state,t=r.options,n=t.gpuAcceleration,i=n===void 0?!0:n,a=t.adaptive,o=a===void 0?!0:a,s=t.roundOffsets,l=s===void 0?!0:s,c={placement:wi(e.placement),variation:Jo(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,v1(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,v1(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const S3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_3,data:{}};var Fd={passive:!0};function T3(r){var e=r.state,t=r.instance,n=r.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=In(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",t.update,Fd)}),s&&l.addEventListener("resize",t.update,Fd),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",t.update,Fd)}),s&&l.removeEventListener("resize",t.update,Fd)}}const k3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T3,data:{}};var A3={left:"right",right:"left",bottom:"top",top:"bottom"};function jd(r){return r.replace(/left|right|bottom|top/g,function(e){return A3[e]})}var P3={start:"end",end:"start"};function y1(r){return r.replace(/start|end/g,function(e){return P3[e]})}function Kv(r){var e=In(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function Yv(r){return Yo(Ca(r)).left+Kv(r).scrollLeft}function E3(r,e){var t=In(r),n=Ca(r),i=t.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=d1();(c||!c&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Yv(r),y:l}}function O3(r){var e,t=Ca(r),n=Kv(r),i=(e=r.ownerDocument)==null?void 0:e.body,a=ao(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ao(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Yv(r),l=-n.scrollTop;return Fi(i||t).direction==="rtl"&&(s+=ao(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Jv(r){var e=Fi(r),t=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+n)}function b1(r){return["html","body","#document"].indexOf(bi(r))>=0?r.ownerDocument.body:Fn(r)&&Jv(r)?r:b1(Nd(r))}function Xl(r,e){var t;e===void 0&&(e=[]);var n=b1(r),i=n===((t=r.ownerDocument)==null?void 0:t.body),a=In(n),o=i?[a].concat(a.visualViewport||[],Jv(n)?n:[]):n,s=e.concat(o);return i?s:s.concat(Xl(Nd(o)))}function Qv(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function R3(r,e){var t=Yo(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function w1(r,e,t){return e===l1?Qv(E3(r,t)):io(e)?R3(e,t):Qv(O3(Ca(r)))}function D3(r){var e=Xl(Nd(r)),t=["absolute","fixed"].indexOf(Fi(r).position)>=0,n=t&&Fn(r)?Jl(r):r;return io(n)?e.filter(function(i){return io(i)&&p1(i,n)&&bi(i)!=="body"}):[]}function M3(r,e,t,n){var i=e==="clippingParents"?D3(r):[].concat(e),a=[].concat(i,[t]),o=a[0],s=a.reduce(function(l,c){var u=w1(r,c,n);return l.top=ao(u.top,l.top),l.right=$d(u.right,l.right),l.bottom=$d(u.bottom,l.bottom),l.left=ao(u.left,l.left),l},w1(r,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function x1(r){var e=r.reference,t=r.element,n=r.placement,i=n?wi(n):null,a=n?Jo(n):null,o=e.x+e.width/2-t.width/2,s=e.y+e.height/2-t.height/2,l;switch(i){case un:l={x:o,y:e.y-t.height};break;case $n:l={x:o,y:e.y+e.height};break;case Nn:l={x:e.x+e.width,y:s};break;case dn:l={x:e.x-t.width,y:s};break;default:l={x:e.x,y:e.y}}var c=i?Gv(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Go:l[c]=l[c]-(e[u]/2-t[u]/2);break;case Kl:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function Zl(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=n===void 0?r.placement:n,a=t.strategy,o=a===void 0?r.strategy:a,s=t.boundary,l=s===void 0?e3:s,c=t.rootBoundary,u=c===void 0?l1:c,d=t.elementContext,p=d===void 0?Yl:d,h=t.altBoundary,m=h===void 0?!1:h,f=t.padding,v=f===void 0?0:f,w=m1(typeof v!="number"?v:g1(v,Gl)),y=p===Yl?t3:Yl,g=r.rects.popper,x=r.elements[m?y:p],b=M3(io(x)?x:x.contextElement||Ca(r.elements.popper),l,u,o),C=Yo(r.elements.reference),I=x1({reference:C,element:g,placement:i}),S=Qv(Object.assign({},g,I)),P=p===Yl?S:C,_={top:b.top-P.top+w.top,bottom:P.bottom-b.bottom+w.bottom,left:b.left-P.left+w.left,right:P.right-b.right+w.right},k=r.modifiersData.offset;if(p===Yl&&k){var T=k[i];Object.keys(_).forEach(function(E){var M=[Nn,$n].indexOf(E)>=0?1:-1,O=[un,$n].indexOf(E)>=0?"y":"x";_[E]+=T[O]*M})}return _}function L3(r,e){e===void 0&&(e={});var t=e,n=t.placement,i=t.boundary,a=t.rootBoundary,o=t.padding,s=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?u1:l,u=Jo(n),d=u?s?c1:c1.filter(function(m){return Jo(m)===u}):Gl,p=d.filter(function(m){return c.indexOf(m)>=0});p.length===0&&(p=d);var h=p.reduce(function(m,f){return m[f]=Zl(r,{placement:f,boundary:i,rootBoundary:a,padding:o})[wi(f)],m},{});return Object.keys(h).sort(function(m,f){return h[m]-h[f]})}function $3(r){if(wi(r)===Uv)return[];var e=jd(r);return[y1(r),e,y1(e)]}function N3(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var i=t.mainAxis,a=i===void 0?!0:i,o=t.altAxis,s=o===void 0?!0:o,l=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,m=h===void 0?!0:h,f=t.allowedAutoPlacements,v=e.options.placement,w=wi(v),y=w===v,g=l||(y||!m?[jd(v)]:$3(v)),x=[v].concat(g).reduce(function(B,J){return B.concat(wi(J)===Uv?L3(e,{placement:J,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}):J)},[]),b=e.rects.reference,C=e.rects.popper,I=new Map,S=!0,P=x[0],_=0;_<x.length;_++){var k=x[_],T=wi(k),E=Jo(k)===Go,M=[un,$n].indexOf(T)>=0,O=M?"width":"height",L=Zl(e,{placement:k,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),N=M?E?Nn:dn:E?$n:un;b[O]>C[O]&&(N=jd(N));var W=jd(N),V=[];if(a&&V.push(L[T]<=0),s&&V.push(L[N]<=0,L[W]<=0),V.every(function(B){return B})){P=k,S=!1;break}I.set(k,V)}if(S)for(var U=m?3:1,R=function(J){var G=x.find(function(K){var q=I.get(K);if(q)return q.slice(0,J).every(function(X){return X})});if(G)return P=G,"break"},$=U;$>0;$--){var j=R($);if(j==="break")break}e.placement!==P&&(e.modifiersData[n]._skip=!0,e.placement=P,e.reset=!0)}}const F3={name:"flip",enabled:!0,phase:"main",fn:N3,requiresIfExists:["offset"],data:{_skip:!1}};function C1(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function I1(r){return[un,Nn,$n,dn].some(function(e){return r[e]>=0})}function j3(r){var e=r.state,t=r.name,n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Zl(e,{elementContext:"reference"}),s=Zl(e,{altBoundary:!0}),l=C1(o,n),c=C1(s,i,a),u=I1(l),d=I1(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const B3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:j3};function z3(r,e,t){var n=wi(r),i=[dn,un].indexOf(n)>=0?-1:1,a=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[dn,Nn].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function H3(r){var e=r.state,t=r.options,n=r.name,i=t.offset,a=i===void 0?[0,0]:i,o=u1.reduce(function(u,d){return u[d]=z3(d,e.rects,a),u},{}),s=o[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=o}const U3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H3};function V3(r){var e=r.state,t=r.name;e.modifiersData[t]=x1({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const W3={name:"popperOffsets",enabled:!0,phase:"read",fn:V3,data:{}};function q3(r){return r==="x"?"y":"x"}function G3(r){var e=r.state,t=r.options,n=r.name,i=t.mainAxis,a=i===void 0?!0:i,o=t.altAxis,s=o===void 0?!1:o,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,p=t.tether,h=p===void 0?!0:p,m=t.tetherOffset,f=m===void 0?0:m,v=Zl(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),w=wi(e.placement),y=Jo(e.placement),g=!y,x=Gv(w),b=q3(x),C=e.modifiersData.popperOffsets,I=e.rects.reference,S=e.rects.popper,P=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,_=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(C){if(a){var E,M=x==="y"?un:dn,O=x==="y"?$n:Nn,L=x==="y"?"height":"width",N=C[x],W=N+v[M],V=N-v[O],U=h?-S[L]/2:0,R=y===Go?I[L]:S[L],$=y===Go?-S[L]:-I[L],j=e.elements.arrow,B=h&&j?qv(j):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:f1(),G=J[M],K=J[O],q=Ql(0,I[L],B[L]),X=g?I[L]/2-U-q-G-_.mainAxis:R-q-G-_.mainAxis,ee=g?-I[L]/2+U+q+K+_.mainAxis:$+q+K+_.mainAxis,se=e.elements.arrow&&Jl(e.elements.arrow),ce=se?x==="y"?se.clientTop||0:se.clientLeft||0:0,Ae=(E=k?.[x])!=null?E:0,Le=N+X-Ae-ce,Ee=N+ee-Ae,Oe=Ql(h?$d(W,Le):W,N,h?ao(V,Ee):V);C[x]=Oe,T[x]=Oe-N}if(s){var ve,ne=x==="x"?un:dn,ae=x==="x"?$n:Nn,pe=C[b],xe=b==="y"?"height":"width",ue=pe+v[ne],Pe=pe-v[ae],je=[un,dn].indexOf(w)!==-1,Be=(ve=k?.[b])!=null?ve:0,st=je?ue:pe-I[xe]-S[xe]-Be+_.altAxis,Qe=je?pe+I[xe]+S[xe]-Be-_.altAxis:Pe,de=h&&je?v3(st,pe,Qe):Ql(h?st:ue,pe,h?Qe:Pe);C[b]=de,T[b]=de-pe}e.modifiersData[n]=T}}const K3={name:"preventOverflow",enabled:!0,phase:"main",fn:G3,requiresIfExists:["offset"]};function Y3(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function J3(r){return r===In(r)||!Fn(r)?Kv(r):Y3(r)}function Q3(r){var e=r.getBoundingClientRect(),t=Ko(e.width)/r.offsetWidth||1,n=Ko(e.height)/r.offsetHeight||1;return t!==1||n!==1}function X3(r,e,t){t===void 0&&(t=!1);var n=Fn(e),i=Fn(e)&&Q3(e),a=Ca(e),o=Yo(r,i,t),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!t)&&((bi(e)!=="body"||Jv(a))&&(s=J3(e)),Fn(e)?(l=Yo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Yv(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Z3(r){var e=new Map,t=new Set,n=[];r.forEach(function(a){e.set(a.name,a)});function i(a){t.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!t.has(s)){var l=e.get(s);l&&i(l)}}),n.push(a)}return r.forEach(function(a){t.has(a.name)||i(a)}),n}function eW(r){var e=Z3(r);return d3.reduce(function(t,n){return t.concat(e.filter(function(i){return i.phase===n}))},[])}function tW(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function rW(r){var e=r.reduce(function(t,n){var i=t[n.name];return t[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var _1={placement:"bottom",modifiers:[],strategy:"absolute"};function S1(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function nW(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,i=e.defaultOptions,a=i===void 0?_1:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_1,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:u,setOptions:function(w){var y=typeof w=="function"?w(u.options):w;f(),u.options=Object.assign({},a,u.options,y),u.scrollParents={reference:io(s)?Xl(s):s.contextElement?Xl(s.contextElement):[],popper:Xl(l)};var g=eW(rW([].concat(n,u.options.modifiers)));return u.orderedModifiers=g.filter(function(x){return x.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var w=u.elements,y=w.reference,g=w.popper;if(S1(y,g)){u.rects={reference:X3(y,Jl(g),u.options.strategy==="fixed"),popper:qv(g)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(_){return u.modifiersData[_.name]=Object.assign({},_.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var b=u.orderedModifiers[x],C=b.fn,I=b.options,S=I===void 0?{}:I,P=b.name;typeof C=="function"&&(u=C({state:u,options:S,name:P,instance:h})||u)}}}},update:tW(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){f(),p=!0}};if(!S1(s,l))return h;h.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var w=v.name,y=v.options,g=y===void 0?{}:y,x=v.effect;if(typeof x=="function"){var b=x({state:u,name:w,instance:h,options:g}),C=function(){};d.push(b||C)}})}function f(){d.forEach(function(v){return v()}),d=[]}return h}}var iW=[k3,W3,S3,f3,U3,F3,K3,x3,B3],aW=nW({defaultModifiers:iW});const oW="Popper";function sW(r){return lV(oW,r)}const lW=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],cW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function uW(r,e){if(e==="ltr")return r;switch(r){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 r}}function Xv(r){return typeof r=="function"?r():r}function dW(r){return r.nodeType!==void 0}const pW=()=>Je({root:["root"]},iV(sW)),hW={},fW=D.forwardRef(function(e,t){var n;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:m={},TransitionProps:f}=e,v=$e(e,lW),w=D.useRef(null),y=Tt(w,t),g=D.useRef(null),x=Tt(g,p),b=D.useRef(x);yi(()=>{b.current=x},[x]),D.useImperativeHandle(p,()=>g.current,[]);const C=uW(u,o),[I,S]=D.useState(C),[P,_]=D.useState(Xv(i));D.useEffect(()=>{g.current&&g.current.forceUpdate()}),D.useEffect(()=>{i&&_(Xv(i))},[i]),yi(()=>{if(!P||!c)return;const O=W=>{S(W.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{O(W)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const N=aW(P,w.current,F({placement:C},d,{modifiers:L}));return b.current(N),()=>{N.destroy(),b.current(null)}},[P,s,l,c,d,C]);const k={placement:I};f!==null&&(k.TransitionProps=f);const T=pW(),E=(n=m.root)!=null?n:"div",M=y4({elementType:E,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:T.root});return Y.jsx(E,F({},M,{children:typeof a=="function"?a(k):a}))}),Zv=D.forwardRef(function(e,t){const{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=hW,popperRef:h,style:m,transition:f=!1,slotProps:v={},slots:w={}}=e,y=$e(e,cW),[g,x]=D.useState(!0),b=()=>{x(!1)},C=()=>{x(!0)};if(!l&&!u&&(!f||g))return null;let I;if(a)I=a;else if(n){const _=Xv(n);I=_&&dW(_)?Hr(_).body:Hr(null).body}const S=!u&&l&&(!f||g)?"none":void 0,P=f?{in:u,onEnter:b,onExited:C}:void 0;return Y.jsx(a1,{disablePortal:s,container:I,children:Y.jsx(fW,F({anchorEl:n,direction:o,disablePortal:s,modifiers:c,ref:t,open:f?!g:u,placement:d,popperOptions:p,popperRef:h,slotProps:v,slots:w},y,{style:F({position:"fixed",top:0,left:0,display:S},m),TransitionProps:P,children:i}))})}),Bd={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"},mW=r=>{const{label:e,value:t}=r;return typeof e=="string"?e:typeof t=="string"?t:String(r)};function gW(r,e){const{open:t}=r,{context:{selectionMode:n}}=e;if(e.type===Bd.buttonClick){var i;const l=(i=r.selectedValues[0])!=null?i:Mr(null,"start",e.context);return F({},r,{open:!t,highlightedValue:t?null:l})}if(e.type===Bd.browserAutoFill)return Fv(e.item,r,e.context);const a=jv(r,e);switch(e.type){case Kt.keyDown:if(r.open){if(e.event.key==="Escape")return F({},a,{open:!1})}else{if(e.event.key==="ArrowDown"){var o;return F({},r,{open:!0,highlightedValue:(o=r.selectedValues[0])!=null?o:Mr(null,"start",e.context)})}if(e.event.key==="ArrowUp"){var s;return F({},r,{open:!0,highlightedValue:(s=r.selectedValues[0])!=null?s:Mr(null,"end",e.context)})}}break;case Kt.itemClick:if(n==="single")return F({},a,{open:!1});break;case Kt.blur:return F({},a,{open:!1});default:return a}return a}function vW(r){return Array.isArray(r)?r.length===0?"":JSON.stringify(r.map(e=>e.value)):r?.value==null?"":typeof r.value=="string"||typeof r.value=="number"?r.value:JSON.stringify(r.value)}function yW(r){const{areOptionsEqual:e,buttonRef:t,defaultOpen:n=!1,defaultValue:i,disabled:a=!1,listboxId:o,listboxRef:s,multiple:l=!1,name:c,required:u,onChange:d,onHighlightChange:p,onOpenChange:h,open:m,options:f,getOptionAsString:v=mW,getSerializedValue:w=vW,value:y,componentName:g="useSelect"}=r,x=D.useRef(null),b=Tt(t,x),C=D.useRef(null),I=Cn(o);let S;y===void 0&&i===void 0?S=[]:i!==void 0&&(l?S=i:S=i==null?[]:[i]);const P=D.useMemo(()=>{if(y!==void 0)return l?y:y==null?[]:[y]},[y,l]),{subitems:_,contextValue:k}=Bv(),T=D.useMemo(()=>f!=null?new Map(f.map((_e,ke)=>[_e.value,{value:_e.value,label:_e.label,disabled:_e.disabled,ref:D.createRef(),id:`${I}_${ke}`}])):_,[f,_,I]),E=Tt(s,C),{getRootProps:M,active:O,focusVisible:L,rootRef:N}=xa({disabled:a,rootRef:b}),W=D.useMemo(()=>Array.from(T.keys()),[T]),V=D.useCallback(_e=>{if(e!==void 0){const ke=W.find(We=>e(We,_e));return T.get(ke)}return T.get(_e)},[T,e,W]),U=D.useCallback(_e=>{var ke;const We=V(_e);return(ke=We?.disabled)!=null?ke:!1},[V]),R=D.useCallback(_e=>{const ke=V(_e);return ke?v(ke):""},[V,v]),$=D.useMemo(()=>({selectedValues:P,open:m}),[P,m]),j=D.useCallback(_e=>{var ke;return(ke=T.get(_e))==null?void 0:ke.id},[T]),B=D.useCallback((_e,ke)=>{if(l)d?.(_e,ke);else{var We;d?.(_e,(We=ke[0])!=null?We:null)}},[l,d]),J=D.useCallback((_e,ke)=>{p?.(_e,ke??null)},[p]),G=D.useCallback((_e,ke,We)=>{if(ke==="open"&&(h?.(We),We===!1&&_e?.type!=="blur")){var ze;(ze=x.current)==null||ze.focus()}},[h]),K=D.useCallback(_e=>{var ke,We;return _e==null?null:(ke=(We=_.get(_e))==null?void 0:We.ref.current)!=null?ke:null},[_]),q={getInitialState:()=>{var _e;return{highlightedValue:null,selectedValues:(_e=S)!=null?_e:[],open:n}},getItemId:j,controlledProps:$,focusManagement:"DOM",getItemDomElement:K,itemComparer:e,isItemDisabled:U,rootRef:E,onChange:B,onHighlightChange:J,onStateChange:G,reducerActionContext:D.useMemo(()=>({multiple:l}),[l]),items:W,getItemAsString:R,selectionMode:l?"multiple":"single",stateReducer:gW,componentName:g},{dispatch:X,getRootProps:ee,contextValue:se,state:{open:ce,highlightedValue:Ae,selectedValues:Le},rootRef:Ee}=n1(q),Oe=D.useRef(ce);yi(()=>{if(ce&&Ae!==null){var _e;const ke=(_e=V(Ae))==null?void 0:_e.ref;if(!C.current||!(ke!=null&&ke.current))return;Oe.current||ke.current.focus({preventScroll:!0});const We=C.current.getBoundingClientRect(),ze=ke.current.getBoundingClientRect();ze.top<We.top?C.current.scrollTop-=We.top-ze.top:ze.bottom>We.bottom&&(C.current.scrollTop+=ze.bottom-We.bottom)}},[ce,Ae,V]);const ve=D.useCallback(_e=>V(_e),[V]),ne=_e=>ke=>{var We;if(_e==null||(We=_e.onClick)==null||We.call(_e,ke),!ke.defaultMuiPrevented){const ze={type:Bd.buttonClick,event:ke};X(ze)}},ae=_e=>ke=>{var We;(We=_e.onKeyDown)==null||We.call(_e,ke),!ke.defaultMuiPrevented&&(ke.key==="ArrowDown"||ke.key==="ArrowUp")&&(ke.preventDefault(),X({type:Kt.keyDown,key:ke.key,event:ke}))},pe=(_e={})=>({onClick:ne(_e),onKeyDown:ae(_e)}),xe=(_e={})=>F({},_e,pe(_e),{role:"combobox","aria-expanded":ce,"aria-controls":I}),ue=(_e={})=>{const ke=Or(_e),We=Wl(xe,M);return F({},_e,We(ke))},Pe=_e=>ke=>{var We,ze;(We=_e.onBlur)==null||We.call(_e,ke),!ke.defaultMuiPrevented&&((ze=C.current)!=null&&ze.contains(ke.relatedTarget)||ke.relatedTarget===x.current)&&(ke.defaultMuiPrevented=!0)},je=(_e={})=>({onBlur:Pe(_e)}),Be=(_e={})=>{const ke=Or(_e),We=Wl(je,ee);return F({id:I,role:"listbox","aria-multiselectable":l?"true":void 0},_e,We(ke))};D.useDebugValue({selectedOptions:Le,highlightedOption:Ae,open:ce});const st=D.useMemo(()=>F({},se,k),[se,k]);let Qe;r.multiple?Qe=Le:Qe=Le.length>0?Le[0]:null;let de;if(l)de=Qe.map(_e=>ve(_e)).filter(_e=>_e!==void 0);else{var Ce;de=(Ce=ve(Qe))!=null?Ce:null}const ye=_e=>ke=>{var We;if(_e==null||(We=_e.onChange)==null||We.call(_e,ke),ke.defaultMuiPrevented)return;const ze=T.get(ke.target.value);ke.target.value===""?X({type:Kt.clearSelection}):ze!==void 0&&X({type:Bd.browserAutoFill,item:ze.value,event:ke})};return{buttonActive:O,buttonFocusVisible:L,buttonRef:N,contextValue:st,disabled:a,dispatch:X,getButtonProps:ue,getHiddenInputProps:(_e={})=>{const ke=Or(_e);return F({name:c,tabIndex:-1,"aria-hidden":!0,required:u?!0:void 0,value:w(de),style:US},_e,{onChange:ye(ke)})},getListboxProps:Be,getOptionMetadata:ve,listboxRef:Ee,open:ce,options:W,value:Qe,highlightedOption:Ae}}function bW(r){const{value:e,children:t}=r,{dispatch:n,getItemIndex:i,getItemState:a,registerItem:o,totalSubitemCount:s}=e,l=D.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:i}),[n,i,a]),c=D.useMemo(()=>({getItemIndex:i,registerItem:o,totalSubitemCount:s}),[o,i,s]);return Y.jsx(Ld.Provider,{value:c,children:Y.jsx(Vl.Provider,{value:l,children:t})})}const wW=2;function T1(r,e){return r-e}function k1(r,e){var t;const{index:n}=(t=r.reduce((i,a,o)=>{const s=Math.abs(e-a);return i===null||s<i.distance||s===i.distance?{distance:s,index:o}:i},null))!=null?t:{};return n}function zd(r,e){if(e.current!==void 0&&r.changedTouches){const t=r;for(let n=0;n<t.changedTouches.length;n+=1){const i=t.changedTouches[n];if(i.identifier===e.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:r.clientX,y:r.clientY}}function Hd(r,e,t){return(r-e)*100/(t-e)}function xW(r,e,t){return(t-e)*r+e}function CW(r){if(Math.abs(r)<1){const t=r.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const e=r.toString().split(".")[1];return e?e.length:0}function IW(r,e,t){const n=Math.round((r-t)/e)*e+t;return Number(n.toFixed(CW(e)))}function A1({values:r,newValue:e,index:t}){const n=r.slice();return n[t]=e,n.sort(T1)}function Ud({sliderRef:r,activeIndex:e,setActive:t}){var n,i;const a=Hr(r.current);if(!((n=r.current)!=null&&n.contains(a.activeElement))||Number(a==null||(i=a.activeElement)==null?void 0:i.getAttribute("data-index"))!==e){var o;(o=r.current)==null||o.querySelector(`[type="range"][data-index="${e}"]`).focus()}t&&t(e)}function Vd(r,e){return typeof r=="number"&&typeof e=="number"?r===e:typeof r=="object"&&typeof e=="object"?Lv(r,e):!1}const _W={horizontal:{offset:r=>({left:`${r}%`}),leap:r=>({width:`${r}%`})},"horizontal-reverse":{offset:r=>({right:`${r}%`}),leap:r=>({width:`${r}%`})},vertical:{offset:r=>({bottom:`${r}%`}),leap:r=>({height:`${r}%`})}},SW=r=>r;let Wd;function P1(){return Wd===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Wd=CSS.supports("touch-action","none"):Wd=!0),Wd}function TW(r){const{"aria-labelledby":e,defaultValue:t,disabled:n=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:h,scale:m=SW,step:f=1,shiftStep:v=10,tabIndex:w,value:y}=r,g=D.useRef(void 0),[x,b]=D.useState(-1),[C,I]=D.useState(-1),[S,P]=D.useState(!1),_=D.useRef(0),[k,T]=wa({controlled:y,default:t??l,name:"Slider"}),E=u&&((de,Ce,ye)=>{const Ne=de.nativeEvent||de,_e=new Ne.constructor(Ne.type,Ne);Object.defineProperty(_e,"target",{writable:!0,value:{value:Ce,name:c}}),u(_e,Ce,ye)}),M=Array.isArray(k);let O=M?k.slice().sort(T1):[k];O=O.map(de=>de==null?l:Nl(de,l,s));const L=o===!0&&f!==null?[...Array(Math.floor((s-l)/f)+1)].map((de,Ce)=>({value:l+f*Ce})):o||[],N=L.map(de=>de.value),{isFocusVisibleRef:W,onBlur:V,onFocus:U,ref:R}=zl(),[$,j]=D.useState(-1),B=D.useRef(null),J=Tt(R,B),G=Tt(h,J),K=de=>Ce=>{var ye;const Ne=Number(Ce.currentTarget.getAttribute("data-index"));U(Ce),W.current===!0&&j(Ne),I(Ne),de==null||(ye=de.onFocus)==null||ye.call(de,Ce)},q=de=>Ce=>{var ye;V(Ce),W.current===!1&&j(-1),I(-1),de==null||(ye=de.onBlur)==null||ye.call(de,Ce)},X=(de,Ce)=>{const ye=Number(de.currentTarget.getAttribute("data-index")),Ne=O[ye],_e=N.indexOf(Ne);let ke=Ce;if(L&&f==null){const We=N[N.length-1];ke>We?ke=We:ke<N[0]?ke=N[0]:ke=ke<Ne?N[_e-1]:N[_e+1]}if(ke=Nl(ke,l,s),M){i&&(ke=Nl(ke,O[ye-1]||-1/0,O[ye+1]||1/0));const We=ke;ke=A1({values:O,newValue:ke,index:ye});let ze=ye;i||(ze=ke.indexOf(We)),Ud({sliderRef:B,activeIndex:ze})}T(ke),j(ye),E&&!Vd(ke,k)&&E(de,ke,ye),d&&d(de,ke)},ee=de=>Ce=>{var ye;if(f!==null){const Ne=Number(Ce.currentTarget.getAttribute("data-index")),_e=O[Ne];let ke=null;(Ce.key==="ArrowLeft"||Ce.key==="ArrowDown")&&Ce.shiftKey||Ce.key==="PageDown"?ke=Math.max(_e-v,l):((Ce.key==="ArrowRight"||Ce.key==="ArrowUp")&&Ce.shiftKey||Ce.key==="PageUp")&&(ke=Math.min(_e+v,s)),ke!==null&&(X(Ce,ke),Ce.preventDefault())}de==null||(ye=de.onKeyDown)==null||ye.call(de,Ce)};yi(()=>{if(n&&B.current.contains(document.activeElement)){var de;(de=document.activeElement)==null||de.blur()}},[n]),n&&x!==-1&&b(-1),n&&$!==-1&&j(-1);const se=de=>Ce=>{var ye;(ye=de.onChange)==null||ye.call(de,Ce),X(Ce,Ce.target.valueAsNumber)},ce=D.useRef(void 0);let Ae=p;a&&p==="horizontal"&&(Ae+="-reverse");const Le=({finger:de,move:Ce=!1})=>{const{current:ye}=B,{width:Ne,height:_e,bottom:ke,left:We}=ye.getBoundingClientRect();let ze;Ae.indexOf("vertical")===0?ze=(ke-de.y)/_e:ze=(de.x-We)/Ne,Ae.indexOf("-reverse")!==-1&&(ze=1-ze);let kt;if(kt=xW(ze,l,s),f)kt=IW(kt,f,l);else{const yr=k1(N,kt);kt=N[yr]}kt=Nl(kt,l,s);let ht=0;if(M){Ce?ht=ce.current:ht=k1(O,kt),i&&(kt=Nl(kt,O[ht-1]||-1/0,O[ht+1]||1/0));const yr=kt;kt=A1({values:O,newValue:kt,index:ht}),i&&Ce||(ht=kt.indexOf(yr),ce.current=ht)}return{newValue:kt,activeIndex:ht}},Ee=cn(de=>{const Ce=zd(de,g);if(!Ce)return;if(_.current+=1,de.type==="mousemove"&&de.buttons===0){Oe(de);return}const{newValue:ye,activeIndex:Ne}=Le({finger:Ce,move:!0});Ud({sliderRef:B,activeIndex:Ne,setActive:b}),T(ye),!S&&_.current>wW&&P(!0),E&&!Vd(ye,k)&&E(de,ye,Ne)}),Oe=cn(de=>{const Ce=zd(de,g);if(P(!1),!Ce)return;const{newValue:ye}=Le({finger:Ce,move:!0});b(-1),de.type==="touchend"&&I(-1),d&&d(de,ye),g.current=void 0,ne()}),ve=cn(de=>{if(n)return;P1()||de.preventDefault();const Ce=de.changedTouches[0];Ce!=null&&(g.current=Ce.identifier);const ye=zd(de,g);if(ye!==!1){const{newValue:_e,activeIndex:ke}=Le({finger:ye});Ud({sliderRef:B,activeIndex:ke,setActive:b}),T(_e),E&&!Vd(_e,k)&&E(de,_e,ke)}_.current=0;const Ne=Hr(B.current);Ne.addEventListener("touchmove",Ee,{passive:!0}),Ne.addEventListener("touchend",Oe,{passive:!0})}),ne=D.useCallback(()=>{const de=Hr(B.current);de.removeEventListener("mousemove",Ee),de.removeEventListener("mouseup",Oe),de.removeEventListener("touchmove",Ee),de.removeEventListener("touchend",Oe)},[Oe,Ee]);D.useEffect(()=>{const{current:de}=B;return de.addEventListener("touchstart",ve,{passive:P1()}),()=>{de.removeEventListener("touchstart",ve),ne()}},[ne,ve]),D.useEffect(()=>{n&&ne()},[n,ne]);const ae=de=>Ce=>{var ye;if((ye=de.onMouseDown)==null||ye.call(de,Ce),n||Ce.defaultPrevented||Ce.button!==0)return;Ce.preventDefault();const Ne=zd(Ce,g);if(Ne!==!1){const{newValue:ke,activeIndex:We}=Le({finger:Ne});Ud({sliderRef:B,activeIndex:We,setActive:b}),T(ke),E&&!Vd(ke,k)&&E(Ce,ke,We)}_.current=0;const _e=Hr(B.current);_e.addEventListener("mousemove",Ee,{passive:!0}),_e.addEventListener("mouseup",Oe)},pe=Hd(M?O[0]:l,l,s),xe=Hd(O[O.length-1],l,s)-pe,ue=(de={})=>{const Ce=Or(de),ye={onMouseDown:ae(Ce||{})},Ne=F({},Ce,ye);return F({},de,{ref:G},Ne)},Pe=de=>Ce=>{var ye;(ye=de.onMouseOver)==null||ye.call(de,Ce);const Ne=Number(Ce.currentTarget.getAttribute("data-index"));I(Ne)},je=de=>Ce=>{var ye;(ye=de.onMouseLeave)==null||ye.call(de,Ce),I(-1)};return{active:x,axis:Ae,axisProps:_W,dragging:S,focusedThumbIndex:$,getHiddenInputProps:(de={})=>{var Ce;const ye=Or(de),Ne={onChange:se(ye||{}),onFocus:K(ye||{}),onBlur:q(ye||{}),onKeyDown:ee(ye||{})},_e=F({},ye,Ne);return F({tabIndex:w,"aria-labelledby":e,"aria-orientation":p,"aria-valuemax":m(s),"aria-valuemin":m(l),name:c,type:"range",min:r.min,max:r.max,step:r.step===null&&r.marks?"any":(Ce=r.step)!=null?Ce:void 0,disabled:n},de,_e,{style:F({},US,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ue,getThumbProps:(de={})=>{const Ce=Or(de),ye={onMouseOver:Pe(Ce||{}),onMouseLeave:je(Ce||{})};return F({},de,Ce,ye)},marks:L,open:C,range:M,rootRef:G,trackLeap:xe,trackOffset:pe,values:O,getThumbStyle:de=>({pointerEvents:x!==-1&&x!==de?"none":void 0})}}function kW(r={}){const{autoHideDuration:e=null,disableWindowBlurListener:t=!1,onClose:n,open:i,resumeHideDuration:a}=r,o=Bl();D.useEffect(()=>{if(!i)return;function w(y){y.defaultPrevented||(y.key==="Escape"||y.key==="Esc")&&n?.(y,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,n]);const s=cn((w,y)=>{n?.(w,y)}),l=cn(w=>{!n||w==null||o.start(w,()=>{s(null,"timeout")})});D.useEffect(()=>(i&&l(e),o.clear),[i,e,l,o]);const c=w=>{n?.(w,"clickaway")},u=o.clear,d=D.useCallback(()=>{e!=null&&l(a??e*.5)},[e,a,l]),p=w=>y=>{const g=w.onBlur;g?.(y),d()},h=w=>y=>{const g=w.onFocus;g?.(y),u()},m=w=>y=>{const g=w.onMouseEnter;g?.(y),u()},f=w=>y=>{const g=w.onMouseLeave;g?.(y),d()};return D.useEffect(()=>{if(!t&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[t,i,d,u]),{getRootProps:(w={})=>{const y=F({},Or(r),Or(w));return F({role:"presentation"},w,y,{onBlur:p(y),onFocus:h(y),onMouseEnter:m(y),onMouseLeave:f(y)})},onClickAway:c}}function E1(r){const{checked:e,defaultChecked:t,disabled:n,onBlur:i,onChange:a,onFocus:o,onFocusVisible:s,readOnly:l,required:c}=r,[u,d]=wa({controlled:e,default:!!t,name:"Switch",state:"checked"}),p=S=>P=>{var _;P.nativeEvent.defaultPrevented||(d(P.target.checked),a?.(P),(_=S.onChange)==null||_.call(S,P))},{isFocusVisibleRef:h,onBlur:m,onFocus:f,ref:v}=zl(),[w,y]=D.useState(!1);n&&w&&y(!1),D.useEffect(()=>{h.current=w},[w,h]);const g=D.useRef(null),x=S=>P=>{var _;g.current||(g.current=P.currentTarget),f(P),h.current===!0&&(y(!0),s?.(P)),o?.(P),(_=S.onFocus)==null||_.call(S,P)},b=S=>P=>{var _;m(P),h.current===!1&&y(!1),i?.(P),(_=S.onBlur)==null||_.call(S,P)},C=Tt(v,g);return{checked:u,disabled:!!n,focusVisible:w,getInputProps:(S={})=>F({checked:e,defaultChecked:t,disabled:n,readOnly:l,ref:C,required:c,type:"checkbox",role:"switch","aria-checked":e},S,{onChange:p(S),onFocus:x(S),onBlur:b(S)}),inputRef:C,readOnly:!!l}}function AW(r){const{value:e,defaultValue:t,onChange:n,orientation:i="horizontal",direction:a="ltr",selectionFollowsFocus:o=!1}=r,[s,l]=wa({controlled:e,default:t,name:"Tabs",state:"value"}),c=D.useCallback((v,w)=>{l(w),n?.(v,w)},[n,l]),{subitems:u,contextValue:d}=Bv(),p=D.useRef(()=>{}),h=D.useCallback(v=>{var w;return(w=u.get(v))==null?void 0:w.id},[u]),m=D.useCallback(v=>p.current(v),[]),f=D.useCallback(v=>{p.current=v},[]);return{contextValue:F({direction:a,getTabId:m,getTabPanelId:h,onSelected:c,orientation:i,registerTabIdLookup:f,selectionFollowsFocus:o,value:s},d)}}const O1=D.createContext(null);function qd(){const r=D.useContext(O1);if(r==null)throw new Error("No TabsContext provided");return r}function PW(r){const{value:e,children:t}=r,{direction:n,getItemIndex:i,onSelected:a,orientation:o,registerItem:s,registerTabIdLookup:l,selectionFollowsFocus:c,totalSubitemCount:u,value:d,getTabId:p,getTabPanelId:h}=e,m=D.useMemo(()=>({getItemIndex:i,registerItem:s,totalSubitemCount:u}),[s,i,u]),f=D.useMemo(()=>({direction:n,getTabId:p,getTabPanelId:h,onSelected:a,orientation:o,registerTabIdLookup:l,selectionFollowsFocus:c,value:d}),[n,p,h,a,o,l,c,d]);return Y.jsx(Ld.Provider,{value:m,children:Y.jsx(O1.Provider,{value:f,children:t})})}function EW(r){return r.size}function OW(r){const{value:e,id:t,rootRef:n}=r,i=qd();if(i===null)throw new Error("No TabContext provided");const{value:a,getTabId:o}=i,s=Cn(t),l=D.useRef(null),c=Tt(l,n),u=D.useMemo(()=>({id:s,ref:l}),[s]),{id:d}=zv(e??EW,u),p=d!==a,h=d!==void 0?o(d):void 0;return{hidden:p,getRootProps:(f={})=>F({"aria-labelledby":h??void 0,hidden:p,id:s??void 0},f,{ref:c}),rootRef:c}}const R1={valueChange:"valueChange"};function RW(r,e){if(e.type===R1.valueChange)return F({},r,{highlightedValue:e.value});const t=jv(r,e),{context:{selectionFollowsFocus:n}}=e;if(e.type===Kt.itemsChange){if(t.selectedValues.length>0)return F({},t,{highlightedValue:t.selectedValues[0]});Mr(null,"reset",e.context)}return n&&t.highlightedValue!=null?F({},t,{selectedValues:[t.highlightedValue]}):t}function DW(r){var e;const{rootRef:t}=r,{direction:n="ltr",onSelected:i,orientation:a="horizontal",value:o,registerTabIdLookup:s,selectionFollowsFocus:l}=qd(),{subitems:c,contextValue:u}=Bv(),d=D.useCallback(k=>{var T;return(T=c.get(k))==null?void 0:T.id},[c]);s(d);const p=D.useMemo(()=>Array.from(c.keys()),[c]),h=D.useCallback(k=>{var T,E;return k==null?null:(T=(E=c.get(k))==null?void 0:E.ref.current)!=null?T:null},[c]),m=n==="rtl";let f;a==="vertical"?f="vertical":f=m?"horizontal-rtl":"horizontal-ltr";const v=D.useCallback((k,T)=>{var E;i(k,(E=T[0])!=null?E:null)},[i]),w=D.useMemo(()=>o===void 0?{}:o!=null?{selectedValues:[o]}:{selectedValues:[]},[o]),y=D.useCallback(k=>{var T,E;return(T=(E=c.get(k))==null?void 0:E.disabled)!=null?T:!1},[c]),{contextValue:g,dispatch:x,getRootProps:b,state:{highlightedValue:C,selectedValues:I},rootRef:S}=n1({controlledProps:w,disabledItemsFocusable:!l,focusManagement:"DOM",getItemDomElement:h,isItemDisabled:y,items:p,rootRef:t,onChange:v,orientation:f,reducerActionContext:D.useMemo(()=>({selectionFollowsFocus:l||!1}),[l]),selectionMode:"single",stateReducer:RW});D.useEffect(()=>{o!==void 0&&o!=null&&x({type:R1.valueChange,value:o})},[x,o]);const P=(k={})=>F({},k,b(k),{"aria-orientation":a==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:D.useMemo(()=>F({},u,g),[u,g]),dispatch:x,getRootProps:P,highlightedValue:C,isRtl:m,orientation:a,rootRef:S,selectedValue:(e=I[0])!=null?e:null}}function MW(r){const{value:e,children:t}=r,{dispatch:n,getItemIndex:i,getItemState:a,registerItem:o,totalSubitemCount:s}=e,l=D.useMemo(()=>({dispatch:n,getItemState:a,getItemIndex:i}),[n,i,a]),c=D.useMemo(()=>({getItemIndex:i,registerItem:o,totalSubitemCount:s}),[o,i,s]);return Y.jsx(Ld.Provider,{value:c,children:Y.jsx(Vl.Provider,{value:l,children:t})})}function LW(r){return r.size}function $W(r){const{value:e,rootRef:t,disabled:n=!1,id:i}=r,a=D.useRef(null),o=Cn(i),{value:s,selectionFollowsFocus:l,getTabPanelId:c}=qd(),u=D.useMemo(()=>({disabled:n,ref:a,id:o}),[n,a,o]),{id:d,index:p,totalItemCount:h}=zv(e??LW,u),{getRootProps:m,highlighted:f,selected:v}=i1({item:d}),{getRootProps:w,rootRef:y,active:g,focusVisible:x,setFocusVisible:b}=xa({disabled:n,focusableWhenDisabled:!l,type:"button"}),C=Tt(a,t,y),I=d!==void 0?c(d):void 0;return{getRootProps:(P={})=>{const _=Or(P),k=Wl(m,w);return F({},P,k(_),{role:"tab","aria-controls":I,"aria-selected":v,id:o,ref:C})},active:g,focusVisible:x,highlighted:f,index:p,rootRef:C,selected:v||d===s,setFocusVisible:b,totalTabsCount:h}}const NW=["onChange","maxRows","minRows","style","value"];function Gd(r){return parseInt(r,10)||0}const FW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function jW(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflowing}const BW=D.forwardRef(function(e,t){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=e,l=$e(e,NW),{current:c}=D.useRef(s!=null),u=D.useRef(null),d=Tt(t,u),p=D.useRef(null),h=D.useRef(null),m=D.useCallback(()=>{const w=u.current,g=Fl(w).getComputedStyle(w);if(g.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=g.width,x.value=w.value||e.placeholder||"x",x.value.slice(-1)===`
67
67
  `&&(x.value+=" ");const b=g.boxSizing,C=Gd(g.paddingBottom)+Gd(g.paddingTop),I=Gd(g.borderBottomWidth)+Gd(g.borderTopWidth),S=x.scrollHeight;x.value="x";const P=x.scrollHeight;let _=S;a&&(_=Math.max(Number(a)*P,_)),i&&(_=Math.min(Number(i)*P,_)),_=Math.max(_,P);const k=_+(b==="border-box"?C+I:0),T=Math.abs(_-S)<=1;return{outerHeightStyle:k,overflowing:T}},[i,a,e.placeholder]),f=D.useCallback(()=>{const w=m();if(jW(w))return;const y=w.outerHeightStyle,g=u.current;p.current!==y&&(p.current=y,g.style.height=`${y}px`),g.style.overflow=w.overflowing?"hidden":""},[m]);yi(()=>{const w=()=>{f()};let y;const g=n4(w),x=u.current,b=Fl(x);b.addEventListener("resize",g);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(w),C.observe(x)),()=>{g.clear(),cancelAnimationFrame(y),b.removeEventListener("resize",g),C&&C.disconnect()}},[m,f]),yi(()=>{f()});const v=w=>{c||f(),n&&n(w)};return Y.jsxs(D.Fragment,{children:[Y.jsx("textarea",F({value:s,onChange:v,ref:d,rows:a,style:o},l)),Y.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:F({},FW.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function D1(r){return typeof r.normalize<"u"?r.normalize("NFD").replace(/[\u0300-\u036f]/g,""):r}function zW(r={}){const{ignoreAccents:e=!0,ignoreCase:t=!0,limit:n,matchFrom:i="any",stringify:a,trim:o=!1}=r;return(s,{inputValue:l,getOptionLabel:c})=>{let u=o?l.trim():l;t&&(u=u.toLowerCase()),e&&(u=D1(u));const d=u?s.filter(p=>{let h=(a||c)(p);return t&&(h=h.toLowerCase()),e&&(h=D1(h)),i==="start"?h.indexOf(u)===0:h.indexOf(u)>-1}):s;return typeof n=="number"?d.slice(0,n):d}}function Kd(r,e){for(let t=0;t<r.length;t+=1)if(e(r[t]))return t;return-1}const HW=zW(),UW=5,VW=r=>{var e;return r.current!==null&&((e=r.current.parentElement)==null?void 0:e.contains(document.activeElement))},WW=[];function qW(r){const{unstable_isActiveElementInListbox:e=VW,unstable_classNamePrefix:t="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,clearOnBlur:s=!r.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=r.multiple?WW:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:f=!1,filterOptions:v=HW,filterSelectedOptions:w=!1,freeSolo:y=!1,getOptionDisabled:g,getOptionKey:x,getOptionLabel:b=be=>{var fe;return(fe=be.label)!=null?fe:be},groupBy:C,handleHomeEndKeys:I=!r.freeSolo,id:S,includeInputInList:P=!1,inputValue:_,isOptionEqualToValue:k=(be,fe)=>be===fe,multiple:T=!1,onChange:E,onClose:M,onHighlightChange:O,onInputChange:L,onOpen:N,open:W,openOnFocus:V=!1,options:U,readOnly:R=!1,selectOnFocus:$=!r.freeSolo,value:j}=r,B=Cn(S);let J=b;J=be=>{const fe=b(be);return typeof fe!="string"?String(fe):fe};const G=D.useRef(!1),K=D.useRef(!0),q=D.useRef(null),X=D.useRef(null),[ee,se]=D.useState(null),[ce,Ae]=D.useState(-1),Le=i?0:-1,Ee=D.useRef(Le),[Oe,ve]=wa({controlled:j,default:u,name:c}),[ne,ae]=wa({controlled:_,default:"",name:c,state:"inputValue"}),[pe,xe]=D.useState(!1),ue=D.useCallback((be,fe)=>{if(!(T?Oe.length<fe.length:fe!==null)&&!s)return;let it;if(T)it="";else if(fe==null)it="";else{const Ct=J(fe);it=typeof Ct=="string"?Ct:""}ne!==it&&(ae(it),L&&L(be,it,"reset"))},[J,ne,T,L,ae,s,Oe]),[Pe,je]=wa({controlled:W,default:!1,name:c,state:"open"}),[Be,st]=D.useState(!0),Qe=!T&&Oe!=null&&ne===J(Oe),de=Pe&&!R,Ce=de?v(U.filter(be=>!(w&&(T?Oe:[Oe]).some(fe=>fe!==null&&k(be,fe)))),{inputValue:Qe&&Be?"":ne,getOptionLabel:J}):[],ye=g4({filteredOptions:Ce,value:Oe,inputValue:ne});D.useEffect(()=>{const be=Oe!==ye.value;pe&&!be||y&&!be||ue(null,Oe)},[Oe,ue,pe,ye.value,y]);const Ne=Pe&&Ce.length>0&&!R,_e=cn(be=>{be===-1?q.current.focus():ee.querySelector(`[data-tag-index="${be}"]`).focus()});D.useEffect(()=>{T&&ce>Oe.length-1&&(Ae(-1),_e(-1))},[Oe,T,ce,_e]);function ke(be,fe){if(!X.current||be<0||be>=Ce.length)return-1;let Ue=be;for(;;){const it=X.current.querySelector(`[data-option-index="${Ue}"]`),Ct=m?!1:!it||it.disabled||it.getAttribute("aria-disabled")==="true";if(it&&it.hasAttribute("tabindex")&&!Ct)return Ue;if(fe==="next"?Ue=(Ue+1)%Ce.length:Ue=(Ue-1+Ce.length)%Ce.length,Ue===be)return-1}}const We=cn(({event:be,index:fe,reason:Ue="auto"})=>{if(Ee.current=fe,fe===-1?q.current.removeAttribute("aria-activedescendant"):q.current.setAttribute("aria-activedescendant",`${B}-option-${fe}`),O&&O(be,fe===-1?null:Ce[fe],Ue),!X.current)return;const it=X.current.querySelector(`[role="option"].${t}-focused`);it&&(it.classList.remove(`${t}-focused`),it.classList.remove(`${t}-focusVisible`));let Ct=X.current;if(X.current.getAttribute("role")!=="listbox"&&(Ct=X.current.parentElement.querySelector('[role="listbox"]')),!Ct)return;if(fe===-1){Ct.scrollTop=0;return}const Gt=X.current.querySelector(`[data-option-index="${fe}"]`);if(Gt&&(Gt.classList.add(`${t}-focused`),Ue==="keyboard"&&Gt.classList.add(`${t}-focusVisible`),Ct.scrollHeight>Ct.clientHeight&&Ue!=="mouse"&&Ue!=="touch")){const Jt=Gt,vn=Ct.clientHeight+Ct.scrollTop,ol=Jt.offsetTop+Jt.offsetHeight;ol>vn?Ct.scrollTop=ol-Ct.clientHeight:Jt.offsetTop-Jt.offsetHeight*(C?1.3:0)<Ct.scrollTop&&(Ct.scrollTop=Jt.offsetTop-Jt.offsetHeight*(C?1.3:0))}}),ze=cn(({event:be,diff:fe,direction:Ue="next",reason:it="auto"})=>{if(!de)return;const Gt=ke((()=>{const Jt=Ce.length-1;if(fe==="reset")return Le;if(fe==="start")return 0;if(fe==="end")return Jt;const vn=Ee.current+fe;return vn<0?vn===-1&&P?-1:f&&Ee.current!==-1||Math.abs(fe)>1?0:Jt:vn>Jt?vn===Jt+1&&P?-1:f||Math.abs(fe)>1?Jt:0:vn})(),Ue);if(We({index:Gt,reason:it,event:be}),n&&fe!=="reset")if(Gt===-1)q.current.value=ne;else{const Jt=J(Ce[Gt]);q.current.value=Jt,Jt.toLowerCase().indexOf(ne.toLowerCase())===0&&ne.length>0&&q.current.setSelectionRange(ne.length,Jt.length)}}),kt=()=>{const be=(fe,Ue)=>{const it=fe?J(fe):"",Ct=Ue?J(Ue):"";return it===Ct};if(Ee.current!==-1&&ye.filteredOptions&&ye.filteredOptions.length!==Ce.length&&ye.inputValue===ne&&(T?Oe.length===ye.value.length&&ye.value.every((fe,Ue)=>J(Oe[Ue])===J(fe)):be(ye.value,Oe))){const fe=ye.filteredOptions[Ee.current];if(fe)return Kd(Ce,Ue=>J(Ue)===J(fe))}return-1},ht=D.useCallback(()=>{if(!de)return;const be=kt();if(be!==-1){Ee.current=be;return}const fe=T?Oe[0]:Oe;if(Ce.length===0||fe==null){ze({diff:"reset"});return}if(X.current){if(fe!=null){const Ue=Ce[Ee.current];if(T&&Ue&&Kd(Oe,Ct=>k(Ue,Ct))!==-1)return;const it=Kd(Ce,Ct=>k(Ct,fe));it===-1?ze({diff:"reset"}):We({index:it});return}if(Ee.current>=Ce.length-1){We({index:Ce.length-1});return}We({index:Ee.current})}},[Ce.length,T?!1:Oe,w,ze,We,de,ne,T]),yr=cn(be=>{Rd(X,be),be&&ht()});D.useEffect(()=>{ht()},[ht]);const Yt=be=>{Pe||(je(!0),st(!0),N&&N(be))},Pt=(be,fe)=>{Pe&&(je(!1),M&&M(be,fe))},yt=(be,fe,Ue,it)=>{if(T){if(Oe.length===fe.length&&Oe.every((Ct,Gt)=>Ct===fe[Gt]))return}else if(Oe===fe)return;E&&E(be,fe,Ue,it),ve(fe)},mt=D.useRef(!1),xt=(be,fe,Ue="selectOption",it="options")=>{let Ct=Ue,Gt=fe;if(T){Gt=Array.isArray(Oe)?Oe.slice():[];const Jt=Kd(Gt,vn=>k(fe,vn));Jt===-1?Gt.push(fe):it!=="freeSolo"&&(Gt.splice(Jt,1),Ct="removeOption")}ue(be,Gt),yt(be,Gt,Ct,{option:fe}),!p&&(!be||!be.ctrlKey&&!be.metaKey)&&Pt(be,Ct),(o===!0||o==="touch"&&mt.current||o==="mouse"&&!mt.current)&&q.current.blur()};function Q(be,fe){if(be===-1)return-1;let Ue=be;for(;;){if(fe==="next"&&Ue===Oe.length||fe==="previous"&&Ue===-1)return-1;const it=ee.querySelector(`[data-tag-index="${Ue}"]`);if(!it||!it.hasAttribute("tabindex")||it.disabled||it.getAttribute("aria-disabled")==="true")Ue+=fe==="next"?1:-1;else return Ue}}const te=(be,fe)=>{if(!T)return;ne===""&&Pt(be,"toggleInput");let Ue=ce;ce===-1?ne===""&&fe==="previous"&&(Ue=Oe.length-1):(Ue+=fe==="next"?1:-1,Ue<0&&(Ue=0),Ue===Oe.length&&(Ue=-1)),Ue=Q(Ue,fe),Ae(Ue),_e(Ue)},ie=be=>{G.current=!0,ae(""),L&&L(be,"","clear"),yt(be,T?[]:null,"clear")},oe=be=>fe=>{if(be.onKeyDown&&be.onKeyDown(fe),!fe.defaultMuiPrevented&&(ce!==-1&&["ArrowLeft","ArrowRight"].indexOf(fe.key)===-1&&(Ae(-1),_e(-1)),fe.which!==229))switch(fe.key){case"Home":de&&I&&(fe.preventDefault(),ze({diff:"start",direction:"next",reason:"keyboard",event:fe}));break;case"End":de&&I&&(fe.preventDefault(),ze({diff:"end",direction:"previous",reason:"keyboard",event:fe}));break;case"PageUp":fe.preventDefault(),ze({diff:-5,direction:"previous",reason:"keyboard",event:fe}),Yt(fe);break;case"PageDown":fe.preventDefault(),ze({diff:UW,direction:"next",reason:"keyboard",event:fe}),Yt(fe);break;case"ArrowDown":fe.preventDefault(),ze({diff:1,direction:"next",reason:"keyboard",event:fe}),Yt(fe);break;case"ArrowUp":fe.preventDefault(),ze({diff:-1,direction:"previous",reason:"keyboard",event:fe}),Yt(fe);break;case"ArrowLeft":te(fe,"previous");break;case"ArrowRight":te(fe,"next");break;case"Enter":if(Ee.current!==-1&&de){const Ue=Ce[Ee.current],it=g?g(Ue):!1;if(fe.preventDefault(),it)return;xt(fe,Ue,"selectOption"),n&&q.current.setSelectionRange(q.current.value.length,q.current.value.length)}else y&&ne!==""&&Qe===!1&&(T&&fe.preventDefault(),xt(fe,ne,"createOption","freeSolo"));break;case"Escape":de?(fe.preventDefault(),fe.stopPropagation(),Pt(fe,"escape")):l&&(ne!==""||T&&Oe.length>0)&&(fe.preventDefault(),fe.stopPropagation(),ie(fe));break;case"Backspace":if(T&&!R&&ne===""&&Oe.length>0){const Ue=ce===-1?Oe.length-1:ce,it=Oe.slice();it.splice(Ue,1),yt(fe,it,"removeOption",{option:Oe[Ue]})}break;case"Delete":if(T&&!R&&ne===""&&Oe.length>0&&ce!==-1){const Ue=ce,it=Oe.slice();it.splice(Ue,1),yt(fe,it,"removeOption",{option:Oe[Ue]})}break}},Se=be=>{xe(!0),V&&!G.current&&Yt(be)},Me=be=>{if(e(X)){q.current.focus();return}xe(!1),K.current=!0,G.current=!1,a&&Ee.current!==-1&&de?xt(be,Ce[Ee.current],"blur"):a&&y&&ne!==""?xt(be,ne,"blur","freeSolo"):s&&ue(be,Oe),Pt(be,"blur")},qe=be=>{const fe=be.target.value;ne!==fe&&(ae(fe),st(!1),L&&L(be,fe,"input")),fe===""?!d&&!T&&yt(be,null,"clear"):Yt(be)},Fe=be=>{const fe=Number(be.currentTarget.getAttribute("data-option-index"));Ee.current!==fe&&We({event:be,index:fe,reason:"mouse"})},et=be=>{We({event:be,index:Number(be.currentTarget.getAttribute("data-option-index")),reason:"touch"}),mt.current=!0},He=be=>{const fe=Number(be.currentTarget.getAttribute("data-option-index"));xt(be,Ce[fe],"selectOption"),mt.current=!1},Ge=be=>fe=>{const Ue=Oe.slice();Ue.splice(be,1),yt(fe,Ue,"removeOption",{option:Oe[be]})},dt=be=>{Pe?Pt(be,"toggleInput"):Yt(be)},Ar=be=>{be.currentTarget.contains(be.target)&&be.target.getAttribute("id")!==B&&be.preventDefault()},Pr=be=>{be.currentTarget.contains(be.target)&&(q.current.focus(),$&&K.current&&q.current.selectionEnd-q.current.selectionStart===0&&q.current.select(),K.current=!1)},pa=be=>{!h&&(ne===""||!Pe)&&dt(be)};let Zn=y&&ne.length>0;Zn=Zn||(T?Oe.length>0:Oe!==null);let al=Ce;return C&&(al=Ce.reduce((be,fe,Ue)=>{const it=C(fe);return be.length>0&&be[be.length-1].group===it?be[be.length-1].options.push(fe):be.push({key:Ue,index:Ue,group:it,options:[fe]}),be},[])),h&&pe&&Me(),{getRootProps:(be={})=>F({"aria-owns":Ne?`${B}-listbox`:null},be,{onKeyDown:oe(be),onMouseDown:Ar,onClick:Pr}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ne,onBlur:Me,onFocus:Se,onChange:qe,onMouseDown:pa,"aria-activedescendant":de?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ne?`${B}-listbox`:void 0,"aria-expanded":Ne,autoComplete:"off",ref:q,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ie}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:dt}),getTagProps:({index:be})=>F({key:be,"data-tag-index":be,tabIndex:-1},!R&&{onDelete:Ge(be)}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:yr,onMouseDown:be=>{be.preventDefault()}}),getOptionProps:({index:be,option:fe})=>{var Ue;const it=(T?Oe:[Oe]).some(Gt=>Gt!=null&&k(fe,Gt)),Ct=g?g(fe):!1;return{key:(Ue=x?.(fe))!=null?Ue:J(fe),tabIndex:-1,role:"option",id:`${B}-option-${be}`,onMouseMove:Fe,onClick:He,onTouchStart:et,"data-option-index":be,"aria-disabled":Ct,"aria-selected":it}},id:B,inputValue:ne,value:Oe,dirty:Zn,expanded:de&&ee,popupOpen:de,focused:pe||ce!==-1,anchorEl:ee,setAnchorEl:se,focusedTag:ce,groupedOptions:al}}function GW(r){return tt("MuiAccordion",r)}const KW=Xe("MuiAccordion",["root","expanded","disabled"]),YW=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],JW=["component","slots","slotProps"],QW=["component"];function we(r,e){const{className:t,elementType:n,ownerState:i,externalForwardedProps:a,getSlotOwnerState:o,internalForwardedProps:s}=e,l=$e(e,YW),{component:c,slots:u={[r]:void 0},slotProps:d={[r]:void 0}}=a,p=$e(a,JW),h=u[r]||n,m=KS(d[r],i),f=GS(F({className:t},l,{externalForwardedProps:r==="root"?p:void 0,externalSlotProps:m})),{props:{component:v},internalRef:w}=f,y=$e(f.props,QW),g=Tt(w,m?.ref,e.ref),x=o?o(y):{},b=F({},i,x),C=r==="root"?v||c:v,I=WS(h,F({},r==="root"&&!c&&!u[r]&&s,r!=="root"&&!u[r]&&s,y,C&&{as:C},{ref:g}),b);return Object.keys(x).forEach(S=>{delete I[S]}),[h,I]}const ey=D.createContext({});function XW(r){return tt("MuiListItem",r)}const Yd=Xe("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),Jd=D.createContext(!1),ec=D.createContext(!1),M1=D.createContext(!1),ty=D.createContext(void 0),L1=D.createContext(void 0),ry=D.createContext(void 0),ZW=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],eq=r=>{const{sticky:e,nested:t,nesting:n,variant:i,color:a}=r,o={root:["root",t&&"nested",n&&"nesting",e&&"sticky",a&&`color${Ie(a)}`,i&&`variant${Ie(i)}`],startAction:["startAction"],endAction:["endAction"]};return Je(o,XW,{})},ny=he("li")(({theme:r,ownerState:e})=>{var t;return[!e.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",gap:"var(--ListItem-gap)",marginInline:"var(--ListItem-marginInline)"},e.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},F({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},e.startAction&&{"--unstable_startActionWidth":"2rem"},e.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"var(--_ListItem-display)","&:not([hidden])":{"--_ListItem-display":"var(--_List-markerDisplay, flex)"},flex:"none",listStyleType:"var(--_List-markerType, disc)",position:"relative",paddingBlockStart:e.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:e.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},e["data-first-child"]===void 0&&F({},e.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),e.row&&e.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},e.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${r.vars.palette.background.body})`},{[`.${Yd.nested} > &`]:{"--_ListItem-display":"flex"}}),(t=r.variants[e.variant])==null?void 0:t[e.color]]}),tq=he(ny,{name:"JoyListItem",slot:"Root",overridesResolver:(r,e)=>e.root})({}),rq=he("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(r,e)=>e.startAction})(({ownerState:r})=>({display:"inherit",position:"absolute",top:r.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),nq=he("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(r,e)=>e.startAction})(({ownerState:r})=>({display:"inherit",position:"absolute",top:r.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),Qo=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListItem"}),i=D.useContext(ry),a=D.useContext(ty),o=D.useContext(ec),s=D.useContext(M1),l=D.useContext(Jd),{component:c,className:u,children:d,nested:p=!1,sticky:h=!1,variant:m="plain",color:f="neutral",startAction:v,endAction:w,role:y,slots:g={},slotProps:x={}}=n,b=$e(n,ZW),[C,I]=D.useState(""),[S,P]=a?.split(":")||["",""],_=c||(S&&!S.match(/^(ul|ol|menu)$/)?"div":void 0);let k=i==="menu"?"none":void 0;a&&(k={menu:"none",menubar:"none",group:"presentation"}[P]),y&&(k=y);const T=F({},n,{sticky:h,startAction:v,endAction:w,row:o,wrap:s,variant:m,color:f,nesting:l,nested:p,component:_,role:k}),E=eq(T),M=F({},b,{component:_,slots:g,slotProps:x}),[O,L]=we("root",{additionalProps:{role:k},ref:t,className:St(E.root,u),elementType:tq,externalForwardedProps:M,ownerState:T}),[N,W]=we("startAction",{className:E.startAction,elementType:rq,externalForwardedProps:M,ownerState:T}),[V,U]=we("endAction",{className:E.endAction,elementType:nq,externalForwardedProps:M,ownerState:T});return Y.jsx(L1.Provider,{value:I,children:Y.jsx(Jd.Provider,{value:p?C||!0:!1,children:Y.jsxs(O,F({},L,{children:[v&&Y.jsx(N,F({},W,{children:v})),D.Children.map(d,(R,$)=>{var j;return D.isValidElement(R)?D.cloneElement(R,F({},$===0&&{"data-first-child":""},Wo(R,["ListItem"])&&{component:((j=R.props)==null?void 0:j.component)||"div"})):R}),w&&Y.jsx(V,F({},U,{children:w}))]}))})})});Qo.muiName="ListItem";function iq(r){return tt("MuiAccordionDetails",r)}const tc=Xe("MuiAccordionDetails",["root","content","expanded"]),aq=["accordionId","component","color","children","defaultExpanded","disabled","expanded","onChange","variant","slots","slotProps"],oq=r=>{const{variant:e,color:t,expanded:n,disabled:i}=r,a={root:["root",n&&"expanded",i&&"disabled",t&&`color${Ie(t)}`,e&&`variant${Ie(e)}`]};return Je(a,GW,{})},sq=he(ny,{name:"JoyAccordion",slot:"Root",overridesResolver:(r,e)=>e.root})({borderBottom:"var(--Accordion-borderBottom)","&[data-first-child]":{"--ListItem-radius":"var(--unstable_List-childRadius) var(--unstable_List-childRadius) 0 0"},"&[data-last-child]":{"--ListItem-radius":"0 0 var(--unstable_List-childRadius) var(--unstable_List-childRadius)",'& [aria-expanded="true"]':{"--ListItem-radius":"0"},[`& .${tc.root}`]:{"--AccordionDetails-radius":"0 0 var(--unstable_List-childRadius) var(--unstable_List-childRadius)"}},"&:not([data-first-child]):not([data-last-child])":{"--ListItem-radius":"0"}}),$1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAccordion"}),{accordionId:i,component:a="div",color:o="neutral",children:s,defaultExpanded:l=!1,disabled:c=!1,expanded:u,onChange:d,variant:p="plain",slots:h={},slotProps:m={}}=n,f=$e(n,aq),v=Cn(i),[w,y]=wa({controlled:u,default:l,name:"Accordion",state:"expanded"}),g=D.useCallback(_=>{y(!w),d&&d(_,!w)},[w,d,y]),x=D.useMemo(()=>({accordionId:v,expanded:w,disabled:c,toggle:g}),[v,w,c,g]),b=F({},f,{component:a,slots:h,slotProps:m}),C=F({},n,{component:a,color:o,variant:p,expanded:w,disabled:c,nested:!0}),I=oq(C),[S,P]=we("root",{ref:t,className:I.root,elementType:sq,externalForwardedProps:b,ownerState:C});return Y.jsx(ey.Provider,{value:x,children:Y.jsx(S,F({},P,{children:D.Children.map(s,(_,k)=>D.isValidElement(_)&&k===0?D.cloneElement(_,{"data-first-child":""}):_)}))})}),lq=["component","children","color","variant","slots","slotProps"],cq=r=>{const{expanded:e}=r;return Je({root:["root",e&&"expanded"],content:["content",e&&"expanded"]},iq,{})},uq=he("div",{name:"JoyAccordionDetails",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;return F({overflow:"hidden",borderRadius:"var(--AccordionDetails-radius)",display:"grid",gridTemplateRows:"1fr",marginInline:"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",transition:"var(--AccordionDetails-transition)"},(t=e.variants[r.variant])==null?void 0:t[r.color],{[`&:not(.${tc.expanded})`]:{gridTemplateRows:"0fr"}})}),dq=he("div",{name:"JoyAccordionDetails",slot:"Content",overridesResolver:(r,e)=>e.root})({display:"flex",flexDirection:"column",overflow:"hidden",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",paddingBlockStart:"calc(var(--ListItem-paddingY) / 2)",paddingBlockEnd:"calc(2.5 * var(--ListItem-paddingY))",transition:"var(--AccordionDetails-transition)",[`&:not(.${tc.expanded})`]:{paddingBlock:0}}),N1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAccordionDetails"}),{component:i="div",children:a,color:o="neutral",variant:s="plain",slots:l={},slotProps:c={}}=n,u=$e(n,lq),{accordionId:d,expanded:p=!1}=D.useContext(ey),h=D.useRef(null),m=Tt(h,t);D.useEffect(()=>{h.current&&h.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])').forEach(I=>{if(p){const S=I.getAttribute("data-prev-tabindex"),P=I.getAttribute("tabindex");P&&S&&(I.setAttribute("tabindex",S),I.removeAttribute("data-prev-tabindex")),!S&&!P&&I.removeAttribute("tabindex")}else I.setAttribute("data-prev-tabindex",I.getAttribute("tabindex")||""),I.setAttribute("tabindex","-1")})},[p]);const f=F({},u,{component:i,slots:l,slotProps:c}),v=F({},n,{component:i,color:o,variant:s,expanded:p,nesting:!0}),w=cq(v),[y,g]=we("root",{ref:m,className:w.root,elementType:uq,externalForwardedProps:f,additionalProps:{id:`${d}-details`,"aria-labelledby":`${d}-summary`,role:"region",hidden:p?void 0:!0},ownerState:v}),[x,b]=we("content",{className:w.content,elementType:dq,externalForwardedProps:f,ownerState:v});return Y.jsx(y,F({},g,{children:Y.jsx(x,F({},b,{children:a}))}))});function pq(r){return tt("MuiAccordionGroup",r)}Xe("MuiAccordionGroup",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const iy={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function rc(r){const{children:e,nested:t,row:n=!1,wrap:i=!1}=r,a=Y.jsx(ec.Provider,{value:n,children:Y.jsx(M1.Provider,{value:i,children:D.Children.map(e,(o,s)=>D.isValidElement(o)?D.cloneElement(o,F({},s===0&&{"data-first-child":""},s===D.Children.count(e)-1&&{"data-last-child":""})):o)})});return t===void 0?a:Y.jsx(Jd.Provider,{value:t,children:a})}const Ia=({theme:r,ownerState:e},t)=>{let n={};function i(a){if(typeof a=="function"){const o=a(r);i(o)}else Array.isArray(a)?a.forEach(o=>{typeof o!="boolean"&&i(o)}):typeof a=="object"&&(n=F({},n,a))}return e.sx&&(i(e.sx),t.forEach(a=>{const o=n[a];if(typeof o=="string"||typeof o=="number")if(a==="borderRadius")if(typeof o=="number")n[a]=`${o}px`;else{var s;n[a]=((s=r.vars)==null?void 0:s.radius[o])||o}else["p","padding","m","margin"].indexOf(a)!==-1&&typeof o=="number"?n[a]=r.spacing(o):n[a]=o;else typeof o=="function"?n[a]=o(r):n[a]=void 0})),n};function hq(r){return tt("MuiList",r)}const fq=Xe("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]),mq=D.createContext(void 0),gq=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],vq=r=>{const{variant:e,color:t,size:n,nesting:i,orientation:a,instanceSize:o}=r,s={root:["root",a,e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`,!o&&!i&&n&&`size${Ie(n)}`,o&&`size${Ie(o)}`,i&&"nesting"]};return Je(s,hq,{})},nc=he("ul")(({theme:r,ownerState:e})=>{var t;const{p:n,padding:i,borderRadius:a}=Ia({theme:r,ownerState:e},["p","padding","borderRadius"]);function o(s){return s==="sm"?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":e.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":e.orientation==="horizontal"?"1.5rem":"2rem","--Icon-fontSize":r.vars.fontSize.lg}:s==="md"?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":e.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":e.orientation==="horizontal"?"1.75rem":"2.5rem","--Icon-fontSize":r.vars.fontSize.xl}:s==="lg"?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":e.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":e.orientation==="horizontal"?"2.25rem":"3rem","--Icon-fontSize":r.vars.fontSize.xl2}:{}}return[e.nesting&&F({},o(e.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0},e.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!e.nesting&&F({},o(e.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},e.marker&&{"--_List-markerDeduct":"1ch"},{"--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},r.typography[`body-${e.size}`],e.orientation==="horizontal"?F({},e.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"},e.marker&&{paddingInlineStart:"3ch"}),F({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:e.orientation==="horizontal"?"row":"column"},e.wrap&&{flexWrap:"wrap"},e.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":e.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},(t=r.variants[e.variant])==null?void 0:t[e.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},a!==void 0&&{"--List-radius":a},n!==void 0&&{"--List-padding":n},i!==void 0&&{"--List-padding":i})]}),yq=he(nc,{name:"JoyList",slot:"Root",overridesResolver:(r,e)=>e.root})({}),ay=D.forwardRef(function(e,t){var n;const i=D.useContext(Jd),a=D.useContext(ry),o=D.useContext(mq),s=Ze({props:e,name:"JoyList"}),{component:l,className:c,children:u,size:d,orientation:p="vertical",wrap:h=!1,variant:m="plain",color:f="neutral",role:v,slots:w={},slotProps:y={}}=s,g=$e(s,gq),x=d||((n=e.size)!=null?n:"md");let b;a&&(b="group"),o&&(b="presentation"),v&&(b=v);const C=F({},s,{instanceSize:e.size,size:x,nesting:i,orientation:p,wrap:h,variant:m,color:f,role:b}),I=vq(C),S=F({},g,{component:l,slots:w,slotProps:y}),[P,_]=we("root",{ref:t,className:St(I.root,c),elementType:yq,externalForwardedProps:S,ownerState:C,additionalProps:{as:l,role:b,"aria-labelledby":typeof i=="string"?i:void 0}});return Y.jsx(P,F({},_,{children:Y.jsx(ty.Provider,{value:`${typeof l=="string"?l:""}:${b||""}`,children:Y.jsx(rc,{row:p==="horizontal",wrap:h,children:u})})}))}),bq=["component","color","children","disableDivider","variant","transition","size","slots","slotProps"],wq=r=>{const{variant:e,color:t,size:n}=r,i={root:["root",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`,n&&`size${Ie(n)}`]};return Je(i,pq,{})},xq=he(nc,{name:"JoyAccordionGroup",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{let t={};return e.transition&&(typeof e.transition=="string"&&(t={"--AccordionDetails-transition":`grid-template-rows ${e.transition}, padding-block ${e.transition}`}),typeof e.transition=="object"&&(t={"--AccordionDetails-transition":`grid-template-rows ${e.transition.initial}, padding-block ${e.transition.initial}`,[`& .${tc.root}.${tc.expanded}`]:{"--AccordionDetails-transition":`grid-template-rows ${e.transition.expanded}, padding-block ${e.transition.expanded}`}})),F({"--List-padding":"0px","--ListDivider-gap":"0px"},t,!e.disableDivider&&{[`& .${KW.root}:not([data-last-child])`]:{"--Accordion-borderBottom":`1px solid ${r.vars.palette.divider}`}})}),F1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAccordionGroup"}),{component:i="div",color:a="neutral",children:o,disableDivider:s=!1,variant:l="plain",transition:c="0.2s ease",size:u="md",slots:d={},slotProps:p={}}=n,h=$e(n,bq),m=F({},h,{component:i,slots:d,slotProps:p}),f=F({},n,{component:i,color:a,disableDivider:s,variant:l,transition:c,size:u}),v=wq(f),[w,y]=we("root",{ref:t,className:v.root,elementType:xq,externalForwardedProps:m,ownerState:f});return Y.jsx(w,F({},y,{children:Y.jsx(rc,{children:o})}))});function Cq(r){return tt("MuiAccordionSummary",r)}const oy=Xe("MuiAccordionSummary",["root","button","indicator","disabled","expanded"]),Qd=Xe("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),j1=D.createContext("horizontal"),ic=he("div")(({theme:r,ownerState:e})=>{var t,n,i,a,o,s;return F({"--Icon-margin":"initial","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:"var(--ListItem-gap)"},e.orientation==="vertical"&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},e["data-first-child"]===void 0&&{marginInlineStart:e.row?"var(--List-gap)":void 0,marginBlockStart:e.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[r.focus.selector]:F({},r.focus.default,{zIndex:1})},(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:active":(n=r.variants[`${e.variant}Active`])==null?void 0:n[e.color],[`.${Yd.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${Qd.selected}`]:F({},(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color],{"--Icon-color":"currentColor"}),[`&:not(.${Qd.selected}, [aria-selected="true"])`]:{"&:hover":(a=r.variants[`${e.variant}Hover`])==null?void 0:a[e.color],"&:active":(o=r.variants[`${e.variant}Active`])==null?void 0:o[e.color]},[`&.${Qd.disabled}`]:F({},(s=r.variants[`${e.variant}Disabled`])==null?void 0:s[e.color])})});he(ic,{name:"JoyListItemButton",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>F({},!r.row&&{[`&.${Qd.selected}`]:{fontWeight:e.vars.fontWeight.md}}));function Iq(r){return tt("MuiSvgIcon",r)}Xe("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const _q=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],Sq=r=>{const{color:e,size:t,fontSize:n}=r,i={root:["root",e&&e!=="inherit"&&`color${Ie(e)}`,t&&`size${Ie(t)}`,n&&`fontSize${Ie(n)}`]};return Je(i,Iq,{})},B1={sm:"xl",md:"xl2",lg:"xl3"},Tq=he("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;return F({},e.instanceSize&&{"--Icon-fontSize":r.vars.fontSize[B1[e.instanceSize]]},e.instanceFontSize&&e.instanceFontSize!=="inherit"&&{"--Icon-fontSize":r.vars.fontSize[e.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${r.vars.fontSize[B1[e.size]]||"unset"})`},e.fontSize&&e.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${r.fontSize[e.fontSize]})`},!e.htmlColor&&F({color:`var(--Icon-color, ${r.vars.palette.text.icon})`},e.color==="inherit"&&{color:"inherit"},e.color!=="inherit"&&r.vars.palette[e.color]&&{color:`rgba(${(t=r.vars.palette[e.color])==null?void 0:t.mainChannel} / 1)`}))}),z1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoySvgIcon"}),{children:i,className:a,color:o,component:s="svg",fontSize:l,htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",size:h="md",slots:m={},slotProps:f={}}=n,v=$e(n,_q),w=D.isValidElement(i)&&i.type==="svg",y=F({},n,{color:o,component:s,size:h,instanceSize:e.size,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:w}),g=Sq(y),x=F({},v,{component:s,slots:m,slotProps:f}),[b,C]=we("root",{ref:t,className:St(g.root,a),elementType:Tq,externalForwardedProps:x,ownerState:y,additionalProps:F({color:c,focusable:!1},d&&{role:"img"},!d&&{"aria-hidden":!0},!u&&{viewBox:p},w&&i.props)});return Y.jsxs(b,F({},C,{children:[w?i.props.children:i,d?Y.jsx("title",{children:d}):null]}))});function _a(r,e){function t(n,i){return Y.jsx(z1,F({"data-testid":`${e}Icon`,ref:i},n,{children:r}))}return t.muiName=z1.muiName,D.memo(D.forwardRef(t))}const kq=_a(Y.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");var H1;const Aq=["component","color","children","indicator","variant","slots","slotProps"],Pq=r=>{const{disabled:e,expanded:t}=r;return Je({root:["root",e&&"disabled",t&&"expanded"],button:["button",e&&"disabled",t&&"expanded"],indicator:["indicator",e&&"disabled",t&&"expanded"]},Cq,{})},Eq=he(ny,{name:"JoyAccordionSummary",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({fontWeight:r.vars.fontWeight.md,gap:"calc(var(--ListItem-paddingX, 0.75rem) + 0.25rem)",[`&.${oy.expanded}`]:{"--Icon-color":"currentColor"}})),Oq=he(ic,{name:"JoyAccordionSummary",slot:"Button",overridesResolver:(r,e)=>e.button})({gap:"inherit",fontWeight:"inherit",justifyContent:"space-between",font:"inherit","&:focus-visible":{zIndex:1},[`.${oy.root} &`]:{"--unstable_ListItem-flex":"1 0 0%"}}),Rq=he("span",{name:"JoyAccordionSummary",slot:"Indicator",overridesResolver:(r,e)=>e.indicator})({display:"inline-flex",[`&.${oy.expanded}`]:{transform:"rotate(180deg)"}}),U1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAccordionSummary"}),{component:i="div",color:a="neutral",children:o,indicator:s=H1||(H1=Y.jsx(kq,{})),variant:l="plain",slots:c={},slotProps:u={}}=n,d=$e(n,Aq),{accordionId:p,disabled:h=!1,expanded:m=!1,toggle:f}=D.useContext(ey),v=F({},d,{component:i,slots:c,slotProps:u}),w=F({},n,{component:i,color:a,disabled:h,expanded:m,variant:l}),y=_=>{if(f&&f(_),typeof u.button=="function"){var k,T;(k=u.button(w))==null||(T=k.onClick)==null||T.call(k,_)}else{var E,M;(E=u.button)==null||(M=E.onClick)==null||M.call(E,_)}},g=Pq(w),[x,b]=we("root",{ref:t,className:g.root,elementType:Eq,externalForwardedProps:v,ownerState:w}),[C,I]=we("button",{ref:t,className:g.button,elementType:Oq,externalForwardedProps:v,additionalProps:{component:"button",id:`${p}-summary`,"aria-expanded":m?"true":"false","aria-controls":`${p}-details`,disabled:h,type:"button",onClick:y},ownerState:w}),[S,P]=we("indicator",{ref:t,className:g.indicator,elementType:Rq,externalForwardedProps:v,ownerState:w});return Y.jsx(x,F({},b,{children:Y.jsxs(C,F({},I,{children:[o,s&&Y.jsx(S,F({},P,{children:s}))]}))}))}),sy=r=>e=>`--${r?`${r}-`:""}${e.replace(/^--/,"")}`,Xo="data-skip-inverted-colors",V1=`& :not([${Xo}], [${Xo}] *)`,W1=r=>{var e,t,n,i,a,o,s,l,c,u,d,p,h,m,f,v,w,y,g,x,b,C;const I=sy(r.cssVarPrefix);return{"--variant-plainColor":"var(--variant-plainColor) !important","--variant-plainHoverColor":"var(--variant-plainHoverColor) !important","--variant-plainHoverBg":"var(--variant-plainHoverBg) !important","--variant-plainActiveBg":"var(--variant-plainActiveBg) !important","--variant-plainDisabledColor":"var(--variant-plainDisabledColor) !important","--variant-outlinedColor":"var(--variant-outlinedColor) !important","--variant-outlinedBorder":"var(--variant-outlinedBorder) !important","--variant-outlinedHoverColor":"var(--variant-outlinedHoverColor) !important","--variant-outlinedHoverBorder":"var(--variant-outlinedHoverBorder) !important","--variant-outlinedHoverBg":"var(--variant-outlinedHoverBg) !important","--variant-outlinedActiveBg":"var(--variant-outlinedActiveBg) !important","--variant-outlinedDisabledColor":"var(--variant-outlinedDisabledColor) !important","--variant-outlinedDisabledBorder":"var(--variant-outlinedDisabledBorder) !important","--variant-softColor":"var(--variant-softColor) !important","--variant-softHoverColor":"var(--variant-softHoverColor) !important","--variant-softBg":"var(--variant-softBg) !important","--variant-softHoverBg":"var(--variant-softHoverBg) !important","--variant-softActiveBg":"var(--variant-softActiveBg) !important","--variant-softActiveColor":"var(--variant-softActiveColor) !important","--variant-softDisabledColor":"var(--variant-softDisabledColor) !important","--variant-softDisabledBg":"var(--variant-softDisabledBg) !important","--variant-solidColor":"var(--variant-solidColor) !important","--variant-solidBg":"var(--variant-solidBg) !important","--variant-solidHoverBg":"var(--variant-solidHoverBg) !important","--variant-solidActiveBg":"var(--variant-solidActiveBg) !important","--variant-solidDisabledColor":"var(--variant-solidDisabledColor) !important","--variant-solidDisabledBg":"var(--variant-solidDisabledBg) !important","--Badge-ringColor":"var(--Badge-ringColor) !important",colorScheme:"unset",[r.getColorSchemeSelector("light")]:{[I("--palette-focusVisible")]:`${(e=r.colorSchemes.light)==null?void 0:e.palette.focusVisible} !important`,[I("--palette-background-body")]:`${(t=r.colorSchemes.light)==null?void 0:t.palette.background.body} !important`,[I("--palette-background-surface")]:`${(n=r.colorSchemes.light)==null?void 0:n.palette.background.surface} !important`,[I("--palette-background-popup")]:`${(i=r.colorSchemes.light)==null?void 0:i.palette.background.popup} !important`,[I("--palette-background-level1")]:`${(a=r.colorSchemes.light)==null?void 0:a.palette.background.level1} !important`,[I("--palette-background-level2")]:`${(o=r.colorSchemes.light)==null?void 0:o.palette.background.level2} !important`,[I("--palette-background-level3")]:`${(s=r.colorSchemes.light)==null?void 0:s.palette.background.level3} !important`,[I("--palette-text-primary")]:`${(l=r.colorSchemes.light)==null?void 0:l.palette.text.primary} !important`,[I("--palette-text-secondary")]:`${(c=r.colorSchemes.light)==null?void 0:c.palette.text.secondary} !important`,[I("--palette-text-tertiary")]:`${(u=r.colorSchemes.light)==null?void 0:u.palette.text.tertiary} !important`,[I("--palette-divider")]:`${(d=r.colorSchemes.light)==null?void 0:d.palette.divider} !important`},[r.getColorSchemeSelector("dark")]:{[I("--palette-focusVisible")]:`${(p=r.colorSchemes.dark)==null?void 0:p.palette.focusVisible} !important`,[I("--palette-background-body")]:`${(h=r.colorSchemes.dark)==null?void 0:h.palette.background.body} !important`,[I("--palette-background-surface")]:`${(m=r.colorSchemes.dark)==null?void 0:m.palette.background.surface} !important`,[I("--palette-background-popup")]:`${(f=r.colorSchemes.dark)==null?void 0:f.palette.background.popup} !important`,[I("--palette-background-level1")]:`${(v=r.colorSchemes.dark)==null?void 0:v.palette.background.level1} !important`,[I("--palette-background-level2")]:`${(w=r.colorSchemes.dark)==null?void 0:w.palette.background.level2} !important`,[I("--palette-background-level3")]:`${(y=r.colorSchemes.dark)==null?void 0:y.palette.background.level3} !important`,[I("--palette-text-primary")]:`${(g=r.colorSchemes.dark)==null?void 0:g.palette.text.primary} !important`,[I("--palette-text-secondary")]:`${(x=r.colorSchemes.dark)==null?void 0:x.palette.text.secondary} !important`,[I("--palette-text-tertiary")]:`${(b=r.colorSchemes.dark)==null?void 0:b.palette.text.tertiary} !important`,[I("--palette-divider")]:`${(C=r.colorSchemes.dark)==null?void 0:C.palette.divider} !important`}}};function Dq(r){return r.theme!==void 0}const Xd=r=>e=>{const t=Dq(e)?e.theme:e,n=Ev(t.cssVarPrefix),i=sy(t.cssVarPrefix),a=o=>{const s=o.split("-");return n(o,t.palette[s[1]][s[2]])};return{[V1]:{"--Badge-ringColor":a(`palette-${r}-solidBg`),"--Icon-color":"currentColor",[`${t.getColorSchemeSelector("light")}, ${t.getColorSchemeSelector("dark")}`]:{colorScheme:"dark",[i("--palette-focusVisible")]:a(`palette-${r}-200`),[i("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[i("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[i("--palette-background-popup")]:a(`palette-${r}-700`),[i("--palette-background-level1")]:`rgba(${a(`palette-${r}-darkChannel`)} / 0.2)`,[i("--palette-background-level2")]:`rgba(${a(`palette-${r}-darkChannel`)} / 0.36)`,[i("--palette-background-level3")]:`rgba(${a(`palette-${r}-darkChannel`)} / 0.6)`,[i("--palette-text-primary")]:a("palette-common-white"),[i("--palette-text-secondary")]:a(`palette-${r}-200`),[i("--palette-text-tertiary")]:a(`palette-${r}-300`),[i("--palette-text-icon")]:a(`palette-${r}-200`),[i("--palette-divider")]:`rgba(${a(`palette-${r}-lightChannel`)} / 0.32)`,"--variant-plainColor":a(`palette-${r}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":a(`palette-${r}-50`),"--variant-outlinedBorder":`rgba(${a(`palette-${r}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":a(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":a("palette-common-white"),"--variant-softHoverColor":a("palette-common-white"),"--variant-softBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.16)`,"--variant-softActiveColor":"#fff","--variant-softDisabledColor":`rgba(${a(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.1)`,"--variant-solidColor":a(`palette-${r}-${r==="neutral"?"600":"500"}`),"--variant-solidBg":a("palette-common-white"),"--variant-solidHoverBg":a("palette-common-white"),"--variant-solidActiveBg":a(`palette-${r}-100`),"--variant-solidDisabledColor":`rgba(${a(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.1)`}},[`&, & [${Xo}]`]:W1(t)}},Zd=r=>e=>{const{theme:t=e}=e,n=Ev(t.cssVarPrefix),i=sy(t.cssVarPrefix),a=o=>{const s=o.split("-");return n(o,t.palette[s[1]][s[2]])};return{[V1]:{"--Badge-ringColor":a(`palette-${r}-softBg`),"--Icon-color":"currentColor",[t.getColorSchemeSelector("dark")]:{[i("--palette-focusVisible")]:a(`palette-${r}-300`),[i("--palette-background-body")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.1)`,[i("--palette-background-surface")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.08)`,[i("--palette-background-level1")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.2)`,[i("--palette-background-level2")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.4)`,[i("--palette-background-level3")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.6)`,[i("--palette-text-primary")]:a(`palette-${r}-100`),[i("--palette-text-secondary")]:`rgba(${a(`palette-${r}-lightChannel`)} / 0.72)`,[i("--palette-text-tertiary")]:`rgba(${a(`palette-${r}-lightChannel`)} / 0.6)`,[i("--palette-text-icon")]:`rgba(${a(`palette-${r}-lightChannel`)} / 0.6)`,[i("--palette-divider")]:`rgba(${a(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${a(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":a(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${a(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":a(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${a(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":a(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":a(`palette-${r}-200`),"--variant-softBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":a(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":a(`palette-${r}-600`),"--variant-solidActiveBg":a(`palette-${r}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.12)`},[t.getColorSchemeSelector("light")]:{[i("--palette-focusVisible")]:a(`palette-${r}-500`),[i("--palette-background-body")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.1)`,[i("--palette-background-surface")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.08)`,[i("--palette-background-level1")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.2)`,[i("--palette-background-level2")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.32)`,[i("--palette-background-level3")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.48)`,[i("--palette-text-primary")]:a(`palette-${r}-700`),[i("--palette-text-secondary")]:`rgba(${a(`palette-${r}-darkChannel`)} / 0.8)`,[i("--palette-text-tertiary")]:`rgba(${a(`palette-${r}-darkChannel`)} / 0.68)`,[i("--palette-text-icon")]:a(`palette-${r}-500`),[i("--palette-divider")]:`rgba(${a(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${a(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${a(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${a(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${a(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":a(`palette-${r}-600`),"--variant-outlinedHoverBorder":a(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${a(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":a(`palette-${r}-600`),"--variant-softBg":`rgba(${a(`palette-${r}-lightChannel`)} / 0.8)`,"--variant-softHoverColor":a(`palette-${r}-700`),"--variant-softHoverBg":a(`palette-${r}-200`),"--variant-softActiveBg":a(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":a("palette-common-white"),"--variant-solidBg":a(`palette-${r}-${r==="neutral"?"700":"500"}`),"--variant-solidHoverColor":a("palette-common-white"),"--variant-solidHoverBg":a(`palette-${r}-600`),"--variant-solidActiveBg":a(`palette-${r}-600`),"--variant-solidDisabledColor":`rgba(${a(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${a(`palette-${r}-mainChannel`)} / 0.08)`}},[`&, & [${Xo}]`]:W1(t)}};function Mq(r){return tt("MuiAlert",r)}Xe("MuiAlert",["root","startDecorator","endDecorator","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);const Lq=["children","className","color","invertedColors","role","variant","size","startDecorator","endDecorator","component","slots","slotProps"],$q=r=>{const{variant:e,color:t,size:n}=r,i={root:["root",n&&`size${Ie(n)}`,t&&`color${Ie(t)}`,e&&`variant${Ie(e)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(i,Mq,{})},Nq=he("div",{name:"JoyAlert",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const{p:n,padding:i,borderRadius:a}=Ia({theme:r,ownerState:e},["p","padding","borderRadius"]);return[F({"--Alert-radius":r.vars.radius.sm,"--Alert-decoratorChildRadius":"max((var(--Alert-radius) - var(--variant-borderWidth, 0px)) - var(--Alert-padding), min(var(--Alert-padding) + var(--variant-borderWidth, 0px), var(--Alert-radius) / 2))","--Button-minHeight":"var(--Alert-decoratorChildHeight)","--IconButton-size":"var(--Alert-decoratorChildHeight)","--Button-radius":"var(--Alert-decoratorChildRadius)","--IconButton-radius":"var(--Alert-decoratorChildRadius)","--Icon-color":"currentColor"},e.size==="sm"&&{"--Alert-padding":"0.5rem","--Alert-decoratorChildHeight":"1.5rem","--Icon-fontSize":r.vars.fontSize.xl,gap:"0.5rem"},e.size==="md"&&{"--Alert-padding":"0.75rem","--Alert-decoratorChildHeight":"2rem","--Icon-fontSize":r.vars.fontSize.xl,gap:"0.625rem"},e.size==="lg"&&{"--Alert-padding":"1rem","--Alert-decoratorChildHeight":"2.375rem","--Icon-fontSize":r.vars.fontSize.xl2,gap:"0.875rem"},{backgroundColor:r.vars.palette.background.surface,display:"flex",position:"relative",alignItems:"center",padding:"var(--Alert-padding)",borderRadius:"var(--Alert-radius)"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],{fontWeight:r.vars.fontWeight.md},e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(t=r.variants[e.variant])==null?void 0:t[e.color]),n!==void 0&&{"--Alert-padding":n},i!==void 0&&{"--Alert-padding":i},a!==void 0&&{"--Alert-radius":a}]}),Fq=he("span",{name:"JoyAlert",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inherit",flex:"none"}),jq=he("span",{name:"JoyAlert",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),q1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAlert"}),{children:i,className:a,color:o="neutral",invertedColors:s=!1,role:l="alert",variant:c="soft",size:u="md",startDecorator:d,endDecorator:p,component:h,slots:m={},slotProps:f={}}=n,v=$e(n,Lq),w=F({},n,{color:o,invertedColors:s,variant:c,size:u}),y=$q(w),g=F({},v,{component:h,slots:m,slotProps:f}),[x,b]=we("root",{ref:t,className:St(y.root,a),elementType:Nq,externalForwardedProps:g,ownerState:w,additionalProps:{role:l}}),[C,I]=we("startDecorator",{className:y.startDecorator,elementType:Fq,externalForwardedProps:g,ownerState:w}),[S,P]=we("endDecorator",{className:y.endDecorator,elementType:jq,externalForwardedProps:g,ownerState:w});return Y.jsxs(x,F({},b,{children:[d&&Y.jsx(C,F({},I,{children:d})),i,p&&Y.jsx(S,F({},P,{children:p}))]}))});function Bq(r){return tt("MuiAspectRatio",r)}Xe("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const zq=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","flex","slots","slotProps"],Hq=r=>{const{variant:e,color:t}=r,n={root:["root"],content:["content",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`]};return Je(n,Bq,{})},Uq=he("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{const t=typeof r.minHeight=="number"?`${r.minHeight}px`:r.minHeight,n=typeof r.maxHeight=="number"?`${r.maxHeight}px`:r.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${r.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":n||"9999px","--AspectRatio-minHeight":t||"0px","--Icon-color":r.color!=="neutral"||r.variant==="solid"?"currentColor":e.vars.palette.text.icon,borderRadius:"var(--AspectRatio-radius)",display:r.flex?"flex":"block",flex:r.flex?1:"initial",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),Vq=he("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(r,e)=>e.content})(({theme:r,ownerState:e})=>{var t;return F({flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:e.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:e.objectFit}}},r.typography["body-md"],(t=r.variants[e.variant])==null?void 0:t[e.color])}),G1=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAspectRatio"}),{children:i,ratio:a="16 / 9",minHeight:o,maxHeight:s,objectFit:l="cover",color:c="neutral",variant:u="soft",component:d,flex:p=!1,slots:h={},slotProps:m={}}=n,f=$e(n,zq),v=F({},n,{flex:p,minHeight:o,maxHeight:s,objectFit:l,ratio:a,color:c,variant:u}),w=Hq(v),y=F({},f,{component:d,slots:h,slotProps:m}),[g,x]=we("root",{ref:t,className:w.root,elementType:Uq,externalForwardedProps:y,ownerState:v}),[b,C]=we("content",{className:w.content,elementType:Vq,externalForwardedProps:y,ownerState:v});return Y.jsx(g,F({},x,{children:Y.jsx(b,F({},C,{children:D.Children.map(i,(I,S)=>S===0&&D.isValidElement(I)?D.cloneElement(I,{"data-first-child":""}):I)}))}))}),K1=_a(Y.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Wq=_a(Y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Y1=D.createContext(void 0);function oo(r,e){let t=e,n=r;return r==="outlined"&&(t="neutral",n="plain"),r==="plain"&&(t="neutral"),{variant:n,color:t}}function ly(r,e,t=!1){const n=D.useContext(Y1),[i,a]=typeof n=="string"?n.split(":"):[],o=oo(i||void 0,a||void 0);return o.variant=r||o.variant,o.color=e||(t?a:o.color),o}function cy({children:r,color:e,variant:t}){return Y.jsx(Y1.Provider,{value:`${t||""}:${e||""}`,children:r})}function qq(r){return tt("MuiIconButton",r)}const Gq=Xe("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","loading","loadingIndicator"]),J1=D.createContext({}),Q1=D.createContext(void 0);function Kq(r){return tt("MuiCircularProgress",r)}Xe("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);let Yq=r=>r,X1;const Jq=["color","backgroundColor"],Qq=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],Xq=to({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),Zq=r=>{const{determinate:e,color:t,variant:n,size:i}=r,a={root:["root",e&&"determinate",t&&`color${Ie(t)}`,n&&`variant${Ie(n)}`,i&&`size${Ie(i)}`],svg:["svg"],track:["track"],progress:["progress"]};return Je(a,Kq,{})};function Zo(r,e){return`var(--CircularProgress-${r}Thickness, var(--CircularProgress-thickness, ${e}))`}const e6=he("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n,i,a;const o=((t=e.variants[r.variant])==null?void 0:t[r.color])||{},{color:s,backgroundColor:l}=o,c=$e(o,Jq);return F({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":l,"--CircularProgress-progressColor":s,"--CircularProgress-percent":r.value,"--CircularProgress-linecap":"round"},r.size==="sm"&&{"--_root-size":"var(--CircularProgress-size, 24px)","--_track-thickness":Zo("track","3px"),"--_progress-thickness":Zo("progress","3px")},r.instanceSize==="sm"&&{"--CircularProgress-size":"24px"},r.size==="md"&&{"--_track-thickness":Zo("track","6px"),"--_progress-thickness":Zo("progress","6px"),"--_root-size":"var(--CircularProgress-size, 40px)"},r.instanceSize==="md"&&{"--CircularProgress-size":"40px"},r.size==="lg"&&{"--_track-thickness":Zo("track","8px"),"--_progress-thickness":Zo("progress","8px"),"--_root-size":"var(--CircularProgress-size, 64px)"},r.instanceSize==="lg"&&{"--CircularProgress-size":"64px"},r.thickness&&{"--_track-thickness":`${r.thickness}px`,"--_progress-thickness":`${r.thickness}px`},{"--_thickness-diff":"calc(var(--_track-thickness) - var(--_progress-thickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--_track-thickness), var(--_progress-thickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:s},r.children&&{fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},c,r.variant==="outlined"&&{"&::before":F({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},c)},r.variant==="soft"&&{"--CircularProgress-trackColor":e.variants.soft.neutral.backgroundColor,"--CircularProgress-progressColor":(n=e.variants.solid)==null?void 0:n[r.color].backgroundColor},r.variant==="solid"&&{"--CircularProgress-trackColor":(i=e.variants.softHover)==null?void 0:i[r.color].backgroundColor,"--CircularProgress-progressColor":(a=e.variants.solid)==null?void 0:a[r.color].backgroundColor})}),t6=he("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),r6=he("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(r,e)=>e.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--_track-thickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--_track-thickness)",stroke:"var(--CircularProgress-trackColor)"}),n6=he("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(r,e)=>e.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--_progress-thickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--_progress-thickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:r})=>!r.determinate&&va(X1||(X1=Yq`
68
68
  animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running)
69
69
  ${0};
70
- `),Xq)),jn=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyCircularProgress"}),{children:i,className:a,color:o="primary",size:s="md",variant:l="soft",thickness:c,determinate:u=!1,value:d=u?0:25,component:p,slots:h={},slotProps:m={}}=n,f=$e(n,Qq),v=F({},n,{color:o,size:s,variant:l,thickness:c,value:d,determinate:u,instanceSize:e.size}),w=Zq(v),y=F({},f,{component:p,slots:h,slotProps:m}),[g,x]=we("root",{ref:t,className:St(w.root,a),elementType:e6,externalForwardedProps:y,ownerState:v,additionalProps:F({role:"progressbar",style:{"--CircularProgress-percent":d}},d&&u&&{"aria-valuenow":Math.round(typeof d=="number"?d:Number(d||0))})}),[b,C]=we("svg",{className:w.svg,elementType:t6,externalForwardedProps:y,ownerState:v}),[I,S]=we("track",{className:w.track,elementType:r6,externalForwardedProps:y,ownerState:v}),[P,_]=we("progress",{className:w.progress,elementType:n6,externalForwardedProps:y,ownerState:v});return Y.jsxs(g,F({},x,{children:[Y.jsxs(b,F({},C,{children:[Y.jsx(I,F({},S)),Y.jsx(P,F({},_))]})),i]}))}),i6=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],a6=r=>{const{color:e,disabled:t,focusVisible:n,focusVisibleClassName:i,size:a,variant:o,loading:s}=r,l={root:["root",t&&"disabled",n&&"focusVisible",o&&`variant${Ie(o)}`,e&&`color${Ie(e)}`,a&&`size${Ie(a)}`,s&&"loading"],loadingIndicator:["loadingIndicator"]},c=Je(l,qq,{});return n&&i&&(c.root+=` ${i}`),c},ac=he("button")(({theme:r,ownerState:e})=>{var t,n,i,a;return[F({"--Icon-margin":"initial","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon},e.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[e.instanceSize]},e.size==="sm"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:r.vars.fontSize.sm,paddingInline:"2px"},e.size==="md"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:r.vars.fontSize.md,paddingInline:"0.25rem"},e.size==="lg"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:r.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${r.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[r.focus.selector]:F({"--Icon-color":"currentColor"},r.focus.default)}),F({},(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":F({"--Icon-color":"currentColor"},(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color])},'&:active, &[aria-pressed="true"]':F({"--Icon-color":"currentColor"},(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color]),"&:disabled":(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]})]}),o6=he(ac,{name:"JoyIconButton",slot:"Root",overridesResolver:(r,e)=>e.root})({}),s6=he("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(r,e)=>e.loadingIndicator})(({theme:r,ownerState:e})=>{var t,n;return F({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(t=r.variants[e.variant])==null||(t=t[e.color])==null?void 0:t.color},e.disabled&&{color:(n=r.variants[`${e.variant}Disabled`])==null||(n=n[e.color])==null?void 0:n.color})}),Ur=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyIconButton"}),{children:a,action:o,component:s="button",color:l="neutral",disabled:c,variant:u="plain",loading:d=!1,loadingIndicator:p,size:h="md",slots:m={},slotProps:f={}}=i,v=$e(i,i6),w=D.useContext(J1),y=D.useContext(Q1),g=e.variant||w.variant||u,x=e.size||w.size||h,b=e.color||w.color||l,C=(n=e.loading||e.disabled)!=null?n:w.disabled||d||c,I=D.useRef(null),S=Tt(I,t),{focusVisible:P,setFocusVisible:_,getRootProps:k}=xa(F({},i,{disabled:C,rootRef:S})),T=p??Y.jsx(jn,{color:b,thickness:{sm:2,md:3,lg:4}[x]||3});D.useImperativeHandle(o,()=>({focusVisible:()=>{var $;_(!0),($=I.current)==null||$.focus()}}),[_]);const E=F({},i,{component:s,color:b,disabled:C,variant:g,loading:d,size:x,focusVisible:P,instanceSize:e.size}),M=a6(E),O=$=>{var j;let B=i.onClick;if(typeof f.root=="function"?B=f.root(E).onClick:f.root&&(B=f.root.onClick),(j=B)==null||j($),y){var J;(J=y.onClick)==null||J.call(y,$,i.value)}};let L=i["aria-pressed"];typeof f.root=="function"?L=f.root(E)["aria-pressed"]:f.root&&(L=f.root["aria-pressed"]),y!=null&&y.value&&(Array.isArray(y.value)?L=y.value.indexOf(i.value)!==-1:L=y.value===i.value);const N=F({},v,{component:s,slots:m,slotProps:f}),[W,V]=we("root",{ref:t,className:M.root,elementType:o6,getSlotProps:k,externalForwardedProps:N,ownerState:E,additionalProps:{onClick:O,"aria-pressed":L}}),[U,R]=we("loadingIndicator",{className:M.loadingIndicator,elementType:s6,externalForwardedProps:N,ownerState:E});return Y.jsx(W,F({},V,{children:d?Y.jsx(U,F({},R,{children:T})):a}))});Ur.muiName="IconButton";function l6(r){return tt("MuiChip",r)}const uy=Xe("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),Z1=D.createContext({disabled:void 0,variant:void 0,color:void 0}),c6=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],u6=r=>{const{disabled:e,size:t,color:n,clickable:i,variant:a,focusVisible:o}=r,s={root:["root",e&&"disabled",n&&`color${Ie(n)}`,t&&`size${Ie(t)}`,a&&`variant${Ie(a)}`,i&&"clickable"],action:["action",e&&"disabled",o&&"focusVisible"],label:["label",t&&`label${Ie(t)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(s,l6,{})},d6=he("div",{name:"JoyChip",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i;const a=(t=r.variants[e.variant])==null?void 0:t[e.color],{borderRadius:o}=Ia({theme:r,ownerState:e},["borderRadius"]);return[F({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},e.size==="sm"&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":r.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},e.size==="md"&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":r.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},e.size==="lg"&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":r.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],{fontWeight:r.vars.fontWeight.md,[`&.${uy.disabled}`]:{color:(n=r.variants[`${e.variant}Disabled`])==null||(n=n[e.color])==null?void 0:n.color}}),...e.clickable?[{"--variant-borderWidth":"0px",color:a?.color}]:[F({backgroundColor:r.vars.palette.background.surface},a,{[`&.${uy.disabled}`]:(i=r.variants[`${e.variant}Disabled`])==null?void 0:i[e.color]})],o!==void 0&&{"--_Chip-radius":o}]}),p6=he("span",{name:"JoyChip",slot:"Label",overridesResolver:(r,e)=>e.label})(({ownerState:r})=>F({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},r.clickable&&{zIndex:1,pointerEvents:"none"})),h6=he("button",{name:"JoyChip",slot:"Action",overridesResolver:(r,e)=>e.action})(({theme:r,ownerState:e})=>{var t,n,i,a;return[{"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[r.focus.selector]:r.focus.default},F({backgroundColor:r.vars.palette.background.surface},(t=r.variants[e.variant])==null?void 0:t[e.color]),{"&:hover":{"@media (hover: hover)":(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color]}},{"&:active":(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color]},{[`&.${uy.disabled}`]:(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]}]}),f6=he("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),m6=he("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),xr=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyChip"}),{children:i,className:a,color:o="neutral",onClick:s,disabled:l=!1,size:c="md",variant:u="soft",startDecorator:d,endDecorator:p,component:h,slots:m={},slotProps:f={}}=n,v=$e(n,c6),w=!!s||!!f.action,y=F({},n,{disabled:l,size:c,color:o,variant:u,clickable:w,focusVisible:!1}),g=typeof f.action=="function"?f.action(y):f.action,x=D.useRef(null),{focusVisible:b,getRootProps:C}=xa(F({},g,{disabled:l,rootRef:x}));y.focusVisible=b;const I=u6(y),S=F({},v,{component:h,slots:m,slotProps:f}),[P,_]=we("root",{ref:t,className:St(I.root,a),elementType:d6,externalForwardedProps:S,ownerState:y}),[k,T]=we("label",{className:I.label,elementType:p6,externalForwardedProps:S,ownerState:y}),E=Cn(T.id),[M,O]=we("action",{className:I.action,elementType:h6,externalForwardedProps:S,ownerState:y,getSlotProps:C,additionalProps:{"aria-labelledby":E,as:g?.component,onClick:s}}),[L,N]=we("startDecorator",{className:I.startDecorator,elementType:f6,externalForwardedProps:S,ownerState:y}),[W,V]=we("endDecorator",{className:I.endDecorator,elementType:m6,externalForwardedProps:S,ownerState:y}),U=D.useMemo(()=>({disabled:l}),[l]);return Y.jsx(Z1.Provider,{value:U,children:Y.jsx(cy,{variant:u,color:o,children:Y.jsxs(P,F({},_,{children:[w&&Y.jsx(M,F({},O)),Y.jsx(k,F({},T,{id:E,children:i})),d&&Y.jsx(L,F({},N,{children:d})),p&&Y.jsx(W,F({},V,{children:p}))]}))})})}),g6=_a(Y.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"}),"Cancel");function v6(r){return tt("MuiChipDelete",r)}Xe("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);var eT;const y6=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],b6=["onDelete"],w6=r=>{const{focusVisible:e,variant:t,color:n,disabled:i}=r,a={root:["root",i&&"disabled",e&&"focusVisible",t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`]};return Je(a,v6,{})},x6=he(ac,{name:"JoyChipDelete",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:r.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0})),Sa=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyChipDelete"}),{children:i,variant:a="plain",color:o="neutral",disabled:s,onKeyDown:l,onDelete:c,onClick:u,component:d,slots:p={},slotProps:h={}}=n,m=$e(n,y6),f=D.useContext(Z1),{variant:v=a,color:w=o}=ly(e.variant,e.color,!0),y=e.color||w,g=s??f.disabled,x=D.useRef(null),b=Tt(x,t),{focusVisible:C,getRootProps:I}=xa(F({},n,{disabled:g,rootRef:b})),S=F({},n,{disabled:g,variant:v,color:y,focusVisible:C}),P=w6(S),_=F({},m,{component:d,slots:p,slotProps:h}),k=L=>{!g&&c&&c(L),u&&u(L)},T=L=>{["Backspace","Enter","Delete"].includes(L.key)&&(L.preventDefault(),!g&&c&&c(L)),l&&l(L)},[E,M]=we("root",{ref:t,elementType:x6,getSlotProps:I,externalForwardedProps:_,ownerState:S,additionalProps:{as:d,onKeyDown:T,onClick:k},className:P.root}),O=$e(M,b6);return Y.jsx(E,F({},O,{children:i??(eT||(eT=Y.jsx(g6,{})))}))});function C6(r){return tt("MuiInput",r)}const tT=Xe("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),Ta=D.createContext(void 0),I6=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];function rT(r,e){var t;const n=D.useContext(Ta),{"aria-describedby":i,"aria-label":a,"aria-labelledby":o,autoComplete:s,autoFocus:l,className:c,defaultValue:u,disabled:d,disabledInProp:p,error:h,id:m,name:f,onClick:v,onChange:w,onKeyDown:y,onKeyUp:g,onFocus:x,onBlur:b,placeholder:C,readOnly:I,required:S,type:P,value:_}=r,k=$e(r,I6),{getRootProps:T,getInputProps:E,focused:M,error:O,disabled:L}=I3({disabled:(t=p??n?.disabled)!=null?t:d,defaultValue:u,error:h,onBlur:b,onClick:v,onChange:w,onFocus:x,required:S??n?.required,value:_}),N={[e.disabled]:L,[e.error]:O,[e.focused]:M,[e.formControl]:!!n,[c]:c},W={[e.disabled]:L};return F({formControl:n,propsToForward:{"aria-describedby":i,"aria-label":a,"aria-labelledby":o,autoComplete:s,autoFocus:l,disabled:L,id:m,onKeyDown:y,onKeyUp:g,name:f,placeholder:C,readOnly:I,type:P},rootStateClasses:N,inputStateClasses:W,getRootProps:T,getInputProps:E,focused:M,error:O,disabled:L},k)}const _6=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],S6=r=>{const{disabled:e,fullWidth:t,variant:n,color:i,size:a}=r,o={root:["root",e&&"disabled",t&&"fullWidth",n&&`variant${Ie(n)}`,i&&`color${Ie(i)}`,a&&`size${Ie(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(o,C6,{})},nT=he("div")(({theme:r,ownerState:e})=>{var t,n,i,a,o,s;const l=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color];return[F({"--Input-radius":r.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":r.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":r.vars.focus.thickness,"--Input-focusedHighlight":(n=r.vars.palette[e.color==="neutral"?"primary":e.color])==null?void 0:n[500],[`&:not([${Xo}])`]:F({},e.instanceColor&&{"--_Input-focusedHighlight":(i=r.vars.palette[e.instanceColor==="neutral"?"primary":e.instanceColor])==null?void 0:i[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${r.vars.palette.focusVisible})`})},e.size==="sm"&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":r.vars.fontSize.xl},e.size==="md"&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},e.size==="lg"&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},e.variant!=="plain"&&{boxShadow:r.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},e.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},r.typography[`body-${e.size}`],l,{backgroundColor:(a=l?.backgroundColor)!=null?a:r.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":F({},(o=r.variants[`${e.variant}Hover`])==null?void 0:o[e.color],{backgroundColor:null}),[`&.${tT.disabled}`]:(s=r.variants[`${e.variant}Disabled`])==null?void 0:s[e.color],"&:focus-within::before":{"--Input-focused":"1"}}]}),iT=he("input")(({ownerState:r})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":F({paddingInline:"var(--Input-paddingInline)"},!r.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!r.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}})),aT=he("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),oT=he("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),T6=he(nT,{name:"JoyInput",slot:"Root",overridesResolver:(r,e)=>e.root})({}),k6=he(iT,{name:"JoyInput",slot:"Input",overridesResolver:(r,e)=>e.input})({}),A6=he(aT,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({}),P6=he(oT,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({}),Bn=D.forwardRef(function(e,t){var n,i,a,o,s,l;const c=Ze({props:e,name:"JoyInput"}),u=rT(F({},c,{disabledInProp:e.disabled}),tT),{propsToForward:d,rootStateClasses:p,inputStateClasses:h,getRootProps:m,getInputProps:f,formControl:v,focused:w,error:y=!1,disabled:g,fullWidth:x=!1,size:b="md",color:C="neutral",variant:I="outlined",startDecorator:S,endDecorator:P,component:_,slots:k={},slotProps:T={}}=u,E=$e(u,_6),M=(n=(i=e.error)!=null?i:v?.error)!=null?n:y,O=(a=(o=e.size)!=null?o:v?.size)!=null?a:b,L=(s=e.color)!=null?s:M?"danger":(l=v?.color)!=null?l:C,N=F({instanceColor:M?"danger":e.color},c,{fullWidth:x,color:L,disabled:g,error:M,focused:w,size:O,variant:I}),W=S6(N),V=F({},E,{component:_,slots:k,slotProps:T}),[U,R]=we("root",{ref:t,className:[W.root,p],elementType:T6,getSlotProps:m,externalForwardedProps:V,ownerState:N}),[$,j]=we("input",F({},v&&{additionalProps:{id:v.htmlFor,"aria-describedby":v["aria-describedby"]}},{className:[W.input,h],elementType:k6,getSlotProps:f,internalForwardedProps:d,externalForwardedProps:V,ownerState:N})),[B,J]=we("startDecorator",{className:W.startDecorator,elementType:A6,externalForwardedProps:V,ownerState:N}),[G,K]=we("endDecorator",{className:W.endDecorator,elementType:P6,externalForwardedProps:V,ownerState:N});return Y.jsxs(U,F({},R,{children:[S&&Y.jsx(B,F({},J,{children:S})),Y.jsx($,F({},j)),P&&Y.jsx(G,F({},K,{children:P}))]}))});function E6(r){return tt("MuiListSubheader",r)}Xe("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const O6=["component","className","children","id","sticky","variant","color","slots","slotProps"],R6=r=>{const{variant:e,color:t,sticky:n}=r,i={root:["root",n&&"sticky",t&&`color${Ie(t)}`,e&&`variant${Ie(e)}`]};return Je(i,E6,{})},D6=he("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n;return F({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},r.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},e.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:e.color?`var(--_Link-color, rgba(${(t=r.vars.palette[e.color])==null?void 0:t.mainChannel} / 1))`:r.vars.palette.text.tertiary},e.instanceColor&&{[`&:not([${Xo}])`]:{"--_Link-color":r.vars.palette.text.secondary}},(n=r.variants[e.variant])==null?void 0:n[e.color])}),M6=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListSubheader"}),{component:i,className:a,children:o,id:s,sticky:l=!1,variant:c,color:u,slots:d={},slotProps:p={}}=n,h=$e(n,O6),m=Cn(s),f=D.useContext(L1);D.useEffect(()=>{f&&f(m||"")},[f,m]);const v=F({instanceColor:e.color},n,{id:m,sticky:l,variant:c,color:c?u??"neutral":u}),w=R6(v),y=F({},h,{component:i,slots:d,slotProps:p}),[g,x]=we("root",{ref:t,className:St(w.root,a),elementType:D6,externalForwardedProps:y,ownerState:v,additionalProps:{as:i,id:m}});return Y.jsx(g,F({},x,{children:o}))});function L6(r){return tt("MuiAutocomplete",r)}const ka=Xe("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]),sT=he(nc)(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[e.variant])==null?void 0:t[e.color];return F({"--focus-outline-offset":`calc(${r.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":n?.backgroundColor||n?.background||r.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},iy,{boxShadow:r.shadow.md,borderRadius:`var(--List-radius, ${r.vars.radius.sm})`},!(n!=null&&n.backgroundColor)&&{backgroundColor:r.vars.palette.background.popup},{zIndex:r.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${Yd.nested}, & .${Yd.nested} .${fq.root}`]:{position:"initial"}})});he(sT,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(r,e)=>e.root})({});function $6(r){return tt("MuiAutocompleteOption",r)}Xe("MuiAutocompleteOption",["root","focused","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const N6=["children","component","color","variant","className","slots","slotProps"],F6=r=>{const{color:e,variant:t}=r,n={root:["root",e&&`color${Ie(e)}`,t&&`variant${Ie(t)}`]};return Je(n,$6,{})},lT=he(ic)(({theme:r,ownerState:e})=>{var t,n;return{'&[aria-disabled="true"]':(t=r.variants[`${e.variant}Disabled`])==null?void 0:t[e.color],'&[aria-selected="true"]':F({},(n=r.variants[`${e.variant}Active`])==null?void 0:n[e.color],{fontWeight:r.vars.fontWeight.md})}}),j6=he(lT,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(r,e)=>e.root})({}),so=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAutocompleteOption"}),{children:i,component:a="li",color:o="neutral",variant:s="plain",className:l,slots:c={},slotProps:u={}}=n,d=$e(n,N6),{variant:p=s,color:h=o}=ly(e.variant,e.color),m=F({},n,{component:a,color:h,variant:p}),f=F6(m),v=F({},d,{component:a,slots:c,slotProps:u}),[w,y]=we("root",{ref:t,className:St(f.root,l),elementType:j6,externalForwardedProps:v,ownerState:m,additionalProps:{as:a,role:"option"}});return Y.jsx(w,F({},y,{children:i}))});var cT,uT;const B6=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],z6=["onDelete"],H6=["key"],U6=["onBlur","onFocus","onMouseDown"],V6=["key"],W6=r=>r.current!==null&&r.current.contains(document.activeElement),q6=r=>{var e;return(e=r.label)!=null?e:r},G6=r=>`+${r}`,K6=r=>Y.jsxs(Qo,{nested:!0,children:[Y.jsx(M6,{sticky:!0,children:r.group}),Y.jsx(ay,{children:r.children})]},r.key),Y6=r=>{const{disabled:e,focused:t,hasClearIcon:n,hasPopupIcon:i,popupOpen:a,variant:o,color:s,size:l,multiple:c}=r,u={root:["root",t&&"focused",n&&"hasClearIcon",i&&"hasPopupIcon",o&&`variant${Ie(o)}`,s&&`color${Ie(s)}`,l&&`size${Ie(l)}`],wrapper:["wrapper",c&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",e&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]};return Je(u,L6,{})},J6=he(nT,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>F({},r.size==="sm"&&{"--Autocomplete-wrapperGap":"3px"},r.size==="md"&&{"--Autocomplete-wrapperGap":"3px"},r.size==="lg"&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${ka.clearIndicator}`]:{visibility:"visible"}}},r.multiple&&!r.startDecorator&&{paddingInlineStart:0})),Q6=he("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(r,e)=>e.wrapper})(({ownerState:r})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${ka.multiple}`]:F({paddingBlock:"var(--Autocomplete-wrapperGap)"},!r.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!r.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})})),X6=he(iT,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(r,e)=>e.input})(({ownerState:r})=>F({minWidth:30,minHeight:"var(--Chip-minHeight)"},r.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"})),Z6=he(aT,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({}),eG=he(oT,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})(({ownerState:r})=>F({},(r.hasClearIcon||r.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"})),tG=he(ac,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(r,e)=>e.clearIndicator})(({ownerState:r})=>F({alignSelf:"center"},!r.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:r.focused?"visible":"hidden"})),rG=he(ac,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(r,e)=>e.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${ka.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),nG=he(sT,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(r,e)=>e.listbox})(({theme:r})=>({zIndex:`var(--unstable_popup-zIndex, ${r.vars.zIndex.popup})`})),iG=he(lT,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(r,e)=>e.option})({}),aG=he(Qo,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(r,e)=>e.loading})(({theme:r})=>({color:(r.vars||r).palette.text.secondary})),oG=he(Qo,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(r,e)=>e.noOptions})(({theme:r})=>({color:(r.vars||r).palette.text.secondary})),sG=he("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(r,e)=>e.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),lo=D.forwardRef(function(e,t){var n,i,a,o,s,l,c;const u=Ze({props:e,name:"JoyAutocomplete"}),{"aria-describedby":d,"aria-label":p,"aria-labelledby":h,autoFocus:m,clearIcon:f=cT||(cT=Y.jsx(K1,{fontSize:"md"})),clearText:v="Clear",closeText:w="Close",disableClearable:y=!1,disabled:g,endDecorator:x,error:b=!1,forcePopupIcon:C="auto",freeSolo:I=!1,getLimitTagsText:S=G6,getOptionLabel:P=q6,groupBy:_,id:k,limitTags:T=-1,loading:E=!1,loadingText:M="Loading…",multiple:O=!1,name:L,noOptionsText:N="No options",openText:W="Open",placeholder:V,popupIcon:U=uT||(uT=Y.jsx(Wq,{})),readOnly:R=!1,renderGroup:$=K6,renderOption:j,renderTags:B,required:J,type:G,startDecorator:K,size:q="md",color:X="neutral",variant:ee="outlined",component:se,slots:ce={},slotProps:Ae={}}=u,Le=$e(u,B6),Ee=D.useContext(Ta),Oe=(n=(i=e.error)!=null?i:Ee?.error)!=null?n:b,ve=(a=(o=e.size)!=null?o:Ee?.size)!=null?a:q,ne=(s=e.color)!=null?s:Oe?"danger":(l=Ee?.color)!=null?l:X,ae=(c=g??Ee?.disabled)!=null?c:!1,{getRootProps:pe,getInputProps:xe,getPopupIndicatorProps:ue,getClearProps:Pe,getTagProps:je,getListboxProps:Be,getOptionProps:st,value:Qe,dirty:de,popupOpen:Ce,focused:ye,focusedTag:Ne,anchorEl:_e,setAnchorEl:ke,inputValue:We,groupedOptions:ze}=qW(F({},u,{id:k??Ee?.htmlFor,componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:W6})),{onMouseDown:kt}=xe(),{onClick:ht}=pe(),yr=!y&&!ae&&de&&!R,Yt=(!I||C===!0)&&C!==!1,Pt=F({instanceColor:e.color},u,{value:Qe,disabled:ae,focused:ye,getOptionLabel:P,hasOptions:!!ze.length,hasClearIcon:yr,hasPopupIcon:Yt,inputFocused:Ne===-1,popupOpen:Ce,size:ve,color:ne,variant:ee}),yt=Y6(Pt),mt=F({},Le,{component:se,slots:ce,slotProps:Ae});let xt;if(O&&Qe.length>0){const lt=ei=>{const jr=je(ei),{onDelete:di}=jr,Ka=$e(jr,z6);return F({disabled:ae,size:ve,onClick:di},Ka)};B?xt=B(Qe,lt,Pt):xt=Qe.map((ei,jr)=>{const di=lt({index:jr}),{key:Ka}=di,Xw=$e(di,H6);return Y.jsx(xr,{size:ve,variant:"soft",color:"neutral",endDecorator:Y.jsx(Sa,F({},Xw),Ka),sx:{minWidth:0},children:P(ei)},jr)})}const Q=Tt(t,ke),te={[ka.disabled]:ae,[ka.error]:Oe,[ka.focused]:ye,[ka.formControl]:!!Ee},[ie,oe]=we("root",{ref:Q,className:[yt.root,te],elementType:J6,externalForwardedProps:mt,ownerState:Pt,getSlotProps:pe,additionalProps:{onClick:lt=>{ht&&ht(lt),lt.currentTarget===lt.target&&kt&&kt(lt)}}}),[Se,Me]=we("wrapper",{className:yt.wrapper,elementType:Q6,externalForwardedProps:mt,ownerState:Pt}),qe={[ka.disabled]:ae},[Fe,et]=we("input",{className:[yt.input,qe],elementType:X6,getSlotProps:lt=>{const ei=xe(),{onBlur:jr,onFocus:di,onMouseDown:Ka}=ei,Xw=$e(ei,U6);return F({},Xw,{onBlur:Ya=>{var Ja;jr?.(Ya),(Ja=lt.onBlur)==null||Ja.call(lt,Ya)},onFocus:Ya=>{var Ja;di?.(Ya),(Ja=lt.onFocus)==null||Ja.call(lt,Ya)},onMouseDown:Ya=>{var Ja;Ka?.(Ya),(Ja=lt.onMouseDown)==null||Ja.call(lt,Ya)}})},externalForwardedProps:mt,ownerState:Pt,additionalProps:{autoFocus:m,placeholder:V,name:L,readOnly:R,disabled:ae,required:J??Ee?.required,type:G,"aria-invalid":Oe||void 0,"aria-label":p,"aria-labelledby":h,"aria-describedby":d??Ee?.["aria-describedby"]}}),[He,Ge]=we("startDecorator",{className:yt.startDecorator,elementType:Z6,externalForwardedProps:mt,ownerState:Pt}),[dt,Ar]=we("endDecorator",{className:yt.endDecorator,elementType:eG,externalForwardedProps:mt,ownerState:Pt}),[Pr,pa]=we("clearIndicator",{className:yt.clearIndicator,elementType:tG,getSlotProps:Pe,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({size:lt.size||ve,variant:lt.variant||oo(ee,ne).variant||"plain",color:lt.color||oo(ee,ne).color||"neutral",disableColorInversion:!!e.color}),additionalProps:{"aria-label":v,title:v}}),[Zn,al]=we("popupIndicator",{className:yt.popupIndicator,elementType:rG,getSlotProps:ue,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({size:lt.size||ve,variant:lt.variant||oo(ee,ne).variant||"plain",color:lt.color||oo(ee,ne).color||"neutral",disableColorInversion:!!e.color}),additionalProps:{disabled:ae,"aria-label":Ce?w:W,title:Ce?w:W,type:"button"}}),[be,fe]=we("listbox",{className:yt.listbox,elementType:nG,getSlotProps:Be,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({size:lt.size||ve,variant:lt.variant||ee,color:lt.color||ne,disableColorInversion:!lt.disablePortal}),additionalProps:{anchorEl:_e,open:Ce,style:_e?{width:_e.clientWidth}:{}}}),[Ue,it]=we("loading",{className:yt.loading,elementType:aG,externalForwardedProps:mt,ownerState:Pt}),[Ct,Gt]=we("noOptions",{className:yt.noOptions,elementType:oG,externalForwardedProps:mt,ownerState:Pt,additionalProps:{role:"presentation",onMouseDown:lt=>{lt.preventDefault()}}}),[Jt,vn]=we("limitTag",{className:yt.limitTag,elementType:sG,externalForwardedProps:mt,ownerState:Pt});if(T>-1&&Array.isArray(xt)){const lt=xt.length-T;!ye&&lt>0&&(xt=xt.splice(0,T),xt.push(Y.jsx(Jt,F({},vn,{children:S(lt)}),xt.length)))}const[ol,xxe]=we("option",{className:yt.option,elementType:iG,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({variant:lt.variant||oo(ee,ne).variant||"plain",color:lt.color||oo(ee,ne).color||"neutral",disableColorInversion:!fe.disablePortal}),additionalProps:{as:"li"}}),Cxe=j||((lt,ei)=>{const{key:jr}=lt,di=$e(lt,V6);return Y.jsx(ol,F({},di,{children:P(ei)}),jr)}),zL=(lt,ei)=>{const jr=st({option:lt,index:ei});return Cxe(F({},xxe,jr),lt,{selected:!!jr["aria-selected"],inputValue:We,ownerState:Pt})},Ixe=D.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...fe.modifiers||[]],[fe.modifiers]);let HL=null;if(_e){var UL;HL=Y.jsx(cy,{variant:ee,color:ne,children:Y.jsx(rc,{nested:!0,children:Y.jsxs(be,F({},fe,{className:St(fe.className),modifiers:Ixe},!((UL=u.slots)!=null&&UL.listbox)&&{as:Zv,slots:{root:fe.as||"ul"}},{children:[ze.map((lt,ei)=>{if(_){const jr=lt;return $({key:String(jr.key),group:jr.group,children:jr.options.map((di,Ka)=>zL(di,jr.index+Ka))})}return zL(lt,ei)}),E&&ze.length===0?Y.jsx(Ue,F({},it,{children:M})):null,ze.length===0&&!I&&!E?Y.jsx(Ct,F({},Gt,{children:N})):null]}))})})}return Y.jsxs(D.Fragment,{children:[Y.jsxs(ie,F({},oe,{children:[K&&Y.jsx(He,F({},Ge,{children:K})),Y.jsxs(Se,F({},Me,{children:[xt,Y.jsx(Fe,F({},et))]})),x&&Y.jsx(dt,F({},Ar,{children:x})),yr?Y.jsx(Pr,F({},pa,{children:f})):null,Yt?Y.jsx(Zn,F({},al,{children:U})):null]})),HL]})}),lG=_a(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function cG(r){return tt("MuiAvatar",r)}Xe("MuiAvatar",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","fallback","sizeSm","sizeMd","sizeLg","img","variantOutlined","variantSoft","variantSolid"]);const uG=D.createContext(void 0);he("div",{name:"JoyAvatarGroup",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>F({},r.size==="sm"&&{"--AvatarGroup-gap":"-0.375rem","--Avatar-ringSize":"2px"},r.size==="md"&&{"--AvatarGroup-gap":"-0.5rem","--Avatar-ringSize":"2px"},r.size==="lg"&&{"--AvatarGroup-gap":"-0.625rem","--Avatar-ringSize":"4px"},{"--Avatar-ring":`0 0 0 var(--Avatar-ringSize) var(--Avatar-ringColor, ${e.vars.palette.background.surface})`,"--Avatar-marginInlineStart":"var(--AvatarGroup-gap)",display:"flex",marginInlineStart:"calc(-1 * var(--AvatarGroup-gap))"}));const dG=["alt","color","size","variant","src","srcSet","children","component","slots","slotProps"],pG=r=>{const{size:e,variant:t,color:n,src:i,srcSet:a}=r,o={root:["root",t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,e&&`size${Ie(e)}`],img:[(i||a)&&"img"],fallback:["fallback"]};return Je(o,cG,{})},hG=he("div",{name:"JoyAvatar",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;return F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon},r.typography[`title-${e.size}`],e.size==="sm"&&{width:"var(--Avatar-size, 2rem)",height:"var(--Avatar-size, 2rem)",fontSize:"calc(var(--Avatar-size, 2rem) * 0.4375)"},e.size==="md"&&{width:"var(--Avatar-size, 2.5rem)",height:"var(--Avatar-size, 2.5rem)",fontSize:"calc(var(--Avatar-size, 2.5rem) * 0.4)"},e.size==="lg"&&{width:"var(--Avatar-size, 3rem)",height:"var(--Avatar-size, 3rem)",fontSize:"calc(var(--Avatar-size, 3rem) * 0.375)"},{marginInlineStart:"var(--Avatar-marginInlineStart)",boxShadow:"var(--Avatar-ring)",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,lineHeight:1,overflow:"hidden",borderRadius:"var(--Avatar-radius, 50%)",userSelect:"none"},(t=r.variants[e.variant])==null?void 0:t[e.color])}),fG=he("img",{name:"JoyAvatar",slot:"Img",overridesResolver:(r,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),mG=he(lG,{name:"JoyAvatar",slot:"Fallback",overridesResolver:(r,e)=>e.fallback})({width:"64%",height:"64%"});function gG({crossOrigin:r,referrerPolicy:e,src:t,srcSet:n}){const[i,a]=D.useState(!1);return D.useEffect(()=>{if(!t&&!n)return;a(!1);let o=!0;const s=new Image;return s.onload=()=>{o&&a("loaded")},s.onerror=()=>{o&&a("error")},s.crossOrigin=r,s.referrerPolicy=e,t&&(s.src=t),n&&(s.srcset=n),()=>{o=!1}},[r,e,t,n]),i}const pn=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAvatar"}),i=D.useContext(uG),{alt:a,color:o="neutral",size:s="md",variant:l="soft",src:c,srcSet:u,children:d,component:p,slots:h={},slotProps:m={}}=n,f=$e(n,dG),v=e.variant||i?.variant||l,w=e.color||i?.color||o,y=e.size||i?.size||s;let g=null;const x=F({},n,{color:w,size:y,variant:v,grouped:!!i}),b=pG(x),C=F({},f,{component:p,slots:h,slotProps:m}),[I,S]=we("root",{ref:t,className:b.root,elementType:hG,externalForwardedProps:C,ownerState:x}),[P,_]=we("img",{additionalProps:{alt:a,src:c,srcSet:u},className:b.img,elementType:fG,externalForwardedProps:C,ownerState:x}),[k,T]=we("fallback",{className:b.fallback,elementType:mG,externalForwardedProps:C,ownerState:x}),E=gG(F({},_,{src:c,srcSet:u}));return(c||u)&&E!=="error"?g=Y.jsx(P,F({},_)):d!=null?g=d:a?g=a[0]:g=Y.jsx(k,F({},T)),Y.jsx(I,F({},S,{children:g}))}),vG=OS("MuiBox",["root"]),Re=VU({themeId:vv,defaultTheme:Mv,defaultClassName:vG.root,generateClassName:AS.generate});function yG(r){return tt("MuiTypography",r)}Xe("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const bG=["color","textColor"],wG=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],oc=D.createContext(!1),dy=D.createContext(!1),xG=r=>{const{gutterBottom:e,noWrap:t,level:n,color:i,variant:a}=r,o={root:["root",n,e&&"gutterBottom",t&&"noWrap",i&&`color${Ie(i)}`,a&&`variant${Ie(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(o,yG,{})},CG=he("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),IG=he("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),_G=he("span",{name:"JoyTypography",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o;const s=e.level!=="inherit"?(t=r.typography[e.level])==null?void 0:t.lineHeight:"1";return F({"--Icon-fontSize":`calc(1em * ${s})`},e.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},e.nesting?{display:"inline"}:F({display:"block"},e.unstable_hasSkeleton&&{position:"relative"}),(e.startDecorator||e.endDecorator)&&F({display:"flex",alignItems:"center"},e.nesting&&F({display:"inline-flex"},e.startDecorator&&{verticalAlign:"bottom"})),e.level&&e.level!=="inherit"&&r.typography[e.level],{fontSize:`var(--Typography-fontSize, ${e.level&&e.level!=="inherit"&&(n=(i=r.typography[e.level])==null?void 0:i.fontSize)!=null?n:"inherit"})`},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.color&&{color:`var(--variant-plainColor, rgba(${(a=r.vars.palette[e.color])==null?void 0:a.mainChannel} / 1))`},e.variant&&F({borderRadius:r.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!e.nesting&&{marginInline:"-0.25em"},(o=r.variants[e.variant])==null?void 0:o[e.color]))}),dT={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},Ve=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyTypography"}),{color:a,textColor:o}=i,s=$e(i,bG),l=D.useContext(oc),c=D.useContext(dy),u=$l(F({},s,{color:o})),{component:d,gutterBottom:p=!1,noWrap:h=!1,level:m="body-md",levelMapping:f=dT,children:v,endDecorator:w,startDecorator:y,variant:g,slots:x={},slotProps:b={}}=u,C=$e(u,wG),I=(n=e.color)!=null?n:g?a??"neutral":a,S=l||c?e.level||"inherit":m,P=Wo(v,["Skeleton"]),_=d||(l?"span":f[S]||dT[S]||"span"),k=F({},u,{level:S,component:_,color:I,gutterBottom:p,noWrap:h,nesting:l,variant:g,unstable_hasSkeleton:P}),T=xG(k),E=F({},C,{component:_,slots:x,slotProps:b}),[M,O]=we("root",{ref:t,className:T.root,elementType:_G,externalForwardedProps:E,ownerState:k}),[L,N]=we("startDecorator",{className:T.startDecorator,elementType:CG,externalForwardedProps:E,ownerState:k}),[W,V]=we("endDecorator",{className:T.endDecorator,elementType:IG,externalForwardedProps:E,ownerState:k});return Y.jsx(oc.Provider,{value:!0,children:Y.jsxs(M,F({},O,{children:[y&&Y.jsx(L,F({},N,{children:y})),P?D.cloneElement(v,{variant:v.props.variant||"inline"}):v,w&&Y.jsx(W,F({},V,{children:w}))]}))})});Ve.muiName="Typography";function SG(r){return tt("MuiButton",r)}const ep=Xe("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),TG=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],kG=r=>{const{color:e,disabled:t,focusVisible:n,focusVisibleClassName:i,fullWidth:a,size:o,variant:s,loading:l}=r,c={root:["root",t&&"disabled",n&&"focusVisible",a&&"fullWidth",s&&`variant${Ie(s)}`,e&&`color${Ie(e)}`,o&&`size${Ie(o)}`,l&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=Je(c,SG,{});return n&&i&&(u.root+=` ${i}`),u},AG=he("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),PG=he("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),EG=he("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return F({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(t=r.variants[e.variant])==null||(t=t[e.color])==null?void 0:t.color},e.disabled&&{color:(n=r.variants[`${e.variant}Disabled`])==null||(n=n[e.color])==null?void 0:n.color})}),OG=({theme:r,ownerState:e})=>{var t,n,i,a;return[F({"--Icon-margin":"initial","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon},e.size==="sm"&&{"--Icon-fontSize":r.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},e.size==="md"&&{"--Icon-fontSize":r.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},e.size==="lg"&&{"--Icon-fontSize":r.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:r.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${r.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:r.vars.lineHeight.md},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),F({},(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color]},'&:active, &[aria-pressed="true"]':(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color],[`&.${ep.disabled}`]:(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]},e.loadingPosition==="center"&&{[`&.${ep.loading}`]:{color:"transparent"}})]},RG=he("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(OG),bt=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyButton"}),{children:a,action:o,color:s="primary",variant:l="solid",size:c="md",fullWidth:u=!1,startDecorator:d,endDecorator:p,loading:h=!1,loadingPosition:m="center",loadingIndicator:f,disabled:v,component:w,slots:y={},slotProps:g={}}=i,x=$e(i,TG),b=D.useContext(J1),C=D.useContext(Q1),I=e.variant||b.variant||l,S=e.size||b.size||c,P=e.color||b.color||s,_=(n=e.loading||e.disabled)!=null?n:b.disabled||h||v,k=D.useRef(null),T=Tt(k,t),{focusVisible:E,setFocusVisible:M,getRootProps:O}=xa(F({},i,{disabled:_,rootRef:T})),L=f??Y.jsx(jn,{color:P,thickness:{sm:2,md:3,lg:4}[S]||3});D.useImperativeHandle(o,()=>({focusVisible:()=>{var ee;M(!0),(ee=k.current)==null||ee.focus()}}),[M]);const N=F({},i,{color:P,fullWidth:u,variant:I,size:S,focusVisible:E,loading:h,loadingPosition:m,disabled:_}),W=kG(N),V=ee=>{var se;let ce=i.onClick;if(typeof g.root=="function"?ce=g.root(N).onClick:g.root&&(ce=g.root.onClick),(se=ce)==null||se(ee),C){var Ae;(Ae=C.onClick)==null||Ae.call(C,ee,i.value)}};let U=i["aria-pressed"];typeof g.root=="function"?U=g.root(N)["aria-pressed"]:g.root&&(U=g.root["aria-pressed"]),C!=null&&C.value&&(Array.isArray(C.value)?U=C.value.indexOf(i.value)!==-1:U=C.value===i.value);const R=F({},x,{component:w,slots:y,slotProps:g}),[$,j]=we("root",{ref:t,className:W.root,elementType:RG,externalForwardedProps:R,getSlotProps:O,ownerState:N,additionalProps:{onClick:V,"aria-pressed":U}}),[B,J]=we("startDecorator",{className:W.startDecorator,elementType:AG,externalForwardedProps:R,ownerState:N}),[G,K]=we("endDecorator",{className:W.endDecorator,elementType:PG,externalForwardedProps:R,ownerState:N}),[q,X]=we("loadingIndicatorCenter",{className:W.loadingIndicatorCenter,elementType:EG,externalForwardedProps:R,ownerState:N});return Y.jsxs($,F({},j,{children:[(d||h&&m==="start")&&Y.jsx(B,F({},J,{children:h&&m==="start"?L:d})),a,h&&m==="center"&&Y.jsx(q,F({},X,{children:L})),(p||h&&m==="end")&&Y.jsx(G,F({},K,{children:h&&m==="end"?L:p}))]}))});bt.muiName="Button";function DG(r){return tt("MuiCard",r)}const MG=Xe("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]),LG=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],$G=r=>{const{size:e,variant:t,color:n,orientation:i}=r,a={root:["root",i,t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,e&&`size${Ie(e)}`]};return Je(a,DG,{})},pT=he("div")(({theme:r,ownerState:e})=>{var t;const{p:n,padding:i,borderRadius:a}=Ia({theme:r,ownerState:e},["p","padding","borderRadius"]);return[F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},e.size==="sm"&&{"--Card-radius":r.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},e.size==="md"&&{"--Card-radius":r.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},e.size==="lg"&&{"--Card-radius":r.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:r.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:e.orientation==="horizontal"?"row":"column"},r.typography[`body-${e.size}`],e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(t=r.variants[e.variant])==null?void 0:t[e.color]),n!==void 0&&{"--Card-padding":n},i!==void 0&&{"--Card-padding":i},a!==void 0&&{"--Card-radius":a}]}),NG=he(pT,{name:"JoyCard",slot:"Root",overridesResolver:(r,e)=>e.root})({}),tn=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyCard"}),{className:i,color:a="neutral",component:o="div",invertedColors:s=!1,size:l="md",variant:c="outlined",children:u,orientation:d="vertical",slots:p={},slotProps:h={}}=n,m=$e(n,LG),f=F({},n,{color:a,component:o,orientation:d,size:l,variant:c,invertedColors:s}),v=$G(f),w=F({},m,{component:o,slots:p,slotProps:h}),[y,g]=we("root",{ref:t,className:St(v.root,i),elementType:NG,externalForwardedProps:w,ownerState:f});return Y.jsx(y,F({},g,{children:D.Children.map(u,(x,b)=>{if(!D.isValidElement(x))return x;const C={};if(Wo(x,["Divider"])){var I,S;const P=x.props;C.inset=(I=P?.inset)!=null?I:"context";const _=d==="vertical"?"horizontal":"vertical";C.orientation=(S=P?.orientation)!=null?S:_}return b===0&&(C["data-first-child"]=""),b===D.Children.count(u)-1&&(C["data-last-child"]=""),D.cloneElement(x,C)})}))}),py=Xe("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);function FG(r){return tt("MuiDivider",r)}const jG=Xe("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]),hT=he("div")(({ownerState:r})=>{var e;return F({"--Button-radius":"var(--Card-childRadius)","--IconButton-radius":"var(--Card-childRadius)",display:"flex"},((e=r.orientation)==null?void 0:e.startsWith("horizontal"))&&{alignItems:"center"},{flexDirection:r.orientation==="horizontal"?"row":"column"},r.orientation==="horizontal-reverse"&&{flexDirection:"row-reverse"},{zIndex:1,gap:"calc(0.625 * var(--Card-padding))",padding:"var(--unstable_padding)","--unstable_padding":"calc(0.75 * var(--Card-padding)) 0 0 0",[`.${py.root} > &`]:{"--unstable_padding":"calc(0.75 * var(--Card-padding)) 0 var(--Card-padding)"},[`.${MG.root} > .${jG.root} + &`]:{"--unstable_padding":"0"}},r.buttonFlex?{[`& > :not(.${Gq.root})`]:{flex:r.buttonFlex},[`& > :not(button) > .${ep.root}`]:{width:"100%"}}:{[`& > .${ep.root}:only-child`]:{flex:"auto"}})});he(hT,{name:"JoyCardActions",slot:"Root",overridesResolver:(r,e)=>e.root})({});function BG(r){return tt("MuiCardContent",r)}Xe("MuiCardContent",["root"]);const zG=["className","component","children","orientation","slots","slotProps"],HG=()=>Je({root:["root"]},BG,{}),fT=he("div")(({ownerState:r})=>({display:"flex",flexDirection:r.orientation==="horizontal"?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${py.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),UG=he(fT,{name:"JoyCardContent",slot:"Root",overridesResolver:(r,e)=>e.root})({}),ji=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyCardContent"}),{className:i,component:a="div",children:o,orientation:s="vertical",slots:l={},slotProps:c={}}=n,u=$e(n,zG),d=F({},u,{component:a,slots:l,slotProps:c}),p=F({},n,{component:a,orientation:s}),h=HG(),[m,f]=we("root",{ref:t,className:St(h.root,i),elementType:UG,externalForwardedProps:d,ownerState:p});return Y.jsx(m,F({},f,{children:o}))});function VG(r){return tt("MuiModalDialog",r)}const WG=Xe("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);function qG(r){return tt("MuiCheckbox",r)}const es=Xe("MuiCheckbox",["root","checkbox","action","input","label","checked","disabled","focusVisible","indeterminate","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid"]),GG=_a(Y.jsx("path",{d:"M9 16.17 5.53 12.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L9 16.17z"}),"Check"),KG=_a(Y.jsx("path",{d:"M19 13H5c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1 .45 1 1s-.45 1-1 1z"}),"HorizontalRule"),YG=["checked","uncheckedIcon","checkedIcon","label","defaultChecked","disabled","disableIcon","overlay","id","indeterminate","indeterminateIcon","name","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","value","color","variant","size","component","slots","slotProps"],JG=r=>{const{checked:e,disabled:t,disableIcon:n,focusVisible:i,color:a,variant:o,size:s,indeterminate:l}=r,c={root:["root",e&&"checked",t&&"disabled",i&&"focusVisible",o&&`variant${Ie(o)}`,a&&`color${Ie(a)}`,s&&`size${Ie(s)}`],checkbox:["checkbox",e&&"checked",l&&"indeterminate",t&&"disabled"],action:["action",e&&"checked",n&&t&&"disabled",i&&"focusVisible"],input:["input"],label:["label"]};return Je(c,qG,{})},QG=he("span",{name:"JoyCheckbox",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n,i;return F({"--Icon-fontSize":"var(--Checkbox-size)"},r.size==="sm"&&{"--Checkbox-size":"1rem","& ~ *":{"--FormHelperText-margin":"0 0 0 1.5rem"},fontSize:e.vars.fontSize.sm,gap:"var(--Checkbox-gap, 0.5rem)"},r.size==="md"&&{"--Checkbox-size":"1.25rem","& ~ *":{"--FormHelperText-margin":"0.25rem 0 0 1.875rem"},fontSize:e.vars.fontSize.md,gap:"var(--Checkbox-gap, 0.625rem)"},r.size==="lg"&&{"--Checkbox-size":"1.5rem","& ~ *":{"--FormHelperText-margin":"0.375rem 0 0 2.25rem"},fontSize:e.vars.fontSize.lg,gap:"var(--Checkbox-gap, 0.75rem)"},{position:r.overlay?"initial":"relative",display:"inline-flex",fontFamily:e.vars.fontFamily.body,lineHeight:"var(--Checkbox-size)",color:e.vars.palette.text.primary,[`&.${es.disabled}`]:{color:(t=e.variants.plainDisabled)==null||(t=t[r.color])==null?void 0:t.color}},r.disableIcon&&{color:(n=e.variants[r.variant])==null||(n=n[r.color])==null?void 0:n.color,[`&.${es.disabled}`]:{color:(i=e.variants[`${r.variant}Disabled`])==null||(i=i[r.color])==null?void 0:i.color}})}),XG=he("span",{name:"JoyCheckbox",slot:"Checkbox",overridesResolver:(r,e)=>e.checkbox})(({theme:r,ownerState:e})=>{var t,n,i,a,o;const s=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color];return[F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,boxSizing:"border-box",borderRadius:`min(${r.vars.radius.sm}, 0.25rem)`,width:"var(--Checkbox-size)",height:"var(--Checkbox-size)",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0},e.disableIcon&&{display:"contents"},{[`&.${es.checked}, &.${es.indeterminate}`]:{"--Icon-color":"currentColor"}}),...e.disableIcon?[]:[F({},s,{backgroundColor:(n=s?.backgroundColor)!=null?n:r.vars.palette.background.surface}),{"&:hover":{"@media (hover: hover)":(i=r.variants[`${e.variant}Hover`])==null?void 0:i[e.color]}},{"&:active":(a=r.variants[`${e.variant}Active`])==null?void 0:a[e.color]},{[`&.${es.disabled}`]:(o=r.variants[`${e.variant}Disabled`])==null?void 0:o[e.color]}]]}),ZG=he("span",{name:"JoyCheckbox",slot:"Action",overridesResolver:(r,e)=>e.action})(({theme:r,ownerState:e})=>{var t,n,i,a;return[{borderRadius:`var(--Checkbox-actionRadius, ${e.overlay?"var(--unstable_actionRadius, inherit)":"inherit"})`,textAlign:"left",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",zIndex:1,[r.focus.selector]:r.focus.default},...e.disableIcon?[(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:hover":(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color]},{"&:active":(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color]},{[`&.${es.disabled}`]:(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]}]:[]]}),e7=he("input",{name:"JoyCheckbox",slot:"Input",overridesResolver:(r,e)=>e.input})(()=>({margin:0,opacity:0,position:"absolute",width:"100%",height:"100%",cursor:"pointer"})),t7=he("label",{name:"JoyCheckbox",slot:"Label",overridesResolver:(r,e)=>e.label})(({ownerState:r})=>F({flex:1,minWidth:0},r.disableIcon&&{zIndex:1,pointerEvents:"none"})),r7=Y.jsx(GG,{}),n7=Y.jsx(KG,{}),i7=D.forwardRef(function(e,t){var n,i,a,o,s;const l=Ze({props:e,name:"JoyCheckbox"}),{checked:c,uncheckedIcon:u,checkedIcon:d=r7,label:p,defaultChecked:h,disabled:m,disableIcon:f=!1,overlay:v,id:w,indeterminate:y=!1,indeterminateIcon:g=n7,name:x,onBlur:b,onChange:C,onFocus:I,onFocusVisible:S,readOnly:P,required:_,value:k,color:T,variant:E,size:M="md",component:O,slots:L={},slotProps:N={}}=l,W=$e(l,YG),V=D.useContext(Ta),U=(n=(i=e.disabled)!=null?i:V?.disabled)!=null?n:m,R=(a=(o=e.size)!=null?o:V?.size)!=null?a:M,$=Cn(w??V?.htmlFor),j={checked:c,defaultChecked:h,disabled:U,onBlur:b,onChange:C,onFocus:I,onFocusVisible:S},{getInputProps:B,checked:J,disabled:G,focusVisible:K}=E1(j),q=J||y,se=q?E||"solid":E||"outlined",ce=e.color||(V!=null&&V.error?"danger":(s=V?.color)!=null?s:T),Ee=F({},l,{checked:J,disabled:G,disableIcon:f,overlay:v,focusVisible:K,color:q?ce||"primary":ce||"neutral",variant:se,size:R}),Oe=JG(Ee),ve=F({},W,{component:O,slots:L,slotProps:N}),[ne,ae]=we("root",{ref:t,className:Oe.root,elementType:QG,externalForwardedProps:ve,ownerState:Ee}),[pe,xe]=we("checkbox",{className:Oe.checkbox,elementType:XG,externalForwardedProps:ve,ownerState:Ee}),[ue,Pe]=we("action",{className:Oe.action,elementType:ZG,externalForwardedProps:ve,ownerState:Ee}),[je,Be]=we("input",{additionalProps:F({id:$,name:x,value:k,readOnly:P,role:void 0,required:_??V?.required,"aria-describedby":V?.["aria-describedby"]},y&&{"aria-checked":"mixed"}),className:Oe.input,elementType:e7,externalForwardedProps:ve,getSlotProps:B,ownerState:Ee}),[st,Qe]=we("label",{additionalProps:{htmlFor:$},className:Oe.label,elementType:t7,externalForwardedProps:ve,ownerState:Ee});let de=u;return f?de=null:y?de=g:J&&(de=d),Y.jsxs(ne,F({},ae,{children:[Y.jsxs(pe,F({},xe,{children:[Y.jsx(ue,F({},Pe,{children:Y.jsx(je,F({},Be))})),de]})),p&&Y.jsx(oc.Provider,{value:!0,children:Y.jsx(st,F({},Qe,{children:p}))})]}))});function a7(r){return tt("MuiDialogActions",r)}Xe("MuiDialogActions",["root"]);const o7=["component","children","buttonFlex","orientation","slots","slotProps"],s7=()=>Je({root:["root"]},a7,{}),l7=he(hT,{name:"JoyDialogActions",slot:"Root",overridesResolver:(r,e)=>e.root})({}),mT=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDialogActions"}),{component:i="div",children:a,buttonFlex:o,orientation:s="horizontal-reverse",slots:l={},slotProps:c={}}=n,u=$e(n,o7),d=F({},u,{component:i,slots:l,slotProps:c}),p=F({},n,{component:i,buttonFlex:o,orientation:s}),h=s7(),[m,f]=we("root",{ref:t,className:h.root,elementType:l7,externalForwardedProps:d,ownerState:p});return Y.jsx(m,F({},f,{children:a}))});function c7(r){return tt("MuiDialogContent",r)}Xe("MuiDialogContent",["root"]);const tp=D.createContext(void 0);function u7(r){return tt("MuiDialogTitle",r)}const d7=Xe("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),p7=["component","children","orientation","slots","slotProps"],h7=()=>Je({root:["root"]},c7,{}),f7=he(fT,{name:"JoyDialogContent",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({color:`var(--DialogContent-color, ${r.vars.palette.text.tertiary})`,overflow:"auto",margin:"var(--unstable_DialogContent-margin)",[`.${WG.root} > .${d7.root} + &`]:{"--unstable_DialogContent-margin":"-0.375em 0 0 0"}})),hy=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDialogContent"}),i=D.useContext(tp),{component:a="div",children:o,orientation:s="vertical",slots:l={},slotProps:c={}}=n,u=$e(n,p7),d=F({},u,{component:a,slots:l,slotProps:c}),p=F({},n,{component:a,orientation:s}),h=h7(),[m,f]=we("root",{ref:t,className:h.root,elementType:f7,externalForwardedProps:d,ownerState:p,additionalProps:{id:i?.describedBy}});return Y.jsx(m,F({},f,{children:o}))}),fy=D.createContext(void 0),m7=["component","children","variant","color","level","slots","slotProps"],g7=r=>{const{level:e,color:t,variant:n}=r,i={root:["root",e,t&&`color${Ie(t)}`,n&&`variant${Ie(n)}`]};return Je(i,u7,{})},v7=he("h2",{name:"JoyDialogTitle",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n;const i=e.level!=="inherit"?(t=r.typography[e.level])==null?void 0:t.lineHeight:"1";return F({"--Icon-fontSize":`calc(1em * ${i})`},e.color&&{"--Icon-color":"currentColor"},{display:"flex",gap:"clamp(4px, 0.375em, 0.75rem)",margin:"var(--unstable_DialogTitle-margin, 0px)"},e.level&&e.level!=="inherit"&&r.typography[e.level],{color:"inherit"},e.variant&&F({borderRadius:r.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},(n=r.variants[e.variant])==null?void 0:n[e.color]),{[`.${py.root} > &`]:{"--unstable_DialogTitle-margin":"var(--Card-padding) 0"}})}),y7={sm:"title-md",md:"title-lg",lg:"h4"},my=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDialogTitle"}),i=D.useContext(fy),a=D.useContext(tp),{component:o="h2",children:s,variant:l,color:c,level:u=y7[i||"md"],slots:d={},slotProps:p={}}=n,h=$e(n,m7),m=e.color||(l?c??"neutral":c),f=F({},h,{component:o,slots:d,slotProps:p}),v=F({},n,{component:o,color:m,variant:l,level:u}),w=g7(v),[y,g]=we("root",{ref:t,className:w.root,elementType:v7,externalForwardedProps:f,ownerState:v,additionalProps:{id:a?.labelledBy}});return Y.jsx(y,F({},g,{children:s}))}),b7=["className","children","component","inset","orientation","role","slots","slotProps"],w7=r=>{const{orientation:e,inset:t}=r,n={root:["root",e,t&&`inset${Ie(t)}`]};return Je(n,FG,{})},gT=he("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>F({"--Divider-thickness":"1px","--Divider-lineColor":r.vars.palette.divider},e.inset==="none"&&{"--_Divider-inset":"0px"},e.inset==="context"&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:e.orientation==="vertical"?"initial":"var(--_Divider-inset)",marginBlock:e.orientation==="vertical"?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?F({"--Divider-gap":r.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:e.orientation==="vertical"?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0},r.typography["body-sm"],{"&::before, &::after":{position:"relative",inlineSize:e.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:e.orientation==="vertical"?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:e.orientation==="vertical"?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:e.orientation==="vertical"?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:e.orientation==="vertical"?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:e.orientation==="vertical"?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}):{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:e.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:e.orientation==="vertical"?"initial":"var(--Divider-thickness)"})),ts=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDivider"}),{className:i,children:a,component:o=a!=null?"div":"hr",inset:s,orientation:l="horizontal",role:c=o!=="hr"?"separator":void 0,slots:u={},slotProps:d={}}=n,p=$e(n,b7),h=F({},n,{inset:s,role:c,orientation:l,component:o}),m=w7(h),f=F({},p,{component:o,slots:u,slotProps:d}),[v,w]=we("root",{ref:t,className:St(m.root,i),elementType:gT,externalForwardedProps:f,ownerState:h,additionalProps:F({as:o,role:c},c==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return Y.jsx(v,F({},w,{children:a}))});ts.muiName="Divider";function x7(r){return tt("MuiModal",r)}Xe("MuiModal",["root","hidden","backdrop"]);const vT=D.createContext(void 0),C7=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],I7=r=>{const{open:e}=r;return Je({root:["root",!e&&"hidden"],backdrop:["backdrop"]},x7,{})},_7=he("div")(({ownerState:r,theme:e})=>F({"--unstable_popup-zIndex":`calc(${e.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${e.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:e.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&{visibility:"hidden"})),S7=he(_7,{name:"JoyModal",slot:"Root",overridesResolver:(r,e)=>e.root})({}),T7=he("div")(({theme:r})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:r.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"})),k7=he(T7,{name:"JoyModal",slot:"Backdrop",overridesResolver:(r,e)=>e.backdrop})({}),gy=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyModal"}),{children:i,container:a,disableAutoFocus:o=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:l=!1,disablePortal:c=!1,disableRestoreFocus:u=!1,disableScrollLock:d=!1,hideBackdrop:p=!1,keepMounted:h=!1,onClose:m,open:f,component:v,slots:w={},slotProps:y={}}=n,g=$e(n,C7),x=F({},n,{disableAutoFocus:o,disableEnforceFocus:s,disableEscapeKeyDown:l,disablePortal:c,disableRestoreFocus:u,disableScrollLock:d,hideBackdrop:p,keepMounted:h}),{getRootProps:b,getBackdropProps:C,rootRef:I,portalRef:S,isTopModal:P}=Q3(F({},x,{rootRef:t})),_=I7(x),k=F({},g,{component:v,slots:w,slotProps:y}),[T,E]=we("root",{ref:I,className:_.root,elementType:S7,externalForwardedProps:k,getSlotProps:b,ownerState:x}),[M,O]=we("backdrop",{className:_.backdrop,elementType:k7,externalForwardedProps:k,getSlotProps:C,ownerState:x});return!h&&!f?null:Y.jsx(vT.Provider,{value:m,children:Y.jsx(a1,{ref:S,container:a,disablePortal:c,children:Y.jsxs(T,F({},E,{children:[p?null:Y.jsx(M,F({},O)),Y.jsx(w3,{disableEnforceFocus:s,disableAutoFocus:o,disableRestoreFocus:u,isEnabled:P,open:f,children:D.Children.only(i)&&D.cloneElement(i,F({},i.props.tabIndex===void 0&&{tabIndex:-1}))})]}))})})});function A7(r){return tt("MuiFormControl",r)}const vy=Xe("MuiFormControl",["root","error","disabled","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);function P7(r){return tt("MuiSwitch",r)}const sc=Xe("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]),E7=["id","className","component","disabled","required","error","color","size","orientation","slots","slotProps"],O7=r=>{const{disabled:e,error:t,size:n,color:i,orientation:a}=r,o={root:["root",a,e&&"disabled",t&&"error",i&&`color${Ie(i)}`,n&&`size${Ie(n)}`]};return Je(o,A7,{})},R7=he("div",{name:"JoyFormControl",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i;return F({"--unstable_RadioGroup-margin":"0.5rem 0","--FormLabel-alignSelf":e.orientation==="horizontal"?"align-items":"flex-start","--FormLabel-asteriskColor":r.vars.palette.danger[500]},e.size==="sm"&&{"--FormLabel-fontSize":r.vars.fontSize.xs,"--FormLabel-lineHeight":r.vars.lineHeight.xl,"--FormLabel-margin":e.orientation==="horizontal"?"0 0.5rem 0 0":"0 0 0.25rem 0","--FormHelperText-fontSize":r.vars.fontSize.xs,"--FormHelperText-lineHeight":r.vars.lineHeight.xl},e.size==="md"&&{"--FormLabel-fontSize":r.vars.fontSize.sm,"--FormLabel-lineHeight":r.vars.lineHeight.sm,"--FormLabel-margin":e.orientation==="horizontal"?"0 0.75rem 0 0":"0 0 0.375rem 0","--FormHelperText-fontSize":r.vars.fontSize.sm,"--FormHelperText-lineHeight":r.vars.lineHeight.sm},e.size==="lg"&&{"--FormLabel-fontSize":r.vars.fontSize.md,"--FormLabel-lineHeight":r.vars.lineHeight.md,"--FormLabel-margin":e.orientation==="horizontal"?"0 1rem 0 0":"0 0 0.5rem 0","--FormHelperText-fontSize":r.vars.fontSize.sm,"--FormHelperText-lineHeight":r.vars.lineHeight.sm},e.color&&{"--FormHelperText-color":(t=r.vars.palette[e.color])==null?void 0:t[500]},{"--FormHelperText-margin":"0.375rem 0 0 0",[`&.${vy.error}`]:{"--FormHelperText-color":r.vars.palette.danger[500]},[`&.${vy.disabled}`]:{"--FormLabel-color":(n=r.variants.plainDisabled)==null||(n=n[e.color||"neutral"])==null?void 0:n.color,"--FormHelperText-color":(i=r.variants.plainDisabled)==null||(i=i[e.color||"neutral"])==null?void 0:i.color},display:"flex",position:"relative",flexDirection:e.orientation==="horizontal"?"row":"column"},e.orientation==="horizontal"&&{[`& > label ~ .${sc.root}`]:{"--unstable_Switch-margin":"0 0 0 auto"}})}),$t=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyFormControl"}),{id:i,className:a,component:o="div",disabled:s=!1,required:l=!1,error:c=!1,color:u,size:d="md",orientation:p="vertical",slots:h={},slotProps:m={}}=n,f=$e(n,E7),v=Cn(i),[w,y]=D.useState(null),g=F({},n,{id:v,component:o,color:u,disabled:s,error:c,required:l,size:d,orientation:p});let x;const b=O7(g),[C,I]=we("root",{ref:t,className:St(b.root,a),elementType:R7,externalForwardedProps:F({},f,{component:o,slots:h,slotProps:m}),ownerState:g}),S=D.useMemo(()=>({disabled:s,required:l,error:c,color:u,size:d,htmlFor:v,labelId:`${v}-label`,"aria-describedby":w?`${v}-helper-text`:void 0,setHelperText:y,registerEffect:x}),[u,s,c,w,v,x,l,d]);return Y.jsx(Ta.Provider,{value:S,children:Y.jsx(C,F({},I))})});function D7(r){return tt("MuiFormHelperText",r)}Xe("MuiFormHelperText",["root"]);function M7(r){return tt("MuiFormLabel",r)}const L7=Xe("MuiFormLabel",["root","asterisk"]),$7=["children","component","slots","slotProps"],N7=()=>Je({root:["root"]},D7,{}),F7=he("div",{name:"JoyFormHelperText",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({"--Icon-fontSize":"calc(var(--FormHelperText-lineHeight) * 1em)",display:"flex",alignItems:"center",gap:"2px",fontFamily:r.vars.fontFamily.body,fontSize:`var(--FormHelperText-fontSize, ${r.vars.fontSize.sm})`,lineHeight:`var(--FormHelperText-lineHeight, ${r.vars.lineHeight.sm})`,color:`var(--FormHelperText-color, ${r.vars.palette.text.tertiary})`,margin:"var(--FormHelperText-margin, 0px)",[`.${L7.root} + &`]:{"--FormHelperText-margin":"0px"},[`.${vy.error} &`]:{"--Icon-color":"currentColor"}})),Bi=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyFormHelperText"}),{children:i,component:a,slots:o={},slotProps:s={}}=n,l=$e(n,$7),c=D.useRef(null),u=Tt(c,t),d=D.useContext(Ta),p=d?.setHelperText;D.useEffect(()=>(p?.(c.current),()=>{p?.(null)}),[p]);const h=N7(),m=F({},l,{component:a,slots:o,slotProps:s}),[f,v]=we("root",{ref:u,elementType:F7,externalForwardedProps:m,ownerState:n,additionalProps:{as:a,id:d?.["aria-describedby"]},className:h.root});return Y.jsx(f,F({},v,{children:i}))}),j7=["children","component","htmlFor","id","slots","slotProps"],B7=()=>Je({root:["root"],asterisk:["asterisk"]},M7,{}),z7=he("label",{name:"JoyFormLabel",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({"--Icon-fontSize":"calc(var(--FormLabel-lineHeight) * 1em)",WebkitTapHighlightColor:"transparent",alignSelf:"var(--FormLabel-alignSelf)",display:"flex",gap:"2px",alignItems:"center",flexWrap:"wrap",userSelect:"none",fontFamily:r.vars.fontFamily.body,fontSize:`var(--FormLabel-fontSize, ${r.vars.fontSize.sm})`,fontWeight:r.vars.fontWeight.md,lineHeight:`var(--FormLabel-lineHeight, ${r.vars.lineHeight.sm})`,color:`var(--FormLabel-color, ${r.vars.palette.text.primary})`,margin:"var(--FormLabel-margin, 0px)"})),H7=he("span",{name:"JoyFormLabel",slot:"Asterisk",overridesResolver:(r,e)=>e.asterisk})({color:"var(--FormLabel-asteriskColor)"}),Nt=D.forwardRef(function(e,t){var n,i;const a=Ze({props:e,name:"JoyFormLabel"}),{children:o,component:s="label",htmlFor:l,id:c,slots:u={},slotProps:d={}}=a,p=$e(a,j7),h=D.useContext(Ta),m=(n=(i=e.required)!=null?i:h?.required)!=null?n:!1,f=F({},a,{required:m}),v=B7(),w=F({},p,{component:s,slots:u,slotProps:d}),[y,g]=we("root",{additionalProps:{htmlFor:l??h?.htmlFor,id:c??h?.labelId},ref:t,className:v.root,elementType:z7,externalForwardedProps:w,ownerState:f}),[x,b]=we("asterisk",{additionalProps:{"aria-hidden":!0},className:v.asterisk,elementType:H7,externalForwardedProps:w,ownerState:f});return Y.jsxs(y,F({},g,{children:[o,m&&Y.jsxs(x,F({},b,{children:[" ","*"]}))]}))}),ii=B4({createStyledComponent:he("div",{name:"JoyGrid",slot:"Root",overridesResolver:(r,e)=>e.root}),useThemeProps:r=>Ze({props:r,name:"JoyGrid"})});function U7(r){return tt("MuiLink",r)}const yT=Xe("MuiLink",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","variantPlain","variantOutlined","variantSoft","variantSolid","underlineNone","underlineHover","underlineAlways","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","startDecorator","endDecorator"]),V7=["color","textColor","variant"],W7=["children","disabled","onBlur","onFocus","level","overlay","underline","endDecorator","startDecorator","component","slots","slotProps"],q7=r=>{const{level:e,color:t,variant:n,underline:i,focusVisible:a,disabled:o}=r,s={root:["root",t&&`color${Ie(t)}`,o&&"disabled",a&&"focusVisible",e,i&&`underline${Ie(i)}`,n&&`variant${Ie(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(s,U7,{})},G7=he("span",{name:"JoyLink",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})(({ownerState:r})=>{var e;return F({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Link-gap, 0.375em), 0.75rem)"},typeof r.startDecorator!="string"&&(r.alignItems==="flex-start"||((e=r.sx)==null?void 0:e.alignItems)==="flex-start")&&{marginTop:"2px"})}),K7=he("span",{name:"JoyLink",slot:"endDecorator",overridesResolver:(r,e)=>e.endDecorator})(({ownerState:r})=>{var e;return F({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Link-gap, 0.25em), 0.5rem)"},typeof r.startDecorator!="string"&&(r.alignItems==="flex-start"||((e=r.sx)==null?void 0:e.alignItems)==="flex-start")&&{marginTop:"2px"})}),Y7=he("a",{name:"JoyLink",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s,l;return[F({"--Icon-fontSize":"1.25em","--Icon-color":"currentColor","--CircularProgress-size":"1.25em","--CircularProgress-thickness":"3px"},e.level&&e.level!=="inherit"&&r.typography[e.level],e.level==="inherit"&&{font:"inherit"},e.underline==="none"&&{textDecoration:"none"},e.underline==="hover"&&{textDecoration:"none","&:hover":{"@media (hover: hover)":{textDecorationLine:"underline"}}},e.underline==="always"&&{textDecoration:"underline"},e.startDecorator&&{verticalAlign:"bottom"},{textDecorationThickness:"max(0.08em, 1px)",textUnderlineOffset:"0.15em",display:"inline-flex",alignItems:"center",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:r.vars.radius.xs,padding:0,cursor:"pointer",textDecorationColor:`var(--variant-outlinedBorder, rgba(${(t=r.vars.palette[e.color])==null?void 0:t.mainChannel} / var(--Link-underlineOpacity, 0.72)))`},e.variant?F({paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!e.nesting&&{marginInline:"-0.25em"}):{color:`var(--variant-plainColor, rgba(${(n=r.vars.palette[e.color])==null?void 0:n.mainChannel} / 1))`,[`&.${yT.disabled}`]:{pointerEvents:"none",color:`var(--variant-plainDisabledColor, rgba(${(i=r.vars.palette[e.color])==null?void 0:i.mainChannel} / 0.6))`}},{userSelect:e.component==="button"?"none":void 0,MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},e.overlay?{position:"initial","&::after":{content:'""',display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,borderRadius:"var(--unstable_actionRadius, inherit)",margin:"var(--unstable_actionMargin)"},[`${r.focus.selector}`]:{"&::after":r.focus.default}}:{position:"relative",[r.focus.selector]:r.focus.default}),e.variant&&F({},(a=r.variants[e.variant])==null?void 0:a[e.color],{"&:hover":{"@media (hover: hover)":(o=r.variants[`${e.variant}Hover`])==null?void 0:o[e.color]},"&:active":(s=r.variants[`${e.variant}Active`])==null?void 0:s[e.color],[`&.${yT.disabled}`]:(l=r.variants[`${e.variant}Disabled`])==null?void 0:l[e.color]})]}),rs=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyLink"}),{color:i="primary",textColor:a,variant:o}=n,s=$e(n,V7),l=D.useContext(oc),c=D.useContext(dy),u=$l(F({},s,{color:a})),{children:d,disabled:p=!1,onBlur:h,onFocus:m,level:f="body-md",overlay:v=!1,underline:w="hover",endDecorator:y,startDecorator:g,component:x,slots:b={},slotProps:C={}}=u,I=$e(u,W7),S=l||c?e.level||"inherit":f,{isFocusVisibleRef:P,onBlur:_,onFocus:k,ref:T}=zl(),[E,M]=D.useState(!1),O=Tt(t,T),L=K=>{_(K),P.current===!1&&M(!1),h&&h(K)},N=K=>{k(K),P.current===!0&&M(!0),m&&m(K)},W=F({},u,{color:i,disabled:p,focusVisible:E,underline:w,variant:o,level:S,overlay:v,nesting:l}),V=q7(W),U=F({},I,{component:x,slots:b,slotProps:C}),[R,$]=we("root",{additionalProps:{onBlur:L,onFocus:N},ref:O,className:V.root,elementType:Y7,externalForwardedProps:U,ownerState:W}),[j,B]=we("startDecorator",{className:V.startDecorator,elementType:G7,externalForwardedProps:U,ownerState:W}),[J,G]=we("endDecorator",{className:V.endDecorator,elementType:K7,externalForwardedProps:U,ownerState:W});return Y.jsx(oc.Provider,{value:!0,children:Y.jsxs(R,F({},$,{children:[g&&Y.jsx(j,F({},B,{children:g})),Wo(d,["Skeleton"])?D.cloneElement(d,{variant:d.props.variant||"inline"}):d,y&&Y.jsx(J,F({},G,{children:y}))]}))})});function J7(r){return tt("MuiListDivider",r)}Xe("MuiListDivider",["root","insetGutter","insetStartDecorator","insetStartContent","horizontal","vertical"]);const Q7=["component","role","className","children","inset","orientation","slots","slotProps"],X7=r=>{const{orientation:e,inset:t}=r,n={root:["root",e,t&&t!=="context"&&`inset${Ie(t)}`]};return Je(n,J7,{})},Z7=he(gT,{name:"JoyListDivider",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>F({},r.inset==="context"&&{"--Divider-inset":"calc(-1 * var(--List-padding))"},r.row&&F({marginInline:"var(--ListDivider-gap)"},r.inset==="gutter"&&{marginBlock:"var(--ListItem-paddingY)"},r["data-first-child"]===void 0&&{marginInlineStart:"calc(var(--List-gap) + var(--ListDivider-gap))"}),!r.row&&F({},r["data-first-child"]===void 0&&{marginBlockStart:"calc(var(--List-gap) + var(--ListDivider-gap))"},{marginBlockEnd:"var(--ListDivider-gap)"},r.inset==="gutter"&&{marginInlineStart:"var(--ListItem-paddingLeft)",marginInlineEnd:"var(--ListItem-paddingRight)"},r.inset==="startDecorator"&&{marginInlineStart:"var(--ListItem-paddingLeft)"},r.inset==="startContent"&&{marginInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItemDecorator-size))"}))),e9=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListDivider"}),i=D.useContext(ec),a=D.useContext(ty),{component:o,role:s,className:l,children:c,inset:u="context",orientation:d,slots:p={},slotProps:h={}}=n,m=$e(n,Q7),[f]=a?.split(":")||["",""],v=o||(f&&!f.match(/^(ul|ol|menu)$/)?"div":"li"),w=s||(v==="li"?"separator":void 0),y=d||(i?"vertical":"horizontal"),g=F({},n,{inset:u,row:i,orientation:y,component:v,role:w}),x=X7(g),b=F({},m,{component:v,slots:p,slotProps:h}),[C,I]=we("root",{ref:t,className:St(x.root,l),elementType:Z7,externalForwardedProps:b,ownerState:g,additionalProps:F({as:v,role:w},w==="separator"&&y==="vertical"&&{"aria-orientation":"vertical"})});return Y.jsx(C,F({},I,{children:c}))});function t9(r){return tt("MuiListItemDecorator",r)}Xe("MuiListItemDecorator",["root"]);const r9=["component","className","children","slots","slotProps"],n9=()=>Je({root:["root"]},t9,{}),i9=he("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>F({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${r.parentOrientation==="horizontal"?"center":"initial"})`},r.parentOrientation==="horizontal"?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"})),lc=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListItemDecorator"}),{component:i,className:a,children:o,slots:s={},slotProps:l={}}=n,c=$e(n,r9),u=D.useContext(j1),d=F({parentOrientation:u},n),p=n9(),h=F({},c,{component:i,slots:s,slotProps:l}),[m,f]=we("root",{ref:t,className:St(p.root,a),elementType:i9,externalForwardedProps:h,ownerState:d});return Y.jsx(m,F({},f,{children:o}))});function a9(r){return tt("MuiModalClose",r)}Xe("MuiModalClose",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);var bT;const o9=["component","color","variant","size","onClick","slots","slotProps"],s9=r=>{const{variant:e,color:t,disabled:n,focusVisible:i,size:a}=r,o={root:["root",n&&"disabled",i&&"focusVisible",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`,a&&`size${Ie(a)}`]};return Je(o,a9,{})},l9=he(ac,{name:"JoyModalClose",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;return F({},r.size==="sm"&&{"--IconButton-size":"1.75rem"},r.size==="md"&&{"--IconButton-size":"2rem"},r.size==="lg"&&{"--IconButton-size":"2.25rem"},{position:"absolute",zIndex:1,top:"var(--ModalClose-inset, 0.625rem)",right:"var(--ModalClose-inset, 0.625rem)",borderRadius:`var(--ModalClose-radius, ${e.vars.radius.sm})`},!((t=e.variants[r.variant])!=null&&(t=t[r.color])!=null&&t.backgroundColor)&&{color:e.vars.palette.text.secondary})}),c9={plain:"plain",outlined:"plain",soft:"soft",solid:"solid"},wT=D.forwardRef(function(e,t){var n,i,a,o,s,l;const c=Ze({props:e,name:"JoyModalClose"}),{component:u="button",color:d="neutral",variant:p="plain",size:h="md",onClick:m,slots:f={},slotProps:v={}}=c,w=$e(c,o9),y=D.useContext(vT),g=D.useContext(tp),x=(n=(i=e.variant)!=null?i:c9[g?.variant])!=null?n:p,b=(a=(o=e.color)!=null?o:g?.color)!=null?a:d,C=D.useContext(fy),I=(s=(l=e.size)!=null?l:C)!=null?s:h,{focusVisible:S,getRootProps:P}=xa(F({},c,{rootRef:t})),_=F({},c,{color:b,component:u,variant:x,size:I,focusVisible:S}),k=s9(_),[T,E]=we("root",{ref:t,elementType:l9,getSlotProps:P,externalForwardedProps:F({onClick:M=>{y?.(M,"closeClick"),m?.(M)}},w,{component:u,slots:f,slotProps:v}),className:k.root,ownerState:_});return Y.jsx(T,F({},E,{children:bT||(bT=Y.jsx(K1,{}))}))}),u9=["className","children","invertedColors","orientation","color","component","variant","size","layout","maxWidth","minWidth","slots","slotProps"],d9=r=>{const{variant:e,color:t,size:n,layout:i}=r,a={root:["root",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`,n&&`size${Ie(n)}`,i&&`layout${Ie(i)}`]};return Je(a,VG,{})};function xT(r,e){var t,n;return e&&(t=r.breakpoints)!=null&&t.values[e]?`${(n=r.breakpoints)==null?void 0:n.values[e]}px`:e}const p9=he(pT,{name:"JoyModalDialog",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>F({"--ModalDialog-minWidth":typeof e.minWidth=="number"?`${e.minWidth}px`:xT(r,e.minWidth),"--ModalDialog-maxWidth":typeof e.maxWidth=="number"?`${e.maxWidth}px`:xT(r,e.maxWidth),"--ModalClose-radius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))"},e.variant==="solid"&&{"--DialogContent-color":"currentColor"},e.size==="sm"&&{"--Card-padding":"1rem","--ModalDialog-titleOffset":r.spacing(.25),"--ModalDialog-descriptionOffset":r.spacing(.25),"--ModalClose-inset":"0.375rem"},e.size==="md"&&{"--Card-padding":"1.25rem","--ModalDialog-titleOffset":r.spacing(.25),"--ModalDialog-descriptionOffset":r.spacing(.75),"--ModalClose-inset":"0.5rem"},e.size==="lg"&&{"--Card-padding":"1.5rem","--ModalDialog-titleOffset":r.spacing(.5),"--ModalDialog-descriptionOffset":r.spacing(1),"--ModalClose-inset":"0.625rem"},{boxSizing:"border-box",boxShadow:r.shadow.md,minWidth:"min(calc(100vw - 2 * var(--Card-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute"},e.layout==="fullscreen"&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},e.layout==="center"&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--Card-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--Card-padding))"},{[`& [id="${e["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${e["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${e["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),yy=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyModalDialog"}),{className:i,children:a,invertedColors:o=!1,orientation:s="vertical",color:l="neutral",component:c="div",variant:u="outlined",size:d="md",layout:p="center",maxWidth:h,minWidth:m,slots:f={},slotProps:v={}}=n,w=$e(n,u9),y=F({},n,{color:l,component:c,maxWidth:h,minWidth:m,layout:p,size:d,variant:u,invertedColors:o}),g=d9(y),x=F({},w,{component:c,slots:f,slotProps:v}),b=Cn(),C=Cn(),I=D.useMemo(()=>({variant:u,color:l,labelledBy:b,describedBy:C}),[l,u,b,C]),[S,P]=we("root",{ref:t,className:St(g.root,i),elementType:p9,externalForwardedProps:x,ownerState:y,additionalProps:{as:c,role:"dialog","aria-modal":"true","aria-labelledby":b,"aria-describedby":C}});return Y.jsx(fy.Provider,{value:d,children:Y.jsx(tp.Provider,{value:I,children:Y.jsx(S,F({},P,{children:D.Children.map(a,(_,k)=>{if(!D.isValidElement(_))return _;const T={};if(Wo(_,["Divider"])){var E,M;const O=_.props;T.inset=(E=O?.inset)!=null?E:"context";const L=s==="vertical"?"horizontal":"vertical";T.orientation=(M=O?.orientation)!=null?M:L}return k===0&&(T["data-first-child"]=""),k===D.Children.count(a)-1&&(T["data-last-child"]=""),D.cloneElement(_,T)})}))})})});function h9(r){return tt("MuiOption",r)}const f9=Xe("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]),m9=["component","children","disabled","value","label","variant","color","slots","slotProps"],g9=r=>{const{disabled:e,highlighted:t,selected:n}=r;return Je({root:["root",e&&"disabled",t&&"highlighted",n&&"selected"]},h9,{})},v9=he(ic,{name:"JoyOption",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[`${e.variant}Hover`])==null?void 0:t[e.color];return{[`&.${f9.highlighted}:not([aria-selected="true"])`]:{backgroundColor:n?.backgroundColor}}}),y9=D.memo(D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyOption"}),{component:a="li",children:o,disabled:s=!1,value:l,label:c,variant:u="plain",color:d="neutral",slots:p={},slotProps:h={}}=i,m=$e(i,m9),f=D.useContext(ec),{variant:v=u,color:w=d}=ly(e.variant,e.color),y=D.useRef(null),g=Tt(y,t),x=c??(typeof o=="string"?o:(n=y.current)==null?void 0:n.innerText),{getRootProps:b,selected:C,highlighted:I,index:S}=X3({disabled:s,label:x,value:l,rootRef:g}),P=F({},i,{disabled:s,selected:C,highlighted:I,index:S,component:a,variant:v,color:w,row:f}),_=g9(P),k=F({},m,{component:a,slots:p,slotProps:h}),[T,E]=we("root",{ref:t,getSlotProps:b,elementType:v9,externalForwardedProps:k,className:_.root,ownerState:P});return Y.jsx(T,F({},E,{children:o}))})),Cr=D.forwardRef(function(e,t){const{contextValue:n}=Z3(e.value);return Y.jsx(Vl.Provider,{value:n,children:Y.jsx(y9,F({},e,{ref:t}))})}),b9=_a(Y.jsx("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold");function w9(r){return tt("MuiSelect",r)}const xi=Xe("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded","multiple"]);var CT;const x9=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","multiple","slots","slotProps"];function C9(r){var e;return Array.isArray(r)?Y.jsx(D.Fragment,{children:r.map(t=>t.label).join(", ")}):(e=r?.label)!=null?e:""}const I9=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:r})=>{r.styles.popper.width=`${r.rects.reference.width}px`}}],_9=r=>{const{color:e,disabled:t,focusVisible:n,size:i,variant:a,open:o,multiple:s}=r,l={root:["root",t&&"disabled",n&&"focusVisible",o&&"expanded",a&&`variant${Ie(a)}`,e&&`color${Ie(e)}`,i&&`size${Ie(i)}`,s&&"multiple"],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",o&&"expanded"],listbox:["listbox",o&&"expanded",t&&"disabled"]};return Je(l,w9,{})},S9=he("div",{name:"JoySelect",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o;const s=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color],{borderRadius:l}=Ia({theme:r,ownerState:e},["borderRadius"]);return[F({"--Select-radius":r.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":r.vars.palette.text.icon,"--Select-focusedThickness":r.vars.focus.thickness,"--Select-focusedHighlight":(n=r.vars.palette[e.color==="neutral"?"primary":e.color])==null?void 0:n[500],'&:not([data-inverted-colors="false"])':F({},e.instanceColor&&{"--_Select-focusedHighlight":(i=r.vars.palette[e.instanceColor==="neutral"?"primary":e.instanceColor])==null?void 0:i[500]},{"--Select-focusedHighlight":r.vars.palette.focusVisible}),"--Select-indicatorColor":s!=null&&s.backgroundColor?s?.color:r.vars.palette.text.tertiary},e.size==="sm"&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":r.vars.fontSize.xl},e.size==="md"&&{"--Select-minHeight":"2.25rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(1.75rem, var(--Select-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},e.size==="lg"&&{"--Select-minHeight":"2.75rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},e.variant!=="plain"&&{boxShadow:r.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(s!=null&&s.backgroundColor)&&{backgroundColor:r.vars.palette.background.surface},e.size&&{paddingBlock:{sm:2,md:3,lg:4}[e.size]},{paddingInline:"var(--Select-paddingInline)"},r.typography[`body-${e.size}`],s,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${xi.focusVisible}`]:{"--Select-indicatorColor":s?.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${xi.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":(a=r.variants[`${e.variant}Hover`])==null?void 0:a[e.color],[`&.${xi.disabled}`]:(o=r.variants[`${e.variant}Disabled`])==null?void 0:o[e.color]},l!==void 0&&{"--Select-radius":l}]}),T9=he("button",{name:"JoySelect",slot:"Button",overridesResolver:(r,e)=>e.button})(({ownerState:r})=>F({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(r.value===null||r.value===void 0)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),k9=he(nc,{name:"JoySelect",slot:"Listbox",overridesResolver:(r,e)=>e.listbox})(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[e.variant])==null?void 0:t[e.color];return F({"--focus-outline-offset":`calc(${r.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":n?.backgroundColor||n?.background||r.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},iy,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:r.shadow.md,borderRadius:`var(--List-radius, ${r.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${r.vars.zIndex.popup})`},!(n!=null&&n.backgroundColor)&&{backgroundColor:r.vars.palette.background.popup})}),A9=he("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),P9=he("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),E9=he("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:r,theme:e})=>F({},r.size==="sm"&&{"--Icon-fontSize":e.vars.fontSize.lg},r.size==="md"&&{"--Icon-fontSize":e.vars.fontSize.xl},r.size==="lg"&&{"--Icon-fontSize":e.vars.fontSize.xl2},{"--Icon-color":r.color!=="neutral"||r.variant==="solid"?"currentColor":e.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${xi.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${xi.expanded}, .${xi.disabled} > &`]:{"--Icon-color":"currentColor"}})),Kr=D.forwardRef(function(e,t){var n,i,a,o,s,l,c;const u=Ze({props:e,name:"JoySelect"}),d=u,{action:p,autoFocus:h,children:m,defaultValue:f,defaultListboxOpen:v=!1,disabled:w,getSerializedValue:y,placeholder:g,listboxId:x,listboxOpen:b,onChange:C,onListboxOpenChange:I,onClose:S,renderValue:P,required:_=!1,value:k,size:T="md",variant:E="outlined",color:M="neutral",startDecorator:O,endDecorator:L,indicator:N=CT||(CT=Y.jsx(b9,{})),"aria-describedby":W,"aria-label":V,"aria-labelledby":U,id:R,name:$,multiple:j=!1,slots:B={},slotProps:J={}}=d,G=$e(d,x9),K=D.useContext(Ta),q=(n=(i=e.disabled)!=null?i:K?.disabled)!=null?n:w,X=(a=(o=e.size)!=null?o:K?.size)!=null?a:T,ee=(s=e.color)!=null?s:K!=null&&K.error?"danger":(l=K?.color)!=null?l:M,se=P??C9,[ce,Ae]=D.useState(null),Le=D.useRef(null),Ee=D.useRef(null),Oe=Tt(t,Le);D.useImperativeHandle(p,()=>({focusVisible:()=>{var ie;(ie=Ee.current)==null||ie.focus()}}),[]),D.useEffect(()=>{Ae(Le.current)},[]),D.useEffect(()=>{h&&Ee.current.focus()},[h]);const ve=D.useCallback(ie=>{I?.(ie),ie||S?.()},[S,I]),{buttonActive:ne,buttonFocusVisible:ae,contextValue:pe,disabled:xe,getButtonProps:ue,getListboxProps:Pe,getHiddenInputProps:je,getOptionMetadata:Be,open:st,value:Qe}=yW({buttonRef:Ee,defaultOpen:v,defaultValue:f,disabled:q,getSerializedValue:y,listboxId:x,multiple:j,name:$,required:_,onChange:C,onOpenChange:ve,open:b,value:k}),de=F({},u,{active:ne,defaultListboxOpen:v,disabled:xe,focusVisible:ae,open:st,renderValue:se,value:Qe,size:X,variant:E,color:ee}),Ce=_9(de),ye=F({},G,{slots:B,slotProps:J}),Ne=D.useMemo(()=>{let ie;if(j)ie=Qe.map(Se=>Be(Se)).filter(Se=>Se!==void 0);else{var oe;ie=(oe=Be(Qe))!=null?oe:null}return ie},[Be,Qe,j]),[_e,ke]=we("root",{ref:Oe,className:Ce.root,elementType:S9,externalForwardedProps:ye,ownerState:de}),[We,ze]=we("button",{additionalProps:{"aria-describedby":W??K?.["aria-describedby"],"aria-label":V,"aria-labelledby":U??K?.labelId,"aria-required":_?"true":void 0,id:R??K?.htmlFor,name:$},className:Ce.button,elementType:T9,externalForwardedProps:ye,getSlotProps:ue,ownerState:de}),[kt,ht]=we("listbox",{additionalProps:{anchorEl:ce,open:st,placement:"bottom",keepMounted:!0},className:Ce.listbox,elementType:k9,externalForwardedProps:ye,getSlotProps:Pe,ownerState:F({},de,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:ie=>({size:ie.size||X,variant:ie.variant||E,color:ie.color||(ie.disablePortal?ee:M),disableColorInversion:!ie.disablePortal})}),[yr,Yt]=we("startDecorator",{className:Ce.startDecorator,elementType:A9,externalForwardedProps:ye,ownerState:de}),[Pt,yt]=we("endDecorator",{className:Ce.endDecorator,elementType:P9,externalForwardedProps:ye,ownerState:de}),[mt,xt]=we("indicator",{className:Ce.indicator,elementType:E9,externalForwardedProps:ye,ownerState:de}),Q=D.useMemo(()=>[...I9,...ht.modifiers||[]],[ht.modifiers]);let te=g;return(Array.isArray(Ne)&&Ne.length>0||!Array.isArray(Ne)&&Ne)&&(te=se(Ne)),Y.jsxs(D.Fragment,{children:[Y.jsxs(_e,F({},ke,{children:[O&&Y.jsx(yr,F({},Yt,{children:O})),Y.jsx(We,F({},ze,{children:te})),L&&Y.jsx(Pt,F({},yt,{children:L})),N&&Y.jsx(mt,F({},xt,{children:N})),Y.jsx("input",F({},je()))]})),ce&&Y.jsx(kt,F({},ht,{className:St(ht.className),modifiers:Q},!((c=u.slots)!=null&&c.listbox)&&{as:Zv,slots:{root:ht.as||"ul"}},{children:Y.jsx(bW,{value:pe,children:Y.jsx(cy,{variant:E,color:M,children:Y.jsx(ry.Provider,{value:"select",children:Y.jsx(rc,{nested:!0,children:m})})})})}))]})});function O9(r){return tt("MuiSheet",r)}Xe("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const R9=["className","color","component","variant","invertedColors","slots","slotProps"],D9=r=>{const{variant:e,color:t}=r,n={root:["root",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`]};return Je(n,O9,{})},M9=he("div",{name:"JoySheet",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n;const i=(t=r.variants[e.variant])==null?void 0:t[e.color],{borderRadius:a,bgcolor:o,backgroundColor:s,background:l}=Ia({theme:r,ownerState:e},["borderRadius","bgcolor","backgroundColor","background"]),c=ba(r,`palette.${o}`)||o||ba(r,`palette.${s}`)||s||l||i?.backgroundColor||i?.background||r.vars.palette.background.surface;return[F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,"--ListItem-stickyBackground":c==="transparent"?"initial":c,"--Sheet-background":c==="transparent"?"initial":c},a!==void 0&&{"--List-radius":`calc(${a} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${a} - var(--variant-borderWidth, 0px))`},{backgroundColor:r.vars.palette.background.surface,position:"relative"}),F({},r.typography["body-md"],e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(n=r.variants[e.variant])==null?void 0:n[e.color],i)]}),rp=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoySheet"}),{className:i,color:a="neutral",component:o="div",variant:s="plain",invertedColors:l=!1,slots:c={},slotProps:u={}}=n,d=$e(n,R9),p=F({},n,{color:a,component:o,invertedColors:l,variant:s}),h=D9(p),m=F({},d,{component:o,slots:c,slotProps:u}),[f,v]=we("root",{ref:t,className:St(h.root,i),elementType:M9,externalForwardedProps:m,ownerState:p});return Y.jsx(f,F({},v))});function L9(r){return tt("MuiSkeleton",r)}Xe("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs"]);const $9=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"];let cc=r=>r,IT,_T,ST,TT,kT;const N9=r=>{const{variant:e,level:t}=r,n={root:["root",e&&`variant${Ie(e)}`,t&&`level${Ie(t)}`]};return Je(n,L9,{})},AT=to(IT||(IT=cc`
70
+ `),Xq)),jn=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyCircularProgress"}),{children:i,className:a,color:o="primary",size:s="md",variant:l="soft",thickness:c,determinate:u=!1,value:d=u?0:25,component:p,slots:h={},slotProps:m={}}=n,f=$e(n,Qq),v=F({},n,{color:o,size:s,variant:l,thickness:c,value:d,determinate:u,instanceSize:e.size}),w=Zq(v),y=F({},f,{component:p,slots:h,slotProps:m}),[g,x]=we("root",{ref:t,className:St(w.root,a),elementType:e6,externalForwardedProps:y,ownerState:v,additionalProps:F({role:"progressbar",style:{"--CircularProgress-percent":d}},d&&u&&{"aria-valuenow":Math.round(typeof d=="number"?d:Number(d||0))})}),[b,C]=we("svg",{className:w.svg,elementType:t6,externalForwardedProps:y,ownerState:v}),[I,S]=we("track",{className:w.track,elementType:r6,externalForwardedProps:y,ownerState:v}),[P,_]=we("progress",{className:w.progress,elementType:n6,externalForwardedProps:y,ownerState:v});return Y.jsxs(g,F({},x,{children:[Y.jsxs(b,F({},C,{children:[Y.jsx(I,F({},S)),Y.jsx(P,F({},_))]})),i]}))}),i6=["children","action","component","color","disabled","variant","loading","loadingIndicator","size","slots","slotProps"],a6=r=>{const{color:e,disabled:t,focusVisible:n,focusVisibleClassName:i,size:a,variant:o,loading:s}=r,l={root:["root",t&&"disabled",n&&"focusVisible",o&&`variant${Ie(o)}`,e&&`color${Ie(e)}`,a&&`size${Ie(a)}`,s&&"loading"],loadingIndicator:["loadingIndicator"]},c=Je(l,qq,{});return n&&i&&(c.root+=` ${i}`),c},ac=he("button")(({theme:r,ownerState:e})=>{var t,n,i,a;return[F({"--Icon-margin":"initial","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon},e.instanceSize&&{"--IconButton-size":{sm:"2rem",md:"2.25rem",lg:"2.75rem"}[e.instanceSize]},e.size==="sm"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:r.vars.fontSize.sm,paddingInline:"2px"},e.size==="md"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.25rem) / 1.5)","--CircularProgress-size":"20px","--CircularProgress-thickness":"2px",minWidth:"var(--IconButton-size, 2.25rem)",minHeight:"var(--IconButton-size, 2.25rem)",fontSize:r.vars.fontSize.md,paddingInline:"0.25rem"},e.size==="lg"&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.75rem) / 1.571)","--CircularProgress-size":"28px","--CircularProgress-thickness":"4px",minWidth:"var(--IconButton-size, 2.75rem)",minHeight:"var(--IconButton-size, 2.75rem)",fontSize:r.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${r.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[r.focus.selector]:F({"--Icon-color":"currentColor"},r.focus.default)}),F({},(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":F({"--Icon-color":"currentColor"},(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color])},'&:active, &[aria-pressed="true"]':F({"--Icon-color":"currentColor"},(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color]),"&:disabled":(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]})]}),o6=he(ac,{name:"JoyIconButton",slot:"Root",overridesResolver:(r,e)=>e.root})({}),s6=he("span",{name:"JoyIconButton",slot:"LoadingIndicator",overridesResolver:(r,e)=>e.loadingIndicator})(({theme:r,ownerState:e})=>{var t,n;return F({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(t=r.variants[e.variant])==null||(t=t[e.color])==null?void 0:t.color},e.disabled&&{color:(n=r.variants[`${e.variant}Disabled`])==null||(n=n[e.color])==null?void 0:n.color})}),Ur=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyIconButton"}),{children:a,action:o,component:s="button",color:l="neutral",disabled:c,variant:u="plain",loading:d=!1,loadingIndicator:p,size:h="md",slots:m={},slotProps:f={}}=i,v=$e(i,i6),w=D.useContext(J1),y=D.useContext(Q1),g=e.variant||w.variant||u,x=e.size||w.size||h,b=e.color||w.color||l,C=(n=e.loading||e.disabled)!=null?n:w.disabled||d||c,I=D.useRef(null),S=Tt(I,t),{focusVisible:P,setFocusVisible:_,getRootProps:k}=xa(F({},i,{disabled:C,rootRef:S})),T=p??Y.jsx(jn,{color:b,thickness:{sm:2,md:3,lg:4}[x]||3});D.useImperativeHandle(o,()=>({focusVisible:()=>{var $;_(!0),($=I.current)==null||$.focus()}}),[_]);const E=F({},i,{component:s,color:b,disabled:C,variant:g,loading:d,size:x,focusVisible:P,instanceSize:e.size}),M=a6(E),O=$=>{var j;let B=i.onClick;if(typeof f.root=="function"?B=f.root(E).onClick:f.root&&(B=f.root.onClick),(j=B)==null||j($),y){var J;(J=y.onClick)==null||J.call(y,$,i.value)}};let L=i["aria-pressed"];typeof f.root=="function"?L=f.root(E)["aria-pressed"]:f.root&&(L=f.root["aria-pressed"]),y!=null&&y.value&&(Array.isArray(y.value)?L=y.value.indexOf(i.value)!==-1:L=y.value===i.value);const N=F({},v,{component:s,slots:m,slotProps:f}),[W,V]=we("root",{ref:t,className:M.root,elementType:o6,getSlotProps:k,externalForwardedProps:N,ownerState:E,additionalProps:{onClick:O,"aria-pressed":L}}),[U,R]=we("loadingIndicator",{className:M.loadingIndicator,elementType:s6,externalForwardedProps:N,ownerState:E});return Y.jsx(W,F({},V,{children:d?Y.jsx(U,F({},R,{children:T})):a}))});Ur.muiName="IconButton";function l6(r){return tt("MuiChip",r)}const uy=Xe("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),Z1=D.createContext({disabled:void 0,variant:void 0,color:void 0}),c6=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],u6=r=>{const{disabled:e,size:t,color:n,clickable:i,variant:a,focusVisible:o}=r,s={root:["root",e&&"disabled",n&&`color${Ie(n)}`,t&&`size${Ie(t)}`,a&&`variant${Ie(a)}`,i&&"clickable"],action:["action",e&&"disabled",o&&"focusVisible"],label:["label",t&&`label${Ie(t)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(s,l6,{})},d6=he("div",{name:"JoyChip",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i;const a=(t=r.variants[e.variant])==null?void 0:t[e.color],{borderRadius:o}=Ia({theme:r,ownerState:e},["borderRadius"]);return[F({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--Icon-color":"currentColor","--unstable_actionRadius":"var(--_Chip-radius)"},e.size==="sm"&&{"--Chip-paddingInline":"0.375rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 2 * var(--variant-borderWidth))","--Icon-fontSize":r.vars.fontSize.sm,"--_Chip-minHeight":"var(--Chip-minHeight, 1.25rem)",gap:"3px"},e.size==="md"&&{"--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.25rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":r.vars.fontSize.md,"--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",gap:"0.25rem"},e.size==="lg"&&{"--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"calc(var(--_Chip-minHeight) - 0.375rem - 2 * var(--variant-borderWidth))","--Icon-fontSize":r.vars.fontSize.lg,"--_Chip-minHeight":"var(--Chip-minHeight, 1.75rem)",gap:"0.375rem"},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],{fontWeight:r.vars.fontWeight.md,[`&.${uy.disabled}`]:{color:(n=r.variants[`${e.variant}Disabled`])==null||(n=n[e.color])==null?void 0:n.color}}),...e.clickable?[{"--variant-borderWidth":"0px",color:a?.color}]:[F({backgroundColor:r.vars.palette.background.surface},a,{[`&.${uy.disabled}`]:(i=r.variants[`${e.variant}Disabled`])==null?void 0:i[e.color]})],o!==void 0&&{"--_Chip-radius":o}]}),p6=he("span",{name:"JoyChip",slot:"Label",overridesResolver:(r,e)=>e.label})(({ownerState:r})=>F({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},r.clickable&&{zIndex:1,pointerEvents:"none"})),h6=he("button",{name:"JoyChip",slot:"Action",overridesResolver:(r,e)=>e.action})(({theme:r,ownerState:e})=>{var t,n,i,a;return[{"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[r.focus.selector]:r.focus.default},F({backgroundColor:r.vars.palette.background.surface},(t=r.variants[e.variant])==null?void 0:t[e.color]),{"&:hover":{"@media (hover: hover)":(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color]}},{"&:active":(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color]},{[`&.${uy.disabled}`]:(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]}]}),f6=he("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--IconButton-margin":"0 calc(-1 * var(--Chip-paddingInline) / 3) 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",order:0,zIndex:1,pointerEvents:"none"}),m6=he("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--IconButton-margin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 calc(-1 * var(--Chip-paddingInline) / 3)","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",order:2,zIndex:1,pointerEvents:"none"}),xr=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyChip"}),{children:i,className:a,color:o="neutral",onClick:s,disabled:l=!1,size:c="md",variant:u="soft",startDecorator:d,endDecorator:p,component:h,slots:m={},slotProps:f={}}=n,v=$e(n,c6),w=!!s||!!f.action,y=F({},n,{disabled:l,size:c,color:o,variant:u,clickable:w,focusVisible:!1}),g=typeof f.action=="function"?f.action(y):f.action,x=D.useRef(null),{focusVisible:b,getRootProps:C}=xa(F({},g,{disabled:l,rootRef:x}));y.focusVisible=b;const I=u6(y),S=F({},v,{component:h,slots:m,slotProps:f}),[P,_]=we("root",{ref:t,className:St(I.root,a),elementType:d6,externalForwardedProps:S,ownerState:y}),[k,T]=we("label",{className:I.label,elementType:p6,externalForwardedProps:S,ownerState:y}),E=Cn(T.id),[M,O]=we("action",{className:I.action,elementType:h6,externalForwardedProps:S,ownerState:y,getSlotProps:C,additionalProps:{"aria-labelledby":E,as:g?.component,onClick:s}}),[L,N]=we("startDecorator",{className:I.startDecorator,elementType:f6,externalForwardedProps:S,ownerState:y}),[W,V]=we("endDecorator",{className:I.endDecorator,elementType:m6,externalForwardedProps:S,ownerState:y}),U=D.useMemo(()=>({disabled:l}),[l]);return Y.jsx(Z1.Provider,{value:U,children:Y.jsx(cy,{variant:u,color:o,children:Y.jsxs(P,F({},_,{children:[w&&Y.jsx(M,F({},O)),Y.jsx(k,F({},T,{id:E,children:i})),d&&Y.jsx(L,F({},N,{children:d})),p&&Y.jsx(W,F({},V,{children:p}))]}))})})}),g6=_a(Y.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"}),"Cancel");function v6(r){return tt("MuiChipDelete",r)}Xe("MuiChipDelete",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSolid","variantSoft","variantOutlined"]);var eT;const y6=["children","variant","color","disabled","onKeyDown","onDelete","onClick","component","slots","slotProps"],b6=["onDelete"],w6=r=>{const{focusVisible:e,variant:t,color:n,disabled:i}=r,a={root:["root",i&&"disabled",e&&"focusVisible",t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`]};return Je(a,v6,{})},x6=he(ac,{name:"JoyChipDelete",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({"--IconButton-size":"var(--Chip-deleteSize, 2rem)","--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.3)",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:r.vars.fontSize.sm,paddingInline:"2px",pointerEvents:"visible",borderRadius:"var(--Chip-deleteRadius, 50%)",zIndex:1,padding:0})),Sa=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyChipDelete"}),{children:i,variant:a="plain",color:o="neutral",disabled:s,onKeyDown:l,onDelete:c,onClick:u,component:d,slots:p={},slotProps:h={}}=n,m=$e(n,y6),f=D.useContext(Z1),{variant:v=a,color:w=o}=ly(e.variant,e.color,!0),y=e.color||w,g=s??f.disabled,x=D.useRef(null),b=Tt(x,t),{focusVisible:C,getRootProps:I}=xa(F({},n,{disabled:g,rootRef:b})),S=F({},n,{disabled:g,variant:v,color:y,focusVisible:C}),P=w6(S),_=F({},m,{component:d,slots:p,slotProps:h}),k=L=>{!g&&c&&c(L),u&&u(L)},T=L=>{["Backspace","Enter","Delete"].includes(L.key)&&(L.preventDefault(),!g&&c&&c(L)),l&&l(L)},[E,M]=we("root",{ref:t,elementType:x6,getSlotProps:I,externalForwardedProps:_,ownerState:S,additionalProps:{as:d,onKeyDown:T,onClick:k},className:P.root}),O=$e(M,b6);return Y.jsx(E,F({},O,{children:i??(eT||(eT=Y.jsx(g6,{})))}))});function C6(r){return tt("MuiInput",r)}const tT=Xe("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]),Ta=D.createContext(void 0),I6=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","disabledInProp","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];function rT(r,e){var t;const n=D.useContext(Ta),{"aria-describedby":i,"aria-label":a,"aria-labelledby":o,autoComplete:s,autoFocus:l,className:c,defaultValue:u,disabled:d,disabledInProp:p,error:h,id:m,name:f,onClick:v,onChange:w,onKeyDown:y,onKeyUp:g,onFocus:x,onBlur:b,placeholder:C,readOnly:I,required:S,type:P,value:_}=r,k=$e(r,I6),{getRootProps:T,getInputProps:E,focused:M,error:O,disabled:L}=IV({disabled:(t=p??n?.disabled)!=null?t:d,defaultValue:u,error:h,onBlur:b,onClick:v,onChange:w,onFocus:x,required:S??n?.required,value:_}),N={[e.disabled]:L,[e.error]:O,[e.focused]:M,[e.formControl]:!!n,[c]:c},W={[e.disabled]:L};return F({formControl:n,propsToForward:{"aria-describedby":i,"aria-label":a,"aria-labelledby":o,autoComplete:s,autoFocus:l,disabled:L,id:m,onKeyDown:y,onKeyUp:g,name:f,placeholder:C,readOnly:I,type:P},rootStateClasses:N,inputStateClasses:W,getRootProps:T,getInputProps:E,focused:M,error:O,disabled:L},k)}const _6=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],S6=r=>{const{disabled:e,fullWidth:t,variant:n,color:i,size:a}=r,o={root:["root",e&&"disabled",t&&"fullWidth",n&&`variant${Ie(n)}`,i&&`color${Ie(i)}`,a&&`size${Ie(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(o,C6,{})},nT=he("div")(({theme:r,ownerState:e})=>{var t,n,i,a,o,s;const l=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color];return[F({"--Input-radius":r.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.64,"--Input-decoratorColor":r.vars.palette.text.icon,"--Input-focused":"0","--Input-focusedThickness":r.vars.focus.thickness,"--Input-focusedHighlight":(n=r.vars.palette[e.color==="neutral"?"primary":e.color])==null?void 0:n[500],[`&:not([${Xo}])`]:F({},e.instanceColor&&{"--_Input-focusedHighlight":(i=r.vars.palette[e.instanceColor==="neutral"?"primary":e.instanceColor])==null?void 0:i[500]},{"--Input-focusedHighlight":`var(--_Input-focusedHighlight, ${r.vars.palette.focusVisible})`})},e.size==="sm"&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":r.vars.fontSize.xl},e.size==="md"&&{"--Input-minHeight":"2.25rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(1.75rem, var(--Input-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},e.size==="lg"&&{"--Input-minHeight":"2.75rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.25rem, var(--Input-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box"},e.variant!=="plain"&&{boxShadow:r.shadow.xs},{minWidth:0,minHeight:"var(--Input-minHeight)"},e.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)"},r.typography[`body-${e.size}`],l,{backgroundColor:(a=l?.backgroundColor)!=null?a:r.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),{"&:hover":F({},(o=r.variants[`${e.variant}Hover`])==null?void 0:o[e.color],{backgroundColor:null}),[`&.${tT.disabled}`]:(s=r.variants[`${e.variant}Disabled`])==null?void 0:s[e.color],"&:focus-within::before":{"--Input-focused":"1"}}]}),iT=he("input")(({ownerState:r})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":F({paddingInline:"var(--Input-paddingInline)"},!r.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!r.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}})),aT=he("div")({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),oT=he("div")({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:"var(--Input-decoratorColor)",cursor:"initial"}),T6=he(nT,{name:"JoyInput",slot:"Root",overridesResolver:(r,e)=>e.root})({}),k6=he(iT,{name:"JoyInput",slot:"Input",overridesResolver:(r,e)=>e.input})({}),A6=he(aT,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({}),P6=he(oT,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({}),Bn=D.forwardRef(function(e,t){var n,i,a,o,s,l;const c=Ze({props:e,name:"JoyInput"}),u=rT(F({},c,{disabledInProp:e.disabled}),tT),{propsToForward:d,rootStateClasses:p,inputStateClasses:h,getRootProps:m,getInputProps:f,formControl:v,focused:w,error:y=!1,disabled:g,fullWidth:x=!1,size:b="md",color:C="neutral",variant:I="outlined",startDecorator:S,endDecorator:P,component:_,slots:k={},slotProps:T={}}=u,E=$e(u,_6),M=(n=(i=e.error)!=null?i:v?.error)!=null?n:y,O=(a=(o=e.size)!=null?o:v?.size)!=null?a:b,L=(s=e.color)!=null?s:M?"danger":(l=v?.color)!=null?l:C,N=F({instanceColor:M?"danger":e.color},c,{fullWidth:x,color:L,disabled:g,error:M,focused:w,size:O,variant:I}),W=S6(N),V=F({},E,{component:_,slots:k,slotProps:T}),[U,R]=we("root",{ref:t,className:[W.root,p],elementType:T6,getSlotProps:m,externalForwardedProps:V,ownerState:N}),[$,j]=we("input",F({},v&&{additionalProps:{id:v.htmlFor,"aria-describedby":v["aria-describedby"]}},{className:[W.input,h],elementType:k6,getSlotProps:f,internalForwardedProps:d,externalForwardedProps:V,ownerState:N})),[B,J]=we("startDecorator",{className:W.startDecorator,elementType:A6,externalForwardedProps:V,ownerState:N}),[G,K]=we("endDecorator",{className:W.endDecorator,elementType:P6,externalForwardedProps:V,ownerState:N});return Y.jsxs(U,F({},R,{children:[S&&Y.jsx(B,F({},J,{children:S})),Y.jsx($,F({},j)),P&&Y.jsx(G,F({},K,{children:P}))]}))});function E6(r){return tt("MuiListSubheader",r)}Xe("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const O6=["component","className","children","id","sticky","variant","color","slots","slotProps"],R6=r=>{const{variant:e,color:t,sticky:n}=r,i={root:["root",n&&"sticky",t&&`color${Ie(t)}`,e&&`variant${Ie(e)}`]};return Je(i,E6,{})},D6=he("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n;return F({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)"},r.typography["body-xs"],{fontSize:"max(0.75em, 0.625rem)",textTransform:"uppercase",letterSpacing:"0.1em"},e.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:e.color?`var(--_Link-color, rgba(${(t=r.vars.palette[e.color])==null?void 0:t.mainChannel} / 1))`:r.vars.palette.text.tertiary},e.instanceColor&&{[`&:not([${Xo}])`]:{"--_Link-color":r.vars.palette.text.secondary}},(n=r.variants[e.variant])==null?void 0:n[e.color])}),M6=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListSubheader"}),{component:i,className:a,children:o,id:s,sticky:l=!1,variant:c,color:u,slots:d={},slotProps:p={}}=n,h=$e(n,O6),m=Cn(s),f=D.useContext(L1);D.useEffect(()=>{f&&f(m||"")},[f,m]);const v=F({instanceColor:e.color},n,{id:m,sticky:l,variant:c,color:c?u??"neutral":u}),w=R6(v),y=F({},h,{component:i,slots:d,slotProps:p}),[g,x]=we("root",{ref:t,className:St(w.root,a),elementType:D6,externalForwardedProps:y,ownerState:v,additionalProps:{as:i,id:m}});return Y.jsx(g,F({},x,{children:o}))});function L6(r){return tt("MuiAutocomplete",r)}const ka=Xe("MuiAutocomplete",["root","wrapper","input","startDecorator","endDecorator","formControl","focused","disabled","error","multiple","limitTag","hasPopupIcon","hasClearIcon","clearIndicator","popupIndicator","popupIndicatorOpen","listbox","option","loading","noOptions","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]),sT=he(nc)(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[e.variant])==null?void 0:t[e.color];return F({"--focus-outline-offset":`calc(${r.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":n?.backgroundColor||n?.background||r.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},iy,{boxShadow:r.shadow.md,borderRadius:`var(--List-radius, ${r.vars.radius.sm})`},!(n!=null&&n.backgroundColor)&&{backgroundColor:r.vars.palette.background.popup},{zIndex:r.vars.zIndex.popup,overflow:"auto",maxHeight:"40vh",position:"relative","&:empty":{visibility:"hidden"},[`& .${Yd.nested}, & .${Yd.nested} .${fq.root}`]:{position:"initial"}})});he(sT,{name:"JoyAutocompleteListbox",slot:"Root",overridesResolver:(r,e)=>e.root})({});function $6(r){return tt("MuiAutocompleteOption",r)}Xe("MuiAutocompleteOption",["root","focused","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);const N6=["children","component","color","variant","className","slots","slotProps"],F6=r=>{const{color:e,variant:t}=r,n={root:["root",e&&`color${Ie(e)}`,t&&`variant${Ie(t)}`]};return Je(n,$6,{})},lT=he(ic)(({theme:r,ownerState:e})=>{var t,n;return{'&[aria-disabled="true"]':(t=r.variants[`${e.variant}Disabled`])==null?void 0:t[e.color],'&[aria-selected="true"]':F({},(n=r.variants[`${e.variant}Active`])==null?void 0:n[e.color],{fontWeight:r.vars.fontWeight.md})}}),j6=he(lT,{name:"JoyAutocompleteOption",slot:"Root",overridesResolver:(r,e)=>e.root})({}),so=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAutocompleteOption"}),{children:i,component:a="li",color:o="neutral",variant:s="plain",className:l,slots:c={},slotProps:u={}}=n,d=$e(n,N6),{variant:p=s,color:h=o}=ly(e.variant,e.color),m=F({},n,{component:a,color:h,variant:p}),f=F6(m),v=F({},d,{component:a,slots:c,slotProps:u}),[w,y]=we("root",{ref:t,className:St(f.root,l),elementType:j6,externalForwardedProps:v,ownerState:m,additionalProps:{as:a,role:"option"}});return Y.jsx(w,F({},y,{children:i}))});var cT,uT;const B6=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoHighlight","autoSelect","autoFocus","blurOnSelect","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","defaultValue","disableCloseOnSelect","disabledItemsFocusable","disableListWrap","disableClearable","disabled","endDecorator","error","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","handleHomeEndKeys","includeInputInList","isOptionEqualToValue","groupBy","id","inputValue","limitTags","loading","loadingText","multiple","name","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","placeholder","popupIcon","readOnly","renderGroup","renderOption","renderTags","required","type","startDecorator","size","color","variant","value","component","selectOnFocus","slots","slotProps"],z6=["onDelete"],H6=["key"],U6=["onBlur","onFocus","onMouseDown"],V6=["key"],W6=r=>r.current!==null&&r.current.contains(document.activeElement),q6=r=>{var e;return(e=r.label)!=null?e:r},G6=r=>`+${r}`,K6=r=>Y.jsxs(Qo,{nested:!0,children:[Y.jsx(M6,{sticky:!0,children:r.group}),Y.jsx(ay,{children:r.children})]},r.key),Y6=r=>{const{disabled:e,focused:t,hasClearIcon:n,hasPopupIcon:i,popupOpen:a,variant:o,color:s,size:l,multiple:c}=r,u={root:["root",t&&"focused",n&&"hasClearIcon",i&&"hasPopupIcon",o&&`variant${Ie(o)}`,s&&`color${Ie(s)}`,l&&`size${Ie(l)}`],wrapper:["wrapper",c&&"multiple"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",a&&"popupIndicatorOpen",e&&"disabled"],listbox:["listbox"],option:["option"],loading:["loading"],noOptions:["noOptions"],limitTag:["limitTag"]};return Je(u,L6,{})},J6=he(nT,{name:"JoyAutocomplete",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>F({},r.size==="sm"&&{"--Autocomplete-wrapperGap":"3px"},r.size==="md"&&{"--Autocomplete-wrapperGap":"3px"},r.size==="lg"&&{"--Autocomplete-wrapperGap":"4px"},{"@media (pointer: fine)":{[`&:hover .${ka.clearIndicator}`]:{visibility:"visible"}}},r.multiple&&!r.startDecorator&&{paddingInlineStart:0})),Q6=he("div",{name:"JoyAutocomplete",slot:"Wrapper",overridesResolver:(r,e)=>e.wrapper})(({ownerState:r})=>({flex:1,minWidth:0,display:"flex",alignItems:"center",flexWrap:"wrap",gap:"var(--Autocomplete-wrapperGap)",[`&.${ka.multiple}`]:F({paddingBlock:"var(--Autocomplete-wrapperGap)"},!r.startDecorator&&{paddingInlineStart:"var(--Autocomplete-wrapperGap)"},!r.endDecorator&&{paddingInlineEnd:"var(--Autocomplete-wrapperGap)"})})),X6=he(iT,{name:"JoyAutocomplete",slot:"Input",overridesResolver:(r,e)=>e.input})(({ownerState:r})=>F({minWidth:30,minHeight:"var(--Chip-minHeight)"},r.multiple&&{marginInlineStart:"calc(var(--Autocomplete-wrapperGap) * 2.5)"})),Z6=he(aT,{name:"JoyAutocomplete",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({}),eG=he(oT,{name:"JoyAutocomplete",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})(({ownerState:r})=>F({},(r.hasClearIcon||r.hasPopupIcon)&&{"--Button-margin":"0px","--IconButton-margin":"0px","--Icon-margin":"0px"})),tG=he(ac,{name:"JoyAutocomplete",slot:"ClearIndicator",overridesResolver:(r,e)=>e.clearIndicator})(({ownerState:r})=>F({alignSelf:"center"},!r.hasPopupIcon&&{marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)"},{marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",visibility:r.focused?"visible":"hidden"})),rG=he(ac,{name:"JoyAutocomplete",slot:"PopupIndicator",overridesResolver:(r,e)=>e.popupIndicator})({alignSelf:"center",marginInlineStart:"calc(var(--_Input-paddingBlock) / 2)",marginInlineEnd:"calc(var(--Input-decoratorChildOffset) * -1)",[`&.${ka.popupIndicatorOpen}`]:{transform:"rotate(180deg)","--Icon-color":"currentColor"}}),nG=he(sT,{name:"JoyAutocomplete",slot:"Listbox",overridesResolver:(r,e)=>e.listbox})(({theme:r})=>({zIndex:`var(--unstable_popup-zIndex, ${r.vars.zIndex.popup})`})),iG=he(lT,{name:"JoyAutocomplete",slot:"Option",overridesResolver:(r,e)=>e.option})({}),aG=he(Qo,{name:"JoyAutocomplete",slot:"Loading",overridesResolver:(r,e)=>e.loading})(({theme:r})=>({color:(r.vars||r).palette.text.secondary})),oG=he(Qo,{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(r,e)=>e.noOptions})(({theme:r})=>({color:(r.vars||r).palette.text.secondary})),sG=he("div",{name:"JoyAutocomplete",slot:"NoOptions",overridesResolver:(r,e)=>e.noOptions})({marginInlineStart:"calc(var(--Input-paddingInline) / 2)",marginBlockStart:"var(--_Input-paddingBlock)"}),lo=D.forwardRef(function(e,t){var n,i,a,o,s,l,c;const u=Ze({props:e,name:"JoyAutocomplete"}),{"aria-describedby":d,"aria-label":p,"aria-labelledby":h,autoFocus:m,clearIcon:f=cT||(cT=Y.jsx(K1,{fontSize:"md"})),clearText:v="Clear",closeText:w="Close",disableClearable:y=!1,disabled:g,endDecorator:x,error:b=!1,forcePopupIcon:C="auto",freeSolo:I=!1,getLimitTagsText:S=G6,getOptionLabel:P=q6,groupBy:_,id:k,limitTags:T=-1,loading:E=!1,loadingText:M="Loading…",multiple:O=!1,name:L,noOptionsText:N="No options",openText:W="Open",placeholder:V,popupIcon:U=uT||(uT=Y.jsx(Wq,{})),readOnly:R=!1,renderGroup:$=K6,renderOption:j,renderTags:B,required:J,type:G,startDecorator:K,size:q="md",color:X="neutral",variant:ee="outlined",component:se,slots:ce={},slotProps:Ae={}}=u,Le=$e(u,B6),Ee=D.useContext(Ta),Oe=(n=(i=e.error)!=null?i:Ee?.error)!=null?n:b,ve=(a=(o=e.size)!=null?o:Ee?.size)!=null?a:q,ne=(s=e.color)!=null?s:Oe?"danger":(l=Ee?.color)!=null?l:X,ae=(c=g??Ee?.disabled)!=null?c:!1,{getRootProps:pe,getInputProps:xe,getPopupIndicatorProps:ue,getClearProps:Pe,getTagProps:je,getListboxProps:Be,getOptionProps:st,value:Qe,dirty:de,popupOpen:Ce,focused:ye,focusedTag:Ne,anchorEl:_e,setAnchorEl:ke,inputValue:We,groupedOptions:ze}=qW(F({},u,{id:k??Ee?.htmlFor,componentName:"Autocomplete",unstable_classNamePrefix:"Mui",unstable_isActiveElementInListbox:W6})),{onMouseDown:kt}=xe(),{onClick:ht}=pe(),yr=!y&&!ae&&de&&!R,Yt=(!I||C===!0)&&C!==!1,Pt=F({instanceColor:e.color},u,{value:Qe,disabled:ae,focused:ye,getOptionLabel:P,hasOptions:!!ze.length,hasClearIcon:yr,hasPopupIcon:Yt,inputFocused:Ne===-1,popupOpen:Ce,size:ve,color:ne,variant:ee}),yt=Y6(Pt),mt=F({},Le,{component:se,slots:ce,slotProps:Ae});let xt;if(O&&Qe.length>0){const lt=ei=>{const jr=je(ei),{onDelete:di}=jr,Ka=$e(jr,z6);return F({disabled:ae,size:ve,onClick:di},Ka)};B?xt=B(Qe,lt,Pt):xt=Qe.map((ei,jr)=>{const di=lt({index:jr}),{key:Ka}=di,Xw=$e(di,H6);return Y.jsx(xr,{size:ve,variant:"soft",color:"neutral",endDecorator:Y.jsx(Sa,F({},Xw),Ka),sx:{minWidth:0},children:P(ei)},jr)})}const Q=Tt(t,ke),te={[ka.disabled]:ae,[ka.error]:Oe,[ka.focused]:ye,[ka.formControl]:!!Ee},[ie,oe]=we("root",{ref:Q,className:[yt.root,te],elementType:J6,externalForwardedProps:mt,ownerState:Pt,getSlotProps:pe,additionalProps:{onClick:lt=>{ht&&ht(lt),lt.currentTarget===lt.target&&kt&&kt(lt)}}}),[Se,Me]=we("wrapper",{className:yt.wrapper,elementType:Q6,externalForwardedProps:mt,ownerState:Pt}),qe={[ka.disabled]:ae},[Fe,et]=we("input",{className:[yt.input,qe],elementType:X6,getSlotProps:lt=>{const ei=xe(),{onBlur:jr,onFocus:di,onMouseDown:Ka}=ei,Xw=$e(ei,U6);return F({},Xw,{onBlur:Ya=>{var Ja;jr?.(Ya),(Ja=lt.onBlur)==null||Ja.call(lt,Ya)},onFocus:Ya=>{var Ja;di?.(Ya),(Ja=lt.onFocus)==null||Ja.call(lt,Ya)},onMouseDown:Ya=>{var Ja;Ka?.(Ya),(Ja=lt.onMouseDown)==null||Ja.call(lt,Ya)}})},externalForwardedProps:mt,ownerState:Pt,additionalProps:{autoFocus:m,placeholder:V,name:L,readOnly:R,disabled:ae,required:J??Ee?.required,type:G,"aria-invalid":Oe||void 0,"aria-label":p,"aria-labelledby":h,"aria-describedby":d??Ee?.["aria-describedby"]}}),[He,Ge]=we("startDecorator",{className:yt.startDecorator,elementType:Z6,externalForwardedProps:mt,ownerState:Pt}),[dt,Ar]=we("endDecorator",{className:yt.endDecorator,elementType:eG,externalForwardedProps:mt,ownerState:Pt}),[Pr,pa]=we("clearIndicator",{className:yt.clearIndicator,elementType:tG,getSlotProps:Pe,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({size:lt.size||ve,variant:lt.variant||oo(ee,ne).variant||"plain",color:lt.color||oo(ee,ne).color||"neutral",disableColorInversion:!!e.color}),additionalProps:{"aria-label":v,title:v}}),[Zn,al]=we("popupIndicator",{className:yt.popupIndicator,elementType:rG,getSlotProps:ue,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({size:lt.size||ve,variant:lt.variant||oo(ee,ne).variant||"plain",color:lt.color||oo(ee,ne).color||"neutral",disableColorInversion:!!e.color}),additionalProps:{disabled:ae,"aria-label":Ce?w:W,title:Ce?w:W,type:"button"}}),[be,fe]=we("listbox",{className:yt.listbox,elementType:nG,getSlotProps:Be,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({size:lt.size||ve,variant:lt.variant||ee,color:lt.color||ne,disableColorInversion:!lt.disablePortal}),additionalProps:{anchorEl:_e,open:Ce,style:_e?{width:_e.clientWidth}:{}}}),[Ue,it]=we("loading",{className:yt.loading,elementType:aG,externalForwardedProps:mt,ownerState:Pt}),[Ct,Gt]=we("noOptions",{className:yt.noOptions,elementType:oG,externalForwardedProps:mt,ownerState:Pt,additionalProps:{role:"presentation",onMouseDown:lt=>{lt.preventDefault()}}}),[Jt,vn]=we("limitTag",{className:yt.limitTag,elementType:sG,externalForwardedProps:mt,ownerState:Pt});if(T>-1&&Array.isArray(xt)){const lt=xt.length-T;!ye&&lt>0&&(xt=xt.splice(0,T),xt.push(Y.jsx(Jt,F({},vn,{children:S(lt)}),xt.length)))}const[ol,xxe]=we("option",{className:yt.option,elementType:iG,externalForwardedProps:mt,ownerState:Pt,getSlotOwnerState:lt=>({variant:lt.variant||oo(ee,ne).variant||"plain",color:lt.color||oo(ee,ne).color||"neutral",disableColorInversion:!fe.disablePortal}),additionalProps:{as:"li"}}),Cxe=j||((lt,ei)=>{const{key:jr}=lt,di=$e(lt,V6);return Y.jsx(ol,F({},di,{children:P(ei)}),jr)}),zL=(lt,ei)=>{const jr=st({option:lt,index:ei});return Cxe(F({},xxe,jr),lt,{selected:!!jr["aria-selected"],inputValue:We,ownerState:Pt})},Ixe=D.useMemo(()=>[{name:"offset",options:{offset:[0,4]}},...fe.modifiers||[]],[fe.modifiers]);let HL=null;if(_e){var UL;HL=Y.jsx(cy,{variant:ee,color:ne,children:Y.jsx(rc,{nested:!0,children:Y.jsxs(be,F({},fe,{className:St(fe.className),modifiers:Ixe},!((UL=u.slots)!=null&&UL.listbox)&&{as:Zv,slots:{root:fe.as||"ul"}},{children:[ze.map((lt,ei)=>{if(_){const jr=lt;return $({key:String(jr.key),group:jr.group,children:jr.options.map((di,Ka)=>zL(di,jr.index+Ka))})}return zL(lt,ei)}),E&&ze.length===0?Y.jsx(Ue,F({},it,{children:M})):null,ze.length===0&&!I&&!E?Y.jsx(Ct,F({},Gt,{children:N})):null]}))})})}return Y.jsxs(D.Fragment,{children:[Y.jsxs(ie,F({},oe,{children:[K&&Y.jsx(He,F({},Ge,{children:K})),Y.jsxs(Se,F({},Me,{children:[xt,Y.jsx(Fe,F({},et))]})),x&&Y.jsx(dt,F({},Ar,{children:x})),yr?Y.jsx(Pr,F({},pa,{children:f})):null,Yt?Y.jsx(Zn,F({},al,{children:U})):null]})),HL]})}),lG=_a(Y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function cG(r){return tt("MuiAvatar",r)}Xe("MuiAvatar",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","fallback","sizeSm","sizeMd","sizeLg","img","variantOutlined","variantSoft","variantSolid"]);const uG=D.createContext(void 0);he("div",{name:"JoyAvatarGroup",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>F({},r.size==="sm"&&{"--AvatarGroup-gap":"-0.375rem","--Avatar-ringSize":"2px"},r.size==="md"&&{"--AvatarGroup-gap":"-0.5rem","--Avatar-ringSize":"2px"},r.size==="lg"&&{"--AvatarGroup-gap":"-0.625rem","--Avatar-ringSize":"4px"},{"--Avatar-ring":`0 0 0 var(--Avatar-ringSize) var(--Avatar-ringColor, ${e.vars.palette.background.surface})`,"--Avatar-marginInlineStart":"var(--AvatarGroup-gap)",display:"flex",marginInlineStart:"calc(-1 * var(--AvatarGroup-gap))"}));const dG=["alt","color","size","variant","src","srcSet","children","component","slots","slotProps"],pG=r=>{const{size:e,variant:t,color:n,src:i,srcSet:a}=r,o={root:["root",t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,e&&`size${Ie(e)}`],img:[(i||a)&&"img"],fallback:["fallback"]};return Je(o,cG,{})},hG=he("div",{name:"JoyAvatar",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;return F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon},r.typography[`title-${e.size}`],e.size==="sm"&&{width:"var(--Avatar-size, 2rem)",height:"var(--Avatar-size, 2rem)",fontSize:"calc(var(--Avatar-size, 2rem) * 0.4375)"},e.size==="md"&&{width:"var(--Avatar-size, 2.5rem)",height:"var(--Avatar-size, 2.5rem)",fontSize:"calc(var(--Avatar-size, 2.5rem) * 0.4)"},e.size==="lg"&&{width:"var(--Avatar-size, 3rem)",height:"var(--Avatar-size, 3rem)",fontSize:"calc(var(--Avatar-size, 3rem) * 0.375)"},{marginInlineStart:"var(--Avatar-marginInlineStart)",boxShadow:"var(--Avatar-ring)",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,lineHeight:1,overflow:"hidden",borderRadius:"var(--Avatar-radius, 50%)",userSelect:"none"},(t=r.variants[e.variant])==null?void 0:t[e.color])}),fG=he("img",{name:"JoyAvatar",slot:"Img",overridesResolver:(r,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),mG=he(lG,{name:"JoyAvatar",slot:"Fallback",overridesResolver:(r,e)=>e.fallback})({width:"64%",height:"64%"});function gG({crossOrigin:r,referrerPolicy:e,src:t,srcSet:n}){const[i,a]=D.useState(!1);return D.useEffect(()=>{if(!t&&!n)return;a(!1);let o=!0;const s=new Image;return s.onload=()=>{o&&a("loaded")},s.onerror=()=>{o&&a("error")},s.crossOrigin=r,s.referrerPolicy=e,t&&(s.src=t),n&&(s.srcset=n),()=>{o=!1}},[r,e,t,n]),i}const pn=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyAvatar"}),i=D.useContext(uG),{alt:a,color:o="neutral",size:s="md",variant:l="soft",src:c,srcSet:u,children:d,component:p,slots:h={},slotProps:m={}}=n,f=$e(n,dG),v=e.variant||i?.variant||l,w=e.color||i?.color||o,y=e.size||i?.size||s;let g=null;const x=F({},n,{color:w,size:y,variant:v,grouped:!!i}),b=pG(x),C=F({},f,{component:p,slots:h,slotProps:m}),[I,S]=we("root",{ref:t,className:b.root,elementType:hG,externalForwardedProps:C,ownerState:x}),[P,_]=we("img",{additionalProps:{alt:a,src:c,srcSet:u},className:b.img,elementType:fG,externalForwardedProps:C,ownerState:x}),[k,T]=we("fallback",{className:b.fallback,elementType:mG,externalForwardedProps:C,ownerState:x}),E=gG(F({},_,{src:c,srcSet:u}));return(c||u)&&E!=="error"?g=Y.jsx(P,F({},_)):d!=null?g=d:a?g=a[0]:g=Y.jsx(k,F({},T)),Y.jsx(I,F({},S,{children:g}))}),vG=OS("MuiBox",["root"]),Re=VU({themeId:vv,defaultTheme:Mv,defaultClassName:vG.root,generateClassName:AS.generate});function yG(r){return tt("MuiTypography",r)}Xe("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const bG=["color","textColor"],wG=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],oc=D.createContext(!1),dy=D.createContext(!1),xG=r=>{const{gutterBottom:e,noWrap:t,level:n,color:i,variant:a}=r,o={root:["root",n,e&&"gutterBottom",t&&"noWrap",i&&`color${Ie(i)}`,a&&`variant${Ie(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(o,yG,{})},CG=he("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),IG=he("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),_G=he("span",{name:"JoyTypography",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o;const s=e.level!=="inherit"?(t=r.typography[e.level])==null?void 0:t.lineHeight:"1";return F({"--Icon-fontSize":`calc(1em * ${s})`},e.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},e.nesting?{display:"inline"}:F({display:"block"},e.unstable_hasSkeleton&&{position:"relative"}),(e.startDecorator||e.endDecorator)&&F({display:"flex",alignItems:"center"},e.nesting&&F({display:"inline-flex"},e.startDecorator&&{verticalAlign:"bottom"})),e.level&&e.level!=="inherit"&&r.typography[e.level],{fontSize:`var(--Typography-fontSize, ${e.level&&e.level!=="inherit"&&(n=(i=r.typography[e.level])==null?void 0:i.fontSize)!=null?n:"inherit"})`},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.color&&{color:`var(--variant-plainColor, rgba(${(a=r.vars.palette[e.color])==null?void 0:a.mainChannel} / 1))`},e.variant&&F({borderRadius:r.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!e.nesting&&{marginInline:"-0.25em"},(o=r.variants[e.variant])==null?void 0:o[e.color]))}),dT={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},Ve=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyTypography"}),{color:a,textColor:o}=i,s=$e(i,bG),l=D.useContext(oc),c=D.useContext(dy),u=$l(F({},s,{color:o})),{component:d,gutterBottom:p=!1,noWrap:h=!1,level:m="body-md",levelMapping:f=dT,children:v,endDecorator:w,startDecorator:y,variant:g,slots:x={},slotProps:b={}}=u,C=$e(u,wG),I=(n=e.color)!=null?n:g?a??"neutral":a,S=l||c?e.level||"inherit":m,P=Wo(v,["Skeleton"]),_=d||(l?"span":f[S]||dT[S]||"span"),k=F({},u,{level:S,component:_,color:I,gutterBottom:p,noWrap:h,nesting:l,variant:g,unstable_hasSkeleton:P}),T=xG(k),E=F({},C,{component:_,slots:x,slotProps:b}),[M,O]=we("root",{ref:t,className:T.root,elementType:_G,externalForwardedProps:E,ownerState:k}),[L,N]=we("startDecorator",{className:T.startDecorator,elementType:CG,externalForwardedProps:E,ownerState:k}),[W,V]=we("endDecorator",{className:T.endDecorator,elementType:IG,externalForwardedProps:E,ownerState:k});return Y.jsx(oc.Provider,{value:!0,children:Y.jsxs(M,F({},O,{children:[y&&Y.jsx(L,F({},N,{children:y})),P?D.cloneElement(v,{variant:v.props.variant||"inline"}):v,w&&Y.jsx(W,F({},V,{children:w}))]}))})});Ve.muiName="Typography";function SG(r){return tt("MuiButton",r)}const ep=Xe("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]),TG=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],kG=r=>{const{color:e,disabled:t,focusVisible:n,focusVisibleClassName:i,fullWidth:a,size:o,variant:s,loading:l}=r,c={root:["root",t&&"disabled",n&&"focusVisible",a&&"fullWidth",s&&`variant${Ie(s)}`,e&&`color${Ie(e)}`,o&&`size${Ie(o)}`,l&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},u=Je(c,SG,{});return n&&i&&(u.root+=` ${i}`),u},AG=he("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),PG=he("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),EG=he("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return F({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:(t=r.variants[e.variant])==null||(t=t[e.color])==null?void 0:t.color},e.disabled&&{color:(n=r.variants[`${e.variant}Disabled`])==null||(n=n[e.color])==null?void 0:n.color})}),OG=({theme:r,ownerState:e})=>{var t,n,i,a;return[F({"--Icon-margin":"initial","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon},e.size==="sm"&&{"--Icon-fontSize":r.vars.fontSize.lg,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.25rem)",paddingInline:"0.75rem"},e.size==="md"&&{"--Icon-fontSize":r.vars.fontSize.xl,"--CircularProgress-size":"20px","--CircularProgress-thickness":"2px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.25rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"var(--Button-paddingBlock, 0.375rem)",paddingInline:"1rem"},e.size==="lg"&&{"--Icon-fontSize":r.vars.fontSize.xl2,"--CircularProgress-size":"28px","--CircularProgress-thickness":"4px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 2.75rem)",fontSize:r.vars.fontSize.md,paddingBlock:"var(--Button-paddingBlock, 0.5rem)",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",borderRadius:`var(--Button-radius, ${r.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",userSelect:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:r.vars.lineHeight.md},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),F({},(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color]},'&:active, &[aria-pressed="true"]':(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color],[`&.${ep.disabled}`]:(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]},e.loadingPosition==="center"&&{[`&.${ep.loading}`]:{color:"transparent"}})]},RG=he("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(OG),bt=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyButton"}),{children:a,action:o,color:s="primary",variant:l="solid",size:c="md",fullWidth:u=!1,startDecorator:d,endDecorator:p,loading:h=!1,loadingPosition:m="center",loadingIndicator:f,disabled:v,component:w,slots:y={},slotProps:g={}}=i,x=$e(i,TG),b=D.useContext(J1),C=D.useContext(Q1),I=e.variant||b.variant||l,S=e.size||b.size||c,P=e.color||b.color||s,_=(n=e.loading||e.disabled)!=null?n:b.disabled||h||v,k=D.useRef(null),T=Tt(k,t),{focusVisible:E,setFocusVisible:M,getRootProps:O}=xa(F({},i,{disabled:_,rootRef:T})),L=f??Y.jsx(jn,{color:P,thickness:{sm:2,md:3,lg:4}[S]||3});D.useImperativeHandle(o,()=>({focusVisible:()=>{var ee;M(!0),(ee=k.current)==null||ee.focus()}}),[M]);const N=F({},i,{color:P,fullWidth:u,variant:I,size:S,focusVisible:E,loading:h,loadingPosition:m,disabled:_}),W=kG(N),V=ee=>{var se;let ce=i.onClick;if(typeof g.root=="function"?ce=g.root(N).onClick:g.root&&(ce=g.root.onClick),(se=ce)==null||se(ee),C){var Ae;(Ae=C.onClick)==null||Ae.call(C,ee,i.value)}};let U=i["aria-pressed"];typeof g.root=="function"?U=g.root(N)["aria-pressed"]:g.root&&(U=g.root["aria-pressed"]),C!=null&&C.value&&(Array.isArray(C.value)?U=C.value.indexOf(i.value)!==-1:U=C.value===i.value);const R=F({},x,{component:w,slots:y,slotProps:g}),[$,j]=we("root",{ref:t,className:W.root,elementType:RG,externalForwardedProps:R,getSlotProps:O,ownerState:N,additionalProps:{onClick:V,"aria-pressed":U}}),[B,J]=we("startDecorator",{className:W.startDecorator,elementType:AG,externalForwardedProps:R,ownerState:N}),[G,K]=we("endDecorator",{className:W.endDecorator,elementType:PG,externalForwardedProps:R,ownerState:N}),[q,X]=we("loadingIndicatorCenter",{className:W.loadingIndicatorCenter,elementType:EG,externalForwardedProps:R,ownerState:N});return Y.jsxs($,F({},j,{children:[(d||h&&m==="start")&&Y.jsx(B,F({},J,{children:h&&m==="start"?L:d})),a,h&&m==="center"&&Y.jsx(q,F({},X,{children:L})),(p||h&&m==="end")&&Y.jsx(G,F({},K,{children:h&&m==="end"?L:p}))]}))});bt.muiName="Button";function DG(r){return tt("MuiCard",r)}const MG=Xe("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]),LG=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],$G=r=>{const{size:e,variant:t,color:n,orientation:i}=r,a={root:["root",i,t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,e&&`size${Ie(e)}`]};return Je(a,DG,{})},pT=he("div")(({theme:r,ownerState:e})=>{var t;const{p:n,padding:i,borderRadius:a}=Ia({theme:r,ownerState:e},["p","padding","borderRadius"]);return[F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},e.size==="sm"&&{"--Card-radius":r.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},e.size==="md"&&{"--Card-radius":r.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},e.size==="lg"&&{"--Card-radius":r.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:r.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:e.orientation==="horizontal"?"row":"column"},r.typography[`body-${e.size}`],e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(t=r.variants[e.variant])==null?void 0:t[e.color]),n!==void 0&&{"--Card-padding":n},i!==void 0&&{"--Card-padding":i},a!==void 0&&{"--Card-radius":a}]}),NG=he(pT,{name:"JoyCard",slot:"Root",overridesResolver:(r,e)=>e.root})({}),tn=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyCard"}),{className:i,color:a="neutral",component:o="div",invertedColors:s=!1,size:l="md",variant:c="outlined",children:u,orientation:d="vertical",slots:p={},slotProps:h={}}=n,m=$e(n,LG),f=F({},n,{color:a,component:o,orientation:d,size:l,variant:c,invertedColors:s}),v=$G(f),w=F({},m,{component:o,slots:p,slotProps:h}),[y,g]=we("root",{ref:t,className:St(v.root,i),elementType:NG,externalForwardedProps:w,ownerState:f});return Y.jsx(y,F({},g,{children:D.Children.map(u,(x,b)=>{if(!D.isValidElement(x))return x;const C={};if(Wo(x,["Divider"])){var I,S;const P=x.props;C.inset=(I=P?.inset)!=null?I:"context";const _=d==="vertical"?"horizontal":"vertical";C.orientation=(S=P?.orientation)!=null?S:_}return b===0&&(C["data-first-child"]=""),b===D.Children.count(u)-1&&(C["data-last-child"]=""),D.cloneElement(x,C)})}))}),py=Xe("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);function FG(r){return tt("MuiDivider",r)}const jG=Xe("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]),hT=he("div")(({ownerState:r})=>{var e;return F({"--Button-radius":"var(--Card-childRadius)","--IconButton-radius":"var(--Card-childRadius)",display:"flex"},((e=r.orientation)==null?void 0:e.startsWith("horizontal"))&&{alignItems:"center"},{flexDirection:r.orientation==="horizontal"?"row":"column"},r.orientation==="horizontal-reverse"&&{flexDirection:"row-reverse"},{zIndex:1,gap:"calc(0.625 * var(--Card-padding))",padding:"var(--unstable_padding)","--unstable_padding":"calc(0.75 * var(--Card-padding)) 0 0 0",[`.${py.root} > &`]:{"--unstable_padding":"calc(0.75 * var(--Card-padding)) 0 var(--Card-padding)"},[`.${MG.root} > .${jG.root} + &`]:{"--unstable_padding":"0"}},r.buttonFlex?{[`& > :not(.${Gq.root})`]:{flex:r.buttonFlex},[`& > :not(button) > .${ep.root}`]:{width:"100%"}}:{[`& > .${ep.root}:only-child`]:{flex:"auto"}})});he(hT,{name:"JoyCardActions",slot:"Root",overridesResolver:(r,e)=>e.root})({});function BG(r){return tt("MuiCardContent",r)}Xe("MuiCardContent",["root"]);const zG=["className","component","children","orientation","slots","slotProps"],HG=()=>Je({root:["root"]},BG,{}),fT=he("div")(({ownerState:r})=>({display:"flex",flexDirection:r.orientation==="horizontal"?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${py.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),UG=he(fT,{name:"JoyCardContent",slot:"Root",overridesResolver:(r,e)=>e.root})({}),ji=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyCardContent"}),{className:i,component:a="div",children:o,orientation:s="vertical",slots:l={},slotProps:c={}}=n,u=$e(n,zG),d=F({},u,{component:a,slots:l,slotProps:c}),p=F({},n,{component:a,orientation:s}),h=HG(),[m,f]=we("root",{ref:t,className:St(h.root,i),elementType:UG,externalForwardedProps:d,ownerState:p});return Y.jsx(m,F({},f,{children:o}))});function VG(r){return tt("MuiModalDialog",r)}const WG=Xe("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);function qG(r){return tt("MuiCheckbox",r)}const es=Xe("MuiCheckbox",["root","checkbox","action","input","label","checked","disabled","focusVisible","indeterminate","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid"]),GG=_a(Y.jsx("path",{d:"M9 16.17 5.53 12.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L9 16.17z"}),"Check"),KG=_a(Y.jsx("path",{d:"M19 13H5c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1 .45 1 1s-.45 1-1 1z"}),"HorizontalRule"),YG=["checked","uncheckedIcon","checkedIcon","label","defaultChecked","disabled","disableIcon","overlay","id","indeterminate","indeterminateIcon","name","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","value","color","variant","size","component","slots","slotProps"],JG=r=>{const{checked:e,disabled:t,disableIcon:n,focusVisible:i,color:a,variant:o,size:s,indeterminate:l}=r,c={root:["root",e&&"checked",t&&"disabled",i&&"focusVisible",o&&`variant${Ie(o)}`,a&&`color${Ie(a)}`,s&&`size${Ie(s)}`],checkbox:["checkbox",e&&"checked",l&&"indeterminate",t&&"disabled"],action:["action",e&&"checked",n&&t&&"disabled",i&&"focusVisible"],input:["input"],label:["label"]};return Je(c,qG,{})},QG=he("span",{name:"JoyCheckbox",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n,i;return F({"--Icon-fontSize":"var(--Checkbox-size)"},r.size==="sm"&&{"--Checkbox-size":"1rem","& ~ *":{"--FormHelperText-margin":"0 0 0 1.5rem"},fontSize:e.vars.fontSize.sm,gap:"var(--Checkbox-gap, 0.5rem)"},r.size==="md"&&{"--Checkbox-size":"1.25rem","& ~ *":{"--FormHelperText-margin":"0.25rem 0 0 1.875rem"},fontSize:e.vars.fontSize.md,gap:"var(--Checkbox-gap, 0.625rem)"},r.size==="lg"&&{"--Checkbox-size":"1.5rem","& ~ *":{"--FormHelperText-margin":"0.375rem 0 0 2.25rem"},fontSize:e.vars.fontSize.lg,gap:"var(--Checkbox-gap, 0.75rem)"},{position:r.overlay?"initial":"relative",display:"inline-flex",fontFamily:e.vars.fontFamily.body,lineHeight:"var(--Checkbox-size)",color:e.vars.palette.text.primary,[`&.${es.disabled}`]:{color:(t=e.variants.plainDisabled)==null||(t=t[r.color])==null?void 0:t.color}},r.disableIcon&&{color:(n=e.variants[r.variant])==null||(n=n[r.color])==null?void 0:n.color,[`&.${es.disabled}`]:{color:(i=e.variants[`${r.variant}Disabled`])==null||(i=i[r.color])==null?void 0:i.color}})}),XG=he("span",{name:"JoyCheckbox",slot:"Checkbox",overridesResolver:(r,e)=>e.checkbox})(({theme:r,ownerState:e})=>{var t,n,i,a,o;const s=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color];return[F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,boxSizing:"border-box",borderRadius:`min(${r.vars.radius.sm}, 0.25rem)`,width:"var(--Checkbox-size)",height:"var(--Checkbox-size)",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0},e.disableIcon&&{display:"contents"},{[`&.${es.checked}, &.${es.indeterminate}`]:{"--Icon-color":"currentColor"}}),...e.disableIcon?[]:[F({},s,{backgroundColor:(n=s?.backgroundColor)!=null?n:r.vars.palette.background.surface}),{"&:hover":{"@media (hover: hover)":(i=r.variants[`${e.variant}Hover`])==null?void 0:i[e.color]}},{"&:active":(a=r.variants[`${e.variant}Active`])==null?void 0:a[e.color]},{[`&.${es.disabled}`]:(o=r.variants[`${e.variant}Disabled`])==null?void 0:o[e.color]}]]}),ZG=he("span",{name:"JoyCheckbox",slot:"Action",overridesResolver:(r,e)=>e.action})(({theme:r,ownerState:e})=>{var t,n,i,a;return[{borderRadius:`var(--Checkbox-actionRadius, ${e.overlay?"var(--unstable_actionRadius, inherit)":"inherit"})`,textAlign:"left",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",zIndex:1,[r.focus.selector]:r.focus.default},...e.disableIcon?[(t=r.variants[e.variant])==null?void 0:t[e.color],{"&:hover":(n=r.variants[`${e.variant}Hover`])==null?void 0:n[e.color]},{"&:active":(i=r.variants[`${e.variant}Active`])==null?void 0:i[e.color]},{[`&.${es.disabled}`]:(a=r.variants[`${e.variant}Disabled`])==null?void 0:a[e.color]}]:[]]}),e7=he("input",{name:"JoyCheckbox",slot:"Input",overridesResolver:(r,e)=>e.input})(()=>({margin:0,opacity:0,position:"absolute",width:"100%",height:"100%",cursor:"pointer"})),t7=he("label",{name:"JoyCheckbox",slot:"Label",overridesResolver:(r,e)=>e.label})(({ownerState:r})=>F({flex:1,minWidth:0},r.disableIcon&&{zIndex:1,pointerEvents:"none"})),r7=Y.jsx(GG,{}),n7=Y.jsx(KG,{}),i7=D.forwardRef(function(e,t){var n,i,a,o,s;const l=Ze({props:e,name:"JoyCheckbox"}),{checked:c,uncheckedIcon:u,checkedIcon:d=r7,label:p,defaultChecked:h,disabled:m,disableIcon:f=!1,overlay:v,id:w,indeterminate:y=!1,indeterminateIcon:g=n7,name:x,onBlur:b,onChange:C,onFocus:I,onFocusVisible:S,readOnly:P,required:_,value:k,color:T,variant:E,size:M="md",component:O,slots:L={},slotProps:N={}}=l,W=$e(l,YG),V=D.useContext(Ta),U=(n=(i=e.disabled)!=null?i:V?.disabled)!=null?n:m,R=(a=(o=e.size)!=null?o:V?.size)!=null?a:M,$=Cn(w??V?.htmlFor),j={checked:c,defaultChecked:h,disabled:U,onBlur:b,onChange:C,onFocus:I,onFocusVisible:S},{getInputProps:B,checked:J,disabled:G,focusVisible:K}=E1(j),q=J||y,se=q?E||"solid":E||"outlined",ce=e.color||(V!=null&&V.error?"danger":(s=V?.color)!=null?s:T),Ee=F({},l,{checked:J,disabled:G,disableIcon:f,overlay:v,focusVisible:K,color:q?ce||"primary":ce||"neutral",variant:se,size:R}),Oe=JG(Ee),ve=F({},W,{component:O,slots:L,slotProps:N}),[ne,ae]=we("root",{ref:t,className:Oe.root,elementType:QG,externalForwardedProps:ve,ownerState:Ee}),[pe,xe]=we("checkbox",{className:Oe.checkbox,elementType:XG,externalForwardedProps:ve,ownerState:Ee}),[ue,Pe]=we("action",{className:Oe.action,elementType:ZG,externalForwardedProps:ve,ownerState:Ee}),[je,Be]=we("input",{additionalProps:F({id:$,name:x,value:k,readOnly:P,role:void 0,required:_??V?.required,"aria-describedby":V?.["aria-describedby"]},y&&{"aria-checked":"mixed"}),className:Oe.input,elementType:e7,externalForwardedProps:ve,getSlotProps:B,ownerState:Ee}),[st,Qe]=we("label",{additionalProps:{htmlFor:$},className:Oe.label,elementType:t7,externalForwardedProps:ve,ownerState:Ee});let de=u;return f?de=null:y?de=g:J&&(de=d),Y.jsxs(ne,F({},ae,{children:[Y.jsxs(pe,F({},xe,{children:[Y.jsx(ue,F({},Pe,{children:Y.jsx(je,F({},Be))})),de]})),p&&Y.jsx(oc.Provider,{value:!0,children:Y.jsx(st,F({},Qe,{children:p}))})]}))});function a7(r){return tt("MuiDialogActions",r)}Xe("MuiDialogActions",["root"]);const o7=["component","children","buttonFlex","orientation","slots","slotProps"],s7=()=>Je({root:["root"]},a7,{}),l7=he(hT,{name:"JoyDialogActions",slot:"Root",overridesResolver:(r,e)=>e.root})({}),mT=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDialogActions"}),{component:i="div",children:a,buttonFlex:o,orientation:s="horizontal-reverse",slots:l={},slotProps:c={}}=n,u=$e(n,o7),d=F({},u,{component:i,slots:l,slotProps:c}),p=F({},n,{component:i,buttonFlex:o,orientation:s}),h=s7(),[m,f]=we("root",{ref:t,className:h.root,elementType:l7,externalForwardedProps:d,ownerState:p});return Y.jsx(m,F({},f,{children:a}))});function c7(r){return tt("MuiDialogContent",r)}Xe("MuiDialogContent",["root"]);const tp=D.createContext(void 0);function u7(r){return tt("MuiDialogTitle",r)}const d7=Xe("MuiDialogTitle",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),p7=["component","children","orientation","slots","slotProps"],h7=()=>Je({root:["root"]},c7,{}),f7=he(fT,{name:"JoyDialogContent",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({color:`var(--DialogContent-color, ${r.vars.palette.text.tertiary})`,overflow:"auto",margin:"var(--unstable_DialogContent-margin)",[`.${WG.root} > .${d7.root} + &`]:{"--unstable_DialogContent-margin":"-0.375em 0 0 0"}})),hy=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDialogContent"}),i=D.useContext(tp),{component:a="div",children:o,orientation:s="vertical",slots:l={},slotProps:c={}}=n,u=$e(n,p7),d=F({},u,{component:a,slots:l,slotProps:c}),p=F({},n,{component:a,orientation:s}),h=h7(),[m,f]=we("root",{ref:t,className:h.root,elementType:f7,externalForwardedProps:d,ownerState:p,additionalProps:{id:i?.describedBy}});return Y.jsx(m,F({},f,{children:o}))}),fy=D.createContext(void 0),m7=["component","children","variant","color","level","slots","slotProps"],g7=r=>{const{level:e,color:t,variant:n}=r,i={root:["root",e,t&&`color${Ie(t)}`,n&&`variant${Ie(n)}`]};return Je(i,u7,{})},v7=he("h2",{name:"JoyDialogTitle",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n;const i=e.level!=="inherit"?(t=r.typography[e.level])==null?void 0:t.lineHeight:"1";return F({"--Icon-fontSize":`calc(1em * ${i})`},e.color&&{"--Icon-color":"currentColor"},{display:"flex",gap:"clamp(4px, 0.375em, 0.75rem)",margin:"var(--unstable_DialogTitle-margin, 0px)"},e.level&&e.level!=="inherit"&&r.typography[e.level],{color:"inherit"},e.variant&&F({borderRadius:r.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},(n=r.variants[e.variant])==null?void 0:n[e.color]),{[`.${py.root} > &`]:{"--unstable_DialogTitle-margin":"var(--Card-padding) 0"}})}),y7={sm:"title-md",md:"title-lg",lg:"h4"},my=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDialogTitle"}),i=D.useContext(fy),a=D.useContext(tp),{component:o="h2",children:s,variant:l,color:c,level:u=y7[i||"md"],slots:d={},slotProps:p={}}=n,h=$e(n,m7),m=e.color||(l?c??"neutral":c),f=F({},h,{component:o,slots:d,slotProps:p}),v=F({},n,{component:o,color:m,variant:l,level:u}),w=g7(v),[y,g]=we("root",{ref:t,className:w.root,elementType:v7,externalForwardedProps:f,ownerState:v,additionalProps:{id:a?.labelledBy}});return Y.jsx(y,F({},g,{children:s}))}),b7=["className","children","component","inset","orientation","role","slots","slotProps"],w7=r=>{const{orientation:e,inset:t}=r,n={root:["root",e,t&&`inset${Ie(t)}`]};return Je(n,FG,{})},gT=he("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>F({"--Divider-thickness":"1px","--Divider-lineColor":r.vars.palette.divider},e.inset==="none"&&{"--_Divider-inset":"0px"},e.inset==="context"&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:e.orientation==="vertical"?"initial":"var(--_Divider-inset)",marginBlock:e.orientation==="vertical"?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?F({"--Divider-gap":r.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:e.orientation==="vertical"?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0},r.typography["body-sm"],{"&::before, &::after":{position:"relative",inlineSize:e.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:e.orientation==="vertical"?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:e.orientation==="vertical"?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:e.orientation==="vertical"?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:e.orientation==="vertical"?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:e.orientation==="vertical"?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}):{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:e.orientation==="vertical"?"var(--Divider-thickness)":"initial",blockSize:e.orientation==="vertical"?"initial":"var(--Divider-thickness)"})),ts=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyDivider"}),{className:i,children:a,component:o=a!=null?"div":"hr",inset:s,orientation:l="horizontal",role:c=o!=="hr"?"separator":void 0,slots:u={},slotProps:d={}}=n,p=$e(n,b7),h=F({},n,{inset:s,role:c,orientation:l,component:o}),m=w7(h),f=F({},p,{component:o,slots:u,slotProps:d}),[v,w]=we("root",{ref:t,className:St(m.root,i),elementType:gT,externalForwardedProps:f,ownerState:h,additionalProps:F({as:o,role:c},c==="separator"&&l==="vertical"&&{"aria-orientation":"vertical"})});return Y.jsx(v,F({},w,{children:a}))});ts.muiName="Divider";function x7(r){return tt("MuiModal",r)}Xe("MuiModal",["root","hidden","backdrop"]);const vT=D.createContext(void 0),C7=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],I7=r=>{const{open:e}=r;return Je({root:["root",!e&&"hidden"],backdrop:["backdrop"]},x7,{})},_7=he("div")(({ownerState:r,theme:e})=>F({"--unstable_popup-zIndex":`calc(${e.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${e.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:e.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&{visibility:"hidden"})),S7=he(_7,{name:"JoyModal",slot:"Root",overridesResolver:(r,e)=>e.root})({}),T7=he("div")(({theme:r})=>({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:r.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent",backdropFilter:"blur(8px)"})),k7=he(T7,{name:"JoyModal",slot:"Backdrop",overridesResolver:(r,e)=>e.backdrop})({}),gy=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyModal"}),{children:i,container:a,disableAutoFocus:o=!1,disableEnforceFocus:s=!1,disableEscapeKeyDown:l=!1,disablePortal:c=!1,disableRestoreFocus:u=!1,disableScrollLock:d=!1,hideBackdrop:p=!1,keepMounted:h=!1,onClose:m,open:f,component:v,slots:w={},slotProps:y={}}=n,g=$e(n,C7),x=F({},n,{disableAutoFocus:o,disableEnforceFocus:s,disableEscapeKeyDown:l,disablePortal:c,disableRestoreFocus:u,disableScrollLock:d,hideBackdrop:p,keepMounted:h}),{getRootProps:b,getBackdropProps:C,rootRef:I,portalRef:S,isTopModal:P}=QV(F({},x,{rootRef:t})),_=I7(x),k=F({},g,{component:v,slots:w,slotProps:y}),[T,E]=we("root",{ref:I,className:_.root,elementType:S7,externalForwardedProps:k,getSlotProps:b,ownerState:x}),[M,O]=we("backdrop",{className:_.backdrop,elementType:k7,externalForwardedProps:k,getSlotProps:C,ownerState:x});return!h&&!f?null:Y.jsx(vT.Provider,{value:m,children:Y.jsx(a1,{ref:S,container:a,disablePortal:c,children:Y.jsxs(T,F({},E,{children:[p?null:Y.jsx(M,F({},O)),Y.jsx(wV,{disableEnforceFocus:s,disableAutoFocus:o,disableRestoreFocus:u,isEnabled:P,open:f,children:D.Children.only(i)&&D.cloneElement(i,F({},i.props.tabIndex===void 0&&{tabIndex:-1}))})]}))})})});function A7(r){return tt("MuiFormControl",r)}const vy=Xe("MuiFormControl",["root","error","disabled","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);function P7(r){return tt("MuiSwitch",r)}const sc=Xe("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]),E7=["id","className","component","disabled","required","error","color","size","orientation","slots","slotProps"],O7=r=>{const{disabled:e,error:t,size:n,color:i,orientation:a}=r,o={root:["root",a,e&&"disabled",t&&"error",i&&`color${Ie(i)}`,n&&`size${Ie(n)}`]};return Je(o,A7,{})},R7=he("div",{name:"JoyFormControl",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i;return F({"--unstable_RadioGroup-margin":"0.5rem 0","--FormLabel-alignSelf":e.orientation==="horizontal"?"align-items":"flex-start","--FormLabel-asteriskColor":r.vars.palette.danger[500]},e.size==="sm"&&{"--FormLabel-fontSize":r.vars.fontSize.xs,"--FormLabel-lineHeight":r.vars.lineHeight.xl,"--FormLabel-margin":e.orientation==="horizontal"?"0 0.5rem 0 0":"0 0 0.25rem 0","--FormHelperText-fontSize":r.vars.fontSize.xs,"--FormHelperText-lineHeight":r.vars.lineHeight.xl},e.size==="md"&&{"--FormLabel-fontSize":r.vars.fontSize.sm,"--FormLabel-lineHeight":r.vars.lineHeight.sm,"--FormLabel-margin":e.orientation==="horizontal"?"0 0.75rem 0 0":"0 0 0.375rem 0","--FormHelperText-fontSize":r.vars.fontSize.sm,"--FormHelperText-lineHeight":r.vars.lineHeight.sm},e.size==="lg"&&{"--FormLabel-fontSize":r.vars.fontSize.md,"--FormLabel-lineHeight":r.vars.lineHeight.md,"--FormLabel-margin":e.orientation==="horizontal"?"0 1rem 0 0":"0 0 0.5rem 0","--FormHelperText-fontSize":r.vars.fontSize.sm,"--FormHelperText-lineHeight":r.vars.lineHeight.sm},e.color&&{"--FormHelperText-color":(t=r.vars.palette[e.color])==null?void 0:t[500]},{"--FormHelperText-margin":"0.375rem 0 0 0",[`&.${vy.error}`]:{"--FormHelperText-color":r.vars.palette.danger[500]},[`&.${vy.disabled}`]:{"--FormLabel-color":(n=r.variants.plainDisabled)==null||(n=n[e.color||"neutral"])==null?void 0:n.color,"--FormHelperText-color":(i=r.variants.plainDisabled)==null||(i=i[e.color||"neutral"])==null?void 0:i.color},display:"flex",position:"relative",flexDirection:e.orientation==="horizontal"?"row":"column"},e.orientation==="horizontal"&&{[`& > label ~ .${sc.root}`]:{"--unstable_Switch-margin":"0 0 0 auto"}})}),$t=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyFormControl"}),{id:i,className:a,component:o="div",disabled:s=!1,required:l=!1,error:c=!1,color:u,size:d="md",orientation:p="vertical",slots:h={},slotProps:m={}}=n,f=$e(n,E7),v=Cn(i),[w,y]=D.useState(null),g=F({},n,{id:v,component:o,color:u,disabled:s,error:c,required:l,size:d,orientation:p});let x;const b=O7(g),[C,I]=we("root",{ref:t,className:St(b.root,a),elementType:R7,externalForwardedProps:F({},f,{component:o,slots:h,slotProps:m}),ownerState:g}),S=D.useMemo(()=>({disabled:s,required:l,error:c,color:u,size:d,htmlFor:v,labelId:`${v}-label`,"aria-describedby":w?`${v}-helper-text`:void 0,setHelperText:y,registerEffect:x}),[u,s,c,w,v,x,l,d]);return Y.jsx(Ta.Provider,{value:S,children:Y.jsx(C,F({},I))})});function D7(r){return tt("MuiFormHelperText",r)}Xe("MuiFormHelperText",["root"]);function M7(r){return tt("MuiFormLabel",r)}const L7=Xe("MuiFormLabel",["root","asterisk"]),$7=["children","component","slots","slotProps"],N7=()=>Je({root:["root"]},D7,{}),F7=he("div",{name:"JoyFormHelperText",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({"--Icon-fontSize":"calc(var(--FormHelperText-lineHeight) * 1em)",display:"flex",alignItems:"center",gap:"2px",fontFamily:r.vars.fontFamily.body,fontSize:`var(--FormHelperText-fontSize, ${r.vars.fontSize.sm})`,lineHeight:`var(--FormHelperText-lineHeight, ${r.vars.lineHeight.sm})`,color:`var(--FormHelperText-color, ${r.vars.palette.text.tertiary})`,margin:"var(--FormHelperText-margin, 0px)",[`.${L7.root} + &`]:{"--FormHelperText-margin":"0px"},[`.${vy.error} &`]:{"--Icon-color":"currentColor"}})),Bi=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyFormHelperText"}),{children:i,component:a,slots:o={},slotProps:s={}}=n,l=$e(n,$7),c=D.useRef(null),u=Tt(c,t),d=D.useContext(Ta),p=d?.setHelperText;D.useEffect(()=>(p?.(c.current),()=>{p?.(null)}),[p]);const h=N7(),m=F({},l,{component:a,slots:o,slotProps:s}),[f,v]=we("root",{ref:u,elementType:F7,externalForwardedProps:m,ownerState:n,additionalProps:{as:a,id:d?.["aria-describedby"]},className:h.root});return Y.jsx(f,F({},v,{children:i}))}),j7=["children","component","htmlFor","id","slots","slotProps"],B7=()=>Je({root:["root"],asterisk:["asterisk"]},M7,{}),z7=he("label",{name:"JoyFormLabel",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r})=>({"--Icon-fontSize":"calc(var(--FormLabel-lineHeight) * 1em)",WebkitTapHighlightColor:"transparent",alignSelf:"var(--FormLabel-alignSelf)",display:"flex",gap:"2px",alignItems:"center",flexWrap:"wrap",userSelect:"none",fontFamily:r.vars.fontFamily.body,fontSize:`var(--FormLabel-fontSize, ${r.vars.fontSize.sm})`,fontWeight:r.vars.fontWeight.md,lineHeight:`var(--FormLabel-lineHeight, ${r.vars.lineHeight.sm})`,color:`var(--FormLabel-color, ${r.vars.palette.text.primary})`,margin:"var(--FormLabel-margin, 0px)"})),H7=he("span",{name:"JoyFormLabel",slot:"Asterisk",overridesResolver:(r,e)=>e.asterisk})({color:"var(--FormLabel-asteriskColor)"}),Nt=D.forwardRef(function(e,t){var n,i;const a=Ze({props:e,name:"JoyFormLabel"}),{children:o,component:s="label",htmlFor:l,id:c,slots:u={},slotProps:d={}}=a,p=$e(a,j7),h=D.useContext(Ta),m=(n=(i=e.required)!=null?i:h?.required)!=null?n:!1,f=F({},a,{required:m}),v=B7(),w=F({},p,{component:s,slots:u,slotProps:d}),[y,g]=we("root",{additionalProps:{htmlFor:l??h?.htmlFor,id:c??h?.labelId},ref:t,className:v.root,elementType:z7,externalForwardedProps:w,ownerState:f}),[x,b]=we("asterisk",{additionalProps:{"aria-hidden":!0},className:v.asterisk,elementType:H7,externalForwardedProps:w,ownerState:f});return Y.jsxs(y,F({},g,{children:[o,m&&Y.jsxs(x,F({},b,{children:[" ","*"]}))]}))}),ii=B4({createStyledComponent:he("div",{name:"JoyGrid",slot:"Root",overridesResolver:(r,e)=>e.root}),useThemeProps:r=>Ze({props:r,name:"JoyGrid"})});function U7(r){return tt("MuiLink",r)}const yT=Xe("MuiLink",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","variantPlain","variantOutlined","variantSoft","variantSolid","underlineNone","underlineHover","underlineAlways","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","startDecorator","endDecorator"]),V7=["color","textColor","variant"],W7=["children","disabled","onBlur","onFocus","level","overlay","underline","endDecorator","startDecorator","component","slots","slotProps"],q7=r=>{const{level:e,color:t,variant:n,underline:i,focusVisible:a,disabled:o}=r,s={root:["root",t&&`color${Ie(t)}`,o&&"disabled",a&&"focusVisible",e,i&&`underline${Ie(i)}`,n&&`variant${Ie(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(s,U7,{})},G7=he("span",{name:"JoyLink",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})(({ownerState:r})=>{var e;return F({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Link-gap, 0.375em), 0.75rem)"},typeof r.startDecorator!="string"&&(r.alignItems==="flex-start"||((e=r.sx)==null?void 0:e.alignItems)==="flex-start")&&{marginTop:"2px"})}),K7=he("span",{name:"JoyLink",slot:"endDecorator",overridesResolver:(r,e)=>e.endDecorator})(({ownerState:r})=>{var e;return F({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Link-gap, 0.25em), 0.5rem)"},typeof r.startDecorator!="string"&&(r.alignItems==="flex-start"||((e=r.sx)==null?void 0:e.alignItems)==="flex-start")&&{marginTop:"2px"})}),Y7=he("a",{name:"JoyLink",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s,l;return[F({"--Icon-fontSize":"1.25em","--Icon-color":"currentColor","--CircularProgress-size":"1.25em","--CircularProgress-thickness":"3px"},e.level&&e.level!=="inherit"&&r.typography[e.level],e.level==="inherit"&&{font:"inherit"},e.underline==="none"&&{textDecoration:"none"},e.underline==="hover"&&{textDecoration:"none","&:hover":{"@media (hover: hover)":{textDecorationLine:"underline"}}},e.underline==="always"&&{textDecoration:"underline"},e.startDecorator&&{verticalAlign:"bottom"},{textDecorationThickness:"max(0.08em, 1px)",textUnderlineOffset:"0.15em",display:"inline-flex",alignItems:"center",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:r.vars.radius.xs,padding:0,cursor:"pointer",textDecorationColor:`var(--variant-outlinedBorder, rgba(${(t=r.vars.palette[e.color])==null?void 0:t.mainChannel} / var(--Link-underlineOpacity, 0.72)))`},e.variant?F({paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!e.nesting&&{marginInline:"-0.25em"}):{color:`var(--variant-plainColor, rgba(${(n=r.vars.palette[e.color])==null?void 0:n.mainChannel} / 1))`,[`&.${yT.disabled}`]:{pointerEvents:"none",color:`var(--variant-plainDisabledColor, rgba(${(i=r.vars.palette[e.color])==null?void 0:i.mainChannel} / 0.6))`}},{userSelect:e.component==="button"?"none":void 0,MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},e.overlay?{position:"initial","&::after":{content:'""',display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,borderRadius:"var(--unstable_actionRadius, inherit)",margin:"var(--unstable_actionMargin)"},[`${r.focus.selector}`]:{"&::after":r.focus.default}}:{position:"relative",[r.focus.selector]:r.focus.default}),e.variant&&F({},(a=r.variants[e.variant])==null?void 0:a[e.color],{"&:hover":{"@media (hover: hover)":(o=r.variants[`${e.variant}Hover`])==null?void 0:o[e.color]},"&:active":(s=r.variants[`${e.variant}Active`])==null?void 0:s[e.color],[`&.${yT.disabled}`]:(l=r.variants[`${e.variant}Disabled`])==null?void 0:l[e.color]})]}),rs=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyLink"}),{color:i="primary",textColor:a,variant:o}=n,s=$e(n,V7),l=D.useContext(oc),c=D.useContext(dy),u=$l(F({},s,{color:a})),{children:d,disabled:p=!1,onBlur:h,onFocus:m,level:f="body-md",overlay:v=!1,underline:w="hover",endDecorator:y,startDecorator:g,component:x,slots:b={},slotProps:C={}}=u,I=$e(u,W7),S=l||c?e.level||"inherit":f,{isFocusVisibleRef:P,onBlur:_,onFocus:k,ref:T}=zl(),[E,M]=D.useState(!1),O=Tt(t,T),L=K=>{_(K),P.current===!1&&M(!1),h&&h(K)},N=K=>{k(K),P.current===!0&&M(!0),m&&m(K)},W=F({},u,{color:i,disabled:p,focusVisible:E,underline:w,variant:o,level:S,overlay:v,nesting:l}),V=q7(W),U=F({},I,{component:x,slots:b,slotProps:C}),[R,$]=we("root",{additionalProps:{onBlur:L,onFocus:N},ref:O,className:V.root,elementType:Y7,externalForwardedProps:U,ownerState:W}),[j,B]=we("startDecorator",{className:V.startDecorator,elementType:G7,externalForwardedProps:U,ownerState:W}),[J,G]=we("endDecorator",{className:V.endDecorator,elementType:K7,externalForwardedProps:U,ownerState:W});return Y.jsx(oc.Provider,{value:!0,children:Y.jsxs(R,F({},$,{children:[g&&Y.jsx(j,F({},B,{children:g})),Wo(d,["Skeleton"])?D.cloneElement(d,{variant:d.props.variant||"inline"}):d,y&&Y.jsx(J,F({},G,{children:y}))]}))})});function J7(r){return tt("MuiListDivider",r)}Xe("MuiListDivider",["root","insetGutter","insetStartDecorator","insetStartContent","horizontal","vertical"]);const Q7=["component","role","className","children","inset","orientation","slots","slotProps"],X7=r=>{const{orientation:e,inset:t}=r,n={root:["root",e,t&&t!=="context"&&`inset${Ie(t)}`]};return Je(n,J7,{})},Z7=he(gT,{name:"JoyListDivider",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>F({},r.inset==="context"&&{"--Divider-inset":"calc(-1 * var(--List-padding))"},r.row&&F({marginInline:"var(--ListDivider-gap)"},r.inset==="gutter"&&{marginBlock:"var(--ListItem-paddingY)"},r["data-first-child"]===void 0&&{marginInlineStart:"calc(var(--List-gap) + var(--ListDivider-gap))"}),!r.row&&F({},r["data-first-child"]===void 0&&{marginBlockStart:"calc(var(--List-gap) + var(--ListDivider-gap))"},{marginBlockEnd:"var(--ListDivider-gap)"},r.inset==="gutter"&&{marginInlineStart:"var(--ListItem-paddingLeft)",marginInlineEnd:"var(--ListItem-paddingRight)"},r.inset==="startDecorator"&&{marginInlineStart:"var(--ListItem-paddingLeft)"},r.inset==="startContent"&&{marginInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItemDecorator-size))"}))),e9=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListDivider"}),i=D.useContext(ec),a=D.useContext(ty),{component:o,role:s,className:l,children:c,inset:u="context",orientation:d,slots:p={},slotProps:h={}}=n,m=$e(n,Q7),[f]=a?.split(":")||["",""],v=o||(f&&!f.match(/^(ul|ol|menu)$/)?"div":"li"),w=s||(v==="li"?"separator":void 0),y=d||(i?"vertical":"horizontal"),g=F({},n,{inset:u,row:i,orientation:y,component:v,role:w}),x=X7(g),b=F({},m,{component:v,slots:p,slotProps:h}),[C,I]=we("root",{ref:t,className:St(x.root,l),elementType:Z7,externalForwardedProps:b,ownerState:g,additionalProps:F({as:v,role:w},w==="separator"&&y==="vertical"&&{"aria-orientation":"vertical"})});return Y.jsx(C,F({},I,{children:c}))});function t9(r){return tt("MuiListItemDecorator",r)}Xe("MuiListItemDecorator",["root"]);const r9=["component","className","children","slots","slotProps"],n9=()=>Je({root:["root"]},t9,{}),i9=he("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>F({boxSizing:"border-box",display:"inline-flex",alignItems:`var(--unstable_ListItemDecorator-alignItems, ${r.parentOrientation==="horizontal"?"center":"initial"})`},r.parentOrientation==="horizontal"?{minInlineSize:"var(--ListItemDecorator-size)",marginInlineEnd:"calc(-1 * var(--ListItem-gap))"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center",marginBlockEnd:"calc(-1 * var(--ListItem-gap))"})),lc=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyListItemDecorator"}),{component:i,className:a,children:o,slots:s={},slotProps:l={}}=n,c=$e(n,r9),u=D.useContext(j1),d=F({parentOrientation:u},n),p=n9(),h=F({},c,{component:i,slots:s,slotProps:l}),[m,f]=we("root",{ref:t,className:St(p.root,a),elementType:i9,externalForwardedProps:h,ownerState:d});return Y.jsx(m,F({},f,{children:o}))});function a9(r){return tt("MuiModalClose",r)}Xe("MuiModalClose",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);var bT;const o9=["component","color","variant","size","onClick","slots","slotProps"],s9=r=>{const{variant:e,color:t,disabled:n,focusVisible:i,size:a}=r,o={root:["root",n&&"disabled",i&&"focusVisible",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`,a&&`size${Ie(a)}`]};return Je(o,a9,{})},l9=he(ac,{name:"JoyModalClose",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;return F({},r.size==="sm"&&{"--IconButton-size":"1.75rem"},r.size==="md"&&{"--IconButton-size":"2rem"},r.size==="lg"&&{"--IconButton-size":"2.25rem"},{position:"absolute",zIndex:1,top:"var(--ModalClose-inset, 0.625rem)",right:"var(--ModalClose-inset, 0.625rem)",borderRadius:`var(--ModalClose-radius, ${e.vars.radius.sm})`},!((t=e.variants[r.variant])!=null&&(t=t[r.color])!=null&&t.backgroundColor)&&{color:e.vars.palette.text.secondary})}),c9={plain:"plain",outlined:"plain",soft:"soft",solid:"solid"},wT=D.forwardRef(function(e,t){var n,i,a,o,s,l;const c=Ze({props:e,name:"JoyModalClose"}),{component:u="button",color:d="neutral",variant:p="plain",size:h="md",onClick:m,slots:f={},slotProps:v={}}=c,w=$e(c,o9),y=D.useContext(vT),g=D.useContext(tp),x=(n=(i=e.variant)!=null?i:c9[g?.variant])!=null?n:p,b=(a=(o=e.color)!=null?o:g?.color)!=null?a:d,C=D.useContext(fy),I=(s=(l=e.size)!=null?l:C)!=null?s:h,{focusVisible:S,getRootProps:P}=xa(F({},c,{rootRef:t})),_=F({},c,{color:b,component:u,variant:x,size:I,focusVisible:S}),k=s9(_),[T,E]=we("root",{ref:t,elementType:l9,getSlotProps:P,externalForwardedProps:F({onClick:M=>{y?.(M,"closeClick"),m?.(M)}},w,{component:u,slots:f,slotProps:v}),className:k.root,ownerState:_});return Y.jsx(T,F({},E,{children:bT||(bT=Y.jsx(K1,{}))}))}),u9=["className","children","invertedColors","orientation","color","component","variant","size","layout","maxWidth","minWidth","slots","slotProps"],d9=r=>{const{variant:e,color:t,size:n,layout:i}=r,a={root:["root",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`,n&&`size${Ie(n)}`,i&&`layout${Ie(i)}`]};return Je(a,VG,{})};function xT(r,e){var t,n;return e&&(t=r.breakpoints)!=null&&t.values[e]?`${(n=r.breakpoints)==null?void 0:n.values[e]}px`:e}const p9=he(pT,{name:"JoyModalDialog",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>F({"--ModalDialog-minWidth":typeof e.minWidth=="number"?`${e.minWidth}px`:xT(r,e.minWidth),"--ModalDialog-maxWidth":typeof e.maxWidth=="number"?`${e.maxWidth}px`:xT(r,e.maxWidth),"--ModalClose-radius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))"},e.variant==="solid"&&{"--DialogContent-color":"currentColor"},e.size==="sm"&&{"--Card-padding":"1rem","--ModalDialog-titleOffset":r.spacing(.25),"--ModalDialog-descriptionOffset":r.spacing(.25),"--ModalClose-inset":"0.375rem"},e.size==="md"&&{"--Card-padding":"1.25rem","--ModalDialog-titleOffset":r.spacing(.25),"--ModalDialog-descriptionOffset":r.spacing(.75),"--ModalClose-inset":"0.5rem"},e.size==="lg"&&{"--Card-padding":"1.5rem","--ModalDialog-titleOffset":r.spacing(.5),"--ModalDialog-descriptionOffset":r.spacing(1),"--ModalClose-inset":"0.625rem"},{boxSizing:"border-box",boxShadow:r.shadow.md,minWidth:"min(calc(100vw - 2 * var(--Card-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute"},e.layout==="fullscreen"&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},e.layout==="center"&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--Card-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--Card-padding))"},{[`& [id="${e["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${e["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${e["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),yy=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyModalDialog"}),{className:i,children:a,invertedColors:o=!1,orientation:s="vertical",color:l="neutral",component:c="div",variant:u="outlined",size:d="md",layout:p="center",maxWidth:h,minWidth:m,slots:f={},slotProps:v={}}=n,w=$e(n,u9),y=F({},n,{color:l,component:c,maxWidth:h,minWidth:m,layout:p,size:d,variant:u,invertedColors:o}),g=d9(y),x=F({},w,{component:c,slots:f,slotProps:v}),b=Cn(),C=Cn(),I=D.useMemo(()=>({variant:u,color:l,labelledBy:b,describedBy:C}),[l,u,b,C]),[S,P]=we("root",{ref:t,className:St(g.root,i),elementType:p9,externalForwardedProps:x,ownerState:y,additionalProps:{as:c,role:"dialog","aria-modal":"true","aria-labelledby":b,"aria-describedby":C}});return Y.jsx(fy.Provider,{value:d,children:Y.jsx(tp.Provider,{value:I,children:Y.jsx(S,F({},P,{children:D.Children.map(a,(_,k)=>{if(!D.isValidElement(_))return _;const T={};if(Wo(_,["Divider"])){var E,M;const O=_.props;T.inset=(E=O?.inset)!=null?E:"context";const L=s==="vertical"?"horizontal":"vertical";T.orientation=(M=O?.orientation)!=null?M:L}return k===0&&(T["data-first-child"]=""),k===D.Children.count(a)-1&&(T["data-last-child"]=""),D.cloneElement(_,T)})}))})})});function h9(r){return tt("MuiOption",r)}const f9=Xe("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]),m9=["component","children","disabled","value","label","variant","color","slots","slotProps"],g9=r=>{const{disabled:e,highlighted:t,selected:n}=r;return Je({root:["root",e&&"disabled",t&&"highlighted",n&&"selected"]},h9,{})},v9=he(ic,{name:"JoyOption",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[`${e.variant}Hover`])==null?void 0:t[e.color];return{[`&.${f9.highlighted}:not([aria-selected="true"])`]:{backgroundColor:n?.backgroundColor}}}),y9=D.memo(D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyOption"}),{component:a="li",children:o,disabled:s=!1,value:l,label:c,variant:u="plain",color:d="neutral",slots:p={},slotProps:h={}}=i,m=$e(i,m9),f=D.useContext(ec),{variant:v=u,color:w=d}=ly(e.variant,e.color),y=D.useRef(null),g=Tt(y,t),x=c??(typeof o=="string"?o:(n=y.current)==null?void 0:n.innerText),{getRootProps:b,selected:C,highlighted:I,index:S}=XV({disabled:s,label:x,value:l,rootRef:g}),P=F({},i,{disabled:s,selected:C,highlighted:I,index:S,component:a,variant:v,color:w,row:f}),_=g9(P),k=F({},m,{component:a,slots:p,slotProps:h}),[T,E]=we("root",{ref:t,getSlotProps:b,elementType:v9,externalForwardedProps:k,className:_.root,ownerState:P});return Y.jsx(T,F({},E,{children:o}))})),Cr=D.forwardRef(function(e,t){const{contextValue:n}=ZV(e.value);return Y.jsx(Vl.Provider,{value:n,children:Y.jsx(y9,F({},e,{ref:t}))})}),b9=_a(Y.jsx("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold");function w9(r){return tt("MuiSelect",r)}const xi=Xe("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded","multiple"]);var CT;const x9=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","multiple","slots","slotProps"];function C9(r){var e;return Array.isArray(r)?Y.jsx(D.Fragment,{children:r.map(t=>t.label).join(", ")}):(e=r?.label)!=null?e:""}const I9=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:r})=>{r.styles.popper.width=`${r.rects.reference.width}px`}}],_9=r=>{const{color:e,disabled:t,focusVisible:n,size:i,variant:a,open:o,multiple:s}=r,l={root:["root",t&&"disabled",n&&"focusVisible",o&&"expanded",a&&`variant${Ie(a)}`,e&&`color${Ie(e)}`,i&&`size${Ie(i)}`,s&&"multiple"],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",o&&"expanded"],listbox:["listbox",o&&"expanded",t&&"disabled"]};return Je(l,w9,{})},S9=he("div",{name:"JoySelect",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o;const s=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color],{borderRadius:l}=Ia({theme:r,ownerState:e},["borderRadius"]);return[F({"--Select-radius":r.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":r.vars.palette.text.icon,"--Select-focusedThickness":r.vars.focus.thickness,"--Select-focusedHighlight":(n=r.vars.palette[e.color==="neutral"?"primary":e.color])==null?void 0:n[500],'&:not([data-inverted-colors="false"])':F({},e.instanceColor&&{"--_Select-focusedHighlight":(i=r.vars.palette[e.instanceColor==="neutral"?"primary":e.instanceColor])==null?void 0:i[500]},{"--Select-focusedHighlight":r.vars.palette.focusVisible}),"--Select-indicatorColor":s!=null&&s.backgroundColor?s?.color:r.vars.palette.text.tertiary},e.size==="sm"&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":r.vars.fontSize.xl},e.size==="md"&&{"--Select-minHeight":"2.25rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(1.75rem, var(--Select-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},e.size==="lg"&&{"--Select-minHeight":"2.75rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},e.variant!=="plain"&&{boxShadow:r.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(s!=null&&s.backgroundColor)&&{backgroundColor:r.vars.palette.background.surface},e.size&&{paddingBlock:{sm:2,md:3,lg:4}[e.size]},{paddingInline:"var(--Select-paddingInline)"},r.typography[`body-${e.size}`],s,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${xi.focusVisible}`]:{"--Select-indicatorColor":s?.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${xi.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":(a=r.variants[`${e.variant}Hover`])==null?void 0:a[e.color],[`&.${xi.disabled}`]:(o=r.variants[`${e.variant}Disabled`])==null?void 0:o[e.color]},l!==void 0&&{"--Select-radius":l}]}),T9=he("button",{name:"JoySelect",slot:"Button",overridesResolver:(r,e)=>e.button})(({ownerState:r})=>F({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(r.value===null||r.value===void 0)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),k9=he(nc,{name:"JoySelect",slot:"Listbox",overridesResolver:(r,e)=>e.listbox})(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[e.variant])==null?void 0:t[e.color];return F({"--focus-outline-offset":`calc(${r.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":n?.backgroundColor||n?.background||r.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},iy,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:r.shadow.md,borderRadius:`var(--List-radius, ${r.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${r.vars.zIndex.popup})`},!(n!=null&&n.backgroundColor)&&{backgroundColor:r.vars.palette.background.popup})}),A9=he("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),P9=he("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),E9=he("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:r,theme:e})=>F({},r.size==="sm"&&{"--Icon-fontSize":e.vars.fontSize.lg},r.size==="md"&&{"--Icon-fontSize":e.vars.fontSize.xl},r.size==="lg"&&{"--Icon-fontSize":e.vars.fontSize.xl2},{"--Icon-color":r.color!=="neutral"||r.variant==="solid"?"currentColor":e.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${xi.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${xi.expanded}, .${xi.disabled} > &`]:{"--Icon-color":"currentColor"}})),Kr=D.forwardRef(function(e,t){var n,i,a,o,s,l,c;const u=Ze({props:e,name:"JoySelect"}),d=u,{action:p,autoFocus:h,children:m,defaultValue:f,defaultListboxOpen:v=!1,disabled:w,getSerializedValue:y,placeholder:g,listboxId:x,listboxOpen:b,onChange:C,onListboxOpenChange:I,onClose:S,renderValue:P,required:_=!1,value:k,size:T="md",variant:E="outlined",color:M="neutral",startDecorator:O,endDecorator:L,indicator:N=CT||(CT=Y.jsx(b9,{})),"aria-describedby":W,"aria-label":V,"aria-labelledby":U,id:R,name:$,multiple:j=!1,slots:B={},slotProps:J={}}=d,G=$e(d,x9),K=D.useContext(Ta),q=(n=(i=e.disabled)!=null?i:K?.disabled)!=null?n:w,X=(a=(o=e.size)!=null?o:K?.size)!=null?a:T,ee=(s=e.color)!=null?s:K!=null&&K.error?"danger":(l=K?.color)!=null?l:M,se=P??C9,[ce,Ae]=D.useState(null),Le=D.useRef(null),Ee=D.useRef(null),Oe=Tt(t,Le);D.useImperativeHandle(p,()=>({focusVisible:()=>{var ie;(ie=Ee.current)==null||ie.focus()}}),[]),D.useEffect(()=>{Ae(Le.current)},[]),D.useEffect(()=>{h&&Ee.current.focus()},[h]);const ve=D.useCallback(ie=>{I?.(ie),ie||S?.()},[S,I]),{buttonActive:ne,buttonFocusVisible:ae,contextValue:pe,disabled:xe,getButtonProps:ue,getListboxProps:Pe,getHiddenInputProps:je,getOptionMetadata:Be,open:st,value:Qe}=yW({buttonRef:Ee,defaultOpen:v,defaultValue:f,disabled:q,getSerializedValue:y,listboxId:x,multiple:j,name:$,required:_,onChange:C,onOpenChange:ve,open:b,value:k}),de=F({},u,{active:ne,defaultListboxOpen:v,disabled:xe,focusVisible:ae,open:st,renderValue:se,value:Qe,size:X,variant:E,color:ee}),Ce=_9(de),ye=F({},G,{slots:B,slotProps:J}),Ne=D.useMemo(()=>{let ie;if(j)ie=Qe.map(Se=>Be(Se)).filter(Se=>Se!==void 0);else{var oe;ie=(oe=Be(Qe))!=null?oe:null}return ie},[Be,Qe,j]),[_e,ke]=we("root",{ref:Oe,className:Ce.root,elementType:S9,externalForwardedProps:ye,ownerState:de}),[We,ze]=we("button",{additionalProps:{"aria-describedby":W??K?.["aria-describedby"],"aria-label":V,"aria-labelledby":U??K?.labelId,"aria-required":_?"true":void 0,id:R??K?.htmlFor,name:$},className:Ce.button,elementType:T9,externalForwardedProps:ye,getSlotProps:ue,ownerState:de}),[kt,ht]=we("listbox",{additionalProps:{anchorEl:ce,open:st,placement:"bottom",keepMounted:!0},className:Ce.listbox,elementType:k9,externalForwardedProps:ye,getSlotProps:Pe,ownerState:F({},de,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:ie=>({size:ie.size||X,variant:ie.variant||E,color:ie.color||(ie.disablePortal?ee:M),disableColorInversion:!ie.disablePortal})}),[yr,Yt]=we("startDecorator",{className:Ce.startDecorator,elementType:A9,externalForwardedProps:ye,ownerState:de}),[Pt,yt]=we("endDecorator",{className:Ce.endDecorator,elementType:P9,externalForwardedProps:ye,ownerState:de}),[mt,xt]=we("indicator",{className:Ce.indicator,elementType:E9,externalForwardedProps:ye,ownerState:de}),Q=D.useMemo(()=>[...I9,...ht.modifiers||[]],[ht.modifiers]);let te=g;return(Array.isArray(Ne)&&Ne.length>0||!Array.isArray(Ne)&&Ne)&&(te=se(Ne)),Y.jsxs(D.Fragment,{children:[Y.jsxs(_e,F({},ke,{children:[O&&Y.jsx(yr,F({},Yt,{children:O})),Y.jsx(We,F({},ze,{children:te})),L&&Y.jsx(Pt,F({},yt,{children:L})),N&&Y.jsx(mt,F({},xt,{children:N})),Y.jsx("input",F({},je()))]})),ce&&Y.jsx(kt,F({},ht,{className:St(ht.className),modifiers:Q},!((c=u.slots)!=null&&c.listbox)&&{as:Zv,slots:{root:ht.as||"ul"}},{children:Y.jsx(bW,{value:pe,children:Y.jsx(cy,{variant:E,color:M,children:Y.jsx(ry.Provider,{value:"select",children:Y.jsx(rc,{nested:!0,children:m})})})})}))]})});function O9(r){return tt("MuiSheet",r)}Xe("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const R9=["className","color","component","variant","invertedColors","slots","slotProps"],D9=r=>{const{variant:e,color:t}=r,n={root:["root",e&&`variant${Ie(e)}`,t&&`color${Ie(t)}`]};return Je(n,O9,{})},M9=he("div",{name:"JoySheet",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n;const i=(t=r.variants[e.variant])==null?void 0:t[e.color],{borderRadius:a,bgcolor:o,backgroundColor:s,background:l}=Ia({theme:r,ownerState:e},["borderRadius","bgcolor","backgroundColor","background"]),c=ba(r,`palette.${o}`)||o||ba(r,`palette.${s}`)||s||l||i?.backgroundColor||i?.background||r.vars.palette.background.surface;return[F({"--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":r.vars.palette.text.icon,"--ListItem-stickyBackground":c==="transparent"?"initial":c,"--Sheet-background":c==="transparent"?"initial":c},a!==void 0&&{"--List-radius":`calc(${a} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${a} - var(--variant-borderWidth, 0px))`},{backgroundColor:r.vars.palette.background.surface,position:"relative"}),F({},r.typography["body-md"],e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(n=r.variants[e.variant])==null?void 0:n[e.color],i)]}),rp=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoySheet"}),{className:i,color:a="neutral",component:o="div",variant:s="plain",invertedColors:l=!1,slots:c={},slotProps:u={}}=n,d=$e(n,R9),p=F({},n,{color:a,component:o,invertedColors:l,variant:s}),h=D9(p),m=F({},d,{component:o,slots:c,slotProps:u}),[f,v]=we("root",{ref:t,className:St(h.root,i),elementType:M9,externalForwardedProps:m,ownerState:p});return Y.jsx(f,F({},v))});function L9(r){return tt("MuiSkeleton",r)}Xe("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs"]);const $9=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"];let cc=r=>r,IT,_T,ST,TT,kT;const N9=r=>{const{variant:e,level:t}=r,n={root:["root",e&&`variant${Ie(e)}`,t&&`level${Ie(t)}`]};return Je(n,L9,{})},AT=to(IT||(IT=cc`
71
71
  0% {
72
72
  opacity: 1;
73
73
  }
@@ -145,7 +145,7 @@
145
145
  transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
146
146
  opacity: 0;
147
147
  }
148
- `)),i8=he("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s,l;const{p:c,padding:u,borderRadius:d}=Ia({theme:r,ownerState:e},["p","padding","borderRadius"]);return[F({"--Snackbar-radius":r.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},e.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":r.vars.fontSize.xl,gap:"0.5rem"},e.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":r.vars.fontSize.xl,gap:"0.625rem"},e.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":r.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:r.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((t=e.anchorOrigin)==null?void 0:t.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((n=e.anchorOrigin)==null?void 0:n.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((i=e.anchorOrigin)==null?void 0:i.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((a=e.anchorOrigin)==null?void 0:a.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((o=e.anchorOrigin)==null?void 0:o.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((s=e.anchorOrigin)==null?void 0:s.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${r8} ${e.animationDuration}ms forwards`},!e.open&&{animationName:n8},{boxShadow:r.vars.shadow.lg,backgroundColor:r.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(l=r.variants[e.variant])==null?void 0:l[e.color]),c!==void 0&&{"--Snackbar-padding":c},u!==void 0&&{"--Snackbar-padding":u},d!==void 0&&{"--Snackbar-radius":d}]}),a8=he("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inherit",flex:"none"}),o8=he("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),s8={vertical:"bottom",horizontal:"right"},l8=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoySnackbar"}),{anchorOrigin:i=s8,animationDuration:a=300,autoHideDuration:o=null,color:s="neutral",children:l,className:c,component:u,disableWindowBlurListener:d=!1,endDecorator:p,invertedColors:h=!1,onUnmount:m,open:f,size:v="md",slots:w={},slotProps:y,startDecorator:g,variant:x="outlined"}=n,b=$e(n,e8),[C,I]=D.useState(!0),[S,P]=D.useState(!1),_=D.useRef(m);_.current=m,D.useEffect(()=>{if(f)P(!1),I(!1);else{P(!0);const B=setTimeout(()=>{var J;I(!0),P(!1),(J=_.current)==null||J.call(_)},a);return()=>{clearTimeout(B)}}},[f,a]);const k=F({},n,{anchorOrigin:i,autoHideDuration:o,color:s,animationDuration:a,disableWindowBlurListener:d,invertedColors:h,size:v,variant:x});delete k.onUnmount;const T=t8(k),{getRootProps:E,onClickAway:M}=kW(k),O=B=>{S||M(B)},L=F({},b,{component:u,slots:w,slotProps:y}),[N,W]=we("root",{ref:t,className:St(T.root,c),elementType:i8,externalForwardedProps:L,getSlotProps:E,ownerState:k}),[V,U]=we("startDecorator",{className:T.startDecorator,elementType:a8,externalForwardedProps:L,ownerState:k}),[R,$]=we("endDecorator",{className:T.endDecorator,elementType:o8,externalForwardedProps:L,ownerState:k}),j=w.clickAway||u3;return!f&&C?null:Y.jsx(j,F({onClickAway:O},typeof y?.clickAway=="function"?y.clickAway(k):y?.clickAway,{children:Y.jsxs(N,F({},W,{children:[g&&Y.jsx(V,F({},U,{children:g})),l,p&&Y.jsx(R,F({},$,{children:p}))]}))}))}),co=K4({createStyledComponent:he("div",{name:"JoyStack",slot:"Root",overridesResolver:(r,e)=>e.root}),useThemeProps:r=>Ze({props:r,name:"JoyStack"})}),c8=["checked","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","id","color","variant","size","startDecorator","endDecorator","component","slots","slotProps"],u8=r=>{const{checked:e,disabled:t,focusVisible:n,readOnly:i,color:a,variant:o,size:s}=r,l={root:["root",e&&"checked",t&&"disabled",n&&"focusVisible",i&&"readOnly",o&&`variant${Ie(o)}`,a&&`color${Ie(a)}`,s&&`size${Ie(s)}`],thumb:["thumb",e&&"checked"],track:["track",e&&"checked"],action:["action",n&&"focusVisible"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(l,P7,{})},d8=({theme:r,ownerState:e})=>(t={})=>{var n,i,a;const o=((n=r.variants[`${e.variant}${t.state||""}`])==null?void 0:n[e.color])||{};return{"--Switch-trackBackground":(i=o.backgroundColor)!=null?i:r.vars.palette.background.surface,"--Switch-trackColor":o.color,"--Switch-trackBorderColor":e.variant==="outlined"?o.borderColor:"currentColor","--Switch-thumbBackground":o.color,"--Switch-thumbColor":(a=o.backgroundColor)!=null?a:r.vars.palette.background.surface}},p8=he("div",{name:"JoySwitch",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const n=d8({theme:r,ownerState:e});return F({"--Icon-color":"currentColor","--variant-borderWidth":(t=r.variants[e.variant])==null||(t=t[e.color])==null?void 0:t["--variant-borderWidth"],"--Switch-trackRadius":r.vars.radius.xl,"--Switch-thumbShadow":e.variant==="soft"?"none":"0 0 0 1px var(--Switch-trackBackground)"},e.size==="sm"&&{"--Switch-trackWidth":"26px","--Switch-trackHeight":"16px","--Switch-thumbSize":"10px",fontSize:r.vars.fontSize.sm,gap:"var(--Switch-gap, 6px)"},e.size==="md"&&{"--Switch-trackWidth":"32px","--Switch-trackHeight":"20px","--Switch-thumbSize":"14px",fontSize:r.vars.fontSize.md,gap:"var(--Switch-gap, 8px)"},e.size==="lg"&&{"--Switch-trackWidth":"40px","--Switch-trackHeight":"24px","--Switch-thumbSize":"18px",gap:"var(--Switch-gap, 12px)"},{"--unstable_paddingBlock":"max((var(--Switch-trackHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Switch-thumbSize)) / 2, 0px)","--Switch-thumbRadius":"max(var(--Switch-trackRadius) - var(--unstable_paddingBlock), min(var(--unstable_paddingBlock) / 2, var(--Switch-trackRadius) / 2))","--Switch-thumbWidth":"var(--Switch-thumbSize)","--Switch-thumbOffset":"max((var(--Switch-trackHeight) - var(--Switch-thumbSize)) / 2, 0px)"},n(),{"&:hover":{"@media (hover: hover)":F({},n({state:"Hover"}))},[`&.${sc.checked}`]:F({},n(),{"&:hover":{"@media (hover: hover)":F({},n({state:"Hover"}))}}),[`&.${sc.disabled}`]:F({pointerEvents:"none",color:r.vars.palette.text.tertiary},n({state:"Disabled"})),display:"inline-flex",alignItems:"center",alignSelf:"center",fontFamily:r.vars.fontFamily.body,position:"relative",padding:"calc((var(--Switch-thumbSize) / 2) - (var(--Switch-trackHeight) / 2)) calc(-1 * var(--Switch-thumbOffset))",backgroundColor:"initial",border:"none",margin:"var(--unstable_Switch-margin)"})}),h8=he("div",{name:"JoySwitch",slot:"Action",overridesResolver:(r,e)=>e.action})(({theme:r})=>({borderRadius:"var(--Switch-trackRadius)",position:"absolute",top:0,left:0,bottom:0,right:0,[r.focus.selector]:r.focus.default})),f8=he("input",{name:"JoySwitch",slot:"Input",overridesResolver:(r,e)=>e.input})({margin:0,height:"100%",width:"100%",opacity:0,position:"absolute",cursor:"pointer"}),m8=he("span",{name:"JoySwitch",slot:"Track",overridesResolver:(r,e)=>e.track})(({theme:r,ownerState:e})=>F({position:"relative",color:"var(--Switch-trackColor)",height:"var(--Switch-trackHeight)",width:"var(--Switch-trackWidth)",display:"flex",flexShrink:0,justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",border:"var(--variant-borderWidth, 0px) solid",borderColor:"var(--Switch-trackBorderColor)",backgroundColor:"var(--Switch-trackBackground)",borderRadius:"var(--Switch-trackRadius)",fontFamily:r.vars.fontFamily.body},e.size==="sm"&&{fontSize:r.vars.fontSize.xs},e.size==="md"&&{fontSize:r.vars.fontSize.sm},e.size==="lg"&&{fontSize:r.vars.fontSize.md})),g8=he("span",{name:"JoySwitch",slot:"Thumb",overridesResolver:(r,e)=>e.thumb})({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"calc(50% - var(--Switch-trackWidth) / 2 + var(--Switch-thumbWidth) / 2 + var(--Switch-thumbOffset))",transform:"translate(-50%, -50%)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${sc.checked}`]:{left:"calc(50% + var(--Switch-trackWidth) / 2 - var(--Switch-thumbWidth) / 2 - var(--Switch-thumbOffset))"}}),v8=he("span",{name:"JoySwitch",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inline-flex"}),y8=he("span",{name:"JoySwitch",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inline-flex"}),b8=D.forwardRef(function(e,t){var n,i,a,o,s,l;const c=Ze({props:e,name:"JoySwitch"}),{disabled:u,id:d,color:p,variant:h="solid",size:m="md",startDecorator:f,endDecorator:v,component:w,slots:y={},slotProps:g={}}=c,x=$e(c,c8),b=D.useContext(Ta),C=(n=(i=e.size)!=null?i:b?.size)!=null?n:m,I=(a=e.color)!=null?a:b!=null&&b.error?"danger":(o=b?.color)!=null?o:p,S=F({disabled:(s=(l=e.disabled)!=null?l:b?.disabled)!=null?s:u},c),{getInputProps:P,checked:_,disabled:k,focusVisible:T,readOnly:E}=E1(S),M=F({},c,{id:d,checked:_,disabled:k,focusVisible:T,readOnly:E,color:_?I||"primary":I||"neutral",variant:h,size:C}),O=u8(M),L=F({},x,{component:w,slots:y,slotProps:g}),[N,W]=we("root",{ref:t,className:O.root,elementType:p8,externalForwardedProps:L,ownerState:M}),[V,U]=we("startDecorator",{additionalProps:{"aria-hidden":!0},className:O.startDecorator,elementType:v8,externalForwardedProps:L,ownerState:M}),[R,$]=we("endDecorator",{additionalProps:{"aria-hidden":!0},className:O.endDecorator,elementType:y8,externalForwardedProps:L,ownerState:M}),[j,B]=we("track",{className:O.track,elementType:m8,externalForwardedProps:L,ownerState:M}),[J,G]=we("thumb",{className:O.thumb,elementType:g8,externalForwardedProps:L,ownerState:M}),[K,q]=we("action",{className:O.action,elementType:h8,externalForwardedProps:L,ownerState:M}),[X,ee]=we("input",{additionalProps:{id:d??b?.htmlFor,"aria-describedby":b?.["aria-describedby"]},className:O.input,elementType:f8,externalForwardedProps:L,getSlotProps:P,ownerState:M});return Y.jsxs(N,F({},W,{children:[f&&Y.jsx(V,F({},U,{children:typeof f=="function"?f(M):f})),Y.jsxs(j,F({},B,{children:[B?.children,Y.jsx(J,F({},G))]})),Y.jsx(K,F({},q,{children:Y.jsx(X,F({},ee))})),v&&Y.jsx(R,F({},$,{children:typeof v=="function"?v(M):v}))]}))});function w8(r){return tt("MuiTab",r)}const x8=Xe("MuiTab",["root","disabled","focusVisible","selected","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),C8=["action","children","value","disabled","onChange","onClick","onFocus","component","orientation","variant","color","disableIndicator","indicatorPlacement","indicatorInset","slots","slotProps"],I8=r=>{const{selected:e,disabled:t,focusVisible:n,variant:i,color:a,orientation:o}=r,s={root:["root",o,t&&"disabled",n&&"focusVisible",e&&"selected",i&&`variant${Ie(i)}`,a&&`color${Ie(a)}`]};return Je(s,w8,{})},_8=he(ic,{name:"JoyTab",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>[{flex:"initial",justifyContent:r.row?"center":"initial","--unstable_ListItemDecorator-alignItems":"center","--unstable_offset":"min(calc(-1 * var(--variant-borderWidth, 0px)), -1px)"},!r.disableIndicator&&{'&[aria-selected="true"]':{"--Tab-indicatorColor":"currentColor",zIndex:1},"&::after":{content:'""',display:"block",position:"absolute",margin:"auto",background:"var(--Tab-indicatorColor)",borderRadius:"var(--Tab-indicatorRadius)"}},!r.disableIndicator&&r.indicatorPlacement==="bottom"&&{paddingBottom:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorThickness)",width:"var(--Tab-indicatorSize)",left:r.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:r.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",bottom:"calc(-1px - var(--unstable_TabList-underlineBottom, 0px))"}},!r.disableIndicator&&r.indicatorPlacement==="top"&&{paddingTop:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorThickness)",width:"var(--Tab-indicatorSize)",left:r.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:r.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",top:"calc(-1px - var(--unstable_TabList-underlineTop, 0px))"}},!r.disableIndicator&&r.indicatorPlacement==="right"&&{paddingRight:"calc(var(--ListItem-paddingRight) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",right:"calc(-1px - var(--unstable_TabList-underlineRight, 0px))"}},!r.disableIndicator&&r.indicatorPlacement==="left"&&{paddingLeft:"calc(var(--ListItem-paddingLeft) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",left:"calc(-1px - var(--unstable_TabList-underlineLeft, 0px))"}}]),ns=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTab"}),i=D.useContext(ec),{action:a,children:o,disabled:s=!1,component:l="button",orientation:c="horizontal",variant:u="plain",color:d="neutral",disableIndicator:p=!1,indicatorPlacement:h=i?"bottom":"right",indicatorInset:m=!1,slots:f={},slotProps:v={}}=n,w=$e(n,C8),y=D.useRef(null),g=Tt(y,t),{active:x,focusVisible:b,setFocusVisible:C,selected:I,getRootProps:S}=$W(F({},n,{rootRef:g}));D.useImperativeHandle(a,()=>({focusVisible:()=>{C(!0),y.current.focus()}}),[C]);const P=F({},n,{disableIndicator:p,indicatorPlacement:h,indicatorInset:m,orientation:c,row:i,active:x,focusVisible:b,disabled:s,selected:I,variant:u,color:d}),_=I8(P),k=F({},w,{component:l,slots:f,slotProps:v}),[T,E]=we("root",{ref:t,elementType:_8,getSlotProps:S,externalForwardedProps:k,ownerState:P,className:_.root});return Y.jsx(j1.Provider,{value:c,children:Y.jsx(T,F({},E,{children:o}))})});function S8(r){return tt("MuiTable",r)}Xe("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);const T8=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],k8=r=>{const{size:e,variant:t,color:n,borderAxis:i,stickyHeader:a,stickyFooter:o,noWrap:s,hoverRow:l}=r,c={root:["root",a&&"stickyHeader",o&&"stickyFooter",s&&"noWrap",l&&"hoverRow",i&&`borderAxis${Ie(i)}`,t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,e&&`size${Ie(e)}`]};return Je(c,S8,{})},Lr={getColumnExceptFirst(){return"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th"},getCell(){return"& th, & td"},getHeadCell(){return"& th"},getHeaderCell(){return"& thead th"},getHeaderCellOfRow(r){return`& thead tr:nth-of-type(${r}) th`},getBottomHeaderCell(){return"& thead th:not([colspan])"},getHeaderNestedFirstColumn(){return"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type"},getDataCell(){return"& td"},getDataCellExceptLastRow(){return"& tr:not(:last-of-type) > td"},getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow(r){return typeof r=="number"&&r<0?`& tbody tr:nth-last-of-type(${Math.abs(r)}) td, & tbody tr:nth-last-of-type(${Math.abs(r)}) th[scope="row"]`:`& tbody tr:nth-of-type(${r}) td, & tbody tr:nth-of-type(${r}) th[scope="row"]`},getBodyRow(r){return r===void 0?"& tbody tr":`& tbody tr:nth-of-type(${r})`},getFooterCell(){return"& tfoot th, & tfoot td"},getFooterFirstRowCell(){return"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"}},A8=he("table",{name:"JoyTable",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s,l;const c=(t=r.variants[e.variant])==null?void 0:t[e.color];return[F({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":(n=c?.borderColor)!=null?n:r.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${r.vars.palette.background.surface})`},e.size==="sm"&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},e.size==="md"&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},e.size==="lg"&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],(i=r.variants[e.variant])==null?void 0:i[e.color],{"& caption":{color:r.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[Lr.getDataCell()]:F({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},e.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[Lr.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:r.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:r.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[Lr.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${r.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),(((a=e.borderAxis)==null?void 0:a.startsWith("x"))||((o=e.borderAxis)==null?void 0:o.startsWith("both")))&&{[Lr.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[Lr.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[Lr.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[Lr.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},(((s=e.borderAxis)==null?void 0:s.startsWith("y"))||((l=e.borderAxis)==null?void 0:l.startsWith("both")))&&{[`${Lr.getColumnExceptFirst()}, ${Lr.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},(e.borderAxis==="x"||e.borderAxis==="both")&&{[Lr.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[Lr.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[Lr.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},(e.borderAxis==="y"||e.borderAxis==="both")&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},e.stripe&&{[Lr.getBodyRow(e.stripe)]:{background:`var(--TableRow-stripeBackground, ${r.vars.palette.background.level2})`,color:r.vars.palette.text.primary}},e.hoverRow&&{[Lr.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${r.vars.palette.background.level3})`}}},e.stickyHeader&&{[Lr.getHeaderCell()]:{position:"sticky",top:0,zIndex:r.vars.zIndex.table},[Lr.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},e.stickyFooter&&{[Lr.getFooterCell()]:{position:"sticky",bottom:0,zIndex:r.vars.zIndex.table,color:r.vars.palette.text.secondary,fontWeight:r.vars.fontWeight.lg},[Lr.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),np=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTable"}),{className:i,component:a,children:o,borderAxis:s="xBetween",hoverRow:l=!1,noWrap:c=!1,size:u="md",variant:d="plain",color:p="neutral",stripe:h,stickyHeader:m=!1,stickyFooter:f=!1,slots:v={},slotProps:w={}}=n,y=$e(n,T8),g=F({},n,{borderAxis:s,hoverRow:l,noWrap:c,component:a,size:u,color:p,variant:d,stripe:h,stickyHeader:m,stickyFooter:f}),x=k8(g),b=F({},y,{component:a,slots:v,slotProps:w}),[C,I]=we("root",{ref:t,className:St(x.root,i),elementType:A8,externalForwardedProps:b,ownerState:g});return Y.jsx(dy.Provider,{value:!0,children:Y.jsx(C,F({},I,{children:o}))})}),xy=D.createContext("md");function P8(r){return tt("MuiTabList",r)}Xe("MuiTabList",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const E8=["component","children","variant","color","size","disableUnderline","underlinePlacement","tabFlex","sticky","slots","slotProps"],O8=r=>{const{orientation:e,size:t,variant:n,color:i}=r,a={root:["root",e,n&&`variant${Ie(n)}`,i&&`color${Ie(i)}`,t&&`size${Ie(t)}`]};return Je(a,P8,{})},R8=he(nc,{name:"JoyTabList",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[e.variant])==null?void 0:t[e.color];return F({"--List-gap":"0px","--ListDivider-gap":"0px","--ListItem-paddingX":"var(--Tabs-spacing)","--ListItem-gap":"0.375rem","--unstable_TabList-hasUnderline":e.disableUnderline?"var(--unknown,)":"initial"},iy,{flexGrow:"initial",flexDirection:e.orientation==="vertical"?"column":"row",borderRadius:"var(--List-radius, 0px)",padding:"var(--List-padding, 0px)",zIndex:1},e.sticky&&{position:"sticky",top:e.sticky==="top"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",bottom:e.sticky==="bottom"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",backgroundColor:n?.backgroundColor||`var(--TabList-stickyBackground, ${r.vars.palette.background.body})`},!e.disableUnderline&&F({},e.underlinePlacement==="bottom"&&{"--unstable_TabList-underlineBottom":"1px",paddingBottom:1,boxShadow:`inset 0 -1px ${r.vars.palette.divider}`},e.underlinePlacement==="top"&&{"--unstable_TabList-underlineTop":"1px",paddingTop:1,boxShadow:`inset 0 1px ${r.vars.palette.divider}`},e.underlinePlacement==="right"&&{"--unstable_TabList-underlineRight":"1px",paddingRight:1,boxShadow:`inset -1px 0 ${r.vars.palette.divider}`},e.underlinePlacement==="left"&&{"--unstable_TabList-underlineLeft":"1px",paddingLeft:1,boxShadow:`inset 1px 0 ${r.vars.palette.divider}`}),e.tabFlex&&{[`& .${x8.root}`]:{flex:e.tabFlex}})}),DT=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTabList"}),i=D.useContext(xy),{isRtl:a,orientation:o,getRootProps:s,contextValue:l}=DW({rootRef:t}),{component:c="div",children:u,variant:d="plain",color:p="neutral",size:h,disableUnderline:m=!1,underlinePlacement:f=o==="horizontal"?"bottom":"right",tabFlex:v,sticky:w,slots:y={},slotProps:g={}}=n,x=$e(n,E8),C=F({},n,{isRtl:a,orientation:o,variant:d,color:p,size:h??i,sticky:w,tabFlex:v,nesting:!1,disableUnderline:m,underlinePlacement:f}),I=O8(C),S=F({},x,{component:c,slots:y,slotProps:g}),[P,_]=we("root",{ref:t,elementType:R8,getSlotProps:s,externalForwardedProps:S,ownerState:C,className:I.root});return Y.jsx(P,F({},_,{children:Y.jsx(MW,{value:l,children:Y.jsx(rc,{row:o==="horizontal",nested:!0,children:u})})}))});function D8(r){return tt("MuiTabPanel",r)}Xe("MuiTabPanel",["root","hidden","sizeSm","sizeMd","sizeLg","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const M8=["children","value","component","color","variant","size","slots","slotProps","keepMounted"],L8=r=>{const{hidden:e,size:t,variant:n,color:i,orientation:a}=r,o={root:["root",e&&"hidden",t&&`size${Ie(t)}`,a,n&&`variant${Ie(n)}`,i&&`color${Ie(i)}`,t&&`size${Ie(t)}`]};return Je(o,D8,{})},$8=he("div",{name:"JoyTabPanel",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;return F({display:e.hidden?"none":"block",padding:"var(--Tabs-spacing)",flexGrow:1,fontFamily:r.vars.fontFamily.body},r.typography[`body-${e.size}`],(t=r.variants[e.variant])==null?void 0:t[e.color])}),ip=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTabPanel"}),{orientation:i}=qd()||{orientation:"horizontal"},a=D.useContext(xy),{children:o,value:s=0,component:l,color:c="neutral",variant:u="plain",size:d,slots:p={},slotProps:h={},keepMounted:m=!1}=n,f=$e(n,M8),{hidden:v,getRootProps:w}=OW(F({},n,{value:s})),g=F({},n,{orientation:i,hidden:v,size:d??a,color:c,variant:u}),x=L8(g),b=F({},f,{component:l,slots:p,slotProps:h}),[C,I]=we("root",{ref:t,elementType:$8,getSlotProps:w,externalForwardedProps:b,additionalProps:{role:"tabpanel",ref:t,as:l},ownerState:g,className:x.root});return m?Y.jsx(C,F({},I,{children:o})):Y.jsx(C,F({},I,{children:!v&&o}))});function N8(r){return tt("MuiTabs",r)}Xe("MuiTabs",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const F8=["children","value","defaultValue","orientation","direction","component","onChange","selectionFollowsFocus","variant","color","size","slots","slotProps"],j8=r=>{const{orientation:e,variant:t,color:n,size:i}=r,a={root:["root",e,t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,i&&`size${Ie(i)}`]};return Je(a,N8,{})},B8=he("div",{name:"JoyTabs",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n;const i=(t=e.variants[r.variant])==null?void 0:t[r.color],{bgcolor:a,backgroundColor:o,background:s,p:l,padding:c}=Ia({theme:e,ownerState:r},["bgcolor","backgroundColor","background","p","padding"]),u=ba(e,`palette.${a}`)||a||ba(e,`palette.${o}`)||o||s||i?.backgroundColor||i?.background||e.vars.palette.background.surface;return F({},r.size==="sm"&&{"--Tabs-spacing":"0.75rem"},r.size==="md"&&{"--Tabs-spacing":"1rem"},r.size==="lg"&&{"--Tabs-spacing":"1.25rem"},{"--Tab-indicatorThickness":"2px","--Icon-color":r.color!=="neutral"||r.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--TabList-stickyBackground":u==="transparent"?"initial":u,display:"flex",flexDirection:"column"},r.orientation==="vertical"&&{flexDirection:"row"},{backgroundColor:e.vars.palette.background.surface,position:"relative"},e.typography[`body-${r.size}`],(n=e.variants[r.variant])==null?void 0:n[r.color],l!==void 0&&{"--Tabs-padding":l},c!==void 0&&{"--Tabs-padding":c})}),MT=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTabs"}),{children:i,value:a,defaultValue:o,orientation:s="horizontal",direction:l="ltr",component:c,variant:u="plain",color:d="neutral",size:p="md",slots:h={},slotProps:m={}}=n,f=$e(n,F8),v=o||(a===void 0?0:void 0),{contextValue:w}=AW(F({},n,{orientation:s,defaultValue:v})),y=F({},n,{orientation:s,direction:l,variant:u,color:d,size:p}),g=j8(y),x=F({},f,{component:c,slots:h,slotProps:m}),[b,C]=we("root",{ref:t,elementType:B8,externalForwardedProps:x,additionalProps:{ref:t,as:c},ownerState:y,className:g.root});return Y.jsx(b,F({},C,{children:Y.jsx(PW,{value:w,children:Y.jsx(xy.Provider,{value:p,children:i})})}))});function z8(r){return tt("MuiTextarea",r)}const LT=Xe("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]),H8=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],U8=r=>{const{disabled:e,variant:t,color:n,size:i}=r,a={root:["root",e&&"disabled",t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,i&&`size${Ie(i)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(a,z8,{})},V8=he("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s;const l=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color];return[F({"--Textarea-radius":r.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":r.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":r.vars.focus.thickness,"--Textarea-focusedHighlight":(n=r.vars.palette[e.color==="neutral"?"primary":e.color])==null?void 0:n[500],'&:not([data-inverted-colors="false"])':F({},e.instanceColor&&{"--_Textarea-focusedHighlight":(i=r.vars.palette[e.instanceColor==="neutral"?"primary":e.instanceColor])==null?void 0:i[500]},{"--Textarea-focusedHighlight":`var(--_Textarea-focusedHighlight, ${r.vars.palette.focusVisible})`})},e.size==="sm"&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.375rem - 0.5px - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":r.vars.fontSize.xl},e.size==="md"&&{"--Textarea-minHeight":"2.25rem","--Textarea-paddingBlock":"calc(0.375rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(1.75rem, var(--Textarea-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},e.size==="lg"&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},e.variant!=="plain"&&{boxShadow:r.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},r.typography[`body-${e.size}`],l,{backgroundColor:(a=l?.backgroundColor)!=null?a:r.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":F({},(o=r.variants[`${e.variant}Hover`])==null?void 0:o[e.color],{backgroundColor:null,cursor:"text"}),[`&.${LT.disabled}`]:(s=r.variants[`${e.variant}Disabled`])==null?void 0:s[e.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),W8=he(BW,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(r,e)=>e.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),q8=he("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),G8=he("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),Cy=D.forwardRef(function(e,t){var n,i,a,o,s,l,c,u;const d=Ze({props:e,name:"JoyTextarea"}),p=rT(d,LT),{propsToForward:h,rootStateClasses:m,inputStateClasses:f,getRootProps:v,getInputProps:w,formControl:y,focused:g,error:x=!1,disabled:b=!1,size:C="md",color:I="neutral",variant:S="outlined",startDecorator:P,endDecorator:_,minRows:k,maxRows:T,component:E,slots:M={},slotProps:O={}}=p,L=$e(p,H8),N=(n=(i=e.disabled)!=null?i:y?.disabled)!=null?n:b,W=(a=(o=e.error)!=null?o:y?.error)!=null?a:x,V=(s=(l=e.size)!=null?l:y?.size)!=null?s:C,U=(c=e.color)!=null?c:W?"danger":(u=y?.color)!=null?u:I,R=F({instanceColor:W?"danger":e.color},d,{color:U,disabled:N,error:W,focused:g,size:V,variant:S}),$=U8(R),j=F({},L,{component:E,slots:M,slotProps:O}),[B,J]=we("root",{ref:t,className:[$.root,m],elementType:V8,externalForwardedProps:j,getSlotProps:v,ownerState:R}),[G,K]=we("textarea",{additionalProps:{id:y?.htmlFor,"aria-describedby":y?.["aria-describedby"]},className:[$.textarea,f],elementType:W8,internalForwardedProps:F({},h,{minRows:k,maxRows:T}),externalForwardedProps:j,getSlotProps:w,ownerState:R}),[q,X]=we("startDecorator",{className:$.startDecorator,elementType:q8,externalForwardedProps:j,ownerState:R}),[ee,se]=we("endDecorator",{className:$.endDecorator,elementType:G8,externalForwardedProps:j,ownerState:R});return Y.jsxs(B,F({},J,{children:[P&&Y.jsx(q,F({},X,{children:P})),Y.jsx(G,F({},K)),_&&Y.jsx(ee,F({},se,{children:_}))]}))});function K8(r){return tt("MuiTooltip",r)}Xe("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);const Y8=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],J8=r=>{const{arrow:e,variant:t,color:n,size:i,placement:a,touch:o}=r,s={root:["root",e&&"tooltipArrow",o&&"touch",i&&`size${Ie(i)}`,n&&`color${Ie(n)}`,t&&`variant${Ie(t)}`,`tooltipPlacement${Ie(a.split("-")[0])}`],arrow:["arrow"]};return Je(s,K8,{})},Q8=he("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n,i;const a=(t=e.variants[r.variant])==null?void 0:t[r.color];return F({},r.size==="sm"&&{"--Icon-fontSize":e.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:e.spacing(.25,.625)},r.size==="md"&&{"--Icon-fontSize":e.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:e.spacing(.5,.75)},r.size==="lg"&&{"--Icon-fontSize":e.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:e.spacing(.75,1)},{zIndex:e.vars.zIndex.tooltip,borderRadius:e.vars.radius.sm,boxShadow:e.shadow.sm,wordWrap:"break-word",position:"relative"},r.disableInteractive&&{pointerEvents:"none"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[r.size]}`],a,!a.backgroundColor&&{backgroundColor:e.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(n=r.placement)!=null&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=r.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),X8=he("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(r,e)=>e.arrow})(({theme:r,ownerState:e})=>{var t,n,i;const a=(t=r.variants[e.variant])==null?void 0:t[e.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(n=a?.backgroundColor)!=null?n:r.vars.palette.background.surface,borderRightColor:(i=a?.backgroundColor)!=null?i:r.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${a.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}});let ap=!1;const $T=new jl;let uc={x:0,y:0};function NT(r,e){return t=>{e&&e(t),r(t)}}function FT(r,e){return(t,...n)=>{e&&e(t,...n),r(t,...n)}}const vt=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyTooltip"}),{children:a,className:o,component:s,arrow:l=!1,describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:f=0,enterTouchDelay:v=700,followCursor:w=!1,id:y,leaveDelay:g=0,leaveTouchDelay:x=1500,onClose:b,onOpen:C,open:I,disablePortal:S,direction:P,keepMounted:_,modifiers:k,placement:T="bottom",title:E,color:M="neutral",variant:O="solid",size:L="md",slots:N={},slotProps:W={}}=i,V=$e(i,Y8),[U,R]=D.useState(),[$,j]=D.useState(null),B=D.useRef(!1),J=p||w,G=Bl(),K=Bl(),q=Bl(),X=Bl(),[ee,se]=wa({controlled:I,default:!1,name:"Tooltip",state:"open"});let ce=ee;const Ae=Cn(y),Le=D.useRef(void 0),Ee=cn(()=>{Le.current!==void 0&&(document.body.style.WebkitUserSelect=Le.current,Le.current=void 0),X.clear()});D.useEffect(()=>Ee,[Ee]);const Oe=oe=>{$T.clear(),ap=!0,se(!0),C&&!ce&&C(oe)},ve=cn(oe=>{$T.start(800+g,()=>{ap=!1}),se(!1),b&&ce&&b(oe),G.start(150,()=>{B.current=!1})}),ne=oe=>{B.current&&oe.type!=="touchstart"||(U&&U.removeAttribute("title"),K.clear(),q.clear(),m||ap&&f?K.start(ap?f:m,()=>{Oe(oe)}):Oe(oe))},ae=oe=>{K.clear(),q.start(g,()=>{ve(oe)})},{isFocusVisibleRef:pe,onBlur:xe,onFocus:ue,ref:Pe}=zl(),[,je]=D.useState(!1),Be=oe=>{xe(oe),pe.current===!1&&(je(!1),ae(oe))},st=oe=>{U||R(oe.currentTarget),ue(oe),pe.current===!0&&(je(!0),ne(oe))},Qe=oe=>{B.current=!0;const Se=a.props;Se.onTouchStart&&Se.onTouchStart(oe)},de=oe=>{Qe(oe),q.clear(),G.clear(),Ee(),Le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(v,()=>{document.body.style.WebkitUserSelect=Le.current,ne(oe)})},Ce=oe=>{a.props.onTouchEnd&&a.props.onTouchEnd(oe),Ee(),q.start(x,()=>{ve(oe)})};D.useEffect(()=>{if(!ce)return;function oe(Se){(Se.key==="Escape"||Se.key==="Esc")&&ve(Se)}return document.addEventListener("keydown",oe),()=>{document.removeEventListener("keydown",oe)}},[ve,ce]);const ye=Tt(R,t),Ne=Tt(Pe,ye),_e=Tt(Md(a),Ne);typeof E!="number"&&!E&&(ce=!1);const ke=D.useRef(null),We=oe=>{const Se=a.props;Se.onMouseMove&&Se.onMouseMove(oe),uc={x:oe.clientX,y:oe.clientY},ke.current&&ke.current.update()},ze={},kt=typeof E=="string";c?(ze.title=!ce&&kt&&!d?E:null,ze["aria-describedby"]=ce?Ae:null):(ze["aria-label"]=kt?E:null,ze["aria-labelledby"]=ce&&!kt?Ae:null);const ht=F({},ze,V,{component:s},a.props,{className:St(o,a.props.className),onTouchStart:Qe,ref:_e},w?{onMouseMove:We}:{}),yr={};h||(ht.onTouchStart=de,ht.onTouchEnd=Ce),d||(ht.onMouseOver=NT(ne,ht.onMouseOver),ht.onMouseLeave=NT(ae,ht.onMouseLeave),J||(yr.onMouseOver=ne,yr.onMouseLeave=ae)),u||(ht.onFocus=FT(st,ht.onFocus),ht.onBlur=FT(Be,ht.onBlur),J||(yr.onFocus=st,yr.onBlur=Be));const Yt=F({},i,{arrow:l,disableInteractive:J,placement:T,touch:B.current,color:M,variant:O,size:L}),Pt=J8(Yt),yt=F({},V,{component:s,slots:N,slotProps:W}),mt=D.useMemo(()=>[{name:"arrow",enabled:!!$,options:{element:$,padding:6}},{name:"offset",options:{offset:[0,10]}},...k||[]],[$,k]),[xt,Q]=we("root",{additionalProps:F({id:Ae,popperRef:ke,placement:T,anchorEl:w?{getBoundingClientRect:()=>({top:uc.y,left:uc.x,right:uc.x,bottom:uc.y,width:0,height:0})}:U,open:U?ce:!1,disablePortal:S,keepMounted:_,direction:P,modifiers:mt},yr),ref:null,className:Pt.root,elementType:Q8,externalForwardedProps:yt,ownerState:Yt}),[te,ie]=we("arrow",{ref:j,className:Pt.arrow,elementType:X8,externalForwardedProps:yt,ownerState:Yt});return Y.jsxs(D.Fragment,{children:[D.isValidElement(a)&&D.cloneElement(a,ht),Y.jsxs(xt,F({},Q,!((n=i.slots)!=null&&n.root)&&{as:Zv,slots:{root:s||"div"}},{children:[E,l?Y.jsx(te,F({},ie)):null]}))]})});function zi(r){if(typeof r!="object"||r===null)return!1;const e=Object.getPrototypeOf(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function jT(r){if(D.isValidElement(r)||MS.isValidElementType(r)||!zi(r))return r;const e={};return Object.keys(r).forEach(t=>{e[t]=jT(r[t])}),e}function _n(r,e,t={clone:!0}){const n=t.clone?{...r}:r;return zi(r)&&zi(e)&&Object.keys(e).forEach(i=>{D.isValidElement(e[i])||MS.isValidElementType(e[i])?n[i]=e[i]:zi(e[i])&&Object.prototype.hasOwnProperty.call(r,i)&&zi(r[i])?n[i]=_n(r[i],e[i],t):t.clone?n[i]=zi(e[i])?jT(e[i]):e[i]:n[i]=e[i]}),n}function uo(r,...e){const t=new URL(`https://mui.com/production-error/?code=${r}`);return e.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${r}; visit ${t} for the full message.`}function is(r){if(typeof r!="string")throw new Error(uo(7));return r.charAt(0).toUpperCase()+r.slice(1)}function Iy(r,e){const t={...e};for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=n;if(i==="components"||i==="slots")t[i]={...r[i],...t[i]};else if(i==="componentsProps"||i==="slotProps"){const a=r[i],o=e[i];if(!o)t[i]=a||{};else if(!a)t[i]=o;else{t[i]={...o};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;t[i][l]=Iy(a[l],o[l])}}}else t[i]===void 0&&(t[i]=r[i])}return t}function Z8(r,e,t=void 0){const n={};for(const i in r){const a=r[i];let o="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(o+=(s===!0?"":" ")+e(c),s=!1,t&&t[c]&&(o+=" "+t[c]))}n[i]=o}return n}const BT=r=>r,eK=(()=>{let r=BT;return{configure(e){r=e},generate(e){return r(e)},reset(){r=BT}}})(),tK={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 zT(r,e,t="Mui"){const n=tK[e];return n?`${t}-${n}`:`${eK.generate(r)}-${e}`}function rK(r,e,t="Mui"){const n={};return e.forEach(i=>{n[i]=zT(r,i,t)}),n}function nK(r,e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(r,t))}function dc(r,e){return e?_n(r,e,{clone:!1}):r}function iK(r,e){if(!r.containerQueries)return e;const t=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return t.length?t.reduce((n,i)=>{const a=e[i];return delete n[i],n[i]=a,n},{...e}):e}function aK(r,e){return e==="@"||e.startsWith("@")&&(r.some(t=>e.startsWith(`@${t}`))||!!e.match(/^@\d/))}function oK(r,e){const t=e.match(/^@([^/]+)?\/?(.+)?$/);if(!t)return null;const[,n,i]=t,a=Number.isNaN(+n)?n||0:+n;return r.containerQueries(i).up(a)}function sK(r){const e=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function t(a,o){a.up=(...s)=>e(r.breakpoints.up(...s),o),a.down=(...s)=>e(r.breakpoints.down(...s),o),a.between=(...s)=>e(r.breakpoints.between(...s),o),a.only=(...s)=>e(r.breakpoints.only(...s),o),a.not=(...s)=>{const l=e(r.breakpoints.not(...s),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},i=a=>(t(n,a),n);return t(i),{...r,containerQueries:i}}const op={xs:0,sm:600,md:900,lg:1200,xl:1536},HT={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${op[r]}px)`},lK={containerQueries:r=>({up:e=>{let t=typeof e=="number"?e:op[e]||e;return typeof t=="number"&&(t=`${t}px`),r?`@container ${r} (min-width:${t})`:`@container (min-width:${t})`}})};function Hi(r,e,t){const n=r.theme||{};if(Array.isArray(e)){const a=n.breakpoints||HT;return e.reduce((o,s,l)=>(o[a.up(a.keys[l])]=t(e[l]),o),{})}if(typeof e=="object"){const a=n.breakpoints||HT;return Object.keys(e).reduce((o,s)=>{if(aK(a.keys,s)){const l=oK(n.containerQueries?n:lK,s);l&&(o[l]=t(e[s],s))}else if(Object.keys(a.values||op).includes(s)){const l=a.up(s);o[l]=t(e[s],s)}else{const l=s;o[l]=e[l]}return o},{})}return t(e)}function cK(r={}){return r.keys?.reduce((t,n)=>{const i=r.up(n);return t[i]={},t},{})||{}}function uK(r,e){return r.reduce((t,n)=>{const i=t[n];return(!i||Object.keys(i).length===0)&&delete t[n],t},e)}function sp(r,e,t=!0){if(!e||typeof e!="string")return null;if(r&&r.vars&&t){const n=`vars.${e}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,r);if(n!=null)return n}return e.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,r)}function lp(r,e,t,n=t){let i;return typeof r=="function"?i=r(t):Array.isArray(r)?i=r[t]||n:i=sp(r,t)||n,e&&(i=e(i,n,r)),i}function pr(r){const{prop:e,cssProperty:t=r.prop,themeKey:n,transform:i}=r,a=o=>{if(o[e]==null)return null;const s=o[e],l=o.theme,c=sp(l,n)||{};return Hi(o,s,d=>{let p=lp(c,i,d);return d===p&&typeof d=="string"&&(p=lp(c,i,`${e}${d==="default"?"":is(d)}`,d)),t===!1?p:{[t]:p}})};return a.propTypes={},a.filterProps=[e],a}function dK(r){const e={};return t=>(e[t]===void 0&&(e[t]=r(t)),e[t])}const pK={m:"margin",p:"padding"},hK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},UT={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fK=dK(r=>{if(r.length>2)if(UT[r])r=UT[r];else return[r];const[e,t]=r.split(""),n=pK[e],i=hK[t]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),_y=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._y,...Sy];function pc(r,e,t,n){const i=sp(r,e,!0)??t;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const o=Math.abs(a),s=i[o];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:()=>{}}function Ty(r){return pc(r,"spacing",8)}function hc(r,e){return typeof e=="string"||e==null?e:r(e)}function mK(r,e){return t=>r.reduce((n,i)=>(n[i]=hc(e,t),n),{})}function gK(r,e,t,n){if(!e.includes(t))return null;const i=fK(t),a=mK(i,n),o=r[t];return Hi(r,o,a)}function VT(r,e){const t=Ty(r.theme);return Object.keys(r).map(n=>gK(r,e,n,t)).reduce(dc,{})}function Zt(r){return VT(r,_y)}Zt.propTypes={},Zt.filterProps=_y;function er(r){return VT(r,Sy)}er.propTypes={},er.filterProps=Sy;function cp(...r){const e=r.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),t=n=>Object.keys(n).reduce((i,a)=>e[a]?dc(i,e[a](n)):i,{});return t.propTypes={},t.filterProps=r.reduce((n,i)=>n.concat(i.filterProps),[]),t}function zn(r){return typeof r!="number"?r:`${r}px solid`}function Hn(r,e){return pr({prop:r,themeKey:"borders",transform:e})}const vK=Hn("border",zn),yK=Hn("borderTop",zn),bK=Hn("borderRight",zn),wK=Hn("borderBottom",zn),xK=Hn("borderLeft",zn),CK=Hn("borderColor"),IK=Hn("borderTopColor"),_K=Hn("borderRightColor"),SK=Hn("borderBottomColor"),TK=Hn("borderLeftColor"),kK=Hn("outline",zn),AK=Hn("outlineColor"),up=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const e=pc(r.theme,"shape.borderRadius",4),t=n=>({borderRadius:hc(e,n)});return Hi(r,r.borderRadius,t)}return null};up.propTypes={},up.filterProps=["borderRadius"],cp(vK,yK,bK,wK,xK,CK,IK,_K,SK,TK,up,kK,AK);const dp=r=>{if(r.gap!==void 0&&r.gap!==null){const e=pc(r.theme,"spacing",8),t=n=>({gap:hc(e,n)});return Hi(r,r.gap,t)}return null};dp.propTypes={},dp.filterProps=["gap"];const pp=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const e=pc(r.theme,"spacing",8),t=n=>({columnGap:hc(e,n)});return Hi(r,r.columnGap,t)}return null};pp.propTypes={},pp.filterProps=["columnGap"];const hp=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const e=pc(r.theme,"spacing",8),t=n=>({rowGap:hc(e,n)});return Hi(r,r.rowGap,t)}return null};hp.propTypes={},hp.filterProps=["rowGap"];const PK=pr({prop:"gridColumn"}),EK=pr({prop:"gridRow"}),OK=pr({prop:"gridAutoFlow"}),RK=pr({prop:"gridAutoColumns"}),DK=pr({prop:"gridAutoRows"}),MK=pr({prop:"gridTemplateColumns"}),LK=pr({prop:"gridTemplateRows"}),$K=pr({prop:"gridTemplateAreas"}),NK=pr({prop:"gridArea"});cp(dp,pp,hp,PK,EK,OK,RK,DK,MK,LK,$K,NK);function as(r,e){return e==="grey"?e:r}const FK=pr({prop:"color",themeKey:"palette",transform:as}),jK=pr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:as}),BK=pr({prop:"backgroundColor",themeKey:"palette",transform:as});cp(FK,jK,BK);function Sn(r){return r<=1&&r!==0?`${r*100}%`:r}const zK=pr({prop:"width",transform:Sn}),ky=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const e=t=>{const n=r.theme?.breakpoints?.values?.[t]||op[t];return n?r.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${r.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Sn(t)}};return Hi(r,r.maxWidth,e)}return null};ky.filterProps=["maxWidth"];const HK=pr({prop:"minWidth",transform:Sn}),UK=pr({prop:"height",transform:Sn}),VK=pr({prop:"maxHeight",transform:Sn}),WK=pr({prop:"minHeight",transform:Sn});pr({prop:"size",cssProperty:"width",transform:Sn}),pr({prop:"size",cssProperty:"height",transform:Sn});const qK=pr({prop:"boxSizing"});cp(zK,ky,HK,UK,VK,WK,qK);const fp={border:{themeKey:"borders",transform:zn},borderTop:{themeKey:"borders",transform:zn},borderRight:{themeKey:"borders",transform:zn},borderBottom:{themeKey:"borders",transform:zn},borderLeft:{themeKey:"borders",transform:zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:up},color:{themeKey:"palette",transform:as},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:as},backgroundColor:{themeKey:"palette",transform:as},p:{style:er},pt:{style:er},pr:{style:er},pb:{style:er},pl:{style:er},px:{style:er},py:{style:er},padding:{style:er},paddingTop:{style:er},paddingRight:{style:er},paddingBottom:{style:er},paddingLeft:{style:er},paddingX:{style:er},paddingY:{style:er},paddingInline:{style:er},paddingInlineStart:{style:er},paddingInlineEnd:{style:er},paddingBlock:{style:er},paddingBlockStart:{style:er},paddingBlockEnd:{style:er},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:dp},rowGap:{style:hp},columnGap:{style:pp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sn},maxWidth:{style:ky},minWidth:{transform:Sn},height:{transform:Sn},maxHeight:{transform:Sn},minHeight:{transform:Sn},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 GK(...r){const e=r.reduce((n,i)=>n.concat(Object.keys(i)),[]),t=new Set(e);return r.every(n=>t.size===Object.keys(n).length)}function KK(r,e){return typeof r=="function"?r(e):r}function YK(){function r(t,n,i,a){const o={[t]:n,theme:i},s=a[t];if(!s)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const p=sp(i,c)||{};return d?d(o):Hi(o,n,m=>{let f=lp(p,u,m);return m===f&&typeof m=="string"&&(f=lp(p,u,`${t}${m==="default"?"":is(m)}`,m)),l===!1?f:{[l]:f}})}function e(t){const{sx:n,theme:i={}}=t||{};if(!n)return null;const a=i.unstable_sxConfig??fp;function o(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const c=cK(i.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(p=>{const h=KK(l[p],i);if(h!=null)if(typeof h=="object")if(a[p])d=dc(d,r(p,h,i,a));else{const m=Hi({theme:i},h,f=>({[p]:f}));GK(m,h)?d[p]=e({sx:h,theme:i}):d=dc(d,m)}else d=dc(d,r(p,h,i,a))}),iK(i,uK(u,d))}return Array.isArray(n)?n.map(o):o(n)}return e}const os=YK();os.filterProps=["sx"];/**
148
+ `)),i8=he("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s,l;const{p:c,padding:u,borderRadius:d}=Ia({theme:r,ownerState:e},["p","padding","borderRadius"]);return[F({"--Snackbar-radius":r.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},e.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":r.vars.fontSize.xl,gap:"0.5rem"},e.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":r.vars.fontSize.xl,gap:"0.625rem"},e.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":r.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:r.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((t=e.anchorOrigin)==null?void 0:t.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((n=e.anchorOrigin)==null?void 0:n.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((i=e.anchorOrigin)==null?void 0:i.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((a=e.anchorOrigin)==null?void 0:a.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((o=e.anchorOrigin)==null?void 0:o.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((s=e.anchorOrigin)==null?void 0:s.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${r8} ${e.animationDuration}ms forwards`},!e.open&&{animationName:n8},{boxShadow:r.vars.shadow.lg,backgroundColor:r.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],e.variant==="solid"&&e.color&&e.invertedColors&&Xd(e.color)(r),e.variant==="soft"&&e.color&&e.invertedColors&&Zd(e.color)(r),(l=r.variants[e.variant])==null?void 0:l[e.color]),c!==void 0&&{"--Snackbar-padding":c},u!==void 0&&{"--Snackbar-padding":u},d!==void 0&&{"--Snackbar-radius":d}]}),a8=he("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inherit",flex:"none"}),o8=he("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),s8={vertical:"bottom",horizontal:"right"},l8=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoySnackbar"}),{anchorOrigin:i=s8,animationDuration:a=300,autoHideDuration:o=null,color:s="neutral",children:l,className:c,component:u,disableWindowBlurListener:d=!1,endDecorator:p,invertedColors:h=!1,onUnmount:m,open:f,size:v="md",slots:w={},slotProps:y,startDecorator:g,variant:x="outlined"}=n,b=$e(n,e8),[C,I]=D.useState(!0),[S,P]=D.useState(!1),_=D.useRef(m);_.current=m,D.useEffect(()=>{if(f)P(!1),I(!1);else{P(!0);const B=setTimeout(()=>{var J;I(!0),P(!1),(J=_.current)==null||J.call(_)},a);return()=>{clearTimeout(B)}}},[f,a]);const k=F({},n,{anchorOrigin:i,autoHideDuration:o,color:s,animationDuration:a,disableWindowBlurListener:d,invertedColors:h,size:v,variant:x});delete k.onUnmount;const T=t8(k),{getRootProps:E,onClickAway:M}=kW(k),O=B=>{S||M(B)},L=F({},b,{component:u,slots:w,slotProps:y}),[N,W]=we("root",{ref:t,className:St(T.root,c),elementType:i8,externalForwardedProps:L,getSlotProps:E,ownerState:k}),[V,U]=we("startDecorator",{className:T.startDecorator,elementType:a8,externalForwardedProps:L,ownerState:k}),[R,$]=we("endDecorator",{className:T.endDecorator,elementType:o8,externalForwardedProps:L,ownerState:k}),j=w.clickAway||uV;return!f&&C?null:Y.jsx(j,F({onClickAway:O},typeof y?.clickAway=="function"?y.clickAway(k):y?.clickAway,{children:Y.jsxs(N,F({},W,{children:[g&&Y.jsx(V,F({},U,{children:g})),l,p&&Y.jsx(R,F({},$,{children:p}))]}))}))}),co=K4({createStyledComponent:he("div",{name:"JoyStack",slot:"Root",overridesResolver:(r,e)=>e.root}),useThemeProps:r=>Ze({props:r,name:"JoyStack"})}),c8=["checked","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","id","color","variant","size","startDecorator","endDecorator","component","slots","slotProps"],u8=r=>{const{checked:e,disabled:t,focusVisible:n,readOnly:i,color:a,variant:o,size:s}=r,l={root:["root",e&&"checked",t&&"disabled",n&&"focusVisible",i&&"readOnly",o&&`variant${Ie(o)}`,a&&`color${Ie(a)}`,s&&`size${Ie(s)}`],thumb:["thumb",e&&"checked"],track:["track",e&&"checked"],action:["action",n&&"focusVisible"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(l,P7,{})},d8=({theme:r,ownerState:e})=>(t={})=>{var n,i,a;const o=((n=r.variants[`${e.variant}${t.state||""}`])==null?void 0:n[e.color])||{};return{"--Switch-trackBackground":(i=o.backgroundColor)!=null?i:r.vars.palette.background.surface,"--Switch-trackColor":o.color,"--Switch-trackBorderColor":e.variant==="outlined"?o.borderColor:"currentColor","--Switch-thumbBackground":o.color,"--Switch-thumbColor":(a=o.backgroundColor)!=null?a:r.vars.palette.background.surface}},p8=he("div",{name:"JoySwitch",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const n=d8({theme:r,ownerState:e});return F({"--Icon-color":"currentColor","--variant-borderWidth":(t=r.variants[e.variant])==null||(t=t[e.color])==null?void 0:t["--variant-borderWidth"],"--Switch-trackRadius":r.vars.radius.xl,"--Switch-thumbShadow":e.variant==="soft"?"none":"0 0 0 1px var(--Switch-trackBackground)"},e.size==="sm"&&{"--Switch-trackWidth":"26px","--Switch-trackHeight":"16px","--Switch-thumbSize":"10px",fontSize:r.vars.fontSize.sm,gap:"var(--Switch-gap, 6px)"},e.size==="md"&&{"--Switch-trackWidth":"32px","--Switch-trackHeight":"20px","--Switch-thumbSize":"14px",fontSize:r.vars.fontSize.md,gap:"var(--Switch-gap, 8px)"},e.size==="lg"&&{"--Switch-trackWidth":"40px","--Switch-trackHeight":"24px","--Switch-thumbSize":"18px",gap:"var(--Switch-gap, 12px)"},{"--unstable_paddingBlock":"max((var(--Switch-trackHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Switch-thumbSize)) / 2, 0px)","--Switch-thumbRadius":"max(var(--Switch-trackRadius) - var(--unstable_paddingBlock), min(var(--unstable_paddingBlock) / 2, var(--Switch-trackRadius) / 2))","--Switch-thumbWidth":"var(--Switch-thumbSize)","--Switch-thumbOffset":"max((var(--Switch-trackHeight) - var(--Switch-thumbSize)) / 2, 0px)"},n(),{"&:hover":{"@media (hover: hover)":F({},n({state:"Hover"}))},[`&.${sc.checked}`]:F({},n(),{"&:hover":{"@media (hover: hover)":F({},n({state:"Hover"}))}}),[`&.${sc.disabled}`]:F({pointerEvents:"none",color:r.vars.palette.text.tertiary},n({state:"Disabled"})),display:"inline-flex",alignItems:"center",alignSelf:"center",fontFamily:r.vars.fontFamily.body,position:"relative",padding:"calc((var(--Switch-thumbSize) / 2) - (var(--Switch-trackHeight) / 2)) calc(-1 * var(--Switch-thumbOffset))",backgroundColor:"initial",border:"none",margin:"var(--unstable_Switch-margin)"})}),h8=he("div",{name:"JoySwitch",slot:"Action",overridesResolver:(r,e)=>e.action})(({theme:r})=>({borderRadius:"var(--Switch-trackRadius)",position:"absolute",top:0,left:0,bottom:0,right:0,[r.focus.selector]:r.focus.default})),f8=he("input",{name:"JoySwitch",slot:"Input",overridesResolver:(r,e)=>e.input})({margin:0,height:"100%",width:"100%",opacity:0,position:"absolute",cursor:"pointer"}),m8=he("span",{name:"JoySwitch",slot:"Track",overridesResolver:(r,e)=>e.track})(({theme:r,ownerState:e})=>F({position:"relative",color:"var(--Switch-trackColor)",height:"var(--Switch-trackHeight)",width:"var(--Switch-trackWidth)",display:"flex",flexShrink:0,justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",border:"var(--variant-borderWidth, 0px) solid",borderColor:"var(--Switch-trackBorderColor)",backgroundColor:"var(--Switch-trackBackground)",borderRadius:"var(--Switch-trackRadius)",fontFamily:r.vars.fontFamily.body},e.size==="sm"&&{fontSize:r.vars.fontSize.xs},e.size==="md"&&{fontSize:r.vars.fontSize.sm},e.size==="lg"&&{fontSize:r.vars.fontSize.md})),g8=he("span",{name:"JoySwitch",slot:"Thumb",overridesResolver:(r,e)=>e.thumb})({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"calc(50% - var(--Switch-trackWidth) / 2 + var(--Switch-thumbWidth) / 2 + var(--Switch-thumbOffset))",transform:"translate(-50%, -50%)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${sc.checked}`]:{left:"calc(50% + var(--Switch-trackWidth) / 2 - var(--Switch-thumbWidth) / 2 - var(--Switch-thumbOffset))"}}),v8=he("span",{name:"JoySwitch",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"inline-flex"}),y8=he("span",{name:"JoySwitch",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"inline-flex"}),b8=D.forwardRef(function(e,t){var n,i,a,o,s,l;const c=Ze({props:e,name:"JoySwitch"}),{disabled:u,id:d,color:p,variant:h="solid",size:m="md",startDecorator:f,endDecorator:v,component:w,slots:y={},slotProps:g={}}=c,x=$e(c,c8),b=D.useContext(Ta),C=(n=(i=e.size)!=null?i:b?.size)!=null?n:m,I=(a=e.color)!=null?a:b!=null&&b.error?"danger":(o=b?.color)!=null?o:p,S=F({disabled:(s=(l=e.disabled)!=null?l:b?.disabled)!=null?s:u},c),{getInputProps:P,checked:_,disabled:k,focusVisible:T,readOnly:E}=E1(S),M=F({},c,{id:d,checked:_,disabled:k,focusVisible:T,readOnly:E,color:_?I||"primary":I||"neutral",variant:h,size:C}),O=u8(M),L=F({},x,{component:w,slots:y,slotProps:g}),[N,W]=we("root",{ref:t,className:O.root,elementType:p8,externalForwardedProps:L,ownerState:M}),[V,U]=we("startDecorator",{additionalProps:{"aria-hidden":!0},className:O.startDecorator,elementType:v8,externalForwardedProps:L,ownerState:M}),[R,$]=we("endDecorator",{additionalProps:{"aria-hidden":!0},className:O.endDecorator,elementType:y8,externalForwardedProps:L,ownerState:M}),[j,B]=we("track",{className:O.track,elementType:m8,externalForwardedProps:L,ownerState:M}),[J,G]=we("thumb",{className:O.thumb,elementType:g8,externalForwardedProps:L,ownerState:M}),[K,q]=we("action",{className:O.action,elementType:h8,externalForwardedProps:L,ownerState:M}),[X,ee]=we("input",{additionalProps:{id:d??b?.htmlFor,"aria-describedby":b?.["aria-describedby"]},className:O.input,elementType:f8,externalForwardedProps:L,getSlotProps:P,ownerState:M});return Y.jsxs(N,F({},W,{children:[f&&Y.jsx(V,F({},U,{children:typeof f=="function"?f(M):f})),Y.jsxs(j,F({},B,{children:[B?.children,Y.jsx(J,F({},G))]})),Y.jsx(K,F({},q,{children:Y.jsx(X,F({},ee))})),v&&Y.jsx(R,F({},$,{children:typeof v=="function"?v(M):v}))]}))});function w8(r){return tt("MuiTab",r)}const x8=Xe("MuiTab",["root","disabled","focusVisible","selected","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),C8=["action","children","value","disabled","onChange","onClick","onFocus","component","orientation","variant","color","disableIndicator","indicatorPlacement","indicatorInset","slots","slotProps"],I8=r=>{const{selected:e,disabled:t,focusVisible:n,variant:i,color:a,orientation:o}=r,s={root:["root",o,t&&"disabled",n&&"focusVisible",e&&"selected",i&&`variant${Ie(i)}`,a&&`color${Ie(a)}`]};return Je(s,w8,{})},_8=he(ic,{name:"JoyTab",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r})=>[{flex:"initial",justifyContent:r.row?"center":"initial","--unstable_ListItemDecorator-alignItems":"center","--unstable_offset":"min(calc(-1 * var(--variant-borderWidth, 0px)), -1px)"},!r.disableIndicator&&{'&[aria-selected="true"]':{"--Tab-indicatorColor":"currentColor",zIndex:1},"&::after":{content:'""',display:"block",position:"absolute",margin:"auto",background:"var(--Tab-indicatorColor)",borderRadius:"var(--Tab-indicatorRadius)"}},!r.disableIndicator&&r.indicatorPlacement==="bottom"&&{paddingBottom:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorThickness)",width:"var(--Tab-indicatorSize)",left:r.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:r.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",bottom:"calc(-1px - var(--unstable_TabList-underlineBottom, 0px))"}},!r.disableIndicator&&r.indicatorPlacement==="top"&&{paddingTop:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorThickness)",width:"var(--Tab-indicatorSize)",left:r.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:r.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",top:"calc(-1px - var(--unstable_TabList-underlineTop, 0px))"}},!r.disableIndicator&&r.indicatorPlacement==="right"&&{paddingRight:"calc(var(--ListItem-paddingRight) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",right:"calc(-1px - var(--unstable_TabList-underlineRight, 0px))"}},!r.disableIndicator&&r.indicatorPlacement==="left"&&{paddingLeft:"calc(var(--ListItem-paddingLeft) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:r.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",left:"calc(-1px - var(--unstable_TabList-underlineLeft, 0px))"}}]),ns=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTab"}),i=D.useContext(ec),{action:a,children:o,disabled:s=!1,component:l="button",orientation:c="horizontal",variant:u="plain",color:d="neutral",disableIndicator:p=!1,indicatorPlacement:h=i?"bottom":"right",indicatorInset:m=!1,slots:f={},slotProps:v={}}=n,w=$e(n,C8),y=D.useRef(null),g=Tt(y,t),{active:x,focusVisible:b,setFocusVisible:C,selected:I,getRootProps:S}=$W(F({},n,{rootRef:g}));D.useImperativeHandle(a,()=>({focusVisible:()=>{C(!0),y.current.focus()}}),[C]);const P=F({},n,{disableIndicator:p,indicatorPlacement:h,indicatorInset:m,orientation:c,row:i,active:x,focusVisible:b,disabled:s,selected:I,variant:u,color:d}),_=I8(P),k=F({},w,{component:l,slots:f,slotProps:v}),[T,E]=we("root",{ref:t,elementType:_8,getSlotProps:S,externalForwardedProps:k,ownerState:P,className:_.root});return Y.jsx(j1.Provider,{value:c,children:Y.jsx(T,F({},E,{children:o}))})});function S8(r){return tt("MuiTable",r)}Xe("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);const T8=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],k8=r=>{const{size:e,variant:t,color:n,borderAxis:i,stickyHeader:a,stickyFooter:o,noWrap:s,hoverRow:l}=r,c={root:["root",a&&"stickyHeader",o&&"stickyFooter",s&&"noWrap",l&&"hoverRow",i&&`borderAxis${Ie(i)}`,t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,e&&`size${Ie(e)}`]};return Je(c,S8,{})},Lr={getColumnExceptFirst(){return"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th"},getCell(){return"& th, & td"},getHeadCell(){return"& th"},getHeaderCell(){return"& thead th"},getHeaderCellOfRow(r){return`& thead tr:nth-of-type(${r}) th`},getBottomHeaderCell(){return"& thead th:not([colspan])"},getHeaderNestedFirstColumn(){return"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type"},getDataCell(){return"& td"},getDataCellExceptLastRow(){return"& tr:not(:last-of-type) > td"},getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow(r){return typeof r=="number"&&r<0?`& tbody tr:nth-last-of-type(${Math.abs(r)}) td, & tbody tr:nth-last-of-type(${Math.abs(r)}) th[scope="row"]`:`& tbody tr:nth-of-type(${r}) td, & tbody tr:nth-of-type(${r}) th[scope="row"]`},getBodyRow(r){return r===void 0?"& tbody tr":`& tbody tr:nth-of-type(${r})`},getFooterCell(){return"& tfoot th, & tfoot td"},getFooterFirstRowCell(){return"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"}},A8=he("table",{name:"JoyTable",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s,l;const c=(t=r.variants[e.variant])==null?void 0:t[e.color];return[F({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":(n=c?.borderColor)!=null?n:r.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${r.vars.palette.background.surface})`},e.size==="sm"&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},e.size==="md"&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},e.size==="lg"&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},r.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],(i=r.variants[e.variant])==null?void 0:i[e.color],{"& caption":{color:r.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[Lr.getDataCell()]:F({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},e.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[Lr.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:r.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:r.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[Lr.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${r.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),(((a=e.borderAxis)==null?void 0:a.startsWith("x"))||((o=e.borderAxis)==null?void 0:o.startsWith("both")))&&{[Lr.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[Lr.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[Lr.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[Lr.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},(((s=e.borderAxis)==null?void 0:s.startsWith("y"))||((l=e.borderAxis)==null?void 0:l.startsWith("both")))&&{[`${Lr.getColumnExceptFirst()}, ${Lr.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},(e.borderAxis==="x"||e.borderAxis==="both")&&{[Lr.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[Lr.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[Lr.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},(e.borderAxis==="y"||e.borderAxis==="both")&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},e.stripe&&{[Lr.getBodyRow(e.stripe)]:{background:`var(--TableRow-stripeBackground, ${r.vars.palette.background.level2})`,color:r.vars.palette.text.primary}},e.hoverRow&&{[Lr.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${r.vars.palette.background.level3})`}}},e.stickyHeader&&{[Lr.getHeaderCell()]:{position:"sticky",top:0,zIndex:r.vars.zIndex.table},[Lr.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},e.stickyFooter&&{[Lr.getFooterCell()]:{position:"sticky",bottom:0,zIndex:r.vars.zIndex.table,color:r.vars.palette.text.secondary,fontWeight:r.vars.fontWeight.lg},[Lr.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),np=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTable"}),{className:i,component:a,children:o,borderAxis:s="xBetween",hoverRow:l=!1,noWrap:c=!1,size:u="md",variant:d="plain",color:p="neutral",stripe:h,stickyHeader:m=!1,stickyFooter:f=!1,slots:v={},slotProps:w={}}=n,y=$e(n,T8),g=F({},n,{borderAxis:s,hoverRow:l,noWrap:c,component:a,size:u,color:p,variant:d,stripe:h,stickyHeader:m,stickyFooter:f}),x=k8(g),b=F({},y,{component:a,slots:v,slotProps:w}),[C,I]=we("root",{ref:t,className:St(x.root,i),elementType:A8,externalForwardedProps:b,ownerState:g});return Y.jsx(dy.Provider,{value:!0,children:Y.jsx(C,F({},I,{children:o}))})}),xy=D.createContext("md");function P8(r){return tt("MuiTabList",r)}Xe("MuiTabList",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const E8=["component","children","variant","color","size","disableUnderline","underlinePlacement","tabFlex","sticky","slots","slotProps"],O8=r=>{const{orientation:e,size:t,variant:n,color:i}=r,a={root:["root",e,n&&`variant${Ie(n)}`,i&&`color${Ie(i)}`,t&&`size${Ie(t)}`]};return Je(a,P8,{})},R8=he(nc,{name:"JoyTabList",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;const n=(t=r.variants[e.variant])==null?void 0:t[e.color];return F({"--List-gap":"0px","--ListDivider-gap":"0px","--ListItem-paddingX":"var(--Tabs-spacing)","--ListItem-gap":"0.375rem","--unstable_TabList-hasUnderline":e.disableUnderline?"var(--unknown,)":"initial"},iy,{flexGrow:"initial",flexDirection:e.orientation==="vertical"?"column":"row",borderRadius:"var(--List-radius, 0px)",padding:"var(--List-padding, 0px)",zIndex:1},e.sticky&&{position:"sticky",top:e.sticky==="top"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",bottom:e.sticky==="bottom"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",backgroundColor:n?.backgroundColor||`var(--TabList-stickyBackground, ${r.vars.palette.background.body})`},!e.disableUnderline&&F({},e.underlinePlacement==="bottom"&&{"--unstable_TabList-underlineBottom":"1px",paddingBottom:1,boxShadow:`inset 0 -1px ${r.vars.palette.divider}`},e.underlinePlacement==="top"&&{"--unstable_TabList-underlineTop":"1px",paddingTop:1,boxShadow:`inset 0 1px ${r.vars.palette.divider}`},e.underlinePlacement==="right"&&{"--unstable_TabList-underlineRight":"1px",paddingRight:1,boxShadow:`inset -1px 0 ${r.vars.palette.divider}`},e.underlinePlacement==="left"&&{"--unstable_TabList-underlineLeft":"1px",paddingLeft:1,boxShadow:`inset 1px 0 ${r.vars.palette.divider}`}),e.tabFlex&&{[`& .${x8.root}`]:{flex:e.tabFlex}})}),DT=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTabList"}),i=D.useContext(xy),{isRtl:a,orientation:o,getRootProps:s,contextValue:l}=DW({rootRef:t}),{component:c="div",children:u,variant:d="plain",color:p="neutral",size:h,disableUnderline:m=!1,underlinePlacement:f=o==="horizontal"?"bottom":"right",tabFlex:v,sticky:w,slots:y={},slotProps:g={}}=n,x=$e(n,E8),C=F({},n,{isRtl:a,orientation:o,variant:d,color:p,size:h??i,sticky:w,tabFlex:v,nesting:!1,disableUnderline:m,underlinePlacement:f}),I=O8(C),S=F({},x,{component:c,slots:y,slotProps:g}),[P,_]=we("root",{ref:t,elementType:R8,getSlotProps:s,externalForwardedProps:S,ownerState:C,className:I.root});return Y.jsx(P,F({},_,{children:Y.jsx(MW,{value:l,children:Y.jsx(rc,{row:o==="horizontal",nested:!0,children:u})})}))});function D8(r){return tt("MuiTabPanel",r)}Xe("MuiTabPanel",["root","hidden","sizeSm","sizeMd","sizeLg","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);const M8=["children","value","component","color","variant","size","slots","slotProps","keepMounted"],L8=r=>{const{hidden:e,size:t,variant:n,color:i,orientation:a}=r,o={root:["root",e&&"hidden",t&&`size${Ie(t)}`,a,n&&`variant${Ie(n)}`,i&&`color${Ie(i)}`,t&&`size${Ie(t)}`]};return Je(o,D8,{})},$8=he("div",{name:"JoyTabPanel",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t;return F({display:e.hidden?"none":"block",padding:"var(--Tabs-spacing)",flexGrow:1,fontFamily:r.vars.fontFamily.body},r.typography[`body-${e.size}`],(t=r.variants[e.variant])==null?void 0:t[e.color])}),ip=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTabPanel"}),{orientation:i}=qd()||{orientation:"horizontal"},a=D.useContext(xy),{children:o,value:s=0,component:l,color:c="neutral",variant:u="plain",size:d,slots:p={},slotProps:h={},keepMounted:m=!1}=n,f=$e(n,M8),{hidden:v,getRootProps:w}=OW(F({},n,{value:s})),g=F({},n,{orientation:i,hidden:v,size:d??a,color:c,variant:u}),x=L8(g),b=F({},f,{component:l,slots:p,slotProps:h}),[C,I]=we("root",{ref:t,elementType:$8,getSlotProps:w,externalForwardedProps:b,additionalProps:{role:"tabpanel",ref:t,as:l},ownerState:g,className:x.root});return m?Y.jsx(C,F({},I,{children:o})):Y.jsx(C,F({},I,{children:!v&&o}))});function N8(r){return tt("MuiTabs",r)}Xe("MuiTabs",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const F8=["children","value","defaultValue","orientation","direction","component","onChange","selectionFollowsFocus","variant","color","size","slots","slotProps"],j8=r=>{const{orientation:e,variant:t,color:n,size:i}=r,a={root:["root",e,t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,i&&`size${Ie(i)}`]};return Je(a,N8,{})},B8=he("div",{name:"JoyTabs",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n;const i=(t=e.variants[r.variant])==null?void 0:t[r.color],{bgcolor:a,backgroundColor:o,background:s,p:l,padding:c}=Ia({theme:e,ownerState:r},["bgcolor","backgroundColor","background","p","padding"]),u=ba(e,`palette.${a}`)||a||ba(e,`palette.${o}`)||o||s||i?.backgroundColor||i?.background||e.vars.palette.background.surface;return F({},r.size==="sm"&&{"--Tabs-spacing":"0.75rem"},r.size==="md"&&{"--Tabs-spacing":"1rem"},r.size==="lg"&&{"--Tabs-spacing":"1.25rem"},{"--Tab-indicatorThickness":"2px","--Icon-color":r.color!=="neutral"||r.variant==="solid"?"currentColor":e.vars.palette.text.icon,"--TabList-stickyBackground":u==="transparent"?"initial":u,display:"flex",flexDirection:"column"},r.orientation==="vertical"&&{flexDirection:"row"},{backgroundColor:e.vars.palette.background.surface,position:"relative"},e.typography[`body-${r.size}`],(n=e.variants[r.variant])==null?void 0:n[r.color],l!==void 0&&{"--Tabs-padding":l},c!==void 0&&{"--Tabs-padding":c})}),MT=D.forwardRef(function(e,t){const n=Ze({props:e,name:"JoyTabs"}),{children:i,value:a,defaultValue:o,orientation:s="horizontal",direction:l="ltr",component:c,variant:u="plain",color:d="neutral",size:p="md",slots:h={},slotProps:m={}}=n,f=$e(n,F8),v=o||(a===void 0?0:void 0),{contextValue:w}=AW(F({},n,{orientation:s,defaultValue:v})),y=F({},n,{orientation:s,direction:l,variant:u,color:d,size:p}),g=j8(y),x=F({},f,{component:c,slots:h,slotProps:m}),[b,C]=we("root",{ref:t,elementType:B8,externalForwardedProps:x,additionalProps:{ref:t,as:c},ownerState:y,className:g.root});return Y.jsx(b,F({},C,{children:Y.jsx(PW,{value:w,children:Y.jsx(xy.Provider,{value:p,children:i})})}))});function z8(r){return tt("MuiTextarea",r)}const LT=Xe("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]),H8=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],U8=r=>{const{disabled:e,variant:t,color:n,size:i}=r,a={root:["root",e&&"disabled",t&&`variant${Ie(t)}`,n&&`color${Ie(n)}`,i&&`size${Ie(i)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return Je(a,z8,{})},V8=he("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a,o,s;const l=(t=r.variants[`${e.variant}`])==null?void 0:t[e.color];return[F({"--Textarea-radius":r.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":r.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":r.vars.focus.thickness,"--Textarea-focusedHighlight":(n=r.vars.palette[e.color==="neutral"?"primary":e.color])==null?void 0:n[500],'&:not([data-inverted-colors="false"])':F({},e.instanceColor&&{"--_Textarea-focusedHighlight":(i=r.vars.palette[e.instanceColor==="neutral"?"primary":e.instanceColor])==null?void 0:i[500]},{"--Textarea-focusedHighlight":`var(--_Textarea-focusedHighlight, ${r.vars.palette.focusVisible})`})},e.size==="sm"&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.375rem - 0.5px - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":r.vars.fontSize.xl},e.size==="md"&&{"--Textarea-minHeight":"2.25rem","--Textarea-paddingBlock":"calc(0.375rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(1.75rem, var(--Textarea-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},e.size==="lg"&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":r.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},e.variant!=="plain"&&{boxShadow:r.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},r.typography[`body-${e.size}`],l,{backgroundColor:(a=l?.backgroundColor)!=null?a:r.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":F({},(o=r.variants[`${e.variant}Hover`])==null?void 0:o[e.color],{backgroundColor:null,cursor:"text"}),[`&.${LT.disabled}`]:(s=r.variants[`${e.variant}Disabled`])==null?void 0:s[e.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),W8=he(BW,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(r,e)=>e.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),q8=he("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),G8=he("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),Cy=D.forwardRef(function(e,t){var n,i,a,o,s,l,c,u;const d=Ze({props:e,name:"JoyTextarea"}),p=rT(d,LT),{propsToForward:h,rootStateClasses:m,inputStateClasses:f,getRootProps:v,getInputProps:w,formControl:y,focused:g,error:x=!1,disabled:b=!1,size:C="md",color:I="neutral",variant:S="outlined",startDecorator:P,endDecorator:_,minRows:k,maxRows:T,component:E,slots:M={},slotProps:O={}}=p,L=$e(p,H8),N=(n=(i=e.disabled)!=null?i:y?.disabled)!=null?n:b,W=(a=(o=e.error)!=null?o:y?.error)!=null?a:x,V=(s=(l=e.size)!=null?l:y?.size)!=null?s:C,U=(c=e.color)!=null?c:W?"danger":(u=y?.color)!=null?u:I,R=F({instanceColor:W?"danger":e.color},d,{color:U,disabled:N,error:W,focused:g,size:V,variant:S}),$=U8(R),j=F({},L,{component:E,slots:M,slotProps:O}),[B,J]=we("root",{ref:t,className:[$.root,m],elementType:V8,externalForwardedProps:j,getSlotProps:v,ownerState:R}),[G,K]=we("textarea",{additionalProps:{id:y?.htmlFor,"aria-describedby":y?.["aria-describedby"]},className:[$.textarea,f],elementType:W8,internalForwardedProps:F({},h,{minRows:k,maxRows:T}),externalForwardedProps:j,getSlotProps:w,ownerState:R}),[q,X]=we("startDecorator",{className:$.startDecorator,elementType:q8,externalForwardedProps:j,ownerState:R}),[ee,se]=we("endDecorator",{className:$.endDecorator,elementType:G8,externalForwardedProps:j,ownerState:R});return Y.jsxs(B,F({},J,{children:[P&&Y.jsx(q,F({},X,{children:P})),Y.jsx(G,F({},K)),_&&Y.jsx(ee,F({},se,{children:_}))]}))});function K8(r){return tt("MuiTooltip",r)}Xe("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);const Y8=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],J8=r=>{const{arrow:e,variant:t,color:n,size:i,placement:a,touch:o}=r,s={root:["root",e&&"tooltipArrow",o&&"touch",i&&`size${Ie(i)}`,n&&`color${Ie(n)}`,t&&`variant${Ie(t)}`,`tooltipPlacement${Ie(a.split("-")[0])}`],arrow:["arrow"]};return Je(s,K8,{})},Q8=he("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t,n,i;const a=(t=e.variants[r.variant])==null?void 0:t[r.color];return F({},r.size==="sm"&&{"--Icon-fontSize":e.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:e.spacing(.25,.625)},r.size==="md"&&{"--Icon-fontSize":e.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:e.spacing(.5,.75)},r.size==="lg"&&{"--Icon-fontSize":e.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:e.spacing(.75,1)},{zIndex:e.vars.zIndex.tooltip,borderRadius:e.vars.radius.sm,boxShadow:e.shadow.sm,wordWrap:"break-word",position:"relative"},r.disableInteractive&&{pointerEvents:"none"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[r.size]}`],a,!a.backgroundColor&&{backgroundColor:e.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(n=r.placement)!=null&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=r.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),X8=he("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(r,e)=>e.arrow})(({theme:r,ownerState:e})=>{var t,n,i;const a=(t=r.variants[e.variant])==null?void 0:t[e.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(n=a?.backgroundColor)!=null?n:r.vars.palette.background.surface,borderRightColor:(i=a?.backgroundColor)!=null?i:r.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${a.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}});let ap=!1;const $T=new jl;let uc={x:0,y:0};function NT(r,e){return t=>{e&&e(t),r(t)}}function FT(r,e){return(t,...n)=>{e&&e(t,...n),r(t,...n)}}const vt=D.forwardRef(function(e,t){var n;const i=Ze({props:e,name:"JoyTooltip"}),{children:a,className:o,component:s,arrow:l=!1,describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:f=0,enterTouchDelay:v=700,followCursor:w=!1,id:y,leaveDelay:g=0,leaveTouchDelay:x=1500,onClose:b,onOpen:C,open:I,disablePortal:S,direction:P,keepMounted:_,modifiers:k,placement:T="bottom",title:E,color:M="neutral",variant:O="solid",size:L="md",slots:N={},slotProps:W={}}=i,V=$e(i,Y8),[U,R]=D.useState(),[$,j]=D.useState(null),B=D.useRef(!1),J=p||w,G=Bl(),K=Bl(),q=Bl(),X=Bl(),[ee,se]=wa({controlled:I,default:!1,name:"Tooltip",state:"open"});let ce=ee;const Ae=Cn(y),Le=D.useRef(void 0),Ee=cn(()=>{Le.current!==void 0&&(document.body.style.WebkitUserSelect=Le.current,Le.current=void 0),X.clear()});D.useEffect(()=>Ee,[Ee]);const Oe=oe=>{$T.clear(),ap=!0,se(!0),C&&!ce&&C(oe)},ve=cn(oe=>{$T.start(800+g,()=>{ap=!1}),se(!1),b&&ce&&b(oe),G.start(150,()=>{B.current=!1})}),ne=oe=>{B.current&&oe.type!=="touchstart"||(U&&U.removeAttribute("title"),K.clear(),q.clear(),m||ap&&f?K.start(ap?f:m,()=>{Oe(oe)}):Oe(oe))},ae=oe=>{K.clear(),q.start(g,()=>{ve(oe)})},{isFocusVisibleRef:pe,onBlur:xe,onFocus:ue,ref:Pe}=zl(),[,je]=D.useState(!1),Be=oe=>{xe(oe),pe.current===!1&&(je(!1),ae(oe))},st=oe=>{U||R(oe.currentTarget),ue(oe),pe.current===!0&&(je(!0),ne(oe))},Qe=oe=>{B.current=!0;const Se=a.props;Se.onTouchStart&&Se.onTouchStart(oe)},de=oe=>{Qe(oe),q.clear(),G.clear(),Ee(),Le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(v,()=>{document.body.style.WebkitUserSelect=Le.current,ne(oe)})},Ce=oe=>{a.props.onTouchEnd&&a.props.onTouchEnd(oe),Ee(),q.start(x,()=>{ve(oe)})};D.useEffect(()=>{if(!ce)return;function oe(Se){(Se.key==="Escape"||Se.key==="Esc")&&ve(Se)}return document.addEventListener("keydown",oe),()=>{document.removeEventListener("keydown",oe)}},[ve,ce]);const ye=Tt(R,t),Ne=Tt(Pe,ye),_e=Tt(Md(a),Ne);typeof E!="number"&&!E&&(ce=!1);const ke=D.useRef(null),We=oe=>{const Se=a.props;Se.onMouseMove&&Se.onMouseMove(oe),uc={x:oe.clientX,y:oe.clientY},ke.current&&ke.current.update()},ze={},kt=typeof E=="string";c?(ze.title=!ce&&kt&&!d?E:null,ze["aria-describedby"]=ce?Ae:null):(ze["aria-label"]=kt?E:null,ze["aria-labelledby"]=ce&&!kt?Ae:null);const ht=F({},ze,V,{component:s},a.props,{className:St(o,a.props.className),onTouchStart:Qe,ref:_e},w?{onMouseMove:We}:{}),yr={};h||(ht.onTouchStart=de,ht.onTouchEnd=Ce),d||(ht.onMouseOver=NT(ne,ht.onMouseOver),ht.onMouseLeave=NT(ae,ht.onMouseLeave),J||(yr.onMouseOver=ne,yr.onMouseLeave=ae)),u||(ht.onFocus=FT(st,ht.onFocus),ht.onBlur=FT(Be,ht.onBlur),J||(yr.onFocus=st,yr.onBlur=Be));const Yt=F({},i,{arrow:l,disableInteractive:J,placement:T,touch:B.current,color:M,variant:O,size:L}),Pt=J8(Yt),yt=F({},V,{component:s,slots:N,slotProps:W}),mt=D.useMemo(()=>[{name:"arrow",enabled:!!$,options:{element:$,padding:6}},{name:"offset",options:{offset:[0,10]}},...k||[]],[$,k]),[xt,Q]=we("root",{additionalProps:F({id:Ae,popperRef:ke,placement:T,anchorEl:w?{getBoundingClientRect:()=>({top:uc.y,left:uc.x,right:uc.x,bottom:uc.y,width:0,height:0})}:U,open:U?ce:!1,disablePortal:S,keepMounted:_,direction:P,modifiers:mt},yr),ref:null,className:Pt.root,elementType:Q8,externalForwardedProps:yt,ownerState:Yt}),[te,ie]=we("arrow",{ref:j,className:Pt.arrow,elementType:X8,externalForwardedProps:yt,ownerState:Yt});return Y.jsxs(D.Fragment,{children:[D.isValidElement(a)&&D.cloneElement(a,ht),Y.jsxs(xt,F({},Q,!((n=i.slots)!=null&&n.root)&&{as:Zv,slots:{root:s||"div"}},{children:[E,l?Y.jsx(te,F({},ie)):null]}))]})});function zi(r){if(typeof r!="object"||r===null)return!1;const e=Object.getPrototypeOf(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function jT(r){if(D.isValidElement(r)||MS.isValidElementType(r)||!zi(r))return r;const e={};return Object.keys(r).forEach(t=>{e[t]=jT(r[t])}),e}function _n(r,e,t={clone:!0}){const n=t.clone?{...r}:r;return zi(r)&&zi(e)&&Object.keys(e).forEach(i=>{D.isValidElement(e[i])||MS.isValidElementType(e[i])?n[i]=e[i]:zi(e[i])&&Object.prototype.hasOwnProperty.call(r,i)&&zi(r[i])?n[i]=_n(r[i],e[i],t):t.clone?n[i]=zi(e[i])?jT(e[i]):e[i]:n[i]=e[i]}),n}function uo(r,...e){const t=new URL(`https://mui.com/production-error/?code=${r}`);return e.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${r}; visit ${t} for the full message.`}function is(r){if(typeof r!="string")throw new Error(uo(7));return r.charAt(0).toUpperCase()+r.slice(1)}function Iy(r,e){const t={...e};for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)){const i=n;if(i==="components"||i==="slots")t[i]={...r[i],...t[i]};else if(i==="componentsProps"||i==="slotProps"){const a=r[i],o=e[i];if(!o)t[i]=a||{};else if(!a)t[i]=o;else{t[i]={...o};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;t[i][l]=Iy(a[l],o[l])}}}else t[i]===void 0&&(t[i]=r[i])}return t}function Z8(r,e,t=void 0){const n={};for(const i in r){const a=r[i];let o="",s=!0;for(let l=0;l<a.length;l+=1){const c=a[l];c&&(o+=(s===!0?"":" ")+e(c),s=!1,t&&t[c]&&(o+=" "+t[c]))}n[i]=o}return n}const BT=r=>r,eK=(()=>{let r=BT;return{configure(e){r=e},generate(e){return r(e)},reset(){r=BT}}})(),tK={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 zT(r,e,t="Mui"){const n=tK[e];return n?`${t}-${n}`:`${eK.generate(r)}-${e}`}function rK(r,e,t="Mui"){const n={};return e.forEach(i=>{n[i]=zT(r,i,t)}),n}function nK(r,e=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(r,t))}function dc(r,e){return e?_n(r,e,{clone:!1}):r}function iK(r,e){if(!r.containerQueries)return e;const t=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return t.length?t.reduce((n,i)=>{const a=e[i];return delete n[i],n[i]=a,n},{...e}):e}function aK(r,e){return e==="@"||e.startsWith("@")&&(r.some(t=>e.startsWith(`@${t}`))||!!e.match(/^@\d/))}function oK(r,e){const t=e.match(/^@([^/]+)?\/?(.+)?$/);if(!t)return null;const[,n,i]=t,a=Number.isNaN(+n)?n||0:+n;return r.containerQueries(i).up(a)}function sK(r){const e=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function t(a,o){a.up=(...s)=>e(r.breakpoints.up(...s),o),a.down=(...s)=>e(r.breakpoints.down(...s),o),a.between=(...s)=>e(r.breakpoints.between(...s),o),a.only=(...s)=>e(r.breakpoints.only(...s),o),a.not=(...s)=>{const l=e(r.breakpoints.not(...s),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},i=a=>(t(n,a),n);return t(i),{...r,containerQueries:i}}const op={xs:0,sm:600,md:900,lg:1200,xl:1536},HT={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${op[r]}px)`},lK={containerQueries:r=>({up:e=>{let t=typeof e=="number"?e:op[e]||e;return typeof t=="number"&&(t=`${t}px`),r?`@container ${r} (min-width:${t})`:`@container (min-width:${t})`}})};function Hi(r,e,t){const n=r.theme||{};if(Array.isArray(e)){const a=n.breakpoints||HT;return e.reduce((o,s,l)=>(o[a.up(a.keys[l])]=t(e[l]),o),{})}if(typeof e=="object"){const a=n.breakpoints||HT;return Object.keys(e).reduce((o,s)=>{if(aK(a.keys,s)){const l=oK(n.containerQueries?n:lK,s);l&&(o[l]=t(e[s],s))}else if(Object.keys(a.values||op).includes(s)){const l=a.up(s);o[l]=t(e[s],s)}else{const l=s;o[l]=e[l]}return o},{})}return t(e)}function cK(r={}){return r.keys?.reduce((t,n)=>{const i=r.up(n);return t[i]={},t},{})||{}}function uK(r,e){return r.reduce((t,n)=>{const i=t[n];return(!i||Object.keys(i).length===0)&&delete t[n],t},e)}function sp(r,e,t=!0){if(!e||typeof e!="string")return null;if(r&&r.vars&&t){const n=`vars.${e}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,r);if(n!=null)return n}return e.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,r)}function lp(r,e,t,n=t){let i;return typeof r=="function"?i=r(t):Array.isArray(r)?i=r[t]||n:i=sp(r,t)||n,e&&(i=e(i,n,r)),i}function pr(r){const{prop:e,cssProperty:t=r.prop,themeKey:n,transform:i}=r,a=o=>{if(o[e]==null)return null;const s=o[e],l=o.theme,c=sp(l,n)||{};return Hi(o,s,d=>{let p=lp(c,i,d);return d===p&&typeof d=="string"&&(p=lp(c,i,`${e}${d==="default"?"":is(d)}`,d)),t===!1?p:{[t]:p}})};return a.propTypes={},a.filterProps=[e],a}function dK(r){const e={};return t=>(e[t]===void 0&&(e[t]=r(t)),e[t])}const pK={m:"margin",p:"padding"},hK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},UT={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fK=dK(r=>{if(r.length>2)if(UT[r])r=UT[r];else return[r];const[e,t]=r.split(""),n=pK[e],i=hK[t]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),_y=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[..._y,...Sy];function pc(r,e,t,n){const i=sp(r,e,!0)??t;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const o=Math.abs(a),s=i[o];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:()=>{}}function Ty(r){return pc(r,"spacing",8)}function hc(r,e){return typeof e=="string"||e==null?e:r(e)}function mK(r,e){return t=>r.reduce((n,i)=>(n[i]=hc(e,t),n),{})}function gK(r,e,t,n){if(!e.includes(t))return null;const i=fK(t),a=mK(i,n),o=r[t];return Hi(r,o,a)}function VT(r,e){const t=Ty(r.theme);return Object.keys(r).map(n=>gK(r,e,n,t)).reduce(dc,{})}function Zt(r){return VT(r,_y)}Zt.propTypes={},Zt.filterProps=_y;function er(r){return VT(r,Sy)}er.propTypes={},er.filterProps=Sy;function cp(...r){const e=r.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),t=n=>Object.keys(n).reduce((i,a)=>e[a]?dc(i,e[a](n)):i,{});return t.propTypes={},t.filterProps=r.reduce((n,i)=>n.concat(i.filterProps),[]),t}function zn(r){return typeof r!="number"?r:`${r}px solid`}function Hn(r,e){return pr({prop:r,themeKey:"borders",transform:e})}const vK=Hn("border",zn),yK=Hn("borderTop",zn),bK=Hn("borderRight",zn),wK=Hn("borderBottom",zn),xK=Hn("borderLeft",zn),CK=Hn("borderColor"),IK=Hn("borderTopColor"),_K=Hn("borderRightColor"),SK=Hn("borderBottomColor"),TK=Hn("borderLeftColor"),kK=Hn("outline",zn),AK=Hn("outlineColor"),up=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const e=pc(r.theme,"shape.borderRadius",4),t=n=>({borderRadius:hc(e,n)});return Hi(r,r.borderRadius,t)}return null};up.propTypes={},up.filterProps=["borderRadius"],cp(vK,yK,bK,wK,xK,CK,IK,_K,SK,TK,up,kK,AK);const dp=r=>{if(r.gap!==void 0&&r.gap!==null){const e=pc(r.theme,"spacing",8),t=n=>({gap:hc(e,n)});return Hi(r,r.gap,t)}return null};dp.propTypes={},dp.filterProps=["gap"];const pp=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const e=pc(r.theme,"spacing",8),t=n=>({columnGap:hc(e,n)});return Hi(r,r.columnGap,t)}return null};pp.propTypes={},pp.filterProps=["columnGap"];const hp=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const e=pc(r.theme,"spacing",8),t=n=>({rowGap:hc(e,n)});return Hi(r,r.rowGap,t)}return null};hp.propTypes={},hp.filterProps=["rowGap"];const PK=pr({prop:"gridColumn"}),EK=pr({prop:"gridRow"}),OK=pr({prop:"gridAutoFlow"}),RK=pr({prop:"gridAutoColumns"}),DK=pr({prop:"gridAutoRows"}),MK=pr({prop:"gridTemplateColumns"}),LK=pr({prop:"gridTemplateRows"}),$K=pr({prop:"gridTemplateAreas"}),NK=pr({prop:"gridArea"});cp(dp,pp,hp,PK,EK,OK,RK,DK,MK,LK,$K,NK);function as(r,e){return e==="grey"?e:r}const FK=pr({prop:"color",themeKey:"palette",transform:as}),jK=pr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:as}),BK=pr({prop:"backgroundColor",themeKey:"palette",transform:as});cp(FK,jK,BK);function Sn(r){return r<=1&&r!==0?`${r*100}%`:r}const zK=pr({prop:"width",transform:Sn}),ky=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const e=t=>{const n=r.theme?.breakpoints?.values?.[t]||op[t];return n?r.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${r.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Sn(t)}};return Hi(r,r.maxWidth,e)}return null};ky.filterProps=["maxWidth"];const HK=pr({prop:"minWidth",transform:Sn}),UK=pr({prop:"height",transform:Sn}),VK=pr({prop:"maxHeight",transform:Sn}),WK=pr({prop:"minHeight",transform:Sn});pr({prop:"size",cssProperty:"width",transform:Sn}),pr({prop:"size",cssProperty:"height",transform:Sn});const qK=pr({prop:"boxSizing"});cp(zK,ky,HK,UK,VK,WK,qK);const fp={border:{themeKey:"borders",transform:zn},borderTop:{themeKey:"borders",transform:zn},borderRight:{themeKey:"borders",transform:zn},borderBottom:{themeKey:"borders",transform:zn},borderLeft:{themeKey:"borders",transform:zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:up},color:{themeKey:"palette",transform:as},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:as},backgroundColor:{themeKey:"palette",transform:as},p:{style:er},pt:{style:er},pr:{style:er},pb:{style:er},pl:{style:er},px:{style:er},py:{style:er},padding:{style:er},paddingTop:{style:er},paddingRight:{style:er},paddingBottom:{style:er},paddingLeft:{style:er},paddingX:{style:er},paddingY:{style:er},paddingInline:{style:er},paddingInlineStart:{style:er},paddingInlineEnd:{style:er},paddingBlock:{style:er},paddingBlockStart:{style:er},paddingBlockEnd:{style:er},m:{style:Zt},mt:{style:Zt},mr:{style:Zt},mb:{style:Zt},ml:{style:Zt},mx:{style:Zt},my:{style:Zt},margin:{style:Zt},marginTop:{style:Zt},marginRight:{style:Zt},marginBottom:{style:Zt},marginLeft:{style:Zt},marginX:{style:Zt},marginY:{style:Zt},marginInline:{style:Zt},marginInlineStart:{style:Zt},marginInlineEnd:{style:Zt},marginBlock:{style:Zt},marginBlockStart:{style:Zt},marginBlockEnd:{style:Zt},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:dp},rowGap:{style:hp},columnGap:{style:pp},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sn},maxWidth:{style:ky},minWidth:{transform:Sn},height:{transform:Sn},maxHeight:{transform:Sn},minHeight:{transform:Sn},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 GK(...r){const e=r.reduce((n,i)=>n.concat(Object.keys(i)),[]),t=new Set(e);return r.every(n=>t.size===Object.keys(n).length)}function KK(r,e){return typeof r=="function"?r(e):r}function YK(){function r(t,n,i,a){const o={[t]:n,theme:i},s=a[t];if(!s)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const p=sp(i,c)||{};return d?d(o):Hi(o,n,m=>{let f=lp(p,u,m);return m===f&&typeof m=="string"&&(f=lp(p,u,`${t}${m==="default"?"":is(m)}`,m)),l===!1?f:{[l]:f}})}function e(t){const{sx:n,theme:i={}}=t||{};if(!n)return null;const a=i.unstable_sxConfig??fp;function o(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const c=cK(i.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(p=>{const h=KK(l[p],i);if(h!=null)if(typeof h=="object")if(a[p])d=dc(d,r(p,h,i,a));else{const m=Hi({theme:i},h,f=>({[p]:f}));GK(m,h)?d[p]=e({sx:h,theme:i}):d=dc(d,m)}else d=dc(d,r(p,h,i,a))}),iK(i,uK(u,d))}return Array.isArray(n)?n.map(o):o(n)}return e}const os=YK();os.filterProps=["sx"];/**
149
149
  * @mui/styled-engine v6.4.11
150
150
  *
151
151
  * @license MIT
@@ -3636,4 +3636,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3636
3636
  data-poll-url="${l}"`:"",m=`<div
3637
3637
  data-component="fu-widget"
3638
3638
  data-content-type="list"${u}${d}${p}${h}
3639
- ></div>`,f=({title:w})=>A.jsx(vt,{title:w,sx:{maxWidth:300},children:A.jsx(Vs,{color:"primary"})}),v=()=>A.jsxs(tn,{sx:{pb:1,mb:3},children:[A.jsx(Oi,{label:e.classicQuizURL,placeholder:"",defaultValue:i,required:!1,size:"md",endDecorator:A.jsx(f,{title:e.quizzesInfoMessage}),onChange:w=>a(w.target.value)}),A.jsx(Oi,{label:e.eitherOrURL,placeholder:"",defaultValue:o,required:!1,size:"md",endDecorator:A.jsx(f,{title:e.eitherOrsInfoMessage}),onChange:w=>s(w.target.value)}),A.jsx(Oi,{label:e.pollURL,placeholder:"",defaultValue:l,required:!1,size:"md",endDecorator:A.jsx(f,{title:e.pollsInfoMessage}),onChange:w=>c(w.target.value)})]});return A.jsxs(Re,{mt:1,children:[A.jsx(If,{defaultValue:t,label:e.configureURLs,labelPosition:"end",description:"",descriptionColor:"neutral",disabled:!1,onChange:w=>{w===!1&&(a(""),s(""),c("")),n(w)}}),t&&v(),A.jsxs(Re,{position:"relative",mb:1,children:[A.jsx(Cy,{value:m,minRows:"5",maxRows:"20",readOnly:!0,onMouseDown:w=>w.preventDefault(),sx:{cursor:"default","&:hover":{cursor:"default"},"& textarea":{cursor:"default"}}}),A.jsx(vt,{title:e.copyToClipboard,children:A.jsx(bt,{onClick:()=>{navigator.clipboard.writeText(m)},sx:{position:"absolute",top:"10px",right:"10px",zIndex:1},variant:"soft",color:"neutral",children:A.jsx(bp,{})})})]}),A.jsx(q1,{variant:"outlined",color:"primary",startDecorator:A.jsx(Vs,{}),sx:{mb:1,width:"fit-content"},children:A.jsxs(Ve,{color:"primary",fontSize:14,fontWeight:500,children:[e.divElementTextInfo,A.jsx(rs,{href:"https://docs.fansunitedmedia.com/docs/user-centric-widgets#/",underline:"always",target:"_blank",rel:"noopener noreferrer",children:"User-centric widgets"})]})})]})},NL=r=>r?.map(e=>({id:e.id,value:e.nickname?e.nickname:e.name||`No name ${e.id.slice(0,5)}`,label:e.nickname?e.nickname:e.name||`No name ${e.id.slice(0,5)}`,avatar:e.avatar}))||[],lxe=({labels:r,ids:e,onChange:t})=>{const[n,i]=z.useState([]),[a,o]=z.useState([]),[s,l]=z.useState(""),[c,u]=z.useState("name"),[d,p]=z.useState(!1),[h,m]=z.useState(!1),{sdk:f}=Tr(),v=!0,w=()=>m(!h),y=(C,I)=>{i(I);const S=I.map(P=>P.id);t(S&&S.length?S:null)},g=3;z.useEffect(()=>{!s&&e&&e.length&&f.profile.getByIds(e,void 0,v).then(C=>{i(NL(C))}).catch(C=>{w(),console.error(C),i([])})},[]);const x=z.useMemo(()=>Oo((C,I)=>{p(!0),f.profile.getByIds(I==="id"?[C]:[],I==="name"?C:void 0,v).then(S=>{o([...NL(S)]),p(!1)}).catch(S=>{console.error(S),w(),o([]),p(!1)})},300),[]);z.useEffect(()=>{if(!s||s.length<g){o([]);return}return x(s,c),()=>x.cancel()},[s,x,c]);const b=(C,I)=>C.map((S,P)=>{var _;return A.jsx(xr,{variant:"solid",endDecorator:A.jsx(Sa,{color:"danger",sx:{marginRight:.5},variant:"plain",onClick:k=>I({index:P}).onClick(k),children:A.jsx(po,{fontSize:"small"})}),sx:{marginLeft:"3px",marginY:"1px",backgroundColor:"#e0f3ff",padding:"2px",borderRadius:4,"&:hover":{cursor:"default"}},children:A.jsxs(Re,{display:"flex",alignItems:"center",mr:1,children:[A.jsx(pn,{sx:{width:"1.5rem",height:" 1.5rem",mr:.5,borderRadius:"0.75rem"},src:(_=S.avatar)!=null?_:vr.avatar}),A.jsx(Ve,{children:S.label})]})},S.id)});return A.jsxs(A.Fragment,{children:[A.jsx(Re,{sx:{marginBottom:"16px"},children:A.jsx(lo,{forcePopupIcon:!1,multiple:!0,loading:d,disableClearable:!0,slotProps:{input:{sx:{"&::placeholder":{fontSize:"14px"}}},root:{sx:{boxShadow:"none",backgroundColor:"white",minHeight:38}}},isOptionEqualToValue:(C,I)=>C.id===I.id,endDecorator:A.jsxs(A.Fragment,{children:[d&&A.jsx(jn,{size:"sm",sx:{bgcolor:"primary",marginRight:2}}),A.jsx(ts,{orientation:"vertical"}),A.jsxs(Kr,{variant:"plain",value:c,onChange:(C,I)=>u(I),slotProps:{listbox:{variant:"outlined"}},sx:{mr:-1.5,"&:hover":{bgcolor:"transparent"}},children:[A.jsx(Cr,{value:"name",children:r.searchByName}),A.jsx(Cr,{value:"id",children:r.searchById})]})]}),placeholder:n.length>0?"":r.excludedProfilesPlaceholder,options:a,filterOptions:C=>C.filter(I=>!n.some(S=>S.value===I.value)),onInputChange:(C,I)=>{l(I)},onChange:y,getOptionKey:C=>C.id,value:n,renderTags:b,renderOption:(C,I)=>{var S;return A.jsx(so,le(re({},C),{children:A.jsxs(Re,{display:"flex",alignItems:"center",mr:1,children:[A.jsx(pn,{sx:{width:"1.5rem",height:" 1.5rem",mr:.5,borderRadius:"0.75rem"},src:(S=I.avatar)!=null?S:vr.avatar}),A.jsx(Ve,{children:I.label})]})}))}})}),A.jsx(gr,{showToast:h,message:r.searchProfilesErrorMessage,color:"danger",hideToast:w})]})},cxe={Login:Hme,InformationInput:Oi,RichText:O0,HeaderButtons:gpe,MarketSelection:nge,Accordion:tle,DynamicFields:Mpe,BasicSelect:nle,BooleanSwitch:If,Branding:mpe,ProfileSearchSelect:_ve,RangeCalendar:Rpe,CompetitionSearchSelect:Cve,Related:sge,Images:yme,Duration:Ope,DatePickerComponent:cu,Flags:fme,Spinner:Cf,Tags:aM,Toast:gr,AdContent:rle,Match:ige,Winners:pbe,CompetitionsSearchSelect:Ive,TeamsSearchSelect:Sve,CustomSelect:Ige,Schedule:gge,NoPermissionCard:Dpe,CustomFlatpickrCalendar:fw,ContextSelectFilter:fbe,NumberInput:Bbe,EntityContext:Gbe,MiniGamesImages:Ybe,AuthRequirement:Jbe,SortableList:zwe,ItemsPerPageFilter:Hwe,ImageCard:mu,RelatedRelationship:rxe,ExportUsersLeads:nxe,SignOutButton:DR,BasicSortableList:axe,WidgetEmbedCode:oxe,WidgetListEmbedCode:sxe,AdvancedProfileSearchSelect:lxe},FL=z.createContext(null),uxe=({children:r})=>A.jsx(FL.Provider,{value:cxe,children:r}),dxe=()=>{const r=z.useContext(FL);if(!r)throw new Error("useComponentContext must be used within a ComponentProvider");return r},jL=425,BL=1024,pxe=()=>{const[r,e]=z.useState(window.innerWidth<=BL),[t,n]=z.useState(window.innerWidth<=jL);return z.useLayoutEffect(()=>{const i=()=>{e(window.innerWidth<=BL),n(window.innerWidth<=jL)};return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),{isMobile:r,isPhone:t}},il={APIProvider:mie,AuthProvider:gie,AuthContext:hE,ComponentProvider:uxe,useComponentContext:dxe,useAPIContext:Tr,useIsMobile:pxe};class hxe{clientConfigErrorMessage;userNotFound;signOut;language;profilePreferences;cacheTTL;footballAssets;soon;update;configTitle;configDescription;configLanguageTitle;defaultLanguage;defaultLanguageHelperText;availableLanguages;availableLanguagesHelperText;translationRules;translationRulesHelperText;gameStatus;active;inactive;updateConfigMessage;updateConfigErrorMessage;categories;delete;id;name;addCategory;preferences;addPreference;selectCategories;constructor(e){this.clientConfigErrorMessage=e?.clientConfigErrorMessage||"There was a problem fetching client's configuration. Please try again",this.userNotFound=e?.userNotFound||"User not found. Please try again.",this.language=e?.language||"Language",this.profilePreferences=e?.profilePreferences||"Profile preferences",this.cacheTTL=e?.cacheTTL||"Cache TTL",this.footballAssets=e?.footballAssets||"Football Assets",this.soon=e?.soon||"Soon",this.update=e?.update||"Update Configuration",this.configTitle=e?.configTitle||"Configure Fans United",this.configDescription=e?.configDescription||"Customize different features of Fans United",this.defaultLanguage=e?.defaultLanguage||"Default language",this.defaultLanguageHelperText=e?.defaultLanguageHelperText||"What is the default language of your content? This field, if different from English, would be used in our translation tools.",this.availableLanguages=e?.availableLanguages||"Available languages",this.availableLanguagesHelperText=e?.availableLanguagesHelperText||"In case your project is multi-lingual, select the available languages for your app.",this.translationRules=e?.translationRules||"Translation rules",this.translationRulesHelperText=e?.translationRulesHelperText||"Select the default status when a game is automatically translated.",this.gameStatus=e?.gameStatus||"Game status",this.active=e?.active||"Active",this.inactive=e?.inactive||"Inactive",this.updateConfigMessage=e?.updateConfigMessage||"You have successfully updated Language configuration",this.updateConfigErrorMessage=e?.updateConfigErrorMessage||"There was a problem updating configuration. Please try again",this.categories=e?.categories||"Categories",this.delete=e?.delete||"Delete",this.id=e?.id||"ID",this.name=e?.name||"Name",this.addCategory=e?.addCategory||"Add Category",this.preferences=e?.preferences||"Preferences",this.addPreference=e?.addPreference||"Add Preference",this.selectCategories=e?.selectCategories||"Select categories for new preference"}}const Pu=z.createContext(null),fxe=({labels:r,children:e})=>{const t=new hxe(r);return Y.jsx(Pu.Provider,{value:t,children:e})},mxe=({children:r})=>Y.jsx(Re,{width:"100%",sx:{backgroundColor:"#fff"},children:r});function Qw(r){const e=z.useContext(r);if(e===void 0)throw new Error("Context was used outside of its Provider");return e}const Eu={ar:"Arabic",bg:"Bulgarian",da:"Danish",de:"German",en:"English",el:"Greek",es:"Spanish",fr:"French",hu:"Hungarian",it:"Italian",nl:"Dutch",pt:"Portuguese","pt-br":"Brazilian(Portuguese)",ro:"Romanian",sk:"Slovak",sr:"Serbian",sv:"Swedish",sw:"Swahili"},gxe=()=>{const[r,e]=z.useState(null),[t,n]=z.useState(!1),[i,a]=z.useState(!1),[o,s]=z.useState(!1),[l,c]=z.useState("danger"),[u,d]=z.useState(""),p=Qw(Pu),h=z.useRef(null),{Spinner:m,Toast:f}=il.useComponentContext(),{https:v}=il.useAPIContext(),w=(_,k)=>{c(_),d(k),s(!0)};z.useEffect(()=>{async function _(){n(!0);const k=await v.getLanguageConfig();if(k.ok){const T=await k.json();e(T.data),n(!1)}else n(!1),console.error(p.clientConfigErrorMessage,await k.json()),w("danger",p.clientConfigErrorMessage)}_()},[]);const y=async()=>{a(!0);const _=await v.updateLanguageConfig({...r});_.ok?(a(!1),w("success",p.updateConfigMessage)):(a(!1),console.error(p.updateConfigErrorMessage,await _.json()),w("danger",p.updateConfigErrorMessage))},g=_=>{let k=[...r.available_languages],T={...r.translation_rules};_||(k=new Array,T={}),k.includes(_)&&(k=k.filter(E=>E!==_),delete T[_]),_&&!k.includes(_)&&(delete T[r.default_language],T[_]={game_status:"INACTIVE"}),e({default_language:_,available_languages:k,translation_rules:Object.keys(T).length>0?T:null})},x=_=>{let k=[...r.available_languages],T={...r.translation_rules};k.includes(_)?(k=k.filter(E=>E!==_),delete T[_]):(k.push(_),T[_]={game_status:"INACTIVE"}),e({default_language:r.default_language,available_languages:k,translation_rules:Object.keys(T).length>0?T:null})},b=_=>{let k={...r.translation_rules,[_.language]:{game_status:_.value}};e({default_language:r.default_language,available_languages:r.available_languages,translation_rules:k})},C=()=>Y.jsxs(Re,{sx:{mt:2},children:[Y.jsx(Ve,{level:"title-sm",children:p.defaultLanguage}),Y.jsx(Bi,{children:p.defaultLanguageHelperText}),Y.jsx(Kr,{value:r?.default_language,size:"sm",name:"defaultLanguage",slotProps:{button:{sx:{whiteSpace:"nowrap"}}},onChange:(_,k)=>{g(k)},sx:{mt:1,minHeight:"37px",backgroundColor:"white",width:200},...r?.default_language&&{endDecorator:Y.jsx(Ur,{variant:"plain",color:"neutral",onMouseDown:_=>{_.stopPropagation()},onClick:()=>{g(null),h.current?.focusVisible()},sx:{width:"18px",height:"18px"},children:Y.jsx(pJ,{})}),indicator:null},children:Object.keys(Eu).map(_=>Y.jsx(Cr,{value:_,children:Eu[_]},_))})]}),I=()=>Y.jsxs(Re,{my:4,children:[Y.jsx(Ve,{level:"title-sm",children:p.availableLanguages}),Y.jsx(Bi,{children:p.availableLanguagesHelperText}),Y.jsx(Re,{mt:1,sx:{display:{xs:"flex",md:"block"},flexDirection:"column"},children:Object.keys(Eu).map(_=>Y.jsx(i7,{sx:{m:1,"& .MuiCheckbox-checkbox":{backgroundColor:"white","&:hover":{backgroundColor:"#f0f4f8"}},"& .MuiCheckbox-checkbox.Mui-checked":{backgroundColor:"#0066CC"}},checked:r.default_language===_||r?.available_languages.includes(_),disabled:!r.default_language||r.default_language===_,label:Eu[_],onChange:()=>x(_)},_))})]}),S=_=>Y.jsxs("tr",{children:[Y.jsx("td",{children:Y.jsx(Ve,{level:"body-sm",children:Eu[_]})}),Y.jsx("td",{children:Y.jsxs(Kr,{value:r.translation_rules[_].game_status,size:"sm",name:"sortBy",onChange:(k,T)=>{b({language:_,value:T})},sx:{my:.5,minHeight:"37px",backgroundColor:"white"},children:[Y.jsx(Cr,{value:"ACTIVE",children:p.active},"option-active"),Y.jsx(Cr,{value:"INACTIVE",children:p.inactive},"option-inactive")]})})]},`${_}-rule`),P=()=>Y.jsxs(Re,{my:4,children:[Y.jsx(Ve,{level:"title-sm",children:p.translationRules}),Y.jsx(Bi,{children:p.translationRulesHelperText}),Y.jsx(rp,{sx:{mt:1},children:Y.jsxs(np,{variant:"outlined",hoverRow:!1,borderAxis:"bothBetween",size:"sm",sx:{backgroundColor:"#fff","& > thead > tr > th:first-child, & > tbody > tr > td:first-child":{textAlign:"left",width:"50%"},"--TableCell-paddingX":"0.5rem",cursor:"default","& > tbody > tr:hover":{backgroundColor:"transparent"},"& > thead > tr > th":{backgroundColor:"#fff",verticalAlign:"middle"},"& > thead > tr > th, & > tbody > tr > td":{textAlign:"right"}},children:[Y.jsx("thead",{children:Y.jsxs("tr",{children:[Y.jsx("th",{children:p.language}),Y.jsx("th",{children:p.gameStatus})]})}),Y.jsx("tbody",{children:[r.default_language,...r.available_languages].map(_=>S(_))})]})})]});return t?Y.jsx(m,{my:30}):!t&&r?Y.jsxs(Re,{children:[C(),I(),r.default_language&&P(),Y.jsx(Re,{textAlign:"center",children:Y.jsx(bt,{onClick:y,loading:i,children:p.update})}),Y.jsx(f,{showToast:o,color:l,message:u,hideToast:()=>s(!o)})]}):Y.jsx(Y.Fragment,{})},vxe=()=>{const[r,e]=z.useState([]),[t,n]=z.useState({id:"",display_name:""}),[i,a]=z.useState([]),[o,s]=z.useState({id:"",display_name:"",categories:[]}),[l,c]=z.useState(!1),[u,d]=z.useState(!1),[p,h]=z.useState(!1),[m,f]=z.useState("danger"),[v,w]=z.useState(""),y=Qw(Pu),{Spinner:g,Toast:x}=il.useComponentContext(),{https:b}=il.useAPIContext(),C=(O,L)=>{f(O),w(L),h(!0)};z.useEffect(()=>{async function O(){c(!0);const L=await b.getEntityFeature("profile_preferences");if(L.ok){const N=await L.json();e(N.data.categories),a(N.data.preferences),c(!1)}else c(!1),console.error(y.clientConfigErrorMessage,await L.json()),C("danger",y.clientConfigErrorMessage)}O()},[]);const I=async()=>{d(!0);const O=await b.updateProfilePreferences({preferences:i,categories:r});O.ok?(d(!1),C("success",y.updateConfigMessage)):(d(!1),console.error(y.updateConfigErrorMessage,await O.json()),C("danger",y.updateConfigErrorMessage))},S=()=>{e([...r,t]),n({id:"",display_name:""})},P=O=>{e(r.filter(L=>L.id!==O)),a(i.map(L=>({...L,categories:L.categories.filter(N=>N!==O)})))},_=()=>{a([...i,o]),s({id:"",display_name:"",categories:[]})},k=O=>{a(i.filter(L=>L.id!==O))},T=(O,L)=>{a(i.map(N=>{if(N.id===O){const W=N.categories.includes(L)?N.categories.filter(V=>V!==L):[...N.categories,L];return{...N,categories:W}}return N}))},E=()=>Y.jsx(ii,{xs:12,md:6,children:Y.jsx(tn,{variant:"outlined",children:Y.jsxs(ji,{children:[Y.jsx(Ve,{level:"title-md",sx:{mb:1},children:y.categories}),Y.jsx(ts,{sx:{mb:2}}),Y.jsx(co,{spacing:1,direction:"row",flexWrap:"wrap",useFlexGap:!0,sx:{mb:r.length>0?2:0},children:r.map(O=>Y.jsx(xr,{variant:"soft",color:"primary",sx:{"& .MuiChip-endDecorator":{cursor:"pointer",pointerEvents:"all"}},endDecorator:Y.jsx(vt,{title:y.delete,placement:"top",children:Y.jsx(Ur,{variant:"plain",size:"sm",color:"neutral",onClick:()=>P(O.id),sx:{":hover":{color:"#C41C1C",backgroundColor:"transparent"}},children:Y.jsx(bc,{fontSize:"small"})})}),children:O.display_name},O.id))}),Y.jsxs(Re,{sx:{display:"flex",gap:1,flexWrap:"wrap",alignItems:"flex-start"},children:[Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.id}),Y.jsx(Bn,{placeholder:"",value:t.id,onChange:O=>n({...t,id:O.target.value})})]}),Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.name}),Y.jsx(Bn,{placeholder:"",value:t.display_name,onChange:O=>n({...t,display_name:O.target.value})})]}),Y.jsx(bt,{sx:{mt:"auto"},size:"sm",startDecorator:Y.jsx(yc,{}),disabled:!t.id||!t.display_name,onClick:S,children:y.addCategory})]})]})})}),M=()=>Y.jsx(ii,{xs:12,md:6,children:Y.jsx(tn,{variant:"outlined",children:Y.jsxs(ji,{children:[Y.jsx(Ve,{level:"title-md",sx:{mb:1},children:y.preferences}),Y.jsx(ts,{sx:{mb:2}}),Y.jsx(ii,{container:!0,spacing:1,sx:{mb:i.length>0?2:0},children:i.map(O=>Y.jsx(ii,{xs:12,sm:6,md:4,children:Y.jsx(tn,{variant:"soft",size:"sm",children:Y.jsxs(ji,{children:[Y.jsxs(Re,{sx:{display:"flex",justifyContent:"space-between"},children:[Y.jsx(Ve,{level:"title-sm",children:O.display_name}),Y.jsx(vt,{title:y.delete,placement:"top",children:Y.jsx(Ur,{variant:"plain",size:"sm",color:"neutral",onClick:()=>k(O.id),sx:{"& .MuiChip-endDecorator":{cursor:"pointer",pointerEvents:"all"},":hover":{color:"#C41C1C",backgroundColor:"transparent"}},children:Y.jsx(bc,{fontSize:"small"})})})]}),Y.jsxs(Re,{children:[Y.jsxs(Ve,{level:"body-xs",sx:{mb:1},children:[y.categories,":"]}),Y.jsx(co,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:r.map(L=>Y.jsx(xr,{size:"sm",variant:O.categories.includes(L.id)?"solid":"outlined",color:O.categories.includes(L.id)?"primary":"neutral",onClick:()=>T(O.id,L.id),children:L.display_name},L.id))})]})]})})},O.id))}),Y.jsxs(Re,{sx:{display:"flex",gap:1,flexWrap:"wrap",alignItems:"flex-start",mb:.5},children:[Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.id}),Y.jsx(Bn,{placeholder:"",value:o.id,onChange:O=>s({...o,id:O.target.value})})]}),Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.name}),Y.jsx(Bn,{placeholder:"",value:o.display_name,onChange:O=>s({...o,display_name:O.target.value})})]}),Y.jsx(bt,{sx:{mt:"auto"},size:"sm",startDecorator:Y.jsx(yc,{}),disabled:!o.id||!o.display_name,onClick:_,children:y.addPreference})]}),Y.jsxs(Re,{children:[Y.jsxs(Ve,{level:"body-sm",mb:1,children:[y.selectCategories,":"]}),Y.jsx(co,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:r.map(O=>Y.jsx(xr,{size:"sm",variant:o.categories.includes(O.id)?"solid":"outlined",color:o.categories.includes(O.id)?"primary":"neutral",onClick:()=>s({...o,categories:o.categories.includes(O.id)?o.categories.filter(L=>L!==O.id):[...o.categories,O.id]}),children:O.display_name},O.id))})]})]})})});return l?Y.jsx(g,{my:30}):Y.jsxs(Y.Fragment,{children:[Y.jsxs(ii,{container:!0,spacing:2,mb:4,mt:2,children:[E(),M()]}),Y.jsx(Re,{textAlign:"center",children:Y.jsx(bt,{onClick:I,loading:u,children:y.update})}),Y.jsx(x,{showToast:p,color:m,message:v,hideToast:()=>h(!p)})]})},yxe=()=>{const r=Qw(Pu);return Y.jsxs(Y.Fragment,{children:[Y.jsxs(Re,{m:1,children:[Y.jsx(Ve,{level:"h3",children:r.configTitle}),Y.jsx(Bi,{children:r.configDescription})]}),Y.jsx(tn,{variant:"plain",children:Y.jsxs(MT,{"aria-label":"Configurations",defaultValue:0,sx:{"@media (max-width: 899px)":{"& .MuiTabList-root":{flexDirection:"column"}}},children:[Y.jsxs(DT,{children:[Y.jsx(ns,{disableIndicator:!0,children:r.language}),Y.jsx(ns,{disableIndicator:!0,children:r.profilePreferences}),Y.jsxs(ns,{disableIndicator:!0,disabled:!0,children:[r.cacheTTL,Y.jsx(xr,{size:"sm",variant:"solid",color:"primary",children:r.soon})]}),Y.jsxs(ns,{disableIndicator:!0,disabled:!0,children:[r.footballAssets,Y.jsx(xr,{size:"sm",variant:"solid",color:"primary",children:r.soon})]})]}),Y.jsx(ip,{value:0,children:Y.jsx(gxe,{})}),Y.jsx(ip,{value:1,children:Y.jsx(vxe,{})})]})})]})},bxe=({fansUnitedEnvironment:r})=>{const{AuthContext:e,useComponentContext:t}=il,n=z.useContext(e),i=z.useContext(Pu),{Login:a}=t();return n?Y.jsx(mxe,{children:Y.jsx(yxe,{})}):Y.jsx(a,{environment:r,userNotFound:i.userNotFound})},wxe=r=>{const e={apiKey:r.fansUnitedApiKey,clientId:r.fansUnitedClientId,environment:r.fansUnitedEnvironment,language:r.fansUnitedLanguage,errorHandlingMode:"standard",sportal365Project:"",sportal365Infrastructure:""},{AuthProvider:t,APIProvider:n,ComponentProvider:i}=il;return Y.jsx(t,{environment:r.fansUnitedEnvironment,children:Y.jsx(fxe,{labels:r.labels,children:Y.jsx(n,{config:e,children:Y.jsx(i,{children:Y.jsx(bxe,{fansUnitedEnvironment:r.fansUnitedEnvironment,hideSignOutButton:r.hideSignOutButton})})})})})};ha.ConfigurationManager=wxe,Object.defineProperty(ha,Symbol.toStringTag,{value:"Module"})});
3639
+ ></div>`,f=({title:w})=>A.jsx(vt,{title:w,sx:{maxWidth:300},children:A.jsx(Vs,{color:"primary"})}),v=()=>A.jsxs(tn,{sx:{pb:1,mb:3},children:[A.jsx(Oi,{label:e.classicQuizURL,placeholder:"",defaultValue:i,required:!1,size:"md",endDecorator:A.jsx(f,{title:e.quizzesInfoMessage}),onChange:w=>a(w.target.value)}),A.jsx(Oi,{label:e.eitherOrURL,placeholder:"",defaultValue:o,required:!1,size:"md",endDecorator:A.jsx(f,{title:e.eitherOrsInfoMessage}),onChange:w=>s(w.target.value)}),A.jsx(Oi,{label:e.pollURL,placeholder:"",defaultValue:l,required:!1,size:"md",endDecorator:A.jsx(f,{title:e.pollsInfoMessage}),onChange:w=>c(w.target.value)})]});return A.jsxs(Re,{mt:1,children:[A.jsx(If,{defaultValue:t,label:e.configureURLs,labelPosition:"end",description:"",descriptionColor:"neutral",disabled:!1,onChange:w=>{w===!1&&(a(""),s(""),c("")),n(w)}}),t&&v(),A.jsxs(Re,{position:"relative",mb:1,children:[A.jsx(Cy,{value:m,minRows:"5",maxRows:"20",readOnly:!0,onMouseDown:w=>w.preventDefault(),sx:{cursor:"default","&:hover":{cursor:"default"},"& textarea":{cursor:"default"}}}),A.jsx(vt,{title:e.copyToClipboard,children:A.jsx(bt,{onClick:()=>{navigator.clipboard.writeText(m)},sx:{position:"absolute",top:"10px",right:"10px",zIndex:1},variant:"soft",color:"neutral",children:A.jsx(bp,{})})})]}),A.jsx(q1,{variant:"outlined",color:"primary",startDecorator:A.jsx(Vs,{}),sx:{mb:1,width:"fit-content"},children:A.jsxs(Ve,{color:"primary",fontSize:14,fontWeight:500,children:[e.divElementTextInfo,A.jsx(rs,{href:"https://docs.fansunitedmedia.com/docs/user-centric-widgets#/",underline:"always",target:"_blank",rel:"noopener noreferrer",children:"User-centric widgets"})]})})]})},NL=r=>r?.map(e=>({id:e.id,value:e.nickname?e.nickname:e.name||`No name ${e.id.slice(0,5)}`,label:e.nickname?e.nickname:e.name||`No name ${e.id.slice(0,5)}`,avatar:e.avatar}))||[],lxe=({labels:r,ids:e,onChange:t})=>{const[n,i]=z.useState([]),[a,o]=z.useState([]),[s,l]=z.useState(""),[c,u]=z.useState("name"),[d,p]=z.useState(!1),[h,m]=z.useState(!1),{sdk:f}=Tr(),v=!0,w=()=>m(!h),y=(C,I)=>{i(I);const S=I.map(P=>P.id);t(S&&S.length?S:null)},g=3;z.useEffect(()=>{!s&&e&&e.length&&f.profile.getByIds(e,void 0,v).then(C=>{i(NL(C))}).catch(C=>{w(),console.error(C),i([])})},[]);const x=z.useMemo(()=>Oo((C,I)=>{p(!0),f.profile.getByIds(I==="id"?[C]:[],I==="name"?C:void 0,v).then(S=>{o([...NL(S)]),p(!1)}).catch(S=>{console.error(S),w(),o([]),p(!1)})},300),[]);z.useEffect(()=>{if(!s||s.length<g){o([]);return}return x(s,c),()=>x.cancel()},[s,x,c]);const b=(C,I)=>C.map((S,P)=>{var _;return A.jsx(xr,{variant:"solid",endDecorator:A.jsx(Sa,{color:"danger",sx:{marginRight:.5},variant:"plain",onClick:k=>I({index:P}).onClick(k),children:A.jsx(po,{fontSize:"small"})}),sx:{marginLeft:"3px",marginY:"1px",backgroundColor:"#e0f3ff",padding:"2px",borderRadius:4,"&:hover":{cursor:"default"}},children:A.jsxs(Re,{display:"flex",alignItems:"center",mr:1,children:[A.jsx(pn,{sx:{width:"1.5rem",height:" 1.5rem",mr:.5,borderRadius:"0.75rem"},src:(_=S.avatar)!=null?_:vr.avatar}),A.jsx(Ve,{children:S.label})]})},S.id)});return A.jsxs(A.Fragment,{children:[A.jsx(Re,{sx:{marginBottom:"16px"},children:A.jsx(lo,{forcePopupIcon:!1,multiple:!0,loading:d,disableClearable:!0,slotProps:{input:{sx:{"&::placeholder":{fontSize:"14px"}}},root:{sx:{boxShadow:"none",backgroundColor:"white",minHeight:38}}},isOptionEqualToValue:(C,I)=>C.id===I.id,endDecorator:A.jsxs(A.Fragment,{children:[d&&A.jsx(jn,{size:"sm",sx:{bgcolor:"primary",marginRight:2}}),A.jsx(ts,{orientation:"vertical"}),A.jsxs(Kr,{variant:"plain",value:c,onChange:(C,I)=>u(I),slotProps:{listbox:{variant:"outlined"}},sx:{mr:-1.5,"&:hover":{bgcolor:"transparent"}},children:[A.jsx(Cr,{value:"name",children:r.searchByName}),A.jsx(Cr,{value:"id",children:r.searchById})]})]}),placeholder:n.length>0?"":r.excludedProfilesPlaceholder,options:a,filterOptions:C=>C.filter(I=>!n.some(S=>S.value===I.value)),onInputChange:(C,I)=>{l(I)},onChange:y,getOptionKey:C=>C.id,value:n,renderTags:b,renderOption:(C,I)=>{var S;return A.jsx(so,le(re({},C),{children:A.jsxs(Re,{display:"flex",alignItems:"center",mr:1,children:[A.jsx(pn,{sx:{width:"1.5rem",height:" 1.5rem",mr:.5,borderRadius:"0.75rem"},src:(S=I.avatar)!=null?S:vr.avatar}),A.jsx(Ve,{children:I.label})]})}))}})}),A.jsx(gr,{showToast:h,message:r.searchProfilesErrorMessage,color:"danger",hideToast:w})]})},cxe={Login:Hme,InformationInput:Oi,RichText:O0,HeaderButtons:gpe,MarketSelection:nge,Accordion:tle,DynamicFields:Mpe,BasicSelect:nle,BooleanSwitch:If,Branding:mpe,ProfileSearchSelect:_ve,RangeCalendar:Rpe,CompetitionSearchSelect:Cve,Related:sge,Images:yme,Duration:Ope,DatePickerComponent:cu,Flags:fme,Spinner:Cf,Tags:aM,Toast:gr,AdContent:rle,Match:ige,Winners:pbe,CompetitionsSearchSelect:Ive,TeamsSearchSelect:Sve,CustomSelect:Ige,Schedule:gge,NoPermissionCard:Dpe,CustomFlatpickrCalendar:fw,ContextSelectFilter:fbe,NumberInput:Bbe,EntityContext:Gbe,MiniGamesImages:Ybe,AuthRequirement:Jbe,SortableList:zwe,ItemsPerPageFilter:Hwe,ImageCard:mu,RelatedRelationship:rxe,ExportUsersLeads:nxe,SignOutButton:DR,BasicSortableList:axe,WidgetEmbedCode:oxe,WidgetListEmbedCode:sxe,AdvancedProfileSearchSelect:lxe},FL=z.createContext(null),uxe=({children:r})=>A.jsx(FL.Provider,{value:cxe,children:r}),dxe=()=>{const r=z.useContext(FL);if(!r)throw new Error("useComponentContext must be used within a ComponentProvider");return r},jL=425,BL=1024,pxe=()=>{const[r,e]=z.useState(window.innerWidth<=BL),[t,n]=z.useState(window.innerWidth<=jL);return z.useLayoutEffect(()=>{const i=()=>{e(window.innerWidth<=BL),n(window.innerWidth<=jL)};return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),{isMobile:r,isPhone:t}},il={APIProvider:mie,AuthProvider:gie,AuthContext:hE,ComponentProvider:uxe,useComponentContext:dxe,useAPIContext:Tr,useIsMobile:pxe};class hxe{clientConfigErrorMessage;userNotFound;signOut;language;profilePreferences;cacheTTL;footballAssets;soon;update;configTitle;configDescription;configLanguageTitle;defaultLanguage;defaultLanguageHelperText;availableLanguages;availableLanguagesHelperText;translationRules;translationRulesHelperText;gameStatus;active;inactive;updateConfigMessage;updateConfigErrorMessage;categories;delete;id;name;addCategory;preferences;addPreference;selectCategories;constructor(e){this.clientConfigErrorMessage=e?.clientConfigErrorMessage||"There was a problem fetching client's configuration. Please try again",this.userNotFound=e?.userNotFound||"User not found. Please try again.",this.language=e?.language||"Language",this.profilePreferences=e?.profilePreferences||"Profile preferences",this.cacheTTL=e?.cacheTTL||"Cache TTL",this.footballAssets=e?.footballAssets||"Football Assets",this.soon=e?.soon||"Soon",this.update=e?.update||"Update Configuration",this.configTitle=e?.configTitle||"Configure Fans United",this.configDescription=e?.configDescription||"Customize different features of Fans United",this.defaultLanguage=e?.defaultLanguage||"Default language",this.defaultLanguageHelperText=e?.defaultLanguageHelperText||"What is the default language of your content? This field, if different from English, would be used in our translation tools.",this.availableLanguages=e?.availableLanguages||"Available languages",this.availableLanguagesHelperText=e?.availableLanguagesHelperText||"In case your project is multi-lingual, select the available languages for your app.",this.translationRules=e?.translationRules||"Translation rules",this.translationRulesHelperText=e?.translationRulesHelperText||"Select the default status when a game is automatically translated.",this.gameStatus=e?.gameStatus||"Game status",this.active=e?.active||"Active",this.inactive=e?.inactive||"Inactive",this.updateConfigMessage=e?.updateConfigMessage||"You have successfully updated Language configuration",this.updateConfigErrorMessage=e?.updateConfigErrorMessage||"There was a problem updating configuration. Please try again",this.categories=e?.categories||"Categories",this.delete=e?.delete||"Delete",this.id=e?.id||"ID",this.name=e?.name||"Name",this.addCategory=e?.addCategory||"Add Category",this.preferences=e?.preferences||"Preferences",this.addPreference=e?.addPreference||"Add Preference",this.selectCategories=e?.selectCategories||"Select categories for new preference"}}const Pu=z.createContext(null),fxe=({labels:r,children:e})=>{const t=new hxe(r);return Y.jsx(Pu.Provider,{value:t,children:e})},mxe=({children:r})=>Y.jsx(Re,{width:"100%",sx:{backgroundColor:"#fff"},children:r});function Qw(r){const e=z.useContext(r);if(e===void 0)throw new Error("Context was used outside of its Provider");return e}const Eu={ar:"Arabic",bg:"Bulgarian",da:"Danish",de:"German",en:"English",el:"Greek",es:"Spanish",fr:"French",hu:"Hungarian",it:"Italian",nl:"Dutch",pt:"Portuguese","pt-br":"Brazilian(Portuguese)",ro:"Romanian",sk:"Slovak",sr:"Serbian",sv:"Swedish",sw:"Swahili"},gxe=()=>{const[r,e]=z.useState(null),[t,n]=z.useState(!1),[i,a]=z.useState(!1),[o,s]=z.useState(!1),[l,c]=z.useState("danger"),[u,d]=z.useState(""),p=Qw(Pu),h=z.useRef(null),{Spinner:m,Toast:f}=il.useComponentContext(),{https:v}=il.useAPIContext(),w=(_,k)=>{c(_),d(k),s(!0)};z.useEffect(()=>{async function _(){n(!0);const k=await v.getLanguageConfig();if(k.ok){const T=await k.json();e(T.data),n(!1)}else n(!1),console.error(p.clientConfigErrorMessage,await k.json()),w("danger",p.clientConfigErrorMessage)}_()},[]);const y=async()=>{a(!0);const _=await v.updateLanguageConfig({...r});_.ok?(a(!1),w("success",p.updateConfigMessage)):(a(!1),console.error(p.updateConfigErrorMessage,await _.json()),w("danger",p.updateConfigErrorMessage))},g=_=>{let k=[...r.available_languages],T={...r.translation_rules};_||(k=new Array,T={}),k.includes(_)&&(k=k.filter(E=>E!==_),delete T[_]),_&&!k.includes(_)&&(delete T[r.default_language],T[_]={game_status:"INACTIVE"}),e({default_language:_,available_languages:k,translation_rules:Object.keys(T).length>0?T:null})},x=_=>{let k=[...r.available_languages],T={...r.translation_rules};k.includes(_)?(k=k.filter(E=>E!==_),delete T[_]):(k.push(_),T[_]={game_status:"INACTIVE"}),e({default_language:r.default_language,available_languages:k,translation_rules:Object.keys(T).length>0?T:null})},b=_=>{let k={...r.translation_rules,[_.language]:{game_status:_.value}};e({default_language:r.default_language,available_languages:r.available_languages,translation_rules:k})},C=()=>Y.jsxs(Re,{sx:{mt:2},children:[Y.jsx(Ve,{level:"title-sm",children:p.defaultLanguage}),Y.jsx(Bi,{children:p.defaultLanguageHelperText}),Y.jsx(Kr,{value:r?.default_language,size:"sm",name:"defaultLanguage",slotProps:{button:{sx:{whiteSpace:"nowrap"}}},onChange:(_,k)=>{g(k)},sx:{mt:1,minHeight:"37px",backgroundColor:"white",width:200},...r?.default_language&&{endDecorator:Y.jsx(Ur,{variant:"plain",color:"neutral",onMouseDown:_=>{_.stopPropagation()},onClick:()=>{g(null),h.current?.focusVisible()},sx:{width:"18px",height:"18px"},children:Y.jsx(pJ,{})}),indicator:null},children:Object.keys(Eu).map(_=>Y.jsx(Cr,{value:_,children:Eu[_]},_))})]}),I=()=>Y.jsxs(Re,{my:4,children:[Y.jsx(Ve,{level:"title-sm",children:p.availableLanguages}),Y.jsx(Bi,{children:p.availableLanguagesHelperText}),Y.jsx(Re,{mt:1,sx:{display:{xs:"flex",md:"block"},flexDirection:"column"},children:Object.keys(Eu).map(_=>Y.jsx(i7,{sx:{m:1,"& .MuiCheckbox-checkbox":{backgroundColor:"white","&:hover":{backgroundColor:"#f0f4f8"}},"& .MuiCheckbox-checkbox.Mui-checked":{backgroundColor:"#0066CC"}},checked:r.default_language===_||r?.available_languages.includes(_),disabled:!r.default_language||r.default_language===_,label:Eu[_],onChange:()=>x(_)},_))})]}),S=_=>Y.jsxs("tr",{children:[Y.jsx("td",{children:Y.jsx(Ve,{level:"body-sm",children:Eu[_]})}),Y.jsx("td",{children:Y.jsxs(Kr,{value:r.translation_rules[_].game_status,size:"sm",name:"sortBy",onChange:(k,T)=>{b({language:_,value:T})},sx:{my:.5,minHeight:"37px",backgroundColor:"white"},children:[Y.jsx(Cr,{value:"ACTIVE",children:p.active},"option-active"),Y.jsx(Cr,{value:"INACTIVE",children:p.inactive},"option-inactive")]})})]},`${_}-rule`),P=()=>Y.jsxs(Re,{my:4,children:[Y.jsx(Ve,{level:"title-sm",children:p.translationRules}),Y.jsx(Bi,{children:p.translationRulesHelperText}),Y.jsx(rp,{sx:{mt:1},children:Y.jsxs(np,{variant:"outlined",hoverRow:!1,borderAxis:"bothBetween",size:"sm",sx:{backgroundColor:"#fff","& > thead > tr > th:first-child, & > tbody > tr > td:first-child":{textAlign:"left",width:"50%"},"--TableCell-paddingX":"0.5rem",cursor:"default","& > tbody > tr:hover":{backgroundColor:"transparent"},"& > thead > tr > th":{backgroundColor:"#fff",verticalAlign:"middle"},"& > thead > tr > th, & > tbody > tr > td":{textAlign:"right"}},children:[Y.jsx("thead",{children:Y.jsxs("tr",{children:[Y.jsx("th",{children:p.language}),Y.jsx("th",{children:p.gameStatus})]})}),Y.jsx("tbody",{children:[r.default_language,...r.available_languages].map(_=>S(_))})]})})]});return t?Y.jsx(m,{my:30}):!t&&r?Y.jsxs(Re,{children:[C(),I(),r.default_language&&P(),Y.jsx(Re,{textAlign:"center",children:Y.jsx(bt,{onClick:y,loading:i,children:p.update})}),Y.jsx(f,{showToast:o,color:l,message:u,hideToast:()=>s(!o)})]}):Y.jsx(Y.Fragment,{})},vxe=()=>{const[r,e]=z.useState([]),[t,n]=z.useState({id:"",display_name:""}),[i,a]=z.useState([]),[o,s]=z.useState({id:"",display_name:"",categories:[]}),[l,c]=z.useState(!1),[u,d]=z.useState(!1),[p,h]=z.useState(!1),[m,f]=z.useState("danger"),[v,w]=z.useState(""),y=Qw(Pu),{Spinner:g,Toast:x}=il.useComponentContext(),{https:b}=il.useAPIContext(),C=(O,L)=>{f(O),w(L),h(!0)};z.useEffect(()=>{async function O(){c(!0);const L=await b.getEntityFeature("profile_preferences");if(L.ok){const N=await L.json();e(N.data.categories),a(N.data.preferences),c(!1)}else c(!1),console.error(y.clientConfigErrorMessage,await L.json()),C("danger",y.clientConfigErrorMessage)}O()},[]);const I=async()=>{d(!0);const O=await b.updateProfilePreferences({preferences:i,categories:r});O.ok?(d(!1),C("success",y.updateConfigMessage)):(d(!1),console.error(y.updateConfigErrorMessage,await O.json()),C("danger",y.updateConfigErrorMessage))},S=()=>{e([...r,t]),n({id:"",display_name:""})},P=O=>{e(r.filter(L=>L.id!==O)),a(i.map(L=>({...L,categories:L.categories.filter(N=>N!==O)})))},_=()=>{a([...i,o]),s({id:"",display_name:"",categories:[]})},k=O=>{a(i.filter(L=>L.id!==O))},T=(O,L)=>{a(i.map(N=>{if(N.id===O){const W=N.categories.includes(L)?N.categories.filter(V=>V!==L):[...N.categories,L];return{...N,categories:W}}return N}))},E=()=>Y.jsx(ii,{xs:12,md:6,children:Y.jsx(tn,{variant:"outlined",children:Y.jsxs(ji,{children:[Y.jsx(Ve,{level:"title-md",sx:{mb:1},children:y.categories}),Y.jsx(ts,{sx:{mb:2}}),Y.jsx(co,{spacing:1,direction:"row",flexWrap:"wrap",useFlexGap:!0,sx:{mb:r.length>0?2:0},children:r.map(O=>Y.jsx(xr,{variant:"soft",color:"primary",sx:{"& .MuiChip-endDecorator":{cursor:"pointer",pointerEvents:"all"}},endDecorator:Y.jsx(vt,{title:y.delete,placement:"top",children:Y.jsx(Ur,{variant:"plain",size:"sm",color:"neutral",onClick:()=>P(O.id),sx:{":hover":{color:"#C41C1C",backgroundColor:"transparent"}},children:Y.jsx(bc,{fontSize:"small"})})}),children:O.display_name},O.id))}),Y.jsxs(Re,{sx:{display:"flex",gap:1,flexWrap:"wrap",alignItems:"flex-start"},children:[Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.id}),Y.jsx(Bn,{placeholder:"",value:t.id,onChange:O=>n({...t,id:O.target.value})})]}),Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.name}),Y.jsx(Bn,{placeholder:"",value:t.display_name,onChange:O=>n({...t,display_name:O.target.value})})]}),Y.jsx(bt,{sx:{mt:"auto"},size:"sm",startDecorator:Y.jsx(yc,{}),disabled:!t.id||!t.display_name,onClick:S,children:y.addCategory})]})]})})}),M=()=>Y.jsx(ii,{xs:12,md:6,children:Y.jsx(tn,{variant:"outlined",children:Y.jsxs(ji,{children:[Y.jsx(Ve,{level:"title-md",sx:{mb:1},children:y.preferences}),Y.jsx(ts,{sx:{mb:2}}),Y.jsx(ii,{container:!0,spacing:1,sx:{mb:i.length>0?2:0},children:i.map(O=>Y.jsx(ii,{xs:12,md:6,lg:4,children:Y.jsx(tn,{variant:"soft",size:"sm",children:Y.jsxs(ji,{children:[Y.jsxs(Re,{sx:{display:"flex",justifyContent:"space-between"},children:[Y.jsx(Ve,{level:"title-sm",children:O.display_name}),Y.jsx(vt,{title:y.delete,placement:"top",children:Y.jsx(Ur,{variant:"plain",size:"sm",color:"neutral",onClick:()=>k(O.id),sx:{"& .MuiChip-endDecorator":{cursor:"pointer",pointerEvents:"all"},":hover":{color:"#C41C1C",backgroundColor:"transparent"}},children:Y.jsx(bc,{fontSize:"small"})})})]}),Y.jsxs(Re,{children:[Y.jsxs(Ve,{level:"body-xs",sx:{mb:1},children:[y.categories,":"]}),Y.jsx(co,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:r.map(L=>Y.jsx(xr,{size:"sm",variant:O.categories.includes(L.id)?"solid":"outlined",color:O.categories.includes(L.id)?"primary":"neutral",onClick:()=>T(O.id,L.id),children:L.display_name},L.id))})]})]})})},O.id))}),Y.jsxs(Re,{sx:{display:"flex",gap:1,flexWrap:"wrap",alignItems:"flex-start",mb:.5},children:[Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.id}),Y.jsx(Bn,{placeholder:"",value:o.id,onChange:O=>s({...o,id:O.target.value})})]}),Y.jsxs($t,{size:"sm",children:[Y.jsx(Nt,{required:!0,children:y.name}),Y.jsx(Bn,{placeholder:"",value:o.display_name,onChange:O=>s({...o,display_name:O.target.value})})]}),Y.jsx(bt,{sx:{mt:"auto"},size:"sm",startDecorator:Y.jsx(yc,{}),disabled:!o.id||!o.display_name,onClick:_,children:y.addPreference})]}),Y.jsxs(Re,{children:[Y.jsxs(Ve,{level:"body-sm",mb:1,children:[y.selectCategories,":"]}),Y.jsx(co,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:r.map(O=>Y.jsx(xr,{size:"sm",variant:o.categories.includes(O.id)?"solid":"outlined",color:o.categories.includes(O.id)?"primary":"neutral",onClick:()=>s({...o,categories:o.categories.includes(O.id)?o.categories.filter(L=>L!==O.id):[...o.categories,O.id]}),children:O.display_name},O.id))})]})]})})});return l?Y.jsx(g,{my:30}):Y.jsxs(Y.Fragment,{children:[Y.jsxs(ii,{container:!0,spacing:2,mb:4,mt:2,children:[E(),M()]}),Y.jsx(Re,{textAlign:"center",children:Y.jsx(bt,{onClick:I,loading:u,children:y.update})}),Y.jsx(x,{showToast:p,color:m,message:v,hideToast:()=>h(!p)})]})},yxe=()=>{const r=Qw(Pu);return Y.jsxs(Y.Fragment,{children:[Y.jsxs(Re,{m:1,children:[Y.jsx(Ve,{level:"h3",children:r.configTitle}),Y.jsx(Bi,{children:r.configDescription})]}),Y.jsx(tn,{variant:"plain",children:Y.jsxs(MT,{"aria-label":"Configurations",defaultValue:0,sx:{"@media (max-width: 899px)":{"& .MuiTabList-root":{flexDirection:"column"}}},children:[Y.jsxs(DT,{children:[Y.jsx(ns,{disableIndicator:!0,children:r.language}),Y.jsx(ns,{disableIndicator:!0,children:r.profilePreferences}),Y.jsxs(ns,{disableIndicator:!0,disabled:!0,children:[r.cacheTTL,Y.jsx(xr,{size:"sm",variant:"solid",color:"primary",children:r.soon})]}),Y.jsxs(ns,{disableIndicator:!0,disabled:!0,children:[r.footballAssets,Y.jsx(xr,{size:"sm",variant:"solid",color:"primary",children:r.soon})]})]}),Y.jsx(ip,{value:0,children:Y.jsx(gxe,{})}),Y.jsx(ip,{value:1,children:Y.jsx(vxe,{})})]})})]})},bxe=({fansUnitedEnvironment:r})=>{const{AuthContext:e,useComponentContext:t}=il,n=z.useContext(e),i=z.useContext(Pu),{Login:a}=t();return n?Y.jsx(mxe,{children:Y.jsx(yxe,{})}):Y.jsx(a,{environment:r,userNotFound:i.userNotFound})},wxe=r=>{const e={apiKey:r.fansUnitedApiKey,clientId:r.fansUnitedClientId,environment:r.fansUnitedEnvironment,language:r.fansUnitedLanguage,errorHandlingMode:"standard",sportal365Project:"",sportal365Infrastructure:""},{AuthProvider:t,APIProvider:n,ComponentProvider:i}=il;return Y.jsx(t,{environment:r.fansUnitedEnvironment,children:Y.jsx(fxe,{labels:r.labels,children:Y.jsx(n,{config:e,children:Y.jsx(i,{children:Y.jsx(bxe,{fansUnitedEnvironment:r.fansUnitedEnvironment,hideSignOutButton:r.hideSignOutButton})})})})})};ha.ConfigurationManager=wxe,Object.defineProperty(ha,Symbol.toStringTag,{value:"Module"})});