fansunited-management-components 1.23.1 → 1.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js
CHANGED
|
@@ -15891,7 +15891,7 @@ const EE = ["component", "color", "children", "indicator", "variant", "slots", "
|
|
|
15891
15891
|
]
|
|
15892
15892
|
}, Fu = ({ label: e, property: t, value: n, defaultValue: r, placeholder: i, description: o, onChange: a }) => {
|
|
15893
15893
|
const l = (s, c, d, f) => {
|
|
15894
|
-
f.getText().trim() === "" ? a("") : a(s);
|
|
15894
|
+
d !== "api" && (f.getText().trim() === "" ? a("") : a(s));
|
|
15895
15895
|
};
|
|
15896
15896
|
return t === "description" ? /* @__PURE__ */ u.jsxs(
|
|
15897
15897
|
st,
|
|
@@ -31426,43 +31426,43 @@ const xN = F.forwardRef(function(t, n) {
|
|
|
31426
31426
|
}
|
|
31427
31427
|
) : /* @__PURE__ */ u.jsx(u.Fragment, {})
|
|
31428
31428
|
] });
|
|
31429
|
-
}, RN = ({ defaultValue: e,
|
|
31430
|
-
const
|
|
31429
|
+
}, RN = ({ defaultValue: e, isClearable: t = !0, labels: n, onChange: r }) => {
|
|
31430
|
+
const i = Me.useRef(null), o = [
|
|
31431
31431
|
{
|
|
31432
31432
|
id: "FREE",
|
|
31433
|
-
label:
|
|
31433
|
+
label: n.free
|
|
31434
31434
|
},
|
|
31435
31435
|
{
|
|
31436
31436
|
id: "LEAD",
|
|
31437
|
-
label:
|
|
31437
|
+
label: n.lead
|
|
31438
31438
|
},
|
|
31439
31439
|
{
|
|
31440
31440
|
id: "REGISTERED",
|
|
31441
|
-
label:
|
|
31441
|
+
label: n.registered
|
|
31442
31442
|
}
|
|
31443
31443
|
];
|
|
31444
31444
|
return /* @__PURE__ */ u.jsxs(st, { size: "sm", sx: { mb: 2 }, children: [
|
|
31445
|
-
/* @__PURE__ */ u.jsx(lt, { children:
|
|
31445
|
+
/* @__PURE__ */ u.jsx(lt, { children: n.authRequirement }),
|
|
31446
31446
|
/* @__PURE__ */ u.jsx(
|
|
31447
31447
|
Gn,
|
|
31448
31448
|
X(V({
|
|
31449
31449
|
value: e,
|
|
31450
31450
|
size: "sm",
|
|
31451
31451
|
slotProps: { button: { sx: { whiteSpace: "nowrap" } } },
|
|
31452
|
-
onChange: (
|
|
31452
|
+
onChange: (a, l) => r(l),
|
|
31453
31453
|
sx: { minHeight: "37px" }
|
|
31454
|
-
}, e && {
|
|
31454
|
+
}, e && t && {
|
|
31455
31455
|
endDecorator: /* @__PURE__ */ u.jsx(
|
|
31456
31456
|
gn,
|
|
31457
31457
|
{
|
|
31458
31458
|
variant: "plain",
|
|
31459
31459
|
color: "neutral",
|
|
31460
|
-
onMouseDown: (
|
|
31461
|
-
|
|
31460
|
+
onMouseDown: (a) => {
|
|
31461
|
+
a.stopPropagation();
|
|
31462
31462
|
},
|
|
31463
31463
|
onClick: () => {
|
|
31464
|
-
var
|
|
31465
|
-
|
|
31464
|
+
var a;
|
|
31465
|
+
r(null), (a = i.current) == null || a.focusVisible();
|
|
31466
31466
|
},
|
|
31467
31467
|
sx: { width: "18px", height: "18px" },
|
|
31468
31468
|
children: /* @__PURE__ */ u.jsx(nb, {})
|
|
@@ -31470,10 +31470,10 @@ const xN = F.forwardRef(function(t, n) {
|
|
|
31470
31470
|
),
|
|
31471
31471
|
indicator: null
|
|
31472
31472
|
}), {
|
|
31473
|
-
children:
|
|
31473
|
+
children: o.map((a) => /* @__PURE__ */ u.jsx(kn, { value: a.id, children: a.label }, a.id))
|
|
31474
31474
|
})
|
|
31475
31475
|
),
|
|
31476
|
-
/* @__PURE__ */ u.jsx(_o, { children:
|
|
31476
|
+
/* @__PURE__ */ u.jsx(_o, { children: n.authRequirementDescription })
|
|
31477
31477
|
] });
|
|
31478
31478
|
};
|
|
31479
31479
|
function ON() {
|
package/index.umd.js
CHANGED
|
@@ -2330,7 +2330,7 @@
|
|
|
2330
2330
|
*
|
|
2331
2331
|
* This source code is licensed under the MIT license found in the
|
|
2332
2332
|
* LICENSE file in the root directory of this source tree.
|
|
2333
|
-
*/var El=Symbol.for("react.transitional.element"),_l=Symbol.for("react.portal"),Xo=Symbol.for("react.fragment"),Zo=Symbol.for("react.strict_mode"),ea=Symbol.for("react.profiler"),ta=Symbol.for("react.consumer"),na=Symbol.for("react.context"),ra=Symbol.for("react.forward_ref"),ia=Symbol.for("react.suspense"),oa=Symbol.for("react.suspense_list"),aa=Symbol.for("react.memo"),sa=Symbol.for("react.lazy"),wI=Symbol.for("react.offscreen"),II=Symbol.for("react.client.reference");function Xt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case El:switch(e=e.type,e){case Xo:case ea:case Zo:case ia:case oa:return e;default:switch(e=e&&e.$$typeof,e){case na:case ra:case sa:case aa:return e;case ta:return e;default:return t}}case _l:return t}}}Be.ContextConsumer=ta,Be.ContextProvider=na,Be.Element=El,Be.ForwardRef=ra,Be.Fragment=Xo,Be.Lazy=sa,Be.Memo=aa,Be.Portal=_l,Be.Profiler=ea,Be.StrictMode=Zo,Be.Suspense=ia,Be.SuspenseList=oa,Be.isContextConsumer=function(e){return Xt(e)===ta},Be.isContextProvider=function(e){return Xt(e)===na},Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===El},Be.isForwardRef=function(e){return Xt(e)===ra},Be.isFragment=function(e){return Xt(e)===Xo},Be.isLazy=function(e){return Xt(e)===sa},Be.isMemo=function(e){return Xt(e)===aa},Be.isPortal=function(e){return Xt(e)===_l},Be.isProfiler=function(e){return Xt(e)===ea},Be.isStrictMode=function(e){return Xt(e)===Zo},Be.isSuspense=function(e){return Xt(e)===ia},Be.isSuspenseList=function(e){return Xt(e)===oa},Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xo||e===ea||e===Zo||e===ia||e===oa||e===wI||typeof e=="object"&&e!==null&&(e.$$typeof===sa||e.$$typeof===aa||e.$$typeof===na||e.$$typeof===ta||e.$$typeof===ra||e.$$typeof===II||e.getModuleId!==void 0)},Be.typeOf=Xt,Hf.exports=Be;var Wf=Hf.exports;function ye(e){if(typeof e!="string")throw new Error(Qo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gf(e,t){var n,r;return j.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}const SI=typeof window!="undefined"?j.useLayoutEffect:j.useEffect;let Yf=0;function AI(e){const[t,n]=j.useState(e),r=e||t;return j.useEffect(()=>{t==null&&(Yf+=1,n(`mui-${Yf}`))},[t]),r}const Kf=j.useId;function zi(e){if(Kf!==void 0){const t=Kf();return e!=null?e:t}return AI(e)}function kl({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=j.useRef(e!==void 0),[o,a]=j.useState(t),l=i?e:o,s=j.useCallback(c=>{i||a(c)},[]);return[l,s]}class Dl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Dl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let la=!0,Pl=!1;const TI=new Dl,EI={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 _I(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&EI[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function kI(e){e.metaKey||e.altKey||e.ctrlKey||(la=!0)}function Ol(){la=!1}function DI(){this.visibilityState==="hidden"&&Pl&&(la=!0)}function PI(e){e.addEventListener("keydown",kI,!0),e.addEventListener("mousedown",Ol,!0),e.addEventListener("pointerdown",Ol,!0),e.addEventListener("touchstart",Ol,!0),e.addEventListener("visibilitychange",DI,!0)}function OI(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return la||_I(t)}function qf(){const e=j.useCallback(i=>{i!=null&&PI(i.ownerDocument)},[]),t=j.useRef(!1);function n(){return t.current?(Pl=!0,TI.start(100,()=>{Pl=!1}),t.current=!1,!0):!1}function r(i){return OI(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Jf(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=k({},o),Object.keys(i).forEach(a=>{n[r][a]=Jf(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function st(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const l=t(a);l!==""&&o.push(l),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const Qf=e=>e,RI=(()=>{let e=Qf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Qf}}})(),MI={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 Xf(e,t,n="Mui"){const r=MI[t];return r?`${n}-${r}`:`${RI.generate(e)}-${t}`}function LI(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Xf(e,i,n)}),r}function Rl(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:i,tabIndex:o,to:a,type:l,rootElementName:s}=e,c=j.useRef(null),[d,f]=j.useState(!1),{isFocusVisibleRef:h,onFocus:p,onBlur:m,ref:g}=qf(),[v,w]=j.useState(!1);t&&!n&&v&&w(!1),j.useEffect(()=>{h.current=v},[v,h]);const[x,b]=yI({rootElementName:s!=null?s:r||a?"a":void 0,componentName:"Button"}),I=$=>B=>{var L;v&&B.preventDefault(),(L=$.onMouseLeave)==null||L.call($,B)},y=$=>B=>{var L;m(B),h.current===!1&&w(!1),(L=$.onBlur)==null||L.call($,B)},S=$=>B=>{var L;if(c.current||(c.current=B.currentTarget),p(B),h.current===!0){var V;w(!0),(V=$.onFocusVisible)==null||V.call($,B)}(L=$.onFocus)==null||L.call($,B)},E=()=>{const $=c.current;return x==="BUTTON"||x==="INPUT"&&["button","submit","reset"].includes($==null?void 0:$.type)||x==="A"&&($==null?void 0:$.href)},P=$=>B=>{if(!t){var L;(L=$.onClick)==null||L.call($,B)}},F=$=>B=>{var L;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),(L=$.onMouseDown)==null||L.call($,B)},Y=$=>B=>{var L;if((L=$.onKeyDown)==null||L.call($,B),!B.defaultMuiPrevented&&(B.target===B.currentTarget&&!E()&&B.key===" "&&B.preventDefault(),B.target===B.currentTarget&&B.key===" "&&!t&&f(!0),B.target===B.currentTarget&&!E()&&B.key==="Enter"&&!t)){var V;(V=$.onClick)==null||V.call($,B),B.preventDefault()}},W=$=>B=>{var L;if(B.target===B.currentTarget&&f(!1),(L=$.onKeyUp)==null||L.call($,B),B.target===B.currentTarget&&!E()&&!t&&B.key===" "&&!B.defaultMuiPrevented){var V;(V=$.onClick)==null||V.call($,B)}},A=sn(b,i,g,c),U={};return o!==void 0&&(U.tabIndex=o),x==="BUTTON"?(U.type=l!=null?l:"button",n?U["aria-disabled"]=t:U.disabled=t):x==="INPUT"?l&&["button","submit","reset"].includes(l)&&(n?U["aria-disabled"]=t:U.disabled=t):x!==""&&(!r&&!a&&(U.role="button",U.tabIndex=o!=null?o:0),t&&(U["aria-disabled"]=t,U.tabIndex=n?o!=null?o:0:-1)),{getRootProps:($={})=>{const B=k({},Mn(e),Mn($)),L=k({type:l},B,U,$,{onBlur:y(B),onClick:P(B),onFocus:S(B),onKeyDown:Y(B),onKeyUp:W(B),onMouseDown:F(B),onMouseLeave:I(B),ref:A});return delete L.onFocusVisible,L},focusVisible:v,setFocusVisible:w,active:d,rootRef:A}}function BI(e,t){return e===t}const Ml={},Zf=()=>{};function Ll(e,t){const n=k({},e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function $I(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:i,controlledProps:o,lastActionRef:a}=e,l=j.useRef(n);j.useEffect(()=>{if(a.current===null)return;const s=Ll(l.current,o);Object.keys(t).forEach(c=>{var d;const f=(d=r[c])!=null?d:BI,h=t[c],p=s[c];if(p==null&&h!=null||p!=null&&h==null||p!=null&&h!=null&&!f(h,p)){var m,g;i==null||i((m=a.current.event)!=null?m:null,c,h,(g=a.current.type)!=null?g:"",t)}}),l.current=t,a.current=null},[l,t,a,i,r,o])}function NI(e){const t=j.useRef(null),{reducer:n,initialState:r,controlledProps:i=Ml,stateComparers:o=Ml,onStateChange:a=Zf,actionContext:l,componentName:s=""}=e;j.useRef(i);const c=j.useCallback((p,m)=>{t.current=m;const g=Ll(p,i);return n(g,m)},[i,n]),[d,f]=j.useReducer(c,r),h=j.useCallback(p=>{f(k({},p,{context:l}))},[l]);return $I({nextState:d,initialState:r,stateComparers:o!=null?o:Ml,onStateChange:a!=null?a:Zf,controlledProps:i,lastActionRef:t}),[Ll(d,i),h]}const FI=j.createContext(void 0);function jI(){return j.useContext(FI)}function zI(e={}){const{defaultValue:t,disabled:n=!1,error:r=!1,onBlur:i,onChange:o,onFocus:a,required:l=!1,value:s,inputRef:c}=e,d=jI();let f,h,p,m,g;if(d){var v,w,x;f=void 0,h=(v=d.disabled)!=null?v:!1,p=(w=d.error)!=null?w:!1,m=(x=d.required)!=null?x:!1,g=d.value}else f=t,h=n,p=r,m=l,g=s;const{current:b}=j.useRef(g!=null),I=j.useCallback($=>{},[]),y=j.useRef(null),S=sn(y,c,I),[E,P]=j.useState(!1);j.useEffect(()=>{!d&&h&&E&&(P(!1),i==null||i())},[d,h,E,i]);const F=$=>B=>{var L;if(d!=null&&d.disabled){B.stopPropagation();return}if((L=$.onFocus)==null||L.call($,B),d&&d.onFocus){var V;d==null||(V=d.onFocus)==null||V.call(d)}else P(!0)},Y=$=>B=>{var L;(L=$.onBlur)==null||L.call($,B),d&&d.onBlur?d.onBlur():P(!1)},W=$=>(B,...L)=>{var V,q;if(!b&&(B.target||y.current)==null)throw new Error(Qo(17));d==null||(V=d.onChange)==null||V.call(d,B),(q=$.onChange)==null||q.call($,B,...L)},A=$=>B=>{var L;y.current&&B.currentTarget===B.target&&y.current.focus(),(L=$.onClick)==null||L.call($,B)};return{disabled:h,error:p,focused:E,formControlContext:d,getInputProps:($={})=>{const L=k({},{onBlur:i,onChange:o,onFocus:a},Mn($)),V=k({},L,{onBlur:Y(L),onChange:W(L),onFocus:F(L)});return k({},V,{"aria-invalid":p||void 0,defaultValue:f,value:g,required:m,disabled:h},$,{ref:S},V)},getRootProps:($={})=>{const B=Mn(e,["onBlur","onChange","onFocus"]),L=k({},B,Mn($));return k({},$,L,{onClick:A(L)})},inputRef:S,required:m,value:g}}const vt={blur:"list:blur",focus:"list:focus",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 VI(e,t,n,r,i,o){if(n.length===0||!r&&n.every((l,s)=>i(l,s)))return-1;let a=e;for(;;){if(!o&&t==="next"&&a===n.length||!o&&t==="previous"&&a===-1)return-1;if(r?!1:i(n[a],a))a+=t==="next"?1:-1,o&&(a=(a+n.length)%n.length);else return a}}function Pt(e,t,n){var r;const{items:i,isItemDisabled:o,disableListWrap:a,disabledItemsFocusable:l,itemComparer:s,focusManagement:c}=n,d=c==="DOM"?0:-1,f=i.length-1,h=e==null?-1:i.findIndex(w=>s(w,e));let p,m,g=!a;switch(t){case"reset":if(d===-1)return null;p=0,m="next",g=!1;break;case"start":p=0,m="next",g=!1;break;case"end":p=f,m="previous",g=!1;break;default:{const w=h+t;w<0?!g&&h!==-1||Math.abs(t)>1?(p=0,m="next"):(p=f,m="previous"):w>f?!g||Math.abs(t)>1?(p=f,m="previous"):(p=0,m="next"):(p=w,m=t>=0?"next":"previous")}}const v=VI(p,m,i,l,o,g);return v===-1&&e!==null&&!o(e,h)?e:(r=i[v])!=null?r:null}function UI(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(i=>r(i,e))?t.filter(i=>!r(i,e)):[...t,e]}function eh(e,t,n){const{itemComparer:r,isItemDisabled:i,selectionMode:o,items:a}=n,{selectedValues:l}=t,s=a.findIndex(d=>r(e,d));if(i(e,s))return t;const c=UI(e,l,o,r);return k({},t,{selectedValues:c,highlightedValue:e})}function HI(e,t,n){const r=t.highlightedValue,{orientation:i,pageSize:o}=n;switch(e){case"Home":return k({},t,{highlightedValue:Pt(r,"start",n)});case"End":return k({},t,{highlightedValue:Pt(r,"end",n)});case"PageUp":return k({},t,{highlightedValue:Pt(r,-o,n)});case"PageDown":return k({},t,{highlightedValue:Pt(r,o,n)});case"ArrowUp":if(i!=="vertical")break;return k({},t,{highlightedValue:Pt(r,-1,n)});case"ArrowDown":if(i!=="vertical")break;return k({},t,{highlightedValue:Pt(r,1,n)});case"ArrowLeft":{if(i==="vertical")break;return k({},t,{highlightedValue:Pt(r,i==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(i==="vertical")break;return k({},t,{highlightedValue:Pt(r,i==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:eh(t.highlightedValue,t,n)}return t}function WI(e,t){return t.focusManagement==="DOM"?e:k({},e,{highlightedValue:null})}function GI(e,t,n){var r;const i=(r=n(e))==null?void 0:r.trim().toLowerCase();return!i||i.length===0?!1:i.indexOf(t)===0}function YI(e,t,n){const{items:r,isItemDisabled:i,disabledItemsFocusable:o,getItemAsString:a}=n,l=t.length>1;let s=l?e.highlightedValue:Pt(e.highlightedValue,1,n);for(let c=0;c<r.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(GI(s,t,a)&&(!i(s,r.indexOf(s))||o))return k({},e,{highlightedValue:s});s=Pt(s,1,n)}return e}function KI(e,t,n,r){var i;const{itemComparer:o,focusManagement:a}=r;let l=null;if(n.highlightedValue!=null){var s;l=(s=e.find(f=>o(f,n.highlightedValue)))!=null?s:null}else a==="DOM"&&t.length===0&&(l=Pt(null,"reset",r));const d=((i=n.selectedValues)!=null?i:[]).filter(f=>e.some(h=>o(h,f)));return k({},n,{highlightedValue:l,selectedValues:d})}function qI(e,t){return k({},e,{highlightedValue:Pt(null,"reset",t)})}function JI(e,t){return k({},e,{highlightedValue:Pt(null,"end",t)})}function QI(e,t){return k({},e,{selectedValues:[],highlightedValue:Pt(null,"reset",t)})}function th(e,t){const{type:n,context:r}=t;switch(n){case vt.keyDown:return HI(t.key,e,r);case vt.itemClick:return eh(t.item,e,r);case vt.blur:return WI(e,r);case vt.textNavigation:return YI(e,t.searchString,r);case vt.itemsChange:return KI(t.items,t.previousItems,e,r);case vt.resetHighlight:return qI(e,r);case vt.highlightLast:return JI(e,r);case vt.clearSelection:return QI(e,r);default:return e}}const XI=500;function ZI(e){const t=j.useRef({searchString:"",lastTime:null});return j.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,i=n.key.toLowerCase(),o=performance.now();r.searchString.length>0&&r.lastTime&&o-r.lastTime>XI?r.searchString=i:(r.searchString.length!==1||i!==r.searchString)&&(r.searchString+=i),r.lastTime=o,e(r.searchString,n)}},[e])}const nh={},eS=()=>{},tS=(e,t)=>e===t,nS=()=>!1,rS=e=>typeof e=="string"?e:String(e),iS=()=>({highlightedValue:null,selectedValues:[]});function oS(e){const{controlledProps:t=nh,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:i="activeDescendant",getInitialState:o=iS,getItemDomElement:a,getItemId:l,isItemDisabled:s=nS,rootRef:c,onStateChange:d=eS,items:f,itemComparer:h=tS,getItemAsString:p=rS,onChange:m,onHighlightChange:g,onItemsChange:v,orientation:w="vertical",pageSize:x=5,reducerActionContext:b=nh,selectionMode:I="single",stateReducer:y,componentName:S="useList"}=e,E=j.useRef(null),P=sn(c,E),F=j.useCallback((oe,Q,se)=>{if(g==null||g(oe,Q,se),i==="DOM"&&Q!=null&&(se===vt.itemClick||se===vt.keyDown||se===vt.textNavigation)){var ne;a==null||(ne=a(Q))==null||ne.focus()}},[a,g,i]),Y=j.useMemo(()=>({highlightedValue:h,selectedValues:(oe,Q)=>jf(oe,Q,h)}),[h]),W=j.useCallback((oe,Q,se,ne,ge)=>{switch(d==null||d(oe,Q,se,ne,ge),Q){case"highlightedValue":F(oe,se,ne);break;case"selectedValues":m==null||m(oe,se,ne);break}},[F,m,d]),A=j.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:i,isItemDisabled:s,itemComparer:h,items:f,getItemAsString:p,onHighlightChange:F,orientation:w,pageSize:x,selectionMode:I,stateComparers:Y}),[n,r,i,s,h,f,p,F,w,x,I,Y]),U=o(),G=y!=null?y:th,$=j.useMemo(()=>k({},b,A),[b,A]),[B,L]=NI({reducer:G,actionContext:$,initialState:U,controlledProps:t,stateComparers:Y,onStateChange:W,componentName:S}),{highlightedValue:V,selectedValues:q}=B,ee=ZI((oe,Q)=>L({type:vt.textNavigation,event:Q,searchString:oe})),O=j.useRef([]);j.useEffect(()=>{jf(O.current,f,h)||(L({type:vt.itemsChange,event:null,items:f,previousItems:O.current}),O.current=f,v==null||v(f))},[f,h,L,v]);const M=oe=>Q=>{var se;if((se=oe.onKeyDown)==null||se.call(oe,Q),Q.defaultMuiPrevented)return;const ne=["Home","End","PageUp","PageDown"];w==="vertical"?ne.push("ArrowUp","ArrowDown"):ne.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&ne.push(" ","Enter"),ne.includes(Q.key)&&Q.preventDefault(),L({type:vt.keyDown,key:Q.key,event:Q}),ee(Q)},N=oe=>Q=>{var se,ne;(se=oe.onBlur)==null||se.call(oe,Q),!Q.defaultMuiPrevented&&((ne=E.current)!=null&&ne.contains(Q.relatedTarget)||L({type:vt.blur,event:Q}))},z=(oe={})=>{const Q=Mn(oe);return k({},oe,{"aria-activedescendant":i==="activeDescendant"&&V!=null?l(V):void 0,tabIndex:i==="DOM"?-1:0,ref:P},Q,{onBlur:N(Q),onKeyDown:M(Q)})},te=j.useCallback(oe=>{const Q=(q!=null?q:[]).some(ge=>ge!=null&&h(oe,ge)),se=V!=null&&h(oe,V);return{focusable:i==="DOM",highlighted:se,selected:Q}},[h,q,V,i]),ae=j.useMemo(()=>({dispatch:L,getItemState:te}),[L,te]);return j.useDebugValue({state:B}),{contextValue:ae,dispatch:L,getRootProps:z,rootRef:P,state:B}}const rh=j.createContext(null);function aS(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=j.useContext(rh);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:o}=r,{highlighted:a,selected:l,focusable:s}=o(n),c=j.useCallback(p=>m=>{var g;(g=p.onClick)==null||g.call(p,m),!m.defaultPrevented&&i({type:vt.itemClick,item:n,event:m})},[i,n]),d=j.useCallback(p=>m=>{var g;(g=p.onMouseOver)==null||g.call(p,m),!m.defaultPrevented&&i({type:vt.itemHover,item:n,event:m})},[i,n]);let f;return s&&(f=a?0:-1),{getRootProps:(p={})=>{const m=Mn(p);return k({},p,{onClick:c(m),onPointerOver:t?d(m):void 0,tabIndex:f})},highlighted:a,selected:l}}const Bl=j.createContext(null);function sS(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const i=n.subitem.ref.current,o=r.subitem.ref.current;return i===null||o===null||i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function ih(){const[e,t]=j.useState(new Map),n=j.useRef(new Set),r=j.useCallback(function(c){n.current.delete(c),t(d=>{const f=new Map(d);return f.delete(c),f})},[]),i=j.useCallback(function(c,d){let f;return typeof c=="function"?f=c(n.current):f=c,n.current.add(f),t(h=>{const p=new Map(h);return p.set(f,d),p}),{id:f,deregister:()=>r(f)}},[r]),o=j.useMemo(()=>sS(e),[e]),a=j.useCallback(function(c){return Array.from(o.keys()).indexOf(c)},[o]);return{contextValue:j.useMemo(()=>({getItemIndex:a,registerItem:i,totalSubitemCount:e.size}),[a,i,e.size]),subitems:o}}function oh(e,t){const n=j.useContext(Bl);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[i,o]=j.useState(typeof e=="function"?void 0:e);return SI(()=>{const{id:a,deregister:l}=r(e,t);return o(a),l},[r,t,e]),{id:i,index:i!==void 0?n.getItemIndex(i):-1,totalItemCount:n.totalSubitemCount}}function lS(e,t){return function(r={}){const i=k({},r,e(r));return k({},i,t(i))}}const cS=Math.min,uS=Math.max,ca=Math.round,ua=Math.floor,da=e=>({x:e,y:e});function dS(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ah(e){return lh(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sh(e){var t;return(t=(lh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lh(e){return e instanceof Node||e instanceof $n(e).Node}function fS(e){return e instanceof Element||e instanceof $n(e).Element}function $l(e){return e instanceof HTMLElement||e instanceof $n(e).HTMLElement}function ch(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}function uh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Nl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hS(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pS(e){return["html","body","#document"].includes(ah(e))}function Nl(e){return $n(e).getComputedStyle(e)}function gS(e){if(ah(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ch(e)&&e.host||sh(e);return ch(t)?t.host:t}function dh(e){const t=gS(e);return pS(t)?e.ownerDocument?e.ownerDocument.body:e.body:$l(t)&&uh(t)?t:dh(t)}function fa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=dh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=$n(i);if(o){const l=Fl(a);return t.concat(a,a.visualViewport||[],uh(i)?i:[],l&&n?fa(l):[])}return t.concat(i,fa(i,[],n))}function Fl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mS(e){const t=Nl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$l(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=ca(n)!==o||ca(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function jl(e){return fS(e)?e:e.contextElement}function fh(e){const t=jl(e);if(!$l(t))return da(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=mS(t);let a=(o?ca(n.width):n.width)/r,l=(o?ca(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const vS=da(0);function bS(e){const t=$n(e);return!hS()||!t.visualViewport?vS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yS(e,t,n){return!1}function hh(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=jl(e);let a=da(1);t&&(a=fh(e));const l=yS()?bS(o):da(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const h=$n(o),p=r;let m=h,g=Fl(m);for(;g&&r&&p!==m;){const v=fh(g),w=g.getBoundingClientRect(),x=Nl(g),b=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,I=w.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;s*=v.x,c*=v.y,d*=v.x,f*=v.y,s+=b,c+=I,m=$n(g),g=Fl(m)}}return dS({width:d,height:f,x:s,y:c})}function CS(e,t){let n=null,r;const i=sh(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const p=ua(d),m=ua(i.clientWidth-(c+f)),g=ua(i.clientHeight-(d+h)),v=ua(c),x={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:uS(0,cS(1,s))||1};let b=!0;function I(y){const S=y[0].intersectionRatio;if(S!==s){if(!b)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(I,Z(H({},x),{root:i.ownerDocument}))}catch(y){n=new IntersectionObserver(I,x)}n.observe(e)}return a(!0),o}function xS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=jl(e),d=i||o?[...c?fa(c):[],...fa(t)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const f=c&&l?CS(c,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),c&&!s&&p.observe(c),p.observe(t));let m,g=s?hh(e):null;s&&v();function v(){const w=hh(e);g&&(w.x!==g.x||w.y!==g.y||w.width!==g.width||w.height!==g.height)&&n(),g=w,m=requestAnimationFrame(v)}return n(),()=>{var w;d.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f==null||f(),(w=p)==null||w.disconnect(),p=null,s&&cancelAnimationFrame(m)}}function wS(e){const{checked:t,defaultChecked:n,disabled:r,onBlur:i,onChange:o,onFocus:a,onFocusVisible:l,readOnly:s,required:c}=e,[d,f]=kl({controlled:t,default:!!n,name:"Switch",state:"checked"}),h=P=>F=>{var Y;F.nativeEvent.defaultPrevented||(f(F.target.checked),o==null||o(F),(Y=P.onChange)==null||Y.call(P,F))},{isFocusVisibleRef:p,onBlur:m,onFocus:g,ref:v}=qf(),[w,x]=j.useState(!1);r&&w&&x(!1),j.useEffect(()=>{p.current=w},[w,p]);const b=j.useRef(null),I=P=>F=>{var Y;b.current||(b.current=F.currentTarget),g(F),p.current===!0&&(x(!0),l==null||l(F)),a==null||a(F),(Y=P.onFocus)==null||Y.call(P,F)},y=P=>F=>{var Y;m(F),p.current===!1&&x(!1),i==null||i(F),(Y=P.onBlur)==null||Y.call(P,F)},S=sn(v,b);return{checked:d,disabled:!!r,focusVisible:w,getInputProps:(P={})=>k({checked:t,defaultChecked:n,disabled:r,readOnly:s,ref:S,required:c,type:"checkbox",role:"switch","aria-checked":t},P,{onChange:h(P),onFocus:I(P),onBlur:y(P)}),inputRef:S,readOnly:!!s}}function IS(e){const{value:t,defaultValue:n,onChange:r,orientation:i="horizontal",direction:o="ltr",selectionFollowsFocus:a=!1}=e,[l,s]=kl({controlled:t,default:n,name:"Tabs",state:"value"}),c=j.useCallback((v,w)=>{s(w),r==null||r(v,w)},[r,s]),{subitems:d,contextValue:f}=ih(),h=j.useRef(()=>{}),p=j.useCallback(v=>{var w;return(w=d.get(v))==null?void 0:w.id},[d]),m=j.useCallback(v=>h.current(v),[]),g=j.useCallback(v=>{h.current=v},[]);return{contextValue:k({direction:o,getTabId:m,getTabPanelId:p,onSelected:c,orientation:i,registerTabIdLookup:g,selectionFollowsFocus:a,value:l},f)}}const ph=j.createContext(null);function ha(){const e=j.useContext(ph);if(e==null)throw new Error("No TabsContext provided");return e}function SS(e){const{value:t,children:n}=e,{direction:r,getItemIndex:i,onSelected:o,orientation:a,registerItem:l,registerTabIdLookup:s,selectionFollowsFocus:c,totalSubitemCount:d,value:f,getTabId:h,getTabPanelId:p}=t,m=j.useMemo(()=>({getItemIndex:i,registerItem:l,totalSubitemCount:d}),[l,i,d]),g=j.useMemo(()=>({direction:r,getTabId:h,getTabPanelId:p,onSelected:o,orientation:a,registerTabIdLookup:s,selectionFollowsFocus:c,value:f}),[r,h,p,o,a,s,c,f]);return u.jsx(Bl.Provider,{value:m,children:u.jsx(ph.Provider,{value:g,children:n})})}function AS(e){return e.size}function TS(e){const{value:t,id:n,rootRef:r}=e,i=ha();if(i===null)throw new Error("No TabContext provided");const{value:o,getTabId:a}=i,l=zi(n),s=j.useRef(null),c=sn(s,r),d=j.useMemo(()=>({id:l,ref:s}),[l]),{id:f}=oh(t!=null?t:AS,d),h=f!==o,p=f!==void 0?a(f):void 0;return{hidden:h,getRootProps:(g={})=>k({"aria-labelledby":p!=null?p:void 0,hidden:h,id:l!=null?l:void 0},g,{ref:c}),rootRef:c}}const gh={valueChange:"valueChange"};function ES(e,t){if(t.type===gh.valueChange)return k({},e,{highlightedValue:t.value});const n=th(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===vt.itemsChange){if(n.selectedValues.length>0)return k({},n,{highlightedValue:n.selectedValues[0]});Pt(null,"reset",t.context)}return r&&n.highlightedValue!=null?k({},n,{selectedValues:[n.highlightedValue]}):n}function _S(e){var t;const{rootRef:n}=e,{direction:r="ltr",onSelected:i,orientation:o="horizontal",value:a,registerTabIdLookup:l,selectionFollowsFocus:s}=ha(),{subitems:c,contextValue:d}=ih(),f=j.useCallback(W=>{var A;return(A=c.get(W))==null?void 0:A.id},[c]);l(f);const h=j.useMemo(()=>Array.from(c.keys()),[c]),p=j.useCallback(W=>{var A,U;return W==null?null:(A=(U=c.get(W))==null?void 0:U.ref.current)!=null?A:null},[c]),m=r==="rtl";let g;o==="vertical"?g="vertical":g=m?"horizontal-rtl":"horizontal-ltr";const v=j.useCallback((W,A)=>{var U;i(W,(U=A[0])!=null?U:null)},[i]),w=j.useMemo(()=>a===void 0?{}:a!=null?{selectedValues:[a]}:{selectedValues:[]},[a]),x=j.useCallback(W=>{var A,U;return(A=(U=c.get(W))==null?void 0:U.disabled)!=null?A:!1},[c]),{contextValue:b,dispatch:I,getRootProps:y,state:{highlightedValue:S,selectedValues:E},rootRef:P}=oS({controlledProps:w,disabledItemsFocusable:!s,focusManagement:"DOM",getItemDomElement:p,isItemDisabled:x,items:h,rootRef:n,onChange:v,orientation:g,reducerActionContext:j.useMemo(()=>({selectionFollowsFocus:s||!1}),[s]),selectionMode:"single",stateReducer:ES});j.useEffect(()=>{a!==void 0&&a!=null&&I({type:gh.valueChange,value:a})},[I,a]);const F=(W={})=>k({},W,y(W),{"aria-orientation":o==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:j.useMemo(()=>k({},d,b),[d,b]),dispatch:I,getRootProps:F,highlightedValue:S,isRtl:m,orientation:o,rootRef:P,selectedValue:(t=E[0])!=null?t:null}}function kS(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:l}=t,s=j.useMemo(()=>({dispatch:r,getItemState:o,getItemIndex:i}),[r,i,o]),c=j.useMemo(()=>({getItemIndex:i,registerItem:a,totalSubitemCount:l}),[a,i,l]);return u.jsx(Bl.Provider,{value:c,children:u.jsx(rh.Provider,{value:s,children:n})})}function DS(e){return e.size}function PS(e){const{value:t,rootRef:n,disabled:r=!1,id:i}=e,o=j.useRef(null),a=zi(i),{value:l,selectionFollowsFocus:s,getTabPanelId:c}=ha(),d=j.useMemo(()=>({disabled:r,ref:o,id:a}),[r,o,a]),{id:f,index:h,totalItemCount:p}=oh(t!=null?t:DS,d),{getRootProps:m,highlighted:g,selected:v}=aS({item:f}),{getRootProps:w,rootRef:x,active:b,focusVisible:I,setFocusVisible:y}=Rl({disabled:r,focusableWhenDisabled:!s,type:"button"}),S=sn(o,n,x),E=f!==void 0?c(f):void 0;return{getRootProps:(F={})=>{const Y=Mn(F),W=lS(m,w);return k({},F,W(Y),{role:"tab","aria-controls":E,"aria-selected":v,id:a,ref:S})},active:b,focusVisible:I,highlighted:g,index:h,rootRef:S,selected:v||f===l,setFocusVisible:y,totalTabsCount:p}}const mh="$$joy";function OS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}function RS(e,t){return Lt(e,t)}const MS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},LS=["values","unit","step"],BS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function vh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ae(e,LS),o=BS(t),a=Object.keys(o);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,p){const m=a.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:p)-r/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?c(h,a[a.indexOf(h)+1]):l(h)}function f(h){const p=a.indexOf(h);return p===0?l(a[1]):p===a.length-1?s(a[p]):c(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return k({keys:a,values:o,up:l,down:s,between:c,only:d,not:f,unit:n},i)}const $S={borderRadius:4};function Vi(e,t){return t?Bn(e,t,{clone:!1}):e}const zl={xs:0,sm:600,md:900,lg:1200,xl:1536},bh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zl[e]}px)`};function Nn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||bh;return t.reduce((a,l,s)=>(a[o.up(o.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const o=r.breakpoints||bh;return Object.keys(t).reduce((a,l)=>{if(Object.keys(o.values||zl).indexOf(l)!==-1){const s=o.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function NS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function FS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Zn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function pa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Zn(e,n)||r,t&&(i=t(i,r,e)),i}function nt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,c=Zn(s,r)||{};return Nn(a,l,f=>{let h=pa(c,i,f);return f===h&&typeof f=="string"&&(h=pa(c,i,`${t}${f==="default"?"":ye(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function jS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zS={m:"margin",p:"padding"},VS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},US=jS(e=>{if(e.length>2)if(yh[e])e=yh[e];else return[e];const[t,n]=e.split(""),r=zS[t],i=VS[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Vl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ul=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vl,...Ul];function Ui(e,t,n,r){var i;const o=(i=Zn(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function Ch(e){return Ui(e,"spacing",8)}function Hi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function HS(e,t){return n=>e.reduce((r,i)=>(r[i]=Hi(t,n),r),{})}function WS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=US(n),o=HS(i,r),a=e[n];return Nn(e,a,o)}function xh(e,t){const n=Ch(e.theme);return Object.keys(e).map(r=>WS(e,t,r,n)).reduce(Vi,{})}function qe(e){return xh(e,Vl)}qe.propTypes={},qe.filterProps=Vl;function Je(e){return xh(e,Ul)}Je.propTypes={},Je.filterProps=Ul;function wh(e=8){if(e.mui)return e;const t=Ch({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function ga(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Vi(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Zt(e){return typeof e!="number"?e:`${e}px solid`}function en(e,t){return nt({prop:e,themeKey:"borders",transform:t})}const GS=en("border",Zt),YS=en("borderTop",Zt),KS=en("borderRight",Zt),qS=en("borderBottom",Zt),JS=en("borderLeft",Zt),QS=en("borderColor"),XS=en("borderTopColor"),ZS=en("borderRightColor"),eA=en("borderBottomColor"),tA=en("borderLeftColor"),nA=en("outline",Zt),rA=en("outlineColor"),ma=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ui(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Hi(t,r)});return Nn(e,e.borderRadius,n)}return null};ma.propTypes={},ma.filterProps=["borderRadius"],ga(GS,YS,KS,qS,JS,QS,XS,ZS,eA,tA,ma,nA,rA);const va=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ui(e.theme,"spacing",8),n=r=>({gap:Hi(t,r)});return Nn(e,e.gap,n)}return null};va.propTypes={},va.filterProps=["gap"];const ba=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ui(e.theme,"spacing",8),n=r=>({columnGap:Hi(t,r)});return Nn(e,e.columnGap,n)}return null};ba.propTypes={},ba.filterProps=["columnGap"];const ya=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ui(e.theme,"spacing",8),n=r=>({rowGap:Hi(t,r)});return Nn(e,e.rowGap,n)}return null};ya.propTypes={},ya.filterProps=["rowGap"];const iA=nt({prop:"gridColumn"}),oA=nt({prop:"gridRow"}),aA=nt({prop:"gridAutoFlow"}),sA=nt({prop:"gridAutoColumns"}),lA=nt({prop:"gridAutoRows"}),cA=nt({prop:"gridTemplateColumns"}),uA=nt({prop:"gridTemplateRows"}),dA=nt({prop:"gridTemplateAreas"}),fA=nt({prop:"gridArea"});ga(va,ba,ya,iA,oA,aA,sA,lA,cA,uA,dA,fA);function jr(e,t){return t==="grey"?t:e}const hA=nt({prop:"color",themeKey:"palette",transform:jr}),pA=nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jr}),gA=nt({prop:"backgroundColor",themeKey:"palette",transform:jr});ga(hA,pA,gA);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const mA=nt({prop:"width",transform:Ht}),Hl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||zl[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ht(n)}};return Nn(e,e.maxWidth,t)}return null};Hl.filterProps=["maxWidth"];const vA=nt({prop:"minWidth",transform:Ht}),bA=nt({prop:"height",transform:Ht}),yA=nt({prop:"maxHeight",transform:Ht}),CA=nt({prop:"minHeight",transform:Ht});nt({prop:"size",cssProperty:"width",transform:Ht}),nt({prop:"size",cssProperty:"height",transform:Ht});const xA=nt({prop:"boxSizing"});ga(mA,Hl,vA,bA,yA,CA,xA);const Ca={border:{themeKey:"borders",transform:Zt},borderTop:{themeKey:"borders",transform:Zt},borderRight:{themeKey:"borders",transform:Zt},borderBottom:{themeKey:"borders",transform:Zt},borderLeft:{themeKey:"borders",transform:Zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ma},color:{themeKey:"palette",transform:jr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jr},backgroundColor:{themeKey:"palette",transform:jr},p:{style:Je},pt:{style:Je},pr:{style:Je},pb:{style:Je},pl:{style:Je},px:{style:Je},py:{style:Je},padding:{style:Je},paddingTop:{style:Je},paddingRight:{style:Je},paddingBottom:{style:Je},paddingLeft:{style:Je},paddingX:{style:Je},paddingY:{style:Je},paddingInline:{style:Je},paddingInlineStart:{style:Je},paddingInlineEnd:{style:Je},paddingBlock:{style:Je},paddingBlockStart:{style:Je},paddingBlockEnd:{style:Je},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:va},rowGap:{style:ya},columnGap:{style:ba},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Hl},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wA(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function IA(e,t){return typeof e=="function"?e(t):e}function SA(){function e(n,r,i,o){const a={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:c,transform:d,style:f}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Zn(i,c)||{};return f?f(a):Nn(a,r,m=>{let g=pa(h,d,m);return m===g&&typeof m=="string"&&(g=pa(h,d,`${n}${m==="default"?"":ye(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:Ca;function l(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const d=NS(o.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const m=IA(c[p],o);if(m!=null)if(typeof m=="object")if(a[p])h=Vi(h,e(p,m,o,a));else{const g=Nn({theme:o},m,v=>({[p]:v}));wA(g,m)?h[p]=t({sx:m,theme:o}):h=Vi(h,g)}else h=Vi(h,e(p,m,o,a))}),FS(f,h)}return Array.isArray(i)?i.map(l):l(i)}return t}const xa=SA();xa.filterProps=["sx"];function Ih(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const AA=["breakpoints","palette","spacing","shape"];function Sh(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ae(e,AA),l=vh(n),s=wh(i);let c=Bn({breakpoints:l,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:s,shape:k({},$S,o)},a);return c.applyStyles=Ih,c=t.reduce((d,f)=>Bn(d,f),c),c.unstable_sxConfig=k({},Ca,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return xa({sx:f,theme:this})},c}function TA(e){return Object.keys(e).length===0}function EA(e=null){const t=j.useContext(pe.ThemeContext);return!t||TA(t)?e:t}const _A=Sh();function kA(e=_A){return EA(e)}const DA=["sx"],PA=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ca;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function OA(e){const{sx:t}=e,n=Ae(e,DA),{systemProps:r,otherProps:i}=PA(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const l=t(...a);return Xn(l)?k({},r,l):r}:o=k({},r,t),k({},i,{sx:o})}const RA=["ownerState"],MA=["variants"],LA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BA(e){return Object.keys(e).length===0}function $A(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Wl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const NA=Sh(),FA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function wa({defaultTheme:e,theme:t,themeId:n}){return BA(t)?e:t[n]||t}function jA(e){return e?(t,n)=>n[e]:null}function Ia(e,t){let{ownerState:n}=t,r=Ae(t,RA);const i=typeof e=="function"?e(k({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>Ia(o,k({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=Ae(i,MA);return o.forEach(s=>{let c=!0;typeof s.props=="function"?c=s.props(k({ownerState:n},r,n)):Object.keys(s.props).forEach(d=>{(n==null?void 0:n[d])!==s.props[d]&&r[d]!==s.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(k({ownerState:n},r,n)):s.style))}),l}return i}function zA(e={}){const{themeId:t,defaultTheme:n=NA,rootShouldForwardProp:r=Wl,slotShouldForwardProp:i=Wl}=e,o=a=>xa(k({},a,{theme:wa(k({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,l={})=>{MS(a,y=>y.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=jA(FA(c))}=l,p=Ae(l,LA),m=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let v,w=Wl;c==="Root"||c==="root"?w=r:c?w=i:$A(a)&&(w=void 0);const x=RS(a,k({shouldForwardProp:w,label:v},p)),b=y=>typeof y=="function"&&y.__emotion_real!==y||Xn(y)?S=>Ia(y,k({},S,{theme:wa({theme:S.theme,defaultTheme:n,themeId:t})})):y,I=(y,...S)=>{let E=b(y);const P=S?S.map(b):[];s&&h&&P.push(W=>{const A=wa(k({},W,{defaultTheme:n,themeId:t}));if(!A.components||!A.components[s]||!A.components[s].styleOverrides)return null;const U=A.components[s].styleOverrides,G={};return Object.entries(U).forEach(([$,B])=>{G[$]=Ia(B,k({},W,{theme:A}))}),h(W,G)}),s&&!m&&P.push(W=>{var A;const U=wa(k({},W,{defaultTheme:n,themeId:t})),G=U==null||(A=U.components)==null||(A=A[s])==null?void 0:A.variants;return Ia({variants:G},k({},W,{theme:U}))}),g||P.push(o);const F=P.length-S.length;if(Array.isArray(y)&&F>0){const W=new Array(F).fill("");E=[...y,...W],E.raw=[...y.raw,...W]}const Y=x(E,...P);return a.muiName&&(Y.muiName=a.muiName),Y};return x.withConfig&&(I.withConfig=x.withConfig),I}}function VA(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Jf(t.components[n].defaultProps,r)}function UA({props:e,name:t,defaultTheme:n,themeId:r}){let i=kA(n);return r&&(i=i[r]||i),VA({theme:i,name:t,props:e})}function HA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ah(e){if(e.type)return e;if(e.charAt(0)==="#")return Ah(HA(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Qo(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Qo(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const mr=e=>{const t=Ah(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};function Gl(e=""){function t(...r){if(!r.length)return"";const i=r[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(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Th=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},WA=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([l,s])=>{(!n||n&&!n([...o,l]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...o,l],Array.isArray(s)?[...a,l]:a):t([...o,l],s,a))})}r(e)},GA=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Yl(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return WA(e,(l,s,c)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(l,s))){const d=`--${n?`${n}-`:""}${l.join("-")}`;Object.assign(i,{[d]:GA(l,s)}),Th(o,l,`var(${d})`,c),Th(a,l,`var(${d}, ${s})`,c)}},l=>l[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}function YA(e,t){if(vr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kl(e){var t=YA(e,"string");return vr(t)=="symbol"?t:t+""}const KA=["colorSchemes","components","defaultColorScheme"];function qA(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,i=Ae(e,KA),{vars:o,css:a,varsWithDefaults:l}=Yl(i,t);let s=l;const c={},{[r]:d}=n,f=Ae(n,[r].map(Kl));if(Object.entries(f||{}).forEach(([p,m])=>{const{vars:g,css:v,varsWithDefaults:w}=Yl(m,t);s=Bn(s,w),c[p]={css:v,vars:g}}),d){const{css:p,vars:m,varsWithDefaults:g}=Yl(d,t);s=Bn(s,g),c[r]={css:p,vars:m}}return{vars:s,generateCssVars:p=>{var m;if(!p){var g;const w=k({},a);return{css:w,vars:o,selector:(t==null||(g=t.getSelector)==null?void 0:g.call(t,p,w))||":root"}}const v=k({},c[p].css);return{css:v,vars:c[p].vars,selector:(t==null||(m=t.getSelector)==null?void 0:m.call(t,p,v))||":root"}}}}const JA=k({},Ca,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}}),Wi={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};function QA(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}const rt=(e,t)=>Xf(e,t,"Mui"),Qe=(e,t)=>LI(e,t,"Mui"),XA=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var n;return(n=t.match)==null?void 0:n.call(t,/^(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))$/)}),Eh=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},_h=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach(([i,o])=>{if(i.match(new RegExp(`${e}(color|bg|border)`,"i"))&&o){const a=n?n(i):o;i.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),i.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),i.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),Eh(r,i,a)}}),r},Tt=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:i}=t;Object.entries(i).forEach(o=>{const[a,l]=o;XA(l)&&typeof l=="object"&&(n=k({},n,{[a]:_h(e,l,s=>`var(--variant-${s}, ${r(`palette-${a}-${s}`,i[a][s])})`)}))})}return n.context=_h(e,{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)"}),n},ZA=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],e1=["colorSchemes"],t1=(e="joy")=>Gl(e);function n1(e){var t,n,r,i,o,a,l,s,c,d;const f={},{cssVarPrefix:h="joy",breakpoints:p,spacing:m,components:g,variants:v,shouldSkipGeneratingVar:w=QA}=f,x=Ae(f,ZA),b=t1(h),I={primary:Wi.blue,neutral:Wi.grey,danger:Wi.red,success:Wi.green,warning:Wi.yellow,common:{white:"#FFF",black:"#000"}},y=Q=>{var se;const ne=Q.split("-"),ge=ne[1],Se=ne[2];return b(Q,(se=I[ge])==null?void 0:se[Se])},S=Q=>({plainColor:y(`palette-${Q}-500`),plainHoverBg:y(`palette-${Q}-100`),plainActiveBg:y(`palette-${Q}-200`),plainDisabledColor:y("palette-neutral-400"),outlinedColor:y(`palette-${Q}-500`),outlinedBorder:y(`palette-${Q}-300`),outlinedHoverBg:y(`palette-${Q}-100`),outlinedActiveBg:y(`palette-${Q}-200`),outlinedDisabledColor:y("palette-neutral-400"),outlinedDisabledBorder:y("palette-neutral-200"),softColor:y(`palette-${Q}-700`),softBg:y(`palette-${Q}-100`),softHoverBg:y(`palette-${Q}-200`),softActiveColor:y(`palette-${Q}-800`),softActiveBg:y(`palette-${Q}-300`),softDisabledColor:y("palette-neutral-400"),softDisabledBg:y("palette-neutral-50"),solidColor:y("palette-common-white"),solidBg:y(`palette-${Q}-500`),solidHoverBg:y(`palette-${Q}-600`),solidActiveBg:y(`palette-${Q}-700`),solidDisabledColor:y("palette-neutral-400"),solidDisabledBg:y("palette-neutral-100")}),E=Q=>({plainColor:y(`palette-${Q}-300`),plainHoverBg:y(`palette-${Q}-800`),plainActiveBg:y(`palette-${Q}-700`),plainDisabledColor:y("palette-neutral-500"),outlinedColor:y(`palette-${Q}-200`),outlinedBorder:y(`palette-${Q}-700`),outlinedHoverBg:y(`palette-${Q}-800`),outlinedActiveBg:y(`palette-${Q}-700`),outlinedDisabledColor:y("palette-neutral-500"),outlinedDisabledBorder:y("palette-neutral-800"),softColor:y(`palette-${Q}-200`),softBg:y(`palette-${Q}-800`),softHoverBg:y(`palette-${Q}-700`),softActiveColor:y(`palette-${Q}-100`),softActiveBg:y(`palette-${Q}-600`),softDisabledColor:y("palette-neutral-500"),softDisabledBg:y("palette-neutral-800"),solidColor:y("palette-common-white"),solidBg:y(`palette-${Q}-500`),solidHoverBg:y(`palette-${Q}-600`),solidActiveBg:y(`palette-${Q}-700`),solidDisabledColor:y("palette-neutral-500"),solidDisabledBg:y("palette-neutral-800")}),P={palette:{mode:"light",primary:k({},I.primary,S("primary")),neutral:k({},I.neutral,S("neutral"),{plainColor:y("palette-neutral-700"),plainHoverColor:y("palette-neutral-900"),outlinedColor:y("palette-neutral-700")}),danger:k({},I.danger,S("danger")),success:k({},I.success,S("success")),warning:k({},I.warning,S("warning")),common:{white:"#FFF",black:"#000"},text:{primary:y("palette-neutral-800"),secondary:y("palette-neutral-700"),tertiary:y("palette-neutral-600"),icon:y("palette-neutral-500")},background:{body:y("palette-common-white"),surface:y("palette-neutral-50"),popup:y("palette-common-white"),level1:y("palette-neutral-100"),level2:y("palette-neutral-200"),level3:y("palette-neutral-300"),tooltip:y("palette-neutral-500"),backdrop:`rgba(${b("palette-neutral-darkChannel",mr(I.neutral[900]))} / 0.25)`},divider:`rgba(${b("palette-neutral-mainChannel",mr(I.neutral[500]))} / 0.2)`,focusVisible:y("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},F={palette:{mode:"dark",primary:k({},I.primary,E("primary")),neutral:k({},I.neutral,E("neutral"),{plainColor:y("palette-neutral-300"),plainHoverColor:y("palette-neutral-300")}),danger:k({},I.danger,E("danger")),success:k({},I.success,E("success")),warning:k({},I.warning,E("warning")),common:{white:"#FFF",black:"#000"},text:{primary:y("palette-neutral-100"),secondary:y("palette-neutral-300"),tertiary:y("palette-neutral-400"),icon:y("palette-neutral-400")},background:{body:y("palette-common-black"),surface:y("palette-neutral-900"),popup:y("palette-common-black"),level1:y("palette-neutral-800"),level2:y("palette-neutral-700"),level3:y("palette-neutral-600"),tooltip:y("palette-neutral-600"),backdrop:`rgba(${b("palette-neutral-darkChannel",mr(I.neutral[50]))} / 0.25)`},divider:`rgba(${b("palette-neutral-mainChannel",mr(I.neutral[500]))} / 0.16)`,focusVisible:y("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},Y='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',W=k({body:`"Inter", ${b(`fontFamily-fallback, ${Y}`)}`,display:`"Inter", ${b(`fontFamily-fallback, ${Y}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:Y},x.fontFamily),A=k({sm:300,md:500,lg:600,xl:700},x.fontWeight),U=k({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},x.fontSize),G=k({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},x.lineHeight),$=(t=(n=x.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:P.shadowRing,B=(r=(i=x.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowChannel)!=null?r:P.shadowChannel,L=(o=(a=x.colorSchemes)==null||(a=a.light)==null?void 0:a.shadowOpacity)!=null?o:P.shadowOpacity,V={colorSchemes:{light:P,dark:F},fontSize:U,fontFamily:W,fontWeight:A,focus:{thickness:"2px",selector:`&.${rt("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${b("focus-thickness",(l=(s=x.focus)==null?void 0:s.thickness)!=null?l:"2px")})`,outline:`${b("focus-thickness",(c=(d=x.focus)==null?void 0:d.thickness)!=null?c:"2px")} solid ${b("palette-focusVisible",I.primary[500])}`}},lineHeight:G,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${b("shadowRing",$)}, 0px 1px 2px 0px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,sm:`${b("shadowRing",$)}, 0px 1px 2px 0px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 2px 4px 0px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,md:`${b("shadowRing",$)}, 0px 2px 8px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 6px 12px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,lg:`${b("shadowRing",$)}, 0px 2px 8px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 12px 16px -4px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,xl:`${b("shadowRing",$)}, 0px 2px 8px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 20px 24px -4px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-xl, ${A.xl}`),fontSize:b(`fontSize-xl4, ${U.xl4}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},h2:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-xl, ${A.xl}`),fontSize:b(`fontSize-xl3, ${U.xl3}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},h3:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-lg, ${A.lg}`),fontSize:b(`fontSize-xl2, ${U.xl2}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},h4:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-lg, ${A.lg}`),fontSize:b(`fontSize-xl, ${U.xl}`),lineHeight:b(`lineHeight-md, ${G.md}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},"title-lg":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-lg, ${A.lg}`),fontSize:b(`fontSize-lg, ${U.lg}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),color:b(`palette-text-primary, ${P.palette.text.primary}`)},"title-md":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-md, ${A.md}`),fontSize:b(`fontSize-md, ${U.md}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-primary, ${P.palette.text.primary}`)},"title-sm":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-md, ${A.md}`),fontSize:b(`fontSize-sm, ${U.sm}`),lineHeight:b(`lineHeight-sm, ${G.sm}`),color:b(`palette-text-primary, ${P.palette.text.primary}`)},"body-lg":{fontFamily:b(`fontFamily-body, ${W.body}`),fontSize:b(`fontSize-lg, ${U.lg}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-secondary, ${P.palette.text.secondary}`)},"body-md":{fontFamily:b(`fontFamily-body, ${W.body}`),fontSize:b(`fontSize-md, ${U.md}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-secondary, ${P.palette.text.secondary}`)},"body-sm":{fontFamily:b(`fontFamily-body, ${W.body}`),fontSize:b(`fontSize-sm, ${U.sm}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-tertiary, ${P.palette.text.tertiary}`)},"body-xs":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-md, ${A.md}`),fontSize:b(`fontSize-xs, ${U.xs}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-tertiary, ${P.palette.text.tertiary}`)}}},q=x?Bn(V,x):V,{colorSchemes:ee}=q,O=Ae(q,e1),M=k({colorSchemes:ee},O,{breakpoints:vh(p!=null?p:{}),components:Bn({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:Q,theme:se})=>{var ne;const ge=Q.instanceFontSize;return k({margin:"var(--Icon-margin)"},Q.fontSize&&Q.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${se.vars.fontSize[Q.fontSize]})`},!Q.htmlColor&&k({color:`var(--Icon-color, ${M.vars.palette.text.icon})`},Q.color&&Q.color!=="inherit"&&se.vars.palette[Q.color]&&{color:`rgba(${(ne=se.vars.palette[Q.color])==null?void 0:ne.mainChannel} / 1)`}),ge&&ge!=="inherit"&&{"--Icon-fontSize":se.vars.fontSize[ge]})}}}},g),cssVarPrefix:h,getCssVar:b,spacing:wh(m)});function N(Q,se){Object.keys(se).forEach(ne=>{const ge={main:"500",light:"200",dark:"700"};Q==="dark"&&(ge.main=400),!se[ne].mainChannel&&se[ne][ge.main]&&(se[ne].mainChannel=mr(se[ne][ge.main])),!se[ne].lightChannel&&se[ne][ge.light]&&(se[ne].lightChannel=mr(se[ne][ge.light])),!se[ne].darkChannel&&se[ne][ge.dark]&&(se[ne].darkChannel=mr(se[ne][ge.dark]))})}Object.entries(M.colorSchemes).forEach(([Q,se])=>{N(Q,se.palette)});const z={prefix:h,shouldSkipGeneratingVar:w},{vars:te,generateCssVars:ae}=qA(k({colorSchemes:ee},O),z);M.vars=te,M.generateCssVars=ae,M.unstable_sxConfig=k({},JA,void 0),M.unstable_sx=function(se){return xa({sx:se,theme:this})},M.getColorSchemeSelector=Q=>Q==="light"?"&":`&[data-joy-color-scheme="${Q}"], [data-joy-color-scheme="${Q}"] &`;const oe={getCssVar:b,palette:M.colorSchemes.light.palette};return M.variants=Bn({plain:Tt("plain",oe),plainHover:Tt("plainHover",oe),plainActive:Tt("plainActive",oe),plainDisabled:Tt("plainDisabled",oe),outlined:Tt("outlined",oe),outlinedHover:Tt("outlinedHover",oe),outlinedActive:Tt("outlinedActive",oe),outlinedDisabled:Tt("outlinedDisabled",oe),soft:Tt("soft",oe),softHover:Tt("softHover",oe),softActive:Tt("softActive",oe),softDisabled:Tt("softDisabled",oe),solid:Tt("solid",oe),solidHover:Tt("solidHover",oe),solidActive:Tt("solidActive",oe),solidDisabled:Tt("solidDisabled",oe)},v),M.palette=k({},M.colorSchemes.light.palette,{colorScheme:"light"}),M.shouldSkipGeneratingVar=w,M.applyStyles=Ih,M}const kh=n1(),be=zA({defaultTheme:kh,themeId:mh});function lt({props:e,name:t}){return UA({props:e,name:t,defaultTheme:k({},kh,{components:{}}),themeId:mh})}function r1(e){return rt("MuiAccordion",e)}const i1=Qe("MuiAccordion",["root","expanded","disabled"]),o1=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],a1=["component","slots","slotProps"],s1=["component"];function Ie(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:l}=t,s=Ae(t,o1),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=o,h=Ae(o,a1),p=d[e]||r,m=bI(f[e],i),g=xI(k({className:n},s,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:m})),{props:{component:v},internalRef:w}=g,x=Ae(g.props,s1),b=sn(w,m==null?void 0:m.ref,t.ref),I=a?a(x):{},y=k({},i,I),S=e==="root"?v||c:v,E=vI(p,k({},e==="root"&&!c&&!d[e]&&l,e!=="root"&&!d[e]&&l,x,S&&{as:S},{ref:b}),y);return Object.keys(I).forEach(P=>{delete E[P]}),[p,E]}const ql=j.createContext({});function l1(e){return rt("MuiListItem",e)}const Dh=Qe("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),Sa=j.createContext(!1),Jl=j.createContext(!1),Ph=j.createContext(!1),Oh=j.createContext(void 0),c1=j.createContext(void 0),Rh=j.createContext(void 0),u1=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],d1=e=>{const{sticky:t,nested:n,nesting:r,variant:i,color:o}=e,a={root:["root",n&&"nested",r&&"nesting",t&&"sticky",o&&`color${ye(o)}`,i&&`variant${ye(i)}`],startAction:["startAction"],endAction:["endAction"]};return st(a,l1,{})},Ql=be("li")(({theme:e,ownerState:t})=>{var n;return[!t.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)"},t.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"},k({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.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:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},t["data-first-child"]===void 0&&k({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${e.vars.palette.background.body})`},{[`.${Dh.nested} > &`]:{"--_ListItem-display":"flex"}}),(n=e.variants[t.variant])==null?void 0:n[t.color]]}),f1=be(Ql,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),h1=be("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),p1=be("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),Mh=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyListItem"}),i=j.useContext(Rh),o=j.useContext(Oh),a=j.useContext(Jl),l=j.useContext(Ph),s=j.useContext(Sa),{component:c,className:d,children:f,nested:h=!1,sticky:p=!1,variant:m="plain",color:g="neutral",startAction:v,endAction:w,role:x,slots:b={},slotProps:I={}}=r,y=Ae(r,u1),[S,E]=j.useState(""),[P,F]=(o==null?void 0:o.split(":"))||["",""],Y=c||(P&&!P.match(/^(ul|ol|menu)$/)?"div":void 0);let W=i==="menu"?"none":void 0;o&&(W={menu:"none",menubar:"none",group:"presentation"}[F]),x&&(W=x);const A=k({},r,{sticky:p,startAction:v,endAction:w,row:a,wrap:l,variant:m,color:g,nesting:s,nested:h,component:Y,role:W}),U=d1(A),G=k({},y,{component:Y,slots:b,slotProps:I}),[$,B]=Ie("root",{additionalProps:{role:W},ref:n,className:Ln(U.root,d),elementType:f1,externalForwardedProps:G,ownerState:A}),[L,V]=Ie("startAction",{className:U.startAction,elementType:h1,externalForwardedProps:G,ownerState:A}),[q,ee]=Ie("endAction",{className:U.endAction,elementType:p1,externalForwardedProps:G,ownerState:A});return u.jsx(c1.Provider,{value:E,children:u.jsx(Sa.Provider,{value:h?S||!0:!1,children:u.jsxs($,k({},B,{children:[v&&u.jsx(L,k({},V,{children:v})),j.Children.map(f,(O,M)=>{var N;return j.isValidElement(O)?j.cloneElement(O,k({},M===0&&{"data-first-child":""},Gf(O,["ListItem"])&&{component:((N=O.props)==null?void 0:N.component)||"div"})):O}),w&&u.jsx(q,k({},ee,{children:w}))]}))})})});Mh.muiName="ListItem";const Lh=Mh;function g1(e){return rt("MuiAccordionDetails",e)}const br=Qe("MuiAccordionDetails",["root","content","expanded"]),m1=["accordionId","component","color","children","defaultExpanded","disabled","expanded","onChange","variant","slots","slotProps"],v1=e=>{const{variant:t,color:n,expanded:r,disabled:i}=e,o={root:["root",r&&"expanded",i&&"disabled",n&&`color${ye(n)}`,t&&`variant${ye(t)}`]};return st(o,r1,{})},b1=be(Ql,{name:"JoyAccordion",slot:"Root",overridesResolver:(e,t)=>t.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"},[`& .${br.root}`]:{"--AccordionDetails-radius":"0 0 var(--unstable_List-childRadius) var(--unstable_List-childRadius)"}},"&:not([data-first-child]):not([data-last-child])":{"--ListItem-radius":"0"}}),y1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordion"}),{accordionId:i,component:o="div",color:a="neutral",children:l,defaultExpanded:s=!1,disabled:c=!1,expanded:d,onChange:f,variant:h="plain",slots:p={},slotProps:m={}}=r,g=Ae(r,m1),v=zi(i),[w,x]=kl({controlled:d,default:s,name:"Accordion",state:"expanded"}),b=j.useCallback(Y=>{x(!w),f&&f(Y,!w)},[w,f,x]),I=j.useMemo(()=>({accordionId:v,expanded:w,disabled:c,toggle:b}),[v,w,c,b]),y=k({},g,{component:o,slots:p,slotProps:m}),S=k({},r,{component:o,color:a,variant:h,expanded:w,disabled:c,nested:!0}),E=v1(S),[P,F]=Ie("root",{ref:n,className:E.root,elementType:b1,externalForwardedProps:y,ownerState:S});return u.jsx(ql.Provider,{value:I,children:u.jsx(P,k({},F,{children:j.Children.map(l,(Y,W)=>j.isValidElement(Y)&&W===0?j.cloneElement(Y,{"data-first-child":""}):Y)}))})});function C1(e){return rt("MuiAccordionGroup",e)}Qe("MuiAccordionGroup",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const x1={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function Xl(e){const{children:t,nested:n,row:r=!1,wrap:i=!1}=e,o=u.jsx(Jl.Provider,{value:r,children:u.jsx(Ph.Provider,{value:i,children:j.Children.map(t,(a,l)=>j.isValidElement(a)?j.cloneElement(a,k({},l===0&&{"data-first-child":""},l===j.Children.count(t)-1&&{"data-last-child":""})):a)})});return n===void 0?o:u.jsx(Sa.Provider,{value:n,children:o})}const Zl=({theme:e,ownerState:t},n)=>{let r={};function i(o){if(typeof o=="function"){const a=o(e);i(a)}else Array.isArray(o)?o.forEach(a=>{typeof a!="boolean"&&i(a)}):typeof o=="object"&&(r=k({},r,o))}return t.sx&&(i(t.sx),n.forEach(o=>{const a=r[o];if(typeof a=="string"||typeof a=="number")if(o==="borderRadius")if(typeof a=="number")r[o]=`${a}px`;else{var l;r[o]=((l=e.vars)==null?void 0:l.radius[a])||a}else["p","padding","m","margin"].indexOf(o)!==-1&&typeof a=="number"?r[o]=e.spacing(a):r[o]=a;else typeof a=="function"?r[o]=a(e):r[o]=void 0})),r};function w1(e){return rt("MuiList",e)}Qe("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const I1=j.createContext(void 0),S1=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],A1=e=>{const{variant:t,color:n,size:r,nesting:i,orientation:o,instanceSize:a}=e,l={root:["root",o,t&&`variant${ye(t)}`,n&&`color${ye(n)}`,!a&&!i&&r&&`size${ye(r)}`,a&&`size${ye(a)}`,i&&"nesting"]};return st(l,w1,{})},ec=be("ul")(({theme:e,ownerState:t})=>{var n;const{p:r,padding:i,borderRadius:o}=Zl({theme:e,ownerState:t},["p","padding","borderRadius"]);function a(l){return l==="sm"?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:l==="md"?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:l==="lg"?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":t.orientation==="horizontal"?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&k({},a(t.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},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&k({},a(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.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"},e.typography[`body-${t.size}`],t.orientation==="horizontal"?k({},t.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)"},t.marker&&{paddingInlineStart:"3ch"}),k({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},(n=e.variants[t.variant])==null?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},o!==void 0&&{"--List-radius":o},r!==void 0&&{"--List-padding":r},i!==void 0&&{"--List-padding":i})]}),T1=be(ec,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E1=j.forwardRef(function(t,n){var r;const i=j.useContext(Sa),o=j.useContext(Rh),a=j.useContext(I1),l=lt({props:t,name:"JoyList"}),{component:s,className:c,children:d,size:f,orientation:h="vertical",wrap:p=!1,variant:m="plain",color:g="neutral",role:v,slots:w={},slotProps:x={}}=l,b=Ae(l,S1),I=f||((r=t.size)!=null?r:"md");let y;o&&(y="group"),a&&(y="presentation"),v&&(y=v);const S=k({},l,{instanceSize:t.size,size:I,nesting:i,orientation:h,wrap:p,variant:m,color:g,role:y}),E=A1(S),P=k({},b,{component:s,slots:w,slotProps:x}),[F,Y]=Ie("root",{ref:n,className:Ln(E.root,c),elementType:T1,externalForwardedProps:P,ownerState:S,additionalProps:{as:s,role:y,"aria-labelledby":typeof i=="string"?i:void 0}});return u.jsx(F,k({},Y,{children:u.jsx(Oh.Provider,{value:`${typeof s=="string"?s:""}:${y||""}`,children:u.jsx(Xl,{row:h==="horizontal",wrap:p,children:d})})}))}),_1=["component","color","children","disableDivider","variant","transition","size","slots","slotProps"],k1=e=>{const{variant:t,color:n,size:r}=e,i={root:["root",t&&`variant${ye(t)}`,n&&`color${ye(n)}`,r&&`size${ye(r)}`]};return st(i,C1,{})},D1=be(ec,{name:"JoyAccordionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let n={};return t.transition&&(typeof t.transition=="string"&&(n={"--AccordionDetails-transition":`grid-template-rows ${t.transition}, padding-block ${t.transition}`}),typeof t.transition=="object"&&(n={"--AccordionDetails-transition":`grid-template-rows ${t.transition.initial}, padding-block ${t.transition.initial}`,[`& .${br.root}.${br.expanded}`]:{"--AccordionDetails-transition":`grid-template-rows ${t.transition.expanded}, padding-block ${t.transition.expanded}`}})),k({"--List-padding":"0px","--ListDivider-gap":"0px"},n,!t.disableDivider&&{[`& .${i1.root}:not([data-last-child])`]:{"--Accordion-borderBottom":`1px solid ${e.vars.palette.divider}`}})}),P1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordionGroup"}),{component:i="div",color:o="neutral",children:a,disableDivider:l=!1,variant:s="plain",transition:c="0.2s ease",size:d="md",slots:f={},slotProps:h={}}=r,p=Ae(r,_1),m=k({},p,{component:i,slots:f,slotProps:h}),g=k({},r,{component:i,color:o,disableDivider:l,variant:s,transition:c,size:d}),v=k1(g),[w,x]=Ie("root",{ref:n,className:v.root,elementType:D1,externalForwardedProps:m,ownerState:g});return u.jsx(w,k({},x,{children:u.jsx(Xl,{children:a})}))}),O1=["component","children","color","variant","slots","slotProps"],R1=e=>{const{expanded:t}=e;return st({root:["root",t&&"expanded"],content:["content",t&&"expanded"]},g1,{})},M1=be("div",{name:"JoyAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n;return k({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)"},(n=t.variants[e.variant])==null?void 0:n[e.color],{[`&:not(.${br.expanded})`]:{gridTemplateRows:"0fr"}})}),L1=be("div",{name:"JoyAccordionDetails",slot:"Content",overridesResolver:(e,t)=>t.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(.${br.expanded})`]:{paddingBlock:0}}),B1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordionDetails"}),{component:i="div",children:o,color:a="neutral",variant:l="plain",slots:s={},slotProps:c={}}=r,d=Ae(r,O1),{accordionId:f,expanded:h=!1}=j.useContext(ql),p=j.useRef(null),m=sn(p,n);j.useEffect(()=>{p.current&&p.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])').forEach(E=>{if(h){const P=E.getAttribute("data-prev-tabindex"),F=E.getAttribute("tabindex");F&&P&&(E.setAttribute("tabindex",P),E.removeAttribute("data-prev-tabindex")),!P&&!F&&E.removeAttribute("tabindex")}else E.setAttribute("data-prev-tabindex",E.getAttribute("tabindex")||""),E.setAttribute("tabindex","-1")})},[h]);const g=k({},d,{component:i,slots:s,slotProps:c}),v=k({},r,{component:i,color:a,variant:l,expanded:h,nesting:!0}),w=R1(v),[x,b]=Ie("root",{ref:m,className:w.root,elementType:M1,externalForwardedProps:g,additionalProps:{id:`${f}-details`,"aria-labelledby":`${f}-summary`,role:"region",hidden:h?void 0:!0},ownerState:v}),[I,y]=Ie("content",{className:w.content,elementType:L1,externalForwardedProps:g,ownerState:v});return u.jsx(x,k({},b,{children:u.jsx(I,k({},y,{children:o}))}))});function $1(e){return rt("MuiAccordionSummary",e)}const Aa=Qe("MuiAccordionSummary",["root","button","indicator","disabled","expanded"]),Ta=Qe("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),N1=j.createContext("horizontal"),tc=be("div")(({theme:e,ownerState:t})=>{var n,r,i,o,a,l;return k({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.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)"},t.orientation==="vertical"&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},t["data-first-child"]===void 0&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.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,[e.focus.selector]:k({},e.focus.default,{zIndex:1})},(n=e.variants[t.variant])==null?void 0:n[t.color],{"&:active":(r=e.variants[`${t.variant}Active`])==null?void 0:r[t.color],[`.${Dh.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${Ta.selected}`]:k({},(i=e.variants[`${t.variant}Active`])==null?void 0:i[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${Ta.selected}, [aria-selected="true"])`]:{"&:hover":(o=e.variants[`${t.variant}Hover`])==null?void 0:o[t.color],"&:active":(a=e.variants[`${t.variant}Active`])==null?void 0:a[t.color]},[`&.${Ta.disabled}`]:k({},(l=e.variants[`${t.variant}Disabled`])==null?void 0:l[t.color])})});be(tc,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>k({},!e.row&&{[`&.${Ta.selected}`]:{fontWeight:t.vars.fontWeight.md}}));function F1(e){return rt("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const j1=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],z1=e=>{const{color:t,size:n,fontSize:r}=e,i={root:["root",t&&t!=="inherit"&&`color${ye(t)}`,n&&`size${ye(n)}`,r&&`fontSize${ye(r)}`]};return st(i,F1,{})},Bh={sm:"xl",md:"xl2",lg:"xl3"},V1=be("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;return k({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[Bh[t.instanceSize]]},t.instanceFontSize&&t.instanceFontSize!=="inherit"&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[Bh[t.size]]||"unset"})`},t.fontSize&&t.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&k({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&e.vars.palette[t.color]&&{color:`rgba(${(n=e.vars.palette[t.color])==null?void 0:n.mainChannel} / 1)`}))}),$h=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoySvgIcon"}),{children:i,className:o,color:a,component:l="svg",fontSize:s,htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",size:p="md",slots:m={},slotProps:g={}}=r,v=Ae(r,j1),w=j.isValidElement(i)&&i.type==="svg",x=k({},r,{color:a,component:l,size:p,instanceSize:t.size,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:w}),b=z1(x),I=k({},v,{component:l,slots:m,slotProps:g}),[y,S]=Ie("root",{ref:n,className:Ln(b.root,o),elementType:V1,externalForwardedProps:I,ownerState:x,additionalProps:k({color:c,focusable:!1},f&&{role:"img"},!f&&{"aria-hidden":!0},!d&&{viewBox:h},w&&i.props)});return u.jsxs(y,k({},S,{children:[w?i.props.children:i,f?u.jsx("title",{children:f}):null]}))});function nc(e,t){function n(r,i){return u.jsx($h,k({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=$h.muiName,j.memo(j.forwardRef(n))}const U1=nc(u.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");var Nh;const H1=["component","color","children","indicator","variant","slots","slotProps"],W1=e=>{const{disabled:t,expanded:n}=e;return st({root:["root",t&&"disabled",n&&"expanded"],button:["button",t&&"disabled",n&&"expanded"],indicator:["indicator",t&&"disabled",n&&"expanded"]},$1,{})},G1=be(Ql,{name:"JoyAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.vars.fontWeight.md,gap:"calc(var(--ListItem-paddingX, 0.75rem) + 0.25rem)",[`&.${Aa.expanded}`]:{"--Icon-color":"currentColor"}})),Y1=be(tc,{name:"JoyAccordionSummary",slot:"Button",overridesResolver:(e,t)=>t.button})({gap:"inherit",fontWeight:"inherit",justifyContent:"space-between",font:"inherit","&:focus-visible":{zIndex:1},[`.${Aa.root} &`]:{"--unstable_ListItem-flex":"1 0 0%"}}),K1=be("span",{name:"JoyAccordionSummary",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})({display:"inline-flex",[`&.${Aa.expanded}`]:{transform:"rotate(180deg)"}}),q1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordionSummary"}),{component:i="div",color:o="neutral",children:a,indicator:l=Nh||(Nh=u.jsx(U1,{})),variant:s="plain",slots:c={},slotProps:d={}}=r,f=Ae(r,H1),{accordionId:h,disabled:p=!1,expanded:m=!1,toggle:g}=j.useContext(ql),v=k({},f,{component:i,slots:c,slotProps:d}),w=k({},r,{component:i,color:o,disabled:p,expanded:m,variant:s}),x=Y=>{if(g&&g(Y),typeof d.button=="function"){var W,A;(W=d.button(w))==null||(A=W.onClick)==null||A.call(W,Y)}else{var U,G;(U=d.button)==null||(G=U.onClick)==null||G.call(U,Y)}},b=W1(w),[I,y]=Ie("root",{ref:n,className:b.root,elementType:G1,externalForwardedProps:v,ownerState:w}),[S,E]=Ie("button",{ref:n,className:b.button,elementType:Y1,externalForwardedProps:v,additionalProps:{component:"button",id:`${h}-summary`,"aria-expanded":m?"true":"false","aria-controls":`${h}-details`,disabled:p,type:"button",onClick:x},ownerState:w}),[P,F]=Ie("indicator",{ref:n,className:b.indicator,elementType:K1,externalForwardedProps:v,ownerState:w});return u.jsx(I,k({},y,{children:u.jsxs(S,k({},E,{children:[a,l&&u.jsx(P,k({},F,{children:l}))]}))}))}),J1=({label:e,disabled:t,children:n})=>(t=t||!1,u.jsx(P1,{variant:"outlined",transition:"0.2s",sx:{borderRadius:"md",overflow:"hidden",[`& .${Aa.button}:hover`]:{backgroundColor:"#fff"},[`& .${br.content}`]:{boxShadow:r=>`inset 0 1px ${r.vars.palette.divider}`,[`&.${br.expanded}`]:{paddingBlock:"0.75rem"}},marginBottom:"8px",backgroundColor:"#fff"},children:u.jsxs(y1,{disabled:t,children:[u.jsx(q1,{children:e}),u.jsx(B1,{variant:"soft",children:n})]})})),rc={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],[{direction:"rtl"}],[{script:"sub"},{script:"super"}],[{color:[]},{background:[]}],[{font:[]}],["link","image","video"],["clean"]]},ic=({label:e,property:t,value:n,defaultValue:r,placeholder:i,description:o,onChange:a})=>{const l=(s,c,d,f)=>{f.getText().trim()===""?a(""):a(s)};return t==="description"?u.jsxs(T.FormControl,{sx:()=>({marginBottom:"16px"}),children:[u.jsx(T.FormLabel,{color:"primary",children:e}),u.jsx(vi,{value:n||r,defaultValue:r,onChange:l,modules:rc,placeholder:i,className:"ql-container ql-toolbar"})]}):t==="mini_games_explanation"?u.jsxs(T.FormControl,{children:[u.jsx(T.FormLabel,{color:"primary",children:e}),u.jsx(vi,{value:n||r,defaultValue:r,onChange:l,modules:rc,placeholder:i,className:"ql-container ql-toolbar"}),u.jsx(T.FormHelperText,{children:o})]}):u.jsx(T.Box,{sx:()=>({marginBottom:"16px"}),children:u.jsx(vi,{value:n||r,defaultValue:r,onChange:l,modules:rc,placeholder:i})})},Q1=e=>{const t=n=>{n.persist(),e.onChange(n.target.value)};return u.jsxs(T.Tabs,{defaultValue:0,sx:{p:0,bgcolor:"transparent"},children:[u.jsxs(T.TabList,{sx:{borderRadius:0},tabFlex:"auto",children:[u.jsx(T.Tab,{children:e.labels.richText}),u.jsx(T.Tab,{children:e.labels.plainText})]}),u.jsx(T.TabPanel,{value:0,sx:{px:0},children:u.jsx(ic,{label:"",placeholder:"",defaultValue:e.defaultValue,property:"ad_content",onChange:e.onChange})}),u.jsx(T.TabPanel,{value:1,sx:{px:0},children:u.jsx(T.Textarea,{defaultValue:e.defaultValue,minRows:"7",onChange:t,sx:{marginBottom:"16px",overflow:"auto",resize:"vertical"}})})]})},X1=({label:e,defaultValue:t,values:n,description:r,onChange:i})=>{const o=(a,l)=>{i(l||"")};return u.jsxs(T.FormControl,{sx:()=>({marginBottom:"16px"}),children:[u.jsx(T.FormLabel,{color:"primary",children:e}),u.jsx(T.Select,{defaultValue:t,onChange:o,children:n.map((a,l)=>u.jsx(T.Option,{value:a,children:a},`basic-select-${a}-${l}`))}),r?u.jsx(T.FormHelperText,{children:r}):u.jsx(u.Fragment,{})]})},oc=j.createContext("md");function Z1(e){return rt("MuiTabs",e)}Qe("MuiTabs",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const eT=["children","value","defaultValue","orientation","direction","component","onChange","selectionFollowsFocus","variant","color","size","slots","slotProps"],tT=e=>{const{orientation:t,variant:n,color:r,size:i}=e,o={root:["root",t,n&&`variant${ye(n)}`,r&&`color${ye(r)}`,i&&`size${ye(i)}`]};return st(o,Z1,{})},nT=be("div",{name:"JoyTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n,r;const i=(n=t.variants[e.variant])==null?void 0:n[e.color],{bgcolor:o,backgroundColor:a,background:l,p:s,padding:c}=Zl({theme:t,ownerState:e},["bgcolor","backgroundColor","background","p","padding"]),d=Zn(t,`palette.${o}`)||o||Zn(t,`palette.${a}`)||a||l||(i==null?void 0:i.backgroundColor)||(i==null?void 0:i.background)||t.vars.palette.background.surface;return k({},e.size==="sm"&&{"--Tabs-spacing":"0.75rem"},e.size==="md"&&{"--Tabs-spacing":"1rem"},e.size==="lg"&&{"--Tabs-spacing":"1.25rem"},{"--Tab-indicatorThickness":"2px","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,"--TabList-stickyBackground":d==="transparent"?"initial":d,display:"flex",flexDirection:"column"},e.orientation==="vertical"&&{flexDirection:"row"},{backgroundColor:t.vars.palette.background.surface,position:"relative"},t.typography[`body-${e.size}`],(r=t.variants[e.variant])==null?void 0:r[e.color],s!==void 0&&{"--Tabs-padding":s},c!==void 0&&{"--Tabs-padding":c})}),Fh=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyTabs"}),{children:i,value:o,defaultValue:a,orientation:l="horizontal",direction:s="ltr",component:c,variant:d="plain",color:f="neutral",size:h="md",slots:p={},slotProps:m={}}=r,g=Ae(r,eT),v=a||(o===void 0?0:void 0),{contextValue:w}=IS(k({},r,{orientation:l,defaultValue:v})),x=k({},r,{orientation:l,direction:s,variant:d,color:f,size:h}),b=tT(x),I=k({},g,{component:c,slots:p,slotProps:m}),[y,S]=Ie("root",{ref:n,elementType:nT,externalForwardedProps:I,additionalProps:{ref:n,as:c},ownerState:x,className:b.root});return u.jsx(y,k({},S,{children:u.jsx(SS,{value:w,children:u.jsx(oc.Provider,{value:h,children:i})})}))});function rT(e){return rt("MuiTabList",e)}Qe("MuiTabList",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);function iT(e){return rt("MuiTab",e)}const ac=Qe("MuiTab",["root","disabled","focusVisible","selected","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),oT=["component","children","variant","color","size","disableUnderline","underlinePlacement","tabFlex","sticky","slots","slotProps"],aT=e=>{const{orientation:t,size:n,variant:r,color:i}=e,o={root:["root",t,r&&`variant${ye(r)}`,i&&`color${ye(i)}`,n&&`size${ye(n)}`]};return st(o,rT,{})},sT=be(ec,{name:"JoyTabList",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;const r=(n=e.variants[t.variant])==null?void 0:n[t.color];return k({"--List-gap":"0px","--ListDivider-gap":"0px","--ListItem-paddingX":"var(--Tabs-spacing)","--ListItem-gap":"0.375rem","--unstable_TabList-hasUnderline":t.disableUnderline?"var(--unknown,)":"initial"},x1,{flexGrow:"initial",flexDirection:t.orientation==="vertical"?"column":"row",borderRadius:"var(--List-radius, 0px)",padding:"var(--List-padding, 0px)",zIndex:1},t.sticky&&{position:"sticky",top:t.sticky==="top"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",bottom:t.sticky==="bottom"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",backgroundColor:(r==null?void 0:r.backgroundColor)||`var(--TabList-stickyBackground, ${e.vars.palette.background.body})`},!t.disableUnderline&&k({},t.underlinePlacement==="bottom"&&{"--unstable_TabList-underlineBottom":"1px",paddingBottom:1,boxShadow:`inset 0 -1px ${e.vars.palette.divider}`},t.underlinePlacement==="top"&&{"--unstable_TabList-underlineTop":"1px",paddingTop:1,boxShadow:`inset 0 1px ${e.vars.palette.divider}`},t.underlinePlacement==="right"&&{"--unstable_TabList-underlineRight":"1px",paddingRight:1,boxShadow:`inset -1px 0 ${e.vars.palette.divider}`},t.underlinePlacement==="left"&&{"--unstable_TabList-underlineLeft":"1px",paddingLeft:1,boxShadow:`inset 1px 0 ${e.vars.palette.divider}`}),t.tabFlex&&{[`& .${ac.root}`]:{flex:t.tabFlex}})}),jh=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyTabList"}),i=j.useContext(oc),{isRtl:o,orientation:a,getRootProps:l,contextValue:s}=_S({rootRef:n}),{component:c="div",children:d,variant:f="plain",color:h="neutral",size:p,disableUnderline:m=!1,underlinePlacement:g=a==="horizontal"?"bottom":"right",tabFlex:v,sticky:w,slots:x={},slotProps:b={}}=r,I=Ae(r,oT),y=p!=null?p:i,S=k({},r,{isRtl:o,orientation:a,variant:f,color:h,size:y,sticky:w,tabFlex:v,nesting:!1,disableUnderline:m,underlinePlacement:g}),E=aT(S),P=k({},I,{component:c,slots:x,slotProps:b}),[F,Y]=Ie("root",{ref:n,elementType:sT,getSlotProps:l,externalForwardedProps:P,ownerState:S,className:E.root});return u.jsx(F,k({},Y,{children:u.jsx(kS,{value:s,children:u.jsx(Xl,{row:a==="horizontal",nested:!0,children:d})})}))}),lT=["action","children","value","disabled","onChange","onClick","onFocus","component","orientation","variant","color","disableIndicator","indicatorPlacement","indicatorInset","slots","slotProps"],cT=e=>{const{selected:t,disabled:n,focusVisible:r,variant:i,color:o,orientation:a}=e,l={root:["root",a,n&&"disabled",r&&"focusVisible",t&&"selected",i&&`variant${ye(i)}`,o&&`color${ye(o)}`]};return st(l,iT,{})},uT=be(tc,{name:"JoyTab",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>[{flex:"initial",justifyContent:e.row?"center":"initial","--unstable_ListItemDecorator-alignItems":"center","--unstable_offset":"min(calc(-1 * var(--variant-borderWidth, 0px)), -1px)"},!e.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)"}},!e.disableIndicator&&e.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:e.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:e.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",bottom:"calc(-1px - var(--unstable_TabList-underlineBottom, 0px))"}},!e.disableIndicator&&e.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:e.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:e.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",top:"calc(-1px - var(--unstable_TabList-underlineTop, 0px))"}},!e.disableIndicator&&e.indicatorPlacement==="right"&&{paddingRight:"calc(var(--ListItem-paddingRight) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",right:"calc(-1px - var(--unstable_TabList-underlineRight, 0px))"}},!e.disableIndicator&&e.indicatorPlacement==="left"&&{paddingLeft:"calc(var(--ListItem-paddingLeft) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",left:"calc(-1px - var(--unstable_TabList-underlineLeft, 0px))"}}]),zr=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyTab"}),i=j.useContext(Jl),{action:o,children:a,disabled:l=!1,component:s="button",orientation:c="horizontal",variant:d="plain",color:f="neutral",disableIndicator:h=!1,indicatorPlacement:p=i?"bottom":"right",indicatorInset:m=!1,slots:g={},slotProps:v={}}=r,w=Ae(r,lT),x=j.useRef(null),b=sn(x,n),{active:I,focusVisible:y,setFocusVisible:S,selected:E,getRootProps:P}=PS(k({},r,{rootRef:b}));j.useImperativeHandle(o,()=>({focusVisible:()=>{S(!0),x.current.focus()}}),[S]);const F=k({},r,{disableIndicator:h,indicatorPlacement:p,indicatorInset:m,orientation:c,row:i,active:I,focusVisible:y,disabled:l,selected:E,variant:d,color:f}),Y=cT(F),W=k({},w,{component:s,slots:g,slotProps:v}),[A,U]=Ie("root",{ref:n,elementType:uT,getSlotProps:P,externalForwardedProps:W,ownerState:F,className:Y.root});return u.jsx(N1.Provider,{value:c,children:u.jsx(A,k({},U,{children:a}))})});function Fn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zh(e){if(j.isValidElement(e)||Wf.isValidElementType(e)||!Fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=zh(e[n])}),t}function Wt(e,t,n={clone:!0}){const r=n.clone?H({},e):e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])||Wf.isValidElementType(t[i])?r[i]=t[i]:Fn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Fn(e[i])?r[i]=Wt(e[i],t[i],n):n.clone?r[i]=Fn(t[i])?zh(t[i]):t[i]:r[i]=t[i]}),r}function yr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Vr(e){if(typeof e!="string")throw new Error(yr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sc(e,t){const n=H({},t);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]=H(H({},e[i]),n[i]);else if(i==="componentsProps"||i==="slotProps"){const o=e[i],a=t[i];if(!a)n[i]=o||{};else if(!o)n[i]=a;else{n[i]=H({},a);for(const l in o)if(Object.prototype.hasOwnProperty.call(o,l)){const s=l;n[i][s]=sc(o[s],a[s])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function dT(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",l=!0;for(let s=0;s<o.length;s+=1){const c=o[s];c&&(a+=(l===!0?"":" ")+t(c),l=!1,n&&n[c]&&(a+=" "+n[c]))}r[i]=a}return r}const Vh=e=>e,fT=(()=>{let e=Vh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vh}}})(),hT={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 Uh(e,t,n="Mui"){const r=hT[t];return r?`${n}-${r}`:`${fT.generate(e)}-${t}`}function pT(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Uh(e,i,n)}),r}function gT(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Gi(e,t){return t?Wt(e,t,{clone:!1}):e}function mT(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var a,l;const o=/min-width:\s*([0-9.]+)/;return+(((a=r.match(o))==null?void 0:a[1])||0)-+(((l=i.match(o))==null?void 0:l[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},H({},t)):t}function vT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function bT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function yT(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...l)=>t(e.breakpoints.up(...l),a),o.down=(...l)=>t(e.breakpoints.down(...l),a),o.between=(...l)=>t(e.breakpoints.between(...l),a),o.only=(...l)=>t(e.breakpoints.only(...l),a),o.not=(...l)=>{const s=t(e.breakpoints.not(...l),a);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const r={},i=o=>(n(r,o),r);return n(i),Z(H({},e),{containerQueries:i})}const Ea={xs:0,sm:600,md:900,lg:1200,xl:1536},Hh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ea[e]}px)`},CT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ea[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Hh;return t.reduce((a,l,s)=>(a[o.up(o.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Hh;return Object.keys(t).reduce((a,l)=>{if(vT(o.keys,l)){const s=bT(r.containerQueries?r:CT,l);s&&(a[s]=n(t[l],l))}else if(Object.keys(o.values||Ea).includes(l)){const s=o.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function xT(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function wT(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function _a(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function ka(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=_a(e,n)||r,t&&(i=t(i,r,e)),i}function it(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,c=_a(s,r)||{};return jn(a,l,f=>{let h=ka(c,i,f);return f===h&&typeof f=="string"&&(h=ka(c,i,`${t}${f==="default"?"":Vr(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function IT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ST={m:"margin",p:"padding"},AT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TT=IT(e=>{if(e.length>2)if(Wh[e])e=Wh[e];else return[e];const[t,n]=e.split(""),r=ST[t],i=AT[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),lc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lc,...cc];function Yi(e,t,n,r){var o;const i=(o=_a(e,t,!0))!=null?o:n;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 l=Math.abs(a),s=i[l];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:()=>{}}function uc(e){return Yi(e,"spacing",8)}function Ki(e,t){return typeof t=="string"||t==null?t:e(t)}function ET(e,t){return n=>e.reduce((r,i)=>(r[i]=Ki(t,n),r),{})}function _T(e,t,n,r){if(!t.includes(n))return null;const i=TT(n),o=ET(i,r),a=e[n];return jn(e,a,o)}function Gh(e,t){const n=uc(e.theme);return Object.keys(e).map(r=>_T(e,t,r,n)).reduce(Gi,{})}function Xe(e){return Gh(e,lc)}Xe.propTypes={},Xe.filterProps=lc;function Ze(e){return Gh(e,cc)}Ze.propTypes={},Ze.filterProps=cc;function Da(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Gi(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function tn(e){return typeof e!="number"?e:`${e}px solid`}function nn(e,t){return it({prop:e,themeKey:"borders",transform:t})}const kT=nn("border",tn),DT=nn("borderTop",tn),PT=nn("borderRight",tn),OT=nn("borderBottom",tn),RT=nn("borderLeft",tn),MT=nn("borderColor"),LT=nn("borderTopColor"),BT=nn("borderRightColor"),$T=nn("borderBottomColor"),NT=nn("borderLeftColor"),FT=nn("outline",tn),jT=nn("outlineColor"),Pa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ki(t,r)});return jn(e,e.borderRadius,n)}return null};Pa.propTypes={},Pa.filterProps=["borderRadius"],Da(kT,DT,PT,OT,RT,MT,LT,BT,$T,NT,Pa,FT,jT);const Oa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yi(e.theme,"spacing",8),n=r=>({gap:Ki(t,r)});return jn(e,e.gap,n)}return null};Oa.propTypes={},Oa.filterProps=["gap"];const Ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yi(e.theme,"spacing",8),n=r=>({columnGap:Ki(t,r)});return jn(e,e.columnGap,n)}return null};Ra.propTypes={},Ra.filterProps=["columnGap"];const Ma=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yi(e.theme,"spacing",8),n=r=>({rowGap:Ki(t,r)});return jn(e,e.rowGap,n)}return null};Ma.propTypes={},Ma.filterProps=["rowGap"];const zT=it({prop:"gridColumn"}),VT=it({prop:"gridRow"}),UT=it({prop:"gridAutoFlow"}),HT=it({prop:"gridAutoColumns"}),WT=it({prop:"gridAutoRows"}),GT=it({prop:"gridTemplateColumns"}),YT=it({prop:"gridTemplateRows"}),KT=it({prop:"gridTemplateAreas"}),qT=it({prop:"gridArea"});Da(Oa,Ra,Ma,zT,VT,UT,HT,WT,GT,YT,KT,qT);function Ur(e,t){return t==="grey"?t:e}const JT=it({prop:"color",themeKey:"palette",transform:Ur}),QT=it({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ur}),XT=it({prop:"backgroundColor",themeKey:"palette",transform:Ur});Da(JT,QT,XT);function Gt(e){return e<=1&&e!==0?`${e*100}%`:e}const ZT=it({prop:"width",transform:Gt}),dc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,o,a,l,s;const r=((a=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[n])||Ea[n];return r?((s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Gt(n)}};return jn(e,e.maxWidth,t)}return null};dc.filterProps=["maxWidth"];const eE=it({prop:"minWidth",transform:Gt}),tE=it({prop:"height",transform:Gt}),nE=it({prop:"maxHeight",transform:Gt}),rE=it({prop:"minHeight",transform:Gt});it({prop:"size",cssProperty:"width",transform:Gt}),it({prop:"size",cssProperty:"height",transform:Gt});const iE=it({prop:"boxSizing"});Da(ZT,dc,eE,tE,nE,rE,iE);const La={border:{themeKey:"borders",transform:tn},borderTop:{themeKey:"borders",transform:tn},borderRight:{themeKey:"borders",transform:tn},borderBottom:{themeKey:"borders",transform:tn},borderLeft:{themeKey:"borders",transform:tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pa},color:{themeKey:"palette",transform:Ur},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ur},backgroundColor:{themeKey:"palette",transform:Ur},p:{style:Ze},pt:{style:Ze},pr:{style:Ze},pb:{style:Ze},pl:{style:Ze},px:{style:Ze},py:{style:Ze},padding:{style:Ze},paddingTop:{style:Ze},paddingRight:{style:Ze},paddingBottom:{style:Ze},paddingLeft:{style:Ze},paddingX:{style:Ze},paddingY:{style:Ze},paddingInline:{style:Ze},paddingInlineStart:{style:Ze},paddingInlineEnd:{style:Ze},paddingBlock:{style:Ze},paddingBlockStart:{style:Ze},paddingBlockEnd:{style:Ze},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Oa},rowGap:{style:Ma},columnGap:{style:Ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gt},maxWidth:{style:dc},minWidth:{transform:Gt},height:{transform:Gt},maxHeight:{transform:Gt},minHeight:{transform:Gt},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 oE(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function aE(e,t){return typeof e=="function"?e(t):e}function sE(){function e(n,r,i,o){const a={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:c,transform:d,style:f}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=_a(i,c)||{};return f?f(a):jn(a,r,m=>{let g=ka(h,d,m);return m===g&&typeof m=="string"&&(g=ka(h,d,`${n}${m==="default"?"":Vr(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var l;const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=(l=i.unstable_sxConfig)!=null?l:La;function a(s){let c=s;if(typeof s=="function")c=s(i);else if(typeof s!="object")return s;if(!c)return null;const d=xT(i.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const m=aE(c[p],i);if(m!=null)if(typeof m=="object")if(o[p])h=Gi(h,e(p,m,i,o));else{const g=jn({theme:i},m,v=>({[p]:v}));oE(g,m)?h[p]=t({sx:m,theme:i}):h=Gi(h,g)}else h=Gi(h,e(p,m,i,o))}),mT(i,wT(f,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const Hr=sE();Hr.filterProps=["sx"];function lE(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uE=!1,dE=/[A-Z]|^ms/g,fE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yh=function(t){return t.charCodeAt(1)===45},Kh=function(t){return t!=null&&typeof t!="boolean"},fc=OS(function(e){return Yh(e)?e:e.replace(dE,"-$&").toLowerCase()}),qh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fE,function(r,i,o){return er={name:i,styles:o,next:er},i})}return cE[t]!==1&&!Yh(t)&&typeof n=="number"&&n!==0?n+"px":n},hE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ba(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return er={name:i.name,styles:i.styles,next:er},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)er={name:a.name,styles:a.styles,next:er},a=a.next;var l=o.styles+";";return l}return pE(e,t,n)}}var s=n;return s}function pE(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ba(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var l=a;Kh(l)&&(r+=fc(o)+":"+qh(o,l)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&uE)throw new Error(hE);if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var s=0;s<a.length;s++)Kh(a[s])&&(r+=fc(o)+":"+qh(o,a[s])+";");else{var c=Ba(e,t,a);switch(o){case"animation":case"animationName":{r+=fc(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}}return r}var Jh=/label:\s*([^\s;{]+)\s*(;|$)/g,er;function gE(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";er=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Ba(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Ba(n,t,e[l]),r){var s=o;i+=s[l]}Jh.lastIndex=0;for(var c="",d;(d=Jh.exec(i))!==null;)c+="-"+d[1];var f=lE(i)+c;return{name:f,styles:i,next:er}}/**
|
|
2333
|
+
*/var El=Symbol.for("react.transitional.element"),_l=Symbol.for("react.portal"),Xo=Symbol.for("react.fragment"),Zo=Symbol.for("react.strict_mode"),ea=Symbol.for("react.profiler"),ta=Symbol.for("react.consumer"),na=Symbol.for("react.context"),ra=Symbol.for("react.forward_ref"),ia=Symbol.for("react.suspense"),oa=Symbol.for("react.suspense_list"),aa=Symbol.for("react.memo"),sa=Symbol.for("react.lazy"),wI=Symbol.for("react.offscreen"),II=Symbol.for("react.client.reference");function Xt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case El:switch(e=e.type,e){case Xo:case ea:case Zo:case ia:case oa:return e;default:switch(e=e&&e.$$typeof,e){case na:case ra:case sa:case aa:return e;case ta:return e;default:return t}}case _l:return t}}}Be.ContextConsumer=ta,Be.ContextProvider=na,Be.Element=El,Be.ForwardRef=ra,Be.Fragment=Xo,Be.Lazy=sa,Be.Memo=aa,Be.Portal=_l,Be.Profiler=ea,Be.StrictMode=Zo,Be.Suspense=ia,Be.SuspenseList=oa,Be.isContextConsumer=function(e){return Xt(e)===ta},Be.isContextProvider=function(e){return Xt(e)===na},Be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===El},Be.isForwardRef=function(e){return Xt(e)===ra},Be.isFragment=function(e){return Xt(e)===Xo},Be.isLazy=function(e){return Xt(e)===sa},Be.isMemo=function(e){return Xt(e)===aa},Be.isPortal=function(e){return Xt(e)===_l},Be.isProfiler=function(e){return Xt(e)===ea},Be.isStrictMode=function(e){return Xt(e)===Zo},Be.isSuspense=function(e){return Xt(e)===ia},Be.isSuspenseList=function(e){return Xt(e)===oa},Be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xo||e===ea||e===Zo||e===ia||e===oa||e===wI||typeof e=="object"&&e!==null&&(e.$$typeof===sa||e.$$typeof===aa||e.$$typeof===na||e.$$typeof===ta||e.$$typeof===ra||e.$$typeof===II||e.getModuleId!==void 0)},Be.typeOf=Xt,Hf.exports=Be;var Wf=Hf.exports;function ye(e){if(typeof e!="string")throw new Error(Qo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gf(e,t){var n,r;return j.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}const SI=typeof window!="undefined"?j.useLayoutEffect:j.useEffect;let Yf=0;function AI(e){const[t,n]=j.useState(e),r=e||t;return j.useEffect(()=>{t==null&&(Yf+=1,n(`mui-${Yf}`))},[t]),r}const Kf=j.useId;function zi(e){if(Kf!==void 0){const t=Kf();return e!=null?e:t}return AI(e)}function kl({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=j.useRef(e!==void 0),[o,a]=j.useState(t),l=i?e:o,s=j.useCallback(c=>{i||a(c)},[]);return[l,s]}class Dl{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Dl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let la=!0,Pl=!1;const TI=new Dl,EI={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 _I(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&EI[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function kI(e){e.metaKey||e.altKey||e.ctrlKey||(la=!0)}function Ol(){la=!1}function DI(){this.visibilityState==="hidden"&&Pl&&(la=!0)}function PI(e){e.addEventListener("keydown",kI,!0),e.addEventListener("mousedown",Ol,!0),e.addEventListener("pointerdown",Ol,!0),e.addEventListener("touchstart",Ol,!0),e.addEventListener("visibilitychange",DI,!0)}function OI(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return la||_I(t)}function qf(){const e=j.useCallback(i=>{i!=null&&PI(i.ownerDocument)},[]),t=j.useRef(!1);function n(){return t.current?(Pl=!0,TI.start(100,()=>{Pl=!1}),t.current=!1,!0):!1}function r(i){return OI(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Jf(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=k({},o),Object.keys(i).forEach(a=>{n[r][a]=Jf(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function st(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const l=t(a);l!==""&&o.push(l),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const Qf=e=>e,RI=(()=>{let e=Qf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Qf}}})(),MI={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 Xf(e,t,n="Mui"){const r=MI[t];return r?`${n}-${r}`:`${RI.generate(e)}-${t}`}function LI(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Xf(e,i,n)}),r}function Rl(e={}){const{disabled:t=!1,focusableWhenDisabled:n,href:r,rootRef:i,tabIndex:o,to:a,type:l,rootElementName:s}=e,c=j.useRef(null),[d,f]=j.useState(!1),{isFocusVisibleRef:h,onFocus:p,onBlur:m,ref:g}=qf(),[v,w]=j.useState(!1);t&&!n&&v&&w(!1),j.useEffect(()=>{h.current=v},[v,h]);const[x,b]=yI({rootElementName:s!=null?s:r||a?"a":void 0,componentName:"Button"}),I=$=>B=>{var L;v&&B.preventDefault(),(L=$.onMouseLeave)==null||L.call($,B)},y=$=>B=>{var L;m(B),h.current===!1&&w(!1),(L=$.onBlur)==null||L.call($,B)},S=$=>B=>{var L;if(c.current||(c.current=B.currentTarget),p(B),h.current===!0){var V;w(!0),(V=$.onFocusVisible)==null||V.call($,B)}(L=$.onFocus)==null||L.call($,B)},E=()=>{const $=c.current;return x==="BUTTON"||x==="INPUT"&&["button","submit","reset"].includes($==null?void 0:$.type)||x==="A"&&($==null?void 0:$.href)},P=$=>B=>{if(!t){var L;(L=$.onClick)==null||L.call($,B)}},F=$=>B=>{var L;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),(L=$.onMouseDown)==null||L.call($,B)},Y=$=>B=>{var L;if((L=$.onKeyDown)==null||L.call($,B),!B.defaultMuiPrevented&&(B.target===B.currentTarget&&!E()&&B.key===" "&&B.preventDefault(),B.target===B.currentTarget&&B.key===" "&&!t&&f(!0),B.target===B.currentTarget&&!E()&&B.key==="Enter"&&!t)){var V;(V=$.onClick)==null||V.call($,B),B.preventDefault()}},W=$=>B=>{var L;if(B.target===B.currentTarget&&f(!1),(L=$.onKeyUp)==null||L.call($,B),B.target===B.currentTarget&&!E()&&!t&&B.key===" "&&!B.defaultMuiPrevented){var V;(V=$.onClick)==null||V.call($,B)}},A=sn(b,i,g,c),U={};return o!==void 0&&(U.tabIndex=o),x==="BUTTON"?(U.type=l!=null?l:"button",n?U["aria-disabled"]=t:U.disabled=t):x==="INPUT"?l&&["button","submit","reset"].includes(l)&&(n?U["aria-disabled"]=t:U.disabled=t):x!==""&&(!r&&!a&&(U.role="button",U.tabIndex=o!=null?o:0),t&&(U["aria-disabled"]=t,U.tabIndex=n?o!=null?o:0:-1)),{getRootProps:($={})=>{const B=k({},Mn(e),Mn($)),L=k({type:l},B,U,$,{onBlur:y(B),onClick:P(B),onFocus:S(B),onKeyDown:Y(B),onKeyUp:W(B),onMouseDown:F(B),onMouseLeave:I(B),ref:A});return delete L.onFocusVisible,L},focusVisible:v,setFocusVisible:w,active:d,rootRef:A}}function BI(e,t){return e===t}const Ml={},Zf=()=>{};function Ll(e,t){const n=k({},e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n}function $I(e){const{nextState:t,initialState:n,stateComparers:r,onStateChange:i,controlledProps:o,lastActionRef:a}=e,l=j.useRef(n);j.useEffect(()=>{if(a.current===null)return;const s=Ll(l.current,o);Object.keys(t).forEach(c=>{var d;const f=(d=r[c])!=null?d:BI,h=t[c],p=s[c];if(p==null&&h!=null||p!=null&&h==null||p!=null&&h!=null&&!f(h,p)){var m,g;i==null||i((m=a.current.event)!=null?m:null,c,h,(g=a.current.type)!=null?g:"",t)}}),l.current=t,a.current=null},[l,t,a,i,r,o])}function NI(e){const t=j.useRef(null),{reducer:n,initialState:r,controlledProps:i=Ml,stateComparers:o=Ml,onStateChange:a=Zf,actionContext:l,componentName:s=""}=e;j.useRef(i);const c=j.useCallback((p,m)=>{t.current=m;const g=Ll(p,i);return n(g,m)},[i,n]),[d,f]=j.useReducer(c,r),h=j.useCallback(p=>{f(k({},p,{context:l}))},[l]);return $I({nextState:d,initialState:r,stateComparers:o!=null?o:Ml,onStateChange:a!=null?a:Zf,controlledProps:i,lastActionRef:t}),[Ll(d,i),h]}const FI=j.createContext(void 0);function jI(){return j.useContext(FI)}function zI(e={}){const{defaultValue:t,disabled:n=!1,error:r=!1,onBlur:i,onChange:o,onFocus:a,required:l=!1,value:s,inputRef:c}=e,d=jI();let f,h,p,m,g;if(d){var v,w,x;f=void 0,h=(v=d.disabled)!=null?v:!1,p=(w=d.error)!=null?w:!1,m=(x=d.required)!=null?x:!1,g=d.value}else f=t,h=n,p=r,m=l,g=s;const{current:b}=j.useRef(g!=null),I=j.useCallback($=>{},[]),y=j.useRef(null),S=sn(y,c,I),[E,P]=j.useState(!1);j.useEffect(()=>{!d&&h&&E&&(P(!1),i==null||i())},[d,h,E,i]);const F=$=>B=>{var L;if(d!=null&&d.disabled){B.stopPropagation();return}if((L=$.onFocus)==null||L.call($,B),d&&d.onFocus){var V;d==null||(V=d.onFocus)==null||V.call(d)}else P(!0)},Y=$=>B=>{var L;(L=$.onBlur)==null||L.call($,B),d&&d.onBlur?d.onBlur():P(!1)},W=$=>(B,...L)=>{var V,q;if(!b&&(B.target||y.current)==null)throw new Error(Qo(17));d==null||(V=d.onChange)==null||V.call(d,B),(q=$.onChange)==null||q.call($,B,...L)},A=$=>B=>{var L;y.current&&B.currentTarget===B.target&&y.current.focus(),(L=$.onClick)==null||L.call($,B)};return{disabled:h,error:p,focused:E,formControlContext:d,getInputProps:($={})=>{const L=k({},{onBlur:i,onChange:o,onFocus:a},Mn($)),V=k({},L,{onBlur:Y(L),onChange:W(L),onFocus:F(L)});return k({},V,{"aria-invalid":p||void 0,defaultValue:f,value:g,required:m,disabled:h},$,{ref:S},V)},getRootProps:($={})=>{const B=Mn(e,["onBlur","onChange","onFocus"]),L=k({},B,Mn($));return k({},$,L,{onClick:A(L)})},inputRef:S,required:m,value:g}}const vt={blur:"list:blur",focus:"list:focus",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 VI(e,t,n,r,i,o){if(n.length===0||!r&&n.every((l,s)=>i(l,s)))return-1;let a=e;for(;;){if(!o&&t==="next"&&a===n.length||!o&&t==="previous"&&a===-1)return-1;if(r?!1:i(n[a],a))a+=t==="next"?1:-1,o&&(a=(a+n.length)%n.length);else return a}}function Pt(e,t,n){var r;const{items:i,isItemDisabled:o,disableListWrap:a,disabledItemsFocusable:l,itemComparer:s,focusManagement:c}=n,d=c==="DOM"?0:-1,f=i.length-1,h=e==null?-1:i.findIndex(w=>s(w,e));let p,m,g=!a;switch(t){case"reset":if(d===-1)return null;p=0,m="next",g=!1;break;case"start":p=0,m="next",g=!1;break;case"end":p=f,m="previous",g=!1;break;default:{const w=h+t;w<0?!g&&h!==-1||Math.abs(t)>1?(p=0,m="next"):(p=f,m="previous"):w>f?!g||Math.abs(t)>1?(p=f,m="previous"):(p=0,m="next"):(p=w,m=t>=0?"next":"previous")}}const v=VI(p,m,i,l,o,g);return v===-1&&e!==null&&!o(e,h)?e:(r=i[v])!=null?r:null}function UI(e,t,n,r){return n==="none"?[]:n==="single"?r(t[0],e)?t:[e]:t.some(i=>r(i,e))?t.filter(i=>!r(i,e)):[...t,e]}function eh(e,t,n){const{itemComparer:r,isItemDisabled:i,selectionMode:o,items:a}=n,{selectedValues:l}=t,s=a.findIndex(d=>r(e,d));if(i(e,s))return t;const c=UI(e,l,o,r);return k({},t,{selectedValues:c,highlightedValue:e})}function HI(e,t,n){const r=t.highlightedValue,{orientation:i,pageSize:o}=n;switch(e){case"Home":return k({},t,{highlightedValue:Pt(r,"start",n)});case"End":return k({},t,{highlightedValue:Pt(r,"end",n)});case"PageUp":return k({},t,{highlightedValue:Pt(r,-o,n)});case"PageDown":return k({},t,{highlightedValue:Pt(r,o,n)});case"ArrowUp":if(i!=="vertical")break;return k({},t,{highlightedValue:Pt(r,-1,n)});case"ArrowDown":if(i!=="vertical")break;return k({},t,{highlightedValue:Pt(r,1,n)});case"ArrowLeft":{if(i==="vertical")break;return k({},t,{highlightedValue:Pt(r,i==="horizontal-ltr"?-1:1,n)})}case"ArrowRight":{if(i==="vertical")break;return k({},t,{highlightedValue:Pt(r,i==="horizontal-ltr"?1:-1,n)})}case"Enter":case" ":return t.highlightedValue===null?t:eh(t.highlightedValue,t,n)}return t}function WI(e,t){return t.focusManagement==="DOM"?e:k({},e,{highlightedValue:null})}function GI(e,t,n){var r;const i=(r=n(e))==null?void 0:r.trim().toLowerCase();return!i||i.length===0?!1:i.indexOf(t)===0}function YI(e,t,n){const{items:r,isItemDisabled:i,disabledItemsFocusable:o,getItemAsString:a}=n,l=t.length>1;let s=l?e.highlightedValue:Pt(e.highlightedValue,1,n);for(let c=0;c<r.length;c+=1){if(!s||!l&&e.highlightedValue===s)return e;if(GI(s,t,a)&&(!i(s,r.indexOf(s))||o))return k({},e,{highlightedValue:s});s=Pt(s,1,n)}return e}function KI(e,t,n,r){var i;const{itemComparer:o,focusManagement:a}=r;let l=null;if(n.highlightedValue!=null){var s;l=(s=e.find(f=>o(f,n.highlightedValue)))!=null?s:null}else a==="DOM"&&t.length===0&&(l=Pt(null,"reset",r));const d=((i=n.selectedValues)!=null?i:[]).filter(f=>e.some(h=>o(h,f)));return k({},n,{highlightedValue:l,selectedValues:d})}function qI(e,t){return k({},e,{highlightedValue:Pt(null,"reset",t)})}function JI(e,t){return k({},e,{highlightedValue:Pt(null,"end",t)})}function QI(e,t){return k({},e,{selectedValues:[],highlightedValue:Pt(null,"reset",t)})}function th(e,t){const{type:n,context:r}=t;switch(n){case vt.keyDown:return HI(t.key,e,r);case vt.itemClick:return eh(t.item,e,r);case vt.blur:return WI(e,r);case vt.textNavigation:return YI(e,t.searchString,r);case vt.itemsChange:return KI(t.items,t.previousItems,e,r);case vt.resetHighlight:return qI(e,r);case vt.highlightLast:return JI(e,r);case vt.clearSelection:return QI(e,r);default:return e}}const XI=500;function ZI(e){const t=j.useRef({searchString:"",lastTime:null});return j.useCallback(n=>{if(n.key.length===1&&n.key!==" "){const r=t.current,i=n.key.toLowerCase(),o=performance.now();r.searchString.length>0&&r.lastTime&&o-r.lastTime>XI?r.searchString=i:(r.searchString.length!==1||i!==r.searchString)&&(r.searchString+=i),r.lastTime=o,e(r.searchString,n)}},[e])}const nh={},eS=()=>{},tS=(e,t)=>e===t,nS=()=>!1,rS=e=>typeof e=="string"?e:String(e),iS=()=>({highlightedValue:null,selectedValues:[]});function oS(e){const{controlledProps:t=nh,disabledItemsFocusable:n=!1,disableListWrap:r=!1,focusManagement:i="activeDescendant",getInitialState:o=iS,getItemDomElement:a,getItemId:l,isItemDisabled:s=nS,rootRef:c,onStateChange:d=eS,items:f,itemComparer:h=tS,getItemAsString:p=rS,onChange:m,onHighlightChange:g,onItemsChange:v,orientation:w="vertical",pageSize:x=5,reducerActionContext:b=nh,selectionMode:I="single",stateReducer:y,componentName:S="useList"}=e,E=j.useRef(null),P=sn(c,E),F=j.useCallback((oe,Q,se)=>{if(g==null||g(oe,Q,se),i==="DOM"&&Q!=null&&(se===vt.itemClick||se===vt.keyDown||se===vt.textNavigation)){var ne;a==null||(ne=a(Q))==null||ne.focus()}},[a,g,i]),Y=j.useMemo(()=>({highlightedValue:h,selectedValues:(oe,Q)=>jf(oe,Q,h)}),[h]),W=j.useCallback((oe,Q,se,ne,ge)=>{switch(d==null||d(oe,Q,se,ne,ge),Q){case"highlightedValue":F(oe,se,ne);break;case"selectedValues":m==null||m(oe,se,ne);break}},[F,m,d]),A=j.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:r,focusManagement:i,isItemDisabled:s,itemComparer:h,items:f,getItemAsString:p,onHighlightChange:F,orientation:w,pageSize:x,selectionMode:I,stateComparers:Y}),[n,r,i,s,h,f,p,F,w,x,I,Y]),U=o(),G=y!=null?y:th,$=j.useMemo(()=>k({},b,A),[b,A]),[B,L]=NI({reducer:G,actionContext:$,initialState:U,controlledProps:t,stateComparers:Y,onStateChange:W,componentName:S}),{highlightedValue:V,selectedValues:q}=B,ee=ZI((oe,Q)=>L({type:vt.textNavigation,event:Q,searchString:oe})),O=j.useRef([]);j.useEffect(()=>{jf(O.current,f,h)||(L({type:vt.itemsChange,event:null,items:f,previousItems:O.current}),O.current=f,v==null||v(f))},[f,h,L,v]);const M=oe=>Q=>{var se;if((se=oe.onKeyDown)==null||se.call(oe,Q),Q.defaultMuiPrevented)return;const ne=["Home","End","PageUp","PageDown"];w==="vertical"?ne.push("ArrowUp","ArrowDown"):ne.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&ne.push(" ","Enter"),ne.includes(Q.key)&&Q.preventDefault(),L({type:vt.keyDown,key:Q.key,event:Q}),ee(Q)},N=oe=>Q=>{var se,ne;(se=oe.onBlur)==null||se.call(oe,Q),!Q.defaultMuiPrevented&&((ne=E.current)!=null&&ne.contains(Q.relatedTarget)||L({type:vt.blur,event:Q}))},z=(oe={})=>{const Q=Mn(oe);return k({},oe,{"aria-activedescendant":i==="activeDescendant"&&V!=null?l(V):void 0,tabIndex:i==="DOM"?-1:0,ref:P},Q,{onBlur:N(Q),onKeyDown:M(Q)})},te=j.useCallback(oe=>{const Q=(q!=null?q:[]).some(ge=>ge!=null&&h(oe,ge)),se=V!=null&&h(oe,V);return{focusable:i==="DOM",highlighted:se,selected:Q}},[h,q,V,i]),ae=j.useMemo(()=>({dispatch:L,getItemState:te}),[L,te]);return j.useDebugValue({state:B}),{contextValue:ae,dispatch:L,getRootProps:z,rootRef:P,state:B}}const rh=j.createContext(null);function aS(e){const{handlePointerOverEvents:t=!1,item:n}=e,r=j.useContext(rh);if(!r)throw new Error("useListItem must be used within a ListProvider");const{dispatch:i,getItemState:o}=r,{highlighted:a,selected:l,focusable:s}=o(n),c=j.useCallback(p=>m=>{var g;(g=p.onClick)==null||g.call(p,m),!m.defaultPrevented&&i({type:vt.itemClick,item:n,event:m})},[i,n]),d=j.useCallback(p=>m=>{var g;(g=p.onMouseOver)==null||g.call(p,m),!m.defaultPrevented&&i({type:vt.itemHover,item:n,event:m})},[i,n]);let f;return s&&(f=a?0:-1),{getRootProps:(p={})=>{const m=Mn(p);return k({},p,{onClick:c(m),onPointerOver:t?d(m):void 0,tabIndex:f})},highlighted:a,selected:l}}const Bl=j.createContext(null);function sS(e){const t=Array.from(e.keys()).map(n=>{const r=e.get(n);return{key:n,subitem:r}});return t.sort((n,r)=>{const i=n.subitem.ref.current,o=r.subitem.ref.current;return i===null||o===null||i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(n=>[n.key,n.subitem]))}function ih(){const[e,t]=j.useState(new Map),n=j.useRef(new Set),r=j.useCallback(function(c){n.current.delete(c),t(d=>{const f=new Map(d);return f.delete(c),f})},[]),i=j.useCallback(function(c,d){let f;return typeof c=="function"?f=c(n.current):f=c,n.current.add(f),t(h=>{const p=new Map(h);return p.set(f,d),p}),{id:f,deregister:()=>r(f)}},[r]),o=j.useMemo(()=>sS(e),[e]),a=j.useCallback(function(c){return Array.from(o.keys()).indexOf(c)},[o]);return{contextValue:j.useMemo(()=>({getItemIndex:a,registerItem:i,totalSubitemCount:e.size}),[a,i,e.size]),subitems:o}}function oh(e,t){const n=j.useContext(Bl);if(n===null)throw new Error("useCompoundItem must be used within a useCompoundParent");const{registerItem:r}=n,[i,o]=j.useState(typeof e=="function"?void 0:e);return SI(()=>{const{id:a,deregister:l}=r(e,t);return o(a),l},[r,t,e]),{id:i,index:i!==void 0?n.getItemIndex(i):-1,totalItemCount:n.totalSubitemCount}}function lS(e,t){return function(r={}){const i=k({},r,e(r));return k({},i,t(i))}}const cS=Math.min,uS=Math.max,ca=Math.round,ua=Math.floor,da=e=>({x:e,y:e});function dS(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ah(e){return lh(e)?(e.nodeName||"").toLowerCase():"#document"}function $n(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sh(e){var t;return(t=(lh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lh(e){return e instanceof Node||e instanceof $n(e).Node}function fS(e){return e instanceof Element||e instanceof $n(e).Element}function $l(e){return e instanceof HTMLElement||e instanceof $n(e).HTMLElement}function ch(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof $n(e).ShadowRoot}function uh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Nl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hS(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pS(e){return["html","body","#document"].includes(ah(e))}function Nl(e){return $n(e).getComputedStyle(e)}function gS(e){if(ah(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ch(e)&&e.host||sh(e);return ch(t)?t.host:t}function dh(e){const t=gS(e);return pS(t)?e.ownerDocument?e.ownerDocument.body:e.body:$l(t)&&uh(t)?t:dh(t)}function fa(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=dh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=$n(i);if(o){const l=Fl(a);return t.concat(a,a.visualViewport||[],uh(i)?i:[],l&&n?fa(l):[])}return t.concat(i,fa(i,[],n))}function Fl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mS(e){const t=Nl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$l(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=ca(n)!==o||ca(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function jl(e){return fS(e)?e:e.contextElement}function fh(e){const t=jl(e);if(!$l(t))return da(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=mS(t);let a=(o?ca(n.width):n.width)/r,l=(o?ca(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const vS=da(0);function bS(e){const t=$n(e);return!hS()||!t.visualViewport?vS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yS(e,t,n){return!1}function hh(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=jl(e);let a=da(1);t&&(a=fh(e));const l=yS()?bS(o):da(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const h=$n(o),p=r;let m=h,g=Fl(m);for(;g&&r&&p!==m;){const v=fh(g),w=g.getBoundingClientRect(),x=Nl(g),b=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,I=w.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;s*=v.x,c*=v.y,d*=v.x,f*=v.y,s+=b,c+=I,m=$n(g),g=Fl(m)}}return dS({width:d,height:f,x:s,y:c})}function CS(e,t){let n=null,r;const i=sh(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const{left:c,top:d,width:f,height:h}=e.getBoundingClientRect();if(l||t(),!f||!h)return;const p=ua(d),m=ua(i.clientWidth-(c+f)),g=ua(i.clientHeight-(d+h)),v=ua(c),x={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:uS(0,cS(1,s))||1};let b=!0;function I(y){const S=y[0].intersectionRatio;if(S!==s){if(!b)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(I,Z(H({},x),{root:i.ownerDocument}))}catch(y){n=new IntersectionObserver(I,x)}n.observe(e)}return a(!0),o}function xS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,c=jl(e),d=i||o?[...c?fa(c):[],...fa(t)]:[];d.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const f=c&&l?CS(c,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),c&&!s&&p.observe(c),p.observe(t));let m,g=s?hh(e):null;s&&v();function v(){const w=hh(e);g&&(w.x!==g.x||w.y!==g.y||w.width!==g.width||w.height!==g.height)&&n(),g=w,m=requestAnimationFrame(v)}return n(),()=>{var w;d.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f==null||f(),(w=p)==null||w.disconnect(),p=null,s&&cancelAnimationFrame(m)}}function wS(e){const{checked:t,defaultChecked:n,disabled:r,onBlur:i,onChange:o,onFocus:a,onFocusVisible:l,readOnly:s,required:c}=e,[d,f]=kl({controlled:t,default:!!n,name:"Switch",state:"checked"}),h=P=>F=>{var Y;F.nativeEvent.defaultPrevented||(f(F.target.checked),o==null||o(F),(Y=P.onChange)==null||Y.call(P,F))},{isFocusVisibleRef:p,onBlur:m,onFocus:g,ref:v}=qf(),[w,x]=j.useState(!1);r&&w&&x(!1),j.useEffect(()=>{p.current=w},[w,p]);const b=j.useRef(null),I=P=>F=>{var Y;b.current||(b.current=F.currentTarget),g(F),p.current===!0&&(x(!0),l==null||l(F)),a==null||a(F),(Y=P.onFocus)==null||Y.call(P,F)},y=P=>F=>{var Y;m(F),p.current===!1&&x(!1),i==null||i(F),(Y=P.onBlur)==null||Y.call(P,F)},S=sn(v,b);return{checked:d,disabled:!!r,focusVisible:w,getInputProps:(P={})=>k({checked:t,defaultChecked:n,disabled:r,readOnly:s,ref:S,required:c,type:"checkbox",role:"switch","aria-checked":t},P,{onChange:h(P),onFocus:I(P),onBlur:y(P)}),inputRef:S,readOnly:!!s}}function IS(e){const{value:t,defaultValue:n,onChange:r,orientation:i="horizontal",direction:o="ltr",selectionFollowsFocus:a=!1}=e,[l,s]=kl({controlled:t,default:n,name:"Tabs",state:"value"}),c=j.useCallback((v,w)=>{s(w),r==null||r(v,w)},[r,s]),{subitems:d,contextValue:f}=ih(),h=j.useRef(()=>{}),p=j.useCallback(v=>{var w;return(w=d.get(v))==null?void 0:w.id},[d]),m=j.useCallback(v=>h.current(v),[]),g=j.useCallback(v=>{h.current=v},[]);return{contextValue:k({direction:o,getTabId:m,getTabPanelId:p,onSelected:c,orientation:i,registerTabIdLookup:g,selectionFollowsFocus:a,value:l},f)}}const ph=j.createContext(null);function ha(){const e=j.useContext(ph);if(e==null)throw new Error("No TabsContext provided");return e}function SS(e){const{value:t,children:n}=e,{direction:r,getItemIndex:i,onSelected:o,orientation:a,registerItem:l,registerTabIdLookup:s,selectionFollowsFocus:c,totalSubitemCount:d,value:f,getTabId:h,getTabPanelId:p}=t,m=j.useMemo(()=>({getItemIndex:i,registerItem:l,totalSubitemCount:d}),[l,i,d]),g=j.useMemo(()=>({direction:r,getTabId:h,getTabPanelId:p,onSelected:o,orientation:a,registerTabIdLookup:s,selectionFollowsFocus:c,value:f}),[r,h,p,o,a,s,c,f]);return u.jsx(Bl.Provider,{value:m,children:u.jsx(ph.Provider,{value:g,children:n})})}function AS(e){return e.size}function TS(e){const{value:t,id:n,rootRef:r}=e,i=ha();if(i===null)throw new Error("No TabContext provided");const{value:o,getTabId:a}=i,l=zi(n),s=j.useRef(null),c=sn(s,r),d=j.useMemo(()=>({id:l,ref:s}),[l]),{id:f}=oh(t!=null?t:AS,d),h=f!==o,p=f!==void 0?a(f):void 0;return{hidden:h,getRootProps:(g={})=>k({"aria-labelledby":p!=null?p:void 0,hidden:h,id:l!=null?l:void 0},g,{ref:c}),rootRef:c}}const gh={valueChange:"valueChange"};function ES(e,t){if(t.type===gh.valueChange)return k({},e,{highlightedValue:t.value});const n=th(e,t),{context:{selectionFollowsFocus:r}}=t;if(t.type===vt.itemsChange){if(n.selectedValues.length>0)return k({},n,{highlightedValue:n.selectedValues[0]});Pt(null,"reset",t.context)}return r&&n.highlightedValue!=null?k({},n,{selectedValues:[n.highlightedValue]}):n}function _S(e){var t;const{rootRef:n}=e,{direction:r="ltr",onSelected:i,orientation:o="horizontal",value:a,registerTabIdLookup:l,selectionFollowsFocus:s}=ha(),{subitems:c,contextValue:d}=ih(),f=j.useCallback(W=>{var A;return(A=c.get(W))==null?void 0:A.id},[c]);l(f);const h=j.useMemo(()=>Array.from(c.keys()),[c]),p=j.useCallback(W=>{var A,U;return W==null?null:(A=(U=c.get(W))==null?void 0:U.ref.current)!=null?A:null},[c]),m=r==="rtl";let g;o==="vertical"?g="vertical":g=m?"horizontal-rtl":"horizontal-ltr";const v=j.useCallback((W,A)=>{var U;i(W,(U=A[0])!=null?U:null)},[i]),w=j.useMemo(()=>a===void 0?{}:a!=null?{selectedValues:[a]}:{selectedValues:[]},[a]),x=j.useCallback(W=>{var A,U;return(A=(U=c.get(W))==null?void 0:U.disabled)!=null?A:!1},[c]),{contextValue:b,dispatch:I,getRootProps:y,state:{highlightedValue:S,selectedValues:E},rootRef:P}=oS({controlledProps:w,disabledItemsFocusable:!s,focusManagement:"DOM",getItemDomElement:p,isItemDisabled:x,items:h,rootRef:n,onChange:v,orientation:g,reducerActionContext:j.useMemo(()=>({selectionFollowsFocus:s||!1}),[s]),selectionMode:"single",stateReducer:ES});j.useEffect(()=>{a!==void 0&&a!=null&&I({type:gh.valueChange,value:a})},[I,a]);const F=(W={})=>k({},W,y(W),{"aria-orientation":o==="vertical"?"vertical":void 0,role:"tablist"});return{contextValue:j.useMemo(()=>k({},d,b),[d,b]),dispatch:I,getRootProps:F,highlightedValue:S,isRtl:m,orientation:o,rootRef:P,selectedValue:(t=E[0])!=null?t:null}}function kS(e){const{value:t,children:n}=e,{dispatch:r,getItemIndex:i,getItemState:o,registerItem:a,totalSubitemCount:l}=t,s=j.useMemo(()=>({dispatch:r,getItemState:o,getItemIndex:i}),[r,i,o]),c=j.useMemo(()=>({getItemIndex:i,registerItem:a,totalSubitemCount:l}),[a,i,l]);return u.jsx(Bl.Provider,{value:c,children:u.jsx(rh.Provider,{value:s,children:n})})}function DS(e){return e.size}function PS(e){const{value:t,rootRef:n,disabled:r=!1,id:i}=e,o=j.useRef(null),a=zi(i),{value:l,selectionFollowsFocus:s,getTabPanelId:c}=ha(),d=j.useMemo(()=>({disabled:r,ref:o,id:a}),[r,o,a]),{id:f,index:h,totalItemCount:p}=oh(t!=null?t:DS,d),{getRootProps:m,highlighted:g,selected:v}=aS({item:f}),{getRootProps:w,rootRef:x,active:b,focusVisible:I,setFocusVisible:y}=Rl({disabled:r,focusableWhenDisabled:!s,type:"button"}),S=sn(o,n,x),E=f!==void 0?c(f):void 0;return{getRootProps:(F={})=>{const Y=Mn(F),W=lS(m,w);return k({},F,W(Y),{role:"tab","aria-controls":E,"aria-selected":v,id:a,ref:S})},active:b,focusVisible:I,highlighted:g,index:h,rootRef:S,selected:v||f===l,setFocusVisible:y,totalTabsCount:p}}const mh="$$joy";function OS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}function RS(e,t){return Lt(e,t)}const MS=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},LS=["values","unit","step"],BS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function vh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ae(e,LS),o=BS(t),a=Object.keys(o);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function s(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,p){const m=a.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:p)-r/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?c(h,a[a.indexOf(h)+1]):l(h)}function f(h){const p=a.indexOf(h);return p===0?l(a[1]):p===a.length-1?s(a[p]):c(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return k({keys:a,values:o,up:l,down:s,between:c,only:d,not:f,unit:n},i)}const $S={borderRadius:4};function Vi(e,t){return t?Bn(e,t,{clone:!1}):e}const zl={xs:0,sm:600,md:900,lg:1200,xl:1536},bh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zl[e]}px)`};function Nn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||bh;return t.reduce((a,l,s)=>(a[o.up(o.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const o=r.breakpoints||bh;return Object.keys(t).reduce((a,l)=>{if(Object.keys(o.values||zl).indexOf(l)!==-1){const s=o.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function NS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function FS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Zn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function pa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Zn(e,n)||r,t&&(i=t(i,r,e)),i}function nt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,c=Zn(s,r)||{};return Nn(a,l,f=>{let h=pa(c,i,f);return f===h&&typeof f=="string"&&(h=pa(c,i,`${t}${f==="default"?"":ye(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function jS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zS={m:"margin",p:"padding"},VS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},US=jS(e=>{if(e.length>2)if(yh[e])e=yh[e];else return[e];const[t,n]=e.split(""),r=zS[t],i=VS[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Vl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ul=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Vl,...Ul];function Ui(e,t,n,r){var i;const o=(i=Zn(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function Ch(e){return Ui(e,"spacing",8)}function Hi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function HS(e,t){return n=>e.reduce((r,i)=>(r[i]=Hi(t,n),r),{})}function WS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=US(n),o=HS(i,r),a=e[n];return Nn(e,a,o)}function xh(e,t){const n=Ch(e.theme);return Object.keys(e).map(r=>WS(e,t,r,n)).reduce(Vi,{})}function qe(e){return xh(e,Vl)}qe.propTypes={},qe.filterProps=Vl;function Je(e){return xh(e,Ul)}Je.propTypes={},Je.filterProps=Ul;function wh(e=8){if(e.mui)return e;const t=Ch({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function ga(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Vi(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Zt(e){return typeof e!="number"?e:`${e}px solid`}function en(e,t){return nt({prop:e,themeKey:"borders",transform:t})}const GS=en("border",Zt),YS=en("borderTop",Zt),KS=en("borderRight",Zt),qS=en("borderBottom",Zt),JS=en("borderLeft",Zt),QS=en("borderColor"),XS=en("borderTopColor"),ZS=en("borderRightColor"),eA=en("borderBottomColor"),tA=en("borderLeftColor"),nA=en("outline",Zt),rA=en("outlineColor"),ma=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ui(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Hi(t,r)});return Nn(e,e.borderRadius,n)}return null};ma.propTypes={},ma.filterProps=["borderRadius"],ga(GS,YS,KS,qS,JS,QS,XS,ZS,eA,tA,ma,nA,rA);const va=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ui(e.theme,"spacing",8),n=r=>({gap:Hi(t,r)});return Nn(e,e.gap,n)}return null};va.propTypes={},va.filterProps=["gap"];const ba=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ui(e.theme,"spacing",8),n=r=>({columnGap:Hi(t,r)});return Nn(e,e.columnGap,n)}return null};ba.propTypes={},ba.filterProps=["columnGap"];const ya=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ui(e.theme,"spacing",8),n=r=>({rowGap:Hi(t,r)});return Nn(e,e.rowGap,n)}return null};ya.propTypes={},ya.filterProps=["rowGap"];const iA=nt({prop:"gridColumn"}),oA=nt({prop:"gridRow"}),aA=nt({prop:"gridAutoFlow"}),sA=nt({prop:"gridAutoColumns"}),lA=nt({prop:"gridAutoRows"}),cA=nt({prop:"gridTemplateColumns"}),uA=nt({prop:"gridTemplateRows"}),dA=nt({prop:"gridTemplateAreas"}),fA=nt({prop:"gridArea"});ga(va,ba,ya,iA,oA,aA,sA,lA,cA,uA,dA,fA);function jr(e,t){return t==="grey"?t:e}const hA=nt({prop:"color",themeKey:"palette",transform:jr}),pA=nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jr}),gA=nt({prop:"backgroundColor",themeKey:"palette",transform:jr});ga(hA,pA,gA);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const mA=nt({prop:"width",transform:Ht}),Hl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||zl[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ht(n)}};return Nn(e,e.maxWidth,t)}return null};Hl.filterProps=["maxWidth"];const vA=nt({prop:"minWidth",transform:Ht}),bA=nt({prop:"height",transform:Ht}),yA=nt({prop:"maxHeight",transform:Ht}),CA=nt({prop:"minHeight",transform:Ht});nt({prop:"size",cssProperty:"width",transform:Ht}),nt({prop:"size",cssProperty:"height",transform:Ht});const xA=nt({prop:"boxSizing"});ga(mA,Hl,vA,bA,yA,CA,xA);const Ca={border:{themeKey:"borders",transform:Zt},borderTop:{themeKey:"borders",transform:Zt},borderRight:{themeKey:"borders",transform:Zt},borderBottom:{themeKey:"borders",transform:Zt},borderLeft:{themeKey:"borders",transform:Zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ma},color:{themeKey:"palette",transform:jr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jr},backgroundColor:{themeKey:"palette",transform:jr},p:{style:Je},pt:{style:Je},pr:{style:Je},pb:{style:Je},pl:{style:Je},px:{style:Je},py:{style:Je},padding:{style:Je},paddingTop:{style:Je},paddingRight:{style:Je},paddingBottom:{style:Je},paddingLeft:{style:Je},paddingX:{style:Je},paddingY:{style:Je},paddingInline:{style:Je},paddingInlineStart:{style:Je},paddingInlineEnd:{style:Je},paddingBlock:{style:Je},paddingBlockStart:{style:Je},paddingBlockEnd:{style:Je},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:va},rowGap:{style:ya},columnGap:{style:ba},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Hl},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wA(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function IA(e,t){return typeof e=="function"?e(t):e}function SA(){function e(n,r,i,o){const a={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:c,transform:d,style:f}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Zn(i,c)||{};return f?f(a):Nn(a,r,m=>{let g=pa(h,d,m);return m===g&&typeof m=="string"&&(g=pa(h,d,`${n}${m==="default"?"":ye(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:Ca;function l(s){let c=s;if(typeof s=="function")c=s(o);else if(typeof s!="object")return s;if(!c)return null;const d=NS(o.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const m=IA(c[p],o);if(m!=null)if(typeof m=="object")if(a[p])h=Vi(h,e(p,m,o,a));else{const g=Nn({theme:o},m,v=>({[p]:v}));wA(g,m)?h[p]=t({sx:m,theme:o}):h=Vi(h,g)}else h=Vi(h,e(p,m,o,a))}),FS(f,h)}return Array.isArray(i)?i.map(l):l(i)}return t}const xa=SA();xa.filterProps=["sx"];function Ih(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const AA=["breakpoints","palette","spacing","shape"];function Sh(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ae(e,AA),l=vh(n),s=wh(i);let c=Bn({breakpoints:l,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:s,shape:k({},$S,o)},a);return c.applyStyles=Ih,c=t.reduce((d,f)=>Bn(d,f),c),c.unstable_sxConfig=k({},Ca,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(f){return xa({sx:f,theme:this})},c}function TA(e){return Object.keys(e).length===0}function EA(e=null){const t=j.useContext(pe.ThemeContext);return!t||TA(t)?e:t}const _A=Sh();function kA(e=_A){return EA(e)}const DA=["sx"],PA=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ca;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function OA(e){const{sx:t}=e,n=Ae(e,DA),{systemProps:r,otherProps:i}=PA(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const l=t(...a);return Xn(l)?k({},r,l):r}:o=k({},r,t),k({},i,{sx:o})}const RA=["ownerState"],MA=["variants"],LA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BA(e){return Object.keys(e).length===0}function $A(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Wl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const NA=Sh(),FA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function wa({defaultTheme:e,theme:t,themeId:n}){return BA(t)?e:t[n]||t}function jA(e){return e?(t,n)=>n[e]:null}function Ia(e,t){let{ownerState:n}=t,r=Ae(t,RA);const i=typeof e=="function"?e(k({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>Ia(o,k({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=Ae(i,MA);return o.forEach(s=>{let c=!0;typeof s.props=="function"?c=s.props(k({ownerState:n},r,n)):Object.keys(s.props).forEach(d=>{(n==null?void 0:n[d])!==s.props[d]&&r[d]!==s.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(k({ownerState:n},r,n)):s.style))}),l}return i}function zA(e={}){const{themeId:t,defaultTheme:n=NA,rootShouldForwardProp:r=Wl,slotShouldForwardProp:i=Wl}=e,o=a=>xa(k({},a,{theme:wa(k({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,l={})=>{MS(a,y=>y.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:s,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=jA(FA(c))}=l,p=Ae(l,LA),m=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=f||!1;let v,w=Wl;c==="Root"||c==="root"?w=r:c?w=i:$A(a)&&(w=void 0);const x=RS(a,k({shouldForwardProp:w,label:v},p)),b=y=>typeof y=="function"&&y.__emotion_real!==y||Xn(y)?S=>Ia(y,k({},S,{theme:wa({theme:S.theme,defaultTheme:n,themeId:t})})):y,I=(y,...S)=>{let E=b(y);const P=S?S.map(b):[];s&&h&&P.push(W=>{const A=wa(k({},W,{defaultTheme:n,themeId:t}));if(!A.components||!A.components[s]||!A.components[s].styleOverrides)return null;const U=A.components[s].styleOverrides,G={};return Object.entries(U).forEach(([$,B])=>{G[$]=Ia(B,k({},W,{theme:A}))}),h(W,G)}),s&&!m&&P.push(W=>{var A;const U=wa(k({},W,{defaultTheme:n,themeId:t})),G=U==null||(A=U.components)==null||(A=A[s])==null?void 0:A.variants;return Ia({variants:G},k({},W,{theme:U}))}),g||P.push(o);const F=P.length-S.length;if(Array.isArray(y)&&F>0){const W=new Array(F).fill("");E=[...y,...W],E.raw=[...y.raw,...W]}const Y=x(E,...P);return a.muiName&&(Y.muiName=a.muiName),Y};return x.withConfig&&(I.withConfig=x.withConfig),I}}function VA(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Jf(t.components[n].defaultProps,r)}function UA({props:e,name:t,defaultTheme:n,themeId:r}){let i=kA(n);return r&&(i=i[r]||i),VA({theme:i,name:t,props:e})}function HA(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ah(e){if(e.type)return e;if(e.charAt(0)==="#")return Ah(HA(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Qo(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Qo(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const mr=e=>{const t=Ah(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};function Gl(e=""){function t(...r){if(!r.length)return"";const i=r[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(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Th=(e,t,n,r=[])=>{let i=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},WA=(e,t,n)=>{function r(i,o=[],a=[]){Object.entries(i).forEach(([l,s])=>{(!n||n&&!n([...o,l]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...o,l],Array.isArray(s)?[...a,l]:a):t([...o,l],s,a))})}r(e)},GA=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Yl(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},a={};return WA(e,(l,s,c)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(l,s))){const d=`--${n?`${n}-`:""}${l.join("-")}`;Object.assign(i,{[d]:GA(l,s)}),Th(o,l,`var(${d})`,c),Th(a,l,`var(${d}, ${s})`,c)}},l=>l[0]==="vars"),{css:i,vars:o,varsWithDefaults:a}}function vr(e){"@babel/helpers - typeof";return vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vr(e)}function YA(e,t){if(vr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kl(e){var t=YA(e,"string");return vr(t)=="symbol"?t:t+""}const KA=["colorSchemes","components","defaultColorScheme"];function qA(e,t){const{colorSchemes:n={},defaultColorScheme:r="light"}=e,i=Ae(e,KA),{vars:o,css:a,varsWithDefaults:l}=Yl(i,t);let s=l;const c={},{[r]:d}=n,f=Ae(n,[r].map(Kl));if(Object.entries(f||{}).forEach(([p,m])=>{const{vars:g,css:v,varsWithDefaults:w}=Yl(m,t);s=Bn(s,w),c[p]={css:v,vars:g}}),d){const{css:p,vars:m,varsWithDefaults:g}=Yl(d,t);s=Bn(s,g),c[r]={css:p,vars:m}}return{vars:s,generateCssVars:p=>{var m;if(!p){var g;const w=k({},a);return{css:w,vars:o,selector:(t==null||(g=t.getSelector)==null?void 0:g.call(t,p,w))||":root"}}const v=k({},c[p].css);return{css:v,vars:c[p].vars,selector:(t==null||(m=t.getSelector)==null?void 0:m.call(t,p,v))||":root"}}}}const JA=k({},Ca,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}}),Wi={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}};function QA(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}const rt=(e,t)=>Xf(e,t,"Mui"),Qe=(e,t)=>LI(e,t,"Mui"),XA=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var n;return(n=t.match)==null?void 0:n.call(t,/^(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))$/)}),Eh=(e,t,n)=>{t.includes("Color")&&(e.color=n),t.includes("Bg")&&(e.backgroundColor=n),t.includes("Border")&&(e.borderColor=n)},_h=(e,t,n)=>{const r={};return Object.entries(t||{}).forEach(([i,o])=>{if(i.match(new RegExp(`${e}(color|bg|border)`,"i"))&&o){const a=n?n(i):o;i.includes("Disabled")&&(r.pointerEvents="none",r.cursor="default",r["--Icon-color"]="currentColor"),i.match(/(Hover|Active|Disabled)/)||(r["--variant-borderWidth"]||(r["--variant-borderWidth"]="0px"),i.includes("Border")&&(r["--variant-borderWidth"]="1px",r.border="var(--variant-borderWidth) solid")),Eh(r,i,a)}}),r},Tt=(e,t)=>{let n={};if(t){const{getCssVar:r,palette:i}=t;Object.entries(i).forEach(o=>{const[a,l]=o;XA(l)&&typeof l=="object"&&(n=k({},n,{[a]:_h(e,l,s=>`var(--variant-${s}, ${r(`palette-${a}-${s}`,i[a][s])})`)}))})}return n.context=_h(e,{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)"}),n},ZA=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],e1=["colorSchemes"],t1=(e="joy")=>Gl(e);function n1(e){var t,n,r,i,o,a,l,s,c,d;const f={},{cssVarPrefix:h="joy",breakpoints:p,spacing:m,components:g,variants:v,shouldSkipGeneratingVar:w=QA}=f,x=Ae(f,ZA),b=t1(h),I={primary:Wi.blue,neutral:Wi.grey,danger:Wi.red,success:Wi.green,warning:Wi.yellow,common:{white:"#FFF",black:"#000"}},y=Q=>{var se;const ne=Q.split("-"),ge=ne[1],Se=ne[2];return b(Q,(se=I[ge])==null?void 0:se[Se])},S=Q=>({plainColor:y(`palette-${Q}-500`),plainHoverBg:y(`palette-${Q}-100`),plainActiveBg:y(`palette-${Q}-200`),plainDisabledColor:y("palette-neutral-400"),outlinedColor:y(`palette-${Q}-500`),outlinedBorder:y(`palette-${Q}-300`),outlinedHoverBg:y(`palette-${Q}-100`),outlinedActiveBg:y(`palette-${Q}-200`),outlinedDisabledColor:y("palette-neutral-400"),outlinedDisabledBorder:y("palette-neutral-200"),softColor:y(`palette-${Q}-700`),softBg:y(`palette-${Q}-100`),softHoverBg:y(`palette-${Q}-200`),softActiveColor:y(`palette-${Q}-800`),softActiveBg:y(`palette-${Q}-300`),softDisabledColor:y("palette-neutral-400"),softDisabledBg:y("palette-neutral-50"),solidColor:y("palette-common-white"),solidBg:y(`palette-${Q}-500`),solidHoverBg:y(`palette-${Q}-600`),solidActiveBg:y(`palette-${Q}-700`),solidDisabledColor:y("palette-neutral-400"),solidDisabledBg:y("palette-neutral-100")}),E=Q=>({plainColor:y(`palette-${Q}-300`),plainHoverBg:y(`palette-${Q}-800`),plainActiveBg:y(`palette-${Q}-700`),plainDisabledColor:y("palette-neutral-500"),outlinedColor:y(`palette-${Q}-200`),outlinedBorder:y(`palette-${Q}-700`),outlinedHoverBg:y(`palette-${Q}-800`),outlinedActiveBg:y(`palette-${Q}-700`),outlinedDisabledColor:y("palette-neutral-500"),outlinedDisabledBorder:y("palette-neutral-800"),softColor:y(`palette-${Q}-200`),softBg:y(`palette-${Q}-800`),softHoverBg:y(`palette-${Q}-700`),softActiveColor:y(`palette-${Q}-100`),softActiveBg:y(`palette-${Q}-600`),softDisabledColor:y("palette-neutral-500"),softDisabledBg:y("palette-neutral-800"),solidColor:y("palette-common-white"),solidBg:y(`palette-${Q}-500`),solidHoverBg:y(`palette-${Q}-600`),solidActiveBg:y(`palette-${Q}-700`),solidDisabledColor:y("palette-neutral-500"),solidDisabledBg:y("palette-neutral-800")}),P={palette:{mode:"light",primary:k({},I.primary,S("primary")),neutral:k({},I.neutral,S("neutral"),{plainColor:y("palette-neutral-700"),plainHoverColor:y("palette-neutral-900"),outlinedColor:y("palette-neutral-700")}),danger:k({},I.danger,S("danger")),success:k({},I.success,S("success")),warning:k({},I.warning,S("warning")),common:{white:"#FFF",black:"#000"},text:{primary:y("palette-neutral-800"),secondary:y("palette-neutral-700"),tertiary:y("palette-neutral-600"),icon:y("palette-neutral-500")},background:{body:y("palette-common-white"),surface:y("palette-neutral-50"),popup:y("palette-common-white"),level1:y("palette-neutral-100"),level2:y("palette-neutral-200"),level3:y("palette-neutral-300"),tooltip:y("palette-neutral-500"),backdrop:`rgba(${b("palette-neutral-darkChannel",mr(I.neutral[900]))} / 0.25)`},divider:`rgba(${b("palette-neutral-mainChannel",mr(I.neutral[500]))} / 0.2)`,focusVisible:y("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},F={palette:{mode:"dark",primary:k({},I.primary,E("primary")),neutral:k({},I.neutral,E("neutral"),{plainColor:y("palette-neutral-300"),plainHoverColor:y("palette-neutral-300")}),danger:k({},I.danger,E("danger")),success:k({},I.success,E("success")),warning:k({},I.warning,E("warning")),common:{white:"#FFF",black:"#000"},text:{primary:y("palette-neutral-100"),secondary:y("palette-neutral-300"),tertiary:y("palette-neutral-400"),icon:y("palette-neutral-400")},background:{body:y("palette-common-black"),surface:y("palette-neutral-900"),popup:y("palette-common-black"),level1:y("palette-neutral-800"),level2:y("palette-neutral-700"),level3:y("palette-neutral-600"),tooltip:y("palette-neutral-600"),backdrop:`rgba(${b("palette-neutral-darkChannel",mr(I.neutral[50]))} / 0.25)`},divider:`rgba(${b("palette-neutral-mainChannel",mr(I.neutral[500]))} / 0.16)`,focusVisible:y("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},Y='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',W=k({body:`"Inter", ${b(`fontFamily-fallback, ${Y}`)}`,display:`"Inter", ${b(`fontFamily-fallback, ${Y}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:Y},x.fontFamily),A=k({sm:300,md:500,lg:600,xl:700},x.fontWeight),U=k({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},x.fontSize),G=k({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},x.lineHeight),$=(t=(n=x.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowRing)!=null?t:P.shadowRing,B=(r=(i=x.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowChannel)!=null?r:P.shadowChannel,L=(o=(a=x.colorSchemes)==null||(a=a.light)==null?void 0:a.shadowOpacity)!=null?o:P.shadowOpacity,V={colorSchemes:{light:P,dark:F},fontSize:U,fontFamily:W,fontWeight:A,focus:{thickness:"2px",selector:`&.${rt("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${b("focus-thickness",(l=(s=x.focus)==null?void 0:s.thickness)!=null?l:"2px")})`,outline:`${b("focus-thickness",(c=(d=x.focus)==null?void 0:d.thickness)!=null?c:"2px")} solid ${b("palette-focusVisible",I.primary[500])}`}},lineHeight:G,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${b("shadowRing",$)}, 0px 1px 2px 0px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,sm:`${b("shadowRing",$)}, 0px 1px 2px 0px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 2px 4px 0px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,md:`${b("shadowRing",$)}, 0px 2px 8px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 6px 12px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,lg:`${b("shadowRing",$)}, 0px 2px 8px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 12px 16px -4px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`,xl:`${b("shadowRing",$)}, 0px 2px 8px -2px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)}), 0px 20px 24px -4px rgba(${b("shadowChannel",B)} / ${b("shadowOpacity",L)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-xl, ${A.xl}`),fontSize:b(`fontSize-xl4, ${U.xl4}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},h2:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-xl, ${A.xl}`),fontSize:b(`fontSize-xl3, ${U.xl3}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},h3:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-lg, ${A.lg}`),fontSize:b(`fontSize-xl2, ${U.xl2}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},h4:{fontFamily:b(`fontFamily-display, ${W.display}`),fontWeight:b(`fontWeight-lg, ${A.lg}`),fontSize:b(`fontSize-xl, ${U.xl}`),lineHeight:b(`lineHeight-md, ${G.md}`),letterSpacing:"-0.025em",color:b(`palette-text-primary, ${P.palette.text.primary}`)},"title-lg":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-lg, ${A.lg}`),fontSize:b(`fontSize-lg, ${U.lg}`),lineHeight:b(`lineHeight-xs, ${G.xs}`),color:b(`palette-text-primary, ${P.palette.text.primary}`)},"title-md":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-md, ${A.md}`),fontSize:b(`fontSize-md, ${U.md}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-primary, ${P.palette.text.primary}`)},"title-sm":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-md, ${A.md}`),fontSize:b(`fontSize-sm, ${U.sm}`),lineHeight:b(`lineHeight-sm, ${G.sm}`),color:b(`palette-text-primary, ${P.palette.text.primary}`)},"body-lg":{fontFamily:b(`fontFamily-body, ${W.body}`),fontSize:b(`fontSize-lg, ${U.lg}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-secondary, ${P.palette.text.secondary}`)},"body-md":{fontFamily:b(`fontFamily-body, ${W.body}`),fontSize:b(`fontSize-md, ${U.md}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-secondary, ${P.palette.text.secondary}`)},"body-sm":{fontFamily:b(`fontFamily-body, ${W.body}`),fontSize:b(`fontSize-sm, ${U.sm}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-tertiary, ${P.palette.text.tertiary}`)},"body-xs":{fontFamily:b(`fontFamily-body, ${W.body}`),fontWeight:b(`fontWeight-md, ${A.md}`),fontSize:b(`fontSize-xs, ${U.xs}`),lineHeight:b(`lineHeight-md, ${G.md}`),color:b(`palette-text-tertiary, ${P.palette.text.tertiary}`)}}},q=x?Bn(V,x):V,{colorSchemes:ee}=q,O=Ae(q,e1),M=k({colorSchemes:ee},O,{breakpoints:vh(p!=null?p:{}),components:Bn({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:Q,theme:se})=>{var ne;const ge=Q.instanceFontSize;return k({margin:"var(--Icon-margin)"},Q.fontSize&&Q.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${se.vars.fontSize[Q.fontSize]})`},!Q.htmlColor&&k({color:`var(--Icon-color, ${M.vars.palette.text.icon})`},Q.color&&Q.color!=="inherit"&&se.vars.palette[Q.color]&&{color:`rgba(${(ne=se.vars.palette[Q.color])==null?void 0:ne.mainChannel} / 1)`}),ge&&ge!=="inherit"&&{"--Icon-fontSize":se.vars.fontSize[ge]})}}}},g),cssVarPrefix:h,getCssVar:b,spacing:wh(m)});function N(Q,se){Object.keys(se).forEach(ne=>{const ge={main:"500",light:"200",dark:"700"};Q==="dark"&&(ge.main=400),!se[ne].mainChannel&&se[ne][ge.main]&&(se[ne].mainChannel=mr(se[ne][ge.main])),!se[ne].lightChannel&&se[ne][ge.light]&&(se[ne].lightChannel=mr(se[ne][ge.light])),!se[ne].darkChannel&&se[ne][ge.dark]&&(se[ne].darkChannel=mr(se[ne][ge.dark]))})}Object.entries(M.colorSchemes).forEach(([Q,se])=>{N(Q,se.palette)});const z={prefix:h,shouldSkipGeneratingVar:w},{vars:te,generateCssVars:ae}=qA(k({colorSchemes:ee},O),z);M.vars=te,M.generateCssVars=ae,M.unstable_sxConfig=k({},JA,void 0),M.unstable_sx=function(se){return xa({sx:se,theme:this})},M.getColorSchemeSelector=Q=>Q==="light"?"&":`&[data-joy-color-scheme="${Q}"], [data-joy-color-scheme="${Q}"] &`;const oe={getCssVar:b,palette:M.colorSchemes.light.palette};return M.variants=Bn({plain:Tt("plain",oe),plainHover:Tt("plainHover",oe),plainActive:Tt("plainActive",oe),plainDisabled:Tt("plainDisabled",oe),outlined:Tt("outlined",oe),outlinedHover:Tt("outlinedHover",oe),outlinedActive:Tt("outlinedActive",oe),outlinedDisabled:Tt("outlinedDisabled",oe),soft:Tt("soft",oe),softHover:Tt("softHover",oe),softActive:Tt("softActive",oe),softDisabled:Tt("softDisabled",oe),solid:Tt("solid",oe),solidHover:Tt("solidHover",oe),solidActive:Tt("solidActive",oe),solidDisabled:Tt("solidDisabled",oe)},v),M.palette=k({},M.colorSchemes.light.palette,{colorScheme:"light"}),M.shouldSkipGeneratingVar=w,M.applyStyles=Ih,M}const kh=n1(),be=zA({defaultTheme:kh,themeId:mh});function lt({props:e,name:t}){return UA({props:e,name:t,defaultTheme:k({},kh,{components:{}}),themeId:mh})}function r1(e){return rt("MuiAccordion",e)}const i1=Qe("MuiAccordion",["root","expanded","disabled"]),o1=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],a1=["component","slots","slotProps"],s1=["component"];function Ie(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,getSlotOwnerState:a,internalForwardedProps:l}=t,s=Ae(t,o1),{component:c,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=o,h=Ae(o,a1),p=d[e]||r,m=bI(f[e],i),g=xI(k({className:n},s,{externalForwardedProps:e==="root"?h:void 0,externalSlotProps:m})),{props:{component:v},internalRef:w}=g,x=Ae(g.props,s1),b=sn(w,m==null?void 0:m.ref,t.ref),I=a?a(x):{},y=k({},i,I),S=e==="root"?v||c:v,E=vI(p,k({},e==="root"&&!c&&!d[e]&&l,e!=="root"&&!d[e]&&l,x,S&&{as:S},{ref:b}),y);return Object.keys(I).forEach(P=>{delete E[P]}),[p,E]}const ql=j.createContext({});function l1(e){return rt("MuiListItem",e)}const Dh=Qe("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),Sa=j.createContext(!1),Jl=j.createContext(!1),Ph=j.createContext(!1),Oh=j.createContext(void 0),c1=j.createContext(void 0),Rh=j.createContext(void 0),u1=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],d1=e=>{const{sticky:t,nested:n,nesting:r,variant:i,color:o}=e,a={root:["root",n&&"nested",r&&"nesting",t&&"sticky",o&&`color${ye(o)}`,i&&`variant${ye(i)}`],startAction:["startAction"],endAction:["endAction"]};return st(a,l1,{})},Ql=be("li")(({theme:e,ownerState:t})=>{var n;return[!t.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)"},t.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"},k({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.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:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},t["data-first-child"]===void 0&&k({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:`var(--ListItem-stickyBackground, ${e.vars.palette.background.body})`},{[`.${Dh.nested} > &`]:{"--_ListItem-display":"flex"}}),(n=e.variants[t.variant])==null?void 0:n[t.color]]}),f1=be(Ql,{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})({}),h1=be("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),p1=be("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),Mh=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyListItem"}),i=j.useContext(Rh),o=j.useContext(Oh),a=j.useContext(Jl),l=j.useContext(Ph),s=j.useContext(Sa),{component:c,className:d,children:f,nested:h=!1,sticky:p=!1,variant:m="plain",color:g="neutral",startAction:v,endAction:w,role:x,slots:b={},slotProps:I={}}=r,y=Ae(r,u1),[S,E]=j.useState(""),[P,F]=(o==null?void 0:o.split(":"))||["",""],Y=c||(P&&!P.match(/^(ul|ol|menu)$/)?"div":void 0);let W=i==="menu"?"none":void 0;o&&(W={menu:"none",menubar:"none",group:"presentation"}[F]),x&&(W=x);const A=k({},r,{sticky:p,startAction:v,endAction:w,row:a,wrap:l,variant:m,color:g,nesting:s,nested:h,component:Y,role:W}),U=d1(A),G=k({},y,{component:Y,slots:b,slotProps:I}),[$,B]=Ie("root",{additionalProps:{role:W},ref:n,className:Ln(U.root,d),elementType:f1,externalForwardedProps:G,ownerState:A}),[L,V]=Ie("startAction",{className:U.startAction,elementType:h1,externalForwardedProps:G,ownerState:A}),[q,ee]=Ie("endAction",{className:U.endAction,elementType:p1,externalForwardedProps:G,ownerState:A});return u.jsx(c1.Provider,{value:E,children:u.jsx(Sa.Provider,{value:h?S||!0:!1,children:u.jsxs($,k({},B,{children:[v&&u.jsx(L,k({},V,{children:v})),j.Children.map(f,(O,M)=>{var N;return j.isValidElement(O)?j.cloneElement(O,k({},M===0&&{"data-first-child":""},Gf(O,["ListItem"])&&{component:((N=O.props)==null?void 0:N.component)||"div"})):O}),w&&u.jsx(q,k({},ee,{children:w}))]}))})})});Mh.muiName="ListItem";const Lh=Mh;function g1(e){return rt("MuiAccordionDetails",e)}const br=Qe("MuiAccordionDetails",["root","content","expanded"]),m1=["accordionId","component","color","children","defaultExpanded","disabled","expanded","onChange","variant","slots","slotProps"],v1=e=>{const{variant:t,color:n,expanded:r,disabled:i}=e,o={root:["root",r&&"expanded",i&&"disabled",n&&`color${ye(n)}`,t&&`variant${ye(t)}`]};return st(o,r1,{})},b1=be(Ql,{name:"JoyAccordion",slot:"Root",overridesResolver:(e,t)=>t.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"},[`& .${br.root}`]:{"--AccordionDetails-radius":"0 0 var(--unstable_List-childRadius) var(--unstable_List-childRadius)"}},"&:not([data-first-child]):not([data-last-child])":{"--ListItem-radius":"0"}}),y1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordion"}),{accordionId:i,component:o="div",color:a="neutral",children:l,defaultExpanded:s=!1,disabled:c=!1,expanded:d,onChange:f,variant:h="plain",slots:p={},slotProps:m={}}=r,g=Ae(r,m1),v=zi(i),[w,x]=kl({controlled:d,default:s,name:"Accordion",state:"expanded"}),b=j.useCallback(Y=>{x(!w),f&&f(Y,!w)},[w,f,x]),I=j.useMemo(()=>({accordionId:v,expanded:w,disabled:c,toggle:b}),[v,w,c,b]),y=k({},g,{component:o,slots:p,slotProps:m}),S=k({},r,{component:o,color:a,variant:h,expanded:w,disabled:c,nested:!0}),E=v1(S),[P,F]=Ie("root",{ref:n,className:E.root,elementType:b1,externalForwardedProps:y,ownerState:S});return u.jsx(ql.Provider,{value:I,children:u.jsx(P,k({},F,{children:j.Children.map(l,(Y,W)=>j.isValidElement(Y)&&W===0?j.cloneElement(Y,{"data-first-child":""}):Y)}))})});function C1(e){return rt("MuiAccordionGroup",e)}Qe("MuiAccordionGroup",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const x1={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};function Xl(e){const{children:t,nested:n,row:r=!1,wrap:i=!1}=e,o=u.jsx(Jl.Provider,{value:r,children:u.jsx(Ph.Provider,{value:i,children:j.Children.map(t,(a,l)=>j.isValidElement(a)?j.cloneElement(a,k({},l===0&&{"data-first-child":""},l===j.Children.count(t)-1&&{"data-last-child":""})):a)})});return n===void 0?o:u.jsx(Sa.Provider,{value:n,children:o})}const Zl=({theme:e,ownerState:t},n)=>{let r={};function i(o){if(typeof o=="function"){const a=o(e);i(a)}else Array.isArray(o)?o.forEach(a=>{typeof a!="boolean"&&i(a)}):typeof o=="object"&&(r=k({},r,o))}return t.sx&&(i(t.sx),n.forEach(o=>{const a=r[o];if(typeof a=="string"||typeof a=="number")if(o==="borderRadius")if(typeof a=="number")r[o]=`${a}px`;else{var l;r[o]=((l=e.vars)==null?void 0:l.radius[a])||a}else["p","padding","m","margin"].indexOf(o)!==-1&&typeof a=="number"?r[o]=e.spacing(a):r[o]=a;else typeof a=="function"?r[o]=a(e):r[o]=void 0})),r};function w1(e){return rt("MuiList",e)}Qe("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);const I1=j.createContext(void 0),S1=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],A1=e=>{const{variant:t,color:n,size:r,nesting:i,orientation:o,instanceSize:a}=e,l={root:["root",o,t&&`variant${ye(t)}`,n&&`color${ye(n)}`,!a&&!i&&r&&`size${ye(r)}`,a&&`size${ye(a)}`,i&&"nesting"]};return st(l,w1,{})},ec=be("ul")(({theme:e,ownerState:t})=>{var n;const{p:r,padding:i,borderRadius:o}=Zl({theme:e,ownerState:t},["p","padding","borderRadius"]);function a(l){return l==="sm"?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"3px","--ListItem-paddingX":t.marker?"3px":"0.5rem","--ListItem-gap":"0.5rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:l==="md"?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.25rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":t.marker?"0.25rem":"0.75rem","--ListItem-gap":"0.625rem","--ListItemDecorator-size":t.orientation==="horizontal"?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:l==="lg"?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"2.75rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":t.marker?"0.5rem":"1rem","--ListItem-gap":"0.75rem","--ListItemDecorator-size":t.orientation==="horizontal"?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&k({},a(t.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},t.marker&&{paddingInlineStart:"calc(3ch - var(--_List-markerDeduct, 0px))"},{marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&k({},a(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)"},t.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"},e.typography[`body-${t.size}`],t.orientation==="horizontal"?k({},t.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)"},t.marker&&{paddingInlineStart:"3ch"}),k({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:t.orientation==="horizontal"?"row":"column"},t.wrap&&{flexWrap:"wrap"},t.marker&&{"--_List-markerDisplay":"list-item","--_List-markerType":t.marker,lineHeight:"calc(var(--ListItem-minHeight) - 2 * var(--ListItem-paddingY))"},{flexGrow:1,position:"relative"},(n=e.variants[t.variant])==null?void 0:n[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},o!==void 0&&{"--List-radius":o},r!==void 0&&{"--List-padding":r},i!==void 0&&{"--List-padding":i})]}),T1=be(ec,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),E1=j.forwardRef(function(t,n){var r;const i=j.useContext(Sa),o=j.useContext(Rh),a=j.useContext(I1),l=lt({props:t,name:"JoyList"}),{component:s,className:c,children:d,size:f,orientation:h="vertical",wrap:p=!1,variant:m="plain",color:g="neutral",role:v,slots:w={},slotProps:x={}}=l,b=Ae(l,S1),I=f||((r=t.size)!=null?r:"md");let y;o&&(y="group"),a&&(y="presentation"),v&&(y=v);const S=k({},l,{instanceSize:t.size,size:I,nesting:i,orientation:h,wrap:p,variant:m,color:g,role:y}),E=A1(S),P=k({},b,{component:s,slots:w,slotProps:x}),[F,Y]=Ie("root",{ref:n,className:Ln(E.root,c),elementType:T1,externalForwardedProps:P,ownerState:S,additionalProps:{as:s,role:y,"aria-labelledby":typeof i=="string"?i:void 0}});return u.jsx(F,k({},Y,{children:u.jsx(Oh.Provider,{value:`${typeof s=="string"?s:""}:${y||""}`,children:u.jsx(Xl,{row:h==="horizontal",wrap:p,children:d})})}))}),_1=["component","color","children","disableDivider","variant","transition","size","slots","slotProps"],k1=e=>{const{variant:t,color:n,size:r}=e,i={root:["root",t&&`variant${ye(t)}`,n&&`color${ye(n)}`,r&&`size${ye(r)}`]};return st(i,C1,{})},D1=be(ec,{name:"JoyAccordionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let n={};return t.transition&&(typeof t.transition=="string"&&(n={"--AccordionDetails-transition":`grid-template-rows ${t.transition}, padding-block ${t.transition}`}),typeof t.transition=="object"&&(n={"--AccordionDetails-transition":`grid-template-rows ${t.transition.initial}, padding-block ${t.transition.initial}`,[`& .${br.root}.${br.expanded}`]:{"--AccordionDetails-transition":`grid-template-rows ${t.transition.expanded}, padding-block ${t.transition.expanded}`}})),k({"--List-padding":"0px","--ListDivider-gap":"0px"},n,!t.disableDivider&&{[`& .${i1.root}:not([data-last-child])`]:{"--Accordion-borderBottom":`1px solid ${e.vars.palette.divider}`}})}),P1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordionGroup"}),{component:i="div",color:o="neutral",children:a,disableDivider:l=!1,variant:s="plain",transition:c="0.2s ease",size:d="md",slots:f={},slotProps:h={}}=r,p=Ae(r,_1),m=k({},p,{component:i,slots:f,slotProps:h}),g=k({},r,{component:i,color:o,disableDivider:l,variant:s,transition:c,size:d}),v=k1(g),[w,x]=Ie("root",{ref:n,className:v.root,elementType:D1,externalForwardedProps:m,ownerState:g});return u.jsx(w,k({},x,{children:u.jsx(Xl,{children:a})}))}),O1=["component","children","color","variant","slots","slotProps"],R1=e=>{const{expanded:t}=e;return st({root:["root",t&&"expanded"],content:["content",t&&"expanded"]},g1,{})},M1=be("div",{name:"JoyAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n;return k({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)"},(n=t.variants[e.variant])==null?void 0:n[e.color],{[`&:not(.${br.expanded})`]:{gridTemplateRows:"0fr"}})}),L1=be("div",{name:"JoyAccordionDetails",slot:"Content",overridesResolver:(e,t)=>t.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(.${br.expanded})`]:{paddingBlock:0}}),B1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordionDetails"}),{component:i="div",children:o,color:a="neutral",variant:l="plain",slots:s={},slotProps:c={}}=r,d=Ae(r,O1),{accordionId:f,expanded:h=!1}=j.useContext(ql),p=j.useRef(null),m=sn(p,n);j.useEffect(()=>{p.current&&p.current.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])').forEach(E=>{if(h){const P=E.getAttribute("data-prev-tabindex"),F=E.getAttribute("tabindex");F&&P&&(E.setAttribute("tabindex",P),E.removeAttribute("data-prev-tabindex")),!P&&!F&&E.removeAttribute("tabindex")}else E.setAttribute("data-prev-tabindex",E.getAttribute("tabindex")||""),E.setAttribute("tabindex","-1")})},[h]);const g=k({},d,{component:i,slots:s,slotProps:c}),v=k({},r,{component:i,color:a,variant:l,expanded:h,nesting:!0}),w=R1(v),[x,b]=Ie("root",{ref:m,className:w.root,elementType:M1,externalForwardedProps:g,additionalProps:{id:`${f}-details`,"aria-labelledby":`${f}-summary`,role:"region",hidden:h?void 0:!0},ownerState:v}),[I,y]=Ie("content",{className:w.content,elementType:L1,externalForwardedProps:g,ownerState:v});return u.jsx(x,k({},b,{children:u.jsx(I,k({},y,{children:o}))}))});function $1(e){return rt("MuiAccordionSummary",e)}const Aa=Qe("MuiAccordionSummary",["root","button","indicator","disabled","expanded"]),Ta=Qe("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]),N1=j.createContext("horizontal"),tc=be("div")(({theme:e,ownerState:t})=>{var n,r,i,o,a,l;return k({"--Icon-margin":"initial","--Icon-color":t.color!=="neutral"||t.variant==="solid"?"currentColor":e.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)"},t.orientation==="vertical"&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},t["data-first-child"]===void 0&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.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,[e.focus.selector]:k({},e.focus.default,{zIndex:1})},(n=e.variants[t.variant])==null?void 0:n[t.color],{"&:active":(r=e.variants[`${t.variant}Active`])==null?void 0:r[t.color],[`.${Dh.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${Ta.selected}`]:k({},(i=e.variants[`${t.variant}Active`])==null?void 0:i[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${Ta.selected}, [aria-selected="true"])`]:{"&:hover":(o=e.variants[`${t.variant}Hover`])==null?void 0:o[t.color],"&:active":(a=e.variants[`${t.variant}Active`])==null?void 0:a[t.color]},[`&.${Ta.disabled}`]:k({},(l=e.variants[`${t.variant}Disabled`])==null?void 0:l[t.color])})});be(tc,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>k({},!e.row&&{[`&.${Ta.selected}`]:{fontWeight:t.vars.fontWeight.md}}));function F1(e){return rt("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);const j1=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],z1=e=>{const{color:t,size:n,fontSize:r}=e,i={root:["root",t&&t!=="inherit"&&`color${ye(t)}`,n&&`size${ye(n)}`,r&&`fontSize${ye(r)}`]};return st(i,F1,{})},Bh={sm:"xl",md:"xl2",lg:"xl3"},V1=be("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;return k({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[Bh[t.instanceSize]]},t.instanceFontSize&&t.instanceFontSize!=="inherit"&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[Bh[t.size]]||"unset"})`},t.fontSize&&t.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&k({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&e.vars.palette[t.color]&&{color:`rgba(${(n=e.vars.palette[t.color])==null?void 0:n.mainChannel} / 1)`}))}),$h=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoySvgIcon"}),{children:i,className:o,color:a,component:l="svg",fontSize:s,htmlColor:c,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",size:p="md",slots:m={},slotProps:g={}}=r,v=Ae(r,j1),w=j.isValidElement(i)&&i.type==="svg",x=k({},r,{color:a,component:l,size:p,instanceSize:t.size,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:w}),b=z1(x),I=k({},v,{component:l,slots:m,slotProps:g}),[y,S]=Ie("root",{ref:n,className:Ln(b.root,o),elementType:V1,externalForwardedProps:I,ownerState:x,additionalProps:k({color:c,focusable:!1},f&&{role:"img"},!f&&{"aria-hidden":!0},!d&&{viewBox:h},w&&i.props)});return u.jsxs(y,k({},S,{children:[w?i.props.children:i,f?u.jsx("title",{children:f}):null]}))});function nc(e,t){function n(r,i){return u.jsx($h,k({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=$h.muiName,j.memo(j.forwardRef(n))}const U1=nc(u.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");var Nh;const H1=["component","color","children","indicator","variant","slots","slotProps"],W1=e=>{const{disabled:t,expanded:n}=e;return st({root:["root",t&&"disabled",n&&"expanded"],button:["button",t&&"disabled",n&&"expanded"],indicator:["indicator",t&&"disabled",n&&"expanded"]},$1,{})},G1=be(Ql,{name:"JoyAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.vars.fontWeight.md,gap:"calc(var(--ListItem-paddingX, 0.75rem) + 0.25rem)",[`&.${Aa.expanded}`]:{"--Icon-color":"currentColor"}})),Y1=be(tc,{name:"JoyAccordionSummary",slot:"Button",overridesResolver:(e,t)=>t.button})({gap:"inherit",fontWeight:"inherit",justifyContent:"space-between",font:"inherit","&:focus-visible":{zIndex:1},[`.${Aa.root} &`]:{"--unstable_ListItem-flex":"1 0 0%"}}),K1=be("span",{name:"JoyAccordionSummary",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})({display:"inline-flex",[`&.${Aa.expanded}`]:{transform:"rotate(180deg)"}}),q1=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyAccordionSummary"}),{component:i="div",color:o="neutral",children:a,indicator:l=Nh||(Nh=u.jsx(U1,{})),variant:s="plain",slots:c={},slotProps:d={}}=r,f=Ae(r,H1),{accordionId:h,disabled:p=!1,expanded:m=!1,toggle:g}=j.useContext(ql),v=k({},f,{component:i,slots:c,slotProps:d}),w=k({},r,{component:i,color:o,disabled:p,expanded:m,variant:s}),x=Y=>{if(g&&g(Y),typeof d.button=="function"){var W,A;(W=d.button(w))==null||(A=W.onClick)==null||A.call(W,Y)}else{var U,G;(U=d.button)==null||(G=U.onClick)==null||G.call(U,Y)}},b=W1(w),[I,y]=Ie("root",{ref:n,className:b.root,elementType:G1,externalForwardedProps:v,ownerState:w}),[S,E]=Ie("button",{ref:n,className:b.button,elementType:Y1,externalForwardedProps:v,additionalProps:{component:"button",id:`${h}-summary`,"aria-expanded":m?"true":"false","aria-controls":`${h}-details`,disabled:p,type:"button",onClick:x},ownerState:w}),[P,F]=Ie("indicator",{ref:n,className:b.indicator,elementType:K1,externalForwardedProps:v,ownerState:w});return u.jsx(I,k({},y,{children:u.jsxs(S,k({},E,{children:[a,l&&u.jsx(P,k({},F,{children:l}))]}))}))}),J1=({label:e,disabled:t,children:n})=>(t=t||!1,u.jsx(P1,{variant:"outlined",transition:"0.2s",sx:{borderRadius:"md",overflow:"hidden",[`& .${Aa.button}:hover`]:{backgroundColor:"#fff"},[`& .${br.content}`]:{boxShadow:r=>`inset 0 1px ${r.vars.palette.divider}`,[`&.${br.expanded}`]:{paddingBlock:"0.75rem"}},marginBottom:"8px",backgroundColor:"#fff"},children:u.jsxs(y1,{disabled:t,children:[u.jsx(q1,{children:e}),u.jsx(B1,{variant:"soft",children:n})]})})),rc={toolbar:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike","blockquote"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],[{direction:"rtl"}],[{script:"sub"},{script:"super"}],[{color:[]},{background:[]}],[{font:[]}],["link","image","video"],["clean"]]},ic=({label:e,property:t,value:n,defaultValue:r,placeholder:i,description:o,onChange:a})=>{const l=(s,c,d,f)=>{d!=="api"&&(f.getText().trim()===""?a(""):a(s))};return t==="description"?u.jsxs(T.FormControl,{sx:()=>({marginBottom:"16px"}),children:[u.jsx(T.FormLabel,{color:"primary",children:e}),u.jsx(vi,{value:n||r,defaultValue:r,onChange:l,modules:rc,placeholder:i,className:"ql-container ql-toolbar"})]}):t==="mini_games_explanation"?u.jsxs(T.FormControl,{children:[u.jsx(T.FormLabel,{color:"primary",children:e}),u.jsx(vi,{value:n||r,defaultValue:r,onChange:l,modules:rc,placeholder:i,className:"ql-container ql-toolbar"}),u.jsx(T.FormHelperText,{children:o})]}):u.jsx(T.Box,{sx:()=>({marginBottom:"16px"}),children:u.jsx(vi,{value:n||r,defaultValue:r,onChange:l,modules:rc,placeholder:i})})},Q1=e=>{const t=n=>{n.persist(),e.onChange(n.target.value)};return u.jsxs(T.Tabs,{defaultValue:0,sx:{p:0,bgcolor:"transparent"},children:[u.jsxs(T.TabList,{sx:{borderRadius:0},tabFlex:"auto",children:[u.jsx(T.Tab,{children:e.labels.richText}),u.jsx(T.Tab,{children:e.labels.plainText})]}),u.jsx(T.TabPanel,{value:0,sx:{px:0},children:u.jsx(ic,{label:"",placeholder:"",defaultValue:e.defaultValue,property:"ad_content",onChange:e.onChange})}),u.jsx(T.TabPanel,{value:1,sx:{px:0},children:u.jsx(T.Textarea,{defaultValue:e.defaultValue,minRows:"7",onChange:t,sx:{marginBottom:"16px",overflow:"auto",resize:"vertical"}})})]})},X1=({label:e,defaultValue:t,values:n,description:r,onChange:i})=>{const o=(a,l)=>{i(l||"")};return u.jsxs(T.FormControl,{sx:()=>({marginBottom:"16px"}),children:[u.jsx(T.FormLabel,{color:"primary",children:e}),u.jsx(T.Select,{defaultValue:t,onChange:o,children:n.map((a,l)=>u.jsx(T.Option,{value:a,children:a},`basic-select-${a}-${l}`))}),r?u.jsx(T.FormHelperText,{children:r}):u.jsx(u.Fragment,{})]})},oc=j.createContext("md");function Z1(e){return rt("MuiTabs",e)}Qe("MuiTabs",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);const eT=["children","value","defaultValue","orientation","direction","component","onChange","selectionFollowsFocus","variant","color","size","slots","slotProps"],tT=e=>{const{orientation:t,variant:n,color:r,size:i}=e,o={root:["root",t,n&&`variant${ye(n)}`,r&&`color${ye(r)}`,i&&`size${ye(i)}`]};return st(o,Z1,{})},nT=be("div",{name:"JoyTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n,r;const i=(n=t.variants[e.variant])==null?void 0:n[e.color],{bgcolor:o,backgroundColor:a,background:l,p:s,padding:c}=Zl({theme:t,ownerState:e},["bgcolor","backgroundColor","background","p","padding"]),d=Zn(t,`palette.${o}`)||o||Zn(t,`palette.${a}`)||a||l||(i==null?void 0:i.backgroundColor)||(i==null?void 0:i.background)||t.vars.palette.background.surface;return k({},e.size==="sm"&&{"--Tabs-spacing":"0.75rem"},e.size==="md"&&{"--Tabs-spacing":"1rem"},e.size==="lg"&&{"--Tabs-spacing":"1.25rem"},{"--Tab-indicatorThickness":"2px","--Icon-color":e.color!=="neutral"||e.variant==="solid"?"currentColor":t.vars.palette.text.icon,"--TabList-stickyBackground":d==="transparent"?"initial":d,display:"flex",flexDirection:"column"},e.orientation==="vertical"&&{flexDirection:"row"},{backgroundColor:t.vars.palette.background.surface,position:"relative"},t.typography[`body-${e.size}`],(r=t.variants[e.variant])==null?void 0:r[e.color],s!==void 0&&{"--Tabs-padding":s},c!==void 0&&{"--Tabs-padding":c})}),Fh=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyTabs"}),{children:i,value:o,defaultValue:a,orientation:l="horizontal",direction:s="ltr",component:c,variant:d="plain",color:f="neutral",size:h="md",slots:p={},slotProps:m={}}=r,g=Ae(r,eT),v=a||(o===void 0?0:void 0),{contextValue:w}=IS(k({},r,{orientation:l,defaultValue:v})),x=k({},r,{orientation:l,direction:s,variant:d,color:f,size:h}),b=tT(x),I=k({},g,{component:c,slots:p,slotProps:m}),[y,S]=Ie("root",{ref:n,elementType:nT,externalForwardedProps:I,additionalProps:{ref:n,as:c},ownerState:x,className:b.root});return u.jsx(y,k({},S,{children:u.jsx(SS,{value:w,children:u.jsx(oc.Provider,{value:h,children:i})})}))});function rT(e){return rt("MuiTabList",e)}Qe("MuiTabList",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);function iT(e){return rt("MuiTab",e)}const ac=Qe("MuiTab",["root","disabled","focusVisible","selected","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]),oT=["component","children","variant","color","size","disableUnderline","underlinePlacement","tabFlex","sticky","slots","slotProps"],aT=e=>{const{orientation:t,size:n,variant:r,color:i}=e,o={root:["root",t,r&&`variant${ye(r)}`,i&&`color${ye(i)}`,n&&`size${ye(n)}`]};return st(o,rT,{})},sT=be(ec,{name:"JoyTabList",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;const r=(n=e.variants[t.variant])==null?void 0:n[t.color];return k({"--List-gap":"0px","--ListDivider-gap":"0px","--ListItem-paddingX":"var(--Tabs-spacing)","--ListItem-gap":"0.375rem","--unstable_TabList-hasUnderline":t.disableUnderline?"var(--unknown,)":"initial"},x1,{flexGrow:"initial",flexDirection:t.orientation==="vertical"?"column":"row",borderRadius:"var(--List-radius, 0px)",padding:"var(--List-padding, 0px)",zIndex:1},t.sticky&&{position:"sticky",top:t.sticky==="top"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",bottom:t.sticky==="bottom"?"calc(-1 * var(--Tabs-padding, 0px))":"initial",backgroundColor:(r==null?void 0:r.backgroundColor)||`var(--TabList-stickyBackground, ${e.vars.palette.background.body})`},!t.disableUnderline&&k({},t.underlinePlacement==="bottom"&&{"--unstable_TabList-underlineBottom":"1px",paddingBottom:1,boxShadow:`inset 0 -1px ${e.vars.palette.divider}`},t.underlinePlacement==="top"&&{"--unstable_TabList-underlineTop":"1px",paddingTop:1,boxShadow:`inset 0 1px ${e.vars.palette.divider}`},t.underlinePlacement==="right"&&{"--unstable_TabList-underlineRight":"1px",paddingRight:1,boxShadow:`inset -1px 0 ${e.vars.palette.divider}`},t.underlinePlacement==="left"&&{"--unstable_TabList-underlineLeft":"1px",paddingLeft:1,boxShadow:`inset 1px 0 ${e.vars.palette.divider}`}),t.tabFlex&&{[`& .${ac.root}`]:{flex:t.tabFlex}})}),jh=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyTabList"}),i=j.useContext(oc),{isRtl:o,orientation:a,getRootProps:l,contextValue:s}=_S({rootRef:n}),{component:c="div",children:d,variant:f="plain",color:h="neutral",size:p,disableUnderline:m=!1,underlinePlacement:g=a==="horizontal"?"bottom":"right",tabFlex:v,sticky:w,slots:x={},slotProps:b={}}=r,I=Ae(r,oT),y=p!=null?p:i,S=k({},r,{isRtl:o,orientation:a,variant:f,color:h,size:y,sticky:w,tabFlex:v,nesting:!1,disableUnderline:m,underlinePlacement:g}),E=aT(S),P=k({},I,{component:c,slots:x,slotProps:b}),[F,Y]=Ie("root",{ref:n,elementType:sT,getSlotProps:l,externalForwardedProps:P,ownerState:S,className:E.root});return u.jsx(F,k({},Y,{children:u.jsx(kS,{value:s,children:u.jsx(Xl,{row:a==="horizontal",nested:!0,children:d})})}))}),lT=["action","children","value","disabled","onChange","onClick","onFocus","component","orientation","variant","color","disableIndicator","indicatorPlacement","indicatorInset","slots","slotProps"],cT=e=>{const{selected:t,disabled:n,focusVisible:r,variant:i,color:o,orientation:a}=e,l={root:["root",a,n&&"disabled",r&&"focusVisible",t&&"selected",i&&`variant${ye(i)}`,o&&`color${ye(o)}`]};return st(l,iT,{})},uT=be(tc,{name:"JoyTab",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>[{flex:"initial",justifyContent:e.row?"center":"initial","--unstable_ListItemDecorator-alignItems":"center","--unstable_offset":"min(calc(-1 * var(--variant-borderWidth, 0px)), -1px)"},!e.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)"}},!e.disableIndicator&&e.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:e.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:e.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",bottom:"calc(-1px - var(--unstable_TabList-underlineBottom, 0px))"}},!e.disableIndicator&&e.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:e.indicatorInset?"var(--ListItem-paddingLeft)":"var(--unstable_offset)",right:e.indicatorInset?"var(--ListItem-paddingRight)":"var(--unstable_offset)",top:"calc(-1px - var(--unstable_TabList-underlineTop, 0px))"}},!e.disableIndicator&&e.indicatorPlacement==="right"&&{paddingRight:"calc(var(--ListItem-paddingRight) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",right:"calc(-1px - var(--unstable_TabList-underlineRight, 0px))"}},!e.disableIndicator&&e.indicatorPlacement==="left"&&{paddingLeft:"calc(var(--ListItem-paddingLeft) + var(--Tab-indicatorThickness) - 1px)","&::after":{height:"var(--Tab-indicatorSize)",width:"var(--Tab-indicatorThickness)",top:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",bottom:e.indicatorInset?"var(--ListItem-paddingY)":"var(--unstable_offset)",left:"calc(-1px - var(--unstable_TabList-underlineLeft, 0px))"}}]),zr=j.forwardRef(function(t,n){const r=lt({props:t,name:"JoyTab"}),i=j.useContext(Jl),{action:o,children:a,disabled:l=!1,component:s="button",orientation:c="horizontal",variant:d="plain",color:f="neutral",disableIndicator:h=!1,indicatorPlacement:p=i?"bottom":"right",indicatorInset:m=!1,slots:g={},slotProps:v={}}=r,w=Ae(r,lT),x=j.useRef(null),b=sn(x,n),{active:I,focusVisible:y,setFocusVisible:S,selected:E,getRootProps:P}=PS(k({},r,{rootRef:b}));j.useImperativeHandle(o,()=>({focusVisible:()=>{S(!0),x.current.focus()}}),[S]);const F=k({},r,{disableIndicator:h,indicatorPlacement:p,indicatorInset:m,orientation:c,row:i,active:I,focusVisible:y,disabled:l,selected:E,variant:d,color:f}),Y=cT(F),W=k({},w,{component:s,slots:g,slotProps:v}),[A,U]=Ie("root",{ref:n,elementType:uT,getSlotProps:P,externalForwardedProps:W,ownerState:F,className:Y.root});return u.jsx(N1.Provider,{value:c,children:u.jsx(A,k({},U,{children:a}))})});function Fn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zh(e){if(j.isValidElement(e)||Wf.isValidElementType(e)||!Fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=zh(e[n])}),t}function Wt(e,t,n={clone:!0}){const r=n.clone?H({},e):e;return Fn(e)&&Fn(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])||Wf.isValidElementType(t[i])?r[i]=t[i]:Fn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Fn(e[i])?r[i]=Wt(e[i],t[i],n):n.clone?r[i]=Fn(t[i])?zh(t[i]):t[i]:r[i]=t[i]}),r}function yr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Vr(e){if(typeof e!="string")throw new Error(yr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sc(e,t){const n=H({},t);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]=H(H({},e[i]),n[i]);else if(i==="componentsProps"||i==="slotProps"){const o=e[i],a=t[i];if(!a)n[i]=o||{};else if(!o)n[i]=a;else{n[i]=H({},a);for(const l in o)if(Object.prototype.hasOwnProperty.call(o,l)){const s=l;n[i][s]=sc(o[s],a[s])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function dT(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let a="",l=!0;for(let s=0;s<o.length;s+=1){const c=o[s];c&&(a+=(l===!0?"":" ")+t(c),l=!1,n&&n[c]&&(a+=" "+n[c]))}r[i]=a}return r}const Vh=e=>e,fT=(()=>{let e=Vh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vh}}})(),hT={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 Uh(e,t,n="Mui"){const r=hT[t];return r?`${n}-${r}`:`${fT.generate(e)}-${t}`}function pT(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Uh(e,i,n)}),r}function gT(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Gi(e,t){return t?Wt(e,t,{clone:!1}):e}function mT(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var a,l;const o=/min-width:\s*([0-9.]+)/;return+(((a=r.match(o))==null?void 0:a[1])||0)-+(((l=i.match(o))==null?void 0:l[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},H({},t)):t}function vT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function bT(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function yT(e){const t=(o,a)=>o.replace("@media",a?`@container ${a}`:"@container");function n(o,a){o.up=(...l)=>t(e.breakpoints.up(...l),a),o.down=(...l)=>t(e.breakpoints.down(...l),a),o.between=(...l)=>t(e.breakpoints.between(...l),a),o.only=(...l)=>t(e.breakpoints.only(...l),a),o.not=(...l)=>{const s=t(e.breakpoints.not(...l),a);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const r={},i=o=>(n(r,o),r);return n(i),Z(H({},e),{containerQueries:i})}const Ea={xs:0,sm:600,md:900,lg:1200,xl:1536},Hh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ea[e]}px)`},CT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Ea[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function jn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Hh;return t.reduce((a,l,s)=>(a[o.up(o.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Hh;return Object.keys(t).reduce((a,l)=>{if(vT(o.keys,l)){const s=bT(r.containerQueries?r:CT,l);s&&(a[s]=n(t[l],l))}else if(Object.keys(o.values||Ea).includes(l)){const s=o.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function xT(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function wT(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function _a(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function ka(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=_a(e,n)||r,t&&(i=t(i,r,e)),i}function it(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,c=_a(s,r)||{};return jn(a,l,f=>{let h=ka(c,i,f);return f===h&&typeof f=="string"&&(h=ka(c,i,`${t}${f==="default"?"":Vr(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function IT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const ST={m:"margin",p:"padding"},AT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TT=IT(e=>{if(e.length>2)if(Wh[e])e=Wh[e];else return[e];const[t,n]=e.split(""),r=ST[t],i=AT[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),lc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lc,...cc];function Yi(e,t,n,r){var o;const i=(o=_a(e,t,!0))!=null?o:n;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 l=Math.abs(a),s=i[l];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:()=>{}}function uc(e){return Yi(e,"spacing",8)}function Ki(e,t){return typeof t=="string"||t==null?t:e(t)}function ET(e,t){return n=>e.reduce((r,i)=>(r[i]=Ki(t,n),r),{})}function _T(e,t,n,r){if(!t.includes(n))return null;const i=TT(n),o=ET(i,r),a=e[n];return jn(e,a,o)}function Gh(e,t){const n=uc(e.theme);return Object.keys(e).map(r=>_T(e,t,r,n)).reduce(Gi,{})}function Xe(e){return Gh(e,lc)}Xe.propTypes={},Xe.filterProps=lc;function Ze(e){return Gh(e,cc)}Ze.propTypes={},Ze.filterProps=cc;function Da(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Gi(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function tn(e){return typeof e!="number"?e:`${e}px solid`}function nn(e,t){return it({prop:e,themeKey:"borders",transform:t})}const kT=nn("border",tn),DT=nn("borderTop",tn),PT=nn("borderRight",tn),OT=nn("borderBottom",tn),RT=nn("borderLeft",tn),MT=nn("borderColor"),LT=nn("borderTopColor"),BT=nn("borderRightColor"),$T=nn("borderBottomColor"),NT=nn("borderLeftColor"),FT=nn("outline",tn),jT=nn("outlineColor"),Pa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ki(t,r)});return jn(e,e.borderRadius,n)}return null};Pa.propTypes={},Pa.filterProps=["borderRadius"],Da(kT,DT,PT,OT,RT,MT,LT,BT,$T,NT,Pa,FT,jT);const Oa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yi(e.theme,"spacing",8),n=r=>({gap:Ki(t,r)});return jn(e,e.gap,n)}return null};Oa.propTypes={},Oa.filterProps=["gap"];const Ra=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yi(e.theme,"spacing",8),n=r=>({columnGap:Ki(t,r)});return jn(e,e.columnGap,n)}return null};Ra.propTypes={},Ra.filterProps=["columnGap"];const Ma=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yi(e.theme,"spacing",8),n=r=>({rowGap:Ki(t,r)});return jn(e,e.rowGap,n)}return null};Ma.propTypes={},Ma.filterProps=["rowGap"];const zT=it({prop:"gridColumn"}),VT=it({prop:"gridRow"}),UT=it({prop:"gridAutoFlow"}),HT=it({prop:"gridAutoColumns"}),WT=it({prop:"gridAutoRows"}),GT=it({prop:"gridTemplateColumns"}),YT=it({prop:"gridTemplateRows"}),KT=it({prop:"gridTemplateAreas"}),qT=it({prop:"gridArea"});Da(Oa,Ra,Ma,zT,VT,UT,HT,WT,GT,YT,KT,qT);function Ur(e,t){return t==="grey"?t:e}const JT=it({prop:"color",themeKey:"palette",transform:Ur}),QT=it({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ur}),XT=it({prop:"backgroundColor",themeKey:"palette",transform:Ur});Da(JT,QT,XT);function Gt(e){return e<=1&&e!==0?`${e*100}%`:e}const ZT=it({prop:"width",transform:Gt}),dc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,o,a,l,s;const r=((a=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:a[n])||Ea[n];return r?((s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Gt(n)}};return jn(e,e.maxWidth,t)}return null};dc.filterProps=["maxWidth"];const eE=it({prop:"minWidth",transform:Gt}),tE=it({prop:"height",transform:Gt}),nE=it({prop:"maxHeight",transform:Gt}),rE=it({prop:"minHeight",transform:Gt});it({prop:"size",cssProperty:"width",transform:Gt}),it({prop:"size",cssProperty:"height",transform:Gt});const iE=it({prop:"boxSizing"});Da(ZT,dc,eE,tE,nE,rE,iE);const La={border:{themeKey:"borders",transform:tn},borderTop:{themeKey:"borders",transform:tn},borderRight:{themeKey:"borders",transform:tn},borderBottom:{themeKey:"borders",transform:tn},borderLeft:{themeKey:"borders",transform:tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pa},color:{themeKey:"palette",transform:Ur},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ur},backgroundColor:{themeKey:"palette",transform:Ur},p:{style:Ze},pt:{style:Ze},pr:{style:Ze},pb:{style:Ze},pl:{style:Ze},px:{style:Ze},py:{style:Ze},padding:{style:Ze},paddingTop:{style:Ze},paddingRight:{style:Ze},paddingBottom:{style:Ze},paddingLeft:{style:Ze},paddingX:{style:Ze},paddingY:{style:Ze},paddingInline:{style:Ze},paddingInlineStart:{style:Ze},paddingInlineEnd:{style:Ze},paddingBlock:{style:Ze},paddingBlockStart:{style:Ze},paddingBlockEnd:{style:Ze},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Oa},rowGap:{style:Ma},columnGap:{style:Ra},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gt},maxWidth:{style:dc},minWidth:{transform:Gt},height:{transform:Gt},maxHeight:{transform:Gt},minHeight:{transform:Gt},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 oE(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function aE(e,t){return typeof e=="function"?e(t):e}function sE(){function e(n,r,i,o){const a={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:c,transform:d,style:f}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=_a(i,c)||{};return f?f(a):jn(a,r,m=>{let g=ka(h,d,m);return m===g&&typeof m=="string"&&(g=ka(h,d,`${n}${m==="default"?"":Vr(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var l;const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=(l=i.unstable_sxConfig)!=null?l:La;function a(s){let c=s;if(typeof s=="function")c=s(i);else if(typeof s!="object")return s;if(!c)return null;const d=xT(i.breakpoints),f=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const m=aE(c[p],i);if(m!=null)if(typeof m=="object")if(o[p])h=Gi(h,e(p,m,i,o));else{const g=jn({theme:i},m,v=>({[p]:v}));oE(g,m)?h[p]=t({sx:m,theme:i}):h=Gi(h,g)}else h=Gi(h,e(p,m,i,o))}),mT(i,wT(f,h))}return Array.isArray(r)?r.map(a):a(r)}return t}const Hr=sE();Hr.filterProps=["sx"];function lE(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uE=!1,dE=/[A-Z]|^ms/g,fE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yh=function(t){return t.charCodeAt(1)===45},Kh=function(t){return t!=null&&typeof t!="boolean"},fc=OS(function(e){return Yh(e)?e:e.replace(dE,"-$&").toLowerCase()}),qh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fE,function(r,i,o){return er={name:i,styles:o,next:er},i})}return cE[t]!==1&&!Yh(t)&&typeof n=="number"&&n!==0?n+"px":n},hE="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ba(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return er={name:i.name,styles:i.styles,next:er},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)er={name:a.name,styles:a.styles,next:er},a=a.next;var l=o.styles+";";return l}return pE(e,t,n)}}var s=n;return s}function pE(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ba(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var l=a;Kh(l)&&(r+=fc(o)+":"+qh(o,l)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&uE)throw new Error(hE);if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var s=0;s<a.length;s++)Kh(a[s])&&(r+=fc(o)+":"+qh(o,a[s])+";");else{var c=Ba(e,t,a);switch(o){case"animation":case"animationName":{r+=fc(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}}return r}var Jh=/label:\s*([^\s;{]+)\s*(;|$)/g,er;function gE(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";er=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Ba(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Ba(n,t,e[l]),r){var s=o;i+=s[l]}Jh.lastIndex=0;for(var c="",d;(d=Jh.exec(i))!==null;)c+="-"+d[1];var f=lE(i)+c;return{name:f,styles:i,next:er}}/**
|
|
2334
2334
|
* @mui/styled-engine v6.4.0
|
|
2335
2335
|
*
|
|
2336
2336
|
* @license MIT
|
|
@@ -2468,7 +2468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2468
2468
|
Prefix can't start with '-' when allowNegative is true.
|
|
2469
2469
|
prefix: `+i+`
|
|
2470
2470
|
allowNegative: `+o+`
|
|
2471
|
-
`),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function DB(e){e=kB(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=nr);var o=e.onBlur;o===void 0&&(o=nr);var a=e.thousandSeparator,l=e.decimalScale,s=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var d=e.defaultValue,f=e.value,h=e.valueIsNumericString,p=e.onValueChange,m=ev(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=us(e),v=g.decimalSeparator,w=g.allowedDecimalSeparators,x=function(B){return uv(B,e)},b=function(B,L){return EB(B,L,e)},I=ci(f)?d:f,y=h!=null?h:TB(I,c,t);ci(f)?ci(d)||(y=y||typeof d=="number"):y=y||typeof f=="number";var S=function(B){return tv(B)?B:(typeof B=="number"&&(B=ov(B)),y&&typeof l=="number"?av(B,l,!!s):B)},E=cv(S(f),S(d),!!y,x,b,p),P=E[0],F=P.numAsString,Y=P.formattedValue,W=E[1],A=function(B){var L=B.target,V=B.key,q=L.selectionStart,ee=L.selectionEnd,O=L.value;if(O===void 0&&(O=""),(V==="Backspace"||V==="Delete")&&ee<c.length){B.preventDefault();return}if(q!==ee){i(B);return}V==="Backspace"&&O[0]==="-"&&q===c.length+1&&n&&wr(L,1),l&&s&&(V==="Backspace"&&O[q-1]===v?(wr(L,q-1),B.preventDefault()):V==="Delete"&&O[q]===v&&B.preventDefault()),w!=null&&w.includes(V)&&O[q]===v&&wr(L,q+1);var M=a===!0?",":a;V==="Backspace"&&O[q-1]===M&&wr(L,q-1),V==="Delete"&&O[q]===M&&wr(L,q+1),i(B)},U=function(B){var L=F;if(L.match(/\d/g)||(L=""),r||(L=hB(L)),s&&l&&(L=av(L,l,s)),L!==F){var V=uv(L,e);W({formattedValue:V,value:L,floatValue:parseFloat(L)},{event:B,source:lo.event})}o(B)},G=function(B){return B===v?!0:co(B)},$=function(B){var L=B.currentValue,V=B.lastValue,q=B.formattedValue,ee=B.currentValueIndex,O=B.formattedValueIndex,M=L[ee],N=q[O],z=sv(V,L),te=z.to,ae=function(oe){return b(oe).indexOf(".")+c.length};return f===0&&s&&l&&L[te.start]===v&&ae(L)<ee&&ae(q)>O?!1:ee>=te.start&&ee<te.end&&w&&w.includes(M)&&N===v?!0:M===N};return Object.assign(Object.assign({},m),{value:Y,valueIsNumericString:!1,isValidInputCharacter:G,isCharacterSame:$,onValueChange:W,format:x,removeFormatting:b,getCaretBoundary:function(B){return _B(B,e)},onKeyDown:A,onBlur:U})}function PB(e){var t=DB(e);return C.createElement(IB,Object.assign({},t))}const OB=j.forwardRef(function(t,n){const o=t,{onChange:r}=o,i=He(o,["onChange"]);return u.jsx(PB,Z(H({},i),{getInputRef:n,onValueChange:a=>{r({target:{name:t.name,value:a.value}})},thousandSeparator:!0,valueIsNumericString:!0}))}),RB=e=>{const t=n=>{e.onChange(Number(n.target.value))};return u.jsxs(ou,{size:"sm",children:[u.jsx(au,{children:e.label}),u.jsx(Va,{sx:e.sx,value:e.defaultValue,onChange:t,slotProps:{input:{component:OB}}}),e.description?u.jsx(T.FormHelperText,{children:e.description}):u.jsx(u.Fragment,{})]})},MB=e=>e.startsWith("fb:c:")?"competition":e.startsWith("fb:t:")?"team":"player",LB=(e,t,n,r)=>{const i=e.filter(c=>c.type.toLocaleLowerCase()==="competition").map(c=>c.id),o=e.filter(c=>c.type.toLocaleLowerCase()==="team").map(c=>c.id),a=e.filter(c=>c.type.toLocaleLowerCase()==="player").map(c=>c.id),l=[],s=[];if(i.length>0){const c=t.football.getCompetitions({competitionIds:i}).then(d=>{s.push(d)}).catch(d=>{console.error(d),r()});l.push(c)}if(o.length>0){const c=t.football.getTeams({teamIds:o}).then(d=>{s.push(d.data)}).catch(d=>{console.error(d),r()});l.push(c)}if(a.length>0){const c=t.football.getPlayers({playerIds:a}).then(d=>{s.push(d.data)}).catch(d=>{console.error(d),r()});l.push(c)}Promise.all(l).then(()=>{const d=Array.prototype.concat.apply([],s).map(f=>BB(f));n(d)})},BB=e=>{const t=new Xm;return t.label=e.name,t.value=e.name,t.id=e.id,t.group=MB(e.id),e.birthDate?t.logo=e.assets&&e.assets.headshot&&e.assets.headshot:t.logo=e.assets&&e.assets.logo&&e.assets.logo,t.countryName=e.country.name,t.countryFlag=e.country.assets&&e.country.assets.flag?e.country.assets.flag:ht.country,t},$B=10,NB=e=>{const[t,n]=C.useState([]),[r,i]=C.useState([]),[o,a]=C.useState(!1),[l,s]=C.useState(""),[c,d]=C.useState(!1),{sdk:f}=xt(),h=()=>d(!c),p=(v,w)=>{n(w),e.onChangeTags(w)};C.useEffect(()=>{LB(e.tags,f,n,h)},[e.tags]);const m=C.useMemo(()=>si(v=>{if(!v){i([]),a(!1);return}a(!0),f.football.search({query:v}).then(w=>{i([...Zm(w)]),a(!1)}).catch(w=>{console.error(w),i([]),a(!1)})},300),[]);C.useEffect(()=>(m(l),()=>m.cancel()),[l,m]);const g=(v,w)=>v.map((x,b)=>u.jsx(T.Chip,{variant:"solid",endDecorator:u.jsx(T.ChipDelete,{color:"danger",sx:{marginRight:.5},variant:"plain",onClick:I=>w({index:b}).onClick(I),children:u.jsx(je.Close,{fontSize:"small"})}),sx:{marginLeft:"3px",marginY:"1px",backgroundColor:"#e0f3ff",padding:"2px",borderRadius:4,"&:hover":{cursor:"default"}},children:u.jsx(xn,{option:x},`option_${x.id}`)},x.id));return u.jsxs(T.FormControl,{size:"sm",sx:{marginBottom:"16px"},children:[u.jsx(T.FormLabel,{color:"primary",children:e.labels.contextEntityTag}),u.jsx(T.Autocomplete,{getOptionDisabled:()=>t.length===$B,forcePopupIcon:!1,multiple:!0,loading:o,slotProps:{input:{sx:{"&::placeholder":{fontSize:"14px"}}},root:{sx:{boxShadow:"none",backgroundColor:"white",minHeight:38}}},isOptionEqualToValue:(v,w)=>v.id===w.id,endDecorator:o?u.jsx(T.CircularProgress,{size:"sm",sx:{bgcolor:"primary"}}):null,placeholder:t.length>0?"":e.labels.typeContextTagNamePlaceholder,options:r,filterOptions:v=>v.filter(w=>!t.some(x=>x.value===w.value)),onInputChange:(v,w)=>{s(w)},onChange:p,getOptionKey:v=>v.id,groupBy:v=>v.group+"s",value:t!=null?t:[],renderTags:g,renderOption:(v,w)=>u.jsx(T.AutocompleteOption,Z(H({},v),{children:u.jsx(xn,{option:w})}))}),u.jsx(bt,{showToast:c,message:e.labels.getFootballEntitiesErrorMessage,color:"danger",hideToast:h})]})},FB=e=>new Map().set("id",e.id).set("type",e.type).set("label",e.label),jB=e=>{const t=JSON.parse(JSON.stringify(e.context)),n=e.context.content,r=e.context.campaign,i=FB(e.labels),o=(s,c)=>{const d=s.target.value;t.content[c]=d,e.onChange(t)},a=(s,c)=>{const d=s.target.value;t.campaign[c]=d,e.onChange(t)},l=s=>{s.length?t.tags=s.map(c=>({id:c.id,type:c.group,source:"football"})):t.tags=[],e.onChange(t)};return u.jsx(u.Fragment,{children:u.jsxs(Fh,{defaultValue:0,sx:{p:0,bgcolor:"transparent"},children:[u.jsxs(jh,{sx:{borderRadius:0,fontSize:"0.875rem",[`& .${ac.root}`]:{'&[aria-selected="true"]':{bgcolor:"transparent",py:1,borderColor:"transparent","&::before":{content:'""',display:"block",position:"absolute",height:2,bottom:-2,left:0,right:0},"&::after":{bgcolor:"primary.500"}}}},tabFlex:"auto",children:[u.jsx(zr,{children:e.labels.tags}),u.jsx(zr,{children:e.labels.content}),u.jsx(zr,{children:e.labels.campaign})]}),u.jsx(Jr,{value:0,sx:{px:0},children:u.jsx(NB,{labels:e.labels,tags:e.context.tags,onChangeTags:l})}),u.jsx(Jr,{value:1,sx:{px:0},children:Object.keys(n).map(s=>u.jsx(T.Box,{mb:2,children:u.jsx(eo,{label:i.get(s),placeholder:"",defaultValue:n[s],required:!1,size:"sm",onChange:c=>o(c,s)})},`context-content-${s}`))}),u.jsx(Jr,{value:2,sx:{px:0},children:Object.keys(r).map(s=>u.jsx(T.Box,{mb:2,children:u.jsx(eo,{label:i.get(s),placeholder:"",defaultValue:r[s],required:!1,size:"sm",onChange:c=>a(c,s)})},`context-campaign-${s}`))})]})})},zB=e=>e?H({},e):{main:"",mobile:""},VB=e=>{const[t,n]=C.useState(!1),r=zB(e.defaultValue),i=(a,l)=>{r[l]=a,e.onChange(r)},o=a=>{r[a]="",e.onChange(r)};return u.jsxs(T.Box,{sx:{marginBottom:"10px"},children:[u.jsx(ls,{labels:e.labels,title:e.labels.mainImage,image:r.main,onChangeImages:a=>i(a,"main"),clearImage:()=>o("main")}),u.jsx(T.Link,{underline:"hover",onClick:()=>n(!t),sx:{marginBottom:"10px"},children:t?e.labels.hideMoreImages:e.labels.showMoreImages}),t?u.jsx(ls,{labels:e.labels,title:e.labels.mobileImage,image:r.mobile,onChangeImages:a=>i(a,"mobile"),clearImage:()=>o("mobile")}):u.jsx(u.Fragment,{})]})},UB=({defaultValue:e,labels:t,onChange:n})=>{const r=C.useRef(null),i=[{id:"FREE",label:t.free},{id:"LEAD",label:t.lead},{id:"REGISTERED",label:t.registered}];return u.jsxs(T.FormControl,{size:"sm",sx:{mb:2},children:[u.jsx(T.FormLabel,{children:t.authRequirement}),u.jsx(T.Select,Z(H({value:e,size:"sm",slotProps:{button:{sx:{whiteSpace:"nowrap"}}},onChange:(o,a)=>n(a),sx:{minHeight:"37px"}},e&&{endDecorator:u.jsx(T.IconButton,{variant:"plain",color:"neutral",onMouseDown:o=>{o.stopPropagation()},onClick:()=>{var o;n(null),(o=r.current)==null||o.focusVisible()},sx:{width:"18px",height:"18px"},children:u.jsx(fm,{})}),indicator:null}),{children:i.map(o=>u.jsx(T.Option,{value:o.id,children:o.label},o.id))})),u.jsx(T.FormHelperText,{children:t.authRequirementDescription})]})};function HB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const ds=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function ui(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function hu(e){return"nodeType"in e}function Rt(e){var t,n;return e?ui(e)?e:hu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function pu(e){const{Document:t}=Rt(e);return e instanceof t}function uo(e){return ui(e)?!1:e instanceof Rt(e).HTMLElement}function dv(e){return e instanceof Rt(e).SVGElement}function di(e){return e?ui(e)?e.document:hu(e)?pu(e)?e:uo(e)||dv(e)?e.ownerDocument:document:document:document}const ln=ds?C.useLayoutEffect:C.useEffect;function fs(e){const t=C.useRef(e);return ln(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function WB(){const e=C.useRef(null),t=C.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function fo(e,t){t===void 0&&(t=[e]);const n=C.useRef(e);return ln(()=>{n.current!==e&&(n.current=e)},t),n}function ho(e,t){const n=C.useRef();return C.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function hs(e){const t=fs(e),n=C.useRef(null),r=C.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function ps(e){const t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}let gu={};function po(e,t){return C.useMemo(()=>{if(t)return t;const n=gu[e]==null?0:gu[e]+1;return gu[e]=n,e+"-"+n},[e,t])}function fv(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const l=Object.entries(a);for(const[s,c]of l){const d=o[s];d!=null&&(o[s]=d+e*c)}return o},H({},t))}}const fi=fv(1),go=fv(-1);function GB(e){return"clientX"in e&&"clientY"in e}function gs(e){if(!e)return!1;const{KeyboardEvent:t}=Rt(e.target);return t&&e instanceof t}function YB(e){if(!e)return!1;const{TouchEvent:t}=Rt(e.target);return t&&e instanceof t}function ms(e){if(YB(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return GB(e)?{x:e.clientX,y:e.clientY}:null}const rr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[rr.Translate.toString(e),rr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),hv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function KB(e){return e.matches(hv)?e:e.querySelector(hv)}const qB={display:"none"};function JB(e){let{id:t,value:n}=e;return C.createElement("div",{id:t,style:qB},n)}function QB(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return C.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function XB(){const[e,t]=C.useState("");return{announce:C.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const pv=C.createContext(null);function ZB(e){const t=C.useContext(pv);C.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function e$(){const[e]=C.useState(()=>new Set),t=C.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[C.useCallback(r=>{let{type:i,event:o}=r;e.forEach(a=>{var l;return(l=a[i])==null?void 0:l.call(a,o)})},[e]),t]}const t$={draggable:`
|
|
2471
|
+
`),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function DB(e){e=kB(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=nr);var o=e.onBlur;o===void 0&&(o=nr);var a=e.thousandSeparator,l=e.decimalScale,s=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var d=e.defaultValue,f=e.value,h=e.valueIsNumericString,p=e.onValueChange,m=ev(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),g=us(e),v=g.decimalSeparator,w=g.allowedDecimalSeparators,x=function(B){return uv(B,e)},b=function(B,L){return EB(B,L,e)},I=ci(f)?d:f,y=h!=null?h:TB(I,c,t);ci(f)?ci(d)||(y=y||typeof d=="number"):y=y||typeof f=="number";var S=function(B){return tv(B)?B:(typeof B=="number"&&(B=ov(B)),y&&typeof l=="number"?av(B,l,!!s):B)},E=cv(S(f),S(d),!!y,x,b,p),P=E[0],F=P.numAsString,Y=P.formattedValue,W=E[1],A=function(B){var L=B.target,V=B.key,q=L.selectionStart,ee=L.selectionEnd,O=L.value;if(O===void 0&&(O=""),(V==="Backspace"||V==="Delete")&&ee<c.length){B.preventDefault();return}if(q!==ee){i(B);return}V==="Backspace"&&O[0]==="-"&&q===c.length+1&&n&&wr(L,1),l&&s&&(V==="Backspace"&&O[q-1]===v?(wr(L,q-1),B.preventDefault()):V==="Delete"&&O[q]===v&&B.preventDefault()),w!=null&&w.includes(V)&&O[q]===v&&wr(L,q+1);var M=a===!0?",":a;V==="Backspace"&&O[q-1]===M&&wr(L,q-1),V==="Delete"&&O[q]===M&&wr(L,q+1),i(B)},U=function(B){var L=F;if(L.match(/\d/g)||(L=""),r||(L=hB(L)),s&&l&&(L=av(L,l,s)),L!==F){var V=uv(L,e);W({formattedValue:V,value:L,floatValue:parseFloat(L)},{event:B,source:lo.event})}o(B)},G=function(B){return B===v?!0:co(B)},$=function(B){var L=B.currentValue,V=B.lastValue,q=B.formattedValue,ee=B.currentValueIndex,O=B.formattedValueIndex,M=L[ee],N=q[O],z=sv(V,L),te=z.to,ae=function(oe){return b(oe).indexOf(".")+c.length};return f===0&&s&&l&&L[te.start]===v&&ae(L)<ee&&ae(q)>O?!1:ee>=te.start&&ee<te.end&&w&&w.includes(M)&&N===v?!0:M===N};return Object.assign(Object.assign({},m),{value:Y,valueIsNumericString:!1,isValidInputCharacter:G,isCharacterSame:$,onValueChange:W,format:x,removeFormatting:b,getCaretBoundary:function(B){return _B(B,e)},onKeyDown:A,onBlur:U})}function PB(e){var t=DB(e);return C.createElement(IB,Object.assign({},t))}const OB=j.forwardRef(function(t,n){const o=t,{onChange:r}=o,i=He(o,["onChange"]);return u.jsx(PB,Z(H({},i),{getInputRef:n,onValueChange:a=>{r({target:{name:t.name,value:a.value}})},thousandSeparator:!0,valueIsNumericString:!0}))}),RB=e=>{const t=n=>{e.onChange(Number(n.target.value))};return u.jsxs(ou,{size:"sm",children:[u.jsx(au,{children:e.label}),u.jsx(Va,{sx:e.sx,value:e.defaultValue,onChange:t,slotProps:{input:{component:OB}}}),e.description?u.jsx(T.FormHelperText,{children:e.description}):u.jsx(u.Fragment,{})]})},MB=e=>e.startsWith("fb:c:")?"competition":e.startsWith("fb:t:")?"team":"player",LB=(e,t,n,r)=>{const i=e.filter(c=>c.type.toLocaleLowerCase()==="competition").map(c=>c.id),o=e.filter(c=>c.type.toLocaleLowerCase()==="team").map(c=>c.id),a=e.filter(c=>c.type.toLocaleLowerCase()==="player").map(c=>c.id),l=[],s=[];if(i.length>0){const c=t.football.getCompetitions({competitionIds:i}).then(d=>{s.push(d)}).catch(d=>{console.error(d),r()});l.push(c)}if(o.length>0){const c=t.football.getTeams({teamIds:o}).then(d=>{s.push(d.data)}).catch(d=>{console.error(d),r()});l.push(c)}if(a.length>0){const c=t.football.getPlayers({playerIds:a}).then(d=>{s.push(d.data)}).catch(d=>{console.error(d),r()});l.push(c)}Promise.all(l).then(()=>{const d=Array.prototype.concat.apply([],s).map(f=>BB(f));n(d)})},BB=e=>{const t=new Xm;return t.label=e.name,t.value=e.name,t.id=e.id,t.group=MB(e.id),e.birthDate?t.logo=e.assets&&e.assets.headshot&&e.assets.headshot:t.logo=e.assets&&e.assets.logo&&e.assets.logo,t.countryName=e.country.name,t.countryFlag=e.country.assets&&e.country.assets.flag?e.country.assets.flag:ht.country,t},$B=10,NB=e=>{const[t,n]=C.useState([]),[r,i]=C.useState([]),[o,a]=C.useState(!1),[l,s]=C.useState(""),[c,d]=C.useState(!1),{sdk:f}=xt(),h=()=>d(!c),p=(v,w)=>{n(w),e.onChangeTags(w)};C.useEffect(()=>{LB(e.tags,f,n,h)},[e.tags]);const m=C.useMemo(()=>si(v=>{if(!v){i([]),a(!1);return}a(!0),f.football.search({query:v}).then(w=>{i([...Zm(w)]),a(!1)}).catch(w=>{console.error(w),i([]),a(!1)})},300),[]);C.useEffect(()=>(m(l),()=>m.cancel()),[l,m]);const g=(v,w)=>v.map((x,b)=>u.jsx(T.Chip,{variant:"solid",endDecorator:u.jsx(T.ChipDelete,{color:"danger",sx:{marginRight:.5},variant:"plain",onClick:I=>w({index:b}).onClick(I),children:u.jsx(je.Close,{fontSize:"small"})}),sx:{marginLeft:"3px",marginY:"1px",backgroundColor:"#e0f3ff",padding:"2px",borderRadius:4,"&:hover":{cursor:"default"}},children:u.jsx(xn,{option:x},`option_${x.id}`)},x.id));return u.jsxs(T.FormControl,{size:"sm",sx:{marginBottom:"16px"},children:[u.jsx(T.FormLabel,{color:"primary",children:e.labels.contextEntityTag}),u.jsx(T.Autocomplete,{getOptionDisabled:()=>t.length===$B,forcePopupIcon:!1,multiple:!0,loading:o,slotProps:{input:{sx:{"&::placeholder":{fontSize:"14px"}}},root:{sx:{boxShadow:"none",backgroundColor:"white",minHeight:38}}},isOptionEqualToValue:(v,w)=>v.id===w.id,endDecorator:o?u.jsx(T.CircularProgress,{size:"sm",sx:{bgcolor:"primary"}}):null,placeholder:t.length>0?"":e.labels.typeContextTagNamePlaceholder,options:r,filterOptions:v=>v.filter(w=>!t.some(x=>x.value===w.value)),onInputChange:(v,w)=>{s(w)},onChange:p,getOptionKey:v=>v.id,groupBy:v=>v.group+"s",value:t!=null?t:[],renderTags:g,renderOption:(v,w)=>u.jsx(T.AutocompleteOption,Z(H({},v),{children:u.jsx(xn,{option:w})}))}),u.jsx(bt,{showToast:c,message:e.labels.getFootballEntitiesErrorMessage,color:"danger",hideToast:h})]})},FB=e=>new Map().set("id",e.id).set("type",e.type).set("label",e.label),jB=e=>{const t=JSON.parse(JSON.stringify(e.context)),n=e.context.content,r=e.context.campaign,i=FB(e.labels),o=(s,c)=>{const d=s.target.value;t.content[c]=d,e.onChange(t)},a=(s,c)=>{const d=s.target.value;t.campaign[c]=d,e.onChange(t)},l=s=>{s.length?t.tags=s.map(c=>({id:c.id,type:c.group,source:"football"})):t.tags=[],e.onChange(t)};return u.jsx(u.Fragment,{children:u.jsxs(Fh,{defaultValue:0,sx:{p:0,bgcolor:"transparent"},children:[u.jsxs(jh,{sx:{borderRadius:0,fontSize:"0.875rem",[`& .${ac.root}`]:{'&[aria-selected="true"]':{bgcolor:"transparent",py:1,borderColor:"transparent","&::before":{content:'""',display:"block",position:"absolute",height:2,bottom:-2,left:0,right:0},"&::after":{bgcolor:"primary.500"}}}},tabFlex:"auto",children:[u.jsx(zr,{children:e.labels.tags}),u.jsx(zr,{children:e.labels.content}),u.jsx(zr,{children:e.labels.campaign})]}),u.jsx(Jr,{value:0,sx:{px:0},children:u.jsx(NB,{labels:e.labels,tags:e.context.tags,onChangeTags:l})}),u.jsx(Jr,{value:1,sx:{px:0},children:Object.keys(n).map(s=>u.jsx(T.Box,{mb:2,children:u.jsx(eo,{label:i.get(s),placeholder:"",defaultValue:n[s],required:!1,size:"sm",onChange:c=>o(c,s)})},`context-content-${s}`))}),u.jsx(Jr,{value:2,sx:{px:0},children:Object.keys(r).map(s=>u.jsx(T.Box,{mb:2,children:u.jsx(eo,{label:i.get(s),placeholder:"",defaultValue:r[s],required:!1,size:"sm",onChange:c=>a(c,s)})},`context-campaign-${s}`))})]})})},zB=e=>e?H({},e):{main:"",mobile:""},VB=e=>{const[t,n]=C.useState(!1),r=zB(e.defaultValue),i=(a,l)=>{r[l]=a,e.onChange(r)},o=a=>{r[a]="",e.onChange(r)};return u.jsxs(T.Box,{sx:{marginBottom:"10px"},children:[u.jsx(ls,{labels:e.labels,title:e.labels.mainImage,image:r.main,onChangeImages:a=>i(a,"main"),clearImage:()=>o("main")}),u.jsx(T.Link,{underline:"hover",onClick:()=>n(!t),sx:{marginBottom:"10px"},children:t?e.labels.hideMoreImages:e.labels.showMoreImages}),t?u.jsx(ls,{labels:e.labels,title:e.labels.mobileImage,image:r.mobile,onChangeImages:a=>i(a,"mobile"),clearImage:()=>o("mobile")}):u.jsx(u.Fragment,{})]})},UB=({defaultValue:e,isClearable:t=!0,labels:n,onChange:r})=>{const i=C.useRef(null),o=[{id:"FREE",label:n.free},{id:"LEAD",label:n.lead},{id:"REGISTERED",label:n.registered}];return u.jsxs(T.FormControl,{size:"sm",sx:{mb:2},children:[u.jsx(T.FormLabel,{children:n.authRequirement}),u.jsx(T.Select,Z(H({value:e,size:"sm",slotProps:{button:{sx:{whiteSpace:"nowrap"}}},onChange:(a,l)=>r(l),sx:{minHeight:"37px"}},e&&t&&{endDecorator:u.jsx(T.IconButton,{variant:"plain",color:"neutral",onMouseDown:a=>{a.stopPropagation()},onClick:()=>{var a;r(null),(a=i.current)==null||a.focusVisible()},sx:{width:"18px",height:"18px"},children:u.jsx(fm,{})}),indicator:null}),{children:o.map(a=>u.jsx(T.Option,{value:a.id,children:a.label},a.id))})),u.jsx(T.FormHelperText,{children:n.authRequirementDescription})]})};function HB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const ds=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function ui(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function hu(e){return"nodeType"in e}function Rt(e){var t,n;return e?ui(e)?e:hu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function pu(e){const{Document:t}=Rt(e);return e instanceof t}function uo(e){return ui(e)?!1:e instanceof Rt(e).HTMLElement}function dv(e){return e instanceof Rt(e).SVGElement}function di(e){return e?ui(e)?e.document:hu(e)?pu(e)?e:uo(e)||dv(e)?e.ownerDocument:document:document:document}const ln=ds?C.useLayoutEffect:C.useEffect;function fs(e){const t=C.useRef(e);return ln(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function WB(){const e=C.useRef(null),t=C.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function fo(e,t){t===void 0&&(t=[e]);const n=C.useRef(e);return ln(()=>{n.current!==e&&(n.current=e)},t),n}function ho(e,t){const n=C.useRef();return C.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function hs(e){const t=fs(e),n=C.useRef(null),r=C.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function ps(e){const t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}let gu={};function po(e,t){return C.useMemo(()=>{if(t)return t;const n=gu[e]==null?0:gu[e]+1;return gu[e]=n,e+"-"+n},[e,t])}function fv(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const l=Object.entries(a);for(const[s,c]of l){const d=o[s];d!=null&&(o[s]=d+e*c)}return o},H({},t))}}const fi=fv(1),go=fv(-1);function GB(e){return"clientX"in e&&"clientY"in e}function gs(e){if(!e)return!1;const{KeyboardEvent:t}=Rt(e.target);return t&&e instanceof t}function YB(e){if(!e)return!1;const{TouchEvent:t}=Rt(e.target);return t&&e instanceof t}function ms(e){if(YB(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return GB(e)?{x:e.clientX,y:e.clientY}:null}const rr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[rr.Translate.toString(e),rr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),hv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function KB(e){return e.matches(hv)?e:e.querySelector(hv)}const qB={display:"none"};function JB(e){let{id:t,value:n}=e;return C.createElement("div",{id:t,style:qB},n)}function QB(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return C.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function XB(){const[e,t]=C.useState("");return{announce:C.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const pv=C.createContext(null);function ZB(e){const t=C.useContext(pv);C.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function e$(){const[e]=C.useState(()=>new Set),t=C.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[C.useCallback(r=>{let{type:i,event:o}=r;e.forEach(a=>{var l;return(l=a[i])==null?void 0:l.call(a,o)})},[e]),t]}const t$={draggable:`
|
|
2472
2472
|
To pick up a draggable item, press the space bar.
|
|
2473
2473
|
While dragging, use the arrow keys to move the item.
|
|
2474
2474
|
Press space again to drop the item in its new position, or press escape to cancel.
|
package/package.json
CHANGED