@staff0rd/assist 0.244.0 → 0.244.2
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/dist/commands/sessions/web/bundle.js +11 -11
- package/dist/index.js +145 -115
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var o4=Object.create;var d_=Object.defineProperty;var i4=Object.getOwnPropertyDescriptor;var n4=Object.getOwnPropertyNames;var s4=Object.getPrototypeOf,a4=Object.prototype.hasOwnProperty;var l4=(e,t,r)=>t in e?d_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var c4=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of n4(t))!a4.call(e,i)&&i!==r&&d_(e,i,{get:()=>t[i],enumerable:!(o=i4(t,i))||o.enumerable});return e};var _=(e,t,r)=>(r=e!=null?o4(s4(e)):{},c4(t||!e||!e.__esModule?d_(r,"default",{value:e,enumerable:!0}):r,e));var Fe=(e,t,r)=>l4(e,typeof t!="symbol"?t+"":t,r);var yw=Gr(Se=>{"use strict";var m_=Symbol.for("react.transitional.element"),v4=Symbol.for("react.portal"),b4=Symbol.for("react.fragment"),_4=Symbol.for("react.strict_mode"),S4=Symbol.for("react.profiler"),x4=Symbol.for("react.consumer"),T4=Symbol.for("react.context"),C4=Symbol.for("react.forward_ref"),w4=Symbol.for("react.suspense"),R4=Symbol.for("react.memo"),uw=Symbol.for("react.lazy"),P4=Symbol.for("react.activity"),sw=Symbol.iterator;function E4(e){return e===null||typeof e!="object"?null:(e=sw&&e[sw]||e["@@iterator"],typeof e=="function"?e:null)}var pw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dw=Object.assign,fw={};function pc(e,t,r){this.props=e,this.context=t,this.refs=fw,this.updater=r||pw}pc.prototype.isReactComponent={};pc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hw(){}hw.prototype=pc.prototype;function y_(e,t,r){this.props=e,this.context=t,this.refs=fw,this.updater=r||pw}var g_=y_.prototype=new hw;g_.constructor=y_;dw(g_,pc.prototype);g_.isPureReactComponent=!0;var aw=Array.isArray;function h_(){}var _t={H:null,A:null,T:null,S:null},mw=Object.prototype.hasOwnProperty;function v_(e,t,r){var o=r.ref;return{$$typeof:m_,type:e,key:t,ref:o!==void 0?o:null,props:r}}function k4(e,t){return v_(e.type,t,e.props)}function b_(e){return typeof e=="object"&&e!==null&&e.$$typeof===m_}function O4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var lw=/\/+/g;function f_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O4(""+e.key):t.toString(36)}function M4(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(h_,h_):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function uc(e,t,r,o,i){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case m_:case v4:s=!0;break;case uw:return s=e._init,uc(s(e._payload),t,r,o,i)}}if(s)return i=i(e),s=o===""?"."+f_(e,0):o,aw(i)?(r="",s!=null&&(r=s.replace(lw,"$&/")+"/"),uc(i,t,r,"",function(c){return c})):i!=null&&(b_(i)&&(i=k4(i,r+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(lw,"$&/")+"/")+s)),t.push(i)),1;s=0;var a=o===""?".":o+":";if(aw(e))for(var l=0;l<e.length;l++)o=e[l],n=a+f_(o,l),s+=uc(o,t,r,n,i);else if(l=E4(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=a+f_(o,l++),s+=uc(o,t,r,n,i);else if(n==="object"){if(typeof e.then=="function")return uc(M4(e),t,r,o,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function nm(e,t,r){if(e==null)return e;var o=[],i=0;return uc(e,o,"","",function(n){return t.call(r,n,i++)}),o}function D4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var cw=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},A4={map:nm,forEach:function(e,t,r){nm(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return nm(e,function(){t++}),t},toArray:function(e){return nm(e,function(t){return t})||[]},only:function(e){if(!b_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Activity=P4;Se.Children=A4;Se.Component=pc;Se.Fragment=b4;Se.Profiler=S4;Se.PureComponent=y_;Se.StrictMode=_4;Se.Suspense=w4;Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_t;Se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return _t.H.useMemoCache(e)}};Se.cache=function(e){return function(){return e.apply(null,arguments)}};Se.cacheSignal=function(){return null};Se.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=dw({},e.props),i=e.key;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)!mw.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=r;else if(1<n){for(var s=Array(n),a=0;a<n;a++)s[a]=arguments[a+2];o.children=s}return v_(e.type,i,o)};Se.createContext=function(e){return e={$$typeof:T4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:x4,_context:e},e};Se.createElement=function(e,t,r){var o,i={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)mw.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(i[o]=t[o]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];i.children=a}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)i[o]===void 0&&(i[o]=s[o]);return v_(e,n,i)};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:C4,render:e}};Se.isValidElement=b_;Se.lazy=function(e){return{$$typeof:uw,_payload:{_status:-1,_result:e},_init:D4}};Se.memo=function(e,t){return{$$typeof:R4,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=_t.T,r={};_t.T=r;try{var o=e(),i=_t.S;i!==null&&i(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(h_,cw)}catch(n){cw(n)}finally{t!==null&&r.types!==null&&(t.types=r.types),_t.T=t}};Se.unstable_useCacheRefresh=function(){return _t.H.useCacheRefresh()};Se.use=function(e){return _t.H.use(e)};Se.useActionState=function(e,t,r){return _t.H.useActionState(e,t,r)};Se.useCallback=function(e,t){return _t.H.useCallback(e,t)};Se.useContext=function(e){return _t.H.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e,t){return _t.H.useDeferredValue(e,t)};Se.useEffect=function(e,t){return _t.H.useEffect(e,t)};Se.useEffectEvent=function(e){return _t.H.useEffectEvent(e)};Se.useId=function(){return _t.H.useId()};Se.useImperativeHandle=function(e,t,r){return _t.H.useImperativeHandle(e,t,r)};Se.useInsertionEffect=function(e,t){return _t.H.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return _t.H.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return _t.H.useMemo(e,t)};Se.useOptimistic=function(e,t){return _t.H.useOptimistic(e,t)};Se.useReducer=function(e,t,r){return _t.H.useReducer(e,t,r)};Se.useRef=function(e){return _t.H.useRef(e)};Se.useState=function(e){return _t.H.useState(e)};Se.useSyncExternalStore=function(e,t,r){return _t.H.useSyncExternalStore(e,t,r)};Se.useTransition=function(){return _t.H.useTransition()};Se.version="19.2.4"});var I=Gr((PJ,gw)=>{"use strict";gw.exports=yw()});var Uw=Gr(Je=>{"use strict";var dr=typeof Symbol=="function"&&Symbol.for,T_=dr?Symbol.for("react.element"):60103,C_=dr?Symbol.for("react.portal"):60106,hm=dr?Symbol.for("react.fragment"):60107,mm=dr?Symbol.for("react.strict_mode"):60108,ym=dr?Symbol.for("react.profiler"):60114,gm=dr?Symbol.for("react.provider"):60109,vm=dr?Symbol.for("react.context"):60110,w_=dr?Symbol.for("react.async_mode"):60111,bm=dr?Symbol.for("react.concurrent_mode"):60111,_m=dr?Symbol.for("react.forward_ref"):60112,Sm=dr?Symbol.for("react.suspense"):60113,V4=dr?Symbol.for("react.suspense_list"):60120,xm=dr?Symbol.for("react.memo"):60115,Tm=dr?Symbol.for("react.lazy"):60116,q4=dr?Symbol.for("react.block"):60121,K4=dr?Symbol.for("react.fundamental"):60117,G4=dr?Symbol.for("react.responder"):60118,Y4=dr?Symbol.for("react.scope"):60119;function Co(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T_:switch(e=e.type,e){case w_:case bm:case hm:case ym:case mm:case Sm:return e;default:switch(e=e&&e.$$typeof,e){case vm:case _m:case Tm:case xm:case gm:return e;default:return t}}case C_:return t}}}function Hw(e){return Co(e)===bm}Je.AsyncMode=w_;Je.ConcurrentMode=bm;Je.ContextConsumer=vm;Je.ContextProvider=gm;Je.Element=T_;Je.ForwardRef=_m;Je.Fragment=hm;Je.Lazy=Tm;Je.Memo=xm;Je.Portal=C_;Je.Profiler=ym;Je.StrictMode=mm;Je.Suspense=Sm;Je.isAsyncMode=function(e){return Hw(e)||Co(e)===w_};Je.isConcurrentMode=Hw;Je.isContextConsumer=function(e){return Co(e)===vm};Je.isContextProvider=function(e){return Co(e)===gm};Je.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T_};Je.isForwardRef=function(e){return Co(e)===_m};Je.isFragment=function(e){return Co(e)===hm};Je.isLazy=function(e){return Co(e)===Tm};Je.isMemo=function(e){return Co(e)===xm};Je.isPortal=function(e){return Co(e)===C_};Je.isProfiler=function(e){return Co(e)===ym};Je.isStrictMode=function(e){return Co(e)===mm};Je.isSuspense=function(e){return Co(e)===Sm};Je.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hm||e===bm||e===ym||e===mm||e===Sm||e===V4||typeof e=="object"&&e!==null&&(e.$$typeof===Tm||e.$$typeof===xm||e.$$typeof===gm||e.$$typeof===vm||e.$$typeof===_m||e.$$typeof===K4||e.$$typeof===G4||e.$$typeof===Y4||e.$$typeof===q4)};Je.typeOf=Co});var jw=Gr((XJ,$w)=>{"use strict";$w.exports=Uw()});var Xw=Gr((ZJ,Yw)=>{"use strict";var R_=jw(),X4={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z4={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},P_={};P_[R_.ForwardRef]=Q4;P_[R_.Memo]=Kw;function Ww(e){return R_.isMemo(e)?Kw:P_[e.$$typeof]||X4}var J4=Object.defineProperty,e6=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,t6=Object.getOwnPropertyDescriptor,r6=Object.getPrototypeOf,qw=Object.prototype;function Gw(e,t,r){if(typeof t!="string"){if(qw){var o=r6(t);o&&o!==qw&&Gw(e,o,r)}var i=e6(t);Vw&&(i=i.concat(Vw(t)));for(var n=Ww(e),s=Ww(t),a=0;a<i.length;++a){var l=i[a];if(!Z4[l]&&!(r&&r[l])&&!(s&&s[l])&&!(n&&n[l])){var c=t6(t,l);try{J4(e,l,c)}catch{}}}}return e}Yw.exports=Gw});var mR=Gr(Pm=>{"use strict";var b6=Symbol.for("react.transitional.element"),_6=Symbol.for("react.fragment");function hR(e,t,r){var o=null;if(r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),"key"in t){r={};for(var i in t)i!=="key"&&(r[i]=t[i])}else r=t;return t=r.ref,{$$typeof:b6,type:e,key:o,ref:t!==void 0?t:null,props:r}}Pm.Fragment=_6;Pm.jsx=hR;Pm.jsxs=hR});var R=Gr((qee,yR)=>{"use strict";yR.exports=mR()});var _R=Gr(at=>{"use strict";var M_=Symbol.for("react.transitional.element"),D_=Symbol.for("react.portal"),Em=Symbol.for("react.fragment"),km=Symbol.for("react.strict_mode"),Om=Symbol.for("react.profiler"),Mm=Symbol.for("react.consumer"),Dm=Symbol.for("react.context"),Am=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),Nm=Symbol.for("react.suspense_list"),Lm=Symbol.for("react.memo"),Im=Symbol.for("react.lazy"),x6=Symbol.for("react.view_transition"),T6=Symbol.for("react.client.reference");function Jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M_:switch(e=e.type,e){case Em:case Om:case km:case Bm:case Nm:case x6:return e;default:switch(e=e&&e.$$typeof,e){case Dm:case Am:case Im:case Lm:return e;case Mm:return e;default:return t}}case D_:return t}}}at.ContextConsumer=Mm;at.ContextProvider=Dm;at.Element=M_;at.ForwardRef=Am;at.Fragment=Em;at.Lazy=Im;at.Memo=Lm;at.Portal=D_;at.Profiler=Om;at.StrictMode=km;at.Suspense=Bm;at.SuspenseList=Nm;at.isContextConsumer=function(e){return Jo(e)===Mm};at.isContextProvider=function(e){return Jo(e)===Dm};at.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M_};at.isForwardRef=function(e){return Jo(e)===Am};at.isFragment=function(e){return Jo(e)===Em};at.isLazy=function(e){return Jo(e)===Im};at.isMemo=function(e){return Jo(e)===Lm};at.isPortal=function(e){return Jo(e)===D_};at.isProfiler=function(e){return Jo(e)===Om};at.isStrictMode=function(e){return Jo(e)===km};at.isSuspense=function(e){return Jo(e)===Bm};at.isSuspenseList=function(e){return Jo(e)===Nm};at.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Em||e===Om||e===km||e===Bm||e===Nm||typeof e=="object"&&e!==null&&(e.$$typeof===Im||e.$$typeof===Lm||e.$$typeof===Dm||e.$$typeof===Mm||e.$$typeof===Am||e.$$typeof===T6||e.getModuleId!==void 0)};at.typeOf=Jo});var xR=Gr((ote,SR)=>{"use strict";SR.exports=_R()});var IP=Gr(Jr=>{"use strict";var XH=I();function LP(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Os(){}var Qr={d:{f:Os,r:function(){throw Error(LP(522))},D:Os,C:Os,L:Os,m:Os,X:Os,S:Os,M:Os},p:0,findDOMNode:null},ZH=Symbol.for("react.portal");function QH(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ZH,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Rd=XH.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function by(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Qr;Jr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(LP(299));return QH(e,t,null,r)};Jr.flushSync=function(e){var t=Rd.T,r=Qr.p;try{if(Rd.T=null,Qr.p=2,e)return e()}finally{Rd.T=t,Qr.p=r,Qr.d.f()}};Jr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Qr.d.C(e,t))};Jr.prefetchDNS=function(e){typeof e=="string"&&Qr.d.D(e)};Jr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=by(r,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Qr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:n}):r==="script"&&Qr.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Jr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=by(t.as,t.crossOrigin);Qr.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Qr.d.M(e)};Jr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=by(r,t.crossOrigin);Qr.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Jr.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=by(t.as,t.crossOrigin);Qr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Qr.d.m(e)};Jr.requestFormReset=function(e){Qr.d.r(e)};Jr.unstable_batchedUpdates=function(e,t){return e(t)};Jr.useFormState=function(e,t,r){return Rd.H.useFormState(e,t,r)};Jr.useFormStatus=function(){return Rd.H.useHostTransitionStatus()};Jr.version="19.2.4"});var _y=Gr((eue,FP)=>{"use strict";function zP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zP)}catch(e){console.error(e)}}zP(),FP.exports=IP()});var wO=Gr(Et=>{"use strict";function TS(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,i=e[o];if(0<Tg(i,t))e[o]=t,e[r]=i,r=o;else break e}}function ln(e){return e.length===0?null:e[0]}function wg(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,i=e.length,n=i>>>1;o<n;){var s=2*(o+1)-1,a=e[s],l=s+1,c=e[l];if(0>Tg(a,r))l<i&&0>Tg(c,a)?(e[o]=c,e[l]=r,o=l):(e[o]=a,e[s]=r,o=s);else if(l<i&&0>Tg(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function Tg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}Et.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(yO=performance,Et.unstable_now=function(){return yO.now()}):(_S=Date,gO=_S.now(),Et.unstable_now=function(){return _S.now()-gO});var yO,_S,gO,Wn=[],Ws=[],F7=1,li=null,jr=3,CS=!1,mf=!1,yf=!1,wS=!1,_O=typeof setTimeout=="function"?setTimeout:null,SO=typeof clearTimeout=="function"?clearTimeout:null,vO=typeof setImmediate<"u"?setImmediate:null;function Cg(e){for(var t=ln(Ws);t!==null;){if(t.callback===null)wg(Ws);else if(t.startTime<=e)wg(Ws),t.sortIndex=t.expirationTime,TS(Wn,t);else break;t=ln(Ws)}}function RS(e){if(yf=!1,Cg(e),!mf)if(ln(Wn)!==null)mf=!0,ku||(ku=!0,Eu());else{var t=ln(Ws);t!==null&&PS(RS,t.startTime-e)}}var ku=!1,gf=-1,xO=5,TO=-1;function CO(){return wS?!0:!(Et.unstable_now()-TO<xO)}function SS(){if(wS=!1,ku){var e=Et.unstable_now();TO=e;var t=!0;try{e:{mf=!1,yf&&(yf=!1,SO(gf),gf=-1),CS=!0;var r=jr;try{t:{for(Cg(e),li=ln(Wn);li!==null&&!(li.expirationTime>e&&CO());){var o=li.callback;if(typeof o=="function"){li.callback=null,jr=li.priorityLevel;var i=o(li.expirationTime<=e);if(e=Et.unstable_now(),typeof i=="function"){li.callback=i,Cg(e),t=!0;break t}li===ln(Wn)&&wg(Wn),Cg(e)}else wg(Wn);li=ln(Wn)}if(li!==null)t=!0;else{var n=ln(Ws);n!==null&&PS(RS,n.startTime-e),t=!1}}break e}finally{li=null,jr=r,CS=!1}t=void 0}}finally{t?Eu():ku=!1}}}var Eu;typeof vO=="function"?Eu=function(){vO(SS)}:typeof MessageChannel<"u"?(xS=new MessageChannel,bO=xS.port2,xS.port1.onmessage=SS,Eu=function(){bO.postMessage(null)}):Eu=function(){_O(SS,0)};var xS,bO;function PS(e,t){gf=_O(function(){e(Et.unstable_now())},t)}Et.unstable_IdlePriority=5;Et.unstable_ImmediatePriority=1;Et.unstable_LowPriority=4;Et.unstable_NormalPriority=3;Et.unstable_Profiling=null;Et.unstable_UserBlockingPriority=2;Et.unstable_cancelCallback=function(e){e.callback=null};Et.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xO=0<e?Math.floor(1e3/e):5};Et.unstable_getCurrentPriorityLevel=function(){return jr};Et.unstable_next=function(e){switch(jr){case 1:case 2:case 3:var t=3;break;default:t=jr}var r=jr;jr=t;try{return e()}finally{jr=r}};Et.unstable_requestPaint=function(){wS=!0};Et.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=jr;jr=e;try{return t()}finally{jr=r}};Et.unstable_scheduleCallback=function(e,t,r){var o=Et.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:F7++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>o?(e.sortIndex=r,TS(Ws,e),ln(Wn)===null&&e===ln(Ws)&&(yf?(SO(gf),gf=-1):yf=!0,PS(RS,r-o))):(e.sortIndex=i,TS(Wn,e),mf||CS||(mf=!0,ku||(ku=!0,Eu()))),e};Et.unstable_shouldYield=CO;Et.unstable_wrapCallback=function(e){var t=jr;return function(){var r=jr;jr=t;try{return e.apply(this,arguments)}finally{jr=r}}}});var PO=Gr((vDe,RO)=>{"use strict";RO.exports=wO()});var FB=Gr(Xv=>{"use strict";var sr=PO(),JM=I(),H7=_y();function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function eD(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oh(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function tD(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rD(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function EO(e){if(oh(e)!==e)throw Error(U(188))}function U7(e){var t=e.alternate;if(!t){if(t=oh(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(i===null)break;var n=i.alternate;if(n===null){if(o=i.return,o!==null){r=o;continue}break}if(i.child===n.child){for(n=i.child;n;){if(n===r)return EO(i),e;if(n===o)return EO(i),t;n=n.sibling}throw Error(U(188))}if(r.return!==o.return)r=i,o=n;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,o=n;break}if(a===o){s=!0,o=i,r=n;break}a=a.sibling}if(!s){for(a=n.child;a;){if(a===r){s=!0,r=n,o=i;break}if(a===o){s=!0,o=n,r=i;break}a=a.sibling}if(!s)throw Error(U(189))}}if(r.alternate!==o)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function oD(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=oD(e),t!==null)return t;e=e.sibling}return null}var Ct=Object.assign,$7=Symbol.for("react.element"),Rg=Symbol.for("react.transitional.element"),wf=Symbol.for("react.portal"),Nu=Symbol.for("react.fragment"),iD=Symbol.for("react.strict_mode"),ax=Symbol.for("react.profiler"),nD=Symbol.for("react.consumer"),Qn=Symbol.for("react.context"),rT=Symbol.for("react.forward_ref"),lx=Symbol.for("react.suspense"),cx=Symbol.for("react.suspense_list"),oT=Symbol.for("react.memo"),Vs=Symbol.for("react.lazy"),ux=Symbol.for("react.activity"),j7=Symbol.for("react.memo_cache_sentinel"),kO=Symbol.iterator;function vf(e){return e===null||typeof e!="object"?null:(e=kO&&e[kO]||e["@@iterator"],typeof e=="function"?e:null)}var W7=Symbol.for("react.client.reference");function px(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W7?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nu:return"Fragment";case ax:return"Profiler";case iD:return"StrictMode";case lx:return"Suspense";case cx:return"SuspenseList";case ux:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case wf:return"Portal";case Qn:return e.displayName||"Context";case nD:return(e._context.displayName||"Context")+".Consumer";case rT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oT:return t=e.displayName||null,t!==null?t:px(e.type)||"Memo";case Vs:t=e._payload,e=e._init;try{return px(e(t))}catch{}}return null}var Rf=Array.isArray,ge=JM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe=H7.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sl={pending:!1,data:null,method:null,action:null},dx=[],Lu=-1;function fn(e){return{current:e}}function yr(e){0>Lu||(e.current=dx[Lu],dx[Lu]=null,Lu--)}function mt(e,t){Lu++,dx[Lu]=e.current,e.current=t}var dn=fn(null),jf=fn(null),ra=fn(null),nv=fn(null);function sv(e,t){switch(mt(ra,t),mt(jf,e),mt(dn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?LM(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=LM(t),e=wB(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}yr(dn),mt(dn,e)}function ep(){yr(dn),yr(jf),yr(ra)}function fx(e){e.memoizedState!==null&&mt(nv,e);var t=dn.current,r=wB(t,e.type);t!==r&&(mt(jf,e),mt(dn,r))}function av(e){jf.current===e&&(yr(dn),yr(jf)),nv.current===e&&(yr(nv),eh._currentValue=Sl)}var ES,OO;function gl(e){if(ES===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ES=t&&t[1]||"",OO=-1<r.stack.indexOf(`
|
|
1
|
+
"use strict";(()=>{var o4=Object.create;var d_=Object.defineProperty;var i4=Object.getOwnPropertyDescriptor;var n4=Object.getOwnPropertyNames;var s4=Object.getPrototypeOf,a4=Object.prototype.hasOwnProperty;var l4=(e,t,r)=>t in e?d_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var c4=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of n4(t))!a4.call(e,i)&&i!==r&&d_(e,i,{get:()=>t[i],enumerable:!(o=i4(t,i))||o.enumerable});return e};var _=(e,t,r)=>(r=e!=null?o4(s4(e)):{},c4(t||!e||!e.__esModule?d_(r,"default",{value:e,enumerable:!0}):r,e));var Fe=(e,t,r)=>l4(e,typeof t!="symbol"?t+"":t,r);var yw=Gr(Se=>{"use strict";var m_=Symbol.for("react.transitional.element"),v4=Symbol.for("react.portal"),b4=Symbol.for("react.fragment"),_4=Symbol.for("react.strict_mode"),S4=Symbol.for("react.profiler"),x4=Symbol.for("react.consumer"),T4=Symbol.for("react.context"),C4=Symbol.for("react.forward_ref"),w4=Symbol.for("react.suspense"),R4=Symbol.for("react.memo"),uw=Symbol.for("react.lazy"),P4=Symbol.for("react.activity"),sw=Symbol.iterator;function E4(e){return e===null||typeof e!="object"?null:(e=sw&&e[sw]||e["@@iterator"],typeof e=="function"?e:null)}var pw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dw=Object.assign,fw={};function pc(e,t,r){this.props=e,this.context=t,this.refs=fw,this.updater=r||pw}pc.prototype.isReactComponent={};pc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hw(){}hw.prototype=pc.prototype;function y_(e,t,r){this.props=e,this.context=t,this.refs=fw,this.updater=r||pw}var g_=y_.prototype=new hw;g_.constructor=y_;dw(g_,pc.prototype);g_.isPureReactComponent=!0;var aw=Array.isArray;function h_(){}var _t={H:null,A:null,T:null,S:null},mw=Object.prototype.hasOwnProperty;function v_(e,t,r){var o=r.ref;return{$$typeof:m_,type:e,key:t,ref:o!==void 0?o:null,props:r}}function k4(e,t){return v_(e.type,t,e.props)}function b_(e){return typeof e=="object"&&e!==null&&e.$$typeof===m_}function O4(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var lw=/\/+/g;function f_(e,t){return typeof e=="object"&&e!==null&&e.key!=null?O4(""+e.key):t.toString(36)}function M4(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(h_,h_):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function uc(e,t,r,o,i){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(n){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case m_:case v4:s=!0;break;case uw:return s=e._init,uc(s(e._payload),t,r,o,i)}}if(s)return i=i(e),s=o===""?"."+f_(e,0):o,aw(i)?(r="",s!=null&&(r=s.replace(lw,"$&/")+"/"),uc(i,t,r,"",function(c){return c})):i!=null&&(b_(i)&&(i=k4(i,r+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(lw,"$&/")+"/")+s)),t.push(i)),1;s=0;var a=o===""?".":o+":";if(aw(e))for(var l=0;l<e.length;l++)o=e[l],n=a+f_(o,l),s+=uc(o,t,r,n,i);else if(l=E4(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,n=a+f_(o,l++),s+=uc(o,t,r,n,i);else if(n==="object"){if(typeof e.then=="function")return uc(M4(e),t,r,o,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function nm(e,t,r){if(e==null)return e;var o=[],i=0;return uc(e,o,"","",function(n){return t.call(r,n,i++)}),o}function D4(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var cw=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},A4={map:nm,forEach:function(e,t,r){nm(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return nm(e,function(){t++}),t},toArray:function(e){return nm(e,function(t){return t})||[]},only:function(e){if(!b_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Activity=P4;Se.Children=A4;Se.Component=pc;Se.Fragment=b4;Se.Profiler=S4;Se.PureComponent=y_;Se.StrictMode=_4;Se.Suspense=w4;Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_t;Se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return _t.H.useMemoCache(e)}};Se.cache=function(e){return function(){return e.apply(null,arguments)}};Se.cacheSignal=function(){return null};Se.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=dw({},e.props),i=e.key;if(t!=null)for(n in t.key!==void 0&&(i=""+t.key),t)!mw.call(t,n)||n==="key"||n==="__self"||n==="__source"||n==="ref"&&t.ref===void 0||(o[n]=t[n]);var n=arguments.length-2;if(n===1)o.children=r;else if(1<n){for(var s=Array(n),a=0;a<n;a++)s[a]=arguments[a+2];o.children=s}return v_(e.type,i,o)};Se.createContext=function(e){return e={$$typeof:T4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:x4,_context:e},e};Se.createElement=function(e,t,r){var o,i={},n=null;if(t!=null)for(o in t.key!==void 0&&(n=""+t.key),t)mw.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(i[o]=t[o]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];i.children=a}if(e&&e.defaultProps)for(o in s=e.defaultProps,s)i[o]===void 0&&(i[o]=s[o]);return v_(e,n,i)};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:C4,render:e}};Se.isValidElement=b_;Se.lazy=function(e){return{$$typeof:uw,_payload:{_status:-1,_result:e},_init:D4}};Se.memo=function(e,t){return{$$typeof:R4,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=_t.T,r={};_t.T=r;try{var o=e(),i=_t.S;i!==null&&i(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(h_,cw)}catch(n){cw(n)}finally{t!==null&&r.types!==null&&(t.types=r.types),_t.T=t}};Se.unstable_useCacheRefresh=function(){return _t.H.useCacheRefresh()};Se.use=function(e){return _t.H.use(e)};Se.useActionState=function(e,t,r){return _t.H.useActionState(e,t,r)};Se.useCallback=function(e,t){return _t.H.useCallback(e,t)};Se.useContext=function(e){return _t.H.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e,t){return _t.H.useDeferredValue(e,t)};Se.useEffect=function(e,t){return _t.H.useEffect(e,t)};Se.useEffectEvent=function(e){return _t.H.useEffectEvent(e)};Se.useId=function(){return _t.H.useId()};Se.useImperativeHandle=function(e,t,r){return _t.H.useImperativeHandle(e,t,r)};Se.useInsertionEffect=function(e,t){return _t.H.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return _t.H.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return _t.H.useMemo(e,t)};Se.useOptimistic=function(e,t){return _t.H.useOptimistic(e,t)};Se.useReducer=function(e,t,r){return _t.H.useReducer(e,t,r)};Se.useRef=function(e){return _t.H.useRef(e)};Se.useState=function(e){return _t.H.useState(e)};Se.useSyncExternalStore=function(e,t,r){return _t.H.useSyncExternalStore(e,t,r)};Se.useTransition=function(){return _t.H.useTransition()};Se.version="19.2.4"});var I=Gr((EJ,gw)=>{"use strict";gw.exports=yw()});var Uw=Gr(Je=>{"use strict";var dr=typeof Symbol=="function"&&Symbol.for,T_=dr?Symbol.for("react.element"):60103,C_=dr?Symbol.for("react.portal"):60106,hm=dr?Symbol.for("react.fragment"):60107,mm=dr?Symbol.for("react.strict_mode"):60108,ym=dr?Symbol.for("react.profiler"):60114,gm=dr?Symbol.for("react.provider"):60109,vm=dr?Symbol.for("react.context"):60110,w_=dr?Symbol.for("react.async_mode"):60111,bm=dr?Symbol.for("react.concurrent_mode"):60111,_m=dr?Symbol.for("react.forward_ref"):60112,Sm=dr?Symbol.for("react.suspense"):60113,V4=dr?Symbol.for("react.suspense_list"):60120,xm=dr?Symbol.for("react.memo"):60115,Tm=dr?Symbol.for("react.lazy"):60116,q4=dr?Symbol.for("react.block"):60121,K4=dr?Symbol.for("react.fundamental"):60117,G4=dr?Symbol.for("react.responder"):60118,Y4=dr?Symbol.for("react.scope"):60119;function Co(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T_:switch(e=e.type,e){case w_:case bm:case hm:case ym:case mm:case Sm:return e;default:switch(e=e&&e.$$typeof,e){case vm:case _m:case Tm:case xm:case gm:return e;default:return t}}case C_:return t}}}function Hw(e){return Co(e)===bm}Je.AsyncMode=w_;Je.ConcurrentMode=bm;Je.ContextConsumer=vm;Je.ContextProvider=gm;Je.Element=T_;Je.ForwardRef=_m;Je.Fragment=hm;Je.Lazy=Tm;Je.Memo=xm;Je.Portal=C_;Je.Profiler=ym;Je.StrictMode=mm;Je.Suspense=Sm;Je.isAsyncMode=function(e){return Hw(e)||Co(e)===w_};Je.isConcurrentMode=Hw;Je.isContextConsumer=function(e){return Co(e)===vm};Je.isContextProvider=function(e){return Co(e)===gm};Je.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T_};Je.isForwardRef=function(e){return Co(e)===_m};Je.isFragment=function(e){return Co(e)===hm};Je.isLazy=function(e){return Co(e)===Tm};Je.isMemo=function(e){return Co(e)===xm};Je.isPortal=function(e){return Co(e)===C_};Je.isProfiler=function(e){return Co(e)===ym};Je.isStrictMode=function(e){return Co(e)===mm};Je.isSuspense=function(e){return Co(e)===Sm};Je.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hm||e===bm||e===ym||e===mm||e===Sm||e===V4||typeof e=="object"&&e!==null&&(e.$$typeof===Tm||e.$$typeof===xm||e.$$typeof===gm||e.$$typeof===vm||e.$$typeof===_m||e.$$typeof===K4||e.$$typeof===G4||e.$$typeof===Y4||e.$$typeof===q4)};Je.typeOf=Co});var jw=Gr((ZJ,$w)=>{"use strict";$w.exports=Uw()});var Xw=Gr((QJ,Yw)=>{"use strict";var R_=jw(),X4={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z4={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},P_={};P_[R_.ForwardRef]=Q4;P_[R_.Memo]=Kw;function Ww(e){return R_.isMemo(e)?Kw:P_[e.$$typeof]||X4}var J4=Object.defineProperty,e6=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,t6=Object.getOwnPropertyDescriptor,r6=Object.getPrototypeOf,qw=Object.prototype;function Gw(e,t,r){if(typeof t!="string"){if(qw){var o=r6(t);o&&o!==qw&&Gw(e,o,r)}var i=e6(t);Vw&&(i=i.concat(Vw(t)));for(var n=Ww(e),s=Ww(t),a=0;a<i.length;++a){var l=i[a];if(!Z4[l]&&!(r&&r[l])&&!(s&&s[l])&&!(n&&n[l])){var c=t6(t,l);try{J4(e,l,c)}catch{}}}}return e}Yw.exports=Gw});var mR=Gr(Pm=>{"use strict";var b6=Symbol.for("react.transitional.element"),_6=Symbol.for("react.fragment");function hR(e,t,r){var o=null;if(r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),"key"in t){r={};for(var i in t)i!=="key"&&(r[i]=t[i])}else r=t;return t=r.ref,{$$typeof:b6,type:e,key:o,ref:t!==void 0?t:null,props:r}}Pm.Fragment=_6;Pm.jsx=hR;Pm.jsxs=hR});var R=Gr((Kee,yR)=>{"use strict";yR.exports=mR()});var _R=Gr(at=>{"use strict";var M_=Symbol.for("react.transitional.element"),D_=Symbol.for("react.portal"),Em=Symbol.for("react.fragment"),km=Symbol.for("react.strict_mode"),Om=Symbol.for("react.profiler"),Mm=Symbol.for("react.consumer"),Dm=Symbol.for("react.context"),Am=Symbol.for("react.forward_ref"),Bm=Symbol.for("react.suspense"),Nm=Symbol.for("react.suspense_list"),Lm=Symbol.for("react.memo"),Im=Symbol.for("react.lazy"),x6=Symbol.for("react.view_transition"),T6=Symbol.for("react.client.reference");function Jo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M_:switch(e=e.type,e){case Em:case Om:case km:case Bm:case Nm:case x6:return e;default:switch(e=e&&e.$$typeof,e){case Dm:case Am:case Im:case Lm:return e;case Mm:return e;default:return t}}case D_:return t}}}at.ContextConsumer=Mm;at.ContextProvider=Dm;at.Element=M_;at.ForwardRef=Am;at.Fragment=Em;at.Lazy=Im;at.Memo=Lm;at.Portal=D_;at.Profiler=Om;at.StrictMode=km;at.Suspense=Bm;at.SuspenseList=Nm;at.isContextConsumer=function(e){return Jo(e)===Mm};at.isContextProvider=function(e){return Jo(e)===Dm};at.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M_};at.isForwardRef=function(e){return Jo(e)===Am};at.isFragment=function(e){return Jo(e)===Em};at.isLazy=function(e){return Jo(e)===Im};at.isMemo=function(e){return Jo(e)===Lm};at.isPortal=function(e){return Jo(e)===D_};at.isProfiler=function(e){return Jo(e)===Om};at.isStrictMode=function(e){return Jo(e)===km};at.isSuspense=function(e){return Jo(e)===Bm};at.isSuspenseList=function(e){return Jo(e)===Nm};at.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Em||e===Om||e===km||e===Bm||e===Nm||typeof e=="object"&&e!==null&&(e.$$typeof===Im||e.$$typeof===Lm||e.$$typeof===Dm||e.$$typeof===Mm||e.$$typeof===Am||e.$$typeof===T6||e.getModuleId!==void 0)};at.typeOf=Jo});var xR=Gr((ite,SR)=>{"use strict";SR.exports=_R()});var IP=Gr(Jr=>{"use strict";var XH=I();function LP(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Os(){}var Qr={d:{f:Os,r:function(){throw Error(LP(522))},D:Os,C:Os,L:Os,m:Os,X:Os,S:Os,M:Os},p:0,findDOMNode:null},ZH=Symbol.for("react.portal");function QH(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ZH,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Rd=XH.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function by(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Qr;Jr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(LP(299));return QH(e,t,null,r)};Jr.flushSync=function(e){var t=Rd.T,r=Qr.p;try{if(Rd.T=null,Qr.p=2,e)return e()}finally{Rd.T=t,Qr.p=r,Qr.d.f()}};Jr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Qr.d.C(e,t))};Jr.prefetchDNS=function(e){typeof e=="string"&&Qr.d.D(e)};Jr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=by(r,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,n=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Qr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:n}):r==="script"&&Qr.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:n,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Jr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=by(t.as,t.crossOrigin);Qr.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Qr.d.M(e)};Jr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=by(r,t.crossOrigin);Qr.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Jr.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=by(t.as,t.crossOrigin);Qr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Qr.d.m(e)};Jr.requestFormReset=function(e){Qr.d.r(e)};Jr.unstable_batchedUpdates=function(e,t){return e(t)};Jr.useFormState=function(e,t,r){return Rd.H.useFormState(e,t,r)};Jr.useFormStatus=function(){return Rd.H.useHostTransitionStatus()};Jr.version="19.2.4"});var _y=Gr((tue,FP)=>{"use strict";function zP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zP)}catch(e){console.error(e)}}zP(),FP.exports=IP()});var wO=Gr(Et=>{"use strict";function TS(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,i=e[o];if(0<Tg(i,t))e[o]=t,e[r]=i,r=o;else break e}}function ln(e){return e.length===0?null:e[0]}function wg(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,i=e.length,n=i>>>1;o<n;){var s=2*(o+1)-1,a=e[s],l=s+1,c=e[l];if(0>Tg(a,r))l<i&&0>Tg(c,a)?(e[o]=c,e[l]=r,o=l):(e[o]=a,e[s]=r,o=s);else if(l<i&&0>Tg(c,r))e[o]=c,e[l]=r,o=l;else break e}}return t}function Tg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}Et.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(yO=performance,Et.unstable_now=function(){return yO.now()}):(_S=Date,gO=_S.now(),Et.unstable_now=function(){return _S.now()-gO});var yO,_S,gO,Wn=[],Ws=[],F7=1,li=null,jr=3,CS=!1,mf=!1,yf=!1,wS=!1,_O=typeof setTimeout=="function"?setTimeout:null,SO=typeof clearTimeout=="function"?clearTimeout:null,vO=typeof setImmediate<"u"?setImmediate:null;function Cg(e){for(var t=ln(Ws);t!==null;){if(t.callback===null)wg(Ws);else if(t.startTime<=e)wg(Ws),t.sortIndex=t.expirationTime,TS(Wn,t);else break;t=ln(Ws)}}function RS(e){if(yf=!1,Cg(e),!mf)if(ln(Wn)!==null)mf=!0,ku||(ku=!0,Eu());else{var t=ln(Ws);t!==null&&PS(RS,t.startTime-e)}}var ku=!1,gf=-1,xO=5,TO=-1;function CO(){return wS?!0:!(Et.unstable_now()-TO<xO)}function SS(){if(wS=!1,ku){var e=Et.unstable_now();TO=e;var t=!0;try{e:{mf=!1,yf&&(yf=!1,SO(gf),gf=-1),CS=!0;var r=jr;try{t:{for(Cg(e),li=ln(Wn);li!==null&&!(li.expirationTime>e&&CO());){var o=li.callback;if(typeof o=="function"){li.callback=null,jr=li.priorityLevel;var i=o(li.expirationTime<=e);if(e=Et.unstable_now(),typeof i=="function"){li.callback=i,Cg(e),t=!0;break t}li===ln(Wn)&&wg(Wn),Cg(e)}else wg(Wn);li=ln(Wn)}if(li!==null)t=!0;else{var n=ln(Ws);n!==null&&PS(RS,n.startTime-e),t=!1}}break e}finally{li=null,jr=r,CS=!1}t=void 0}}finally{t?Eu():ku=!1}}}var Eu;typeof vO=="function"?Eu=function(){vO(SS)}:typeof MessageChannel<"u"?(xS=new MessageChannel,bO=xS.port2,xS.port1.onmessage=SS,Eu=function(){bO.postMessage(null)}):Eu=function(){_O(SS,0)};var xS,bO;function PS(e,t){gf=_O(function(){e(Et.unstable_now())},t)}Et.unstable_IdlePriority=5;Et.unstable_ImmediatePriority=1;Et.unstable_LowPriority=4;Et.unstable_NormalPriority=3;Et.unstable_Profiling=null;Et.unstable_UserBlockingPriority=2;Et.unstable_cancelCallback=function(e){e.callback=null};Et.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xO=0<e?Math.floor(1e3/e):5};Et.unstable_getCurrentPriorityLevel=function(){return jr};Et.unstable_next=function(e){switch(jr){case 1:case 2:case 3:var t=3;break;default:t=jr}var r=jr;jr=t;try{return e()}finally{jr=r}};Et.unstable_requestPaint=function(){wS=!0};Et.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=jr;jr=e;try{return t()}finally{jr=r}};Et.unstable_scheduleCallback=function(e,t,r){var o=Et.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:F7++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>o?(e.sortIndex=r,TS(Ws,e),ln(Wn)===null&&e===ln(Ws)&&(yf?(SO(gf),gf=-1):yf=!0,PS(RS,r-o))):(e.sortIndex=i,TS(Wn,e),mf||CS||(mf=!0,ku||(ku=!0,Eu()))),e};Et.unstable_shouldYield=CO;Et.unstable_wrapCallback=function(e){var t=jr;return function(){var r=jr;jr=t;try{return e.apply(this,arguments)}finally{jr=r}}}});var PO=Gr((bDe,RO)=>{"use strict";RO.exports=wO()});var FB=Gr(Xv=>{"use strict";var sr=PO(),JM=I(),H7=_y();function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function eD(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oh(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function tD(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function rD(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function EO(e){if(oh(e)!==e)throw Error(U(188))}function U7(e){var t=e.alternate;if(!t){if(t=oh(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(i===null)break;var n=i.alternate;if(n===null){if(o=i.return,o!==null){r=o;continue}break}if(i.child===n.child){for(n=i.child;n;){if(n===r)return EO(i),e;if(n===o)return EO(i),t;n=n.sibling}throw Error(U(188))}if(r.return!==o.return)r=i,o=n;else{for(var s=!1,a=i.child;a;){if(a===r){s=!0,r=i,o=n;break}if(a===o){s=!0,o=i,r=n;break}a=a.sibling}if(!s){for(a=n.child;a;){if(a===r){s=!0,r=n,o=i;break}if(a===o){s=!0,o=n,r=i;break}a=a.sibling}if(!s)throw Error(U(189))}}if(r.alternate!==o)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function oD(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=oD(e),t!==null)return t;e=e.sibling}return null}var Ct=Object.assign,$7=Symbol.for("react.element"),Rg=Symbol.for("react.transitional.element"),wf=Symbol.for("react.portal"),Nu=Symbol.for("react.fragment"),iD=Symbol.for("react.strict_mode"),ax=Symbol.for("react.profiler"),nD=Symbol.for("react.consumer"),Qn=Symbol.for("react.context"),rT=Symbol.for("react.forward_ref"),lx=Symbol.for("react.suspense"),cx=Symbol.for("react.suspense_list"),oT=Symbol.for("react.memo"),Vs=Symbol.for("react.lazy"),ux=Symbol.for("react.activity"),j7=Symbol.for("react.memo_cache_sentinel"),kO=Symbol.iterator;function vf(e){return e===null||typeof e!="object"?null:(e=kO&&e[kO]||e["@@iterator"],typeof e=="function"?e:null)}var W7=Symbol.for("react.client.reference");function px(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W7?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nu:return"Fragment";case ax:return"Profiler";case iD:return"StrictMode";case lx:return"Suspense";case cx:return"SuspenseList";case ux:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case wf:return"Portal";case Qn:return e.displayName||"Context";case nD:return(e._context.displayName||"Context")+".Consumer";case rT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oT:return t=e.displayName||null,t!==null?t:px(e.type)||"Memo";case Vs:t=e._payload,e=e._init;try{return px(e(t))}catch{}}return null}var Rf=Array.isArray,ge=JM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe=H7.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sl={pending:!1,data:null,method:null,action:null},dx=[],Lu=-1;function fn(e){return{current:e}}function yr(e){0>Lu||(e.current=dx[Lu],dx[Lu]=null,Lu--)}function mt(e,t){Lu++,dx[Lu]=e.current,e.current=t}var dn=fn(null),jf=fn(null),ra=fn(null),nv=fn(null);function sv(e,t){switch(mt(ra,t),mt(jf,e),mt(dn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?LM(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=LM(t),e=wB(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}yr(dn),mt(dn,e)}function ep(){yr(dn),yr(jf),yr(ra)}function fx(e){e.memoizedState!==null&&mt(nv,e);var t=dn.current,r=wB(t,e.type);t!==r&&(mt(jf,e),mt(dn,r))}function av(e){jf.current===e&&(yr(dn),yr(jf)),nv.current===e&&(yr(nv),eh._currentValue=Sl)}var ES,OO;function gl(e){if(ES===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ES=t&&t[1]||"",OO=-1<r.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
3
|
`+ES+e+OO}var kS=!1;function OS(e,t){if(!e||kS)return"";kS=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(d){var f=d}Reflect.construct(e,[],p)}else{try{p.call()}catch(d){f=d}e.call(p.prototype)}}else{try{throw Error()}catch(d){f=d}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(d){if(d&&f&&typeof d.stack=="string")return[d.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=o.DetermineComponentFrameRoot(),s=n[0],a=n[1];if(s&&a){var l=s.split(`
|
|
4
4
|
`),c=a.split(`
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=i);break}}}finally{kS=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?gl(r):""}function V7(e,t){switch(e.tag){case 26:case 27:case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return e.child!==t&&t!==null?gl("Suspense Fallback"):gl("Suspense");case 19:return gl("SuspenseList");case 0:case 15:return OS(e.type,!1);case 11:return OS(e.type.render,!1);case 1:return OS(e.type,!0);case 31:return gl("Activity");default:return""}}function MO(e){try{var t="",r=null;do t+=V7(e,r),r=e,e=e.return;while(e);return t}catch(o){return`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
8
|
`+o.stack}}var hx=Object.prototype.hasOwnProperty,iT=sr.unstable_scheduleCallback,MS=sr.unstable_cancelCallback,q7=sr.unstable_shouldYield,K7=sr.unstable_requestPaint,Io=sr.unstable_now,G7=sr.unstable_getCurrentPriorityLevel,sD=sr.unstable_ImmediatePriority,aD=sr.unstable_UserBlockingPriority,lv=sr.unstable_NormalPriority,Y7=sr.unstable_LowPriority,lD=sr.unstable_IdlePriority,X7=sr.log,Z7=sr.unstable_setDisableYieldValue,ih=null,zo=null;function Zs(e){if(typeof X7=="function"&&Z7(e),zo&&typeof zo.setStrictMode=="function")try{zo.setStrictMode(ih,e)}catch{}}var Fo=Math.clz32?Math.clz32:eW,Q7=Math.log,J7=Math.LN2;function eW(e){return e>>>=0,e===0?32:31-(Q7(e)/J7|0)|0}var Pg=256,Eg=262144,kg=4194304;function vl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Bv(e,t,r){var o=e.pendingLanes;if(o===0)return 0;var i=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var a=o&134217727;return a!==0?(o=a&~n,o!==0?i=vl(o):(s&=a,s!==0?i=vl(s):r||(r=a&~e,r!==0&&(i=vl(r))))):(a=o&~n,a!==0?i=vl(a):s!==0?i=vl(s):r||(r=o&~e,r!==0&&(i=vl(r)))),i===0?0:t!==0&&t!==i&&(t&n)===0&&(n=i&-i,r=t&-t,n>=r||n===32&&(r&4194048)!==0)?t:i}function nh(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tW(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cD(){var e=kg;return kg<<=1,(kg&62914560)===0&&(kg=4194304),e}function DS(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function sh(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rW(e,t,r,o,i,n){var s=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var a=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(r=s&~r;0<r;){var u=31-Fo(r),p=1<<u;a[u]=0,l[u]=-1;var f=c[u];if(f!==null)for(c[u]=null,u=0;u<f.length;u++){var d=f[u];d!==null&&(d.lane&=-536870913)}r&=~p}o!==0&&uD(e,o,0),n!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function uD(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Fo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&261930}function pD(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Fo(r),i=1<<o;i&t|e[o]&t&&(e[o]|=t),r&=~i}}function dD(e,t){var r=t&-t;return r=(r&42)!==0?1:nT(r),(r&(e.suspendedLanes|t))!==0?0:r}function nT(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function sT(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fD(){var e=qe.p;return e!==0?e:(e=window.event,e===void 0?32:LB(e.type))}function DO(e,t){var r=qe.p;try{return qe.p=e,t()}finally{qe.p=r}}var ma=Math.random().toString(36).slice(2),Ar="__reactFiber$"+ma,go="__reactProps$"+ma,pp="__reactContainer$"+ma,mx="__reactEvents$"+ma,oW="__reactListeners$"+ma,iW="__reactHandles$"+ma,AO="__reactResources$"+ma,ah="__reactMarker$"+ma;function aT(e){delete e[Ar],delete e[go],delete e[mx],delete e[oW],delete e[iW]}function Iu(e){var t=e[Ar];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pp]||r[Ar]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=UM(e);e!==null;){if(r=e[Ar])return r;e=UM(e)}return t}e=r,r=e.parentNode}return null}function dp(e){if(e=e[Ar]||e[pp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pf(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function Ku(e){var t=e[AO];return t||(t=e[AO]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mr(e){e[ah]=!0}var hD=new Set,mD={};function Ml(e,t){tp(e,t),tp(e+"Capture",t)}function tp(e,t){for(mD[e]=t,e=0;e<t.length;e++)hD.add(t[e])}var nW=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),BO={},NO={};function sW(e){return hx.call(NO,e)?!0:hx.call(BO,e)?!1:nW.test(e)?NO[e]=!0:(BO[e]=!0,!1)}function Wg(e,t,r){if(sW(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Og(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Vn(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}function ui(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function aW(e,t,r){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var i=o.get,n=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yx(e){if(!e._valueTracker){var t=yD(e)?"checked":"value";e._valueTracker=aW(e,t,""+e[t])}}function gD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=yD(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function cv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lW=/[\n"\\]/g;function fi(e){return e.replace(lW,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function gx(e,t,r,o,i,n,s,a){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ui(t)):e.value!==""+ui(t)&&(e.value=""+ui(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?vx(e,s,ui(t)):r!=null?vx(e,s,ui(r)):o!=null&&e.removeAttribute("value"),i==null&&n!=null&&(e.defaultChecked=!!n),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.name=""+ui(a):e.removeAttribute("name")}function vD(e,t,r,o,i,n,s,a){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(e.type=n),t!=null||r!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){yx(e);return}r=r!=null?""+ui(r):"",t=t!=null?""+ui(t):r,a||t===e.value||(e.value=t),e.defaultValue=t}o=o??i,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=a?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),yx(e)}function vx(e,t,r){t==="number"&&cv(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Gu(e,t,r,o){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ui(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,o&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function bD(e,t,r){if(t!=null&&(t=""+ui(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+ui(r):""}function _D(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(U(92));if(Rf(o)){if(1<o.length)throw Error(U(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=ui(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o),yx(e)}function rp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var cW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function LO(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||cW.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function SD(e,t,r){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var i in t)o=t[i],t.hasOwnProperty(i)&&r[i]!==o&&LO(e,i,o)}else for(var n in t)t.hasOwnProperty(n)&&LO(e,n,t[n])}function lT(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uW=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pW=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vg(e){return pW.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}var bx=null;function cT(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zu=null,Yu=null;function IO(e){var t=dp(e);if(t&&(e=t.stateNode)){var r=e[go]||null;e:switch(e=t.stateNode,t.type){case"input":if(gx(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+fi(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=o[go]||null;if(!i)throw Error(U(90));gx(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&gD(o)}break e;case"textarea":bD(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Gu(e,!!r.multiple,t,!1)}}}var AS=!1;function xD(e,t,r){if(AS)return e(t,r);AS=!0;try{var o=e(t);return o}finally{if(AS=!1,(zu!==null||Yu!==null)&&(qv(),zu&&(t=zu,e=Yu,Yu=zu=null,IO(t),e)))for(t=0;t<e.length;t++)IO(e[t])}}function Wf(e,t){var r=e.stateNode;if(r===null)return null;var o=r[go]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(U(231,t,typeof r));return r}var is=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_x=!1;if(is)try{Ou={},Object.defineProperty(Ou,"passive",{get:function(){_x=!0}}),window.addEventListener("test",Ou,Ou),window.removeEventListener("test",Ou,Ou)}catch{_x=!1}var Ou,Qs=null,uT=null,qg=null;function TD(){if(qg)return qg;var e,t=uT,r=t.length,o,i="value"in Qs?Qs.value:Qs.textContent,n=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(o=1;o<=s&&t[r-o]===i[n-o];o++);return qg=i.slice(e,1<o?1-o:void 0)}function Kg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mg(){return!0}function zO(){return!1}function vo(e){function t(r,o,i,n,s){this._reactName=r,this._targetInst=i,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(n):n[a]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Mg:zO,this.isPropagationStopped=zO,this}return Ct(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Mg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Mg)},persist:function(){},isPersistent:Mg}),t}var Dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nv=vo(Dl),lh=Ct({},Dl,{view:0,detail:0}),dW=vo(lh),BS,NS,bf,Lv=Ct({},lh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pT,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bf&&(bf&&e.type==="mousemove"?(BS=e.screenX-bf.screenX,NS=e.screenY-bf.screenY):NS=BS=0,bf=e),BS)},movementY:function(e){return"movementY"in e?e.movementY:NS}}),FO=vo(Lv),fW=Ct({},Lv,{dataTransfer:0}),hW=vo(fW),mW=Ct({},lh,{relatedTarget:0}),LS=vo(mW),yW=Ct({},Dl,{animationName:0,elapsedTime:0,pseudoElement:0}),gW=vo(yW),vW=Ct({},Dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bW=vo(vW),_W=Ct({},Dl,{data:0}),HO=vo(_W),SW={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xW={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},TW={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CW(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TW[e])?!!t[e]:!1}function pT(){return CW}var wW=Ct({},lh,{key:function(e){if(e.key){var t=SW[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xW[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pT,charCode:function(e){return e.type==="keypress"?Kg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RW=vo(wW),PW=Ct({},Lv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),UO=vo(PW),EW=Ct({},lh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pT}),kW=vo(EW),OW=Ct({},Dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),MW=vo(OW),DW=Ct({},Lv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),AW=vo(DW),BW=Ct({},Dl,{newState:0,oldState:0}),NW=vo(BW),LW=[9,13,27,32],dT=is&&"CompositionEvent"in window,Of=null;is&&"documentMode"in document&&(Of=document.documentMode);var IW=is&&"TextEvent"in window&&!Of,CD=is&&(!dT||Of&&8<Of&&11>=Of),$O=" ",jO=!1;function wD(e,t){switch(e){case"keyup":return LW.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fu=!1;function zW(e,t){switch(e){case"compositionend":return RD(t);case"keypress":return t.which!==32?null:(jO=!0,$O);case"textInput":return e=t.data,e===$O&&jO?null:e;default:return null}}function FW(e,t){if(Fu)return e==="compositionend"||!dT&&wD(e,t)?(e=TD(),qg=uT=Qs=null,Fu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return CD&&t.locale!=="ko"?null:t.data;default:return null}}var HW={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function WO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HW[e.type]:t==="textarea"}function PD(e,t,r,o){zu?Yu?Yu.push(o):Yu=[o]:zu=o,t=Pv(t,"onChange"),0<t.length&&(r=new Nv("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Mf=null,Vf=null;function UW(e){xB(e,0)}function Iv(e){var t=Pf(e);if(gD(t))return e}function VO(e,t){if(e==="change")return t}var ED=!1;is&&(is?(Ag="oninput"in document,Ag||(IS=document.createElement("div"),IS.setAttribute("oninput","return;"),Ag=typeof IS.oninput=="function"),Dg=Ag):Dg=!1,ED=Dg&&(!document.documentMode||9<document.documentMode));var Dg,Ag,IS;function qO(){Mf&&(Mf.detachEvent("onpropertychange",kD),Vf=Mf=null)}function kD(e){if(e.propertyName==="value"&&Iv(Vf)){var t=[];PD(t,Vf,e,cT(e)),xD(UW,t)}}function $W(e,t,r){e==="focusin"?(qO(),Mf=t,Vf=r,Mf.attachEvent("onpropertychange",kD)):e==="focusout"&&qO()}function jW(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iv(Vf)}function WW(e,t){if(e==="click")return Iv(t)}function VW(e,t){if(e==="input"||e==="change")return Iv(t)}function qW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uo=typeof Object.is=="function"?Object.is:qW;function qf(e,t){if(Uo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var i=r[o];if(!hx.call(t,i)||!Uo(e[i],t[i]))return!1}return!0}function KO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function GO(e,t){var r=KO(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=KO(r)}}function OD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?OD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function MD(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cv(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=cv(e.document)}return t}function fT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var KW=is&&"documentMode"in document&&11>=document.documentMode,Hu=null,Sx=null,Df=null,xx=!1;function YO(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;xx||Hu==null||Hu!==cv(o)||(o=Hu,"selectionStart"in o&&fT(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Df&&qf(Df,o)||(Df=o,o=Pv(Sx,"onSelect"),0<o.length&&(t=new Nv("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Hu)))}function yl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Uu={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},zS={},DD={};is&&(DD=document.createElement("div").style,"AnimationEvent"in window||(delete Uu.animationend.animation,delete Uu.animationiteration.animation,delete Uu.animationstart.animation),"TransitionEvent"in window||delete Uu.transitionend.transition);function Al(e){if(zS[e])return zS[e];if(!Uu[e])return e;var t=Uu[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in DD)return zS[e]=t[r];return e}var AD=Al("animationend"),BD=Al("animationiteration"),ND=Al("animationstart"),GW=Al("transitionrun"),YW=Al("transitionstart"),XW=Al("transitioncancel"),LD=Al("transitionend"),ID=new Map,Tx="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tx.push("scrollEnd");function $i(e,t){ID.set(e,t),Ml(t,[e])}var uv=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ci=[],$u=0,hT=0;function zv(){for(var e=$u,t=hT=$u=0;t<e;){var r=ci[t];ci[t++]=null;var o=ci[t];ci[t++]=null;var i=ci[t];ci[t++]=null;var n=ci[t];if(ci[t++]=null,o!==null&&i!==null){var s=o.pending;s===null?i.next=i:(i.next=s.next,s.next=i),o.pending=i}n!==0&&zD(r,i,n)}}function Fv(e,t,r,o){ci[$u++]=e,ci[$u++]=t,ci[$u++]=r,ci[$u++]=o,hT|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function mT(e,t,r,o){return Fv(e,t,r,o),pv(e)}function Bl(e,t){return Fv(e,null,null,t),pv(e)}function zD(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var i=!1,n=e.return;n!==null;)n.childLanes|=r,o=n.alternate,o!==null&&(o.childLanes|=r),n.tag===22&&(e=n.stateNode,e===null||e._visibility&1||(i=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,i&&t!==null&&(i=31-Fo(r),e=n.hiddenUpdates,o=e[i],o===null?e[i]=[t]:o.push(t),t.lane=r|536870912),n):null}function pv(e){if(50<Uf)throw Uf=0,Wx=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ju={};function ZW(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function No(e,t,r,o){return new ZW(e,t,r,o)}function yT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ts(e,t){var r=e.alternate;return r===null?(r=No(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function FD(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gg(e,t,r,o,i,n){var s=0;if(o=e,typeof e=="function")yT(e)&&(s=1);else if(typeof e=="string")s=eq(e,r,dn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ux:return e=No(31,r,t,i),e.elementType=ux,e.lanes=n,e;case Nu:return xl(r.children,i,n,t);case iD:s=8,i|=24;break;case ax:return e=No(12,r,t,i|2),e.elementType=ax,e.lanes=n,e;case lx:return e=No(13,r,t,i),e.elementType=lx,e.lanes=n,e;case cx:return e=No(19,r,t,i),e.elementType=cx,e.lanes=n,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qn:s=10;break e;case nD:s=9;break e;case rT:s=11;break e;case oT:s=14;break e;case Vs:s=16,o=null;break e}s=29,r=Error(U(130,e===null?"null":typeof e,"")),o=null}return t=No(s,r,t,i),t.elementType=e,t.type=o,t.lanes=n,t}function xl(e,t,r,o){return e=No(7,e,o,t),e.lanes=r,e}function FS(e,t,r){return e=No(6,e,null,t),e.lanes=r,e}function HD(e){var t=No(18,null,null,0);return t.stateNode=e,t}function HS(e,t,r){return t=No(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var XO=new WeakMap;function hi(e,t){if(typeof e=="object"&&e!==null){var r=XO.get(e);return r!==void 0?r:(t={value:e,source:t,stack:MO(t)},XO.set(e,t),t)}return{value:e,source:t,stack:MO(t)}}var Wu=[],Vu=0,dv=null,Kf=0,pi=[],di=0,pa=null,cn=1,un="";function Xn(e,t){Wu[Vu++]=Kf,Wu[Vu++]=dv,dv=e,Kf=t}function UD(e,t,r){pi[di++]=cn,pi[di++]=un,pi[di++]=pa,pa=e;var o=cn;e=un;var i=32-Fo(o)-1;o&=~(1<<i),r+=1;var n=32-Fo(t)+i;if(30<n){var s=i-i%5;n=(o&(1<<s)-1).toString(32),o>>=s,i-=s,cn=1<<32-Fo(t)+i|r<<i|o,un=n+e}else cn=1<<n|r<<i|o,un=e}function gT(e){e.return!==null&&(Xn(e,1),UD(e,1,0))}function vT(e){for(;e===dv;)dv=Wu[--Vu],Wu[Vu]=null,Kf=Wu[--Vu],Wu[Vu]=null;for(;e===pa;)pa=pi[--di],pi[di]=null,un=pi[--di],pi[di]=null,cn=pi[--di],pi[di]=null}function $D(e,t){pi[di++]=cn,pi[di++]=un,pi[di++]=pa,cn=t.id,un=t.overflow,pa=e}var Br=null,Tt=null,Ie=!1,oa=null,mi=!1,Cx=Error(U(519));function da(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gf(hi(t,e)),Cx}function ZO(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[Ar]=e,t[go]=o,r){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(r=0;r<Qf.length;r++)Me(Qf[r],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),vD(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),_D(t,o.value,o.defaultValue,o.children)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||CB(t.textContent,r)?(o.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),o.onScroll!=null&&Me("scroll",t),o.onScrollEnd!=null&&Me("scrollend",t),o.onClick!=null&&(t.onclick=Jn),t=!0):t=!1,t||da(e,!0)}function QO(e){for(Br=e.return;Br;)switch(Br.tag){case 5:case 31:case 13:mi=!1;return;case 27:case 3:mi=!0;return;default:Br=Br.return}}function Mu(e){if(e!==Br)return!1;if(!Ie)return QO(e),Ie=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Yx(e.type,e.memoizedProps)),r=!r),r&&Tt&&da(e),QO(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Tt=HM(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Tt=HM(e)}else t===27?(t=Tt,ya(e.type)?(e=Jx,Jx=null,Tt=e):Tt=t):Tt=Br?gi(e.stateNode.nextSibling):null;return!0}function Rl(){Tt=Br=null,Ie=!1}function US(){var e=oa;return e!==null&&(mo===null?mo=e:mo.push.apply(mo,e),oa=null),e}function Gf(e){oa===null?oa=[e]:oa.push(e)}var wx=fn(null),Nl=null,es=null;function Ks(e,t,r){mt(wx,t._currentValue),t._currentValue=r}function rs(e){e._currentValue=wx.current,yr(wx)}function Rx(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Px(e,t,r,o){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var n=i.dependencies;if(n!==null){var s=i.child;n=n.firstContext;e:for(;n!==null;){var a=n;n=i;for(var l=0;l<t.length;l++)if(a.context===t[l]){n.lanes|=r,a=n.alternate,a!==null&&(a.lanes|=r),Rx(n.return,r,e),o||(s=null);break e}n=a.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(U(341));s.lanes|=r,n=s.alternate,n!==null&&(n.lanes|=r),Rx(s,r,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function fp(e,t,r,o){e=null;for(var i=t,n=!1;i!==null;){if(!n){if((i.flags&524288)!==0)n=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(U(387));if(s=s.memoizedProps,s!==null){var a=i.type;Uo(i.pendingProps.value,s.value)||(e!==null?e.push(a):e=[a])}}else if(i===nv.current){if(s=i.alternate,s===null)throw Error(U(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(eh):e=[eh])}i=i.return}e!==null&&Px(t,e,r,o),t.flags|=262144}function fv(e){for(e=e.firstContext;e!==null;){if(!Uo(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pl(e){Nl=e,es=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nr(e){return jD(Nl,e)}function Bg(e,t){return Nl===null&&Pl(e),jD(e,t)}function jD(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},es===null){if(e===null)throw Error(U(308));es=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else es=es.next=t;return r}var QW=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},JW=sr.unstable_scheduleCallback,eV=sr.unstable_NormalPriority,er={$$typeof:Qn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bT(){return{controller:new QW,data:new Map,refCount:0}}function ch(e){e.refCount--,e.refCount===0&&JW(eV,function(){e.controller.abort()})}var Af=null,Ex=0,op=0,Xu=null;function tV(e,t){if(Af===null){var r=Af=[];Ex=0,op=WT(),Xu={status:"pending",value:void 0,then:function(o){r.push(o)}}}return Ex++,t.then(JO,JO),t}function JO(){if(--Ex===0&&Af!==null){Xu!==null&&(Xu.status="fulfilled");var e=Af;Af=null,op=0,Xu=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rV(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(i){r.push(i)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var i=0;i<r.length;i++)(0,r[i])(t)},function(i){for(o.status="rejected",o.reason=i,i=0;i<r.length;i++)(0,r[i])(void 0)}),o}var eM=ge.S;ge.S=function(e,t){oB=Io(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tV(e,t),eM!==null&&eM(e,t)};var Tl=fn(null);function _T(){var e=Tl.current;return e!==null?e:ut.pooledCache}function Yg(e,t){t===null?mt(Tl,Tl.current):mt(Tl,t.pool)}function WD(){var e=_T();return e===null?null:{parent:er._currentValue,pool:e}}var hp=Error(U(460)),ST=Error(U(474)),Hv=Error(U(542)),hv={then:function(){}};function tM(e){return e=e.status,e==="fulfilled"||e==="rejected"}function VD(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(Jn,Jn),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oM(e),e;default:if(typeof t.status=="string")t.then(Jn,Jn);else{if(e=ut,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=o}},function(o){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,oM(e),e}throw Cl=t,hp}}function bl(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Cl=r,hp):r}}var Cl=null;function rM(){if(Cl===null)throw Error(U(459));var e=Cl;return Cl=null,e}function oM(e){if(e===hp||e===Hv)throw Error(U(483))}var Zu=null,Yf=0;function Ng(e){var t=Yf;return Yf+=1,Zu===null&&(Zu=[]),VD(Zu,e,t)}function _f(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Lg(e,t){throw t.$$typeof===$7?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qD(e){function t(m,g){if(e){var v=m.deletions;v===null?(m.deletions=[g],m.flags|=16):v.push(g)}}function r(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function o(m){for(var g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function i(m,g){return m=ts(m,g),m.index=0,m.sibling=null,m}function n(m,g,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<g?(m.flags|=67108866,g):v):(m.flags|=67108866,g)):(m.flags|=1048576,g)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function a(m,g,v,S){return g===null||g.tag!==6?(g=FS(v,m.mode,S),g.return=m,g):(g=i(g,v),g.return=m,g)}function l(m,g,v,S){var C=v.type;return C===Nu?u(m,g,v.props.children,S,v.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vs&&bl(C)===g.type)?(g=i(g,v.props),_f(g,v),g.return=m,g):(g=Gg(v.type,v.key,v.props,null,m.mode,S),_f(g,v),g.return=m,g)}function c(m,g,v,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=HS(v,m.mode,S),g.return=m,g):(g=i(g,v.children||[]),g.return=m,g)}function u(m,g,v,S,C){return g===null||g.tag!==7?(g=xl(v,m.mode,S,C),g.return=m,g):(g=i(g,v),g.return=m,g)}function p(m,g,v){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=FS(""+g,m.mode,v),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Rg:return v=Gg(g.type,g.key,g.props,null,m.mode,v),_f(v,g),v.return=m,v;case wf:return g=HS(g,m.mode,v),g.return=m,g;case Vs:return g=bl(g),p(m,g,v)}if(Rf(g)||vf(g))return g=xl(g,m.mode,v,null),g.return=m,g;if(typeof g.then=="function")return p(m,Ng(g),v);if(g.$$typeof===Qn)return p(m,Bg(m,g),v);Lg(m,g)}return null}function f(m,g,v,S){var C=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return C!==null?null:a(m,g,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Rg:return v.key===C?l(m,g,v,S):null;case wf:return v.key===C?c(m,g,v,S):null;case Vs:return v=bl(v),f(m,g,v,S)}if(Rf(v)||vf(v))return C!==null?null:u(m,g,v,S,null);if(typeof v.then=="function")return f(m,g,Ng(v),S);if(v.$$typeof===Qn)return f(m,g,Bg(m,v),S);Lg(m,v)}return null}function d(m,g,v,S,C){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(v)||null,a(g,m,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Rg:return m=m.get(S.key===null?v:S.key)||null,l(g,m,S,C);case wf:return m=m.get(S.key===null?v:S.key)||null,c(g,m,S,C);case Vs:return S=bl(S),d(m,g,v,S,C)}if(Rf(S)||vf(S))return m=m.get(v)||null,u(g,m,S,C,null);if(typeof S.then=="function")return d(m,g,v,Ng(S),C);if(S.$$typeof===Qn)return d(m,g,v,Bg(g,S),C);Lg(g,S)}return null}function h(m,g,v,S){for(var C=null,w=null,k=g,O=g=0,A=null;k!==null&&O<v.length;O++){k.index>O?(A=k,k=null):A=k.sibling;var B=f(m,k,v[O],S);if(B===null){k===null&&(k=A);break}e&&k&&B.alternate===null&&t(m,k),g=n(B,g,O),w===null?C=B:w.sibling=B,w=B,k=A}if(O===v.length)return r(m,k),Ie&&Xn(m,O),C;if(k===null){for(;O<v.length;O++)k=p(m,v[O],S),k!==null&&(g=n(k,g,O),w===null?C=k:w.sibling=k,w=k);return Ie&&Xn(m,O),C}for(k=o(k);O<v.length;O++)A=d(k,m,O,v[O],S),A!==null&&(e&&A.alternate!==null&&k.delete(A.key===null?O:A.key),g=n(A,g,O),w===null?C=A:w.sibling=A,w=A);return e&&k.forEach(function(M){return t(m,M)}),Ie&&Xn(m,O),C}function y(m,g,v,S){if(v==null)throw Error(U(151));for(var C=null,w=null,k=g,O=g=0,A=null,B=v.next();k!==null&&!B.done;O++,B=v.next()){k.index>O?(A=k,k=null):A=k.sibling;var M=f(m,k,B.value,S);if(M===null){k===null&&(k=A);break}e&&k&&M.alternate===null&&t(m,k),g=n(M,g,O),w===null?C=M:w.sibling=M,w=M,k=A}if(B.done)return r(m,k),Ie&&Xn(m,O),C;if(k===null){for(;!B.done;O++,B=v.next())B=p(m,B.value,S),B!==null&&(g=n(B,g,O),w===null?C=B:w.sibling=B,w=B);return Ie&&Xn(m,O),C}for(k=o(k);!B.done;O++,B=v.next())B=d(k,m,O,B.value,S),B!==null&&(e&&B.alternate!==null&&k.delete(B.key===null?O:B.key),g=n(B,g,O),w===null?C=B:w.sibling=B,w=B);return e&&k.forEach(function(x){return t(m,x)}),Ie&&Xn(m,O),C}function b(m,g,v,S){if(typeof v=="object"&&v!==null&&v.type===Nu&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Rg:e:{for(var C=v.key;g!==null;){if(g.key===C){if(C=v.type,C===Nu){if(g.tag===7){r(m,g.sibling),S=i(g,v.props.children),S.return=m,m=S;break e}}else if(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vs&&bl(C)===g.type){r(m,g.sibling),S=i(g,v.props),_f(S,v),S.return=m,m=S;break e}r(m,g);break}else t(m,g);g=g.sibling}v.type===Nu?(S=xl(v.props.children,m.mode,S,v.key),S.return=m,m=S):(S=Gg(v.type,v.key,v.props,null,m.mode,S),_f(S,v),S.return=m,m=S)}return s(m);case wf:e:{for(C=v.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){r(m,g.sibling),S=i(g,v.children||[]),S.return=m,m=S;break e}else{r(m,g);break}else t(m,g);g=g.sibling}S=HS(v,m.mode,S),S.return=m,m=S}return s(m);case Vs:return v=bl(v),b(m,g,v,S)}if(Rf(v))return h(m,g,v,S);if(vf(v)){if(C=vf(v),typeof C!="function")throw Error(U(150));return v=C.call(v),y(m,g,v,S)}if(typeof v.then=="function")return b(m,g,Ng(v),S);if(v.$$typeof===Qn)return b(m,g,Bg(m,v),S);Lg(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,g!==null&&g.tag===6?(r(m,g.sibling),S=i(g,v),S.return=m,m=S):(r(m,g),S=FS(v,m.mode,S),S.return=m,m=S),s(m)):r(m,g)}return function(m,g,v,S){try{Yf=0;var C=b(m,g,v,S);return Zu=null,C}catch(k){if(k===hp||k===Hv)throw k;var w=No(29,k,null,m.mode);return w.lanes=S,w.return=m,w}}}var El=qD(!0),KD=qD(!1),qs=!1;function xT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function na(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ve&2)!==0){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,t=pv(e),zD(e,null,r),t}return Fv(e,o,t,r),pv(e)}function Bf(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,pD(e,r)}}function $S(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var i=null,n=null;if(r=r.firstBaseUpdate,r!==null){do{var s={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};n===null?i=n=s:n=n.next=s,r=r.next}while(r!==null);n===null?i=n=t:n=n.next=t}else i=n=t;r={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Ox=!1;function Nf(){if(Ox){var e=Xu;if(e!==null)throw e}}function Lf(e,t,r,o){Ox=!1;var i=e.updateQueue;qs=!1;var n=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?n=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(n!==null){var p=i.baseState;s=0,u=c=l=null,a=n;do{var f=a.lane&-536870913,d=f!==a.lane;if(d?(Be&f)===f:(o&f)===f){f!==0&&f===op&&(Ox=!0),u!==null&&(u=u.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var h=e,y=a;f=t;var b=r;switch(y.tag){case 1:if(h=y.payload,typeof h=="function"){p=h.call(b,p,f);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,f=typeof h=="function"?h.call(b,p,f):h,f==null)break e;p=Ct({},p,f);break e;case 2:qs=!0}}f=a.callback,f!==null&&(e.flags|=64,d&&(e.flags|=8192),d=i.callbacks,d===null?i.callbacks=[f]:d.push(f))}else d={lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=d,l=p):u=u.next=d,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);u===null&&(l=p),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,n===null&&(i.shared.lanes=0),ha|=s,e.lanes=s,e.memoizedState=p}}function GD(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function YD(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)GD(r[e],t)}var ip=fn(null),mv=fn(0);function iM(e,t){e=ls,mt(mv,e),mt(ip,t),ls=e|t.baseLanes}function Mx(){mt(mv,ls),mt(ip,ip.current)}function TT(){ls=mv.current,yr(ip),yr(mv)}var $o=fn(null),yi=null;function Gs(e){var t=e.alternate;mt(qt,qt.current&1),mt($o,e),yi===null&&(t===null||ip.current!==null||t.memoizedState!==null)&&(yi=e)}function Dx(e){mt(qt,qt.current),mt($o,e),yi===null&&(yi=e)}function XD(e){e.tag===22?(mt(qt,qt.current),mt($o,e),yi===null&&(yi=e)):Ys(e)}function Ys(){mt(qt,qt.current),mt($o,$o.current)}function Bo(e){yr($o),yi===e&&(yi=null),yr(qt)}var qt=fn(0);function yv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Zx(r)||Qx(r)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ns=0,xe=null,it=null,Qt=null,gv=!1,Qu=!1,kl=!1,vv=0,Xf=0,Ju=null,oV=0;function Ht(){throw Error(U(321))}function CT(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Uo(e[r],t[r]))return!1;return!0}function wT(e,t,r,o,i,n){return ns=n,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?PA:LT,kl=!1,n=r(o,i),kl=!1,Qu&&(n=QD(t,r,o,i)),ZD(e),n}function ZD(e){ge.H=Zf;var t=it!==null&&it.next!==null;if(ns=0,Qt=it=xe=null,gv=!1,Xf=0,Ju=null,t)throw Error(U(300));e===null||tr||(e=e.dependencies,e!==null&&fv(e)&&(tr=!0))}function QD(e,t,r,o){xe=e;var i=0;do{if(Qu&&(Ju=null),Xf=0,Qu=!1,25<=i)throw Error(U(301));if(i+=1,Qt=it=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}ge.H=EA,n=t(r,o)}while(Qu);return n}function iV(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?uh(t):t,e=e.useState()[0],(it!==null?it.memoizedState:null)!==e&&(xe.flags|=1024),t}function RT(){var e=vv!==0;return vv=0,e}function PT(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function ET(e){if(gv){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gv=!1}ns=0,Qt=it=xe=null,Qu=!1,Xf=vv=0,Ju=null}function eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?xe.memoizedState=Qt=e:Qt=Qt.next=e,Qt}function Kt(){if(it===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=it.next;var t=Qt===null?xe.memoizedState:Qt.next;if(t!==null)Qt=t,it=e;else{if(e===null)throw xe.alternate===null?Error(U(467)):Error(U(310));it=e,e={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Qt===null?xe.memoizedState=Qt=e:Qt=Qt.next=e}return Qt}function Uv(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uh(e){var t=Xf;return Xf+=1,Ju===null&&(Ju=[]),e=VD(Ju,e,t),t=xe,(Qt===null?t.memoizedState:Qt.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?PA:LT),e}function $v(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return uh(e);if(e.$$typeof===Qn)return Nr(e)}throw Error(U(438,String(e)))}function kT(e){var t=null,r=xe.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=xe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Uv(),xe.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=j7;return t.index++,r}function ss(e,t){return typeof t=="function"?t(e):t}function Xg(e){var t=Kt();return OT(t,it,e)}function OT(e,t,r){var o=e.queue;if(o===null)throw Error(U(311));o.lastRenderedReducer=r;var i=e.baseQueue,n=o.pending;if(n!==null){if(i!==null){var s=i.next;i.next=n.next,n.next=s}t.baseQueue=i=n,o.pending=null}if(n=e.baseState,i===null)e.memoizedState=n;else{t=i.next;var a=s=null,l=null,c=t,u=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(Be&p)===p:(ns&p)===p){var f=c.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===op&&(u=!0);else if((ns&f)===f){c=c.next,f===op&&(u=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(a=l=p,s=n):l=l.next=p,xe.lanes|=f,ha|=f;p=c.action,kl&&r(n,p),n=c.hasEagerState?c.eagerState:r(n,p)}else f={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(a=l=f,s=n):l=l.next=f,xe.lanes|=p,ha|=p;c=c.next}while(c!==null&&c!==t);if(l===null?s=n:l.next=a,!Uo(n,e.memoizedState)&&(tr=!0,u&&(r=Xu,r!==null)))throw r;e.memoizedState=n,e.baseState=s,e.baseQueue=l,o.lastRenderedState=n}return i===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function jS(e){var t=Kt(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,n=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do n=e(n,s.action),s=s.next;while(s!==i);Uo(n,t.memoizedState)||(tr=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),r.lastRenderedState=n}return[n,o]}function JD(e,t,r){var o=xe,i=Kt(),n=Ie;if(n){if(r===void 0)throw Error(U(407));r=r()}else r=t();var s=!Uo((it||i).memoizedState,r);if(s&&(i.memoizedState=r,tr=!0),i=i.queue,MT(rA.bind(null,o,i,e),[e]),i.getSnapshot!==t||s||Qt!==null&&Qt.memoizedState.tag&1){if(o.flags|=2048,np(9,{destroy:void 0},tA.bind(null,o,i,r,t),null),ut===null)throw Error(U(349));n||(ns&127)!==0||eA(o,t,r)}return r}function eA(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=xe.updateQueue,t===null?(t=Uv(),xe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function tA(e,t,r,o){t.value=r,t.getSnapshot=o,oA(t)&&iA(e)}function rA(e,t,r){return r(function(){oA(t)&&iA(e)})}function oA(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Uo(e,r)}catch{return!0}}function iA(e){var t=Bl(e,2);t!==null&&yo(t,e,2)}function Ax(e){var t=eo();if(typeof e=="function"){var r=e;if(e=r(),kl){Zs(!0);try{r()}finally{Zs(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:e},t}function nA(e,t,r,o){return e.baseState=r,OT(e,it,typeof o=="function"?o:ss)}function nV(e,t,r,o,i){if(Wv(e))throw Error(U(485));if(e=t.action,e!==null){var n={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};ge.T!==null?r(!0):n.isTransition=!1,o(n),r=t.pending,r===null?(n.next=t.pending=n,sA(t,n)):(n.next=r.next,t.pending=r.next=n)}}function sA(e,t){var r=t.action,o=t.payload,i=e.state;if(t.isTransition){var n=ge.T,s={};ge.T=s;try{var a=r(i,o),l=ge.S;l!==null&&l(s,a),nM(e,t,a)}catch(c){Bx(e,t,c)}finally{n!==null&&s.types!==null&&(n.types=s.types),ge.T=n}}else try{n=r(i,o),nM(e,t,n)}catch(c){Bx(e,t,c)}}function nM(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){sM(e,t,o)},function(o){return Bx(e,t,o)}):sM(e,t,r)}function sM(e,t,r){t.status="fulfilled",t.value=r,aA(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,sA(e,r)))}function Bx(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,aA(t),t=t.next;while(t!==o)}e.action=null}function aA(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lA(e,t){return t}function aM(e,t){if(Ie){var r=ut.formState;if(r!==null){e:{var o=xe;if(Ie){if(Tt){t:{for(var i=Tt,n=mi;i.nodeType!==8;){if(!n){i=null;break t}if(i=gi(i.nextSibling),i===null){i=null;break t}}n=i.data,i=n==="F!"||n==="F"?i:null}if(i){Tt=gi(i.nextSibling),o=i.data==="F!";break e}}da(o)}o=!1}o&&(t=r[0])}}return r=eo(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lA,lastRenderedState:t},r.queue=o,r=CA.bind(null,xe,o),o.dispatch=r,o=Ax(!1),n=NT.bind(null,xe,!1,o.queue),o=eo(),i={state:t,dispatch:null,action:e,pending:null},o.queue=i,r=nV.bind(null,xe,i,n,r),i.dispatch=r,o.memoizedState=e,[t,r,!1]}function lM(e){var t=Kt();return cA(t,it,e)}function cA(e,t,r){if(t=OT(e,t,lA)[0],e=Xg(ss)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=uh(t)}catch(s){throw s===hp?Hv:s}else o=t;t=Kt();var i=t.queue,n=i.dispatch;return r!==t.memoizedState&&(xe.flags|=2048,np(9,{destroy:void 0},sV.bind(null,i,r),null)),[o,n,e]}function sV(e,t){e.action=t}function cM(e){var t=Kt(),r=it;if(r!==null)return cA(t,r,e);Kt(),t=t.memoizedState,r=Kt();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function np(e,t,r,o){return e={tag:e,create:r,deps:o,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Uv(),xe.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function uA(){return Kt().memoizedState}function Zg(e,t,r,o){var i=eo();xe.flags|=e,i.memoizedState=np(1|t,{destroy:void 0},r,o===void 0?null:o)}function jv(e,t,r,o){var i=Kt();o=o===void 0?null:o;var n=i.memoizedState.inst;it!==null&&o!==null&&CT(o,it.memoizedState.deps)?i.memoizedState=np(t,n,r,o):(xe.flags|=e,i.memoizedState=np(1|t,n,r,o))}function uM(e,t){Zg(8390656,8,e,t)}function MT(e,t){jv(2048,8,e,t)}function aV(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Uv(),xe.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function pA(e){var t=Kt().memoizedState;return aV({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function dA(e,t){return jv(4,2,e,t)}function fA(e,t){return jv(4,4,e,t)}function hA(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mA(e,t,r){r=r!=null?r.concat([e]):null,jv(4,4,hA.bind(null,t,e),r)}function DT(){}function yA(e,t){var r=Kt();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&CT(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function gA(e,t){var r=Kt();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&CT(t,o[1]))return o[0];if(o=e(),kl){Zs(!0);try{e()}finally{Zs(!1)}}return r.memoizedState=[o,t],o}function AT(e,t,r){return r===void 0||(ns&1073741824)!==0&&(Be&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=nB(),xe.lanes|=e,ha|=e,r)}function vA(e,t,r,o){return Uo(r,t)?r:ip.current!==null?(e=AT(e,r,o),Uo(e,t)||(tr=!0),e):(ns&42)===0||(ns&1073741824)!==0&&(Be&261930)===0?(tr=!0,e.memoizedState=r):(e=nB(),xe.lanes|=e,ha|=e,t)}function bA(e,t,r,o,i){var n=qe.p;qe.p=n!==0&&8>n?n:8;var s=ge.T,a={};ge.T=a,NT(e,!1,t,r);try{var l=i(),c=ge.S;if(c!==null&&c(a,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=rV(l,o);If(e,t,u,Ho(e))}else If(e,t,o,Ho(e))}catch(p){If(e,t,{then:function(){},status:"rejected",reason:p},Ho())}finally{qe.p=n,s!==null&&a.types!==null&&(s.types=a.types),ge.T=s}}function lV(){}function Nx(e,t,r,o){if(e.tag!==5)throw Error(U(476));var i=_A(e).queue;bA(e,i,t,Sl,r===null?lV:function(){return SA(e),r(o)})}function _A(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Sl,baseState:Sl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:Sl},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ss,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function SA(e){var t=_A(e);t.next===null&&(t=e.alternate.memoizedState),If(e,t.next.queue,{},Ho())}function BT(){return Nr(eh)}function xA(){return Kt().memoizedState}function TA(){return Kt().memoizedState}function cV(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Ho();e=ia(r);var o=na(t,e,r);o!==null&&(yo(o,t,r),Bf(o,t,r)),t={cache:bT()},e.payload=t;return}t=t.return}}function uV(e,t,r){var o=Ho();r={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Wv(e)?wA(t,r):(r=mT(e,t,r,o),r!==null&&(yo(r,e,o),RA(r,t,o)))}function CA(e,t,r){var o=Ho();If(e,t,r,o)}function If(e,t,r,o){var i={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Wv(e))wA(t,i);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var s=t.lastRenderedState,a=n(s,r);if(i.hasEagerState=!0,i.eagerState=a,Uo(a,s))return Fv(e,t,i,0),ut===null&&zv(),!1}catch{}if(r=mT(e,t,i,o),r!==null)return yo(r,e,o),RA(r,t,o),!0}return!1}function NT(e,t,r,o){if(o={lane:2,revertLane:WT(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Wv(e)){if(t)throw Error(U(479))}else t=mT(e,r,o,2),t!==null&&yo(t,e,2)}function Wv(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function wA(e,t){Qu=gv=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function RA(e,t,r){if((r&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,pD(e,r)}}var Zf={readContext:Nr,use:$v,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Zf.useEffectEvent=Ht;var PA={readContext:Nr,use:$v,useCallback:function(e,t){return eo().memoizedState=[e,t===void 0?null:t],e},useContext:Nr,useEffect:uM,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Zg(4194308,4,hA.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Zg(4194308,4,e,t)},useInsertionEffect:function(e,t){Zg(4,2,e,t)},useMemo:function(e,t){var r=eo();t=t===void 0?null:t;var o=e();if(kl){Zs(!0);try{e()}finally{Zs(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=eo();if(r!==void 0){var i=r(t);if(kl){Zs(!0);try{r(t)}finally{Zs(!1)}}}else i=t;return o.memoizedState=o.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},o.queue=e,e=e.dispatch=uV.bind(null,xe,e),[o.memoizedState,e]},useRef:function(e){var t=eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ax(e);var t=e.queue,r=CA.bind(null,xe,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:DT,useDeferredValue:function(e,t){var r=eo();return AT(r,e,t)},useTransition:function(){var e=Ax(!1);return e=bA.bind(null,xe,e.queue,!0,!1),eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=xe,i=eo();if(Ie){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),ut===null)throw Error(U(349));(Be&127)!==0||eA(o,t,r)}i.memoizedState=r;var n={value:r,getSnapshot:t};return i.queue=n,uM(rA.bind(null,o,n,e),[e]),o.flags|=2048,np(9,{destroy:void 0},tA.bind(null,o,n,r,t),null),r},useId:function(){var e=eo(),t=ut.identifierPrefix;if(Ie){var r=un,o=cn;r=(o&~(1<<32-Fo(o)-1)).toString(32)+r,t="_"+t+"R_"+r,r=vv++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=oV++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:BT,useFormState:aM,useActionState:aM,useOptimistic:function(e){var t=eo();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=NT.bind(null,xe,!0,r),r.dispatch=t,[e,t]},useMemoCache:kT,useCacheRefresh:function(){return eo().memoizedState=cV.bind(null,xe)},useEffectEvent:function(e){var t=eo(),r={impl:e};return t.memoizedState=r,function(){if((Ve&2)!==0)throw Error(U(440));return r.impl.apply(void 0,arguments)}}},LT={readContext:Nr,use:$v,useCallback:yA,useContext:Nr,useEffect:MT,useImperativeHandle:mA,useInsertionEffect:dA,useLayoutEffect:fA,useMemo:gA,useReducer:Xg,useRef:uA,useState:function(){return Xg(ss)},useDebugValue:DT,useDeferredValue:function(e,t){var r=Kt();return vA(r,it.memoizedState,e,t)},useTransition:function(){var e=Xg(ss)[0],t=Kt().memoizedState;return[typeof e=="boolean"?e:uh(e),t]},useSyncExternalStore:JD,useId:xA,useHostTransitionStatus:BT,useFormState:lM,useActionState:lM,useOptimistic:function(e,t){var r=Kt();return nA(r,it,e,t)},useMemoCache:kT,useCacheRefresh:TA};LT.useEffectEvent=pA;var EA={readContext:Nr,use:$v,useCallback:yA,useContext:Nr,useEffect:MT,useImperativeHandle:mA,useInsertionEffect:dA,useLayoutEffect:fA,useMemo:gA,useReducer:jS,useRef:uA,useState:function(){return jS(ss)},useDebugValue:DT,useDeferredValue:function(e,t){var r=Kt();return it===null?AT(r,e,t):vA(r,it.memoizedState,e,t)},useTransition:function(){var e=jS(ss)[0],t=Kt().memoizedState;return[typeof e=="boolean"?e:uh(e),t]},useSyncExternalStore:JD,useId:xA,useHostTransitionStatus:BT,useFormState:cM,useActionState:cM,useOptimistic:function(e,t){var r=Kt();return it!==null?nA(r,it,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:kT,useCacheRefresh:TA};EA.useEffectEvent=pA;function WS(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Ct({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Lx={enqueueSetState:function(e,t,r){e=e._reactInternals;var o=Ho(),i=ia(o);i.payload=t,r!=null&&(i.callback=r),t=na(e,i,o),t!==null&&(yo(t,e,o),Bf(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=Ho(),i=ia(o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=na(e,i,o),t!==null&&(yo(t,e,o),Bf(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ho(),o=ia(r);o.tag=2,t!=null&&(o.callback=t),t=na(e,o,r),t!==null&&(yo(t,e,r),Bf(t,e,r))}};function pM(e,t,r,o,i,n,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,n,s):t.prototype&&t.prototype.isPureReactComponent?!qf(r,o)||!qf(i,n):!0}function dM(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&Lx.enqueueReplaceState(t,t.state,null)}function Ol(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=Ct({},r));for(var i in e)r[i]===void 0&&(r[i]=e[i])}return r}function kA(e){uv(e)}function OA(e){console.error(e)}function MA(e){uv(e)}function bv(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function fM(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ix(e,t,r){return r=ia(r),r.tag=3,r.payload={element:null},r.callback=function(){bv(e,t)},r}function DA(e){return e=ia(e),e.tag=3,e}function AA(e,t,r,o){var i=r.type.getDerivedStateFromError;if(typeof i=="function"){var n=o.value;e.payload=function(){return i(n)},e.callback=function(){fM(t,r,o)}}var s=r.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){fM(t,r,o),typeof i!="function"&&(sa===null?sa=new Set([this]):sa.add(this));var a=o.stack;this.componentDidCatch(o.value,{componentStack:a!==null?a:""})})}function pV(e,t,r,o,i){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&fp(t,r,i,!0),r=$o.current,r!==null){switch(r.tag){case 31:case 13:return yi===null?Cv():r.alternate===null&&Ut===0&&(Ut=3),r.flags&=-257,r.flags|=65536,r.lanes=i,o===hv?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),tx(e,o,i)),!1;case 22:return r.flags|=65536,o===hv?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),tx(e,o,i)),!1}throw Error(U(435,r.tag))}return tx(e,o,i),Cv(),!1}if(Ie)return t=$o.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==Cx&&(e=Error(U(422),{cause:o}),Gf(hi(e,r)))):(o!==Cx&&(t=Error(U(423),{cause:o}),Gf(hi(t,r))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,o=hi(o,r),i=Ix(e.stateNode,o,i),$S(e,i),Ut!==4&&(Ut=2)),!1;var n=Error(U(520),{cause:o});if(n=hi(n,r),Hf===null?Hf=[n]:Hf.push(n),Ut!==4&&(Ut=2),t===null)return!0;o=hi(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=i&-i,r.lanes|=e,e=Ix(r.stateNode,o,e),$S(r,e),!1;case 1:if(t=r.type,n=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(sa===null||!sa.has(n))))return r.flags|=65536,i&=-i,r.lanes|=i,i=DA(i),AA(i,e,r,o),$S(r,i),!1}r=r.return}while(r!==null);return!1}var IT=Error(U(461)),tr=!1;function Dr(e,t,r,o){t.child=e===null?KD(t,null,r,o):El(t,e.child,r,o)}function hM(e,t,r,o,i){r=r.render;var n=t.ref;if("ref"in o){var s={};for(var a in o)a!=="ref"&&(s[a]=o[a])}else s=o;return Pl(t),o=wT(e,t,r,s,n,i),a=RT(),e!==null&&!tr?(PT(e,t,i),as(e,t,i)):(Ie&&a&&gT(t),t.flags|=1,Dr(e,t,o,i),t.child)}function mM(e,t,r,o,i){if(e===null){var n=r.type;return typeof n=="function"&&!yT(n)&&n.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=n,BA(e,t,n,o,i)):(e=Gg(r.type,null,o,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(n=e.child,!zT(e,i)){var s=n.memoizedProps;if(r=r.compare,r=r!==null?r:qf,r(s,o)&&e.ref===t.ref)return as(e,t,i)}return t.flags|=1,e=ts(n,o),e.ref=t.ref,e.return=t,t.child=e}function BA(e,t,r,o,i){if(e!==null){var n=e.memoizedProps;if(qf(n,o)&&e.ref===t.ref)if(tr=!1,t.pendingProps=o=n,zT(e,i))(e.flags&131072)!==0&&(tr=!0);else return t.lanes=e.lanes,as(e,t,i)}return zx(e,t,r,o,i)}function NA(e,t,r,o){var i=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|r:r,e!==null){for(o=t.child=e.child,i=0;o!==null;)i=i|o.lanes|o.childLanes,o=o.sibling;o=i&~n}else o=0,t.child=null;return yM(e,t,n,r,o)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Yg(t,n!==null?n.cachePool:null),n!==null?iM(t,n):Mx(),XD(t);else return o=t.lanes=536870912,yM(e,t,n!==null?n.baseLanes|r:r,r,o)}else n!==null?(Yg(t,n.cachePool),iM(t,n),Ys(t),t.memoizedState=null):(e!==null&&Yg(t,null),Mx(),Ys(t));return Dr(e,t,i,r),t.child}function Ef(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function yM(e,t,r,o,i){var n=_T();return n=n===null?null:{parent:er._currentValue,pool:n},t.memoizedState={baseLanes:r,cachePool:n},e!==null&&Yg(t,null),Mx(),XD(t),e!==null&&fp(e,t,o,!0),t.childLanes=i,null}function Qg(e,t){return t=_v({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gM(e,t,r){return El(t,e.child,null,r),e=Qg(t,t.pendingProps),e.flags|=2,Bo(t),t.memoizedState=null,e}function dV(e,t,r){var o=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ie){if(o.mode==="hidden")return e=Qg(t,o),t.lanes=536870912,Ef(null,e);if(Dx(t),(e=Tt)?(e=PB(e,mi),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pa!==null?{id:cn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},r=HD(e),r.return=t,t.child=r,Br=t,Tt=null)):e=null,e===null)throw da(t);return t.lanes=536870912,null}return Qg(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(Dx(t),i)if(t.flags&256)t.flags&=-257,t=gM(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(tr||fp(e,t,r,!1),i=(r&e.childLanes)!==0,tr||i){if(o=ut,o!==null&&(s=dD(o,r),s!==0&&s!==n.retryLane))throw n.retryLane=s,Bl(e,s),yo(o,e,s),IT;Cv(),t=gM(e,t,r)}else e=n.treeContext,Tt=gi(s.nextSibling),Br=t,Ie=!0,oa=null,mi=!1,e!==null&&$D(t,e),t=Qg(t,o),t.flags|=4096;return t}return e=ts(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jg(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(U(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function zx(e,t,r,o,i){return Pl(t),r=wT(e,t,r,o,void 0,i),o=RT(),e!==null&&!tr?(PT(e,t,i),as(e,t,i)):(Ie&&o&&gT(t),t.flags|=1,Dr(e,t,r,i),t.child)}function vM(e,t,r,o,i,n){return Pl(t),t.updateQueue=null,r=QD(t,o,r,i),ZD(e),o=RT(),e!==null&&!tr?(PT(e,t,n),as(e,t,n)):(Ie&&o&&gT(t),t.flags|=1,Dr(e,t,r,n),t.child)}function bM(e,t,r,o,i){if(Pl(t),t.stateNode===null){var n=ju,s=r.contextType;typeof s=="object"&&s!==null&&(n=Nr(s)),n=new r(o,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Lx,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},xT(t),s=r.contextType,n.context=typeof s=="object"&&s!==null?Nr(s):ju,n.state=t.memoizedState,s=r.getDerivedStateFromProps,typeof s=="function"&&(WS(t,r,s,o),n.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(s=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&Lx.enqueueReplaceState(n,n.state,null),Lf(t,o,n,i),Nf(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){n=t.stateNode;var a=t.memoizedProps,l=Ol(r,a);n.props=l;var c=n.context,u=r.contextType;s=ju,typeof u=="object"&&u!==null&&(s=Nr(u));var p=r.getDerivedStateFromProps;u=typeof p=="function"||typeof n.getSnapshotBeforeUpdate=="function",a=t.pendingProps!==a,u||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(a||c!==s)&&dM(t,n,o,s),qs=!1;var f=t.memoizedState;n.state=f,Lf(t,o,n,i),Nf(),c=t.memoizedState,a||f!==c||qs?(typeof p=="function"&&(WS(t,r,p,o),c=t.memoizedState),(l=qs||pM(t,r,l,o,f,c,s))?(u||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=c),n.props=o,n.state=c,n.context=s,o=l):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{n=t.stateNode,kx(e,t),s=t.memoizedProps,u=Ol(r,s),n.props=u,p=t.pendingProps,f=n.context,c=r.contextType,l=ju,typeof c=="object"&&c!==null&&(l=Nr(c)),a=r.getDerivedStateFromProps,(c=typeof a=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(s!==p||f!==l)&&dM(t,n,o,l),qs=!1,f=t.memoizedState,n.state=f,Lf(t,o,n,i),Nf();var d=t.memoizedState;s!==p||f!==d||qs||e!==null&&e.dependencies!==null&&fv(e.dependencies)?(typeof a=="function"&&(WS(t,r,a,o),d=t.memoizedState),(u=qs||pM(t,r,u,o,f,d,l)||e!==null&&e.dependencies!==null&&fv(e.dependencies))?(c||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(o,d,l),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(o,d,l)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=d),n.props=o,n.state=d,n.context=l,o=u):(typeof n.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return n=o,Jg(e,t),o=(t.flags&128)!==0,n||o?(n=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,e!==null&&o?(t.child=El(t,e.child,null,i),t.child=El(t,null,r,i)):Dr(e,t,r,i),t.memoizedState=n.state,e=t.child):e=as(e,t,i),e}function _M(e,t,r,o){return Rl(),t.flags|=256,Dr(e,t,r,o),t.child}var VS={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qS(e){return{baseLanes:e,cachePool:WD()}}function KS(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Lo),e}function LA(e,t,r){var o=t.pendingProps,i=!1,n=(t.flags&128)!==0,s;if((s=n)||(s=e!==null&&e.memoizedState===null?!1:(qt.current&2)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ie){if(i?Gs(t):Ys(t),(e=Tt)?(e=PB(e,mi),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pa!==null?{id:cn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},r=HD(e),r.return=t,t.child=r,Br=t,Tt=null)):e=null,e===null)throw da(t);return Qx(e)?t.lanes=32:t.lanes=536870912,null}var a=o.children;return o=o.fallback,i?(Ys(t),i=t.mode,a=_v({mode:"hidden",children:a},i),o=xl(o,i,r,null),a.return=t,o.return=t,a.sibling=o,t.child=a,o=t.child,o.memoizedState=qS(r),o.childLanes=KS(e,s,r),t.memoizedState=VS,Ef(null,o)):(Gs(t),Fx(t,a))}var l=e.memoizedState;if(l!==null&&(a=l.dehydrated,a!==null)){if(n)t.flags&256?(Gs(t),t.flags&=-257,t=GS(e,t,r)):t.memoizedState!==null?(Ys(t),t.child=e.child,t.flags|=128,t=null):(Ys(t),a=o.fallback,i=t.mode,o=_v({mode:"visible",children:o.children},i),a=xl(a,i,r,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,El(t,e.child,null,r),o=t.child,o.memoizedState=qS(r),o.childLanes=KS(e,s,r),t.memoizedState=VS,t=Ef(null,o));else if(Gs(t),Qx(a)){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;s=c,o=Error(U(419)),o.stack="",o.digest=s,Gf({value:o,source:null,stack:null}),t=GS(e,t,r)}else if(tr||fp(e,t,r,!1),s=(r&e.childLanes)!==0,tr||s){if(s=ut,s!==null&&(o=dD(s,r),o!==0&&o!==l.retryLane))throw l.retryLane=o,Bl(e,o),yo(s,e,o),IT;Zx(a)||Cv(),t=GS(e,t,r)}else Zx(a)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Tt=gi(a.nextSibling),Br=t,Ie=!0,oa=null,mi=!1,e!==null&&$D(t,e),t=Fx(t,o.children),t.flags|=4096);return t}return i?(Ys(t),a=o.fallback,i=t.mode,l=e.child,c=l.sibling,o=ts(l,{mode:"hidden",children:o.children}),o.subtreeFlags=l.subtreeFlags&65011712,c!==null?a=ts(c,a):(a=xl(a,i,r,null),a.flags|=2),a.return=t,o.return=t,o.sibling=a,t.child=o,Ef(null,o),o=t.child,a=e.child.memoizedState,a===null?a=qS(r):(i=a.cachePool,i!==null?(l=er._currentValue,i=i.parent!==l?{parent:l,pool:l}:i):i=WD(),a={baseLanes:a.baseLanes|r,cachePool:i}),o.memoizedState=a,o.childLanes=KS(e,s,r),t.memoizedState=VS,Ef(e.child,o)):(Gs(t),r=e.child,e=r.sibling,r=ts(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=r,t.memoizedState=null,r)}function Fx(e,t){return t=_v({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _v(e,t){return e=No(22,e,null,t),e.lanes=0,e}function GS(e,t,r){return El(t,e.child,null,r),e=Fx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function SM(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Rx(e.return,t,r)}function YS(e,t,r,o,i,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:i,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=r,s.tailMode=i,s.treeForkCount=n)}function IA(e,t,r){var o=t.pendingProps,i=o.revealOrder,n=o.tail;o=o.children;var s=qt.current,a=(s&2)!==0;if(a?(s=s&1|2,t.flags|=128):s&=1,mt(qt,s),Dr(e,t,o,r),o=Ie?Kf:0,!a&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&SM(e,r,t);else if(e.tag===19)SM(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&yv(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),YS(t,!1,i,r,n,o);break;case"backwards":case"unstable_legacy-backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&yv(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}YS(t,!0,r,null,n,o);break;case"together":YS(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function as(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(fp(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,r=ts(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ts(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function zT(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fv(e)))}function fV(e,t,r){switch(t.tag){case 3:sv(t,t.stateNode.containerInfo),Ks(t,er,e.memoizedState.cache),Rl();break;case 27:case 5:fx(t);break;case 4:sv(t,t.stateNode.containerInfo);break;case 10:Ks(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Dx(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Gs(t),t.flags|=128,null):(r&t.child.childLanes)!==0?LA(e,t,r):(Gs(t),e=as(e,t,r),e!==null?e.sibling:null);Gs(t);break;case 19:var i=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(fp(e,t,r,!1),o=(r&t.childLanes)!==0),i){if(o)return IA(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),mt(qt,qt.current),o)break;return null;case 22:return t.lanes=0,NA(e,t,r,t.pendingProps);case 24:Ks(t,er,e.memoizedState.cache)}return as(e,t,r)}function zA(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)tr=!0;else{if(!zT(e,r)&&(t.flags&128)===0)return tr=!1,fV(e,t,r);tr=(e.flags&131072)!==0}else tr=!1,Ie&&(t.flags&1048576)!==0&&UD(t,Kf,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")yT(e)?(o=Ol(e,o),t.tag=1,t=bM(null,t,e,o,r)):(t.tag=0,t=zx(null,t,e,o,r));else{if(e!=null){var i=e.$$typeof;if(i===rT){t.tag=11,t=hM(null,t,e,o,r);break e}else if(i===oT){t.tag=14,t=mM(null,t,e,o,r);break e}}throw t=px(e)||e,Error(U(306,t,""))}}return t;case 0:return zx(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,i=Ol(o,t.pendingProps),bM(e,t,o,i,r);case 3:e:{if(sv(t,t.stateNode.containerInfo),e===null)throw Error(U(387));o=t.pendingProps;var n=t.memoizedState;i=n.element,kx(e,t),Lf(t,o,null,r);var s=t.memoizedState;if(o=s.cache,Ks(t,er,o),o!==n.cache&&Px(t,[er],r,!0),Nf(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=_M(e,t,o,r);break e}else if(o!==i){i=hi(Error(U(424)),t),Gf(i),t=_M(e,t,o,r);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Tt=gi(e.firstChild),Br=t,Ie=!0,oa=null,mi=!0,r=KD(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Rl(),o===i){t=as(e,t,r);break e}Dr(e,t,o,r)}t=t.child}return t;case 26:return Jg(e,t),e===null?(r=jM(t.type,null,t.pendingProps,null))?t.memoizedState=r:Ie||(r=t.type,e=t.pendingProps,o=Ev(ra.current).createElement(r),o[Ar]=t,o[go]=e,Lr(o,r,e),mr(o),t.stateNode=o):t.memoizedState=jM(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fx(t),e===null&&Ie&&(o=t.stateNode=EB(t.type,t.pendingProps,ra.current),Br=t,mi=!0,i=Tt,ya(t.type)?(Jx=i,Tt=gi(o.firstChild)):Tt=i),Dr(e,t,t.pendingProps.children,r),Jg(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ie&&((i=o=Tt)&&(o=UV(o,t.type,t.pendingProps,mi),o!==null?(t.stateNode=o,Br=t,Tt=gi(o.firstChild),mi=!1,i=!0):i=!1),i||da(t)),fx(t),i=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Yx(i,n)?o=null:s!==null&&Yx(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=wT(e,t,iV,null,null,r),eh._currentValue=i),Jg(e,t),Dr(e,t,o,r),t.child;case 6:return e===null&&Ie&&((e=r=Tt)&&(r=$V(r,t.pendingProps,mi),r!==null?(t.stateNode=r,Br=t,Tt=null,e=!0):e=!1),e||da(t)),null;case 13:return LA(e,t,r);case 4:return sv(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=El(t,null,o,r):Dr(e,t,o,r),t.child;case 11:return hM(e,t,t.type,t.pendingProps,r);case 7:return Dr(e,t,t.pendingProps,r),t.child;case 8:return Dr(e,t,t.pendingProps.children,r),t.child;case 12:return Dr(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,Ks(t,t.type,o.value),Dr(e,t,o.children,r),t.child;case 9:return i=t.type._context,o=t.pendingProps.children,Pl(t),i=Nr(i),o=o(i),t.flags|=1,Dr(e,t,o,r),t.child;case 14:return mM(e,t,t.type,t.pendingProps,r);case 15:return BA(e,t,t.type,t.pendingProps,r);case 19:return IA(e,t,r);case 31:return dV(e,t,r);case 22:return NA(e,t,r,t.pendingProps);case 24:return Pl(t),o=Nr(er),e===null?(i=_T(),i===null&&(i=ut,n=bT(),i.pooledCache=n,n.refCount++,n!==null&&(i.pooledCacheLanes|=r),i=n),t.memoizedState={parent:o,cache:i},xT(t),Ks(t,er,i)):((e.lanes&r)!==0&&(kx(e,t),Lf(t,null,null,r),Nf()),i=e.memoizedState,n=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ks(t,er,o)):(o=n.cache,Ks(t,er,o),o!==i.cache&&Px(t,[er],r,!0))),Dr(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function qn(e){e.flags|=4}function XS(e,t,r,o,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(lB())e.flags|=8192;else throw Cl=hv,ST}else e.flags&=-16777217}function xM(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!MB(t))if(lB())e.flags|=8192;else throw Cl=hv,ST}function Ig(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cD():536870912,e.lanes|=t,sp|=t)}function Sf(e,t){if(!Ie)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,o|=i.subtreeFlags&65011712,o|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,o|=i.subtreeFlags,o|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function hV(e,t,r){var o=t.pendingProps;switch(vT(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return xt(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),rs(er),ep(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mu(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,US())),xt(t),null;case 26:var i=t.type,n=t.memoizedState;return e===null?(qn(t),n!==null?(xt(t),xM(t,n)):(xt(t),XS(t,i,null,o,r))):n?n!==e.memoizedState?(qn(t),xt(t),xM(t,n)):(xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&qn(t),xt(t),XS(t,i,e,o,r)),null;case 27:if(av(t),r=ra.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&qn(t);else{if(!o){if(t.stateNode===null)throw Error(U(166));return xt(t),null}e=dn.current,Mu(t)?ZO(t,e):(e=EB(i,o,r),t.stateNode=e,qn(t))}return xt(t),null;case 5:if(av(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&qn(t);else{if(!o){if(t.stateNode===null)throw Error(U(166));return xt(t),null}if(n=dn.current,Mu(t))ZO(t,n);else{var s=Ev(ra.current);switch(n){case 1:n=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:n=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":n=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":n=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":n=s.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is=="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is=="string"?s.createElement(i,{is:o.is}):s.createElement(i)}}n[Ar]=t,n[go]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch(Lr(n,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&qn(t)}}return xt(t),XS(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&qn(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(U(166));if(e=ra.current,Mu(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,i=Br,i!==null)switch(i.tag){case 27:case 5:o=i.memoizedProps}e[Ar]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||CB(e.nodeValue,r)),e||da(t,!0)}else e=Ev(e).createTextNode(o),e[Ar]=t,t.stateNode=e}return xt(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(o=Mu(t),r!==null){if(e===null){if(!o)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[Ar]=t}else Rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),e=!1}else r=US(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Bo(t),t):(Bo(t),null);if((t.flags&128)!==0)throw Error(U(558))}return xt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Mu(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[Ar]=t}else Rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xt(t),i=!1}else i=US(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Bo(t),t):(Bo(t),null)}return Bo(t),(t.flags&128)!==0?(t.lanes=r,t):(r=o!==null,e=e!==null&&e.memoizedState!==null,r&&(o=t.child,i=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(i=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==i&&(o.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),Ig(t,t.updateQueue),xt(t),null);case 4:return ep(),e===null&&VT(t.stateNode.containerInfo),xt(t),null;case 10:return rs(t.type),xt(t),null;case 19:if(yr(qt),o=t.memoizedState,o===null)return xt(t),null;if(i=(t.flags&128)!==0,n=o.rendering,n===null)if(i)Sf(o,!1);else{if(Ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=yv(e),n!==null){for(t.flags|=128,Sf(o,!1),e=n.updateQueue,t.updateQueue=e,Ig(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)FD(r,e),r=r.sibling;return mt(qt,qt.current&1|2),Ie&&Xn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Io()>xv&&(t.flags|=128,i=!0,Sf(o,!1),t.lanes=4194304)}else{if(!i)if(e=yv(n),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ig(t,e),Sf(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!Ie)return xt(t),null}else 2*Io()-o.renderingStartTime>xv&&r!==536870912&&(t.flags|=128,i=!0,Sf(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Io(),e.sibling=null,r=qt.current,mt(qt,i?r&1|2:r&1),Ie&&Xn(t,o.treeForkCount),e):(xt(t),null);case 22:case 23:return Bo(t),TT(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),r=t.updateQueue,r!==null&&Ig(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&yr(Tl),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),rs(er),xt(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function mV(e,t){switch(vT(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return rs(er),ep(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return av(t),null;case 31:if(t.memoizedState!==null){if(Bo(t),t.alternate===null)throw Error(U(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return yr(qt),null;case 4:return ep(),null;case 10:return rs(t.type),null;case 22:case 23:return Bo(t),TT(),e!==null&&yr(Tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return rs(er),null;case 25:return null;default:return null}}function FA(e,t){switch(vT(t),t.tag){case 3:rs(er),ep();break;case 26:case 27:case 5:av(t);break;case 4:ep();break;case 31:t.memoizedState!==null&&Bo(t);break;case 13:Bo(t);break;case 19:yr(qt);break;case 10:rs(t.type);break;case 22:case 23:Bo(t),TT(),e!==null&&yr(Tl);break;case 24:rs(er)}}function ph(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var i=o.next;r=i;do{if((r.tag&e)===e){o=void 0;var n=r.create,s=r.inst;o=n(),s.destroy=o}r=r.next}while(r!==i)}}catch(a){rt(t,t.return,a)}}function fa(e,t,r){try{var o=t.updateQueue,i=o!==null?o.lastEffect:null;if(i!==null){var n=i.next;o=n;do{if((o.tag&e)===e){var s=o.inst,a=s.destroy;if(a!==void 0){s.destroy=void 0,i=t;var l=r,c=a;try{c()}catch(u){rt(i,l,u)}}}o=o.next}while(o!==n)}}catch(u){rt(t,t.return,u)}}function HA(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{YD(t,r)}catch(o){rt(e,e.return,o)}}}function UA(e,t,r){r.props=Ol(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){rt(e,t,o)}}function zf(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(i){rt(e,t,i)}}function pn(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(i){rt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(i){rt(e,t,i)}else r.current=null}function $A(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(i){rt(e,e.return,i)}}function ZS(e,t,r){try{var o=e.stateNode;NV(o,e.type,r,t),o[go]=t}catch(i){rt(e,e.return,i)}}function jA(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ya(e.type)||e.tag===4}function QS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jA(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ya(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hx(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Jn));else if(o!==4&&(o===27&&ya(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Hx(e,t,r),e=e.sibling;e!==null;)Hx(e,t,r),e=e.sibling}function Sv(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(o===27&&ya(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Sv(e,t,r),e=e.sibling;e!==null;)Sv(e,t,r),e=e.sibling}function WA(e){var t=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Lr(t,o,r),t[Ar]=e,t[go]=r}catch(n){rt(e,e.return,n)}}var Zn=!1,Jt=!1,JS=!1,TM=typeof WeakSet=="function"?WeakSet:Set,hr=null;function yV(e,t){if(e=e.containerInfo,Kx=Dv,e=MD(e),fT(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var i=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{r.nodeType,n.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,c=0,u=0,p=e,f=null;t:for(;;){for(var d;p!==r||i!==0&&p.nodeType!==3||(a=s+i),p!==n||o!==0&&p.nodeType!==3||(l=s+o),p.nodeType===3&&(s+=p.nodeValue.length),(d=p.firstChild)!==null;)f=p,p=d;for(;;){if(p===e)break t;if(f===r&&++c===i&&(a=s),f===n&&++u===o&&(l=s),(d=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=d}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gx={focusedElem:e,selectionRange:r},Dv=!1,hr=t;hr!==null;)if(t=hr,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,hr=e;else for(;hr!==null;){switch(t=hr,n=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)i=e[r],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&n!==null){e=void 0,r=t,i=n.memoizedProps,n=n.memoizedState,o=r.stateNode;try{var h=Ol(r.type,i);e=o.getSnapshotBeforeUpdate(h,n),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){rt(r,r.return,y)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Xx(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xx(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,hr=e;break}hr=t.return}}function VA(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Gn(e,r),o&4&&ph(5,r);break;case 1:if(Gn(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(s){rt(r,r.return,s)}else{var i=Ol(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){rt(r,r.return,s)}}o&64&&HA(r),o&512&&zf(r,r.return);break;case 3:if(Gn(e,r),o&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{YD(e,t)}catch(s){rt(r,r.return,s)}}break;case 27:t===null&&o&4&&WA(r);case 26:case 5:Gn(e,r),t===null&&o&4&&$A(r),o&512&&zf(r,r.return);break;case 12:Gn(e,r);break;case 31:Gn(e,r),o&4&&GA(e,r);break;case 13:Gn(e,r),o&4&&YA(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=wV.bind(null,r),jV(e,r))));break;case 22:if(o=r.memoizedState!==null||Zn,!o){t=t!==null&&t.memoizedState!==null||Jt,i=Zn;var n=Jt;Zn=o,(Jt=t)&&!n?Yn(e,r,(r.subtreeFlags&8772)!==0):Gn(e,r),Zn=i,Jt=n}break;case 30:break;default:Gn(e,r)}}function qA(e){var t=e.alternate;t!==null&&(e.alternate=null,qA(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&aT(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var kt=null,ho=!1;function Kn(e,t,r){for(r=r.child;r!==null;)KA(e,t,r),r=r.sibling}function KA(e,t,r){if(zo&&typeof zo.onCommitFiberUnmount=="function")try{zo.onCommitFiberUnmount(ih,r)}catch{}switch(r.tag){case 26:Jt||pn(r,t),Kn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Jt||pn(r,t);var o=kt,i=ho;ya(r.type)&&(kt=r.stateNode,ho=!1),Kn(e,t,r),$f(r.stateNode),kt=o,ho=i;break;case 5:Jt||pn(r,t);case 6:if(o=kt,i=ho,kt=null,Kn(e,t,r),kt=o,ho=i,kt!==null)if(ho)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(r.stateNode)}catch(n){rt(r,t,n)}else try{kt.removeChild(r.stateNode)}catch(n){rt(r,t,n)}break;case 18:kt!==null&&(ho?(e=kt,zM(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),up(e)):zM(kt,r.stateNode));break;case 4:o=kt,i=ho,kt=r.stateNode.containerInfo,ho=!0,Kn(e,t,r),kt=o,ho=i;break;case 0:case 11:case 14:case 15:fa(2,r,t),Jt||fa(4,r,t),Kn(e,t,r);break;case 1:Jt||(pn(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&UA(r,t,o)),Kn(e,t,r);break;case 21:Kn(e,t,r);break;case 22:Jt=(o=Jt)||r.memoizedState!==null,Kn(e,t,r),Jt=o;break;default:Kn(e,t,r)}}function GA(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{up(e)}catch(r){rt(t,t.return,r)}}}function YA(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{up(e)}catch(r){rt(t,t.return,r)}}function gV(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new TM),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new TM),t;default:throw Error(U(435,e.tag))}}function zg(e,t){var r=gV(e);t.forEach(function(o){if(!r.has(o)){r.add(o);var i=RV.bind(null,e,o);o.then(i,i)}})}function po(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var i=r[o],n=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 27:if(ya(a.type)){kt=a.stateNode,ho=!1;break e}break;case 5:kt=a.stateNode,ho=!1;break e;case 3:case 4:kt=a.stateNode.containerInfo,ho=!0;break e}a=a.return}if(kt===null)throw Error(U(160));KA(n,s,i),kt=null,ho=!1,n=i.alternate,n!==null&&(n.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)XA(t,e),t=t.sibling}var Ui=null;function XA(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:po(t,e),fo(e),o&4&&(fa(3,e,e.return),ph(3,e),fa(5,e,e.return));break;case 1:po(t,e),fo(e),o&512&&(Jt||r===null||pn(r,r.return)),o&64&&Zn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var i=Ui;if(po(t,e),fo(e),o&512&&(Jt||r===null||pn(r,r.return)),o&4){var n=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,i=i.ownerDocument||i;t:switch(o){case"title":n=i.getElementsByTagName("title")[0],(!n||n[ah]||n[Ar]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=i.createElement(o),i.head.insertBefore(n,i.querySelector("head > title"))),Lr(n,o,r),n[Ar]=e,mr(n),o=n;break e;case"link":var s=VM("link","href",i).get(o+(r.href||""));if(s){for(var a=0;a<s.length;a++)if(n=s[a],n.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&n.getAttribute("rel")===(r.rel==null?null:r.rel)&&n.getAttribute("title")===(r.title==null?null:r.title)&&n.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){s.splice(a,1);break t}}n=i.createElement(o),Lr(n,o,r),i.head.appendChild(n);break;case"meta":if(s=VM("meta","content",i).get(o+(r.content||""))){for(a=0;a<s.length;a++)if(n=s[a],n.getAttribute("content")===(r.content==null?null:""+r.content)&&n.getAttribute("name")===(r.name==null?null:r.name)&&n.getAttribute("property")===(r.property==null?null:r.property)&&n.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&n.getAttribute("charset")===(r.charSet==null?null:r.charSet)){s.splice(a,1);break t}}n=i.createElement(o),Lr(n,o,r),i.head.appendChild(n);break;default:throw Error(U(468,o))}n[Ar]=e,mr(n),o=n}e.stateNode=o}else qM(i,e.type,e.stateNode);else e.stateNode=WM(i,o,e.memoizedProps);else n!==o?(n===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):n.count--,o===null?qM(i,e.type,e.stateNode):WM(i,o,e.memoizedProps)):o===null&&e.stateNode!==null&&ZS(e,e.memoizedProps,r.memoizedProps)}break;case 27:po(t,e),fo(e),o&512&&(Jt||r===null||pn(r,r.return)),r!==null&&o&4&&ZS(e,e.memoizedProps,r.memoizedProps);break;case 5:if(po(t,e),fo(e),o&512&&(Jt||r===null||pn(r,r.return)),e.flags&32){i=e.stateNode;try{rp(i,"")}catch(h){rt(e,e.return,h)}}o&4&&e.stateNode!=null&&(i=e.memoizedProps,ZS(e,i,r!==null?r.memoizedProps:i)),o&1024&&(JS=!0);break;case 6:if(po(t,e),fo(e),o&4){if(e.stateNode===null)throw Error(U(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(h){rt(e,e.return,h)}}break;case 3:if(rv=null,i=Ui,Ui=kv(t.containerInfo),po(t,e),Ui=i,fo(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{up(t.containerInfo)}catch(h){rt(e,e.return,h)}JS&&(JS=!1,ZA(e));break;case 4:o=Ui,Ui=kv(e.stateNode.containerInfo),po(t,e),fo(e),Ui=o;break;case 12:po(t,e),fo(e);break;case 31:po(t,e),fo(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,zg(e,o)));break;case 13:po(t,e),fo(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Vv=Io()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,zg(e,o)));break;case 22:i=e.memoizedState!==null;var l=r!==null&&r.memoizedState!==null,c=Zn,u=Jt;if(Zn=c||i,Jt=u||l,po(t,e),Jt=u,Zn=c,fo(e),o&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(r===null||l||Zn||Jt||_l(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){l=r=t;try{if(n=l.stateNode,i)s=n.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{a=l.stateNode;var p=l.memoizedProps.style,f=p!=null&&p.hasOwnProperty("display")?p.display:null;a.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){rt(l,l.return,h)}}}else if(t.tag===6){if(r===null){l=t;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(h){rt(l,l.return,h)}}}else if(t.tag===18){if(r===null){l=t;try{var d=l.stateNode;i?FM(d,!0):FM(l.stateNode,!1)}catch(h){rt(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,zg(e,r))));break;case 19:po(t,e),fo(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,zg(e,o)));break;case 30:break;case 21:break;default:po(t,e),fo(e)}}function fo(e){var t=e.flags;if(t&2){try{for(var r,o=e.return;o!==null;){if(jA(o)){r=o;break}o=o.return}if(r==null)throw Error(U(160));switch(r.tag){case 27:var i=r.stateNode,n=QS(e);Sv(e,n,i);break;case 5:var s=r.stateNode;r.flags&32&&(rp(s,""),r.flags&=-33);var a=QS(e);Sv(e,a,s);break;case 3:case 4:var l=r.stateNode.containerInfo,c=QS(e);Hx(e,c,l);break;default:throw Error(U(161))}}catch(u){rt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ZA(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ZA(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)VA(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:fa(4,t,t.return),_l(t);break;case 1:pn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&UA(t,t.return,r),_l(t);break;case 27:$f(t.stateNode);case 26:case 5:pn(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function Yn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,i=e,n=t,s=n.flags;switch(n.tag){case 0:case 11:case 15:Yn(i,n,r),ph(4,n);break;case 1:if(Yn(i,n,r),o=n,i=o.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){rt(o,o.return,c)}if(o=n,i=o.updateQueue,i!==null){var a=o.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)GD(l[i],a)}catch(c){rt(o,o.return,c)}}r&&s&64&&HA(n),zf(n,n.return);break;case 27:WA(n);case 26:case 5:Yn(i,n,r),r&&o===null&&s&4&&$A(n),zf(n,n.return);break;case 12:Yn(i,n,r);break;case 31:Yn(i,n,r),r&&s&4&&GA(i,n);break;case 13:Yn(i,n,r),r&&s&4&&YA(i,n);break;case 22:n.memoizedState===null&&Yn(i,n,r),zf(n,n.return);break;case 30:break;default:Yn(i,n,r)}t=t.sibling}}function FT(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&ch(r))}function HT(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ch(e))}function Hi(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)QA(e,t,r,o),t=t.sibling}function QA(e,t,r,o){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Hi(e,t,r,o),i&2048&&ph(9,t);break;case 1:Hi(e,t,r,o);break;case 3:Hi(e,t,r,o),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ch(e)));break;case 12:if(i&2048){Hi(e,t,r,o),e=t.stateNode;try{var n=t.memoizedProps,s=n.id,a=n.onPostCommit;typeof a=="function"&&a(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){rt(t,t.return,l)}}else Hi(e,t,r,o);break;case 31:Hi(e,t,r,o);break;case 13:Hi(e,t,r,o);break;case 23:break;case 22:n=t.stateNode,s=t.alternate,t.memoizedState!==null?n._visibility&2?Hi(e,t,r,o):Ff(e,t):n._visibility&2?Hi(e,t,r,o):(n._visibility|=2,Au(e,t,r,o,(t.subtreeFlags&10256)!==0||!1)),i&2048&&FT(s,t);break;case 24:Hi(e,t,r,o),i&2048&&HT(t.alternate,t);break;default:Hi(e,t,r,o)}}function Au(e,t,r,o,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=e,s=t,a=r,l=o,c=s.flags;switch(s.tag){case 0:case 11:case 15:Au(n,s,a,l,i),ph(8,s);break;case 23:break;case 22:var u=s.stateNode;s.memoizedState!==null?u._visibility&2?Au(n,s,a,l,i):Ff(n,s):(u._visibility|=2,Au(n,s,a,l,i)),i&&c&2048&&FT(s.alternate,s);break;case 24:Au(n,s,a,l,i),i&&c&2048&&HT(s.alternate,s);break;default:Au(n,s,a,l,i)}t=t.sibling}}function Ff(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,i=o.flags;switch(o.tag){case 22:Ff(r,o),i&2048&&FT(o.alternate,o);break;case 24:Ff(r,o),i&2048&&HT(o.alternate,o);break;default:Ff(r,o)}t=t.sibling}}var kf=8192;function Du(e,t,r){if(e.subtreeFlags&kf)for(e=e.child;e!==null;)JA(e,t,r),e=e.sibling}function JA(e,t,r){switch(e.tag){case 26:Du(e,t,r),e.flags&kf&&e.memoizedState!==null&&tq(r,Ui,e.memoizedState,e.memoizedProps);break;case 5:Du(e,t,r);break;case 3:case 4:var o=Ui;Ui=kv(e.stateNode.containerInfo),Du(e,t,r),Ui=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=kf,kf=16777216,Du(e,t,r),kf=o):Du(e,t,r));break;default:Du(e,t,r)}}function eB(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function xf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];hr=o,rB(o,e)}eB(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tB(e),e=e.sibling}function tB(e){switch(e.tag){case 0:case 11:case 15:xf(e),e.flags&2048&&fa(9,e,e.return);break;case 3:xf(e);break;case 12:xf(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ev(e)):xf(e);break;default:xf(e)}}function ev(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];hr=o,rB(o,e)}eB(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:fa(8,t,t.return),ev(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,ev(t));break;default:ev(t)}e=e.sibling}}function rB(e,t){for(;hr!==null;){var r=hr;switch(r.tag){case 0:case 11:case 15:fa(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:ch(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,hr=o;else e:for(r=e;hr!==null;){o=hr;var i=o.sibling,n=o.return;if(qA(o),o===r){hr=null;break e}if(i!==null){i.return=n,hr=i;break e}hr=n}}}var vV={getCacheForType:function(e){var t=Nr(er),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return Nr(er).controller.signal}},bV=typeof WeakMap=="function"?WeakMap:Map,Ve=0,ut=null,De=null,Be=0,tt=0,Ao=null,Js=!1,mp=!1,UT=!1,ls=0,Ut=0,ha=0,wl=0,$T=0,Lo=0,sp=0,Hf=null,mo=null,Ux=!1,Vv=0,oB=0,xv=1/0,Tv=null,sa=null,nr=0,aa=null,ap=null,os=0,$x=0,jx=null,iB=null,Uf=0,Wx=null;function Ho(){return(Ve&2)!==0&&Be!==0?Be&-Be:ge.T!==null?WT():fD()}function nB(){if(Lo===0)if((Be&536870912)===0||Ie){var e=Eg;Eg<<=1,(Eg&3932160)===0&&(Eg=262144),Lo=e}else Lo=536870912;return e=$o.current,e!==null&&(e.flags|=32),Lo}function yo(e,t,r){(e===ut&&(tt===2||tt===9)||e.cancelPendingCommit!==null)&&(lp(e,0),ea(e,Be,Lo,!1)),sh(e,r),((Ve&2)===0||e!==ut)&&(e===ut&&((Ve&2)===0&&(wl|=r),Ut===4&&ea(e,Be,Lo,!1)),hn(e))}function sB(e,t,r){if((Ve&6)!==0)throw Error(U(327));var o=!r&&(t&127)===0&&(t&e.expiredLanes)===0||nh(e,t),i=o?xV(e,t):ex(e,t,!0),n=o;do{if(i===0){mp&&!o&&ea(e,t,0,!1);break}else{if(r=e.current.alternate,n&&!_V(r)){i=ex(e,t,!1),n=!1;continue}if(i===2){if(n=t,e.errorRecoveryDisabledLanes&n)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var a=e;i=Hf;var l=a.current.memoizedState.isDehydrated;if(l&&(lp(a,s).flags|=256),s=ex(a,s,!1),s!==2){if(UT&&!l){a.errorRecoveryDisabledLanes|=n,wl|=n,i=4;break e}n=mo,mo=i,n!==null&&(mo===null?mo=n:mo.push.apply(mo,n))}i=s}if(n=!1,i!==2)continue}}if(i===1){lp(e,0),ea(e,t,0,!0);break}e:{switch(o=e,n=i,n){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:ea(o,t,Lo,!Js);break e;case 2:mo=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(i=Vv+300-Io(),10<i)){if(ea(o,t,Lo,!Js),Bv(o,0,!0)!==0)break e;os=t,o.timeoutHandle=RB(CM.bind(null,o,r,mo,Tv,Ux,t,Lo,wl,sp,Js,n,"Throttled",-0,0),i);break e}CM(o,r,mo,Tv,Ux,t,Lo,wl,sp,Js,n,null,-0,0)}}break}while(!0);hn(e)}function CM(e,t,r,o,i,n,s,a,l,c,u,p,f,d){if(e.timeoutHandle=-1,p=t.subtreeFlags,p&8192||(p&16785408)===16785408){p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},JA(t,n,p);var h=(n&62914560)===n?Vv-Io():(n&4194048)===n?oB-Io():0;if(h=rq(p,h),h!==null){os=n,e.cancelPendingCommit=h(RM.bind(null,e,t,n,r,o,i,s,a,l,u,p,null,f,d)),ea(e,n,s,!c);return}}RM(e,t,n,r,o,i,s,a,l)}function _V(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var i=r[o],n=i.getSnapshot;i=i.value;try{if(!Uo(n(),i))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ea(e,t,r,o){t&=~$T,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var i=t;0<i;){var n=31-Fo(i),s=1<<n;o[n]=-1,i&=~s}r!==0&&uD(e,r,t)}function qv(){return(Ve&6)===0?(dh(0,!1),!1):!0}function jT(){if(De!==null){if(tt===0)var e=De.return;else e=De,es=Nl=null,ET(e),Zu=null,Yf=0,e=De;for(;e!==null;)FA(e.alternate,e),e=e.return;De=null}}function lp(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,zV(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),os=0,jT(),ut=e,De=r=ts(e.current,null),Be=t,tt=0,Ao=null,Js=!1,mp=nh(e,t),UT=!1,sp=Lo=$T=wl=ha=Ut=0,mo=Hf=null,Ux=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var i=31-Fo(o),n=1<<i;t|=e[i],o&=~n}return ls=t,zv(),r}function aB(e,t){xe=null,ge.H=Zf,t===hp||t===Hv?(t=rM(),tt=3):t===ST?(t=rM(),tt=4):tt=t===IT?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ao=t,De===null&&(Ut=1,bv(e,hi(t,e.current)))}function lB(){var e=$o.current;return e===null?!0:(Be&4194048)===Be?yi===null:(Be&62914560)===Be||(Be&536870912)!==0?e===yi:!1}function cB(){var e=ge.H;return ge.H=Zf,e===null?Zf:e}function uB(){var e=ge.A;return ge.A=vV,e}function Cv(){Ut=4,Js||(Be&4194048)!==Be&&$o.current!==null||(mp=!0),(ha&134217727)===0&&(wl&134217727)===0||ut===null||ea(ut,Be,Lo,!1)}function ex(e,t,r){var o=Ve;Ve|=2;var i=cB(),n=uB();(ut!==e||Be!==t)&&(Tv=null,lp(e,t)),t=!1;var s=Ut;e:do try{if(tt!==0&&De!==null){var a=De,l=Ao;switch(tt){case 8:jT(),s=6;break e;case 3:case 2:case 9:case 6:$o.current===null&&(t=!0);var c=tt;if(tt=0,Ao=null,qu(e,a,l,c),r&&mp){s=0;break e}break;default:c=tt,tt=0,Ao=null,qu(e,a,l,c)}}SV(),s=Ut;break}catch(u){aB(e,u)}while(!0);return t&&e.shellSuspendCounter++,es=Nl=null,Ve=o,ge.H=i,ge.A=n,De===null&&(ut=null,Be=0,zv()),s}function SV(){for(;De!==null;)pB(De)}function xV(e,t){var r=Ve;Ve|=2;var o=cB(),i=uB();ut!==e||Be!==t?(Tv=null,xv=Io()+500,lp(e,t)):mp=nh(e,t);e:do try{if(tt!==0&&De!==null){t=De;var n=Ao;t:switch(tt){case 1:tt=0,Ao=null,qu(e,t,n,1);break;case 2:case 9:if(tM(n)){tt=0,Ao=null,wM(t);break}t=function(){tt!==2&&tt!==9||ut!==e||(tt=7),hn(e)},n.then(t,t);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:tM(n)?(tt=0,Ao=null,wM(t)):(tt=0,Ao=null,qu(e,t,n,7));break;case 5:var s=null;switch(De.tag){case 26:s=De.memoizedState;case 5:case 27:var a=De;if(s?MB(s):a.stateNode.complete){tt=0,Ao=null;var l=a.sibling;if(l!==null)De=l;else{var c=a.return;c!==null?(De=c,Kv(c)):De=null}break t}}tt=0,Ao=null,qu(e,t,n,5);break;case 6:tt=0,Ao=null,qu(e,t,n,6);break;case 8:jT(),Ut=6;break e;default:throw Error(U(462))}}TV();break}catch(u){aB(e,u)}while(!0);return es=Nl=null,ge.H=o,ge.A=i,Ve=r,De!==null?0:(ut=null,Be=0,zv(),Ut)}function TV(){for(;De!==null&&!q7();)pB(De)}function pB(e){var t=zA(e.alternate,e,ls);e.memoizedProps=e.pendingProps,t===null?Kv(e):De=t}function wM(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=vM(r,t,t.pendingProps,t.type,void 0,Be);break;case 11:t=vM(r,t,t.pendingProps,t.type.render,t.ref,Be);break;case 5:ET(t);default:FA(r,t),t=De=FD(t,ls),t=zA(r,t,ls)}e.memoizedProps=e.pendingProps,t===null?Kv(e):De=t}function qu(e,t,r,o){es=Nl=null,ET(t),Zu=null,Yf=0;var i=t.return;try{if(pV(e,i,t,r,Be)){Ut=1,bv(e,hi(r,e.current)),De=null;return}}catch(n){if(i!==null)throw De=i,n;Ut=1,bv(e,hi(r,e.current)),De=null;return}t.flags&32768?(Ie||o===1?e=!0:mp||(Be&536870912)!==0?e=!1:(Js=e=!0,(o===2||o===9||o===3||o===6)&&(o=$o.current,o!==null&&o.tag===13&&(o.flags|=16384))),dB(t,e)):Kv(t)}function Kv(e){var t=e;do{if((t.flags&32768)!==0){dB(t,Js);return}e=t.return;var r=hV(t.alternate,t,ls);if(r!==null){De=r;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Ut===0&&(Ut=5)}function dB(e,t){do{var r=mV(e.alternate,e);if(r!==null){r.flags&=32767,De=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=r}while(e!==null);Ut=6,De=null}function RM(e,t,r,o,i,n,s,a,l){e.cancelPendingCommit=null;do Gv();while(nr!==0);if((Ve&6)!==0)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(n=t.lanes|t.childLanes,n|=hT,rW(e,r,n,s,a,l),e===ut&&(De=ut=null,Be=0),ap=t,aa=e,os=r,$x=n,jx=i,iB=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,PV(lv,function(){return gB(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=ge.T,ge.T=null,i=qe.p,qe.p=2,s=Ve,Ve|=4;try{yV(e,t,r)}finally{Ve=s,qe.p=i,ge.T=o}}nr=1,fB(),hB(),mB()}}function fB(){if(nr===1){nr=0;var e=aa,t=ap,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=ge.T,ge.T=null;var o=qe.p;qe.p=2;var i=Ve;Ve|=4;try{XA(t,e);var n=Gx,s=MD(e.containerInfo),a=n.focusedElem,l=n.selectionRange;if(s!==a&&a&&a.ownerDocument&&OD(a.ownerDocument.documentElement,a)){if(l!==null&&fT(a)){var c=l.start,u=l.end;if(u===void 0&&(u=c),"selectionStart"in a)a.selectionStart=c,a.selectionEnd=Math.min(u,a.value.length);else{var p=a.ownerDocument||document,f=p&&p.defaultView||window;if(f.getSelection){var d=f.getSelection(),h=a.textContent.length,y=Math.min(l.start,h),b=l.end===void 0?y:Math.min(l.end,h);!d.extend&&y>b&&(s=b,b=y,y=s);var m=GO(a,y),g=GO(a,b);if(m&&g&&(d.rangeCount!==1||d.anchorNode!==m.node||d.anchorOffset!==m.offset||d.focusNode!==g.node||d.focusOffset!==g.offset)){var v=p.createRange();v.setStart(m.node,m.offset),d.removeAllRanges(),y>b?(d.addRange(v),d.extend(g.node,g.offset)):(v.setEnd(g.node,g.offset),d.addRange(v))}}}}for(p=[],d=a;d=d.parentNode;)d.nodeType===1&&p.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<p.length;a++){var S=p[a];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Dv=!!Kx,Gx=Kx=null}finally{Ve=i,qe.p=o,ge.T=r}}e.current=t,nr=2}}function hB(){if(nr===2){nr=0;var e=aa,t=ap,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=ge.T,ge.T=null;var o=qe.p;qe.p=2;var i=Ve;Ve|=4;try{VA(e,t.alternate,t)}finally{Ve=i,qe.p=o,ge.T=r}}nr=3}}function mB(){if(nr===4||nr===3){nr=0,K7();var e=aa,t=ap,r=os,o=iB;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nr=5:(nr=0,ap=aa=null,yB(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(sa=null),sT(r),t=t.stateNode,zo&&typeof zo.onCommitFiberRoot=="function")try{zo.onCommitFiberRoot(ih,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=ge.T,i=qe.p,qe.p=2,ge.T=null;try{for(var n=e.onRecoverableError,s=0;s<o.length;s++){var a=o[s];n(a.value,{componentStack:a.stack})}}finally{ge.T=t,qe.p=i}}(os&3)!==0&&Gv(),hn(e),i=e.pendingLanes,(r&261930)!==0&&(i&42)!==0?e===Wx?Uf++:(Uf=0,Wx=e):Uf=0,dh(0,!1)}}function yB(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ch(t)))}function Gv(){return fB(),hB(),mB(),gB()}function gB(){if(nr!==5)return!1;var e=aa,t=$x;$x=0;var r=sT(os),o=ge.T,i=qe.p;try{qe.p=32>r?32:r,ge.T=null,r=jx,jx=null;var n=aa,s=os;if(nr=0,ap=aa=null,os=0,(Ve&6)!==0)throw Error(U(331));var a=Ve;if(Ve|=4,tB(n.current),QA(n,n.current,s,r),Ve=a,dh(0,!1),zo&&typeof zo.onPostCommitFiberRoot=="function")try{zo.onPostCommitFiberRoot(ih,n)}catch{}return!0}finally{qe.p=i,ge.T=o,yB(e,t)}}function PM(e,t,r){t=hi(r,t),t=Ix(e.stateNode,t,2),e=na(e,t,2),e!==null&&(sh(e,2),hn(e))}function rt(e,t,r){if(e.tag===3)PM(e,e,r);else for(;t!==null;){if(t.tag===3){PM(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(sa===null||!sa.has(o))){e=hi(r,e),r=DA(2),o=na(t,r,2),o!==null&&(AA(r,o,t,e),sh(o,2),hn(o));break}}t=t.return}}function tx(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new bV;var i=new Set;o.set(t,i)}else i=o.get(t),i===void 0&&(i=new Set,o.set(t,i));i.has(r)||(UT=!0,i.add(r),e=CV.bind(null,e,t,r),t.then(e,e))}function CV(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ut===e&&(Be&r)===r&&(Ut===4||Ut===3&&(Be&62914560)===Be&&300>Io()-Vv?(Ve&2)===0&&lp(e,0):$T|=r,sp===Be&&(sp=0)),hn(e)}function vB(e,t){t===0&&(t=cD()),e=Bl(e,t),e!==null&&(sh(e,t),hn(e))}function wV(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),vB(e,r)}function RV(e,t){var r=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(U(314))}o!==null&&o.delete(t),vB(e,r)}function PV(e,t){return iT(e,t)}var wv=null,Bu=null,Vx=!1,Rv=!1,rx=!1,ta=0;function hn(e){e!==Bu&&e.next===null&&(Bu===null?wv=Bu=e:Bu=Bu.next=e),Rv=!0,Vx||(Vx=!0,kV())}function dh(e,t){if(!rx&&Rv){rx=!0;do for(var r=!1,o=wv;o!==null;){if(!t)if(e!==0){var i=o.pendingLanes;if(i===0)var n=0;else{var s=o.suspendedLanes,a=o.pingedLanes;n=(1<<31-Fo(42|e)+1)-1,n&=i&~(s&~a),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(r=!0,EM(o,n))}else n=Be,n=Bv(o,o===ut?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(n&3)===0||nh(o,n)||(r=!0,EM(o,n));o=o.next}while(r);rx=!1}}function EV(){bB()}function bB(){Rv=Vx=!1;var e=0;ta!==0&&IV()&&(e=ta);for(var t=Io(),r=null,o=wv;o!==null;){var i=o.next,n=_B(o,t);n===0?(o.next=null,r===null?wv=i:r.next=i,i===null&&(Bu=r)):(r=o,(e!==0||(n&3)!==0)&&(Rv=!0)),o=i}nr!==0&&nr!==5||dh(e,!1),ta!==0&&(ta=0)}function _B(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,n=e.pendingLanes&-62914561;0<n;){var s=31-Fo(n),a=1<<s,l=i[s];l===-1?((a&r)===0||(a&o)!==0)&&(i[s]=tW(a,t)):l<=t&&(e.expiredLanes|=a),n&=~a}if(t=ut,r=Be,r=Bv(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===t&&(tt===2||tt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&MS(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||nh(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&MS(o),sT(r)){case 2:case 8:r=aD;break;case 32:r=lv;break;case 268435456:r=lD;break;default:r=lv}return o=SB.bind(null,e),r=iT(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&MS(o),e.callbackPriority=2,e.callbackNode=null,2}function SB(e,t){if(nr!==0&&nr!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Gv()&&e.callbackNode!==r)return null;var o=Be;return o=Bv(e,e===ut?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(sB(e,o,t),_B(e,Io()),e.callbackNode!=null&&e.callbackNode===r?SB.bind(null,e):null)}function EM(e,t){if(Gv())return null;sB(e,t,!0)}function kV(){FV(function(){(Ve&6)!==0?iT(sD,EV):bB()})}function WT(){if(ta===0){var e=op;e===0&&(e=Pg,Pg<<=1,(Pg&261888)===0&&(Pg=256)),ta=e}return ta}function kM(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vg(""+e)}function OM(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function OV(e,t,r,o,i){if(t==="submit"&&r&&r.stateNode===i){var n=kM((i[go]||null).action),s=o.submitter;s&&(t=(t=s[go]||null)?kM(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var a=new Nv("action","action",null,o,i);e.push({event:a,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ta!==0){var l=s?OM(i,s):new FormData(i);Nx(r,{pending:!0,data:l,method:i.method,action:n},null,l)}}else typeof n=="function"&&(a.preventDefault(),l=s?OM(i,s):new FormData(i),Nx(r,{pending:!0,data:l,method:i.method,action:n},n,l))},currentTarget:i}]})}}for(Fg=0;Fg<Tx.length;Fg++)Hg=Tx[Fg],MM=Hg.toLowerCase(),DM=Hg[0].toUpperCase()+Hg.slice(1),$i(MM,"on"+DM);var Hg,MM,DM,Fg;$i(AD,"onAnimationEnd");$i(BD,"onAnimationIteration");$i(ND,"onAnimationStart");$i("dblclick","onDoubleClick");$i("focusin","onFocus");$i("focusout","onBlur");$i(GW,"onTransitionRun");$i(YW,"onTransitionStart");$i(XW,"onTransitionCancel");$i(LD,"onTransitionEnd");tp("onMouseEnter",["mouseout","mouseover"]);tp("onMouseLeave",["mouseout","mouseover"]);tp("onPointerEnter",["pointerout","pointerover"]);tp("onPointerLeave",["pointerout","pointerover"]);Ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ml("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MV=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qf));function xB(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],i=o.event;o=o.listeners;e:{var n=void 0;if(t)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==n&&i.isPropagationStopped())break e;n=a,i.currentTarget=c;try{n(i)}catch(u){uv(u)}i.currentTarget=null,n=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==n&&i.isPropagationStopped())break e;n=a,i.currentTarget=c;try{n(i)}catch(u){uv(u)}i.currentTarget=null,n=l}}}}function Me(e,t){var r=t[mx];r===void 0&&(r=t[mx]=new Set);var o=e+"__bubble";r.has(o)||(TB(t,e,2,!1),r.add(o))}function ox(e,t,r){var o=0;t&&(o|=4),TB(r,e,o,t)}var Ug="_reactListening"+Math.random().toString(36).slice(2);function VT(e){if(!e[Ug]){e[Ug]=!0,hD.forEach(function(r){r!=="selectionchange"&&(MV.has(r)||ox(r,!1,e),ox(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ug]||(t[Ug]=!0,ox("selectionchange",!1,t))}}function TB(e,t,r,o){switch(LB(t)){case 2:var i=nq;break;case 8:i=sq;break;default:i=YT}r=i.bind(null,t,r,e),i=void 0,!_x||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),o?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function ix(e,t,r,o,i){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var a=o.stateNode.containerInfo;if(a===i)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;a!==null;){if(s=Iu(a),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){o=n=s;continue e}a=a.parentNode}}o=o.return}xD(function(){var c=n,u=cT(r),p=[];e:{var f=ID.get(e);if(f!==void 0){var d=Nv,h=e;switch(e){case"keypress":if(Kg(r)===0)break e;case"keydown":case"keyup":d=RW;break;case"focusin":h="focus",d=LS;break;case"focusout":h="blur",d=LS;break;case"beforeblur":case"afterblur":d=LS;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=FO;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=hW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=kW;break;case AD:case BD:case ND:d=gW;break;case LD:d=MW;break;case"scroll":case"scrollend":d=dW;break;case"wheel":d=AW;break;case"copy":case"cut":case"paste":d=bW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=UO;break;case"toggle":case"beforetoggle":d=NW}var y=(t&4)!==0,b=!y&&(e==="scroll"||e==="scrollend"),m=y?f!==null?f+"Capture":null:f;y=[];for(var g=c,v;g!==null;){var S=g;if(v=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||v===null||m===null||(S=Wf(g,m),S!=null&&y.push(Jf(g,S,v))),b)break;g=g.return}0<y.length&&(f=new d(f,h,null,r,u),p.push({event:f,listeners:y}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",f&&r!==bx&&(h=r.relatedTarget||r.fromElement)&&(Iu(h)||h[pp]))break e;if((d||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,d?(h=r.relatedTarget||r.toElement,d=c,h=h?Iu(h):null,h!==null&&(b=oh(h),y=h.tag,h!==b||y!==5&&y!==27&&y!==6)&&(h=null)):(d=null,h=c),d!==h)){if(y=FO,S="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=UO,S="onPointerLeave",m="onPointerEnter",g="pointer"),b=d==null?f:Pf(d),v=h==null?f:Pf(h),f=new y(S,g+"leave",d,r,u),f.target=b,f.relatedTarget=v,S=null,Iu(u)===c&&(y=new y(m,g+"enter",h,r,u),y.target=v,y.relatedTarget=b,S=y),b=S,d&&h)t:{for(y=DV,m=d,g=h,v=0,S=m;S;S=y(S))v++;S=0;for(var C=g;C;C=y(C))S++;for(;0<v-S;)m=y(m),v--;for(;0<S-v;)g=y(g),S--;for(;v--;){if(m===g||g!==null&&m===g.alternate){y=m;break t}m=y(m),g=y(g)}y=null}else y=null;d!==null&&AM(p,f,d,y,!1),h!==null&&b!==null&&AM(p,b,h,y,!0)}}e:{if(f=c?Pf(c):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var w=VO;else if(WO(f))if(ED)w=VW;else{w=jW;var k=$W}else d=f.nodeName,!d||d.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?c&&lT(c.elementType)&&(w=VO):w=WW;if(w&&(w=w(e,c))){PD(p,w,r,u);break e}k&&k(e,f,c),e==="focusout"&&c&&f.type==="number"&&c.memoizedProps.value!=null&&vx(f,"number",f.value)}switch(k=c?Pf(c):window,e){case"focusin":(WO(k)||k.contentEditable==="true")&&(Hu=k,Sx=c,Df=null);break;case"focusout":Df=Sx=Hu=null;break;case"mousedown":xx=!0;break;case"contextmenu":case"mouseup":case"dragend":xx=!1,YO(p,r,u);break;case"selectionchange":if(KW)break;case"keydown":case"keyup":YO(p,r,u)}var O;if(dT)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Fu?wD(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(CD&&r.locale!=="ko"&&(Fu||A!=="onCompositionStart"?A==="onCompositionEnd"&&Fu&&(O=TD()):(Qs=u,uT="value"in Qs?Qs.value:Qs.textContent,Fu=!0)),k=Pv(c,A),0<k.length&&(A=new HO(A,e,null,r,u),p.push({event:A,listeners:k}),O?A.data=O:(O=RD(r),O!==null&&(A.data=O)))),(O=IW?zW(e,r):FW(e,r))&&(A=Pv(c,"onBeforeInput"),0<A.length&&(k=new HO("onBeforeInput","beforeinput",null,r,u),p.push({event:k,listeners:A}),k.data=O)),OV(p,e,c,r,u)}xB(p,t)})}function Jf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Pv(e,t){for(var r=t+"Capture",o=[];e!==null;){var i=e,n=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||n===null||(i=Wf(e,r),i!=null&&o.unshift(Jf(e,i,n)),i=Wf(e,t),i!=null&&o.push(Jf(e,i,n))),e.tag===3)return o;e=e.return}return[]}function DV(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function AM(e,t,r,o,i){for(var n=t._reactName,s=[];r!==null&&r!==o;){var a=r,l=a.alternate,c=a.stateNode;if(a=a.tag,l!==null&&l===o)break;a!==5&&a!==26&&a!==27||c===null||(l=c,i?(c=Wf(r,n),c!=null&&s.unshift(Jf(r,c,l))):i||(c=Wf(r,n),c!=null&&s.push(Jf(r,c,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var AV=/\r\n?/g,BV=/\u0000|\uFFFD/g;function BM(e){return(typeof e=="string"?e:""+e).replace(AV,`
|
|
9
|
-
`).replace(BV,"")}function CB(e,t){return t=BM(t),BM(e)===t}function ot(e,t,r,o,i,n){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||rp(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&rp(e,""+o);break;case"className":Og(e,"class",o);break;case"tabIndex":Og(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Og(e,r,o);break;case"style":SD(e,o,n);break;case"data":if(t!=="object"){Og(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Vg(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(r==="formAction"?(t!=="input"&&ot(e,t,"name",i.name,i,null),ot(e,t,"formEncType",i.formEncType,i,null),ot(e,t,"formMethod",i.formMethod,i,null),ot(e,t,"formTarget",i.formTarget,i,null)):(ot(e,t,"encType",i.encType,i,null),ot(e,t,"method",i.method,i,null),ot(e,t,"target",i.target,i,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Vg(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=Jn);break;case"onScroll":o!=null&&Me("scroll",e);break;case"onScrollEnd":o!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(U(61));if(r=o.__html,r!=null){if(i.children!=null)throw Error(U(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=Vg(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Wg(e,"popover",o);break;case"xlinkActuate":Vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Vn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Vn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Vn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Vn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Wg(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=uW.get(r)||r,Wg(e,r,o))}}function qx(e,t,r,o,i,n){switch(r){case"style":SD(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(U(61));if(r=o.__html,r!=null){if(i.children!=null)throw Error(U(60));e.innerHTML=r}}break;case"children":typeof o=="string"?rp(e,o):(typeof o=="number"||typeof o=="bigint")&&rp(e,""+o);break;case"onScroll":o!=null&&Me("scroll",e);break;case"onScrollEnd":o!=null&&Me("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mD.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(i=r.endsWith("Capture"),t=r.slice(2,i?r.length-7:void 0),n=e[go]||null,n=n!=null?n[r]:null,typeof n=="function"&&e.removeEventListener(t,n,i),typeof o=="function")){typeof n!="function"&&n!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,i);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):Wg(e,r,o)}}}function Lr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var o=!1,i=!1,n;for(n in r)if(r.hasOwnProperty(n)){var s=r[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ot(e,t,n,s,r,null)}}i&&ot(e,t,"srcSet",r.srcSet,r,null),o&&ot(e,t,"src",r.src,r,null);return;case"input":Me("invalid",e);var a=n=s=i=null,l=null,c=null;for(o in r)if(r.hasOwnProperty(o)){var u=r[o];if(u!=null)switch(o){case"name":i=u;break;case"type":s=u;break;case"checked":l=u;break;case"defaultChecked":c=u;break;case"value":n=u;break;case"defaultValue":a=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(U(137,t));break;default:ot(e,t,o,u,r,null)}}vD(e,n,a,l,c,s,i,!1);return;case"select":Me("invalid",e),o=s=n=null;for(i in r)if(r.hasOwnProperty(i)&&(a=r[i],a!=null))switch(i){case"value":n=a;break;case"defaultValue":s=a;break;case"multiple":o=a;default:ot(e,t,i,a,r,null)}t=n,r=s,e.multiple=!!o,t!=null?Gu(e,!!o,t,!1):r!=null&&Gu(e,!!o,r,!0);return;case"textarea":Me("invalid",e),n=i=o=null;for(s in r)if(r.hasOwnProperty(s)&&(a=r[s],a!=null))switch(s){case"value":o=a;break;case"defaultValue":i=a;break;case"children":n=a;break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:ot(e,t,s,a,r,null)}_D(e,o,i,n);return;case"option":for(l in r)r.hasOwnProperty(l)&&(o=r[l],o!=null)&&(l==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":ot(e,t,l,o,r,null));return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(o=0;o<Qf.length;o++)Me(Qf[o],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in r)if(r.hasOwnProperty(c)&&(o=r[c],o!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ot(e,t,c,o,r,null)}return;default:if(lT(t)){for(u in r)r.hasOwnProperty(u)&&(o=r[u],o!==void 0&&qx(e,t,u,o,r,void 0));return}}for(a in r)r.hasOwnProperty(a)&&(o=r[a],o!=null&&ot(e,t,a,o,r,null))}function NV(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,n=null,s=null,a=null,l=null,c=null,u=null;for(d in r){var p=r[d];if(r.hasOwnProperty(d)&&p!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":l=p;default:o.hasOwnProperty(d)||ot(e,t,d,null,o,p)}}for(var f in o){var d=o[f];if(p=r[f],o.hasOwnProperty(f)&&(d!=null||p!=null))switch(f){case"type":n=d;break;case"name":i=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":s=d;break;case"defaultValue":a=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(U(137,t));break;default:d!==p&&ot(e,t,f,d,o,p)}}gx(e,s,a,l,c,u,n,i);return;case"select":d=s=a=f=null;for(n in r)if(l=r[n],r.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":d=l;default:o.hasOwnProperty(n)||ot(e,t,n,null,o,l)}for(i in o)if(n=o[i],l=r[i],o.hasOwnProperty(i)&&(n!=null||l!=null))switch(i){case"value":f=n;break;case"defaultValue":a=n;break;case"multiple":s=n;default:n!==l&&ot(e,t,i,n,o,l)}t=a,r=s,o=d,f!=null?Gu(e,!!r,f,!1):!!o!=!!r&&(t!=null?Gu(e,!!r,t,!0):Gu(e,!!r,r?[]:"",!1));return;case"textarea":d=f=null;for(a in r)if(i=r[a],r.hasOwnProperty(a)&&i!=null&&!o.hasOwnProperty(a))switch(a){case"value":break;case"children":break;default:ot(e,t,a,null,o,i)}for(s in o)if(i=o[s],n=r[s],o.hasOwnProperty(s)&&(i!=null||n!=null))switch(s){case"value":f=i;break;case"defaultValue":d=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(U(91));break;default:i!==n&&ot(e,t,s,i,o,n)}bD(e,f,d);return;case"option":for(var h in r)f=r[h],r.hasOwnProperty(h)&&f!=null&&!o.hasOwnProperty(h)&&(h==="selected"?e.selected=!1:ot(e,t,h,null,o,f));for(l in o)f=o[l],d=r[l],o.hasOwnProperty(l)&&f!==d&&(f!=null||d!=null)&&(l==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":ot(e,t,l,f,o,d));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in r)f=r[y],r.hasOwnProperty(y)&&f!=null&&!o.hasOwnProperty(y)&&ot(e,t,y,null,o,f);for(c in o)if(f=o[c],d=r[c],o.hasOwnProperty(c)&&f!==d&&(f!=null||d!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(137,t));break;default:ot(e,t,c,f,o,d)}return;default:if(lT(t)){for(var b in r)f=r[b],r.hasOwnProperty(b)&&f!==void 0&&!o.hasOwnProperty(b)&&qx(e,t,b,void 0,o,f);for(u in o)f=o[u],d=r[u],!o.hasOwnProperty(u)||f===d||f===void 0&&d===void 0||qx(e,t,u,f,o,d);return}}for(var m in r)f=r[m],r.hasOwnProperty(m)&&f!=null&&!o.hasOwnProperty(m)&&ot(e,t,m,null,o,f);for(p in o)f=o[p],d=r[p],!o.hasOwnProperty(p)||f===d||f==null&&d==null||ot(e,t,p,f,o,d)}function NM(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function LV(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),o=0;o<r.length;o++){var i=r[o],n=i.transferSize,s=i.initiatorType,a=i.duration;if(n&&a&&NM(s)){for(s=0,a=i.responseEnd,o+=1;o<r.length;o++){var l=r[o],c=l.startTime;if(c>a)break;var u=l.transferSize,p=l.initiatorType;u&&NM(p)&&(l=l.responseEnd,s+=u*(l<a?1:(a-c)/(l-c)))}if(--o,t+=8*(n+s)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kx=null,Gx=null;function Ev(e){return e.nodeType===9?e:e.ownerDocument}function LM(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wB(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Yx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nx=null;function IV(){var e=window.event;return e&&e.type==="popstate"?e===nx?!1:(nx=e,!0):(nx=null,!1)}var RB=typeof setTimeout=="function"?setTimeout:void 0,zV=typeof clearTimeout=="function"?clearTimeout:void 0,IM=typeof Promise=="function"?Promise:void 0,FV=typeof queueMicrotask=="function"?queueMicrotask:typeof IM<"u"?function(e){return IM.resolve(null).then(e).catch(HV)}:RB;function HV(e){setTimeout(function(){throw e})}function ya(e){return e==="head"}function zM(e,t){var r=t,o=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"||r==="/&"){if(o===0){e.removeChild(i),up(t);return}o--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")o++;else if(r==="html")$f(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,$f(r);for(var n=r.firstChild;n;){var s=n.nextSibling,a=n.nodeName;n[ah]||a==="SCRIPT"||a==="STYLE"||a==="LINK"&&n.rel.toLowerCase()==="stylesheet"||r.removeChild(n),n=s}}else r==="body"&&$f(e.ownerDocument.body);r=i}while(r);up(t)}function FM(e,t){var r=e;e=0;do{var o=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=o}while(r)}function Xx(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Xx(r),aT(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function UV(e,t,r,o){for(;e.nodeType===1;){var i=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ah])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=gi(e.nextSibling),e===null)break}return null}function $V(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=gi(e.nextSibling),e===null))return null;return e}function PB(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=gi(e.nextSibling),e===null))return null;return e}function Zx(e){return e.data==="$?"||e.data==="$~"}function Qx(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jV(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function gi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jx=null;function HM(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return gi(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function UM(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function EB(e,t,r){switch(t=Ev(r),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function $f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);aT(e)}var vi=new Map,$M=new Set;function kv(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cs=qe.d;qe.d={f:WV,r:VV,D:qV,C:KV,L:GV,m:YV,X:ZV,S:XV,M:QV};function WV(){var e=cs.f(),t=qv();return e||t}function VV(e){var t=dp(e);t!==null&&t.tag===5&&t.type==="form"?SA(t):cs.r(e)}var yp=typeof document>"u"?null:document;function kB(e,t,r){var o=yp;if(o&&typeof t=="string"&&t){var i=fi(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof r=="string"&&(i+='[crossorigin="'+r+'"]'),$M.has(i)||($M.add(i),e={rel:e,crossOrigin:r,href:t},o.querySelector(i)===null&&(t=o.createElement("link"),Lr(t,"link",e),mr(t),o.head.appendChild(t)))}}function qV(e){cs.D(e),kB("dns-prefetch",e,null)}function KV(e,t){cs.C(e,t),kB("preconnect",e,t)}function GV(e,t,r){cs.L(e,t,r);var o=yp;if(o&&e&&t){var i='link[rel="preload"][as="'+fi(t)+'"]';t==="image"&&r&&r.imageSrcSet?(i+='[imagesrcset="'+fi(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(i+='[imagesizes="'+fi(r.imageSizes)+'"]')):i+='[href="'+fi(e)+'"]';var n=i;switch(t){case"style":n=cp(e);break;case"script":n=gp(e)}vi.has(n)||(e=Ct({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),vi.set(n,e),o.querySelector(i)!==null||t==="style"&&o.querySelector(fh(n))||t==="script"&&o.querySelector(hh(n))||(t=o.createElement("link"),Lr(t,"link",e),mr(t),o.head.appendChild(t)))}}function YV(e,t){cs.m(e,t);var r=yp;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+fi(o)+'"][href="'+fi(e)+'"]',n=i;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=gp(e)}if(!vi.has(n)&&(e=Ct({rel:"modulepreload",href:e},t),vi.set(n,e),r.querySelector(i)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(hh(n)))return}o=r.createElement("link"),Lr(o,"link",e),mr(o),r.head.appendChild(o)}}}function XV(e,t,r){cs.S(e,t,r);var o=yp;if(o&&e){var i=Ku(o).hoistableStyles,n=cp(e);t=t||"default";var s=i.get(n);if(!s){var a={loading:0,preload:null};if(s=o.querySelector(fh(n)))a.loading=5;else{e=Ct({rel:"stylesheet",href:e,"data-precedence":t},r),(r=vi.get(n))&&qT(e,r);var l=s=o.createElement("link");mr(l),Lr(l,"link",e),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener("load",function(){a.loading|=1}),l.addEventListener("error",function(){a.loading|=2}),a.loading|=4,tv(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:a},i.set(n,s)}}}function ZV(e,t){cs.X(e,t);var r=yp;if(r&&e){var o=Ku(r).hoistableScripts,i=gp(e),n=o.get(i);n||(n=r.querySelector(hh(i)),n||(e=Ct({src:e,async:!0},t),(t=vi.get(i))&&KT(e,t),n=r.createElement("script"),mr(n),Lr(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(i,n))}}function QV(e,t){cs.M(e,t);var r=yp;if(r&&e){var o=Ku(r).hoistableScripts,i=gp(e),n=o.get(i);n||(n=r.querySelector(hh(i)),n||(e=Ct({src:e,async:!0,type:"module"},t),(t=vi.get(i))&&KT(e,t),n=r.createElement("script"),mr(n),Lr(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(i,n))}}function jM(e,t,r,o){var i=(i=ra.current)?kv(i):null;if(!i)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=cp(r.href),r=Ku(i).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=cp(r.href);var n=Ku(i).hoistableStyles,s=n.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,s),(n=i.querySelector(fh(e)))&&!n._p&&(s.instance=n,s.state.loading=5),vi.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},vi.set(e,r),n||JV(i,e,r,s.state))),t&&o===null)throw Error(U(528,""));return s}if(t&&o!==null)throw Error(U(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gp(r),r=Ku(i).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function cp(e){return'href="'+fi(e)+'"'}function fh(e){return'link[rel="stylesheet"]['+e+"]"}function OB(e){return Ct({},e,{"data-precedence":e.precedence,precedence:null})}function JV(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Lr(t,"link",r),mr(t),e.head.appendChild(t))}function gp(e){return'[src="'+fi(e)+'"]'}function hh(e){return"script[async]"+e}function WM(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+fi(r.href)+'"]');if(o)return t.instance=o,mr(o),o;var i=Ct({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),mr(o),Lr(o,"style",i),tv(o,r.precedence,e),t.instance=o;case"stylesheet":i=cp(r.href);var n=e.querySelector(fh(i));if(n)return t.state.loading|=4,t.instance=n,mr(n),n;o=OB(r),(i=vi.get(i))&&qT(o,i),n=(e.ownerDocument||e).createElement("link"),mr(n);var s=n;return s._p=new Promise(function(a,l){s.onload=a,s.onerror=l}),Lr(n,"link",o),t.state.loading|=4,tv(n,r.precedence,e),t.instance=n;case"script":return n=gp(r.src),(i=e.querySelector(hh(n)))?(t.instance=i,mr(i),i):(o=r,(i=vi.get(n))&&(o=Ct({},r),KT(o,i)),e=e.ownerDocument||e,i=e.createElement("script"),mr(i),Lr(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,tv(o,r.precedence,e));return t.instance}function tv(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=o.length?o[o.length-1]:null,n=i,s=0;s<o.length;s++){var a=o[s];if(a.dataset.precedence===t)n=a;else if(n!==i)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function qT(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function KT(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var rv=null;function VM(e,t,r){if(rv===null){var o=new Map,i=rv=new Map;i.set(r,o)}else i=rv,o=i.get(r),o||(o=new Map,i.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),i=0;i<r.length;i++){var n=r[i];if(!(n[ah]||n[Ar]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var s=n.getAttribute(t)||"";s=e+s;var a=o.get(s);a?a.push(n):o.set(s,[n])}}return o}function qM(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function eq(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function MB(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function tq(e,t,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var i=cp(o.href),n=t.querySelector(fh(i));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ov.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=n,mr(n);return}n=t.ownerDocument||t,o=OB(o),(i=vi.get(i))&&qT(o,i),n=n.createElement("link"),mr(n);var s=n;s._p=new Promise(function(a,l){s.onload=a,s.onerror=l}),Lr(n,"link",o),r.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Ov.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var sx=0;function rq(e,t){return e.stylesheets&&e.count===0&&ov(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var o=setTimeout(function(){if(e.stylesheets&&ov(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&sx===0&&(sx=62500*LV());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ov(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>sx?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(i)}}:null}function Ov(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ov(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mv=null;function ov(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mv=new Map,t.forEach(oq,e),Mv=null,Ov.call(e))}function oq(e,t){if(!(t.state.loading&4)){var r=Mv.get(e);if(r)var o=r.get(null);else{r=new Map,Mv.set(e,r);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<i.length;n++){var s=i[n];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(r.set(s.dataset.precedence,s),o=s)}o&&r.set(null,o)}i=t.instance,s=i.getAttribute("data-precedence"),n=r.get(s)||o,n===o&&r.set(null,i),r.set(s,i),this.count++,o=Ov.bind(this),i.addEventListener("load",o),i.addEventListener("error",o),n?n.parentNode.insertBefore(i,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var eh={$$typeof:Qn,Provider:null,Consumer:null,_currentValue:Sl,_currentValue2:Sl,_threadCount:0};function iq(e,t,r,o,i,n,s,a,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=DS(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=DS(0),this.hiddenUpdates=DS(null),this.identifierPrefix=o,this.onUncaughtError=i,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function DB(e,t,r,o,i,n,s,a,l,c,u,p){return e=new iq(e,t,r,s,l,c,u,p,a),t=1,n===!0&&(t|=24),n=No(3,null,null,t),e.current=n,n.stateNode=e,t=bT(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:r,cache:t},xT(n),e}function AB(e){return e?(e=ju,e):ju}function BB(e,t,r,o,i,n){i=AB(i),o.context===null?o.context=i:o.pendingContext=i,o=ia(t),o.payload={element:r},n=n===void 0?null:n,n!==null&&(o.callback=n),r=na(e,o,t),r!==null&&(yo(r,e,t),Bf(r,e,t))}function KM(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function GT(e,t){KM(e,t),(e=e.alternate)&&KM(e,t)}function NB(e){if(e.tag===13||e.tag===31){var t=Bl(e,67108864);t!==null&&yo(t,e,67108864),GT(e,67108864)}}function GM(e){if(e.tag===13||e.tag===31){var t=Ho();t=nT(t);var r=Bl(e,t);r!==null&&yo(r,e,t),GT(e,t)}}var Dv=!0;function nq(e,t,r,o){var i=ge.T;ge.T=null;var n=qe.p;try{qe.p=2,YT(e,t,r,o)}finally{qe.p=n,ge.T=i}}function sq(e,t,r,o){var i=ge.T;ge.T=null;var n=qe.p;try{qe.p=8,YT(e,t,r,o)}finally{qe.p=n,ge.T=i}}function YT(e,t,r,o){if(Dv){var i=eT(o);if(i===null)ix(e,t,o,Av,r),YM(e,o);else if(lq(i,e,t,r,o))o.stopPropagation();else if(YM(e,o),t&4&&-1<aq.indexOf(e)){for(;i!==null;){var n=dp(i);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=vl(n.pendingLanes);if(s!==0){var a=n;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-Fo(s);a.entanglements[1]|=l,s&=~l}hn(n),(Ve&6)===0&&(xv=Io()+500,dh(0,!1))}}break;case 31:case 13:a=Bl(n,2),a!==null&&yo(a,n,2),qv(),GT(n,2)}if(n=eT(o),n===null&&ix(e,t,o,Av,r),n===i)break;i=n}i!==null&&o.stopPropagation()}else ix(e,t,o,null,r)}}function eT(e){return e=cT(e),XT(e)}var Av=null;function XT(e){if(Av=null,e=Iu(e),e!==null){var t=oh(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=tD(t),e!==null)return e;e=null}else if(r===31){if(e=rD(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Av=e,null}function LB(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(G7()){case sD:return 2;case aD:return 8;case lv:case Y7:return 32;case lD:return 268435456;default:return 32}default:return 32}}var tT=!1,la=null,ca=null,ua=null,th=new Map,rh=new Map,Xs=[],aq="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function YM(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":th.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rh.delete(t.pointerId)}}function Tf(e,t,r,o,i,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:n,targetContainers:[i]},t!==null&&(t=dp(t),t!==null&&NB(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lq(e,t,r,o,i){switch(t){case"focusin":return la=Tf(la,e,t,r,o,i),!0;case"dragenter":return ca=Tf(ca,e,t,r,o,i),!0;case"mouseover":return ua=Tf(ua,e,t,r,o,i),!0;case"pointerover":var n=i.pointerId;return th.set(n,Tf(th.get(n)||null,e,t,r,o,i)),!0;case"gotpointercapture":return n=i.pointerId,rh.set(n,Tf(rh.get(n)||null,e,t,r,o,i)),!0}return!1}function IB(e){var t=Iu(e.target);if(t!==null){var r=oh(t);if(r!==null){if(t=r.tag,t===13){if(t=tD(r),t!==null){e.blockedOn=t,DO(e.priority,function(){GM(r)});return}}else if(t===31){if(t=rD(r),t!==null){e.blockedOn=t,DO(e.priority,function(){GM(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=eT(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);bx=o,r.target.dispatchEvent(o),bx=null}else return t=dp(r),t!==null&&NB(t),e.blockedOn=r,!1;t.shift()}return!0}function XM(e,t,r){iv(e)&&r.delete(t)}function cq(){tT=!1,la!==null&&iv(la)&&(la=null),ca!==null&&iv(ca)&&(ca=null),ua!==null&&iv(ua)&&(ua=null),th.forEach(XM),rh.forEach(XM)}function $g(e,t){e.blockedOn===t&&(e.blockedOn=null,tT||(tT=!0,sr.unstable_scheduleCallback(sr.unstable_NormalPriority,cq)))}var jg=null;function ZM(e){jg!==e&&(jg=e,sr.unstable_scheduleCallback(sr.unstable_NormalPriority,function(){jg===e&&(jg=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],i=e[t+2];if(typeof o!="function"){if(XT(o||r)===null)continue;break}var n=dp(r);n!==null&&(e.splice(t,3),t-=3,Nx(n,{pending:!0,data:i,method:r.method,action:o},o,i))}}))}function up(e){function t(l){return $g(l,e)}la!==null&&$g(la,e),ca!==null&&$g(ca,e),ua!==null&&$g(ua,e),th.forEach(t),rh.forEach(t);for(var r=0;r<Xs.length;r++){var o=Xs[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Xs.length&&(r=Xs[0],r.blockedOn===null);)IB(r),r.blockedOn===null&&Xs.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var i=r[o],n=r[o+1],s=i[go]||null;if(typeof n=="function")s||ZM(r);else if(s){var a=null;if(n&&n.hasAttribute("formAction")){if(i=n,s=n[go]||null)a=s.formAction;else if(XT(i)!==null)continue}else a=s.action;typeof a=="function"?r[o+1]=a:(r.splice(o,3),o-=3),ZM(r)}}}function zB(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return i=s})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),o||setTimeout(r,20)}function r(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function ZT(e){this._internalRoot=e}Yv.prototype.render=ZT.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var r=t.current,o=Ho();BB(r,o,e,t,null,null)};Yv.prototype.unmount=ZT.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;BB(e.current,2,null,e,null,null),qv(),t[pp]=null}};function Yv(e){this._internalRoot=e}Yv.prototype.unstable_scheduleHydration=function(e){if(e){var t=fD();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Xs.length&&t!==0&&t<Xs[r].priority;r++);Xs.splice(r,0,e),r===0&&IB(e)}};var QM=JM.version;if(QM!=="19.2.4")throw Error(U(527,QM,"19.2.4"));qe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=U7(t),e=e!==null?oD(e):null,e=e===null?null:e.stateNode,e};var uq={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Cf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Cf.isDisabled&&Cf.supportsFiber))try{ih=Cf.inject(uq),zo=Cf}catch{}var Cf;Xv.createRoot=function(e,t){if(!eD(e))throw Error(U(299));var r=!1,o="",i=kA,n=OA,s=MA;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=DB(e,1,!1,null,null,r,o,null,i,n,s,zB),e[pp]=t.current,VT(e),new ZT(t)};Xv.hydrateRoot=function(e,t,r){if(!eD(e))throw Error(U(299));var o=!1,i="",n=kA,s=OA,a=MA,l=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onUncaughtError!==void 0&&(n=r.onUncaughtError),r.onCaughtError!==void 0&&(s=r.onCaughtError),r.onRecoverableError!==void 0&&(a=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=DB(e,1,!0,t,r??null,o,i,l,n,s,a,zB),t.context=AB(null),r=t.current,o=Ho(),o=nT(o),i=ia(o),i.callback=null,na(r,i,o),r=o,t.current.lanes=r,sh(t,r),hn(t),e[pp]=t.current,VT(e),new Yv(t)};Xv.version="19.2.4"});var $B=Gr((_De,UB)=>{"use strict";function HB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HB)}catch(e){console.error(e)}}HB(),UB.exports=FB()});var u4={black:"#000",white:"#fff"},lc=u4;var p4={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ba=p4;var d4={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Na=d4;var f4={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},La=f4;var h4={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ia=h4;var m4={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},za=m4;var y4={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},cc=y4;var g4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},nw=g4;function pr(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}var Cr="$$material";function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Fa.apply(null,arguments)}var Qo=_(I()),Cm=_(I());var B4=!1;function N4(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function L4(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vw=(function(){function e(r){var o=this;this._insertTag=function(i){var n;o.tags.length===0?o.insertionPoint?n=o.insertionPoint.nextSibling:o.prepend?n=o.container.firstChild:n=o.before:n=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(i,n),o.tags.push(i)},this.isSpeedy=r.speedy===void 0?!B4:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(L4(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var n=N4(i);try{n.insertRule(o,n.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e})();var wr="-ms-",Gp="-moz-",$e="-webkit-",sm="comm",dc="rule",fc="decl";var bw="@import";var am="@keyframes";var _w="@layer";var Sw=Math.abs,Ha=String.fromCharCode,xw=Object.assign;function Tw(e,t){return Vt(e,0)^45?(((t<<2^Vt(e,0))<<2^Vt(e,1))<<2^Vt(e,2))<<2^Vt(e,3):0}function lm(e){return e.trim()}function __(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,r){return e.replace(t,r)}function Yp(e,t){return e.indexOf(t)}function Vt(e,t){return e.charCodeAt(t)|0}function ws(e,t,r){return e.slice(t,r)}function Yr(e){return e.length}function hc(e){return e.length}function mc(e,t){return t.push(e),e}function S_(e,t){return e.map(t).join("")}var cm=1,yc=1,Cw=0,Xr=0,Yt=0,vc="";function Xp(e,t,r,o,i,n,s){return{value:e,root:t,parent:r,type:o,props:i,children:n,line:cm,column:yc,length:s,return:""}}function bc(e,t){return xw(Xp("",null,null,"",null,null,0),e,{length:-e.length},t)}function ww(){return Yt}function Rw(){return Yt=Xr>0?Vt(vc,--Xr):0,yc--,Yt===10&&(yc=1,cm--),Yt}function Zr(){return Yt=Xr<Cw?Vt(vc,Xr++):0,yc++,Yt===10&&(yc=1,cm++),Yt}function Zo(){return Vt(vc,Xr)}function Zp(){return Xr}function _c(e,t){return ws(vc,e,t)}function gc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function um(e){return cm=yc=1,Cw=Yr(vc=e),Xr=0,[]}function pm(e){return vc="",e}function Sc(e){return lm(_c(Xr-1,x_(e===91?e+2:e===40?e+1:e)))}function Pw(e){for(;(Yt=Zo())&&Yt<33;)Zr();return gc(e)>2||gc(Yt)>3?"":" "}function Ew(e,t){for(;--t&&Zr()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return _c(e,Zp()+(t<6&&Zo()==32&&Zr()==32))}function x_(e){for(;Zr();)switch(Yt){case e:return Xr;case 34:case 39:e!==34&&e!==39&&x_(Yt);break;case 40:e===41&&x_(e);break;case 92:Zr();break}return Xr}function kw(e,t){for(;Zr()&&e+Yt!==57;)if(e+Yt===84&&Zo()===47)break;return"/*"+_c(t,Xr-1)+"*"+Ha(e===47?e:Zr())}function Ow(e){for(;!gc(Zo());)Zr();return _c(e,Xr)}function Aw(e){return pm(dm("",null,null,null,[""],e=um(e),0,[0],e))}function dm(e,t,r,o,i,n,s,a,l){for(var c=0,u=0,p=s,f=0,d=0,h=0,y=1,b=1,m=1,g=0,v="",S=i,C=n,w=o,k=v;b;)switch(h=g,g=Zr()){case 40:if(h!=108&&Vt(k,p-1)==58){Yp(k+=ze(Sc(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:k+=Sc(g);break;case 9:case 10:case 13:case 32:k+=Pw(h);break;case 92:k+=Ew(Zp()-1,7);continue;case 47:switch(Zo()){case 42:case 47:mc(I4(kw(Zr(),Zp()),t,r),l);break;default:k+="/"}break;case 123*y:a[c++]=Yr(k)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:m==-1&&(k=ze(k,/\f/g,"")),d>0&&Yr(k)-p&&mc(d>32?Dw(k+";",o,r,p-1):Dw(ze(k," ","")+";",o,r,p-2),l);break;case 59:k+=";";default:if(mc(w=Mw(k,t,r,c,u,i,a,v,S=[],C=[],p),n),g===123)if(u===0)dm(k,t,w,w,S,n,p,a,C);else switch(f===99&&Vt(k,3)===110?100:f){case 100:case 108:case 109:case 115:dm(e,w,w,o&&mc(Mw(e,w,w,0,0,i,a,v,i,S=[],p),C),i,C,p,a,o?S:C);break;default:dm(k,w,w,w,[""],C,0,a,C)}}c=u=d=0,y=m=1,v=k="",p=s;break;case 58:p=1+Yr(k),d=h;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&Rw()==125)continue}switch(k+=Ha(g),g*y){case 38:m=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(Yr(k)-1)*m,m=1;break;case 64:Zo()===45&&(k+=Sc(Zr())),f=Zo(),u=p=Yr(v=k+=Ow(Zp())),g++;break;case 45:h===45&&Yr(k)==2&&(y=0)}}return n}function Mw(e,t,r,o,i,n,s,a,l,c,u){for(var p=i-1,f=i===0?n:[""],d=hc(f),h=0,y=0,b=0;h<o;++h)for(var m=0,g=ws(e,p+1,p=Sw(y=s[h])),v=e;m<d;++m)(v=lm(y>0?f[m]+" "+g:ze(g,/&\f/g,f[m])))&&(l[b++]=v);return Xp(e,t,r,i===0?dc:a,l,c,u)}function I4(e,t,r){return Xp(e,t,r,sm,Ha(ww()),ws(e,2,-2),0)}function Dw(e,t,r,o){return Xp(e,t,r,fc,ws(e,0,o),ws(e,o+1,-1),o)}function Ua(e,t){for(var r="",o=hc(e),i=0;i<o;i++)r+=t(e[i],i,e,t)||"";return r}function Bw(e,t,r,o){switch(e.type){case _w:if(e.children.length)break;case bw:case fc:return e.return=e.return||e.value;case sm:return"";case am:return e.return=e.value+"{"+Ua(e.children,o)+"}";case dc:e.value=e.props.join(",")}return Yr(r=Ua(e.children,o))?e.return=e.value+"{"+r+"}":""}function Nw(e){var t=hc(e);return function(r,o,i,n){for(var s="",a=0;a<t;a++)s+=e[a](r,o,i,n)||"";return s}}function Lw(e){return function(t){t.root||(t=t.return)&&e(t)}}function fm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var z4=function(t,r,o){for(var i=0,n=0;i=n,n=Zo(),i===38&&n===12&&(r[o]=1),!gc(n);)Zr();return _c(t,Xr)},F4=function(t,r){var o=-1,i=44;do switch(gc(i)){case 0:i===38&&Zo()===12&&(r[o]=1),t[o]+=z4(Xr-1,r,o);break;case 2:t[o]+=Sc(i);break;case 4:if(i===44){t[++o]=Zo()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Ha(i)}while(i=Zr());return t},H4=function(t,r){return pm(F4(um(t),r))},Iw=new WeakMap,U4=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,i=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Iw.get(o))&&!i){Iw.set(t,!0);for(var n=[],s=H4(r,n),a=o.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=n[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},$4=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zw(e,t){switch(Tw(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Gp+e+wr+e+e;case 6828:case 4268:return $e+e+wr+e+e;case 6165:return $e+e+wr+"flex-"+e+e;case 5187:return $e+e+ze(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+wr+"flex-$1$2")+e;case 5443:return $e+e+wr+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return $e+e+wr+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+wr+ze(e,"shrink","negative")+e;case 5292:return $e+e+wr+ze(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+ze(e,"-grow","")+$e+e+wr+ze(e,"grow","positive")+e;case 4554:return $e+ze(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+wr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Yr(e)-1-t>6)switch(Vt(e,t+1)){case 109:if(Vt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+Gp+(Vt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yp(e,"stretch")?zw(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vt(e,t+1)!==115)break;case 6444:switch(Vt(e,Yr(e)-3-(~Yp(e,"!important")&&10))){case 107:return ze(e,":",":"+$e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(Vt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+wr+"$2box$3")+e}break;case 5936:switch(Vt(e,t+11)){case 114:return $e+e+wr+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+wr+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+wr+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+wr+e+e}return e}var j4=function(t,r,o,i){if(t.length>-1&&!t.return)switch(t.type){case fc:t.return=zw(t.value,t.length);break;case am:return Ua([bc(t,{value:ze(t.value,"@","@"+$e)})],i);case dc:if(t.length)return S_(t.props,function(n){switch(__(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ua([bc(t,{props:[ze(n,/:(read-\w+)/,":"+Gp+"$1")]})],i);case"::placeholder":return Ua([bc(t,{props:[ze(n,/:(plac\w+)/,":"+$e+"input-$1")]}),bc(t,{props:[ze(n,/:(plac\w+)/,":"+Gp+"$1")]}),bc(t,{props:[ze(n,/:(plac\w+)/,wr+"input-$1")]})],i)}return""})}},W4=[j4],Fw=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||W4,n={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),m=1;m<b.length;m++)n[b[m]]=!0;a.push(y)});var l,c=[U4,$4];{var u,p=[Bw,Lw(function(y){u.insert(y)})],f=Nw(c.concat(i,p)),d=function(b){return Ua(Aw(b),f)};l=function(b,m,g,v){u=g,d(b?b+"{"+m.styles+"}":m.styles),v&&(h.inserted[m.name]=!0)}}var h={key:r,sheet:new vw({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:n,registered:{},insert:l};return h.sheet.hydrate(a),h};var o6=!0;function Qp(e,t,r){var o="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}var xc=function(t,r,o){var i=t.key+"-"+r.name;(o===!1||o6===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Tc=function(t,r,o){xc(t,r,o);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var n=r;do t.insert(r===n?"."+i:"",n,t.sheet,!0),n=n.next;while(n!==void 0)}};function Zw(e){for(var t=0,r,o=0,i=e.length;i>=4;++o,i-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qw={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};var i6=!1,n6=/[A-Z]|^ms/g,s6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rR=function(t){return t.charCodeAt(1)===45},Jw=function(t){return t!=null&&typeof t!="boolean"},E_=fm(function(e){return rR(e)?e:e.replace(n6,"-$&").toLowerCase()}),eR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(s6,function(o,i,n){return Gi={name:i,styles:n,next:Gi},i})}return Qw[t]!==1&&!rR(t)&&typeof r=="number"&&r!==0?r+"px":r},a6="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Jp(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Gi={name:i.name,styles:i.styles,next:Gi},i.name;var n=r;if(n.styles!==void 0){var s=n.next;if(s!==void 0)for(;s!==void 0;)Gi={name:s.name,styles:s.styles,next:Gi},s=s.next;var a=n.styles+";";return a}return l6(e,t,r)}case"function":{if(e!==void 0){var l=Gi,c=r(e);return Gi=l,Jp(e,t,c)}break}}var u=r;if(t==null)return u;var p=t[u];return p!==void 0?p:u}function l6(e,t,r){var o="";if(Array.isArray(r))for(var i=0;i<r.length;i++)o+=Jp(e,t,r[i])+";";else for(var n in r){var s=r[n];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?o+=n+"{"+t[a]+"}":Jw(a)&&(o+=E_(n)+":"+eR(n,a)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&i6)throw new Error(a6);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Jw(s[l])&&(o+=E_(n)+":"+eR(n,s[l])+";");else{var c=Jp(e,t,s);switch(n){case"animation":case"animationName":{o+=E_(n)+":"+c+";";break}default:o+=n+"{"+c+"}"}}}}return o}var tR=/label:\s*([^\s;{]+)\s*(;|$)/g,Gi;function Pn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";Gi=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,i+=Jp(r,t,n);else{var s=n;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=Jp(r,t,e[a]),o){var l=n;i+=l[a]}tR.lastIndex=0;for(var c="",u;(u=tR.exec(i))!==null;)c+="-"+u[1];var p=Zw(i)+c;return{name:p,styles:i,next:Gi}}var ed=_(I()),c6=function(t){return t()},oR=ed.useInsertionEffect?ed.useInsertionEffect:!1,td=oR||c6,k_=oR||ed.useLayoutEffect;var iR=!1,nR=Qo.createContext(typeof HTMLElement<"u"?Fw({key:"css"}):null),u6=nR.Provider;var Cc=function(t){return(0,Cm.forwardRef)(function(r,o){var i=(0,Cm.useContext)(nR);return t(r,i,o)})},ki=Qo.createContext({});var wm={}.hasOwnProperty,O_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",sR=function(t,r){var o={};for(var i in r)wm.call(r,i)&&(o[i]=r[i]);return o[O_]=t,o},p6=function(t){var r=t.cache,o=t.serialized,i=t.isStringTag;return xc(r,o,i),td(function(){return Tc(r,o,i)}),null},d6=Cc(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var i=e[O_],n=[o],s="";typeof e.className=="string"?s=Qp(t.registered,n,e.className):e.className!=null&&(s=e.className+" ");var a=Pn(n,void 0,Qo.useContext(ki));s+=t.key+"-"+a.name;var l={};for(var c in e)wm.call(e,c)&&c!=="css"&&c!==O_&&!iR&&(l[c]=e[c]);return l.className=s,r&&(l.ref=r),Qo.createElement(Qo.Fragment,null,Qo.createElement(p6,{cache:t,serialized:a,isStringTag:typeof i=="string"}),Qo.createElement(i,l))}),aR=d6;var Rs=_(I());var wee=_(Xw()),lR=function(t,r){var o=arguments;if(r==null||!wm.call(r,"css"))return Rs.createElement.apply(void 0,o);var i=o.length,n=new Array(i);n[0]=aR,n[1]=sR(t,r);for(var s=2;s<i;s++)n[s]=o[s];return Rs.createElement.apply(null,n)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(lR||(lR={}));var cR=Cc(function(e,t){var r=e.styles,o=Pn([r],void 0,Rs.useContext(ki)),i=Rs.useRef();return k_(function(){var n=t.key+"-global",s=new t.sheet.constructor({key:n,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+n+" "+o.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",n),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),k_(function(){var n=i.current,s=n[0],a=n[1];if(a){n[1]=!1;return}if(o.next!==void 0&&Tc(t,o.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",o,s,!1)},[t,o.name]),null});function Ps(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pn(t)}function Oi(){var e=Ps.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Es=_(I());var f6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uR=fm(function(e){return f6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var h6=!1,m6=uR,y6=function(t){return t!=="theme"},pR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?m6:y6},dR=function(t,r,o){var i;if(r){var n=r.shouldForwardProp;i=t.__emotion_forwardProp&&n?function(s){return t.__emotion_forwardProp(s)&&n(s)}:n}return typeof i!="function"&&o&&(i=t.__emotion_forwardProp),i},g6=function(t){var r=t.cache,o=t.serialized,i=t.isStringTag;return xc(r,o,i),td(function(){return Tc(r,o,i)}),null},fR=function e(t,r){var o=t.__emotion_real===t,i=o&&t.__emotion_base||t,n,s;r!==void 0&&(n=r.label,s=r.target);var a=dR(t,r,o),l=a||pR(i),c=!l("as");return function(){var u=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(n!==void 0&&p.push("label:"+n+";"),u[0]==null||u[0].raw===void 0)p.push.apply(p,u);else{var f=u[0];p.push(f[0]);for(var d=u.length,h=1;h<d;h++)p.push(u[h],f[h])}var y=Cc(function(b,m,g){var v=c&&b.as||i,S="",C=[],w=b;if(b.theme==null){w={};for(var k in b)w[k]=b[k];w.theme=Es.useContext(ki)}typeof b.className=="string"?S=Qp(m.registered,C,b.className):b.className!=null&&(S=b.className+" ");var O=Pn(p.concat(C),m.registered,w);S+=m.key+"-"+O.name,s!==void 0&&(S+=" "+s);var A=c&&a===void 0?pR(v):l,B={};for(var M in b)c&&M==="as"||A(M)&&(B[M]=b[M]);return B.className=S,g&&(B.ref=g),Es.createElement(Es.Fragment,null,Es.createElement(g6,{cache:m,serialized:O,isStringTag:typeof v=="string"}),Es.createElement(v,B))});return y.displayName=n!==void 0?n:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=p,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return s===void 0&&h6?"NO_COMPONENT_SELECTOR":"."+s}}),y.withComponent=function(b,m){var g=e(b,Fa({},r,m,{shouldForwardProp:dR(y,m,!0)}));return g.apply(void 0,p)},y}};var $ee=_(I());var v6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Rm=fR.bind(null);v6.forEach(function(e){Rm[e]=Rm(e)});var gR=_(R(),1);function S6(e){return e==null||Object.keys(e).length===0}function $a(e){let{styles:t,defaultTheme:r={}}=e;return(0,gR.jsx)(cR,{styles:typeof t=="function"?i=>t(S6(i)?r:i):t})}function rd(e,t){return Rm(e,t)}function bR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var vR=[];function Mi(e){return vR[0]=e,Pn(vR)}var A_=_(I(),1),B_=_(xR(),1);function Di(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TR(e){if(A_.isValidElement(e)||(0,B_.isValidElementType)(e)||!Di(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=TR(e[r])}),t}function Ke(e,t,r={clone:!0}){let o=r.clone?{...e}:e;return Di(e)&&Di(t)&&Object.keys(t).forEach(i=>{A_.isValidElement(t[i])||(0,B_.isValidElementType)(t[i])?o[i]=t[i]:Di(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Di(e[i])?o[i]=Ke(e[i],t[i],r):r.clone?o[i]=Di(t[i])?TR(t[i]):t[i]:o[i]=t[i]}),o}var C6=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>({...r,[o.key]:o.val}),{})};function od(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...i}=e,n=C6(t),s=Object.keys(n);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-o/100}${r})`}function c(d,h){let y=s.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:h)-o/100}${r})`}function u(d){return s.indexOf(d)+1<s.length?c(d,s[s.indexOf(d)+1]):a(d)}function p(d){let h=s.indexOf(d);return h===0?a(s[1]):h===s.length-1?l(s[h]):c(d,s[s.indexOf(d)+1]).replace("@media","@media not all and")}let f=[];for(let d=0;d<s.length;d+=1)f.push(a(s[d]));return{keys:s,values:n,up:a,down:l,between:c,only:u,not:p,unit:r,internal_mediaKeys:f,...i}}var CR=/min-width:\s*([0-9.]+)/;function zm(e,t){if(!e.containerQueries||!w6(t))return t;let r=[];for(let i in t)i.startsWith("@container")&&r.push(i);r.sort((i,n)=>+(i.match(CR)?.[1]||0)-+(n.match(CR)?.[1]||0));let o=t;for(let i=0;i<r.length;i+=1){let n=r[i],s=o[n];delete o[n],o[n]=s}return o}function w6(e){for(let t in e)if(t.startsWith("@container"))return!0;return!1}function Fm(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function N_(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,o,i]=r,n=Number.isNaN(+o)?o||0:+o;return e.containerQueries(i).up(n)}function Hm(e){let t=(n,s)=>n.replace("@media",s?`@container ${s}`:"@container");function r(n,s){n.up=(...a)=>t(e.breakpoints.up(...a),s),n.down=(...a)=>t(e.breakpoints.down(...a),s),n.between=(...a)=>t(e.breakpoints.between(...a),s),n.only=(...a)=>t(e.breakpoints.only(...a),s),n.not=(...a)=>{let l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}let o={},i=n=>(r(o,n),o);return r(i),{...e,containerQueries:i}}var R6={borderRadius:4},wR=R6;function wc(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Yi(e,t){let r=Array.isArray(t),o=Array.isArray(e);return M6(t)?t:D6(e)?Rc(t):r&&o?k6(e,t):r!==o?Rc(t):A6(e,t)}function P6(e){let t=0,r=e.length,o=new Array(r);for(t=0;t<r;t+=1)o[t]=Rc(e[t]);return o}function E6(e){let t={};for(let r in e)t[r]=Rc(e[r]);return t}function k6(e,t){let r=e.length;for(let o=0;o<t.length;o+=1)e[r+o]=Rc(t[o]);return e}function O6(e){return typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Date)}function M6(e){return typeof e!="object"||e===null}function D6(e){return typeof e!="object"||e===null||e instanceof RegExp||e instanceof Date}function Rc(e){return O6(e)?Array.isArray(e)?P6(e):E6(e):e}function A6(e,t){for(let r in t)r in e?e[r]=Yi(e[r],t[r]):e[r]=Rc(t[r]);return e}var B6={},nd={xs:0,sm:600,md:900,lg:1200,xl:1536},id=od({values:nd}),N6={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:nd[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function wo(e,t,r){let o={};return Pc(o,e.theme,t,(i,n,s)=>{let a=r(n,s);i?o[i]=a:Yi(o,a)})}function Pc(e,t,r,o){if(t??(t=B6),Array.isArray(r)){let i=t.breakpoints??id;for(let n=0;n<r.length;n+=1)L_(e,i.up(i.keys[n]),r[n],void 0,o);return e}if(typeof r=="object"){let i=t.breakpoints??id,n=i.values??nd;for(let s in r)if(Fm(i.keys,s)){let a=N_(t.containerQueries?t:N6,s);a&&L_(e,a,r[s],s,o)}else if(s in n){let a=i.up(s);L_(e,a,r[s],s,o)}else{let a=s;e[a]=r[a]}return e}return o(void 0,r),e}function L_(e,t,r,o,i){e[t]??(e[t]={}),i(t,r,o)}function I_(e=id){let{internal_mediaKeys:t}=e,r={};for(let o=0;o<t.length;o+=1)r[t[o]]={};return r}function Um(e,t){let r=e.internal_mediaKeys;for(let o=0;o<r.length;o+=1){let i=r[o];wc(t[i])&&delete t[i]}return t}function RR(e,...t){let o=[I_(e),...t].reduce((i,n)=>Ke(i,n),{});return Um(e,o)}function L6(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((i,n)=>{n<e.length&&(r[i]=!0)}):o.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function $m({values:e,breakpoints:t,base:r}){let o=r||L6(e,t),i=Object.keys(o);if(i.length===0)return e;let n;return i.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[n],n=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[n],n=a):s[a]=e,s),{})}function PR(e,t){if(Array.isArray(t))return!0;if(typeof t=="object"&&t!==null){for(let o=0;o<e.keys.length;o+=1)if(e.keys[o]in t)return!0;let r=Object.keys(t);for(let o=0;o<r.length;o+=1)if(Fm(e.keys,r[o]))return!0}return!1}function En(e){if(typeof e!="string")throw new Error(pr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function z_(e,t,r,o){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||r:typeof r=="string"?i=Ro(e,r,!0,o)||r:i=r,t&&(i=t(i,r,e)),i}function Ro(e,t,r=!0,o=void 0){if(!e||!t)return null;let i=t.split(".");if(e.vars&&r){let n=ER(e.vars,i,o);if(n!=null)return n}return ER(e,i,o)}function ER(e,t,r=void 0){let o,i=e,n=0;for(;n<t.length;){if(i==null)return i;o=i,i=i[t[n]],n+=1}if(r&&i===void 0){let s=t[t.length-1],a=`${r}${s==="default"?"":En(s)}`;return o?.[a]}return i}function lt(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:i}=e,n=s=>{if(s[t]==null)return null;let a=s[t],l=s.theme,c=Ro(l,o)||{};return wo(s,a,p=>{let f=z_(c,i,p,t);return r===!1?f:{[r]:f}})};return n.propTypes={},n.filterProps=[t],n}var I6={internal_cache:{}},jm={m:"margin",p:"padding"},kR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sd={};for(let e in jm)sd[e]=[jm[e]];for(let e in jm)for(let t in kR){let r=jm[e],o=kR[t],i=Array.isArray(o)?o.map(n=>r+n):[r+o];sd[e+t]=i}for(let e in OR)sd[e]=sd[OR[e]];var F_=new Set(["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"]),H_=new Set(["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"]),DR=new Set([...F_,...H_]);function ja(e,t,r,o){let i=Ro(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?n=>typeof n=="string"?n:typeof i=="string"?i.startsWith("var(")&&n===0?0:i.startsWith("var(")&&n===1?i:`calc(${n} * ${i})`:i*n:Array.isArray(i)?n=>{if(typeof n=="string")return n;let s=Math.abs(n),a=i[s];return n>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof i=="function"?i:()=>{}}function Wa(e){return ja(e,"spacing",8,"spacing")}function Xi(e,t){return typeof t=="string"||t==null?t:e(t)}var MR=[""];function U_(e,t){let r=e.theme??I6,o=r?.internal_cache?.unarySpacing??Wa(r),i={};for(let n in e){if(!t.has(n))continue;let s=sd[n]??(MR[0]=n,MR),a=e[n];Pc(i,e.theme,a,(l,c)=>{let u=l?i[l]:i;for(let p=0;p<s.length;p+=1)u[s[p]]=Xi(o,c)})}return i}function Mt(e){return U_(e,F_)}Mt.propTypes={};Mt.filterProps=F_;function Dt(e){return U_(e,H_)}Dt.propTypes={};Dt.filterProps=H_;function AR(e){return U_(e,DR)}AR.propTypes={};AR.filterProps=DR;function Ec(e=8,t=Wa({spacing:e})){if(e.mui)return e;let r=(...o)=>(o.length===0?[1]:o).map(n=>{let s=t(n);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function z6(...e){let t=e.reduce((o,i)=>(i.filterProps.forEach(n=>{o[n]=i}),o),{}),r=o=>{let i={};for(let n in o)t[n]&&Yi(i,t[n](o));return i};return r.propTypes={},r.filterProps=e.reduce((o,i)=>o.concat(i.filterProps),[]),r}var kn=z6;function Po(e){return typeof e!="number"?e:`${e}px solid`}function ei(e,t){return lt({prop:e,themeKey:"borders",transform:t})}var F6=ei("border",Po),H6=ei("borderTop",Po),U6=ei("borderRight",Po),$6=ei("borderBottom",Po),j6=ei("borderLeft",Po),W6=ei("borderColor"),V6=ei("borderTopColor"),q6=ei("borderRightColor"),K6=ei("borderBottomColor"),G6=ei("borderLeftColor"),Y6=ei("outline",Po),X6=ei("outlineColor"),ad=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ja(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Xi(t,o)});return wo(e,e.borderRadius,r)}return null};ad.propTypes={};ad.filterProps=["borderRadius"];var Yte=kn(F6,H6,U6,$6,j6,W6,V6,q6,K6,G6,ad,Y6,X6);var ld=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ja(e.theme,"spacing",8,"gap"),r=o=>({gap:Xi(t,o)});return wo(e,e.gap,r)}return null};ld.propTypes={};ld.filterProps=["gap"];var cd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ja(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Xi(t,o)});return wo(e,e.columnGap,r)}return null};cd.propTypes={};cd.filterProps=["columnGap"];var ud=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ja(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Xi(t,o)});return wo(e,e.rowGap,r)}return null};ud.propTypes={};ud.filterProps=["rowGap"];var Z6=lt({prop:"gridColumn"}),Q6=lt({prop:"gridRow"}),J6=lt({prop:"gridAutoFlow"}),eF=lt({prop:"gridAutoColumns"}),tF=lt({prop:"gridAutoRows"}),rF=lt({prop:"gridTemplateColumns"}),oF=lt({prop:"gridTemplateRows"}),iF=lt({prop:"gridTemplateAreas"}),nF=lt({prop:"gridArea"}),tre=kn(ld,cd,ud,Z6,Q6,J6,eF,tF,rF,oF,iF,nF);function Va(e,t){return t==="grey"?t:e}var sF=lt({prop:"color",themeKey:"palette",transform:Va}),aF=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Va}),lF=lt({prop:"backgroundColor",themeKey:"palette",transform:Va}),nre=kn(sF,aF,lF);function so(e){return e<=1&&e!==0?`${e*100}%`:e}var cF=lt({prop:"width",transform:so}),Wm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{let o=e.theme?.breakpoints?.values?.[r]||nd[r];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:so(r)}};return wo(e,e.maxWidth,t)}return null};Wm.filterProps=["maxWidth"];var uF=lt({prop:"minWidth",transform:so}),pF=lt({prop:"height",transform:so}),dF=lt({prop:"maxHeight",transform:so}),fF=lt({prop:"minHeight",transform:so}),ure=lt({prop:"size",cssProperty:"width",transform:so}),pre=lt({prop:"size",cssProperty:"height",transform:so}),hF=lt({prop:"boxSizing"}),dre=kn(cF,Wm,uF,pF,dF,fF,hF);var mF={border:{themeKey:"borders",transform:Po},borderTop:{themeKey:"borders",transform:Po},borderRight:{themeKey:"borders",transform:Po},borderBottom:{themeKey:"borders",transform:Po},borderLeft:{themeKey:"borders",transform:Po},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Po},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ad},color:{themeKey:"palette",transform:Va},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Va},backgroundColor:{themeKey:"palette",transform:Va},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:ld},rowGap:{style:ud},columnGap:{style:cd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:so},maxWidth:{style:Wm},minWidth:{transform:so},height:{transform:so},maxHeight:{transform:so},minHeight:{transform:so},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"}},On=mF;var yF={};function gF(){function e(t){if(!t.sx)return null;let{sx:r,theme:o=yF,nested:i}=t,n=o.unstable_sxConfig??On,s={sx:null,theme:o,nested:!0};function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;let u=o.breakpoints??id,p=I_(u);for(let f in c){let d=vF(c[f],o);if(d!=null){if(typeof d!="object"){BR(p,f,d,o,n);continue}if(n[f]){BR(p,f,d,o,n);continue}PR(u,d)?Pc(p,t.theme,d,(h,y)=>{p[h][f]=y}):(s.sx=d,p[f]=e(s))}}return!i&&o.modularCssLayers?{"@layer sx":zm(o,Um(u,p))}:zm(o,Um(u,p))}return Array.isArray(r)?r.map(a):a(r)}return e.filterProps=["sx"],e}var ao=gF();function BR(e,t,r,o,i){let n=i[t];if(!n){e[t]=r;return}if(r==null)return;let{themeKey:s}=n;if(s==="typography"&&r==="inherit"){e[t]=r;return}let{style:a}=n;if(a){Yi(e,a({[t]:r,theme:o}));return}let{cssProperty:l=t,transform:c}=n,u=Ro(o,s);Pc(e,o,r,(p,f)=>{let d=z_(u,c,f,t);l===!1?p?e[p]=d:Yi(e,d):p?e[p][l]=d:e[l]=d})}function vF(e,t){return typeof e=="function"?e(t):e}function $_(e,t){let r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function bF(e={},...t){let{breakpoints:r={},palette:o={},spacing:i,shape:n={},...s}=e,a=od(r),l=Ec(i),c=Ke({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...wR,...n}},s);return c=Hm(c),c.applyStyles=$_,c=t.reduce((u,p)=>Ke(u,p),c),c.unstable_sxConfig={...On,...s?.unstable_sxConfig},c.unstable_sx=function(p){return ao({sx:p,theme:this})},c.internal_cache={},c}var Ai=bF;var NR=_(I(),1);function _F(e){return Object.keys(e).length===0}function SF(e=null){let t=NR.useContext(ki);return!t||_F(t)?e:t}var qa=SF;var xF=Ai();function TF(e=xF){return qa(e)}var Zi=TF;var LR=_(R(),1);function j_(e){let t=Mi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function CF({styles:e,themeId:t,defaultTheme:r={}}){let o=Zi(r),i=t&&o[t]||o,n=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(n)?n=n.map(s=>j_(typeof s=="function"?s(i):s)):n=j_(n)),(0,LR.jsx)($a,{styles:n})}var kc=CF;var IR=e=>e,wF=()=>{let e=IR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=IR}}},RF=wF(),Oc=RF;var FR=_(I(),1);function zR(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=zR(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function PF(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=zR(e))&&(o&&(o+=" "),o+=t);return o}var H=PF;var HR=_(R(),1);function pd(e={}){let{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=e,n=rd("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(ao);return FR.forwardRef(function(l,c){let u=Zi(r),{className:p,component:f="div",...d}=l;return(0,HR.jsx)(n,{as:f,ref:c,className:H(p,i?i(o):o),theme:t&&u[t]||u,...d})})}var EF={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 W(e,t,r="Mui"){let o=EF[t];return o?`${r}-${o}`:`${Oc.generate(e)}-${t}`}function j(e,t,r="Mui"){let o={};return t.forEach(i=>{o[i]=W(e,i,r)}),o}function dd(e){let{variants:t,...r}=e,o={variants:t,style:Mi(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Mi(i.style))}),o}var kF=Ai();function W_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ka(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OF(e){return e?(t,r)=>r[e]:null}function MF(e,t,r){e.theme=wc(e.theme)?r:e.theme[t]||e.theme}function Vm(e,t,r){let o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(i=>Vm(e,i,r));if(Array.isArray(o?.variants)){let i;if(o.isProcessed)i=r?Ka(o.style,r):o.style;else{let{variants:n,...s}=o;i=r?Ka(Mi(s),r):s}return UR(e,o.variants,[i],r)}return o?.isProcessed?r?Ka(Mi(o.style),r):o.style:r?Ka(Mi(o),r):o}function UR(e,t,r=[],o=void 0){let i;e:for(let n=0;n<t.length;n+=1){let s=t[n];if(typeof s.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(i))continue}else for(let a in s.props)if(e[a]!==s.props[a]&&e.ownerState?.[a]!==s.props[a])continue e;typeof s.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(o?Ka(Mi(s.style(i)),o):s.style(i))):r.push(o?Ka(Mi(s.style),o):s.style)}return r}function Mc(e={}){let{themeId:t,defaultTheme:r=kF,rootShouldForwardProp:o=W_,slotShouldForwardProp:i=W_}=e;function n(a){MF(a,t,r)}return(a,l={})=>{bR(a,w=>w.filter(k=>k!==ao));let{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:d=OF(BF(u)),...h}=l,y=c&&c.startsWith("Mui")||u?"components":"custom",b=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,m=f||!1,g=W_;u==="Root"||u==="root"?g=o:u?g=i:AF(a)&&(g=void 0);let v=rd(a,{shouldForwardProp:g,label:DF(c,u),...h}),S=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(O){return Vm(O,w,O.theme.modularCssLayers?y:void 0)};if(Di(w)){let k=dd(w);return function(A){return k.variants?Vm(A,k,A.theme.modularCssLayers?y:void 0):A.theme.modularCssLayers?Ka(k.style,y):k.style}}return w},C=(...w)=>{let k=[],O=w.map(S),A=[];if(k.push(n),c&&d&&A.push(function(P){let E=P.theme.components?.[c]?.styleOverrides;if(!E)return null;let D={};for(let z in E)D[z]=Vm(P,E[z],P.theme.modularCssLayers?"theme":void 0);return d(P,D)}),c&&!b&&A.push(function(P){let E=P.theme?.components?.[c]?.variants;return E?UR(P,E,[],P.theme.modularCssLayers?"theme":void 0):null}),m||A.push(ao),Array.isArray(O[0])){let x=O.shift(),P=new Array(k.length).fill(""),T=new Array(A.length).fill(""),E;E=[...P,...x,...T],E.raw=[...P,...x.raw,...T],k.unshift(E)}let B=[...k,...O,...A],M=v(...B);return a.muiName&&(M.muiName=a.muiName),M};return v.withConfig&&(C.withConfig=v.withConfig),C}}function DF(e,t){return void 0}function AF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function BF(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var NF=Mc(),fd=NF;function Qi(e,t,r=!1){let o={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let n=i;if(n==="components"||n==="slots")o[n]={...e[n],...o[n]};else if(n==="componentsProps"||n==="slotProps"){let s=e[n],a=t[n];if(!a)o[n]=s||{};else if(!s)o[n]=a;else{o[n]={...a};for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=l;o[n][c]=Qi(s[c],a[c],r)}}}else n==="className"&&r&&t.className?o.className=H(e?.className,t?.className):n==="style"&&r&&t.style?o.style={...e?.style,...t?.style}:o[n]===void 0&&(o[n]=e[n])}return o}function V_(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Qi(t.components[r].defaultProps,o)}function Dc({props:e,name:t,defaultTheme:r,themeId:o}){let i=Zi(r);return o&&(i=i[o]||i),V_({theme:i,name:t,props:e})}var qm=_(I(),1),LF=typeof window<"u"?qm.useLayoutEffect:qm.useEffect,fr=LF;function IF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var q_=IF;function K_(e,t=0,r=1){return q_(e,t,r)}function $R(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,i)=>i<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Mn(e){if(e.type)return e;if(e.charAt(0)==="#")return Mn($R(e));let t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(pr(9,e));let o=e.substring(t+1,e.length-1),i;if(r==="color"){if(o=o.split(" "),i=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(pr(10,i))}else o=o.split(",");return o=o.map(n=>parseFloat(n)),{type:r,values:o,colorSpace:i}}var zF=e=>{let t=Mn(e);return t.values.slice(0,3).map((r,o)=>t.type.includes("hsl")&&o!==0?`${r}%`:r).join(" ")},Ac=(e,t)=>{try{return zF(e)}catch{return e}};function hd(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.includes("rgb")?o=o.map((i,n)=>n<3?parseInt(i,10):i):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Gm(e){e=Mn(e);let{values:t}=e,r=t[0],o=t[1]/100,i=t[2]/100,n=o*Math.min(i,1-i),s=(c,u=(c+r/30)%12)=>i-n*Math.max(Math.min(u-3,9-u,1),-1),a="rgb",l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),hd({type:a,values:l})}function Km(e){e=Mn(e);let t=e.type==="hsl"||e.type==="hsla"?Mn(Gm(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function G_(e,t){let r=Km(e),o=Km(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function Bi(e,t){return e=Mn(e),t=K_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hd(e)}function ks(e,t,r){try{return Bi(e,t)}catch{return e}}function Ga(e,t){if(e=Mn(e),t=K_(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return hd(e)}function Ge(e,t,r){try{return Ga(e,t)}catch{return e}}function Ya(e,t){if(e=Mn(e),t=K_(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return hd(e)}function Ye(e,t,r){try{return Ya(e,t)}catch{return e}}function md(e,t=.15){return Km(e)>.5?Ga(e,t):Ya(e,t)}function yd(e,t,r){try{return md(e,t)}catch{return e}}var oP=_(I(),1);var VR=_(I(),1);var jR=_(I(),1),FF=jR.createContext(null),Ym=FF;var Y_=_(I(),1);function Dn(){return Y_.useContext(Ym)}var HF=typeof Symbol=="function"&&Symbol.for,WR=HF?Symbol.for("mui.nested"):"__THEME_NESTED__";var qR=_(R(),1);function UF(e,t){return typeof t=="function"?t(e):{...e,...t}}function $F(e){let{children:t,theme:r}=e,o=Dn(),i=VR.useMemo(()=>{let n=o===null?{...r}:UF(o,r);return n!=null&&(n[WR]=o!==null),n},[r,o]);return(0,qR.jsx)(Ym.Provider,{value:i,children:t})}var Xm=$F;var Zm=_(I(),1);var KR=_(R(),1),GR=Zm.createContext();function jF({value:e,...t}){return(0,KR.jsx)(GR.Provider,{value:e??!0,...t})}var Bc=()=>Zm.useContext(GR)??!1,YR=jF;var Qm=_(I(),1);var XR=_(R(),1),ZR=Qm.createContext(void 0);function WF({value:e,children:t}){return(0,XR.jsx)(ZR.Provider,{value:e,children:t})}function VF(e){let{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r])return o;let i=t.components[r];return i.defaultProps?Qi(i.defaultProps,o,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Qi(i,o,t.components.mergeClassNameAndStyle):o}function X_({props:e,name:t}){let r=Qm.useContext(ZR);return VF({props:e,name:t,theme:{components:r}})}var Jm=WF;var gd=_(I(),1),QR=0;function qF(e){let[t,r]=gd.useState(e),o=e||t;return gd.useEffect(()=>{t==null&&(QR+=1,r(`mui-${QR}`))},[t]),o}var KF={...gd},JR=KF.useId;function Eo(e){if(JR!==void 0){let t=JR();return e??t}return qF(e)}var eP=_(R(),1);function Z_(e){let t=qa(),r=Eo()||"",{modularCssLayers:o}=e,i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!o||t!==null?i="":typeof o=="string"?i=o.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,fr(()=>{let n=document.querySelector("head");if(!n)return;let s=n.firstChild;if(i){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===r)return;let a=document.createElement("style");a.setAttribute("data-mui-layer-order",r),a.textContent=i,n.prepend(a)}else n.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[i,r]),i?(0,eP.jsx)(kc,{styles:i}):null}var Nc=_(R(),1),tP={};function rP(e,t,r,o=!1){return oP.useMemo(()=>{let i=e&&t[e]||t;if(typeof r=="function"){let n=r(i),s=e?{...t,[e]:n}:n;return o?()=>s:s}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,o])}function GF(e){let{children:t,theme:r,themeId:o}=e,i=qa(tP),n=Dn()||tP,s=rP(o,i,r),a=rP(o,n,r,!0),l=(o?s[o]:s).direction==="rtl",c=Z_(s);return(0,Nc.jsx)(Xm,{theme:a,children:(0,Nc.jsx)(ki.Provider,{value:s,children:(0,Nc.jsx)(YR,{value:l,children:(0,Nc.jsxs)(Jm,{value:o?s[o].components:s.components,children:[c,t]})})})})}var Lc=GF;var iP={theme:void 0};function ey(e){let t,r;return function(i){let n=t;return(n===void 0||i.theme!==r)&&(iP.theme=i.theme,n=dd(e(iP)),t=n,r=i.theme),n}}var Pr=_(I(),1);var nP=_(R(),1),vd="mode",bd="color-scheme",YF="data-color-scheme";function Q_(e){let{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:i=vd,colorSchemeStorageKey:n=bd,attribute:s=YF,colorSchemeNode:a="document.documentElement",nonce:l}=e||{},c="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){let f=u.substring(1);c+=`${a}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
|
|
9
|
+
`).replace(BV,"")}function CB(e,t){return t=BM(t),BM(e)===t}function ot(e,t,r,o,i,n){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||rp(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&rp(e,""+o);break;case"className":Og(e,"class",o);break;case"tabIndex":Og(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Og(e,r,o);break;case"style":SD(e,o,n);break;case"data":if(t!=="object"){Og(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Vg(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(r==="formAction"?(t!=="input"&&ot(e,t,"name",i.name,i,null),ot(e,t,"formEncType",i.formEncType,i,null),ot(e,t,"formMethod",i.formMethod,i,null),ot(e,t,"formTarget",i.formTarget,i,null)):(ot(e,t,"encType",i.encType,i,null),ot(e,t,"method",i.method,i,null),ot(e,t,"target",i.target,i,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=Vg(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=Jn);break;case"onScroll":o!=null&&Me("scroll",e);break;case"onScrollEnd":o!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(U(61));if(r=o.__html,r!=null){if(i.children!=null)throw Error(U(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=Vg(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Wg(e,"popover",o);break;case"xlinkActuate":Vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Vn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Vn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Vn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Vn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Wg(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=uW.get(r)||r,Wg(e,r,o))}}function qx(e,t,r,o,i,n){switch(r){case"style":SD(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(U(61));if(r=o.__html,r!=null){if(i.children!=null)throw Error(U(60));e.innerHTML=r}}break;case"children":typeof o=="string"?rp(e,o):(typeof o=="number"||typeof o=="bigint")&&rp(e,""+o);break;case"onScroll":o!=null&&Me("scroll",e);break;case"onScrollEnd":o!=null&&Me("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mD.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(i=r.endsWith("Capture"),t=r.slice(2,i?r.length-7:void 0),n=e[go]||null,n=n!=null?n[r]:null,typeof n=="function"&&e.removeEventListener(t,n,i),typeof o=="function")){typeof n!="function"&&n!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,i);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):Wg(e,r,o)}}}function Lr(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var o=!1,i=!1,n;for(n in r)if(r.hasOwnProperty(n)){var s=r[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ot(e,t,n,s,r,null)}}i&&ot(e,t,"srcSet",r.srcSet,r,null),o&&ot(e,t,"src",r.src,r,null);return;case"input":Me("invalid",e);var a=n=s=i=null,l=null,c=null;for(o in r)if(r.hasOwnProperty(o)){var u=r[o];if(u!=null)switch(o){case"name":i=u;break;case"type":s=u;break;case"checked":l=u;break;case"defaultChecked":c=u;break;case"value":n=u;break;case"defaultValue":a=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(U(137,t));break;default:ot(e,t,o,u,r,null)}}vD(e,n,a,l,c,s,i,!1);return;case"select":Me("invalid",e),o=s=n=null;for(i in r)if(r.hasOwnProperty(i)&&(a=r[i],a!=null))switch(i){case"value":n=a;break;case"defaultValue":s=a;break;case"multiple":o=a;default:ot(e,t,i,a,r,null)}t=n,r=s,e.multiple=!!o,t!=null?Gu(e,!!o,t,!1):r!=null&&Gu(e,!!o,r,!0);return;case"textarea":Me("invalid",e),n=i=o=null;for(s in r)if(r.hasOwnProperty(s)&&(a=r[s],a!=null))switch(s){case"value":o=a;break;case"defaultValue":i=a;break;case"children":n=a;break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:ot(e,t,s,a,r,null)}_D(e,o,i,n);return;case"option":for(l in r)r.hasOwnProperty(l)&&(o=r[l],o!=null)&&(l==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":ot(e,t,l,o,r,null));return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(o=0;o<Qf.length;o++)Me(Qf[o],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in r)if(r.hasOwnProperty(c)&&(o=r[c],o!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ot(e,t,c,o,r,null)}return;default:if(lT(t)){for(u in r)r.hasOwnProperty(u)&&(o=r[u],o!==void 0&&qx(e,t,u,o,r,void 0));return}}for(a in r)r.hasOwnProperty(a)&&(o=r[a],o!=null&&ot(e,t,a,o,r,null))}function NV(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,n=null,s=null,a=null,l=null,c=null,u=null;for(d in r){var p=r[d];if(r.hasOwnProperty(d)&&p!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":l=p;default:o.hasOwnProperty(d)||ot(e,t,d,null,o,p)}}for(var f in o){var d=o[f];if(p=r[f],o.hasOwnProperty(f)&&(d!=null||p!=null))switch(f){case"type":n=d;break;case"name":i=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":s=d;break;case"defaultValue":a=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(U(137,t));break;default:d!==p&&ot(e,t,f,d,o,p)}}gx(e,s,a,l,c,u,n,i);return;case"select":d=s=a=f=null;for(n in r)if(l=r[n],r.hasOwnProperty(n)&&l!=null)switch(n){case"value":break;case"multiple":d=l;default:o.hasOwnProperty(n)||ot(e,t,n,null,o,l)}for(i in o)if(n=o[i],l=r[i],o.hasOwnProperty(i)&&(n!=null||l!=null))switch(i){case"value":f=n;break;case"defaultValue":a=n;break;case"multiple":s=n;default:n!==l&&ot(e,t,i,n,o,l)}t=a,r=s,o=d,f!=null?Gu(e,!!r,f,!1):!!o!=!!r&&(t!=null?Gu(e,!!r,t,!0):Gu(e,!!r,r?[]:"",!1));return;case"textarea":d=f=null;for(a in r)if(i=r[a],r.hasOwnProperty(a)&&i!=null&&!o.hasOwnProperty(a))switch(a){case"value":break;case"children":break;default:ot(e,t,a,null,o,i)}for(s in o)if(i=o[s],n=r[s],o.hasOwnProperty(s)&&(i!=null||n!=null))switch(s){case"value":f=i;break;case"defaultValue":d=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(U(91));break;default:i!==n&&ot(e,t,s,i,o,n)}bD(e,f,d);return;case"option":for(var h in r)f=r[h],r.hasOwnProperty(h)&&f!=null&&!o.hasOwnProperty(h)&&(h==="selected"?e.selected=!1:ot(e,t,h,null,o,f));for(l in o)f=o[l],d=r[l],o.hasOwnProperty(l)&&f!==d&&(f!=null||d!=null)&&(l==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":ot(e,t,l,f,o,d));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in r)f=r[y],r.hasOwnProperty(y)&&f!=null&&!o.hasOwnProperty(y)&&ot(e,t,y,null,o,f);for(c in o)if(f=o[c],d=r[c],o.hasOwnProperty(c)&&f!==d&&(f!=null||d!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(137,t));break;default:ot(e,t,c,f,o,d)}return;default:if(lT(t)){for(var b in r)f=r[b],r.hasOwnProperty(b)&&f!==void 0&&!o.hasOwnProperty(b)&&qx(e,t,b,void 0,o,f);for(u in o)f=o[u],d=r[u],!o.hasOwnProperty(u)||f===d||f===void 0&&d===void 0||qx(e,t,u,f,o,d);return}}for(var m in r)f=r[m],r.hasOwnProperty(m)&&f!=null&&!o.hasOwnProperty(m)&&ot(e,t,m,null,o,f);for(p in o)f=o[p],d=r[p],!o.hasOwnProperty(p)||f===d||f==null&&d==null||ot(e,t,p,f,o,d)}function NM(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function LV(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),o=0;o<r.length;o++){var i=r[o],n=i.transferSize,s=i.initiatorType,a=i.duration;if(n&&a&&NM(s)){for(s=0,a=i.responseEnd,o+=1;o<r.length;o++){var l=r[o],c=l.startTime;if(c>a)break;var u=l.transferSize,p=l.initiatorType;u&&NM(p)&&(l=l.responseEnd,s+=u*(l<a?1:(a-c)/(l-c)))}if(--o,t+=8*(n+s)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kx=null,Gx=null;function Ev(e){return e.nodeType===9?e:e.ownerDocument}function LM(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wB(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Yx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nx=null;function IV(){var e=window.event;return e&&e.type==="popstate"?e===nx?!1:(nx=e,!0):(nx=null,!1)}var RB=typeof setTimeout=="function"?setTimeout:void 0,zV=typeof clearTimeout=="function"?clearTimeout:void 0,IM=typeof Promise=="function"?Promise:void 0,FV=typeof queueMicrotask=="function"?queueMicrotask:typeof IM<"u"?function(e){return IM.resolve(null).then(e).catch(HV)}:RB;function HV(e){setTimeout(function(){throw e})}function ya(e){return e==="head"}function zM(e,t){var r=t,o=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"||r==="/&"){if(o===0){e.removeChild(i),up(t);return}o--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")o++;else if(r==="html")$f(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,$f(r);for(var n=r.firstChild;n;){var s=n.nextSibling,a=n.nodeName;n[ah]||a==="SCRIPT"||a==="STYLE"||a==="LINK"&&n.rel.toLowerCase()==="stylesheet"||r.removeChild(n),n=s}}else r==="body"&&$f(e.ownerDocument.body);r=i}while(r);up(t)}function FM(e,t){var r=e;e=0;do{var o=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=o}while(r)}function Xx(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Xx(r),aT(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function UV(e,t,r,o){for(;e.nodeType===1;){var i=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ah])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(n!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var n=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;if(e=gi(e.nextSibling),e===null)break}return null}function $V(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=gi(e.nextSibling),e===null))return null;return e}function PB(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=gi(e.nextSibling),e===null))return null;return e}function Zx(e){return e.data==="$?"||e.data==="$~"}function Qx(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function jV(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var o=function(){t(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function gi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jx=null;function HM(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return gi(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function UM(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function EB(e,t,r){switch(t=Ev(r),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function $f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);aT(e)}var vi=new Map,$M=new Set;function kv(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cs=qe.d;qe.d={f:WV,r:VV,D:qV,C:KV,L:GV,m:YV,X:ZV,S:XV,M:QV};function WV(){var e=cs.f(),t=qv();return e||t}function VV(e){var t=dp(e);t!==null&&t.tag===5&&t.type==="form"?SA(t):cs.r(e)}var yp=typeof document>"u"?null:document;function kB(e,t,r){var o=yp;if(o&&typeof t=="string"&&t){var i=fi(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof r=="string"&&(i+='[crossorigin="'+r+'"]'),$M.has(i)||($M.add(i),e={rel:e,crossOrigin:r,href:t},o.querySelector(i)===null&&(t=o.createElement("link"),Lr(t,"link",e),mr(t),o.head.appendChild(t)))}}function qV(e){cs.D(e),kB("dns-prefetch",e,null)}function KV(e,t){cs.C(e,t),kB("preconnect",e,t)}function GV(e,t,r){cs.L(e,t,r);var o=yp;if(o&&e&&t){var i='link[rel="preload"][as="'+fi(t)+'"]';t==="image"&&r&&r.imageSrcSet?(i+='[imagesrcset="'+fi(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(i+='[imagesizes="'+fi(r.imageSizes)+'"]')):i+='[href="'+fi(e)+'"]';var n=i;switch(t){case"style":n=cp(e);break;case"script":n=gp(e)}vi.has(n)||(e=Ct({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),vi.set(n,e),o.querySelector(i)!==null||t==="style"&&o.querySelector(fh(n))||t==="script"&&o.querySelector(hh(n))||(t=o.createElement("link"),Lr(t,"link",e),mr(t),o.head.appendChild(t)))}}function YV(e,t){cs.m(e,t);var r=yp;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+fi(o)+'"][href="'+fi(e)+'"]',n=i;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=gp(e)}if(!vi.has(n)&&(e=Ct({rel:"modulepreload",href:e},t),vi.set(n,e),r.querySelector(i)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(hh(n)))return}o=r.createElement("link"),Lr(o,"link",e),mr(o),r.head.appendChild(o)}}}function XV(e,t,r){cs.S(e,t,r);var o=yp;if(o&&e){var i=Ku(o).hoistableStyles,n=cp(e);t=t||"default";var s=i.get(n);if(!s){var a={loading:0,preload:null};if(s=o.querySelector(fh(n)))a.loading=5;else{e=Ct({rel:"stylesheet",href:e,"data-precedence":t},r),(r=vi.get(n))&&qT(e,r);var l=s=o.createElement("link");mr(l),Lr(l,"link",e),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener("load",function(){a.loading|=1}),l.addEventListener("error",function(){a.loading|=2}),a.loading|=4,tv(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:a},i.set(n,s)}}}function ZV(e,t){cs.X(e,t);var r=yp;if(r&&e){var o=Ku(r).hoistableScripts,i=gp(e),n=o.get(i);n||(n=r.querySelector(hh(i)),n||(e=Ct({src:e,async:!0},t),(t=vi.get(i))&&KT(e,t),n=r.createElement("script"),mr(n),Lr(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(i,n))}}function QV(e,t){cs.M(e,t);var r=yp;if(r&&e){var o=Ku(r).hoistableScripts,i=gp(e),n=o.get(i);n||(n=r.querySelector(hh(i)),n||(e=Ct({src:e,async:!0,type:"module"},t),(t=vi.get(i))&&KT(e,t),n=r.createElement("script"),mr(n),Lr(n,"link",e),r.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(i,n))}}function jM(e,t,r,o){var i=(i=ra.current)?kv(i):null;if(!i)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=cp(r.href),r=Ku(i).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=cp(r.href);var n=Ku(i).hoistableStyles,s=n.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(e,s),(n=i.querySelector(fh(e)))&&!n._p&&(s.instance=n,s.state.loading=5),vi.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},vi.set(e,r),n||JV(i,e,r,s.state))),t&&o===null)throw Error(U(528,""));return s}if(t&&o!==null)throw Error(U(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gp(r),r=Ku(i).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function cp(e){return'href="'+fi(e)+'"'}function fh(e){return'link[rel="stylesheet"]['+e+"]"}function OB(e){return Ct({},e,{"data-precedence":e.precedence,precedence:null})}function JV(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Lr(t,"link",r),mr(t),e.head.appendChild(t))}function gp(e){return'[src="'+fi(e)+'"]'}function hh(e){return"script[async]"+e}function WM(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+fi(r.href)+'"]');if(o)return t.instance=o,mr(o),o;var i=Ct({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),mr(o),Lr(o,"style",i),tv(o,r.precedence,e),t.instance=o;case"stylesheet":i=cp(r.href);var n=e.querySelector(fh(i));if(n)return t.state.loading|=4,t.instance=n,mr(n),n;o=OB(r),(i=vi.get(i))&&qT(o,i),n=(e.ownerDocument||e).createElement("link"),mr(n);var s=n;return s._p=new Promise(function(a,l){s.onload=a,s.onerror=l}),Lr(n,"link",o),t.state.loading|=4,tv(n,r.precedence,e),t.instance=n;case"script":return n=gp(r.src),(i=e.querySelector(hh(n)))?(t.instance=i,mr(i),i):(o=r,(i=vi.get(n))&&(o=Ct({},r),KT(o,i)),e=e.ownerDocument||e,i=e.createElement("script"),mr(i),Lr(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,tv(o,r.precedence,e));return t.instance}function tv(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=o.length?o[o.length-1]:null,n=i,s=0;s<o.length;s++){var a=o[s];if(a.dataset.precedence===t)n=a;else if(n!==i)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function qT(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function KT(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var rv=null;function VM(e,t,r){if(rv===null){var o=new Map,i=rv=new Map;i.set(r,o)}else i=rv,o=i.get(r),o||(o=new Map,i.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),i=0;i<r.length;i++){var n=r[i];if(!(n[ah]||n[Ar]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var s=n.getAttribute(t)||"";s=e+s;var a=o.get(s);a?a.push(n):o.set(s,[n])}}return o}function qM(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function eq(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function MB(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function tq(e,t,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var i=cp(o.href),n=t.querySelector(fh(i));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ov.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=n,mr(n);return}n=t.ownerDocument||t,o=OB(o),(i=vi.get(i))&&qT(o,i),n=n.createElement("link"),mr(n);var s=n;s._p=new Promise(function(a,l){s.onload=a,s.onerror=l}),Lr(n,"link",o),r.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Ov.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var sx=0;function rq(e,t){return e.stylesheets&&e.count===0&&ov(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var o=setTimeout(function(){if(e.stylesheets&&ov(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},6e4+t);0<e.imgBytes&&sx===0&&(sx=62500*LV());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ov(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>sx?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(i)}}:null}function Ov(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ov(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mv=null;function ov(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mv=new Map,t.forEach(oq,e),Mv=null,Ov.call(e))}function oq(e,t){if(!(t.state.loading&4)){var r=Mv.get(e);if(r)var o=r.get(null);else{r=new Map,Mv.set(e,r);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<i.length;n++){var s=i[n];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(r.set(s.dataset.precedence,s),o=s)}o&&r.set(null,o)}i=t.instance,s=i.getAttribute("data-precedence"),n=r.get(s)||o,n===o&&r.set(null,i),r.set(s,i),this.count++,o=Ov.bind(this),i.addEventListener("load",o),i.addEventListener("error",o),n?n.parentNode.insertBefore(i,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var eh={$$typeof:Qn,Provider:null,Consumer:null,_currentValue:Sl,_currentValue2:Sl,_threadCount:0};function iq(e,t,r,o,i,n,s,a,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=DS(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=DS(0),this.hiddenUpdates=DS(null),this.identifierPrefix=o,this.onUncaughtError=i,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function DB(e,t,r,o,i,n,s,a,l,c,u,p){return e=new iq(e,t,r,s,l,c,u,p,a),t=1,n===!0&&(t|=24),n=No(3,null,null,t),e.current=n,n.stateNode=e,t=bT(),t.refCount++,e.pooledCache=t,t.refCount++,n.memoizedState={element:o,isDehydrated:r,cache:t},xT(n),e}function AB(e){return e?(e=ju,e):ju}function BB(e,t,r,o,i,n){i=AB(i),o.context===null?o.context=i:o.pendingContext=i,o=ia(t),o.payload={element:r},n=n===void 0?null:n,n!==null&&(o.callback=n),r=na(e,o,t),r!==null&&(yo(r,e,t),Bf(r,e,t))}function KM(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function GT(e,t){KM(e,t),(e=e.alternate)&&KM(e,t)}function NB(e){if(e.tag===13||e.tag===31){var t=Bl(e,67108864);t!==null&&yo(t,e,67108864),GT(e,67108864)}}function GM(e){if(e.tag===13||e.tag===31){var t=Ho();t=nT(t);var r=Bl(e,t);r!==null&&yo(r,e,t),GT(e,t)}}var Dv=!0;function nq(e,t,r,o){var i=ge.T;ge.T=null;var n=qe.p;try{qe.p=2,YT(e,t,r,o)}finally{qe.p=n,ge.T=i}}function sq(e,t,r,o){var i=ge.T;ge.T=null;var n=qe.p;try{qe.p=8,YT(e,t,r,o)}finally{qe.p=n,ge.T=i}}function YT(e,t,r,o){if(Dv){var i=eT(o);if(i===null)ix(e,t,o,Av,r),YM(e,o);else if(lq(i,e,t,r,o))o.stopPropagation();else if(YM(e,o),t&4&&-1<aq.indexOf(e)){for(;i!==null;){var n=dp(i);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=vl(n.pendingLanes);if(s!==0){var a=n;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-Fo(s);a.entanglements[1]|=l,s&=~l}hn(n),(Ve&6)===0&&(xv=Io()+500,dh(0,!1))}}break;case 31:case 13:a=Bl(n,2),a!==null&&yo(a,n,2),qv(),GT(n,2)}if(n=eT(o),n===null&&ix(e,t,o,Av,r),n===i)break;i=n}i!==null&&o.stopPropagation()}else ix(e,t,o,null,r)}}function eT(e){return e=cT(e),XT(e)}var Av=null;function XT(e){if(Av=null,e=Iu(e),e!==null){var t=oh(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=tD(t),e!==null)return e;e=null}else if(r===31){if(e=rD(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Av=e,null}function LB(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(G7()){case sD:return 2;case aD:return 8;case lv:case Y7:return 32;case lD:return 268435456;default:return 32}default:return 32}}var tT=!1,la=null,ca=null,ua=null,th=new Map,rh=new Map,Xs=[],aq="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function YM(e,t){switch(e){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":ca=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":th.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rh.delete(t.pointerId)}}function Tf(e,t,r,o,i,n){return e===null||e.nativeEvent!==n?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:n,targetContainers:[i]},t!==null&&(t=dp(t),t!==null&&NB(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function lq(e,t,r,o,i){switch(t){case"focusin":return la=Tf(la,e,t,r,o,i),!0;case"dragenter":return ca=Tf(ca,e,t,r,o,i),!0;case"mouseover":return ua=Tf(ua,e,t,r,o,i),!0;case"pointerover":var n=i.pointerId;return th.set(n,Tf(th.get(n)||null,e,t,r,o,i)),!0;case"gotpointercapture":return n=i.pointerId,rh.set(n,Tf(rh.get(n)||null,e,t,r,o,i)),!0}return!1}function IB(e){var t=Iu(e.target);if(t!==null){var r=oh(t);if(r!==null){if(t=r.tag,t===13){if(t=tD(r),t!==null){e.blockedOn=t,DO(e.priority,function(){GM(r)});return}}else if(t===31){if(t=rD(r),t!==null){e.blockedOn=t,DO(e.priority,function(){GM(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function iv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=eT(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);bx=o,r.target.dispatchEvent(o),bx=null}else return t=dp(r),t!==null&&NB(t),e.blockedOn=r,!1;t.shift()}return!0}function XM(e,t,r){iv(e)&&r.delete(t)}function cq(){tT=!1,la!==null&&iv(la)&&(la=null),ca!==null&&iv(ca)&&(ca=null),ua!==null&&iv(ua)&&(ua=null),th.forEach(XM),rh.forEach(XM)}function $g(e,t){e.blockedOn===t&&(e.blockedOn=null,tT||(tT=!0,sr.unstable_scheduleCallback(sr.unstable_NormalPriority,cq)))}var jg=null;function ZM(e){jg!==e&&(jg=e,sr.unstable_scheduleCallback(sr.unstable_NormalPriority,function(){jg===e&&(jg=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],i=e[t+2];if(typeof o!="function"){if(XT(o||r)===null)continue;break}var n=dp(r);n!==null&&(e.splice(t,3),t-=3,Nx(n,{pending:!0,data:i,method:r.method,action:o},o,i))}}))}function up(e){function t(l){return $g(l,e)}la!==null&&$g(la,e),ca!==null&&$g(ca,e),ua!==null&&$g(ua,e),th.forEach(t),rh.forEach(t);for(var r=0;r<Xs.length;r++){var o=Xs[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Xs.length&&(r=Xs[0],r.blockedOn===null);)IB(r),r.blockedOn===null&&Xs.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var i=r[o],n=r[o+1],s=i[go]||null;if(typeof n=="function")s||ZM(r);else if(s){var a=null;if(n&&n.hasAttribute("formAction")){if(i=n,s=n[go]||null)a=s.formAction;else if(XT(i)!==null)continue}else a=s.action;typeof a=="function"?r[o+1]=a:(r.splice(o,3),o-=3),ZM(r)}}}function zB(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return i=s})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),o||setTimeout(r,20)}function r(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function ZT(e){this._internalRoot=e}Yv.prototype.render=ZT.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var r=t.current,o=Ho();BB(r,o,e,t,null,null)};Yv.prototype.unmount=ZT.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;BB(e.current,2,null,e,null,null),qv(),t[pp]=null}};function Yv(e){this._internalRoot=e}Yv.prototype.unstable_scheduleHydration=function(e){if(e){var t=fD();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Xs.length&&t!==0&&t<Xs[r].priority;r++);Xs.splice(r,0,e),r===0&&IB(e)}};var QM=JM.version;if(QM!=="19.2.4")throw Error(U(527,QM,"19.2.4"));qe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=U7(t),e=e!==null?oD(e):null,e=e===null?null:e.stateNode,e};var uq={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Cf=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Cf.isDisabled&&Cf.supportsFiber))try{ih=Cf.inject(uq),zo=Cf}catch{}var Cf;Xv.createRoot=function(e,t){if(!eD(e))throw Error(U(299));var r=!1,o="",i=kA,n=OA,s=MA;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=DB(e,1,!1,null,null,r,o,null,i,n,s,zB),e[pp]=t.current,VT(e),new ZT(t)};Xv.hydrateRoot=function(e,t,r){if(!eD(e))throw Error(U(299));var o=!1,i="",n=kA,s=OA,a=MA,l=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onUncaughtError!==void 0&&(n=r.onUncaughtError),r.onCaughtError!==void 0&&(s=r.onCaughtError),r.onRecoverableError!==void 0&&(a=r.onRecoverableError),r.formState!==void 0&&(l=r.formState)),t=DB(e,1,!0,t,r??null,o,i,l,n,s,a,zB),t.context=AB(null),r=t.current,o=Ho(),o=nT(o),i=ia(o),i.callback=null,na(r,i,o),r=o,t.current.lanes=r,sh(t,r),hn(t),e[pp]=t.current,VT(e),new Yv(t)};Xv.version="19.2.4"});var $B=Gr((SDe,UB)=>{"use strict";function HB(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HB)}catch(e){console.error(e)}}HB(),UB.exports=FB()});var u4={black:"#000",white:"#fff"},lc=u4;var p4={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ba=p4;var d4={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Na=d4;var f4={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},La=f4;var h4={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ia=h4;var m4={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},za=m4;var y4={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},cc=y4;var g4={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},nw=g4;function pr(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>r.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${r} for the full message.`}var Cr="$$material";function Fa(){return Fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Fa.apply(null,arguments)}var Qo=_(I()),Cm=_(I());var B4=!1;function N4(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function L4(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var vw=(function(){function e(r){var o=this;this._insertTag=function(i){var n;o.tags.length===0?o.insertionPoint?n=o.insertionPoint.nextSibling:o.prepend?n=o.container.firstChild:n=o.before:n=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(i,n),o.tags.push(i)},this.isSpeedy=r.speedy===void 0?!B4:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(L4(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var n=N4(i);try{n.insertRule(o,n.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e})();var wr="-ms-",Gp="-moz-",$e="-webkit-",sm="comm",dc="rule",fc="decl";var bw="@import";var am="@keyframes";var _w="@layer";var Sw=Math.abs,Ha=String.fromCharCode,xw=Object.assign;function Tw(e,t){return Vt(e,0)^45?(((t<<2^Vt(e,0))<<2^Vt(e,1))<<2^Vt(e,2))<<2^Vt(e,3):0}function lm(e){return e.trim()}function __(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,r){return e.replace(t,r)}function Yp(e,t){return e.indexOf(t)}function Vt(e,t){return e.charCodeAt(t)|0}function ws(e,t,r){return e.slice(t,r)}function Yr(e){return e.length}function hc(e){return e.length}function mc(e,t){return t.push(e),e}function S_(e,t){return e.map(t).join("")}var cm=1,yc=1,Cw=0,Xr=0,Yt=0,vc="";function Xp(e,t,r,o,i,n,s){return{value:e,root:t,parent:r,type:o,props:i,children:n,line:cm,column:yc,length:s,return:""}}function bc(e,t){return xw(Xp("",null,null,"",null,null,0),e,{length:-e.length},t)}function ww(){return Yt}function Rw(){return Yt=Xr>0?Vt(vc,--Xr):0,yc--,Yt===10&&(yc=1,cm--),Yt}function Zr(){return Yt=Xr<Cw?Vt(vc,Xr++):0,yc++,Yt===10&&(yc=1,cm++),Yt}function Zo(){return Vt(vc,Xr)}function Zp(){return Xr}function _c(e,t){return ws(vc,e,t)}function gc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function um(e){return cm=yc=1,Cw=Yr(vc=e),Xr=0,[]}function pm(e){return vc="",e}function Sc(e){return lm(_c(Xr-1,x_(e===91?e+2:e===40?e+1:e)))}function Pw(e){for(;(Yt=Zo())&&Yt<33;)Zr();return gc(e)>2||gc(Yt)>3?"":" "}function Ew(e,t){for(;--t&&Zr()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return _c(e,Zp()+(t<6&&Zo()==32&&Zr()==32))}function x_(e){for(;Zr();)switch(Yt){case e:return Xr;case 34:case 39:e!==34&&e!==39&&x_(Yt);break;case 40:e===41&&x_(e);break;case 92:Zr();break}return Xr}function kw(e,t){for(;Zr()&&e+Yt!==57;)if(e+Yt===84&&Zo()===47)break;return"/*"+_c(t,Xr-1)+"*"+Ha(e===47?e:Zr())}function Ow(e){for(;!gc(Zo());)Zr();return _c(e,Xr)}function Aw(e){return pm(dm("",null,null,null,[""],e=um(e),0,[0],e))}function dm(e,t,r,o,i,n,s,a,l){for(var c=0,u=0,p=s,f=0,d=0,h=0,y=1,b=1,m=1,g=0,v="",S=i,C=n,w=o,k=v;b;)switch(h=g,g=Zr()){case 40:if(h!=108&&Vt(k,p-1)==58){Yp(k+=ze(Sc(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:k+=Sc(g);break;case 9:case 10:case 13:case 32:k+=Pw(h);break;case 92:k+=Ew(Zp()-1,7);continue;case 47:switch(Zo()){case 42:case 47:mc(I4(kw(Zr(),Zp()),t,r),l);break;default:k+="/"}break;case 123*y:a[c++]=Yr(k)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:m==-1&&(k=ze(k,/\f/g,"")),d>0&&Yr(k)-p&&mc(d>32?Dw(k+";",o,r,p-1):Dw(ze(k," ","")+";",o,r,p-2),l);break;case 59:k+=";";default:if(mc(w=Mw(k,t,r,c,u,i,a,v,S=[],C=[],p),n),g===123)if(u===0)dm(k,t,w,w,S,n,p,a,C);else switch(f===99&&Vt(k,3)===110?100:f){case 100:case 108:case 109:case 115:dm(e,w,w,o&&mc(Mw(e,w,w,0,0,i,a,v,i,S=[],p),C),i,C,p,a,o?S:C);break;default:dm(k,w,w,w,[""],C,0,a,C)}}c=u=d=0,y=m=1,v=k="",p=s;break;case 58:p=1+Yr(k),d=h;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&Rw()==125)continue}switch(k+=Ha(g),g*y){case 38:m=u>0?1:(k+="\f",-1);break;case 44:a[c++]=(Yr(k)-1)*m,m=1;break;case 64:Zo()===45&&(k+=Sc(Zr())),f=Zo(),u=p=Yr(v=k+=Ow(Zp())),g++;break;case 45:h===45&&Yr(k)==2&&(y=0)}}return n}function Mw(e,t,r,o,i,n,s,a,l,c,u){for(var p=i-1,f=i===0?n:[""],d=hc(f),h=0,y=0,b=0;h<o;++h)for(var m=0,g=ws(e,p+1,p=Sw(y=s[h])),v=e;m<d;++m)(v=lm(y>0?f[m]+" "+g:ze(g,/&\f/g,f[m])))&&(l[b++]=v);return Xp(e,t,r,i===0?dc:a,l,c,u)}function I4(e,t,r){return Xp(e,t,r,sm,Ha(ww()),ws(e,2,-2),0)}function Dw(e,t,r,o){return Xp(e,t,r,fc,ws(e,0,o),ws(e,o+1,-1),o)}function Ua(e,t){for(var r="",o=hc(e),i=0;i<o;i++)r+=t(e[i],i,e,t)||"";return r}function Bw(e,t,r,o){switch(e.type){case _w:if(e.children.length)break;case bw:case fc:return e.return=e.return||e.value;case sm:return"";case am:return e.return=e.value+"{"+Ua(e.children,o)+"}";case dc:e.value=e.props.join(",")}return Yr(r=Ua(e.children,o))?e.return=e.value+"{"+r+"}":""}function Nw(e){var t=hc(e);return function(r,o,i,n){for(var s="",a=0;a<t;a++)s+=e[a](r,o,i,n)||"";return s}}function Lw(e){return function(t){t.root||(t=t.return)&&e(t)}}function fm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var z4=function(t,r,o){for(var i=0,n=0;i=n,n=Zo(),i===38&&n===12&&(r[o]=1),!gc(n);)Zr();return _c(t,Xr)},F4=function(t,r){var o=-1,i=44;do switch(gc(i)){case 0:i===38&&Zo()===12&&(r[o]=1),t[o]+=z4(Xr-1,r,o);break;case 2:t[o]+=Sc(i);break;case 4:if(i===44){t[++o]=Zo()===58?"&\f":"",r[o]=t[o].length;break}default:t[o]+=Ha(i)}while(i=Zr());return t},H4=function(t,r){return pm(F4(um(t),r))},Iw=new WeakMap,U4=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,o=t.parent,i=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Iw.get(o))&&!i){Iw.set(t,!0);for(var n=[],s=H4(r,n),a=o.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=n[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},$4=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zw(e,t){switch(Tw(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Gp+e+wr+e+e;case 6828:case 4268:return $e+e+wr+e+e;case 6165:return $e+e+wr+"flex-"+e+e;case 5187:return $e+e+ze(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+wr+"flex-$1$2")+e;case 5443:return $e+e+wr+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return $e+e+wr+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+wr+ze(e,"shrink","negative")+e;case 5292:return $e+e+wr+ze(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+ze(e,"-grow","")+$e+e+wr+ze(e,"grow","positive")+e;case 4554:return $e+ze(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+wr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Yr(e)-1-t>6)switch(Vt(e,t+1)){case 109:if(Vt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+Gp+(Vt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yp(e,"stretch")?zw(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vt(e,t+1)!==115)break;case 6444:switch(Vt(e,Yr(e)-3-(~Yp(e,"!important")&&10))){case 107:return ze(e,":",":"+$e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(Vt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+wr+"$2box$3")+e}break;case 5936:switch(Vt(e,t+11)){case 114:return $e+e+wr+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+wr+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+wr+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+wr+e+e}return e}var j4=function(t,r,o,i){if(t.length>-1&&!t.return)switch(t.type){case fc:t.return=zw(t.value,t.length);break;case am:return Ua([bc(t,{value:ze(t.value,"@","@"+$e)})],i);case dc:if(t.length)return S_(t.props,function(n){switch(__(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ua([bc(t,{props:[ze(n,/:(read-\w+)/,":"+Gp+"$1")]})],i);case"::placeholder":return Ua([bc(t,{props:[ze(n,/:(plac\w+)/,":"+$e+"input-$1")]}),bc(t,{props:[ze(n,/:(plac\w+)/,":"+Gp+"$1")]}),bc(t,{props:[ze(n,/:(plac\w+)/,wr+"input-$1")]})],i)}return""})}},W4=[j4],Fw=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||W4,n={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),m=1;m<b.length;m++)n[b[m]]=!0;a.push(y)});var l,c=[U4,$4];{var u,p=[Bw,Lw(function(y){u.insert(y)})],f=Nw(c.concat(i,p)),d=function(b){return Ua(Aw(b),f)};l=function(b,m,g,v){u=g,d(b?b+"{"+m.styles+"}":m.styles),v&&(h.inserted[m.name]=!0)}}var h={key:r,sheet:new vw({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:n,registered:{},insert:l};return h.sheet.hydrate(a),h};var o6=!0;function Qp(e,t,r){var o="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}var xc=function(t,r,o){var i=t.key+"-"+r.name;(o===!1||o6===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},Tc=function(t,r,o){xc(t,r,o);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var n=r;do t.insert(r===n?"."+i:"",n,t.sheet,!0),n=n.next;while(n!==void 0)}};function Zw(e){for(var t=0,r,o=0,i=e.length;i>=4;++o,i-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qw={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};var i6=!1,n6=/[A-Z]|^ms/g,s6=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rR=function(t){return t.charCodeAt(1)===45},Jw=function(t){return t!=null&&typeof t!="boolean"},E_=fm(function(e){return rR(e)?e:e.replace(n6,"-$&").toLowerCase()}),eR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(s6,function(o,i,n){return Gi={name:i,styles:n,next:Gi},i})}return Qw[t]!==1&&!rR(t)&&typeof r=="number"&&r!==0?r+"px":r},a6="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Jp(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Gi={name:i.name,styles:i.styles,next:Gi},i.name;var n=r;if(n.styles!==void 0){var s=n.next;if(s!==void 0)for(;s!==void 0;)Gi={name:s.name,styles:s.styles,next:Gi},s=s.next;var a=n.styles+";";return a}return l6(e,t,r)}case"function":{if(e!==void 0){var l=Gi,c=r(e);return Gi=l,Jp(e,t,c)}break}}var u=r;if(t==null)return u;var p=t[u];return p!==void 0?p:u}function l6(e,t,r){var o="";if(Array.isArray(r))for(var i=0;i<r.length;i++)o+=Jp(e,t,r[i])+";";else for(var n in r){var s=r[n];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?o+=n+"{"+t[a]+"}":Jw(a)&&(o+=E_(n)+":"+eR(n,a)+";")}else{if(n==="NO_COMPONENT_SELECTOR"&&i6)throw new Error(a6);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Jw(s[l])&&(o+=E_(n)+":"+eR(n,s[l])+";");else{var c=Jp(e,t,s);switch(n){case"animation":case"animationName":{o+=E_(n)+":"+c+";";break}default:o+=n+"{"+c+"}"}}}}return o}var tR=/label:\s*([^\s;{]+)\s*(;|$)/g,Gi;function Pn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";Gi=void 0;var n=e[0];if(n==null||n.raw===void 0)o=!1,i+=Jp(r,t,n);else{var s=n;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=Jp(r,t,e[a]),o){var l=n;i+=l[a]}tR.lastIndex=0;for(var c="",u;(u=tR.exec(i))!==null;)c+="-"+u[1];var p=Zw(i)+c;return{name:p,styles:i,next:Gi}}var ed=_(I()),c6=function(t){return t()},oR=ed.useInsertionEffect?ed.useInsertionEffect:!1,td=oR||c6,k_=oR||ed.useLayoutEffect;var iR=!1,nR=Qo.createContext(typeof HTMLElement<"u"?Fw({key:"css"}):null),u6=nR.Provider;var Cc=function(t){return(0,Cm.forwardRef)(function(r,o){var i=(0,Cm.useContext)(nR);return t(r,i,o)})},ki=Qo.createContext({});var wm={}.hasOwnProperty,O_="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",sR=function(t,r){var o={};for(var i in r)wm.call(r,i)&&(o[i]=r[i]);return o[O_]=t,o},p6=function(t){var r=t.cache,o=t.serialized,i=t.isStringTag;return xc(r,o,i),td(function(){return Tc(r,o,i)}),null},d6=Cc(function(e,t,r){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var i=e[O_],n=[o],s="";typeof e.className=="string"?s=Qp(t.registered,n,e.className):e.className!=null&&(s=e.className+" ");var a=Pn(n,void 0,Qo.useContext(ki));s+=t.key+"-"+a.name;var l={};for(var c in e)wm.call(e,c)&&c!=="css"&&c!==O_&&!iR&&(l[c]=e[c]);return l.className=s,r&&(l.ref=r),Qo.createElement(Qo.Fragment,null,Qo.createElement(p6,{cache:t,serialized:a,isStringTag:typeof i=="string"}),Qo.createElement(i,l))}),aR=d6;var Rs=_(I());var Ree=_(Xw()),lR=function(t,r){var o=arguments;if(r==null||!wm.call(r,"css"))return Rs.createElement.apply(void 0,o);var i=o.length,n=new Array(i);n[0]=aR,n[1]=sR(t,r);for(var s=2;s<i;s++)n[s]=o[s];return Rs.createElement.apply(null,n)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(lR||(lR={}));var cR=Cc(function(e,t){var r=e.styles,o=Pn([r],void 0,Rs.useContext(ki)),i=Rs.useRef();return k_(function(){var n=t.key+"-global",s=new t.sheet.constructor({key:n,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+n+" "+o.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",n),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),k_(function(){var n=i.current,s=n[0],a=n[1];if(a){n[1]=!1;return}if(o.next!==void 0&&Tc(t,o.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",o,s,!1)},[t,o.name]),null});function Ps(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Pn(t)}function Oi(){var e=Ps.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Es=_(I());var f6=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,uR=fm(function(e){return f6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var h6=!1,m6=uR,y6=function(t){return t!=="theme"},pR=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?m6:y6},dR=function(t,r,o){var i;if(r){var n=r.shouldForwardProp;i=t.__emotion_forwardProp&&n?function(s){return t.__emotion_forwardProp(s)&&n(s)}:n}return typeof i!="function"&&o&&(i=t.__emotion_forwardProp),i},g6=function(t){var r=t.cache,o=t.serialized,i=t.isStringTag;return xc(r,o,i),td(function(){return Tc(r,o,i)}),null},fR=function e(t,r){var o=t.__emotion_real===t,i=o&&t.__emotion_base||t,n,s;r!==void 0&&(n=r.label,s=r.target);var a=dR(t,r,o),l=a||pR(i),c=!l("as");return function(){var u=arguments,p=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(n!==void 0&&p.push("label:"+n+";"),u[0]==null||u[0].raw===void 0)p.push.apply(p,u);else{var f=u[0];p.push(f[0]);for(var d=u.length,h=1;h<d;h++)p.push(u[h],f[h])}var y=Cc(function(b,m,g){var v=c&&b.as||i,S="",C=[],w=b;if(b.theme==null){w={};for(var k in b)w[k]=b[k];w.theme=Es.useContext(ki)}typeof b.className=="string"?S=Qp(m.registered,C,b.className):b.className!=null&&(S=b.className+" ");var O=Pn(p.concat(C),m.registered,w);S+=m.key+"-"+O.name,s!==void 0&&(S+=" "+s);var A=c&&a===void 0?pR(v):l,B={};for(var M in b)c&&M==="as"||A(M)&&(B[M]=b[M]);return B.className=S,g&&(B.ref=g),Es.createElement(Es.Fragment,null,Es.createElement(g6,{cache:m,serialized:O,isStringTag:typeof v=="string"}),Es.createElement(v,B))});return y.displayName=n!==void 0?n:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=p,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return s===void 0&&h6?"NO_COMPONENT_SELECTOR":"."+s}}),y.withComponent=function(b,m){var g=e(b,Fa({},r,m,{shouldForwardProp:dR(y,m,!0)}));return g.apply(void 0,p)},y}};var jee=_(I());var v6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Rm=fR.bind(null);v6.forEach(function(e){Rm[e]=Rm(e)});var gR=_(R(),1);function S6(e){return e==null||Object.keys(e).length===0}function $a(e){let{styles:t,defaultTheme:r={}}=e;return(0,gR.jsx)(cR,{styles:typeof t=="function"?i=>t(S6(i)?r:i):t})}function rd(e,t){return Rm(e,t)}function bR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var vR=[];function Mi(e){return vR[0]=e,Pn(vR)}var A_=_(I(),1),B_=_(xR(),1);function Di(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TR(e){if(A_.isValidElement(e)||(0,B_.isValidElementType)(e)||!Di(e))return e;let t={};return Object.keys(e).forEach(r=>{t[r]=TR(e[r])}),t}function Ke(e,t,r={clone:!0}){let o=r.clone?{...e}:e;return Di(e)&&Di(t)&&Object.keys(t).forEach(i=>{A_.isValidElement(t[i])||(0,B_.isValidElementType)(t[i])?o[i]=t[i]:Di(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Di(e[i])?o[i]=Ke(e[i],t[i],r):r.clone?o[i]=Di(t[i])?TR(t[i]):t[i]:o[i]=t[i]}),o}var C6=e=>{let t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,o)=>r.val-o.val),t.reduce((r,o)=>({...r,[o.key]:o.val}),{})};function od(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5,...i}=e,n=C6(t),s=Object.keys(n);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-o/100}${r})`}function c(d,h){let y=s.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:h)-o/100}${r})`}function u(d){return s.indexOf(d)+1<s.length?c(d,s[s.indexOf(d)+1]):a(d)}function p(d){let h=s.indexOf(d);return h===0?a(s[1]):h===s.length-1?l(s[h]):c(d,s[s.indexOf(d)+1]).replace("@media","@media not all and")}let f=[];for(let d=0;d<s.length;d+=1)f.push(a(s[d]));return{keys:s,values:n,up:a,down:l,between:c,only:u,not:p,unit:r,internal_mediaKeys:f,...i}}var CR=/min-width:\s*([0-9.]+)/;function zm(e,t){if(!e.containerQueries||!w6(t))return t;let r=[];for(let i in t)i.startsWith("@container")&&r.push(i);r.sort((i,n)=>+(i.match(CR)?.[1]||0)-+(n.match(CR)?.[1]||0));let o=t;for(let i=0;i<r.length;i+=1){let n=r[i],s=o[n];delete o[n],o[n]=s}return o}function w6(e){for(let t in e)if(t.startsWith("@container"))return!0;return!1}function Fm(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function N_(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,o,i]=r,n=Number.isNaN(+o)?o||0:+o;return e.containerQueries(i).up(n)}function Hm(e){let t=(n,s)=>n.replace("@media",s?`@container ${s}`:"@container");function r(n,s){n.up=(...a)=>t(e.breakpoints.up(...a),s),n.down=(...a)=>t(e.breakpoints.down(...a),s),n.between=(...a)=>t(e.breakpoints.between(...a),s),n.only=(...a)=>t(e.breakpoints.only(...a),s),n.not=(...a)=>{let l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}let o={},i=n=>(r(o,n),o);return r(i),{...e,containerQueries:i}}var R6={borderRadius:4},wR=R6;function wc(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Yi(e,t){let r=Array.isArray(t),o=Array.isArray(e);return M6(t)?t:D6(e)?Rc(t):r&&o?k6(e,t):r!==o?Rc(t):A6(e,t)}function P6(e){let t=0,r=e.length,o=new Array(r);for(t=0;t<r;t+=1)o[t]=Rc(e[t]);return o}function E6(e){let t={};for(let r in e)t[r]=Rc(e[r]);return t}function k6(e,t){let r=e.length;for(let o=0;o<t.length;o+=1)e[r+o]=Rc(t[o]);return e}function O6(e){return typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Date)}function M6(e){return typeof e!="object"||e===null}function D6(e){return typeof e!="object"||e===null||e instanceof RegExp||e instanceof Date}function Rc(e){return O6(e)?Array.isArray(e)?P6(e):E6(e):e}function A6(e,t){for(let r in t)r in e?e[r]=Yi(e[r],t[r]):e[r]=Rc(t[r]);return e}var B6={},nd={xs:0,sm:600,md:900,lg:1200,xl:1536},id=od({values:nd}),N6={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:nd[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function wo(e,t,r){let o={};return Pc(o,e.theme,t,(i,n,s)=>{let a=r(n,s);i?o[i]=a:Yi(o,a)})}function Pc(e,t,r,o){if(t??(t=B6),Array.isArray(r)){let i=t.breakpoints??id;for(let n=0;n<r.length;n+=1)L_(e,i.up(i.keys[n]),r[n],void 0,o);return e}if(typeof r=="object"){let i=t.breakpoints??id,n=i.values??nd;for(let s in r)if(Fm(i.keys,s)){let a=N_(t.containerQueries?t:N6,s);a&&L_(e,a,r[s],s,o)}else if(s in n){let a=i.up(s);L_(e,a,r[s],s,o)}else{let a=s;e[a]=r[a]}return e}return o(void 0,r),e}function L_(e,t,r,o,i){e[t]??(e[t]={}),i(t,r,o)}function I_(e=id){let{internal_mediaKeys:t}=e,r={};for(let o=0;o<t.length;o+=1)r[t[o]]={};return r}function Um(e,t){let r=e.internal_mediaKeys;for(let o=0;o<r.length;o+=1){let i=r[o];wc(t[i])&&delete t[i]}return t}function RR(e,...t){let o=[I_(e),...t].reduce((i,n)=>Ke(i,n),{});return Um(e,o)}function L6(e,t){if(typeof e!="object")return{};let r={},o=Object.keys(t);return Array.isArray(e)?o.forEach((i,n)=>{n<e.length&&(r[i]=!0)}):o.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function $m({values:e,breakpoints:t,base:r}){let o=r||L6(e,t),i=Object.keys(o);if(i.length===0)return e;let n;return i.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[n],n=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[n],n=a):s[a]=e,s),{})}function PR(e,t){if(Array.isArray(t))return!0;if(typeof t=="object"&&t!==null){for(let o=0;o<e.keys.length;o+=1)if(e.keys[o]in t)return!0;let r=Object.keys(t);for(let o=0;o<r.length;o+=1)if(Fm(e.keys,r[o]))return!0}return!1}function En(e){if(typeof e!="string")throw new Error(pr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function z_(e,t,r,o){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||r:typeof r=="string"?i=Ro(e,r,!0,o)||r:i=r,t&&(i=t(i,r,e)),i}function Ro(e,t,r=!0,o=void 0){if(!e||!t)return null;let i=t.split(".");if(e.vars&&r){let n=ER(e.vars,i,o);if(n!=null)return n}return ER(e,i,o)}function ER(e,t,r=void 0){let o,i=e,n=0;for(;n<t.length;){if(i==null)return i;o=i,i=i[t[n]],n+=1}if(r&&i===void 0){let s=t[t.length-1],a=`${r}${s==="default"?"":En(s)}`;return o?.[a]}return i}function lt(e){let{prop:t,cssProperty:r=e.prop,themeKey:o,transform:i}=e,n=s=>{if(s[t]==null)return null;let a=s[t],l=s.theme,c=Ro(l,o)||{};return wo(s,a,p=>{let f=z_(c,i,p,t);return r===!1?f:{[r]:f}})};return n.propTypes={},n.filterProps=[t],n}var I6={internal_cache:{}},jm={m:"margin",p:"padding"},kR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},OR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sd={};for(let e in jm)sd[e]=[jm[e]];for(let e in jm)for(let t in kR){let r=jm[e],o=kR[t],i=Array.isArray(o)?o.map(n=>r+n):[r+o];sd[e+t]=i}for(let e in OR)sd[e]=sd[OR[e]];var F_=new Set(["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"]),H_=new Set(["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"]),DR=new Set([...F_,...H_]);function ja(e,t,r,o){let i=Ro(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?n=>typeof n=="string"?n:typeof i=="string"?i.startsWith("var(")&&n===0?0:i.startsWith("var(")&&n===1?i:`calc(${n} * ${i})`:i*n:Array.isArray(i)?n=>{if(typeof n=="string")return n;let s=Math.abs(n),a=i[s];return n>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof i=="function"?i:()=>{}}function Wa(e){return ja(e,"spacing",8,"spacing")}function Xi(e,t){return typeof t=="string"||t==null?t:e(t)}var MR=[""];function U_(e,t){let r=e.theme??I6,o=r?.internal_cache?.unarySpacing??Wa(r),i={};for(let n in e){if(!t.has(n))continue;let s=sd[n]??(MR[0]=n,MR),a=e[n];Pc(i,e.theme,a,(l,c)=>{let u=l?i[l]:i;for(let p=0;p<s.length;p+=1)u[s[p]]=Xi(o,c)})}return i}function Mt(e){return U_(e,F_)}Mt.propTypes={};Mt.filterProps=F_;function Dt(e){return U_(e,H_)}Dt.propTypes={};Dt.filterProps=H_;function AR(e){return U_(e,DR)}AR.propTypes={};AR.filterProps=DR;function Ec(e=8,t=Wa({spacing:e})){if(e.mui)return e;let r=(...o)=>(o.length===0?[1]:o).map(n=>{let s=t(n);return typeof s=="number"?`${s}px`:s}).join(" ");return r.mui=!0,r}function z6(...e){let t=e.reduce((o,i)=>(i.filterProps.forEach(n=>{o[n]=i}),o),{}),r=o=>{let i={};for(let n in o)t[n]&&Yi(i,t[n](o));return i};return r.propTypes={},r.filterProps=e.reduce((o,i)=>o.concat(i.filterProps),[]),r}var kn=z6;function Po(e){return typeof e!="number"?e:`${e}px solid`}function ei(e,t){return lt({prop:e,themeKey:"borders",transform:t})}var F6=ei("border",Po),H6=ei("borderTop",Po),U6=ei("borderRight",Po),$6=ei("borderBottom",Po),j6=ei("borderLeft",Po),W6=ei("borderColor"),V6=ei("borderTopColor"),q6=ei("borderRightColor"),K6=ei("borderBottomColor"),G6=ei("borderLeftColor"),Y6=ei("outline",Po),X6=ei("outlineColor"),ad=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ja(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Xi(t,o)});return wo(e,e.borderRadius,r)}return null};ad.propTypes={};ad.filterProps=["borderRadius"];var Xte=kn(F6,H6,U6,$6,j6,W6,V6,q6,K6,G6,ad,Y6,X6);var ld=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ja(e.theme,"spacing",8,"gap"),r=o=>({gap:Xi(t,o)});return wo(e,e.gap,r)}return null};ld.propTypes={};ld.filterProps=["gap"];var cd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ja(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Xi(t,o)});return wo(e,e.columnGap,r)}return null};cd.propTypes={};cd.filterProps=["columnGap"];var ud=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ja(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Xi(t,o)});return wo(e,e.rowGap,r)}return null};ud.propTypes={};ud.filterProps=["rowGap"];var Z6=lt({prop:"gridColumn"}),Q6=lt({prop:"gridRow"}),J6=lt({prop:"gridAutoFlow"}),eF=lt({prop:"gridAutoColumns"}),tF=lt({prop:"gridAutoRows"}),rF=lt({prop:"gridTemplateColumns"}),oF=lt({prop:"gridTemplateRows"}),iF=lt({prop:"gridTemplateAreas"}),nF=lt({prop:"gridArea"}),rre=kn(ld,cd,ud,Z6,Q6,J6,eF,tF,rF,oF,iF,nF);function Va(e,t){return t==="grey"?t:e}var sF=lt({prop:"color",themeKey:"palette",transform:Va}),aF=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Va}),lF=lt({prop:"backgroundColor",themeKey:"palette",transform:Va}),sre=kn(sF,aF,lF);function so(e){return e<=1&&e!==0?`${e*100}%`:e}var cF=lt({prop:"width",transform:so}),Wm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let t=r=>{let o=e.theme?.breakpoints?.values?.[r]||nd[r];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:so(r)}};return wo(e,e.maxWidth,t)}return null};Wm.filterProps=["maxWidth"];var uF=lt({prop:"minWidth",transform:so}),pF=lt({prop:"height",transform:so}),dF=lt({prop:"maxHeight",transform:so}),fF=lt({prop:"minHeight",transform:so}),pre=lt({prop:"size",cssProperty:"width",transform:so}),dre=lt({prop:"size",cssProperty:"height",transform:so}),hF=lt({prop:"boxSizing"}),fre=kn(cF,Wm,uF,pF,dF,fF,hF);var mF={border:{themeKey:"borders",transform:Po},borderTop:{themeKey:"borders",transform:Po},borderRight:{themeKey:"borders",transform:Po},borderBottom:{themeKey:"borders",transform:Po},borderLeft:{themeKey:"borders",transform:Po},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Po},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ad},color:{themeKey:"palette",transform:Va},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Va},backgroundColor:{themeKey:"palette",transform:Va},p:{style:Dt},pt:{style:Dt},pr:{style:Dt},pb:{style:Dt},pl:{style:Dt},px:{style:Dt},py:{style:Dt},padding:{style:Dt},paddingTop:{style:Dt},paddingRight:{style:Dt},paddingBottom:{style:Dt},paddingLeft:{style:Dt},paddingX:{style:Dt},paddingY:{style:Dt},paddingInline:{style:Dt},paddingInlineStart:{style:Dt},paddingInlineEnd:{style:Dt},paddingBlock:{style:Dt},paddingBlockStart:{style:Dt},paddingBlockEnd:{style:Dt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:ld},rowGap:{style:ud},columnGap:{style:cd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:so},maxWidth:{style:Wm},minWidth:{transform:so},height:{transform:so},maxHeight:{transform:so},minHeight:{transform:so},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"}},On=mF;var yF={};function gF(){function e(t){if(!t.sx)return null;let{sx:r,theme:o=yF,nested:i}=t,n=o.unstable_sxConfig??On,s={sx:null,theme:o,nested:!0};function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;let u=o.breakpoints??id,p=I_(u);for(let f in c){let d=vF(c[f],o);if(d!=null){if(typeof d!="object"){BR(p,f,d,o,n);continue}if(n[f]){BR(p,f,d,o,n);continue}PR(u,d)?Pc(p,t.theme,d,(h,y)=>{p[h][f]=y}):(s.sx=d,p[f]=e(s))}}return!i&&o.modularCssLayers?{"@layer sx":zm(o,Um(u,p))}:zm(o,Um(u,p))}return Array.isArray(r)?r.map(a):a(r)}return e.filterProps=["sx"],e}var ao=gF();function BR(e,t,r,o,i){let n=i[t];if(!n){e[t]=r;return}if(r==null)return;let{themeKey:s}=n;if(s==="typography"&&r==="inherit"){e[t]=r;return}let{style:a}=n;if(a){Yi(e,a({[t]:r,theme:o}));return}let{cssProperty:l=t,transform:c}=n,u=Ro(o,s);Pc(e,o,r,(p,f)=>{let d=z_(u,c,f,t);l===!1?p?e[p]=d:Yi(e,d):p?e[p][l]=d:e[l]=d})}function vF(e,t){return typeof e=="function"?e(t):e}function $_(e,t){let r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function bF(e={},...t){let{breakpoints:r={},palette:o={},spacing:i,shape:n={},...s}=e,a=od(r),l=Ec(i),c=Ke({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l,shape:{...wR,...n}},s);return c=Hm(c),c.applyStyles=$_,c=t.reduce((u,p)=>Ke(u,p),c),c.unstable_sxConfig={...On,...s?.unstable_sxConfig},c.unstable_sx=function(p){return ao({sx:p,theme:this})},c.internal_cache={},c}var Ai=bF;var NR=_(I(),1);function _F(e){return Object.keys(e).length===0}function SF(e=null){let t=NR.useContext(ki);return!t||_F(t)?e:t}var qa=SF;var xF=Ai();function TF(e=xF){return qa(e)}var Zi=TF;var LR=_(R(),1);function j_(e){let t=Mi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function CF({styles:e,themeId:t,defaultTheme:r={}}){let o=Zi(r),i=t&&o[t]||o,n=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(n)?n=n.map(s=>j_(typeof s=="function"?s(i):s)):n=j_(n)),(0,LR.jsx)($a,{styles:n})}var kc=CF;var IR=e=>e,wF=()=>{let e=IR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=IR}}},RF=wF(),Oc=RF;var FR=_(I(),1);function zR(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=zR(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function PF(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=zR(e))&&(o&&(o+=" "),o+=t);return o}var H=PF;var HR=_(R(),1);function pd(e={}){let{themeId:t,defaultTheme:r,defaultClassName:o="MuiBox-root",generateClassName:i}=e,n=rd("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(ao);return FR.forwardRef(function(l,c){let u=Zi(r),{className:p,component:f="div",...d}=l;return(0,HR.jsx)(n,{as:f,ref:c,className:H(p,i?i(o):o),theme:t&&u[t]||u,...d})})}var EF={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 W(e,t,r="Mui"){let o=EF[t];return o?`${r}-${o}`:`${Oc.generate(e)}-${t}`}function j(e,t,r="Mui"){let o={};return t.forEach(i=>{o[i]=W(e,i,r)}),o}function dd(e){let{variants:t,...r}=e,o={variants:t,style:Mi(r),isProcessed:!0};return o.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Mi(i.style))}),o}var kF=Ai();function W_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ka(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function OF(e){return e?(t,r)=>r[e]:null}function MF(e,t,r){e.theme=wc(e.theme)?r:e.theme[t]||e.theme}function Vm(e,t,r){let o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(i=>Vm(e,i,r));if(Array.isArray(o?.variants)){let i;if(o.isProcessed)i=r?Ka(o.style,r):o.style;else{let{variants:n,...s}=o;i=r?Ka(Mi(s),r):s}return UR(e,o.variants,[i],r)}return o?.isProcessed?r?Ka(Mi(o.style),r):o.style:r?Ka(Mi(o),r):o}function UR(e,t,r=[],o=void 0){let i;e:for(let n=0;n<t.length;n+=1){let s=t[n];if(typeof s.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(i))continue}else for(let a in s.props)if(e[a]!==s.props[a]&&e.ownerState?.[a]!==s.props[a])continue e;typeof s.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(o?Ka(Mi(s.style(i)),o):s.style(i))):r.push(o?Ka(Mi(s.style),o):s.style)}return r}function Mc(e={}){let{themeId:t,defaultTheme:r=kF,rootShouldForwardProp:o=W_,slotShouldForwardProp:i=W_}=e;function n(a){MF(a,t,r)}return(a,l={})=>{bR(a,w=>w.filter(k=>k!==ao));let{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:d=OF(BF(u)),...h}=l,y=c&&c.startsWith("Mui")||u?"components":"custom",b=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,m=f||!1,g=W_;u==="Root"||u==="root"?g=o:u?g=i:AF(a)&&(g=void 0);let v=rd(a,{shouldForwardProp:g,label:DF(c,u),...h}),S=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(O){return Vm(O,w,O.theme.modularCssLayers?y:void 0)};if(Di(w)){let k=dd(w);return function(A){return k.variants?Vm(A,k,A.theme.modularCssLayers?y:void 0):A.theme.modularCssLayers?Ka(k.style,y):k.style}}return w},C=(...w)=>{let k=[],O=w.map(S),A=[];if(k.push(n),c&&d&&A.push(function(P){let E=P.theme.components?.[c]?.styleOverrides;if(!E)return null;let D={};for(let z in E)D[z]=Vm(P,E[z],P.theme.modularCssLayers?"theme":void 0);return d(P,D)}),c&&!b&&A.push(function(P){let E=P.theme?.components?.[c]?.variants;return E?UR(P,E,[],P.theme.modularCssLayers?"theme":void 0):null}),m||A.push(ao),Array.isArray(O[0])){let x=O.shift(),P=new Array(k.length).fill(""),T=new Array(A.length).fill(""),E;E=[...P,...x,...T],E.raw=[...P,...x.raw,...T],k.unshift(E)}let B=[...k,...O,...A],M=v(...B);return a.muiName&&(M.muiName=a.muiName),M};return v.withConfig&&(C.withConfig=v.withConfig),C}}function DF(e,t){return void 0}function AF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function BF(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var NF=Mc(),fd=NF;function Qi(e,t,r=!1){let o={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let n=i;if(n==="components"||n==="slots")o[n]={...e[n],...o[n]};else if(n==="componentsProps"||n==="slotProps"){let s=e[n],a=t[n];if(!a)o[n]=s||{};else if(!s)o[n]=a;else{o[n]={...a};for(let l in s)if(Object.prototype.hasOwnProperty.call(s,l)){let c=l;o[n][c]=Qi(s[c],a[c],r)}}}else n==="className"&&r&&t.className?o.className=H(e?.className,t?.className):n==="style"&&r&&t.style?o.style={...e?.style,...t?.style}:o[n]===void 0&&(o[n]=e[n])}return o}function V_(e){let{theme:t,name:r,props:o}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?o:Qi(t.components[r].defaultProps,o)}function Dc({props:e,name:t,defaultTheme:r,themeId:o}){let i=Zi(r);return o&&(i=i[o]||i),V_({theme:i,name:t,props:e})}var qm=_(I(),1),LF=typeof window<"u"?qm.useLayoutEffect:qm.useEffect,fr=LF;function IF(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var q_=IF;function K_(e,t=0,r=1){return q_(e,t,r)}function $R(e){e=e.slice(1);let t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(o=>o+o)),r?`rgb${r.length===4?"a":""}(${r.map((o,i)=>i<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Mn(e){if(e.type)return e;if(e.charAt(0)==="#")return Mn($R(e));let t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(pr(9,e));let o=e.substring(t+1,e.length-1),i;if(r==="color"){if(o=o.split(" "),i=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(pr(10,i))}else o=o.split(",");return o=o.map(n=>parseFloat(n)),{type:r,values:o,colorSpace:i}}var zF=e=>{let t=Mn(e);return t.values.slice(0,3).map((r,o)=>t.type.includes("hsl")&&o!==0?`${r}%`:r).join(" ")},Ac=(e,t)=>{try{return zF(e)}catch{return e}};function hd(e){let{type:t,colorSpace:r}=e,{values:o}=e;return t.includes("rgb")?o=o.map((i,n)=>n<3?parseInt(i,10):i):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Gm(e){e=Mn(e);let{values:t}=e,r=t[0],o=t[1]/100,i=t[2]/100,n=o*Math.min(i,1-i),s=(c,u=(c+r/30)%12)=>i-n*Math.max(Math.min(u-3,9-u,1),-1),a="rgb",l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),hd({type:a,values:l})}function Km(e){e=Mn(e);let t=e.type==="hsl"||e.type==="hsla"?Mn(Gm(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function G_(e,t){let r=Km(e),o=Km(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function Bi(e,t){return e=Mn(e),t=K_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,hd(e)}function ks(e,t,r){try{return Bi(e,t)}catch{return e}}function Ga(e,t){if(e=Mn(e),t=K_(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return hd(e)}function Ge(e,t,r){try{return Ga(e,t)}catch{return e}}function Ya(e,t){if(e=Mn(e),t=K_(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return hd(e)}function Ye(e,t,r){try{return Ya(e,t)}catch{return e}}function md(e,t=.15){return Km(e)>.5?Ga(e,t):Ya(e,t)}function yd(e,t,r){try{return md(e,t)}catch{return e}}var oP=_(I(),1);var VR=_(I(),1);var jR=_(I(),1),FF=jR.createContext(null),Ym=FF;var Y_=_(I(),1);function Dn(){return Y_.useContext(Ym)}var HF=typeof Symbol=="function"&&Symbol.for,WR=HF?Symbol.for("mui.nested"):"__THEME_NESTED__";var qR=_(R(),1);function UF(e,t){return typeof t=="function"?t(e):{...e,...t}}function $F(e){let{children:t,theme:r}=e,o=Dn(),i=VR.useMemo(()=>{let n=o===null?{...r}:UF(o,r);return n!=null&&(n[WR]=o!==null),n},[r,o]);return(0,qR.jsx)(Ym.Provider,{value:i,children:t})}var Xm=$F;var Zm=_(I(),1);var KR=_(R(),1),GR=Zm.createContext();function jF({value:e,...t}){return(0,KR.jsx)(GR.Provider,{value:e??!0,...t})}var Bc=()=>Zm.useContext(GR)??!1,YR=jF;var Qm=_(I(),1);var XR=_(R(),1),ZR=Qm.createContext(void 0);function WF({value:e,children:t}){return(0,XR.jsx)(ZR.Provider,{value:e,children:t})}function VF(e){let{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r])return o;let i=t.components[r];return i.defaultProps?Qi(i.defaultProps,o,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Qi(i,o,t.components.mergeClassNameAndStyle):o}function X_({props:e,name:t}){let r=Qm.useContext(ZR);return VF({props:e,name:t,theme:{components:r}})}var Jm=WF;var gd=_(I(),1),QR=0;function qF(e){let[t,r]=gd.useState(e),o=e||t;return gd.useEffect(()=>{t==null&&(QR+=1,r(`mui-${QR}`))},[t]),o}var KF={...gd},JR=KF.useId;function Eo(e){if(JR!==void 0){let t=JR();return e??t}return qF(e)}var eP=_(R(),1);function Z_(e){let t=qa(),r=Eo()||"",{modularCssLayers:o}=e,i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!o||t!==null?i="":typeof o=="string"?i=o.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,fr(()=>{let n=document.querySelector("head");if(!n)return;let s=n.firstChild;if(i){if(s&&s.hasAttribute?.("data-mui-layer-order")&&s.getAttribute("data-mui-layer-order")===r)return;let a=document.createElement("style");a.setAttribute("data-mui-layer-order",r),a.textContent=i,n.prepend(a)}else n.querySelector(`style[data-mui-layer-order="${r}"]`)?.remove()},[i,r]),i?(0,eP.jsx)(kc,{styles:i}):null}var Nc=_(R(),1),tP={};function rP(e,t,r,o=!1){return oP.useMemo(()=>{let i=e&&t[e]||t;if(typeof r=="function"){let n=r(i),s=e?{...t,[e]:n}:n;return o?()=>s:s}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,o])}function GF(e){let{children:t,theme:r,themeId:o}=e,i=qa(tP),n=Dn()||tP,s=rP(o,i,r),a=rP(o,n,r,!0),l=(o?s[o]:s).direction==="rtl",c=Z_(s);return(0,Nc.jsx)(Xm,{theme:a,children:(0,Nc.jsx)(ki.Provider,{value:s,children:(0,Nc.jsx)(YR,{value:l,children:(0,Nc.jsxs)(Jm,{value:o?s[o].components:s.components,children:[c,t]})})})})}var Lc=GF;var iP={theme:void 0};function ey(e){let t,r;return function(i){let n=t;return(n===void 0||i.theme!==r)&&(iP.theme=i.theme,n=dd(e(iP)),t=n,r=i.theme),n}}var Pr=_(I(),1);var nP=_(R(),1),vd="mode",bd="color-scheme",YF="data-color-scheme";function Q_(e){let{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:o="dark",modeStorageKey:i=vd,colorSchemeStorageKey:n=bd,attribute:s=YF,colorSchemeNode:a="document.documentElement",nonce:l}=e||{},c="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){let f=u.substring(1);c+=`${a}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
|
|
10
10
|
${a}.classList.add('${f}'.replace('%s', colorScheme));`}let p=u.match(/\[([^[\]]+)\]/);if(p){let[f,d]=p[1].split("=");d||(c+=`${a}.removeAttribute('${f}'.replace('%s', light));
|
|
11
11
|
${a}.removeAttribute('${f}'.replace('%s', dark));`),c+=`
|
|
12
12
|
${a}.setAttribute('${f}'.replace('%s', colorScheme), ${d?`${d}.replace('%s', colorScheme)`:'""'});`}else u!==".%s"&&(c+=`${a}.setAttribute('${u}', colorScheme);`);return(0,nP.jsx)("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
@@ -41,7 +41,7 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
|
41
41
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
42
42
|
|
|
43
43
|
export default theme;`}function TP(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var PH=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let o=0;o<t.length;o+=1)r+=+t[o];return r};function EH(e){Object.assign(e,{alpha(t,r){let o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Bi(t,PH(r))},lighten(t,r){let o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${TP(r)})`:Ya(t,r)},darken(t,r){let o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${TP(r)})`:Ga(t,r)}})}function kH(e={},...t){let{breakpoints:r,mixins:o={},spacing:i,palette:n={},transitions:s={},typography:a={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(pr(22));let p=Xa({...n,colorSpace:c}),f=Ai(e),d=Ke(f,{mixins:i0(f.breakpoints,o),palette:p,shadows:_P.slice(),typography:Sd(p,a),transitions:n0(s),zIndex:{...xP}});return d=Ke(d,u),d=t.reduce((h,y)=>Ke(h,y),d),d.unstable_sxConfig={...On,...u?.unstable_sxConfig},d.unstable_sx=function(y){return ao({sx:y,theme:this})},d.toRuntimeSource=ly,EH(d),d}var xd=kH;function Fc(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var OH=[...Array(25)].map((e,t)=>{if(t===0)return"none";let r=Fc(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function s0(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function a0(e){return e==="dark"?OH:[]}function l0(e){let{palette:t={mode:"light"},opacity:r,overlays:o,colorSpace:i,...n}=e,s=Xa({...t,colorSpace:i});return{palette:s,opacity:{...s0(s.mode),...r},overlays:o||a0(s.mode),...n}}function c0(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var MH=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],CP=MH;var wP=e=>(t,r)=>{let o=e.rootSelector||":root",i=e.colorSchemeSelector,n=i;if(i==="class"&&(n=".%s"),i==="data"&&(n="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(n=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){let s={};return CP(e.cssVarPrefix).forEach(a=>{s[a]=r[a],delete r[a]}),n==="media"?{[o]:r,"@media (prefers-color-scheme: dark)":{[o]:s}}:n?{[n.replace("%s",t)]:s,[`${o}, ${n.replace("%s",t)}`]:r}:{[o]:{...r,...s}}}if(n&&n!=="media")return`${o}, ${n.replace("%s",String(t))}`}else if(t){if(n==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:r}};if(n)return n.replace("%s",String(t))}return o};function DH(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function F(e,t,r){!e[t]&&r&&(e[t]=r)}function Td(e){return typeof e!="string"||!e.startsWith("hsl")?e:Gm(e)}function An(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ac(Td(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
44
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function AH(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}var Ji=e=>{try{return e()}catch{}},BH=(e="mui")=>ry(e);function u0(e,t,r,o,i){if(!r)return;r=r===!0?{}:r;let n=i==="dark"?"dark":"light";if(!o){t[i]=l0({...r,palette:{mode:n,...r?.palette},colorSpace:e});return}let{palette:s,...a}=xd({...o,palette:{mode:n,...r?.palette},colorSpace:e});return t[i]={...r,palette:s,opacity:{...s0(n),...r?.opacity},overlays:r?.overlays||a0(n)},a}function p0(e={},...t){let{colorSchemes:r={light:!0},defaultColorScheme:o,disableCssColorScheme:i=!1,cssVarPrefix:n="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=c0,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(r)[0],f=o||(r.light&&p!=="light"?"light":p),d=BH(n),{[f]:h,light:y,dark:b,...m}=r,g={...m},v=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(v=!0),!v)throw new Error(pr(21,f));let S;s&&(S="oklch");let C=u0(S,g,v,u,f);y&&!g.light&&u0(S,g,y,void 0,"light"),b&&!g.dark&&u0(S,g,b,void 0,"dark");let w={defaultColorScheme:f,...C,cssVarPrefix:n,colorSchemeSelector:l,rootSelector:c,getCssVar:d,colorSchemes:g,font:{...ay(C.typography),...C.font},spacing:AH(u.spacing)};Object.keys(w.colorSchemes).forEach(M=>{let x=w.colorSchemes[M].palette,P=E=>{let D=E.split("-"),z=D[1],L=D[2];return d(E,x[z][L])};x.mode==="light"&&(F(x.common,"background","#fff"),F(x.common,"onBackground","#000")),x.mode==="dark"&&(F(x.common,"background","#000"),F(x.common,"onBackground","#fff"));function T(E,D,z){if(S){let L;return E===ks&&(L=`transparent ${((1-z)*100).toFixed(0)}%`),E===Ge&&(L=`#000 ${(z*100).toFixed(0)}%`),E===Ye&&(L=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${S}, ${D}, ${L})`}return E(D,z)}if(DH(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){F(x.Alert,"errorColor",T(Ge,s?d("palette-error-light"):x.error.light,.6)),F(x.Alert,"infoColor",T(Ge,s?d("palette-info-light"):x.info.light,.6)),F(x.Alert,"successColor",T(Ge,s?d("palette-success-light"):x.success.light,.6)),F(x.Alert,"warningColor",T(Ge,s?d("palette-warning-light"):x.warning.light,.6)),F(x.Alert,"errorFilledBg",P("palette-error-main")),F(x.Alert,"infoFilledBg",P("palette-info-main")),F(x.Alert,"successFilledBg",P("palette-success-main")),F(x.Alert,"warningFilledBg",P("palette-warning-main")),F(x.Alert,"errorFilledColor",Ji(()=>x.getContrastText(x.error.main))),F(x.Alert,"infoFilledColor",Ji(()=>x.getContrastText(x.info.main))),F(x.Alert,"successFilledColor",Ji(()=>x.getContrastText(x.success.main))),F(x.Alert,"warningFilledColor",Ji(()=>x.getContrastText(x.warning.main))),F(x.Alert,"errorStandardBg",T(Ye,s?d("palette-error-light"):x.error.light,.9)),F(x.Alert,"infoStandardBg",T(Ye,s?d("palette-info-light"):x.info.light,.9)),F(x.Alert,"successStandardBg",T(Ye,s?d("palette-success-light"):x.success.light,.9)),F(x.Alert,"warningStandardBg",T(Ye,s?d("palette-warning-light"):x.warning.light,.9)),F(x.Alert,"errorIconColor",P("palette-error-main")),F(x.Alert,"infoIconColor",P("palette-info-main")),F(x.Alert,"successIconColor",P("palette-success-main")),F(x.Alert,"warningIconColor",P("palette-warning-main")),F(x.AppBar,"defaultBg",P("palette-grey-100")),F(x.Avatar,"defaultBg",P("palette-grey-400")),F(x.Button,"inheritContainedBg",P("palette-grey-300")),F(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),F(x.Chip,"defaultBorder",P("palette-grey-400")),F(x.Chip,"defaultAvatarColor",P("palette-grey-700")),F(x.Chip,"defaultIconColor",P("palette-grey-700")),F(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(x.LinearProgress,"primaryBg",T(Ye,s?d("palette-primary-main"):x.primary.main,.62)),F(x.LinearProgress,"secondaryBg",T(Ye,s?d("palette-secondary-main"):x.secondary.main,.62)),F(x.LinearProgress,"errorBg",T(Ye,s?d("palette-error-main"):x.error.main,.62)),F(x.LinearProgress,"infoBg",T(Ye,s?d("palette-info-main"):x.info.main,.62)),F(x.LinearProgress,"successBg",T(Ye,s?d("palette-success-main"):x.success.main,.62)),F(x.LinearProgress,"warningBg",T(Ye,s?d("palette-warning-light"):x.warning.main,.62)),F(x.Skeleton,"bg",S?T(ks,s?d("palette-text-primary"):x.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),F(x.Slider,"primaryTrack",T(Ye,s?d("palette-primary-main"):x.primary.main,.62)),F(x.Slider,"secondaryTrack",T(Ye,s?d("palette-secondary-main"):x.secondary.main,.62)),F(x.Slider,"errorTrack",T(Ye,s?d("palette-error-main"):x.error.main,.62)),F(x.Slider,"infoTrack",T(Ye,s?d("palette-info-main"):x.info.main,.62)),F(x.Slider,"successTrack",T(Ye,s?d("palette-success-main"):x.success.main,.62)),F(x.Slider,"warningTrack",T(Ye,s?d("palette-warning-main"):x.warning.main,.62));let E=S?T(Ge,s?d("palette-background-default"):x.background.default,.6825):yd(x.background.default,.8);F(x.SnackbarContent,"bg",E),F(x.SnackbarContent,"color",Ji(()=>S?sy.text.primary:x.getContrastText(E))),F(x.SpeedDialAction,"fabHoverBg",yd(x.background.paper,.15)),F(x.StepConnector,"border",P("palette-grey-400")),F(x.StepContent,"border",P("palette-grey-400")),F(x.Switch,"defaultColor",P("palette-common-white")),F(x.Switch,"defaultDisabledColor",P("palette-grey-100")),F(x.Switch,"primaryDisabledColor",T(Ye,s?d("palette-primary-main"):x.primary.main,.62)),F(x.Switch,"secondaryDisabledColor",T(Ye,s?d("palette-secondary-main"):x.secondary.main,.62)),F(x.Switch,"errorDisabledColor",T(Ye,s?d("palette-error-main"):x.error.main,.62)),F(x.Switch,"infoDisabledColor",T(Ye,s?d("palette-info-main"):x.info.main,.62)),F(x.Switch,"successDisabledColor",T(Ye,s?d("palette-success-main"):x.success.main,.62)),F(x.Switch,"warningDisabledColor",T(Ye,s?d("palette-warning-main"):x.warning.main,.62)),F(x.TableCell,"border",T(Ye,ks(s?d("palette-divider"):x.divider,1),.88)),F(x.Tooltip,"bg",T(ks,s?d("palette-grey-700"):x.grey[700],.92))}if(x.mode==="dark"){F(x.Alert,"errorColor",T(Ye,s?d("palette-error-light"):x.error.light,.6)),F(x.Alert,"infoColor",T(Ye,s?d("palette-info-light"):x.info.light,.6)),F(x.Alert,"successColor",T(Ye,s?d("palette-success-light"):x.success.light,.6)),F(x.Alert,"warningColor",T(Ye,s?d("palette-warning-light"):x.warning.light,.6)),F(x.Alert,"errorFilledBg",P("palette-error-dark")),F(x.Alert,"infoFilledBg",P("palette-info-dark")),F(x.Alert,"successFilledBg",P("palette-success-dark")),F(x.Alert,"warningFilledBg",P("palette-warning-dark")),F(x.Alert,"errorFilledColor",Ji(()=>x.getContrastText(x.error.dark))),F(x.Alert,"infoFilledColor",Ji(()=>x.getContrastText(x.info.dark))),F(x.Alert,"successFilledColor",Ji(()=>x.getContrastText(x.success.dark))),F(x.Alert,"warningFilledColor",Ji(()=>x.getContrastText(x.warning.dark))),F(x.Alert,"errorStandardBg",T(Ge,s?d("palette-error-light"):x.error.light,.9)),F(x.Alert,"infoStandardBg",T(Ge,s?d("palette-info-light"):x.info.light,.9)),F(x.Alert,"successStandardBg",T(Ge,s?d("palette-success-light"):x.success.light,.9)),F(x.Alert,"warningStandardBg",T(Ge,s?d("palette-warning-light"):x.warning.light,.9)),F(x.Alert,"errorIconColor",P("palette-error-main")),F(x.Alert,"infoIconColor",P("palette-info-main")),F(x.Alert,"successIconColor",P("palette-success-main")),F(x.Alert,"warningIconColor",P("palette-warning-main")),F(x.AppBar,"defaultBg",P("palette-grey-900")),F(x.AppBar,"darkBg",P("palette-background-paper")),F(x.AppBar,"darkColor",P("palette-text-primary")),F(x.Avatar,"defaultBg",P("palette-grey-600")),F(x.Button,"inheritContainedBg",P("palette-grey-800")),F(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),F(x.Chip,"defaultBorder",P("palette-grey-700")),F(x.Chip,"defaultAvatarColor",P("palette-grey-300")),F(x.Chip,"defaultIconColor",P("palette-grey-300")),F(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(x.LinearProgress,"primaryBg",T(Ge,s?d("palette-primary-main"):x.primary.main,.5)),F(x.LinearProgress,"secondaryBg",T(Ge,s?d("palette-secondary-main"):x.secondary.main,.5)),F(x.LinearProgress,"errorBg",T(Ge,s?d("palette-error-main"):x.error.main,.5)),F(x.LinearProgress,"infoBg",T(Ge,s?d("palette-info-main"):x.info.main,.5)),F(x.LinearProgress,"successBg",T(Ge,s?d("palette-success-main"):x.success.main,.5)),F(x.LinearProgress,"warningBg",T(Ge,s?d("palette-warning-main"):x.warning.main,.5)),F(x.Skeleton,"bg",S?T(ks,s?d("palette-text-primary"):x.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),F(x.Slider,"primaryTrack",T(Ge,s?d("palette-primary-main"):x.primary.main,.5)),F(x.Slider,"secondaryTrack",T(Ge,s?d("palette-secondary-main"):x.secondary.main,.5)),F(x.Slider,"errorTrack",T(Ge,s?d("palette-error-main"):x.error.main,.5)),F(x.Slider,"infoTrack",T(Ge,s?d("palette-info-main"):x.info.main,.5)),F(x.Slider,"successTrack",T(Ge,s?d("palette-success-main"):x.success.main,.5)),F(x.Slider,"warningTrack",T(Ge,s?d("palette-warning-light"):x.warning.main,.5));let E=S?T(Ye,s?d("palette-background-default"):x.background.default,.985):yd(x.background.default,.98);F(x.SnackbarContent,"bg",E),F(x.SnackbarContent,"color",Ji(()=>S?o0.text.primary:x.getContrastText(E))),F(x.SpeedDialAction,"fabHoverBg",yd(x.background.paper,.15)),F(x.StepConnector,"border",P("palette-grey-600")),F(x.StepContent,"border",P("palette-grey-600")),F(x.Switch,"defaultColor",P("palette-grey-300")),F(x.Switch,"defaultDisabledColor",P("palette-grey-600")),F(x.Switch,"primaryDisabledColor",T(Ge,s?d("palette-primary-main"):x.primary.main,.55)),F(x.Switch,"secondaryDisabledColor",T(Ge,s?d("palette-secondary-main"):x.secondary.main,.55)),F(x.Switch,"errorDisabledColor",T(Ge,s?d("palette-error-main"):x.error.main,.55)),F(x.Switch,"infoDisabledColor",T(Ge,s?d("palette-info-main"):x.info.main,.55)),F(x.Switch,"successDisabledColor",T(Ge,s?d("palette-success-main"):x.success.main,.55)),F(x.Switch,"warningDisabledColor",T(Ge,s?d("palette-warning-light"):x.warning.main,.55)),F(x.TableCell,"border",T(Ge,ks(s?d("palette-divider"):x.divider,1),.68)),F(x.Tooltip,"bg",T(ks,s?d("palette-grey-700"):x.grey[700],.92))}s||(An(x.background,"default"),An(x.background,"paper"),An(x.common,"background"),An(x.common,"onBackground"),An(x,"divider")),Object.keys(x).forEach(E=>{let D=x[E];E!=="tonalOffset"&&!s&&D&&typeof D=="object"&&(D.main&&F(x[E],"mainChannel",Ac(Td(D.main))),D.light&&F(x[E],"lightChannel",Ac(Td(D.light))),D.dark&&F(x[E],"darkChannel",Ac(Td(D.dark))),D.contrastText&&F(x[E],"contrastTextChannel",Ac(Td(D.contrastText))),E==="text"&&(An(x[E],"primary"),An(x[E],"secondary")),E==="action"&&(D.active&&An(x[E],"active"),D.selected&&An(x[E],"selected")))})}),w=t.reduce((M,x)=>Ke(M,x),w);let k={prefix:n,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:wP(w),enableContrastVars:s},{vars:O,generateThemeVars:A,generateStyleSheets:B}=t0(w,k);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([M,x])=>{w[M]=x}),w.generateThemeVars=A,w.generateStyleSheets=B,w.generateSpacing=function(){return Ec(u.spacing,Wa(this))},w.getColorSchemeSelector=r0(l),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={...On,...u?.unstable_sxConfig},w.unstable_sx=function(x){return ao({sx:x,theme:this})},w.internal_cache={},w.toRuntimeSource=ly,w}function RP(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Xa({...r===!0?{}:r.palette,mode:t})})}function en(e={},...t){let{palette:r,cssVariables:o=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:n=r?.mode,...s}=e,a=n||"light",l=i?.[a],c={...i,...r?{[a]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(o===!1){if(!("colorSchemes"in e))return xd(e,...t);let u=r;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));let p=xd({...e,palette:u},...t);return p.defaultColorScheme=a,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},RP(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},RP(p,"light",c.light)),p}return!r&&!("light"in c)&&a==="light"&&(c.light=!0),p0({...s,colorSchemes:c,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}var LH=_(I(),1);var NH=en(),Hc=NH;function Fr(){let e=Zi(Hc);return e[Cr]||e}function IH(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var cy=IH;var zH=e=>cy(e)&&e!=="classes",Le=zH;var FH=Mc({themeId:Cr,defaultTheme:Hc,rootShouldForwardProp:Le}),N=FH;var kP=_(I(),1);var Nae=_(I(),1);var PP=_(R(),1);function d0({theme:e,...t}){let r=Cr in e?e[Cr]:void 0;return(0,PP.jsx)(Lc,{...t,themeId:r?Cr:void 0,theme:r||e})}var HH=_(R(),1),Cd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};var UH=_(R(),1),{CssVarsProvider:$H,useColorScheme:qae,getInitColorSchemeScript:Kae}=ty({themeId:Cr,theme:()=>en({cssVariables:!0}),colorSchemeStorageKey:Cd.colorSchemeStorageKey,modeStorageKey:Cd.modeStorageKey,defaultColorScheme:{light:Cd.defaultLightColorScheme,dark:Cd.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Sd(e.palette,e.typography)};return t.unstable_sx=function(o){return ao({sx:o,theme:this})},t}});var EP=$H;var f0=_(R(),1);function uy({theme:e,...t}){let r=kP.useMemo(()=>{if(typeof e=="function")return e;let o=Cr in e?e[Cr]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return r?(0,f0.jsx)(d0,{theme:r,...t}):(0,f0.jsx)(EP,{theme:e,...t})}var K=En;function Za(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}var OP=Za;var fy=_(I(),1);var py=_(I(),1);var MP=_(R(),1);function jH(e){return(0,MP.jsx)(kc,{...e,defaultTheme:Hc,themeId:Cr})}var h0=jH;var DP=_(R(),1);function wd(e){return function(r){return(0,DP.jsx)(h0,{styles:typeof e=="function"?o=>e({theme:o,...r}):e})}}var WH=ey,Y=WH;var wle=_(I(),1);var VH=_(R(),1);function q(e){return X_(e)}function AP(e){return W("MuiSvgIcon",e)}var Ale=j("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var dy=_(R(),1),qH=e=>{let{color:t,fontSize:r,classes:o}=e,i={root:["root",t!=="inherit"&&`color${K(t)}`,`fontSize${K(r)}`]};return V(i,AP,o)},KH=N("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${K(r.color)}`],t[`fontSize${K(r.fontSize)}`]]}})(Y(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),BP=py.forwardRef(function(t,r){let o=q({props:t,name:"MuiSvgIcon"}),{children:i,className:n,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:f="0 0 24 24",...d}=o,h=py.isValidElement(i)&&i.type==="svg",y={...o,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},b={};u||(b.viewBox=f);let m=qH(y);return(0,dy.jsxs)(KH,{as:a,className:H(m.root,n),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...b,...d,...h&&i.props,ownerState:y,children:[h?i.props.children:i,p?(0,dy.jsx)("title",{children:p}):null]})});BP.muiName="SvgIcon";var m0=BP;var NP=_(R(),1);function _e(e,t){function r(o,i){return(0,NP.jsx)(m0,{"data-testid":void 0,ref:i,...o,children:e})}return r.muiName=m0.muiName,fy.memo(fy.forwardRef(r))}function Uc(e,t=166){let r;function o(...i){let n=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(n,t)}return o.clear=()=>{clearTimeout(r)},o}var $c=Uc;var hy=iy;function Qa(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var tn=Qa;function It(e){return e&&e.ownerDocument||document}var rn=It;function ti(e){return It(e).defaultView||window}var on=ti;function Ja(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Bn=fr;var Nn=Eo;var el=_(I(),1);function my(e){let{controlled:t,default:r,name:o,state:i="value"}=e,{current:n}=el.useRef(t!==void 0),[s,a]=el.useState(r),l=n?t:s,c=el.useCallback(u=>{n||a(u)},[]);return[l,c]}var tl=my;var y0=_(I(),1);function GH(e){let t=y0.useRef(e);return fr(()=>{t.current=e}),y0.useRef((...r)=>(0,t.current)(...r)).current}var Er=GH;var ri=Er;var jc=_(I(),1);function Xt(...e){let t=jc.useRef(void 0),r=jc.useCallback(o=>{let i=e.map(n=>{if(n==null)return null;if(typeof n=="function"){let s=n,a=s(o);return typeof a=="function"?a:()=>{s(null)}}return n.current=o,()=>{n.current=null}});return()=>{i.forEach(n=>n?.())}},e);return jc.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=r(o))},e)}var At=Xt;function YH(e,t){let r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Wc(e,t){if(!e)return t;function r(s,a){let l={};return Object.keys(a).forEach(c=>{YH(c,a[c])&&typeof s[c]=="function"&&(l[c]=(...u)=>{s[c](...u),a[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return s=>{let a=typeof t=="function"?t(s):t,l=typeof e=="function"?e({...s,...a}):e,c=H(s?.className,a?.className,l?.className),u=r(l,a);return{...a,...l,...u,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};let o=t,i=r(e,o),n=H(o?.className,e?.className);return{...t,...e,...i,...!!n&&{className:n},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function yy(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function gy(e,t){return gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gy(e,t)}function vy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gy(e,t)}var Pd=_(I()),Ed=_(_y());var g0={disabled:!1};var HP=_(I()),Vc=HP.default.createContext(null);var UP=function(t){return t.scrollTop};var kd="unmounted",rl="exited",ol="entering",Kc="entered",v0="exiting",Ln=(function(e){vy(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=rl,n.appearStatus=ol):l=Kc:o.unmountOnExit||o.mountOnEnter?l=kd:l=rl,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===kd?{status:rl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==ol&&s!==Kc&&(n=ol):(s===ol||s===Kc)&&(n=v0)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===ol){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ed.default.findDOMNode(this);s&&UP(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rl&&this.setState({status:kd})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Ed.default.findDOMNode(this),a],c=l[0],u=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;if(!i&&!s||g0.disabled){this.safeSetState({status:Kc},function(){n.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ol},function(){n.props.onEntering(c,u),n.onTransitionEnd(f,function(){n.safeSetState({status:Kc},function(){n.props.onEntered(c,u)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ed.default.findDOMNode(this);if(!n||g0.disabled){this.safeSetState({status:rl},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:v0},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:rl},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:Ed.default.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===kd)return null;var n=this.props,s=n.children,a=n.in,l=n.mountOnEnter,c=n.unmountOnExit,u=n.appear,p=n.enter,f=n.exit,d=n.timeout,h=n.addEndListener,y=n.onEnter,b=n.onEntering,m=n.onEntered,g=n.onExit,v=n.onExiting,S=n.onExited,C=n.nodeRef,w=yy(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Pd.default.createElement(Vc.Provider,{value:null},typeof s=="function"?s(i,w):Pd.default.cloneElement(Pd.default.Children.only(s),w))},t})(Pd.default.Component);Ln.contextType=Vc;Ln.propTypes={};function qc(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qc,onEntering:qc,onEntered:qc,onExit:qc,onExiting:qc,onExited:qc};Ln.UNMOUNTED=kd;Ln.EXITED=rl;Ln.ENTERING=ol;Ln.ENTERED=Kc;Ln.EXITING=v0;var Od=Ln;function $P(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Md=_(I());var oi=_(I());function Sy(e,t){var r=function(n){return t&&(0,oi.isValidElement)(n)?t(n):n},o=Object.create(null);return e&&oi.Children.map(e,function(i){return i}).forEach(function(i){o[i.key]=r(i)}),o}function JH(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var o=Object.create(null),i=[];for(var n in e)n in t?i.length&&(o[n]=i,i=[]):i.push(n);var s,a={};for(var l in t){if(o[l])for(s=0;s<o[l].length;s++){var c=o[l][s];a[o[l][s]]=r(c)}a[l]=r(l)}for(s=0;s<i.length;s++)a[i[s]]=r(i[s]);return a}function il(e,t,r){return r[t]!=null?r[t]:e.props[t]}function jP(e,t){return Sy(e.children,function(r){return(0,oi.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:il(r,"appear",e),enter:il(r,"enter",e),exit:il(r,"exit",e)})})}function WP(e,t,r){var o=Sy(e.children),i=JH(t,o);return Object.keys(i).forEach(function(n){var s=i[n];if((0,oi.isValidElement)(s)){var a=n in t,l=n in o,c=t[n],u=(0,oi.isValidElement)(c)&&!c.props.in;l&&(!a||u)?i[n]=(0,oi.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:il(s,"exit",e),enter:il(s,"enter",e)}):!l&&a&&!u?i[n]=(0,oi.cloneElement)(s,{in:!1}):l&&a&&(0,oi.isValidElement)(c)&&(i[n]=(0,oi.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:il(s,"exit",e),enter:il(s,"enter",e)}))}}),i}var eU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tU={component:"div",childFactory:function(t){return t}},b0=(function(e){vy(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=n.handleExited.bind($P(n));return n.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},n}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,n){var s=n.children,a=n.handleExited,l=n.firstRender;return{children:l?jP(i,a):WP(i,s,a),firstRender:!1}},r.handleExited=function(i,n){var s=Sy(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(n),this.mounted&&this.setState(function(a){var l=Fa({},a.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,n=i.component,s=i.childFactory,a=yy(i,["component","childFactory"]),l=this.state.contextValue,c=eU(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,n===null?Md.default.createElement(Vc.Provider,{value:l},c):Md.default.createElement(Vc.Provider,{value:l},Md.default.createElement(n,a,c))},t})(Md.default.Component);b0.propTypes={};b0.defaultProps=tU;var _0=b0;var qP=_(I(),1),VP={};function Gc(e,t){let r=qP.useRef(VP);return r.current===VP&&(r.current=e(t)),r}var KP=_(I(),1),rU=[];function S0(e){KP.useEffect(e,rU)}var x0=class e{constructor(){Fe(this,"currentId",null);Fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Fe(this,"disposeEffect",()=>this.clear)}static create(){return new e}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function Ms(){let e=Gc(x0.create).current;return S0(e.disposeEffect),e}var xy=e=>e.scrollTop;function lo(e,t){return r=>{if(t){let o=e.current;r===void 0?t(o):t(o,r)}}}function Ty(e,t,r,o,i,n){let s=e==="exited"&&!t?o:r[e]||r.exited;return i||n?{...s,...i,...n}:s}function Yc(e,t){let{timeout:r,easing:o,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:i.transitionDelay}}function oU(e){return typeof e=="string"}var Ds=oU;function iU(e,t,r){return e===void 0||Ds(e)?t:{...t,ownerState:{...t.ownerState,...r}}}var Dd=iU;function nU(e,t,r){return typeof e=="function"?e(t,r):e}var Ad=nU;function sU(e,t=[]){if(e===void 0)return{};let r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{r[o]=e[o]}),r}var As=sU;function aU(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}var Cy=aU;function lU(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:i,className:n}=e;if(!t){let d=H(r?.className,n,i?.className,o?.className),h={...r?.style,...i?.style,...o?.style},y={...r,...i,...o};return d.length>0&&(y.className=d),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:void 0}}let s=As({...i,...o}),a=Cy(o),l=Cy(i),c=t(s),u=H(c?.className,r?.className,n,i?.className,o?.className),p={...c?.style,...r?.style,...i?.style,...o?.style},f={...c,...r,...l,...a};return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}var Bd=lU;function ee(e,t){let{className:r,elementType:o,ownerState:i,externalForwardedProps:n,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:p={[e]:void 0},...f}=n,d=u[e]||o,h=Ad(p[e],i),{props:{component:y,...b},internalRef:m}=Bd({className:r,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),g=Xt(m,h?.ref,t.ref),v=e==="root"?y||c:y,S=Dd(d,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...b,...v&&!a&&{as:v},...v&&a&&{component:v},ref:g},i);return[d,S]}var YP=_(I(),1);function GP(e){return W("MuiPaper",e)}var spe=j("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var XP=_(R(),1),cU=e=>{let{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return V(n,GP,i)},uU=N("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Y(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),pU=YP.forwardRef(function(t,r){let o=q({props:t,name:"MuiPaper"}),i=Fr(),{className:n,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=o,p={...o,component:s,elevation:a,square:l,variant:c},f=cU(p);return(0,XP.jsx)(uU,{as:s,ownerState:p,className:H(f.root,n),ref:r,...u,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[a],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[a]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Bi("#fff",Fc(a))}, ${Bi("#fff",Fc(a))})`}},...u.style}})}),St=pU;var Ls=_(I(),1);function Bs(e){try{return e.matches(":focus-visible")}catch{}return!1}var Ns=_(I(),1);var ZP=_(I(),1);function T0(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:n}=e,s=o&&t!==!1,a=o&&t===!1;return ZP.useMemo(()=>{let c={onKeyDown(u){r&&t&&u.key!=="Tab"&&u.preventDefault()}};return o||(c.tabIndex=i,!n&&r&&(c.tabIndex=t?i:-1)),(n&&(t||s)||!n&&r)&&(c["aria-disabled"]=r),n&&(!t||a)&&(c.disabled=r),c},[o,r,t,s,a,n,i])}var dU={};function C0(e){let{nativeButton:t,nativeButtonProp:r,internalNativeButton:o=t,allowInferredHostMismatch:i=!1,disabled:n,type:s,hasFormAction:a=!1,tabIndex:l=0,focusableWhenDisabled:c,stopEventPropagation:u=!1,onBeforeKeyDown:p,onBeforeKeyUp:f}=e,d=Ns.useRef(null),h=c===!0,y=T0({focusableWhenDisabled:h,disabled:n,isNativeButton:t,tabIndex:l}),b=Ns.useCallback(()=>{let v=d.current;return v==null?t:v.tagName==="BUTTON"?!0:!!(v.tagName==="A"&&v.href)},[t]),m=Ns.useMemo(()=>{let v=h?{}:{tabIndex:n?-1:l};return t?(v.type=s===void 0&&!a?"button":s,h||(v.disabled=n)):(v.role="button",!h&&n&&(v["aria-disabled"]=n)),h?{...v,...y}:v},[n,h,y,a,t,l,s]);return{getButtonProps:Ns.useCallback((v=dU)=>{let{onClick:S,onKeyDown:C,onKeyUp:w,...k}=v;return{...m,...k,onClick:M=>{if(u&&M.stopPropagation(),n){M.preventDefault();return}S?.(M)},onKeyDown:M=>{if(h&&y.onKeyDown(M),!n&&(p?.(M),C?.(M),!(M.target!==M.currentTarget||b()))){if(M.key===" "){M.preventDefault();return}M.key==="Enter"&&(M.preventDefault(),M.currentTarget.click())}},onKeyUp:M=>{n||(f?.(M),w?.(M),M.target===M.currentTarget&&!b()&&M.key===" "&&!M.defaultPrevented&&M.currentTarget.click())}}},[m,n,h,y,b,p,f,u]),rootRef:d}}var wy=_(I(),1);var w0=class e{constructor(){Fe(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new e}static use(){let t=Gc(e.create).current,[r,o]=wy.useState(!1);return t.shouldMount=r,t.setShouldMount=o,wy.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=fU(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function Ry(){return w0.use()}function fU(){let e,t,r=new Promise((o,i)=>{e=o,t=i});return r.resolve=e,r.reject=t,r}var ir=_(I(),1);var Py=_(I(),1);var R0=_(R(),1);function hU(e){let{className:t,classes:r,pulsate:o=!1,rippleX:i,rippleY:n,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,p]=Py.useState(!1),f=H(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),d={width:s,height:s,top:-(s/2)+n,left:-(s/2)+i},h=H(r.child,u&&r.childLeaving,o&&r.childPulsate);return!a&&!u&&p(!0),Py.useEffect(()=>{if(!a&&l!=null){let y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,a,c]),(0,R0.jsx)("span",{className:f,style:d,children:(0,R0.jsx)("span",{className:h})})}var QP=hU;var mU=j("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ko=mU;var Ey=_(R(),1),P0=550,yU=80,gU=Oi`
|
|
44
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function AH(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}var Ji=e=>{try{return e()}catch{}},BH=(e="mui")=>ry(e);function u0(e,t,r,o,i){if(!r)return;r=r===!0?{}:r;let n=i==="dark"?"dark":"light";if(!o){t[i]=l0({...r,palette:{mode:n,...r?.palette},colorSpace:e});return}let{palette:s,...a}=xd({...o,palette:{mode:n,...r?.palette},colorSpace:e});return t[i]={...r,palette:s,opacity:{...s0(n),...r?.opacity},overlays:r?.overlays||a0(n)},a}function p0(e={},...t){let{colorSchemes:r={light:!0},defaultColorScheme:o,disableCssColorScheme:i=!1,cssVarPrefix:n="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=c0,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(r)[0],f=o||(r.light&&p!=="light"?"light":p),d=BH(n),{[f]:h,light:y,dark:b,...m}=r,g={...m},v=h;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(v=!0),!v)throw new Error(pr(21,f));let S;s&&(S="oklch");let C=u0(S,g,v,u,f);y&&!g.light&&u0(S,g,y,void 0,"light"),b&&!g.dark&&u0(S,g,b,void 0,"dark");let w={defaultColorScheme:f,...C,cssVarPrefix:n,colorSchemeSelector:l,rootSelector:c,getCssVar:d,colorSchemes:g,font:{...ay(C.typography),...C.font},spacing:AH(u.spacing)};Object.keys(w.colorSchemes).forEach(M=>{let x=w.colorSchemes[M].palette,P=E=>{let D=E.split("-"),z=D[1],L=D[2];return d(E,x[z][L])};x.mode==="light"&&(F(x.common,"background","#fff"),F(x.common,"onBackground","#000")),x.mode==="dark"&&(F(x.common,"background","#000"),F(x.common,"onBackground","#fff"));function T(E,D,z){if(S){let L;return E===ks&&(L=`transparent ${((1-z)*100).toFixed(0)}%`),E===Ge&&(L=`#000 ${(z*100).toFixed(0)}%`),E===Ye&&(L=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${S}, ${D}, ${L})`}return E(D,z)}if(DH(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){F(x.Alert,"errorColor",T(Ge,s?d("palette-error-light"):x.error.light,.6)),F(x.Alert,"infoColor",T(Ge,s?d("palette-info-light"):x.info.light,.6)),F(x.Alert,"successColor",T(Ge,s?d("palette-success-light"):x.success.light,.6)),F(x.Alert,"warningColor",T(Ge,s?d("palette-warning-light"):x.warning.light,.6)),F(x.Alert,"errorFilledBg",P("palette-error-main")),F(x.Alert,"infoFilledBg",P("palette-info-main")),F(x.Alert,"successFilledBg",P("palette-success-main")),F(x.Alert,"warningFilledBg",P("palette-warning-main")),F(x.Alert,"errorFilledColor",Ji(()=>x.getContrastText(x.error.main))),F(x.Alert,"infoFilledColor",Ji(()=>x.getContrastText(x.info.main))),F(x.Alert,"successFilledColor",Ji(()=>x.getContrastText(x.success.main))),F(x.Alert,"warningFilledColor",Ji(()=>x.getContrastText(x.warning.main))),F(x.Alert,"errorStandardBg",T(Ye,s?d("palette-error-light"):x.error.light,.9)),F(x.Alert,"infoStandardBg",T(Ye,s?d("palette-info-light"):x.info.light,.9)),F(x.Alert,"successStandardBg",T(Ye,s?d("palette-success-light"):x.success.light,.9)),F(x.Alert,"warningStandardBg",T(Ye,s?d("palette-warning-light"):x.warning.light,.9)),F(x.Alert,"errorIconColor",P("palette-error-main")),F(x.Alert,"infoIconColor",P("palette-info-main")),F(x.Alert,"successIconColor",P("palette-success-main")),F(x.Alert,"warningIconColor",P("palette-warning-main")),F(x.AppBar,"defaultBg",P("palette-grey-100")),F(x.Avatar,"defaultBg",P("palette-grey-400")),F(x.Button,"inheritContainedBg",P("palette-grey-300")),F(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),F(x.Chip,"defaultBorder",P("palette-grey-400")),F(x.Chip,"defaultAvatarColor",P("palette-grey-700")),F(x.Chip,"defaultIconColor",P("palette-grey-700")),F(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(x.LinearProgress,"primaryBg",T(Ye,s?d("palette-primary-main"):x.primary.main,.62)),F(x.LinearProgress,"secondaryBg",T(Ye,s?d("palette-secondary-main"):x.secondary.main,.62)),F(x.LinearProgress,"errorBg",T(Ye,s?d("palette-error-main"):x.error.main,.62)),F(x.LinearProgress,"infoBg",T(Ye,s?d("palette-info-main"):x.info.main,.62)),F(x.LinearProgress,"successBg",T(Ye,s?d("palette-success-main"):x.success.main,.62)),F(x.LinearProgress,"warningBg",T(Ye,s?d("palette-warning-light"):x.warning.main,.62)),F(x.Skeleton,"bg",S?T(ks,s?d("palette-text-primary"):x.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),F(x.Slider,"primaryTrack",T(Ye,s?d("palette-primary-main"):x.primary.main,.62)),F(x.Slider,"secondaryTrack",T(Ye,s?d("palette-secondary-main"):x.secondary.main,.62)),F(x.Slider,"errorTrack",T(Ye,s?d("palette-error-main"):x.error.main,.62)),F(x.Slider,"infoTrack",T(Ye,s?d("palette-info-main"):x.info.main,.62)),F(x.Slider,"successTrack",T(Ye,s?d("palette-success-main"):x.success.main,.62)),F(x.Slider,"warningTrack",T(Ye,s?d("palette-warning-main"):x.warning.main,.62));let E=S?T(Ge,s?d("palette-background-default"):x.background.default,.6825):yd(x.background.default,.8);F(x.SnackbarContent,"bg",E),F(x.SnackbarContent,"color",Ji(()=>S?sy.text.primary:x.getContrastText(E))),F(x.SpeedDialAction,"fabHoverBg",yd(x.background.paper,.15)),F(x.StepConnector,"border",P("palette-grey-400")),F(x.StepContent,"border",P("palette-grey-400")),F(x.Switch,"defaultColor",P("palette-common-white")),F(x.Switch,"defaultDisabledColor",P("palette-grey-100")),F(x.Switch,"primaryDisabledColor",T(Ye,s?d("palette-primary-main"):x.primary.main,.62)),F(x.Switch,"secondaryDisabledColor",T(Ye,s?d("palette-secondary-main"):x.secondary.main,.62)),F(x.Switch,"errorDisabledColor",T(Ye,s?d("palette-error-main"):x.error.main,.62)),F(x.Switch,"infoDisabledColor",T(Ye,s?d("palette-info-main"):x.info.main,.62)),F(x.Switch,"successDisabledColor",T(Ye,s?d("palette-success-main"):x.success.main,.62)),F(x.Switch,"warningDisabledColor",T(Ye,s?d("palette-warning-main"):x.warning.main,.62)),F(x.TableCell,"border",T(Ye,ks(s?d("palette-divider"):x.divider,1),.88)),F(x.Tooltip,"bg",T(ks,s?d("palette-grey-700"):x.grey[700],.92))}if(x.mode==="dark"){F(x.Alert,"errorColor",T(Ye,s?d("palette-error-light"):x.error.light,.6)),F(x.Alert,"infoColor",T(Ye,s?d("palette-info-light"):x.info.light,.6)),F(x.Alert,"successColor",T(Ye,s?d("palette-success-light"):x.success.light,.6)),F(x.Alert,"warningColor",T(Ye,s?d("palette-warning-light"):x.warning.light,.6)),F(x.Alert,"errorFilledBg",P("palette-error-dark")),F(x.Alert,"infoFilledBg",P("palette-info-dark")),F(x.Alert,"successFilledBg",P("palette-success-dark")),F(x.Alert,"warningFilledBg",P("palette-warning-dark")),F(x.Alert,"errorFilledColor",Ji(()=>x.getContrastText(x.error.dark))),F(x.Alert,"infoFilledColor",Ji(()=>x.getContrastText(x.info.dark))),F(x.Alert,"successFilledColor",Ji(()=>x.getContrastText(x.success.dark))),F(x.Alert,"warningFilledColor",Ji(()=>x.getContrastText(x.warning.dark))),F(x.Alert,"errorStandardBg",T(Ge,s?d("palette-error-light"):x.error.light,.9)),F(x.Alert,"infoStandardBg",T(Ge,s?d("palette-info-light"):x.info.light,.9)),F(x.Alert,"successStandardBg",T(Ge,s?d("palette-success-light"):x.success.light,.9)),F(x.Alert,"warningStandardBg",T(Ge,s?d("palette-warning-light"):x.warning.light,.9)),F(x.Alert,"errorIconColor",P("palette-error-main")),F(x.Alert,"infoIconColor",P("palette-info-main")),F(x.Alert,"successIconColor",P("palette-success-main")),F(x.Alert,"warningIconColor",P("palette-warning-main")),F(x.AppBar,"defaultBg",P("palette-grey-900")),F(x.AppBar,"darkBg",P("palette-background-paper")),F(x.AppBar,"darkColor",P("palette-text-primary")),F(x.Avatar,"defaultBg",P("palette-grey-600")),F(x.Button,"inheritContainedBg",P("palette-grey-800")),F(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),F(x.Chip,"defaultBorder",P("palette-grey-700")),F(x.Chip,"defaultAvatarColor",P("palette-grey-300")),F(x.Chip,"defaultIconColor",P("palette-grey-300")),F(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(x.LinearProgress,"primaryBg",T(Ge,s?d("palette-primary-main"):x.primary.main,.5)),F(x.LinearProgress,"secondaryBg",T(Ge,s?d("palette-secondary-main"):x.secondary.main,.5)),F(x.LinearProgress,"errorBg",T(Ge,s?d("palette-error-main"):x.error.main,.5)),F(x.LinearProgress,"infoBg",T(Ge,s?d("palette-info-main"):x.info.main,.5)),F(x.LinearProgress,"successBg",T(Ge,s?d("palette-success-main"):x.success.main,.5)),F(x.LinearProgress,"warningBg",T(Ge,s?d("palette-warning-main"):x.warning.main,.5)),F(x.Skeleton,"bg",S?T(ks,s?d("palette-text-primary"):x.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),F(x.Slider,"primaryTrack",T(Ge,s?d("palette-primary-main"):x.primary.main,.5)),F(x.Slider,"secondaryTrack",T(Ge,s?d("palette-secondary-main"):x.secondary.main,.5)),F(x.Slider,"errorTrack",T(Ge,s?d("palette-error-main"):x.error.main,.5)),F(x.Slider,"infoTrack",T(Ge,s?d("palette-info-main"):x.info.main,.5)),F(x.Slider,"successTrack",T(Ge,s?d("palette-success-main"):x.success.main,.5)),F(x.Slider,"warningTrack",T(Ge,s?d("palette-warning-light"):x.warning.main,.5));let E=S?T(Ye,s?d("palette-background-default"):x.background.default,.985):yd(x.background.default,.98);F(x.SnackbarContent,"bg",E),F(x.SnackbarContent,"color",Ji(()=>S?o0.text.primary:x.getContrastText(E))),F(x.SpeedDialAction,"fabHoverBg",yd(x.background.paper,.15)),F(x.StepConnector,"border",P("palette-grey-600")),F(x.StepContent,"border",P("palette-grey-600")),F(x.Switch,"defaultColor",P("palette-grey-300")),F(x.Switch,"defaultDisabledColor",P("palette-grey-600")),F(x.Switch,"primaryDisabledColor",T(Ge,s?d("palette-primary-main"):x.primary.main,.55)),F(x.Switch,"secondaryDisabledColor",T(Ge,s?d("palette-secondary-main"):x.secondary.main,.55)),F(x.Switch,"errorDisabledColor",T(Ge,s?d("palette-error-main"):x.error.main,.55)),F(x.Switch,"infoDisabledColor",T(Ge,s?d("palette-info-main"):x.info.main,.55)),F(x.Switch,"successDisabledColor",T(Ge,s?d("palette-success-main"):x.success.main,.55)),F(x.Switch,"warningDisabledColor",T(Ge,s?d("palette-warning-light"):x.warning.main,.55)),F(x.TableCell,"border",T(Ge,ks(s?d("palette-divider"):x.divider,1),.68)),F(x.Tooltip,"bg",T(ks,s?d("palette-grey-700"):x.grey[700],.92))}s||(An(x.background,"default"),An(x.background,"paper"),An(x.common,"background"),An(x.common,"onBackground"),An(x,"divider")),Object.keys(x).forEach(E=>{let D=x[E];E!=="tonalOffset"&&!s&&D&&typeof D=="object"&&(D.main&&F(x[E],"mainChannel",Ac(Td(D.main))),D.light&&F(x[E],"lightChannel",Ac(Td(D.light))),D.dark&&F(x[E],"darkChannel",Ac(Td(D.dark))),D.contrastText&&F(x[E],"contrastTextChannel",Ac(Td(D.contrastText))),E==="text"&&(An(x[E],"primary"),An(x[E],"secondary")),E==="action"&&(D.active&&An(x[E],"active"),D.selected&&An(x[E],"selected")))})}),w=t.reduce((M,x)=>Ke(M,x),w);let k={prefix:n,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:wP(w),enableContrastVars:s},{vars:O,generateThemeVars:A,generateStyleSheets:B}=t0(w,k);return w.vars=O,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([M,x])=>{w[M]=x}),w.generateThemeVars=A,w.generateStyleSheets=B,w.generateSpacing=function(){return Ec(u.spacing,Wa(this))},w.getColorSchemeSelector=r0(l),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={...On,...u?.unstable_sxConfig},w.unstable_sx=function(x){return ao({sx:x,theme:this})},w.internal_cache={},w.toRuntimeSource=ly,w}function RP(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Xa({...r===!0?{}:r.palette,mode:t})})}function en(e={},...t){let{palette:r,cssVariables:o=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:n=r?.mode,...s}=e,a=n||"light",l=i?.[a],c={...i,...r?{[a]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(o===!1){if(!("colorSchemes"in e))return xd(e,...t);let u=r;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));let p=xd({...e,palette:u},...t);return p.defaultColorScheme=a,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},RP(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},RP(p,"light",c.light)),p}return!r&&!("light"in c)&&a==="light"&&(c.light=!0),p0({...s,colorSchemes:c,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}var LH=_(I(),1);var NH=en(),Hc=NH;function Fr(){let e=Zi(Hc);return e[Cr]||e}function IH(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var cy=IH;var zH=e=>cy(e)&&e!=="classes",Le=zH;var FH=Mc({themeId:Cr,defaultTheme:Hc,rootShouldForwardProp:Le}),N=FH;var kP=_(I(),1);var Lae=_(I(),1);var PP=_(R(),1);function d0({theme:e,...t}){let r=Cr in e?e[Cr]:void 0;return(0,PP.jsx)(Lc,{...t,themeId:r?Cr:void 0,theme:r||e})}var HH=_(R(),1),Cd={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};var UH=_(R(),1),{CssVarsProvider:$H,useColorScheme:Kae,getInitColorSchemeScript:Gae}=ty({themeId:Cr,theme:()=>en({cssVariables:!0}),colorSchemeStorageKey:Cd.colorSchemeStorageKey,modeStorageKey:Cd.modeStorageKey,defaultColorScheme:{light:Cd.defaultLightColorScheme,dark:Cd.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Sd(e.palette,e.typography)};return t.unstable_sx=function(o){return ao({sx:o,theme:this})},t}});var EP=$H;var f0=_(R(),1);function uy({theme:e,...t}){let r=kP.useMemo(()=>{if(typeof e=="function")return e;let o=Cr in e?e[Cr]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return r?(0,f0.jsx)(d0,{theme:r,...t}):(0,f0.jsx)(EP,{theme:e,...t})}var K=En;function Za(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}var OP=Za;var fy=_(I(),1);var py=_(I(),1);var MP=_(R(),1);function jH(e){return(0,MP.jsx)(kc,{...e,defaultTheme:Hc,themeId:Cr})}var h0=jH;var DP=_(R(),1);function wd(e){return function(r){return(0,DP.jsx)(h0,{styles:typeof e=="function"?o=>e({theme:o,...r}):e})}}var WH=ey,Y=WH;var Rle=_(I(),1);var VH=_(R(),1);function q(e){return X_(e)}function AP(e){return W("MuiSvgIcon",e)}var Ble=j("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var dy=_(R(),1),qH=e=>{let{color:t,fontSize:r,classes:o}=e,i={root:["root",t!=="inherit"&&`color${K(t)}`,`fontSize${K(r)}`]};return V(i,AP,o)},KH=N("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${K(r.color)}`],t[`fontSize${K(r.fontSize)}`]]}})(Y(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),BP=py.forwardRef(function(t,r){let o=q({props:t,name:"MuiSvgIcon"}),{children:i,className:n,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:f="0 0 24 24",...d}=o,h=py.isValidElement(i)&&i.type==="svg",y={...o,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:h},b={};u||(b.viewBox=f);let m=qH(y);return(0,dy.jsxs)(KH,{as:a,className:H(m.root,n),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...b,...d,...h&&i.props,ownerState:y,children:[h?i.props.children:i,p?(0,dy.jsx)("title",{children:p}):null]})});BP.muiName="SvgIcon";var m0=BP;var NP=_(R(),1);function _e(e,t){function r(o,i){return(0,NP.jsx)(m0,{"data-testid":void 0,ref:i,...o,children:e})}return r.muiName=m0.muiName,fy.memo(fy.forwardRef(r))}function Uc(e,t=166){let r;function o(...i){let n=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(n,t)}return o.clear=()=>{clearTimeout(r)},o}var $c=Uc;var hy=iy;function Qa(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var tn=Qa;function It(e){return e&&e.ownerDocument||document}var rn=It;function ti(e){return It(e).defaultView||window}var on=ti;function Ja(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Bn=fr;var Nn=Eo;var el=_(I(),1);function my(e){let{controlled:t,default:r,name:o,state:i="value"}=e,{current:n}=el.useRef(t!==void 0),[s,a]=el.useState(r),l=n?t:s,c=el.useCallback(u=>{n||a(u)},[]);return[l,c]}var tl=my;var y0=_(I(),1);function GH(e){let t=y0.useRef(e);return fr(()=>{t.current=e}),y0.useRef((...r)=>(0,t.current)(...r)).current}var Er=GH;var ri=Er;var jc=_(I(),1);function Xt(...e){let t=jc.useRef(void 0),r=jc.useCallback(o=>{let i=e.map(n=>{if(n==null)return null;if(typeof n=="function"){let s=n,a=s(o);return typeof a=="function"?a:()=>{s(null)}}return n.current=o,()=>{n.current=null}});return()=>{i.forEach(n=>n?.())}},e);return jc.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=r(o))},e)}var At=Xt;function YH(e,t){let r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Wc(e,t){if(!e)return t;function r(s,a){let l={};return Object.keys(a).forEach(c=>{YH(c,a[c])&&typeof s[c]=="function"&&(l[c]=(...u)=>{s[c](...u),a[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return s=>{let a=typeof t=="function"?t(s):t,l=typeof e=="function"?e({...s,...a}):e,c=H(s?.className,a?.className,l?.className),u=r(l,a);return{...a,...l,...u,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};let o=t,i=r(e,o),n=H(o?.className,e?.className);return{...t,...e,...i,...!!n&&{className:n},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function yy(e,t){if(e==null)return{};var r={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}function gy(e,t){return gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},gy(e,t)}function vy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gy(e,t)}var Pd=_(I()),Ed=_(_y());var g0={disabled:!1};var HP=_(I()),Vc=HP.default.createContext(null);var UP=function(t){return t.scrollTop};var kd="unmounted",rl="exited",ol="entering",Kc="entered",v0="exiting",Ln=(function(e){vy(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=rl,n.appearStatus=ol):l=Kc:o.unmountOnExit||o.mountOnEnter?l=kd:l=rl,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===kd?{status:rl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==ol&&s!==Kc&&(n=ol):(s===ol||s===Kc)&&(n=v0)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===ol){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ed.default.findDOMNode(this);s&&UP(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rl&&this.setState({status:kd})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Ed.default.findDOMNode(this),a],c=l[0],u=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;if(!i&&!s||g0.disabled){this.safeSetState({status:Kc},function(){n.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ol},function(){n.props.onEntering(c,u),n.onTransitionEnd(f,function(){n.safeSetState({status:Kc},function(){n.props.onEntered(c,u)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ed.default.findDOMNode(this);if(!n||g0.disabled){this.safeSetState({status:rl},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:v0},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:rl},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:Ed.default.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===kd)return null;var n=this.props,s=n.children,a=n.in,l=n.mountOnEnter,c=n.unmountOnExit,u=n.appear,p=n.enter,f=n.exit,d=n.timeout,h=n.addEndListener,y=n.onEnter,b=n.onEntering,m=n.onEntered,g=n.onExit,v=n.onExiting,S=n.onExited,C=n.nodeRef,w=yy(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Pd.default.createElement(Vc.Provider,{value:null},typeof s=="function"?s(i,w):Pd.default.cloneElement(Pd.default.Children.only(s),w))},t})(Pd.default.Component);Ln.contextType=Vc;Ln.propTypes={};function qc(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qc,onEntering:qc,onEntered:qc,onExit:qc,onExiting:qc,onExited:qc};Ln.UNMOUNTED=kd;Ln.EXITED=rl;Ln.ENTERING=ol;Ln.ENTERED=Kc;Ln.EXITING=v0;var Od=Ln;function $P(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Md=_(I());var oi=_(I());function Sy(e,t){var r=function(n){return t&&(0,oi.isValidElement)(n)?t(n):n},o=Object.create(null);return e&&oi.Children.map(e,function(i){return i}).forEach(function(i){o[i.key]=r(i)}),o}function JH(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var o=Object.create(null),i=[];for(var n in e)n in t?i.length&&(o[n]=i,i=[]):i.push(n);var s,a={};for(var l in t){if(o[l])for(s=0;s<o[l].length;s++){var c=o[l][s];a[o[l][s]]=r(c)}a[l]=r(l)}for(s=0;s<i.length;s++)a[i[s]]=r(i[s]);return a}function il(e,t,r){return r[t]!=null?r[t]:e.props[t]}function jP(e,t){return Sy(e.children,function(r){return(0,oi.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:il(r,"appear",e),enter:il(r,"enter",e),exit:il(r,"exit",e)})})}function WP(e,t,r){var o=Sy(e.children),i=JH(t,o);return Object.keys(i).forEach(function(n){var s=i[n];if((0,oi.isValidElement)(s)){var a=n in t,l=n in o,c=t[n],u=(0,oi.isValidElement)(c)&&!c.props.in;l&&(!a||u)?i[n]=(0,oi.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:il(s,"exit",e),enter:il(s,"enter",e)}):!l&&a&&!u?i[n]=(0,oi.cloneElement)(s,{in:!1}):l&&a&&(0,oi.isValidElement)(c)&&(i[n]=(0,oi.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:il(s,"exit",e),enter:il(s,"enter",e)}))}}),i}var eU=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tU={component:"div",childFactory:function(t){return t}},b0=(function(e){vy(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=n.handleExited.bind($P(n));return n.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},n}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,n){var s=n.children,a=n.handleExited,l=n.firstRender;return{children:l?jP(i,a):WP(i,s,a),firstRender:!1}},r.handleExited=function(i,n){var s=Sy(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(n),this.mounted&&this.setState(function(a){var l=Fa({},a.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,n=i.component,s=i.childFactory,a=yy(i,["component","childFactory"]),l=this.state.contextValue,c=eU(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,n===null?Md.default.createElement(Vc.Provider,{value:l},c):Md.default.createElement(Vc.Provider,{value:l},Md.default.createElement(n,a,c))},t})(Md.default.Component);b0.propTypes={};b0.defaultProps=tU;var _0=b0;var qP=_(I(),1),VP={};function Gc(e,t){let r=qP.useRef(VP);return r.current===VP&&(r.current=e(t)),r}var KP=_(I(),1),rU=[];function S0(e){KP.useEffect(e,rU)}var x0=class e{constructor(){Fe(this,"currentId",null);Fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Fe(this,"disposeEffect",()=>this.clear)}static create(){return new e}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}};function Ms(){let e=Gc(x0.create).current;return S0(e.disposeEffect),e}var xy=e=>e.scrollTop;function lo(e,t){return r=>{if(t){let o=e.current;r===void 0?t(o):t(o,r)}}}function Ty(e,t,r,o,i,n){let s=e==="exited"&&!t?o:r[e]||r.exited;return i||n?{...s,...i,...n}:s}function Yc(e,t){let{timeout:r,easing:o,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:i.transitionDelay}}function oU(e){return typeof e=="string"}var Ds=oU;function iU(e,t,r){return e===void 0||Ds(e)?t:{...t,ownerState:{...t.ownerState,...r}}}var Dd=iU;function nU(e,t,r){return typeof e=="function"?e(t,r):e}var Ad=nU;function sU(e,t=[]){if(e===void 0)return{};let r={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{r[o]=e[o]}),r}var As=sU;function aU(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}var Cy=aU;function lU(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:o,externalForwardedProps:i,className:n}=e;if(!t){let d=H(r?.className,n,i?.className,o?.className),h={...r?.style,...i?.style,...o?.style},y={...r,...i,...o};return d.length>0&&(y.className=d),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:void 0}}let s=As({...i,...o}),a=Cy(o),l=Cy(i),c=t(s),u=H(c?.className,r?.className,n,i?.className,o?.className),p={...c?.style,...r?.style,...i?.style,...o?.style},f={...c,...r,...l,...a};return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}var Bd=lU;function ee(e,t){let{className:r,elementType:o,ownerState:i,externalForwardedProps:n,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:p={[e]:void 0},...f}=n,d=u[e]||o,h=Ad(p[e],i),{props:{component:y,...b},internalRef:m}=Bd({className:r,...l,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),g=Xt(m,h?.ref,t.ref),v=e==="root"?y||c:y,S=Dd(d,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...b,...v&&!a&&{as:v},...v&&a&&{component:v},ref:g},i);return[d,S]}var YP=_(I(),1);function GP(e){return W("MuiPaper",e)}var ape=j("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var XP=_(R(),1),cU=e=>{let{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return V(n,GP,i)},uU=N("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Y(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),pU=YP.forwardRef(function(t,r){let o=q({props:t,name:"MuiPaper"}),i=Fr(),{className:n,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=o,p={...o,component:s,elevation:a,square:l,variant:c},f=cU(p);return(0,XP.jsx)(uU,{as:s,ownerState:p,className:H(f.root,n),ref:r,...u,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[a],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[a]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Bi("#fff",Fc(a))}, ${Bi("#fff",Fc(a))})`}},...u.style}})}),St=pU;var Ls=_(I(),1);function Bs(e){try{return e.matches(":focus-visible")}catch{}return!1}var Ns=_(I(),1);var ZP=_(I(),1);function T0(e){let{focusableWhenDisabled:t,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:n}=e,s=o&&t!==!1,a=o&&t===!1;return ZP.useMemo(()=>{let c={onKeyDown(u){r&&t&&u.key!=="Tab"&&u.preventDefault()}};return o||(c.tabIndex=i,!n&&r&&(c.tabIndex=t?i:-1)),(n&&(t||s)||!n&&r)&&(c["aria-disabled"]=r),n&&(!t||a)&&(c.disabled=r),c},[o,r,t,s,a,n,i])}var dU={};function C0(e){let{nativeButton:t,nativeButtonProp:r,internalNativeButton:o=t,allowInferredHostMismatch:i=!1,disabled:n,type:s,hasFormAction:a=!1,tabIndex:l=0,focusableWhenDisabled:c,stopEventPropagation:u=!1,onBeforeKeyDown:p,onBeforeKeyUp:f}=e,d=Ns.useRef(null),h=c===!0,y=T0({focusableWhenDisabled:h,disabled:n,isNativeButton:t,tabIndex:l}),b=Ns.useCallback(()=>{let v=d.current;return v==null?t:v.tagName==="BUTTON"?!0:!!(v.tagName==="A"&&v.href)},[t]),m=Ns.useMemo(()=>{let v=h?{}:{tabIndex:n?-1:l};return t?(v.type=s===void 0&&!a?"button":s,h||(v.disabled=n)):(v.role="button",!h&&n&&(v["aria-disabled"]=n)),h?{...v,...y}:v},[n,h,y,a,t,l,s]);return{getButtonProps:Ns.useCallback((v=dU)=>{let{onClick:S,onKeyDown:C,onKeyUp:w,...k}=v;return{...m,...k,onClick:M=>{if(u&&M.stopPropagation(),n){M.preventDefault();return}S?.(M)},onKeyDown:M=>{if(h&&y.onKeyDown(M),!n&&(p?.(M),C?.(M),!(M.target!==M.currentTarget||b()))){if(M.key===" "){M.preventDefault();return}M.key==="Enter"&&(M.preventDefault(),M.currentTarget.click())}},onKeyUp:M=>{n||(f?.(M),w?.(M),M.target===M.currentTarget&&!b()&&M.key===" "&&!M.defaultPrevented&&M.currentTarget.click())}}},[m,n,h,y,b,p,f,u]),rootRef:d}}var wy=_(I(),1);var w0=class e{constructor(){Fe(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new e}static use(){let t=Gc(e.create).current,[r,o]=wy.useState(!1);return t.shouldMount=r,t.setShouldMount=o,wy.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=fU(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}};function Ry(){return w0.use()}function fU(){let e,t,r=new Promise((o,i)=>{e=o,t=i});return r.resolve=e,r.reject=t,r}var ir=_(I(),1);var Py=_(I(),1);var R0=_(R(),1);function hU(e){let{className:t,classes:r,pulsate:o=!1,rippleX:i,rippleY:n,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,p]=Py.useState(!1),f=H(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),d={width:s,height:s,top:-(s/2)+n,left:-(s/2)+i},h=H(r.child,u&&r.childLeaving,o&&r.childPulsate);return!a&&!u&&p(!0),Py.useEffect(()=>{if(!a&&l!=null){let y=setTimeout(l,c);return()=>{clearTimeout(y)}}},[l,a,c]),(0,R0.jsx)("span",{className:f,style:d,children:(0,R0.jsx)("span",{className:h})})}var QP=hU;var mU=j("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ko=mU;var Ey=_(R(),1),P0=550,yU=80,gU=Oi`
|
|
45
45
|
0% {
|
|
46
46
|
transform: scale(0);
|
|
47
47
|
opacity: 0.1;
|
|
@@ -114,7 +114,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
114
114
|
animation-iteration-count: infinite;
|
|
115
115
|
animation-delay: 200ms;
|
|
116
116
|
}
|
|
117
|
-
`,xU=ir.forwardRef(function(t,r){let o=q({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:n={},className:s,...a}=o,[l,c]=ir.useState([]),u=ir.useRef(0),p=ir.useRef(null);ir.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);let f=ir.useRef(!1),d=Ms(),h=ir.useRef(null),y=ir.useRef(null),b=ir.useCallback(S=>{let{pulsate:C,rippleX:w,rippleY:k,rippleSize:O,cb:A}=S;c(B=>[...B,(0,Ey.jsx)(SU,{classes:{ripple:H(n.ripple,ko.ripple),rippleVisible:H(n.rippleVisible,ko.rippleVisible),ripplePulsate:H(n.ripplePulsate,ko.ripplePulsate),child:H(n.child,ko.child),childLeaving:H(n.childLeaving,ko.childLeaving),childPulsate:H(n.childPulsate,ko.childPulsate)},timeout:P0,pulsate:C,rippleX:w,rippleY:k,rippleSize:O},u.current)]),u.current+=1,p.current=A},[n]),m=ir.useCallback((S={},C={},w=()=>{})=>{let{pulsate:k=!1,center:O=i||C.pulsate,fakeElement:A=!1}=C;if(S?.type==="mousedown"&&f.current){f.current=!1;return}S?.type==="touchstart"&&(f.current=!0);let B=A?null:y.current,M=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0},x,P,T;if(O||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)x=Math.round(M.width/2),P=Math.round(M.height/2);else{let{clientX:E,clientY:D}=S.touches&&S.touches.length>0?S.touches[0]:S;x=Math.round(E-M.left),P=Math.round(D-M.top)}if(O)T=Math.sqrt((2*M.width**2+M.height**2)/3),T%2===0&&(T+=1);else{let E=Math.max(Math.abs((B?B.clientWidth:0)-x),x)*2+2,D=Math.max(Math.abs((B?B.clientHeight:0)-P),P)*2+2;T=Math.sqrt(E**2+D**2)}S?.touches?h.current===null&&(h.current=()=>{b({pulsate:k,rippleX:x,rippleY:P,rippleSize:T,cb:w})},d.start(yU,()=>{h.current&&(h.current(),h.current=null)})):b({pulsate:k,rippleX:x,rippleY:P,rippleSize:T,cb:w})},[i,b,d]),g=ir.useCallback(()=>{m({},{pulsate:!0})},[m]),v=ir.useCallback((S,C)=>{if(d.clear(),S?.type==="touchend"&&h.current){h.current(),h.current=null,d.start(0,()=>{v(S,C)});return}h.current=null,c(w=>w.length>0?w.slice(1):w),p.current=C},[d]);return ir.useImperativeHandle(r,()=>({pulsate:g,start:m,stop:v}),[g,m,v]),(0,Ey.jsx)(_U,{className:H(ko.root,n.root,s),ref:y,...a,children:(0,Ey.jsx)(_0,{component:null,exit:!0,children:l})})}),JP=xU;function eE(e){return W("MuiButtonBase",e)}var TU=j("MuiButtonBase",["root","disabled","focusVisible"]),tE=TU;var ky=_(R(),1),CU=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:o,suppressFocusVisible:i,classes:n}=e,a=V({root:["root",t&&"disabled",r&&!i&&"focusVisible"]},eE,n);return r&&!i&&o&&(a.root+=` ${o}`),a},wU=N("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),RU=Ls.forwardRef(function(t,r){let o=q({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:n=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:d,focusableWhenDisabled:h,suppressFocusVisible:y=!1,internalNativeButton:b,LinkComponent:m="a",nativeButton:g,onBlur:v,onClick:S,onContextMenu:C,onDragLeave:w,onFocus:k,onFocusVisible:O,onKeyDown:A,onKeyUp:B,onMouseDown:M,onMouseLeave:x,onMouseUp:P,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:Z,type:re,...Q}=o,fe=!!(Q.href||Q.to),ye=!!Q.formAction,he=l;he==="button"&&fe&&(he=m);let ie=typeof he=="string"?he==="button":b??!1,J=g??ie,le=Ry(),oe=At(le.ref,Z),[se,Oe]=Ls.useState(!1);(c||y)&&se&&Oe(!1);let gt=ri(ht=>{f&&!ht.repeat&&se&&ht.key===" "&&le.stop(ht,()=>{le.start(ht)})}),be=ri(ht=>{f&&ht.key===" "&&se&&!ht.defaultPrevented&&le.stop(ht,()=>{le.pulsate(ht)})}),{getButtonProps:ne,rootRef:dt}=C0({nativeButton:J,nativeButtonProp:g,internalNativeButton:ie,allowInferredHostMismatch:fe||typeof he=="string",disabled:c,type:re,hasFormAction:ye,tabIndex:z,onBeforeKeyDown:gt,onBeforeKeyUp:be}),{onClick:xr,onKeyDown:ft,onKeyUp:Ze,...vt}=ne({onClick:S,onKeyDown:A,onKeyUp:B});Ls.useImperativeHandle(i,()=>({focusVisible:()=>{Oe(!0),dt.current.focus()}}),[dt]);let Ee=le.shouldMount&&!u&&!c;Ls.useEffect(()=>{se&&f&&!u&&le.pulsate()},[u,f,se,le]);let zr=In(le,"start",M,p),ur=In(le,"stop",C,p),Ot=In(le,"stop",w,p),Ki=In(le,"stop",P,p),To=In(le,"stop",ht=>{se&&ht.preventDefault(),x&&x(ht)},p),Ri=In(le,"start",D,p),st=In(le,"stop",T,p),He=In(le,"stop",E,p),bt=In(le,"stop",ht=>{Bs(ht.target)||Oe(!1),v&&v(ht)},!1),Ce=ri(ht=>{dt.current||(dt.current=ht.currentTarget),!y&&Bs(ht.target)&&(Oe(!0),O&&O(ht)),k&&k(ht)}),Kr={};fe&&(Kr.tabIndex=c?-1:z,c&&(Kr["aria-disabled"]=c),Kr.type=re);let Pi=At(r,dt),Ts={...o,centerRipple:n,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:f,suppressFocusVisible:y,tabIndex:z,focusVisible:se},Ma=CU(Ts);return(0,ky.jsxs)(wU,{as:he,className:H(Ma.root,a),ownerState:Ts,onBlur:bt,onClick:xr,onContextMenu:ur,onFocus:Ce,onKeyDown:ft,onKeyUp:Ze,onMouseDown:zr,onMouseLeave:To,onMouseUp:Ki,onDragLeave:Ot,onTouchEnd:st,onTouchMove:He,onTouchStart:Ri,ref:Pi,...fe?Kr:vt,...Q,children:[s,Ee?(0,ky.jsx)(JP,{ref:oe,center:n,...L}):null]})});function In(e,t,r,o=!1){return ri(i=>(r&&r(i),o||e[t](i),!0))}var Bt=RU;var gE=_(I(),1);function PU(e){return typeof e.main=="string"}function EU(e,t=[]){if(!PU(e))return!1;for(let r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function we(e=[]){return([,t])=>t&&EU(t,e)}function rE(e){return W("MuiAlert",e)}var kU=j("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","outlined","standard"]),E0=kU;var Oy=_(I(),1);var iE=_(I(),1);function oE(e){return W("MuiCircularProgress",e)}var
|
|
117
|
+
`,xU=ir.forwardRef(function(t,r){let o=q({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:n={},className:s,...a}=o,[l,c]=ir.useState([]),u=ir.useRef(0),p=ir.useRef(null);ir.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);let f=ir.useRef(!1),d=Ms(),h=ir.useRef(null),y=ir.useRef(null),b=ir.useCallback(S=>{let{pulsate:C,rippleX:w,rippleY:k,rippleSize:O,cb:A}=S;c(B=>[...B,(0,Ey.jsx)(SU,{classes:{ripple:H(n.ripple,ko.ripple),rippleVisible:H(n.rippleVisible,ko.rippleVisible),ripplePulsate:H(n.ripplePulsate,ko.ripplePulsate),child:H(n.child,ko.child),childLeaving:H(n.childLeaving,ko.childLeaving),childPulsate:H(n.childPulsate,ko.childPulsate)},timeout:P0,pulsate:C,rippleX:w,rippleY:k,rippleSize:O},u.current)]),u.current+=1,p.current=A},[n]),m=ir.useCallback((S={},C={},w=()=>{})=>{let{pulsate:k=!1,center:O=i||C.pulsate,fakeElement:A=!1}=C;if(S?.type==="mousedown"&&f.current){f.current=!1;return}S?.type==="touchstart"&&(f.current=!0);let B=A?null:y.current,M=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0},x,P,T;if(O||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)x=Math.round(M.width/2),P=Math.round(M.height/2);else{let{clientX:E,clientY:D}=S.touches&&S.touches.length>0?S.touches[0]:S;x=Math.round(E-M.left),P=Math.round(D-M.top)}if(O)T=Math.sqrt((2*M.width**2+M.height**2)/3),T%2===0&&(T+=1);else{let E=Math.max(Math.abs((B?B.clientWidth:0)-x),x)*2+2,D=Math.max(Math.abs((B?B.clientHeight:0)-P),P)*2+2;T=Math.sqrt(E**2+D**2)}S?.touches?h.current===null&&(h.current=()=>{b({pulsate:k,rippleX:x,rippleY:P,rippleSize:T,cb:w})},d.start(yU,()=>{h.current&&(h.current(),h.current=null)})):b({pulsate:k,rippleX:x,rippleY:P,rippleSize:T,cb:w})},[i,b,d]),g=ir.useCallback(()=>{m({},{pulsate:!0})},[m]),v=ir.useCallback((S,C)=>{if(d.clear(),S?.type==="touchend"&&h.current){h.current(),h.current=null,d.start(0,()=>{v(S,C)});return}h.current=null,c(w=>w.length>0?w.slice(1):w),p.current=C},[d]);return ir.useImperativeHandle(r,()=>({pulsate:g,start:m,stop:v}),[g,m,v]),(0,Ey.jsx)(_U,{className:H(ko.root,n.root,s),ref:y,...a,children:(0,Ey.jsx)(_0,{component:null,exit:!0,children:l})})}),JP=xU;function eE(e){return W("MuiButtonBase",e)}var TU=j("MuiButtonBase",["root","disabled","focusVisible"]),tE=TU;var ky=_(R(),1),CU=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:o,suppressFocusVisible:i,classes:n}=e,a=V({root:["root",t&&"disabled",r&&!i&&"focusVisible"]},eE,n);return r&&!i&&o&&(a.root+=` ${o}`),a},wU=N("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),RU=Ls.forwardRef(function(t,r){let o=q({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:n=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:d,focusableWhenDisabled:h,suppressFocusVisible:y=!1,internalNativeButton:b,LinkComponent:m="a",nativeButton:g,onBlur:v,onClick:S,onContextMenu:C,onDragLeave:w,onFocus:k,onFocusVisible:O,onKeyDown:A,onKeyUp:B,onMouseDown:M,onMouseLeave:x,onMouseUp:P,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:z=0,TouchRippleProps:L,touchRippleRef:Z,type:re,...Q}=o,fe=!!(Q.href||Q.to),ye=!!Q.formAction,he=l;he==="button"&&fe&&(he=m);let ie=typeof he=="string"?he==="button":b??!1,J=g??ie,le=Ry(),oe=At(le.ref,Z),[se,Oe]=Ls.useState(!1);(c||y)&&se&&Oe(!1);let gt=ri(ht=>{f&&!ht.repeat&&se&&ht.key===" "&&le.stop(ht,()=>{le.start(ht)})}),be=ri(ht=>{f&&ht.key===" "&&se&&!ht.defaultPrevented&&le.stop(ht,()=>{le.pulsate(ht)})}),{getButtonProps:ne,rootRef:dt}=C0({nativeButton:J,nativeButtonProp:g,internalNativeButton:ie,allowInferredHostMismatch:fe||typeof he=="string",disabled:c,type:re,hasFormAction:ye,tabIndex:z,onBeforeKeyDown:gt,onBeforeKeyUp:be}),{onClick:xr,onKeyDown:ft,onKeyUp:Ze,...vt}=ne({onClick:S,onKeyDown:A,onKeyUp:B});Ls.useImperativeHandle(i,()=>({focusVisible:()=>{Oe(!0),dt.current.focus()}}),[dt]);let Ee=le.shouldMount&&!u&&!c;Ls.useEffect(()=>{se&&f&&!u&&le.pulsate()},[u,f,se,le]);let zr=In(le,"start",M,p),ur=In(le,"stop",C,p),Ot=In(le,"stop",w,p),Ki=In(le,"stop",P,p),To=In(le,"stop",ht=>{se&&ht.preventDefault(),x&&x(ht)},p),Ri=In(le,"start",D,p),st=In(le,"stop",T,p),He=In(le,"stop",E,p),bt=In(le,"stop",ht=>{Bs(ht.target)||Oe(!1),v&&v(ht)},!1),Ce=ri(ht=>{dt.current||(dt.current=ht.currentTarget),!y&&Bs(ht.target)&&(Oe(!0),O&&O(ht)),k&&k(ht)}),Kr={};fe&&(Kr.tabIndex=c?-1:z,c&&(Kr["aria-disabled"]=c),Kr.type=re);let Pi=At(r,dt),Ts={...o,centerRipple:n,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:f,suppressFocusVisible:y,tabIndex:z,focusVisible:se},Ma=CU(Ts);return(0,ky.jsxs)(wU,{as:he,className:H(Ma.root,a),ownerState:Ts,onBlur:bt,onClick:xr,onContextMenu:ur,onFocus:Ce,onKeyDown:ft,onKeyUp:Ze,onMouseDown:zr,onMouseLeave:To,onMouseUp:Ki,onDragLeave:Ot,onTouchEnd:st,onTouchMove:He,onTouchStart:Ri,ref:Pi,...fe?Kr:vt,...Q,children:[s,Ee?(0,ky.jsx)(JP,{ref:oe,center:n,...L}):null]})});function In(e,t,r,o=!1){return ri(i=>(r&&r(i),o||e[t](i),!0))}var Bt=RU;var gE=_(I(),1);function PU(e){return typeof e.main=="string"}function EU(e,t=[]){if(!PU(e))return!1;for(let r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function we(e=[]){return([,t])=>t&&EU(t,e)}function rE(e){return W("MuiAlert",e)}var kU=j("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","outlined","standard"]),E0=kU;var Oy=_(I(),1);var iE=_(I(),1);function oE(e){return W("MuiCircularProgress",e)}var gde=j("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDisableShrink"]);var Xc=_(R(),1),Ni=44,k0=Oi`
|
|
118
118
|
0% {
|
|
119
119
|
transform: rotate(0deg);
|
|
120
120
|
}
|
|
@@ -141,11 +141,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
141
141
|
animation: ${k0} 1.4s linear infinite;
|
|
142
142
|
`:null,MU=typeof O0!="string"?Ps`
|
|
143
143
|
animation: ${O0} 1.4s ease-in-out infinite;
|
|
144
|
-
`:null,DU=e=>{let{classes:t,variant:r,color:o,disableShrink:i}=e,n={root:["root",r,`color${K(o)}`],svg:["svg"],track:["track"],circle:["circle",i&&"circleDisableShrink"]};return V(n,oE,t)},AU=N("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:OU||{animation:`${k0} 1.4s linear infinite`}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),BU=N("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),NU=N("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,r.disableShrink&&t.circleDisableShrink]}})(Y(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:MU||{animation:`${O0} 1.4s ease-in-out infinite`}}]}))),LU=N("circle",{name:"MuiCircularProgress",slot:"Track"})(Y(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),IU=iE.forwardRef(function(t,r){let o=q({props:t,name:"MuiCircularProgress"}),{className:i,color:n="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:p=0,variant:f="indeterminate",...d}=o,h={...o,color:n,disableShrink:s,size:l,thickness:u,value:p,variant:f,enableTrackSlot:a},y=DU(h),b={},m={},g={};if(f==="determinate"){let v=2*Math.PI*((Ni-u)/2);b.strokeDasharray=v.toFixed(3),g["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*v).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Xc.jsx)(AU,{className:H(y.root,i),style:{width:l,height:l,...m,...c},ownerState:h,ref:r,role:"progressbar",...g,...d,children:(0,Xc.jsxs)(BU,{className:y.svg,ownerState:h,viewBox:`${Ni/2} ${Ni/2} ${Ni} ${Ni}`,children:[a?(0,Xc.jsx)(LU,{className:y.track,ownerState:h,cx:Ni,cy:Ni,r:(Ni-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,(0,Xc.jsx)(NU,{className:y.circle,style:b,ownerState:h,cx:Ni,cy:Ni,r:(Ni-u)/2,fill:"none",strokeWidth:u})]})})}),Is=IU;function nE(e){return W("MuiIconButton",e)}var zU=j("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),M0=zU;var Zc=_(R(),1),FU=e=>{let{classes:t,disabled:r,color:o,edge:i,size:n,loading:s}=e,a={root:["root",s&&"loading",r&&"disabled",o!=="default"&&`color${K(o)}`,i&&`edge${K(i)}`,`size${K(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return V(a,nE,t)},HU=N(Bt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${K(r.color)}`],r.edge&&t[`edge${K(r.edge)}`],t[`size${K(r.size)}`]]}})(Y(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Y(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${M0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${M0.loading}`]:{color:"transparent"}}))),UU=N("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$U=Oy.forwardRef(function(t,r){let o=q({props:t,name:"MuiIconButton"}),{edge:i=!1,children:n,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:p,loading:f=null,loadingIndicator:d,...h}=o,y=Nn(p),b=d??(0,Zc.jsx)(Is,{"aria-labelledby":y,color:"inherit",size:16}),m={...o,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:b,size:u},g=FU(m);return(0,Zc.jsxs)(HU,{id:f?y:p,className:H(g.root,s),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:l||f,ref:r,...h,ownerState:m,children:[typeof f=="boolean"&&(0,Zc.jsx)("span",{className:g.loadingWrapper,style:{display:"contents"},children:(0,Zc.jsx)(UU,{className:g.loadingIndicator,ownerState:m,children:f&&b})}),n]})}),ii=$U;var sE=_(R(),1),aE=_e((0,sE.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined");var lE=_(R(),1),cE=_e((0,lE.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");var uE=_(R(),1),pE=_e((0,uE.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");var dE=_(R(),1),fE=_e((0,dE.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var hE=_(R(),1),mE=_e((0,hE.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Oo=_(R(),1),jU=e=>{let{variant:t,color:r,severity:o,classes:i}=e,n={root:["root",`color${K(r||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return V(n,rE,i)},WU=N(St,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant]]}})(Y(({theme:e})=>{let t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(we(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${E0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(we(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${E0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(we(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),VU=N("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),qU=N("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),KU=N("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yE={success:(0,Oo.jsx)(aE,{fontSize:"inherit"}),warning:(0,Oo.jsx)(cE,{fontSize:"inherit"}),error:(0,Oo.jsx)(pE,{fontSize:"inherit"}),info:(0,Oo.jsx)(fE,{fontSize:"inherit"})},GU=gE.forwardRef(function(t,r){let o=q({props:t,name:"MuiAlert"}),{action:i,children:n,className:s,closeText:a="Close",color:l,icon:c,iconMapping:u=yE,onClose:p,role:f="alert",severity:d="success",slotProps:h={},slots:y={},variant:b="standard",...m}=o,g={...o,color:l,severity:d,variant:b,colorSeverity:l||d},v=jU(g),S={slots:y,slotProps:h},[C,w]=ee("root",{ref:r,shouldForwardComponentProp:!0,className:H(v.root,s),elementType:WU,externalForwardedProps:{...S,...m},ownerState:g,additionalProps:{role:f,elevation:0}}),[k,O]=ee("icon",{className:v.icon,elementType:VU,externalForwardedProps:S,ownerState:g}),[A,B]=ee("message",{className:v.message,elementType:qU,externalForwardedProps:S,ownerState:g}),[M,x]=ee("action",{className:v.action,elementType:KU,externalForwardedProps:S,ownerState:g}),[P,T]=ee("closeButton",{elementType:ii,externalForwardedProps:S,ownerState:g}),[E,D]=ee("closeIcon",{elementType:mE,externalForwardedProps:S,ownerState:g});return(0,Oo.jsxs)(C,{...w,children:[c!==!1?(0,Oo.jsx)(k,{...O,children:c||u[d]||yE[d]}):null,(0,Oo.jsx)(A,{...B,children:n}),i!=null?(0,Oo.jsx)(M,{...x,children:i}):null,i==null&&p?(0,Oo.jsx)(M,{...x,children:(0,Oo.jsx)(P,{size:"small","aria-label":a,title:a,color:"inherit",onClick:p,...T,children:(0,Oo.jsx)(E,{fontSize:"small",...D})})}):null]})}),Qc=GU;var _E=_(I(),1);function vE(e){return W("MuiTypography",e)}var YU=j("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom"]),My=YU;var SE=_(R(),1),XU=e=>{let{align:t,gutterBottom:r,noWrap:o,variant:i,classes:n}=e,s={root:["root",i,e.align!=="inherit"&&`align${K(t)}`,r&&"gutterBottom",o&&"noWrap"]};return V(s,vE,n)},ZU=N("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${K(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom]}})(Y(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${K(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}}]}))),bE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},QU=_E.forwardRef(function(t,r){let o=q({props:t,name:"MuiTypography"}),{color:i,align:n="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,variant:u="body1",variantMapping:p=bE,...f}=o,d={...o,align:n,color:i,className:s,component:a,gutterBottom:l,noWrap:c,variant:u,variantMapping:p},h=a||p[u]||bE[u]||"span",y=XU(d);return(0,SE.jsx)(ZU,{as:h,ref:r,className:H(y.root,s),...f,ownerState:d,style:{...n!=="inherit"&&{"--Typography-textAlign":n},...f.style}})}),X=QU;var CE=_(I(),1);function xE(e){return W("MuiAppBar",e)}var $fe=j("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var wE=_(R(),1),JU=e=>{let{color:t,position:r,classes:o}=e,i={root:["root",`color${K(t)}`,`position${K(r)}`]};return V(i,xE,o)},TE=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,e8=N(St,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${K(r.position)}`],t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(we(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?TE(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?TE(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),t8=CE.forwardRef(function(t,r){let o=q({props:t,name:"MuiAppBar"}),{className:i,color:n="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=o,c={...o,color:n,position:a,enableColorOnDark:s},u=JU(c);return(0,wE.jsx)(e8,{square:!0,component:"header",ownerState:c,elevation:4,className:H(u.root,i,a==="fixed"&&"mui-fixed"),ref:r,...l})}),D0=t8;function r8(e){let{elementType:t,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1,...n}=e,s=i?{}:Ad(r,o),{props:a,internalRef:l}=Bd({...n,externalSlotProps:s}),c=Xt(l,s?.ref,e.additionalProps?.ref);return Dd(t,{...a,ref:c},o)}var zn=r8;var Fn=_(I(),1),PE=_(_y(),1);var RE=_(I(),1);function co(e){return parseInt(RE.version,10)>=19?e?.props?.ref||null:e?.ref||null}function o8(e){return typeof e=="function"?e():e}var i8=Fn.forwardRef(function(t,r){let{children:o,container:i,disablePortal:n=!1}=t,[s,a]=Fn.useState(null),l=Xt(Fn.isValidElement(o)?co(o):null,r);return fr(()=>{n||a(o8(i)||document.body)},[i,n]),fr(()=>{if(s&&!n)return Ja(r,s),()=>{Ja(r,null)}},[r,s,n]),n?Fn.isValidElement(o)?Fn.cloneElement(o,{ref:l}):o:s&&PE.createPortal(o,s)}),A0=i8;var Mo=_(I(),1);var EE=_(R(),1),kE=_e((0,EE.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function OE(e){return W("MuiChip",e)}var n8=j("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","deletable","outlined","filled","avatar","icon","label","deleteIcon","focusVisible"]),We=n8;var Nd=_(R(),1),s8=e=>{let{classes:t,disabled:r,size:o,color:i,onDelete:n,clickable:s,variant:a}=e,l={root:["root",a,r&&"disabled",`size${K(o)}`,`color${K(i)}`,s&&"clickable",n&&"deletable"],label:["label"],avatar:["avatar"],icon:["icon"],deleteIcon:["deleteIcon"]};return V(l,OE,t)},a8=N("div",{name:"MuiChip",slot:"Root",shouldForwardProp:e=>Le(e)&&e!=="focusableWhenDisabled"&&e!=="skipFocusWhenDisabled",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:o,clickable:i,onDelete:n,size:s,variant:a}=r;return[{[`& .${We.avatar}`]:t.avatar},{[`& .${We.icon}`]:t.icon},{[`& .${We.deleteIcon}`]:t.deleteIcon},t.root,t[`size${K(s)}`],t[`color${K(o)}`],i&&t.clickable,n&&t.deletable,t[a]]}})(Y(({theme:e})=>{let t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${We.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${We.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${We.icon}`]:{marginLeft:5,marginRight:-6},[`& .${We.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:"primary"},style:{[`& .${We.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:"secondary"},style:{[`& .${We.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:"small"},style:{height:24,[`& .${We.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${We.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${We.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(we(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${We.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${We.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${We.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(we(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${We.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(we(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${We.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${We.avatar}`]:{marginLeft:4},[`& .${We.icon}`]:{marginLeft:4},[`& .${We.deleteIcon}`]:{marginRight:5}}},{props:{size:"small",variant:"outlined"},style:{[`& .${We.avatar}`]:{marginLeft:2},[`& .${We.icon}`]:{marginLeft:2},[`& .${We.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(we()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${We.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${We.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),l8=N("span",{name:"MuiChip",slot:"Label"})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function ME(e){return e.key==="Backspace"||e.key==="Delete"}var c8=Mo.forwardRef(function(t,r){let o=q({props:t,name:"MuiChip"}),{avatar:i,className:n,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:p,label:f,onClick:d,onDelete:h,onKeyDown:y,onKeyUp:b,size:m="medium",variant:g="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,slots:C={},slotProps:w={},...k}=o,{nativeButton:O,...A}=k,B=Mo.useRef(null),M=At(B,r),x=oe=>{oe.stopPropagation(),h(oe)},P=oe=>{oe.currentTarget===oe.target&&ME(oe)&&oe.preventDefault(),y&&y(oe)},T=oe=>{oe.currentTarget===oe.target&&h&&ME(oe)&&h(oe),b&&b(oe)},E=s!==!1&&d?!0:s,D=E||h?Bt:l||"div",z={...o,component:D,disabled:u,size:m,color:a,iconColor:Mo.isValidElement(p)&&p.props.color||a,onDelete:!!h,clickable:E,variant:g},L=s8(z),Z=D===Bt?{component:l||"div",internalNativeButton:!1,focusVisibleClassName:L.focusVisible,...h&&{disableRipple:!0},...O!==void 0&&{nativeButton:O}}:{},re=null;h&&(re=c&&Mo.isValidElement(c)?Mo.cloneElement(c,{className:H(c.props.className,L.deleteIcon),onClick:x}):(0,Nd.jsx)(kE,{className:L.deleteIcon,onClick:x}));let Q=null;i&&Mo.isValidElement(i)&&(Q=Mo.cloneElement(i,{className:H(L.avatar,i.props.className)}));let fe=null;p&&Mo.isValidElement(p)&&(fe=Mo.cloneElement(p,{className:H(L.icon,p.props.className)}));let ye={slots:C,slotProps:w},[he,ie]=ee("root",{elementType:a8,externalForwardedProps:{...ye,...A},ownerState:z,shouldForwardComponentProp:!0,ref:M,className:H(L.root,n),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:S&&u?-1:v,...Z},getSlotProps:oe=>({...oe,onClick:se=>{oe.onClick?.(se),d?.(se)},onKeyDown:se=>{oe.onKeyDown?.(se),P(se)},onKeyUp:se=>{oe.onKeyUp?.(se),T(se)}})}),[J,le]=ee("label",{elementType:l8,externalForwardedProps:ye,ownerState:z,className:L.label});return(0,Nd.jsxs)(he,{as:D,...ie,children:[Q||fe,(0,Nd.jsx)(J,{...le,children:f}),re]})}),ni=c8;var Hr=_(I(),1);var Do=_(I(),1);var Ld=_(R(),1);function Dy(e){return parseInt(e,10)||0}var u8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function p8(e){for(let t in e)return!1;return!0}function DE(e){return p8(e)||e.outerHeightStyle===0&&!e.overflowing}var d8=Do.forwardRef(function(t,r){let{onChange:o,maxRows:i,minRows:n=1,style:s,value:a,...l}=t,{current:c}=Do.useRef(a!=null),u=Do.useRef(null),p=Xt(r,u),f=Do.useRef(null),d=Do.useRef(null),h=Do.useCallback(()=>{let v=u.current,S=d.current;if(!v||!S)return;let w=ti(v).getComputedStyle(v);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=w.width,S.value=v.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
144
|
+
`:null,DU=e=>{let{classes:t,variant:r,color:o,disableShrink:i}=e,n={root:["root",r,`color${K(o)}`],svg:["svg"],track:["track"],circle:["circle",i&&"circleDisableShrink"]};return V(n,oE,t)},AU=N("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:OU||{animation:`${k0} 1.4s linear infinite`}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),BU=N("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),NU=N("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,r.disableShrink&&t.circleDisableShrink]}})(Y(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:MU||{animation:`${O0} 1.4s ease-in-out infinite`}}]}))),LU=N("circle",{name:"MuiCircularProgress",slot:"Track"})(Y(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),IU=iE.forwardRef(function(t,r){let o=q({props:t,name:"MuiCircularProgress"}),{className:i,color:n="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:p=0,variant:f="indeterminate",...d}=o,h={...o,color:n,disableShrink:s,size:l,thickness:u,value:p,variant:f,enableTrackSlot:a},y=DU(h),b={},m={},g={};if(f==="determinate"){let v=2*Math.PI*((Ni-u)/2);b.strokeDasharray=v.toFixed(3),g["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*v).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Xc.jsx)(AU,{className:H(y.root,i),style:{width:l,height:l,...m,...c},ownerState:h,ref:r,role:"progressbar",...g,...d,children:(0,Xc.jsxs)(BU,{className:y.svg,ownerState:h,viewBox:`${Ni/2} ${Ni/2} ${Ni} ${Ni}`,children:[a?(0,Xc.jsx)(LU,{className:y.track,ownerState:h,cx:Ni,cy:Ni,r:(Ni-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,(0,Xc.jsx)(NU,{className:y.circle,style:b,ownerState:h,cx:Ni,cy:Ni,r:(Ni-u)/2,fill:"none",strokeWidth:u})]})})}),Is=IU;function nE(e){return W("MuiIconButton",e)}var zU=j("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),M0=zU;var Zc=_(R(),1),FU=e=>{let{classes:t,disabled:r,color:o,edge:i,size:n,loading:s}=e,a={root:["root",s&&"loading",r&&"disabled",o!=="default"&&`color${K(o)}`,i&&`edge${K(i)}`,`size${K(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return V(a,nE,t)},HU=N(Bt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${K(r.color)}`],r.edge&&t[`edge${K(r.edge)}`],t[`size${K(r.size)}`]]}})(Y(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Y(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${M0.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${M0.loading}`]:{color:"transparent"}}))),UU=N("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),$U=Oy.forwardRef(function(t,r){let o=q({props:t,name:"MuiIconButton"}),{edge:i=!1,children:n,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:p,loading:f=null,loadingIndicator:d,...h}=o,y=Nn(p),b=d??(0,Zc.jsx)(Is,{"aria-labelledby":y,color:"inherit",size:16}),m={...o,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:b,size:u},g=FU(m);return(0,Zc.jsxs)(HU,{id:f?y:p,className:H(g.root,s),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:l||f,ref:r,...h,ownerState:m,children:[typeof f=="boolean"&&(0,Zc.jsx)("span",{className:g.loadingWrapper,style:{display:"contents"},children:(0,Zc.jsx)(UU,{className:g.loadingIndicator,ownerState:m,children:f&&b})}),n]})}),ii=$U;var sE=_(R(),1),aE=_e((0,sE.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined");var lE=_(R(),1),cE=_e((0,lE.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");var uE=_(R(),1),pE=_e((0,uE.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline");var dE=_(R(),1),fE=_e((0,dE.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined");var hE=_(R(),1),mE=_e((0,hE.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Oo=_(R(),1),jU=e=>{let{variant:t,color:r,severity:o,classes:i}=e,n={root:["root",`color${K(r||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return V(n,rE,i)},WU=N(St,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant]]}})(Y(({theme:e})=>{let t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(we(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${E0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(we(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${E0.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(we(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),VU=N("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),qU=N("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),KU=N("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),yE={success:(0,Oo.jsx)(aE,{fontSize:"inherit"}),warning:(0,Oo.jsx)(cE,{fontSize:"inherit"}),error:(0,Oo.jsx)(pE,{fontSize:"inherit"}),info:(0,Oo.jsx)(fE,{fontSize:"inherit"})},GU=gE.forwardRef(function(t,r){let o=q({props:t,name:"MuiAlert"}),{action:i,children:n,className:s,closeText:a="Close",color:l,icon:c,iconMapping:u=yE,onClose:p,role:f="alert",severity:d="success",slotProps:h={},slots:y={},variant:b="standard",...m}=o,g={...o,color:l,severity:d,variant:b,colorSeverity:l||d},v=jU(g),S={slots:y,slotProps:h},[C,w]=ee("root",{ref:r,shouldForwardComponentProp:!0,className:H(v.root,s),elementType:WU,externalForwardedProps:{...S,...m},ownerState:g,additionalProps:{role:f,elevation:0}}),[k,O]=ee("icon",{className:v.icon,elementType:VU,externalForwardedProps:S,ownerState:g}),[A,B]=ee("message",{className:v.message,elementType:qU,externalForwardedProps:S,ownerState:g}),[M,x]=ee("action",{className:v.action,elementType:KU,externalForwardedProps:S,ownerState:g}),[P,T]=ee("closeButton",{elementType:ii,externalForwardedProps:S,ownerState:g}),[E,D]=ee("closeIcon",{elementType:mE,externalForwardedProps:S,ownerState:g});return(0,Oo.jsxs)(C,{...w,children:[c!==!1?(0,Oo.jsx)(k,{...O,children:c||u[d]||yE[d]}):null,(0,Oo.jsx)(A,{...B,children:n}),i!=null?(0,Oo.jsx)(M,{...x,children:i}):null,i==null&&p?(0,Oo.jsx)(M,{...x,children:(0,Oo.jsx)(P,{size:"small","aria-label":a,title:a,color:"inherit",onClick:p,...T,children:(0,Oo.jsx)(E,{fontSize:"small",...D})})}):null]})}),Qc=GU;var _E=_(I(),1);function vE(e){return W("MuiTypography",e)}var YU=j("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom"]),My=YU;var SE=_(R(),1),XU=e=>{let{align:t,gutterBottom:r,noWrap:o,variant:i,classes:n}=e,s={root:["root",i,e.align!=="inherit"&&`align${K(t)}`,r&&"gutterBottom",o&&"noWrap"]};return V(s,vE,n)},ZU=N("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${K(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom]}})(Y(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${K(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}}]}))),bE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},QU=_E.forwardRef(function(t,r){let o=q({props:t,name:"MuiTypography"}),{color:i,align:n="inherit",className:s,component:a,gutterBottom:l=!1,noWrap:c=!1,variant:u="body1",variantMapping:p=bE,...f}=o,d={...o,align:n,color:i,className:s,component:a,gutterBottom:l,noWrap:c,variant:u,variantMapping:p},h=a||p[u]||bE[u]||"span",y=XU(d);return(0,SE.jsx)(ZU,{as:h,ref:r,className:H(y.root,s),...f,ownerState:d,style:{...n!=="inherit"&&{"--Typography-textAlign":n},...f.style}})}),X=QU;var CE=_(I(),1);function xE(e){return W("MuiAppBar",e)}var jfe=j("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var wE=_(R(),1),JU=e=>{let{color:t,position:r,classes:o}=e,i={root:["root",`color${K(t)}`,`position${K(r)}`]};return V(i,xE,o)},TE=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,e8=N(St,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${K(r.position)}`],t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(we(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?TE(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?TE(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),t8=CE.forwardRef(function(t,r){let o=q({props:t,name:"MuiAppBar"}),{className:i,color:n="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=o,c={...o,color:n,position:a,enableColorOnDark:s},u=JU(c);return(0,wE.jsx)(e8,{square:!0,component:"header",ownerState:c,elevation:4,className:H(u.root,i,a==="fixed"&&"mui-fixed"),ref:r,...l})}),D0=t8;function r8(e){let{elementType:t,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1,...n}=e,s=i?{}:Ad(r,o),{props:a,internalRef:l}=Bd({...n,externalSlotProps:s}),c=Xt(l,s?.ref,e.additionalProps?.ref);return Dd(t,{...a,ref:c},o)}var zn=r8;var Fn=_(I(),1),PE=_(_y(),1);var RE=_(I(),1);function co(e){return parseInt(RE.version,10)>=19?e?.props?.ref||null:e?.ref||null}function o8(e){return typeof e=="function"?e():e}var i8=Fn.forwardRef(function(t,r){let{children:o,container:i,disablePortal:n=!1}=t,[s,a]=Fn.useState(null),l=Xt(Fn.isValidElement(o)?co(o):null,r);return fr(()=>{n||a(o8(i)||document.body)},[i,n]),fr(()=>{if(s&&!n)return Ja(r,s),()=>{Ja(r,null)}},[r,s,n]),n?Fn.isValidElement(o)?Fn.cloneElement(o,{ref:l}):o:s&&PE.createPortal(o,s)}),A0=i8;var Mo=_(I(),1);var EE=_(R(),1),kE=_e((0,EE.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function OE(e){return W("MuiChip",e)}var n8=j("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","deletable","outlined","filled","avatar","icon","label","deleteIcon","focusVisible"]),We=n8;var Nd=_(R(),1),s8=e=>{let{classes:t,disabled:r,size:o,color:i,onDelete:n,clickable:s,variant:a}=e,l={root:["root",a,r&&"disabled",`size${K(o)}`,`color${K(i)}`,s&&"clickable",n&&"deletable"],label:["label"],avatar:["avatar"],icon:["icon"],deleteIcon:["deleteIcon"]};return V(l,OE,t)},a8=N("div",{name:"MuiChip",slot:"Root",shouldForwardProp:e=>Le(e)&&e!=="focusableWhenDisabled"&&e!=="skipFocusWhenDisabled",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:o,clickable:i,onDelete:n,size:s,variant:a}=r;return[{[`& .${We.avatar}`]:t.avatar},{[`& .${We.icon}`]:t.icon},{[`& .${We.deleteIcon}`]:t.deleteIcon},t.root,t[`size${K(s)}`],t[`color${K(o)}`],i&&t.clickable,n&&t.deletable,t[a]]}})(Y(({theme:e})=>{let t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${We.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${We.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${We.icon}`]:{marginLeft:5,marginRight:-6},[`& .${We.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:"primary"},style:{[`& .${We.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:"secondary"},style:{[`& .${We.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:"small"},style:{height:24,[`& .${We.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${We.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${We.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(we(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${We.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${We.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${We.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(we(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${We.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(we(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${We.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${We.avatar}`]:{marginLeft:4},[`& .${We.icon}`]:{marginLeft:4},[`& .${We.deleteIcon}`]:{marginRight:5}}},{props:{size:"small",variant:"outlined"},style:{[`& .${We.avatar}`]:{marginLeft:2},[`& .${We.icon}`]:{marginLeft:2},[`& .${We.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(we()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.alpha((e.vars||e).palette[r].main,.7)}`,[`&.${We.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.focusOpacity)},[`& .${We.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),l8=N("span",{name:"MuiChip",slot:"Label"})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function ME(e){return e.key==="Backspace"||e.key==="Delete"}var c8=Mo.forwardRef(function(t,r){let o=q({props:t,name:"MuiChip"}),{avatar:i,className:n,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:p,label:f,onClick:d,onDelete:h,onKeyDown:y,onKeyUp:b,size:m="medium",variant:g="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,slots:C={},slotProps:w={},...k}=o,{nativeButton:O,...A}=k,B=Mo.useRef(null),M=At(B,r),x=oe=>{oe.stopPropagation(),h(oe)},P=oe=>{oe.currentTarget===oe.target&&ME(oe)&&oe.preventDefault(),y&&y(oe)},T=oe=>{oe.currentTarget===oe.target&&h&&ME(oe)&&h(oe),b&&b(oe)},E=s!==!1&&d?!0:s,D=E||h?Bt:l||"div",z={...o,component:D,disabled:u,size:m,color:a,iconColor:Mo.isValidElement(p)&&p.props.color||a,onDelete:!!h,clickable:E,variant:g},L=s8(z),Z=D===Bt?{component:l||"div",internalNativeButton:!1,focusVisibleClassName:L.focusVisible,...h&&{disableRipple:!0},...O!==void 0&&{nativeButton:O}}:{},re=null;h&&(re=c&&Mo.isValidElement(c)?Mo.cloneElement(c,{className:H(c.props.className,L.deleteIcon),onClick:x}):(0,Nd.jsx)(kE,{className:L.deleteIcon,onClick:x}));let Q=null;i&&Mo.isValidElement(i)&&(Q=Mo.cloneElement(i,{className:H(L.avatar,i.props.className)}));let fe=null;p&&Mo.isValidElement(p)&&(fe=Mo.cloneElement(p,{className:H(L.icon,p.props.className)}));let ye={slots:C,slotProps:w},[he,ie]=ee("root",{elementType:a8,externalForwardedProps:{...ye,...A},ownerState:z,shouldForwardComponentProp:!0,ref:M,className:H(L.root,n),additionalProps:{disabled:E&&u?!0:void 0,tabIndex:S&&u?-1:v,...Z},getSlotProps:oe=>({...oe,onClick:se=>{oe.onClick?.(se),d?.(se)},onKeyDown:se=>{oe.onKeyDown?.(se),P(se)},onKeyUp:se=>{oe.onKeyUp?.(se),T(se)}})}),[J,le]=ee("label",{elementType:l8,externalForwardedProps:ye,ownerState:z,className:L.label});return(0,Nd.jsxs)(he,{as:D,...ie,children:[Q||fe,(0,Nd.jsx)(J,{...le,children:f}),re]})}),ni=c8;var Hr=_(I(),1);var Do=_(I(),1);var Ld=_(R(),1);function Dy(e){return parseInt(e,10)||0}var u8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function p8(e){for(let t in e)return!1;return!0}function DE(e){return p8(e)||e.outerHeightStyle===0&&!e.overflowing}var d8=Do.forwardRef(function(t,r){let{onChange:o,maxRows:i,minRows:n=1,style:s,value:a,...l}=t,{current:c}=Do.useRef(a!=null),u=Do.useRef(null),p=Xt(r,u),f=Do.useRef(null),d=Do.useRef(null),h=Do.useCallback(()=>{let v=u.current,S=d.current;if(!v||!S)return;let w=ti(v).getComputedStyle(v);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=w.width,S.value=v.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
145
145
|
`&&(S.value+=" ");let k=w.boxSizing,O=Dy(w.paddingBottom)+Dy(w.paddingTop),A=Dy(w.borderBottomWidth)+Dy(w.borderTopWidth),B=S.scrollHeight;S.value="x";let M=S.scrollHeight,x=B;n&&(x=Math.max(Number(n)*M,x)),i&&(x=Math.min(Number(i)*M,x)),x=Math.max(x,M);let P=x+(k==="border-box"?O+A:0),T=Math.abs(x-B)<=1;return{outerHeightStyle:P,overflowing:T}},[i,n,t.placeholder]),y=Er(()=>{let v=u.current,S=h();if(!v||!S||DE(S))return!1;let C=S.outerHeightStyle;return f.current!=null&&f.current!==C}),b=Do.useCallback(()=>{let v=u.current,S=h();if(!v||!S||DE(S))return;let C=S.outerHeightStyle;f.current!==C&&(f.current=C,v.style.height=`${C}px`),v.style.overflow=S.overflowing?"hidden":""},[h]),m=Do.useRef(-1);return fr(()=>{let v=Uc(b),S=u?.current;if(!S)return;let C=ti(S);C.addEventListener("resize",v);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(()=>{y()&&(w.unobserve(S),cancelAnimationFrame(m.current),b(),m.current=requestAnimationFrame(()=>{w.observe(S)}))}),w.observe(S)),()=>{v.clear(),cancelAnimationFrame(m.current),C.removeEventListener("resize",v),w&&w.disconnect()}},[h,b,y]),fr(()=>{b()}),(0,Ld.jsxs)(Do.Fragment,{children:[(0,Ld.jsx)("textarea",{value:a,onChange:v=>{c||b();let S=v.target,C=S.value.length,w=S.value.endsWith(`
|
|
146
|
-
`),k=S.selectionStart===C;w&&k&&S.setSelectionRange(C,C),o&&o(v)},ref:p,rows:n,style:s,...l}),(0,Ld.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:{...u8.shadow,...s,paddingTop:0,paddingBottom:0}})]})}),B0=d8;function kr({props:e,states:t,muiFormControl:r}){return t.reduce((o,i)=>(o[i]=e[i],r&&typeof e[i]>"u"&&(o[i]=r[i]),o),{})}var AE=_(I(),1),f8=AE.createContext(void 0),Jc=f8;var BE=_(I(),1);function zt(){return BE.useContext(Jc)}function NE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nl(e,t=!1){return e&&(NE(e.value)&&e.value!==""||t&&NE(e.defaultValue)&&e.defaultValue!=="")}function LE(e){return e.startAdornment}function IE(e){return W("MuiInputBase",e)}var h8=j("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputTypeSearch"]),Li=h8;var sl=_(R(),1),zE,al=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${K(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ll=(e,t)=>{let{ownerState:r}=e;return[t.input,r.type==="search"&&t.inputTypeSearch]},m8=e=>{let{classes:t,color:r,disabled:o,error:i,endAdornment:n,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:p,size:f,startAdornment:d,type:h}=e,y={root:["root",`color${K(r)}`,o&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${K(f)}`,u&&"multiline",d&&"adornedStart",n&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",h==="search"&&"inputTypeSearch",p&&"readOnly"]};return V(y,IE,t)},cl=N("div",{name:"MuiInputBase",slot:"Root",overridesResolver:al})(Y(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ul=N("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ll})(Y(({theme:e})=>{let t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Li.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:n})=>!n.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:n})=>n.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),FE=wd({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),y8=Hr.forwardRef(function(t,r){let o=q({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:n,autoFocus:s,className:a,color:l,defaultValue:c,disabled:u,disableInjectingGlobalStyles:p,endAdornment:f,error:d,fullWidth:h=!1,id:y,inputComponent:b="input",inputProps:m={},inputRef:g,margin:v,maxRows:S,minRows:C,multiline:w=!1,name:k,onBlur:O,onChange:A,onClick:B,onFocus:M,onKeyDown:x,onKeyUp:P,placeholder:T,readOnly:E,renderSuffix:D,rows:z,size:L,slotProps:Z={},slots:re={},startAdornment:Q,type:fe="text",value:ye,...he}=o,ie=m.value!=null?m.value:ye,{current:J}=Hr.useRef(ie!=null),le=Hr.useRef(),oe=Hr.useCallback(Ce=>{},[]),se=At(le,g,m.ref,oe),[Oe,gt]=Hr.useState(!1),be=zt(),ne=kr({props:o,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=be?be.focused:Oe,Hr.useEffect(()=>{!be&&u&&Oe&&(gt(!1),O&&O())},[be,u,Oe,O]);let dt=be&&be.onFilled,xr=be&&be.onEmpty,ft=Hr.useCallback(Ce=>{nl(Ce)?dt&&dt():xr&&xr()},[dt,xr]);Bn(()=>{J&&ft({value:ie})},[ie,ft,J]);let Ze=Ce=>{M&&M(Ce),m.onFocus&&m.onFocus(Ce),be&&be.onFocus?be.onFocus(Ce):gt(!0)},vt=Ce=>{O&&O(Ce),m.onBlur&&m.onBlur(Ce),be&&be.onBlur?be.onBlur(Ce):gt(!1)},Ee=(Ce,...Kr)=>{if(!J){let Pi=Ce.target||le.current;if(Pi==null)throw new Error(pr(1));ft({value:Pi.value})}m.onChange&&m.onChange(Ce,...Kr),A&&A(Ce,...Kr)};Hr.useEffect(()=>{ft(le.current)},[]);let zr=Ce=>{le.current&&Ce.currentTarget===Ce.target&&le.current.focus(),B&&B(Ce)},ur=b,Ot=m;w&&ur==="input"&&(z?Ot={type:void 0,minRows:z,maxRows:z,...Ot}:Ot={type:void 0,maxRows:S,minRows:C,...Ot},ur=B0);let Ki=Ce=>{ft(Ce.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};Hr.useEffect(()=>{be&&be.setAdornedStart(!!Q)},[be,Q]);let To={...o,color:ne.color||"primary",disabled:ne.disabled,endAdornment:f,error:ne.error,focused:ne.focused,formControl:be,fullWidth:h,hiddenLabel:ne.hiddenLabel,multiline:w,size:ne.size,startAdornment:Q,type:fe},Ri=m8(To),st=re.root||cl,He=Z.root||{},bt=re.input||ul;return Ot={...Ot,...Z.input},(0,sl.jsxs)(Hr.Fragment,{children:[!p&&typeof FE=="function"&&(zE||(zE=(0,sl.jsx)(FE,{}))),(0,sl.jsxs)(st,{...He,ref:r,onClick:zr,...he,...!Ds(st)&&{ownerState:{...To,...He.ownerState}},className:H(Ri.root,He.className,a,E&&"MuiInputBase-readOnly"),children:[Q,(0,sl.jsx)(Jc.Provider,{value:null,children:(0,sl.jsx)(bt,{"aria-invalid":ne.error,"aria-describedby":i,autoComplete:n,autoFocus:s,defaultValue:c,disabled:ne.disabled,id:y,onAnimationStart:Ki,name:k,placeholder:T,readOnly:E,required:ne.required,rows:z,value:ie,onKeyDown:x,onKeyUp:P,type:fe,...Ot,...!Ds(bt)&&{as:ur,ownerState:{...To,...Ot.ownerState}},ref:se,className:H(Ri.input,Ot.className,E&&"MuiInputBase-readOnly"),onBlur:vt,onChange:Ee,onFocus:Ze})}),f,D?D({...ne,startAdornment:Q}):null]})]})}),pl=y8;function HE(e){return W("MuiInput",e)}var g8={...Li,...j("MuiInput",["root","underline","input"])},eu=g8;function UE(e){return W("MuiOutlinedInput",e)}var v8={...Li,...j("MuiOutlinedInput",["root","notchedOutline","input"])},Ii=v8;function $E(e){return W("MuiFilledInput",e)}var b8={...Li,...j("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zs=b8;var jE=_(R(),1),WE=_e((0,jE.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var KE=_(I(),1);var tu=_(I(),1);var VE=_(R(),1),_8={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},S8={opacity:0,visibility:"hidden"},x8=tu.forwardRef(function(t,r){let o=Fr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:p,onEntering:f,onExit:d,onExited:h,onExiting:y,style:b,timeout:m=i,...g}=t,v=tu.useRef(null),S=At(v,co(a),r),C=lo(v,f),w=lo(v,(x,P)=>{xy(x);let T=Yc({style:b,timeout:m,easing:l},{mode:"enter"});x.style.transition=o.transitions.create("opacity",T),u&&u(x,P)}),k=lo(v,p),O=lo(v,y),A=lo(v,x=>{let P=Yc({style:b,timeout:m,easing:l},{mode:"exit"});x.style.transition=o.transitions.create("opacity",P),d&&d(x)}),B=lo(v,x=>{x.style.transition="",h&&h(x)});return(0,VE.jsx)(Od,{appear:s,in:c,nodeRef:v,onEnter:w,onEntered:k,onEntering:C,onExit:A,onExited:B,onExiting:O,addEndListener:x=>{n&&n(v.current,x)},timeout:m,...g,children:(x,{ownerState:P,...T})=>{let E=Ty(x,c,_8,S8,b,a.props.style);return tu.cloneElement(a,{style:E,ref:S,...T})}})}),Id=x8;function qE(e){return W("MuiBackdrop",e)}var Yme=j("MuiBackdrop",["root","invisible"]);var N0=_(R(),1),T8=e=>{let{classes:t,invisible:r}=e;return V({root:["root",r&&"invisible"]},qE,t)},C8=N("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),w8=KE.forwardRef(function(t,r){let o=q({props:t,name:"MuiBackdrop"}),{children:i,className:n,component:s="div",invisible:a=!1,open:l,slotProps:c={},slots:u={},transitionDuration:p,...f}=o,d={...o,component:s,invisible:a},h=T8(d),y={component:s,slots:u,slotProps:c},[b,m]=ee("root",{elementType:C8,externalForwardedProps:y,className:H(h.root,n),ownerState:d}),[g,v]=ee("transition",{elementType:Id,externalForwardedProps:y,ownerState:d});return(0,N0.jsx)(g,{in:l,timeout:p,...f,...v,children:(0,N0.jsx)(b,{...m,ref:r,children:i})})}),zd=w8;var R8=j("MuiBox",["root"]),GE=R8;var P8=en(),E8=pd({themeId:Cr,defaultTheme:P8,defaultClassName:GE.root,generateClassName:Oc.generate}),de=E8;var Fd=_(I(),1);function YE(e){return W("MuiButton",e)}var k8=j("MuiButton",["root","text","outlined","contained","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Fs=k8;var XE=_(I(),1),O8=XE.createContext({}),ZE=O8;var QE=_(I(),1),M8=QE.createContext(void 0),JE=M8;var nn=_(R(),1),D8=e=>{let{color:t,disableElevation:r,fullWidth:o,size:i,variant:n,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",n,`size${K(i)}`,`color${K(t)}`,r&&"disableElevation",o&&"fullWidth",s&&`loadingPosition${K(a)}`],startIcon:["icon","startIcon"],endIcon:["icon","endIcon"],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=V(c,YE,l);return{...l,...u}},tk=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],A8=N(Bt,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${K(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Y(({theme:e})=>{let t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Fs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Fs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Fs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Fs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(we()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Fs.loading}`]:{color:"transparent"}}}]}})),B8=N("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...tk]})),N8=N("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...tk]})),L8=N("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ek=N("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),I8=Fd.forwardRef(function(t,r){let o=Fd.useContext(ZE),i=Fd.useContext(JE),n=Qi(o,t),s=q({props:n,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:d=!1,endIcon:h,focusVisibleClassName:y,fullWidth:b=!1,id:m,loading:g=null,loadingIndicator:v,loadingPosition:S="center",size:C="medium",startIcon:w,type:k,variant:O="text",...A}=s,B=Nn(m),M=v??(0,nn.jsx)(Is,{"aria-labelledby":B,color:"inherit",size:16}),x={...s,color:l,component:c,disabled:p,disableElevation:f,disableFocusRipple:d,fullWidth:b,loading:g,loadingIndicator:M,loadingPosition:S,size:C,type:k,variant:O},P=D8(x),T=(w||g&&S==="start")&&(0,nn.jsx)(B8,{className:P.startIcon,ownerState:x,children:w||(0,nn.jsx)(ek,{className:P.loadingIconPlaceholder,ownerState:x})}),E=(h||g&&S==="end")&&(0,nn.jsx)(N8,{className:P.endIcon,ownerState:x,children:h||(0,nn.jsx)(ek,{className:P.loadingIconPlaceholder,ownerState:x})}),D=i||"",z=typeof g=="boolean"?(0,nn.jsx)("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&(0,nn.jsx)(L8,{className:P.loadingIndicator,ownerState:x,children:M})}):null;return(0,nn.jsxs)(A8,{ownerState:x,className:H(o.className,P.root,u,D),component:c,disabled:p||g,focusRipple:!d,focusVisibleClassName:H(P.focusVisible,y),ref:r,internalNativeButton:!0,type:k,id:g?B:m,...A,classes:P,children:[T,S!=="end"&&z,a,S==="end"&&z,E]})}),Re=I8;var Hd=_(I(),1);var ok=_(I(),1);function rk(e){return W("PrivateSwitchBase",e)}var Kye=j("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var Ay=_(R(),1),z8=e=>{let{classes:t,checked:r,disabled:o,edge:i}=e,n={root:["root",r&&"checked",o&&"disabled",i&&`edge${K(i)}`],input:["input"]};return V(n,rk,t)},F8=N(Bt,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),H8=N("input",{name:"MuiSwitchBase",shouldForwardProp:Le})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),U8=ok.forwardRef(function(t,r){let{autoFocus:o,checked:i,checkedIcon:n,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:p,name:f,onBlur:d,onChange:h,onFocus:y,readOnly:b,required:m=!1,tabIndex:g,type:v,value:S,slots:C={},slotProps:w={},...k}=t,{nativeButton:O,...A}=k,[B,M]=tl({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),x=zt(),P=ie=>{y&&y(ie),x&&x.onFocus&&x.onFocus(ie)},T=ie=>{d&&d(ie),x&&x.onBlur&&x.onBlur(ie)},E=ie=>{if(ie.nativeEvent.defaultPrevented||b)return;let J=ie.target.checked;M(J),h&&h(ie,J)},D=a;x&&typeof D>"u"&&(D=x.disabled);let z=v==="checkbox"||v==="radio",L={...t,checked:B,disabled:D,disableFocusRipple:l,edge:c},Z=z8(L),re={slots:C,slotProps:w},[Q,fe]=ee("root",{ref:r,elementType:F8,className:Z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...re,component:"span",...A},getSlotProps:ie=>({...ie,onFocus:J=>{ie.onFocus?.(J),P(J)},onBlur:J=>{ie.onBlur?.(J),T(J)}}),ownerState:L,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null}}),[ye,he]=ee("input",{elementType:H8,className:Z.input,externalForwardedProps:re,getSlotProps:ie=>({...ie,onChange:J=>{ie.onChange?.(J),E(J)}}),ownerState:L,additionalProps:{autoFocus:o,checked:i,defaultChecked:s,disabled:D,id:z?p:void 0,name:f,readOnly:b,required:m,tabIndex:g,type:v,...v==="checkbox"&&S===void 0?{}:{value:S}}});return(0,Ay.jsxs)(Q,{...fe,children:[(0,Ay.jsx)(ye,{...he}),B?n:u]})}),ru=U8;var ik=_(R(),1),nk=_e((0,ik.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");var sk=_(R(),1),ak=_e((0,sk.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");var lk=_(R(),1),ck=_e((0,lk.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function uk(e){return W("MuiCheckbox",e)}var $8=j("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),By=$8;var Ud=_(R(),1),j8=e=>{let{classes:t,indeterminate:r,color:o,size:i}=e,n={root:["root",r&&"indeterminate",`color${K(o)}`,`size${K(i)}`]},s=V(n,uk,t);return{...t,...s}},W8=N(ru,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${K(r.size)}`],r.color!=="default"&&t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{[`&.${By.checked}, &.${By.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${By.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),V8=(0,Ud.jsx)(ak,{}),q8=(0,Ud.jsx)(nk,{}),K8=(0,Ud.jsx)(ck,{}),G8=Hd.forwardRef(function(t,r){let o=q({props:t,name:"MuiCheckbox"}),{checkedIcon:i=V8,color:n="primary",icon:s=q8,indeterminate:a=!1,indeterminateIcon:l=K8,size:c="medium",disableRipple:u=!1,className:p,slots:f={},slotProps:d={},...h}=o,y=a?l:s,b=a?l:i,m={...o,disableRipple:u,color:n,indeterminate:a,size:c},g=j8(m),v=d.input,[S,C]=ee("root",{ref:r,elementType:W8,className:H(g.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:d,...h},ownerState:m,additionalProps:{type:"checkbox",icon:Hd.cloneElement(y,{fontSize:y.props.fontSize??c}),checkedIcon:Hd.cloneElement(b,{fontSize:b.props.fontSize??c}),disableRipple:u,slots:f,slotProps:{input:Wc(typeof v=="function"?v(m):v,{"data-indeterminate":a})}}});return(0,Ud.jsx)(S,{...C,classes:g})}),L0=G8;var zi=_(I(),1);function pk(e){return e.substring(2).toLowerCase()}function Y8(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function I0(e){let{children:t,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:n="onTouchEnd"}=e,s=zi.useRef(!1),a=zi.useRef(null),l=zi.useRef(!1),c=zi.useRef(!1);zi.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);let u=Xt(co(t),a),p=Er(h=>{let y=c.current;c.current=!1;let b=It(a.current);if(!l.current||!a.current||"clientX"in h&&Y8(h,b))return;if(s.current){s.current=!1;return}let m;h.composedPath?m=h.composedPath().includes(a.current):m=!b.documentElement.contains(h.target)||a.current.contains(h.target),!m&&(r||!y)&&i(h)}),f=h=>y=>{c.current=!0;let b=t.props[h];b&&b(y)},d={ref:u};return n!==!1&&(d[n]=f(n)),zi.useEffect(()=>{if(n!==!1){let h=pk(n),y=It(a.current),b=()=>{s.current=!0};return y.addEventListener(h,p),y.addEventListener("touchmove",b),()=>{y.removeEventListener(h,p),y.removeEventListener("touchmove",b)}}},[p,n]),o!==!1&&(d[o]=f(o)),zi.useEffect(()=>{if(o!==!1){let h=pk(o),y=It(a.current);return y.addEventListener(h,p),()=>{y.removeEventListener(h,p)}}},[p,o]),zi.cloneElement(t,d)}var X8=oy({createStyledComponent:N("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`maxWidth${K(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>q({props:e,name:"MuiContainer"})}),z0=X8;var dk=_(I(),1);var $d=_(R(),1),F0=typeof wd({})=="function",Z8=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Q8=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),fk=(e,t=!1)=>{let r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([n,s])=>{let a=e.getColorSchemeSelector(n);a.startsWith("@")?r[a]={":root":{colorScheme:s.palette?.mode}}:r[a.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let o={html:Z8(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Q8(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(o=[o,i]),o},Ny="mui-ecs",J8=e=>{let t=fk(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${Ny})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,i])=>{let n=e.getColorSchemeSelector(o);n.startsWith("@")?r[n]={[`:root:not(:has(.${Ny}))`]:{colorScheme:i.palette?.mode}}:r[n.replace(/\s*&/,"")]={[`&:not(:has(.${Ny}))`]:{colorScheme:i.palette?.mode}}}),t},e$=wd(F0?({theme:e,enableColorScheme:t})=>fk(e,t):({theme:e})=>J8(e));function t$(e){let t=q({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:o=!1}=t;return(0,$d.jsxs)(dk.Fragment,{children:[F0&&(0,$d.jsx)(e$,{enableColorScheme:o}),!F0&&!o&&(0,$d.jsx)("span",{className:Ny,style:{display:"none"}}),r]})}var Ly=t$;var au=_(I(),1);function ou(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function r$(e){let t=It(e);return t.body===e?ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function iu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hk(e){return parseFloat(ti(e).getComputedStyle(e).paddingRight)||0}function o$(e){let r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function mk(e,t,r,o,i){let n=[t,r,...o];[].forEach.call(e.children,s=>{let a=!n.includes(s),l=!o$(s);a&&l&&iu(s,i)})}function H0(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function i$(e,t){let r=[],o=e.container;if(!t.disableScrollLock){if(r$(o)){let s=ou(ti(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${hk(o)+s}px`;let a=It(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${hk(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=It(o).body;else{let s=o.parentElement,a=ti(o);n=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function n$(e){let t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}var Iy=class{constructor(){this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&iu(t.modalRef,!1);let i=n$(r);mk(r,t.mount,t.modalRef,i,!0);let n=H0(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){let o=H0(this.containers,n=>n.modals.includes(t)),i=this.containers[o];i.restore||(i.restore=i$(i,r))}remove(t,r=!0){let o=this.modals.indexOf(t);if(o===-1)return o;let i=H0(this.containers,s=>s.modals.includes(t)),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&iu(t.modalRef,r),mk(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{let s=n.modals[n.modals.length-1];s.modalRef&&iu(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};var Fy=_(I(),1);var Or=_(I(),1);var jd=_(R(),1),s$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function a$(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function l$(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;let t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function c$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||l$(e))}function u$(e){let t=[],r=[];return Array.from(e.querySelectorAll(s$)).forEach((o,i)=>{let n=a$(o);n===-1||!c$(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function p$(){return!0}function d$(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=u$,isEnabled:s=p$,open:a}=e,l=Or.useRef(!1),c=Or.useRef(null),u=Or.useRef(null),p=Or.useRef(null),f=Or.useRef(null),d=Or.useRef(!1),h=Or.useRef(null),y=Xt(co(t),h),b=Or.useRef(null);Or.useEffect(()=>{!a||!h.current||(d.current=!r)},[r,a]),Or.useEffect(()=>{if(!a||!h.current)return;let v=It(h.current),S=tn(v);return h.current.contains(S)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),d.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),Or.useEffect(()=>{if(!a||!h.current)return;let v=It(h.current),S=k=>{if(b.current=k,o||!s()||k.key!=="Tab")return;tn(v)===h.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},C=()=>{let k=h.current;if(k===null)return;let O=tn(v);if(!v.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(O)||o&&O!==c.current&&O!==u.current)return;if(O!==f.current)f.current=null;else if(f.current!==null)return;if(!d.current)return;let A=[];if((O===c.current||O===u.current)&&(A=n(h.current)),A.length>0){let B=!!(b.current?.shiftKey&&b.current?.key==="Tab"),M=A[0],x=A[A.length-1];typeof M!="string"&&typeof x!="string"&&(B?x.focus():M.focus())}else k.focus()};v.addEventListener("focusin",C),v.addEventListener("keydown",S,!0);let w=setInterval(()=>{let k=tn(v);k&&k.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),v.removeEventListener("focusin",C),v.removeEventListener("keydown",S,!0)}},[r,o,i,s,a,n]);let m=v=>{p.current===null&&(p.current=v.relatedTarget),d.current=!0,f.current=v.target;let S=t.props.onFocus;S&&S(v)},g=v=>{p.current===null&&(p.current=v.relatedTarget),d.current=!0};return(0,jd.jsxs)(Or.Fragment,{children:[(0,jd.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),Or.cloneElement(t,{ref:y,onFocus:m}),(0,jd.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}var U0=d$;var Fi=_(I(),1);function f$(e){return typeof e=="function"?e():e}function h$(e){return e?e.props.hasOwnProperty("in"):!1}var yk=()=>{},zy=new Iy;function m$(e){let{container:t,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:n,children:s,onClose:a,open:l,rootRef:c}=e,u=Fi.useRef({}),p=Fi.useRef(null),f=Fi.useRef(null),d=Xt(f,c),[h,y]=Fi.useState(!l),b=h$(s),m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);let g=()=>It(p.current),v=()=>(u.current.modalRef=f.current,u.current.mount=p.current,u.current),S=()=>{zy.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Er(()=>{let T=f$(t)||g().body;zy.add(v(),T),f.current&&S()}),w=()=>zy.isTopModal(v()),k=Er(T=>{p.current=T,T&&(l&&w()?S():f.current&&iu(f.current,m))}),O=Fi.useCallback(()=>{zy.remove(v(),m)},[m]);Fi.useEffect(()=>()=>{O()},[O]),Fi.useEffect(()=>{l?C():(!b||!o)&&O()},[l,O,b,o,C]);let A=T=>E=>{T.onKeyDown?.(E),!(E.key!=="Escape"||E.which===229||!w())&&(E.stopPropagation(),a&&a(E,"escapeKeyDown"))},B=T=>E=>{T.onClick?.(E),E.target===E.currentTarget&&a&&a(E,"backdropClick")};return{getRootProps:(T={})=>{let E=As(e);delete E.onTransitionEnter,delete E.onTransitionExited;let D={...E,...T};return{role:"presentation",...D,onKeyDown:A(D),ref:d}},getBackdropProps:(T={})=>{let E=T;return{"aria-hidden":!0,...E,onClick:B(E),open:l}},getTransitionProps:()=>{let T=()=>{y(!1),i&&i()},E=()=>{y(!0),n&&n(),o&&O()};return{onEnter:Za(T,s?.props.onEnter??yk),onExited:Za(E,s?.props.onExited??yk)}},rootRef:d,portalRef:k,isTopModal:w,exited:h,hasTransition:b}}var gk=m$;function vk(e){return W("MuiModal",e)}var xve=j("MuiModal",["root","hidden","backdrop"]);var nu=_(R(),1),y$=e=>{let{open:t,exited:r,classes:o}=e;return V({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vk,o)},g$=N("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Y(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),v$=N(zd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),b$=Fy.forwardRef(function(t,r){let o=q({name:"MuiModal",props:t}),{classes:i,className:n,closeAfterTransition:s=!1,children:a,container:l,component:c,disableAutoFocus:u=!1,disableEnforceFocus:p=!1,disablePortal:f=!1,disableRestoreFocus:d=!1,disableScrollLock:h=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:m,onTransitionEnter:g,onTransitionExited:v,open:S,slotProps:C={},slots:w={},theme:k,...O}=o,A={...o,closeAfterTransition:s,disableAutoFocus:u,disableEnforceFocus:p,disablePortal:f,disableRestoreFocus:d,disableScrollLock:h,hideBackdrop:y,keepMounted:b},{getRootProps:B,getBackdropProps:M,getTransitionProps:x,portalRef:P,isTopModal:T,exited:E,hasTransition:D}=gk({...A,rootRef:r}),z={...A,exited:E},L=y$(z),Z={};if(a.props.tabIndex===void 0&&(Z.tabIndex="-1"),D){let{onEnter:ie,onExited:J}=x();Z.onEnter=ie,Z.onExited=J}let re={slots:w,slotProps:C},[Q,fe]=ee("root",{ref:r,elementType:g$,externalForwardedProps:{...re,...O,component:c},getSlotProps:B,ownerState:z,className:H(n,L?.root,!z.open&&z.exited&&L?.hidden)}),[ye,he]=ee("backdrop",{elementType:v$,externalForwardedProps:re,shouldForwardComponentProp:!0,getSlotProps:ie=>M({...ie,onClick:J=>{ie?.onClick&&ie.onClick(J)}}),className:L?.backdrop,ownerState:z});return!b&&!S&&(!D||E)?null:(0,nu.jsx)(A0,{ref:P,container:l,disablePortal:f,children:(0,nu.jsxs)(Q,{...fe,children:[y?null:(0,nu.jsx)(ye,{...he}),(0,nu.jsx)(U0,{disableEnforceFocus:p,disableAutoFocus:u,disableRestoreFocus:d,isEnabled:T,open:S,children:Fy.cloneElement(a,Z)})]})})}),Wd=b$;function bk(e){return W("MuiDialog",e)}var Uve=j("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var _k=_(I(),1),_$=_k.createContext({}),Hy=_$;var su=_(R(),1),S$=N(zd,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),x$=e=>{let{classes:t,scroll:r,maxWidth:o,fullWidth:i,fullScreen:n}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${K(r)}`],paper:["paper",`paperWidth${K(String(o))}`,i&&"paperFullWidth",n&&"paperFullScreen"]};return V(s,bk,t)},T$=N(Wd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),C$=N("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t[`scroll${K(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),w$=N(St,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`paperWidth${K(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Y(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:"xs",scroll:"body"},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t,scroll:"body"},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0}},{props:({ownerState:t})=>t.fullScreen&&t.scroll==="body",style:{margin:0,maxWidth:"100%"}}]}))),R$=au.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialog"}),i=Fr(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,children:c,className:u,fullScreen:p=!1,fullWidth:f=!1,maxWidth:d="sm",onClick:h,onClose:y,open:b,PaperComponent:m=St,role:g="dialog",scroll:v="paper",slots:S={},slotProps:C={},transitionDuration:w=n,...k}=o,O={...o,fullScreen:p,fullWidth:f,maxWidth:d,scroll:v},A=x$(O),B=au.useRef(),M=J=>{B.current=J.target===J.currentTarget},x=J=>{h&&h(J),B.current&&(B.current=null,y&&y(J,"backdropClick"))},P=Eo(a),T=au.useMemo(()=>({titleId:P}),[P]),E={slots:S,slotProps:C},[D,z]=ee("root",{elementType:T$,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:O,className:H(A.root,u),ref:r}),[L,Z]=ee("backdrop",{elementType:S$,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:O,className:A.backdrop}),[re,Q]=ee("paper",{elementType:w$,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:O,className:A.paper}),[fe,ye]=ee("container",{elementType:C$,externalForwardedProps:E,ownerState:O,className:A.container}),[he,ie]=ee("transition",{elementType:Id,externalForwardedProps:E,ownerState:O,additionalProps:{appear:!0,in:b,timeout:w,role:"presentation"}});return(0,su.jsx)(D,{closeAfterTransition:!0,slots:{backdrop:L},slotProps:{backdrop:{transitionDuration:w,...Z}},onClose:y,open:b,onClick:x,...z,...k,children:(0,su.jsx)(he,{...ie,children:(0,su.jsx)(fe,{onMouseDown:M,...ye,children:(0,su.jsx)(re,{as:m,elevation:24,role:g,"aria-describedby":s,"aria-labelledby":P,"aria-modal":l,...Q,children:(0,su.jsx)(Hy.Provider,{value:T,children:c})})})})})}),lu=R$;var xk=_(I(),1);function Sk(e){return W("MuiDialogActions",e)}var ube=j("MuiDialogActions",["root","spacing"]);var Tk=_(R(),1),P$=e=>{let{classes:t,disableSpacing:r}=e;return V({root:["root",!r&&"spacing"]},Sk,t)},E$=N("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),k$=xk.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:n=!1,...s}=o,a={...o,disableSpacing:n},l=P$(a);return(0,Tk.jsx)(E$,{className:H(l.root,i),ownerState:a,ref:r,...s})}),cu=k$;var Pk=_(I(),1);function Ck(e){return W("MuiDialogContent",e)}var Tbe=j("MuiDialogContent",["root","dividers"]);function wk(e){return W("MuiDialogTitle",e)}var O$=j("MuiDialogTitle",["root"]),Rk=O$;var Ek=_(R(),1),M$=e=>{let{classes:t,dividers:r}=e;return V({root:["root",r&&"dividers"]},Ck,t)},D$=N("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Y(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Rk.root} + &`]:{paddingTop:0}}}]}))),A$=Pk.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogContent"}),{className:i,dividers:n=!1,...s}=o,a={...o,dividers:n},l=M$(a);return(0,Ek.jsx)(D$,{className:H(l.root,i),ownerState:a,ref:r,...s})}),uu=A$;var Ok=_(I(),1);function kk(e){return W("MuiDialogContentText",e)}var Ube=j("MuiDialogContentText",["root"]);var Mk=_(R(),1),B$=e=>{let{classes:t}=e,o=V({root:["root"]},kk,t);return{...t,...o}},N$=N(X,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),L$=Ok.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogContentText"}),{children:i,className:n,...s}=o,a=B$(s);return(0,Mk.jsx)(N$,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:s,className:H(a.root,n),...o,classes:a})}),Uy=L$;var $y=_(I(),1);var Dk=_(R(),1),I$=e=>{let{classes:t}=e;return V({root:["root"]},wk,t)},z$=N(X,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),F$=$y.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogTitle"}),{className:i,id:n,...s}=o,a=o,l=I$(a),{titleId:c=n}=$y.useContext(Hy);return(0,Dk.jsx)(z$,{component:"h2",className:H(l.root,i),ownerState:a,ref:r,variant:"h6",id:n??c,...s})}),pu=F$;var Bk=_(I(),1);function Ak(e){return W("MuiDivider",e)}var H$=j("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","vertical","withChildren","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jy=H$;var $0=_(R(),1),U$=e=>{let{absolute:t,children:r,classes:o,flexItem:i,orientation:n,textAlign:s,variant:a}=e;return V({root:["root",t&&"absolute",a,n==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",s==="right"&&n!=="vertical"&&"textAlignRight",s==="left"&&n!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",n==="vertical"&&"wrapperVertical"]},Ak,o)},$$=N("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Y(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),j$=N("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Y(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),W$=Bk.forwardRef(function(t,r){let o=q({props:t,name:"MuiDivider"}),{absolute:i=!1,children:n,className:s,orientation:a="horizontal",component:l=n||a==="vertical"?"div":"hr",flexItem:c=!1,role:u=l!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...d}=o,h={...o,absolute:i,component:l,flexItem:c,orientation:a,role:u,textAlign:p,variant:f},y=U$(h);return(0,$0.jsx)($$,{as:l,className:H(y.root,s),role:u,ref:r,ownerState:h,"aria-orientation":u==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...d,children:n?(0,$0.jsx)(j$,{className:y.wrapper,ownerState:h,children:n}):null})}),du=W$;var Nk=_(I(),1);var Lk=_(R(),1),V$=e=>{let{classes:t,disableUnderline:r,startAdornment:o,endAdornment:i,size:n,hiddenLabel:s,multiline:a}=e,l={root:["root",!r&&"underline",o&&"adornedStart",i&&"adornedEnd",n==="small"&&`size${K(n)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=V(l,$E,t);return{...t,...c}},q$=N(cl,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...al(e,t),!r.disableUnderline&&t.underline]}})(Y(({theme:e})=>{let t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",n=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${zs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${zs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:n},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zs.disabled}, .${zs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(we()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),K$=N(ul,{name:"MuiFilledInput",slot:"Input",overridesResolver:ll})(Y(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ik=Nk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,fullWidth:n=!1,hiddenLabel:s,inputComponent:a="input",multiline:l=!1,slotProps:c,slots:u={},type:p="text",...f}=o,d={...o,disableUnderline:i,fullWidth:n,inputComponent:a,multiline:l,type:p},h=V$(o),y={root:{ownerState:d},input:{ownerState:d}},b=c?Ke(y,c):y,m=u.root??q$,g=u.input??K$;return(0,Lk.jsx)(pl,{slots:{root:m,input:g},slotProps:b,fullWidth:n,inputComponent:a,multiline:l,ref:r,type:p,...f,classes:h})});Ik.muiName="Input";var Vd=Ik;var Ur=_(I(),1);function zk(e){return W("MuiFormControl",e)}var $_e=j("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var j0=_(R(),1),G$=e=>{let{classes:t,margin:r,fullWidth:o}=e,i={root:["root",r!=="none"&&`margin${K(r)}`,o&&"fullWidth"]};return V(i,zk,t)},Y$=N("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`margin${K(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),X$=Ur.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormControl"}),{children:i,className:n,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:p=!1,hiddenLabel:f=!1,margin:d="none",required:h=!1,size:y="medium",variant:b="outlined",...m}=o,g={...o,color:s,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:f,margin:d,required:h,size:y,variant:b},v=G$(g),[S,C]=Ur.useState(()=>{let D=!1;return i&&Ur.Children.forEach(i,z=>{if(!hy(z,["Input","Select"]))return;let L=hy(z,["Select"])?z.props.input:z;L&&LE(L.props)&&(D=!0)}),D}),[w,k]=Ur.useState(()=>{let D=!1;return i&&Ur.Children.forEach(i,z=>{hy(z,["Input","Select"])&&(nl(z.props,!0)||nl(z.props.inputProps,!0))&&(D=!0)}),D}),[O,A]=Ur.useState(!1);l&&O&&A(!1);let B=u!==void 0&&!l?u:O,M,x=Ur.useRef(!1),P=Ur.useCallback(()=>{k(!0)},[]),T=Ur.useCallback(()=>{k(!1)},[]),E=Ur.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:s,disabled:l,error:c,filled:w,focused:B,fullWidth:p,hiddenLabel:f,size:y,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:T,onFilled:P,registerEffect:M,required:h,variant:b}),[S,s,l,c,w,B,p,f,M,T,P,h,y,b]);return(0,j0.jsx)(Jc.Provider,{value:E,children:(0,j0.jsx)(Y$,{as:a,ownerState:g,className:H(v.root,n),ref:r,...m,children:i})})}),fu=X$;var Wy=_(I(),1);function Fk(e){return W("MuiFormControlLabel",e)}var Z$=j("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),hu=Z$;var mu=_(R(),1),Q$=e=>{let{classes:t,disabled:r,labelPlacement:o,error:i,required:n}=e,s={root:["root",r&&"disabled",`labelPlacement${K(o)}`,i&&"error",n&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return V(s,Fk,t)},J$=N("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${hu.label}`]:t.label},t.root,t[`labelPlacement${K(r.labelPlacement)}`]]}})(Y(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${hu.disabled}`]:{cursor:"default"},[`& .${hu.label}`]:{[`&.${hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),ej=N("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Y(({theme:e})=>({[`&.${hu.error}`]:{color:(e.vars||e).palette.error.main}}))),tj=Wy.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormControlLabel"}),{checked:i,className:n,control:s,disabled:a,disableTypography:l,inputRef:c,label:u,labelPlacement:p="end",name:f,onChange:d,required:h,slots:y={},slotProps:b={},value:m,...g}=o,v=zt(),S=a??s.props.disabled??v?.disabled,C=h??s.props.required,w={disabled:S,required:C};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof s.props[T]>"u"&&typeof o[T]<"u"&&(w[T]=o[T])});let k=kr({props:o,muiFormControl:v,states:["error"]}),O={...o,disabled:S,labelPlacement:p,required:C,error:k.error},A=Q$(O),B={slots:y,slotProps:b},[M,x]=ee("typography",{elementType:X,externalForwardedProps:B,ownerState:O}),P=u;return P!=null&&P.type!==X&&!l&&(P=(0,mu.jsx)(M,{component:"span",...x,className:H(A.label,x?.className),children:P})),(0,mu.jsxs)(J$,{className:H(A.root,n),ownerState:O,ref:r,...g,children:[Wy.cloneElement(s,w),C?(0,mu.jsxs)("div",{children:[P,(0,mu.jsxs)(ej,{ownerState:O,"aria-hidden":!0,className:A.asterisk,children:["\u2009","*"]})]}):P]})}),yu=tj;var Uk=_(I(),1);function Hk(e){return W("MuiFormGroup",e)}var C0e=j("MuiFormGroup",["root","row","error"]);var $k=_(R(),1),rj=e=>{let{classes:t,row:r,error:o}=e;return V({root:["root",r&&"row",o&&"error"]},Hk,t)},oj=N("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),ij=Uk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormGroup"}),{className:i,row:n=!1,...s}=o,a=zt(),l=kr({props:o,muiFormControl:a,states:["error"]}),c={...o,row:n,error:l.error},u=rj(c);return(0,$k.jsx)(oj,{className:H(u.root,i),ownerState:c,ref:r,...s})}),W0=ij;var Vk=_(I(),1);function jk(e){return W("MuiFormHelperText",e)}var nj=j("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),V0=nj;var q0=_(R(),1),Wk,sj=e=>{let{classes:t,contained:r,size:o,disabled:i,error:n,filled:s,focused:a,required:l}=e,c={root:["root",i&&"disabled",n&&"error",o&&`size${K(o)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]};return V(c,jk,t)},aj=N("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t[`size${K(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${V0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${V0.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),lj=Vk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormHelperText"}),{children:i,className:n,component:s="p",disabled:a,error:l,filled:c,focused:u,margin:p,required:f,variant:d,...h}=o,y=zt(),b=kr({props:o,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),m={...o,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete m.ownerState;let g=sj(m);return(0,q0.jsx)(aj,{as:s,className:H(g.root,n),ref:r,...h,ownerState:m,children:i===" "?Wk||(Wk=(0,q0.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"})):i})}),K0=lj;var Kk=_(I(),1);function qk(e){return W("MuiFormLabel",e)}var cj=j("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Hs=cj;var G0=_(R(),1),uj=e=>{let{classes:t,color:r,focused:o,disabled:i,error:n,filled:s,required:a}=e,l={root:["root",`color${K(r)}`,i&&"disabled",n&&"error",s&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",n&&"error"]};return V(l,qk,t)},pj=N("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{[`&.${Hs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dj=N("span",{name:"MuiFormLabel",slot:"Asterisk"})(Y(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}}))),fj=Kk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormLabel"}),{children:i,className:n,color:s,component:a="label",disabled:l,error:c,filled:u,focused:p,required:f,...d}=o,h=zt(),y=kr({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),b={...o,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},m=uj(b);return(0,G0.jsxs)(pj,{as:a,ownerState:b,className:H(m.root,n),ref:r,...d,children:[i,y.required&&(0,G0.jsxs)(dj,{ownerState:b,"aria-hidden":!0,className:m.asterisk,children:["\u2009","*"]})]})}),gu=fj;var dl=_(I(),1);var Gk=_(R(),1);function qd(e){return`scale(${e}, ${e**2})`}var hj={entering:{opacity:1,transform:qd(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:qd(.75)},exited:{opacity:0,transform:qd(.75)}},mj={opacity:0,transform:qd(.75),visibility:"hidden"},Y0=dl.forwardRef(function(t,r){let{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:p,onExited:f,onExiting:d,style:h,timeout:y="auto",...b}=t,m=Ms(),g=dl.useRef(),v=Fr(),S=dl.useRef(null),C=At(S,co(n),r),w=lo(S,u),k=lo(S,(P,T)=>{xy(P);let{duration:E,delay:D,easing:z}=Yc({style:h,timeout:y,easing:s},{mode:"enter"}),L;y==="auto"?(L=v.transitions.getAutoHeightDuration(P.clientHeight),g.current=L):L=E,P.style.transition=[v.transitions.create("opacity",{duration:L,delay:D}),v.transitions.create("transform",{duration:L*.666,delay:D,easing:z})].join(","),l&&l(P,T)}),O=lo(S,c),A=lo(S,d),B=lo(S,P=>{let{duration:T,delay:E,easing:D}=Yc({style:h,timeout:y,easing:s},{mode:"exit"}),z;y==="auto"?(z=v.transitions.getAutoHeightDuration(P.clientHeight),g.current=z):z=T,P.style.transition=[v.transitions.create("opacity",{duration:z,delay:E}),v.transitions.create("transform",{duration:z*.666,delay:E||z*.333,easing:D})].join(","),P.style.opacity=0,P.style.transform=qd(.75),p&&p(P)}),M=lo(S,P=>{P.style.transition="",f&&f(P)});return(0,Gk.jsx)(Od,{appear:i,in:a,nodeRef:S,onEnter:k,onEntered:O,onEntering:w,onExit:B,onExited:M,onExiting:A,addEndListener:P=>{y==="auto"&&m.start(g.current||0,P),o&&o(S.current,P)},timeout:y==="auto"?null:y,...b,children:(P,{ownerState:T,...E})=>{let D=Ty(P,a,hj,mj,h,n.props.style);return dl.cloneElement(n,{style:D,ref:C,...E})}})});Y0&&(Y0.muiSupportAuto=!0);var Kd=Y0;var Zk=_(I(),1);function Yk(e){return W("MuiInputLabel",e)}var yj=j("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),Xk=yj;var Qk=_(R(),1),gj=e=>{let{classes:t,disableUnderline:r}=e,i=V({root:["root",!r&&"underline"],input:["input"]},HE,t);return{...t,...i}},vj=N(cl,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...al(e,t),!r.disableUnderline&&t.underline]}})(Y(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{[`label + &, .${Xk.root} + &`]:{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${eu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${eu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${eu.disabled}, .${eu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${eu.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(we()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),bj=N(ul,{name:"MuiInput",slot:"Input",overridesResolver:ll})({}),Jk=Zk.forwardRef(function(t,r){let o=q({props:t,name:"MuiInput"}),{disableUnderline:i=!1,fullWidth:n=!1,inputComponent:s="input",multiline:a=!1,slotProps:l,slots:c={},type:u="text",...p}=o,f=gj(o),h={root:{ownerState:{disableUnderline:i}}},y=l?Ke(l,h):h,b=c.root??vj,m=c.input??bj;return(0,Qk.jsx)(pl,{slots:{root:b,input:m},slotProps:y,fullWidth:n,inputComponent:s,multiline:a,ref:r,type:u,...p,classes:f})});Jk.muiName="Input";var Gd=Jk;var e2=_(I(),1);var t2=_(R(),1),_j=e=>{let{classes:t,formControl:r,size:o,shrink:i,disableAnimation:n,variant:s,required:a}=e,l={root:["root",r&&"formControl",!n&&"animated",i&&"shrink",o&&o!=="medium"&&`size${K(o)}`,s],asterisk:[a&&"asterisk"]},c=V(l,Yk,t);return{...t,...c}},Sj=N(gu,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Hs.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Y(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xj=e2.forwardRef(function(t,r){let o=q({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:n,shrink:s,variant:a,className:l,...c}=o,u=zt(),p=s;typeof p>"u"&&u&&(p=u.filled||u.focused||u.adornedStart);let f=kr({props:o,muiFormControl:u,states:["size","variant","required","focused"]}),d={...o,disableAnimation:i,formControl:u,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused},h=_j(d);return(0,t2.jsx)(Sj,{"data-shrink":p,ref:r,className:H(h.root,l),...c,ownerState:d,classes:h})}),X0=xj;var Vy=_(I(),1);function r2(e){return W("MuiLink",e)}var Tj=j("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),o2=Tj;var Cj=({theme:e,ownerState:t})=>{let r=t.color;if("colorSpace"in e&&e.colorSpace){let n=Ro(e,`palette.${r}.main`)||Ro(e,`palette.${r}`)||t.color;return e.alpha(n,.4)}let o=Ro(e,`palette.${r}.main`,!1)||Ro(e,`palette.${r}`,!1)||t.color,i=Ro(e,`palette.${r}.mainChannel`)||Ro(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Bi(o,.4)},i2=Cj;var s2=_(R(),1),n2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wj=e=>{let{classes:t,component:r,focusVisible:o,underline:i}=e,n={root:["root",`underline${K(i)}`,r==="button"&&"button",o&&"focusVisible"]};return V(n,r2,t)},Rj=N(X,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`underline${K(r.underline)}`],r.component==="button"&&t.button]}})(Y(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${o2.focusVisible}`]:{outline:"auto"}}}]}))),Pj=Vy.forwardRef(function(t,r){let o=q({props:t,name:"MuiLink"}),i=Fr(),{className:n,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:p="always",variant:f="inherit",sx:d,...h}=o,[y,b]=Vy.useState(!1),m=C=>{Bs(C.target)||b(!1),l&&l(C)},g=C=>{Bs(C.target)&&b(!0),c&&c(C)},v={...o,color:s,component:a,focusVisible:y,underline:p,variant:f},S=wj(v);return(0,s2.jsx)(Rj,{color:s,className:H(S.root,n),classes:u,component:a,onBlur:m,onFocus:g,ref:r,ownerState:v,variant:f,...h,sx:[...n2[s]===void 0?[{color:s}]:[],...Array.isArray(d)?d:[d]],style:{...h.style,...p==="always"&&s!=="inherit"&&!n2[s]&&{"--Link-underlineColor":i2({theme:i,ownerState:v})}}})}),qy=Pj;var Ky=_(I(),1);var a2=_(I(),1),Ej=a2.createContext({}),si=Ej;function l2(e){return W("MuiList",e)}var Oxe=j("MuiList",["root","padding","dense","subheader"]);var Gy=_(R(),1),kj=e=>{let{classes:t,disablePadding:r,dense:o,subheader:i}=e;return V({root:["root",!r&&"padding",o&&"dense",i&&"subheader"]},l2,t)},Oj=N("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Mj=Ky.forwardRef(function(t,r){let o=q({props:t,name:"MuiList"}),{children:i,className:n,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=o,p=Ky.useMemo(()=>({dense:a}),[a]),f={...o,component:s,dense:a,disablePadding:l},d=kj(f);return(0,Gy.jsx)(si.Provider,{value:p,children:(0,Gy.jsxs)(Oj,{as:s,className:H(d.root,n),ref:r,ownerState:f,...u,children:[c,i]})})}),sn=Mj;var vu=_(I(),1);function c2(e){return W("MuiListItem",e)}var Wxe=j("MuiListItem",["root","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);var Dj=j("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Z0=Dj;var Yy=_(I(),1);function u2(e){return W("MuiListItemSecondaryAction",e)}var Jxe=j("MuiListItemSecondaryAction",["root","disableGutters"]);var p2=_(R(),1),Aj=e=>{let{disableGutters:t,classes:r}=e;return V({root:["root",t&&"disableGutters"]},u2,r)},Bj=N("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),d2=Yy.forwardRef(function(t,r){let o=q({props:t,name:"MuiListItemSecondaryAction"}),{className:i,component:n,...s}=o,a=Yy.useContext(si),l={...o,disableGutters:a.disableGutters},c=Aj(l);return(0,p2.jsx)(Bj,{as:n,className:H(c.root,i),ownerState:l,ref:r,...s})});d2.muiName="ListItemSecondaryAction";var Q0=d2;var Yd=_(R(),1),Nj=(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding]},Lj=e=>{let{alignItems:t,classes:r,dense:o,disableGutters:i,disablePadding:n,divider:s}=e;return V({root:["root",o&&"dense",!i&&"gutters",!n&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart"],secondaryAction:["secondaryAction"]},c2,r)},Ij=N("div",{name:"MuiListItem",slot:"Root",overridesResolver:Nj})(Y(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Z0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),zj=N(Q0,{name:"MuiListItem",slot:"secondaryAction"})({}),Fj=vu.forwardRef(function(t,r){let o=q({props:t,name:"MuiListItem"}),{alignItems:i="center",children:n,className:s,component:a="li",dense:l=!1,disableGutters:c=!1,disablePadding:u=!1,divider:p=!1,secondaryAction:f,slotProps:d={},slots:h={},...y}=o,b=vu.useContext(si),m=vu.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),g={...o,alignItems:i,dense:m.dense,disableGutters:c,disablePadding:u,divider:p,secondaryAction:f},v=Lj(g),S={slots:h,slotProps:d},[C,w]=ee("root",{ref:r,elementType:Ij,externalForwardedProps:{component:a,...S,...y},ownerState:g,className:H(v.root,s)}),[k,O]=ee("secondaryAction",{elementType:zj,shouldForwardComponentProp:!0,externalForwardedProps:S,ownerState:g,className:v.secondaryAction});return(0,Yd.jsx)(si.Provider,{value:m,children:(0,Yd.jsxs)(C,{...w,children:[n,f&&(0,Yd.jsx)(k,{...O,children:f})]})})}),Us=Fj;var Hj=j("MuiListItemIcon",["root","alignItemsFlexStart"]),Xy=Hj;var Zy=_(I(),1);function f2(e){return W("MuiListItemText",e)}var Uj=j("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Hn=Uj;var Xd=_(R(),1),$j=e=>{let{classes:t,inset:r,primary:o,secondary:i,dense:n}=e;return V({root:["root",r&&"inset",n&&"dense",o&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f2,t)},jj=N("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Hn.primary}`]:t.primary},{[`& .${Hn.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${My.root}:where(& .${Hn.primary})`]:{display:"block"},[`.${My.root}:where(& .${Hn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Wj=Zy.forwardRef(function(t,r){let o=q({props:t,name:"MuiListItemText"}),{children:i,className:n,disableTypography:s=!1,inset:a=!1,primary:l,secondary:c,slots:u={},slotProps:p={},...f}=o,{dense:d}=Zy.useContext(si),h=l??i,y=c,b={...o,disableTypography:s,inset:a,primary:!!h,secondary:!!y,dense:d},m=$j(b),g={slots:u,slotProps:p},[v,S]=ee("root",{className:H(m.root,n),elementType:jj,externalForwardedProps:{...g,...f},ownerState:b,ref:r}),[C,w]=ee("primary",{className:m.primary,elementType:X,externalForwardedProps:g,ownerState:b}),[k,O]=ee("secondary",{className:m.secondary,elementType:X,externalForwardedProps:g,ownerState:b});return h!=null&&h.type!==X&&!s&&(h=(0,Xd.jsx)(C,{variant:d?"body2":"body1",component:w?.variant?void 0:"span",...w,children:h})),y!=null&&y.type!==X&&!s&&(y=(0,Xd.jsx)(k,{variant:"body2",color:"textSecondary",...O,children:y})),(0,Xd.jsxs)(v,{...S,children:[h,y]})}),J0=Wj;var lg=_(I(),1);var uo=_(I(),1);var Qy=_(I(),1),bu=Qy.createContext(void 0);function Zd(){let e=Qy.useContext(bu);if(e===void 0)throw new Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");return e}var Ft=_(I(),1);var Vj=Object.is;function Jy(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=0,o=0;for(let i in e)if(r+=1,!Vj(e[i],t[i])||!(i in t))return!1;for(let i in t)o+=1;return r===o}var qj=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function Qd(e){let{activeItemId:t,getDefaultActiveItemId:r,orientation:o,isRtl:i=!1,isItemFocusable:n=_u,wrap:s=!0}=e,[a,l]=Ft.useState(t),c=Ft.useRef(t),u=a;t!==c.current&&(c.current=t,t!==void 0&&t!==a&&(u=t,l(t)));let p=Ft.useRef(null),f=Ft.useRef(new Map),[d,h]=Ft.useState(0),y=Ft.useMemo(()=>eS(f.current),[d]),b=h2(u,y,n,r),m=Ft.useRef(b);m.current=b;let g=Ft.useCallback(()=>{let M=eS(f.current),x=h2(m.current,M,n,r);return b2(M,x)},[r,n]),v=Ft.useCallback(()=>f.current,[]),S=Er(M=>{let x=f.current.get(M.id);Jy(x??null,M)||(f.current.set(M.id,M),h(P=>P+1))}),C=Er(M=>{f.current.delete(M)&&h(x=>x+1)}),w=Er(M=>{l(M)}),k=Ft.useCallback(M=>m.current===M,[]),O=Ft.useCallback((M,x,P,T)=>{let E=eg(f.current),D=g2(E,M,x,P,T??n);return D?(D.element?.focus(),l(D.id),D):null},[n]),A=Ft.useCallback(M=>({onFocus:T=>{let E=eg(f.current),D=S2(E,T.target);D!==-1&&l(E[D].id)},onKeyDown:T=>{if(T.altKey||T.shiftKey||T.ctrlKey||T.metaKey||!qj.includes(T.key))return;let E=o==="horizontal"?"ArrowLeft":"ArrowUp",D=o==="horizontal"?"ArrowRight":"ArrowDown";o==="horizontal"&&i&&(E="ArrowRight",D="ArrowLeft");let z=eg(f.current),L=Qa(It(p.current)),Z=L===p.current,re=m2(z,L,m.current),Q="next";switch(T.key){case E:Q="previous",T.preventDefault(),Z&&(re=z.length);break;case D:T.preventDefault(),Z&&(re=-1);break;case"Home":T.preventDefault(),re=-1;break;case"End":T.preventDefault(),Q="previous",re=z.length;break;default:return}O(re,Q,s)},ref:Xj(M,T=>{p.current=T})}),[O,i,o,s]),B=Ft.useCallback(M=>{let x=eg(f.current),P=Qa(It(p.current)),E=P===p.current?-1:m2(x,P,m.current);return O(E,"next",!0,M)?.id??null},[O]);return Ft.useMemo(()=>({activeItemId:b,focusNext:B,getActiveItem:g,getContainerProps:A,getItemMap:v,isItemActive:k,registerItem:S,setActiveItemId:w,unregisterItem:C}),[b,B,g,A,v,k,S,w,C])}function Jd(e){let t=Zd(),{activeItemId:r,registerItem:o,unregisterItem:i}=t,n=Ft.useRef(null),s=Ft.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),a=Ft.useRef(s);a.current=s;let l=Ft.useCallback(u=>{if(n.current=u,u==null){queueMicrotask(()=>{n.current==null&&i(e.id)});return}o({...a.current,element:u})},[e.id,o,i]),c=Xt(e.ref,l);return fr(()=>{n.current&&o({...s,element:n.current})},[s,o]),fr(()=>{let u=e.id;return()=>{i(u)}},[e.id,i]),{ref:c,tabIndex:r===e.id?0:-1}}function h2(e,t,r,o){return e!=null?Kj(e,t,r):Gj(t,r,o)}function Kj(e,t,r){let o=_2(t,e);return o===-1?v2(t,r):r(t[o])?t[o].id:g2(t,o,"next",!1,r)?.id??null}function Gj(e,t,r){let o=r?.(e);if(o!=null){let i=b2(e,o);if(i&&t(i))return i.id}return v2(e,t)}function m2(e,t,r){if(t){let o=S2(e,t);if(o!==-1)return o}return _2(e,r)}function g2(e,t,r,o,i){let n=e.length-1;if(n===-1)return null;let s=!1,a=y2(t,n,r,o),l=a;for(;a!==-1;){if(a===l){if(s)return null;s=!0}let c=e[a];if(!c||!i(c))a=y2(a,n,r,o);else return c}return null}function v2(e,t){return e.find(r=>t(r))?.id??null}function b2(e,t){return t==null?null:e.find(r=>r.id===t)??null}function _2(e,t){return t==null?-1:e.findIndex(r=>r.id===t)}function S2(e,t){return t?e.findIndex(r=>r.element===t||r.element?.contains(t)):-1}function eS(e){let t=Array.from(e.values());if(t.every(i=>i.element==null))return t;let r=t.filter(tS).sort((i,n)=>Yj(i.element,n.element)),o=t.filter(i=>!tS(i));return[...r,...o]}function eg(e){return eS(e).filter(tS)}function y2(e,t,r,o=!0){return r==="next"?e===t?o?0:-1:e+1:e===0?o?t:-1:e-1}function _u(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute("disabled")&&e.element.getAttribute("aria-disabled")!=="true"&&e.element.hasAttribute("tabindex"):!1}function tS(e){return e.element!=null&&e.element.isConnected}function Yj(e,t){if(e===t)return 0;let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Xj(...e){return t=>{e.forEach(r=>{Ja(r??null,t)})}}var x2=ou;function ef(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}function tg(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function rg(e){return e==null||typeof e=="string"&&!e.trim()}function tf(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}var og=_(I(),1),T2=og.createContext(null);function rf(){return og.useContext(T2)}var rS=T2.Provider;var ig=_(I(),1),oS=ig.createContext(void 0);function C2(){let e=ig.useContext(oS);if(e===void 0)throw new Error("MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.");return e}var ng=_(R(),1);function Zj(e){let t=e?.element??e;if(!t)return"";if(e?.textValue!==void 0)return e.textValue;let r=t.innerText;return r===void 0&&(r=t.textContent),r??""}function w2(e,t){if(t===void 0)return!0;let r=Zj(e);return r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Qj(e,t){return w2(e,t)?_u(e):!1}function Jj(e,t){ef(e,t)}var e9=uo.forwardRef(function(t,r){let{actions:o,autoFocus:i=!1,autoFocusItem:n=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:p="selectedMenu",...f}=t,d=uo.useRef(null),h=uo.useRef(!1),[y,b]=uo.useState(!1),m=rf(),g=uo.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=uo.useCallback(E=>p==="selectedMenu"?E.find(D=>D.selected&&_u(D))?.id??E.find(D=>_u(D))?.id??null:E.find(D=>_u(D))?.id??null,[p]),S=Qd({activeItemId:void 0,getDefaultActiveItemId:v,orientation:"vertical",wrap:!c}),{activeItemId:C,focusNext:w,getActiveItem:k,getContainerProps:O,getItemMap:A}=S,B=ri((E=!1)=>{if(!d.current||!E&&h.current)return null;if(n){let D=k();if(D?.element){let z=Array.from(A().values()).some(Z=>Z.selected),L=p==="menu"&&z&&!D.selected&&m==null;return b(L),Jj(D.element,m),h.current=!0,D.element}return i?(b(!1),d.current.focus(),d.current):null}return i?(b(!1),d.current.focus(),h.current=!0,d.current):(b(!1),null)});Bn(()=>{if(!i&&!n){h.current=!1,b(!1);return}B()},[C,n,i,B]),uo.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(E,{direction:D})=>{let z=!d.current.style.width;if(E.clientHeight<d.current.clientHeight&&z){let L=`${x2(on(E))}px`;d.current.style[D==="rtl"?"paddingLeft":"paddingRight"]=L,d.current.style.width=`calc(100% + ${L})`}return d.current},focusInitialTarget:()=>{if(!d.current)return null;let E=tn(rn(d.current));return E&&d.current.contains(E)?E:B(!0)}}),[B]);let M=O(),x=At(d,M.ref,r),P=uo.useMemo(()=>({itemsFocusableWhenDisabled:l,suppressInitialFocusVisible:y,variant:p}),[l,y,p]),T=ri(E=>{if(y&&b(!1),(E.ctrlKey||E.metaKey||E.altKey)&&u){u(E);return}if(M.onKeyDown(E),E.key.length===1){let z=g.current,L=E.key.toLowerCase(),Z=performance.now();z.keys.length>0&&(Z-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&L!==z.keys[0]&&(z.repeating=!1)),z.lastTime=Z,z.keys.push(L);let re=tn(rn(d.current)),Q=re&&!z.repeating&&w2(re,z);z.previousKeyMatched&&(Q||w(fe=>Qj(fe,z))!=null)?E.preventDefault():z.previousKeyMatched=!1}u&&u(E)});return(0,ng.jsx)(sn,{role:"menu",ref:x,className:a,onKeyDown:T,onFocus:M.onFocus,tabIndex:-1,...f,children:(0,ng.jsx)(oS.Provider,{value:P,children:(0,ng.jsx)(bu.Provider,{value:S,children:s})})})}),fl=e9;var Mr=_(I(),1);function R2(e){return W("MuiPopover",e)}var z1e=j("MuiPopover",["root","paper"]);var ag=_(R(),1);function P2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function E2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function k2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function sg(e){return typeof e=="function"?e():e}var t9=e=>{let{classes:t}=e;return V({root:["root"],paper:["paper"]},R2,t)},r9=N(Wd,{name:"MuiPopover",slot:"Root"})({}),iS=N(St,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o9=Mr.forwardRef(function(t,r){let o=q({props:t,name:"MuiPopover"}),{action:i,anchorEl:n,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:p,disableAutoFocus:f=!1,elevation:d=8,marginThreshold:h=16,open:y,slots:b={},slotProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},transitionDuration:v="auto",disableScrollLock:S=!1,...C}=o,w=Mr.useRef(),k={...o,anchorOrigin:s,anchorReference:l,elevation:d,marginThreshold:h,transformOrigin:g,transitionDuration:v},O=t9(k),A=Mr.useCallback(()=>{if(l==="anchorPosition")return a;let oe=sg(n),Oe=(oe&&oe.nodeType===1?oe:rn(w.current).body).getBoundingClientRect();return{top:Oe.top+P2(Oe,s.vertical),left:Oe.left+E2(Oe,s.horizontal)}},[n,s.horizontal,s.vertical,a,l]),B=Mr.useCallback(oe=>({vertical:P2(oe,g.vertical),horizontal:E2(oe,g.horizontal)}),[g.horizontal,g.vertical]),M=Mr.useCallback(oe=>{let se={width:oe.offsetWidth,height:oe.offsetHeight},Oe=B(se);if(l==="none")return{top:null,left:null,transformOrigin:k2(Oe)};let gt=A(),be=gt.top-Oe.vertical,ne=gt.left-Oe.horizontal,dt=be+se.height,xr=ne+se.width,ft=on(sg(n)),Ze=ft.innerHeight-h,vt=ft.innerWidth-h;if(h!=null&&be<h){let Ee=be-h;be-=Ee,Oe.vertical+=Ee}else if(h!=null&&dt>Ze){let Ee=dt-Ze;be-=Ee,Oe.vertical+=Ee}if(h!=null&&ne<h){let Ee=ne-h;ne-=Ee,Oe.horizontal+=Ee}else if(xr>vt){let Ee=xr-vt;ne-=Ee,Oe.horizontal+=Ee}return{top:`${Math.round(be)}px`,left:`${Math.round(ne)}px`,transformOrigin:k2(Oe)}},[n,l,A,B,h]),[x,P]=Mr.useState(y),T=Mr.useCallback(()=>{let oe=w.current;if(!oe)return;let se=M(oe);se.top!=null&&oe.style.setProperty("top",se.top),se.left!=null&&(oe.style.left=se.left),oe.style.transformOrigin=se.transformOrigin,P(!0)},[M]);Mr.useEffect(()=>(S&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[n,S,T]);let E=()=>{T()},D=()=>{P(!1)};Mr.useEffect(()=>{y&&T()}),Mr.useImperativeHandle(i,()=>y?{updatePosition:()=>{T()}}:null,[y,T]),Mr.useEffect(()=>{if(!y)return;let oe=$c(()=>{T()}),se=on(sg(n));return se.addEventListener("resize",oe),()=>{oe.clear(),se.removeEventListener("resize",oe)}},[n,y,T]);let z=v,L={slots:b,slotProps:m},[Z,re]=ee("transition",{elementType:Kd,externalForwardedProps:L,ownerState:k,getSlotProps:oe=>({...oe,onEntering:(se,Oe)=>{oe.onEntering?.(se,Oe),E()},onExited:se=>{oe.onExited?.(se),D()}}),additionalProps:{appear:!0,in:y}});v==="auto"&&!Z.muiSupportAuto&&(z=void 0);let Q=p||(n?rn(sg(n)).body:void 0),[fe,{slots:ye,slotProps:he,...ie}]=ee("root",{ref:r,elementType:r9,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Wc(typeof m.backdrop=="function"?m.backdrop(k):m.backdrop,{invisible:!0})},container:Q,open:y},ownerState:k,className:H(O.root,u)}),[J,le]=ee("paper",{ref:w,className:O.paper,elementType:iS,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:x?void 0:{opacity:0}},ownerState:k});return(0,ag.jsx)(fe,{...ie,...!Ds(fe)&&{slots:ye,slotProps:he,disableAutoFocus:f,disableScrollLock:S},children:(0,ag.jsx)(Z,{...re,timeout:z,children:(0,ag.jsx)(J,{...le,children:c})})})}),nS=o9;function O2(e){return W("MuiMenu",e)}var aCe=j("MuiMenu",["root","paper","list"]);var sS=_(R(),1),i9={vertical:"top",horizontal:"right"},n9={vertical:"top",horizontal:"left"},s9=e=>{let{classes:t}=e;return V({root:["root"],paper:["paper"],list:["list"]},O2,t)},a9=N(nS,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),l9=N(iS,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),c9=N(fl,{name:"MuiMenu",slot:"List"})({outline:0}),u9=lg.forwardRef(function(t,r){let o=q({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:n,className:s,disableAutoFocusItem:a=!1,onClose:l,open:c,PopoverClasses:u,transitionDuration:p="auto",variant:f="selectedMenu",slots:d={},slotProps:h={},...y}=o,b=Bc(),m={...o,autoFocus:i,disableAutoFocusItem:a,transitionDuration:p,variant:f},g=s9(m),v=i&&c,S=v&&!a,C=lg.useRef(null),w=(E,D)=>{C.current&&(C.current.adjustStyleForScrollbar(E,{direction:b?"rtl":"ltr"}),v&&C.current.focusInitialTarget?.())},k=E=>{E.key==="Tab"&&(E.preventDefault(),l&&l(E,"tabKeyDown"))},O={slots:d,slotProps:h},A=zn({elementType:d.root,externalSlotProps:h.root,ownerState:m,className:[g.root,s]}),[B,M]=ee("paper",{className:g.paper,elementType:l9,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:m}),[x,P]=ee("list",{className:g.list,elementType:c9,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:E=>({...E,onKeyDown:D=>{k(D),E.onKeyDown?.(D)}}),ownerState:m}),T=typeof h.transition=="function"?h.transition(m):h.transition;return(0,sS.jsx)(a9,{disableAutoFocus:i,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?i9:n9,slots:{root:d.root,paper:B,backdrop:d.backdrop,transition:d.transition},slotProps:{root:A,paper:M,backdrop:typeof h.backdrop=="function"?h.backdrop(m):h.backdrop,transition:{...T,onEntering:(...E)=>{w(...E),T?.onEntering?.(...E)}}},open:c,ref:r,transitionDuration:p,ownerState:m,...y,classes:u,children:(0,sS.jsx)(x,{actions:C,autoFocus:v,autoFocusItem:S,variant:f,...P,children:n})})}),M2=u9;var $s=_(I(),1);function D2(e){return W("MuiMenuItem",e)}var p9=j("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Su=p9;var aS=_(R(),1),d9=(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},f9=e=>{let{disabled:t,dense:r,divider:o,disableGutters:i,selected:n,classes:s}=e,l=V({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",o&&"divider",n&&"selected"]},D2,s);return{...s,...l}},h9=N(Bt,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:d9})(Y(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Su.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Su.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Su.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jy.inset}`]:{marginLeft:52},[`& .${Hn.root}`]:{marginTop:0,marginBottom:0},[`& .${Hn.inset}`]:{paddingLeft:36},[`& .${Xy.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Xy.root} svg`]:{fontSize:"1.25rem"}}}]}))),m9=$s.forwardRef(function(t,r){let o=q({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:n="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:p,className:f,...d}=o,h=rf(),y=$s.useContext(si),b=$s.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),m=C2(),g=Nn(),v=m.suppressInitialFocusVisible,S=m.itemsFocusableWhenDisabled,C=$s.useRef(null);Bn(()=>{i&&C.current&&ef(C.current,h)},[i]);let w={...o,dense:b.dense,divider:a,disableGutters:l},k=f9(o),O=Jd({id:g,ref:r,disabled:o.disabled,focusableWhenDisabled:S,selected:o.selected}),A=At(C,O.ref),B;return p!==void 0?B=p:m.variant==="selectedMenu"?B=O.tabIndex:(!o.disabled||S)&&(B=-1),(0,aS.jsx)(si.Provider,{value:b,children:(0,aS.jsx)(h9,{ref:A,role:u,tabIndex:B,component:n,internalNativeButton:!1,focusableWhenDisabled:S,suppressFocusVisible:v,focusVisibleClassName:H(k.focusVisible,c),className:H(k.root,f),...d,ownerState:w,classes:k})})}),Un=m9;var ug=_(I(),1);function A2(e){return W("MuiNativeSelect",e)}var y9=j("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cg=y9;var of=_(R(),1),g9=e=>{let{classes:t,variant:r,disabled:o,multiple:i,open:n,error:s}=e,a={select:["select",r,o&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${K(r)}`,n&&"iconOpen",o&&"disabled"]};return V(a,A2,t)},lS=N("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${cg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),v9=N(lS,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Le,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${cg.multiple}`]:t.multiple}]}})({}),cS=N("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${cg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),b9=N(cS,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${K(r.variant)}`],r.open&&t.iconOpen]}})({}),_9=ug.forwardRef(function(t,r){let{className:o,disabled:i,error:n,IconComponent:s,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:i,variant:l,error:n},p=g9(u);return(0,of.jsxs)(ug.Fragment,{children:[(0,of.jsx)(v9,{ownerState:u,className:H(p.select,o),disabled:i,ref:a||r,...c}),t.multiple?null:(0,of.jsx)(b9,{as:s,ownerState:u,className:p.icon})]})}),B2=_9;var pg=_(I(),1);var nf=_(R(),1),N2,S9=N("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Le})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),x9=N("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Le})(Y(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uS(e){let{children:t,classes:r,className:o,label:i,notched:n,...s}=e,a=i!=null&&i!=="",l={...e,notched:n,withLabel:a};return(0,nf.jsx)(S9,{"aria-hidden":!0,className:o,ownerState:l,...s,children:(0,nf.jsx)(x9,{ownerState:l,children:a?(0,nf.jsx)("span",{children:i}):N2||(N2=(0,nf.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"}))})})}var sf=_(R(),1),T9=e=>{let{classes:t}=e,o=V({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},UE,t);return{...t,...o}},C9=N(cl,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:al})(Y(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ii.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ii.focused} .${Ii.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(we()).map(([r])=>({props:{color:r},style:{[`&.${Ii.focused} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Ii.error} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ii.disabled} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:o})=>r.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),w9=N(uS,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Y(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),R9=N(ul,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ll})(Y(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),L2=pg.forwardRef(function(t,r){let o=q({props:t,name:"MuiOutlinedInput"}),{fullWidth:i=!1,inputComponent:n="input",label:s,multiline:a=!1,notched:l,slots:c={},slotProps:u={},type:p="text",...f}=o,d=T9(o),h=zt(),y=kr({props:o,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:h,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:a,size:y.size,type:p},m=c.root??C9,g=c.input??R9,[v,S]=ee("notchedOutline",{elementType:w9,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:s!=null&&s!==""&&y.required?(0,sf.jsxs)(pg.Fragment,{children:[s,"\u2009","*"]}):s}});return(0,sf.jsx)(pl,{slots:{root:m,input:g},slotProps:u,renderSuffix:C=>(0,sf.jsx)(v,{...S,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:n,multiline:a,ref:r,type:p,...f,classes:{...d,notchedOutline:null}})});L2.muiName="Input";var af=L2;var cf=_(I(),1);var I2=_(R(),1),z2=_e((0,I2.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked");var F2=_(R(),1),H2=_e((0,F2.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var lf=_(R(),1),P9=N("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Le})({position:"relative",display:"flex"}),E9=N(z2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),k9=N(H2,{name:"MuiRadioButtonIcon"})(Y(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function O9(e){let{checked:t=!1,classes:r={},fontSize:o}=e,i={...e,checked:t};return(0,lf.jsxs)(P9,{className:r.root,ownerState:i,children:[(0,lf.jsx)(E9,{fontSize:o,className:r.background,ownerState:i}),(0,lf.jsx)(k9,{fontSize:o,className:r.dot,ownerState:i})]})}var pS=O9;var $2=_(I(),1);var U2=_(I(),1),M9=U2.createContext(void 0),dg=M9;function dS(){return $2.useContext(dg)}function j2(e){return W("MuiRadio",e)}var D9=j("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fS=D9;var fg=_(R(),1),A9=e=>{let{classes:t,color:r,size:o}=e,i={root:["root",`color${K(r)}`,o!=="medium"&&`size${K(o)}`]};return{...t,...V(i,j2,t)}},B9=N(ru,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${K(r.size)}`],t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${fS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${fS.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function N9(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}var L9=(0,fg.jsx)(pS,{checked:!0}),I9=(0,fg.jsx)(pS,{}),z9=cf.forwardRef(function(t,r){let o=q({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:n=L9,color:s="primary",icon:a=I9,name:l,onChange:c,size:u="medium",className:p,disabled:f,disableRipple:d=!1,slots:h={},slotProps:y={},...b}=o,m=zt(),g=f;m&&typeof g>"u"&&(g=m.disabled),g??(g=!1);let v={...o,disabled:g,disableRipple:d,color:s,size:u},S=A9(v),C=dS(),w=i,k=OP(c,C&&C.onChange),O=l;C&&(typeof w>"u"&&(w=N9(C.value,o.value)),typeof O>"u"&&(O=C.name));let A=y.input,[B,M]=ee("root",{ref:r,elementType:B9,className:H(S.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:y,...b},getSlotProps:x=>({...x,onChange:(P,...T)=>{x.onChange?.(P,...T),k(P,...T)}}),ownerState:v,additionalProps:{type:"radio",icon:cf.cloneElement(a,{fontSize:a.props.fontSize??u}),checkedIcon:cf.cloneElement(n,{fontSize:n.props.fontSize??u}),disabled:g,name:O,checked:w,slots:h,slotProps:{input:typeof A=="function"?A(v):A}}});return(0,fg.jsx)(B,{...M,classes:S})}),hg=z9;var js=_(I(),1);function W2(e){return W("MuiRadioGroup",e)}var nRe=j("MuiRadioGroup",["root","row","error"]);var hS=_(R(),1),F9=e=>{let{classes:t,row:r,error:o}=e;return V({root:["root",r&&"row",o&&"error"]},W2,t)},H9=js.forwardRef(function(t,r){let{actions:o,children:i,className:n,defaultValue:s,name:a,onChange:l,value:c,...u}=t,p=js.useRef(null),f=F9(t),[d,h]=tl({controlled:c,default:s,name:"RadioGroup"});js.useImperativeHandle(o,()=>({focus:()=>{let g=p.current.querySelector("input:not(:disabled):checked");g||(g=p.current.querySelector("input:not(:disabled)")),g&&g.focus()}}),[]);let y=At(r,p),b=Nn(a),m=js.useMemo(()=>({name:b,onChange(g){h(g.target.value),l&&l(g,g.target.value)},value:d}),[b,l,h,d]);return(0,hS.jsx)(dg.Provider,{value:m,children:(0,hS.jsx)(W0,{role:"radiogroup",ref:y,className:H(f.root,n),...u,children:i})})}),mg=H9;var Tu=_(I(),1);var ct=_(I(),1);function yg(e){return W("MuiSelect",e)}var U9=j("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","nativeInput","error"]),xu=U9;var $n=_(R(),1),V2,$9=N(lS,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`&.${xu.select}`]:t.select},{[`&.${xu.select}`]:t[r.variant]},{[`&.${xu.error}`]:t.error},{[`&.${xu.multiple}`]:t.multiple}]}})({[`&.${xu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),j9=N(cS,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.open&&t.iconOpen]}})({}),W9=N("input",{shouldForwardProp:e=>cy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),V9=e=>{let{classes:t,variant:r,disabled:o,multiple:i,open:n,error:s}=e;return V({select:["select",r,o&&"disabled",i&&"multiple",s&&"error"],icon:["icon",n&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]},yg,t)},q9=ct.forwardRef(function(t,r){let{"aria-describedby":o,"aria-label":i,autoFocus:n,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:p,displayEmpty:f,error:d=!1,IconComponent:h,inputRef:y,labelId:b,MenuProps:m={},multiple:g,name:v,onBlur:S,onChange:C,onClose:w,onFocus:k,onKeyDown:O,onMouseDown:A,onOpen:B,open:M,readOnly:x,renderValue:P,required:T,SelectDisplayProps:E={},tabIndex:D,type:z,value:L,variant:Z="standard",...re}=t,[Q,fe]=tl({controlled:L,default:u,name:"Select"}),[ye,he]=tl({controlled:M,default:c,name:"Select"}),ie=ct.useRef(null),J=ct.useRef(null),[le,oe]=ct.useState(null),{current:se}=ct.useRef(M!=null),[Oe,gt]=ct.useState(),[be,ne]=ct.useState(null),dt=At(r,y),xr=ct.useCallback(me=>{J.current=me,me&&oe(me)},[]),ft=le?.parentNode;ct.useImperativeHandle(dt,()=>({focus:()=>{J.current.focus()},node:ie.current,value:Q}),[Q]);let Ze=le!==null&&ye;ct.useEffect(()=>{if(!Ze||!ft||s||typeof ResizeObserver>"u")return;let me=new ResizeObserver(()=>{gt(ft.clientWidth)});return me.observe(ft),()=>{me.disconnect()}},[Ze,ft,s]),ct.useEffect(()=>{c&&ye&&le&&!se&&(gt(s?null:ft.clientWidth),J.current.focus())},[le,s]),ct.useEffect(()=>{n&&J.current.focus()},[n]),ct.useEffect(()=>{if(!b)return;let me=rn(J.current).getElementById(b);if(me){let Ue=()=>{getSelection().isCollapsed&&J.current.focus()};return me.addEventListener("click",Ue),()=>{me.removeEventListener("click",Ue)}}},[b]);let vt=(me,Ue)=>{me?(ne(tg(Ue)),B&&B(Ue)):(ne(null),w&&w(Ue)),se||(gt(s?null:ft.clientWidth),he(me))},Ee=me=>{A?.(me),me.button===0&&(me.preventDefault(),J.current.focus(),vt(!0,me))},zr=me=>{vt(!1,me)},ur=ct.Children.toArray(a),Ot=me=>{let Ue=ur.find(Wt=>Wt.props.value===me.target.value);Ue!==void 0&&(fe(Ue.props.value),C&&C(me,Ue))},Ki=me=>Ue=>{let Wt;if(Ue.currentTarget.hasAttribute("tabindex")){if(g){Wt=Array.isArray(Q)?Q.slice():[];let Cs=Q.indexOf(me.props.value);Cs===-1?Wt.push(me.props.value):Wt.splice(Cs,1)}else Wt=me.props.value;if(me.props.onClick&&me.props.onClick(Ue),Q!==Wt&&(fe(Wt),C)){let Cs=Ue.nativeEvent||Ue,im=new Cs.constructor(Cs.type,Cs);Object.defineProperty(im,"target",{writable:!0,value:{value:Wt,name:v}}),C(im,me)}g||vt(!1,Ue)}},To=me=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),vt(!0,me)),O?.(me))},Ri=me=>{!Ze&&S&&(Object.defineProperty(me,"target",{writable:!0,value:{value:Q,name:v}}),S(me))};delete re["aria-invalid"];let st,He,bt=[],Ce=!1,Kr=!1;(nl({value:Q})||f)&&(P?st=P(Q):Ce=!0);let Pi=ur.map(me=>{if(!ct.isValidElement(me))return null;let Ue;if(g){if(!Array.isArray(Q))throw new Error(pr(2));Ue=Q.some(Wt=>tf(Wt,me.props.value)),Ue&&Ce&&bt.push(me.props.children)}else Ue=tf(Q,me.props.value),Ue&&Ce&&(He=me.props.children);return Ue&&(Kr=!0),ct.cloneElement(me,{"aria-selected":Ue?"true":"false",onClick:Ki(me),onKeyUp:Wt=>{Wt.key===" "&&Wt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(Wt)},role:"option",selected:Ue,value:void 0,"data-value":me.props.value})});Ce&&(g?bt.length===0?st=null:st=bt.reduce((me,Ue,Wt)=>(me.push(Ue),Wt<bt.length-1&&me.push(", "),me),[]):st=He);let Ts=Oe;!s&&se&&le&&(Ts=ft.clientWidth);let Ma;typeof D<"u"?Ma=D:Ma=p?null:0;let ht=E.id||(v?`mui-component-select-${v}`:void 0),Ei={...t,variant:Z,value:Q,open:Ze,error:d},Wp=V9(Ei),rm=typeof m.slotProps?.paper=="function"?m.slotProps.paper(Ei):m.slotProps?.paper,om=typeof m.slotProps?.list=="function"?m.slotProps.list(Ei):m.slotProps?.list,Vp=Eo(),qp=Eo();return(0,$n.jsxs)(ct.Fragment,{children:[(0,$n.jsx)($9,{as:"div",ref:xr,tabIndex:Ma,role:"combobox","aria-controls":Ze?Vp:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ze?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ht].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":T?"true":void 0,"aria-invalid":d?"true":void 0,onKeyDown:To,onMouseDown:p||x?null:Ee,onBlur:Ri,onFocus:k,...E,ownerState:Ei,className:H(E.className,Wp.select,l),id:ht,children:rg(st)?V2||(V2=(0,$n.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"})):st}),(0,$n.jsx)(W9,{"aria-invalid":d,value:Array.isArray(Q)?Q.join(","):Q,name:v,ref:ie,"aria-hidden":!0,onChange:Ot,tabIndex:-1,disabled:p,className:Wp.nativeInput,autoFocus:n,required:T,...re,id:re.id??qp,ownerState:Ei}),(0,$n.jsx)(j9,{as:h,className:Wp.icon,ownerState:Ei}),(0,$n.jsx)(rS,{value:be,children:(0,$n.jsx)(M2,{id:`menu-${v||""}`,anchorEl:ft,open:Ze,onClose:zr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...m,slotProps:{...m.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:Vp,...om},paper:{...rm,style:{minWidth:Ts,...rm?.style}}},children:Pi})})]})}),q2=q9;var uf=_(R(),1),K9=e=>{let{classes:t}=e,o=V({root:["root"]},yg,t);return{...t,...o}},mS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Le(e)&&e!=="variant"},G9=N(Gd,mS)(""),Y9=N(af,mS)(""),X9=N(Vd,mS)(""),K2=Tu.forwardRef(function(t,r){let o=q({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:n,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=WE,id:p,input:f,inputProps:d,label:h,labelId:y,MenuProps:b,multiple:m=!1,native:g=!1,onClose:v,onOpen:S,open:C,renderValue:w,SelectDisplayProps:k,variant:O="outlined",...A}=o,B=g?B2:q2,M=zt(),x=kr({props:o,muiFormControl:M,states:["variant","error"]}),P=x.variant||O,T={...o,variant:P,classes:s},E=K9(T),{root:D,...z}=E,L=f||{standard:(0,uf.jsx)(G9,{ownerState:T}),outlined:(0,uf.jsx)(Y9,{label:h,ownerState:T}),filled:(0,uf.jsx)(X9,{ownerState:T})}[P],Z=At(r,co(L));return(0,uf.jsx)(Tu.Fragment,{children:Tu.cloneElement(L,{inputComponent:B,inputProps:{children:n,error:x.error,IconComponent:u,variant:P,type:void 0,multiple:m,...g?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:b,onClose:v,onOpen:S,open:C,renderValue:w,SelectDisplayProps:{id:p,...k}},...d,classes:d?Ke(z,d.classes):z,...f?f.props.inputProps:{}},...(m&&g||c)&&P==="outlined"?{notched:!0}:{},ref:Z,className:H(L.props.className,a,E.root),...!f&&{variant:P},...A})})});K2.muiName="Select";var Cu=K2;var gg=_(I(),1);var wu=_(I(),1);function Z9(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:o,open:i,resumeHideDuration:n}=e,s=Ms();wu.useEffect(()=>{if(!i)return;function m(g){g.defaultPrevented||g.key==="Escape"&&o?.(g,"escapeKeyDown")}return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[i,o]);let a=Er((m,g)=>{o?.(m,g)}),l=Er(m=>{!o||m==null||s.start(m,()=>{a(null,"timeout")})});wu.useEffect(()=>(i&&l(t),s.clear),[i,t,l,s]);let c=m=>{o?.(m,"clickaway")},u=s.clear,p=wu.useCallback(()=>{t!=null&&l(n??t*.5)},[t,n,l]),f=m=>g=>{let v=m.onBlur;v?.(g),p()},d=m=>g=>{let v=m.onFocus;v?.(g),u()},h=m=>g=>{let v=m.onMouseEnter;v?.(g),u()},y=m=>g=>{let v=m.onMouseLeave;v?.(g),p()};return wu.useEffect(()=>{if(!r&&i)return window.addEventListener("focus",p),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",u)}},[r,i,p,u]),{getRootProps:(m={})=>{let g={...As(e),...As(m)};return{role:"presentation",...m,...g,onBlur:f(g),onFocus:d(g),onMouseEnter:h(g),onMouseLeave:y(g)}},onClickAway:c}}var G2=Z9;var X2=_(I(),1);function Y2(e){return W("MuiSnackbarContent",e)}var dPe=j("MuiSnackbarContent",["root","message","action"]);var pf=_(R(),1),Q9=e=>{let{classes:t}=e;return V({root:["root"],action:["action"],message:["message"]},Y2,t)},J9=N(St,{name:"MuiSnackbarContent",slot:"Root"})(Y(({theme:e})=>{let t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(md(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:md(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),e7=N("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),t7=N("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),r7=X2.forwardRef(function(t,r){let o=q({props:t,name:"MuiSnackbarContent"}),{action:i,className:n,message:s,role:a="alert",...l}=o,c=o,u=Q9(c);return(0,pf.jsxs)(J9,{role:a,elevation:6,className:H(u.root,n),ownerState:c,ref:r,...l,children:[(0,pf.jsx)(e7,{className:u.message,ownerState:c,children:s}),i?(0,pf.jsx)(t7,{className:u.action,ownerState:c,children:i}):null]})}),yS=r7;function Z2(e){return W("MuiSnackbar",e)}var EPe=j("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var df=_(R(),1),o7=e=>{let{classes:t,anchorOrigin:r}=e,o={root:["root",`anchorOrigin${K(r.vertical)}${K(r.horizontal)}`]};return V(o,Z2,t)},i7=N("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`anchorOrigin${K(r.anchorOrigin.vertical)}${K(r.anchorOrigin.horizontal)}`]]}})(Y(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),n7=gg.forwardRef(function(t,r){let o=q({props:t,name:"MuiSnackbar"}),i=Fr(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:p,disableWindowBlurListener:f=!1,message:d,onBlur:h,onClose:y,onFocus:b,onMouseEnter:m,onMouseLeave:g,open:v,resumeHideDuration:S,slots:C={},slotProps:w={},transitionDuration:k=n,...O}=o,A={...o,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:f,transitionDuration:k},B=o7(A),{getRootProps:M,onClickAway:x}=G2(A),[P,T]=gg.useState(!0),E={slots:C,slotProps:w},[D,z]=ee("root",{ref:r,className:[B.root,p],elementType:i7,getSlotProps:M,externalForwardedProps:{...E,...O},ownerState:A}),[L,{ownerState:Z,...re}]=ee("clickAwayListener",{elementType:I0,externalForwardedProps:E,getSlotProps:ie=>({onClickAway:(...J)=>{let le=J[0];ie.onClickAway?.(...J),!le?.defaultMuiPrevented&&x(...J)}}),ownerState:A}),[Q,fe]=ee("content",{elementType:yS,shouldForwardComponentProp:!0,externalForwardedProps:E,additionalProps:{message:d,action:s},ownerState:A}),[ye,he]=ee("transition",{elementType:Kd,externalForwardedProps:E,getSlotProps:ie=>({onEnter:(...J)=>{ie.onEnter?.(...J),T(!1)},onExited:(...J)=>{ie.onExited?.(...J),T(!0)}}),additionalProps:{appear:!0,in:v,timeout:k,direction:a==="top"?"down":"up"},ownerState:A});return!v&&P?null:(0,df.jsx)(L,{...re,...C.clickAwayListener&&{ownerState:Z},children:(0,df.jsx)(D,{...z,children:(0,df.jsx)(ye,{...he,children:u||(0,df.jsx)(Q,{...fe})})})})}),Ru=n7;var s7=ny({createStyledComponent:N("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>q({props:e,name:"MuiStack"})}),Ae=s7;var J2=_(I(),1);function Q2(e){return W("MuiSwitch",e)}var a7=j("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),$r=a7;var Pu=_(R(),1),l7=e=>{let{classes:t,edge:r,size:o,color:i,checked:n,disabled:s}=e,a={root:["root",r&&`edge${K(r)}`,`size${K(o)}`],switchBase:["switchBase",`color${K(i)}`,n&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=V(a,Q2,t);return{...t,...l}},c7=N("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t[`edge${K(r.edge)}`],t[`size${K(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${$r.thumb}`]:{width:16,height:16},[`& .${$r.switchBase}`]:{padding:4,[`&.${$r.checked}`]:{transform:"translateX(16px)"}}}}]}),u7=N(ru,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{[`& .${$r.input}`]:t.input},r.color!=="default"&&t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${$r.checked}`]:{transform:"translateX(20px)"},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$r.checked} + .${$r.track}`]:{opacity:.5},[`&.${$r.disabled} + .${$r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$r.input}`]:{left:"-100%",width:"300%"}})),Y(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(we(["light"])).map(([t])=>({props:{color:t},style:{[`&.${$r.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${$r.checked} + .${$r.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),p7=N("span",{name:"MuiSwitch",slot:"Track"})(Y(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,boxSizing:"border-box",border:"1px solid transparent",zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),d7=N("span",{name:"MuiSwitch",slot:"Thumb"})(Y(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),f7=J2.forwardRef(function(t,r){let o=q({props:t,name:"MuiSwitch"}),{className:i,color:n="primary",edge:s=!1,size:a="medium",sx:l,slots:c={},slotProps:u={},...p}=o,f={...o,color:n,edge:s,size:a},d=l7(f),h={slots:c,slotProps:u},[y,b]=ee("root",{className:H(d.root,i),elementType:c7,externalForwardedProps:h,ownerState:f,additionalProps:{sx:l}}),[m,g]=ee("thumb",{className:d.thumb,elementType:d7,externalForwardedProps:h,ownerState:f}),v=(0,Pu.jsx)(m,{...g}),[S,C]=ee("track",{className:d.track,elementType:p7,externalForwardedProps:h,ownerState:f});return(0,Pu.jsxs)(y,{...b,children:[(0,Pu.jsx)(u7,{type:"checkbox",icon:v,checkedIcon:v,ref:r,ownerState:f,...p,classes:{...d,root:d.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(f):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(f):u.input}}}),(0,Pu.jsx)(S,{...C})]})}),vg=f7;var jn=_(I(),1);function eO(e){return W("MuiTab",e)}var h7=j("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","icon"]),ai=h7;var bg=_(R(),1),m7=e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:i,icon:n,label:s,selected:a,disabled:l}=e,c={root:["root",n&&s&&"labelIcon",`textColor${K(r)}`,o&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],icon:["icon"]};return V(c,eO,t)},y7=N(Bt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${K(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${ai.icon}`]:t.icon}]}})(Y(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${ai.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${ai.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${ai.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${ai.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ai.selected}`]:{opacity:1},[`&.${ai.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ai.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ai.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),g7=jn.forwardRef(function(t,r){let o=q({props:t,name:"MuiTab"}),{className:i,disabled:n=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:p,onChange:f,onClick:d,onFocus:h,selected:y,selectionFollowsFocus:b,textColor:m="inherit",value:g,wrapped:v=!1,...S}=o,C=Zd(),w=Jd({id:g,ref:r,disabled:n,selected:y}),O=C.getItemMap().size===0&&y?0:w.tabIndex,A={...o,disabled:n,disableFocusRipple:s,selected:y,icon:!!l,iconPosition:c,label:!!p,fullWidth:a,textColor:m,wrapped:v},B=m7(A),M=l&&p&&jn.isValidElement(l)?jn.cloneElement(l,{className:H(B.icon,l.props.className)}):l,x=T=>{!y&&f&&f(T,g),d&&d(T)},P=T=>{b&&!y&&f&&f(T,g),h&&h(T)};return(0,bg.jsxs)(y7,{internalNativeButton:!0,focusRipple:!s,className:H(B.root,i),ref:w.ref,role:"tab","aria-selected":y,disabled:n,onClick:x,onFocus:P,tabIndex:O,ownerState:A,...S,children:[c==="top"||c==="start"?(0,bg.jsxs)(jn.Fragment,{children:[M,p]}):(0,bg.jsxs)(jn.Fragment,{children:[p,M]}),u]})}),hl=g7;var rO=_(I(),1);function tO(e){return W("MuiToolbar",e)}var NEe=j("MuiToolbar",["root","gutters","regular","dense"]);var oO=_(R(),1),v7=e=>{let{classes:t,disableGutters:r,variant:o}=e;return V({root:["root",!r&&"gutters",o]},tO,t)},b7=N("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Y(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),_7=rO.forwardRef(function(t,r){let o=q({props:t,name:"MuiToolbar"}),{className:i,component:n="div",disableGutters:s=!1,variant:a="regular",...l}=o,c={...o,component:n,disableGutters:s,variant:a},u=v7(c);return(0,oO.jsx)(b7,{as:n,className:H(u.root,i),ref:r,ownerState:c,...l})}),_g=_7;var iO=_(R(),1),nO=_e((0,iO.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var sO=_(R(),1),aO=_e((0,sO.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var et=_(I(),1);function S7(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gS(e,t,r,o={},i=()=>{}){let{ease:n=S7,duration:s=300}=o,a=null,l=t[e],c=!1,u=()=>{c=!0},p=f=>{if(c){i(new Error("Animation cancelled"));return}a===null&&(a=f);let d=Math.min(1,(f-a)/s);if(t[e]=n(d)*(r-l)+l,d>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),u):(requestAnimationFrame(p),u)}var ff=_(I(),1);var lO=_(R(),1),x7={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function vS(e){let{onChange:t,...r}=e,o=ff.useRef(),i=ff.useRef(null),n=()=>{o.current=i.current.offsetHeight-i.current.clientHeight};return Bn(()=>{let s=$c(()=>{let l=o.current;n(),l!==o.current&&t(o.current)}),a=on(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),ff.useEffect(()=>{n(),t(o.current)},[t]),(0,lO.jsx)("div",{style:x7,...r,ref:i})}var pO=_(I(),1);function cO(e){return W("MuiTabScrollButton",e)}var T7=j("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),uO=T7;var Sg=_(R(),1),C7=e=>{let{classes:t,orientation:r,disabled:o}=e;return V({root:["root",r,o&&"disabled"]},cO,t)},w7=N(Bt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${uO.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),R7=pO.forwardRef(function(t,r){let o=q({props:t,name:"MuiTabScrollButton"}),{className:i,slots:n={},slotProps:s={},direction:a,orientation:l,disabled:c,...u}=o,{nativeButton:p,...f}=u,d=Bc(),h={isRtl:d,...o},y=C7(h),b=n.StartScrollButtonIcon??nO,m=n.EndScrollButtonIcon??aO,g=zn({elementType:b,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=zn({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,Sg.jsx)(w7,{component:"div",className:H(y.root,i),ref:r,role:null,ownerState:h,tabIndex:null,...f,style:{...f.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?(0,Sg.jsx)(b,{...g}):(0,Sg.jsx)(m,{...v})})}),bS=R7;function dO(e){return W("MuiTabs",e)}var P7=j("MuiTabs",["root","vertical","list","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),xg=P7;var an=_(R(),1),E7=e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:i,scrollableY:n,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return V({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",i&&"scrollableX",n&&"scrollableY"],list:["list",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},dO,l)},k7=N("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${xg.scrollButtons}`]:t.scrollButtons},{[`& .${xg.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Y(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${xg.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),O7=N("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),M7=N("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.list,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),D7=N("span",{name:"MuiTabs",slot:"Indicator"})(Y(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),A7=N(vS)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fO={};var B7=et.forwardRef(function(t,r){let o=q({props:t,name:"MuiTabs"}),i=Fr(),n=Bc(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:p,component:f="div",allowScrollButtonsMobile:d=!1,indicatorColor:h="primary",onChange:y,orientation:b="horizontal",scrollButtons:m="auto",selectionFollowsFocus:g,slots:v={},slotProps:S={},textColor:C="primary",value:w,variant:k="standard",visibleScrollbar:O=!1,...A}=o,B=k==="scrollable",M=b==="vertical",x=M?"scrollTop":"scrollLeft",P=M?"top":"left",T=M?"bottom":"right",E=M?"clientHeight":"clientWidth",D=M?"height":"width",z={...o,component:f,allowScrollButtonsMobile:d,indicatorColor:h,orientation:b,vertical:M,scrollButtons:m,textColor:C,variant:k,visibleScrollbar:O,fixed:!B,hideScrollbar:B&&!O,scrollableX:B&&!M,scrollableY:B&&M,centered:c&&!B,scrollButtonsHideMobile:!d},L=E7(z),Z=zn({elementType:v.startScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:z}),re=zn({elementType:v.endScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:z}),[Q,fe]=et.useState(!1),[ye,he]=et.useState(fO),[ie,J]=et.useState(!1),[le,oe]=et.useState(!1),[se,Oe]=et.useState(!1),gt=w===!1?null:w,[be,ne]=et.useState(!1),[dt,xr]=et.useState({overflow:"hidden",scrollbarWidth:0}),ft=new Map,Ze=et.useRef(null),vt=et.useRef(null),Ee={slots:v,slotProps:S},zr=()=>{let ce=Ze.current,ue;if(ce){let je=ce.getBoundingClientRect();ue={clientWidth:ce.clientWidth,scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop,scrollWidth:ce.scrollWidth,top:je.top,bottom:je.bottom,left:je.left,right:je.right}}let Qe;if(ce&&w!==!1){let je=vt.current.children;if(je.length>0){let Tr=je[ft.get(w)];Qe=Tr?Tr.getBoundingClientRect():null}}return{tabsMeta:ue,tabMeta:Qe}},ur=ri(()=>{let{tabsMeta:ce,tabMeta:ue}=zr(),Qe=0,je;M?(je="top",ue&&ce&&(Qe=ue.top-ce.top+ce.scrollTop)):(je=n?"right":"left",ue&&ce&&(Qe=(n?-1:1)*(ue[je]-ce[je]+ce.scrollLeft)));let Tr={[je]:Qe,[D]:ue?ue[D]:0};if(typeof ye[je]!="number"||typeof ye[D]!="number")he(Tr);else{let Da=Math.abs(ye[je]-Tr[je]),Aa=Math.abs(ye[D]-Tr[D]);(Da>=1||Aa>=1)&&he(Tr)}}),Ot=(ce,{animation:ue=!0}={})=>{ue?gS(x,Ze.current,ce,{duration:i.transitions.duration.standard}):Ze.current[x]=ce},Ki=ce=>{let ue=Ze.current[x];M?ue+=ce:ue+=ce*(n?-1:1),Ot(ue)},To=()=>{let ce=Ze.current[E],ue=0,Qe=Array.from(vt.current.children);for(let je=0;je<Qe.length;je+=1){let Tr=Qe[je];if(ue+Tr[E]>ce){je===0&&(ue=ce);break}ue+=Tr[E]}return ue},Ri=()=>{Ki(-1*To())},st=()=>{Ki(To())},[He,{onChange:bt,...Ce}]=ee("scrollbar",{className:H(L.scrollableX,L.hideScrollbar),elementType:A7,shouldForwardComponentProp:!0,externalForwardedProps:Ee,ownerState:z}),Kr=et.useCallback(ce=>{bt?.(ce),xr({overflow:null,scrollbarWidth:ce})},[bt]),[Pi,Ts]=ee("scrollButtons",{className:L.scrollButtons,elementType:bS,externalForwardedProps:Ee,ownerState:z,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:v.startScrollButtonIcon,EndScrollButtonIcon:v.endScrollButtonIcon},slotProps:{startScrollButtonIcon:Z,endScrollButtonIcon:re}}}),Ma=()=>{let ce={};ce.scrollbarSizeListener=B?(0,an.jsx)(He,{...Ce,onChange:Kr}):null;let Qe=B&&(m==="auto"&&(ie||le)||m===!0);return ce.scrollButtonStart=Qe?(0,an.jsx)(Pi,{direction:n?"right":"left",onClick:Ri,disabled:!ie,...Ts}):null,ce.scrollButtonEnd=Qe?(0,an.jsx)(Pi,{direction:n?"left":"right",onClick:st,disabled:!le,...Ts}):null,ce},ht=ri(ce=>{let{tabsMeta:ue,tabMeta:Qe}=zr();if(!(!Qe||!ue)){if(Qe[P]<ue[P]){let je=ue[x]+(Qe[P]-ue[P]);Ot(je,{animation:ce})}else if(Qe[T]>ue[T]){let je=ue[x]+(Qe[T]-ue[T]);Ot(je,{animation:ce})}}}),Ei=ri(()=>{B&&m!==!1&&Oe(!se)});et.useEffect(()=>{let ce=$c(()=>{Ze.current&&ur()}),ue,Qe=Da=>{Da.forEach(Aa=>{Aa.removedNodes.forEach(Kp=>{ue?.unobserve(Kp)}),Aa.addedNodes.forEach(Kp=>{ue?.observe(Kp)})}),ce(),Ei()},je=on(Ze.current);je.addEventListener("resize",ce);let Tr;return typeof ResizeObserver<"u"&&(ue=new ResizeObserver(ce),Array.from(vt.current.children).forEach(Da=>{ue.observe(Da)})),typeof MutationObserver<"u"&&(Tr=new MutationObserver(Qe),Tr.observe(vt.current,{childList:!0})),()=>{ce.clear(),je.removeEventListener("resize",ce),Tr?.disconnect(),ue?.disconnect()}},[ur,Ei]),et.useEffect(()=>{let ce=Array.from(vt.current.children),ue=ce.length;if(typeof IntersectionObserver<"u"&&ue>0&&B&&m!==!1){let Qe=ce[0],je=ce[ue-1],Tr={root:Ze.current,threshold:.99},Da=p_=>{J(!p_[0].isIntersecting)},Aa=new IntersectionObserver(Da,Tr);Aa.observe(Qe);let Kp=p_=>{oe(!p_[0].isIntersecting)},iw=new IntersectionObserver(Kp,Tr);return iw.observe(je),()=>{Aa.disconnect(),iw.disconnect()}}},[B,m,se,u?.length]),et.useEffect(()=>{fe(!0)},[]),et.useEffect(()=>{ur()}),et.useEffect(()=>{ht(fO!==ye)},[ht,ye]),et.useImperativeHandle(l,()=>({updateIndicator:ur,updateScrollButtons:Ei}),[ur,Ei]);let[Wp,rm]=ee("indicator",{className:L.indicator,elementType:D7,externalForwardedProps:Ee,ownerState:z,additionalProps:{style:ye}}),om=(0,an.jsx)(Wp,{...rm}),Vp=Qd({activeItemId:be?void 0:gt,orientation:b,isRtl:n}),qp=Vp.getContainerProps(),Ue=et.Children.toArray(u).filter(et.isValidElement).map((ce,ue)=>{let Qe=ce.props.value===void 0?ue:ce.props.value;return ft.set(Qe,ue),{child:ce,index:ue,childValue:Qe}}).map(({child:ce,childValue:ue})=>{let Qe=ue===w;return et.cloneElement(ce,{fullWidth:k==="fullWidth",indicator:Qe&&!Q&&om,selected:Qe,selectionFollowsFocus:g,onChange:y,textColor:C,value:ue})}),Wt=Ma(),[Cs,im]=ee("root",{ref:r,className:H(L.root,p),elementType:k7,externalForwardedProps:{...Ee,...A,component:f},ownerState:z}),[Zz,Qz]=ee("scroller",{ref:Ze,className:L.scroller,elementType:O7,externalForwardedProps:Ee,ownerState:z,additionalProps:{style:{overflow:dt.overflow,[M?`margin${n?"Left":"Right"}`:"marginBottom"]:O?void 0:-dt.scrollbarWidth}}}),Jz=At(qp.ref,vt),e4=ce=>{let ue=vt.current;tn(rn(ue))?.getAttribute("role")==="tab"&&qp.onKeyDown(ce)},[t4,r4]=ee("list",{ref:Jz,className:L.list,elementType:M7,externalForwardedProps:Ee,ownerState:z,getSlotProps:ce=>({...ce,onBlur:ue=>{ue.currentTarget.contains(ue.relatedTarget)||ne(!1),ce.onBlur?.(ue)},onKeyDown:ue=>{e4(ue),ce.onKeyDown?.(ue)},onFocus:ue=>{ne(!0),qp.onFocus(ue),ce.onFocus?.(ue)}})});return(0,an.jsxs)(Cs,{...im,children:[Wt.scrollButtonStart,Wt.scrollbarSizeListener,(0,an.jsxs)(Zz,{...Qz,children:[(0,an.jsx)(t4,{"aria-label":s,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...r4,children:(0,an.jsx)(bu.Provider,{value:Vp,children:Ue})}),Q&&om]}),Wt.scrollButtonEnd]})}),hf=B7;var mO=_(I(),1);function hO(e){return W("MuiTextField",e)}var qke=j("MuiTextField",["root"]);var ml=_(R(),1),N7={standard:Gd,filled:Vd,outlined:af},L7=e=>{let{classes:t}=e;return V({root:["root"]},hO,t)},I7=N(fu,{name:"MuiTextField",slot:"Root"})({}),z7=mO.forwardRef(function(t,r){let o=q({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:n=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:p=!1,fullWidth:f=!1,helperText:d,id:h,inputRef:y,label:b,maxRows:m,minRows:g,multiline:v=!1,name:S,onBlur:C,onChange:w,onFocus:k,placeholder:O,required:A=!1,rows:B,select:M=!1,slots:x={},slotProps:P={},type:T,value:E,variant:D="outlined",...z}=o,L={...o,autoFocus:n,color:l,disabled:u,error:p,fullWidth:f,multiline:v,required:A,select:M,variant:D},Z=L7(L),re=Eo(h),Q=d&&re?`${re}-helper-text`:void 0,fe=b&&re?`${re}-label`:void 0,ye=N7[D],he={slots:x,slotProps:P},[ie,J]=ee("select",{elementType:Cu,externalForwardedProps:he,ownerState:L}),le=M&&J.native,oe={},se=he.slotProps.inputLabel;D==="outlined"&&(se&&typeof se.shrink<"u"&&(oe.notched=se.shrink),oe.label=b),M&&(le||(oe.id=void 0),oe["aria-describedby"]=void 0);let[Oe,gt]=ee("root",{elementType:I7,shouldForwardComponentProp:!0,externalForwardedProps:{...he,...z},ownerState:L,className:H(Z.root,a),ref:r,additionalProps:{disabled:u,error:p,fullWidth:f,required:A,color:l,variant:D}}),[be,ne]=ee("input",{elementType:ye,externalForwardedProps:he,additionalProps:oe,ownerState:L}),[dt,xr]=ee("inputLabel",{elementType:X0,externalForwardedProps:he,ownerState:L}),[ft,Ze]=ee("htmlInput",{elementType:"input",externalForwardedProps:he,ownerState:L}),[vt,Ee]=ee("formHelperText",{elementType:K0,externalForwardedProps:he,ownerState:L}),zr=(0,ml.jsx)(be,{"aria-describedby":Q,autoComplete:i,autoFocus:n,defaultValue:c,fullWidth:f,multiline:v,name:S,rows:B,maxRows:m,minRows:g,type:T,value:E,id:re,inputRef:y,onBlur:C,onChange:w,onFocus:k,placeholder:O,inputProps:Ze,slots:{input:x.htmlInput?ft:void 0},...ne});return(0,ml.jsxs)(Oe,{...gt,children:[b!=null&&b!==""&&(0,ml.jsx)(dt,{htmlFor:M&&!le?void 0:re,id:fe,...M&&!le&&{component:"div"},...xr,children:b}),M?(0,ml.jsx)(ie,{"aria-describedby":Q,id:re,labelId:fe,value:E,input:zr,...J,children:s}):zr,d&&(0,ml.jsx)(vt,{id:Q,...Ee,children:d})]})}),Zt=z7;var Yz=_(I(),1),Xz=_($B(),1);var bo=_(I(),1),ae=_(I(),1),pt=_(I(),1),y1=_(I(),1),bN=_(I(),1),Ne=_(I(),1),vK=_(I(),1),bK=_(I(),1),_K=_(I(),1),pe=_(I(),1),DN=_(I(),1),DK={};var jB="popstate";function WB(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function ZB(e={}){function t(o,i){let n=i.state?.masked,{pathname:s,search:a,hash:l}=n||o.location;return t1("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default",n?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function r(o,i){return typeof i=="string"?i:vp(i)}return dq(t,r,null,e)}function yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pq(){return Math.random().toString(36).substring(2,10)}function VB(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function t1(e,t,r=null,o,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ll(t):t,state:r,key:t&&t.key||o||pq(),unstable_mask:i}}function vp({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ll(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function dq(e,t,r,o={}){let{window:i=document.defaultView,v5Compat:n=!1}=o,s=i.history,a="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function p(){a="POP";let b=u(),m=b==null?null:b-c;c=b,l&&l({action:a,location:y.location,delta:m})}function f(b,m){a="PUSH";let g=WB(b)?b:t1(y.location,b,m);r&&r(g,b),c=u()+1;let v=VB(g,c),S=y.createHref(g.unstable_mask||g);try{s.pushState(v,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}n&&l&&l({action:a,location:y.location,delta:1})}function d(b,m){a="REPLACE";let g=WB(b)?b:t1(y.location,b,m);r&&r(g,b),c=u();let v=VB(g,c),S=y.createHref(g.unstable_mask||g);s.replaceState(v,"",S),n&&l&&l({action:a,location:y.location,delta:0})}function h(b){return fq(b)}let y={get action(){return a},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(jB,p),l=b,()=>{i.removeEventListener(jB,p),l=null}},createHref(b){return t(i,b)},createURL:h,encodeLocation(b){let m=h(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:d,go(b){return s.go(b)}};return y}function fq(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),yt(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:vp(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=r+o),new URL(o,r)}var hq;hq=new WeakMap;function n1(e,t,r="/"){return mq(e,t,r,!1)}function mq(e,t,r,o){let i=typeof t=="string"?Ll(t):t,n=yn(i.pathname||"/",r);if(n==null)return null;let s=QB(e);gq(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=Eq(n);a=Rq(s[l],c,o)}return a}function yq(e,t){let{route:r,pathname:o,params:i}=e;return{id:r.id,pathname:o,params:i,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function QB(e,t=[],r=[],o="",i=!1){let n=(s,a,l=i,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(o)&&l)return;yt(u.relativePath.startsWith(o),`Absolute route path "${u.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(o.length)}let p=mn([o,u.relativePath]),f=r.concat(u);s.children&&s.children.length>0&&(yt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),QB(s.children,t,f,p,l)),!(s.path==null&&!s.index)&&t.push({path:p,score:Cq(p,s.index),routesMeta:f})};return e.forEach((s,a)=>{if(s.path===""||!s.path?.includes("?"))n(s,a);else for(let l of JB(s.path))n(s,a,!0,l)}),t}function JB(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,i=r.endsWith("?"),n=r.replace(/\?$/,"");if(o.length===0)return i?[n,""]:[n];let s=JB(o.join("/")),a=[];return a.push(...s.map(l=>l===""?n:[n,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function gq(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:wq(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var vq=/^:[\w-]+$/,bq=3,_q=2,Sq=1,xq=10,Tq=-2,qB=e=>e==="*";function Cq(e,t){let r=e.split("/"),o=r.length;return r.some(qB)&&(o+=Tq),t&&(o+=_q),r.filter(i=>!qB(i)).reduce((i,n)=>i+(vq.test(n)?bq:n===""?Sq:xq),o)}function wq(e,t){return e.length===t.length&&e.slice(0,-1).every((o,i)=>o===t[i])?e[e.length-1]-t[t.length-1]:0}function Rq(e,t,r=!1){let{routesMeta:o}=e,i={},n="/",s=[];for(let a=0;a<o.length;++a){let l=o[a],c=a===o.length-1,u=n==="/"?t:t.slice(n.length)||"/",p=yh({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!p&&c&&r&&!o[o.length-1].route.index&&(p=yh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:mn([n,p.pathname]),pathnameBase:Mq(mn([n,p.pathnameBase])),route:f}),p.pathnameBase!=="/"&&(n=mn([n,p.pathnameBase]))}return s}function yh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Pq(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let n=i[0],s=n.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:o.reduce((c,{paramName:u,isOptional:p},f)=>{if(u==="*"){let h=a[f]||"";s=n.slice(0,n.length-h.length).replace(/(.)\/+$/,"$1")}let d=a[f];return p&&!d?c[u]=void 0:c[u]=(d||"").replace(/%2F/g,"/"),c},{}),pathname:n,pathnameBase:s,pattern:e}}function Pq(e,t=!1,r=!0){jo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l,c,u)=>{if(o.push({paramName:a,isOptional:l!=null}),l){let p=u.charAt(c+s.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function Eq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function yn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}var kq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function eN(e,t="/"){let{pathname:r,search:o="",hash:i=""}=typeof e=="string"?Ll(e):e,n;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?n=KB(r.substring(1),"/"):n=KB(r,t)):n=t,{pathname:n,search:Dq(o),hash:Aq(i)}}function KB(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function QT(e,t,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Oq(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function s1(e){let t=Oq(e);return t.map((r,o)=>o===t.length-1?r.pathname:r.pathnameBase)}function rb(e,t,r,o=!1){let i;typeof e=="string"?i=Ll(e):(i={...e},yt(!i.pathname||!i.pathname.includes("?"),QT("?","pathname","search",i)),yt(!i.pathname||!i.pathname.includes("#"),QT("#","pathname","hash",i)),yt(!i.search||!i.search.includes("#"),QT("#","search","hash",i)));let n=e===""||i.pathname==="",s=n?"/":i.pathname,a;if(s==null)a=r;else{let p=t.length-1;if(!o&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),p-=1;i.pathname=f.join("/")}a=p>=0?t[p]:"/"}let l=eN(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(n||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var mn=e=>e.join("/").replace(/\/\/+/g,"/"),Mq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Aq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;var tN=class{constructor(e,t,r,o=!1){this.status=e,this.statusText=t||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function rN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Bq(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var oN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function iN(e,t){let r=e;if(typeof r!="string"||!kq.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,i=!1;if(oN)try{let n=new URL(window.location.href),s=r.startsWith("//")?new URL(n.protocol+r):new URL(r),a=yn(s.pathname,t);s.origin===n.origin&&a!=null?r=a+s.search+s.hash:i=!0}catch{jo(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:i,to:r}}var SDe=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nN=["POST","PUT","PATCH","DELETE"],xDe=new Set(nN),Nq=["GET",...nN],TDe=new Set(Nq);var Il=bo.createContext(null);Il.displayName="DataRouter";var bp=bo.createContext(null);bp.displayName="DataRouterState";var sN=bo.createContext(!1);function Lq(){return bo.useContext(sN)}var a1=bo.createContext({isTransitioning:!1});a1.displayName="ViewTransition";var aN=bo.createContext(new Map);aN.displayName="Fetchers";var Iq=bo.createContext(null);Iq.displayName="Await";var Wr=bo.createContext(null);Wr.displayName="Navigation";var _p=bo.createContext(null);_p.displayName="Location";var bi=bo.createContext({outlet:null,matches:[],isDataRoute:!1});bi.displayName="Route";var l1=bo.createContext(null);l1.displayName="RouteError";var r1=!0,lN="REACT_ROUTER_ERROR",zq="REDIRECT",Fq="ROUTE_ERROR_RESPONSE";function Hq(e){if(e.startsWith(`${lN}:${zq}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Uq(e){if(e.startsWith(`${lN}:${Fq}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new tN(t.status,t.statusText,t.data)}catch{}}function cN(e,{relative:t}={}){yt(zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=ae.useContext(Wr),{hash:i,pathname:n,search:s}=Sp(e,{relative:t}),a=n;return r!=="/"&&(a=n==="/"?r:mn([r,n])),o.createHref({pathname:a,search:s,hash:i})}function zl(){return ae.useContext(_p)!=null}function to(){return yt(zl(),"useLocation() may be used only in the context of a <Router> component."),ae.useContext(_p).location}var uN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pN(e){ae.useContext(Wr).static||ae.useLayoutEffect(e)}function _o(){let{isDataRoute:e}=ae.useContext(bi);return e?Zq():$q()}function $q(){yt(zl(),"useNavigate() may be used only in the context of a <Router> component.");let e=ae.useContext(Il),{basename:t,navigator:r}=ae.useContext(Wr),{matches:o}=ae.useContext(bi),{pathname:i}=to(),n=JSON.stringify(s1(o)),s=ae.useRef(!1);return pN(()=>{s.current=!0}),ae.useCallback((l,c={})=>{if(jo(s.current,uN),!s.current)return;if(typeof l=="number"){r.go(l);return}let u=rb(l,JSON.parse(n),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:mn([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,n,i,e])}var CDe=ae.createContext(null);function c1(){let{matches:e}=ae.useContext(bi),t=e[e.length-1];return t?t.params:{}}function Sp(e,{relative:t}={}){let{matches:r}=ae.useContext(bi),{pathname:o}=to(),i=JSON.stringify(s1(r));return ae.useMemo(()=>rb(e,JSON.parse(i),o,t==="path"),[e,i,o,t])}function dN(e,t){return fN(e,t)}function fN(e,t,r){yt(zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=ae.useContext(Wr),{matches:i}=ae.useContext(bi),n=i[i.length-1],s=n?n.params:{},a=n?n.pathname:"/",l=n?n.pathnameBase:"/",c=n&&n.route;if(r1){let b=c&&c.path||"";gN(a,!c||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
146
|
+
`),k=S.selectionStart===C;w&&k&&S.setSelectionRange(C,C),o&&o(v)},ref:p,rows:n,style:s,...l}),(0,Ld.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:{...u8.shadow,...s,paddingTop:0,paddingBottom:0}})]})}),B0=d8;function kr({props:e,states:t,muiFormControl:r}){return t.reduce((o,i)=>(o[i]=e[i],r&&typeof e[i]>"u"&&(o[i]=r[i]),o),{})}var AE=_(I(),1),f8=AE.createContext(void 0),Jc=f8;var BE=_(I(),1);function zt(){return BE.useContext(Jc)}function NE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nl(e,t=!1){return e&&(NE(e.value)&&e.value!==""||t&&NE(e.defaultValue)&&e.defaultValue!=="")}function LE(e){return e.startAdornment}function IE(e){return W("MuiInputBase",e)}var h8=j("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputTypeSearch"]),Li=h8;var sl=_(R(),1),zE,al=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${K(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ll=(e,t)=>{let{ownerState:r}=e;return[t.input,r.type==="search"&&t.inputTypeSearch]},m8=e=>{let{classes:t,color:r,disabled:o,error:i,endAdornment:n,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:p,size:f,startAdornment:d,type:h}=e,y={root:["root",`color${K(r)}`,o&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${K(f)}`,u&&"multiline",d&&"adornedStart",n&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",h==="search"&&"inputTypeSearch",p&&"readOnly"]};return V(y,IE,t)},cl=N("div",{name:"MuiInputBase",slot:"Root",overridesResolver:al})(Y(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ul=N("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ll})(Y(({theme:e})=>{let t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Li.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:n})=>!n.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:n})=>n.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),FE=wd({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),y8=Hr.forwardRef(function(t,r){let o=q({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:n,autoFocus:s,className:a,color:l,defaultValue:c,disabled:u,disableInjectingGlobalStyles:p,endAdornment:f,error:d,fullWidth:h=!1,id:y,inputComponent:b="input",inputProps:m={},inputRef:g,margin:v,maxRows:S,minRows:C,multiline:w=!1,name:k,onBlur:O,onChange:A,onClick:B,onFocus:M,onKeyDown:x,onKeyUp:P,placeholder:T,readOnly:E,renderSuffix:D,rows:z,size:L,slotProps:Z={},slots:re={},startAdornment:Q,type:fe="text",value:ye,...he}=o,ie=m.value!=null?m.value:ye,{current:J}=Hr.useRef(ie!=null),le=Hr.useRef(),oe=Hr.useCallback(Ce=>{},[]),se=At(le,g,m.ref,oe),[Oe,gt]=Hr.useState(!1),be=zt(),ne=kr({props:o,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ne.focused=be?be.focused:Oe,Hr.useEffect(()=>{!be&&u&&Oe&&(gt(!1),O&&O())},[be,u,Oe,O]);let dt=be&&be.onFilled,xr=be&&be.onEmpty,ft=Hr.useCallback(Ce=>{nl(Ce)?dt&&dt():xr&&xr()},[dt,xr]);Bn(()=>{J&&ft({value:ie})},[ie,ft,J]);let Ze=Ce=>{M&&M(Ce),m.onFocus&&m.onFocus(Ce),be&&be.onFocus?be.onFocus(Ce):gt(!0)},vt=Ce=>{O&&O(Ce),m.onBlur&&m.onBlur(Ce),be&&be.onBlur?be.onBlur(Ce):gt(!1)},Ee=(Ce,...Kr)=>{if(!J){let Pi=Ce.target||le.current;if(Pi==null)throw new Error(pr(1));ft({value:Pi.value})}m.onChange&&m.onChange(Ce,...Kr),A&&A(Ce,...Kr)};Hr.useEffect(()=>{ft(le.current)},[]);let zr=Ce=>{le.current&&Ce.currentTarget===Ce.target&&le.current.focus(),B&&B(Ce)},ur=b,Ot=m;w&&ur==="input"&&(z?Ot={type:void 0,minRows:z,maxRows:z,...Ot}:Ot={type:void 0,maxRows:S,minRows:C,...Ot},ur=B0);let Ki=Ce=>{ft(Ce.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};Hr.useEffect(()=>{be&&be.setAdornedStart(!!Q)},[be,Q]);let To={...o,color:ne.color||"primary",disabled:ne.disabled,endAdornment:f,error:ne.error,focused:ne.focused,formControl:be,fullWidth:h,hiddenLabel:ne.hiddenLabel,multiline:w,size:ne.size,startAdornment:Q,type:fe},Ri=m8(To),st=re.root||cl,He=Z.root||{},bt=re.input||ul;return Ot={...Ot,...Z.input},(0,sl.jsxs)(Hr.Fragment,{children:[!p&&typeof FE=="function"&&(zE||(zE=(0,sl.jsx)(FE,{}))),(0,sl.jsxs)(st,{...He,ref:r,onClick:zr,...he,...!Ds(st)&&{ownerState:{...To,...He.ownerState}},className:H(Ri.root,He.className,a,E&&"MuiInputBase-readOnly"),children:[Q,(0,sl.jsx)(Jc.Provider,{value:null,children:(0,sl.jsx)(bt,{"aria-invalid":ne.error,"aria-describedby":i,autoComplete:n,autoFocus:s,defaultValue:c,disabled:ne.disabled,id:y,onAnimationStart:Ki,name:k,placeholder:T,readOnly:E,required:ne.required,rows:z,value:ie,onKeyDown:x,onKeyUp:P,type:fe,...Ot,...!Ds(bt)&&{as:ur,ownerState:{...To,...Ot.ownerState}},ref:se,className:H(Ri.input,Ot.className,E&&"MuiInputBase-readOnly"),onBlur:vt,onChange:Ee,onFocus:Ze})}),f,D?D({...ne,startAdornment:Q}):null]})]})}),pl=y8;function HE(e){return W("MuiInput",e)}var g8={...Li,...j("MuiInput",["root","underline","input"])},eu=g8;function UE(e){return W("MuiOutlinedInput",e)}var v8={...Li,...j("MuiOutlinedInput",["root","notchedOutline","input"])},Ii=v8;function $E(e){return W("MuiFilledInput",e)}var b8={...Li,...j("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},zs=b8;var jE=_(R(),1),WE=_e((0,jE.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var KE=_(I(),1);var tu=_(I(),1);var VE=_(R(),1),_8={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},S8={opacity:0,visibility:"hidden"},x8=tu.forwardRef(function(t,r){let o=Fr(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:p,onEntering:f,onExit:d,onExited:h,onExiting:y,style:b,timeout:m=i,...g}=t,v=tu.useRef(null),S=At(v,co(a),r),C=lo(v,f),w=lo(v,(x,P)=>{xy(x);let T=Yc({style:b,timeout:m,easing:l},{mode:"enter"});x.style.transition=o.transitions.create("opacity",T),u&&u(x,P)}),k=lo(v,p),O=lo(v,y),A=lo(v,x=>{let P=Yc({style:b,timeout:m,easing:l},{mode:"exit"});x.style.transition=o.transitions.create("opacity",P),d&&d(x)}),B=lo(v,x=>{x.style.transition="",h&&h(x)});return(0,VE.jsx)(Od,{appear:s,in:c,nodeRef:v,onEnter:w,onEntered:k,onEntering:C,onExit:A,onExited:B,onExiting:O,addEndListener:x=>{n&&n(v.current,x)},timeout:m,...g,children:(x,{ownerState:P,...T})=>{let E=Ty(x,c,_8,S8,b,a.props.style);return tu.cloneElement(a,{style:E,ref:S,...T})}})}),Id=x8;function qE(e){return W("MuiBackdrop",e)}var Xme=j("MuiBackdrop",["root","invisible"]);var N0=_(R(),1),T8=e=>{let{classes:t,invisible:r}=e;return V({root:["root",r&&"invisible"]},qE,t)},C8=N("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),w8=KE.forwardRef(function(t,r){let o=q({props:t,name:"MuiBackdrop"}),{children:i,className:n,component:s="div",invisible:a=!1,open:l,slotProps:c={},slots:u={},transitionDuration:p,...f}=o,d={...o,component:s,invisible:a},h=T8(d),y={component:s,slots:u,slotProps:c},[b,m]=ee("root",{elementType:C8,externalForwardedProps:y,className:H(h.root,n),ownerState:d}),[g,v]=ee("transition",{elementType:Id,externalForwardedProps:y,ownerState:d});return(0,N0.jsx)(g,{in:l,timeout:p,...f,...v,children:(0,N0.jsx)(b,{...m,ref:r,children:i})})}),zd=w8;var R8=j("MuiBox",["root"]),GE=R8;var P8=en(),E8=pd({themeId:Cr,defaultTheme:P8,defaultClassName:GE.root,generateClassName:Oc.generate}),de=E8;var Fd=_(I(),1);function YE(e){return W("MuiButton",e)}var k8=j("MuiButton",["root","text","outlined","contained","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Fs=k8;var XE=_(I(),1),O8=XE.createContext({}),ZE=O8;var QE=_(I(),1),M8=QE.createContext(void 0),JE=M8;var nn=_(R(),1),D8=e=>{let{color:t,disableElevation:r,fullWidth:o,size:i,variant:n,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",n,`size${K(i)}`,`color${K(t)}`,r&&"disableElevation",o&&"fullWidth",s&&`loadingPosition${K(a)}`],startIcon:["icon","startIcon"],endIcon:["icon","endIcon"],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=V(c,YE,l);return{...l,...u}},tk=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],A8=N(Bt,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${K(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Y(({theme:e})=>{let t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Fs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Fs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Fs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Fs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(we()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Fs.loading}`]:{color:"transparent"}}}]}})),B8=N("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...tk]})),N8=N("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...tk]})),L8=N("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ek=N("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),I8=Fd.forwardRef(function(t,r){let o=Fd.useContext(ZE),i=Fd.useContext(JE),n=Qi(o,t),s=q({props:n,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:d=!1,endIcon:h,focusVisibleClassName:y,fullWidth:b=!1,id:m,loading:g=null,loadingIndicator:v,loadingPosition:S="center",size:C="medium",startIcon:w,type:k,variant:O="text",...A}=s,B=Nn(m),M=v??(0,nn.jsx)(Is,{"aria-labelledby":B,color:"inherit",size:16}),x={...s,color:l,component:c,disabled:p,disableElevation:f,disableFocusRipple:d,fullWidth:b,loading:g,loadingIndicator:M,loadingPosition:S,size:C,type:k,variant:O},P=D8(x),T=(w||g&&S==="start")&&(0,nn.jsx)(B8,{className:P.startIcon,ownerState:x,children:w||(0,nn.jsx)(ek,{className:P.loadingIconPlaceholder,ownerState:x})}),E=(h||g&&S==="end")&&(0,nn.jsx)(N8,{className:P.endIcon,ownerState:x,children:h||(0,nn.jsx)(ek,{className:P.loadingIconPlaceholder,ownerState:x})}),D=i||"",z=typeof g=="boolean"?(0,nn.jsx)("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&(0,nn.jsx)(L8,{className:P.loadingIndicator,ownerState:x,children:M})}):null;return(0,nn.jsxs)(A8,{ownerState:x,className:H(o.className,P.root,u,D),component:c,disabled:p||g,focusRipple:!d,focusVisibleClassName:H(P.focusVisible,y),ref:r,internalNativeButton:!0,type:k,id:g?B:m,...A,classes:P,children:[T,S!=="end"&&z,a,S==="end"&&z,E]})}),Re=I8;var Hd=_(I(),1);var ok=_(I(),1);function rk(e){return W("PrivateSwitchBase",e)}var Gye=j("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var Ay=_(R(),1),z8=e=>{let{classes:t,checked:r,disabled:o,edge:i}=e,n={root:["root",r&&"checked",o&&"disabled",i&&`edge${K(i)}`],input:["input"]};return V(n,rk,t)},F8=N(Bt,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),H8=N("input",{name:"MuiSwitchBase",shouldForwardProp:Le})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),U8=ok.forwardRef(function(t,r){let{autoFocus:o,checked:i,checkedIcon:n,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:p,name:f,onBlur:d,onChange:h,onFocus:y,readOnly:b,required:m=!1,tabIndex:g,type:v,value:S,slots:C={},slotProps:w={},...k}=t,{nativeButton:O,...A}=k,[B,M]=tl({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),x=zt(),P=ie=>{y&&y(ie),x&&x.onFocus&&x.onFocus(ie)},T=ie=>{d&&d(ie),x&&x.onBlur&&x.onBlur(ie)},E=ie=>{if(ie.nativeEvent.defaultPrevented||b)return;let J=ie.target.checked;M(J),h&&h(ie,J)},D=a;x&&typeof D>"u"&&(D=x.disabled);let z=v==="checkbox"||v==="radio",L={...t,checked:B,disabled:D,disableFocusRipple:l,edge:c},Z=z8(L),re={slots:C,slotProps:w},[Q,fe]=ee("root",{ref:r,elementType:F8,className:Z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...re,component:"span",...A},getSlotProps:ie=>({...ie,onFocus:J=>{ie.onFocus?.(J),P(J)},onBlur:J=>{ie.onBlur?.(J),T(J)}}),ownerState:L,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null}}),[ye,he]=ee("input",{elementType:H8,className:Z.input,externalForwardedProps:re,getSlotProps:ie=>({...ie,onChange:J=>{ie.onChange?.(J),E(J)}}),ownerState:L,additionalProps:{autoFocus:o,checked:i,defaultChecked:s,disabled:D,id:z?p:void 0,name:f,readOnly:b,required:m,tabIndex:g,type:v,...v==="checkbox"&&S===void 0?{}:{value:S}}});return(0,Ay.jsxs)(Q,{...fe,children:[(0,Ay.jsx)(ye,{...he}),B?n:u]})}),ru=U8;var ik=_(R(),1),nk=_e((0,ik.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");var sk=_(R(),1),ak=_e((0,sk.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox");var lk=_(R(),1),ck=_e((0,lk.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function uk(e){return W("MuiCheckbox",e)}var $8=j("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),By=$8;var Ud=_(R(),1),j8=e=>{let{classes:t,indeterminate:r,color:o,size:i}=e,n={root:["root",r&&"indeterminate",`color${K(o)}`,`size${K(i)}`]},s=V(n,uk,t);return{...t,...s}},W8=N(ru,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${K(r.size)}`],r.color!=="default"&&t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{[`&.${By.checked}, &.${By.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${By.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),V8=(0,Ud.jsx)(ak,{}),q8=(0,Ud.jsx)(nk,{}),K8=(0,Ud.jsx)(ck,{}),G8=Hd.forwardRef(function(t,r){let o=q({props:t,name:"MuiCheckbox"}),{checkedIcon:i=V8,color:n="primary",icon:s=q8,indeterminate:a=!1,indeterminateIcon:l=K8,size:c="medium",disableRipple:u=!1,className:p,slots:f={},slotProps:d={},...h}=o,y=a?l:s,b=a?l:i,m={...o,disableRipple:u,color:n,indeterminate:a,size:c},g=j8(m),v=d.input,[S,C]=ee("root",{ref:r,elementType:W8,className:H(g.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:d,...h},ownerState:m,additionalProps:{type:"checkbox",icon:Hd.cloneElement(y,{fontSize:y.props.fontSize??c}),checkedIcon:Hd.cloneElement(b,{fontSize:b.props.fontSize??c}),disableRipple:u,slots:f,slotProps:{input:Wc(typeof v=="function"?v(m):v,{"data-indeterminate":a})}}});return(0,Ud.jsx)(S,{...C,classes:g})}),L0=G8;var zi=_(I(),1);function pk(e){return e.substring(2).toLowerCase()}function Y8(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function I0(e){let{children:t,disableReactTree:r=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:n="onTouchEnd"}=e,s=zi.useRef(!1),a=zi.useRef(null),l=zi.useRef(!1),c=zi.useRef(!1);zi.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);let u=Xt(co(t),a),p=Er(h=>{let y=c.current;c.current=!1;let b=It(a.current);if(!l.current||!a.current||"clientX"in h&&Y8(h,b))return;if(s.current){s.current=!1;return}let m;h.composedPath?m=h.composedPath().includes(a.current):m=!b.documentElement.contains(h.target)||a.current.contains(h.target),!m&&(r||!y)&&i(h)}),f=h=>y=>{c.current=!0;let b=t.props[h];b&&b(y)},d={ref:u};return n!==!1&&(d[n]=f(n)),zi.useEffect(()=>{if(n!==!1){let h=pk(n),y=It(a.current),b=()=>{s.current=!0};return y.addEventListener(h,p),y.addEventListener("touchmove",b),()=>{y.removeEventListener(h,p),y.removeEventListener("touchmove",b)}}},[p,n]),o!==!1&&(d[o]=f(o)),zi.useEffect(()=>{if(o!==!1){let h=pk(o),y=It(a.current);return y.addEventListener(h,p),()=>{y.removeEventListener(h,p)}}},[p,o]),zi.cloneElement(t,d)}var X8=oy({createStyledComponent:N("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`maxWidth${K(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>q({props:e,name:"MuiContainer"})}),z0=X8;var dk=_(I(),1);var $d=_(R(),1),F0=typeof wd({})=="function",Z8=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Q8=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),fk=(e,t=!1)=>{let r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([n,s])=>{let a=e.getColorSchemeSelector(n);a.startsWith("@")?r[a]={":root":{colorScheme:s.palette?.mode}}:r[a.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let o={html:Z8(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Q8(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(o=[o,i]),o},Ny="mui-ecs",J8=e=>{let t=fk(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${Ny})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,i])=>{let n=e.getColorSchemeSelector(o);n.startsWith("@")?r[n]={[`:root:not(:has(.${Ny}))`]:{colorScheme:i.palette?.mode}}:r[n.replace(/\s*&/,"")]={[`&:not(:has(.${Ny}))`]:{colorScheme:i.palette?.mode}}}),t},e$=wd(F0?({theme:e,enableColorScheme:t})=>fk(e,t):({theme:e})=>J8(e));function t$(e){let t=q({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:o=!1}=t;return(0,$d.jsxs)(dk.Fragment,{children:[F0&&(0,$d.jsx)(e$,{enableColorScheme:o}),!F0&&!o&&(0,$d.jsx)("span",{className:Ny,style:{display:"none"}}),r]})}var Ly=t$;var au=_(I(),1);function ou(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function r$(e){let t=It(e);return t.body===e?ti(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function iu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hk(e){return parseFloat(ti(e).getComputedStyle(e).paddingRight)||0}function o$(e){let r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function mk(e,t,r,o,i){let n=[t,r,...o];[].forEach.call(e.children,s=>{let a=!n.includes(s),l=!o$(s);a&&l&&iu(s,i)})}function H0(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function i$(e,t){let r=[],o=e.container;if(!t.disableScrollLock){if(r$(o)){let s=ou(ti(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${hk(o)+s}px`;let a=It(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${hk(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=It(o).body;else{let s=o.parentElement,a=ti(o);n=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function n$(e){let t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}var Iy=class{constructor(){this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&iu(t.modalRef,!1);let i=n$(r);mk(r,t.mount,t.modalRef,i,!0);let n=H0(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){let o=H0(this.containers,n=>n.modals.includes(t)),i=this.containers[o];i.restore||(i.restore=i$(i,r))}remove(t,r=!0){let o=this.modals.indexOf(t);if(o===-1)return o;let i=H0(this.containers,s=>s.modals.includes(t)),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&iu(t.modalRef,r),mk(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{let s=n.modals[n.modals.length-1];s.modalRef&&iu(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}};var Fy=_(I(),1);var Or=_(I(),1);var jd=_(R(),1),s$=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function a$(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function l$(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;let t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function c$(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||l$(e))}function u$(e){let t=[],r=[];return Array.from(e.querySelectorAll(s$)).forEach((o,i)=>{let n=a$(o);n===-1||!c$(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function p$(){return!0}function d$(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=u$,isEnabled:s=p$,open:a}=e,l=Or.useRef(!1),c=Or.useRef(null),u=Or.useRef(null),p=Or.useRef(null),f=Or.useRef(null),d=Or.useRef(!1),h=Or.useRef(null),y=Xt(co(t),h),b=Or.useRef(null);Or.useEffect(()=>{!a||!h.current||(d.current=!r)},[r,a]),Or.useEffect(()=>{if(!a||!h.current)return;let v=It(h.current),S=tn(v);return h.current.contains(S)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),d.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),Or.useEffect(()=>{if(!a||!h.current)return;let v=It(h.current),S=k=>{if(b.current=k,o||!s()||k.key!=="Tab")return;tn(v)===h.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},C=()=>{let k=h.current;if(k===null)return;let O=tn(v);if(!v.hasFocus()||!s()||l.current){l.current=!1;return}if(k.contains(O)||o&&O!==c.current&&O!==u.current)return;if(O!==f.current)f.current=null;else if(f.current!==null)return;if(!d.current)return;let A=[];if((O===c.current||O===u.current)&&(A=n(h.current)),A.length>0){let B=!!(b.current?.shiftKey&&b.current?.key==="Tab"),M=A[0],x=A[A.length-1];typeof M!="string"&&typeof x!="string"&&(B?x.focus():M.focus())}else k.focus()};v.addEventListener("focusin",C),v.addEventListener("keydown",S,!0);let w=setInterval(()=>{let k=tn(v);k&&k.tagName==="BODY"&&C()},50);return()=>{clearInterval(w),v.removeEventListener("focusin",C),v.removeEventListener("keydown",S,!0)}},[r,o,i,s,a,n]);let m=v=>{p.current===null&&(p.current=v.relatedTarget),d.current=!0,f.current=v.target;let S=t.props.onFocus;S&&S(v)},g=v=>{p.current===null&&(p.current=v.relatedTarget),d.current=!0};return(0,jd.jsxs)(Or.Fragment,{children:[(0,jd.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),Or.cloneElement(t,{ref:y,onFocus:m}),(0,jd.jsx)("div",{tabIndex:a?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}var U0=d$;var Fi=_(I(),1);function f$(e){return typeof e=="function"?e():e}function h$(e){return e?e.props.hasOwnProperty("in"):!1}var yk=()=>{},zy=new Iy;function m$(e){let{container:t,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:n,children:s,onClose:a,open:l,rootRef:c}=e,u=Fi.useRef({}),p=Fi.useRef(null),f=Fi.useRef(null),d=Xt(f,c),[h,y]=Fi.useState(!l),b=h$(s),m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);let g=()=>It(p.current),v=()=>(u.current.modalRef=f.current,u.current.mount=p.current,u.current),S=()=>{zy.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Er(()=>{let T=f$(t)||g().body;zy.add(v(),T),f.current&&S()}),w=()=>zy.isTopModal(v()),k=Er(T=>{p.current=T,T&&(l&&w()?S():f.current&&iu(f.current,m))}),O=Fi.useCallback(()=>{zy.remove(v(),m)},[m]);Fi.useEffect(()=>()=>{O()},[O]),Fi.useEffect(()=>{l?C():(!b||!o)&&O()},[l,O,b,o,C]);let A=T=>E=>{T.onKeyDown?.(E),!(E.key!=="Escape"||E.which===229||!w())&&(E.stopPropagation(),a&&a(E,"escapeKeyDown"))},B=T=>E=>{T.onClick?.(E),E.target===E.currentTarget&&a&&a(E,"backdropClick")};return{getRootProps:(T={})=>{let E=As(e);delete E.onTransitionEnter,delete E.onTransitionExited;let D={...E,...T};return{role:"presentation",...D,onKeyDown:A(D),ref:d}},getBackdropProps:(T={})=>{let E=T;return{"aria-hidden":!0,...E,onClick:B(E),open:l}},getTransitionProps:()=>{let T=()=>{y(!1),i&&i()},E=()=>{y(!0),n&&n(),o&&O()};return{onEnter:Za(T,s?.props.onEnter??yk),onExited:Za(E,s?.props.onExited??yk)}},rootRef:d,portalRef:k,isTopModal:w,exited:h,hasTransition:b}}var gk=m$;function vk(e){return W("MuiModal",e)}var Tve=j("MuiModal",["root","hidden","backdrop"]);var nu=_(R(),1),y$=e=>{let{open:t,exited:r,classes:o}=e;return V({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vk,o)},g$=N("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Y(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),v$=N(zd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),b$=Fy.forwardRef(function(t,r){let o=q({name:"MuiModal",props:t}),{classes:i,className:n,closeAfterTransition:s=!1,children:a,container:l,component:c,disableAutoFocus:u=!1,disableEnforceFocus:p=!1,disablePortal:f=!1,disableRestoreFocus:d=!1,disableScrollLock:h=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:m,onTransitionEnter:g,onTransitionExited:v,open:S,slotProps:C={},slots:w={},theme:k,...O}=o,A={...o,closeAfterTransition:s,disableAutoFocus:u,disableEnforceFocus:p,disablePortal:f,disableRestoreFocus:d,disableScrollLock:h,hideBackdrop:y,keepMounted:b},{getRootProps:B,getBackdropProps:M,getTransitionProps:x,portalRef:P,isTopModal:T,exited:E,hasTransition:D}=gk({...A,rootRef:r}),z={...A,exited:E},L=y$(z),Z={};if(a.props.tabIndex===void 0&&(Z.tabIndex="-1"),D){let{onEnter:ie,onExited:J}=x();Z.onEnter=ie,Z.onExited=J}let re={slots:w,slotProps:C},[Q,fe]=ee("root",{ref:r,elementType:g$,externalForwardedProps:{...re,...O,component:c},getSlotProps:B,ownerState:z,className:H(n,L?.root,!z.open&&z.exited&&L?.hidden)}),[ye,he]=ee("backdrop",{elementType:v$,externalForwardedProps:re,shouldForwardComponentProp:!0,getSlotProps:ie=>M({...ie,onClick:J=>{ie?.onClick&&ie.onClick(J)}}),className:L?.backdrop,ownerState:z});return!b&&!S&&(!D||E)?null:(0,nu.jsx)(A0,{ref:P,container:l,disablePortal:f,children:(0,nu.jsxs)(Q,{...fe,children:[y?null:(0,nu.jsx)(ye,{...he}),(0,nu.jsx)(U0,{disableEnforceFocus:p,disableAutoFocus:u,disableRestoreFocus:d,isEnabled:T,open:S,children:Fy.cloneElement(a,Z)})]})})}),Wd=b$;function bk(e){return W("MuiDialog",e)}var $ve=j("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var _k=_(I(),1),_$=_k.createContext({}),Hy=_$;var su=_(R(),1),S$=N(zd,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),x$=e=>{let{classes:t,scroll:r,maxWidth:o,fullWidth:i,fullScreen:n}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${K(r)}`],paper:["paper",`paperWidth${K(String(o))}`,i&&"paperFullWidth",n&&"paperFullScreen"]};return V(s,bk,t)},T$=N(Wd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),C$=N("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t[`scroll${K(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),w$=N(St,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`paperWidth${K(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Y(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:"xs",scroll:"body"},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t,scroll:"body"},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0}},{props:({ownerState:t})=>t.fullScreen&&t.scroll==="body",style:{margin:0,maxWidth:"100%"}}]}))),R$=au.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialog"}),i=Fr(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,children:c,className:u,fullScreen:p=!1,fullWidth:f=!1,maxWidth:d="sm",onClick:h,onClose:y,open:b,PaperComponent:m=St,role:g="dialog",scroll:v="paper",slots:S={},slotProps:C={},transitionDuration:w=n,...k}=o,O={...o,fullScreen:p,fullWidth:f,maxWidth:d,scroll:v},A=x$(O),B=au.useRef(),M=J=>{B.current=J.target===J.currentTarget},x=J=>{h&&h(J),B.current&&(B.current=null,y&&y(J,"backdropClick"))},P=Eo(a),T=au.useMemo(()=>({titleId:P}),[P]),E={slots:S,slotProps:C},[D,z]=ee("root",{elementType:T$,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:O,className:H(A.root,u),ref:r}),[L,Z]=ee("backdrop",{elementType:S$,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:O,className:A.backdrop}),[re,Q]=ee("paper",{elementType:w$,shouldForwardComponentProp:!0,externalForwardedProps:E,ownerState:O,className:A.paper}),[fe,ye]=ee("container",{elementType:C$,externalForwardedProps:E,ownerState:O,className:A.container}),[he,ie]=ee("transition",{elementType:Id,externalForwardedProps:E,ownerState:O,additionalProps:{appear:!0,in:b,timeout:w,role:"presentation"}});return(0,su.jsx)(D,{closeAfterTransition:!0,slots:{backdrop:L},slotProps:{backdrop:{transitionDuration:w,...Z}},onClose:y,open:b,onClick:x,...z,...k,children:(0,su.jsx)(he,{...ie,children:(0,su.jsx)(fe,{onMouseDown:M,...ye,children:(0,su.jsx)(re,{as:m,elevation:24,role:g,"aria-describedby":s,"aria-labelledby":P,"aria-modal":l,...Q,children:(0,su.jsx)(Hy.Provider,{value:T,children:c})})})})})}),lu=R$;var xk=_(I(),1);function Sk(e){return W("MuiDialogActions",e)}var pbe=j("MuiDialogActions",["root","spacing"]);var Tk=_(R(),1),P$=e=>{let{classes:t,disableSpacing:r}=e;return V({root:["root",!r&&"spacing"]},Sk,t)},E$=N("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),k$=xk.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:n=!1,...s}=o,a={...o,disableSpacing:n},l=P$(a);return(0,Tk.jsx)(E$,{className:H(l.root,i),ownerState:a,ref:r,...s})}),cu=k$;var Pk=_(I(),1);function Ck(e){return W("MuiDialogContent",e)}var Cbe=j("MuiDialogContent",["root","dividers"]);function wk(e){return W("MuiDialogTitle",e)}var O$=j("MuiDialogTitle",["root"]),Rk=O$;var Ek=_(R(),1),M$=e=>{let{classes:t,dividers:r}=e;return V({root:["root",r&&"dividers"]},Ck,t)},D$=N("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Y(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Rk.root} + &`]:{paddingTop:0}}}]}))),A$=Pk.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogContent"}),{className:i,dividers:n=!1,...s}=o,a={...o,dividers:n},l=M$(a);return(0,Ek.jsx)(D$,{className:H(l.root,i),ownerState:a,ref:r,...s})}),uu=A$;var Ok=_(I(),1);function kk(e){return W("MuiDialogContentText",e)}var $be=j("MuiDialogContentText",["root"]);var Mk=_(R(),1),B$=e=>{let{classes:t}=e,o=V({root:["root"]},kk,t);return{...t,...o}},N$=N(X,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),L$=Ok.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogContentText"}),{children:i,className:n,...s}=o,a=B$(s);return(0,Mk.jsx)(N$,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:s,className:H(a.root,n),...o,classes:a})}),Uy=L$;var $y=_(I(),1);var Dk=_(R(),1),I$=e=>{let{classes:t}=e;return V({root:["root"]},wk,t)},z$=N(X,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),F$=$y.forwardRef(function(t,r){let o=q({props:t,name:"MuiDialogTitle"}),{className:i,id:n,...s}=o,a=o,l=I$(a),{titleId:c=n}=$y.useContext(Hy);return(0,Dk.jsx)(z$,{component:"h2",className:H(l.root,i),ownerState:a,ref:r,variant:"h6",id:n??c,...s})}),pu=F$;var Bk=_(I(),1);function Ak(e){return W("MuiDivider",e)}var H$=j("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","vertical","withChildren","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),jy=H$;var $0=_(R(),1),U$=e=>{let{absolute:t,children:r,classes:o,flexItem:i,orientation:n,textAlign:s,variant:a}=e;return V({root:["root",t&&"absolute",a,n==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",s==="right"&&n!=="vertical"&&"textAlignRight",s==="left"&&n!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",n==="vertical"&&"wrapperVertical"]},Ak,o)},$$=N("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Y(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),j$=N("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Y(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),W$=Bk.forwardRef(function(t,r){let o=q({props:t,name:"MuiDivider"}),{absolute:i=!1,children:n,className:s,orientation:a="horizontal",component:l=n||a==="vertical"?"div":"hr",flexItem:c=!1,role:u=l!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...d}=o,h={...o,absolute:i,component:l,flexItem:c,orientation:a,role:u,textAlign:p,variant:f},y=U$(h);return(0,$0.jsx)($$,{as:l,className:H(y.root,s),role:u,ref:r,ownerState:h,"aria-orientation":u==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...d,children:n?(0,$0.jsx)(j$,{className:y.wrapper,ownerState:h,children:n}):null})}),du=W$;var Nk=_(I(),1);var Lk=_(R(),1),V$=e=>{let{classes:t,disableUnderline:r,startAdornment:o,endAdornment:i,size:n,hiddenLabel:s,multiline:a}=e,l={root:["root",!r&&"underline",o&&"adornedStart",i&&"adornedEnd",n==="small"&&`size${K(n)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=V(l,$E,t);return{...t,...c}},q$=N(cl,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...al(e,t),!r.disableUnderline&&t.underline]}})(Y(({theme:e})=>{let t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",n=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${zs.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${zs.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:n},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${zs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zs.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zs.disabled}, .${zs.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(we()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),K$=N(ul,{name:"MuiFilledInput",slot:"Input",overridesResolver:ll})(Y(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ik=Nk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,fullWidth:n=!1,hiddenLabel:s,inputComponent:a="input",multiline:l=!1,slotProps:c,slots:u={},type:p="text",...f}=o,d={...o,disableUnderline:i,fullWidth:n,inputComponent:a,multiline:l,type:p},h=V$(o),y={root:{ownerState:d},input:{ownerState:d}},b=c?Ke(y,c):y,m=u.root??q$,g=u.input??K$;return(0,Lk.jsx)(pl,{slots:{root:m,input:g},slotProps:b,fullWidth:n,inputComponent:a,multiline:l,ref:r,type:p,...f,classes:h})});Ik.muiName="Input";var Vd=Ik;var Ur=_(I(),1);function zk(e){return W("MuiFormControl",e)}var j_e=j("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var j0=_(R(),1),G$=e=>{let{classes:t,margin:r,fullWidth:o}=e,i={root:["root",r!=="none"&&`margin${K(r)}`,o&&"fullWidth"]};return V(i,zk,t)},Y$=N("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`margin${K(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),X$=Ur.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormControl"}),{children:i,className:n,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:p=!1,hiddenLabel:f=!1,margin:d="none",required:h=!1,size:y="medium",variant:b="outlined",...m}=o,g={...o,color:s,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:f,margin:d,required:h,size:y,variant:b},v=G$(g),[S,C]=Ur.useState(()=>{let D=!1;return i&&Ur.Children.forEach(i,z=>{if(!hy(z,["Input","Select"]))return;let L=hy(z,["Select"])?z.props.input:z;L&&LE(L.props)&&(D=!0)}),D}),[w,k]=Ur.useState(()=>{let D=!1;return i&&Ur.Children.forEach(i,z=>{hy(z,["Input","Select"])&&(nl(z.props,!0)||nl(z.props.inputProps,!0))&&(D=!0)}),D}),[O,A]=Ur.useState(!1);l&&O&&A(!1);let B=u!==void 0&&!l?u:O,M,x=Ur.useRef(!1),P=Ur.useCallback(()=>{k(!0)},[]),T=Ur.useCallback(()=>{k(!1)},[]),E=Ur.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:s,disabled:l,error:c,filled:w,focused:B,fullWidth:p,hiddenLabel:f,size:y,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:T,onFilled:P,registerEffect:M,required:h,variant:b}),[S,s,l,c,w,B,p,f,M,T,P,h,y,b]);return(0,j0.jsx)(Jc.Provider,{value:E,children:(0,j0.jsx)(Y$,{as:a,ownerState:g,className:H(v.root,n),ref:r,...m,children:i})})}),fu=X$;var Wy=_(I(),1);function Fk(e){return W("MuiFormControlLabel",e)}var Z$=j("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),hu=Z$;var mu=_(R(),1),Q$=e=>{let{classes:t,disabled:r,labelPlacement:o,error:i,required:n}=e,s={root:["root",r&&"disabled",`labelPlacement${K(o)}`,i&&"error",n&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return V(s,Fk,t)},J$=N("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${hu.label}`]:t.label},t.root,t[`labelPlacement${K(r.labelPlacement)}`]]}})(Y(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${hu.disabled}`]:{cursor:"default"},[`& .${hu.label}`]:{[`&.${hu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),ej=N("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Y(({theme:e})=>({[`&.${hu.error}`]:{color:(e.vars||e).palette.error.main}}))),tj=Wy.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormControlLabel"}),{checked:i,className:n,control:s,disabled:a,disableTypography:l,inputRef:c,label:u,labelPlacement:p="end",name:f,onChange:d,required:h,slots:y={},slotProps:b={},value:m,...g}=o,v=zt(),S=a??s.props.disabled??v?.disabled,C=h??s.props.required,w={disabled:S,required:C};["checked","name","onChange","value","inputRef"].forEach(T=>{typeof s.props[T]>"u"&&typeof o[T]<"u"&&(w[T]=o[T])});let k=kr({props:o,muiFormControl:v,states:["error"]}),O={...o,disabled:S,labelPlacement:p,required:C,error:k.error},A=Q$(O),B={slots:y,slotProps:b},[M,x]=ee("typography",{elementType:X,externalForwardedProps:B,ownerState:O}),P=u;return P!=null&&P.type!==X&&!l&&(P=(0,mu.jsx)(M,{component:"span",...x,className:H(A.label,x?.className),children:P})),(0,mu.jsxs)(J$,{className:H(A.root,n),ownerState:O,ref:r,...g,children:[Wy.cloneElement(s,w),C?(0,mu.jsxs)("div",{children:[P,(0,mu.jsxs)(ej,{ownerState:O,"aria-hidden":!0,className:A.asterisk,children:["\u2009","*"]})]}):P]})}),yu=tj;var Uk=_(I(),1);function Hk(e){return W("MuiFormGroup",e)}var w0e=j("MuiFormGroup",["root","row","error"]);var $k=_(R(),1),rj=e=>{let{classes:t,row:r,error:o}=e;return V({root:["root",r&&"row",o&&"error"]},Hk,t)},oj=N("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),ij=Uk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormGroup"}),{className:i,row:n=!1,...s}=o,a=zt(),l=kr({props:o,muiFormControl:a,states:["error"]}),c={...o,row:n,error:l.error},u=rj(c);return(0,$k.jsx)(oj,{className:H(u.root,i),ownerState:c,ref:r,...s})}),W0=ij;var Vk=_(I(),1);function jk(e){return W("MuiFormHelperText",e)}var nj=j("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),V0=nj;var q0=_(R(),1),Wk,sj=e=>{let{classes:t,contained:r,size:o,disabled:i,error:n,filled:s,focused:a,required:l}=e,c={root:["root",i&&"disabled",n&&"error",o&&`size${K(o)}`,r&&"contained",a&&"focused",s&&"filled",l&&"required"]};return V(c,jk,t)},aj=N("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t[`size${K(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${V0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${V0.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),lj=Vk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormHelperText"}),{children:i,className:n,component:s="p",disabled:a,error:l,filled:c,focused:u,margin:p,required:f,variant:d,...h}=o,y=zt(),b=kr({props:o,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),m={...o,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete m.ownerState;let g=sj(m);return(0,q0.jsx)(aj,{as:s,className:H(g.root,n),ref:r,...h,ownerState:m,children:i===" "?Wk||(Wk=(0,q0.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"})):i})}),K0=lj;var Kk=_(I(),1);function qk(e){return W("MuiFormLabel",e)}var cj=j("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Hs=cj;var G0=_(R(),1),uj=e=>{let{classes:t,color:r,focused:o,disabled:i,error:n,filled:s,required:a}=e,l={root:["root",`color${K(r)}`,i&&"disabled",n&&"error",s&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",n&&"error"]};return V(l,qk,t)},pj=N("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t},style:{[`&.${Hs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Hs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dj=N("span",{name:"MuiFormLabel",slot:"Asterisk"})(Y(({theme:e})=>({[`&.${Hs.error}`]:{color:(e.vars||e).palette.error.main}}))),fj=Kk.forwardRef(function(t,r){let o=q({props:t,name:"MuiFormLabel"}),{children:i,className:n,color:s,component:a="label",disabled:l,error:c,filled:u,focused:p,required:f,...d}=o,h=zt(),y=kr({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),b={...o,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},m=uj(b);return(0,G0.jsxs)(pj,{as:a,ownerState:b,className:H(m.root,n),ref:r,...d,children:[i,y.required&&(0,G0.jsxs)(dj,{ownerState:b,"aria-hidden":!0,className:m.asterisk,children:["\u2009","*"]})]})}),gu=fj;var dl=_(I(),1);var Gk=_(R(),1);function qd(e){return`scale(${e}, ${e**2})`}var hj={entering:{opacity:1,transform:qd(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:qd(.75)},exited:{opacity:0,transform:qd(.75)}},mj={opacity:0,transform:qd(.75),visibility:"hidden"},Y0=dl.forwardRef(function(t,r){let{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:p,onExited:f,onExiting:d,style:h,timeout:y="auto",...b}=t,m=Ms(),g=dl.useRef(),v=Fr(),S=dl.useRef(null),C=At(S,co(n),r),w=lo(S,u),k=lo(S,(P,T)=>{xy(P);let{duration:E,delay:D,easing:z}=Yc({style:h,timeout:y,easing:s},{mode:"enter"}),L;y==="auto"?(L=v.transitions.getAutoHeightDuration(P.clientHeight),g.current=L):L=E,P.style.transition=[v.transitions.create("opacity",{duration:L,delay:D}),v.transitions.create("transform",{duration:L*.666,delay:D,easing:z})].join(","),l&&l(P,T)}),O=lo(S,c),A=lo(S,d),B=lo(S,P=>{let{duration:T,delay:E,easing:D}=Yc({style:h,timeout:y,easing:s},{mode:"exit"}),z;y==="auto"?(z=v.transitions.getAutoHeightDuration(P.clientHeight),g.current=z):z=T,P.style.transition=[v.transitions.create("opacity",{duration:z,delay:E}),v.transitions.create("transform",{duration:z*.666,delay:E||z*.333,easing:D})].join(","),P.style.opacity=0,P.style.transform=qd(.75),p&&p(P)}),M=lo(S,P=>{P.style.transition="",f&&f(P)});return(0,Gk.jsx)(Od,{appear:i,in:a,nodeRef:S,onEnter:k,onEntered:O,onEntering:w,onExit:B,onExited:M,onExiting:A,addEndListener:P=>{y==="auto"&&m.start(g.current||0,P),o&&o(S.current,P)},timeout:y==="auto"?null:y,...b,children:(P,{ownerState:T,...E})=>{let D=Ty(P,a,hj,mj,h,n.props.style);return dl.cloneElement(n,{style:D,ref:C,...E})}})});Y0&&(Y0.muiSupportAuto=!0);var Kd=Y0;var Zk=_(I(),1);function Yk(e){return W("MuiInputLabel",e)}var yj=j("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),Xk=yj;var Qk=_(R(),1),gj=e=>{let{classes:t,disableUnderline:r}=e,i=V({root:["root",!r&&"underline"],input:["input"]},HE,t);return{...t,...i}},vj=N(cl,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...al(e,t),!r.disableUnderline&&t.underline]}})(Y(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{[`label + &, .${Xk.root} + &`]:{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${eu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${eu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${eu.disabled}, .${eu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${eu.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(we()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),bj=N(ul,{name:"MuiInput",slot:"Input",overridesResolver:ll})({}),Jk=Zk.forwardRef(function(t,r){let o=q({props:t,name:"MuiInput"}),{disableUnderline:i=!1,fullWidth:n=!1,inputComponent:s="input",multiline:a=!1,slotProps:l,slots:c={},type:u="text",...p}=o,f=gj(o),h={root:{ownerState:{disableUnderline:i}}},y=l?Ke(l,h):h,b=c.root??vj,m=c.input??bj;return(0,Qk.jsx)(pl,{slots:{root:b,input:m},slotProps:y,fullWidth:n,inputComponent:s,multiline:a,ref:r,type:u,...p,classes:f})});Jk.muiName="Input";var Gd=Jk;var e2=_(I(),1);var t2=_(R(),1),_j=e=>{let{classes:t,formControl:r,size:o,shrink:i,disableAnimation:n,variant:s,required:a}=e,l={root:["root",r&&"formControl",!n&&"animated",i&&"shrink",o&&o!=="medium"&&`size${K(o)}`,s],asterisk:[a&&"asterisk"]},c=V(l,Yk,t);return{...t,...c}},Sj=N(gu,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Hs.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(Y(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:o})=>t==="filled"&&r.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),xj=e2.forwardRef(function(t,r){let o=q({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:n,shrink:s,variant:a,className:l,...c}=o,u=zt(),p=s;typeof p>"u"&&u&&(p=u.filled||u.focused||u.adornedStart);let f=kr({props:o,muiFormControl:u,states:["size","variant","required","focused"]}),d={...o,disableAnimation:i,formControl:u,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused},h=_j(d);return(0,t2.jsx)(Sj,{"data-shrink":p,ref:r,className:H(h.root,l),...c,ownerState:d,classes:h})}),X0=xj;var Vy=_(I(),1);function r2(e){return W("MuiLink",e)}var Tj=j("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),o2=Tj;var Cj=({theme:e,ownerState:t})=>{let r=t.color;if("colorSpace"in e&&e.colorSpace){let n=Ro(e,`palette.${r}.main`)||Ro(e,`palette.${r}`)||t.color;return e.alpha(n,.4)}let o=Ro(e,`palette.${r}.main`,!1)||Ro(e,`palette.${r}`,!1)||t.color,i=Ro(e,`palette.${r}.mainChannel`)||Ro(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Bi(o,.4)},i2=Cj;var s2=_(R(),1),n2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wj=e=>{let{classes:t,component:r,focusVisible:o,underline:i}=e,n={root:["root",`underline${K(i)}`,r==="button"&&"button",o&&"focusVisible"]};return V(n,r2,t)},Rj=N(X,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`underline${K(r.underline)}`],r.component==="button"&&t.button]}})(Y(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${o2.focusVisible}`]:{outline:"auto"}}}]}))),Pj=Vy.forwardRef(function(t,r){let o=q({props:t,name:"MuiLink"}),i=Fr(),{className:n,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:p="always",variant:f="inherit",sx:d,...h}=o,[y,b]=Vy.useState(!1),m=C=>{Bs(C.target)||b(!1),l&&l(C)},g=C=>{Bs(C.target)&&b(!0),c&&c(C)},v={...o,color:s,component:a,focusVisible:y,underline:p,variant:f},S=wj(v);return(0,s2.jsx)(Rj,{color:s,className:H(S.root,n),classes:u,component:a,onBlur:m,onFocus:g,ref:r,ownerState:v,variant:f,...h,sx:[...n2[s]===void 0?[{color:s}]:[],...Array.isArray(d)?d:[d]],style:{...h.style,...p==="always"&&s!=="inherit"&&!n2[s]&&{"--Link-underlineColor":i2({theme:i,ownerState:v})}}})}),qy=Pj;var Ky=_(I(),1);var a2=_(I(),1),Ej=a2.createContext({}),si=Ej;function l2(e){return W("MuiList",e)}var Mxe=j("MuiList",["root","padding","dense","subheader"]);var Gy=_(R(),1),kj=e=>{let{classes:t,disablePadding:r,dense:o,subheader:i}=e;return V({root:["root",!r&&"padding",o&&"dense",i&&"subheader"]},l2,t)},Oj=N("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Mj=Ky.forwardRef(function(t,r){let o=q({props:t,name:"MuiList"}),{children:i,className:n,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=o,p=Ky.useMemo(()=>({dense:a}),[a]),f={...o,component:s,dense:a,disablePadding:l},d=kj(f);return(0,Gy.jsx)(si.Provider,{value:p,children:(0,Gy.jsxs)(Oj,{as:s,className:H(d.root,n),ref:r,ownerState:f,...u,children:[c,i]})})}),sn=Mj;var vu=_(I(),1);function c2(e){return W("MuiListItem",e)}var Vxe=j("MuiListItem",["root","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);var Dj=j("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Z0=Dj;var Yy=_(I(),1);function u2(e){return W("MuiListItemSecondaryAction",e)}var eTe=j("MuiListItemSecondaryAction",["root","disableGutters"]);var p2=_(R(),1),Aj=e=>{let{disableGutters:t,classes:r}=e;return V({root:["root",t&&"disableGutters"]},u2,r)},Bj=N("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),d2=Yy.forwardRef(function(t,r){let o=q({props:t,name:"MuiListItemSecondaryAction"}),{className:i,component:n,...s}=o,a=Yy.useContext(si),l={...o,disableGutters:a.disableGutters},c=Aj(l);return(0,p2.jsx)(Bj,{as:n,className:H(c.root,i),ownerState:l,ref:r,...s})});d2.muiName="ListItemSecondaryAction";var Q0=d2;var Yd=_(R(),1),Nj=(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding]},Lj=e=>{let{alignItems:t,classes:r,dense:o,disableGutters:i,disablePadding:n,divider:s}=e;return V({root:["root",o&&"dense",!i&&"gutters",!n&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart"],secondaryAction:["secondaryAction"]},c2,r)},Ij=N("div",{name:"MuiListItem",slot:"Root",overridesResolver:Nj})(Y(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Z0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),zj=N(Q0,{name:"MuiListItem",slot:"secondaryAction"})({}),Fj=vu.forwardRef(function(t,r){let o=q({props:t,name:"MuiListItem"}),{alignItems:i="center",children:n,className:s,component:a="li",dense:l=!1,disableGutters:c=!1,disablePadding:u=!1,divider:p=!1,secondaryAction:f,slotProps:d={},slots:h={},...y}=o,b=vu.useContext(si),m=vu.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),g={...o,alignItems:i,dense:m.dense,disableGutters:c,disablePadding:u,divider:p,secondaryAction:f},v=Lj(g),S={slots:h,slotProps:d},[C,w]=ee("root",{ref:r,elementType:Ij,externalForwardedProps:{component:a,...S,...y},ownerState:g,className:H(v.root,s)}),[k,O]=ee("secondaryAction",{elementType:zj,shouldForwardComponentProp:!0,externalForwardedProps:S,ownerState:g,className:v.secondaryAction});return(0,Yd.jsx)(si.Provider,{value:m,children:(0,Yd.jsxs)(C,{...w,children:[n,f&&(0,Yd.jsx)(k,{...O,children:f})]})})}),Us=Fj;var Hj=j("MuiListItemIcon",["root","alignItemsFlexStart"]),Xy=Hj;var Zy=_(I(),1);function f2(e){return W("MuiListItemText",e)}var Uj=j("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Hn=Uj;var Xd=_(R(),1),$j=e=>{let{classes:t,inset:r,primary:o,secondary:i,dense:n}=e;return V({root:["root",r&&"inset",n&&"dense",o&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f2,t)},jj=N("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${Hn.primary}`]:t.primary},{[`& .${Hn.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${My.root}:where(& .${Hn.primary})`]:{display:"block"},[`.${My.root}:where(& .${Hn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Wj=Zy.forwardRef(function(t,r){let o=q({props:t,name:"MuiListItemText"}),{children:i,className:n,disableTypography:s=!1,inset:a=!1,primary:l,secondary:c,slots:u={},slotProps:p={},...f}=o,{dense:d}=Zy.useContext(si),h=l??i,y=c,b={...o,disableTypography:s,inset:a,primary:!!h,secondary:!!y,dense:d},m=$j(b),g={slots:u,slotProps:p},[v,S]=ee("root",{className:H(m.root,n),elementType:jj,externalForwardedProps:{...g,...f},ownerState:b,ref:r}),[C,w]=ee("primary",{className:m.primary,elementType:X,externalForwardedProps:g,ownerState:b}),[k,O]=ee("secondary",{className:m.secondary,elementType:X,externalForwardedProps:g,ownerState:b});return h!=null&&h.type!==X&&!s&&(h=(0,Xd.jsx)(C,{variant:d?"body2":"body1",component:w?.variant?void 0:"span",...w,children:h})),y!=null&&y.type!==X&&!s&&(y=(0,Xd.jsx)(k,{variant:"body2",color:"textSecondary",...O,children:y})),(0,Xd.jsxs)(v,{...S,children:[h,y]})}),J0=Wj;var lg=_(I(),1);var uo=_(I(),1);var Qy=_(I(),1),bu=Qy.createContext(void 0);function Zd(){let e=Qy.useContext(bu);if(e===void 0)throw new Error("MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.");return e}var Ft=_(I(),1);var Vj=Object.is;function Jy(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let r=0,o=0;for(let i in e)if(r+=1,!Vj(e[i],t[i])||!(i in t))return!1;for(let i in t)o+=1;return r===o}var qj=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","Home","End"];function Qd(e){let{activeItemId:t,getDefaultActiveItemId:r,orientation:o,isRtl:i=!1,isItemFocusable:n=_u,wrap:s=!0}=e,[a,l]=Ft.useState(t),c=Ft.useRef(t),u=a;t!==c.current&&(c.current=t,t!==void 0&&t!==a&&(u=t,l(t)));let p=Ft.useRef(null),f=Ft.useRef(new Map),[d,h]=Ft.useState(0),y=Ft.useMemo(()=>eS(f.current),[d]),b=h2(u,y,n,r),m=Ft.useRef(b);m.current=b;let g=Ft.useCallback(()=>{let M=eS(f.current),x=h2(m.current,M,n,r);return b2(M,x)},[r,n]),v=Ft.useCallback(()=>f.current,[]),S=Er(M=>{let x=f.current.get(M.id);Jy(x??null,M)||(f.current.set(M.id,M),h(P=>P+1))}),C=Er(M=>{f.current.delete(M)&&h(x=>x+1)}),w=Er(M=>{l(M)}),k=Ft.useCallback(M=>m.current===M,[]),O=Ft.useCallback((M,x,P,T)=>{let E=eg(f.current),D=g2(E,M,x,P,T??n);return D?(D.element?.focus(),l(D.id),D):null},[n]),A=Ft.useCallback(M=>({onFocus:T=>{let E=eg(f.current),D=S2(E,T.target);D!==-1&&l(E[D].id)},onKeyDown:T=>{if(T.altKey||T.shiftKey||T.ctrlKey||T.metaKey||!qj.includes(T.key))return;let E=o==="horizontal"?"ArrowLeft":"ArrowUp",D=o==="horizontal"?"ArrowRight":"ArrowDown";o==="horizontal"&&i&&(E="ArrowRight",D="ArrowLeft");let z=eg(f.current),L=Qa(It(p.current)),Z=L===p.current,re=m2(z,L,m.current),Q="next";switch(T.key){case E:Q="previous",T.preventDefault(),Z&&(re=z.length);break;case D:T.preventDefault(),Z&&(re=-1);break;case"Home":T.preventDefault(),re=-1;break;case"End":T.preventDefault(),Q="previous",re=z.length;break;default:return}O(re,Q,s)},ref:Xj(M,T=>{p.current=T})}),[O,i,o,s]),B=Ft.useCallback(M=>{let x=eg(f.current),P=Qa(It(p.current)),E=P===p.current?-1:m2(x,P,m.current);return O(E,"next",!0,M)?.id??null},[O]);return Ft.useMemo(()=>({activeItemId:b,focusNext:B,getActiveItem:g,getContainerProps:A,getItemMap:v,isItemActive:k,registerItem:S,setActiveItemId:w,unregisterItem:C}),[b,B,g,A,v,k,S,w,C])}function Jd(e){let t=Zd(),{activeItemId:r,registerItem:o,unregisterItem:i}=t,n=Ft.useRef(null),s=Ft.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),a=Ft.useRef(s);a.current=s;let l=Ft.useCallback(u=>{if(n.current=u,u==null){queueMicrotask(()=>{n.current==null&&i(e.id)});return}o({...a.current,element:u})},[e.id,o,i]),c=Xt(e.ref,l);return fr(()=>{n.current&&o({...s,element:n.current})},[s,o]),fr(()=>{let u=e.id;return()=>{i(u)}},[e.id,i]),{ref:c,tabIndex:r===e.id?0:-1}}function h2(e,t,r,o){return e!=null?Kj(e,t,r):Gj(t,r,o)}function Kj(e,t,r){let o=_2(t,e);return o===-1?v2(t,r):r(t[o])?t[o].id:g2(t,o,"next",!1,r)?.id??null}function Gj(e,t,r){let o=r?.(e);if(o!=null){let i=b2(e,o);if(i&&t(i))return i.id}return v2(e,t)}function m2(e,t,r){if(t){let o=S2(e,t);if(o!==-1)return o}return _2(e,r)}function g2(e,t,r,o,i){let n=e.length-1;if(n===-1)return null;let s=!1,a=y2(t,n,r,o),l=a;for(;a!==-1;){if(a===l){if(s)return null;s=!0}let c=e[a];if(!c||!i(c))a=y2(a,n,r,o);else return c}return null}function v2(e,t){return e.find(r=>t(r))?.id??null}function b2(e,t){return t==null?null:e.find(r=>r.id===t)??null}function _2(e,t){return t==null?-1:e.findIndex(r=>r.id===t)}function S2(e,t){return t?e.findIndex(r=>r.element===t||r.element?.contains(t)):-1}function eS(e){let t=Array.from(e.values());if(t.every(i=>i.element==null))return t;let r=t.filter(tS).sort((i,n)=>Yj(i.element,n.element)),o=t.filter(i=>!tS(i));return[...r,...o]}function eg(e){return eS(e).filter(tS)}function y2(e,t,r,o=!0){return r==="next"?e===t?o?0:-1:e+1:e===0?o?t:-1:e-1}function _u(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute("disabled")&&e.element.getAttribute("aria-disabled")!=="true"&&e.element.hasAttribute("tabindex"):!1}function tS(e){return e.element!=null&&e.element.isConnected}function Yj(e,t){if(e===t)return 0;let r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Xj(...e){return t=>{e.forEach(r=>{Ja(r??null,t)})}}var x2=ou;function ef(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}function tg(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function rg(e){return e==null||typeof e=="string"&&!e.trim()}function tf(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}var og=_(I(),1),T2=og.createContext(null);function rf(){return og.useContext(T2)}var rS=T2.Provider;var ig=_(I(),1),oS=ig.createContext(void 0);function C2(){let e=ig.useContext(oS);if(e===void 0)throw new Error("MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.");return e}var ng=_(R(),1);function Zj(e){let t=e?.element??e;if(!t)return"";if(e?.textValue!==void 0)return e.textValue;let r=t.innerText;return r===void 0&&(r=t.textContent),r??""}function w2(e,t){if(t===void 0)return!0;let r=Zj(e);return r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Qj(e,t){return w2(e,t)?_u(e):!1}function Jj(e,t){ef(e,t)}var e9=uo.forwardRef(function(t,r){let{actions:o,autoFocus:i=!1,autoFocusItem:n=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:p="selectedMenu",...f}=t,d=uo.useRef(null),h=uo.useRef(!1),[y,b]=uo.useState(!1),m=rf(),g=uo.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=uo.useCallback(E=>p==="selectedMenu"?E.find(D=>D.selected&&_u(D))?.id??E.find(D=>_u(D))?.id??null:E.find(D=>_u(D))?.id??null,[p]),S=Qd({activeItemId:void 0,getDefaultActiveItemId:v,orientation:"vertical",wrap:!c}),{activeItemId:C,focusNext:w,getActiveItem:k,getContainerProps:O,getItemMap:A}=S,B=ri((E=!1)=>{if(!d.current||!E&&h.current)return null;if(n){let D=k();if(D?.element){let z=Array.from(A().values()).some(Z=>Z.selected),L=p==="menu"&&z&&!D.selected&&m==null;return b(L),Jj(D.element,m),h.current=!0,D.element}return i?(b(!1),d.current.focus(),d.current):null}return i?(b(!1),d.current.focus(),h.current=!0,d.current):(b(!1),null)});Bn(()=>{if(!i&&!n){h.current=!1,b(!1);return}B()},[C,n,i,B]),uo.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(E,{direction:D})=>{let z=!d.current.style.width;if(E.clientHeight<d.current.clientHeight&&z){let L=`${x2(on(E))}px`;d.current.style[D==="rtl"?"paddingLeft":"paddingRight"]=L,d.current.style.width=`calc(100% + ${L})`}return d.current},focusInitialTarget:()=>{if(!d.current)return null;let E=tn(rn(d.current));return E&&d.current.contains(E)?E:B(!0)}}),[B]);let M=O(),x=At(d,M.ref,r),P=uo.useMemo(()=>({itemsFocusableWhenDisabled:l,suppressInitialFocusVisible:y,variant:p}),[l,y,p]),T=ri(E=>{if(y&&b(!1),(E.ctrlKey||E.metaKey||E.altKey)&&u){u(E);return}if(M.onKeyDown(E),E.key.length===1){let z=g.current,L=E.key.toLowerCase(),Z=performance.now();z.keys.length>0&&(Z-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&L!==z.keys[0]&&(z.repeating=!1)),z.lastTime=Z,z.keys.push(L);let re=tn(rn(d.current)),Q=re&&!z.repeating&&w2(re,z);z.previousKeyMatched&&(Q||w(fe=>Qj(fe,z))!=null)?E.preventDefault():z.previousKeyMatched=!1}u&&u(E)});return(0,ng.jsx)(sn,{role:"menu",ref:x,className:a,onKeyDown:T,onFocus:M.onFocus,tabIndex:-1,...f,children:(0,ng.jsx)(oS.Provider,{value:P,children:(0,ng.jsx)(bu.Provider,{value:S,children:s})})})}),fl=e9;var Mr=_(I(),1);function R2(e){return W("MuiPopover",e)}var F1e=j("MuiPopover",["root","paper"]);var ag=_(R(),1);function P2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function E2(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function k2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function sg(e){return typeof e=="function"?e():e}var t9=e=>{let{classes:t}=e;return V({root:["root"],paper:["paper"]},R2,t)},r9=N(Wd,{name:"MuiPopover",slot:"Root"})({}),iS=N(St,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),o9=Mr.forwardRef(function(t,r){let o=q({props:t,name:"MuiPopover"}),{action:i,anchorEl:n,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:p,disableAutoFocus:f=!1,elevation:d=8,marginThreshold:h=16,open:y,slots:b={},slotProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},transitionDuration:v="auto",disableScrollLock:S=!1,...C}=o,w=Mr.useRef(),k={...o,anchorOrigin:s,anchorReference:l,elevation:d,marginThreshold:h,transformOrigin:g,transitionDuration:v},O=t9(k),A=Mr.useCallback(()=>{if(l==="anchorPosition")return a;let oe=sg(n),Oe=(oe&&oe.nodeType===1?oe:rn(w.current).body).getBoundingClientRect();return{top:Oe.top+P2(Oe,s.vertical),left:Oe.left+E2(Oe,s.horizontal)}},[n,s.horizontal,s.vertical,a,l]),B=Mr.useCallback(oe=>({vertical:P2(oe,g.vertical),horizontal:E2(oe,g.horizontal)}),[g.horizontal,g.vertical]),M=Mr.useCallback(oe=>{let se={width:oe.offsetWidth,height:oe.offsetHeight},Oe=B(se);if(l==="none")return{top:null,left:null,transformOrigin:k2(Oe)};let gt=A(),be=gt.top-Oe.vertical,ne=gt.left-Oe.horizontal,dt=be+se.height,xr=ne+se.width,ft=on(sg(n)),Ze=ft.innerHeight-h,vt=ft.innerWidth-h;if(h!=null&&be<h){let Ee=be-h;be-=Ee,Oe.vertical+=Ee}else if(h!=null&&dt>Ze){let Ee=dt-Ze;be-=Ee,Oe.vertical+=Ee}if(h!=null&&ne<h){let Ee=ne-h;ne-=Ee,Oe.horizontal+=Ee}else if(xr>vt){let Ee=xr-vt;ne-=Ee,Oe.horizontal+=Ee}return{top:`${Math.round(be)}px`,left:`${Math.round(ne)}px`,transformOrigin:k2(Oe)}},[n,l,A,B,h]),[x,P]=Mr.useState(y),T=Mr.useCallback(()=>{let oe=w.current;if(!oe)return;let se=M(oe);se.top!=null&&oe.style.setProperty("top",se.top),se.left!=null&&(oe.style.left=se.left),oe.style.transformOrigin=se.transformOrigin,P(!0)},[M]);Mr.useEffect(()=>(S&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[n,S,T]);let E=()=>{T()},D=()=>{P(!1)};Mr.useEffect(()=>{y&&T()}),Mr.useImperativeHandle(i,()=>y?{updatePosition:()=>{T()}}:null,[y,T]),Mr.useEffect(()=>{if(!y)return;let oe=$c(()=>{T()}),se=on(sg(n));return se.addEventListener("resize",oe),()=>{oe.clear(),se.removeEventListener("resize",oe)}},[n,y,T]);let z=v,L={slots:b,slotProps:m},[Z,re]=ee("transition",{elementType:Kd,externalForwardedProps:L,ownerState:k,getSlotProps:oe=>({...oe,onEntering:(se,Oe)=>{oe.onEntering?.(se,Oe),E()},onExited:se=>{oe.onExited?.(se),D()}}),additionalProps:{appear:!0,in:y}});v==="auto"&&!Z.muiSupportAuto&&(z=void 0);let Q=p||(n?rn(sg(n)).body:void 0),[fe,{slots:ye,slotProps:he,...ie}]=ee("root",{ref:r,elementType:r9,externalForwardedProps:{...L,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:Wc(typeof m.backdrop=="function"?m.backdrop(k):m.backdrop,{invisible:!0})},container:Q,open:y},ownerState:k,className:H(O.root,u)}),[J,le]=ee("paper",{ref:w,className:O.paper,elementType:iS,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:x?void 0:{opacity:0}},ownerState:k});return(0,ag.jsx)(fe,{...ie,...!Ds(fe)&&{slots:ye,slotProps:he,disableAutoFocus:f,disableScrollLock:S},children:(0,ag.jsx)(Z,{...re,timeout:z,children:(0,ag.jsx)(J,{...le,children:c})})})}),nS=o9;function O2(e){return W("MuiMenu",e)}var lCe=j("MuiMenu",["root","paper","list"]);var sS=_(R(),1),i9={vertical:"top",horizontal:"right"},n9={vertical:"top",horizontal:"left"},s9=e=>{let{classes:t}=e;return V({root:["root"],paper:["paper"],list:["list"]},O2,t)},a9=N(nS,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),l9=N(iS,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),c9=N(fl,{name:"MuiMenu",slot:"List"})({outline:0}),u9=lg.forwardRef(function(t,r){let o=q({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:n,className:s,disableAutoFocusItem:a=!1,onClose:l,open:c,PopoverClasses:u,transitionDuration:p="auto",variant:f="selectedMenu",slots:d={},slotProps:h={},...y}=o,b=Bc(),m={...o,autoFocus:i,disableAutoFocusItem:a,transitionDuration:p,variant:f},g=s9(m),v=i&&c,S=v&&!a,C=lg.useRef(null),w=(E,D)=>{C.current&&(C.current.adjustStyleForScrollbar(E,{direction:b?"rtl":"ltr"}),v&&C.current.focusInitialTarget?.())},k=E=>{E.key==="Tab"&&(E.preventDefault(),l&&l(E,"tabKeyDown"))},O={slots:d,slotProps:h},A=zn({elementType:d.root,externalSlotProps:h.root,ownerState:m,className:[g.root,s]}),[B,M]=ee("paper",{className:g.paper,elementType:l9,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:m}),[x,P]=ee("list",{className:g.list,elementType:c9,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:E=>({...E,onKeyDown:D=>{k(D),E.onKeyDown?.(D)}}),ownerState:m}),T=typeof h.transition=="function"?h.transition(m):h.transition;return(0,sS.jsx)(a9,{disableAutoFocus:i,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:b?"right":"left"},transformOrigin:b?i9:n9,slots:{root:d.root,paper:B,backdrop:d.backdrop,transition:d.transition},slotProps:{root:A,paper:M,backdrop:typeof h.backdrop=="function"?h.backdrop(m):h.backdrop,transition:{...T,onEntering:(...E)=>{w(...E),T?.onEntering?.(...E)}}},open:c,ref:r,transitionDuration:p,ownerState:m,...y,classes:u,children:(0,sS.jsx)(x,{actions:C,autoFocus:v,autoFocusItem:S,variant:f,...P,children:n})})}),M2=u9;var $s=_(I(),1);function D2(e){return W("MuiMenuItem",e)}var p9=j("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Su=p9;var aS=_(R(),1),d9=(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},f9=e=>{let{disabled:t,dense:r,divider:o,disableGutters:i,selected:n,classes:s}=e,l=V({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",o&&"divider",n&&"selected"]},D2,s);return{...s,...l}},h9=N(Bt,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:d9})(Y(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Su.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Su.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Su.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jy.inset}`]:{marginLeft:52},[`& .${Hn.root}`]:{marginTop:0,marginBottom:0},[`& .${Hn.inset}`]:{paddingLeft:36},[`& .${Xy.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Xy.root} svg`]:{fontSize:"1.25rem"}}}]}))),m9=$s.forwardRef(function(t,r){let o=q({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:n="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:p,className:f,...d}=o,h=rf(),y=$s.useContext(si),b=$s.useMemo(()=>({dense:s||y.dense||!1,disableGutters:l}),[y.dense,s,l]),m=C2(),g=Nn(),v=m.suppressInitialFocusVisible,S=m.itemsFocusableWhenDisabled,C=$s.useRef(null);Bn(()=>{i&&C.current&&ef(C.current,h)},[i]);let w={...o,dense:b.dense,divider:a,disableGutters:l},k=f9(o),O=Jd({id:g,ref:r,disabled:o.disabled,focusableWhenDisabled:S,selected:o.selected}),A=At(C,O.ref),B;return p!==void 0?B=p:m.variant==="selectedMenu"?B=O.tabIndex:(!o.disabled||S)&&(B=-1),(0,aS.jsx)(si.Provider,{value:b,children:(0,aS.jsx)(h9,{ref:A,role:u,tabIndex:B,component:n,internalNativeButton:!1,focusableWhenDisabled:S,suppressFocusVisible:v,focusVisibleClassName:H(k.focusVisible,c),className:H(k.root,f),...d,ownerState:w,classes:k})})}),Un=m9;var ug=_(I(),1);function A2(e){return W("MuiNativeSelect",e)}var y9=j("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cg=y9;var of=_(R(),1),g9=e=>{let{classes:t,variant:r,disabled:o,multiple:i,open:n,error:s}=e,a={select:["select",r,o&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${K(r)}`,n&&"iconOpen",o&&"disabled"]};return V(a,A2,t)},lS=N("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${cg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),v9=N(lS,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Le,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${cg.multiple}`]:t.multiple}]}})({}),cS=N("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${cg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),b9=N(cS,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${K(r.variant)}`],r.open&&t.iconOpen]}})({}),_9=ug.forwardRef(function(t,r){let{className:o,disabled:i,error:n,IconComponent:s,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:i,variant:l,error:n},p=g9(u);return(0,of.jsxs)(ug.Fragment,{children:[(0,of.jsx)(v9,{ownerState:u,className:H(p.select,o),disabled:i,ref:a||r,...c}),t.multiple?null:(0,of.jsx)(b9,{as:s,ownerState:u,className:p.icon})]})}),B2=_9;var pg=_(I(),1);var nf=_(R(),1),N2,S9=N("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Le})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),x9=N("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Le})(Y(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function uS(e){let{children:t,classes:r,className:o,label:i,notched:n,...s}=e,a=i!=null&&i!=="",l={...e,notched:n,withLabel:a};return(0,nf.jsx)(S9,{"aria-hidden":!0,className:o,ownerState:l,...s,children:(0,nf.jsx)(x9,{ownerState:l,children:a?(0,nf.jsx)("span",{children:i}):N2||(N2=(0,nf.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"}))})})}var sf=_(R(),1),T9=e=>{let{classes:t}=e,o=V({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},UE,t);return{...t,...o}},C9=N(cl,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:al})(Y(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ii.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ii.focused} .${Ii.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(we()).map(([r])=>({props:{color:r},style:{[`&.${Ii.focused} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Ii.error} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ii.disabled} .${Ii.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:o})=>r.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),w9=N(uS,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Y(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),R9=N(ul,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ll})(Y(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),L2=pg.forwardRef(function(t,r){let o=q({props:t,name:"MuiOutlinedInput"}),{fullWidth:i=!1,inputComponent:n="input",label:s,multiline:a=!1,notched:l,slots:c={},slotProps:u={},type:p="text",...f}=o,d=T9(o),h=zt(),y=kr({props:o,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:h,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:a,size:y.size,type:p},m=c.root??C9,g=c.input??R9,[v,S]=ee("notchedOutline",{elementType:w9,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:s!=null&&s!==""&&y.required?(0,sf.jsxs)(pg.Fragment,{children:[s,"\u2009","*"]}):s}});return(0,sf.jsx)(pl,{slots:{root:m,input:g},slotProps:u,renderSuffix:C=>(0,sf.jsx)(v,{...S,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:i,inputComponent:n,multiline:a,ref:r,type:p,...f,classes:{...d,notchedOutline:null}})});L2.muiName="Input";var af=L2;var cf=_(I(),1);var I2=_(R(),1),z2=_e((0,I2.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked");var F2=_(R(),1),H2=_e((0,F2.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");var lf=_(R(),1),P9=N("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Le})({position:"relative",display:"flex"}),E9=N(z2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),k9=N(H2,{name:"MuiRadioButtonIcon"})(Y(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function O9(e){let{checked:t=!1,classes:r={},fontSize:o}=e,i={...e,checked:t};return(0,lf.jsxs)(P9,{className:r.root,ownerState:i,children:[(0,lf.jsx)(E9,{fontSize:o,className:r.background,ownerState:i}),(0,lf.jsx)(k9,{fontSize:o,className:r.dot,ownerState:i})]})}var pS=O9;var $2=_(I(),1);var U2=_(I(),1),M9=U2.createContext(void 0),dg=M9;function dS(){return $2.useContext(dg)}function j2(e){return W("MuiRadio",e)}var D9=j("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),fS=D9;var fg=_(R(),1),A9=e=>{let{classes:t,color:r,size:o}=e,i={root:["root",`color${K(r)}`,o!=="medium"&&`size${K(o)}`]};return{...t,...V(i,j2,t)}},B9=N(ru,{shouldForwardProp:e=>Le(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${K(r.size)}`],t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${fS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(we()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${fS.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function N9(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}var L9=(0,fg.jsx)(pS,{checked:!0}),I9=(0,fg.jsx)(pS,{}),z9=cf.forwardRef(function(t,r){let o=q({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:n=L9,color:s="primary",icon:a=I9,name:l,onChange:c,size:u="medium",className:p,disabled:f,disableRipple:d=!1,slots:h={},slotProps:y={},...b}=o,m=zt(),g=f;m&&typeof g>"u"&&(g=m.disabled),g??(g=!1);let v={...o,disabled:g,disableRipple:d,color:s,size:u},S=A9(v),C=dS(),w=i,k=OP(c,C&&C.onChange),O=l;C&&(typeof w>"u"&&(w=N9(C.value,o.value)),typeof O>"u"&&(O=C.name));let A=y.input,[B,M]=ee("root",{ref:r,elementType:B9,className:H(S.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:y,...b},getSlotProps:x=>({...x,onChange:(P,...T)=>{x.onChange?.(P,...T),k(P,...T)}}),ownerState:v,additionalProps:{type:"radio",icon:cf.cloneElement(a,{fontSize:a.props.fontSize??u}),checkedIcon:cf.cloneElement(n,{fontSize:n.props.fontSize??u}),disabled:g,name:O,checked:w,slots:h,slotProps:{input:typeof A=="function"?A(v):A}}});return(0,fg.jsx)(B,{...M,classes:S})}),hg=z9;var js=_(I(),1);function W2(e){return W("MuiRadioGroup",e)}var sRe=j("MuiRadioGroup",["root","row","error"]);var hS=_(R(),1),F9=e=>{let{classes:t,row:r,error:o}=e;return V({root:["root",r&&"row",o&&"error"]},W2,t)},H9=js.forwardRef(function(t,r){let{actions:o,children:i,className:n,defaultValue:s,name:a,onChange:l,value:c,...u}=t,p=js.useRef(null),f=F9(t),[d,h]=tl({controlled:c,default:s,name:"RadioGroup"});js.useImperativeHandle(o,()=>({focus:()=>{let g=p.current.querySelector("input:not(:disabled):checked");g||(g=p.current.querySelector("input:not(:disabled)")),g&&g.focus()}}),[]);let y=At(r,p),b=Nn(a),m=js.useMemo(()=>({name:b,onChange(g){h(g.target.value),l&&l(g,g.target.value)},value:d}),[b,l,h,d]);return(0,hS.jsx)(dg.Provider,{value:m,children:(0,hS.jsx)(W0,{role:"radiogroup",ref:y,className:H(f.root,n),...u,children:i})})}),mg=H9;var Tu=_(I(),1);var ct=_(I(),1);function yg(e){return W("MuiSelect",e)}var U9=j("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","nativeInput","error"]),xu=U9;var $n=_(R(),1),V2,$9=N(lS,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`&.${xu.select}`]:t.select},{[`&.${xu.select}`]:t[r.variant]},{[`&.${xu.error}`]:t.error},{[`&.${xu.multiple}`]:t.multiple}]}})({[`&.${xu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),j9=N(cS,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.open&&t.iconOpen]}})({}),W9=N("input",{shouldForwardProp:e=>cy(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),V9=e=>{let{classes:t,variant:r,disabled:o,multiple:i,open:n,error:s}=e;return V({select:["select",r,o&&"disabled",i&&"multiple",s&&"error"],icon:["icon",n&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]},yg,t)},q9=ct.forwardRef(function(t,r){let{"aria-describedby":o,"aria-label":i,autoFocus:n,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:p,displayEmpty:f,error:d=!1,IconComponent:h,inputRef:y,labelId:b,MenuProps:m={},multiple:g,name:v,onBlur:S,onChange:C,onClose:w,onFocus:k,onKeyDown:O,onMouseDown:A,onOpen:B,open:M,readOnly:x,renderValue:P,required:T,SelectDisplayProps:E={},tabIndex:D,type:z,value:L,variant:Z="standard",...re}=t,[Q,fe]=tl({controlled:L,default:u,name:"Select"}),[ye,he]=tl({controlled:M,default:c,name:"Select"}),ie=ct.useRef(null),J=ct.useRef(null),[le,oe]=ct.useState(null),{current:se}=ct.useRef(M!=null),[Oe,gt]=ct.useState(),[be,ne]=ct.useState(null),dt=At(r,y),xr=ct.useCallback(me=>{J.current=me,me&&oe(me)},[]),ft=le?.parentNode;ct.useImperativeHandle(dt,()=>({focus:()=>{J.current.focus()},node:ie.current,value:Q}),[Q]);let Ze=le!==null&&ye;ct.useEffect(()=>{if(!Ze||!ft||s||typeof ResizeObserver>"u")return;let me=new ResizeObserver(()=>{gt(ft.clientWidth)});return me.observe(ft),()=>{me.disconnect()}},[Ze,ft,s]),ct.useEffect(()=>{c&&ye&&le&&!se&&(gt(s?null:ft.clientWidth),J.current.focus())},[le,s]),ct.useEffect(()=>{n&&J.current.focus()},[n]),ct.useEffect(()=>{if(!b)return;let me=rn(J.current).getElementById(b);if(me){let Ue=()=>{getSelection().isCollapsed&&J.current.focus()};return me.addEventListener("click",Ue),()=>{me.removeEventListener("click",Ue)}}},[b]);let vt=(me,Ue)=>{me?(ne(tg(Ue)),B&&B(Ue)):(ne(null),w&&w(Ue)),se||(gt(s?null:ft.clientWidth),he(me))},Ee=me=>{A?.(me),me.button===0&&(me.preventDefault(),J.current.focus(),vt(!0,me))},zr=me=>{vt(!1,me)},ur=ct.Children.toArray(a),Ot=me=>{let Ue=ur.find(Wt=>Wt.props.value===me.target.value);Ue!==void 0&&(fe(Ue.props.value),C&&C(me,Ue))},Ki=me=>Ue=>{let Wt;if(Ue.currentTarget.hasAttribute("tabindex")){if(g){Wt=Array.isArray(Q)?Q.slice():[];let Cs=Q.indexOf(me.props.value);Cs===-1?Wt.push(me.props.value):Wt.splice(Cs,1)}else Wt=me.props.value;if(me.props.onClick&&me.props.onClick(Ue),Q!==Wt&&(fe(Wt),C)){let Cs=Ue.nativeEvent||Ue,im=new Cs.constructor(Cs.type,Cs);Object.defineProperty(im,"target",{writable:!0,value:{value:Wt,name:v}}),C(im,me)}g||vt(!1,Ue)}},To=me=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),vt(!0,me)),O?.(me))},Ri=me=>{!Ze&&S&&(Object.defineProperty(me,"target",{writable:!0,value:{value:Q,name:v}}),S(me))};delete re["aria-invalid"];let st,He,bt=[],Ce=!1,Kr=!1;(nl({value:Q})||f)&&(P?st=P(Q):Ce=!0);let Pi=ur.map(me=>{if(!ct.isValidElement(me))return null;let Ue;if(g){if(!Array.isArray(Q))throw new Error(pr(2));Ue=Q.some(Wt=>tf(Wt,me.props.value)),Ue&&Ce&&bt.push(me.props.children)}else Ue=tf(Q,me.props.value),Ue&&Ce&&(He=me.props.children);return Ue&&(Kr=!0),ct.cloneElement(me,{"aria-selected":Ue?"true":"false",onClick:Ki(me),onKeyUp:Wt=>{Wt.key===" "&&Wt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(Wt)},role:"option",selected:Ue,value:void 0,"data-value":me.props.value})});Ce&&(g?bt.length===0?st=null:st=bt.reduce((me,Ue,Wt)=>(me.push(Ue),Wt<bt.length-1&&me.push(", "),me),[]):st=He);let Ts=Oe;!s&&se&&le&&(Ts=ft.clientWidth);let Ma;typeof D<"u"?Ma=D:Ma=p?null:0;let ht=E.id||(v?`mui-component-select-${v}`:void 0),Ei={...t,variant:Z,value:Q,open:Ze,error:d},Wp=V9(Ei),rm=typeof m.slotProps?.paper=="function"?m.slotProps.paper(Ei):m.slotProps?.paper,om=typeof m.slotProps?.list=="function"?m.slotProps.list(Ei):m.slotProps?.list,Vp=Eo(),qp=Eo();return(0,$n.jsxs)(ct.Fragment,{children:[(0,$n.jsx)($9,{as:"div",ref:xr,tabIndex:Ma,role:"combobox","aria-controls":Ze?Vp:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ze?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[b,ht].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":T?"true":void 0,"aria-invalid":d?"true":void 0,onKeyDown:To,onMouseDown:p||x?null:Ee,onBlur:Ri,onFocus:k,...E,ownerState:Ei,className:H(E.className,Wp.select,l),id:ht,children:rg(st)?V2||(V2=(0,$n.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"\u200B"})):st}),(0,$n.jsx)(W9,{"aria-invalid":d,value:Array.isArray(Q)?Q.join(","):Q,name:v,ref:ie,"aria-hidden":!0,onChange:Ot,tabIndex:-1,disabled:p,className:Wp.nativeInput,autoFocus:n,required:T,...re,id:re.id??qp,ownerState:Ei}),(0,$n.jsx)(j9,{as:h,className:Wp.icon,ownerState:Ei}),(0,$n.jsx)(rS,{value:be,children:(0,$n.jsx)(M2,{id:`menu-${v||""}`,anchorEl:ft,open:Ze,onClose:zr,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...m,slotProps:{...m.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":g?"true":void 0,disableListWrap:!0,id:Vp,...om},paper:{...rm,style:{minWidth:Ts,...rm?.style}}},children:Pi})})]})}),q2=q9;var uf=_(R(),1),K9=e=>{let{classes:t}=e,o=V({root:["root"]},yg,t);return{...t,...o}},mS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Le(e)&&e!=="variant"},G9=N(Gd,mS)(""),Y9=N(af,mS)(""),X9=N(Vd,mS)(""),K2=Tu.forwardRef(function(t,r){let o=q({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:n,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=WE,id:p,input:f,inputProps:d,label:h,labelId:y,MenuProps:b,multiple:m=!1,native:g=!1,onClose:v,onOpen:S,open:C,renderValue:w,SelectDisplayProps:k,variant:O="outlined",...A}=o,B=g?B2:q2,M=zt(),x=kr({props:o,muiFormControl:M,states:["variant","error"]}),P=x.variant||O,T={...o,variant:P,classes:s},E=K9(T),{root:D,...z}=E,L=f||{standard:(0,uf.jsx)(G9,{ownerState:T}),outlined:(0,uf.jsx)(Y9,{label:h,ownerState:T}),filled:(0,uf.jsx)(X9,{ownerState:T})}[P],Z=At(r,co(L));return(0,uf.jsx)(Tu.Fragment,{children:Tu.cloneElement(L,{inputComponent:B,inputProps:{children:n,error:x.error,IconComponent:u,variant:P,type:void 0,multiple:m,...g?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:y,MenuProps:b,onClose:v,onOpen:S,open:C,renderValue:w,SelectDisplayProps:{id:p,...k}},...d,classes:d?Ke(z,d.classes):z,...f?f.props.inputProps:{}},...(m&&g||c)&&P==="outlined"?{notched:!0}:{},ref:Z,className:H(L.props.className,a,E.root),...!f&&{variant:P},...A})})});K2.muiName="Select";var Cu=K2;var gg=_(I(),1);var wu=_(I(),1);function Z9(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:o,open:i,resumeHideDuration:n}=e,s=Ms();wu.useEffect(()=>{if(!i)return;function m(g){g.defaultPrevented||g.key==="Escape"&&o?.(g,"escapeKeyDown")}return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[i,o]);let a=Er((m,g)=>{o?.(m,g)}),l=Er(m=>{!o||m==null||s.start(m,()=>{a(null,"timeout")})});wu.useEffect(()=>(i&&l(t),s.clear),[i,t,l,s]);let c=m=>{o?.(m,"clickaway")},u=s.clear,p=wu.useCallback(()=>{t!=null&&l(n??t*.5)},[t,n,l]),f=m=>g=>{let v=m.onBlur;v?.(g),p()},d=m=>g=>{let v=m.onFocus;v?.(g),u()},h=m=>g=>{let v=m.onMouseEnter;v?.(g),u()},y=m=>g=>{let v=m.onMouseLeave;v?.(g),p()};return wu.useEffect(()=>{if(!r&&i)return window.addEventListener("focus",p),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",u)}},[r,i,p,u]),{getRootProps:(m={})=>{let g={...As(e),...As(m)};return{role:"presentation",...m,...g,onBlur:f(g),onFocus:d(g),onMouseEnter:h(g),onMouseLeave:y(g)}},onClickAway:c}}var G2=Z9;var X2=_(I(),1);function Y2(e){return W("MuiSnackbarContent",e)}var fPe=j("MuiSnackbarContent",["root","message","action"]);var pf=_(R(),1),Q9=e=>{let{classes:t}=e;return V({root:["root"],action:["action"],message:["message"]},Y2,t)},J9=N(St,{name:"MuiSnackbarContent",slot:"Root"})(Y(({theme:e})=>{let t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(md(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:md(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),e7=N("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),t7=N("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),r7=X2.forwardRef(function(t,r){let o=q({props:t,name:"MuiSnackbarContent"}),{action:i,className:n,message:s,role:a="alert",...l}=o,c=o,u=Q9(c);return(0,pf.jsxs)(J9,{role:a,elevation:6,className:H(u.root,n),ownerState:c,ref:r,...l,children:[(0,pf.jsx)(e7,{className:u.message,ownerState:c,children:s}),i?(0,pf.jsx)(t7,{className:u.action,ownerState:c,children:i}):null]})}),yS=r7;function Z2(e){return W("MuiSnackbar",e)}var kPe=j("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var df=_(R(),1),o7=e=>{let{classes:t,anchorOrigin:r}=e,o={root:["root",`anchorOrigin${K(r.vertical)}${K(r.horizontal)}`]};return V(o,Z2,t)},i7=N("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`anchorOrigin${K(r.anchorOrigin.vertical)}${K(r.anchorOrigin.horizontal)}`]]}})(Y(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),n7=gg.forwardRef(function(t,r){let o=q({props:t,name:"MuiSnackbar"}),i=Fr(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:p,disableWindowBlurListener:f=!1,message:d,onBlur:h,onClose:y,onFocus:b,onMouseEnter:m,onMouseLeave:g,open:v,resumeHideDuration:S,slots:C={},slotProps:w={},transitionDuration:k=n,...O}=o,A={...o,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:f,transitionDuration:k},B=o7(A),{getRootProps:M,onClickAway:x}=G2(A),[P,T]=gg.useState(!0),E={slots:C,slotProps:w},[D,z]=ee("root",{ref:r,className:[B.root,p],elementType:i7,getSlotProps:M,externalForwardedProps:{...E,...O},ownerState:A}),[L,{ownerState:Z,...re}]=ee("clickAwayListener",{elementType:I0,externalForwardedProps:E,getSlotProps:ie=>({onClickAway:(...J)=>{let le=J[0];ie.onClickAway?.(...J),!le?.defaultMuiPrevented&&x(...J)}}),ownerState:A}),[Q,fe]=ee("content",{elementType:yS,shouldForwardComponentProp:!0,externalForwardedProps:E,additionalProps:{message:d,action:s},ownerState:A}),[ye,he]=ee("transition",{elementType:Kd,externalForwardedProps:E,getSlotProps:ie=>({onEnter:(...J)=>{ie.onEnter?.(...J),T(!1)},onExited:(...J)=>{ie.onExited?.(...J),T(!0)}}),additionalProps:{appear:!0,in:v,timeout:k,direction:a==="top"?"down":"up"},ownerState:A});return!v&&P?null:(0,df.jsx)(L,{...re,...C.clickAwayListener&&{ownerState:Z},children:(0,df.jsx)(D,{...z,children:(0,df.jsx)(ye,{...he,children:u||(0,df.jsx)(Q,{...fe})})})})}),Ru=n7;var s7=ny({createStyledComponent:N("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>q({props:e,name:"MuiStack"})}),Ae=s7;var J2=_(I(),1);function Q2(e){return W("MuiSwitch",e)}var a7=j("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),$r=a7;var Pu=_(R(),1),l7=e=>{let{classes:t,edge:r,size:o,color:i,checked:n,disabled:s}=e,a={root:["root",r&&`edge${K(r)}`,`size${K(o)}`],switchBase:["switchBase",`color${K(i)}`,n&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=V(a,Q2,t);return{...t,...l}},c7=N("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t[`edge${K(r.edge)}`],t[`size${K(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${$r.thumb}`]:{width:16,height:16},[`& .${$r.switchBase}`]:{padding:4,[`&.${$r.checked}`]:{transform:"translateX(16px)"}}}}]}),u7=N(ru,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{[`& .${$r.input}`]:t.input},r.color!=="default"&&t[`color${K(r.color)}`]]}})(Y(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${$r.checked}`]:{transform:"translateX(20px)"},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$r.checked} + .${$r.track}`]:{opacity:.5},[`&.${$r.disabled} + .${$r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$r.input}`]:{left:"-100%",width:"300%"}})),Y(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(we(["light"])).map(([t])=>({props:{color:t},style:{[`&.${$r.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${$r.checked} + .${$r.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),p7=N("span",{name:"MuiSwitch",slot:"Track"})(Y(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,boxSizing:"border-box",border:"1px solid transparent",zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),d7=N("span",{name:"MuiSwitch",slot:"Thumb"})(Y(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),f7=J2.forwardRef(function(t,r){let o=q({props:t,name:"MuiSwitch"}),{className:i,color:n="primary",edge:s=!1,size:a="medium",sx:l,slots:c={},slotProps:u={},...p}=o,f={...o,color:n,edge:s,size:a},d=l7(f),h={slots:c,slotProps:u},[y,b]=ee("root",{className:H(d.root,i),elementType:c7,externalForwardedProps:h,ownerState:f,additionalProps:{sx:l}}),[m,g]=ee("thumb",{className:d.thumb,elementType:d7,externalForwardedProps:h,ownerState:f}),v=(0,Pu.jsx)(m,{...g}),[S,C]=ee("track",{className:d.track,elementType:p7,externalForwardedProps:h,ownerState:f});return(0,Pu.jsxs)(y,{...b,children:[(0,Pu.jsx)(u7,{type:"checkbox",icon:v,checkedIcon:v,ref:r,ownerState:f,...p,classes:{...d,root:d.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(f):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(f):u.input}}}),(0,Pu.jsx)(S,{...C})]})}),vg=f7;var jn=_(I(),1);function eO(e){return W("MuiTab",e)}var h7=j("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","icon"]),ai=h7;var bg=_(R(),1),m7=e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:i,icon:n,label:s,selected:a,disabled:l}=e,c={root:["root",n&&s&&"labelIcon",`textColor${K(r)}`,o&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],icon:["icon"]};return V(c,eO,t)},y7=N(Bt,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${K(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${ai.icon}`]:t.icon}]}})(Y(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${ai.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${ai.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${ai.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${ai.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ai.selected}`]:{opacity:1},[`&.${ai.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ai.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ai.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),g7=jn.forwardRef(function(t,r){let o=q({props:t,name:"MuiTab"}),{className:i,disabled:n=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:p,onChange:f,onClick:d,onFocus:h,selected:y,selectionFollowsFocus:b,textColor:m="inherit",value:g,wrapped:v=!1,...S}=o,C=Zd(),w=Jd({id:g,ref:r,disabled:n,selected:y}),O=C.getItemMap().size===0&&y?0:w.tabIndex,A={...o,disabled:n,disableFocusRipple:s,selected:y,icon:!!l,iconPosition:c,label:!!p,fullWidth:a,textColor:m,wrapped:v},B=m7(A),M=l&&p&&jn.isValidElement(l)?jn.cloneElement(l,{className:H(B.icon,l.props.className)}):l,x=T=>{!y&&f&&f(T,g),d&&d(T)},P=T=>{b&&!y&&f&&f(T,g),h&&h(T)};return(0,bg.jsxs)(y7,{internalNativeButton:!0,focusRipple:!s,className:H(B.root,i),ref:w.ref,role:"tab","aria-selected":y,disabled:n,onClick:x,onFocus:P,tabIndex:O,ownerState:A,...S,children:[c==="top"||c==="start"?(0,bg.jsxs)(jn.Fragment,{children:[M,p]}):(0,bg.jsxs)(jn.Fragment,{children:[p,M]}),u]})}),hl=g7;var rO=_(I(),1);function tO(e){return W("MuiToolbar",e)}var LEe=j("MuiToolbar",["root","gutters","regular","dense"]);var oO=_(R(),1),v7=e=>{let{classes:t,disableGutters:r,variant:o}=e;return V({root:["root",!r&&"gutters",o]},tO,t)},b7=N("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(Y(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),_7=rO.forwardRef(function(t,r){let o=q({props:t,name:"MuiToolbar"}),{className:i,component:n="div",disableGutters:s=!1,variant:a="regular",...l}=o,c={...o,component:n,disableGutters:s,variant:a},u=v7(c);return(0,oO.jsx)(b7,{as:n,className:H(u.root,i),ref:r,ownerState:c,...l})}),_g=_7;var iO=_(R(),1),nO=_e((0,iO.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");var sO=_(R(),1),aO=_e((0,sO.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var et=_(I(),1);function S7(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function gS(e,t,r,o={},i=()=>{}){let{ease:n=S7,duration:s=300}=o,a=null,l=t[e],c=!1,u=()=>{c=!0},p=f=>{if(c){i(new Error("Animation cancelled"));return}a===null&&(a=f);let d=Math.min(1,(f-a)/s);if(t[e]=n(d)*(r-l)+l,d>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),u):(requestAnimationFrame(p),u)}var ff=_(I(),1);var lO=_(R(),1),x7={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function vS(e){let{onChange:t,...r}=e,o=ff.useRef(),i=ff.useRef(null),n=()=>{o.current=i.current.offsetHeight-i.current.clientHeight};return Bn(()=>{let s=$c(()=>{let l=o.current;n(),l!==o.current&&t(o.current)}),a=on(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),ff.useEffect(()=>{n(),t(o.current)},[t]),(0,lO.jsx)("div",{style:x7,...r,ref:i})}var pO=_(I(),1);function cO(e){return W("MuiTabScrollButton",e)}var T7=j("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),uO=T7;var Sg=_(R(),1),C7=e=>{let{classes:t,orientation:r,disabled:o}=e;return V({root:["root",r,o&&"disabled"]},cO,t)},w7=N(Bt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${uO.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),R7=pO.forwardRef(function(t,r){let o=q({props:t,name:"MuiTabScrollButton"}),{className:i,slots:n={},slotProps:s={},direction:a,orientation:l,disabled:c,...u}=o,{nativeButton:p,...f}=u,d=Bc(),h={isRtl:d,...o},y=C7(h),b=n.StartScrollButtonIcon??nO,m=n.EndScrollButtonIcon??aO,g=zn({elementType:b,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=zn({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return(0,Sg.jsx)(w7,{component:"div",className:H(y.root,i),ref:r,role:null,ownerState:h,tabIndex:null,...f,style:{...f.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?(0,Sg.jsx)(b,{...g}):(0,Sg.jsx)(m,{...v})})}),bS=R7;function dO(e){return W("MuiTabs",e)}var P7=j("MuiTabs",["root","vertical","list","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),xg=P7;var an=_(R(),1),E7=e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:i,scrollableY:n,centered:s,scrollButtonsHideMobile:a,classes:l}=e;return V({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",i&&"scrollableX",n&&"scrollableY"],list:["list",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},dO,l)},k7=N("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${xg.scrollButtons}`]:t.scrollButtons},{[`& .${xg.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Y(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${xg.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),O7=N("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),M7=N("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.list,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),D7=N("span",{name:"MuiTabs",slot:"Indicator"})(Y(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),A7=N(vS)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fO={};var B7=et.forwardRef(function(t,r){let o=q({props:t,name:"MuiTabs"}),i=Fr(),n=Bc(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:p,component:f="div",allowScrollButtonsMobile:d=!1,indicatorColor:h="primary",onChange:y,orientation:b="horizontal",scrollButtons:m="auto",selectionFollowsFocus:g,slots:v={},slotProps:S={},textColor:C="primary",value:w,variant:k="standard",visibleScrollbar:O=!1,...A}=o,B=k==="scrollable",M=b==="vertical",x=M?"scrollTop":"scrollLeft",P=M?"top":"left",T=M?"bottom":"right",E=M?"clientHeight":"clientWidth",D=M?"height":"width",z={...o,component:f,allowScrollButtonsMobile:d,indicatorColor:h,orientation:b,vertical:M,scrollButtons:m,textColor:C,variant:k,visibleScrollbar:O,fixed:!B,hideScrollbar:B&&!O,scrollableX:B&&!M,scrollableY:B&&M,centered:c&&!B,scrollButtonsHideMobile:!d},L=E7(z),Z=zn({elementType:v.startScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:z}),re=zn({elementType:v.endScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:z}),[Q,fe]=et.useState(!1),[ye,he]=et.useState(fO),[ie,J]=et.useState(!1),[le,oe]=et.useState(!1),[se,Oe]=et.useState(!1),gt=w===!1?null:w,[be,ne]=et.useState(!1),[dt,xr]=et.useState({overflow:"hidden",scrollbarWidth:0}),ft=new Map,Ze=et.useRef(null),vt=et.useRef(null),Ee={slots:v,slotProps:S},zr=()=>{let ce=Ze.current,ue;if(ce){let je=ce.getBoundingClientRect();ue={clientWidth:ce.clientWidth,scrollLeft:ce.scrollLeft,scrollTop:ce.scrollTop,scrollWidth:ce.scrollWidth,top:je.top,bottom:je.bottom,left:je.left,right:je.right}}let Qe;if(ce&&w!==!1){let je=vt.current.children;if(je.length>0){let Tr=je[ft.get(w)];Qe=Tr?Tr.getBoundingClientRect():null}}return{tabsMeta:ue,tabMeta:Qe}},ur=ri(()=>{let{tabsMeta:ce,tabMeta:ue}=zr(),Qe=0,je;M?(je="top",ue&&ce&&(Qe=ue.top-ce.top+ce.scrollTop)):(je=n?"right":"left",ue&&ce&&(Qe=(n?-1:1)*(ue[je]-ce[je]+ce.scrollLeft)));let Tr={[je]:Qe,[D]:ue?ue[D]:0};if(typeof ye[je]!="number"||typeof ye[D]!="number")he(Tr);else{let Da=Math.abs(ye[je]-Tr[je]),Aa=Math.abs(ye[D]-Tr[D]);(Da>=1||Aa>=1)&&he(Tr)}}),Ot=(ce,{animation:ue=!0}={})=>{ue?gS(x,Ze.current,ce,{duration:i.transitions.duration.standard}):Ze.current[x]=ce},Ki=ce=>{let ue=Ze.current[x];M?ue+=ce:ue+=ce*(n?-1:1),Ot(ue)},To=()=>{let ce=Ze.current[E],ue=0,Qe=Array.from(vt.current.children);for(let je=0;je<Qe.length;je+=1){let Tr=Qe[je];if(ue+Tr[E]>ce){je===0&&(ue=ce);break}ue+=Tr[E]}return ue},Ri=()=>{Ki(-1*To())},st=()=>{Ki(To())},[He,{onChange:bt,...Ce}]=ee("scrollbar",{className:H(L.scrollableX,L.hideScrollbar),elementType:A7,shouldForwardComponentProp:!0,externalForwardedProps:Ee,ownerState:z}),Kr=et.useCallback(ce=>{bt?.(ce),xr({overflow:null,scrollbarWidth:ce})},[bt]),[Pi,Ts]=ee("scrollButtons",{className:L.scrollButtons,elementType:bS,externalForwardedProps:Ee,ownerState:z,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:v.startScrollButtonIcon,EndScrollButtonIcon:v.endScrollButtonIcon},slotProps:{startScrollButtonIcon:Z,endScrollButtonIcon:re}}}),Ma=()=>{let ce={};ce.scrollbarSizeListener=B?(0,an.jsx)(He,{...Ce,onChange:Kr}):null;let Qe=B&&(m==="auto"&&(ie||le)||m===!0);return ce.scrollButtonStart=Qe?(0,an.jsx)(Pi,{direction:n?"right":"left",onClick:Ri,disabled:!ie,...Ts}):null,ce.scrollButtonEnd=Qe?(0,an.jsx)(Pi,{direction:n?"left":"right",onClick:st,disabled:!le,...Ts}):null,ce},ht=ri(ce=>{let{tabsMeta:ue,tabMeta:Qe}=zr();if(!(!Qe||!ue)){if(Qe[P]<ue[P]){let je=ue[x]+(Qe[P]-ue[P]);Ot(je,{animation:ce})}else if(Qe[T]>ue[T]){let je=ue[x]+(Qe[T]-ue[T]);Ot(je,{animation:ce})}}}),Ei=ri(()=>{B&&m!==!1&&Oe(!se)});et.useEffect(()=>{let ce=$c(()=>{Ze.current&&ur()}),ue,Qe=Da=>{Da.forEach(Aa=>{Aa.removedNodes.forEach(Kp=>{ue?.unobserve(Kp)}),Aa.addedNodes.forEach(Kp=>{ue?.observe(Kp)})}),ce(),Ei()},je=on(Ze.current);je.addEventListener("resize",ce);let Tr;return typeof ResizeObserver<"u"&&(ue=new ResizeObserver(ce),Array.from(vt.current.children).forEach(Da=>{ue.observe(Da)})),typeof MutationObserver<"u"&&(Tr=new MutationObserver(Qe),Tr.observe(vt.current,{childList:!0})),()=>{ce.clear(),je.removeEventListener("resize",ce),Tr?.disconnect(),ue?.disconnect()}},[ur,Ei]),et.useEffect(()=>{let ce=Array.from(vt.current.children),ue=ce.length;if(typeof IntersectionObserver<"u"&&ue>0&&B&&m!==!1){let Qe=ce[0],je=ce[ue-1],Tr={root:Ze.current,threshold:.99},Da=p_=>{J(!p_[0].isIntersecting)},Aa=new IntersectionObserver(Da,Tr);Aa.observe(Qe);let Kp=p_=>{oe(!p_[0].isIntersecting)},iw=new IntersectionObserver(Kp,Tr);return iw.observe(je),()=>{Aa.disconnect(),iw.disconnect()}}},[B,m,se,u?.length]),et.useEffect(()=>{fe(!0)},[]),et.useEffect(()=>{ur()}),et.useEffect(()=>{ht(fO!==ye)},[ht,ye]),et.useImperativeHandle(l,()=>({updateIndicator:ur,updateScrollButtons:Ei}),[ur,Ei]);let[Wp,rm]=ee("indicator",{className:L.indicator,elementType:D7,externalForwardedProps:Ee,ownerState:z,additionalProps:{style:ye}}),om=(0,an.jsx)(Wp,{...rm}),Vp=Qd({activeItemId:be?void 0:gt,orientation:b,isRtl:n}),qp=Vp.getContainerProps(),Ue=et.Children.toArray(u).filter(et.isValidElement).map((ce,ue)=>{let Qe=ce.props.value===void 0?ue:ce.props.value;return ft.set(Qe,ue),{child:ce,index:ue,childValue:Qe}}).map(({child:ce,childValue:ue})=>{let Qe=ue===w;return et.cloneElement(ce,{fullWidth:k==="fullWidth",indicator:Qe&&!Q&&om,selected:Qe,selectionFollowsFocus:g,onChange:y,textColor:C,value:ue})}),Wt=Ma(),[Cs,im]=ee("root",{ref:r,className:H(L.root,p),elementType:k7,externalForwardedProps:{...Ee,...A,component:f},ownerState:z}),[Zz,Qz]=ee("scroller",{ref:Ze,className:L.scroller,elementType:O7,externalForwardedProps:Ee,ownerState:z,additionalProps:{style:{overflow:dt.overflow,[M?`margin${n?"Left":"Right"}`:"marginBottom"]:O?void 0:-dt.scrollbarWidth}}}),Jz=At(qp.ref,vt),e4=ce=>{let ue=vt.current;tn(rn(ue))?.getAttribute("role")==="tab"&&qp.onKeyDown(ce)},[t4,r4]=ee("list",{ref:Jz,className:L.list,elementType:M7,externalForwardedProps:Ee,ownerState:z,getSlotProps:ce=>({...ce,onBlur:ue=>{ue.currentTarget.contains(ue.relatedTarget)||ne(!1),ce.onBlur?.(ue)},onKeyDown:ue=>{e4(ue),ce.onKeyDown?.(ue)},onFocus:ue=>{ne(!0),qp.onFocus(ue),ce.onFocus?.(ue)}})});return(0,an.jsxs)(Cs,{...im,children:[Wt.scrollButtonStart,Wt.scrollbarSizeListener,(0,an.jsxs)(Zz,{...Qz,children:[(0,an.jsx)(t4,{"aria-label":s,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...r4,children:(0,an.jsx)(bu.Provider,{value:Vp,children:Ue})}),Q&&om]}),Wt.scrollButtonEnd]})}),hf=B7;var mO=_(I(),1);function hO(e){return W("MuiTextField",e)}var Kke=j("MuiTextField",["root"]);var ml=_(R(),1),N7={standard:Gd,filled:Vd,outlined:af},L7=e=>{let{classes:t}=e;return V({root:["root"]},hO,t)},I7=N(fu,{name:"MuiTextField",slot:"Root"})({}),z7=mO.forwardRef(function(t,r){let o=q({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:n=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:p=!1,fullWidth:f=!1,helperText:d,id:h,inputRef:y,label:b,maxRows:m,minRows:g,multiline:v=!1,name:S,onBlur:C,onChange:w,onFocus:k,placeholder:O,required:A=!1,rows:B,select:M=!1,slots:x={},slotProps:P={},type:T,value:E,variant:D="outlined",...z}=o,L={...o,autoFocus:n,color:l,disabled:u,error:p,fullWidth:f,multiline:v,required:A,select:M,variant:D},Z=L7(L),re=Eo(h),Q=d&&re?`${re}-helper-text`:void 0,fe=b&&re?`${re}-label`:void 0,ye=N7[D],he={slots:x,slotProps:P},[ie,J]=ee("select",{elementType:Cu,externalForwardedProps:he,ownerState:L}),le=M&&J.native,oe={},se=he.slotProps.inputLabel;D==="outlined"&&(se&&typeof se.shrink<"u"&&(oe.notched=se.shrink),oe.label=b),M&&(le||(oe.id=void 0),oe["aria-describedby"]=void 0);let[Oe,gt]=ee("root",{elementType:I7,shouldForwardComponentProp:!0,externalForwardedProps:{...he,...z},ownerState:L,className:H(Z.root,a),ref:r,additionalProps:{disabled:u,error:p,fullWidth:f,required:A,color:l,variant:D}}),[be,ne]=ee("input",{elementType:ye,externalForwardedProps:he,additionalProps:oe,ownerState:L}),[dt,xr]=ee("inputLabel",{elementType:X0,externalForwardedProps:he,ownerState:L}),[ft,Ze]=ee("htmlInput",{elementType:"input",externalForwardedProps:he,ownerState:L}),[vt,Ee]=ee("formHelperText",{elementType:K0,externalForwardedProps:he,ownerState:L}),zr=(0,ml.jsx)(be,{"aria-describedby":Q,autoComplete:i,autoFocus:n,defaultValue:c,fullWidth:f,multiline:v,name:S,rows:B,maxRows:m,minRows:g,type:T,value:E,id:re,inputRef:y,onBlur:C,onChange:w,onFocus:k,placeholder:O,inputProps:Ze,slots:{input:x.htmlInput?ft:void 0},...ne});return(0,ml.jsxs)(Oe,{...gt,children:[b!=null&&b!==""&&(0,ml.jsx)(dt,{htmlFor:M&&!le?void 0:re,id:fe,...M&&!le&&{component:"div"},...xr,children:b}),M?(0,ml.jsx)(ie,{"aria-describedby":Q,id:re,labelId:fe,value:E,input:zr,...J,children:s}):zr,d&&(0,ml.jsx)(vt,{id:Q,...Ee,children:d})]})}),Zt=z7;var Yz=_(I(),1),Xz=_($B(),1);var bo=_(I(),1),ae=_(I(),1),pt=_(I(),1),y1=_(I(),1),bN=_(I(),1),Ne=_(I(),1),vK=_(I(),1),bK=_(I(),1),_K=_(I(),1),pe=_(I(),1),DN=_(I(),1),DK={};var jB="popstate";function WB(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function ZB(e={}){function t(o,i){let n=i.state?.masked,{pathname:s,search:a,hash:l}=n||o.location;return t1("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default",n?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function r(o,i){return typeof i=="string"?i:vp(i)}return dq(t,r,null,e)}function yt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pq(){return Math.random().toString(36).substring(2,10)}function VB(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function t1(e,t,r=null,o,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ll(t):t,state:r,key:t&&t.key||o||pq(),unstable_mask:i}}function vp({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ll(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function dq(e,t,r,o={}){let{window:i=document.defaultView,v5Compat:n=!1}=o,s=i.history,a="POP",l=null,c=u();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function u(){return(s.state||{idx:null}).idx}function p(){a="POP";let b=u(),m=b==null?null:b-c;c=b,l&&l({action:a,location:y.location,delta:m})}function f(b,m){a="PUSH";let g=WB(b)?b:t1(y.location,b,m);r&&r(g,b),c=u()+1;let v=VB(g,c),S=y.createHref(g.unstable_mask||g);try{s.pushState(v,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}n&&l&&l({action:a,location:y.location,delta:1})}function d(b,m){a="REPLACE";let g=WB(b)?b:t1(y.location,b,m);r&&r(g,b),c=u();let v=VB(g,c),S=y.createHref(g.unstable_mask||g);s.replaceState(v,"",S),n&&l&&l({action:a,location:y.location,delta:0})}function h(b){return fq(b)}let y={get action(){return a},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(jB,p),l=b,()=>{i.removeEventListener(jB,p),l=null}},createHref(b){return t(i,b)},createURL:h,encodeLocation(b){let m=h(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:d,go(b){return s.go(b)}};return y}function fq(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),yt(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:vp(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=r+o),new URL(o,r)}var hq;hq=new WeakMap;function n1(e,t,r="/"){return mq(e,t,r,!1)}function mq(e,t,r,o){let i=typeof t=="string"?Ll(t):t,n=yn(i.pathname||"/",r);if(n==null)return null;let s=QB(e);gq(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=Eq(n);a=Rq(s[l],c,o)}return a}function yq(e,t){let{route:r,pathname:o,params:i}=e;return{id:r.id,pathname:o,params:i,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function QB(e,t=[],r=[],o="",i=!1){let n=(s,a,l=i,c)=>{let u={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(o)&&l)return;yt(u.relativePath.startsWith(o),`Absolute route path "${u.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(o.length)}let p=mn([o,u.relativePath]),f=r.concat(u);s.children&&s.children.length>0&&(yt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),QB(s.children,t,f,p,l)),!(s.path==null&&!s.index)&&t.push({path:p,score:Cq(p,s.index),routesMeta:f})};return e.forEach((s,a)=>{if(s.path===""||!s.path?.includes("?"))n(s,a);else for(let l of JB(s.path))n(s,a,!0,l)}),t}function JB(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,i=r.endsWith("?"),n=r.replace(/\?$/,"");if(o.length===0)return i?[n,""]:[n];let s=JB(o.join("/")),a=[];return a.push(...s.map(l=>l===""?n:[n,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function gq(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:wq(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var vq=/^:[\w-]+$/,bq=3,_q=2,Sq=1,xq=10,Tq=-2,qB=e=>e==="*";function Cq(e,t){let r=e.split("/"),o=r.length;return r.some(qB)&&(o+=Tq),t&&(o+=_q),r.filter(i=>!qB(i)).reduce((i,n)=>i+(vq.test(n)?bq:n===""?Sq:xq),o)}function wq(e,t){return e.length===t.length&&e.slice(0,-1).every((o,i)=>o===t[i])?e[e.length-1]-t[t.length-1]:0}function Rq(e,t,r=!1){let{routesMeta:o}=e,i={},n="/",s=[];for(let a=0;a<o.length;++a){let l=o[a],c=a===o.length-1,u=n==="/"?t:t.slice(n.length)||"/",p=yh({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!p&&c&&r&&!o[o.length-1].route.index&&(p=yh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:mn([n,p.pathname]),pathnameBase:Mq(mn([n,p.pathnameBase])),route:f}),p.pathnameBase!=="/"&&(n=mn([n,p.pathnameBase]))}return s}function yh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=Pq(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let n=i[0],s=n.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:o.reduce((c,{paramName:u,isOptional:p},f)=>{if(u==="*"){let h=a[f]||"";s=n.slice(0,n.length-h.length).replace(/(.)\/+$/,"$1")}let d=a[f];return p&&!d?c[u]=void 0:c[u]=(d||"").replace(/%2F/g,"/"),c},{}),pathname:n,pathnameBase:s,pattern:e}}function Pq(e,t=!1,r=!0){jo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l,c,u)=>{if(o.push({paramName:a,isOptional:l!=null}),l){let p=u.charAt(c+s.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),o]}function Eq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function yn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}var kq=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function eN(e,t="/"){let{pathname:r,search:o="",hash:i=""}=typeof e=="string"?Ll(e):e,n;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?n=KB(r.substring(1),"/"):n=KB(r,t)):n=t,{pathname:n,search:Dq(o),hash:Aq(i)}}function KB(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function QT(e,t,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Oq(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function s1(e){let t=Oq(e);return t.map((r,o)=>o===t.length-1?r.pathname:r.pathnameBase)}function rb(e,t,r,o=!1){let i;typeof e=="string"?i=Ll(e):(i={...e},yt(!i.pathname||!i.pathname.includes("?"),QT("?","pathname","search",i)),yt(!i.pathname||!i.pathname.includes("#"),QT("#","pathname","hash",i)),yt(!i.search||!i.search.includes("#"),QT("#","search","hash",i)));let n=e===""||i.pathname==="",s=n?"/":i.pathname,a;if(s==null)a=r;else{let p=t.length-1;if(!o&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),p-=1;i.pathname=f.join("/")}a=p>=0?t[p]:"/"}let l=eN(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(n||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var mn=e=>e.join("/").replace(/\/\/+/g,"/"),Mq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Dq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Aq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;var tN=class{constructor(e,t,r,o=!1){this.status=e,this.statusText=t||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function rN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Bq(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var oN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function iN(e,t){let r=e;if(typeof r!="string"||!kq.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,i=!1;if(oN)try{let n=new URL(window.location.href),s=r.startsWith("//")?new URL(n.protocol+r):new URL(r),a=yn(s.pathname,t);s.origin===n.origin&&a!=null?r=a+s.search+s.hash:i=!0}catch{jo(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:i,to:r}}var xDe=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nN=["POST","PUT","PATCH","DELETE"],TDe=new Set(nN),Nq=["GET",...nN],CDe=new Set(Nq);var Il=bo.createContext(null);Il.displayName="DataRouter";var bp=bo.createContext(null);bp.displayName="DataRouterState";var sN=bo.createContext(!1);function Lq(){return bo.useContext(sN)}var a1=bo.createContext({isTransitioning:!1});a1.displayName="ViewTransition";var aN=bo.createContext(new Map);aN.displayName="Fetchers";var Iq=bo.createContext(null);Iq.displayName="Await";var Wr=bo.createContext(null);Wr.displayName="Navigation";var _p=bo.createContext(null);_p.displayName="Location";var bi=bo.createContext({outlet:null,matches:[],isDataRoute:!1});bi.displayName="Route";var l1=bo.createContext(null);l1.displayName="RouteError";var r1=!0,lN="REACT_ROUTER_ERROR",zq="REDIRECT",Fq="ROUTE_ERROR_RESPONSE";function Hq(e){if(e.startsWith(`${lN}:${zq}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Uq(e){if(e.startsWith(`${lN}:${Fq}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new tN(t.status,t.statusText,t.data)}catch{}}function cN(e,{relative:t}={}){yt(zl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=ae.useContext(Wr),{hash:i,pathname:n,search:s}=Sp(e,{relative:t}),a=n;return r!=="/"&&(a=n==="/"?r:mn([r,n])),o.createHref({pathname:a,search:s,hash:i})}function zl(){return ae.useContext(_p)!=null}function to(){return yt(zl(),"useLocation() may be used only in the context of a <Router> component."),ae.useContext(_p).location}var uN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pN(e){ae.useContext(Wr).static||ae.useLayoutEffect(e)}function _o(){let{isDataRoute:e}=ae.useContext(bi);return e?Zq():$q()}function $q(){yt(zl(),"useNavigate() may be used only in the context of a <Router> component.");let e=ae.useContext(Il),{basename:t,navigator:r}=ae.useContext(Wr),{matches:o}=ae.useContext(bi),{pathname:i}=to(),n=JSON.stringify(s1(o)),s=ae.useRef(!1);return pN(()=>{s.current=!0}),ae.useCallback((l,c={})=>{if(jo(s.current,uN),!s.current)return;if(typeof l=="number"){r.go(l);return}let u=rb(l,JSON.parse(n),i,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:mn([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,n,i,e])}var wDe=ae.createContext(null);function c1(){let{matches:e}=ae.useContext(bi),t=e[e.length-1];return t?t.params:{}}function Sp(e,{relative:t}={}){let{matches:r}=ae.useContext(bi),{pathname:o}=to(),i=JSON.stringify(s1(r));return ae.useMemo(()=>rb(e,JSON.parse(i),o,t==="path"),[e,i,o,t])}function dN(e,t){return fN(e,t)}function fN(e,t,r){yt(zl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=ae.useContext(Wr),{matches:i}=ae.useContext(bi),n=i[i.length-1],s=n?n.params:{},a=n?n.pathname:"/",l=n?n.pathnameBase:"/",c=n&&n.route;if(r1){let b=c&&c.path||"";gN(a,!c||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
147
147
|
|
|
148
|
-
Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let u=to(),p;if(t){let b=typeof t=="string"?Ll(t):t;yt(l==="/"||b.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${b.pathname}" was given in the \`location\` prop.`),p=b}else p=u;let f=p.pathname||"/",d=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let h=n1(e,{pathname:d});r1&&(jo(c||h!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),jo(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let y=Kq(h&&h.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:mn([l,o.encodeLocation?o.encodeLocation(b.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:mn([l,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),i,r);return t&&y?ae.createElement(_p.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},y):y}function jq(){let e=yN(),t=rN(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},n={padding:"2px 4px",backgroundColor:o},s=null;return r1&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=ae.createElement(ae.Fragment,null,ae.createElement("p",null,"\u{1F4BF} Hey developer \u{1F44B}"),ae.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",ae.createElement("code",{style:n},"ErrorBoundary")," or"," ",ae.createElement("code",{style:n},"errorElement")," prop on your route."))),ae.createElement(ae.Fragment,null,ae.createElement("h2",null,"Unexpected Application Error!"),ae.createElement("h3",{style:{fontStyle:"italic"}},t),r?ae.createElement("pre",{style:i},r):null,s)}var Wq=ae.createElement(jq,null),hN=class extends ae.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Uq(e.digest);r&&(e=r)}let t=e!==void 0?ae.createElement(bi.Provider,{value:this.props.routeContext},ae.createElement(l1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?ae.createElement(Vq,{error:e},t):t}};hN.contextType=sN;var JT=new WeakMap;function Vq({children:e,error:t}){let{basename:r}=ae.useContext(Wr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=Hq(t.digest);if(o){let i=JT.get(t);if(i)throw i;let n=iN(o.location,r);if(oN&&!JT.get(t))if(n.isExternal||o.reloadDocument)window.location.href=n.absoluteURL||n.to;else{let s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(n.to,{replace:o.replace}));throw JT.set(t,s),s}return ae.createElement("meta",{httpEquiv:"refresh",content:`0;url=${n.absoluteURL||n.to}`})}}return e}function qq({routeContext:e,match:t,children:r}){let o=ae.useContext(Il);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),ae.createElement(bi.Provider,{value:e},r)}function Kq(e,t=[],r){let o=r?.state;if(e==null){if(!o)return null;if(o.errors)e=o.matches;else if(t.length===0&&!o.initialized&&o.matches.length>0)e=o.matches;else return null}let i=e,n=o?.errors;if(n!=null){let u=i.findIndex(p=>p.route.id&&n?.[p.route.id]!==void 0);yt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(n).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,a=-1;if(r&&o){s=o.renderFallback;for(let u=0;u<i.length;u++){let p=i[u];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(a=u),p.route.id){let{loaderData:f,errors:d}=o,h=p.route.loader&&!f.hasOwnProperty(p.route.id)&&(!d||d[p.route.id]===void 0);if(p.route.lazy||h){r.isStatic&&(s=!0),a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}}let l=r?.onError,c=o&&l?(u,p)=>{l(u,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Bq(o.matches),errorInfo:p})}:void 0;return i.reduceRight((u,p,f)=>{let d,h=!1,y=null,b=null;o&&(d=n&&p.route.id?n[p.route.id]:void 0,y=p.route.errorElement||Wq,s&&(a<0&&f===0?(gN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,b=null):a===f&&(h=!0,b=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,f+1)),g=()=>{let v;return d?v=y:h?v=b:p.route.Component?v=ae.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=u,ae.createElement(qq,{match:p,routeContext:{outlet:u,matches:m,isDataRoute:o!=null},children:v})};return o&&(p.route.ErrorBoundary||p.route.errorElement||f===0)?ae.createElement(hN,{location:o.location,revalidation:o.revalidation,component:y,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):g()},null)}function u1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gq(e){let t=ae.useContext(Il);return yt(t,u1(e)),t}function p1(e){let t=ae.useContext(bp);return yt(t,u1(e)),t}function Yq(e){let t=ae.useContext(bi);return yt(t,u1(e)),t}function d1(e){let t=Yq(e),r=t.matches[t.matches.length-1];return yt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Xq(){return d1("useRouteId")}function mN(){return p1("useNavigation").navigation}function f1(){let{matches:e,loaderData:t}=p1("useMatches");return ae.useMemo(()=>e.map(r=>yq(r,t)),[e,t])}function yN(){let e=ae.useContext(l1),t=p1("useRouteError"),r=d1("useRouteError");return e!==void 0?e:t.errors?.[r]}function Zq(){let{router:e}=Gq("useNavigate"),t=d1("useNavigate"),r=ae.useRef(!1);return pN(()=>{r.current=!0}),ae.useCallback(async(i,n={})=>{jo(r.current,uN),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...n}))},[e,t])}var GB={};function gN(e,t,r){!t&&!GB[e]&&(GB[e]=!0,jo(!1,r))}var Qq="useOptimistic",wDe=pt[Qq];var RDe=pt.memo(Jq);function Jq({routes:e,future:t,state:r,isStatic:o,onError:i}){return fN(e,void 0,{state:r,isStatic:o,onError:i,future:t})}function h1({to:e,replace:t,state:r,relative:o}){yt(zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=pt.useContext(Wr);jo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:n}=pt.useContext(bi),{pathname:s}=to(),a=_o(),l=rb(e,s1(n),s,o==="path"),c=JSON.stringify(l);return pt.useEffect(()=>{a(JSON.parse(c),{replace:t,state:r,relative:o})},[a,c,o,t,r]),null}function Wo(e){yt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function m1({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:i,static:n=!1,unstable_useTransitions:s}){yt(!zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=pt.useMemo(()=>({basename:a,navigator:i,static:n,unstable_useTransitions:s,future:{}}),[a,i,n,s]);typeof r=="string"&&(r=Ll(r));let{pathname:c="/",search:u="",hash:p="",state:f=null,key:d="default",unstable_mask:h}=r,y=pt.useMemo(()=>{let b=yn(c,a);return b==null?null:{location:{pathname:b,search:u,hash:p,state:f,key:d,unstable_mask:h},navigationType:o}},[a,c,u,p,f,d,o,h]);return jo(y!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:pt.createElement(Wr.Provider,{value:l},pt.createElement(_p.Provider,{children:t,value:y}))}function Fl({children:e,location:t}){return dN(tb(e),t)}function tb(e,t=[]){let r=[];return pt.Children.forEach(e,(o,i)=>{if(!pt.isValidElement(o))return;let n=[...t,i];if(o.type===pt.Fragment){r.push.apply(r,tb(o.props.children,n));return}yt(o.type===Wo,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let s={id:o.props.id||n.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(s.children=tb(o.props.children,n)),r.push(s)}),r}var Jv="get",eb="application/x-www-form-urlencoded";function ob(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function eK(e){return ob(e)&&e.tagName.toLowerCase()==="button"}function tK(e){return ob(e)&&e.tagName.toLowerCase()==="form"}function rK(e){return ob(e)&&e.tagName.toLowerCase()==="input"}function oK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iK(e,t){return e.button===0&&(!t||t==="_self")&&!oK(e)}var Zv=null;function nK(){if(Zv===null)try{new FormData(document.createElement("form"),0),Zv=!1}catch{Zv=!0}return Zv}var sK=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function e1(e){return e!=null&&!sK.has(e)?(jo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${eb}"`),null):e}function aK(e,t){let r,o,i,n,s;if(tK(e)){let a=e.getAttribute("action");o=a?yn(a,t):null,r=e.getAttribute("method")||Jv,i=e1(e.getAttribute("enctype"))||eb,n=new FormData(e)}else if(eK(e)||rK(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(o=l?yn(l,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Jv,i=e1(e.getAttribute("formenctype"))||e1(a.getAttribute("enctype"))||eb,n=new FormData(a,e),!nK()){let{name:c,type:u,value:p}=e;if(u==="image"){let f=c?`${c}.`:"";n.append(`${f}x`,"0"),n.append(`${f}y`,"0")}else c&&n.append(c,p)}}else{if(ob(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Jv,o=null,i=eb,s=e}return n&&i==="text/plain"&&(s=n,n=void 0),{action:o,method:r.toLowerCase(),encType:i,formData:n,body:s}}var PDe=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lK={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},cK=/[&><\u2028\u2029]/g;function YB(e){return e.replace(cK,t=>lK[t])}function g1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vN(e,t,r,o){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${o}`:i.pathname=`${i.pathname}.${o}`:i.pathname==="/"?i.pathname=`_root.${o}`:t&&yn(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${o}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${o}`,i}async function uK(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){if(console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&DK.hot)throw r;return window.location.reload(),new Promise(()=>{})}}function pK(e){return e!=null&&typeof e.page=="string"}function dK(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function fK(e,t,r){let o=await Promise.all(e.map(async i=>{let n=t.routes[i.route.id];if(n){let s=await uK(n,r);return s.links?s.links():[]}return[]}));return gK(o.flat(1).filter(dK).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function XB(e,t,r,o,i,n){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,a=(l,c)=>r[c].pathname!==l.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==l.params["*"];return n==="assets"?t.filter((l,c)=>s(l,c)||a(l,c)):n==="data"?t.filter((l,c)=>{let u=o.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function hK(e,t,{includeHydrateFallback:r}={}){return mK(e.map(o=>{let i=t.routes[o.route.id];if(!i)return[];let n=[i.module];return i.clientActionModule&&(n=n.concat(i.clientActionModule)),i.clientLoaderModule&&(n=n.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(n=n.concat(i.hydrateFallbackModule)),i.imports&&(n=n.concat(i.imports)),n}).flat(1))}function mK(e){return[...new Set(e)]}function yK(e){let t={},r=Object.keys(e).sort();for(let o of r)t[o]=e[o];return t}function gK(e,t){let r=new Set,o=new Set(t);return e.reduce((i,n)=>{if(t&&!pK(n)&&n.as==="script"&&n.href&&o.has(n.href))return i;let a=JSON.stringify(yK(n));return r.has(a)||(r.add(a),i.push({key:a,link:n})),i},[])}function v1(){let e=Ne.useContext(Il);return g1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function SK(){let e=Ne.useContext(bp);return g1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gh=Ne.createContext(void 0);gh.displayName="FrameworkContext";function b1(){let e=Ne.useContext(gh);return g1(e,"You must render this element inside a <HydratedRouter> element"),e}function xK(e,t){let r=Ne.useContext(gh),[o,i]=Ne.useState(!1),[n,s]=Ne.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:p}=t,f=Ne.useRef(null);Ne.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=m=>{m.forEach(g=>{s(g.isIntersecting)})},b=new IntersectionObserver(y,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[e]),Ne.useEffect(()=>{if(o){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[o]);let d=()=>{i(!0)},h=()=>{i(!1),s(!1)};return r?e!=="intent"?[n,f,{}]:[n,f,{onFocus:mh(a,d),onBlur:mh(l,h),onMouseEnter:mh(c,d),onMouseLeave:mh(u,h),onTouchStart:mh(p,d)}]:[!1,f,{}]}function mh(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function _N({page:e,...t}){let r=Lq(),{router:o}=v1(),i=Ne.useMemo(()=>n1(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?r?Ne.createElement(CK,{page:e,matches:i,...t}):Ne.createElement(wK,{page:e,matches:i,...t}):null}function TK(e){let{manifest:t,routeModules:r}=b1(),[o,i]=Ne.useState([]);return Ne.useEffect(()=>{let n=!1;return fK(e,t,r).then(s=>{n||i(s)}),()=>{n=!0}},[e,t,r]),o}function CK({page:e,matches:t,...r}){let o=to(),{future:i}=b1(),{basename:n}=v1(),s=Ne.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let a=vN(e,n,i.unstable_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let u of t)typeof u.route.shouldRevalidate=="function"?l=!0:c.push(u.route.id);return l&&c.length>0&&a.searchParams.set("_routes",c.join(",")),[a.pathname+a.search]},[n,i.unstable_trailingSlashAwareDataRequests,e,o,t]);return Ne.createElement(Ne.Fragment,null,s.map(a=>Ne.createElement("link",{key:a,rel:"prefetch",as:"fetch",href:a,...r})))}function wK({page:e,matches:t,...r}){let o=to(),{future:i,manifest:n,routeModules:s}=b1(),{basename:a}=v1(),{loaderData:l,matches:c}=SK(),u=Ne.useMemo(()=>XB(e,t,c,n,o,"data"),[e,t,c,n,o]),p=Ne.useMemo(()=>XB(e,t,c,n,o,"assets"),[e,t,c,n,o]),f=Ne.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let y=new Set,b=!1;if(t.forEach(g=>{let v=n.routes[g.route.id];!v||!v.hasLoader||(!u.some(S=>S.route.id===g.route.id)&&g.route.id in l&&s[g.route.id]?.shouldRevalidate||v.hasClientLoader?b=!0:y.add(g.route.id))}),y.size===0)return[];let m=vN(e,a,i.unstable_trailingSlashAwareDataRequests,"data");return b&&y.size>0&&m.searchParams.set("_routes",t.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[m.pathname+m.search]},[a,i.unstable_trailingSlashAwareDataRequests,l,o,n,u,t,e,s]),d=Ne.useMemo(()=>hK(p,n),[p,n]),h=TK(p);return Ne.createElement(Ne.Fragment,null,f.map(y=>Ne.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),d.map(y=>Ne.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),h.map(({key:y,link:b})=>Ne.createElement("link",{key:y,nonce:r.nonce,...b,crossOrigin:b.crossOrigin??r.crossOrigin})))}function RK(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var PK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{PK&&(window.__reactRouterVersion="7.14.0")}catch{}function _1({basename:e,children:t,unstable_useTransitions:r,window:o}){let i=pe.useRef();i.current==null&&(i.current=ZB({window:o,v5Compat:!0}));let n=i.current,[s,a]=pe.useState({action:n.action,location:n.location}),l=pe.useCallback(c=>{r===!1?a(c):pe.startTransition(()=>a(c))},[r]);return pe.useLayoutEffect(()=>n.listen(l),[n,l]),pe.createElement(m1,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:n,unstable_useTransitions:r})}function SN({basename:e,children:t,history:r,unstable_useTransitions:o}){let[i,n]=pe.useState({action:r.action,location:r.location}),s=pe.useCallback(a=>{o===!1?n(a):pe.startTransition(()=>n(a))},[o]);return pe.useLayoutEffect(()=>r.listen(s),[r,s]),pe.createElement(m1,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:r,unstable_useTransitions:o})}SN.displayName="unstable_HistoryRouter";var xN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,S1=pe.forwardRef(function({onClick:t,discover:r="render",prefetch:o="none",relative:i,reloadDocument:n,replace:s,unstable_mask:a,state:l,target:c,to:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:d,...h},y){let{basename:b,navigator:m,unstable_useTransitions:g}=pe.useContext(Wr),v=typeof u=="string"&&xN.test(u),S=iN(u,b);u=S.to;let C=cN(u,{relative:i}),w=to(),k=null;if(a){let E=rb(a,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);b!=="/"&&(E.pathname=E.pathname==="/"?b:mn([b,E.pathname])),k=m.createHref(E)}let[O,A,B]=xK(o,h),M=PN(u,{replace:s,unstable_mask:a,state:l,target:c,preventScrollReset:p,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:g});function x(E){t&&t(E),E.defaultPrevented||M(E)}let P=!(S.isExternal||n),T=pe.createElement("a",{...h,...B,href:(P?k:void 0)||S.absoluteURL||C,onClick:P?x:t,ref:RK(y,A),target:c,"data-discover":!v&&r==="render"?"true":void 0});return O&&!v?pe.createElement(pe.Fragment,null,T,pe.createElement(_N,{page:C})):T});S1.displayName="Link";var TN=pe.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:o="",end:i=!1,style:n,to:s,viewTransition:a,children:l,...c},u){let p=Sp(s,{relative:c.relative}),f=to(),d=pe.useContext(bp),{navigator:h,basename:y}=pe.useContext(Wr),b=d!=null&&MN(p)&&a===!0,m=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,g=f.pathname,v=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;r||(g=g.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase()),v&&y&&(v=yn(v,y)||v);let S=m!=="/"&&m.endsWith("/")?m.length-1:m.length,C=g===m||!i&&g.startsWith(m)&&g.charAt(S)==="/",w=v!=null&&(v===m||!i&&v.startsWith(m)&&v.charAt(m.length)==="/"),k={isActive:C,isPending:w,isTransitioning:b},O=C?t:void 0,A;typeof o=="function"?A=o(k):A=[o,C?"active":null,w?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof n=="function"?n(k):n;return pe.createElement(S1,{...c,"aria-current":O,className:A,ref:u,style:B,to:s,viewTransition:a},typeof l=="function"?l(k):l)});TN.displayName="NavLink";var CN=pe.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:i,state:n,method:s=Jv,action:a,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:p,unstable_defaultShouldRevalidate:f,...d},h)=>{let{unstable_useTransitions:y}=pe.useContext(Wr),b=EN(),m=kN(a,{relative:c}),g=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&xN.test(a);return pe.createElement("form",{ref:h,method:g,action:m,onSubmit:o?l:C=>{if(l&&l(C),C.defaultPrevented)return;C.preventDefault();let w=C.nativeEvent.submitter,k=w?.getAttribute("formmethod")||s,O=()=>b(w||C.currentTarget,{fetcherKey:t,method:k,navigate:r,replace:i,state:n,relative:c,preventScrollReset:u,viewTransition:p,unstable_defaultShouldRevalidate:f});y&&r!==!1?pe.startTransition(()=>O()):O()},...d,"data-discover":!v&&e==="render"?"true":void 0})});CN.displayName="Form";function wN({getKey:e,storageKey:t,...r}){let o=pe.useContext(gh),{basename:i}=pe.useContext(Wr),n=to(),s=f1();ON({getKey:e,storageKey:t});let a=pe.useMemo(()=>{if(!o||!e)return null;let c=i1(n,s,i,e);return c!==n.key?c:null},[]);if(!o||o.isSpaMode)return null;let l=((c,u)=>{if(!window.history.state||!window.history.state.key){let p=Math.random().toString(32).slice(2);window.history.replaceState({key:p},"")}try{let f=JSON.parse(sessionStorage.getItem(c)||"{}")[u||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch(p){console.error(p),sessionStorage.removeItem(c)}}).toString();return pe.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${YB(JSON.stringify(t||o1))}, ${YB(JSON.stringify(a))})`}})}wN.displayName="ScrollRestoration";function RN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function x1(e){let t=pe.useContext(Il);return yt(t,RN(e)),t}function EK(e){let t=pe.useContext(bp);return yt(t,RN(e)),t}function PN(e,{target:t,replace:r,unstable_mask:o,state:i,preventScrollReset:n,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=_o(),p=to(),f=Sp(e,{relative:s});return pe.useCallback(d=>{if(iK(d,t)){d.preventDefault();let h=r!==void 0?r:vp(p)===vp(f),y=()=>u(e,{replace:h,unstable_mask:o,state:i,preventScrollReset:n,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l});c?pe.startTransition(()=>y()):y()}},[p,u,f,r,o,i,t,e,n,s,a,l,c])}var kK=0,OK=()=>`__${String(++kK)}__`;function EN(){let{router:e}=x1("useSubmit"),{basename:t}=pe.useContext(Wr),r=Xq(),o=e.fetch,i=e.navigate;return pe.useCallback(async(n,s={})=>{let{action:a,method:l,encType:c,formData:u,body:p}=aK(n,t);if(s.navigate===!1){let f=s.fetcherKey||OK();await o(f,r,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:p,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await i(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:p,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[o,i,t,r])}function kN(e,{relative:t}={}){let{basename:r}=pe.useContext(Wr),o=pe.useContext(bi);yt(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),n={...Sp(e||".",{relative:t})},s=to();if(e==null){n.search=s.search;let a=new URLSearchParams(n.search),l=a.getAll("index");if(l.some(u=>u==="")){a.delete("index"),l.filter(p=>p).forEach(p=>a.append("index",p));let u=a.toString();n.search=u?`?${u}`:""}}return(!e||e===".")&&i.route.index&&(n.search=n.search?n.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(n.pathname=n.pathname==="/"?r:mn([r,n.pathname])),vp(n)}var o1="react-router-scroll-positions",Qv={};function i1(e,t,r,o){let i=null;return o&&(r!=="/"?i=o({...e,pathname:yn(e.pathname,r)||e.pathname},t):i=o(e,t)),i==null&&(i=e.key),i}function ON({getKey:e,storageKey:t}={}){let{router:r}=x1("useScrollRestoration"),{restoreScrollPosition:o,preventScrollReset:i}=EK("useScrollRestoration"),{basename:n}=pe.useContext(Wr),s=to(),a=f1(),l=mN();pe.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),MK(pe.useCallback(()=>{if(l.state==="idle"){let c=i1(s,a,n,e);Qv[c]=window.scrollY}try{sessionStorage.setItem(t||o1,JSON.stringify(Qv))}catch(c){jo(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${c}).`)}window.history.scrollRestoration="auto"},[l.state,e,n,s,a,t])),typeof document<"u"&&(pe.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(t||o1);c&&(Qv=JSON.parse(c))}catch{}},[t]),pe.useLayoutEffect(()=>{let c=r?.enableScrollRestoration(Qv,()=>window.scrollY,e?(u,p)=>i1(u,p,n,e):void 0);return()=>c&&c()},[r,n,e]),pe.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}try{if(s.hash){let c=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(c){c.scrollIntoView();return}}}catch{jo(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[s,o,i]))}function MK(e,t){let{capture:r}=t||{};pe.useEffect(()=>{let o=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,o),()=>{window.removeEventListener("pagehide",e,o)}},[e,r])}function MN(e,{relative:t}={}){let r=pe.useContext(a1);yt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=x1("useViewTransitionState"),i=Sp(e,{relative:t});if(!r.isTransitioning)return!1;let n=yn(r.currentLocation.pathname,o)||r.currentLocation.pathname,s=yn(r.nextLocation.pathname,o)||r.nextLocation.pathname;return yh(i.pathname,s)!=null||yh(i.pathname,n)!=null}var AN=_(I(),1),xp=_(R(),1),AK={alignItems:"center",textAlign:"center",py:8};function BN({onInit:e}){let[t,r]=(0,AN.useState)(!1);return(0,xp.jsxs)(Ae,{spacing:2,sx:AK,children:[(0,xp.jsx)(X,{variant:"h6",children:"No backlog in this repo"}),(0,xp.jsx)(X,{color:"text.secondary",children:"Initialize a backlog to start tracking items for this repository."}),(0,xp.jsx)(Re,{variant:"contained",disabled:t,onClick:()=>{r(!0),e()},children:"Initialize backlog in this repo"})]})}var ib=_(I(),1),T1=(0,ib.createContext)({repos:[],selectedCwd:"",setSelectedCwd:()=>{}});function nb(){return(0,ib.useContext)(T1)}function So(){let{selectedCwd:e}=nb();return e||void 0}var NN=_(R(),1);function sb({to:e}){let t=_o();return(0,NN.jsx)(Re,{variant:"text",size:"small",onClick:()=>t(e),sx:{mb:2,textTransform:"none"},children:"\u2190 Back"})}function us(e,t){if(!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}cwd=${encodeURIComponent(t)}`}async function ab(e,t,r){return(await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async function lb(e,t){let r=e?`/api/items?q=${encodeURIComponent(e)}`:"/api/items";return(await fetch(us(r,t))).json()}async function LN(e){return(await(await fetch(us("/api/backlog/exists",e))).json()).exists}async function IN(e){await fetch(us("/api/backlog/init",e),{method:"POST"})}function zN(e,t){return ab(us("/api/items",t),"POST",e)}async function FN(e,t){await fetch(us(`/api/items/${e}`,t),{method:"DELETE"})}async function HN(e,t,r){let o=await fetch(us(`/api/items/${e}/comments/${t}`,r),{method:"DELETE"});if(!o.ok){let i=await o.json().catch(()=>{});throw new Error(i?.error??`Failed to delete comment (${o.status})`)}}function UN(e,t,r){return ab(us(`/api/items/${e}`,r),"PUT",t)}function $N(e,t,r){return ab(us(`/api/items/${e}`,r),"PATCH",{status:t})}function jN(e,t,r,o){return ab(us(`/api/items/${e}/rewind`,o),"POST",{phase:t,reason:r})}async function WN(e,t,r){let o=e.name.trim();if(!o)return;let i={type:e.type,name:o,description:e.description.trim()||void 0,acceptanceCriteria:e.criteria.map(s=>s.trim()).filter(Boolean)};return t?(await UN(t.id,i,r),t.id):(await zN(i,r)).id}function VN(e){return{type:e?.type??"story",name:e?.name??"",description:e?.description??"",ac:e?.acceptanceCriteria??[],title:e?"Edit Item":"Add Item",submitLabel:e?"Save":"Add"}}async function qN(e,t,r,o,i){e.preventDefault();let n=await WN(t,r,o);n!==void 0&&await i(n)}var cb=_(I(),1);var Tp=_(R(),1);function KN({value:e,isFirst:t,onChange:r,onAdd:o,onRemove:i}){return(0,Tp.jsxs)(Ae,{direction:"row",spacing:1,children:[(0,Tp.jsx)(Zt,{fullWidth:!0,size:"small",placeholder:"Criterion",value:e,onChange:n=>r(n.target.value)}),t?(0,Tp.jsx)(Re,{variant:"outlined",onClick:o,sx:{minWidth:40},children:"+"}):(0,Tp.jsx)(Re,{variant:"outlined",color:"error",onClick:i,sx:{minWidth:40},children:"\u2212"})]})}var Cp=_(R(),1);function BK(e){return e.length===0?[{id:0,value:""}]:e.map((t,r)=>({id:r,value:t}))}function GN({initial:e,onChange:t}){let r=(0,cb.useRef)(e.length),[o,i]=(0,cb.useState)(()=>BK(e));function n(c){i(c),t(c.map(u=>u.value))}function s(){r.current+=1,n([...o,{id:r.current,value:""}])}function a(c){n(o.filter(u=>u.id!==c))}function l(c,u){n(o.map(p=>p.id===c?{...p,value:u}:p))}return(0,Cp.jsxs)(de,{sx:{mb:2},children:[(0,Cp.jsx)(X,{variant:"body2",sx:{fontWeight:"medium",mb:.5},children:"Acceptance Criteria"}),(0,Cp.jsx)(Ae,{spacing:1,children:o.map((c,u)=>(0,Cp.jsx)(KN,{value:c.value,isFirst:u===0,onChange:p=>l(c.id,p),onAdd:s,onRemove:()=>a(c.id)},c.id))})]})}function E1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ul=E1();function eL(e){Ul=e}var _h={exec:()=>null};function Xe(e,t=""){let r=typeof e=="string"?e:e.source,o={replace:(i,n)=>{let s=typeof n=="string"?n:n.source;return s=s.replace(ro.caret,"$1"),r=r.replace(i,s),o},getRegex:()=>new RegExp(r,t)};return o}var ro={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},NK=/^(?:[ \t]*(?:\n|$))+/,LK=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,IK=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Sh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,zK=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,k1=/(?:[*+-]|\d{1,9}[.)])/,tL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rL=Xe(tL).replace(/bull/g,k1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),FK=Xe(tL).replace(/bull/g,k1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),O1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,HK=/^[^\n]+/,M1=/(?!\s*\])(?:\\.|[^\[\]\\])+/,UK=Xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",M1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$K=Xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,k1).getRegex(),mb="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",D1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jK=Xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",D1).replace("tag",mb).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oL=Xe(O1).replace("hr",Sh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),WK=Xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oL).getRegex(),A1={blockquote:WK,code:LK,def:UK,fences:IK,heading:zK,hr:Sh,html:jK,lheading:rL,list:$K,newline:NK,paragraph:oL,table:_h,text:HK},YN=Xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Sh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),VK={...A1,lheading:FK,table:YN,paragraph:Xe(O1).replace("hr",Sh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",YN).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex()},qK={...A1,html:Xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",D1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xe(O1).replace("hr",Sh).replace("heading",` *#{1,6} *[^
|
|
148
|
+
Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let u=to(),p;if(t){let b=typeof t=="string"?Ll(t):t;yt(l==="/"||b.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${b.pathname}" was given in the \`location\` prop.`),p=b}else p=u;let f=p.pathname||"/",d=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");d="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let h=n1(e,{pathname:d});r1&&(jo(c||h!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),jo(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let y=Kq(h&&h.map(b=>Object.assign({},b,{params:Object.assign({},s,b.params),pathname:mn([l,o.encodeLocation?o.encodeLocation(b.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:mn([l,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),i,r);return t&&y?ae.createElement(_p.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},y):y}function jq(){let e=yN(),t=rN(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},n={padding:"2px 4px",backgroundColor:o},s=null;return r1&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=ae.createElement(ae.Fragment,null,ae.createElement("p",null,"\u{1F4BF} Hey developer \u{1F44B}"),ae.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",ae.createElement("code",{style:n},"ErrorBoundary")," or"," ",ae.createElement("code",{style:n},"errorElement")," prop on your route."))),ae.createElement(ae.Fragment,null,ae.createElement("h2",null,"Unexpected Application Error!"),ae.createElement("h3",{style:{fontStyle:"italic"}},t),r?ae.createElement("pre",{style:i},r):null,s)}var Wq=ae.createElement(jq,null),hN=class extends ae.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=Uq(e.digest);r&&(e=r)}let t=e!==void 0?ae.createElement(bi.Provider,{value:this.props.routeContext},ae.createElement(l1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?ae.createElement(Vq,{error:e},t):t}};hN.contextType=sN;var JT=new WeakMap;function Vq({children:e,error:t}){let{basename:r}=ae.useContext(Wr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=Hq(t.digest);if(o){let i=JT.get(t);if(i)throw i;let n=iN(o.location,r);if(oN&&!JT.get(t))if(n.isExternal||o.reloadDocument)window.location.href=n.absoluteURL||n.to;else{let s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(n.to,{replace:o.replace}));throw JT.set(t,s),s}return ae.createElement("meta",{httpEquiv:"refresh",content:`0;url=${n.absoluteURL||n.to}`})}}return e}function qq({routeContext:e,match:t,children:r}){let o=ae.useContext(Il);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),ae.createElement(bi.Provider,{value:e},r)}function Kq(e,t=[],r){let o=r?.state;if(e==null){if(!o)return null;if(o.errors)e=o.matches;else if(t.length===0&&!o.initialized&&o.matches.length>0)e=o.matches;else return null}let i=e,n=o?.errors;if(n!=null){let u=i.findIndex(p=>p.route.id&&n?.[p.route.id]!==void 0);yt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(n).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,a=-1;if(r&&o){s=o.renderFallback;for(let u=0;u<i.length;u++){let p=i[u];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(a=u),p.route.id){let{loaderData:f,errors:d}=o,h=p.route.loader&&!f.hasOwnProperty(p.route.id)&&(!d||d[p.route.id]===void 0);if(p.route.lazy||h){r.isStatic&&(s=!0),a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}}let l=r?.onError,c=o&&l?(u,p)=>{l(u,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Bq(o.matches),errorInfo:p})}:void 0;return i.reduceRight((u,p,f)=>{let d,h=!1,y=null,b=null;o&&(d=n&&p.route.id?n[p.route.id]:void 0,y=p.route.errorElement||Wq,s&&(a<0&&f===0?(gN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,b=null):a===f&&(h=!0,b=p.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,f+1)),g=()=>{let v;return d?v=y:h?v=b:p.route.Component?v=ae.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=u,ae.createElement(qq,{match:p,routeContext:{outlet:u,matches:m,isDataRoute:o!=null},children:v})};return o&&(p.route.ErrorBoundary||p.route.errorElement||f===0)?ae.createElement(hN,{location:o.location,revalidation:o.revalidation,component:y,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):g()},null)}function u1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gq(e){let t=ae.useContext(Il);return yt(t,u1(e)),t}function p1(e){let t=ae.useContext(bp);return yt(t,u1(e)),t}function Yq(e){let t=ae.useContext(bi);return yt(t,u1(e)),t}function d1(e){let t=Yq(e),r=t.matches[t.matches.length-1];return yt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Xq(){return d1("useRouteId")}function mN(){return p1("useNavigation").navigation}function f1(){let{matches:e,loaderData:t}=p1("useMatches");return ae.useMemo(()=>e.map(r=>yq(r,t)),[e,t])}function yN(){let e=ae.useContext(l1),t=p1("useRouteError"),r=d1("useRouteError");return e!==void 0?e:t.errors?.[r]}function Zq(){let{router:e}=Gq("useNavigate"),t=d1("useNavigate"),r=ae.useRef(!1);return pN(()=>{r.current=!0}),ae.useCallback(async(i,n={})=>{jo(r.current,uN),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...n}))},[e,t])}var GB={};function gN(e,t,r){!t&&!GB[e]&&(GB[e]=!0,jo(!1,r))}var Qq="useOptimistic",RDe=pt[Qq];var PDe=pt.memo(Jq);function Jq({routes:e,future:t,state:r,isStatic:o,onError:i}){return fN(e,void 0,{state:r,isStatic:o,onError:i,future:t})}function h1({to:e,replace:t,state:r,relative:o}){yt(zl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=pt.useContext(Wr);jo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:n}=pt.useContext(bi),{pathname:s}=to(),a=_o(),l=rb(e,s1(n),s,o==="path"),c=JSON.stringify(l);return pt.useEffect(()=>{a(JSON.parse(c),{replace:t,state:r,relative:o})},[a,c,o,t,r]),null}function Wo(e){yt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function m1({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:i,static:n=!1,unstable_useTransitions:s}){yt(!zl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=pt.useMemo(()=>({basename:a,navigator:i,static:n,unstable_useTransitions:s,future:{}}),[a,i,n,s]);typeof r=="string"&&(r=Ll(r));let{pathname:c="/",search:u="",hash:p="",state:f=null,key:d="default",unstable_mask:h}=r,y=pt.useMemo(()=>{let b=yn(c,a);return b==null?null:{location:{pathname:b,search:u,hash:p,state:f,key:d,unstable_mask:h},navigationType:o}},[a,c,u,p,f,d,o,h]);return jo(y!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:pt.createElement(Wr.Provider,{value:l},pt.createElement(_p.Provider,{children:t,value:y}))}function Fl({children:e,location:t}){return dN(tb(e),t)}function tb(e,t=[]){let r=[];return pt.Children.forEach(e,(o,i)=>{if(!pt.isValidElement(o))return;let n=[...t,i];if(o.type===pt.Fragment){r.push.apply(r,tb(o.props.children,n));return}yt(o.type===Wo,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let s={id:o.props.id||n.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(s.children=tb(o.props.children,n)),r.push(s)}),r}var Jv="get",eb="application/x-www-form-urlencoded";function ob(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function eK(e){return ob(e)&&e.tagName.toLowerCase()==="button"}function tK(e){return ob(e)&&e.tagName.toLowerCase()==="form"}function rK(e){return ob(e)&&e.tagName.toLowerCase()==="input"}function oK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iK(e,t){return e.button===0&&(!t||t==="_self")&&!oK(e)}var Zv=null;function nK(){if(Zv===null)try{new FormData(document.createElement("form"),0),Zv=!1}catch{Zv=!0}return Zv}var sK=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function e1(e){return e!=null&&!sK.has(e)?(jo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${eb}"`),null):e}function aK(e,t){let r,o,i,n,s;if(tK(e)){let a=e.getAttribute("action");o=a?yn(a,t):null,r=e.getAttribute("method")||Jv,i=e1(e.getAttribute("enctype"))||eb,n=new FormData(e)}else if(eK(e)||rK(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(o=l?yn(l,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Jv,i=e1(e.getAttribute("formenctype"))||e1(a.getAttribute("enctype"))||eb,n=new FormData(a,e),!nK()){let{name:c,type:u,value:p}=e;if(u==="image"){let f=c?`${c}.`:"";n.append(`${f}x`,"0"),n.append(`${f}y`,"0")}else c&&n.append(c,p)}}else{if(ob(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Jv,o=null,i=eb,s=e}return n&&i==="text/plain"&&(s=n,n=void 0),{action:o,method:r.toLowerCase(),encType:i,formData:n,body:s}}var EDe=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lK={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},cK=/[&><\u2028\u2029]/g;function YB(e){return e.replace(cK,t=>lK[t])}function g1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vN(e,t,r,o){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${o}`:i.pathname=`${i.pathname}.${o}`:i.pathname==="/"?i.pathname=`_root.${o}`:t&&yn(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${o}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${o}`,i}async function uK(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){if(console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode&&DK.hot)throw r;return window.location.reload(),new Promise(()=>{})}}function pK(e){return e!=null&&typeof e.page=="string"}function dK(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function fK(e,t,r){let o=await Promise.all(e.map(async i=>{let n=t.routes[i.route.id];if(n){let s=await uK(n,r);return s.links?s.links():[]}return[]}));return gK(o.flat(1).filter(dK).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function XB(e,t,r,o,i,n){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,a=(l,c)=>r[c].pathname!==l.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==l.params["*"];return n==="assets"?t.filter((l,c)=>s(l,c)||a(l,c)):n==="data"?t.filter((l,c)=>{let u=o.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(s(l,c)||a(l,c))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function hK(e,t,{includeHydrateFallback:r}={}){return mK(e.map(o=>{let i=t.routes[o.route.id];if(!i)return[];let n=[i.module];return i.clientActionModule&&(n=n.concat(i.clientActionModule)),i.clientLoaderModule&&(n=n.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(n=n.concat(i.hydrateFallbackModule)),i.imports&&(n=n.concat(i.imports)),n}).flat(1))}function mK(e){return[...new Set(e)]}function yK(e){let t={},r=Object.keys(e).sort();for(let o of r)t[o]=e[o];return t}function gK(e,t){let r=new Set,o=new Set(t);return e.reduce((i,n)=>{if(t&&!pK(n)&&n.as==="script"&&n.href&&o.has(n.href))return i;let a=JSON.stringify(yK(n));return r.has(a)||(r.add(a),i.push({key:a,link:n})),i},[])}function v1(){let e=Ne.useContext(Il);return g1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function SK(){let e=Ne.useContext(bp);return g1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var gh=Ne.createContext(void 0);gh.displayName="FrameworkContext";function b1(){let e=Ne.useContext(gh);return g1(e,"You must render this element inside a <HydratedRouter> element"),e}function xK(e,t){let r=Ne.useContext(gh),[o,i]=Ne.useState(!1),[n,s]=Ne.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:p}=t,f=Ne.useRef(null);Ne.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=m=>{m.forEach(g=>{s(g.isIntersecting)})},b=new IntersectionObserver(y,{threshold:.5});return f.current&&b.observe(f.current),()=>{b.disconnect()}}},[e]),Ne.useEffect(()=>{if(o){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[o]);let d=()=>{i(!0)},h=()=>{i(!1),s(!1)};return r?e!=="intent"?[n,f,{}]:[n,f,{onFocus:mh(a,d),onBlur:mh(l,h),onMouseEnter:mh(c,d),onMouseLeave:mh(u,h),onTouchStart:mh(p,d)}]:[!1,f,{}]}function mh(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function _N({page:e,...t}){let r=Lq(),{router:o}=v1(),i=Ne.useMemo(()=>n1(o.routes,e,o.basename),[o.routes,e,o.basename]);return i?r?Ne.createElement(CK,{page:e,matches:i,...t}):Ne.createElement(wK,{page:e,matches:i,...t}):null}function TK(e){let{manifest:t,routeModules:r}=b1(),[o,i]=Ne.useState([]);return Ne.useEffect(()=>{let n=!1;return fK(e,t,r).then(s=>{n||i(s)}),()=>{n=!0}},[e,t,r]),o}function CK({page:e,matches:t,...r}){let o=to(),{future:i}=b1(),{basename:n}=v1(),s=Ne.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let a=vN(e,n,i.unstable_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let u of t)typeof u.route.shouldRevalidate=="function"?l=!0:c.push(u.route.id);return l&&c.length>0&&a.searchParams.set("_routes",c.join(",")),[a.pathname+a.search]},[n,i.unstable_trailingSlashAwareDataRequests,e,o,t]);return Ne.createElement(Ne.Fragment,null,s.map(a=>Ne.createElement("link",{key:a,rel:"prefetch",as:"fetch",href:a,...r})))}function wK({page:e,matches:t,...r}){let o=to(),{future:i,manifest:n,routeModules:s}=b1(),{basename:a}=v1(),{loaderData:l,matches:c}=SK(),u=Ne.useMemo(()=>XB(e,t,c,n,o,"data"),[e,t,c,n,o]),p=Ne.useMemo(()=>XB(e,t,c,n,o,"assets"),[e,t,c,n,o]),f=Ne.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let y=new Set,b=!1;if(t.forEach(g=>{let v=n.routes[g.route.id];!v||!v.hasLoader||(!u.some(S=>S.route.id===g.route.id)&&g.route.id in l&&s[g.route.id]?.shouldRevalidate||v.hasClientLoader?b=!0:y.add(g.route.id))}),y.size===0)return[];let m=vN(e,a,i.unstable_trailingSlashAwareDataRequests,"data");return b&&y.size>0&&m.searchParams.set("_routes",t.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[m.pathname+m.search]},[a,i.unstable_trailingSlashAwareDataRequests,l,o,n,u,t,e,s]),d=Ne.useMemo(()=>hK(p,n),[p,n]),h=TK(p);return Ne.createElement(Ne.Fragment,null,f.map(y=>Ne.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),d.map(y=>Ne.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),h.map(({key:y,link:b})=>Ne.createElement("link",{key:y,nonce:r.nonce,...b,crossOrigin:b.crossOrigin??r.crossOrigin})))}function RK(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var PK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{PK&&(window.__reactRouterVersion="7.14.0")}catch{}function _1({basename:e,children:t,unstable_useTransitions:r,window:o}){let i=pe.useRef();i.current==null&&(i.current=ZB({window:o,v5Compat:!0}));let n=i.current,[s,a]=pe.useState({action:n.action,location:n.location}),l=pe.useCallback(c=>{r===!1?a(c):pe.startTransition(()=>a(c))},[r]);return pe.useLayoutEffect(()=>n.listen(l),[n,l]),pe.createElement(m1,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:n,unstable_useTransitions:r})}function SN({basename:e,children:t,history:r,unstable_useTransitions:o}){let[i,n]=pe.useState({action:r.action,location:r.location}),s=pe.useCallback(a=>{o===!1?n(a):pe.startTransition(()=>n(a))},[o]);return pe.useLayoutEffect(()=>r.listen(s),[r,s]),pe.createElement(m1,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:r,unstable_useTransitions:o})}SN.displayName="unstable_HistoryRouter";var xN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,S1=pe.forwardRef(function({onClick:t,discover:r="render",prefetch:o="none",relative:i,reloadDocument:n,replace:s,unstable_mask:a,state:l,target:c,to:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:d,...h},y){let{basename:b,navigator:m,unstable_useTransitions:g}=pe.useContext(Wr),v=typeof u=="string"&&xN.test(u),S=iN(u,b);u=S.to;let C=cN(u,{relative:i}),w=to(),k=null;if(a){let E=rb(a,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);b!=="/"&&(E.pathname=E.pathname==="/"?b:mn([b,E.pathname])),k=m.createHref(E)}let[O,A,B]=xK(o,h),M=PN(u,{replace:s,unstable_mask:a,state:l,target:c,preventScrollReset:p,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:g});function x(E){t&&t(E),E.defaultPrevented||M(E)}let P=!(S.isExternal||n),T=pe.createElement("a",{...h,...B,href:(P?k:void 0)||S.absoluteURL||C,onClick:P?x:t,ref:RK(y,A),target:c,"data-discover":!v&&r==="render"?"true":void 0});return O&&!v?pe.createElement(pe.Fragment,null,T,pe.createElement(_N,{page:C})):T});S1.displayName="Link";var TN=pe.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:o="",end:i=!1,style:n,to:s,viewTransition:a,children:l,...c},u){let p=Sp(s,{relative:c.relative}),f=to(),d=pe.useContext(bp),{navigator:h,basename:y}=pe.useContext(Wr),b=d!=null&&MN(p)&&a===!0,m=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,g=f.pathname,v=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;r||(g=g.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase()),v&&y&&(v=yn(v,y)||v);let S=m!=="/"&&m.endsWith("/")?m.length-1:m.length,C=g===m||!i&&g.startsWith(m)&&g.charAt(S)==="/",w=v!=null&&(v===m||!i&&v.startsWith(m)&&v.charAt(m.length)==="/"),k={isActive:C,isPending:w,isTransitioning:b},O=C?t:void 0,A;typeof o=="function"?A=o(k):A=[o,C?"active":null,w?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof n=="function"?n(k):n;return pe.createElement(S1,{...c,"aria-current":O,className:A,ref:u,style:B,to:s,viewTransition:a},typeof l=="function"?l(k):l)});TN.displayName="NavLink";var CN=pe.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:i,state:n,method:s=Jv,action:a,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:p,unstable_defaultShouldRevalidate:f,...d},h)=>{let{unstable_useTransitions:y}=pe.useContext(Wr),b=EN(),m=kN(a,{relative:c}),g=s.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&xN.test(a);return pe.createElement("form",{ref:h,method:g,action:m,onSubmit:o?l:C=>{if(l&&l(C),C.defaultPrevented)return;C.preventDefault();let w=C.nativeEvent.submitter,k=w?.getAttribute("formmethod")||s,O=()=>b(w||C.currentTarget,{fetcherKey:t,method:k,navigate:r,replace:i,state:n,relative:c,preventScrollReset:u,viewTransition:p,unstable_defaultShouldRevalidate:f});y&&r!==!1?pe.startTransition(()=>O()):O()},...d,"data-discover":!v&&e==="render"?"true":void 0})});CN.displayName="Form";function wN({getKey:e,storageKey:t,...r}){let o=pe.useContext(gh),{basename:i}=pe.useContext(Wr),n=to(),s=f1();ON({getKey:e,storageKey:t});let a=pe.useMemo(()=>{if(!o||!e)return null;let c=i1(n,s,i,e);return c!==n.key?c:null},[]);if(!o||o.isSpaMode)return null;let l=((c,u)=>{if(!window.history.state||!window.history.state.key){let p=Math.random().toString(32).slice(2);window.history.replaceState({key:p},"")}try{let f=JSON.parse(sessionStorage.getItem(c)||"{}")[u||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch(p){console.error(p),sessionStorage.removeItem(c)}}).toString();return pe.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${YB(JSON.stringify(t||o1))}, ${YB(JSON.stringify(a))})`}})}wN.displayName="ScrollRestoration";function RN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function x1(e){let t=pe.useContext(Il);return yt(t,RN(e)),t}function EK(e){let t=pe.useContext(bp);return yt(t,RN(e)),t}function PN(e,{target:t,replace:r,unstable_mask:o,state:i,preventScrollReset:n,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=_o(),p=to(),f=Sp(e,{relative:s});return pe.useCallback(d=>{if(iK(d,t)){d.preventDefault();let h=r!==void 0?r:vp(p)===vp(f),y=()=>u(e,{replace:h,unstable_mask:o,state:i,preventScrollReset:n,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:l});c?pe.startTransition(()=>y()):y()}},[p,u,f,r,o,i,t,e,n,s,a,l,c])}var kK=0,OK=()=>`__${String(++kK)}__`;function EN(){let{router:e}=x1("useSubmit"),{basename:t}=pe.useContext(Wr),r=Xq(),o=e.fetch,i=e.navigate;return pe.useCallback(async(n,s={})=>{let{action:a,method:l,encType:c,formData:u,body:p}=aK(n,t);if(s.navigate===!1){let f=s.fetcherKey||OK();await o(f,r,s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:p,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await i(s.action||a,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:u,body:p,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[o,i,t,r])}function kN(e,{relative:t}={}){let{basename:r}=pe.useContext(Wr),o=pe.useContext(bi);yt(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),n={...Sp(e||".",{relative:t})},s=to();if(e==null){n.search=s.search;let a=new URLSearchParams(n.search),l=a.getAll("index");if(l.some(u=>u==="")){a.delete("index"),l.filter(p=>p).forEach(p=>a.append("index",p));let u=a.toString();n.search=u?`?${u}`:""}}return(!e||e===".")&&i.route.index&&(n.search=n.search?n.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(n.pathname=n.pathname==="/"?r:mn([r,n.pathname])),vp(n)}var o1="react-router-scroll-positions",Qv={};function i1(e,t,r,o){let i=null;return o&&(r!=="/"?i=o({...e,pathname:yn(e.pathname,r)||e.pathname},t):i=o(e,t)),i==null&&(i=e.key),i}function ON({getKey:e,storageKey:t}={}){let{router:r}=x1("useScrollRestoration"),{restoreScrollPosition:o,preventScrollReset:i}=EK("useScrollRestoration"),{basename:n}=pe.useContext(Wr),s=to(),a=f1(),l=mN();pe.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),MK(pe.useCallback(()=>{if(l.state==="idle"){let c=i1(s,a,n,e);Qv[c]=window.scrollY}try{sessionStorage.setItem(t||o1,JSON.stringify(Qv))}catch(c){jo(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${c}).`)}window.history.scrollRestoration="auto"},[l.state,e,n,s,a,t])),typeof document<"u"&&(pe.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(t||o1);c&&(Qv=JSON.parse(c))}catch{}},[t]),pe.useLayoutEffect(()=>{let c=r?.enableScrollRestoration(Qv,()=>window.scrollY,e?(u,p)=>i1(u,p,n,e):void 0);return()=>c&&c()},[r,n,e]),pe.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}try{if(s.hash){let c=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(c){c.scrollIntoView();return}}}catch{jo(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[s,o,i]))}function MK(e,t){let{capture:r}=t||{};pe.useEffect(()=>{let o=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,o),()=>{window.removeEventListener("pagehide",e,o)}},[e,r])}function MN(e,{relative:t}={}){let r=pe.useContext(a1);yt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=x1("useViewTransitionState"),i=Sp(e,{relative:t});if(!r.isTransitioning)return!1;let n=yn(r.currentLocation.pathname,o)||r.currentLocation.pathname,s=yn(r.nextLocation.pathname,o)||r.nextLocation.pathname;return yh(i.pathname,s)!=null||yh(i.pathname,n)!=null}var AN=_(I(),1),xp=_(R(),1),AK={alignItems:"center",textAlign:"center",py:8};function BN({onInit:e}){let[t,r]=(0,AN.useState)(!1);return(0,xp.jsxs)(Ae,{spacing:2,sx:AK,children:[(0,xp.jsx)(X,{variant:"h6",children:"No backlog in this repo"}),(0,xp.jsx)(X,{color:"text.secondary",children:"Initialize a backlog to start tracking items for this repository."}),(0,xp.jsx)(Re,{variant:"contained",disabled:t,onClick:()=>{r(!0),e()},children:"Initialize backlog in this repo"})]})}var ib=_(I(),1),T1=(0,ib.createContext)({repos:[],selectedCwd:"",setSelectedCwd:()=>{}});function nb(){return(0,ib.useContext)(T1)}function So(){let{selectedCwd:e}=nb();return e||void 0}var NN=_(R(),1);function sb({to:e}){let t=_o();return(0,NN.jsx)(Re,{variant:"text",size:"small",onClick:()=>t(e),sx:{mb:2,textTransform:"none"},children:"\u2190 Back"})}function us(e,t){if(!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}cwd=${encodeURIComponent(t)}`}async function ab(e,t,r){return(await fetch(e,{method:t,headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async function lb(e,t){let r=e?`/api/items?q=${encodeURIComponent(e)}`:"/api/items";return(await fetch(us(r,t))).json()}async function LN(e){return(await(await fetch(us("/api/backlog/exists",e))).json()).exists}async function IN(e){await fetch(us("/api/backlog/init",e),{method:"POST"})}function zN(e,t){return ab(us("/api/items",t),"POST",e)}async function FN(e,t){await fetch(us(`/api/items/${e}`,t),{method:"DELETE"})}async function HN(e,t,r){let o=await fetch(us(`/api/items/${e}/comments/${t}`,r),{method:"DELETE"});if(!o.ok){let i=await o.json().catch(()=>{});throw new Error(i?.error??`Failed to delete comment (${o.status})`)}}function UN(e,t,r){return ab(us(`/api/items/${e}`,r),"PUT",t)}function $N(e,t,r){return ab(us(`/api/items/${e}`,r),"PATCH",{status:t})}function jN(e,t,r,o){return ab(us(`/api/items/${e}/rewind`,o),"POST",{phase:t,reason:r})}async function WN(e,t,r){let o=e.name.trim();if(!o)return;let i={type:e.type,name:o,description:e.description.trim()||void 0,acceptanceCriteria:e.criteria.map(s=>s.trim()).filter(Boolean)};return t?(await UN(t.id,i,r),t.id):(await zN(i,r)).id}function VN(e){return{type:e?.type??"story",name:e?.name??"",description:e?.description??"",ac:e?.acceptanceCriteria??[],title:e?"Edit Item":"Add Item",submitLabel:e?"Save":"Add"}}async function qN(e,t,r,o,i){e.preventDefault();let n=await WN(t,r,o);n!==void 0&&await i(n)}var cb=_(I(),1);var Tp=_(R(),1);function KN({value:e,isFirst:t,onChange:r,onAdd:o,onRemove:i}){return(0,Tp.jsxs)(Ae,{direction:"row",spacing:1,children:[(0,Tp.jsx)(Zt,{fullWidth:!0,size:"small",placeholder:"Criterion",value:e,onChange:n=>r(n.target.value)}),t?(0,Tp.jsx)(Re,{variant:"outlined",onClick:o,sx:{minWidth:40},children:"+"}):(0,Tp.jsx)(Re,{variant:"outlined",color:"error",onClick:i,sx:{minWidth:40},children:"\u2212"})]})}var Cp=_(R(),1);function BK(e){return e.length===0?[{id:0,value:""}]:e.map((t,r)=>({id:r,value:t}))}function GN({initial:e,onChange:t}){let r=(0,cb.useRef)(e.length),[o,i]=(0,cb.useState)(()=>BK(e));function n(c){i(c),t(c.map(u=>u.value))}function s(){r.current+=1,n([...o,{id:r.current,value:""}])}function a(c){n(o.filter(u=>u.id!==c))}function l(c,u){n(o.map(p=>p.id===c?{...p,value:u}:p))}return(0,Cp.jsxs)(de,{sx:{mb:2},children:[(0,Cp.jsx)(X,{variant:"body2",sx:{fontWeight:"medium",mb:.5},children:"Acceptance Criteria"}),(0,Cp.jsx)(Ae,{spacing:1,children:o.map((c,u)=>(0,Cp.jsx)(KN,{value:c.value,isFirst:u===0,onChange:p=>l(c.id,p),onAdd:s,onRemove:()=>a(c.id)},c.id))})]})}function E1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ul=E1();function eL(e){Ul=e}var _h={exec:()=>null};function Xe(e,t=""){let r=typeof e=="string"?e:e.source,o={replace:(i,n)=>{let s=typeof n=="string"?n:n.source;return s=s.replace(ro.caret,"$1"),r=r.replace(i,s),o},getRegex:()=>new RegExp(r,t)};return o}var ro={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},NK=/^(?:[ \t]*(?:\n|$))+/,LK=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,IK=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Sh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,zK=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,k1=/(?:[*+-]|\d{1,9}[.)])/,tL=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rL=Xe(tL).replace(/bull/g,k1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),FK=Xe(tL).replace(/bull/g,k1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),O1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,HK=/^[^\n]+/,M1=/(?!\s*\])(?:\\.|[^\[\]\\])+/,UK=Xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",M1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$K=Xe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,k1).getRegex(),mb="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",D1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,jK=Xe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",D1).replace("tag",mb).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),oL=Xe(O1).replace("hr",Sh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),WK=Xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",oL).getRegex(),A1={blockquote:WK,code:LK,def:UK,fences:IK,heading:zK,hr:Sh,html:jK,lheading:rL,list:$K,newline:NK,paragraph:oL,table:_h,text:HK},YN=Xe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Sh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),VK={...A1,lheading:FK,table:YN,paragraph:Xe(O1).replace("hr",Sh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",YN).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex()},qK={...A1,html:Xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",D1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xe(O1).replace("hr",Sh).replace("heading",` *#{1,6} *[^
|
|
149
149
|
]`).replace("lheading",rL).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},KK=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,GK=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,iL=/^( {2,}|\\)\n(?!\s*$)/,YK=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yb=/[\p{P}\p{S}]/u,B1=/[\s\p{P}\p{S}]/u,nL=/[^\s\p{P}\p{S}]/u,XK=Xe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,B1).getRegex(),sL=/(?!~)[\p{P}\p{S}]/u,ZK=/(?!~)[\s\p{P}\p{S}]/u,QK=/(?:[^\s\p{P}\p{S}]|~)/u,JK=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,aL=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,eG=Xe(aL,"u").replace(/punct/g,yb).getRegex(),tG=Xe(aL,"u").replace(/punct/g,sL).getRegex(),lL="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rG=Xe(lL,"gu").replace(/notPunctSpace/g,nL).replace(/punctSpace/g,B1).replace(/punct/g,yb).getRegex(),oG=Xe(lL,"gu").replace(/notPunctSpace/g,QK).replace(/punctSpace/g,ZK).replace(/punct/g,sL).getRegex(),iG=Xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,nL).replace(/punctSpace/g,B1).replace(/punct/g,yb).getRegex(),nG=Xe(/\\(punct)/,"gu").replace(/punct/g,yb).getRegex(),sG=Xe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),aG=Xe(D1).replace("(?:-->|$)","-->").getRegex(),lG=Xe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",aG).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),db=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,cG=Xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",db).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cL=Xe(/^!?\[(label)\]\[(ref)\]/).replace("label",db).replace("ref",M1).getRegex(),uL=Xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",M1).getRegex(),uG=Xe("reflink|nolink(?!\\()","g").replace("reflink",cL).replace("nolink",uL).getRegex(),N1={_backpedal:_h,anyPunctuation:nG,autolink:sG,blockSkip:JK,br:iL,code:GK,del:_h,emStrongLDelim:eG,emStrongRDelimAst:rG,emStrongRDelimUnd:iG,escape:KK,link:cG,nolink:uL,punctuation:XK,reflink:cL,reflinkSearch:uG,tag:lG,text:YK,url:_h},pG={...N1,link:Xe(/^!?\[(label)\]\((.*?)\)/).replace("label",db).getRegex(),reflink:Xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",db).getRegex()},w1={...N1,emStrongRDelimAst:oG,emStrongLDelim:tG,url:Xe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},dG={...w1,br:Xe(iL).replace("{2,}","*").getRegex(),text:Xe(w1.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ub={normal:A1,gfm:VK,pedantic:qK},vh={normal:N1,gfm:w1,breaks:dG,pedantic:pG},fG={"&":"&","<":"<",">":">",'"':""","'":"'"},XN=e=>fG[e];function gn(e,t){if(t){if(ro.escapeTest.test(e))return e.replace(ro.escapeReplace,XN)}else if(ro.escapeTestNoEncode.test(e))return e.replace(ro.escapeReplaceNoEncode,XN);return e}function ZN(e){try{e=encodeURI(e).replace(ro.percentDecode,"%")}catch{return null}return e}function QN(e,t){let r=e.replace(ro.findPipe,(n,s,a)=>{let l=!1,c=s;for(;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),o=r.split(ro.splitPipe),i=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(ro.slashPipe,"|");return o}function bh(e,t,r){let o=e.length;if(o===0)return"";let i=0;for(;i<o;){let n=e.charAt(o-i-1);if(n===t&&!r)i++;else if(n!==t&&r)i++;else break}return e.slice(0,o-i)}function hG(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let o=0;o<e.length;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return r>0?-2:-1}function JN(e,t,r,o,i){let n=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");o.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:n,title:s,text:a,tokens:o.inlineTokens(a)};return o.state.inLink=!1,l}function mG(e,t,r){let o=e.match(r.other.indentCodeCompensation);if(o===null)return t;let i=o[1];return t.split(`
|
|
150
150
|
`).map(n=>{let s=n.match(r.other.beginningSpace);if(s===null)return n;let[a]=s;return a.length>=i.length?n.slice(i.length):n}).join(`
|
|
151
151
|
`)}var fb=class{constructor(e){Fe(this,"options");Fe(this,"rules");Fe(this,"lexer");this.options=e||Ul}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:bh(r,`
|
|
@@ -200,13 +200,13 @@ ${e}</tr>
|
|
|
200
200
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
201
201
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${gn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let o=this.parser.parseInline(r),i=ZN(e);if(i===null)return o;e=i;let n='<a href="'+e+'"';return t&&(n+=' title="'+gn(t)+'"'),n+=">"+o+"</a>",n}image({href:e,title:t,text:r,tokens:o}){o&&(r=this.parser.parseInline(o,this.parser.textRenderer));let i=ZN(e);if(i===null)return gn(r);e=i;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${gn(t)}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:gn(e.text)}},L1=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},ds=class P1{constructor(t){Fe(this,"options");Fe(this,"renderer");Fe(this,"textRenderer");this.options=t||Ul,this.options.renderer=this.options.renderer||new hb,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new L1}static parse(t,r){return new P1(r).parse(t)}static parseInline(t,r){return new P1(r).parseInline(t)}parse(t,r=!0){let o="";for(let i=0;i<t.length;i++){let n=t[i];if(this.options.extensions?.renderers?.[n.type]){let a=n,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){o+=l||"";continue}}let s=n;switch(s.type){case"space":{o+=this.renderer.space(s);continue}case"hr":{o+=this.renderer.hr(s);continue}case"heading":{o+=this.renderer.heading(s);continue}case"code":{o+=this.renderer.code(s);continue}case"table":{o+=this.renderer.table(s);continue}case"blockquote":{o+=this.renderer.blockquote(s);continue}case"list":{o+=this.renderer.list(s);continue}case"html":{o+=this.renderer.html(s);continue}case"paragraph":{o+=this.renderer.paragraph(s);continue}case"text":{let a=s,l=this.renderer.text(a);for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],l+=`
|
|
202
202
|
`+this.renderer.text(a);r?o+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):o+=l;continue}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return o}parseInline(t,r=this.renderer){let o="";for(let i=0;i<t.length;i++){let n=t[i];if(this.options.extensions?.renderers?.[n.type]){let a=this.options.extensions.renderers[n.type].call({parser:this},n);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){o+=a||"";continue}}let s=n;switch(s.type){case"escape":{o+=r.text(s);break}case"html":{o+=r.html(s);break}case"link":{o+=r.link(s);break}case"image":{o+=r.image(s);break}case"strong":{o+=r.strong(s);break}case"em":{o+=r.em(s);break}case"codespan":{o+=r.codespan(s);break}case"br":{o+=r.br(s);break}case"del":{o+=r.del(s);break}case"text":{o+=r.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return o}},C1,pb=(C1=class{constructor(e){Fe(this,"options");Fe(this,"block");this.options=e||Ul}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ps.lex:ps.lexInline}provideParser(){return this.block?ds.parse:ds.parseInline}},Fe(C1,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),C1),yG=class{constructor(...e){Fe(this,"defaults",E1());Fe(this,"options",this.setOptions);Fe(this,"parse",this.parseMarkdown(!0));Fe(this,"parseInline",this.parseMarkdown(!1));Fe(this,"Parser",ds);Fe(this,"Renderer",hb);Fe(this,"TextRenderer",L1);Fe(this,"Lexer",ps);Fe(this,"Tokenizer",fb);Fe(this,"Hooks",pb);this.use(...e)}walkTokens(e,t){let r=[];for(let o of e)switch(r=r.concat(t.call(this,o)),o.type){case"table":{let i=o;for(let n of i.header)r=r.concat(this.walkTokens(n.tokens,t));for(let n of i.rows)for(let s of n)r=r.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=o;r=r.concat(this.walkTokens(i.items,t));break}default:{let i=o;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(n=>{let s=i[n].flat(1/0);r=r.concat(this.walkTokens(s,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let n=t.renderers[i.name];n?t.renderers[i.name]=function(...s){let a=i.renderer.apply(this,s);return a===!1&&(a=n.apply(this,s)),a}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let n=t[i.level];n?n.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),o.extensions=t),r.renderer){let i=this.defaults.renderer||new hb(this.defaults);for(let n in r.renderer){if(!(n in i))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let s=n,a=r.renderer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u||""}}o.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new fb(this.defaults);for(let n in r.tokenizer){if(!(n in i))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let s=n,a=r.tokenizer[s],l=i[s];i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}o.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new pb;for(let n in r.hooks){if(!(n in i))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let s=n,a=r.hooks[s],l=i[s];pb.passThroughHooks.has(n)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(a.call(i,c)).then(p=>l.call(i,p));let u=a.call(i,c);return l.call(i,u)}:i[s]=(...c)=>{let u=a.apply(i,c);return u===!1&&(u=l.apply(i,c)),u}}o.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,n=r.walkTokens;o.walkTokens=function(s){let a=[];return a.push(n.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}this.defaults={...this.defaults,...o}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ps.lex(e,t??this.defaults)}parser(e,t){return ds.parse(e,t??this.defaults)}parseMarkdown(e){return(r,o)=>{let i={...o},n={...this.defaults,...i},s=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));n.hooks&&(n.hooks.options=n,n.hooks.block=e);let a=n.hooks?n.hooks.provideLexer():e?ps.lex:ps.lexInline,l=n.hooks?n.hooks.provideParser():e?ds.parse:ds.parseInline;if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(c=>a(c,n)).then(c=>n.hooks?n.hooks.processAllTokens(c):c).then(c=>n.walkTokens?Promise.all(this.walkTokens(c,n.walkTokens)).then(()=>c):c).then(c=>l(c,n)).then(c=>n.hooks?n.hooks.postprocess(c):c).catch(s);try{n.hooks&&(r=n.hooks.preprocess(r));let c=a(r,n);n.hooks&&(c=n.hooks.processAllTokens(c)),n.walkTokens&&this.walkTokens(c,n.walkTokens);let u=l(c,n);return n.hooks&&(u=n.hooks.postprocess(u)),u}catch(c){return s(c)}}}onError(e,t){return r=>{if(r.message+=`
|
|
203
|
-
Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+gn(r.message+"",!0)+"</pre>";return t?Promise.resolve(o):o}if(t)return Promise.reject(r);throw r}}},Hl=new yG;function ke(e,t){return Hl.parse(e,t)}ke.options=ke.setOptions=function(e){return Hl.setOptions(e),ke.defaults=Hl.defaults,eL(ke.defaults),ke};ke.getDefaults=E1;ke.defaults=Ul;ke.use=function(...e){return Hl.use(...e),ke.defaults=Hl.defaults,eL(ke.defaults),ke};ke.walkTokens=function(e,t){return Hl.walkTokens(e,t)};ke.parseInline=Hl.parseInline;ke.Parser=ds;ke.parser=ds.parse;ke.Renderer=hb;ke.TextRenderer=L1;ke.Lexer=ps;ke.lexer=ps.lex;ke.Tokenizer=fb;ke.Hooks=pb;ke.parse=ke;var uBe=ke.options,pBe=ke.setOptions,dBe=ke.use,fBe=ke.walkTokens,hBe=ke.parseInline;var mBe=ds.parse,yBe=ps.lex;var pL=_(I(),1),ga=_(R(),1);function gG({text:e}){return(0,ga.jsx)(de,{sx:t=>({border:1,borderColor:"divider",borderRadius:1,p:1.5,mt:1,minHeight:60,bgcolor:t.palette.mode==="dark"?"grey.900":"grey.50"}),dangerouslySetInnerHTML:{__html:ke.parse(e||"")}})}function dL({value:e,onChange:t}){let[r,o]=(0,pL.useState)(!1);return(0,ga.jsxs)(de,{sx:{mb:2},children:[(0,ga.jsxs)(X,{variant:"body2",sx:{fontWeight:"medium",mb:.5},children:["Description"," ",(0,ga.jsx)(qy,{component:"button",type:"button",variant:"caption",onClick:()=>o(!r),sx:{ml:1},children:"(preview)"})]}),(0,ga.jsx)(Zt,{fullWidth:!0,multiline:!0,minRows:4,size:"small",placeholder:"Markdown supported",value:e,onChange:i=>t(i.target.value)}),r&&(0,ga.jsx)(gG,{text:e})]})}var xh=_(R(),1);function fL({submitLabel:e,onCancel:t}){return(0,xh.jsxs)(Ae,{direction:"row",spacing:1,sx:{mt:2},children:[(0,xh.jsx)(Re,{type:"submit",variant:"contained",children:e}),(0,xh.jsx)(Re,{type:"button",variant:"outlined",onClick:t,children:"Cancel"})]})}var mL=_(R(),1);function hL({value:e,onChange:t}){return(0,mL.jsx)(Zt,{label:"Name",required:!0,fullWidth:!0,size:"small",placeholder:"Item name",value:e,onChange:r=>t(r.target.value),sx:{mb:2}})}var $l=_(R(),1);function yL({value:e,onChange:t}){return(0,$l.jsxs)(fu,{sx:{mb:2},children:[(0,$l.jsx)(gu,{children:"Type"}),(0,$l.jsx)(mg,{row:!0,name:"type",value:e,onChange:r=>t(r.target.value),children:["story","bug"].map(r=>(0,$l.jsx)(yu,{value:r,control:(0,$l.jsx)(hg,{size:"small"}),label:r.charAt(0).toUpperCase()+r.slice(1)},r))})]})}var ji=_(R(),1);function gL({title:e,submitLabel:t,type:r,onTypeChange:o,name:i,onNameChange:n,description:s,onDescriptionChange:a,initialAc:l,onAcChange:c,onCancel:u}){return(0,ji.jsxs)(ji.Fragment,{children:[(0,ji.jsx)(X,{variant:"h6",sx:{mb:2},children:e}),(0,ji.jsx)(yL,{value:r,onChange:o}),(0,ji.jsx)(hL,{value:i,onChange:n}),(0,ji.jsx)(dL,{value:s,onChange:a}),(0,ji.jsx)(GN,{initial:l,onChange:c}),(0,ji.jsx)(fL,{submitLabel:t,onCancel:u})]})}var wp=_(I(),1);function vL(e){let t=VN(e),[r,o]=(0,wp.useState)(t.type),[i,n]=(0,wp.useState)(t.name),[s,a]=(0,wp.useState)(t.description),l=(0,wp.useRef)(t.ac);return{defaults:t,type:r,setType:o,name:i,setName:n,description:s,setDescription:a,setAc(c){l.current=c},fields(){return{type:r,name:i,description:s,criteria:l.current}}}}var va=_(R(),1);function gb({item:e,onReload:t,backTo:r}){let o=_o(),i=So(),n=vL(e);return(0,va.jsxs)(va.Fragment,{children:[(0,va.jsx)(sb,{to:r}),(0,va.jsx)(St,{component:"form",variant:"outlined",sx:{p:3},onSubmit:s=>qN(s,n.fields(),e,i,async a=>{await t(),o(`/backlog/items/${a}`)}),children:(0,va.jsx)(gL,{title:n.defaults.title,submitLabel:n.defaults.submitLabel,type:n.type,onTypeChange:n.setType,name:n.name,onNameChange:n.setName,description:n.description,onDescriptionChange:n.setDescription,initialAc:n.defaults.ac,onAcChange:n.setAc,onCancel:()=>o(r)})})]})}var ba=_(I(),1);function bL(){let e=So(),[t,r]=(0,ba.useState)(""),[o,i]=(0,ba.useState)(null),[n,s]=(0,ba.useState)(!1),a=(0,ba.useRef)(void 0);return(0,ba.useEffect)(()=>{if(a.current!==void 0&&clearTimeout(a.current),!t.trim()){i(null),s(!1);return}return s(!0),a.current=setTimeout(async()=>{i(await lb(t,e)),s(!1)},250),()=>{a.current!==void 0&&clearTimeout(a.current)}},[t,e]),{query:t,setQuery:r,results:o,loading:n}}var _L=_(I(),1),SL="backlog-show-completed",I1=new Set,xL=vG();function vG(){try{return localStorage.getItem(SL)==="true"}catch{return!1}}function bG(e){return I1.add(e),()=>I1.delete(e)}function _G(){return xL}function SG(e){xL=e;try{localStorage.setItem(SL,String(e))}catch{}for(let t of I1)t()}function vb(){return[(0,_L.useSyncExternalStore)(bG,_G),SG]}var z1=_(R(),1);function TL(){let[e,t]=vb();return(0,z1.jsx)(yu,{control:(0,z1.jsx)(vg,{checked:e,onChange:()=>t(!e),size:"small"}),label:"Show completed",slotProps:{typography:{variant:"body2",color:"text.secondary"}}})}var bb={story:"info",bug:"error"},_b={todo:"default","in-progress":"warning",done:"success",wontdo:"error"};var wL=_(R(),1),xG={flexShrink:0,fontWeight:500,fontSize:"0.75rem",height:22};function CL(){return(0,wL.jsx)(ni,{label:"in progress",size:"small",color:_b["in-progress"],sx:xG})}var PL=_(R(),1),TG={todo:"\u25CB","in-progress":"\u25D4",done:"\u25CF",wontdo:"\u2715"},CG={todo:"text.disabled","in-progress":"warning.main",done:"success.main",wontdo:"error.main"};function wG(e){return{fontSize:"1.125rem",flexShrink:0,color:CG[e]}}function RL({status:e}){return(0,PL.jsx)(X,{sx:wG(e),children:TG[e]})}var _a=_(R(),1),EL={display:"flex",alignItems:"center",gap:1.5,width:"100%",textAlign:"left",p:2,mb:1,borderRadius:2,border:1,borderColor:"divider",bgcolor:"background.paper",transition:"box-shadow 0.2s","&:hover":{boxShadow:3}},RG=EL,PG={...EL,borderColor:"warning.main",borderLeft:4,borderLeftColor:"warning.main",bgcolor:e=>Bi(e.palette.warning.main,.08)},EG={color:"text.disabled",flexShrink:0},kG={fontWeight:500,flex:1,textAlign:"left"},OG={flexShrink:0,fontWeight:500,fontSize:"0.75rem",height:22};function kL({item:e,onSelect:t}){let r=e.status==="in-progress";return(0,_a.jsxs)(Bt,{onClick:t,sx:r?PG:RG,children:[(0,_a.jsx)(RL,{status:e.status}),(0,_a.jsx)(ni,{label:e.type,size:"small",color:bb[e.type],sx:OG}),(0,_a.jsxs)(X,{variant:"body2",sx:EG,children:["#",e.id]}),(0,_a.jsx)(X,{sx:kG,children:e.name}),r&&(0,_a.jsx)(CL,{})]})}var fs=_(R(),1),MG={display:"flex",justifyContent:"center",py:6},DG={textAlign:"center",color:"text.disabled",py:6,px:2};function AG({query:e}){let t=e.trim()?"No items match your search.":"No items in the backlog.";return(0,fs.jsx)(de,{sx:DG,children:t})}function OL({loading:e,query:t,items:r,onSelect:o}){return e?(0,fs.jsx)(de,{sx:MG,children:(0,fs.jsx)(Is,{})}):r.length===0?(0,fs.jsx)(AG,{query:t}):(0,fs.jsx)(fs.Fragment,{children:r.map(i=>(0,fs.jsx)(kL,{item:i,onSelect:()=>o(i)},i.id))})}var DL=_(R(),1);function ML({value:e,onChange:t}){return(0,DL.jsx)(Zt,{fullWidth:!0,size:"small",placeholder:"Search backlog\u2026",value:e,onChange:r=>t(r.target.value),sx:{mb:2}})}var Vo=_(R(),1),BG={justifyContent:"space-between",alignItems:"center",mb:3};function NG(e,t){return t?e:e.filter(r=>r.status!=="done"&&r.status!=="wontdo")}var LG={fontWeight:600},IG={alignItems:"center"};function zG({onAdd:e}){return(0,Vo.jsxs)(Ae,{direction:"row",sx:BG,children:[(0,Vo.jsx)(X,{variant:"h5",sx:LG,children:"Backlog"}),(0,Vo.jsxs)(Ae,{direction:"row",spacing:2,sx:IG,children:[(0,Vo.jsx)(TL,{}),(0,Vo.jsx)(Re,{variant:"contained",size:"small",onClick:e,children:"+ Add Item"})]})]})}function AL({items:e,loading:t}){let r=_o(),[o]=vb(),{query:i,setQuery:n,results:s,loading:a}=bL(),l=NG(s??e,o);return(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsx)(zG,{onAdd:()=>r("/backlog/add")}),(0,Vo.jsx)(ML,{value:i,onChange:n}),(0,Vo.jsx)(OL,{loading:t||a,query:i,items:l,onSelect:c=>r(`/backlog/items/${c.id}`)})]})}var BL=_(I(),1);var hs=_(R(),1);function Sb({onConfirm:e,onCancel:t,title:r="Confirm deletion",message:o="Are you sure you want to delete this item?"}){return(0,hs.jsxs)(lu,{open:!0,onClose:t,maxWidth:"xs",fullWidth:!0,children:[(0,hs.jsx)(pu,{children:r}),(0,hs.jsx)(uu,{children:(0,hs.jsx)(Uy,{children:o})}),(0,hs.jsxs)(cu,{children:[(0,hs.jsx)(Re,{onClick:t,children:"Cancel"}),(0,hs.jsx)(Re,{variant:"contained",color:"error",onClick:e,children:"Delete"})]})]})}var jl=_(R(),1);function NL({itemId:e,onDeleted:t}){let r=So(),[o,i]=(0,BL.useState)(!1);return(0,jl.jsxs)(jl.Fragment,{children:[o&&(0,jl.jsx)(Sb,{onConfirm:async()=>{await FN(e,r),await t()},onCancel:()=>i(!1)}),(0,jl.jsx)(Re,{variant:"contained",color:"error",size:"small",onClick:()=>i(!0),children:"Delete"})]})}var Sa=_(R(),1);function LL({criteria:e}){return e.length===0?null:(0,Sa.jsxs)(de,{sx:{mb:2},children:[(0,Sa.jsx)(X,{variant:"overline",sx:{color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"},children:"Acceptance Criteria"}),(0,Sa.jsx)(sn,{disablePadding:!0,children:e.map((t,r)=>(0,Sa.jsxs)(Us,{disableGutters:!0,disablePadding:!0,sx:{py:.5,display:"flex",alignItems:"baseline"},children:[(0,Sa.jsxs)(X,{component:"span",sx:{color:"text.secondary",mr:1},children:[r+1,"."]}),(0,Sa.jsx)(de,{component:"span",className:"markdown",dangerouslySetInnerHTML:{__html:ke.parseInline(t)}})]},t))})]})}var Wl=_(R(),1),FG={alignItems:"center",fontSize:"0.75rem",color:"text.secondary",mb:.5},HG={color:"text.disabled"},UG={fontWeight:500},$G={summary:"Phase summary",comment:"Comment"};function IL({comment:e}){return(0,Wl.jsxs)(Ae,{direction:"row",spacing:.5,sx:FG,children:[e.id!==void 0&&(0,Wl.jsxs)(X,{variant:"caption",sx:HG,children:["#",e.id]}),(0,Wl.jsx)(X,{variant:"caption",sx:UG,children:$G[e.type]}),e.phase!==void 0&&(0,Wl.jsxs)(X,{variant:"caption",children:["\xB7 Phase ",e.phase]}),(0,Wl.jsxs)(X,{variant:"caption",children:["\xB7 ",jG(e.timestamp)]})]})}function jG(e){return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}var zL=_(R(),1),FL=_e((0,zL.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined");var F1=_(I(),1);var vn=_(R(),1),WG={mt:-.5,mr:-.5,color:"text.secondary"};function HL({itemId:e,commentId:t,onDeleted:r}){let o=So(),[i,n]=(0,F1.useState)(!1),[s,a]=(0,F1.useState)(),l=()=>a(void 0);return(0,vn.jsxs)(vn.Fragment,{children:[i&&(0,vn.jsx)(Sb,{message:"Are you sure you want to delete this comment?",onConfirm:async()=>{n(!1);try{await HN(e,t,o),await r()}catch(c){a(c instanceof Error?c.message:"Failed to delete comment")}},onCancel:()=>n(!1)}),(0,vn.jsx)(Ru,{open:s!==void 0,autoHideDuration:6e3,onClose:l,children:(0,vn.jsx)(Qc,{severity:"error",variant:"filled",onClose:l,children:s})}),(0,vn.jsx)(ii,{"aria-label":"Delete comment",size:"small",sx:WG,onClick:()=>n(!0),children:(0,vn.jsx)(FL,{fontSize:"inherit"})})]})}var Vl=_(R(),1),VG={summary:{bgcolor:"warning.light",borderColor:"warning.dark"},comment:{bgcolor:"action.selected",borderColor:"divider"}},qG={justifyContent:"space-between",alignItems:"flex-start"},KG={color:"text.primary",whiteSpace:"pre-wrap"};function GG(e){return{p:1.5,bgcolor:e.bgcolor,borderColor:e.borderColor}}function UL({comment:e,itemId:t,onDeleted:r}){return(0,Vl.jsxs)(St,{variant:"outlined",sx:GG(VG[e.type]),children:[(0,Vl.jsxs)(Ae,{direction:"row",sx:qG,children:[(0,Vl.jsx)(IL,{comment:e}),e.id!==void 0&&t!==void 0&&r&&(0,Vl.jsx)(HL,{itemId:t,commentId:e.id,onDeleted:r})]}),(0,Vl.jsx)(X,{variant:"body2",sx:KG,children:e.text})]})}var Rp=_(R(),1),YG={color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"};function $L({comments:e,itemId:t,onCommentDeleted:r}){return e.length===0?null:(0,Rp.jsxs)(de,{sx:{mb:2},children:[(0,Rp.jsx)(X,{variant:"overline",sx:YG,children:"Comments"}),(0,Rp.jsx)(Ae,{spacing:1,children:e.map((o,i)=>(0,Rp.jsx)(UL,{comment:o,itemId:t,onDeleted:r},`${o.timestamp}-${i}`))})]})}var xb=_(R(),1),jL={todo:{bg:"action.selected",text:"text.primary"},"in-progress":{bg:"warning.main",text:"warning.contrastText"},done:{bg:"success.main",text:"success.contrastText"},wontdo:{bg:"error.main",text:"error.contrastText"}},XG=["todo","in-progress","done","wontdo"];function WL({current:e,onStatusChange:t}){return t?(0,xb.jsx)(Cu,{value:e,onChange:r=>t(r.target.value),size:"small",sx:{fontSize:"0.75rem",fontWeight:500,borderRadius:4,bgcolor:jL[e].bg,color:jL[e].text,"& .MuiSelect-select":{py:.5,px:1.5},"& .MuiSelect-icon":{color:"inherit"}},children:XG.map(r=>(0,xb.jsx)(Un,{value:r,children:r},r))}):(0,xb.jsx)(ni,{label:e,size:"small",color:_b[e],sx:{fontWeight:500,fontSize:"0.75rem"}})}var Pp=_(R(),1),ZG={alignItems:"center",color:"text.disabled",fontSize:"0.875rem",mb:2},QG={fontWeight:500,fontSize:"0.75rem"};function VL({item:e,onStatusChange:t}){let r=bb[e.type];return(0,Pp.jsxs)(Ae,{direction:"row",spacing:1,sx:ZG,children:[(0,Pp.jsxs)(X,{variant:"body2",color:"text.disabled",children:["#",e.id]}),r&&(0,Pp.jsx)(ni,{label:e.type,size:"small",color:r,sx:QG}),(0,Pp.jsx)(WL,{current:e.status,onStatusChange:t})]})}var KL=_(R(),1),JG={lineHeight:1.7,"& p":{mt:0}};function qL({content:e}){return(0,KL.jsx)(de,{className:"markdown",sx:JG,dangerouslySetInnerHTML:{__html:ke.parse(e)}})}var ms=_(R(),1);function GL({checks:e}){return(0,ms.jsxs)(de,{sx:{mt:1,pt:1},children:[(0,ms.jsx)(du,{sx:{mb:1}}),(0,ms.jsx)(X,{variant:"overline",sx:{color:"text.disabled",letterSpacing:"0.08em"},children:"Manual Checks"}),(0,ms.jsx)(sn,{disablePadding:!0,sx:{ml:.5,mt:.5},children:e.map(t=>(0,ms.jsxs)(Us,{disableGutters:!0,disablePadding:!0,sx:{py:.25,display:"flex",alignItems:"baseline"},children:[(0,ms.jsx)(X,{component:"span",sx:{mr:1,fontSize:"0.875rem",color:"text.secondary"},children:"\u2610"}),(0,ms.jsx)(de,{component:"span",className:"markdown",sx:{fontSize:"0.875rem",color:"text.secondary"},dangerouslySetInnerHTML:{__html:ke.parseInline(t)}})]},t))})]})}var ZL=_(I(),1);var YL=_(I(),1),bn=_(R(),1);function XL({phaseName:e,onConfirm:t,onCancel:r}){let[o,i]=(0,YL.useState)("");return(0,bn.jsxs)(lu,{open:!0,onClose:r,maxWidth:"xs",fullWidth:!0,children:[(0,bn.jsxs)(pu,{children:["Rewind to ",e,"?"]}),(0,bn.jsxs)(uu,{children:[(0,bn.jsx)(X,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"This will mark all later phases as incomplete."}),(0,bn.jsx)(Zt,{fullWidth:!0,multiline:!0,rows:3,size:"small",placeholder:"Reason for rewinding...",value:o,onChange:n=>i(n.target.value)})]}),(0,bn.jsxs)(cu,{children:[(0,bn.jsx)(Re,{onClick:r,children:"Cancel"}),(0,bn.jsx)(Re,{variant:"contained",color:"warning",disabled:o.trim().length===0,onClick:()=>t(o.trim()),children:"Rewind"})]})]})}var ql=_(R(),1);function QL({itemId:e,phaseNumber:t,phaseName:r,onRewound:o}){let i=So(),[n,s]=(0,ZL.useState)(!1);return(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsx)(Re,{size:"small",color:"warning",variant:"outlined",onClick:()=>s(!0),sx:{ml:"auto",textTransform:"none",fontSize:"0.75rem"},children:"Rewind"}),n&&(0,ql.jsx)(XL,{phaseName:r,onConfirm:async a=>{await jN(e,t,a,i),await o()},onCancel:()=>s(!1)})]})}var Ep=_(R(),1),eY={done:{label:"Done",color:"success"},current:{label:"In Progress",color:"info"},upcoming:{label:"Upcoming",color:"default"}},tY={alignItems:"center",mb:1},rY={fontWeight:500},oY={fontWeight:500,fontSize:"0.75rem"};function JL({phase:e,index:t,status:r,itemId:o,onRewind:i}){let n=eY[r],s=r==="done"&&o!==void 0&&i;return(0,Ep.jsxs)(Ae,{direction:"row",spacing:1,sx:tY,children:[(0,Ep.jsxs)(X,{sx:rY,children:["Phase ",t+1,": ",e.name]}),(0,Ep.jsx)(ni,{label:n.label,size:"small",color:n.color,sx:oY}),s&&(0,Ep.jsx)(QL,{itemId:o,phaseNumber:t+1,phaseName:e.name,onRewound:i})]})}var kp=_(R(),1);function e5({tasks:e,marker:t}){return(0,kp.jsx)(sn,{disablePadding:!0,sx:{ml:.5},children:e.map(r=>(0,kp.jsxs)(Us,{disableGutters:!0,disablePadding:!0,sx:{py:.25,display:"flex",alignItems:"baseline"},children:[(0,kp.jsx)(X,{component:"span",sx:{color:"text.secondary",mr:1},children:t}),(0,kp.jsx)(de,{component:"span",className:"markdown",dangerouslySetInnerHTML:{__html:ke.parseInline(r.task)}})]},r.task))})}var Op=_(R(),1),iY={done:{borderColor:"success.light",bgcolor:"success.light"},current:{borderColor:"info.main",bgcolor:"info.light",ring:"info.light"},upcoming:{borderColor:"divider",bgcolor:"background.paper"}};function nY(e){return{p:2,borderColor:e.borderColor,bgcolor:e.bgcolor,...e.ring?{boxShadow:"0 0 0 2px",borderColor:"info.main"}:{}}}var sY={done:"\u2713",current:"\u2022",upcoming:"\u2022"};function t5({phase:e,index:t,status:r,itemId:o,onRewind:i}){let n=e.manualChecks??[];return(0,Op.jsxs)(St,{variant:"outlined",sx:nY(iY[r]),children:[(0,Op.jsx)(JL,{phase:e,index:t,status:r,itemId:o,onRewind:i}),(0,Op.jsx)(e5,{tasks:e.tasks,marker:sY[r]}),n.length>0&&(0,Op.jsx)(GL,{checks:n})]})}var Mp=_(R(),1);function aY(e,t){if(t===void 0)return"upcoming";let r=e+1;return r<t?"done":r===t?"current":"upcoming"}function r5({phases:e,currentPhase:t,itemId:r,onRewind:o}){return e.length===0?null:(0,Mp.jsxs)(de,{sx:{mb:2},children:[(0,Mp.jsx)(X,{variant:"overline",sx:{color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"},children:"Plan"}),(0,Mp.jsx)(Ae,{spacing:1.5,children:e.map((i,n)=>(0,Mp.jsx)(t5,{phase:i,index:n,status:aY(n,t),itemId:r,onRewind:o},i.name))})]})}var Wi=_(R(),1),lY={color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"};function o5({item:e,onStatusChange:t,onRewind:r,onCommentDeleted:o}){return(0,Wi.jsxs)(St,{variant:"outlined",sx:{p:3},children:[(0,Wi.jsx)(X,{variant:"h5",component:"h2",children:e.name}),(0,Wi.jsx)(VL,{item:e,onStatusChange:t}),e.description&&(0,Wi.jsxs)(de,{sx:{mb:2},children:[(0,Wi.jsx)(X,{variant:"overline",sx:lY,children:"Description"}),(0,Wi.jsx)(qL,{content:e.description})]}),(0,Wi.jsx)(LL,{criteria:e.acceptanceCriteria}),e.plan&&(0,Wi.jsx)(r5,{phases:e.plan,currentPhase:e.currentPhase,itemId:e.id,onRewind:r}),e.comments&&(0,Wi.jsx)($L,{comments:e.comments,itemId:e.id,onCommentDeleted:o})]})}var _n=_(R(),1),cY={justifyContent:"space-between",alignItems:"center",mb:2};function uY({itemId:e,onDeleted:t}){let r=_o();return(0,_n.jsxs)(Ae,{direction:"row",sx:cY,children:[(0,_n.jsx)(sb,{to:"/backlog"}),(0,_n.jsxs)(Ae,{direction:"row",spacing:1,children:[(0,_n.jsx)(Re,{variant:"contained",color:"inherit",size:"small",onClick:()=>r(`/backlog/items/${e}/edit`),children:"Edit"}),(0,_n.jsx)(NL,{itemId:e,onDeleted:t})]})]})}function i5({item:e,onReload:t}){let r=_o(),o=So(),i=async()=>{await t(),r("/backlog")},n=async s=>{await $N(e.id,s,o),await t()};return(0,_n.jsxs)(de,{children:[(0,_n.jsx)(uY,{itemId:e.id,onDeleted:i}),(0,_n.jsx)(o5,{item:e,onStatusChange:n,onRewind:t,onCommentDeleted:t})]})}var H1=_(R(),1);function U1({items:e,mode:t,onReload:r}){let{id:o}=c1(),i=Number(o),n=e.find(s=>s.id===i);return n?t==="edit"?(0,H1.jsx)(gb,{item:n,onReload:r,backTo:`/backlog/items/${i}`}):(0,H1.jsx)(i5,{item:n,onReload:r}):null}var Vi=_(R(),1);function n5({items:e,loading:t,onReload:r}){return(0,Vi.jsxs)(Fl,{children:[(0,Vi.jsx)(Wo,{index:!0,element:(0,Vi.jsx)(AL,{items:e,loading:t})}),(0,Vi.jsx)(Wo,{path:"items/:id",element:(0,Vi.jsx)(U1,{items:e,mode:"detail",onReload:r})}),(0,Vi.jsx)(Wo,{path:"items/:id/edit",element:(0,Vi.jsx)(U1,{items:e,mode:"edit",onReload:r})}),(0,Vi.jsx)(Wo,{path:"add",element:(0,Vi.jsx)(gb,{onReload:r,backTo:"/backlog"})})]})}var ys=_(I(),1);function s5(){let e=So(),[t,r]=(0,ys.useState)([]),[o,i]=(0,ys.useState)(!0),[n,s]=(0,ys.useState)(!0),a=(0,ys.useCallback)(async()=>{r(await lb(void 0,e)),i(!1)},[e]);(0,ys.useEffect)(()=>{i(!0),s(!0),(async()=>{if(await LN(e)){await a();return}s(!1),r([]),i(!1)})()},[e,a]);let l=(0,ys.useCallback)(async()=>{await IN(e),s(!0),i(!0),await a()},[e,a]);return{items:t,loading:o,exists:n,reload:a,initialize:l}}var Th=_(R(),1);function a5(){let{items:e,loading:t,exists:r,reload:o,initialize:i}=s5();return r?(0,Th.jsx)(Fl,{children:(0,Th.jsx)(Wo,{path:"/*",element:(0,Th.jsx)(n5,{items:e,loading:t,onReload:o})})}):(0,Th.jsx)(BN,{onInit:i})}var fz=_(I(),1);var Db=_(I(),1);var $1={"assist-draft":{label:"\u25B6 /draft",args:["draft"]},"assist-bug":{label:"\u25B6 /bug",args:["bug"]},"assist-next":{label:"\u25B6 /next",args:["next"]}};function pY(e){return e in $1}function dY(e){return[...$1[e].args]}function l5(e,t,r,o){if(pY(e)&&t){r(dY(e),t);return}o(e)}var c5=Object.entries($1).map(([e,{label:t}])=>({value:e,label:t})),u5="Enter prompt...";var Ch=_(R(),1),fY={textTransform:"none",fontSize:13,py:.25,px:1.25};function p5({onSelect:e}){return(0,Ch.jsx)(Ch.Fragment,{children:c5.map(t=>(0,Ch.jsx)(Re,{size:"small",variant:"outlined",onClick:()=>e(t.value),sx:fY,children:t.label},t.value))})}var f5=_(R(),1);function hY(e){return(e.params?.length??0)>0}function d5({config:e,active:t,onClick:r}){return(0,f5.jsxs)(Re,{size:"small",variant:t?"contained":"outlined",onClick:r,sx:{textTransform:"none",fontSize:13,py:.25,px:1.25},children:[!hY(e)&&"\u25B6 ",e.name]})}var Kl=_(R(),1);function h5({configs:e,selectedRun:t,onSelectRun:r,hiddenCount:o}){return(0,Kl.jsxs)(Kl.Fragment,{children:[e.map(i=>(0,Kl.jsx)(d5,{config:i,active:t===i.name,onClick:()=>r(i.name)},i.name)),o>0&&(0,Kl.jsxs)(X,{variant:"caption",color:"text.disabled",children:["+",o," more"]})]})}var wh=_(R(),1),mY=10;function m5({onSelectMode:e,runConfigs:t,totalRunCount:r,selectedRun:o,onSelectRun:i}){let n=t.slice(0,mY);return(0,wh.jsxs)(Ae,{direction:"row",spacing:.5,sx:{flexWrap:"wrap",alignItems:"center"},children:[(0,wh.jsx)(p5,{onSelect:a=>{i(null),e(a)}}),(0,wh.jsx)(h5,{configs:n,selectedRun:o,onSelectRun:i,hiddenCount:r-n.length})]})}var Rh=_(R(),1);function y5({prompt:e,setPrompt:t}){return(0,Rh.jsxs)(Ae,{direction:"row",spacing:1,children:[(0,Rh.jsx)(Zt,{value:e,onChange:r=>t(r.target.value),placeholder:u5,size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:13}}}}),(0,Rh.jsx)(Re,{type:"submit",variant:"contained",size:"small",sx:{whiteSpace:"nowrap"},children:"Start"})]})}var Ph=_(R(),1);function yY(e){let t=e.description?` \u2014 ${e.description}`:"";return e.required?`${e.name} *${t}`:`${e.name}${t}`}function g5({config:e,values:t,onChange:r}){let o=e.params??[],i=(n,s)=>r({...t,[n]:s});return(0,Ph.jsxs)(Ae,{spacing:.75,children:[o.map(n=>(0,Ph.jsx)(Zt,{label:yY(n),value:t[n.name]??n.default??"",onChange:s=>i(n.name,s.target.value),placeholder:n.default??"",size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:13}},inputLabel:{sx:{fontSize:11},shrink:!0}}},n.name)),(0,Ph.jsxs)(Re,{type:"submit",variant:"contained",size:"small",children:["Run ",e.name]})]})}var xa=_(R(),1);function v5({form:e,totalRunCount:t}){let r=e.selectedRun?e.filteredRunConfigs.find(o=>o.name===e.selectedRun):null;return(0,xa.jsxs)(xa.Fragment,{children:[(0,xa.jsx)(m5,{onSelectMode:e.handleSelectMode,runConfigs:e.filteredRunConfigs,totalRunCount:t,selectedRun:e.selectedRun,onSelectRun:e.handleSelectRun}),e.selectedRun&&r?(0,xa.jsx)(g5,{config:r,values:e.runParams,onChange:e.setRunParams}):(0,xa.jsx)(y5,{prompt:e.prompt,setPrompt:e.setPrompt})]})}var Gl=_(I(),1);function b5(e,t,r,o){return e&&!t.find(n=>n.name===e)?.params?.length?(o(e,[],r),null):e}function _5(e,t,r){r(e.trim(),t)}function S5(e,t){return(e?.params??[]).map(r=>t[r.name]?.trim()).filter(Boolean)}function x5(e){if(e.selectedRun){let t=e.configs.find(r=>r.name===e.selectedRun);return e.onCreateRun(e.selectedRun,S5(t,e.runParams),e.cwd),"run"}return _5(e.prompt,e.cwd,e.onCreate),"claude"}var Tb=_(I(),1);function T5(e,t){if(!t)return!0;let o=(t.includes("*")?t:`*${t}*`).replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${o}$`,"i").test(e)}function C5(e){let[t,r]=(0,Tb.useState)(""),o=(0,Tb.useMemo)(()=>e.filter(i=>T5(i.name,t)),[e,t]);return{runFilter:t,setRunFilter:r,filteredRunConfigs:o}}function w5(e){let{runConfigs:t,onCreateRun:r,onRequestRunConfigs:o}=e,{selectedCwd:i}=nb(),[n,s]=(0,Gl.useState)("free"),[a,l]=(0,Gl.useState)(""),[c,u]=(0,Gl.useState)(null),[p,f]=(0,Gl.useState)({}),d=C5(t);return(0,Gl.useEffect)(()=>{i&&o(i)},[i,o]),{selectedCwd:i,mode:n,prompt:a,setPrompt:l,selectedRun:c,runParams:p,setRunParams:f,...d,handleSelectRun(h){u(b5(h,t,i,r)),f({})},handleSelectMode(h){u(null),l5(h,i,e.onCreateAssist,s)},handleSubmit(h){if(h.preventDefault(),!i)return;x5({selectedRun:c,runParams:p,prompt:a,cwd:i,configs:t,onCreate:e.onCreate,onCreateRun:e.onCreateRun})==="run"?f({}):l("")}}}var Dp=_(R(),1);function R5(e){let{runConfigs:t}=e,r=w5(e),o=r.selectedCwd!=="";return(0,Dp.jsxs)(de,{component:"form",onSubmit:r.handleSubmit,sx:{p:1.5,borderTop:1,borderColor:"divider",display:"flex",flexDirection:"column",gap:1},children:[t.length>0&&(0,Dp.jsx)(Zt,{value:r.runFilter,onChange:i=>r.setRunFilter(i.target.value),placeholder:"Filter runs...",size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:13}}}}),o?(0,Dp.jsx)(v5,{form:r,totalRunCount:t.length}):(0,Dp.jsx)(X,{variant:"caption",color:"text.disabled",sx:{py:.75},children:"Select a repo in the toolbar to create a session"})]})}var P5=_(R(),1),E5=_e((0,P5.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var j1=_(R(),1);function k5({onDismiss:e}){return(0,j1.jsx)(ii,{size:"small",onClick:t=>{t.stopPropagation(),e()},title:"Dismiss",sx:{color:"text.disabled","&:hover":{color:"text.primary"}},children:(0,j1.jsx)(E5,{sx:{fontSize:16}})})}var O5=_(R(),1),M5=_e((0,O5.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var W1=_(R(),1);function D5({onRetry:e}){return(0,W1.jsx)(ii,{size:"small",onClick:t=>{t.stopPropagation(),e()},title:"Retry",sx:{color:"text.disabled","&:hover":{color:"text.primary"}},children:(0,W1.jsx)(M5,{sx:{fontSize:14}})})}var Ap=_(R(),1);function Cb(e){return{display:"block",width:"100%",textAlign:"left",p:"10px 12px",mb:.5,borderRadius:1.5,bgcolor:e?"action.selected":"background.default",border:1,borderColor:e?"primary.main":"transparent",cursor:"pointer",transition:"background 0.15s","&:hover":e?void 0:{bgcolor:"action.hover"}}}function A5({name:e,isDone:t,onRetry:r,onDismiss:o}){return(0,Ap.jsxs)(de,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Ap.jsx)(X,{variant:"body2",noWrap:!0,sx:{flex:1,color:"text.primary"},children:e}),t&&r&&(0,Ap.jsx)(D5,{onRetry:r}),t&&(0,Ap.jsx)(k5,{onDismiss:o})]})}var Yl=_(R(),1),gY={running:"success.main",waiting:"warning.main",done:"info.main"};function B5({status:e,elapsed:t,restored:r}){return(0,Yl.jsxs)(de,{sx:{display:"flex",justifyContent:"space-between",mt:.5},children:[(0,Yl.jsxs)(de,{sx:{display:"flex",gap:1},children:[(0,Yl.jsxs)(X,{variant:"caption",sx:{color:gY[e]},children:["\u25CF ",e]}),r!==void 0&&(0,Yl.jsx)(X,{variant:"caption",sx:{color:r?"success.main":"warning.main"},children:r?"restored":"not restored"})]}),(0,Yl.jsx)(X,{variant:"caption",color:"text.disabled",children:t})]})}var wb=_(I(),1);function N5(e){let[,t]=(0,wb.useState)(0);(0,wb.useEffect)(()=>{let n=setInterval(()=>t(s=>s+1),1e3);return()=>clearInterval(n)},[]);let r=Math.floor((Date.now()-e)/1e3),o=Math.floor(r/60),i=r%60;return o>=60?`${Math.floor(o/60)}h ${o%60}m`:o>0?`${o}m ${i}s`:`${i}s`}var Eh=_(R(),1);function L5({session:e,active:t,onClick:r,onRetry:o,onDismiss:i}){let n=N5(e.startedAt);return(0,Eh.jsxs)(Bt,{onClick:r,sx:Cb(t),children:[(0,Eh.jsx)(A5,{name:e.name,isDone:e.status==="done",onRetry:o,onDismiss:i}),(0,Eh.jsx)(B5,{status:e.status,elapsed:n,restored:e.restored})]})}var kh=_(R(),1);function I5({sessions:e,activeId:t,onSelect:r,onRetry:o,onDismiss:i}){return(0,kh.jsxs)(de,{sx:{flex:1,overflow:"auto",p:1},children:[e.map(n=>(0,kh.jsx)(L5,{session:n,active:n.id===t,onClick:()=>r(n.id),onRetry:(n.commandType==="run"||n.commandType==="assist")&&n.status==="done"?()=>o(n.id):void 0,onDismiss:()=>i(n.id)},n.id)),e.length===0&&(0,kh.jsx)(X,{variant:"caption",color:"text.disabled",sx:{display:"block",textAlign:"center",p:2},children:"No sessions yet"})]})}var Xl=_(R(),1);function z5({sessions:e,activeId:t,run:r,onSelect:o,onCreate:i,onCreateAssist:n,onRetry:s,onDismiss:a}){return(0,Xl.jsxs)(Xl.Fragment,{children:[(0,Xl.jsx)(I5,{sessions:e,activeId:t,onSelect:o,onRetry:s,onDismiss:a}),(0,Xl.jsx)(R5,{runConfigs:r.configs,onCreate:i,onCreateRun:r.create,onCreateAssist:n,onRequestRunConfigs:r.requestConfigs})]})}var Mb=_(I(),1);function F5(e){let t=Date.now()-new Date(e).getTime(),r=Math.floor(t/1e3);if(r<60)return"just now";let o=Math.floor(r/60);if(o<60)return`${o}m ago`;let i=Math.floor(o/60);if(i<24)return`${i}h ago`;let n=Math.floor(i/24);return n<30?`${n}d ago`:`${Math.floor(n/30)}mo ago`}var Zl=_(R(),1);function H5({session:e,onResume:t}){return(0,Zl.jsxs)(Bt,{onClick:()=>t(e),sx:Cb(!1),children:[(0,Zl.jsx)(X,{variant:"body2",noWrap:!0,sx:{color:"text.primary"},children:e.name}),(0,Zl.jsxs)(de,{sx:{display:"flex",justifyContent:"space-between",mt:.5},children:[(0,Zl.jsx)(X,{variant:"caption",color:"info.main",children:e.project}),(0,Zl.jsx)(X,{variant:"caption",color:"text.disabled",children:F5(e.timestamp)})]})]})}var Pb=_(I(),1);var U5=_(R(),1),$5=_e((0,U5.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var j5=_(R(),1),W5=_e((0,j5.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var Rb=_(R(),1);function V5({label:e,open:t,onClick:r}){return(0,Rb.jsx)(Re,{size:"small",variant:"outlined",onClick:r,endIcon:t?(0,Rb.jsx)(W5,{}):(0,Rb.jsx)($5,{}),sx:{textTransform:"none",fontSize:11,justifyContent:"space-between",maxWidth:"100%",overflow:"hidden"},fullWidth:!0,children:e})}var Ob=_(R(),1),Eb={position:"absolute",top:"100%",left:0,right:0,mt:.25,maxHeight:200,overflowY:"auto",zIndex:10};function kb({label:e,children:t}){let[r,o]=(0,Pb.useState)(!1),i=(0,Pb.useRef)(null);return(0,Ob.jsxs)(St,{component:"fieldset",ref:i,variant:"outlined",sx:{position:"relative",border:"none",m:0,p:0},onBlur:n=>{i.current?.contains(n.relatedTarget)||o(!1)},children:[(0,Ob.jsx)(V5,{label:e,open:r,onClick:()=>o(!r)}),r&&t(()=>o(!1))]})}var Bp=_(R(),1);function q5({items:e,selected:t,onToggle:r}){return(0,Bp.jsx)(fl,{dense:!0,sx:Eb,children:e.map(o=>(0,Bp.jsxs)(Un,{onClick:()=>r(o),dense:!0,children:[(0,Bp.jsx)(L0,{size:"small",checked:t.has(o),sx:{p:0,mr:1}}),(0,Bp.jsx)(J0,{primary:o,slotProps:{primary:{variant:"caption"}}})]},o))})}var V1=_(R(),1);function vY(e){return e.size===0?"All projects":e.size===1?[...e][0]:`${e.size} projects`}function K5({projects:e,selected:t,onChange:r}){let o=i=>{let n=new Set(t);n.has(i)?n.delete(i):n.add(i),r(n)};return(0,V1.jsx)(kb,{label:vY(t),children:()=>(0,V1.jsx)(q5,{items:e,selected:t,onToggle:o})})}function G5(e){let t=new Set;for(let r of e)t.add(r.project);return[...t].sort()}function Y5(e,t){return t.size===0?e:e.filter(r=>t.has(r.project))}var Sn=_(R(),1);function bY({hasAny:e}){return(0,Sn.jsx)(X,{variant:"caption",color:"text.disabled",sx:{display:"block",textAlign:"center",p:2},children:e?"No sessions match filter":"No session history"})}function _Y({sessions:e,onResume:t}){return(0,Sn.jsxs)(de,{sx:{flex:1,overflow:"auto",p:1},children:[e.map(r=>(0,Sn.jsx)(H5,{session:r,onResume:t},r.sessionId)),e.length===0&&(0,Sn.jsx)(bY,{hasAny:!1})]})}function X5({sessions:e,onResume:t}){let[r,o]=(0,Mb.useState)(new Set),i=(0,Mb.useMemo)(()=>G5(e),[e]),n=Y5(e,r);return(0,Sn.jsxs)(de,{sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[i.length>1&&(0,Sn.jsx)(de,{sx:{px:1,pt:1},children:(0,Sn.jsx)(K5,{projects:i,selected:r,onChange:o})}),(0,Sn.jsx)(_Y,{sessions:n,onResume:t})]})}var Oh=_(R(),1),Z5={minHeight:36,py:0,fontSize:12};function Q5({tab:e,activeCount:t,historyCount:r,onChange:o}){return(0,Oh.jsxs)(hf,{value:e==="active"?0:1,onChange:(n,s)=>o(s===0?"active":"history"),variant:"fullWidth",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:[(0,Oh.jsx)(hl,{label:`Active ${t}`,sx:Z5}),(0,Oh.jsx)(hl,{label:`History ${r}`,sx:Z5})]})}var Np=_(R(),1),SY={width:280,minWidth:280,borderRight:1,borderColor:"divider",display:"flex",flexDirection:"column",bgcolor:"background.paper"};function J5(e){return(0,Np.jsxs)(de,{sx:SY,children:[(0,Np.jsx)(Q5,{tab:e.tab,activeCount:e.sessions.length,historyCount:e.history.length,onChange:e.onTabChange}),e.tab==="active"?(0,Np.jsx)(z5,{sessions:e.sessions,activeId:e.activeId,run:e.run,onSelect:e.onSelect,onCreate:e.onCreate,onCreateAssist:e.onCreateAssist,onRetry:e.onRetry,onDismiss:e.onDismiss}):(0,Np.jsx)(X5,{sessions:e.history,onResume:e.onResume})]})}var tI=_(R(),1);function eI({socket:e,tab:t,onTabChange:r}){let o=(0,Db.useCallback)(n=>{e.resumeSession(n.sessionId,n.cwd,n.name),r("active")},[e.resumeSession,r]),i=(0,Db.useMemo)(()=>({configs:e.runConfigs,create:e.createRunSession,requestConfigs:e.requestRunConfigs}),[e.runConfigs,e.createRunSession,e.requestRunConfigs]);return(0,tI.jsx)(J5,{sessions:e.sessions,history:e.history,run:i,activeId:e.activeId,tab:t,onTabChange:r,onSelect:e.setActiveId,onCreate:e.createSession,onCreateAssist:e.createAssistSession,onResume:o,onRetry:e.retrySession,onDismiss:e.dismissSession})}var cz=_(I(),1);var em=_(I(),1);var xY=2,TY=1,rI=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),i=Math.max(0,parseInt(r.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),s={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},a=s.top+s.bottom,l=s.right+s.left,c=o-a,u=i-l-t;return{cols:Math.max(xY,Math.floor(u/e.css.cell.width)),rows:Math.max(TY,Math.floor(c/e.css.cell.height))}}};var s3=Object.defineProperty,CY=Object.getOwnPropertyDescriptor,wY=(e,t)=>{for(var r in t)s3(e,r,{get:t[r],enumerable:!0})},jt=(e,t,r,o)=>{for(var i=o>1?void 0:o?CY(t,r):t,n=e.length-1,s;n>=0;n--)(s=e[n])&&(i=(o?s(t,r,i):s(i))||i);return o&&i&&s3(t,r,i),i},te=(e,t)=>(r,o)=>t(r,o,e),oI="Terminal input",lC={get:()=>oI,set:e=>oI=e},iI="Too much output to announce, navigate to rows manually to read",cC={get:()=>iI,set:e=>iI=e};function RY(e){return e.replace(/\r?\n/g,"\r")}function PY(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function EY(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function kY(e,t,r,o){if(e.stopPropagation(),e.clipboardData){let i=e.clipboardData.getData("text/plain");a3(i,t,r,o)}}function a3(e,t,r,o){e=RY(e),e=PY(e,r.decPrivateModes.bracketedPasteMode&&o.rawOptions.ignoreBracketedPasteMode!==!0),r.triggerDataEvent(e,!0),t.value=""}function l3(e,t,r){let o=r.getBoundingClientRect(),i=e.clientX-o.left-10,n=e.clientY-o.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${i}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function nI(e,t,r,o,i){l3(e,t,r),i&&o.rightClickSelect(e),t.value=o.selectionText,t.select()}function Pa(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function o_(e,t=0,r=e.length){let o="";for(let i=t;i<r;++i){let n=e[i];n>65535?(n-=65536,o+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):o+=String.fromCharCode(n)}return o}var OY=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let r=e.length;if(!r)return 0;let o=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[o++]=(this._interim-55296)*1024+n-56320+65536:(t[o++]=this._interim,t[o++]=n),this._interim=0}for(let n=i;n<r;++n){let s=e.charCodeAt(n);if(55296<=s&&s<=56319){if(++n>=r)return this._interim=s,o;let a=e.charCodeAt(n);56320<=a&&a<=57343?t[o++]=(s-55296)*1024+a-56320+65536:(t[o++]=s,t[o++]=a);continue}s!==65279&&(t[o++]=s)}return o}},MY=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let r=e.length;if(!r)return 0;let o=0,i,n,s,a,l=0,c=0;if(this.interim[0]){let f=!1,d=this.interim[0];d&=(d&224)===192?31:(d&240)===224?15:7;let h=0,y;for(;(y=this.interim[++h]&63)&&h<4;)d<<=6,d|=y;let b=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,m=b-h;for(;c<m;){if(c>=r)return 0;if(y=e[c++],(y&192)!==128){c--,f=!0;break}else this.interim[h++]=y,d<<=6,d|=y&63}f||(b===2?d<128?c--:t[o++]=d:b===3?d<2048||d>=55296&&d<=57343||d===65279||(t[o++]=d):d<65536||d>1114111||(t[o++]=d)),this.interim.fill(0)}let u=r-4,p=c;for(;p<r;){for(;p<u&&!((i=e[p])&128)&&!((n=e[p+1])&128)&&!((s=e[p+2])&128)&&!((a=e[p+3])&128);)t[o++]=i,t[o++]=n,t[o++]=s,t[o++]=a,p+=4;if(i=e[p++],i<128)t[o++]=i;else if((i&224)===192){if(p>=r)return this.interim[0]=i,o;if(n=e[p++],(n&192)!==128){p--;continue}if(l=(i&31)<<6|n&63,l<128){p--;continue}t[o++]=l}else if((i&240)===224){if(p>=r)return this.interim[0]=i,o;if(n=e[p++],(n&192)!==128){p--;continue}if(p>=r)return this.interim[0]=i,this.interim[1]=n,o;if(s=e[p++],(s&192)!==128){p--;continue}if(l=(i&15)<<12|(n&63)<<6|s&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[o++]=l}else if((i&248)===240){if(p>=r)return this.interim[0]=i,o;if(n=e[p++],(n&192)!==128){p--;continue}if(p>=r)return this.interim[0]=i,this.interim[1]=n,o;if(s=e[p++],(s&192)!==128){p--;continue}if(p>=r)return this.interim[0]=i,this.interim[1]=n,this.interim[2]=s,o;if(a=e[p++],(a&192)!==128){p--;continue}if(l=(i&7)<<18|(n&63)<<12|(s&63)<<6|a&63,l<65536||l>1114111)continue;t[o++]=l}}return o}},c3="",Ea=" ",Xh=class u3{constructor(){this.fg=0,this.bg=0,this.extended=new Gb}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new u3;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Gb=class p3{constructor(t=0,r=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=r}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new p3(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ti=class d3 extends Xh{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Gb,this.combinedData=""}static fromCharData(t){let r=new d3;return r.setFromCharData(t),r}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?Pa(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let r=!1;if(t[1].length>2)r=!0;else if(t[1].length===2){let o=t[1].charCodeAt(0);if(55296<=o&&o<=56319){let i=t[1].charCodeAt(1);56320<=i&&i<=57343?this.content=(o-55296)*1024+i-56320+65536|t[2]<<22:r=!0}else r=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;r&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},sI="di$target",uC="di$dependencies",q1=new Map;function DY(e){return e[uC]||[]}function Sr(e){if(q1.has(e))return q1.get(e);let t=function(r,o,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");AY(t,r,i)};return t._id=e,q1.set(e,t),t}function AY(e,t,r){t[sI]===t?t[uC].push({id:e,index:r}):(t[uC]=[{id:e,index:r}],t[sI]=t)}var io=Sr("BufferService"),f3=Sr("CoreMouseService"),nc=Sr("CoreService"),BY=Sr("CharsetService"),qC=Sr("InstantiationService"),h3=Sr("LogService"),no=Sr("OptionsService"),m3=Sr("OscLinkService"),NY=Sr("UnicodeService"),Zh=Sr("DecorationService"),pC=class{constructor(e,t,r){this._bufferService=e,this._optionsService=t,this._oscLinkService=r}provideLinks(e,t){let r=this._bufferService.buffer.lines.get(e-1);if(!r){t(void 0);return}let o=[],i=this._optionsService.rawOptions.linkHandler,n=new Ti,s=r.getTrimmedLength(),a=-1,l=-1,c=!1;for(let u=0;u<s;u++)if(!(l===-1&&!r.hasContent(u))){if(r.loadCell(u,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=u,a=n.extended.urlId;continue}else c=n.extended.urlId!==a;else l!==-1&&(c=!0);if(c||l!==-1&&u===s-1){let p=this._oscLinkService.getLinkData(a)?.uri;if(p){let f={start:{x:l+1,y:e},end:{x:u+(!c&&u===s-1?1:0),y:e}},d=!1;if(!i?.allowNonHttpProtocols)try{let h=new URL(p);["http:","https:"].includes(h.protocol)||(d=!0)}catch{d=!0}d||o.push({text:p,range:f,activate:(h,y)=>i?i.activate(h,y,f):LY(h,y),hover:(h,y)=>i?.hover?.(h,y,f),leave:(h,y)=>i?.leave?.(h,y,f)})}c=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=u,a=n.extended.urlId):(l=-1,a=-1)}}t(o)}};pC=jt([te(0,io),te(1,no),te(2,m3)],pC);function LY(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
203
|
+
Please report this to https://github.com/markedjs/marked.`,e){let o="<p>An error occurred:</p><pre>"+gn(r.message+"",!0)+"</pre>";return t?Promise.resolve(o):o}if(t)return Promise.reject(r);throw r}}},Hl=new yG;function ke(e,t){return Hl.parse(e,t)}ke.options=ke.setOptions=function(e){return Hl.setOptions(e),ke.defaults=Hl.defaults,eL(ke.defaults),ke};ke.getDefaults=E1;ke.defaults=Ul;ke.use=function(...e){return Hl.use(...e),ke.defaults=Hl.defaults,eL(ke.defaults),ke};ke.walkTokens=function(e,t){return Hl.walkTokens(e,t)};ke.parseInline=Hl.parseInline;ke.Parser=ds;ke.parser=ds.parse;ke.Renderer=hb;ke.TextRenderer=L1;ke.Lexer=ps;ke.lexer=ps.lex;ke.Tokenizer=fb;ke.Hooks=pb;ke.parse=ke;var pBe=ke.options,dBe=ke.setOptions,fBe=ke.use,hBe=ke.walkTokens,mBe=ke.parseInline;var yBe=ds.parse,gBe=ps.lex;var pL=_(I(),1),ga=_(R(),1);function gG({text:e}){return(0,ga.jsx)(de,{sx:t=>({border:1,borderColor:"divider",borderRadius:1,p:1.5,mt:1,minHeight:60,bgcolor:t.palette.mode==="dark"?"grey.900":"grey.50"}),dangerouslySetInnerHTML:{__html:ke.parse(e||"")}})}function dL({value:e,onChange:t}){let[r,o]=(0,pL.useState)(!1);return(0,ga.jsxs)(de,{sx:{mb:2},children:[(0,ga.jsxs)(X,{variant:"body2",sx:{fontWeight:"medium",mb:.5},children:["Description"," ",(0,ga.jsx)(qy,{component:"button",type:"button",variant:"caption",onClick:()=>o(!r),sx:{ml:1},children:"(preview)"})]}),(0,ga.jsx)(Zt,{fullWidth:!0,multiline:!0,minRows:4,size:"small",placeholder:"Markdown supported",value:e,onChange:i=>t(i.target.value)}),r&&(0,ga.jsx)(gG,{text:e})]})}var xh=_(R(),1);function fL({submitLabel:e,onCancel:t}){return(0,xh.jsxs)(Ae,{direction:"row",spacing:1,sx:{mt:2},children:[(0,xh.jsx)(Re,{type:"submit",variant:"contained",children:e}),(0,xh.jsx)(Re,{type:"button",variant:"outlined",onClick:t,children:"Cancel"})]})}var mL=_(R(),1);function hL({value:e,onChange:t}){return(0,mL.jsx)(Zt,{label:"Name",required:!0,fullWidth:!0,size:"small",placeholder:"Item name",value:e,onChange:r=>t(r.target.value),sx:{mb:2}})}var $l=_(R(),1);function yL({value:e,onChange:t}){return(0,$l.jsxs)(fu,{sx:{mb:2},children:[(0,$l.jsx)(gu,{children:"Type"}),(0,$l.jsx)(mg,{row:!0,name:"type",value:e,onChange:r=>t(r.target.value),children:["story","bug"].map(r=>(0,$l.jsx)(yu,{value:r,control:(0,$l.jsx)(hg,{size:"small"}),label:r.charAt(0).toUpperCase()+r.slice(1)},r))})]})}var ji=_(R(),1);function gL({title:e,submitLabel:t,type:r,onTypeChange:o,name:i,onNameChange:n,description:s,onDescriptionChange:a,initialAc:l,onAcChange:c,onCancel:u}){return(0,ji.jsxs)(ji.Fragment,{children:[(0,ji.jsx)(X,{variant:"h6",sx:{mb:2},children:e}),(0,ji.jsx)(yL,{value:r,onChange:o}),(0,ji.jsx)(hL,{value:i,onChange:n}),(0,ji.jsx)(dL,{value:s,onChange:a}),(0,ji.jsx)(GN,{initial:l,onChange:c}),(0,ji.jsx)(fL,{submitLabel:t,onCancel:u})]})}var wp=_(I(),1);function vL(e){let t=VN(e),[r,o]=(0,wp.useState)(t.type),[i,n]=(0,wp.useState)(t.name),[s,a]=(0,wp.useState)(t.description),l=(0,wp.useRef)(t.ac);return{defaults:t,type:r,setType:o,name:i,setName:n,description:s,setDescription:a,setAc(c){l.current=c},fields(){return{type:r,name:i,description:s,criteria:l.current}}}}var va=_(R(),1);function gb({item:e,onReload:t,backTo:r}){let o=_o(),i=So(),n=vL(e);return(0,va.jsxs)(va.Fragment,{children:[(0,va.jsx)(sb,{to:r}),(0,va.jsx)(St,{component:"form",variant:"outlined",sx:{p:3},onSubmit:s=>qN(s,n.fields(),e,i,async a=>{await t(),o(`/backlog/items/${a}`)}),children:(0,va.jsx)(gL,{title:n.defaults.title,submitLabel:n.defaults.submitLabel,type:n.type,onTypeChange:n.setType,name:n.name,onNameChange:n.setName,description:n.description,onDescriptionChange:n.setDescription,initialAc:n.defaults.ac,onAcChange:n.setAc,onCancel:()=>o(r)})})]})}var ba=_(I(),1);function bL(){let e=So(),[t,r]=(0,ba.useState)(""),[o,i]=(0,ba.useState)(null),[n,s]=(0,ba.useState)(!1),a=(0,ba.useRef)(void 0);return(0,ba.useEffect)(()=>{if(a.current!==void 0&&clearTimeout(a.current),!t.trim()){i(null),s(!1);return}return s(!0),a.current=setTimeout(async()=>{i(await lb(t,e)),s(!1)},250),()=>{a.current!==void 0&&clearTimeout(a.current)}},[t,e]),{query:t,setQuery:r,results:o,loading:n}}var _L=_(I(),1),SL="backlog-show-completed",I1=new Set,xL=vG();function vG(){try{return localStorage.getItem(SL)==="true"}catch{return!1}}function bG(e){return I1.add(e),()=>I1.delete(e)}function _G(){return xL}function SG(e){xL=e;try{localStorage.setItem(SL,String(e))}catch{}for(let t of I1)t()}function vb(){return[(0,_L.useSyncExternalStore)(bG,_G),SG]}var z1=_(R(),1);function TL(){let[e,t]=vb();return(0,z1.jsx)(yu,{control:(0,z1.jsx)(vg,{checked:e,onChange:()=>t(!e),size:"small"}),label:"Show completed",slotProps:{typography:{variant:"body2",color:"text.secondary"}}})}var bb={story:"info",bug:"error"},_b={todo:"default","in-progress":"warning",done:"success",wontdo:"error"};var wL=_(R(),1),xG={flexShrink:0,fontWeight:500,fontSize:"0.75rem",height:22};function CL(){return(0,wL.jsx)(ni,{label:"in progress",size:"small",color:_b["in-progress"],sx:xG})}var PL=_(R(),1),TG={todo:"\u25CB","in-progress":"\u25D4",done:"\u25CF",wontdo:"\u2715"},CG={todo:"text.disabled","in-progress":"warning.main",done:"success.main",wontdo:"error.main"};function wG(e){return{fontSize:"1.125rem",flexShrink:0,color:CG[e]}}function RL({status:e}){return(0,PL.jsx)(X,{sx:wG(e),children:TG[e]})}var _a=_(R(),1),EL={display:"flex",alignItems:"center",gap:1.5,width:"100%",textAlign:"left",p:2,mb:1,borderRadius:2,border:1,borderColor:"divider",bgcolor:"background.paper",transition:"box-shadow 0.2s","&:hover":{boxShadow:3}},RG=EL,PG={...EL,borderColor:"warning.main",borderLeft:4,borderLeftColor:"warning.main",bgcolor:e=>Bi(e.palette.warning.main,.08)},EG={color:"text.disabled",flexShrink:0},kG={fontWeight:500,flex:1,textAlign:"left"},OG={flexShrink:0,fontWeight:500,fontSize:"0.75rem",height:22};function kL({item:e,onSelect:t}){let r=e.status==="in-progress";return(0,_a.jsxs)(Bt,{onClick:t,sx:r?PG:RG,children:[(0,_a.jsx)(RL,{status:e.status}),(0,_a.jsx)(ni,{label:e.type,size:"small",color:bb[e.type],sx:OG}),(0,_a.jsxs)(X,{variant:"body2",sx:EG,children:["#",e.id]}),(0,_a.jsx)(X,{sx:kG,children:e.name}),r&&(0,_a.jsx)(CL,{})]})}var fs=_(R(),1),MG={display:"flex",justifyContent:"center",py:6},DG={textAlign:"center",color:"text.disabled",py:6,px:2};function AG({query:e}){let t=e.trim()?"No items match your search.":"No items in the backlog.";return(0,fs.jsx)(de,{sx:DG,children:t})}function OL({loading:e,query:t,items:r,onSelect:o}){return e?(0,fs.jsx)(de,{sx:MG,children:(0,fs.jsx)(Is,{})}):r.length===0?(0,fs.jsx)(AG,{query:t}):(0,fs.jsx)(fs.Fragment,{children:r.map(i=>(0,fs.jsx)(kL,{item:i,onSelect:()=>o(i)},i.id))})}var DL=_(R(),1);function ML({value:e,onChange:t}){return(0,DL.jsx)(Zt,{fullWidth:!0,size:"small",placeholder:"Search backlog\u2026",value:e,onChange:r=>t(r.target.value),sx:{mb:2}})}var Vo=_(R(),1),BG={justifyContent:"space-between",alignItems:"center",mb:3};function NG(e,t){return t?e:e.filter(r=>r.status!=="done"&&r.status!=="wontdo")}var LG={fontWeight:600},IG={alignItems:"center"};function zG({onAdd:e}){return(0,Vo.jsxs)(Ae,{direction:"row",sx:BG,children:[(0,Vo.jsx)(X,{variant:"h5",sx:LG,children:"Backlog"}),(0,Vo.jsxs)(Ae,{direction:"row",spacing:2,sx:IG,children:[(0,Vo.jsx)(TL,{}),(0,Vo.jsx)(Re,{variant:"contained",size:"small",onClick:e,children:"+ Add Item"})]})]})}function AL({items:e,loading:t}){let r=_o(),[o]=vb(),{query:i,setQuery:n,results:s,loading:a}=bL(),l=NG(s??e,o);return(0,Vo.jsxs)(Vo.Fragment,{children:[(0,Vo.jsx)(zG,{onAdd:()=>r("/backlog/add")}),(0,Vo.jsx)(ML,{value:i,onChange:n}),(0,Vo.jsx)(OL,{loading:t||a,query:i,items:l,onSelect:c=>r(`/backlog/items/${c.id}`)})]})}var BL=_(I(),1);var hs=_(R(),1);function Sb({onConfirm:e,onCancel:t,title:r="Confirm deletion",message:o="Are you sure you want to delete this item?"}){return(0,hs.jsxs)(lu,{open:!0,onClose:t,maxWidth:"xs",fullWidth:!0,children:[(0,hs.jsx)(pu,{children:r}),(0,hs.jsx)(uu,{children:(0,hs.jsx)(Uy,{children:o})}),(0,hs.jsxs)(cu,{children:[(0,hs.jsx)(Re,{onClick:t,children:"Cancel"}),(0,hs.jsx)(Re,{variant:"contained",color:"error",onClick:e,children:"Delete"})]})]})}var jl=_(R(),1);function NL({itemId:e,onDeleted:t}){let r=So(),[o,i]=(0,BL.useState)(!1);return(0,jl.jsxs)(jl.Fragment,{children:[o&&(0,jl.jsx)(Sb,{onConfirm:async()=>{await FN(e,r),await t()},onCancel:()=>i(!1)}),(0,jl.jsx)(Re,{variant:"contained",color:"error",size:"small",onClick:()=>i(!0),children:"Delete"})]})}var Sa=_(R(),1);function LL({criteria:e}){return e.length===0?null:(0,Sa.jsxs)(de,{sx:{mb:2},children:[(0,Sa.jsx)(X,{variant:"overline",sx:{color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"},children:"Acceptance Criteria"}),(0,Sa.jsx)(sn,{disablePadding:!0,children:e.map((t,r)=>(0,Sa.jsxs)(Us,{disableGutters:!0,disablePadding:!0,sx:{py:.5,display:"flex",alignItems:"baseline"},children:[(0,Sa.jsxs)(X,{component:"span",sx:{color:"text.secondary",mr:1},children:[r+1,"."]}),(0,Sa.jsx)(de,{component:"span",className:"markdown",dangerouslySetInnerHTML:{__html:ke.parseInline(t)}})]},t))})]})}var Wl=_(R(),1),FG={alignItems:"center",fontSize:"0.75rem",color:"text.secondary",mb:.5},HG={color:"text.disabled"},UG={fontWeight:500},$G={summary:"Phase summary",comment:"Comment"};function IL({comment:e}){return(0,Wl.jsxs)(Ae,{direction:"row",spacing:.5,sx:FG,children:[e.id!==void 0&&(0,Wl.jsxs)(X,{variant:"caption",sx:HG,children:["#",e.id]}),(0,Wl.jsx)(X,{variant:"caption",sx:UG,children:$G[e.type]}),e.phase!==void 0&&(0,Wl.jsxs)(X,{variant:"caption",children:["\xB7 Phase ",e.phase]}),(0,Wl.jsxs)(X,{variant:"caption",children:["\xB7 ",jG(e.timestamp)]})]})}function jG(e){return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}var zL=_(R(),1),FL=_e((0,zL.jsx)("path",{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"}),"DeleteOutlined");var F1=_(I(),1);var vn=_(R(),1),WG={mt:-.5,mr:-.5,color:"text.secondary"};function HL({itemId:e,commentId:t,onDeleted:r}){let o=So(),[i,n]=(0,F1.useState)(!1),[s,a]=(0,F1.useState)(),l=()=>a(void 0);return(0,vn.jsxs)(vn.Fragment,{children:[i&&(0,vn.jsx)(Sb,{message:"Are you sure you want to delete this comment?",onConfirm:async()=>{n(!1);try{await HN(e,t,o),await r()}catch(c){a(c instanceof Error?c.message:"Failed to delete comment")}},onCancel:()=>n(!1)}),(0,vn.jsx)(Ru,{open:s!==void 0,autoHideDuration:6e3,onClose:l,children:(0,vn.jsx)(Qc,{severity:"error",variant:"filled",onClose:l,children:s})}),(0,vn.jsx)(ii,{"aria-label":"Delete comment",size:"small",sx:WG,onClick:()=>n(!0),children:(0,vn.jsx)(FL,{fontSize:"inherit"})})]})}var Vl=_(R(),1),VG={summary:{bgcolor:"warning.light",borderColor:"warning.dark"},comment:{bgcolor:"action.selected",borderColor:"divider"}},qG={justifyContent:"space-between",alignItems:"flex-start"},KG={color:"text.primary",whiteSpace:"pre-wrap"};function GG(e){return{p:1.5,bgcolor:e.bgcolor,borderColor:e.borderColor}}function UL({comment:e,itemId:t,onDeleted:r}){return(0,Vl.jsxs)(St,{variant:"outlined",sx:GG(VG[e.type]),children:[(0,Vl.jsxs)(Ae,{direction:"row",sx:qG,children:[(0,Vl.jsx)(IL,{comment:e}),e.id!==void 0&&t!==void 0&&r&&(0,Vl.jsx)(HL,{itemId:t,commentId:e.id,onDeleted:r})]}),(0,Vl.jsx)(X,{variant:"body2",sx:KG,children:e.text})]})}var Rp=_(R(),1),YG={color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"};function $L({comments:e,itemId:t,onCommentDeleted:r}){return e.length===0?null:(0,Rp.jsxs)(de,{sx:{mb:2},children:[(0,Rp.jsx)(X,{variant:"overline",sx:YG,children:"Comments"}),(0,Rp.jsx)(Ae,{spacing:1,children:e.map((o,i)=>(0,Rp.jsx)(UL,{comment:o,itemId:t,onDeleted:r},`${o.timestamp}-${i}`))})]})}var xb=_(R(),1),jL={todo:{bg:"action.selected",text:"text.primary"},"in-progress":{bg:"warning.main",text:"warning.contrastText"},done:{bg:"success.main",text:"success.contrastText"},wontdo:{bg:"error.main",text:"error.contrastText"}},XG=["todo","in-progress","done","wontdo"];function WL({current:e,onStatusChange:t}){return t?(0,xb.jsx)(Cu,{value:e,onChange:r=>t(r.target.value),size:"small",sx:{fontSize:"0.75rem",fontWeight:500,borderRadius:4,bgcolor:jL[e].bg,color:jL[e].text,"& .MuiSelect-select":{py:.5,px:1.5},"& .MuiSelect-icon":{color:"inherit"}},children:XG.map(r=>(0,xb.jsx)(Un,{value:r,children:r},r))}):(0,xb.jsx)(ni,{label:e,size:"small",color:_b[e],sx:{fontWeight:500,fontSize:"0.75rem"}})}var Pp=_(R(),1),ZG={alignItems:"center",color:"text.disabled",fontSize:"0.875rem",mb:2},QG={fontWeight:500,fontSize:"0.75rem"};function VL({item:e,onStatusChange:t}){let r=bb[e.type];return(0,Pp.jsxs)(Ae,{direction:"row",spacing:1,sx:ZG,children:[(0,Pp.jsxs)(X,{variant:"body2",color:"text.disabled",children:["#",e.id]}),r&&(0,Pp.jsx)(ni,{label:e.type,size:"small",color:r,sx:QG}),(0,Pp.jsx)(WL,{current:e.status,onStatusChange:t})]})}var KL=_(R(),1),JG={lineHeight:1.7,"& p":{mt:0}};function qL({content:e}){return(0,KL.jsx)(de,{className:"markdown",sx:JG,dangerouslySetInnerHTML:{__html:ke.parse(e)}})}var ms=_(R(),1);function GL({checks:e}){return(0,ms.jsxs)(de,{sx:{mt:1,pt:1},children:[(0,ms.jsx)(du,{sx:{mb:1}}),(0,ms.jsx)(X,{variant:"overline",sx:{color:"text.disabled",letterSpacing:"0.08em"},children:"Manual Checks"}),(0,ms.jsx)(sn,{disablePadding:!0,sx:{ml:.5,mt:.5},children:e.map(t=>(0,ms.jsxs)(Us,{disableGutters:!0,disablePadding:!0,sx:{py:.25,display:"flex",alignItems:"baseline"},children:[(0,ms.jsx)(X,{component:"span",sx:{mr:1,fontSize:"0.875rem",color:"text.secondary"},children:"\u2610"}),(0,ms.jsx)(de,{component:"span",className:"markdown",sx:{fontSize:"0.875rem",color:"text.secondary"},dangerouslySetInnerHTML:{__html:ke.parseInline(t)}})]},t))})]})}var ZL=_(I(),1);var YL=_(I(),1),bn=_(R(),1);function XL({phaseName:e,onConfirm:t,onCancel:r}){let[o,i]=(0,YL.useState)("");return(0,bn.jsxs)(lu,{open:!0,onClose:r,maxWidth:"xs",fullWidth:!0,children:[(0,bn.jsxs)(pu,{children:["Rewind to ",e,"?"]}),(0,bn.jsxs)(uu,{children:[(0,bn.jsx)(X,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"This will mark all later phases as incomplete."}),(0,bn.jsx)(Zt,{fullWidth:!0,multiline:!0,rows:3,size:"small",placeholder:"Reason for rewinding...",value:o,onChange:n=>i(n.target.value)})]}),(0,bn.jsxs)(cu,{children:[(0,bn.jsx)(Re,{onClick:r,children:"Cancel"}),(0,bn.jsx)(Re,{variant:"contained",color:"warning",disabled:o.trim().length===0,onClick:()=>t(o.trim()),children:"Rewind"})]})]})}var ql=_(R(),1);function QL({itemId:e,phaseNumber:t,phaseName:r,onRewound:o}){let i=So(),[n,s]=(0,ZL.useState)(!1);return(0,ql.jsxs)(ql.Fragment,{children:[(0,ql.jsx)(Re,{size:"small",color:"warning",variant:"outlined",onClick:()=>s(!0),sx:{ml:"auto",textTransform:"none",fontSize:"0.75rem"},children:"Rewind"}),n&&(0,ql.jsx)(XL,{phaseName:r,onConfirm:async a=>{await jN(e,t,a,i),await o()},onCancel:()=>s(!1)})]})}var Ep=_(R(),1),eY={done:{label:"Done",color:"success"},current:{label:"In Progress",color:"info"},upcoming:{label:"Upcoming",color:"default"}},tY={alignItems:"center",mb:1},rY={fontWeight:500},oY={fontWeight:500,fontSize:"0.75rem"};function JL({phase:e,index:t,status:r,itemId:o,onRewind:i}){let n=eY[r],s=r==="done"&&o!==void 0&&i;return(0,Ep.jsxs)(Ae,{direction:"row",spacing:1,sx:tY,children:[(0,Ep.jsxs)(X,{sx:rY,children:["Phase ",t+1,": ",e.name]}),(0,Ep.jsx)(ni,{label:n.label,size:"small",color:n.color,sx:oY}),s&&(0,Ep.jsx)(QL,{itemId:o,phaseNumber:t+1,phaseName:e.name,onRewound:i})]})}var kp=_(R(),1);function e5({tasks:e,marker:t}){return(0,kp.jsx)(sn,{disablePadding:!0,sx:{ml:.5},children:e.map(r=>(0,kp.jsxs)(Us,{disableGutters:!0,disablePadding:!0,sx:{py:.25,display:"flex",alignItems:"baseline"},children:[(0,kp.jsx)(X,{component:"span",sx:{color:"text.secondary",mr:1},children:t}),(0,kp.jsx)(de,{component:"span",className:"markdown",dangerouslySetInnerHTML:{__html:ke.parseInline(r.task)}})]},r.task))})}var Op=_(R(),1),iY={done:{borderColor:"success.light",bgcolor:"success.light"},current:{borderColor:"info.main",bgcolor:"info.light",ring:"info.light"},upcoming:{borderColor:"divider",bgcolor:"background.paper"}};function nY(e){return{p:2,borderColor:e.borderColor,bgcolor:e.bgcolor,...e.ring?{boxShadow:"0 0 0 2px",borderColor:"info.main"}:{}}}var sY={done:"\u2713",current:"\u2022",upcoming:"\u2022"};function t5({phase:e,index:t,status:r,itemId:o,onRewind:i}){let n=e.manualChecks??[];return(0,Op.jsxs)(St,{variant:"outlined",sx:nY(iY[r]),children:[(0,Op.jsx)(JL,{phase:e,index:t,status:r,itemId:o,onRewind:i}),(0,Op.jsx)(e5,{tasks:e.tasks,marker:sY[r]}),n.length>0&&(0,Op.jsx)(GL,{checks:n})]})}var Mp=_(R(),1);function aY(e,t){if(t===void 0)return"upcoming";let r=e+1;return r<t?"done":r===t?"current":"upcoming"}function r5({phases:e,currentPhase:t,itemId:r,onRewind:o}){return e.length===0?null:(0,Mp.jsxs)(de,{sx:{mb:2},children:[(0,Mp.jsx)(X,{variant:"overline",sx:{color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"},children:"Plan"}),(0,Mp.jsx)(Ae,{spacing:1.5,children:e.map((i,n)=>(0,Mp.jsx)(t5,{phase:i,index:n,status:aY(n,t),itemId:r,onRewind:o},i.name))})]})}var Wi=_(R(),1),lY={color:"text.secondary",mb:1,display:"block",letterSpacing:"0.08em"};function o5({item:e,onStatusChange:t,onRewind:r,onCommentDeleted:o}){return(0,Wi.jsxs)(St,{variant:"outlined",sx:{p:3},children:[(0,Wi.jsx)(X,{variant:"h5",component:"h2",children:e.name}),(0,Wi.jsx)(VL,{item:e,onStatusChange:t}),e.description&&(0,Wi.jsxs)(de,{sx:{mb:2},children:[(0,Wi.jsx)(X,{variant:"overline",sx:lY,children:"Description"}),(0,Wi.jsx)(qL,{content:e.description})]}),(0,Wi.jsx)(LL,{criteria:e.acceptanceCriteria}),e.plan&&(0,Wi.jsx)(r5,{phases:e.plan,currentPhase:e.currentPhase,itemId:e.id,onRewind:r}),e.comments&&(0,Wi.jsx)($L,{comments:e.comments,itemId:e.id,onCommentDeleted:o})]})}var _n=_(R(),1),cY={justifyContent:"space-between",alignItems:"center",mb:2};function uY({itemId:e,onDeleted:t}){let r=_o();return(0,_n.jsxs)(Ae,{direction:"row",sx:cY,children:[(0,_n.jsx)(sb,{to:"/backlog"}),(0,_n.jsxs)(Ae,{direction:"row",spacing:1,children:[(0,_n.jsx)(Re,{variant:"contained",color:"inherit",size:"small",onClick:()=>r(`/backlog/items/${e}/edit`),children:"Edit"}),(0,_n.jsx)(NL,{itemId:e,onDeleted:t})]})]})}function i5({item:e,onReload:t}){let r=_o(),o=So(),i=async()=>{await t(),r("/backlog")},n=async s=>{await $N(e.id,s,o),await t()};return(0,_n.jsxs)(de,{children:[(0,_n.jsx)(uY,{itemId:e.id,onDeleted:i}),(0,_n.jsx)(o5,{item:e,onStatusChange:n,onRewind:t,onCommentDeleted:t})]})}var H1=_(R(),1);function U1({items:e,mode:t,onReload:r}){let{id:o}=c1(),i=Number(o),n=e.find(s=>s.id===i);return n?t==="edit"?(0,H1.jsx)(gb,{item:n,onReload:r,backTo:`/backlog/items/${i}`}):(0,H1.jsx)(i5,{item:n,onReload:r}):null}var Vi=_(R(),1);function n5({items:e,loading:t,onReload:r}){return(0,Vi.jsxs)(Fl,{children:[(0,Vi.jsx)(Wo,{index:!0,element:(0,Vi.jsx)(AL,{items:e,loading:t})}),(0,Vi.jsx)(Wo,{path:"items/:id",element:(0,Vi.jsx)(U1,{items:e,mode:"detail",onReload:r})}),(0,Vi.jsx)(Wo,{path:"items/:id/edit",element:(0,Vi.jsx)(U1,{items:e,mode:"edit",onReload:r})}),(0,Vi.jsx)(Wo,{path:"add",element:(0,Vi.jsx)(gb,{onReload:r,backTo:"/backlog"})})]})}var ys=_(I(),1);function s5(){let e=So(),[t,r]=(0,ys.useState)([]),[o,i]=(0,ys.useState)(!0),[n,s]=(0,ys.useState)(!0),a=(0,ys.useCallback)(async()=>{r(await lb(void 0,e)),i(!1)},[e]);(0,ys.useEffect)(()=>{i(!0),s(!0),(async()=>{if(await LN(e)){await a();return}s(!1),r([]),i(!1)})()},[e,a]);let l=(0,ys.useCallback)(async()=>{await IN(e),s(!0),i(!0),await a()},[e,a]);return{items:t,loading:o,exists:n,reload:a,initialize:l}}var Th=_(R(),1);function a5(){let{items:e,loading:t,exists:r,reload:o,initialize:i}=s5();return r?(0,Th.jsx)(Fl,{children:(0,Th.jsx)(Wo,{path:"/*",element:(0,Th.jsx)(n5,{items:e,loading:t,onReload:o})})}):(0,Th.jsx)(BN,{onInit:i})}var fz=_(I(),1);var Db=_(I(),1);var $1={"assist-draft":{label:"\u25B6 /draft",args:["draft"]},"assist-bug":{label:"\u25B6 /bug",args:["bug"]},"assist-next":{label:"\u25B6 /next",args:["next"]}};function pY(e){return e in $1}function dY(e){return[...$1[e].args]}function l5(e,t,r,o){if(pY(e)&&t){r(dY(e),t);return}o(e)}var c5=Object.entries($1).map(([e,{label:t}])=>({value:e,label:t})),u5="Enter prompt...";var Ch=_(R(),1),fY={textTransform:"none",fontSize:13,py:.25,px:1.25};function p5({onSelect:e}){return(0,Ch.jsx)(Ch.Fragment,{children:c5.map(t=>(0,Ch.jsx)(Re,{size:"small",variant:"outlined",onClick:()=>e(t.value),sx:fY,children:t.label},t.value))})}var f5=_(R(),1);function hY(e){return(e.params?.length??0)>0}function d5({config:e,active:t,onClick:r}){return(0,f5.jsxs)(Re,{size:"small",variant:t?"contained":"outlined",onClick:r,sx:{textTransform:"none",fontSize:13,py:.25,px:1.25},children:[!hY(e)&&"\u25B6 ",e.name]})}var Kl=_(R(),1);function h5({configs:e,selectedRun:t,onSelectRun:r,hiddenCount:o}){return(0,Kl.jsxs)(Kl.Fragment,{children:[e.map(i=>(0,Kl.jsx)(d5,{config:i,active:t===i.name,onClick:()=>r(i.name)},i.name)),o>0&&(0,Kl.jsxs)(X,{variant:"caption",color:"text.disabled",children:["+",o," more"]})]})}var wh=_(R(),1),mY=10;function m5({onSelectMode:e,runConfigs:t,totalRunCount:r,selectedRun:o,onSelectRun:i}){let n=t.slice(0,mY);return(0,wh.jsxs)(Ae,{direction:"row",spacing:.5,sx:{flexWrap:"wrap",alignItems:"center"},children:[(0,wh.jsx)(p5,{onSelect:a=>{i(null),e(a)}}),(0,wh.jsx)(h5,{configs:n,selectedRun:o,onSelectRun:i,hiddenCount:r-n.length})]})}var Rh=_(R(),1);function y5({prompt:e,setPrompt:t}){return(0,Rh.jsxs)(Ae,{direction:"row",spacing:1,children:[(0,Rh.jsx)(Zt,{value:e,onChange:r=>t(r.target.value),placeholder:u5,size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:13}}}}),(0,Rh.jsx)(Re,{type:"submit",variant:"contained",size:"small",sx:{whiteSpace:"nowrap"},children:"Start"})]})}var Ph=_(R(),1);function yY(e){let t=e.description?` \u2014 ${e.description}`:"";return e.required?`${e.name} *${t}`:`${e.name}${t}`}function g5({config:e,values:t,onChange:r}){let o=e.params??[],i=(n,s)=>r({...t,[n]:s});return(0,Ph.jsxs)(Ae,{spacing:.75,children:[o.map(n=>(0,Ph.jsx)(Zt,{label:yY(n),value:t[n.name]??n.default??"",onChange:s=>i(n.name,s.target.value),placeholder:n.default??"",size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:13}},inputLabel:{sx:{fontSize:11},shrink:!0}}},n.name)),(0,Ph.jsxs)(Re,{type:"submit",variant:"contained",size:"small",children:["Run ",e.name]})]})}var xa=_(R(),1);function v5({form:e,totalRunCount:t}){let r=e.selectedRun?e.filteredRunConfigs.find(o=>o.name===e.selectedRun):null;return(0,xa.jsxs)(xa.Fragment,{children:[(0,xa.jsx)(m5,{onSelectMode:e.handleSelectMode,runConfigs:e.filteredRunConfigs,totalRunCount:t,selectedRun:e.selectedRun,onSelectRun:e.handleSelectRun}),e.selectedRun&&r?(0,xa.jsx)(g5,{config:r,values:e.runParams,onChange:e.setRunParams}):(0,xa.jsx)(y5,{prompt:e.prompt,setPrompt:e.setPrompt})]})}var Gl=_(I(),1);function b5(e,t,r,o){return e&&!t.find(n=>n.name===e)?.params?.length?(o(e,[],r),null):e}function _5(e,t,r){r(e.trim(),t)}function S5(e,t){return(e?.params??[]).map(r=>t[r.name]?.trim()).filter(Boolean)}function x5(e){if(e.selectedRun){let t=e.configs.find(r=>r.name===e.selectedRun);return e.onCreateRun(e.selectedRun,S5(t,e.runParams),e.cwd),"run"}return _5(e.prompt,e.cwd,e.onCreate),"claude"}var Tb=_(I(),1);function T5(e,t){if(!t)return!0;let o=(t.includes("*")?t:`*${t}*`).replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${o}$`,"i").test(e)}function C5(e){let[t,r]=(0,Tb.useState)(""),o=(0,Tb.useMemo)(()=>e.filter(i=>T5(i.name,t)),[e,t]);return{runFilter:t,setRunFilter:r,filteredRunConfigs:o}}function w5(e){let{runConfigs:t,onCreateRun:r,onRequestRunConfigs:o}=e,{selectedCwd:i}=nb(),[n,s]=(0,Gl.useState)("free"),[a,l]=(0,Gl.useState)(""),[c,u]=(0,Gl.useState)(null),[p,f]=(0,Gl.useState)({}),d=C5(t);return(0,Gl.useEffect)(()=>{i&&o(i)},[i,o]),{selectedCwd:i,mode:n,prompt:a,setPrompt:l,selectedRun:c,runParams:p,setRunParams:f,...d,handleSelectRun(h){u(b5(h,t,i,r)),f({})},handleSelectMode(h){u(null),l5(h,i,e.onCreateAssist,s)},handleSubmit(h){if(h.preventDefault(),!i)return;x5({selectedRun:c,runParams:p,prompt:a,cwd:i,configs:t,onCreate:e.onCreate,onCreateRun:e.onCreateRun})==="run"?f({}):l("")}}}var Dp=_(R(),1);function R5(e){let{runConfigs:t}=e,r=w5(e),o=r.selectedCwd!=="";return(0,Dp.jsxs)(de,{component:"form",onSubmit:r.handleSubmit,sx:{p:1.5,borderTop:1,borderColor:"divider",display:"flex",flexDirection:"column",gap:1},children:[t.length>0&&(0,Dp.jsx)(Zt,{value:r.runFilter,onChange:i=>r.setRunFilter(i.target.value),placeholder:"Filter runs...",size:"small",fullWidth:!0,slotProps:{input:{sx:{fontSize:13}}}}),o?(0,Dp.jsx)(v5,{form:r,totalRunCount:t.length}):(0,Dp.jsx)(X,{variant:"caption",color:"text.disabled",sx:{py:.75},children:"Select a repo in the toolbar to create a session"})]})}var P5=_(R(),1),E5=_e((0,P5.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var j1=_(R(),1);function k5({onDismiss:e}){return(0,j1.jsx)(ii,{size:"small",onClick:t=>{t.stopPropagation(),e()},title:"Dismiss",sx:{color:"text.disabled","&:hover":{color:"text.primary"}},children:(0,j1.jsx)(E5,{sx:{fontSize:16}})})}var O5=_(R(),1),M5=_e((0,O5.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var W1=_(R(),1);function D5({onRetry:e}){return(0,W1.jsx)(ii,{size:"small",onClick:t=>{t.stopPropagation(),e()},title:"Retry",sx:{color:"text.disabled","&:hover":{color:"text.primary"}},children:(0,W1.jsx)(M5,{sx:{fontSize:14}})})}var Ap=_(R(),1);function Cb(e){return{display:"block",width:"100%",textAlign:"left",p:"10px 12px",mb:.5,borderRadius:1.5,bgcolor:e?"action.selected":"background.default",border:1,borderColor:e?"primary.main":"transparent",cursor:"pointer",transition:"background 0.15s","&:hover":e?void 0:{bgcolor:"action.hover"}}}function A5({name:e,isDone:t,onRetry:r,onDismiss:o}){return(0,Ap.jsxs)(de,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,Ap.jsx)(X,{variant:"body2",noWrap:!0,sx:{flex:1,color:"text.primary"},children:e}),t&&r&&(0,Ap.jsx)(D5,{onRetry:r}),t&&(0,Ap.jsx)(k5,{onDismiss:o})]})}var Yl=_(R(),1),gY={running:"success.main",waiting:"warning.main",done:"info.main"};function B5({status:e,elapsed:t,restored:r}){return(0,Yl.jsxs)(de,{sx:{display:"flex",justifyContent:"space-between",mt:.5},children:[(0,Yl.jsxs)(de,{sx:{display:"flex",gap:1},children:[(0,Yl.jsxs)(X,{variant:"caption",sx:{color:gY[e]},children:["\u25CF ",e]}),r!==void 0&&(0,Yl.jsx)(X,{variant:"caption",sx:{color:r?"success.main":"warning.main"},children:r?"restored":"not restored"})]}),(0,Yl.jsx)(X,{variant:"caption",color:"text.disabled",children:t})]})}var wb=_(I(),1);function N5(e){let[,t]=(0,wb.useState)(0);(0,wb.useEffect)(()=>{let n=setInterval(()=>t(s=>s+1),1e3);return()=>clearInterval(n)},[]);let r=Math.floor((Date.now()-e)/1e3),o=Math.floor(r/60),i=r%60;return o>=60?`${Math.floor(o/60)}h ${o%60}m`:o>0?`${o}m ${i}s`:`${i}s`}var Eh=_(R(),1);function L5({session:e,active:t,onClick:r,onRetry:o,onDismiss:i}){let n=N5(e.startedAt);return(0,Eh.jsxs)(Bt,{onClick:r,sx:Cb(t),children:[(0,Eh.jsx)(A5,{name:e.name,isDone:e.status==="done",onRetry:o,onDismiss:i}),(0,Eh.jsx)(B5,{status:e.status,elapsed:n,restored:e.restored})]})}var kh=_(R(),1);function I5({sessions:e,activeId:t,onSelect:r,onRetry:o,onDismiss:i}){return(0,kh.jsxs)(de,{sx:{flex:1,overflow:"auto",p:1},children:[e.map(n=>(0,kh.jsx)(L5,{session:n,active:n.id===t,onClick:()=>r(n.id),onRetry:(n.commandType==="run"||n.commandType==="assist")&&n.status==="done"?()=>o(n.id):void 0,onDismiss:()=>i(n.id)},n.id)),e.length===0&&(0,kh.jsx)(X,{variant:"caption",color:"text.disabled",sx:{display:"block",textAlign:"center",p:2},children:"No sessions yet"})]})}var Xl=_(R(),1);function z5({sessions:e,activeId:t,run:r,onSelect:o,onCreate:i,onCreateAssist:n,onRetry:s,onDismiss:a}){return(0,Xl.jsxs)(Xl.Fragment,{children:[(0,Xl.jsx)(I5,{sessions:e,activeId:t,onSelect:o,onRetry:s,onDismiss:a}),(0,Xl.jsx)(R5,{runConfigs:r.configs,onCreate:i,onCreateRun:r.create,onCreateAssist:n,onRequestRunConfigs:r.requestConfigs})]})}var Mb=_(I(),1);function F5(e){let t=Date.now()-new Date(e).getTime(),r=Math.floor(t/1e3);if(r<60)return"just now";let o=Math.floor(r/60);if(o<60)return`${o}m ago`;let i=Math.floor(o/60);if(i<24)return`${i}h ago`;let n=Math.floor(i/24);return n<30?`${n}d ago`:`${Math.floor(n/30)}mo ago`}var Zl=_(R(),1);function H5({session:e,onResume:t}){return(0,Zl.jsxs)(Bt,{onClick:()=>t(e),sx:Cb(!1),children:[(0,Zl.jsx)(X,{variant:"body2",noWrap:!0,sx:{color:"text.primary"},children:e.name}),(0,Zl.jsxs)(de,{sx:{display:"flex",justifyContent:"space-between",mt:.5},children:[(0,Zl.jsx)(X,{variant:"caption",color:"info.main",children:e.project}),(0,Zl.jsx)(X,{variant:"caption",color:"text.disabled",children:F5(e.timestamp)})]})]})}var Pb=_(I(),1);var U5=_(R(),1),$5=_e((0,U5.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");var j5=_(R(),1),W5=_e((0,j5.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");var Rb=_(R(),1);function V5({label:e,open:t,onClick:r}){return(0,Rb.jsx)(Re,{size:"small",variant:"outlined",onClick:r,endIcon:t?(0,Rb.jsx)(W5,{}):(0,Rb.jsx)($5,{}),sx:{textTransform:"none",fontSize:11,justifyContent:"space-between",maxWidth:"100%",overflow:"hidden"},fullWidth:!0,children:e})}var Ob=_(R(),1),Eb={position:"absolute",top:"100%",left:0,right:0,mt:.25,maxHeight:200,overflowY:"auto",zIndex:10};function kb({label:e,children:t}){let[r,o]=(0,Pb.useState)(!1),i=(0,Pb.useRef)(null);return(0,Ob.jsxs)(St,{component:"fieldset",ref:i,variant:"outlined",sx:{position:"relative",border:"none",m:0,p:0},onBlur:n=>{i.current?.contains(n.relatedTarget)||o(!1)},children:[(0,Ob.jsx)(V5,{label:e,open:r,onClick:()=>o(!r)}),r&&t(()=>o(!1))]})}var Bp=_(R(),1);function q5({items:e,selected:t,onToggle:r}){return(0,Bp.jsx)(fl,{dense:!0,sx:Eb,children:e.map(o=>(0,Bp.jsxs)(Un,{onClick:()=>r(o),dense:!0,children:[(0,Bp.jsx)(L0,{size:"small",checked:t.has(o),sx:{p:0,mr:1}}),(0,Bp.jsx)(J0,{primary:o,slotProps:{primary:{variant:"caption"}}})]},o))})}var V1=_(R(),1);function vY(e){return e.size===0?"All projects":e.size===1?[...e][0]:`${e.size} projects`}function K5({projects:e,selected:t,onChange:r}){let o=i=>{let n=new Set(t);n.has(i)?n.delete(i):n.add(i),r(n)};return(0,V1.jsx)(kb,{label:vY(t),children:()=>(0,V1.jsx)(q5,{items:e,selected:t,onToggle:o})})}function G5(e){let t=new Set;for(let r of e)t.add(r.project);return[...t].sort()}function Y5(e,t){return t.size===0?e:e.filter(r=>t.has(r.project))}var Sn=_(R(),1);function bY({hasAny:e}){return(0,Sn.jsx)(X,{variant:"caption",color:"text.disabled",sx:{display:"block",textAlign:"center",p:2},children:e?"No sessions match filter":"No session history"})}function _Y({sessions:e,onResume:t}){return(0,Sn.jsxs)(de,{sx:{flex:1,overflow:"auto",p:1},children:[e.map(r=>(0,Sn.jsx)(H5,{session:r,onResume:t},r.sessionId)),e.length===0&&(0,Sn.jsx)(bY,{hasAny:!1})]})}function X5({sessions:e,onResume:t}){let[r,o]=(0,Mb.useState)(new Set),i=(0,Mb.useMemo)(()=>G5(e),[e]),n=Y5(e,r);return(0,Sn.jsxs)(de,{sx:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[i.length>1&&(0,Sn.jsx)(de,{sx:{px:1,pt:1},children:(0,Sn.jsx)(K5,{projects:i,selected:r,onChange:o})}),(0,Sn.jsx)(_Y,{sessions:n,onResume:t})]})}var Oh=_(R(),1),Z5={minHeight:36,py:0,fontSize:12};function Q5({tab:e,activeCount:t,historyCount:r,onChange:o}){return(0,Oh.jsxs)(hf,{value:e==="active"?0:1,onChange:(n,s)=>o(s===0?"active":"history"),variant:"fullWidth",sx:{borderBottom:1,borderColor:"divider",minHeight:36},children:[(0,Oh.jsx)(hl,{label:`Active ${t}`,sx:Z5}),(0,Oh.jsx)(hl,{label:`History ${r}`,sx:Z5})]})}var Np=_(R(),1),SY={width:280,minWidth:280,borderRight:1,borderColor:"divider",display:"flex",flexDirection:"column",bgcolor:"background.paper"};function J5(e){return(0,Np.jsxs)(de,{sx:SY,children:[(0,Np.jsx)(Q5,{tab:e.tab,activeCount:e.sessions.length,historyCount:e.history.length,onChange:e.onTabChange}),e.tab==="active"?(0,Np.jsx)(z5,{sessions:e.sessions,activeId:e.activeId,run:e.run,onSelect:e.onSelect,onCreate:e.onCreate,onCreateAssist:e.onCreateAssist,onRetry:e.onRetry,onDismiss:e.onDismiss}):(0,Np.jsx)(X5,{sessions:e.history,onResume:e.onResume})]})}var tI=_(R(),1);function eI({socket:e,tab:t,onTabChange:r}){let o=(0,Db.useCallback)(n=>{e.resumeSession(n.sessionId,n.cwd,n.name),r("active")},[e.resumeSession,r]),i=(0,Db.useMemo)(()=>({configs:e.runConfigs,create:e.createRunSession,requestConfigs:e.requestRunConfigs}),[e.runConfigs,e.createRunSession,e.requestRunConfigs]);return(0,tI.jsx)(J5,{sessions:e.sessions,history:e.history,run:i,activeId:e.activeId,tab:t,onTabChange:r,onSelect:e.setActiveId,onCreate:e.createSession,onCreateAssist:e.createAssistSession,onResume:o,onRetry:e.retrySession,onDismiss:e.dismissSession})}var cz=_(I(),1);var em=_(I(),1);var xY=2,TY=1,rI=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),i=Math.max(0,parseInt(r.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),s={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},a=s.top+s.bottom,l=s.right+s.left,c=o-a,u=i-l-t;return{cols:Math.max(xY,Math.floor(u/e.css.cell.width)),rows:Math.max(TY,Math.floor(c/e.css.cell.height))}}};var s3=Object.defineProperty,CY=Object.getOwnPropertyDescriptor,wY=(e,t)=>{for(var r in t)s3(e,r,{get:t[r],enumerable:!0})},jt=(e,t,r,o)=>{for(var i=o>1?void 0:o?CY(t,r):t,n=e.length-1,s;n>=0;n--)(s=e[n])&&(i=(o?s(t,r,i):s(i))||i);return o&&i&&s3(t,r,i),i},te=(e,t)=>(r,o)=>t(r,o,e),oI="Terminal input",lC={get:()=>oI,set:e=>oI=e},iI="Too much output to announce, navigate to rows manually to read",cC={get:()=>iI,set:e=>iI=e};function RY(e){return e.replace(/\r?\n/g,"\r")}function PY(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function EY(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function kY(e,t,r,o){if(e.stopPropagation(),e.clipboardData){let i=e.clipboardData.getData("text/plain");a3(i,t,r,o)}}function a3(e,t,r,o){e=RY(e),e=PY(e,r.decPrivateModes.bracketedPasteMode&&o.rawOptions.ignoreBracketedPasteMode!==!0),r.triggerDataEvent(e,!0),t.value=""}function l3(e,t,r){let o=r.getBoundingClientRect(),i=e.clientX-o.left-10,n=e.clientY-o.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${i}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function nI(e,t,r,o,i){l3(e,t,r),i&&o.rightClickSelect(e),t.value=o.selectionText,t.select()}function Pa(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function o_(e,t=0,r=e.length){let o="";for(let i=t;i<r;++i){let n=e[i];n>65535?(n-=65536,o+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):o+=String.fromCharCode(n)}return o}var OY=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let r=e.length;if(!r)return 0;let o=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[o++]=(this._interim-55296)*1024+n-56320+65536:(t[o++]=this._interim,t[o++]=n),this._interim=0}for(let n=i;n<r;++n){let s=e.charCodeAt(n);if(55296<=s&&s<=56319){if(++n>=r)return this._interim=s,o;let a=e.charCodeAt(n);56320<=a&&a<=57343?t[o++]=(s-55296)*1024+a-56320+65536:(t[o++]=s,t[o++]=a);continue}s!==65279&&(t[o++]=s)}return o}},MY=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let r=e.length;if(!r)return 0;let o=0,i,n,s,a,l=0,c=0;if(this.interim[0]){let f=!1,d=this.interim[0];d&=(d&224)===192?31:(d&240)===224?15:7;let h=0,y;for(;(y=this.interim[++h]&63)&&h<4;)d<<=6,d|=y;let b=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,m=b-h;for(;c<m;){if(c>=r)return 0;if(y=e[c++],(y&192)!==128){c--,f=!0;break}else this.interim[h++]=y,d<<=6,d|=y&63}f||(b===2?d<128?c--:t[o++]=d:b===3?d<2048||d>=55296&&d<=57343||d===65279||(t[o++]=d):d<65536||d>1114111||(t[o++]=d)),this.interim.fill(0)}let u=r-4,p=c;for(;p<r;){for(;p<u&&!((i=e[p])&128)&&!((n=e[p+1])&128)&&!((s=e[p+2])&128)&&!((a=e[p+3])&128);)t[o++]=i,t[o++]=n,t[o++]=s,t[o++]=a,p+=4;if(i=e[p++],i<128)t[o++]=i;else if((i&224)===192){if(p>=r)return this.interim[0]=i,o;if(n=e[p++],(n&192)!==128){p--;continue}if(l=(i&31)<<6|n&63,l<128){p--;continue}t[o++]=l}else if((i&240)===224){if(p>=r)return this.interim[0]=i,o;if(n=e[p++],(n&192)!==128){p--;continue}if(p>=r)return this.interim[0]=i,this.interim[1]=n,o;if(s=e[p++],(s&192)!==128){p--;continue}if(l=(i&15)<<12|(n&63)<<6|s&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[o++]=l}else if((i&248)===240){if(p>=r)return this.interim[0]=i,o;if(n=e[p++],(n&192)!==128){p--;continue}if(p>=r)return this.interim[0]=i,this.interim[1]=n,o;if(s=e[p++],(s&192)!==128){p--;continue}if(p>=r)return this.interim[0]=i,this.interim[1]=n,this.interim[2]=s,o;if(a=e[p++],(a&192)!==128){p--;continue}if(l=(i&7)<<18|(n&63)<<12|(s&63)<<6|a&63,l<65536||l>1114111)continue;t[o++]=l}}return o}},c3="",Ea=" ",Xh=class u3{constructor(){this.fg=0,this.bg=0,this.extended=new Gb}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new u3;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Gb=class p3{constructor(t=0,r=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=r}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new p3(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ti=class d3 extends Xh{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Gb,this.combinedData=""}static fromCharData(t){let r=new d3;return r.setFromCharData(t),r}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?Pa(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let r=!1;if(t[1].length>2)r=!0;else if(t[1].length===2){let o=t[1].charCodeAt(0);if(55296<=o&&o<=56319){let i=t[1].charCodeAt(1);56320<=i&&i<=57343?this.content=(o-55296)*1024+i-56320+65536|t[2]<<22:r=!0}else r=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;r&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},sI="di$target",uC="di$dependencies",q1=new Map;function DY(e){return e[uC]||[]}function Sr(e){if(q1.has(e))return q1.get(e);let t=function(r,o,i){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");AY(t,r,i)};return t._id=e,q1.set(e,t),t}function AY(e,t,r){t[sI]===t?t[uC].push({id:e,index:r}):(t[uC]=[{id:e,index:r}],t[sI]=t)}var io=Sr("BufferService"),f3=Sr("CoreMouseService"),nc=Sr("CoreService"),BY=Sr("CharsetService"),qC=Sr("InstantiationService"),h3=Sr("LogService"),no=Sr("OptionsService"),m3=Sr("OscLinkService"),NY=Sr("UnicodeService"),Zh=Sr("DecorationService"),pC=class{constructor(e,t,r){this._bufferService=e,this._optionsService=t,this._oscLinkService=r}provideLinks(e,t){let r=this._bufferService.buffer.lines.get(e-1);if(!r){t(void 0);return}let o=[],i=this._optionsService.rawOptions.linkHandler,n=new Ti,s=r.getTrimmedLength(),a=-1,l=-1,c=!1;for(let u=0;u<s;u++)if(!(l===-1&&!r.hasContent(u))){if(r.loadCell(u,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=u,a=n.extended.urlId;continue}else c=n.extended.urlId!==a;else l!==-1&&(c=!0);if(c||l!==-1&&u===s-1){let p=this._oscLinkService.getLinkData(a)?.uri;if(p){let f={start:{x:l+1,y:e},end:{x:u+(!c&&u===s-1?1:0),y:e}},d=!1;if(!i?.allowNonHttpProtocols)try{let h=new URL(p);["http:","https:"].includes(h.protocol)||(d=!0)}catch{d=!0}d||o.push({text:p,range:f,activate:(h,y)=>i?i.activate(h,y,f):LY(h,y),hover:(h,y)=>i?.hover?.(h,y,f),leave:(h,y)=>i?.leave?.(h,y,f)})}c=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=u,a=n.extended.urlId):(l=-1,a=-1)}}t(o)}};pC=jt([te(0,io),te(1,no),te(2,m3)],pC);function LY(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
204
204
|
|
|
205
205
|
WARNING: This link could potentially be dangerous`)){let r=window.open();if(r){try{r.opener=null}catch{}r.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var i_=Sr("CharSizeService"),Ss=Sr("CoreBrowserService"),KC=Sr("MouseService"),xs=Sr("RenderService"),IY=Sr("SelectionService"),y3=Sr("CharacterJoinerService"),Fp=Sr("ThemeService"),g3=Sr("LinkProviderService"),zY=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?aI.isErrorNoTelemetry(e)?new aI(e.message+`
|
|
206
206
|
|
|
207
207
|
`+e.stack):new Error(e.message+`
|
|
208
208
|
|
|
209
|
-
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},FY=new zY;function zb(e){HY(e)||FY.onUnexpectedError(e)}var dC="Canceled";function HY(e){return e instanceof UY?!0:e instanceof Error&&e.name===dC&&e.message===dC}var UY=class extends Error{constructor(){super(dC),this.name=this.message}};function $Y(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}var aI=class fC extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof fC)return t;let r=new fC;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},hC=class v3 extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,v3.prototype)}};function jY(e,t,r=0,o=e.length){let i=r,n=o;for(;i<n;){let s=Math.floor((i+n)/2);t(e[s])?i=s+1:n=s}return i-1}var WY=class b3{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(b3.assertInvariants){if(this._prevFindLastPredicate){for(let o of this._array)if(this._prevFindLastPredicate(o)&&!t(o))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=jY(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};WY.assertInvariants=!1;function qo(e,t=0){return e[e.length-(1+t)]}var _3;(e=>{function t(n){return n<0}e.isLessThan=t;function r(n){return n<=0}e.isLessThanOrEqual=r;function o(n){return n>0}e.isGreaterThan=o;function i(n){return n===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(_3||(_3={}));function VY(e,t){return(r,o)=>t(e(r),e(o))}var qY=(e,t)=>e-t,lI=class mC{constructor(t){this.iterate=t}forEach(t){this.iterate(r=>(t(r),!0))}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new mC(r=>this.iterate(o=>t(o)?r(o):!0))}map(t){return new mC(r=>this.iterate(o=>r(t(o))))}some(t){let r=!1;return this.iterate(o=>(r=t(o),!r)),r}findFirst(t){let r;return this.iterate(o=>t(o)?(r=o,!1):!0),r}findLast(t){let r;return this.iterate(o=>(t(o)&&(r=o),!0)),r}findLastMaxBy(t){let r,o=!0;return this.iterate(i=>((o||_3.isGreaterThan(t(i,r)))&&(o=!1,r=i),!0)),r}};lI.empty=new lI(e=>{});function KY(e,t){let r=Object.create(null);for(let o of e){let i=t(o),n=r[i];n||(n=r[i]=[]),n.push(o)}return r}var cI,uI,
|
|
209
|
+
`+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}},FY=new zY;function zb(e){HY(e)||FY.onUnexpectedError(e)}var dC="Canceled";function HY(e){return e instanceof UY?!0:e instanceof Error&&e.name===dC&&e.message===dC}var UY=class extends Error{constructor(){super(dC),this.name=this.message}};function $Y(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}var aI=class fC extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof fC)return t;let r=new fC;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},hC=class v3 extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,v3.prototype)}};function jY(e,t,r=0,o=e.length){let i=r,n=o;for(;i<n;){let s=Math.floor((i+n)/2);t(e[s])?i=s+1:n=s}return i-1}var WY=class b3{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(b3.assertInvariants){if(this._prevFindLastPredicate){for(let o of this._array)if(this._prevFindLastPredicate(o)&&!t(o))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=jY(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};WY.assertInvariants=!1;function qo(e,t=0){return e[e.length-(1+t)]}var _3;(e=>{function t(n){return n<0}e.isLessThan=t;function r(n){return n<=0}e.isLessThanOrEqual=r;function o(n){return n>0}e.isGreaterThan=o;function i(n){return n===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(_3||(_3={}));function VY(e,t){return(r,o)=>t(e(r),e(o))}var qY=(e,t)=>e-t,lI=class mC{constructor(t){this.iterate=t}forEach(t){this.iterate(r=>(t(r),!0))}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new mC(r=>this.iterate(o=>t(o)?r(o):!0))}map(t){return new mC(r=>this.iterate(o=>r(t(o))))}some(t){let r=!1;return this.iterate(o=>(r=t(o),!r)),r}findFirst(t){let r;return this.iterate(o=>t(o)?(r=o,!1):!0),r}findLast(t){let r;return this.iterate(o=>(t(o)&&(r=o),!0)),r}findLastMaxBy(t){let r,o=!0;return this.iterate(i=>((o||_3.isGreaterThan(t(i,r)))&&(o=!1,r=i),!0)),r}};lI.empty=new lI(e=>{});function KY(e,t){let r=Object.create(null);for(let o of e){let i=t(o),n=r[i];n||(n=r[i]=[]),n.push(o)}return r}var cI,uI,k3e=class{constructor(e,t){this.toKey=t,this._map=new Map,this[cI]="SetWithKey";for(let r of e)this.add(r)}get size(){return this._map.size}add(e){let t=this.toKey(e);return this._map.set(t,e),this}delete(e){return this._map.delete(this.toKey(e))}has(e){return this._map.has(this.toKey(e))}*entries(){for(let e of this._map.values())yield[e,e]}keys(){return this.values()}*values(){for(let e of this._map.values())yield e}clear(){this._map.clear()}forEach(e,t){this._map.forEach(r=>e.call(t,r,r,this))}[(uI=Symbol.iterator,cI=Symbol.toStringTag,uI)](){return this.values()}},GY=class{constructor(){this.map=new Map}add(e,t){let r=this.map.get(e);r||(r=new Set,this.map.set(e,r)),r.add(t)}delete(e,t){let r=this.map.get(e);r&&(r.delete(t),r.size===0&&this.map.delete(e))}forEach(e,t){let r=this.map.get(e);r&&r.forEach(t)}get(e){return this.map.get(e)||new Set}};function YY(e,t){let r=this,o=!1,i;return function(){if(o)return i;if(o=!0,t)try{i=e.apply(r,arguments)}finally{t()}else i=e.apply(r,arguments);return i}}var S3;(e=>{function t(S){return S&&typeof S=="object"&&typeof S[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function o(){return r}e.empty=o;function*i(S){yield S}e.single=i;function n(S){return t(S)?S:i(S)}e.wrap=n;function s(S){return S||r}e.from=s;function*a(S){for(let C=S.length-1;C>=0;C--)yield S[C]}e.reverse=a;function l(S){return!S||S[Symbol.iterator]().next().done===!0}e.isEmpty=l;function c(S){return S[Symbol.iterator]().next().value}e.first=c;function u(S,C){let w=0;for(let k of S)if(C(k,w++))return!0;return!1}e.some=u;function p(S,C){for(let w of S)if(C(w))return w}e.find=p;function*f(S,C){for(let w of S)C(w)&&(yield w)}e.filter=f;function*d(S,C){let w=0;for(let k of S)yield C(k,w++)}e.map=d;function*h(S,C){let w=0;for(let k of S)yield*C(k,w++)}e.flatMap=h;function*y(...S){for(let C of S)yield*C}e.concat=y;function b(S,C,w){let k=w;for(let O of S)k=C(k,O);return k}e.reduce=b;function*m(S,C,w=S.length){for(C<0&&(C+=S.length),w<0?w+=S.length:w>S.length&&(w=S.length);C<w;C++)yield S[C]}e.slice=m;function g(S,C=Number.POSITIVE_INFINITY){let w=[];if(C===0)return[w,S];let k=S[Symbol.iterator]();for(let O=0;O<C;O++){let A=k.next();if(A.done)return[w,e.empty()];w.push(A.value)}return[w,{[Symbol.iterator](){return k}}]}e.consume=g;async function v(S){let C=[];for await(let w of S)C.push(w);return Promise.resolve(C)}e.asyncToArray=v})(S3||(S3={}));var XY=!1,rc=null,ZY=class x3{constructor(){this.livingDisposables=new Map}getDisposableData(t){let r=this.livingDisposables.get(t);return r||(r={parent:null,source:null,isSingleton:!1,value:t,idx:x3.idx++},this.livingDisposables.set(t,r)),r}trackDisposable(t){let r=this.getDisposableData(t);r.source||(r.source=new Error().stack)}setParent(t,r){let o=this.getDisposableData(t);o.parent=r}markAsDisposed(t){this.livingDisposables.delete(t)}markAsSingleton(t){this.getDisposableData(t).isSingleton=!0}getRootParent(t,r){let o=r.get(t);if(o)return o;let i=t.parent?this.getRootParent(this.getDisposableData(t.parent),r):t;return r.set(t,i),i}getTrackedDisposables(){let t=new Map;return[...this.livingDisposables.entries()].filter(([,r])=>r.source!==null&&!this.getRootParent(r,t).isSingleton).flatMap(([r])=>r)}computeLeakingDisposables(t=10,r){let o;if(r)o=r;else{let l=new Map,c=[...this.livingDisposables.values()].filter(p=>p.source!==null&&!this.getRootParent(p,l).isSingleton);if(c.length===0)return;let u=new Set(c.map(p=>p.value));if(o=c.filter(p=>!(p.parent&&u.has(p.parent))),o.length===0)throw new Error("There are cyclic diposable chains!")}if(!o)return;function i(l){function c(p,f){for(;p.length>0&&f.some(d=>typeof d=="string"?d===p[0]:p[0].match(d));)p.shift()}let u=l.source.split(`
|
|
210
210
|
`).map(p=>p.trim().replace("at ","")).filter(p=>p!=="");return c(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}let n=new GY;for(let l of o){let c=i(l);for(let u=0;u<=c.length;u++)n.add(c.slice(0,u).join(`
|
|
211
211
|
`),l)}o.sort(VY(l=>l.idx,qY));let s="",a=0;for(let l of o.slice(0,t)){a++;let c=i(l),u=[];for(let p=0;p<c.length;p++){let f=c[p];f=`(shared with ${n.get(c.slice(0,p+1).join(`
|
|
212
212
|
`)).size}/${o.length} leaks) at ${f}`;let d=n.get(c.slice(0,p).join(`
|
|
@@ -228,14 +228,14 @@ ${u.join(`
|
|
|
228
228
|
`))}},aX=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},lX=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},cX=0,Fb=class{constructor(e){this.value=e,this.id=cX++}},uX=2,pX=(e,t)=>{if(e instanceof Fb)t(e);else for(let r=0;r<e.length;r++){let o=e[r];o&&t(o)}},Hb;if(oX){let e=[];setInterval(()=>{e.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(e.join(`
|
|
229
229
|
`)),e.length=0)},3e3),Hb=new FinalizationRegistry(t=>{typeof t=="string"&&e.push(t)})}var G=class{constructor(e){this._size=0,this._options=e,this._leakageMon=hI>0||this._options?.leakWarningThreshold?new sX(e?.onListenerError??zb,this._options?.leakWarningThreshold??hI):void 0,this._perfMon=this._options?._profName?new nX(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(fI){let e=this._listeners;queueMicrotask(()=>{pX(e,t=>t.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??(this._event=(e,t,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let l=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new lX(`${a}. HINT: Stack shows most frequent listener (${l[1]}-times)`,l[0]);return(this._options?.onListenerError||zb)(c),Te.None}if(this._disposed)return Te.None;t&&(e=e.bind(t));let o=new Fb(e),i,n;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(o.stack=_C.create(),i=this._leakageMon.check(o.stack,this._size+1)),fI&&(o.stack=n??_C.create()),this._listeners?this._listeners instanceof Fb?(this._deliveryQueue??(this._deliveryQueue=new dX),this._listeners=[this._listeners,o]):this._listeners.push(o):(this._options?.onWillAddFirstListener?.(this),this._listeners=o,this._options?.onDidAddFirstListener?.(this)),this._size++;let s=Rt(()=>{Hb?.unregister(s),i?.(),this._removeListener(o)});if(r instanceof ka?r.add(s):Array.isArray(r)&&r.push(s),Hb){let a=new Error().stack.split(`
|
|
230
230
|
`).slice(2,3).join(`
|
|
231
|
-
`).trim(),l=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(a);Hb.register(s,l?.[2]??a,s)}return s}),this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,r=t.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[r]=void 0;let o=this._deliveryQueue.current===this;if(this._size*uX<=t.length){let i=0;for(let n=0;n<t.length;n++)t[n]?t[i++]=t[n]:o&&(this._deliveryQueue.end--,i<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=i}}_deliver(e,t){if(!e)return;let r=this._options?.onListenerError||zb;if(!r){e.value(t);return}try{e.value(t)}catch(o){r(o)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Fb)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},dX=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,r){this.i=0,this.end=r,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},SC=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new G,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new G,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,r){if(this.getZoomLevel(r)===t)return;let o=this.getWindowId(r);this.mapWindowIdToZoomLevel.set(o,t),this._onDidChangeZoomLevel.fire(o)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,r){this.mapWindowIdToZoomFactor.set(this.getWindowId(r),t)}setFullscreen(t,r){if(this.isFullscreen(r)===t)return;let o=this.getWindowId(r);this.mapWindowIdToFullScreen.set(o,t),this._onDidChangeFullscreen.fire(o)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};SC.INSTANCE=new SC;var GC=SC;function fX(e,t,r){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",r)}var O3e=GC.INSTANCE.onDidChangeZoomLevel;function hX(e){return GC.INSTANCE.getZoomFactor(e)}var M3e=GC.INSTANCE.onDidChangeFullscreen,Hp=typeof navigator=="object"?navigator.userAgent:"",xC=Hp.indexOf("Firefox")>=0,Ub=Hp.indexOf("AppleWebKit")>=0,YC=Hp.indexOf("Chrome")>=0,k3=!YC&&Hp.indexOf("Safari")>=0,D3e=Hp.indexOf("Electron/")>=0,A3e=Hp.indexOf("Android")>=0,$b=!1;if(typeof Yo.matchMedia=="function"){let e=Yo.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=Yo.matchMedia("(display-mode: fullscreen)");$b=e.matches,fX(Yo,e,({matches:r})=>{$b&&t.matches||($b=r)})}function mX(){return $b}var Ip="en",Yb=!1,Xb=!1,Wh=!1,yX=!1,O3=!1,M3=!1,gX=!1,vX=!1,bX=!1,_X=!1,Ab,jb=Ip,mI=Ip,SX,vs,_s=globalThis,Go;typeof _s.vscode<"u"&&typeof _s.vscode.process<"u"?Go=_s.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Go=process);var D3=typeof Go?.versions?.electron=="string",xX=D3&&Go?.type==="renderer";if(typeof Go=="object"){Yb=Go.platform==="win32",Xb=Go.platform==="darwin",Wh=Go.platform==="linux",yX=Wh&&!!Go.env.SNAP&&!!Go.env.SNAP_REVISION,gX=D3,bX=!!Go.env.CI||!!Go.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ab=Ip,jb=Ip;let e=Go.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);Ab=t.userLocale,mI=t.osLocale,jb=t.resolvedLanguage||Ip,SX=t.languagePack?.translationsConfigFile}catch{}O3=!0}else typeof navigator=="object"&&!xX?(vs=navigator.userAgent,Yb=vs.indexOf("Windows")>=0,Xb=vs.indexOf("Macintosh")>=0,vX=(vs.indexOf("Macintosh")>=0||vs.indexOf("iPad")>=0||vs.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wh=vs.indexOf("Linux")>=0,_X=vs?.indexOf("Mobi")>=0,M3=!0,jb=globalThis._VSCODE_NLS_LANGUAGE||Ip,Ab=navigator.language.toLowerCase(),mI=Ab):console.error("Unable to resolve platform.");var K1=0;Xb?K1=1:Yb?K1=3:Wh&&(K1=2);var A3=Yb,wn=Xb,TX=Wh,G1=O3,CX=M3&&typeof _s.importScripts=="function",B3e=CX?_s.origin:void 0,Rn=vs,Ta=jb,wX;(e=>{function t(){return Ta}e.value=t;function r(){return Ta.length===2?Ta==="en":Ta.length>=3?Ta[0]==="e"&&Ta[1]==="n"&&Ta[2]==="-":!1}e.isDefaultVariant=r;function o(){return Ta==="en"}e.isDefault=o})(wX||(wX={}));var RX=typeof _s.postMessage=="function"&&!_s.importScripts,PX=(()=>{if(RX){let e=[];_s.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let o=0,i=e.length;o<i;o++){let n=e[o];if(n.id===r.data.vscodeScheduleAsyncWork){e.splice(o,1),n.callback();return}}});let t=0;return r=>{let o=++t;e.push({id:o,callback:r}),_s.postMessage({vscodeScheduleAsyncWork:o},"*")}}return e=>setTimeout(e)})(),EX=!!(Rn&&Rn.indexOf("Chrome")>=0),N3e=!!(Rn&&Rn.indexOf("Firefox")>=0),L3e=!!(!EX&&Rn&&Rn.indexOf("Safari")>=0),I3e=!!(Rn&&Rn.indexOf("Edg/")>=0),z3e=!!(Rn&&Rn.indexOf("Android")>=0),Ca=typeof navigator=="object"?navigator:{},F3e={clipboard:{writeText:G1||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(Ca&&Ca.clipboard&&Ca.clipboard.writeText),readText:G1||!!(Ca&&Ca.clipboard&&Ca.clipboard.readText)},keyboard:G1||mX()?0:Ca.keyboard||k3?1:2,touch:"ontouchstart"in Yo||Ca.maxTouchPoints>0,pointerEvents:Yo.PointerEvent&&("ontouchstart"in Yo||navigator.maxTouchPoints>0)},XC=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},Y1=new XC,yI=new XC,gI=new XC,kX=new Array(230),B3;(e=>{function t(a){return Y1.keyCodeToStr(a)}e.toString=t;function r(a){return Y1.strToKeyCode(a)}e.fromString=r;function o(a){return yI.keyCodeToStr(a)}e.toUserSettingsUS=o;function i(a){return gI.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function n(a){return yI.strToKeyCode(a)||gI.strToKeyCode(a)}e.fromUserSettings=n;function s(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Y1.keyCodeToStr(a)}e.toElectronAccelerator=s})(B3||(B3={}));var OX=class N3{constructor(t,r,o,i,n){this.ctrlKey=t,this.shiftKey=r,this.altKey=o,this.metaKey=i,this.keyCode=n}equals(t){return t instanceof N3&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){let t=this.ctrlKey?"1":"0",r=this.shiftKey?"1":"0",o=this.altKey?"1":"0",i=this.metaKey?"1":"0";return`K${t}${r}${o}${i}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new MX([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},MX=class{constructor(e){if(e.length===0)throw $Y("chords");this.chords=e}getHashCode(){let e="";for(let t=0,r=this.chords.length;t<r;t++)t!==0&&(e+=";"),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function DX(e){if(e.charCode){let r=String.fromCharCode(e.charCode).toUpperCase();return B3.fromString(r)}let t=e.keyCode;if(t===3)return 7;if(xC)switch(t){case 59:return 85;case 60:if(TX)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(wn)return 57;break}else if(Ub&&(wn&&t===93||!wn&&t===92))return 57;return kX[t]||0}var AX=wn?256:2048,BX=512,NX=1024,LX=wn?2048:256,TC=class{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=DX(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=AX),this.altKey&&(t|=BX),this.shiftKey&&(t|=NX),this.metaKey&&(t|=LX),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new OX(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},vI=new WeakMap;function IX(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,r=e.parent.location;if(t.origin!=="null"&&r.origin!=="null"&&t.origin!==r.origin)return null}catch{return null}return e.parent}var zX=class{static getSameOriginWindowChain(e){let t=vI.get(e);if(!t){t=[],vI.set(e,t);let r=e,o;do o=IX(r),o?t.push({window:new WeakRef(r),iframeElement:r.frameElement||null}):t.push({window:new WeakRef(r),iframeElement:null}),r=o;while(r)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let r=0,o=0,i=this.getSameOriginWindowChain(e);for(let n of i){let s=n.window.deref();if(r+=s?.scrollY??0,o+=s?.scrollX??0,s===t||!n.iframeElement)break;let a=n.iframeElement.getBoundingClientRect();r+=a.top,o+=a.left}return{top:r,left:o}}},zh=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let r=zX.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=r.left,this.posy-=r.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},bI=class{constructor(e,t=0,r=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t;let o=!1;if(YC){let i=navigator.userAgent.match(/Chrome\/(\d+)/);o=(i?parseInt(i[1]):123)<=122}if(e){let i=e,n=e,s=e.view?.devicePixelRatio||1;if(typeof i.wheelDeltaY<"u")o?this.deltaY=i.wheelDeltaY/(120*s):this.deltaY=i.wheelDeltaY/120;else if(typeof n.VERTICAL_AXIS<"u"&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if(e.type==="wheel"){let a=e;a.deltaMode===a.DOM_DELTA_LINE?xC&&!wn?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof i.wheelDeltaX<"u")k3&&A3?this.deltaX=-(i.wheelDeltaX/120):o?this.deltaX=i.wheelDeltaX/(120*s):this.deltaX=i.wheelDeltaX/120;else if(typeof n.HORIZONTAL_AXIS<"u"&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let a=e;a.deltaMode===a.DOM_DELTA_LINE?xC&&!wn?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(o?this.deltaY=e.wheelDelta/(120*s):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}},L3=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),FX;(e=>{function t(r){return r===e.None||r===e.Cancelled||r instanceof HX?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ir.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:L3})})(FX||(FX={}));var HX=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?L3:(this._emitter||(this._emitter=new G),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}};var ZC=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new hC("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new hC("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},UX=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,r=globalThis){if(this.isDisposed)throw new hC("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let o=r.setInterval(()=>{e()},t);this.disposable=Rt(()=>{r.clearInterval(o),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},$X,X1;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?X1=(e,t)=>{PX(()=>{if(r)return;let o=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,o-Date.now())}}))});let r=!1;return{dispose(){r||(r=!0)}}}:X1=(e,t,r)=>{let o=e.requestIdleCallback(t,typeof r=="number"?{timeout:r}:void 0),i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(o))}}},$X=e=>X1(globalThis,e)})();var jX;(e=>{async function t(o){let i,n=await Promise.all(o.map(s=>s.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return n}e.settled=t;function r(o){return new Promise(async(i,n)=>{try{await o(i,n)}catch(s){n(s)}})}e.withAsyncBody=r})(jX||(jX={}));var _I=class Si{static fromArray(t){return new Si(r=>{r.emitMany(t)})}static fromPromise(t){return new Si(async r=>{r.emitMany(await t)})}static fromPromises(t){return new Si(async r=>{await Promise.all(t.map(async o=>r.emitOne(await o)))})}static merge(t){return new Si(async r=>{await Promise.all(t.map(async o=>{for await(let i of o)r.emitOne(i)}))})}constructor(t,r){this._state=0,this._results=[],this._error=null,this._onReturn=r,this._onStateChanged=new G,queueMicrotask(async()=>{let o={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(o)),this.resolve()}catch(i){this.reject(i)}finally{o.emitOne=void 0,o.emitMany=void 0,o.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Ir.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,r){return new Si(async o=>{for await(let i of t)o.emitOne(r(i))})}map(t){return Si.map(this,t)}static filter(t,r){return new Si(async o=>{for await(let i of t)r(i)&&o.emitOne(i)})}filter(t){return Si.filter(this,t)}static coalesce(t){return Si.filter(t,r=>!!r)}coalesce(){return Si.coalesce(this)}static async toPromise(t){let r=[];for await(let o of t)r.push(o);return r}toPromise(){return Si.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};_I.EMPTY=_I.fromArray([]);function WX(e){return 55296<=e&&e<=56319}function SI(e){return 56320<=e&&e<=57343}function VX(e,t){return(e-55296<<10)+(t-56320)+65536}function qX(e){return QC(e,0)}function QC(e,t){switch(typeof e){case"object":return e===null?bs(349,t):Array.isArray(e)?GX(e,t):YX(e,t);case"string":return I3(e,t);case"boolean":return KX(e,t);case"number":return bs(e,t);case"undefined":return bs(937,t);default:return bs(617,t)}}function bs(e,t){return(t<<5)-t+e|0}function KX(e,t){return bs(e?433:863,t)}function I3(e,t){t=bs(149417,t);for(let r=0,o=e.length;r<o;r++)t=bs(e.charCodeAt(r),t);return t}function GX(e,t){return t=bs(104579,t),e.reduce((r,o)=>QC(o,r),t)}function YX(e,t){return t=bs(181387,t),Object.keys(e).sort().reduce((r,o)=>(r=I3(o,r),QC(e[o],r)),t)}function Z1(e,t,r=32){let o=r-t,i=~((1<<o)-1);return(e<<t|(i&e)>>>o)>>>0}function xI(e,t=0,r=e.byteLength,o=0){for(let i=0;i<r;i++)e[t+i]=o}function XX(e,t,r="0"){for(;e.length<t;)e=r+e;return e}function Mh(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join(""):XX((e>>>0).toString(16),t/4)}var ZX=class z3{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let r=t.length;if(r===0)return;let o=this._buff,i=this._buffLen,n=this._leftoverHighSurrogate,s,a;for(n!==0?(s=n,a=-1,n=0):(s=t.charCodeAt(0),a=0);;){let l=s;if(WX(s))if(a+1<r){let c=t.charCodeAt(a+1);SI(c)?(a++,l=VX(s,c)):l=65533}else{n=s;break}else SI(s)&&(l=65533);if(i=this._push(o,i,l),a++,a<r)s=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=n}_push(t,r,o){return o<128?t[r++]=o:o<2048?(t[r++]=192|(o&1984)>>>6,t[r++]=128|(o&63)>>>0):o<65536?(t[r++]=224|(o&61440)>>>12,t[r++]=128|(o&4032)>>>6,t[r++]=128|(o&63)>>>0):(t[r++]=240|(o&1835008)>>>18,t[r++]=128|(o&258048)>>>12,t[r++]=128|(o&4032)>>>6,t[r++]=128|(o&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Mh(this._h0)+Mh(this._h1)+Mh(this._h2)+Mh(this._h3)+Mh(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,xI(this._buff,this._buffLen),this._buffLen>56&&(this._step(),xI(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=z3._bigBlock32,r=this._buffDV;for(let p=0;p<64;p+=4)t.setUint32(p,r.getUint32(p,!1),!1);for(let p=64;p<320;p+=4)t.setUint32(p,Z1(t.getUint32(p-12,!1)^t.getUint32(p-32,!1)^t.getUint32(p-56,!1)^t.getUint32(p-64,!1),1),!1);let o=this._h0,i=this._h1,n=this._h2,s=this._h3,a=this._h4,l,c,u;for(let p=0;p<80;p++)p<20?(l=i&n|~i&s,c=1518500249):p<40?(l=i^n^s,c=1859775393):p<60?(l=i&n|i&s|n&s,c=2400959708):(l=i^n^s,c=3395469782),u=Z1(o,5)+l+a+c+t.getUint32(p*4,!1)&4294967295,a=s,s=n,n=Z1(i,30),i=o,o=u;this._h0=this._h0+o&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+n&4294967295,this._h3=this._h3+s&4294967295,this._h4=this._h4+a&4294967295}};ZX._bigBlock32=new DataView(new ArrayBuffer(320));var{registerWindow:H3e,getWindow:qi,getDocument:U3e,getWindows:$3e,getWindowsCount:j3e,getWindowId:TI,getWindowById:W3e,hasWindow:V3e,onDidRegisterWindow:QX,onWillUnregisterWindow:q3e,onDidUnregisterWindow:K3e}=(function(){let e=new Map,t={window:Yo,disposables:new ka};e.set(Yo.vscodeWindowId,t);let r=new G,o=new G,i=new G;function n(s,a){return(typeof s=="number"?e.get(s):void 0)??(a?t:void 0)}return{onDidRegisterWindow:r.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:o.event,registerWindow(s){if(e.has(s.vscodeWindowId))return Te.None;let a=new ka,l={window:s,disposables:a.add(new ka)};return e.set(s.vscodeWindowId,l),a.add(Rt(()=>{e.delete(s.vscodeWindowId),o.fire(s)})),a.add(ve(s,gr.BEFORE_UNLOAD,()=>{i.fire(s)})),r.fire(l),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(s){return s.vscodeWindowId},hasWindow(s){return e.has(s)},getWindowById:n,getWindow(s){let a=s;if(a?.ownerDocument?.defaultView)return a.ownerDocument.defaultView.window;let l=s;return l?.view?l.view.window:Yo},getDocument(s){return qi(s).document}}})(),JX=class{constructor(e,t,r,o){this._node=e,this._type=t,this._handler=r,this._options=o||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function ve(e,t,r,o){return new JX(e,t,r,o)}function eZ(e,t){return function(r){return t(new zh(e,r))}}function tZ(e){return function(t){return e(new TC(t))}}var CI=function(e,t,r,o){let i=r;return t==="click"||t==="mousedown"||t==="contextmenu"?i=eZ(qi(e),r):(t==="keydown"||t==="keypress"||t==="keyup")&&(i=tZ(r)),ve(e,t,i,o)},rZ,Zb,oZ=class extends UX{constructor(e){super(),this.defaultTarget=e&&qi(e)}cancelAndSet(e,t,r){return super.cancelAndSet(e,t,r??this.defaultTarget)}},Q1=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){zb(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,r=new Map,o=new Map,i=n=>{r.set(n,!1);let s=e.get(n)??[];for(t.set(n,s),e.set(n,[]),o.set(n,!0);s.length>0;)s.sort(Q1.sort),s.shift().execute();o.set(n,!1)};Zb=(n,s,a=0)=>{let l=TI(n),c=new Q1(s,a),u=e.get(l);return u||(u=[],e.set(l,u)),u.push(c),r.get(l)||(r.set(l,!0),n.requestAnimationFrame(()=>i(l))),c},rZ=(n,s,a)=>{let l=TI(n);if(o.get(l)){let c=new Q1(s,a),u=t.get(l);return u||(u=[],t.set(l,u)),u.push(c),c}else return Zb(n,s,a)}})();var wI=class Wb{constructor(t,r){this.width=t,this.height=r}with(t=this.width,r=this.height){return t!==this.width||r!==this.height?new Wb(t,r):this}static is(t){return typeof t=="object"&&typeof t.height=="number"&&typeof t.width=="number"}static lift(t){return t instanceof Wb?t:new Wb(t.width,t.height)}static equals(t,r){return t===r?!0:!t||!r?!1:t.width===r.width&&t.height===r.height}};wI.None=new wI(0,0);function iZ(e){let t=e.getBoundingClientRect(),r=qi(e);return{left:t.left+r.scrollX,top:t.top+r.scrollY,width:t.width,height:t.height}}var G3e=new class{constructor(){this.mutationObservers=new Map}observe(e,t,r){let o=this.mutationObservers.get(e);o||(o=new Map,this.mutationObservers.set(e,o));let i=qX(r),n=o.get(i);if(n)n.users+=1;else{let s=new G,a=new MutationObserver(c=>s.fire(c));a.observe(e,r);let l=n={users:1,observer:a,onDidMutate:s.event};t.add(Rt(()=>{l.users-=1,l.users===0&&(s.dispose(),a.disconnect(),o?.delete(i),o?.size===0&&this.mutationObservers.delete(e))})),o.set(i,n)}return n.onDidMutate}},gr={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Ub?"webkitAnimationStart":"animationstart",ANIMATION_END:Ub?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Ub?"webkitAnimationIteration":"animationiteration"},nZ=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function F3(e,t,r,...o){let i=nZ.exec(t);if(!i)throw new Error("Bad use of emmet");let n=i[1]||"div",s;return e!=="http://www.w3.org/1999/xhtml"?s=document.createElementNS(e,n):s=document.createElement(n),i[3]&&(s.id=i[3]),i[4]&&(s.className=i[4].replace(/\./g," ").trim()),r&&Object.entries(r).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?s[a]=l:a==="selected"?l&&s.setAttribute(a,"true"):s.setAttribute(a,l))}),s.append(...o),s}function sZ(e,t,...r){return F3("http://www.w3.org/1999/xhtml",e,t,...r)}sZ.SVG=function(e,t,...r){return F3("http://www.w3.org/2000/svg",e,t,...r)};var aZ=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingTop="",this._paddingLeft="",this._paddingBottom="",this._paddingRight="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=xo(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=xo(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=xo(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=xo(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=xo(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=xo(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=xo(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=xo(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=xo(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=xo(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=xo(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=xo(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=xo(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=xo(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function xo(e){return typeof e=="number"?`${e}px`:e}function Vh(e){return new aZ(e)}var H3=class{constructor(){this._hooks=new ka,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let r=this._onStopCallback;this._onStopCallback=null,e&&r&&r(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,r,o,i){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=o,this._onStopCallback=i;let n=e;try{e.setPointerCapture(t),this._hooks.add(Rt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{n=qi(e)}this._hooks.add(ve(n,gr.POINTER_MOVE,s=>{if(s.buttons!==r){this.stopMonitoring(!0);return}s.preventDefault(),this._pointerMoveCallback(s)})),this._hooks.add(ve(n,gr.POINTER_UP,s=>this.stopMonitoring(!0)))}};function lZ(e,t,r){let o=null,i=null;if(typeof r.value=="function"?(o="value",i=r.value,i.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof r.get=="function"&&(o="get",i=r.get),!i)throw new Error("not supported");let n=`$memoize$${t}`;r[o]=function(...s){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,s)}),this[n]}}var Cn;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(Cn||(Cn={}));var Fh=class Vr extends Te{constructor(){super(),this.dispatched=!1,this.targets=new dI,this.ignoreTargets=new dI,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Ir.runAndSubscribe(QX,({window:t,disposables:r})=>{r.add(ve(t.document,"touchstart",o=>this.onTouchStart(o),{passive:!1})),r.add(ve(t.document,"touchend",o=>this.onTouchEnd(t,o))),r.add(ve(t.document,"touchmove",o=>this.onTouchMove(o),{passive:!1}))},{window:Yo,disposables:this._store}))}static addTarget(t){if(!Vr.isTouchDevice())return Te.None;Vr.INSTANCE||(Vr.INSTANCE=pI(new Vr));let r=Vr.INSTANCE.targets.push(t);return Rt(r)}static ignoreTarget(t){if(!Vr.isTouchDevice())return Te.None;Vr.INSTANCE||(Vr.INSTANCE=pI(new Vr));let r=Vr.INSTANCE.ignoreTargets.push(t);return Rt(r)}static isTouchDevice(){return"ontouchstart"in Yo||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let o=0,i=t.targetTouches.length;o<i;o++){let n=t.targetTouches.item(o);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:r,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[r],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};let s=this.newGestureEvent(Cn.Start,n.target);s.pageX=n.pageX,s.pageY=n.pageY,this.dispatchEvent(s)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,r){let o=Date.now(),i=Object.keys(this.activeTouches).length;for(let n=0,s=r.changedTouches.length;n<s;n++){let a=r.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}let l=this.activeTouches[a.identifier],c=Date.now()-l.initialTimeStamp;if(c<Vr.HOLD_DELAY&&Math.abs(l.initialPageX-qo(l.rollingPageX))<30&&Math.abs(l.initialPageY-qo(l.rollingPageY))<30){let u=this.newGestureEvent(Cn.Tap,l.initialTarget);u.pageX=qo(l.rollingPageX),u.pageY=qo(l.rollingPageY),this.dispatchEvent(u)}else if(c>=Vr.HOLD_DELAY&&Math.abs(l.initialPageX-qo(l.rollingPageX))<30&&Math.abs(l.initialPageY-qo(l.rollingPageY))<30){let u=this.newGestureEvent(Cn.Contextmenu,l.initialTarget);u.pageX=qo(l.rollingPageX),u.pageY=qo(l.rollingPageY),this.dispatchEvent(u)}else if(i===1){let u=qo(l.rollingPageX),p=qo(l.rollingPageY),f=qo(l.rollingTimestamps)-l.rollingTimestamps[0],d=u-l.rollingPageX[0],h=p-l.rollingPageY[0],y=[...this.targets].filter(b=>l.initialTarget instanceof Node&&b.contains(l.initialTarget));this.inertia(t,y,o,Math.abs(d)/f,d>0?1:-1,u,Math.abs(h)/f,h>0?1:-1,p)}this.dispatchEvent(this.newGestureEvent(Cn.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(r.preventDefault(),r.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,r){let o=document.createEvent("CustomEvent");return o.initEvent(t,!1,!0),o.initialTarget=r,o.tapCount=0,o}dispatchEvent(t){if(t.type===Cn.Tap){let r=new Date().getTime(),o=0;r-this._lastSetTapCountTime>Vr.CLEAR_TAP_COUNT_TIME?o=1:o=2,this._lastSetTapCountTime=r,t.tapCount=o}else(t.type===Cn.Change||t.type===Cn.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let o of this.ignoreTargets)if(o.contains(t.initialTarget))return;let r=[];for(let o of this.targets)if(o.contains(t.initialTarget)){let i=0,n=t.initialTarget;for(;n&&n!==o;)i++,n=n.parentElement;r.push([i,o])}r.sort((o,i)=>o[0]-i[0]);for(let[o,i]of r)i.dispatchEvent(t),this.dispatched=!0}}inertia(t,r,o,i,n,s,a,l,c){this.handle=Zb(t,()=>{let u=Date.now(),p=u-o,f=0,d=0,h=!0;i+=Vr.SCROLL_FRICTION*p,a+=Vr.SCROLL_FRICTION*p,i>0&&(h=!1,f=n*i*p),a>0&&(h=!1,d=l*a*p);let y=this.newGestureEvent(Cn.Change);y.translationX=f,y.translationY=d,r.forEach(b=>b.dispatchEvent(y)),h||this.inertia(t,r,u,i,n,s+f,a,l,c+d)})}onTouchMove(t){let r=Date.now();for(let o=0,i=t.changedTouches.length;o<i;o++){let n=t.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}let s=this.activeTouches[n.identifier],a=this.newGestureEvent(Cn.Change,s.initialTarget);a.translationX=n.pageX-qo(s.rollingPageX),a.translationY=n.pageY-qo(s.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(n.pageX),s.rollingPageY.push(n.pageY),s.rollingTimestamps.push(r)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};Fh.SCROLL_FRICTION=-.005,Fh.HOLD_DELAY=700,Fh.CLEAR_TAP_COUNT_TIME=400,jt([lZ],Fh,"isTouchDevice",1);var cZ=Fh,JC=class extends Te{onclick(e,t){this._register(ve(e,gr.CLICK,r=>t(new zh(qi(e),r))))}onmousedown(e,t){this._register(ve(e,gr.MOUSE_DOWN,r=>t(new zh(qi(e),r))))}onmouseover(e,t){this._register(ve(e,gr.MOUSE_OVER,r=>t(new zh(qi(e),r))))}onmouseleave(e,t){this._register(ve(e,gr.MOUSE_LEAVE,r=>t(new zh(qi(e),r))))}onkeydown(e,t){this._register(ve(e,gr.KEY_DOWN,r=>t(new TC(r))))}onkeyup(e,t){this._register(ve(e,gr.KEY_UP,r=>t(new TC(r))))}oninput(e,t){this._register(ve(e,gr.INPUT,t))}onblur(e,t){this._register(ve(e,gr.BLUR,t))}onfocus(e,t){this._register(ve(e,gr.FOCUS,t))}onchange(e,t){this._register(ve(e,gr.CHANGE,t))}ignoreGesture(e){return cZ.ignoreTarget(e)}},RI=11,uZ=class extends JC{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.style.position="absolute",this.domNode.style.width=RI+"px",this.domNode.style.height=RI+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new H3),this._register(CI(this.bgDomNode,gr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(CI(this.domNode,gr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new oZ),this._pointerdownScheduleRepeatTimer=this._register(new ZC)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,qi(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},pZ=class CC{constructor(t,r,o,i,n,s,a){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(r=r|0,o=o|0,i=i|0,n=n|0,s=s|0,a=a|0),this.rawScrollLeft=i,this.rawScrollTop=a,r<0&&(r=0),i+r>o&&(i=o-r),i<0&&(i=0),n<0&&(n=0),a+n>s&&(a=s-n),a<0&&(a=0),this.width=r,this.scrollWidth=o,this.scrollLeft=i,this.height=n,this.scrollHeight=s,this.scrollTop=a}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,r){return new CC(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,r?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,r?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new CC(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,r){let o=this.width!==t.width,i=this.scrollWidth!==t.scrollWidth,n=this.scrollLeft!==t.scrollLeft,s=this.height!==t.height,a=this.scrollHeight!==t.scrollHeight,l=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:r,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:o,scrollWidthChanged:i,scrollLeftChanged:n,heightChanged:s,scrollHeightChanged:a,scrollTopChanged:l}}},dZ=class extends Te{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new G),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new pZ(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){let r=this._state.withScrollDimensions(e,t);this._setState(r,!!this._smoothScrolling),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;let o;t?o=new EI(this._smoothScrolling.from,r,this._smoothScrolling.startTime,this._smoothScrolling.duration):o=this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=o}else{let r=this._state.withScrollPosition(e);this._smoothScrolling=EI.start(this._state,r,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let r=this._state;r.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(r,t)))}},PI=class{constructor(e,t,r){this.scrollLeft=e,this.scrollTop=t,this.isDone=r}};function J1(e,t){let r=t-e;return function(o){return e+r*mZ(o)}}function fZ(e,t,r){return function(o){return o<r?e(o/r):t((o-r)/(1-r))}}var EI=class wC{constructor(t,r,o,i){this.from=t,this.to=r,this.duration=i,this.startTime=o,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,r,o){if(Math.abs(t-r)>2.5*o){let i,n;return t<r?(i=t+.75*o,n=r-.75*o):(i=t-.75*o,n=r+.75*o),fZ(J1(t,i),J1(n,r),.33)}return J1(t,r)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){let r=(t-this.startTime)/this.duration;if(r<1){let o=this.scrollLeft(r),i=this.scrollTop(r);return new PI(o,i,!1)}return new PI(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,r,o){return wC.start(t,r,o)}static start(t,r,o){o=o+10;let i=Date.now()-10;return new wC(t,r,i,o)}};function hZ(e){return Math.pow(e,3)}function mZ(e){return 1-hZ(1-e)}var yZ=class extends Te{constructor(e,t,r){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=r,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new ZC)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}},gZ=140,U3=class extends JC{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new yZ(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new H3),this._shouldRender=!0,this.domNode=Vh(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(ve(this.domNode.domNode,gr.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new uZ(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,r,o){this.slider=Vh(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof r=="number"&&this.slider.setWidth(r),typeof o=="number"&&this.slider.setHeight(o),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(ve(this.slider.domNode,gr.POINTER_DOWN,i=>{i.button===0&&(i.preventDefault(),this._sliderPointerDown(i))})),this.onclick(this.slider.domNode,i=>{i.leftButton&&i.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,r=t+this._scrollbarState.getSliderPosition(),o=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderPointerPosition(e);r<=i&&i<=o?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,r;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,r=e.offsetY;else{let i=iZ(this.domNode.domNode);t=e.pageX-i.left,r=e.pageY-i.top}let o=this._pointerDownRelativePosition(t,r);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(o):this._scrollbarState.getDesiredScrollPositionFromOffset(o)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),r=this._sliderOrthogonalPointerPosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{let n=this._sliderOrthogonalPointerPosition(i),s=Math.abs(n-r);if(A3&&s>gZ){this._setDesiredScrollPositionNow(o.getScrollPosition());return}let a=this._sliderPointerPosition(i)-t;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(a))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},$3=class RC{constructor(t,r,o,i,n,s){this._scrollbarSize=Math.round(r),this._oppositeScrollbarSize=Math.round(o),this._arrowSize=Math.round(t),this._visibleSize=i,this._scrollSize=n,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new RC(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let r=Math.round(t);return this._visibleSize!==r?(this._visibleSize=r,this._refreshComputedValues(),!0):!1}setScrollSize(t){let r=Math.round(t);return this._scrollSize!==r?(this._scrollSize=r,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let r=Math.round(t);return this._scrollPosition!==r?(this._scrollPosition=r,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,r,o,i,n){let s=Math.max(0,o-t),a=Math.max(0,s-2*r),l=i>0&&i>o;if(!l)return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(o*a/i))),u=(a-c)/(i-o),p=n*u;return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(p)}}_refreshComputedValues(){let t=RC._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize-this._computedSliderSize/2;return Math.round(r/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize,o=this._scrollPosition;return r<this._computedSliderPosition?o-=this._visibleSize:o+=this._visibleSize,o}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let r=this._computedSliderPosition+t;return Math.round(r/this._computedSliderRatio)}},vZ=class extends U3{constructor(e,t,r){let o=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new $3(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,o.width,o.scrollWidth,i.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},bZ=class extends U3{constructor(e,t,r){let o=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new $3(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,o.height,o.scrollHeight,i.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},_Z=500,kI=50,OI=!0,SZ=class{constructor(e,t,r){this.timestamp=e,this.deltaX=t,this.deltaY=r,this.score=0}},PC=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let t=1,r=0,o=1,i=this._rear;do{let n=i===this._front?t:Math.pow(2,-o);if(t-=n,r+=this._memory[i].score*n,i===this._front)break;i=(this._capacity+i-1)%this._capacity,o++}while(!0);return r<=.5}acceptStandardWheelEvent(t){if(YC){let r=qi(t.browserEvent),o=hX(r);this.accept(Date.now(),t.deltaX*o,t.deltaY*o)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,r,o){let i=null,n=new SZ(t,r,o);this._front===-1&&this._rear===-1?(this._memory[0]=n,this._front=0,this._rear=0):(i=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,i)}_computeScore(t,r){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let o=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(o+=.25),r){let i=Math.abs(t.deltaX),n=Math.abs(t.deltaY),s=Math.abs(r.deltaX),a=Math.abs(r.deltaY),l=Math.max(Math.min(i,s),1),c=Math.max(Math.min(n,a),1),u=Math.max(i,s),p=Math.max(n,a);u%l===0&&p%c===0&&(o-=.5)}return Math.min(Math.max(o,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};PC.INSTANCE=new PC;var xZ=PC,TZ=class extends JC{constructor(e,t,r){super(),this._onScroll=this._register(new G),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new G),this.onWillScroll=this._onWillScroll.event,this._options=wZ(t),this._scrollable=r,this._register(this._scrollable.onScroll(i=>{this._onWillScroll.fire(i),this._onDidScroll(i),this._onScroll.fire(i)}));let o={onMouseWheel:i=>this._onMouseWheel(i),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new bZ(this._scrollable,this._options,o)),this._horizontalScrollbar=this._register(new vZ(this._scrollable,this._options,o)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Vh(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Vh(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Vh(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,i=>this._onMouseOver(i)),this.onmouseleave(this._listenOnDomNode,i=>this._onMouseLeave(i)),this._hideTimeout=this._register(new ZC),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=oc(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,wn&&(this._options.className+=" mac"),this._domNode.className="xterm-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new bI(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=oc(this._mouseWheelToDispose),e)){let t=r=>{this._onMouseWheel(new bI(r))};this._mouseWheelToDispose.push(ve(this._listenOnDomNode,gr.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;let t=xZ.INSTANCE;OI&&t.acceptStandardWheelEvent(e);let r=!1;if(e.deltaY||e.deltaX){let i=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+i===0?n=i=0:Math.abs(i)>=Math.abs(n)?n=0:i=0),this._options.flipAxes&&([i,n]=[n,i]);let s=!wn&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||s)&&!n&&(n=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(n=n*this._options.fastScrollSensitivity,i=i*this._options.fastScrollSensitivity);let a=this._scrollable.getFutureScrollPosition(),l={};if(i){let c=kI*i,u=a.scrollTop-(c<0?Math.floor(c):Math.ceil(c));this._verticalScrollbar.writeScrollPosition(l,u)}if(n){let c=kI*n,u=a.scrollLeft-(c<0?Math.floor(c):Math.ceil(c));this._horizontalScrollbar.writeScrollPosition(l,u)}l=this._scrollable.validateScrollPosition(l),(a.scrollLeft!==l.scrollLeft||a.scrollTop!==l.scrollTop)&&(OI&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(l):this._scrollable.setScrollPositionNow(l),r=!0)}let o=r;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,r=e.scrollLeft>0,o=r?" left":"",i=t?" top":"",n=r||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${o}`),this._topShadowDomNode.setClassName(`shadow${i}`),this._topLeftShadowDomNode.setClassName(`shadow${n}${i}${o}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),_Z)}},CZ=class extends TZ{constructor(e,t,r){super(e,t,r)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function wZ(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,wn&&(t.className+=" mac"),t}var EC=class extends Te{constructor(e,t,r,o,i,n,s,a){super(),this._bufferService=r,this._optionsService=s,this._renderService=a,this._onRequestScrollLines=this._register(new G),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let l=this._register(new dZ({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:c=>Zb(o.window,c)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{l.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new CZ(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},l)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(i.onProtocolChange(c=>{this._scrollableElement.updateOptions({handleMouseWheel:!(c&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(Ir.runAndSubscribe(n.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=n.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(Rt(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=o.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(Rt(()=>this._styleElement.remove())),this._register(Ir.runAndSubscribe(n.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${n.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${n.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${n.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
|
|
231
|
+
`).trim(),l=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(a);Hb.register(s,l?.[2]??a,s)}return s}),this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,r=t.indexOf(e);if(r===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[r]=void 0;let o=this._deliveryQueue.current===this;if(this._size*uX<=t.length){let i=0;for(let n=0;n<t.length;n++)t[n]?t[i++]=t[n]:o&&(this._deliveryQueue.end--,i<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=i}}_deliver(e,t){if(!e)return;let r=this._options?.onListenerError||zb;if(!r){e.value(t);return}try{e.value(t)}catch(o){r(o)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Fb)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},dX=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,r){this.i=0,this.end=r,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},SC=class{constructor(){this.mapWindowIdToZoomLevel=new Map,this._onDidChangeZoomLevel=new G,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this.mapWindowIdToZoomFactor=new Map,this._onDidChangeFullscreen=new G,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this.mapWindowIdToFullScreen=new Map}getZoomLevel(t){return this.mapWindowIdToZoomLevel.get(this.getWindowId(t))??0}setZoomLevel(t,r){if(this.getZoomLevel(r)===t)return;let o=this.getWindowId(r);this.mapWindowIdToZoomLevel.set(o,t),this._onDidChangeZoomLevel.fire(o)}getZoomFactor(t){return this.mapWindowIdToZoomFactor.get(this.getWindowId(t))??1}setZoomFactor(t,r){this.mapWindowIdToZoomFactor.set(this.getWindowId(r),t)}setFullscreen(t,r){if(this.isFullscreen(r)===t)return;let o=this.getWindowId(r);this.mapWindowIdToFullScreen.set(o,t),this._onDidChangeFullscreen.fire(o)}isFullscreen(t){return!!this.mapWindowIdToFullScreen.get(this.getWindowId(t))}getWindowId(t){return t.vscodeWindowId}};SC.INSTANCE=new SC;var GC=SC;function fX(e,t,r){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",r)}var M3e=GC.INSTANCE.onDidChangeZoomLevel;function hX(e){return GC.INSTANCE.getZoomFactor(e)}var D3e=GC.INSTANCE.onDidChangeFullscreen,Hp=typeof navigator=="object"?navigator.userAgent:"",xC=Hp.indexOf("Firefox")>=0,Ub=Hp.indexOf("AppleWebKit")>=0,YC=Hp.indexOf("Chrome")>=0,k3=!YC&&Hp.indexOf("Safari")>=0,A3e=Hp.indexOf("Electron/")>=0,B3e=Hp.indexOf("Android")>=0,$b=!1;if(typeof Yo.matchMedia=="function"){let e=Yo.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=Yo.matchMedia("(display-mode: fullscreen)");$b=e.matches,fX(Yo,e,({matches:r})=>{$b&&t.matches||($b=r)})}function mX(){return $b}var Ip="en",Yb=!1,Xb=!1,Wh=!1,yX=!1,O3=!1,M3=!1,gX=!1,vX=!1,bX=!1,_X=!1,Ab,jb=Ip,mI=Ip,SX,vs,_s=globalThis,Go;typeof _s.vscode<"u"&&typeof _s.vscode.process<"u"?Go=_s.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Go=process);var D3=typeof Go?.versions?.electron=="string",xX=D3&&Go?.type==="renderer";if(typeof Go=="object"){Yb=Go.platform==="win32",Xb=Go.platform==="darwin",Wh=Go.platform==="linux",yX=Wh&&!!Go.env.SNAP&&!!Go.env.SNAP_REVISION,gX=D3,bX=!!Go.env.CI||!!Go.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Ab=Ip,jb=Ip;let e=Go.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);Ab=t.userLocale,mI=t.osLocale,jb=t.resolvedLanguage||Ip,SX=t.languagePack?.translationsConfigFile}catch{}O3=!0}else typeof navigator=="object"&&!xX?(vs=navigator.userAgent,Yb=vs.indexOf("Windows")>=0,Xb=vs.indexOf("Macintosh")>=0,vX=(vs.indexOf("Macintosh")>=0||vs.indexOf("iPad")>=0||vs.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Wh=vs.indexOf("Linux")>=0,_X=vs?.indexOf("Mobi")>=0,M3=!0,jb=globalThis._VSCODE_NLS_LANGUAGE||Ip,Ab=navigator.language.toLowerCase(),mI=Ab):console.error("Unable to resolve platform.");var K1=0;Xb?K1=1:Yb?K1=3:Wh&&(K1=2);var A3=Yb,wn=Xb,TX=Wh,G1=O3,CX=M3&&typeof _s.importScripts=="function",N3e=CX?_s.origin:void 0,Rn=vs,Ta=jb,wX;(e=>{function t(){return Ta}e.value=t;function r(){return Ta.length===2?Ta==="en":Ta.length>=3?Ta[0]==="e"&&Ta[1]==="n"&&Ta[2]==="-":!1}e.isDefaultVariant=r;function o(){return Ta==="en"}e.isDefault=o})(wX||(wX={}));var RX=typeof _s.postMessage=="function"&&!_s.importScripts,PX=(()=>{if(RX){let e=[];_s.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let o=0,i=e.length;o<i;o++){let n=e[o];if(n.id===r.data.vscodeScheduleAsyncWork){e.splice(o,1),n.callback();return}}});let t=0;return r=>{let o=++t;e.push({id:o,callback:r}),_s.postMessage({vscodeScheduleAsyncWork:o},"*")}}return e=>setTimeout(e)})(),EX=!!(Rn&&Rn.indexOf("Chrome")>=0),L3e=!!(Rn&&Rn.indexOf("Firefox")>=0),I3e=!!(!EX&&Rn&&Rn.indexOf("Safari")>=0),z3e=!!(Rn&&Rn.indexOf("Edg/")>=0),F3e=!!(Rn&&Rn.indexOf("Android")>=0),Ca=typeof navigator=="object"?navigator:{},H3e={clipboard:{writeText:G1||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(Ca&&Ca.clipboard&&Ca.clipboard.writeText),readText:G1||!!(Ca&&Ca.clipboard&&Ca.clipboard.readText)},keyboard:G1||mX()?0:Ca.keyboard||k3?1:2,touch:"ontouchstart"in Yo||Ca.maxTouchPoints>0,pointerEvents:Yo.PointerEvent&&("ontouchstart"in Yo||navigator.maxTouchPoints>0)},XC=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}},Y1=new XC,yI=new XC,gI=new XC,kX=new Array(230),B3;(e=>{function t(a){return Y1.keyCodeToStr(a)}e.toString=t;function r(a){return Y1.strToKeyCode(a)}e.fromString=r;function o(a){return yI.keyCodeToStr(a)}e.toUserSettingsUS=o;function i(a){return gI.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function n(a){return yI.strToKeyCode(a)||gI.strToKeyCode(a)}e.fromUserSettings=n;function s(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Y1.keyCodeToStr(a)}e.toElectronAccelerator=s})(B3||(B3={}));var OX=class N3{constructor(t,r,o,i,n){this.ctrlKey=t,this.shiftKey=r,this.altKey=o,this.metaKey=i,this.keyCode=n}equals(t){return t instanceof N3&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){let t=this.ctrlKey?"1":"0",r=this.shiftKey?"1":"0",o=this.altKey?"1":"0",i=this.metaKey?"1":"0";return`K${t}${r}${o}${i}${this.keyCode}`}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}toKeybinding(){return new MX([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}},MX=class{constructor(e){if(e.length===0)throw $Y("chords");this.chords=e}getHashCode(){let e="";for(let t=0,r=this.chords.length;t<r;t++)t!==0&&(e+=";"),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}};function DX(e){if(e.charCode){let r=String.fromCharCode(e.charCode).toUpperCase();return B3.fromString(r)}let t=e.keyCode;if(t===3)return 7;if(xC)switch(t){case 59:return 85;case 60:if(TX)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(wn)return 57;break}else if(Ub&&(wn&&t===93||!wn&&t===92))return 57;return kX[t]||0}var AX=wn?256:2048,BX=512,NX=1024,LX=wn?2048:256,TC=class{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState?.("AltGraph"),this.keyCode=DX(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=AX),this.altKey&&(t|=BX),this.shiftKey&&(t|=NX),this.metaKey&&(t|=LX),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new OX(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}},vI=new WeakMap;function IX(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,r=e.parent.location;if(t.origin!=="null"&&r.origin!=="null"&&t.origin!==r.origin)return null}catch{return null}return e.parent}var zX=class{static getSameOriginWindowChain(e){let t=vI.get(e);if(!t){t=[],vI.set(e,t);let r=e,o;do o=IX(r),o?t.push({window:new WeakRef(r),iframeElement:r.frameElement||null}):t.push({window:new WeakRef(r),iframeElement:null}),r=o;while(r)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let r=0,o=0,i=this.getSameOriginWindowChain(e);for(let n of i){let s=n.window.deref();if(r+=s?.scrollY??0,o+=s?.scrollX??0,s===t||!n.iframeElement)break;let a=n.iframeElement.getBoundingClientRect();r+=a.top,o+=a.left}return{top:r,left:o}}},zh=class{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);let r=zX.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=r.left,this.posy-=r.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}},bI=class{constructor(e,t=0,r=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=r,this.deltaX=t;let o=!1;if(YC){let i=navigator.userAgent.match(/Chrome\/(\d+)/);o=(i?parseInt(i[1]):123)<=122}if(e){let i=e,n=e,s=e.view?.devicePixelRatio||1;if(typeof i.wheelDeltaY<"u")o?this.deltaY=i.wheelDeltaY/(120*s):this.deltaY=i.wheelDeltaY/120;else if(typeof n.VERTICAL_AXIS<"u"&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if(e.type==="wheel"){let a=e;a.deltaMode===a.DOM_DELTA_LINE?xC&&!wn?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof i.wheelDeltaX<"u")k3&&A3?this.deltaX=-(i.wheelDeltaX/120):o?this.deltaX=i.wheelDeltaX/(120*s):this.deltaX=i.wheelDeltaX/120;else if(typeof n.HORIZONTAL_AXIS<"u"&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){let a=e;a.deltaMode===a.DOM_DELTA_LINE?xC&&!wn?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(o?this.deltaY=e.wheelDelta/(120*s):this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent?.preventDefault()}stopPropagation(){this.browserEvent?.stopPropagation()}},L3=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),FX;(e=>{function t(r){return r===e.None||r===e.Cancelled||r instanceof HX?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ir.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:L3})})(FX||(FX={}));var HX=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?L3:(this._emitter||(this._emitter=new G),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}};var ZC=class{constructor(e,t){this._isDisposed=!1,this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new hC("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){if(this._isDisposed)throw new hC("Calling 'setIfNotSet' on a disposed TimeoutTimer");this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}},UX=class{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){this.disposable?.dispose(),this.disposable=void 0}cancelAndSet(e,t,r=globalThis){if(this.isDisposed)throw new hC("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();let o=r.setInterval(()=>{e()},t);this.disposable=Rt(()=>{r.clearInterval(o),this.disposable=void 0})}dispose(){this.cancel(),this.isDisposed=!0}},$X,X1;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?X1=(e,t)=>{PX(()=>{if(r)return;let o=Date.now()+15;t(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,o-Date.now())}}))});let r=!1;return{dispose(){r||(r=!0)}}}:X1=(e,t,r)=>{let o=e.requestIdleCallback(t,typeof r=="number"?{timeout:r}:void 0),i=!1;return{dispose(){i||(i=!0,e.cancelIdleCallback(o))}}},$X=e=>X1(globalThis,e)})();var jX;(e=>{async function t(o){let i,n=await Promise.all(o.map(s=>s.then(a=>a,a=>{i||(i=a)})));if(typeof i<"u")throw i;return n}e.settled=t;function r(o){return new Promise(async(i,n)=>{try{await o(i,n)}catch(s){n(s)}})}e.withAsyncBody=r})(jX||(jX={}));var _I=class Si{static fromArray(t){return new Si(r=>{r.emitMany(t)})}static fromPromise(t){return new Si(async r=>{r.emitMany(await t)})}static fromPromises(t){return new Si(async r=>{await Promise.all(t.map(async o=>r.emitOne(await o)))})}static merge(t){return new Si(async r=>{await Promise.all(t.map(async o=>{for await(let i of o)r.emitOne(i)}))})}constructor(t,r){this._state=0,this._results=[],this._error=null,this._onReturn=r,this._onStateChanged=new G,queueMicrotask(async()=>{let o={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(o)),this.resolve()}catch(i){this.reject(i)}finally{o.emitOne=void 0,o.emitMany=void 0,o.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await Ir.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,r){return new Si(async o=>{for await(let i of t)o.emitOne(r(i))})}map(t){return Si.map(this,t)}static filter(t,r){return new Si(async o=>{for await(let i of t)r(i)&&o.emitOne(i)})}filter(t){return Si.filter(this,t)}static coalesce(t){return Si.filter(t,r=>!!r)}coalesce(){return Si.coalesce(this)}static async toPromise(t){let r=[];for await(let o of t)r.push(o);return r}toPromise(){return Si.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};_I.EMPTY=_I.fromArray([]);function WX(e){return 55296<=e&&e<=56319}function SI(e){return 56320<=e&&e<=57343}function VX(e,t){return(e-55296<<10)+(t-56320)+65536}function qX(e){return QC(e,0)}function QC(e,t){switch(typeof e){case"object":return e===null?bs(349,t):Array.isArray(e)?GX(e,t):YX(e,t);case"string":return I3(e,t);case"boolean":return KX(e,t);case"number":return bs(e,t);case"undefined":return bs(937,t);default:return bs(617,t)}}function bs(e,t){return(t<<5)-t+e|0}function KX(e,t){return bs(e?433:863,t)}function I3(e,t){t=bs(149417,t);for(let r=0,o=e.length;r<o;r++)t=bs(e.charCodeAt(r),t);return t}function GX(e,t){return t=bs(104579,t),e.reduce((r,o)=>QC(o,r),t)}function YX(e,t){return t=bs(181387,t),Object.keys(e).sort().reduce((r,o)=>(r=I3(o,r),QC(e[o],r)),t)}function Z1(e,t,r=32){let o=r-t,i=~((1<<o)-1);return(e<<t|(i&e)>>>o)>>>0}function xI(e,t=0,r=e.byteLength,o=0){for(let i=0;i<r;i++)e[t+i]=o}function XX(e,t,r="0"){for(;e.length<t;)e=r+e;return e}function Mh(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join(""):XX((e>>>0).toString(16),t/4)}var ZX=class z3{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let r=t.length;if(r===0)return;let o=this._buff,i=this._buffLen,n=this._leftoverHighSurrogate,s,a;for(n!==0?(s=n,a=-1,n=0):(s=t.charCodeAt(0),a=0);;){let l=s;if(WX(s))if(a+1<r){let c=t.charCodeAt(a+1);SI(c)?(a++,l=VX(s,c)):l=65533}else{n=s;break}else SI(s)&&(l=65533);if(i=this._push(o,i,l),a++,a<r)s=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=n}_push(t,r,o){return o<128?t[r++]=o:o<2048?(t[r++]=192|(o&1984)>>>6,t[r++]=128|(o&63)>>>0):o<65536?(t[r++]=224|(o&61440)>>>12,t[r++]=128|(o&4032)>>>6,t[r++]=128|(o&63)>>>0):(t[r++]=240|(o&1835008)>>>18,t[r++]=128|(o&258048)>>>12,t[r++]=128|(o&4032)>>>6,t[r++]=128|(o&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Mh(this._h0)+Mh(this._h1)+Mh(this._h2)+Mh(this._h3)+Mh(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,xI(this._buff,this._buffLen),this._buffLen>56&&(this._step(),xI(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=z3._bigBlock32,r=this._buffDV;for(let p=0;p<64;p+=4)t.setUint32(p,r.getUint32(p,!1),!1);for(let p=64;p<320;p+=4)t.setUint32(p,Z1(t.getUint32(p-12,!1)^t.getUint32(p-32,!1)^t.getUint32(p-56,!1)^t.getUint32(p-64,!1),1),!1);let o=this._h0,i=this._h1,n=this._h2,s=this._h3,a=this._h4,l,c,u;for(let p=0;p<80;p++)p<20?(l=i&n|~i&s,c=1518500249):p<40?(l=i^n^s,c=1859775393):p<60?(l=i&n|i&s|n&s,c=2400959708):(l=i^n^s,c=3395469782),u=Z1(o,5)+l+a+c+t.getUint32(p*4,!1)&4294967295,a=s,s=n,n=Z1(i,30),i=o,o=u;this._h0=this._h0+o&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+n&4294967295,this._h3=this._h3+s&4294967295,this._h4=this._h4+a&4294967295}};ZX._bigBlock32=new DataView(new ArrayBuffer(320));var{registerWindow:U3e,getWindow:qi,getDocument:$3e,getWindows:j3e,getWindowsCount:W3e,getWindowId:TI,getWindowById:V3e,hasWindow:q3e,onDidRegisterWindow:QX,onWillUnregisterWindow:K3e,onDidUnregisterWindow:G3e}=(function(){let e=new Map,t={window:Yo,disposables:new ka};e.set(Yo.vscodeWindowId,t);let r=new G,o=new G,i=new G;function n(s,a){return(typeof s=="number"?e.get(s):void 0)??(a?t:void 0)}return{onDidRegisterWindow:r.event,onWillUnregisterWindow:i.event,onDidUnregisterWindow:o.event,registerWindow(s){if(e.has(s.vscodeWindowId))return Te.None;let a=new ka,l={window:s,disposables:a.add(new ka)};return e.set(s.vscodeWindowId,l),a.add(Rt(()=>{e.delete(s.vscodeWindowId),o.fire(s)})),a.add(ve(s,gr.BEFORE_UNLOAD,()=>{i.fire(s)})),r.fire(l),a},getWindows(){return e.values()},getWindowsCount(){return e.size},getWindowId(s){return s.vscodeWindowId},hasWindow(s){return e.has(s)},getWindowById:n,getWindow(s){let a=s;if(a?.ownerDocument?.defaultView)return a.ownerDocument.defaultView.window;let l=s;return l?.view?l.view.window:Yo},getDocument(s){return qi(s).document}}})(),JX=class{constructor(e,t,r,o){this._node=e,this._type=t,this._handler=r,this._options=o||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}};function ve(e,t,r,o){return new JX(e,t,r,o)}function eZ(e,t){return function(r){return t(new zh(e,r))}}function tZ(e){return function(t){return e(new TC(t))}}var CI=function(e,t,r,o){let i=r;return t==="click"||t==="mousedown"||t==="contextmenu"?i=eZ(qi(e),r):(t==="keydown"||t==="keypress"||t==="keyup")&&(i=tZ(r)),ve(e,t,i,o)},rZ,Zb,oZ=class extends UX{constructor(e){super(),this.defaultTarget=e&&qi(e)}cancelAndSet(e,t,r){return super.cancelAndSet(e,t,r??this.defaultTarget)}},Q1=class{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){zb(e)}}static sort(e,t){return t.priority-e.priority}};(function(){let e=new Map,t=new Map,r=new Map,o=new Map,i=n=>{r.set(n,!1);let s=e.get(n)??[];for(t.set(n,s),e.set(n,[]),o.set(n,!0);s.length>0;)s.sort(Q1.sort),s.shift().execute();o.set(n,!1)};Zb=(n,s,a=0)=>{let l=TI(n),c=new Q1(s,a),u=e.get(l);return u||(u=[],e.set(l,u)),u.push(c),r.get(l)||(r.set(l,!0),n.requestAnimationFrame(()=>i(l))),c},rZ=(n,s,a)=>{let l=TI(n);if(o.get(l)){let c=new Q1(s,a),u=t.get(l);return u||(u=[],t.set(l,u)),u.push(c),c}else return Zb(n,s,a)}})();var wI=class Wb{constructor(t,r){this.width=t,this.height=r}with(t=this.width,r=this.height){return t!==this.width||r!==this.height?new Wb(t,r):this}static is(t){return typeof t=="object"&&typeof t.height=="number"&&typeof t.width=="number"}static lift(t){return t instanceof Wb?t:new Wb(t.width,t.height)}static equals(t,r){return t===r?!0:!t||!r?!1:t.width===r.width&&t.height===r.height}};wI.None=new wI(0,0);function iZ(e){let t=e.getBoundingClientRect(),r=qi(e);return{left:t.left+r.scrollX,top:t.top+r.scrollY,width:t.width,height:t.height}}var Y3e=new class{constructor(){this.mutationObservers=new Map}observe(e,t,r){let o=this.mutationObservers.get(e);o||(o=new Map,this.mutationObservers.set(e,o));let i=qX(r),n=o.get(i);if(n)n.users+=1;else{let s=new G,a=new MutationObserver(c=>s.fire(c));a.observe(e,r);let l=n={users:1,observer:a,onDidMutate:s.event};t.add(Rt(()=>{l.users-=1,l.users===0&&(s.dispose(),a.disconnect(),o?.delete(i),o?.size===0&&this.mutationObservers.delete(e))})),o.set(i,n)}return n.onDidMutate}},gr={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:Ub?"webkitAnimationStart":"animationstart",ANIMATION_END:Ub?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Ub?"webkitAnimationIteration":"animationiteration"},nZ=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function F3(e,t,r,...o){let i=nZ.exec(t);if(!i)throw new Error("Bad use of emmet");let n=i[1]||"div",s;return e!=="http://www.w3.org/1999/xhtml"?s=document.createElementNS(e,n):s=document.createElement(n),i[3]&&(s.id=i[3]),i[4]&&(s.className=i[4].replace(/\./g," ").trim()),r&&Object.entries(r).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?s[a]=l:a==="selected"?l&&s.setAttribute(a,"true"):s.setAttribute(a,l))}),s.append(...o),s}function sZ(e,t,...r){return F3("http://www.w3.org/1999/xhtml",e,t,...r)}sZ.SVG=function(e,t,...r){return F3("http://www.w3.org/2000/svg",e,t,...r)};var aZ=class{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingTop="",this._paddingLeft="",this._paddingBottom="",this._paddingRight="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=xo(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){let t=xo(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){let t=xo(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){let t=xo(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){let t=xo(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){let t=xo(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){let t=xo(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingTop(e){let t=xo(e);this._paddingTop!==t&&(this._paddingTop=t,this.domNode.style.paddingTop=this._paddingTop)}setPaddingLeft(e){let t=xo(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setPaddingBottom(e){let t=xo(e);this._paddingBottom!==t&&(this._paddingBottom=t,this.domNode.style.paddingBottom=this._paddingBottom)}setPaddingRight(e){let t=xo(e);this._paddingRight!==t&&(this._paddingRight=t,this.domNode.style.paddingRight=this._paddingRight)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){let t=xo(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){let t=xo(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){let t=xo(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}};function xo(e){return typeof e=="number"?`${e}px`:e}function Vh(e){return new aZ(e)}var H3=class{constructor(){this._hooks=new ka,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let r=this._onStopCallback;this._onStopCallback=null,e&&r&&r(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,r,o,i){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=o,this._onStopCallback=i;let n=e;try{e.setPointerCapture(t),this._hooks.add(Rt(()=>{try{e.releasePointerCapture(t)}catch{}}))}catch{n=qi(e)}this._hooks.add(ve(n,gr.POINTER_MOVE,s=>{if(s.buttons!==r){this.stopMonitoring(!0);return}s.preventDefault(),this._pointerMoveCallback(s)})),this._hooks.add(ve(n,gr.POINTER_UP,s=>this.stopMonitoring(!0)))}};function lZ(e,t,r){let o=null,i=null;if(typeof r.value=="function"?(o="value",i=r.value,i.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof r.get=="function"&&(o="get",i=r.get),!i)throw new Error("not supported");let n=`$memoize$${t}`;r[o]=function(...s){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,s)}),this[n]}}var Cn;(e=>(e.Tap="-xterm-gesturetap",e.Change="-xterm-gesturechange",e.Start="-xterm-gesturestart",e.End="-xterm-gesturesend",e.Contextmenu="-xterm-gesturecontextmenu"))(Cn||(Cn={}));var Fh=class Vr extends Te{constructor(){super(),this.dispatched=!1,this.targets=new dI,this.ignoreTargets=new dI,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(Ir.runAndSubscribe(QX,({window:t,disposables:r})=>{r.add(ve(t.document,"touchstart",o=>this.onTouchStart(o),{passive:!1})),r.add(ve(t.document,"touchend",o=>this.onTouchEnd(t,o))),r.add(ve(t.document,"touchmove",o=>this.onTouchMove(o),{passive:!1}))},{window:Yo,disposables:this._store}))}static addTarget(t){if(!Vr.isTouchDevice())return Te.None;Vr.INSTANCE||(Vr.INSTANCE=pI(new Vr));let r=Vr.INSTANCE.targets.push(t);return Rt(r)}static ignoreTarget(t){if(!Vr.isTouchDevice())return Te.None;Vr.INSTANCE||(Vr.INSTANCE=pI(new Vr));let r=Vr.INSTANCE.ignoreTargets.push(t);return Rt(r)}static isTouchDevice(){return"ontouchstart"in Yo||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(t){let r=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let o=0,i=t.targetTouches.length;o<i;o++){let n=t.targetTouches.item(o);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:r,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[r],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};let s=this.newGestureEvent(Cn.Start,n.target);s.pageX=n.pageX,s.pageY=n.pageY,this.dispatchEvent(s)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}onTouchEnd(t,r){let o=Date.now(),i=Object.keys(this.activeTouches).length;for(let n=0,s=r.changedTouches.length;n<s;n++){let a=r.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(a.identifier))){console.warn("move of an UNKNOWN touch",a);continue}let l=this.activeTouches[a.identifier],c=Date.now()-l.initialTimeStamp;if(c<Vr.HOLD_DELAY&&Math.abs(l.initialPageX-qo(l.rollingPageX))<30&&Math.abs(l.initialPageY-qo(l.rollingPageY))<30){let u=this.newGestureEvent(Cn.Tap,l.initialTarget);u.pageX=qo(l.rollingPageX),u.pageY=qo(l.rollingPageY),this.dispatchEvent(u)}else if(c>=Vr.HOLD_DELAY&&Math.abs(l.initialPageX-qo(l.rollingPageX))<30&&Math.abs(l.initialPageY-qo(l.rollingPageY))<30){let u=this.newGestureEvent(Cn.Contextmenu,l.initialTarget);u.pageX=qo(l.rollingPageX),u.pageY=qo(l.rollingPageY),this.dispatchEvent(u)}else if(i===1){let u=qo(l.rollingPageX),p=qo(l.rollingPageY),f=qo(l.rollingTimestamps)-l.rollingTimestamps[0],d=u-l.rollingPageX[0],h=p-l.rollingPageY[0],y=[...this.targets].filter(b=>l.initialTarget instanceof Node&&b.contains(l.initialTarget));this.inertia(t,y,o,Math.abs(d)/f,d>0?1:-1,u,Math.abs(h)/f,h>0?1:-1,p)}this.dispatchEvent(this.newGestureEvent(Cn.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(r.preventDefault(),r.stopPropagation(),this.dispatched=!1)}newGestureEvent(t,r){let o=document.createEvent("CustomEvent");return o.initEvent(t,!1,!0),o.initialTarget=r,o.tapCount=0,o}dispatchEvent(t){if(t.type===Cn.Tap){let r=new Date().getTime(),o=0;r-this._lastSetTapCountTime>Vr.CLEAR_TAP_COUNT_TIME?o=1:o=2,this._lastSetTapCountTime=r,t.tapCount=o}else(t.type===Cn.Change||t.type===Cn.Contextmenu)&&(this._lastSetTapCountTime=0);if(t.initialTarget instanceof Node){for(let o of this.ignoreTargets)if(o.contains(t.initialTarget))return;let r=[];for(let o of this.targets)if(o.contains(t.initialTarget)){let i=0,n=t.initialTarget;for(;n&&n!==o;)i++,n=n.parentElement;r.push([i,o])}r.sort((o,i)=>o[0]-i[0]);for(let[o,i]of r)i.dispatchEvent(t),this.dispatched=!0}}inertia(t,r,o,i,n,s,a,l,c){this.handle=Zb(t,()=>{let u=Date.now(),p=u-o,f=0,d=0,h=!0;i+=Vr.SCROLL_FRICTION*p,a+=Vr.SCROLL_FRICTION*p,i>0&&(h=!1,f=n*i*p),a>0&&(h=!1,d=l*a*p);let y=this.newGestureEvent(Cn.Change);y.translationX=f,y.translationY=d,r.forEach(b=>b.dispatchEvent(y)),h||this.inertia(t,r,u,i,n,s+f,a,l,c+d)})}onTouchMove(t){let r=Date.now();for(let o=0,i=t.changedTouches.length;o<i;o++){let n=t.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}let s=this.activeTouches[n.identifier],a=this.newGestureEvent(Cn.Change,s.initialTarget);a.translationX=n.pageX-qo(s.rollingPageX),a.translationY=n.pageY-qo(s.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(n.pageX),s.rollingPageY.push(n.pageY),s.rollingTimestamps.push(r)}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}};Fh.SCROLL_FRICTION=-.005,Fh.HOLD_DELAY=700,Fh.CLEAR_TAP_COUNT_TIME=400,jt([lZ],Fh,"isTouchDevice",1);var cZ=Fh,JC=class extends Te{onclick(e,t){this._register(ve(e,gr.CLICK,r=>t(new zh(qi(e),r))))}onmousedown(e,t){this._register(ve(e,gr.MOUSE_DOWN,r=>t(new zh(qi(e),r))))}onmouseover(e,t){this._register(ve(e,gr.MOUSE_OVER,r=>t(new zh(qi(e),r))))}onmouseleave(e,t){this._register(ve(e,gr.MOUSE_LEAVE,r=>t(new zh(qi(e),r))))}onkeydown(e,t){this._register(ve(e,gr.KEY_DOWN,r=>t(new TC(r))))}onkeyup(e,t){this._register(ve(e,gr.KEY_UP,r=>t(new TC(r))))}oninput(e,t){this._register(ve(e,gr.INPUT,t))}onblur(e,t){this._register(ve(e,gr.BLUR,t))}onfocus(e,t){this._register(ve(e,gr.FOCUS,t))}onchange(e,t){this._register(ve(e,gr.CHANGE,t))}ignoreGesture(e){return cZ.ignoreTarget(e)}},RI=11,uZ=class extends JC{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",typeof e.top<"u"&&(this.bgDomNode.style.top="0px"),typeof e.left<"u"&&(this.bgDomNode.style.left="0px"),typeof e.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof e.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.style.position="absolute",this.domNode.style.width=RI+"px",this.domNode.style.height=RI+"px",typeof e.top<"u"&&(this.domNode.style.top=e.top+"px"),typeof e.left<"u"&&(this.domNode.style.left=e.left+"px"),typeof e.bottom<"u"&&(this.domNode.style.bottom=e.bottom+"px"),typeof e.right<"u"&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new H3),this._register(CI(this.bgDomNode,gr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._register(CI(this.domNode,gr.POINTER_DOWN,t=>this._arrowPointerDown(t))),this._pointerdownRepeatTimer=this._register(new oZ),this._pointerdownScheduleRepeatTimer=this._register(new ZC)}_arrowPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,qi(e))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(t,200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),e.preventDefault()}},pZ=class CC{constructor(t,r,o,i,n,s,a){this._forceIntegerValues=t,this._scrollStateBrand=void 0,this._forceIntegerValues&&(r=r|0,o=o|0,i=i|0,n=n|0,s=s|0,a=a|0),this.rawScrollLeft=i,this.rawScrollTop=a,r<0&&(r=0),i+r>o&&(i=o-r),i<0&&(i=0),n<0&&(n=0),a+n>s&&(a=s-n),a<0&&(a=0),this.width=r,this.scrollWidth=o,this.scrollLeft=i,this.height=n,this.scrollHeight=s,this.scrollTop=a}equals(t){return this.rawScrollLeft===t.rawScrollLeft&&this.rawScrollTop===t.rawScrollTop&&this.width===t.width&&this.scrollWidth===t.scrollWidth&&this.scrollLeft===t.scrollLeft&&this.height===t.height&&this.scrollHeight===t.scrollHeight&&this.scrollTop===t.scrollTop}withScrollDimensions(t,r){return new CC(this._forceIntegerValues,typeof t.width<"u"?t.width:this.width,typeof t.scrollWidth<"u"?t.scrollWidth:this.scrollWidth,r?this.rawScrollLeft:this.scrollLeft,typeof t.height<"u"?t.height:this.height,typeof t.scrollHeight<"u"?t.scrollHeight:this.scrollHeight,r?this.rawScrollTop:this.scrollTop)}withScrollPosition(t){return new CC(this._forceIntegerValues,this.width,this.scrollWidth,typeof t.scrollLeft<"u"?t.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof t.scrollTop<"u"?t.scrollTop:this.rawScrollTop)}createScrollEvent(t,r){let o=this.width!==t.width,i=this.scrollWidth!==t.scrollWidth,n=this.scrollLeft!==t.scrollLeft,s=this.height!==t.height,a=this.scrollHeight!==t.scrollHeight,l=this.scrollTop!==t.scrollTop;return{inSmoothScrolling:r,oldWidth:t.width,oldScrollWidth:t.scrollWidth,oldScrollLeft:t.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:t.height,oldScrollHeight:t.scrollHeight,oldScrollTop:t.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:o,scrollWidthChanged:i,scrollLeftChanged:n,heightChanged:s,scrollHeightChanged:a,scrollTopChanged:l}}},dZ=class extends Te{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new G),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new pZ(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){let r=this._state.withScrollDimensions(e,t);this._setState(r,!!this._smoothScrolling),this._smoothScrolling?.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:typeof e.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:typeof e.scrollTop>"u"?this._smoothScrolling.to.scrollTop:e.scrollTop};let r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;let o;t?o=new EI(this._smoothScrolling.from,r,this._smoothScrolling.startTime,this._smoothScrolling.duration):o=this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=o}else{let r=this._state.withScrollPosition(e);this._smoothScrolling=EI.start(this._state,r,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),!!this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let r=this._state;r.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(r,t)))}},PI=class{constructor(e,t,r){this.scrollLeft=e,this.scrollTop=t,this.isDone=r}};function J1(e,t){let r=t-e;return function(o){return e+r*mZ(o)}}function fZ(e,t,r){return function(o){return o<r?e(o/r):t((o-r)/(1-r))}}var EI=class wC{constructor(t,r,o,i){this.from=t,this.to=r,this.duration=i,this.startTime=o,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(t,r,o){if(Math.abs(t-r)>2.5*o){let i,n;return t<r?(i=t+.75*o,n=r-.75*o):(i=t-.75*o,n=r+.75*o),fZ(J1(t,i),J1(n,r),.33)}return J1(t,r)}dispose(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(t){this.to=t.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(t){let r=(t-this.startTime)/this.duration;if(r<1){let o=this.scrollLeft(r),i=this.scrollTop(r);return new PI(o,i,!1)}return new PI(this.to.scrollLeft,this.to.scrollTop,!0)}combine(t,r,o){return wC.start(t,r,o)}static start(t,r,o){o=o+10;let i=Date.now()-10;return new wC(t,r,i,o)}};function hZ(e){return Math.pow(e,3)}function mZ(e){return 1-hZ(1-e)}var yZ=class extends Te{constructor(e,t,r){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=r,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new ZC)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){let e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode?.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode?.setClassName(this._invisibleClassName+(e?" fade":"")))}},gZ=140,U3=class extends JC{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new yZ(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new H3),this._shouldRender=!0,this.domNode=Vh(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(ve(this.domNode.domNode,gr.POINTER_DOWN,t=>this._domNodePointerDown(t)))}_createArrow(e){let t=this._register(new uZ(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,r,o){this.slider=Vh(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),typeof r=="number"&&this.slider.setWidth(r),typeof o=="number"&&this.slider.setHeight(o),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(ve(this.slider.domNode,gr.POINTER_DOWN,i=>{i.button===0&&(i.preventDefault(),this._sliderPointerDown(i))})),this.onclick(this.slider.domNode,i=>{i.leftButton&&i.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,r=t+this._scrollbarState.getSliderPosition(),o=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderPointerPosition(e);r<=i&&i<=o?e.button===0&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,r;if(e.target===this.domNode.domNode&&typeof e.offsetX=="number"&&typeof e.offsetY=="number")t=e.offsetX,r=e.offsetY;else{let i=iZ(this.domNode.domNode);t=e.pageX-i.left,r=e.pageY-i.top}let o=this._pointerDownRelativePosition(t,r);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(o):this._scrollbarState.getDesiredScrollPositionFromOffset(o)),e.button===0&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),r=this._sliderOrthogonalPointerPosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,i=>{let n=this._sliderOrthogonalPointerPosition(i),s=Math.abs(n-r);if(A3&&s>gZ){this._setDesiredScrollPositionNow(o.getScrollPosition());return}let a=this._sliderPointerPosition(i)-t;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(a))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}},$3=class RC{constructor(t,r,o,i,n,s){this._scrollbarSize=Math.round(r),this._oppositeScrollbarSize=Math.round(o),this._arrowSize=Math.round(t),this._visibleSize=i,this._scrollSize=n,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new RC(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(t){let r=Math.round(t);return this._visibleSize!==r?(this._visibleSize=r,this._refreshComputedValues(),!0):!1}setScrollSize(t){let r=Math.round(t);return this._scrollSize!==r?(this._scrollSize=r,this._refreshComputedValues(),!0):!1}setScrollPosition(t){let r=Math.round(t);return this._scrollPosition!==r?(this._scrollPosition=r,this._refreshComputedValues(),!0):!1}setScrollbarSize(t){this._scrollbarSize=Math.round(t)}setOppositeScrollbarSize(t){this._oppositeScrollbarSize=Math.round(t)}static _computeValues(t,r,o,i,n){let s=Math.max(0,o-t),a=Math.max(0,s-2*r),l=i>0&&i>o;if(!l)return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};let c=Math.round(Math.max(20,Math.floor(o*a/i))),u=(a-c)/(i-o),p=n*u;return{computedAvailableSize:Math.round(s),computedIsNeeded:l,computedSliderSize:Math.round(c),computedSliderRatio:u,computedSliderPosition:Math.round(p)}}_refreshComputedValues(){let t=RC._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize-this._computedSliderSize/2;return Math.round(r/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(t){if(!this._computedIsNeeded)return 0;let r=t-this._arrowSize,o=this._scrollPosition;return r<this._computedSliderPosition?o-=this._visibleSize:o+=this._visibleSize,o}getDesiredScrollPositionFromDelta(t){if(!this._computedIsNeeded)return 0;let r=this._computedSliderPosition+t;return Math.round(r/this._computedSliderRatio)}},vZ=class extends U3{constructor(e,t,r){let o=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new $3(t.horizontalHasArrows?t.arrowSize:0,t.horizontal===2?0:t.horizontalScrollbarSize,t.vertical===2?0:t.verticalScrollbarSize,o.width,o.scrollWidth,i.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(e.horizontal===2?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}},bZ=class extends U3{constructor(e,t,r){let o=e.getScrollDimensions(),i=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:r,scrollbarState:new $3(t.verticalHasArrows?t.arrowSize:0,t.vertical===2?0:t.verticalScrollbarSize,0,o.height,o.scrollHeight,i.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows)throw new Error("horizontalHasArrows is not supported in xterm.js");this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(e.vertical===2?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}},_Z=500,kI=50,OI=!0,SZ=class{constructor(e,t,r){this.timestamp=e,this.deltaX=t,this.deltaY=r,this.score=0}},PC=class{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let t=1,r=0,o=1,i=this._rear;do{let n=i===this._front?t:Math.pow(2,-o);if(t-=n,r+=this._memory[i].score*n,i===this._front)break;i=(this._capacity+i-1)%this._capacity,o++}while(!0);return r<=.5}acceptStandardWheelEvent(t){if(YC){let r=qi(t.browserEvent),o=hX(r);this.accept(Date.now(),t.deltaX*o,t.deltaY*o)}else this.accept(Date.now(),t.deltaX,t.deltaY)}accept(t,r,o){let i=null,n=new SZ(t,r,o);this._front===-1&&this._rear===-1?(this._memory[0]=n,this._front=0,this._rear=0):(i=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n),n.score=this._computeScore(n,i)}_computeScore(t,r){if(Math.abs(t.deltaX)>0&&Math.abs(t.deltaY)>0)return 1;let o=.5;if((!this._isAlmostInt(t.deltaX)||!this._isAlmostInt(t.deltaY))&&(o+=.25),r){let i=Math.abs(t.deltaX),n=Math.abs(t.deltaY),s=Math.abs(r.deltaX),a=Math.abs(r.deltaY),l=Math.max(Math.min(i,s),1),c=Math.max(Math.min(n,a),1),u=Math.max(i,s),p=Math.max(n,a);u%l===0&&p%c===0&&(o-=.5)}return Math.min(Math.max(o,0),1)}_isAlmostInt(t){return Math.abs(Math.round(t)-t)<.01}};PC.INSTANCE=new PC;var xZ=PC,TZ=class extends JC{constructor(e,t,r){super(),this._onScroll=this._register(new G),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new G),this.onWillScroll=this._onWillScroll.event,this._options=wZ(t),this._scrollable=r,this._register(this._scrollable.onScroll(i=>{this._onWillScroll.fire(i),this._onDidScroll(i),this._onScroll.fire(i)}));let o={onMouseWheel:i=>this._onMouseWheel(i),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new bZ(this._scrollable,this._options,o)),this._horizontalScrollbar=this._register(new vZ(this._scrollable,this._options,o)),this._domNode=document.createElement("div"),this._domNode.className="xterm-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Vh(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Vh(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Vh(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,i=>this._onMouseOver(i)),this.onmouseleave(this._listenOnDomNode,i=>this._onMouseLeave(i)),this._hideTimeout=this._register(new ZC),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}get options(){return this._options}dispose(){this._mouseWheelToDispose=oc(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,wn&&(this._options.className+=" mac"),this._domNode.className="xterm-scrollable-element "+this._options.className}updateOptions(e){typeof e.handleMouseWheel<"u"&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof e.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),typeof e.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),typeof e.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),typeof e.horizontal<"u"&&(this._options.horizontal=e.horizontal),typeof e.vertical<"u"&&(this._options.vertical=e.vertical),typeof e.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),typeof e.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),typeof e.scrollByPage<"u"&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}setRevealOnScroll(e){this._revealOnScroll=e}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new bI(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=oc(this._mouseWheelToDispose),e)){let t=r=>{this._onMouseWheel(new bI(r))};this._mouseWheelToDispose.push(ve(this._listenOnDomNode,gr.MOUSE_WHEEL,t,{passive:!1}))}}_onMouseWheel(e){if(e.browserEvent?.defaultPrevented)return;let t=xZ.INSTANCE;OI&&t.acceptStandardWheelEvent(e);let r=!1;if(e.deltaY||e.deltaX){let i=e.deltaY*this._options.mouseWheelScrollSensitivity,n=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&n+i===0?n=i=0:Math.abs(i)>=Math.abs(n)?n=0:i=0),this._options.flipAxes&&([i,n]=[n,i]);let s=!wn&&e.browserEvent&&e.browserEvent.shiftKey;(this._options.scrollYToX||s)&&!n&&(n=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(n=n*this._options.fastScrollSensitivity,i=i*this._options.fastScrollSensitivity);let a=this._scrollable.getFutureScrollPosition(),l={};if(i){let c=kI*i,u=a.scrollTop-(c<0?Math.floor(c):Math.ceil(c));this._verticalScrollbar.writeScrollPosition(l,u)}if(n){let c=kI*n,u=a.scrollLeft-(c<0?Math.floor(c):Math.ceil(c));this._horizontalScrollbar.writeScrollPosition(l,u)}l=this._scrollable.validateScrollPosition(l),(a.scrollLeft!==l.scrollLeft||a.scrollTop!==l.scrollTop)&&(OI&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(l):this._scrollable.setScrollPositionNow(l),r=!0)}let o=r;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){let e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,r=e.scrollLeft>0,o=r?" left":"",i=t?" top":"",n=r||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${o}`),this._topShadowDomNode.setClassName(`shadow${i}`),this._topLeftShadowDomNode.setClassName(`shadow${n}${i}${o}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),_Z)}},CZ=class extends TZ{constructor(e,t,r){super(e,t,r)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}};function wZ(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,wn&&(t.className+=" mac"),t}var EC=class extends Te{constructor(e,t,r,o,i,n,s,a){super(),this._bufferService=r,this._optionsService=s,this._renderService=a,this._onRequestScrollLines=this._register(new G),this.onRequestScrollLines=this._onRequestScrollLines.event,this._isSyncing=!1,this._isHandlingScroll=!1,this._suppressOnScrollHandler=!1;let l=this._register(new dZ({forceIntegerValues:!1,smoothScrollDuration:this._optionsService.rawOptions.smoothScrollDuration,scheduleAtNextAnimationFrame:c=>Zb(o.window,c)}));this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration",()=>{l.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration)})),this._scrollableElement=this._register(new CZ(t,{vertical:1,horizontal:2,useShadows:!1,mouseWheelSmoothScroll:!0,...this._getChangeOptions()},l)),this._register(this._optionsService.onMultipleOptionChange(["scrollSensitivity","fastScrollSensitivity","overviewRuler"],()=>this._scrollableElement.updateOptions(this._getChangeOptions()))),this._register(i.onProtocolChange(c=>{this._scrollableElement.updateOptions({handleMouseWheel:!(c&16)})})),this._scrollableElement.setScrollDimensions({height:0,scrollHeight:0}),this._register(Ir.runAndSubscribe(n.onChangeColors,()=>{this._scrollableElement.getDomNode().style.backgroundColor=n.colors.background.css})),e.appendChild(this._scrollableElement.getDomNode()),this._register(Rt(()=>this._scrollableElement.getDomNode().remove())),this._styleElement=o.mainDocument.createElement("style"),t.appendChild(this._styleElement),this._register(Rt(()=>this._styleElement.remove())),this._register(Ir.runAndSubscribe(n.onChangeColors,()=>{this._styleElement.textContent=[".xterm .xterm-scrollable-element > .scrollbar > .slider {",` background: ${n.colors.scrollbarSliderBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider:hover {",` background: ${n.colors.scrollbarSliderHoverBackground.css};`,"}",".xterm .xterm-scrollable-element > .scrollbar > .slider.active {",` background: ${n.colors.scrollbarSliderActiveBackground.css};`,"}"].join(`
|
|
232
232
|
`)})),this._register(this._bufferService.onResize(()=>this.queueSync())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._latestYDisp=void 0,this.queueSync()})),this._register(this._bufferService.onScroll(()=>this._sync())),this._register(this._scrollableElement.onScroll(c=>this._handleScroll(c)))}scrollLines(e){let t=this._scrollableElement.getScrollPosition();this._scrollableElement.setScrollPosition({reuseAnimation:!0,scrollTop:t.scrollTop+e*this._renderService.dimensions.css.cell.height})}scrollToLine(e,t){t&&(this._latestYDisp=e),this._scrollableElement.setScrollPosition({reuseAnimation:!t,scrollTop:e*this._renderService.dimensions.css.cell.height})}_getChangeOptions(){return{mouseWheelScrollSensitivity:this._optionsService.rawOptions.scrollSensitivity,fastScrollSensitivity:this._optionsService.rawOptions.fastScrollSensitivity,verticalScrollbarSize:this._optionsService.rawOptions.overviewRuler?.width||14}}queueSync(e){e!==void 0&&(this._latestYDisp=e),this._queuedAnimationFrame===void 0&&(this._queuedAnimationFrame=this._renderService.addRefreshCallback(()=>{this._queuedAnimationFrame=void 0,this._sync(this._latestYDisp)}))}_sync(e=this._bufferService.buffer.ydisp){!this._renderService||this._isSyncing||(this._isSyncing=!0,this._suppressOnScrollHandler=!0,this._scrollableElement.setScrollDimensions({height:this._renderService.dimensions.css.canvas.height,scrollHeight:this._renderService.dimensions.css.cell.height*this._bufferService.buffer.lines.length}),this._suppressOnScrollHandler=!1,e!==this._latestYDisp&&this._scrollableElement.setScrollPosition({scrollTop:e*this._renderService.dimensions.css.cell.height}),this._isSyncing=!1)}_handleScroll(e){if(!this._renderService||this._isHandlingScroll||this._suppressOnScrollHandler)return;this._isHandlingScroll=!0;let t=Math.round(e.scrollTop/this._renderService.dimensions.css.cell.height),r=t-this._bufferService.buffer.ydisp;r!==0&&(this._latestYDisp=t,this._onRequestScrollLines.fire(r)),this._isHandlingScroll=!1}};EC=jt([te(2,io),te(3,Ss),te(4,f3),te(5,Fp),te(6,no),te(7,xs)],EC);var kC=class extends Te{constructor(e,t,r,o,i){super(),this._screenElement=e,this._bufferService=t,this._coreBrowserService=r,this._decorationService=o,this._renderService=i,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this._register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this._register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this._register(this._decorationService.onDecorationRemoved(n=>this._removeDecoration(n))),this._register(Rt(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){let t=this._coreBrowserService.mainDocument.createElement("div");t.classList.add("xterm-decoration"),t.classList.toggle("xterm-decoration-top-layer",e?.options?.layer==="top"),t.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,t.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,t.style.top=`${(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height}px`,t.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let r=e.options.x??0;return r&&r>this._bufferService.cols&&(t.style.display="none"),this._refreshXPosition(e,t),t}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let r=this._decorationElements.get(e);r||(r=this._createElement(e),e.element=r,this._decorationElements.set(e,r),this._container.appendChild(r),e.onDispose(()=>{this._decorationElements.delete(e),r.remove()})),r.style.display=this._altBufferIsActive?"none":"block",this._altBufferIsActive||(r.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,r.style.height=`${(e.options.height||1)*this._renderService.dimensions.css.cell.height}px`,r.style.top=`${t*this._renderService.dimensions.css.cell.height}px`,r.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`),e.onRenderEmitter.fire(r)}}_refreshXPosition(e,t=e.element){if(!t)return;let r=e.options.x??0;(e.options.anchor||"left")==="right"?t.style.right=r?`${r*this._renderService.dimensions.css.cell.width}px`:"":t.style.left=r?`${r*this._renderService.dimensions.css.cell.width}px`:""}_removeDecoration(e){this._decorationElements.get(e)?.remove(),this._decorationElements.delete(e),e.dispose()}};kC=jt([te(1,io),te(2,Ss),te(3,Zh),te(4,xs)],kC);var RZ=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position)){this._addLineToZone(t,e.marker.line);return}}if(this._zonePoolIndex<this._zonePool.length){this._zonePool[this._zonePoolIndex].color=e.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=e.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=e.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=e.marker.line,this._zones.push(this._zonePool[this._zonePoolIndex++]);return}this._zones.push({color:e.options.overviewRulerOptions.color,position:e.options.overviewRulerOptions.position,startBufferLine:e.marker.line,endBufferLine:e.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(e){this._linePadding=e}_lineIntersectsZone(e,t){return t>=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,r){return t>=e.startBufferLine-this._linePadding[r||"full"]&&t<=e.endBufferLine+this._linePadding[r||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}},xn={full:0,left:0,center:0,right:0},wa={full:0,left:0,center:0,right:0},Dh={full:0,left:0,center:0,right:0},Qb=class extends Te{constructor(e,t,r,o,i,n,s,a){super(),this._viewportElement=e,this._screenElement=t,this._bufferService=r,this._decorationService=o,this._renderService=i,this._optionsService=n,this._themeService=s,this._coreBrowserService=a,this._colorZoneStore=new RZ,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement),this._register(Rt(()=>this._canvas?.remove()));let l=this._canvas.getContext("2d");if(l)this._ctx=l;else throw new Error("Ctx cannot be null");this._register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this._register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0))),this._register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this._register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this._register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})),this._register(this._renderService.onRender(()=>{(!this._containerHeight||this._containerHeight!==this._screenElement.clientHeight)&&(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this._register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._register(this._optionsService.onSpecificOptionChange("overviewRuler",()=>this._queueRefresh(!0))),this._register(this._themeService.onChangeColors(()=>this._queueRefresh())),this._queueRefresh(!0)}get _width(){return this._optionsService.options.overviewRuler?.width||0}_refreshDrawConstants(){let e=Math.floor((this._canvas.width-1)/3),t=Math.ceil((this._canvas.width-1)/3);wa.full=this._canvas.width,wa.left=e,wa.center=t,wa.right=e,this._refreshDrawHeightConstants(),Dh.full=1,Dh.left=1,Dh.center=1+wa.left,Dh.right=1+wa.left+wa.center}_refreshDrawHeightConstants(){xn.full=Math.round(2*this._coreBrowserService.dpr);let e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowserService.dpr);xn.left=t,xn.center=t,xn.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*xn.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*xn.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*xn.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*xn.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1,this._renderRulerOutline();let e=this._colorZoneStore.zones;for(let t of e)t.position!=="full"&&this._renderColorZone(t);for(let t of e)t.position==="full"&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderRulerOutline(){this._ctx.fillStyle=this._themeService.colors.overviewRulerBorder.css,this._ctx.fillRect(0,0,1,this._canvas.height),this._optionsService.rawOptions.overviewRuler.showTopBorder&&this._ctx.fillRect(1,0,this._canvas.width-1,1),this._optionsService.rawOptions.overviewRuler.showBottomBorder&&this._ctx.fillRect(1,this._canvas.height-1,this._canvas.width-1,this._canvas.height)}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(Dh[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-xn[e.position||"full"]/2),wa[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+xn[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};Qb=jt([te(2,io),te(3,Zh),te(4,xs),te(5,no),te(6,Fp),te(7,Ss)],Qb);var $;(e=>(e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="\x07",e.BS="\b",e.HT=" ",e.LF=`
|
|
233
233
|
`,e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="\x1B",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL="\x7F"))($||($={}));var Vb;(e=>(e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8A",e.PLD="\x8B",e.PLU="\x8C",e.RI="\x8D",e.SS2="\x8E",e.SS3="\x8F",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9A",e.CSI="\x9B",e.ST="\x9C",e.OSC="\x9D",e.PM="\x9E",e.APC="\x9F"))(Vb||(Vb={}));var j3;(e=>e.ST=`${$.ESC}\\`)(j3||(j3={}));var OC=class{constructor(e,t,r,o,i,n){this._textarea=e,this._compositionView=t,this._bufferService=r,this._optionsService=o,this._coreService=i,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(e.keyCode===20||e.keyCode===229||e.keyCode===16||e.keyCode===17||e.keyCode===18)return!1;this._finalizeComposition(!1)}return e.keyCode===229?(this._handleAnyTextareaChanges(),!1):!0}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){let t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){this._isSendingComposition=!1;let r;t.start+=this._dataAlreadySent.length,this._isComposing?r=this._textarea.value.substring(t.start,this._compositionPosition.start):r=this._textarea.value.substring(t.start),r.length>0&&this._coreService.triggerDataEvent(r,!0)}},0)}else{this._isSendingComposition=!1;let t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,r=t.replace(e,"");this._dataAlreadySent=r,t.length>e.length?this._coreService.triggerDataEvent(r,!0):t.length<e.length?this._coreService.triggerDataEvent(`${$.DEL}`,!0):t.length===e.length&&t!==e&&this._coreService.triggerDataEvent(t,!0)}},0)}updateCompositionElements(e){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){let t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._renderService.dimensions.css.cell.height,o=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,i=t*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=o+"px",this._compositionView.style.height=r+"px",this._compositionView.style.lineHeight=r+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";let n=this._compositionView.getBoundingClientRect();this._textarea.style.left=i+"px",this._textarea.style.top=o+"px",this._textarea.style.width=Math.max(n.width,1)+"px",this._textarea.style.height=Math.max(n.height,1)+"px",this._textarea.style.lineHeight=n.height+"px"}e||setTimeout(()=>this.updateCompositionElements(!0),0)}}};OC=jt([te(2,io),te(3,no),te(4,nc),te(5,xs)],OC);var vr=0,br=0,_r=0,$t=0,MI={css:"#00000000",rgba:0},or;(e=>{function t(i,n,s,a){return a!==void 0?`#${Ql(i)}${Ql(n)}${Ql(s)}${Ql(a)}`:`#${Ql(i)}${Ql(n)}${Ql(s)}`}e.toCss=t;function r(i,n,s,a=255){return(i<<24|n<<16|s<<8|a)>>>0}e.toRgba=r;function o(i,n,s,a){return{css:e.toCss(i,n,s,a),rgba:e.toRgba(i,n,s,a)}}e.toColor=o})(or||(or={}));var wt;(e=>{function t(l,c){if($t=(c.rgba&255)/255,$t===1)return{css:c.css,rgba:c.rgba};let u=c.rgba>>24&255,p=c.rgba>>16&255,f=c.rgba>>8&255,d=l.rgba>>24&255,h=l.rgba>>16&255,y=l.rgba>>8&255;vr=d+Math.round((u-d)*$t),br=h+Math.round((p-h)*$t),_r=y+Math.round((f-y)*$t);let b=or.toCss(vr,br,_r),m=or.toRgba(vr,br,_r);return{css:b,rgba:m}}e.blend=t;function r(l){return(l.rgba&255)===255}e.isOpaque=r;function o(l,c,u){let p=qb.ensureContrastRatio(l.rgba,c.rgba,u);if(p)return or.toColor(p>>24&255,p>>16&255,p>>8&255)}e.ensureContrastRatio=o;function i(l){let c=(l.rgba|255)>>>0;return[vr,br,_r]=qb.toChannels(c),{css:or.toCss(vr,br,_r),rgba:c}}e.opaque=i;function n(l,c){return $t=Math.round(c*255),[vr,br,_r]=qb.toChannels(l.rgba),{css:or.toCss(vr,br,_r,$t),rgba:or.toRgba(vr,br,_r,$t)}}e.opacity=n;function s(l,c){return $t=l.rgba&255,n(l,$t*c/255)}e.multiplyOpacity=s;function a(l){return[l.rgba>>24&255,l.rgba>>16&255,l.rgba>>8&255]}e.toColorRGB=a})(wt||(wt={}));var Lt;(e=>{let t,r;try{let i=document.createElement("canvas");i.width=1,i.height=1;let n=i.getContext("2d",{willReadFrequently:!0});n&&(t=n,t.globalCompositeOperation="copy",r=t.createLinearGradient(0,0,1,1))}catch{}function o(i){if(i.match(/#[\da-f]{3,8}/i))switch(i.length){case 4:return vr=parseInt(i.slice(1,2).repeat(2),16),br=parseInt(i.slice(2,3).repeat(2),16),_r=parseInt(i.slice(3,4).repeat(2),16),or.toColor(vr,br,_r);case 5:return vr=parseInt(i.slice(1,2).repeat(2),16),br=parseInt(i.slice(2,3).repeat(2),16),_r=parseInt(i.slice(3,4).repeat(2),16),$t=parseInt(i.slice(4,5).repeat(2),16),or.toColor(vr,br,_r,$t);case 7:return{css:i,rgba:(parseInt(i.slice(1),16)<<8|255)>>>0};case 9:return{css:i,rgba:parseInt(i.slice(1),16)>>>0}}let n=i.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(n)return vr=parseInt(n[1]),br=parseInt(n[2]),_r=parseInt(n[3]),$t=Math.round((n[5]===void 0?1:parseFloat(n[5]))*255),or.toColor(vr,br,_r,$t);if(!t||!r)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=r,t.fillStyle=i,typeof t.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[vr,br,_r,$t]=t.getImageData(0,0,1,1).data,$t!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:or.toRgba(vr,br,_r,$t),css:i}}e.toColor=o})(Lt||(Lt={}));var oo;(e=>{function t(o){return r(o>>16&255,o>>8&255,o&255)}e.relativeLuminance=t;function r(o,i,n){let s=o/255,a=i/255,l=n/255,c=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),u=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),p=l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4);return c*.2126+u*.7152+p*.0722}e.relativeLuminance2=r})(oo||(oo={}));var qb;(e=>{function t(s,a){if($t=(a&255)/255,$t===1)return a;let l=a>>24&255,c=a>>16&255,u=a>>8&255,p=s>>24&255,f=s>>16&255,d=s>>8&255;return vr=p+Math.round((l-p)*$t),br=f+Math.round((c-f)*$t),_r=d+Math.round((u-d)*$t),or.toRgba(vr,br,_r)}e.blend=t;function r(s,a,l){let c=oo.relativeLuminance(s>>8),u=oo.relativeLuminance(a>>8);if(gs(c,u)<l){if(u<c){let d=o(s,a,l),h=gs(c,oo.relativeLuminance(d>>8));if(h<l){let y=i(s,a,l),b=gs(c,oo.relativeLuminance(y>>8));return h>b?d:y}return d}let p=i(s,a,l),f=gs(c,oo.relativeLuminance(p>>8));if(f<l){let d=o(s,a,l),h=gs(c,oo.relativeLuminance(d>>8));return f>h?p:d}return p}}e.ensureContrastRatio=r;function o(s,a,l){let c=s>>24&255,u=s>>16&255,p=s>>8&255,f=a>>24&255,d=a>>16&255,h=a>>8&255,y=gs(oo.relativeLuminance2(f,d,h),oo.relativeLuminance2(c,u,p));for(;y<l&&(f>0||d>0||h>0);)f-=Math.max(0,Math.ceil(f*.1)),d-=Math.max(0,Math.ceil(d*.1)),h-=Math.max(0,Math.ceil(h*.1)),y=gs(oo.relativeLuminance2(f,d,h),oo.relativeLuminance2(c,u,p));return(f<<24|d<<16|h<<8|255)>>>0}e.reduceLuminance=o;function i(s,a,l){let c=s>>24&255,u=s>>16&255,p=s>>8&255,f=a>>24&255,d=a>>16&255,h=a>>8&255,y=gs(oo.relativeLuminance2(f,d,h),oo.relativeLuminance2(c,u,p));for(;y<l&&(f<255||d<255||h<255);)f=Math.min(255,f+Math.ceil((255-f)*.1)),d=Math.min(255,d+Math.ceil((255-d)*.1)),h=Math.min(255,h+Math.ceil((255-h)*.1)),y=gs(oo.relativeLuminance2(f,d,h),oo.relativeLuminance2(c,u,p));return(f<<24|d<<16|h<<8|255)>>>0}e.increaseLuminance=i;function n(s){return[s>>24&255,s>>16&255,s>>8&255,s&255]}e.toChannels=n})(qb||(qb={}));function Ql(e){let t=e.toString(16);return t.length<2?"0"+t:t}function gs(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}var PZ=class extends Xh{constructor(e,t,r){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=r}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},Jb=class{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new Ti}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1}getJoinedCharacters(e){if(this._characterJoiners.length===0)return[];let t=this._bufferService.buffer.lines.get(e);if(!t||t.length===0)return[];let r=[],o=t.translateToString(!0),i=0,n=0,s=0,a=t.getFg(0),l=t.getBg(0);for(let c=0;c<t.getTrimmedLength();c++)if(t.loadCell(c,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==a||this._workCell.bg!==l){if(c-i>1){let u=this._getJoinedRanges(o,s,n,t,i);for(let p=0;p<u.length;p++)r.push(u[p])}i=c,s=n,a=this._workCell.fg,l=this._workCell.bg}n+=this._workCell.getChars().length||Ea.length}if(this._bufferService.cols-i>1){let c=this._getJoinedRanges(o,s,n,t,i);for(let u=0;u<c.length;u++)r.push(c[u])}return r}_getJoinedRanges(e,t,r,o,i){let n=e.substring(t,r),s=[];try{s=this._characterJoiners[0].handler(n)}catch(a){console.error(a)}for(let a=1;a<this._characterJoiners.length;a++)try{let l=this._characterJoiners[a].handler(n);for(let c=0;c<l.length;c++)Jb._mergeRanges(s,l[c])}catch(l){console.error(l)}return this._stringRangesToCellRanges(s,o,i),s}_stringRangesToCellRanges(e,t,r){let o=0,i=!1,n=0,s=e[o];if(s){for(let a=r;a<this._bufferService.cols;a++){let l=t.getWidth(a),c=t.getString(a).length||Ea.length;if(l!==0){if(!i&&s[0]<=n&&(s[0]=a,i=!0),s[1]<=n){if(s[1]=a,s=e[++o],!s)break;s[0]<=n?(s[0]=a,i=!0):i=!1}n+=c}}s&&(s[1]=this._bufferService.cols)}}static _mergeRanges(e,t){let r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(r){if(t[1]<=i[0])return e[o-1][1]=t[1],e;if(t[1]<=i[1])return e[o-1][1]=Math.max(t[1],i[1]),e.splice(o,1),e;e.splice(o,1),o--}else{if(t[1]<=i[0])return e.splice(o,0,t),e;if(t[1]<=i[1])return i[0]=Math.min(t[0],i[0]),e;t[0]<i[1]&&(i[0]=Math.min(t[0],i[0]),r=!0);continue}}return r?e[e.length-1][1]=t[1]:e.push(t),e}};Jb=jt([te(0,io)],Jb);function EZ(e){return 57508<=e&&e<=57558}function kZ(e){return 9472<=e&&e<=9631}function OZ(e){return EZ(e)||kZ(e)}function MZ(){return{css:{canvas:Bb(),cell:Bb()},device:{canvas:Bb(),cell:Bb(),char:{width:0,height:0,left:0,top:0}}}}function Bb(){return{width:0,height:0}}var MC=class{constructor(e,t,r,o,i,n,s){this._document=e,this._characterJoinerService=t,this._optionsService=r,this._coreBrowserService=o,this._coreService=i,this._decorationService=n,this._themeService=s,this._workCell=new Ti,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,r){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=r}createRow(e,t,r,o,i,n,s,a,l,c,u){let p=[],f=this._characterJoinerService.getJoinedCharacters(t),d=this._themeService.colors,h=e.getNoBgTrimmedLength();r&&h<n+1&&(h=n+1);let y,b=0,m="",g=0,v=0,S=0,C=0,w=!1,k=0,O=!1,A=0,B=0,M=[],x=c!==-1&&u!==-1;for(let P=0;P<h;P++){e.loadCell(P,this._workCell);let T=this._workCell.getWidth();if(T===0)continue;let E=!1,D=P>=B,z=P,L=this._workCell;if(f.length>0&&P===f[0][0]&&D){let ne=f.shift(),dt=this._isCellInSelection(ne[0],t);for(g=ne[0]+1;g<ne[1];g++)D&&(D=dt===this._isCellInSelection(g,t));D&&(D=!r||n<ne[0]||n>=ne[1]),D?(E=!0,L=new PZ(this._workCell,e.translateToString(!0,ne[0],ne[1]),ne[1]-ne[0]),z=ne[1]-1,T=L.getWidth()):B=ne[1]}let Z=this._isCellInSelection(P,t),re=r&&P===n,Q=x&&P>=c&&P<=u,fe=!1;this._decorationService.forEachDecorationAtCell(P,t,void 0,ne=>{fe=!0});let ye=L.getChars()||Ea;if(ye===" "&&(L.isUnderline()||L.isOverline())&&(ye="\xA0"),A=T*a-l.get(ye,L.isBold(),L.isItalic()),!y)y=this._document.createElement("span");else if(b&&(Z&&O||!Z&&!O&&L.bg===v)&&(Z&&O&&d.selectionForeground||L.fg===S)&&L.extended.ext===C&&Q===w&&A===k&&!re&&!E&&!fe&&D){L.isInvisible()?m+=Ea:m+=ye,b++;continue}else b&&(y.textContent=m),y=this._document.createElement("span"),b=0,m="";if(v=L.bg,S=L.fg,C=L.extended.ext,w=Q,k=A,O=Z,E&&n>=P&&n<=z&&(n=P),!this._coreService.isCursorHidden&&re&&this._coreService.isCursorInitialized){if(M.push("xterm-cursor"),this._coreBrowserService.isFocused)s&&M.push("xterm-cursor-blink"),M.push(o==="bar"?"xterm-cursor-bar":o==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(i)switch(i){case"outline":M.push("xterm-cursor-outline");break;case"block":M.push("xterm-cursor-block");break;case"bar":M.push("xterm-cursor-bar");break;case"underline":M.push("xterm-cursor-underline");break;default:break}}if(L.isBold()&&M.push("xterm-bold"),L.isItalic()&&M.push("xterm-italic"),L.isDim()&&M.push("xterm-dim"),L.isInvisible()?m=Ea:m=L.getChars()||Ea,L.isUnderline()&&(M.push(`xterm-underline-${L.extended.underlineStyle}`),m===" "&&(m="\xA0"),!L.isUnderlineColorDefault()))if(L.isUnderlineColorRGB())y.style.textDecorationColor=`rgb(${Xh.toColorRGB(L.getUnderlineColor()).join(",")})`;else{let ne=L.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&L.isBold()&&ne<8&&(ne+=8),y.style.textDecorationColor=d.ansi[ne].css}L.isOverline()&&(M.push("xterm-overline"),m===" "&&(m="\xA0")),L.isStrikethrough()&&M.push("xterm-strikethrough"),Q&&(y.style.textDecoration="underline");let he=L.getFgColor(),ie=L.getFgColorMode(),J=L.getBgColor(),le=L.getBgColorMode(),oe=!!L.isInverse();if(oe){let ne=he;he=J,J=ne;let dt=ie;ie=le,le=dt}let se,Oe,gt=!1;this._decorationService.forEachDecorationAtCell(P,t,void 0,ne=>{ne.options.layer!=="top"&>||(ne.backgroundColorRGB&&(le=50331648,J=ne.backgroundColorRGB.rgba>>8&16777215,se=ne.backgroundColorRGB),ne.foregroundColorRGB&&(ie=50331648,he=ne.foregroundColorRGB.rgba>>8&16777215,Oe=ne.foregroundColorRGB),gt=ne.options.layer==="top")}),!gt&&Z&&(se=this._coreBrowserService.isFocused?d.selectionBackgroundOpaque:d.selectionInactiveBackgroundOpaque,J=se.rgba>>8&16777215,le=50331648,gt=!0,d.selectionForeground&&(ie=50331648,he=d.selectionForeground.rgba>>8&16777215,Oe=d.selectionForeground)),gt&&M.push("xterm-decoration-top");let be;switch(le){case 16777216:case 33554432:be=d.ansi[J],M.push(`xterm-bg-${J}`);break;case 50331648:be=or.toColor(J>>16,J>>8&255,J&255),this._addStyle(y,`background-color:#${DI((J>>>0).toString(16),"0",6)}`);break;default:oe?(be=d.foreground,M.push("xterm-bg-257")):be=d.background}switch(se||L.isDim()&&(se=wt.multiplyOpacity(be,.5)),ie){case 16777216:case 33554432:L.isBold()&&he<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(he+=8),this._applyMinimumContrast(y,be,d.ansi[he],L,se,void 0)||M.push(`xterm-fg-${he}`);break;case 50331648:let ne=or.toColor(he>>16&255,he>>8&255,he&255);this._applyMinimumContrast(y,be,ne,L,se,Oe)||this._addStyle(y,`color:#${DI(he.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(y,be,d.foreground,L,se,Oe)||oe&&M.push("xterm-fg-257")}M.length&&(y.className=M.join(" "),M.length=0),!re&&!E&&!fe&&D?b++:y.textContent=m,A!==this.defaultSpacing&&(y.style.letterSpacing=`${A}px`),p.push(y),P=z}return y&&b&&(y.textContent=m),p}_applyMinimumContrast(e,t,r,o,i,n){if(this._optionsService.rawOptions.minimumContrastRatio===1||OZ(o.getCode()))return!1;let s=this._getContrastCache(o),a;if(!i&&!n&&(a=s.getColor(t.rgba,r.rgba)),a===void 0){let l=this._optionsService.rawOptions.minimumContrastRatio/(o.isDim()?2:1);a=wt.ensureContrastRatio(i||t,n||r,l),s.setColor((i||t).rgba,(n||r).rgba,a??null)}return a?(this._addStyle(e,`color:${a.css}`),!0):!1}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){let r=this._selectionStart,o=this._selectionEnd;return!r||!o?!1:this._columnSelectMode?r[0]<=o[0]?e>=r[0]&&t>=r[1]&&e<o[0]&&t<=o[1]:e<r[0]&&t>=r[1]&&e>=o[0]&&t<=o[1]:t>r[1]&&t<o[1]||r[1]===o[1]&&t===r[1]&&e>=r[0]&&e<o[0]||r[1]<o[1]&&t===o[1]&&e<o[0]||r[1]<o[1]&&t===r[1]&&e>=r[0]}};MC=jt([te(1,y3),te(2,no),te(3,Ss),te(4,nc),te(5,Zh),te(6,Fp)],MC);function DI(e,t,r){for(;e.length<r;)e=t+e;return e}var DZ=class{constructor(e,t){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let r=e.createElement("span");r.classList.add("xterm-char-measure-element");let o=e.createElement("span");o.classList.add("xterm-char-measure-element"),o.style.fontWeight="bold";let i=e.createElement("span");i.classList.add("xterm-char-measure-element"),i.style.fontStyle="italic";let n=e.createElement("span");n.classList.add("xterm-char-measure-element"),n.style.fontWeight="bold",n.style.fontStyle="italic",this._measureElements=[r,o,i,n],this._container.appendChild(r),this._container.appendChild(o),this._container.appendChild(i),this._container.appendChild(n),t.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,r,o){e===this._font&&t===this._fontSize&&r===this._weight&&o===this._weightBold||(this._font=e,this._fontSize=t,this._weight=r,this._weightBold=o,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${r}`,this._measureElements[1].style.fontWeight=`${o}`,this._measureElements[2].style.fontWeight=`${r}`,this._measureElements[3].style.fontWeight=`${o}`,this.clear())}get(e,t,r){let o=0;if(!t&&!r&&e.length===1&&(o=e.charCodeAt(0))<256){if(this._flat[o]!==-9999)return this._flat[o];let s=this._measure(e,0);return s>0&&(this._flat[o]=s),s}let i=e;t&&(i+="B"),r&&(i+="I");let n=this._holey.get(i);if(n===void 0){let s=0;t&&(s|=1),r&&(s|=2),n=this._measure(e,s),n>0&&this._holey.set(i,n)}return n}_measure(e,t){let r=this._measureElements[t];return r.textContent=e.repeat(32),r.offsetWidth/32}},AZ=class{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,r,o=!1){if(this.selectionStart=t,this.selectionEnd=r,!t||!r||t[0]===r[0]&&t[1]===r[1]){this.clear();return}let i=e.buffers.active.ydisp,n=t[1]-i,s=r[1]-i,a=Math.max(n,0),l=Math.min(s,e.rows-1);if(a>=e.rows||l<0){this.clear();return}this.hasSelection=!0,this.columnSelectMode=o,this.viewportStartRow=n,this.viewportEndRow=s,this.viewportCappedStartRow=a,this.viewportCappedEndRow=l,this.startCol=t[0],this.endCol=r[0]}isCellSelected(e,t,r){return this.hasSelection?(r-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&r>=this.viewportCappedStartRow&&t<this.endCol&&r<=this.viewportCappedEndRow:t<this.startCol&&r>=this.viewportCappedStartRow&&t>=this.endCol&&r<=this.viewportCappedEndRow:r>this.viewportStartRow&&r<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&r===this.viewportStartRow&&t>=this.startCol&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&r===this.viewportEndRow&&t<this.endCol||this.viewportStartRow<this.viewportEndRow&&r===this.viewportStartRow&&t>=this.startCol):!1}};function BZ(){return new AZ}var eC="xterm-dom-renderer-owner-",_i="xterm-rows",Nb="xterm-fg-",AI="xterm-bg-",Ah="xterm-focus",Lb="xterm-selection",NZ=1,DC=class extends Te{constructor(e,t,r,o,i,n,s,a,l,c,u,p,f,d){super(),this._terminal=e,this._document=t,this._element=r,this._screenElement=o,this._viewportElement=i,this._helperContainer=n,this._linkifier2=s,this._charSizeService=l,this._optionsService=c,this._bufferService=u,this._coreService=p,this._coreBrowserService=f,this._themeService=d,this._terminalClass=NZ++,this._rowElements=[],this._selectionRenderModel=BZ(),this.onRequestRedraw=this._register(new G).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(_i),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(Lb),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=MZ(),this._updateDimensions(),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._themeService.onChangeColors(h=>this._injectCss(h))),this._injectCss(this._themeService.colors),this._rowFactory=a.createInstance(MC,document),this._element.classList.add(eC+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this._register(this._linkifier2.onShowLinkUnderline(h=>this._handleLinkHover(h))),this._register(this._linkifier2.onHideLinkUnderline(h=>this._handleLinkLeave(h))),this._register(Rt(()=>{this._element.classList.remove(eC+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new DZ(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let r of this._rowElements)r.style.width=`${this.dimensions.css.canvas.width}px`,r.style.height=`${this.dimensions.css.cell.height}px`,r.style.lineHeight=`${this.dimensions.css.cell.height}px`,r.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${_i} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${_i} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${_i} .xterm-dim { color: ${wt.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let r=`blink_underline_${this._terminalClass}`,o=`blink_bar_${this._terminalClass}`,i=`blink_block_${this._terminalClass}`;t+=`@keyframes ${r} { 50% { border-bottom-style: hidden; }}`,t+=`@keyframes ${o} { 50% { box-shadow: none; }}`,t+=`@keyframes ${i} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${_i}.${Ah} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${_i}.${Ah} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${o} 1s step-end infinite;}${this._terminalSelector} .${_i}.${Ah} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${i} 1s step-end infinite;}${this._terminalSelector} .${_i} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${_i} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${_i} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${_i} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${_i} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${Lb} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Lb} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Lb} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(let[n,s]of e.ansi.entries())t+=`${this._terminalSelector} .${Nb}${n} { color: ${s.css}; }${this._terminalSelector} .${Nb}${n}.xterm-dim { color: ${wt.multiplyOpacity(s,.5).css}; }${this._terminalSelector} .${AI}${n} { background-color: ${s.css}; }`;t+=`${this._terminalSelector} .${Nb}257 { color: ${wt.opaque(e.background).css}; }${this._terminalSelector} .${Nb}257.xterm-dim { color: ${wt.multiplyOpacity(wt.opaque(e.background),.5).css}; }${this._terminalSelector} .${AI}257 { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let r=this._rowElements.length;r<=t;r++){let o=this._document.createElement("div");this._rowContainer.appendChild(o),this._rowElements.push(o)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(Ah),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(Ah),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,r){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,r),this.renderRows(0,this._bufferService.rows-1),!e||!t||(this._selectionRenderModel.update(this._terminal,e,t,r),!this._selectionRenderModel.hasSelection))return;let o=this._selectionRenderModel.viewportStartRow,i=this._selectionRenderModel.viewportEndRow,n=this._selectionRenderModel.viewportCappedStartRow,s=this._selectionRenderModel.viewportCappedEndRow,a=this._document.createDocumentFragment();if(r){let l=e[0]>t[0];a.appendChild(this._createSelectionElement(n,l?t[0]:e[0],l?e[0]:t[0],s-n+1))}else{let l=o===n?e[0]:0,c=n===i?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(n,l,c));let u=s-n-1;if(a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,u)),n!==s){let p=i===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(s,0,p))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,r,o=1){let i=this._document.createElement("div"),n=t*this.dimensions.css.cell.width,s=this.dimensions.css.cell.width*(r-t);return n+s>this.dimensions.css.canvas.width&&(s=this.dimensions.css.canvas.width-n),i.style.height=`${o*this.dimensions.css.cell.height}px`,i.style.top=`${e*this.dimensions.css.cell.height}px`,i.style.left=`${n}px`,i.style.width=`${s}px`,i}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let r=this._bufferService.buffer,o=r.ybase+r.y,i=Math.min(r.x,this._bufferService.cols-1),n=this._coreService.decPrivateModes.cursorBlink??this._optionsService.rawOptions.cursorBlink,s=this._coreService.decPrivateModes.cursorStyle??this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let l=e;l<=t;l++){let c=l+r.ydisp,u=this._rowElements[l],p=r.lines.get(c);if(!u||!p)break;u.replaceChildren(...this._rowFactory.createRow(p,c,c===o,s,a,i,n,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${eC}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,r,o,i,n){r<0&&(e=0),o<0&&(t=0);let s=this._bufferService.rows-1;r=Math.max(Math.min(r,s),0),o=Math.max(Math.min(o,s),0),i=Math.min(i,this._bufferService.cols);let a=this._bufferService.buffer,l=a.ybase+a.y,c=Math.min(a.x,i-1),u=this._optionsService.rawOptions.cursorBlink,p=this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let d=r;d<=o;++d){let h=d+a.ydisp,y=this._rowElements[d],b=a.lines.get(h);if(!y||!b)break;y.replaceChildren(...this._rowFactory.createRow(b,h,h===l,p,f,c,u,this.dimensions.css.cell.width,this._widthCache,n?d===r?e:0:-1,n?(d===o?t:i)-1:-1))}}};DC=jt([te(7,qC),te(8,i_),te(9,no),te(10,io),te(11,nc),te(12,Ss),te(13,Fp)],DC);var AC=class extends Te{constructor(e,t,r){super(),this._optionsService=r,this.width=0,this.height=0,this._onCharSizeChange=this._register(new G),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this._register(new IZ(this._optionsService))}catch{this._measureStrategy=this._register(new LZ(e,t,this._optionsService))}this._register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}get hasValidSize(){return this.width>0&&this.height>0}measure(){let e=this._measureStrategy.measure();(e.width!==this.width||e.height!==this.height)&&(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};AC=jt([te(2,no)],AC);var W3=class extends Te{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(e,t){e!==void 0&&e>0&&t!==void 0&&t>0&&(this._result.width=e,this._result.height=t)}},LZ=class extends W3{constructor(e,t,r){super(),this._document=e,this._parentElement=t,this._optionsService=r,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}},IZ=class extends W3{constructor(e){super(),this._optionsService=e,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let t=this._ctx.measureText("W");if(!("width"in t&&"fontBoundingBoxAscent"in t&&"fontBoundingBoxDescent"in t))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let e=this._ctx.measureText("W");return this._validateAndSet(e.width,e.fontBoundingBoxAscent+e.fontBoundingBoxDescent),this._result}},zZ=class extends Te{constructor(e,t,r){super(),this._textarea=e,this._window=t,this.mainDocument=r,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=this._register(new FZ(this._window)),this._onDprChange=this._register(new G),this.onDprChange=this._onDprChange.event,this._onWindowChange=this._register(new G),this.onWindowChange=this._onWindowChange.event,this._register(this.onWindowChange(o=>this._screenDprMonitor.setWindow(o))),this._register(Ir.forward(this._screenDprMonitor.onDprChange,this._onDprChange)),this._register(ve(this._textarea,"focus",()=>this._isFocused=!0)),this._register(ve(this._textarea,"blur",()=>this._isFocused=!1))}get window(){return this._window}set window(e){this._window!==e&&(this._window=e,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}},FZ=class extends Te{constructor(e){super(),this._parentWindow=e,this._windowResizeListener=this._register(new zp),this._onDprChange=this._register(new G),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this._register(Rt(()=>this.clearListener()))}setWindow(e){this._parentWindow=e,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=ve(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){!this._resolutionMediaMatchList||!this._outerListener||(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}},HZ=class extends Te{constructor(){super(),this.linkProviders=[],this._register(Rt(()=>this.linkProviders.length=0))}registerLinkProvider(e){return this.linkProviders.push(e),{dispose:()=>{let t=this.linkProviders.indexOf(e);t!==-1&&this.linkProviders.splice(t,1)}}}};function ew(e,t,r){let o=r.getBoundingClientRect(),i=e.getComputedStyle(r),n=parseInt(i.getPropertyValue("padding-left")),s=parseInt(i.getPropertyValue("padding-top"));return[t.clientX-o.left-n,t.clientY-o.top-s]}function UZ(e,t,r,o,i,n,s,a,l){if(!n)return;let c=ew(e,t,r);if(c)return c[0]=Math.ceil((c[0]+(l?s/2:0))/s),c[1]=Math.ceil(c[1]/a),c[0]=Math.min(Math.max(c[0],1),o+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),i),c}var BC=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,r,o,i){return UZ(window,e,t,r,o,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,i)}getMouseReportCoords(e,t){let r=ew(window,e,t);if(this._charSizeService.hasValidSize)return r[0]=Math.min(Math.max(r[0],0),this._renderService.dimensions.css.canvas.width-1),r[1]=Math.min(Math.max(r[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(r[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(r[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(r[0]),y:Math.floor(r[1])}}};BC=jt([te(0,xs),te(1,i_)],BC);var $Z=class{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,r){this._rowCount=r,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t,!this._animationFrame&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0){this._runRefreshCallbacks();return}let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}},V3={};wY(V3,{getSafariVersion:()=>WZ,isChromeOS:()=>Y3,isFirefox:()=>q3,isIpad:()=>VZ,isIphone:()=>qZ,isLegacyEdge:()=>jZ,isLinux:()=>tw,isMac:()=>e_,isNode:()=>a_,isSafari:()=>K3,isWindows:()=>G3});var a_=typeof process<"u"&&"title"in process,Qh=a_?"node":navigator.userAgent,Jh=a_?"node":navigator.platform,q3=Qh.includes("Firefox"),jZ=Qh.includes("Edge"),K3=/^((?!chrome|android).)*safari/i.test(Qh);function WZ(){if(!K3)return 0;let e=Qh.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}var e_=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(Jh),VZ=Jh==="iPad",qZ=Jh==="iPhone",G3=["Windows","Win16","Win32","WinCE"].includes(Jh),tw=Jh.indexOf("Linux")>=0,Y3=/\bCrOS\b/.test(Qh),X3=class{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(e){this._idleCallback=void 0;let t=0,r=0,o=e.timeRemaining(),i=0;for(;this._i<this._tasks.length;){if(t=performance.now(),this._tasks[this._i]()||this._i++,t=Math.max(1,performance.now()-t),r=Math.max(t,r),i=e.timeRemaining(),r*1.5>i){o-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(o-t))}ms`),this._start();return}o=i}this.clear()}},KZ=class extends X3{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=performance.now()+e;return{timeRemaining:()=>Math.max(0,t-performance.now())}}},GZ=class extends X3{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}},t_=!a_&&"requestIdleCallback"in window?GZ:KZ,YZ=class{constructor(){this._queue=new t_}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}},NC=class extends Te{constructor(e,t,r,o,i,n,s,a,l){super(),this._rowCount=e,this._optionsService=r,this._charSizeService=o,this._coreService=i,this._coreBrowserService=a,this._renderer=this._register(new zp),this._pausedResizeTask=new YZ,this._observerDisposable=this._register(new zp),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this._register(new G),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this._register(new G),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this._register(new G),this.onRender=this._onRender.event,this._onRefreshRequest=this._register(new G),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new $Z((c,u)=>this._renderRows(c,u),this._coreBrowserService),this._register(this._renderDebouncer),this._syncOutputHandler=new XZ(this._coreBrowserService,this._coreService,()=>this._fullRefresh()),this._register(Rt(()=>this._syncOutputHandler.dispose())),this._register(this._coreBrowserService.onDprChange(()=>this.handleDevicePixelRatioChange())),this._register(s.onResize(()=>this._fullRefresh())),this._register(s.buffers.onBufferActivate(()=>this._renderer.value?.clear())),this._register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this._register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this._register(n.onDecorationRegistered(()=>this._fullRefresh())),this._register(n.onDecorationRemoved(()=>this._fullRefresh())),this._register(this._optionsService.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],()=>{this.clear(),this.handleResize(s.cols,s.rows),this._fullRefresh()})),this._register(this._optionsService.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(s.buffer.y,s.buffer.y,!0))),this._register(l.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(this._coreBrowserService.window,t),this._register(this._coreBrowserService.onWindowChange(c=>this._registerIntersectionObserver(c,t)))}get dimensions(){return this._renderer.value.dimensions}_registerIntersectionObserver(e,t){if("IntersectionObserver"in e){let r=new e.IntersectionObserver(o=>this._handleIntersectionChange(o[o.length-1]),{threshold:0});r.observe(t),this._observerDisposable.value=Rt(()=>r.disconnect())}}_handleIntersectionChange(e){this._isPaused=e.isIntersecting===void 0?e.intersectionRatio===0:!e.isIntersecting,!this._isPaused&&!this._charSizeService.hasValidSize&&this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,r=!1){if(this._isPaused){this._needsFullRefresh=!0;return}if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}let o=this._syncOutputHandler.flush();o&&(e=Math.min(e,o.start),t=Math.max(t,o.end)),r||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount)}_renderRows(e,t){if(this._renderer.value){if(this._coreService.decPrivateModes.synchronizedOutput){this._syncOutputHandler.bufferRows(e,t);return}e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0}}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value&&(this._renderer.value.onRequestRedraw(t=>this.refreshRows(t.start,t.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value?.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(e,t,r){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=r,this._renderer.value?.handleSelectionChanged(e,t,r)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};NC=jt([te(2,no),te(3,i_),te(4,nc),te(5,Zh),te(6,io),te(7,Ss),te(8,Fp)],NC);var XZ=class{constructor(e,t,r){this._coreBrowserService=e,this._coreService=t,this._onTimeout=r,this._start=0,this._end=0,this._isBuffering=!1}bufferRows(e,t){this._isBuffering?(this._start=Math.min(this._start,e),this._end=Math.max(this._end,t)):(this._start=e,this._end=t,this._isBuffering=!0),this._timeout===void 0&&(this._timeout=this._coreBrowserService.window.setTimeout(()=>{this._timeout=void 0,this._coreService.decPrivateModes.synchronizedOutput=!1,this._onTimeout()},1e3))}flush(){if(this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0),!this._isBuffering)return;let e={start:this._start,end:this._end};return this._isBuffering=!1,e}dispose(){this._timeout!==void 0&&(this._coreBrowserService.window.clearTimeout(this._timeout),this._timeout=void 0)}};function ZZ(e,t,r,o){let i=r.buffer.x,n=r.buffer.y;if(!r.buffer.hasScrollback)return eQ(i,n,e,t,r,o)+l_(n,t,r,o)+tQ(i,n,e,t,r,o);let s;if(n===t)return s=i>e?"D":"C",Gh(Math.abs(i-e),Kh(s,o));s=n>t?"D":"C";let a=Math.abs(n-t),l=JZ(n>t?e:i,r)+(a-1)*r.cols+1+QZ(n>t?i:e,r);return Gh(l,Kh(s,o))}function QZ(e,t){return e-1}function JZ(e,t){return t.cols-e}function eQ(e,t,r,o,i,n){return l_(t,o,i,n).length===0?"":Gh(Q3(e,t,e,t-ic(t,i),!1,i).length,Kh("D",n))}function l_(e,t,r,o){let i=e-ic(e,r),n=t-ic(t,r),s=Math.abs(i-n)-rQ(e,t,r);return Gh(s,Kh(Z3(e,t),o))}function tQ(e,t,r,o,i,n){let s;l_(t,o,i,n).length>0?s=o-ic(o,i):s=t;let a=o,l=oQ(e,t,r,o,i,n);return Gh(Q3(e,s,r,a,l==="C",i).length,Kh(l,n))}function rQ(e,t,r){let o=0,i=e-ic(e,r),n=t-ic(t,r);for(let s=0;s<Math.abs(i-n);s++){let a=Z3(e,t)==="A"?-1:1;r.buffer.lines.get(i+a*s)?.isWrapped&&o++}return o}function ic(e,t){let r=0,o=t.buffer.lines.get(e),i=o?.isWrapped;for(;i&&e>=0&&e<t.rows;)r++,o=t.buffer.lines.get(--e),i=o?.isWrapped;return r}function oQ(e,t,r,o,i,n){let s;return l_(r,o,i,n).length>0?s=o-ic(o,i):s=t,e<r&&s<=o||e>=r&&s<o?"C":"D"}function Z3(e,t){return e>t?"A":"B"}function Q3(e,t,r,o,i,n){let s=e,a=t,l="";for(;(s!==r||a!==o)&&a>=0&&a<n.buffer.lines.length;)s+=i?1:-1,i&&s>n.cols-1?(l+=n.buffer.translateBufferLineToString(a,!1,e,s),s=0,e=0,a++):!i&&s<0&&(l+=n.buffer.translateBufferLineToString(a,!1,0,e+1),s=n.cols-1,e=s,a--);return l+n.buffer.translateBufferLineToString(a,!1,e,s)}function Kh(e,t){let r=t?"O":"[";return $.ESC+r+e}function Gh(e,t){e=Math.floor(e);let r="";for(let o=0;o<e;o++)r+=t;return r}var iQ=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:!this.selectionEnd||!this.selectionStart?this.selectionStart:this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols===0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!e||!t?!1:e[1]>t[1]||e[1]===t[1]&&e[0]>t[0]}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}};function BI(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}var tC=50,nQ=15,sQ=50,aQ=500,lQ="\xA0",cQ=new RegExp(lQ,"g"),LC=class extends Te{constructor(e,t,r,o,i,n,s,a,l){super(),this._element=e,this._screenElement=t,this._linkifier=r,this._bufferService=o,this._coreService=i,this._mouseService=n,this._optionsService=s,this._renderService=a,this._coreBrowserService=l,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new Ti,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this._register(new G),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this._register(new G),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this._register(new G),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this._register(new G),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=c=>this._handleMouseMove(c),this._mouseUpListener=c=>this._handleMouseUp(c),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(c=>this._handleTrim(c)),this._register(this._bufferService.buffers.onBufferActivate(c=>this._handleBufferActivate(c))),this.enable(),this._model=new iQ(this._bufferService),this._activeSelectionMode=0,this._register(Rt(()=>{this._removeMouseDownListeners()})),this._register(this._bufferService.onResize(c=>{c.rowsChanged&&this.clearSelection()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!e||!t?!1:e[0]!==t[0]||e[1]!==t[1]}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";let r=this._bufferService.buffer,o=[];if(this._activeSelectionMode===3){if(e[0]===t[0])return"";let i=e[0]<t[0]?e[0]:t[0],n=e[0]<t[0]?t[0]:e[0];for(let s=e[1];s<=t[1];s++){let a=r.translateBufferLineToString(s,!0,i,n);o.push(a)}}else{let i=e[1]===t[1]?t[0]:void 0;o.push(r.translateBufferLineToString(e[1],!0,e[0],i));for(let n=e[1]+1;n<=t[1]-1;n++){let s=r.lines.get(n),a=r.translateBufferLineToString(n,!0);s?.isWrapped?o[o.length-1]+=a:o.push(a)}if(e[1]!==t[1]){let n=r.lines.get(t[1]),s=r.translateBufferLineToString(t[1],!0,0,t[0]);n&&n.isWrapped?o[o.length-1]+=s:o.push(s)}}return o.map(i=>i.replace(cQ," ")).join(G3?`\r
|
|
234
234
|
`:`
|
|
235
235
|
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),tw&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),r=this._model.finalSelectionStart,o=this._model.finalSelectionEnd;return!r||!o||!t?!1:this._areCoordsInSelection(t,r,o)}isCellInSelection(e,t){let r=this._model.finalSelectionStart,o=this._model.finalSelectionEnd;return!r||!o?!1:this._areCoordsInSelection([e,t],r,o)}_areCoordsInSelection(e,t,r){return e[1]>t[1]&&e[1]<r[1]||t[1]===r[1]&&e[1]===t[1]&&e[0]>=t[0]&&e[0]<r[0]||t[1]<r[1]&&e[1]===r[1]&&e[0]<r[0]||t[1]<r[1]&&e[1]===t[1]&&e[0]>=t[0]}_selectWordAtCursor(e,t){let r=this._linkifier.currentLink?.link?.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=BI(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let o=this._getMouseBufferCoords(e);return o?(this._selectWordAt(o,t),this._model.selectionEnd=void 0,!0):!1}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=ew(this._coreBrowserService.window,e,this._screenElement)[1],r=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=r?0:(t>r&&(t-=r),t=Math.min(Math.max(t,-tC),tC),t/=tC,t/Math.abs(t)+Math.round(t*(nQ-1)))}shouldForceSelection(e){return e_?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,!(e.button===2&&this.hasSelection)&&e.button===0){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):e.detail===1?this._handleSingleClick(e):e.detail===2?this._handleDoubleClick(e):e.detail===3&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),sQ)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&t.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(e_&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd){this.refresh(!0);return}this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let r=this._bufferService.buffer;if(this._model.selectionEnd[1]<r.lines.length){let o=r.lines.get(this._model.selectionEnd[1]);o&&o.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}(!t||t[0]!==this._model.selectionEnd[0]||t[1]!==this._model.selectionEnd[1])&&this.refresh(!0)}_dragScroll(){if(!(!this._model.selectionEnd||!this._model.selectionStart)&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});let e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<aQ&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let r=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(r&&r[0]!==void 0&&r[1]!==void 0){let o=ZZ(r[0]-1,r[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(o,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,r=!!e&&!!t&&(e[0]!==t[0]||e[1]!==t[1]);if(!r){this._oldHasSelection&&this._fireOnSelectionChange(e,t,r);return}!e||!t||(!this._oldSelectionStart||!this._oldSelectionEnd||e[0]!==this._oldSelectionStart[0]||e[1]!==this._oldSelectionStart[1]||t[0]!==this._oldSelectionEnd[0]||t[1]!==this._oldSelectionEnd[1])&&this._fireOnSelectionChange(e,t,r)}_fireOnSelectionChange(e,t,r){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=r,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(t=>this._handleTrim(t))}_convertViewportColToCharacterIndex(e,t){let r=t;for(let o=0;t>=o;o++){let i=e.loadCell(o,this._workCell).getChars().length;this._workCell.getWidth()===0?r--:i>1&&t!==o&&(r+=i-1)}return r}setSelection(e,t,r){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=r,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,r=!0,o=!0){if(e[0]>=this._bufferService.cols)return;let i=this._bufferService.buffer,n=i.lines.get(e[1]);if(!n)return;let s=i.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(n,e[0]),l=a,c=e[0]-a,u=0,p=0,f=0,d=0;if(s.charAt(a)===" "){for(;a>0&&s.charAt(a-1)===" ";)a--;for(;l<s.length&&s.charAt(l+1)===" ";)l++}else{let b=e[0],m=e[0];n.getWidth(b)===0&&(u++,b--),n.getWidth(m)===2&&(p++,m++);let g=n.getString(m).length;for(g>1&&(d+=g-1,l+=g-1);b>0&&a>0&&!this._isCharWordSeparator(n.loadCell(b-1,this._workCell));){n.loadCell(b-1,this._workCell);let v=this._workCell.getChars().length;this._workCell.getWidth()===0?(u++,b--):v>1&&(f+=v-1,a-=v-1),a--,b--}for(;m<n.length&&l+1<s.length&&!this._isCharWordSeparator(n.loadCell(m+1,this._workCell));){n.loadCell(m+1,this._workCell);let v=this._workCell.getChars().length;this._workCell.getWidth()===2?(p++,m++):v>1&&(d+=v-1,l+=v-1),l++,m++}}l++;let h=a+c-u+f,y=Math.min(this._bufferService.cols,l-a+u+p-f-d);if(!(!t&&s.slice(a,l).trim()==="")){if(r&&h===0&&n.getCodePoint(0)!==32){let b=i.lines.get(e[1]-1);if(b&&n.isWrapped&&b.getCodePoint(this._bufferService.cols-1)!==32){let m=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(m){let g=this._bufferService.cols-m.start;h-=g,y+=g}}}if(o&&h+y===this._bufferService.cols&&n.getCodePoint(this._bufferService.cols-1)!==32){let b=i.lines.get(e[1]+1);if(b?.isWrapped&&b.getCodePoint(0)!==32){let m=this._getWordAt([0,e[1]+1],!1,!1,!0);m&&(y+=m.length)}}return{start:h,length:y}}}_selectWordAt(e,t){let r=this._getWordAt(e,t);if(r){for(;r.start<0;)r.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[r.start,e[1]],this._model.selectionStartLength=r.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let r=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,r--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,r++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,r]}}_isCharWordSeparator(e){return e.getWidth()===0?!1:this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),r={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=BI(r,this._bufferService.cols)}};LC=jt([te(3,io),te(4,nc),te(5,KC),te(6,no),te(7,xs),te(8,Ss)],LC);var NI=class{constructor(){this._data={}}set(e,t,r){this._data[e]||(this._data[e]={}),this._data[e][t]=r}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}},LI=class{constructor(){this._color=new NI,this._css=new NI}setCss(e,t,r){this._css.set(e,t,r)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,r){this._color.set(e,t,r)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}},ar=Object.freeze((()=>{let e=[Lt.toColor("#2e3436"),Lt.toColor("#cc0000"),Lt.toColor("#4e9a06"),Lt.toColor("#c4a000"),Lt.toColor("#3465a4"),Lt.toColor("#75507b"),Lt.toColor("#06989a"),Lt.toColor("#d3d7cf"),Lt.toColor("#555753"),Lt.toColor("#ef2929"),Lt.toColor("#8ae234"),Lt.toColor("#fce94f"),Lt.toColor("#729fcf"),Lt.toColor("#ad7fa8"),Lt.toColor("#34e2e2"),Lt.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let r=0;r<216;r++){let o=t[r/36%6|0],i=t[r/6%6|0],n=t[r%6];e.push({css:or.toCss(o,i,n),rgba:or.toRgba(o,i,n)})}for(let r=0;r<24;r++){let o=8+r*10;e.push({css:or.toCss(o,o,o),rgba:or.toRgba(o,o,o)})}return e})()),Jl=Lt.toColor("#ffffff"),Hh=Lt.toColor("#000000"),II=Lt.toColor("#ffffff"),zI=Hh,Bh={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117},uQ=Jl,IC=class extends Te{constructor(e){super(),this._optionsService=e,this._contrastCache=new LI,this._halfContrastCache=new LI,this._onChangeColors=this._register(new G),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:Jl,background:Hh,cursor:II,cursorAccent:zI,selectionForeground:void 0,selectionBackgroundTransparent:Bh,selectionBackgroundOpaque:wt.blend(Hh,Bh),selectionInactiveBackgroundTransparent:Bh,selectionInactiveBackgroundOpaque:wt.blend(Hh,Bh),scrollbarSliderBackground:wt.opacity(Jl,.2),scrollbarSliderHoverBackground:wt.opacity(Jl,.4),scrollbarSliderActiveBackground:wt.opacity(Jl,.5),overviewRulerBorder:Jl,ansi:ar.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this._register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this._register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(e={}){let t=this._colors;if(t.foreground=nt(e.foreground,Jl),t.background=nt(e.background,Hh),t.cursor=wt.blend(t.background,nt(e.cursor,II)),t.cursorAccent=wt.blend(t.background,nt(e.cursorAccent,zI)),t.selectionBackgroundTransparent=nt(e.selectionBackground,Bh),t.selectionBackgroundOpaque=wt.blend(t.background,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundTransparent=nt(e.selectionInactiveBackground,t.selectionBackgroundTransparent),t.selectionInactiveBackgroundOpaque=wt.blend(t.background,t.selectionInactiveBackgroundTransparent),t.selectionForeground=e.selectionForeground?nt(e.selectionForeground,MI):void 0,t.selectionForeground===MI&&(t.selectionForeground=void 0),wt.isOpaque(t.selectionBackgroundTransparent)&&(t.selectionBackgroundTransparent=wt.opacity(t.selectionBackgroundTransparent,.3)),wt.isOpaque(t.selectionInactiveBackgroundTransparent)&&(t.selectionInactiveBackgroundTransparent=wt.opacity(t.selectionInactiveBackgroundTransparent,.3)),t.scrollbarSliderBackground=nt(e.scrollbarSliderBackground,wt.opacity(t.foreground,.2)),t.scrollbarSliderHoverBackground=nt(e.scrollbarSliderHoverBackground,wt.opacity(t.foreground,.4)),t.scrollbarSliderActiveBackground=nt(e.scrollbarSliderActiveBackground,wt.opacity(t.foreground,.5)),t.overviewRulerBorder=nt(e.overviewRulerBorder,uQ),t.ansi=ar.slice(),t.ansi[0]=nt(e.black,ar[0]),t.ansi[1]=nt(e.red,ar[1]),t.ansi[2]=nt(e.green,ar[2]),t.ansi[3]=nt(e.yellow,ar[3]),t.ansi[4]=nt(e.blue,ar[4]),t.ansi[5]=nt(e.magenta,ar[5]),t.ansi[6]=nt(e.cyan,ar[6]),t.ansi[7]=nt(e.white,ar[7]),t.ansi[8]=nt(e.brightBlack,ar[8]),t.ansi[9]=nt(e.brightRed,ar[9]),t.ansi[10]=nt(e.brightGreen,ar[10]),t.ansi[11]=nt(e.brightYellow,ar[11]),t.ansi[12]=nt(e.brightBlue,ar[12]),t.ansi[13]=nt(e.brightMagenta,ar[13]),t.ansi[14]=nt(e.brightCyan,ar[14]),t.ansi[15]=nt(e.brightWhite,ar[15]),e.extendedAnsi){let r=Math.min(t.ansi.length-16,e.extendedAnsi.length);for(let o=0;o<r;o++)t.ansi[o+16]=nt(e.extendedAnsi[o],ar[o+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(e){this._restoreColor(e),this._onChangeColors.fire(this.colors)}_restoreColor(e){if(e===void 0){for(let t=0;t<this._restoreColors.ansi.length;++t)this._colors.ansi[t]=this._restoreColors.ansi[t];return}switch(e){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[e]=this._restoreColors.ansi[e]}}modifyColors(e){e(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};IC=jt([te(0,no)],IC);function nt(e,t){if(e!==void 0)try{return Lt.toColor(e)}catch{}return t}var pQ=class{constructor(...e){this._entries=new Map;for(let[t,r]of e)this.set(t,r)}set(e,t){let r=this._entries.get(e);return this._entries.set(e,t),r}forEach(e){for(let[t,r]of this._entries.entries())e(t,r)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}},dQ=class{constructor(){this._services=new pQ,this._services.set(qC,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let r=DY(e).sort((n,s)=>n.index-s.index),o=[];for(let n of r){let s=this._services.get(n.id);if(!s)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${n.id._id}.`);o.push(s)}let i=r.length>0?r[0].index:t.length;if(t.length!==i)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${i+1} conflicts with ${t.length} static arguments`);return new e(...t,...o)}},fQ={trace:0,debug:1,info:2,warn:3,error:4,off:5},hQ="xterm.js: ",zC=class extends Te{constructor(e){super(),this._optionsService=e,this._logLevel=5,this._updateLogLevel(),this._register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),mQ=this}get logLevel(){return this._logLevel}_updateLogLevel(){this._logLevel=fQ[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t<e.length;t++)typeof e[t]=="function"&&(e[t]=e[t]())}_log(e,t,r){this._evalLazyOptionalParams(r),e.call(console,(this._optionsService.options.logger?"":hQ)+t,...r)}trace(e,...t){this._logLevel<=0&&this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger)??console.log,e,t)}debug(e,...t){this._logLevel<=1&&this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger)??console.log,e,t)}info(e,...t){this._logLevel<=2&&this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger)??console.info,e,t)}warn(e,...t){this._logLevel<=3&&this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger)??console.warn,e,t)}error(e,...t){this._logLevel<=4&&this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger)??console.error,e,t)}};zC=jt([te(0,no)],zC);var mQ,FI=class extends Te{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this._register(new G),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this._register(new G),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this._register(new G),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=new Array(e);for(let r=0;r<Math.min(e,this.length);r++)t[r]=this._array[this._getCyclicIndex(r)];this._array=t,this._maxLength=e,this._startIndex=0}get length(){return this._length}set length(e){if(e>this._length)for(let t=this._length;t<e;t++)this._array[t]=void 0;this._length=e}get(e){return this._array[this._getCyclicIndex(e)]}set(e,t){this._array[this._getCyclicIndex(e)]=t}push(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(e,t,...r){if(t){for(let o=e;o<this._length-t;o++)this._array[this._getCyclicIndex(o)]=this._array[this._getCyclicIndex(o+t)];this._length-=t,this.onDeleteEmitter.fire({index:e,amount:t})}for(let o=this._length-1;o>=e;o--)this._array[this._getCyclicIndex(o+r.length)]=this._array[this._getCyclicIndex(o)];for(let o=0;o<r.length;o++)this._array[this._getCyclicIndex(e+o)]=r[o];if(r.length&&this.onInsertEmitter.fire({index:e,amount:r.length}),this._length+r.length>this._maxLength){let o=this._length+r.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=r.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,r){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+r<0)throw new Error("Cannot shift elements in list beyond index 0");if(r>0){for(let i=t-1;i>=0;i--)this.set(e+i+r,this.get(e+i));let o=e+t+r-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let o=0;o<t;o++)this.set(e+o+r,this.get(e+o))}}_getCyclicIndex(e){return(this._startIndex+e)%this._maxLength}},Pe=3,rr=Object.freeze(new Xh),Ib=0,rC=2,Uh=class J3{constructor(t,r,o=!1){this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(t*Pe);let i=r||Ti.fromCharData([0,c3,1,0]);for(let n=0;n<t;++n)this.setCell(n,i);this.length=t}get(t){let r=this._data[t*Pe+0],o=r&2097151;return[this._data[t*Pe+1],r&2097152?this._combined[t]:o?Pa(o):"",r>>22,r&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):o]}set(t,r){this._data[t*Pe+1]=r[0],r[1].length>1?(this._combined[t]=r[1],this._data[t*Pe+0]=t|2097152|r[2]<<22):this._data[t*Pe+0]=r[1].charCodeAt(0)|r[2]<<22}getWidth(t){return this._data[t*Pe+0]>>22}hasWidth(t){return this._data[t*Pe+0]&12582912}getFg(t){return this._data[t*Pe+1]}getBg(t){return this._data[t*Pe+2]}hasContent(t){return this._data[t*Pe+0]&4194303}getCodePoint(t){let r=this._data[t*Pe+0];return r&2097152?this._combined[t].charCodeAt(this._combined[t].length-1):r&2097151}isCombined(t){return this._data[t*Pe+0]&2097152}getString(t){let r=this._data[t*Pe+0];return r&2097152?this._combined[t]:r&2097151?Pa(r&2097151):""}isProtected(t){return this._data[t*Pe+2]&536870912}loadCell(t,r){return Ib=t*Pe,r.content=this._data[Ib+0],r.fg=this._data[Ib+1],r.bg=this._data[Ib+2],r.content&2097152&&(r.combinedData=this._combined[t]),r.bg&268435456&&(r.extended=this._extendedAttrs[t]),r}setCell(t,r){r.content&2097152&&(this._combined[t]=r.combinedData),r.bg&268435456&&(this._extendedAttrs[t]=r.extended),this._data[t*Pe+0]=r.content,this._data[t*Pe+1]=r.fg,this._data[t*Pe+2]=r.bg}setCellFromCodepoint(t,r,o,i){i.bg&268435456&&(this._extendedAttrs[t]=i.extended),this._data[t*Pe+0]=r|o<<22,this._data[t*Pe+1]=i.fg,this._data[t*Pe+2]=i.bg}addCodepointToCell(t,r,o){let i=this._data[t*Pe+0];i&2097152?this._combined[t]+=Pa(r):i&2097151?(this._combined[t]=Pa(i&2097151)+Pa(r),i&=-2097152,i|=2097152):i=r|1<<22,o&&(i&=-12582913,i|=o<<22),this._data[t*Pe+0]=i}insertCells(t,r,o){if(t%=this.length,t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,o),r<this.length-t){let i=new Ti;for(let n=this.length-t-r-1;n>=0;--n)this.setCell(t+r+n,this.loadCell(t+n,i));for(let n=0;n<r;++n)this.setCell(t+n,o)}else for(let i=t;i<this.length;++i)this.setCell(i,o);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,o)}deleteCells(t,r,o){if(t%=this.length,r<this.length-t){let i=new Ti;for(let n=0;n<this.length-t-r;++n)this.setCell(t+n,this.loadCell(t+r+n,i));for(let n=this.length-r;n<this.length;++n)this.setCell(n,o)}else for(let i=t;i<this.length;++i)this.setCell(i,o);t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,o),this.getWidth(t)===0&&!this.hasContent(t)&&this.setCellFromCodepoint(t,0,1,o)}replaceCells(t,r,o,i=!1){if(i){for(t&&this.getWidth(t-1)===2&&!this.isProtected(t-1)&&this.setCellFromCodepoint(t-1,0,1,o),r<this.length&&this.getWidth(r-1)===2&&!this.isProtected(r)&&this.setCellFromCodepoint(r,0,1,o);t<r&&t<this.length;)this.isProtected(t)||this.setCell(t,o),t++;return}for(t&&this.getWidth(t-1)===2&&this.setCellFromCodepoint(t-1,0,1,o),r<this.length&&this.getWidth(r-1)===2&&this.setCellFromCodepoint(r,0,1,o);t<r&&t<this.length;)this.setCell(t++,o)}resize(t,r){if(t===this.length)return this._data.length*4*rC<this._data.buffer.byteLength;let o=t*Pe;if(t>this.length){if(this._data.buffer.byteLength>=o*4)this._data=new Uint32Array(this._data.buffer,0,o);else{let i=new Uint32Array(o);i.set(this._data),this._data=i}for(let i=this.length;i<t;++i)this.setCell(i,r)}else{this._data=this._data.subarray(0,o);let i=Object.keys(this._combined);for(let s=0;s<i.length;s++){let a=parseInt(i[s],10);a>=t&&delete this._combined[a]}let n=Object.keys(this._extendedAttrs);for(let s=0;s<n.length;s++){let a=parseInt(n[s],10);a>=t&&delete this._extendedAttrs[a]}}return this.length=t,o*4*rC<this._data.buffer.byteLength}cleanupMemory(){if(this._data.length*4*rC<this._data.buffer.byteLength){let t=new Uint32Array(this._data.length);return t.set(this._data),this._data=t,1}return 0}fill(t,r=!1){if(r){for(let o=0;o<this.length;++o)this.isProtected(o)||this.setCell(o,t);return}this._combined={},this._extendedAttrs={};for(let o=0;o<this.length;++o)this.setCell(o,t)}copyFrom(t){this.length!==t.length?this._data=new Uint32Array(t._data):this._data.set(t._data),this.length=t.length,this._combined={};for(let r in t._combined)this._combined[r]=t._combined[r];this._extendedAttrs={};for(let r in t._extendedAttrs)this._extendedAttrs[r]=t._extendedAttrs[r];this.isWrapped=t.isWrapped}clone(){let t=new J3(0);t._data=new Uint32Array(this._data),t.length=this.length;for(let r in this._combined)t._combined[r]=this._combined[r];for(let r in this._extendedAttrs)t._extendedAttrs[r]=this._extendedAttrs[r];return t.isWrapped=this.isWrapped,t}getTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Pe+0]&4194303)return t+(this._data[t*Pe+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(this._data[t*Pe+0]&4194303||this._data[t*Pe+2]&50331648)return t+(this._data[t*Pe+0]>>22);return 0}copyCellsFrom(t,r,o,i,n){let s=t._data;if(n)for(let l=i-1;l>=0;l--){for(let c=0;c<Pe;c++)this._data[(o+l)*Pe+c]=s[(r+l)*Pe+c];s[(r+l)*Pe+2]&268435456&&(this._extendedAttrs[o+l]=t._extendedAttrs[r+l])}else for(let l=0;l<i;l++){for(let c=0;c<Pe;c++)this._data[(o+l)*Pe+c]=s[(r+l)*Pe+c];s[(r+l)*Pe+2]&268435456&&(this._extendedAttrs[o+l]=t._extendedAttrs[r+l])}let a=Object.keys(t._combined);for(let l=0;l<a.length;l++){let c=parseInt(a[l],10);c>=r&&(this._combined[c-r+o]=t._combined[c])}}translateToString(t,r,o,i){r=r??0,o=o??this.length,t&&(o=Math.min(o,this.getTrimmedLength())),i&&(i.length=0);let n="";for(;r<o;){let s=this._data[r*Pe+0],a=s&2097151,l=s&2097152?this._combined[r]:a?Pa(a):Ea;if(n+=l,i)for(let c=0;c<l.length;++c)i.push(r);r+=s>>22||1}return i&&i.push(r),n}};function yQ(e,t,r,o,i,n){let s=[];for(let a=0;a<e.length-1;a++){let l=a,c=e.get(++l);if(!c.isWrapped)continue;let u=[e.get(a)];for(;l<e.length&&c.isWrapped;)u.push(c),c=e.get(++l);if(!n&&o>=a&&o<l){a+=u.length-1;continue}let p=0,f=Yh(u,p,t),d=1,h=0;for(;d<u.length;){let b=Yh(u,d,t),m=b-h,g=r-f,v=Math.min(m,g);u[p].copyCellsFrom(u[d],h,f,v,!1),f+=v,f===r&&(p++,f=0),h+=v,h===b&&(d++,h=0),f===0&&p!==0&&u[p-1].getWidth(r-1)===2&&(u[p].copyCellsFrom(u[p-1],r-1,f++,1,!1),u[p-1].setCell(r-1,i))}u[p].replaceCells(f,r,i);let y=0;for(let b=u.length-1;b>0&&(b>p||u[b].getTrimmedLength()===0);b--)y++;y>0&&(s.push(a+u.length-y),s.push(y)),a+=u.length-1}return s}function gQ(e,t){let r=[],o=0,i=t[o],n=0;for(let s=0;s<e.length;s++)if(i===s){let a=t[++o];e.onDeleteEmitter.fire({index:s-n,amount:a}),s+=a-1,n+=a,i=t[++o]}else r.push(s);return{layout:r,countRemoved:n}}function vQ(e,t){let r=[];for(let o=0;o<t.length;o++)r.push(e.get(t[o]));for(let o=0;o<r.length;o++)e.set(o,r[o]);e.length=t.length}function bQ(e,t,r){let o=[],i=e.map((l,c)=>Yh(e,c,t)).reduce((l,c)=>l+c),n=0,s=0,a=0;for(;a<i;){if(i-a<r){o.push(i-a);break}n+=r;let l=Yh(e,s,t);n>l&&(n-=l,s++);let c=e[s].getWidth(n-1)===2;c&&n--;let u=c?r-1:r;o.push(u),a+=u}return o}function Yh(e,t,r){if(t===e.length-1)return e[t].getTrimmedLength();let o=!e[t].hasContent(r-1)&&e[t].getWidth(r-1)===1,i=e[t+1].getWidth(0)===2;return o&&i?r-1:r}var ez=class tz{constructor(t){this.line=t,this.isDisposed=!1,this._disposables=[],this._id=tz._nextId++,this._onDispose=this.register(new G),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),oc(this._disposables),this._disposables.length=0)}register(t){return this._disposables.push(t),t}};ez._nextId=1;var _Q=ez,cr={},ec=cr.B;cr[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"};cr.A={"#":"\xA3"};cr.B=void 0;cr[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"};cr.C=cr[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"};cr.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"};cr.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"};cr.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"};cr.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"};cr.E=cr[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"};cr.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"};cr.H=cr[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"};cr["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"};var HI=4294967295,UI=class{constructor(e,t,r){this._hasScrollback=e,this._optionsService=t,this._bufferService=r,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=rr.clone(),this.savedCharset=ec,this.markers=[],this._nullCell=Ti.fromCharData([0,c3,1,0]),this._whitespaceCell=Ti.fromCharData([0,Ea,1,32]),this._isClearing=!1,this._memoryCleanupQueue=new t_,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new FI(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new Gb),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new Gb),this._whitespaceCell}getBlankLine(e,t){return new Uh(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows}_getCorrectBufferLength(e){if(!this._hasScrollback)return e;let t=e+this._optionsService.rawOptions.scrollback;return t>HI?HI:t}fillViewportRows(e){if(this.lines.length===0){e===void 0&&(e=rr);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new FI(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let r=this.getNullCell(rr),o=0,i=this._getCorrectBufferLength(t);if(i>this.lines.maxLength&&(this.lines.maxLength=i),this.lines.length>0){if(this._cols<e)for(let s=0;s<this.lines.length;s++)o+=+this.lines.get(s).resize(e,r);let n=0;if(this._rows<t)for(let s=this._rows;s<t;s++)this.lines.length<t+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new Uh(e,r)):this.ybase>0&&this.lines.length<=this.ybase+this.y+n+1?(this.ybase--,n++,this.ydisp>0&&this.ydisp--):this.lines.push(new Uh(e,r)));else for(let s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(i<this.lines.maxLength){let s=this.lines.length-i;s>0&&(this.lines.trimStart(s),this.ybase=Math.max(this.ybase-s,0),this.ydisp=Math.max(this.ydisp-s,0),this.savedY=Math.max(this.savedY-s,0)),this.lines.maxLength=i}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),n&&(this.y+=n),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let n=0;n<this.lines.length;n++)o+=+this.lines.get(n).resize(e,r);this._cols=e,this._rows=t,this._memoryCleanupQueue.clear(),o>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition<this.lines.length;)if(t+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),t>100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&e.backend==="conpty"&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let r=this._optionsService.rawOptions.reflowCursorLine,o=yQ(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(rr),r);if(o.length>0){let i=gQ(this.lines,o);vQ(this.lines,i.layout),this._reflowLargerAdjustViewport(e,t,i.countRemoved)}}_reflowLargerAdjustViewport(e,t,r){let o=this.getNullCell(rr),i=r;for(;i-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<t&&this.lines.push(new Uh(e,o))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-r,0)}_reflowSmaller(e,t){let r=this._optionsService.rawOptions.reflowCursorLine,o=this.getNullCell(rr),i=[],n=0;for(let s=this.lines.length-1;s>=0;s--){let a=this.lines.get(s);if(!a||!a.isWrapped&&a.getTrimmedLength()<=e)continue;let l=[a];for(;a.isWrapped&&s>0;)a=this.lines.get(--s),l.unshift(a);if(!r){let v=this.ybase+this.y;if(v>=s&&v<s+l.length)continue}let c=l[l.length-1].getTrimmedLength(),u=bQ(l,this._cols,e),p=u.length-l.length,f;this.ybase===0&&this.y!==this.lines.length-1?f=Math.max(0,this.y-this.lines.maxLength+p):f=Math.max(0,this.lines.length-this.lines.maxLength+p);let d=[];for(let v=0;v<p;v++){let S=this.getBlankLine(rr,!0);d.push(S)}d.length>0&&(i.push({start:s+l.length+n,newLines:d}),n+=d.length),l.push(...d);let h=u.length-1,y=u[h];y===0&&(h--,y=u[h]);let b=l.length-p-1,m=c;for(;b>=0;){let v=Math.min(m,y);if(l[h]===void 0)break;if(l[h].copyCellsFrom(l[b],m-v,y-v,v,!0),y-=v,y===0&&(h--,y=u[h]),m-=v,m===0){b--;let S=Math.max(b,0);m=Yh(l,S,this._cols)}}for(let v=0;v<l.length;v++)u[v]<e&&l[v].setCell(u[v],o);let g=p-f;for(;g-- >0;)this.ybase===0?this.y<t-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+n)-t&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+p,this.ybase+t-1)}if(i.length>0){let s=[],a=[];for(let y=0;y<this.lines.length;y++)a.push(this.lines.get(y));let l=this.lines.length,c=l-1,u=0,p=i[u];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+n);let f=0;for(let y=Math.min(this.lines.maxLength-1,l+n-1);y>=0;y--)if(p&&p.start>c+f){for(let b=p.newLines.length-1;b>=0;b--)this.lines.set(y--,p.newLines[b]);y++,s.push({index:c+1,amount:p.newLines.length}),f+=p.newLines.length,p=i[++u]}else this.lines.set(y,a[c--]);let d=0;for(let y=s.length-1;y>=0;y--)s[y].index+=d,this.lines.onInsertEmitter.fire(s[y]),d+=s[y].amount;let h=Math.max(0,l+n-this.lines.maxLength);h>0&&this.lines.onTrimEmitter.fire(h)}}translateBufferLineToString(e,t,r=0,o){let i=this.lines.get(e);return i?i.translateToString(t,r,o):""}getWrappedRangeForLine(e){let t=e,r=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;r+1<this.lines.length&&this.lines.get(r+1).isWrapped;)r++;return{first:t,last:r}}setupTabStops(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.rawOptions.tabStopWidth)this.tabs[e]=!0}prevStop(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t<this.markers.length;t++)this.markers[t].line===e&&(this.markers[t].dispose(),this.markers.splice(t--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let e=0;e<this.markers.length;e++)this.markers[e].dispose();this.markers.length=0,this._isClearing=!1}addMarker(e){let t=new _Q(e);return this.markers.push(t),t.register(this.lines.onTrim(r=>{t.line-=r,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(r=>{t.line>=r.index&&(t.line+=r.amount)})),t.register(this.lines.onDelete(r=>{t.line>=r.index&&t.line<r.index+r.amount&&t.dispose(),t.line>r.index&&(t.line-=r.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}},SQ=class extends Te{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this._register(new G),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this._register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this._register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new UI(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new UI(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}},rz=2,oz=1,FC=class extends Te{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this._register(new G),this.onResize=this._onResize.event,this._onScroll=this._register(new G),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,rz),this.rows=Math.max(e.rawOptions.rows||0,oz),this.buffers=this._register(new SQ(e,this)),this._register(this.buffers.onBufferActivate(t=>{this._onScroll.fire(t.activeBuffer.ydisp)}))}get buffer(){return this.buffers.active}resize(e,t){let r=this.cols!==e,o=this.rows!==t;this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t,colsChanged:r,rowsChanged:o})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let r=this.buffer,o;o=this._cachedBlankLine,(!o||o.length!==this.cols||o.getFg(0)!==e.fg||o.getBg(0)!==e.bg)&&(o=r.getBlankLine(e,t),this._cachedBlankLine=o),o.isWrapped=t;let i=r.ybase+r.scrollTop,n=r.ybase+r.scrollBottom;if(r.scrollTop===0){let s=r.lines.isFull;n===r.lines.length-1?s?r.lines.recycle().copyFrom(o):r.lines.push(o.clone()):r.lines.splice(n+1,0,o.clone()),s?this.isUserScrolling&&(r.ydisp=Math.max(r.ydisp-1,0)):(r.ybase++,this.isUserScrolling||r.ydisp++)}else{let s=n-i+1;r.lines.shiftElements(i+1,s-1,-1),r.lines.set(n,o.clone())}this.isUserScrolling||(r.ydisp=r.ybase),this._onScroll.fire(r.ydisp)}scrollLines(e,t){let r=this.buffer;if(e<0){if(r.ydisp===0)return;this.isUserScrolling=!0}else e+r.ydisp>=r.ybase&&(this.isUserScrolling=!1);let o=r.ydisp;r.ydisp=Math.max(Math.min(r.ydisp+e,r.ybase),0),o!==r.ydisp&&(t||this._onScroll.fire(r.ydisp))}};FC=jt([te(0,no)],FC);var Lp={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnEraseInDisplay:!1,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},reflowCursorLine:!1,rescaleOverlappingGlyphs:!1,rightClickSelectsWord:e_,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRuler:{}},xQ=["normal","bold","100","200","300","400","500","600","700","800","900"],TQ=class extends Te{constructor(e){super(),this._onOptionChange=this._register(new G),this.onOptionChange=this._onOptionChange.event;let t={...Lp};for(let r in e)if(r in t)try{let o=e[r];t[r]=this._sanitizeAndValidateOption(r,o)}catch(o){console.error(o)}this.rawOptions=t,this.options={...t},this._setupOptions(),this._register(Rt(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(e,t){return this.onOptionChange(r=>{r===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(r=>{e.indexOf(r)!==-1&&t()})}_setupOptions(){let e=r=>{if(!(r in Lp))throw new Error(`No option with key "${r}"`);return this.rawOptions[r]},t=(r,o)=>{if(!(r in Lp))throw new Error(`No option with key "${r}"`);o=this._sanitizeAndValidateOption(r,o),this.rawOptions[r]!==o&&(this.rawOptions[r]=o,this._onOptionChange.fire(r))};for(let r in this.rawOptions){let o={get:e.bind(this,r),set:t.bind(this,r)};Object.defineProperty(this.options,r,o)}}_sanitizeAndValidateOption(e,t){switch(e){case"cursorStyle":if(t||(t=Lp[e]),!CQ(t))throw new Error(`"${t}" is not a valid value for ${e}`);break;case"wordSeparator":t||(t=Lp[e]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=xQ.includes(t)?t:Lp[e];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(`${e} cannot be less than 1, value: ${t}`);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(t*10)/10));break;case"scrollback":if(t=Math.min(t,4294967295),t<0)throw new Error(`${e} cannot be less than 0, value: ${t}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${t}`);break;case"rows":case"cols":if(!t&&t!==0)throw new Error(`${e} must be numeric, value: ${t}`);break;case"windowsPty":t=t??{};break}return t}};function CQ(e){return e==="block"||e==="underline"||e==="bar"}function $h(e,t=5){if(typeof e!="object")return e;let r=Array.isArray(e)?[]:{};for(let o in e)r[o]=t<=1?e[o]:e[o]&&$h(e[o],t-1);return r}var $I=Object.freeze({insertMode:!1}),jI=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,cursorBlink:void 0,cursorStyle:void 0,origin:!1,reverseWraparound:!1,sendFocus:!1,synchronizedOutput:!1,wraparound:!0}),HC=class extends Te{constructor(e,t,r){super(),this._bufferService=e,this._logService=t,this._optionsService=r,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this._register(new G),this.onData=this._onData.event,this._onUserInput=this._register(new G),this.onUserInput=this._onUserInput.event,this._onBinary=this._register(new G),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this._register(new G),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=$h($I),this.decPrivateModes=$h(jI)}reset(){this.modes=$h($I),this.decPrivateModes=$h(jI)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let r=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&r.ybase!==r.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`),this._logService.trace("sending data (codes)",()=>e.split("").map(o=>o.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`),this._logService.trace("sending binary (codes)",()=>e.split("").map(t=>t.charCodeAt(0))),this._onBinary.fire(e))}};HC=jt([te(0,io),te(1,h3),te(2,no)],HC);var WI={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button===4||e.action!==1?!1:(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>!(e.action===32&&e.button===3)},ANY:{events:31,restrict:e=>!0}};function oC(e,t){let r=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(r|=64,r|=e.action):(r|=e.button&3,e.button&4&&(r|=64),e.button&8&&(r|=128),e.action===32?r|=32:e.action===0&&!t&&(r|=3)),r}var iC=String.fromCharCode,VI={DEFAULT:e=>{let t=[oC(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1B[M${iC(t[0])}${iC(t[1])}${iC(t[2])}`},SGR:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${oC(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${oC(e,!0)};${e.x};${e.y}${t}`}},UC=class extends Te{constructor(e,t,r){super(),this._bufferService=e,this._coreService=t,this._optionsService=r,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._wheelPartialScroll=0,this._onProtocolChange=this._register(new G),this.onProtocolChange=this._onProtocolChange.event;for(let o of Object.keys(WI))this.addProtocol(o,WI[o]);for(let o of Object.keys(VI))this.addEncoding(o,VI[o]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null,this._wheelPartialScroll=0}consumeWheelEvent(e,t,r){if(e.deltaY===0||e.shiftKey||t===void 0||r===void 0)return 0;let o=t/r,i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=o+0,Math.abs(e.deltaY)<50&&(i*=.3),this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i}_applyScrollModifier(e,t){return t.altKey||t.ctrlKey||t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(e&1),up:!!(e&2),drag:!!(e&4),move:!!(e&8),wheel:!!(e&16)}}_equalEvents(e,t,r){if(r){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return!(e.button!==t.button||e.action!==t.action||e.ctrl!==t.ctrl||e.alt!==t.alt||e.shift!==t.shift)}};UC=jt([te(0,io),te(1,nc),te(2,no)],UC);var nC=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],wQ=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],lr;function RQ(e,t){let r=0,o=t.length-1,i;if(e<t[0][0]||e>t[o][1])return!1;for(;o>=r;)if(i=r+o>>1,e>t[i][1])r=i+1;else if(e<t[i][0])o=i-1;else return!0;return!1}var PQ=class{constructor(){if(this.version="6",!lr){lr=new Uint8Array(65536),lr.fill(1),lr[0]=0,lr.fill(0,1,32),lr.fill(0,127,160),lr.fill(2,4352,4448),lr[9001]=2,lr[9002]=2,lr.fill(2,11904,42192),lr[12351]=1,lr.fill(2,44032,55204),lr.fill(2,63744,64256),lr.fill(2,65040,65050),lr.fill(2,65072,65136),lr.fill(2,65280,65377),lr.fill(2,65504,65511);for(let e=0;e<nC.length;++e)lr.fill(0,nC[e][0],nC[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?lr[e]:RQ(e,wQ)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let r=this.wcwidth(e),o=r===0&&t!==0;if(o){let i=tc.extractWidth(t);i===0?o=!1:i>r&&(r=i)}return tc.createPropertyValue(0,r,o)}},tc=class Kb{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new G,this.onChange=this._onChange.event;let t=new PQ;this.register(t),this._active=t.version,this._activeProvider=t}static extractShouldJoin(t){return(t&1)!==0}static extractWidth(t){return t>>1&3}static extractCharKind(t){return t>>3}static createPropertyValue(t,r,o=!1){return(t&16777215)<<3|(r&3)<<1|(o?1:0)}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(t){if(!this._providers[t])throw new Error(`unknown Unicode version "${t}"`);this._active=t,this._activeProvider=this._providers[t],this._onChange.fire(t)}register(t){this._providers[t.version]=t}wcwidth(t){return this._activeProvider.wcwidth(t)}getStringCellWidth(t){let r=0,o=0,i=t.length;for(let n=0;n<i;++n){let s=t.charCodeAt(n);if(55296<=s&&s<=56319){if(++n>=i)return r+this.wcwidth(s);let c=t.charCodeAt(n);56320<=c&&c<=57343?s=(s-55296)*1024+c-56320+65536:r+=this.wcwidth(c)}let a=this.charProperties(s,o),l=Kb.extractWidth(a);Kb.extractShouldJoin(a)&&(l-=Kb.extractWidth(o)),r+=l,o=a}return r}charProperties(t,r){return this._activeProvider.charProperties(t,r)}},EQ=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}};function qI(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&t&&(r.isWrapped=t[3]!==0&&t[3]!==32)}var Nh=2147483647,kQ=256,iz=class $C{constructor(t=32,r=32){if(this.maxLength=t,this.maxSubParamsLength=r,r>kQ)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(t),this.length=0,this._subParams=new Int32Array(r),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(t),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(t){let r=new $C;if(!t.length)return r;for(let o=Array.isArray(t[0])?1:0;o<t.length;++o){let i=t[o];if(Array.isArray(i))for(let n=0;n<i.length;++n)r.addSubParam(i[n]);else r.addParam(i)}return r}clone(){let t=new $C(this.maxLength,this.maxSubParamsLength);return t.params.set(this.params),t.length=this.length,t._subParams.set(this._subParams),t._subParamsLength=this._subParamsLength,t._subParamsIdx.set(this._subParamsIdx),t._rejectDigits=this._rejectDigits,t._rejectSubDigits=this._rejectSubDigits,t._digitIsSub=this._digitIsSub,t}toArray(){let t=[];for(let r=0;r<this.length;++r){t.push(this.params[r]);let o=this._subParamsIdx[r]>>8,i=this._subParamsIdx[r]&255;i-o>0&&t.push(Array.prototype.slice.call(this._subParams,o,i))}return t}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(t){if(this._digitIsSub=!1,this.length>=this.maxLength){this._rejectDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=t>Nh?Nh:t}addSubParam(t){if(this._digitIsSub=!0,!!this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength){this._rejectSubDigits=!0;return}if(t<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=t>Nh?Nh:t,this._subParamsIdx[this.length-1]++}}hasSubParams(t){return(this._subParamsIdx[t]&255)-(this._subParamsIdx[t]>>8)>0}getSubParams(t){let r=this._subParamsIdx[t]>>8,o=this._subParamsIdx[t]&255;return o-r>0?this._subParams.subarray(r,o):null}getSubParamsAll(){let t={};for(let r=0;r<this.length;++r){let o=this._subParamsIdx[r]>>8,i=this._subParamsIdx[r]&255;i-o>0&&(t[r]=this._subParams.slice(o,i))}return t}addDigit(t){let r;if(this._rejectDigits||!(r=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let o=this._digitIsSub?this._subParams:this.params,i=o[r-1];o[r-1]=~i?Math.min(i*10+t,Nh):t}},Lh=[],OQ=class{constructor(){this._state=0,this._active=Lh,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let r=this._handlers[e];return r.push(t),{dispose:()=>{let o=r.indexOf(t);o!==-1&&r.splice(o,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=Lh}reset(){if(this._state===2)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=Lh,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||Lh,!this._active.length)this._handlerFb(this._id,"START");else for(let e=this._active.length-1;e>=0;e--)this._active[e].start()}_put(e,t,r){if(!this._active.length)this._handlerFb(this._id,"PUT",o_(e,t,r));else for(let o=this._active.length-1;o>=0;o--)this._active[o].put(e,t,r)}start(){this.reset(),this._state=1}put(e,t,r){if(this._state!==3){if(this._state===1)for(;t<r;){let o=e[t++];if(o===59){this._state=2,this._start();break}if(o<48||57<o){this._state=3;return}this._id===-1&&(this._id=0),this._id=this._id*10+o-48}this._state===2&&r-t>0&&this._put(e,t,r)}}end(e,t=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),!this._active.length)this._handlerFb(this._id,"END",e);else{let r=!1,o=this._active.length-1,i=!1;if(this._stack.paused&&(o=this._stack.loopPosition-1,r=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&r===!1){for(;o>=0&&(r=this._active[o].end(e),r!==!0);o--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=o,this._stack.fallThrough=!1,r;o--}for(;o>=0;o--)if(r=this._active[o].end(!1),r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=o,this._stack.fallThrough=!0,r}this._active=Lh,this._id=-1,this._state=0}}},Ko=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,r){this._hitLimit||(this._data+=o_(e,t,r),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(r=>(this._data="",this._hitLimit=!1,r));return this._data="",this._hitLimit=!1,t}},Ih=[],MQ=class{constructor(){this._handlers=Object.create(null),this._active=Ih,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=Ih}registerHandler(e,t){this._handlers[e]===void 0&&(this._handlers[e]=[]);let r=this._handlers[e];return r.push(t),{dispose:()=>{let o=r.indexOf(t);o!==-1&&r.splice(o,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=Ih,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||Ih,!this._active.length)this._handlerFb(this._ident,"HOOK",t);else for(let r=this._active.length-1;r>=0;r--)this._active[r].hook(t)}put(e,t,r){if(!this._active.length)this._handlerFb(this._ident,"PUT",o_(e,t,r));else for(let o=this._active.length-1;o>=0;o--)this._active[o].put(e,t,r)}unhook(e,t=!0){if(!this._active.length)this._handlerFb(this._ident,"UNHOOK",e);else{let r=!1,o=this._active.length-1,i=!1;if(this._stack.paused&&(o=this._stack.loopPosition-1,r=t,i=this._stack.fallThrough,this._stack.paused=!1),!i&&r===!1){for(;o>=0&&(r=this._active[o].unhook(e),r!==!0);o--)if(r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=o,this._stack.fallThrough=!1,r;o--}for(;o>=0;o--)if(r=this._active[o].unhook(!1),r instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=o,this._stack.fallThrough=!0,r}this._active=Ih,this._ident=0}},jh=new iz;jh.addParam(0);var KI=class{constructor(e){this._handler=e,this._data="",this._params=jh,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():jh,this._data="",this._hitLimit=!1}put(e,t,r){this._hitLimit||(this._data+=o_(e,t,r),this._data.length>1e7&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(r=>(this._params=jh,this._data="",this._hitLimit=!1,r));return this._params=jh,this._data="",this._hitLimit=!1,t}},DQ=class{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,r,o){this.table[t<<8|e]=r<<4|o}addMany(e,t,r,o){for(let i=0;i<e.length;i++)this.table[t<<8|e[i]]=r<<4|o}},xi=160,AQ=(function(){let e=new DQ(4095),t=Array.apply(null,Array(256)).map((a,l)=>l),r=(a,l)=>t.slice(a,l),o=r(32,127),i=r(0,24);i.push(25),i.push.apply(i,r(28,32));let n=r(0,14),s;e.setDefault(1,0),e.addMany(o,0,2,0);for(s in n)e.addMany([24,26,153,154],s,3,0),e.addMany(r(128,144),s,3,0),e.addMany(r(144,152),s,3,0),e.add(156,s,0,0),e.add(27,s,11,1),e.add(157,s,4,8),e.addMany([152,158,159],s,0,7),e.add(155,s,11,3),e.add(144,s,11,9);return e.addMany(i,0,3,0),e.addMany(i,1,3,1),e.add(127,1,0,1),e.addMany(i,8,0,8),e.addMany(i,3,3,3),e.add(127,3,0,3),e.addMany(i,4,3,4),e.add(127,4,0,4),e.addMany(i,6,3,6),e.addMany(i,5,3,5),e.add(127,5,0,5),e.addMany(i,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(o,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(r(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(o,7,0,7),e.addMany(i,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(r(64,127),3,7,0),e.addMany(r(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(r(48,60),4,8,4),e.addMany(r(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(r(32,64),6,0,6),e.add(127,6,0,6),e.addMany(r(64,127),6,0,0),e.addMany(r(32,48),3,9,5),e.addMany(r(32,48),5,9,5),e.addMany(r(48,64),5,0,6),e.addMany(r(64,127),5,7,0),e.addMany(r(32,48),4,9,5),e.addMany(r(32,48),1,9,2),e.addMany(r(32,48),2,9,2),e.addMany(r(48,127),2,10,0),e.addMany(r(48,80),1,10,0),e.addMany(r(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(r(96,127),1,10,0),e.add(80,1,11,9),e.addMany(i,9,0,9),e.add(127,9,0,9),e.addMany(r(28,32),9,0,9),e.addMany(r(32,48),9,9,12),e.addMany(r(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(i,11,0,11),e.addMany(r(32,128),11,0,11),e.addMany(r(28,32),11,0,11),e.addMany(i,10,0,10),e.add(127,10,0,10),e.addMany(r(28,32),10,0,10),e.addMany(r(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(r(32,48),10,9,12),e.addMany(i,12,0,12),e.add(127,12,0,12),e.addMany(r(28,32),12,0,12),e.addMany(r(32,48),12,9,12),e.addMany(r(48,64),12,0,11),e.addMany(r(64,127),12,12,13),e.addMany(r(64,127),10,12,13),e.addMany(r(64,127),9,12,13),e.addMany(i,13,13,13),e.addMany(o,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(xi,0,2,0),e.add(xi,8,5,8),e.add(xi,6,0,6),e.add(xi,11,0,11),e.add(xi,13,13,13),e})(),BQ=class extends Te{constructor(e=AQ){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new iz,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(t,r,o)=>{},this._executeHandlerFb=t=>{},this._csiHandlerFb=(t,r)=>{},this._escHandlerFb=t=>{},this._errorHandlerFb=t=>t,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this._register(Rt(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this._register(new OQ),this._dcsParser=this._register(new MQ),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let r=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(r=e.prefix.charCodeAt(0),r&&60>r||r>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let i=0;i<e.intermediates.length;++i){let n=e.intermediates.charCodeAt(i);if(32>n||n>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");r<<=8,r|=n}}if(e.final.length!==1)throw new Error("final must be a single byte");let o=e.final.charCodeAt(0);if(t[0]>o||o>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return r<<=8,r|=o,r}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(e&255)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let r=this._identifier(e,[48,126]);this._escHandlers[r]===void 0&&(this._escHandlers[r]=[]);let o=this._escHandlers[r];return o.push(t),{dispose:()=>{let i=o.indexOf(t);i!==-1&&o.splice(i,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let r=this._identifier(e);this._csiHandlers[r]===void 0&&(this._csiHandlers[r]=[]);let o=this._csiHandlers[r];return o.push(t),{dispose:()=>{let i=o.indexOf(t);i!==-1&&o.splice(i,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,r,o,i){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=r,this._parseStack.transition=o,this._parseStack.chunkPos=i}parse(e,t,r){let o=0,i=0,n=0,s;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,n=this._parseStack.chunkPos+1;else{if(r===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let a=this._parseStack.handlers,l=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(r===!1&&l>-1){for(;l>=0&&(s=a[l](this._params),s!==!0);l--)if(s instanceof Promise)return this._parseStack.handlerPos=l,s}this._parseStack.handlers=[];break;case 4:if(r===!1&&l>-1){for(;l>=0&&(s=a[l](),s!==!0);l--)if(s instanceof Promise)return this._parseStack.handlerPos=l,s}this._parseStack.handlers=[];break;case 6:if(o=e[this._parseStack.chunkPos],s=this._dcsParser.unhook(o!==24&&o!==26,r),s)return s;o===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(o=e[this._parseStack.chunkPos],s=this._oscParser.end(o!==24&&o!==26,r),s)return s;o===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break}this._parseStack.state=0,n=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=this._parseStack.transition&15}for(let a=n;a<t;++a){switch(o=e[a],i=this._transitions.table[this.currentState<<8|(o<160?o:xi)],i>>4){case 2:for(let f=a+1;;++f){if(f>=t||(o=e[f])<32||o>126&&o<xi){this._printHandler(e,a,f),a=f-1;break}if(++f>=t||(o=e[f])<32||o>126&&o<xi){this._printHandler(e,a,f),a=f-1;break}if(++f>=t||(o=e[f])<32||o>126&&o<xi){this._printHandler(e,a,f),a=f-1;break}if(++f>=t||(o=e[f])<32||o>126&&o<xi){this._printHandler(e,a,f),a=f-1;break}}break;case 3:this._executeHandlers[o]?this._executeHandlers[o]():this._executeHandlerFb(o),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:a,code:o,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let l=this._csiHandlers[this._collect<<8|o],c=l?l.length-1:-1;for(;c>=0&&(s=l[c](this._params),s!==!0);c--)if(s instanceof Promise)return this._preserveStack(3,l,c,i,a),s;c<0&&this._csiHandlerFb(this._collect<<8|o,this._params),this.precedingJoinState=0;break;case 8:do switch(o){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(o-48)}while(++a<t&&(o=e[a])>47&&o<60);a--;break;case 9:this._collect<<=8,this._collect|=o;break;case 10:let u=this._escHandlers[this._collect<<8|o],p=u?u.length-1:-1;for(;p>=0&&(s=u[p](),s!==!0);p--)if(s instanceof Promise)return this._preserveStack(4,u,p,i,a),s;p<0&&this._escHandlerFb(this._collect<<8|o),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|o,this._params);break;case 13:for(let f=a+1;;++f)if(f>=t||(o=e[f])===24||o===26||o===27||o>127&&o<xi){this._dcsParser.put(e,a,f),a=f-1;break}break;case 14:if(s=this._dcsParser.unhook(o!==24&&o!==26),s)return this._preserveStack(6,[],0,i,a),s;o===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let f=a+1;;f++)if(f>=t||(o=e[f])<32||o>127&&o<xi){this._oscParser.put(e,a,f),a=f-1;break}break;case 6:if(s=this._oscParser.end(o!==24&&o!==26),s)return this._preserveStack(5,[],0,i,a),s;o===27&&(i|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break}this.currentState=i&15}}},NQ=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,LQ=/^[\da-f]+$/;function GI(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let r=NQ.exec(t);if(r){let o=r[1]?15:r[4]?255:r[7]?4095:65535;return[Math.round(parseInt(r[1]||r[4]||r[7]||r[10],16)/o*255),Math.round(parseInt(r[2]||r[5]||r[8]||r[11],16)/o*255),Math.round(parseInt(r[3]||r[6]||r[9]||r[12],16)/o*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),LQ.exec(t)&&[3,6,9,12].includes(t.length))){let r=t.length/3,o=[0,0,0];for(let i=0;i<3;++i){let n=parseInt(t.slice(r*i,r*i+r),16);o[i]=r===1?n<<4:r===2?n:r===3?n>>4:n>>8}return o}}function sC(e,t){let r=e.toString(16),o=r.length<2?"0"+r:r;switch(t){case 4:return r[0];case 8:return o;case 12:return(o+o).slice(0,3);default:return o+o}}function IQ(e,t=16){let[r,o,i]=e;return`rgb:${sC(r,t)}/${sC(o,t)}/${sC(i,t)}`}var zQ={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Ra=131072,YI=10;function XI(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var ZI=5e3,QI=0,FQ=class extends Te{constructor(e,t,r,o,i,n,s,a,l=new BQ){super(),this._bufferService=e,this._charsetService=t,this._coreService=r,this._logService=o,this._optionsService=i,this._oscLinkService=n,this._coreMouseService=s,this._unicodeService=a,this._parser=l,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new OY,this._utf8Decoder=new MY,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=rr.clone(),this._eraseAttrDataInternal=rr.clone(),this._onRequestBell=this._register(new G),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this._register(new G),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this._register(new G),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this._register(new G),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this._register(new G),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this._register(new G),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this._register(new G),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this._register(new G),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this._register(new G),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this._register(new G),this.onLineFeed=this._onLineFeed.event,this._onScroll=this._register(new G),this.onScroll=this._onScroll.event,this._onTitleChange=this._register(new G),this.onTitleChange=this._onTitleChange.event,this._onColor=this._register(new G),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this._register(this._parser),this._dirtyRowTracker=new jC(this._bufferService),this._activeBuffer=this._bufferService.buffer,this._register(this._bufferService.buffers.onBufferActivate(c=>this._activeBuffer=c.activeBuffer)),this._parser.setCsiHandlerFallback((c,u)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(c),params:u.toArray()})}),this._parser.setEscHandlerFallback(c=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(c)})}),this._parser.setExecuteHandlerFallback(c=>{this._logService.debug("Unknown EXECUTE code: ",{code:c})}),this._parser.setOscHandlerFallback((c,u,p)=>{this._logService.debug("Unknown OSC code: ",{identifier:c,action:u,data:p})}),this._parser.setDcsHandlerFallback((c,u,p)=>{u==="HOOK"&&(p=p.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(c),action:u,payload:p})}),this._parser.setPrintHandler((c,u,p)=>this.print(c,u,p)),this._parser.registerCsiHandler({final:"@"},c=>this.insertChars(c)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},c=>this.scrollLeft(c)),this._parser.registerCsiHandler({final:"A"},c=>this.cursorUp(c)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},c=>this.scrollRight(c)),this._parser.registerCsiHandler({final:"B"},c=>this.cursorDown(c)),this._parser.registerCsiHandler({final:"C"},c=>this.cursorForward(c)),this._parser.registerCsiHandler({final:"D"},c=>this.cursorBackward(c)),this._parser.registerCsiHandler({final:"E"},c=>this.cursorNextLine(c)),this._parser.registerCsiHandler({final:"F"},c=>this.cursorPrecedingLine(c)),this._parser.registerCsiHandler({final:"G"},c=>this.cursorCharAbsolute(c)),this._parser.registerCsiHandler({final:"H"},c=>this.cursorPosition(c)),this._parser.registerCsiHandler({final:"I"},c=>this.cursorForwardTab(c)),this._parser.registerCsiHandler({final:"J"},c=>this.eraseInDisplay(c,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},c=>this.eraseInDisplay(c,!0)),this._parser.registerCsiHandler({final:"K"},c=>this.eraseInLine(c,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},c=>this.eraseInLine(c,!0)),this._parser.registerCsiHandler({final:"L"},c=>this.insertLines(c)),this._parser.registerCsiHandler({final:"M"},c=>this.deleteLines(c)),this._parser.registerCsiHandler({final:"P"},c=>this.deleteChars(c)),this._parser.registerCsiHandler({final:"S"},c=>this.scrollUp(c)),this._parser.registerCsiHandler({final:"T"},c=>this.scrollDown(c)),this._parser.registerCsiHandler({final:"X"},c=>this.eraseChars(c)),this._parser.registerCsiHandler({final:"Z"},c=>this.cursorBackwardTab(c)),this._parser.registerCsiHandler({final:"`"},c=>this.charPosAbsolute(c)),this._parser.registerCsiHandler({final:"a"},c=>this.hPositionRelative(c)),this._parser.registerCsiHandler({final:"b"},c=>this.repeatPrecedingCharacter(c)),this._parser.registerCsiHandler({final:"c"},c=>this.sendDeviceAttributesPrimary(c)),this._parser.registerCsiHandler({prefix:">",final:"c"},c=>this.sendDeviceAttributesSecondary(c)),this._parser.registerCsiHandler({final:"d"},c=>this.linePosAbsolute(c)),this._parser.registerCsiHandler({final:"e"},c=>this.vPositionRelative(c)),this._parser.registerCsiHandler({final:"f"},c=>this.hVPosition(c)),this._parser.registerCsiHandler({final:"g"},c=>this.tabClear(c)),this._parser.registerCsiHandler({final:"h"},c=>this.setMode(c)),this._parser.registerCsiHandler({prefix:"?",final:"h"},c=>this.setModePrivate(c)),this._parser.registerCsiHandler({final:"l"},c=>this.resetMode(c)),this._parser.registerCsiHandler({prefix:"?",final:"l"},c=>this.resetModePrivate(c)),this._parser.registerCsiHandler({final:"m"},c=>this.charAttributes(c)),this._parser.registerCsiHandler({final:"n"},c=>this.deviceStatus(c)),this._parser.registerCsiHandler({prefix:"?",final:"n"},c=>this.deviceStatusPrivate(c)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},c=>this.softReset(c)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},c=>this.setCursorStyle(c)),this._parser.registerCsiHandler({final:"r"},c=>this.setScrollRegion(c)),this._parser.registerCsiHandler({final:"s"},c=>this.saveCursor(c)),this._parser.registerCsiHandler({final:"t"},c=>this.windowOptions(c)),this._parser.registerCsiHandler({final:"u"},c=>this.restoreCursor(c)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},c=>this.insertColumns(c)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},c=>this.deleteColumns(c)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},c=>this.selectProtected(c)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},c=>this.requestMode(c,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},c=>this.requestMode(c,!1)),this._parser.setExecuteHandler($.BEL,()=>this.bell()),this._parser.setExecuteHandler($.LF,()=>this.lineFeed()),this._parser.setExecuteHandler($.VT,()=>this.lineFeed()),this._parser.setExecuteHandler($.FF,()=>this.lineFeed()),this._parser.setExecuteHandler($.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler($.BS,()=>this.backspace()),this._parser.setExecuteHandler($.HT,()=>this.tab()),this._parser.setExecuteHandler($.SO,()=>this.shiftOut()),this._parser.setExecuteHandler($.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(Vb.IND,()=>this.index()),this._parser.setExecuteHandler(Vb.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(Vb.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new Ko(c=>(this.setTitle(c),this.setIconName(c),!0))),this._parser.registerOscHandler(1,new Ko(c=>this.setIconName(c))),this._parser.registerOscHandler(2,new Ko(c=>this.setTitle(c))),this._parser.registerOscHandler(4,new Ko(c=>this.setOrReportIndexedColor(c))),this._parser.registerOscHandler(8,new Ko(c=>this.setHyperlink(c))),this._parser.registerOscHandler(10,new Ko(c=>this.setOrReportFgColor(c))),this._parser.registerOscHandler(11,new Ko(c=>this.setOrReportBgColor(c))),this._parser.registerOscHandler(12,new Ko(c=>this.setOrReportCursorColor(c))),this._parser.registerOscHandler(104,new Ko(c=>this.restoreIndexedColor(c))),this._parser.registerOscHandler(110,new Ko(c=>this.restoreFgColor(c))),this._parser.registerOscHandler(111,new Ko(c=>this.restoreBgColor(c))),this._parser.registerOscHandler(112,new Ko(c=>this.restoreCursorColor(c))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let c in cr)this._parser.registerEscHandler({intermediates:"(",final:c},()=>this.selectCharset("("+c)),this._parser.registerEscHandler({intermediates:")",final:c},()=>this.selectCharset(")"+c)),this._parser.registerEscHandler({intermediates:"*",final:c},()=>this.selectCharset("*"+c)),this._parser.registerEscHandler({intermediates:"+",final:c},()=>this.selectCharset("+"+c)),this._parser.registerEscHandler({intermediates:"-",final:c},()=>this.selectCharset("-"+c)),this._parser.registerEscHandler({intermediates:".",final:c},()=>this.selectCharset("."+c)),this._parser.registerEscHandler({intermediates:"/",final:c},()=>this.selectCharset("/"+c));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(c=>(this._logService.error("Parsing error: ",c),c)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new KI((c,u)=>this.requestStatusString(c,u)))}getAttrData(){return this._curAttrData}_preserveStack(e,t,r,o){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=r,this._parseStack.position=o}_logSlowResolvingAsync(e){this._logService.logLevel<=3&&Promise.race([e,new Promise((t,r)=>setTimeout(()=>r("#SLOW_TIMEOUT"),ZI))]).catch(t=>{if(t!=="#SLOW_TIMEOUT")throw t;console.warn(`async parser handler taking longer than ${ZI} ms`)})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let r,o=this._activeBuffer.x,i=this._activeBuffer.y,n=0,s=this._parseStack.paused;if(s){if(r=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(r),r;o=this._parseStack.cursorStartX,i=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>Ra&&(n=this._parseStack.position+Ra)}if(this._logService.logLevel<=1&&this._logService.debug(`parsing data ${typeof e=="string"?` "${e}"`:` "${Array.prototype.map.call(e,c=>String.fromCharCode(c)).join("")}"`}`),this._logService.logLevel===0&&this._logService.trace("parsing data (codes)",typeof e=="string"?e.split("").map(c=>c.charCodeAt(0)):e),this._parseBuffer.length<e.length&&this._parseBuffer.length<Ra&&(this._parseBuffer=new Uint32Array(Math.min(e.length,Ra))),s||this._dirtyRowTracker.clearRange(),e.length>Ra)for(let c=n;c<e.length;c+=Ra){let u=c+Ra<e.length?c+Ra:e.length,p=typeof e=="string"?this._stringDecoder.decode(e.substring(c,u),this._parseBuffer):this._utf8Decoder.decode(e.subarray(c,u),this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,p))return this._preserveStack(o,i,p,c),this._logSlowResolvingAsync(r),r}else if(!s){let c=typeof e=="string"?this._stringDecoder.decode(e,this._parseBuffer):this._utf8Decoder.decode(e,this._parseBuffer);if(r=this._parser.parse(this._parseBuffer,c))return this._preserveStack(o,i,c,0),this._logSlowResolvingAsync(r),r}(this._activeBuffer.x!==o||this._activeBuffer.y!==i)&&this._onCursorMove.fire();let a=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),l=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);l<this._bufferService.rows&&this._onRequestRefreshRows.fire({start:Math.min(l,this._bufferService.rows-1),end:Math.min(a,this._bufferService.rows-1)})}print(e,t,r){let o,i,n=this._charsetService.charset,s=this._optionsService.rawOptions.screenReaderMode,a=this._bufferService.cols,l=this._coreService.decPrivateModes.wraparound,c=this._coreService.modes.insertMode,u=this._curAttrData,p=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&r-t>0&&p.getWidth(this._activeBuffer.x-1)===2&&p.setCellFromCodepoint(this._activeBuffer.x-1,0,1,u);let f=this._parser.precedingJoinState;for(let d=t;d<r;++d){if(o=e[d],o<127&&n){let m=n[String.fromCharCode(o)];m&&(o=m.charCodeAt(0))}let h=this._unicodeService.charProperties(o,f);i=tc.extractWidth(h);let y=tc.extractShouldJoin(h),b=y?tc.extractWidth(f):0;if(f=h,s&&this._onA11yChar.fire(Pa(o)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+i-b>a){if(l){let m=p,g=this._activeBuffer.x-b;for(this._activeBuffer.x=b,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),p=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),b>0&&p instanceof Uh&&p.copyCellsFrom(m,g,0,b,!1);g<a;)m.setCellFromCodepoint(g++,0,1,u)}else if(this._activeBuffer.x=a-1,i===2)continue}if(y&&this._activeBuffer.x){let m=p.getWidth(this._activeBuffer.x-1)?1:2;p.addCodepointToCell(this._activeBuffer.x-m,o,i);for(let g=i-b;--g>=0;)p.setCellFromCodepoint(this._activeBuffer.x++,0,0,u);continue}if(c&&(p.insertCells(this._activeBuffer.x,i-b,this._activeBuffer.getNullCell(u)),p.getWidth(a-1)===2&&p.setCellFromCodepoint(a-1,0,1,u)),p.setCellFromCodepoint(this._activeBuffer.x++,o,i,u),i>0)for(;--i;)p.setCellFromCodepoint(this._activeBuffer.x++,0,0,u)}this._parser.precedingJoinState=f,this._activeBuffer.x<a&&r-t>0&&p.getWidth(this._activeBuffer.x)===0&&!p.hasContent(this._activeBuffer.x)&&p.setCellFromCodepoint(this._activeBuffer.x,0,1,u),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return e.final==="t"&&!e.prefix&&!e.intermediates?this._parser.registerCsiHandler(e,r=>XI(r.params[0],this._optionsService.rawOptions.windowOptions)?t(r):!0):this._parser.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new KI(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new Ko(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return t===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:t===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return t===1&&(this._curAttrData.bg|=536870912),(t===2||t===0)&&(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,r,o=!1,i=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,r,this._activeBuffer.getNullCell(this._eraseAttrData()),i),o&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){let r=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);r&&(r.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),r.isWrapped=!1)}eraseInDisplay(e,t=!1){this._restrictCursor(this._bufferService.cols);let r;switch(e.params[0]){case 0:for(r=this._activeBuffer.y,this._dirtyRowTracker.markDirty(r),this._eraseInBufferLine(r++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);r<this._bufferService.rows;r++)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(r);break;case 1:for(r=this._activeBuffer.y,this._dirtyRowTracker.markDirty(r),this._eraseInBufferLine(r,0,this._activeBuffer.x+1,!0,t),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(r+1).isWrapped=!1);r--;)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(0);break;case 2:if(this._optionsService.rawOptions.scrollOnEraseInDisplay){for(r=this._bufferService.rows,this._dirtyRowTracker.markRangeDirty(0,r-1);r--&&!this._activeBuffer.lines.get(this._activeBuffer.ybase+r)?.getTrimmedLength(););for(;r>=0;r--)this._bufferService.scroll(this._eraseAttrData())}else{for(r=this._bufferService.rows,this._dirtyRowTracker.markDirty(r-1);r--;)this._resetBufferLine(r,t);this._dirtyRowTracker.markDirty(0)}break;case 3:let o=this._activeBuffer.lines.length-this._bufferService.rows;o>0&&(this._activeBuffer.lines.trimStart(o),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-o,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-o,0),this._onScroll.fire(0));break}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t);break}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let r=this._activeBuffer.ybase+this._activeBuffer.y,o=this._bufferService.rows-1-this._activeBuffer.scrollBottom,i=this._bufferService.rows-1+this._activeBuffer.ybase-o+1;for(;t--;)this._activeBuffer.lines.splice(i-1,1),this._activeBuffer.lines.splice(r,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let r=this._activeBuffer.ybase+this._activeBuffer.y,o;for(o=this._bufferService.rows-1-this._activeBuffer.scrollBottom,o=this._bufferService.rows-1+this._activeBuffer.ybase-o;t--;)this._activeBuffer.lines.splice(r,1),this._activeBuffer.lines.splice(o,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.insertCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.deleteCells(this._activeBuffer.x,e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(e){let t=e.params[0]||1;for(;t--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(rr));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let o=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);o.deleteCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),o.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let o=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);o.insertCells(0,t,this._activeBuffer.getNullCell(this._eraseAttrData())),o.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let o=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);o.insertCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),o.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;let t=e.params[0]||1;for(let r=this._activeBuffer.scrollTop;r<=this._activeBuffer.scrollBottom;++r){let o=this._activeBuffer.lines.get(this._activeBuffer.ybase+r);o.deleteCells(this._activeBuffer.x,t,this._activeBuffer.getNullCell(this._eraseAttrData())),o.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(e){this._restrictCursor();let t=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return t&&(t.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(e){let t=this._parser.precedingJoinState;if(!t)return!0;let r=e.params[0]||1,o=tc.extractWidth(t),i=this._activeBuffer.x-o,n=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(i),s=new Uint32Array(n.length*r),a=0;for(let c=0;c<n.length;){let u=n.codePointAt(c)||0;s[a++]=u,c+=u>65535?2:1}let l=a;for(let c=1;c<r;++c)s.copyWithin(l,0,a),l+=a;return this.print(s,0,l),!0}sendDeviceAttributesPrimary(e){return e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent($.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent($.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent($.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent($.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent($.ESC+"[>83;40003;0c")),!0}_is(e){return(this._optionsService.rawOptions.termName+"").indexOf(e)===0}setMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0;break}return!0}setModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,ec),this._charsetService.setgCharset(1,ec),this._charsetService.setgCharset(2,ec),this._charsetService.setgCharset(3,ec);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!0;break}return!0}resetMode(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1;break}return!0}resetModePrivate(e){for(let t=0;t<e.length;t++)switch(e.params[t]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),e.params[t]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(void 0),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1;break;case 2026:this._coreService.decPrivateModes.synchronizedOutput=!1,this._onRequestRefreshRows.fire(void 0);break}return!0}requestMode(e,t){(y=>(y[y.NOT_RECOGNIZED=0]="NOT_RECOGNIZED",y[y.SET=1]="SET",y[y.RESET=2]="RESET",y[y.PERMANENTLY_SET=3]="PERMANENTLY_SET",y[y.PERMANENTLY_RESET=4]="PERMANENTLY_RESET"))(void 0||(r={}));let o=this._coreService.decPrivateModes,{activeProtocol:i,activeEncoding:n}=this._coreMouseService,s=this._coreService,{buffers:a,cols:l}=this._bufferService,{active:c,alt:u}=a,p=this._optionsService.rawOptions,f=(y,b)=>(s.triggerDataEvent(`${$.ESC}[${t?"":"?"}${y};${b}$y`),!0),d=y=>y?1:2,h=e.params[0];return t?h===2?f(h,4):h===4?f(h,d(s.modes.insertMode)):h===12?f(h,3):h===20?f(h,d(p.convertEol)):f(h,0):h===1?f(h,d(o.applicationCursorKeys)):h===3?f(h,p.windowOptions.setWinLines?l===80?2:l===132?1:0:0):h===6?f(h,d(o.origin)):h===7?f(h,d(o.wraparound)):h===8?f(h,3):h===9?f(h,d(i==="X10")):h===12?f(h,d(p.cursorBlink)):h===25?f(h,d(!s.isCursorHidden)):h===45?f(h,d(o.reverseWraparound)):h===66?f(h,d(o.applicationKeypad)):h===67?f(h,4):h===1e3?f(h,d(i==="VT200")):h===1002?f(h,d(i==="DRAG")):h===1003?f(h,d(i==="ANY")):h===1004?f(h,d(o.sendFocus)):h===1005?f(h,4):h===1006?f(h,d(n==="SGR")):h===1015?f(h,4):h===1016?f(h,d(n==="SGR_PIXELS")):h===1048?f(h,1):h===47||h===1047||h===1049?f(h,d(c===u)):h===2004?f(h,d(o.bracketedPasteMode)):h===2026?f(h,d(o.synchronizedOutput)):f(h,0)}_updateAttrColor(e,t,r,o,i){return t===2?(e|=50331648,e&=-16777216,e|=Xh.fromColorRGB([r,o,i])):t===5&&(e&=-50331904,e|=33554432|r&255),e}_extractColor(e,t,r){let o=[0,0,-1,0,0,0],i=0,n=0;do{if(o[n+i]=e.params[t+n],e.hasSubParams(t+n)){let s=e.getSubParams(t+n),a=0;do o[1]===5&&(i=1),o[n+a+1+i]=s[a];while(++a<s.length&&a+n+1+i<o.length);break}if(o[1]===5&&n+i>=2||o[1]===2&&n+i>=5)break;o[1]&&(i=1)}while(++n+t<e.length&&n+i<o.length);for(let s=2;s<o.length;++s)o[s]===-1&&(o[s]=0);switch(o[0]){case 38:r.fg=this._updateAttrColor(r.fg,o[1],o[3],o[4],o[5]);break;case 48:r.bg=this._updateAttrColor(r.bg,o[1],o[3],o[4],o[5]);break;case 58:r.extended=r.extended.clone(),r.extended.underlineColor=this._updateAttrColor(r.extended.underlineColor,o[1],o[3],o[4],o[5])}return n}_processUnderline(e,t){t.extended=t.extended.clone(),(!~e||e>5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,e===0&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=rr.fg,e.bg=rr.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(e.length===1&&e.params[0]===0)return this._processSGR0(this._curAttrData),!0;let t=e.length,r,o=this._curAttrData;for(let i=0;i<t;i++)r=e.params[i],r>=30&&r<=37?(o.fg&=-50331904,o.fg|=16777216|r-30):r>=40&&r<=47?(o.bg&=-50331904,o.bg|=16777216|r-40):r>=90&&r<=97?(o.fg&=-50331904,o.fg|=16777216|r-90|8):r>=100&&r<=107?(o.bg&=-50331904,o.bg|=16777216|r-100|8):r===0?this._processSGR0(o):r===1?o.fg|=134217728:r===3?o.bg|=67108864:r===4?(o.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,o)):r===5?o.fg|=536870912:r===7?o.fg|=67108864:r===8?o.fg|=1073741824:r===9?o.fg|=2147483648:r===2?o.bg|=134217728:r===21?this._processUnderline(2,o):r===22?(o.fg&=-134217729,o.bg&=-134217729):r===23?o.bg&=-67108865:r===24?(o.fg&=-268435457,this._processUnderline(0,o)):r===25?o.fg&=-536870913:r===27?o.fg&=-67108865:r===28?o.fg&=-1073741825:r===29?o.fg&=2147483647:r===39?(o.fg&=-67108864,o.fg|=rr.fg&16777215):r===49?(o.bg&=-67108864,o.bg|=rr.bg&16777215):r===38||r===48||r===58?i+=this._extractColor(e,i,o):r===53?o.bg|=1073741824:r===55?o.bg&=-1073741825:r===59?(o.extended=o.extended.clone(),o.extended.underlineColor=-1,o.updateExtended()):r===100?(o.fg&=-67108864,o.fg|=rr.fg&16777215,o.bg&=-67108864,o.bg|=rr.bg&16777215):this._logService.debug("Unknown SGR attribute: %d.",r);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${$.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${$.ESC}[${t};${r}R`);break}return!0}deviceStatusPrivate(e){switch(e.params[0]){case 6:let t=this._activeBuffer.y+1,r=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${$.ESC}[?${t};${r}R`);break;case 15:break;case 25:break;case 26:break;case 53:break}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=rr.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.length===0?1:e.params[0];if(t===0)this._coreService.decPrivateModes.cursorStyle=void 0,this._coreService.decPrivateModes.cursorBlink=void 0;else{switch(t){case 1:case 2:this._coreService.decPrivateModes.cursorStyle="block";break;case 3:case 4:this._coreService.decPrivateModes.cursorStyle="underline";break;case 5:case 6:this._coreService.decPrivateModes.cursorStyle="bar";break}let r=t%2===1;this._coreService.decPrivateModes.cursorBlink=r}return!0}setScrollRegion(e){let t=e.params[0]||1,r;return(e.length<2||(r=e.params[1])>this._bufferService.rows||r===0)&&(r=this._bufferService.rows),r>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=r-1,this._setCursor(0,0)),!0}windowOptions(e){if(!XI(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:t!==2&&this._onRequestWindowsOptionsReport.fire(0);break;case 16:this._onRequestWindowsOptionsReport.fire(1);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${$.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:(t===0||t===2)&&(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>YI&&this._windowTitleStack.shift()),(t===0||t===1)&&(this._iconNameStack.push(this._iconName),this._iconNameStack.length>YI&&this._iconNameStack.shift());break;case 23:(t===0||t===2)&&this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),(t===0||t===1)&&this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop());break}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],r=e.split(";");for(;r.length>1;){let o=r.shift(),i=r.shift();if(/^\d+$/.exec(o)){let n=parseInt(o);if(JI(n))if(i==="?")t.push({type:0,index:n});else{let s=GI(i);s&&t.push({type:1,index:n,color:s})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.indexOf(";");if(t===-1)return!0;let r=e.slice(0,t).trim(),o=e.slice(t+1);return o?this._createHyperlink(r,o):r.trim()?!1:this._finishHyperlink()}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();let r=e.split(":"),o,i=r.findIndex(n=>n.startsWith("id="));return i!==-1&&(o=r[i].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:o,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let r=e.split(";");for(let o=0;o<r.length&&!(t>=this._specialColors.length);++o,++t)if(r[o]==="?")this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let i=GI(r[o]);i&&this._onColor.fire([{type:1,index:this._specialColors[t],color:i}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],r=e.split(";");for(let o=0;o<r.length;++o)if(/^\d+$/.exec(r[o])){let i=parseInt(r[o]);JI(i)&&t.push({type:2,index:i})}return t.length&&this._onColor.fire(t),!0}restoreFgColor(e){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(e){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(e){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,ec),!0}selectCharset(e){return e.length!==2?(this.selectDefaultCharset(),!0):(e[0]==="/"||this._charsetService.setgCharset(zQ[e[0]],cr[e[1]]||ec),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=rr.clone(),this._eraseAttrDataInternal=rr.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=this._curAttrData.bg&67108863,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new Ti;e.content=1<<22|69,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t<this._bufferService.rows;++t){let r=this._activeBuffer.ybase+this._activeBuffer.y+t,o=this._activeBuffer.lines.get(r);o&&(o.fill(e),o.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(e,t){let r=s=>(this._coreService.triggerDataEvent(`${$.ESC}${s}${$.ESC}\\`),!0),o=this._bufferService.buffer,i=this._optionsService.rawOptions;return r(e==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:e==='"p'?'P1$r61;1"p':e==="r"?`P1$r${o.scrollTop+1};${o.scrollBottom+1}r`:e==="m"?"P1$r0m":e===" q"?`P1$r${{block:2,underline:4,bar:6}[i.cursorStyle]-(i.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}},jC=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){e<this.start?this.start=e:e>this.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(QI=e,e=t,t=QI),e<this.start&&(this.start=e),t>this.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};jC=jt([te(0,io)],jC);function JI(e){return 0<=e&&e<256}var HQ=5e7,e3=12,UQ=50,$Q=class extends Te{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this._register(new G),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(t!==void 0&&this._syncCalls>t){this._syncCalls=0;return}if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;this._isSyncWriting=!0;let r;for(;r=this._writeBuffer.shift();){this._action(r);let o=this._callbacks.shift();o&&o()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>HQ)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput){this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),this._innerWrite();return}setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let r=e||performance.now();for(;this._writeBuffer.length>this._bufferOffset;){let o=this._writeBuffer[this._bufferOffset],i=this._action(o,t);if(i){let s=a=>performance.now()-r>=e3?setTimeout(()=>this._innerWrite(0,a)):this._innerWrite(r,a);i.catch(a=>(queueMicrotask(()=>{throw a}),Promise.resolve(!1))).then(s);return}let n=this._callbacks[this._bufferOffset];if(n&&n(),this._bufferOffset++,this._pendingData-=o.length,performance.now()-r>=e3)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>UQ&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}},WC=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(e.id===void 0){let a=t.addMarker(t.ybase+t.y),l={data:e,id:this._nextId++,lines:[a]};return a.onDispose(()=>this._removeMarkerFromLink(l,a)),this._dataByLinkId.set(l.id,l),l.id}let r=e,o=this._getEntryIdKey(r),i=this._entriesWithId.get(o);if(i)return this.addLineToLink(i.id,t.ybase+t.y),i.id;let n=t.addMarker(t.ybase+t.y),s={id:this._nextId++,key:this._getEntryIdKey(r),data:r,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(s,n)),this._entriesWithId.set(s.key,s),this._dataByLinkId.set(s.id,s),s.id}addLineToLink(e,t){let r=this._dataByLinkId.get(e);if(r&&r.lines.every(o=>o.line!==t)){let o=this._bufferService.buffer.addMarker(t);r.lines.push(o),o.onDispose(()=>this._removeMarkerFromLink(r,o))}}getLinkData(e){return this._dataByLinkId.get(e)?.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let r=e.lines.indexOf(t);r!==-1&&(e.lines.splice(r,1),e.lines.length===0&&(e.data.id!==void 0&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};WC=jt([te(0,io)],WC);var t3=!1,jQ=class extends Te{constructor(e){super(),this._windowsWrappingHeuristics=this._register(new zp),this._onBinary=this._register(new G),this.onBinary=this._onBinary.event,this._onData=this._register(new G),this.onData=this._onData.event,this._onLineFeed=this._register(new G),this.onLineFeed=this._onLineFeed.event,this._onResize=this._register(new G),this.onResize=this._onResize.event,this._onWriteParsed=this._register(new G),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this._register(new G),this._instantiationService=new dQ,this.optionsService=this._register(new TQ(e)),this._instantiationService.setService(no,this.optionsService),this._bufferService=this._register(this._instantiationService.createInstance(FC)),this._instantiationService.setService(io,this._bufferService),this._logService=this._register(this._instantiationService.createInstance(zC)),this._instantiationService.setService(h3,this._logService),this.coreService=this._register(this._instantiationService.createInstance(HC)),this._instantiationService.setService(nc,this.coreService),this.coreMouseService=this._register(this._instantiationService.createInstance(UC)),this._instantiationService.setService(f3,this.coreMouseService),this.unicodeService=this._register(this._instantiationService.createInstance(tc)),this._instantiationService.setService(NY,this.unicodeService),this._charsetService=this._instantiationService.createInstance(EQ),this._instantiationService.setService(BY,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(WC),this._instantiationService.setService(m3,this._oscLinkService),this._inputHandler=this._register(new FQ(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this._register(Ir.forward(this._inputHandler.onLineFeed,this._onLineFeed)),this._register(this._inputHandler),this._register(Ir.forward(this._bufferService.onResize,this._onResize)),this._register(Ir.forward(this.coreService.onData,this._onData)),this._register(Ir.forward(this.coreService.onBinary,this._onBinary)),this._register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom(!0))),this._register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this._register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this._register(this._bufferService.onScroll(()=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this._register(new $Q((t,r)=>this._inputHandler.parse(t,r))),this._register(Ir.forward(this._writeBuffer.onWriteParsed,this._onWriteParsed))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this._register(new G),this._onScroll.event(e=>{this._onScrollApi?.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=3&&!t3&&(this._logService.warn("writeSync is unreliable and will be removed soon."),t3=!0),this._writeBuffer.writeSync(e,t)}input(e,t=!0){this.coreService.triggerDataEvent(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,rz),t=Math.max(t,oz),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t){this._bufferService.scrollLines(e,t)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&t.buildNumber!==void 0&&t.buildNumber!==void 0?e=t.backend==="conpty"&&t.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(qI.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>(qI(this._bufferService),!1))),this._windowsWrappingHeuristics.value=Rt(()=>{for(let t of e)t.dispose()})}}},WQ={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};function VQ(e,t,r,o){let i={type:0,cancel:!1,key:void 0},n=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key==="UIKeyInputUpArrow"?t?i.key=$.ESC+"OA":i.key=$.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?i.key=$.ESC+"OD":i.key=$.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?i.key=$.ESC+"OC":i.key=$.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?i.key=$.ESC+"OB":i.key=$.ESC+"[B");break;case 8:i.key=e.ctrlKey?"\b":$.DEL,e.altKey&&(i.key=$.ESC+i.key);break;case 9:if(e.shiftKey){i.key=$.ESC+"[Z";break}i.key=$.HT,i.cancel=!0;break;case 13:i.key=e.altKey?$.ESC+$.CR:$.CR,i.cancel=!0;break;case 27:i.key=$.ESC,e.altKey&&(i.key=$.ESC+$.ESC),i.cancel=!0;break;case 37:if(e.metaKey)break;n?i.key=$.ESC+"[1;"+(n+1)+"D":t?i.key=$.ESC+"OD":i.key=$.ESC+"[D";break;case 39:if(e.metaKey)break;n?i.key=$.ESC+"[1;"+(n+1)+"C":t?i.key=$.ESC+"OC":i.key=$.ESC+"[C";break;case 38:if(e.metaKey)break;n?i.key=$.ESC+"[1;"+(n+1)+"A":t?i.key=$.ESC+"OA":i.key=$.ESC+"[A";break;case 40:if(e.metaKey)break;n?i.key=$.ESC+"[1;"+(n+1)+"B":t?i.key=$.ESC+"OB":i.key=$.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(i.key=$.ESC+"[2~");break;case 46:n?i.key=$.ESC+"[3;"+(n+1)+"~":i.key=$.ESC+"[3~";break;case 36:n?i.key=$.ESC+"[1;"+(n+1)+"H":t?i.key=$.ESC+"OH":i.key=$.ESC+"[H";break;case 35:n?i.key=$.ESC+"[1;"+(n+1)+"F":t?i.key=$.ESC+"OF":i.key=$.ESC+"[F";break;case 33:e.shiftKey?i.type=2:e.ctrlKey?i.key=$.ESC+"[5;"+(n+1)+"~":i.key=$.ESC+"[5~";break;case 34:e.shiftKey?i.type=3:e.ctrlKey?i.key=$.ESC+"[6;"+(n+1)+"~":i.key=$.ESC+"[6~";break;case 112:n?i.key=$.ESC+"[1;"+(n+1)+"P":i.key=$.ESC+"OP";break;case 113:n?i.key=$.ESC+"[1;"+(n+1)+"Q":i.key=$.ESC+"OQ";break;case 114:n?i.key=$.ESC+"[1;"+(n+1)+"R":i.key=$.ESC+"OR";break;case 115:n?i.key=$.ESC+"[1;"+(n+1)+"S":i.key=$.ESC+"OS";break;case 116:n?i.key=$.ESC+"[15;"+(n+1)+"~":i.key=$.ESC+"[15~";break;case 117:n?i.key=$.ESC+"[17;"+(n+1)+"~":i.key=$.ESC+"[17~";break;case 118:n?i.key=$.ESC+"[18;"+(n+1)+"~":i.key=$.ESC+"[18~";break;case 119:n?i.key=$.ESC+"[19;"+(n+1)+"~":i.key=$.ESC+"[19~";break;case 120:n?i.key=$.ESC+"[20;"+(n+1)+"~":i.key=$.ESC+"[20~";break;case 121:n?i.key=$.ESC+"[21;"+(n+1)+"~":i.key=$.ESC+"[21~";break;case 122:n?i.key=$.ESC+"[23;"+(n+1)+"~":i.key=$.ESC+"[23~";break;case 123:n?i.key=$.ESC+"[24;"+(n+1)+"~":i.key=$.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?i.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?i.key=$.NUL:e.keyCode>=51&&e.keyCode<=55?i.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?i.key=$.DEL:e.keyCode===219?i.key=$.ESC:e.keyCode===220?i.key=$.FS:e.keyCode===221&&(i.key=$.GS);else if((!r||o)&&e.altKey&&!e.metaKey){let s=WQ[e.keyCode]?.[e.shiftKey?1:0];if(s)i.key=$.ESC+s;else if(e.keyCode>=65&&e.keyCode<=90){let a=e.ctrlKey?e.keyCode-64:e.keyCode+32,l=String.fromCharCode(a);e.shiftKey&&(l=l.toUpperCase()),i.key=$.ESC+l}else if(e.keyCode===32)i.key=$.ESC+(e.ctrlKey?$.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let a=e.code.slice(3,4);e.shiftKey||(a=a.toLowerCase()),i.key=$.ESC+a,i.cancel=!0}}else r&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(i.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?i.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(i.key=$.US),e.key==="@"&&(i.key=$.NUL));break}return i}var Gt=0,qQ=class{constructor(e){this._getKey=e,this._array=[],this._insertedValues=[],this._flushInsertedTask=new t_,this._isFlushingInserted=!1,this._deletedIndices=[],this._flushDeletedTask=new t_,this._isFlushingDeleted=!1}clear(){this._array.length=0,this._insertedValues.length=0,this._flushInsertedTask.clear(),this._isFlushingInserted=!1,this._deletedIndices.length=0,this._flushDeletedTask.clear(),this._isFlushingDeleted=!1}insert(e){this._flushCleanupDeleted(),this._insertedValues.length===0&&this._flushInsertedTask.enqueue(()=>this._flushInserted()),this._insertedValues.push(e)}_flushInserted(){let e=this._insertedValues.sort((i,n)=>this._getKey(i)-this._getKey(n)),t=0,r=0,o=new Array(this._array.length+this._insertedValues.length);for(let i=0;i<o.length;i++)r>=this._array.length||this._getKey(e[t])<=this._getKey(this._array[r])?(o[i]=e[t],t++):o[i]=this._array[r++];this._array=o,this._insertedValues.length=0}_flushCleanupInserted(){!this._isFlushingInserted&&this._insertedValues.length>0&&this._flushInsertedTask.flush()}delete(e){if(this._flushCleanupInserted(),this._array.length===0)return!1;let t=this._getKey(e);if(t===void 0||(Gt=this._search(t),Gt===-1)||this._getKey(this._array[Gt])!==t)return!1;do if(this._array[Gt]===e)return this._deletedIndices.length===0&&this._flushDeletedTask.enqueue(()=>this._flushDeleted()),this._deletedIndices.push(Gt),!0;while(++Gt<this._array.length&&this._getKey(this._array[Gt])===t);return!1}_flushDeleted(){this._isFlushingDeleted=!0;let e=this._deletedIndices.sort((i,n)=>i-n),t=0,r=new Array(this._array.length-e.length),o=0;for(let i=0;i<this._array.length;i++)e[t]===i?t++:r[o++]=this._array[i];this._array=r,this._deletedIndices.length=0,this._isFlushingDeleted=!1}_flushCleanupDeleted(){!this._isFlushingDeleted&&this._deletedIndices.length>0&&this._flushDeletedTask.flush()}*getKeyIterator(e){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(Gt=this._search(e),!(Gt<0||Gt>=this._array.length)&&this._getKey(this._array[Gt])===e))do yield this._array[Gt];while(++Gt<this._array.length&&this._getKey(this._array[Gt])===e)}forEachByKey(e,t){if(this._flushCleanupInserted(),this._flushCleanupDeleted(),this._array.length!==0&&(Gt=this._search(e),!(Gt<0||Gt>=this._array.length)&&this._getKey(this._array[Gt])===e))do t(this._array[Gt]);while(++Gt<this._array.length&&this._getKey(this._array[Gt])===e)}values(){return this._flushCleanupInserted(),this._flushCleanupDeleted(),[...this._array].values()}_search(e){let t=0,r=this._array.length-1;for(;r>=t;){let o=t+r>>1,i=this._getKey(this._array[o]);if(i>e)r=o-1;else if(i<e)t=o+1;else{for(;o>0&&this._getKey(this._array[o-1])===e;)o--;return o}}return t}},aC=0,r3=0,KQ=class extends Te{constructor(){super(),this._decorations=new qQ(e=>e?.marker.line),this._onDecorationRegistered=this._register(new G),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this._register(new G),this.onDecorationRemoved=this._onDecorationRemoved.event,this._register(Rt(()=>this.reset()))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;let t=new GQ(e);if(t){let r=t.marker.onDispose(()=>t.dispose()),o=t.onDispose(()=>{o.dispose(),t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),r.dispose())});this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,r){let o=0,i=0;for(let n of this._decorations.getKeyIterator(t))o=n.options.x??0,i=o+(n.options.width??1),e>=o&&e<i&&(!r||(n.options.layer??"bottom")===r)&&(yield n)}forEachDecorationAtCell(e,t,r,o){this._decorations.forEachByKey(t,i=>{aC=i.options.x??0,r3=aC+(i.options.width??1),e>=aC&&e<r3&&(!r||(i.options.layer??"bottom")===r)&&o(i)})}},GQ=class extends ka{constructor(e){super(),this.options=e,this.onRenderEmitter=this.add(new G),this.onRender=this.onRenderEmitter.event,this._onDispose=this.add(new G),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=e.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=Lt.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=Lt.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}},YQ=1e3,XQ=class{constructor(e,t=YQ){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,r){this._rowCount=r,e=e!==void 0?e:0,t=t!==void 0?t:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,e):e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,t):t;let o=performance.now();if(o-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=o,this._innerRefresh();else if(!this._additionalRefreshRequested){let i=o-this._lastRefreshMs,n=this._debounceThresholdMS-i;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=performance.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},n)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}},o3=20,i3=!1,r_=class extends Te{constructor(e,t,r,o){super(),this._terminal=e,this._coreBrowserService=r,this._renderService=o,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="";let i=this._coreBrowserService.mainDocument;this._accessibilityContainer=i.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=i.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let n=0;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);if(this._topBoundaryFocusListener=n=>this._handleBoundaryFocus(n,0),this._bottomBoundaryFocusListener=n=>this._handleBoundaryFocus(n,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=i.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this._register(new XQ(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");i3?(this._accessibilityContainer.classList.add("debug"),this._rowContainer.classList.add("debug"),this._debugRootContainer=i.createElement("div"),this._debugRootContainer.classList.add("xterm"),this._debugRootContainer.appendChild(i.createTextNode("------start a11y------")),this._debugRootContainer.appendChild(this._accessibilityContainer),this._debugRootContainer.appendChild(i.createTextNode("------end a11y------")),this._terminal.element.insertAdjacentElement("afterend",this._debugRootContainer)):this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this._register(this._terminal.onResize(n=>this._handleResize(n.rows))),this._register(this._terminal.onRender(n=>this._refreshRows(n.start,n.end))),this._register(this._terminal.onScroll(()=>this._refreshRows())),this._register(this._terminal.onA11yChar(n=>this._handleChar(n))),this._register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
236
236
|
`))),this._register(this._terminal.onA11yTab(n=>this._handleTab(n))),this._register(this._terminal.onKey(n=>this._handleKey(n.key))),this._register(this._terminal.onBlur(()=>this._clearLiveRegion())),this._register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._register(ve(i,"selectionchange",()=>this._handleSelectionChange())),this._register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRowsDimensions(),this._refreshRows(),this._register(Rt(()=>{i3?this._debugRootContainer.remove():this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<o3+1&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
|
237
237
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===o3+1&&(this._liveRegion.textContent+=cC.get())))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let r=this._terminal.buffer,o=r.lines.length.toString();for(let i=e;i<=t;i++){let n=r.lines.get(r.ydisp+i),s=[],a=n?.translateToString(!0,void 0,void 0,s)||"",l=(r.ydisp+i+1).toString(),c=this._rowElements[i];c&&(a.length===0?(c.textContent="\xA0",this._rowColumns.set(c,[0,1])):(c.textContent=a,this._rowColumns.set(c,s)),c.setAttribute("aria-posinset",l),c.setAttribute("aria-setsize",o),this._alignRowWidth(c))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let r=e.target,o=this._rowElements[t===0?1:this._rowElements.length-2],i=r.getAttribute("aria-posinset"),n=t===0?"1":`${this._terminal.buffer.lines.length}`;if(i===n||e.relatedTarget!==o)return;let s,a;if(t===0?(s=r,a=this._rowElements.pop(),this._rowContainer.removeChild(a)):(s=this._rowElements.shift(),a=r,this._rowContainer.removeChild(s)),s.removeEventListener("focus",this._topBoundaryFocusListener),a.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){let l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{let l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let e=this._coreBrowserService.mainDocument.getSelection();if(!e)return;if(e.isCollapsed){this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection();return}if(!e.anchorNode||!e.focusNode){console.error("anchorNode and/or focusNode are null");return}let t={node:e.anchorNode,offset:e.anchorOffset},r={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(r.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===r.node&&t.offset>r.offset)&&([t,r]=[r,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;let o=this._rowElements.slice(-1)[0];if(r.node.compareDocumentPosition(o)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(r={node:o,offset:o.textContent?.length??0}),!this._rowContainer.contains(r.node))return;let i=({node:a,offset:l})=>{let c=a instanceof Text?a.parentNode:a,u=parseInt(c?.getAttribute("aria-posinset"),10)-1;if(isNaN(u))return console.warn("row is invalid. Race condition?"),null;let p=this._rowColumns.get(c);if(!p)return console.warn("columns is null. Race condition?"),null;let f=l<p.length?p[l]:p.slice(-1)[0]+1;return f>=this._terminal.cols&&(++u,f=0),{row:u,column:f}},n=i(t),s=i(r);if(!(!n||!s)){if(n.row>s.row||n.row===s.row&&n.column>=s.column)throw new Error("invalid range");this._terminal.select(n.column,n.row,(s.row-n.row)*this._terminal.cols-n.column+s.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){Object.assign(this._accessibilityContainer.style,{width:`${this._renderService.dimensions.css.canvas.width}px`,fontSize:`${this._terminal.options.fontSize}px`}),this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e]),this._alignRowWidth(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}_alignRowWidth(e){e.style.transform="";let t=e.getBoundingClientRect().width,r=this._rowColumns.get(e)?.slice(-1)?.[0];if(!r)return;let o=r*this._renderService.dimensions.css.cell.width;e.style.transform=`scaleX(${o/t})`}};r_=jt([te(1,qC),te(2,Ss),te(3,xs)],r_);var VC=class extends Te{constructor(e,t,r,o,i){super(),this._element=e,this._mouseService=t,this._renderService=r,this._bufferService=o,this._linkProviderService=i,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this._register(new G),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this._register(new G),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this._register(Rt(()=>{oc(this._linkCacheDisposables),this._linkCacheDisposables.length=0,this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this._register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this._register(ve(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this._register(ve(this._element,"mousemove",this._handleMouseMove.bind(this))),this._register(ve(this._element,"mousedown",this._handleMouseDown.bind(this))),this._register(ve(this._element,"mouseup",this._handleMouseUp.bind(this)))}get currentLink(){return this._currentLink}_handleMouseMove(e){this._lastMouseEvent=e;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let r=e.composedPath();for(let o=0;o<r.length;o++){let i=r[o];if(i.classList.contains("xterm"))break;if(i.classList.contains("xterm-hover"))return}(!this._lastBufferCell||t.x!==this._lastBufferCell.x||t.y!==this._lastBufferCell.y)&&(this._handleHover(t),this._lastBufferCell=t)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized){this._clearCurrentLink(),this._askForLink(e,!1),this._wasResized=!1;return}this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,t){(!this._activeProviderReplies||!t)&&(this._activeProviderReplies?.forEach(o=>{o?.forEach(i=>{i.link.dispose&&i.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(let[o,i]of this._linkProviderService.linkProviders.entries())t?this._activeProviderReplies?.get(o)&&(r=this._checkLinkProviderResult(o,e,r)):i.provideLinks(e.y,n=>{if(this._isMouseOut)return;let s=n?.map(a=>({link:a}));this._activeProviderReplies?.set(o,s),r=this._checkLinkProviderResult(o,e,r),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let r=new Set;for(let o=0;o<t.size;o++){let i=t.get(o);if(i)for(let n=0;n<i.length;n++){let s=i[n],a=s.link.range.start.y<e?0:s.link.range.start.x,l=s.link.range.end.y>e?this._bufferService.cols:s.link.range.end.x;for(let c=a;c<=l;c++){if(r.has(c)){i.splice(n--,1);break}r.add(c)}}}}_checkLinkProviderResult(e,t,r){if(!this._activeProviderReplies)return r;let o=this._activeProviderReplies.get(e),i=!1;for(let n=0;n<e;n++)(!this._activeProviderReplies.has(n)||this._activeProviderReplies.get(n))&&(i=!0);if(!i&&o){let n=o.find(s=>this._linkAtPosition(s.link,t));n&&(r=!0,this._handleNewLink(n))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let n=0;n<this._activeProviderReplies.size;n++){let s=this._activeProviderReplies.get(n)?.find(a=>this._linkAtPosition(a.link,t));if(s){r=!0,this._handleNewLink(s);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink&&ZQ(this._mouseDownLink.link,this._currentLink.link)&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){!this._currentLink||!this._lastMouseEvent||(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,oc(this._linkCacheDisposables),this._linkCacheDisposables.length=0)}_handleNewLink(e){if(!this._lastMouseEvent)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0?!0:e.link.decorations.underline,pointerCursor:e.link.decorations===void 0?!0:e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:r=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:r=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;let o=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=o&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(o,i),this._lastMouseEvent)){let n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._askForLink(n,!1)}})))}_linkHover(e,t,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(r,t.text)}_fireUnderlineEvent(e,t){let r=e.range,o=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-o-1,r.end.x,r.end.y-o-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)}_linkLeave(e,t,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(r,t.text)}_linkAtPosition(e,t){let r=e.range.start.y*this._bufferService.cols+e.range.start.x,o=e.range.end.y*this._bufferService.cols+e.range.end.x,i=t.y*this._bufferService.cols+t.x;return r<=i&&i<=o}_positionFromMouseEvent(e,t,r){let o=r.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(o)return{x:o[0],y:o[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,r,o,i){return{x1:e,y1:t,x2:r,y2:o,cols:this._bufferService.cols,fg:i}}};VC=jt([te(1,KC),te(2,xs),te(3,io),te(4,g3)],VC);function ZQ(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}var QQ=class extends jQ{constructor(e={}){super(e),this._linkifier=this._register(new zp),this.browser=V3,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this._register(new zp),this._onCursorMove=this._register(new G),this.onCursorMove=this._onCursorMove.event,this._onKey=this._register(new G),this.onKey=this._onKey.event,this._onRender=this._register(new G),this.onRender=this._onRender.event,this._onSelectionChange=this._register(new G),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this._register(new G),this.onTitleChange=this._onTitleChange.event,this._onBell=this._register(new G),this.onBell=this._onBell.event,this._onFocus=this._register(new G),this._onBlur=this._register(new G),this._onA11yCharEmitter=this._register(new G),this._onA11yTabEmitter=this._register(new G),this._onWillOpen=this._register(new G),this._setup(),this._decorationService=this._instantiationService.createInstance(KQ),this._instantiationService.setService(Zh,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(HZ),this._instantiationService.setService(g3,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(pC)),this._register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this._register(this._inputHandler.onRequestRefreshRows(t=>this.refresh(t?.start??0,t?.end??this.rows-1))),this._register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this._register(this._inputHandler.onRequestReset(()=>this.reset())),this._register(this._inputHandler.onRequestWindowsOptionsReport(t=>this._reportWindowsOptions(t))),this._register(this._inputHandler.onColor(t=>this._handleColorEvent(t))),this._register(Ir.forward(this._inputHandler.onCursorMove,this._onCursorMove)),this._register(Ir.forward(this._inputHandler.onTitleChange,this._onTitleChange)),this._register(Ir.forward(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this._register(Ir.forward(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this._register(this._bufferService.onResize(t=>this._afterResize(t.cols,t.rows))),this._register(Rt(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)}))}get linkifier(){return this._linkifier.value}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(let t of e){let r,o="";switch(t.index){case 256:r="foreground",o="10";break;case 257:r="background",o="11";break;case 258:r="cursor",o="12";break;default:r="ansi",o="4;"+t.index}switch(t.type){case 0:let i=wt.toColorRGB(r==="ansi"?this._themeService.colors.ansi[t.index]:this._themeService.colors[r]);this.coreService.triggerDataEvent(`${$.ESC}]${o};${IQ(i)}${j3.ST}`);break;case 1:if(r==="ansi")this._themeService.modifyColors(n=>n.ansi[t.index]=or.toColor(...t.color));else{let n=r;this._themeService.modifyColors(s=>s[n]=or.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index);break}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(r_,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent($.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent($.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let r=Math.min(this.buffer.x,this.cols-1),o=this._renderService.dimensions.css.cell.height,i=t.getWidth(r),n=this._renderService.dimensions.css.cell.width*i,s=this.buffer.y*this._renderService.dimensions.css.cell.height,a=r*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=s+"px",this.textarea.style.width=n+"px",this.textarea.style.height=o+"px",this.textarea.style.lineHeight=o+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this._register(ve(this.element,"copy",t=>{this.hasSelection()&&EY(t,this._selectionService)}));let e=t=>kY(t,this.textarea,this.coreService,this.optionsService);this._register(ve(this.textarea,"paste",e)),this._register(ve(this.element,"paste",e)),q3?this._register(ve(this.element,"mousedown",t=>{t.button===2&&nI(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this._register(ve(this.element,"contextmenu",t=>{nI(t,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),tw&&this._register(ve(this.element,"auxclick",t=>{t.button===1&&l3(t,this.textarea,this.screenElement)}))}_bindKeys(){this._register(ve(this.textarea,"keyup",e=>this._keyUp(e),!0)),this._register(ve(this.textarea,"keydown",e=>this._keyDown(e),!0)),this._register(ve(this.textarea,"keypress",e=>this._keyPress(e),!0)),this._register(ve(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this._register(ve(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this._register(ve(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this._register(ve(this.textarea,"input",e=>this._inputEvent(e),!0)),this._register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){if(!e)throw new Error("Terminal requires a parent element.");if(e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this.element?.ownerDocument.defaultView&&this._coreBrowserService){this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView);return}this._document=e.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let t=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),t.appendChild(this._viewportElement),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._register(ve(this.screenElement,"mousemove",i=>this.updateCursorStyle(i))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),t.appendChild(this.screenElement);let r=this.textarea=this._document.createElement("textarea");this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",lC.get()),Y3||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._register(this.optionsService.onSpecificOptionChange("disableStdin",()=>r.readOnly=this.optionsService.rawOptions.disableStdin)),this.textarea.readOnly=this.optionsService.rawOptions.disableStdin,this._coreBrowserService=this._register(this._instantiationService.createInstance(zZ,this.textarea,e.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(Ss,this._coreBrowserService),this._register(ve(this.textarea,"focus",i=>this._handleTextAreaFocus(i))),this._register(ve(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(AC,this._document,this._helperContainer),this._instantiationService.setService(i_,this._charSizeService),this._themeService=this._instantiationService.createInstance(IC),this._instantiationService.setService(Fp,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(Jb),this._instantiationService.setService(y3,this._characterJoinerService),this._renderService=this._register(this._instantiationService.createInstance(NC,this.rows,this.screenElement)),this._instantiationService.setService(xs,this._renderService),this._register(this._renderService.onRenderedViewportChange(i=>this._onRender.fire(i))),this.onResize(i=>this._renderService.resize(i.cols,i.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(OC,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(BC),this._instantiationService.setService(KC,this._mouseService);let o=this._linkifier.value=this._register(this._instantiationService.createInstance(VC,this.screenElement));this.element.appendChild(t);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this._register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this._register(this.onBlur(()=>this._renderService.handleBlur())),this._register(this.onFocus(()=>this._renderService.handleFocus())),this._viewport=this._register(this._instantiationService.createInstance(EC,this.element,this.screenElement)),this._register(this._viewport.onRequestScrollLines(i=>{super.scrollLines(i,!1),this.refresh(0,this.rows-1)})),this._selectionService=this._register(this._instantiationService.createInstance(LC,this.element,this.screenElement,o)),this._instantiationService.setService(IY,this._selectionService),this._register(this._selectionService.onRequestScrollLines(i=>this.scrollLines(i.amount,i.suppressScrollEvent))),this._register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this._register(this._selectionService.onRequestRedraw(i=>this._renderService.handleSelectionChanged(i.start,i.end,i.columnSelectMode))),this._register(this._selectionService.onLinuxMouseSelection(i=>{this.textarea.value=i,this.textarea.focus(),this.textarea.select()})),this._register(Ir.any(this._onScroll.event,this._inputHandler.onScroll)(()=>{this._selectionService.refresh(),this._viewport?.queueSync()})),this._register(this._instantiationService.createInstance(kC,this.screenElement)),this._register(ve(this.element,"mousedown",i=>this._selectionService.handleMouseDown(i))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(r_,this)),this._register(this.optionsService.onSpecificOptionChange("screenReaderMode",i=>this._handleScreenReaderModeOptionChange(i))),this.options.overviewRuler.width&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Qb,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRuler",i=>{!this._overviewRulerRenderer&&i&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this._register(this._instantiationService.createInstance(Qb,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(DC,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let e=this,t=this.element;function r(n){let s=e._mouseService.getMouseReportCoords(n,e.screenElement);if(!s)return!1;let a,l;switch(n.overrideType||n.type){case"mousemove":l=32,n.buttons===void 0?(a=3,n.button!==void 0&&(a=n.button<3?n.button:3)):a=n.buttons&1?0:n.buttons&4?1:n.buttons&2?2:3;break;case"mouseup":l=0,a=n.button<3?n.button:3;break;case"mousedown":l=1,a=n.button<3?n.button:3;break;case"wheel":if(e._customWheelEventHandler&&e._customWheelEventHandler(n)===!1)return!1;let c=n.deltaY;if(c===0||e.coreMouseService.consumeWheelEvent(n,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return!1;l=c<0?0:1,a=4;break;default:return!1}return l===void 0||a===void 0||a>4?!1:e.coreMouseService.triggerMouseEvent({col:s.col,row:s.row,x:s.x,y:s.y,button:a,action:l,ctrl:n.ctrlKey,alt:n.altKey,shift:n.shiftKey})}let o={mouseup:null,wheel:null,mousedrag:null,mousemove:null},i={mouseup:n=>(r(n),n.buttons||(this._document.removeEventListener("mouseup",o.mouseup),o.mousedrag&&this._document.removeEventListener("mousemove",o.mousedrag)),this.cancel(n)),wheel:n=>(r(n),this.cancel(n,!0)),mousedrag:n=>{n.buttons&&r(n)},mousemove:n=>{n.buttons||r(n)}};this._register(this.coreMouseService.onProtocolChange(n=>{n?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(n)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),n&8?o.mousemove||(t.addEventListener("mousemove",i.mousemove),o.mousemove=i.mousemove):(t.removeEventListener("mousemove",o.mousemove),o.mousemove=null),n&16?o.wheel||(t.addEventListener("wheel",i.wheel,{passive:!1}),o.wheel=i.wheel):(t.removeEventListener("wheel",o.wheel),o.wheel=null),n&2?o.mouseup||(o.mouseup=i.mouseup):(this._document.removeEventListener("mouseup",o.mouseup),o.mouseup=null),n&4?o.mousedrag||(o.mousedrag=i.mousedrag):(this._document.removeEventListener("mousemove",o.mousedrag),o.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this._register(ve(t,"mousedown",n=>{if(n.preventDefault(),this.focus(),!(!this.coreMouseService.areMouseEventsActive||this._selectionService.shouldForceSelection(n)))return r(n),o.mouseup&&this._document.addEventListener("mouseup",o.mouseup),o.mousedrag&&this._document.addEventListener("mousemove",o.mousedrag),this.cancel(n)})),this._register(ve(t,"wheel",n=>{if(!o.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(n)===!1)return!1;if(!this.buffer.hasScrollback){if(n.deltaY===0)return!1;if(e.coreMouseService.consumeWheelEvent(n,e._renderService?.dimensions?.device?.cell?.height,e._coreBrowserService?.dpr)===0)return this.cancel(n,!0);let s=$.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(n.deltaY<0?"A":"B");return this.coreService.triggerDataEvent(s,!0),this.cancel(n,!0)}}},{passive:!1}))}refresh(e,t){this._renderService?.refreshRows(e,t)}updateCursorStyle(e){this._selectionService?.shouldColumnSelect(e)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t){this._viewport?this._viewport.scrollLines(e):super.scrollLines(e,t),this.refresh(0,this.rows-1)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(e){e&&this._viewport?this._viewport.scrollToLine(this.buffer.ybase,!0):this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;t!==0&&this.scrollLines(t)}paste(e){a3(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}attachCustomWheelEventHandler(e){this._customWheelEventHandler=e}registerLinkProvider(e){return this._linkProviderService.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return this._selectionService?this._selectionService.hasSelection:!1}select(e,t,r){this._selectionService.setSelection(e,t,r)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(!(!this._selectionService||!this._selectionService.hasSelection))return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(e,t){this._selectionService?.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(!0),!1;!t&&(e.key==="Dead"||e.key==="AltGraph")&&(this._unprocessedDeadKey=!0);let r=VQ(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),r.type===3||r.type===2){let o=this.rows-1;return this.scrollLines(r.type===2?-o:o),this.cancel(e,!0)}if(r.type===1&&this.selectAll(),this._isThirdLevelShift(this.browser,e)||(r.cancel&&this.cancel(e,!0),!r.key)||e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.key.length===1&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)return!0;if(this._unprocessedDeadKey)return this._unprocessedDeadKey=!1,!0;if((r.key===$.ETX||r.key===$.CR)&&(this.textarea.value=""),this._onKey.fire({key:r.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(r.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey)return this.cancel(e,!0);this._keyDownHandled=!0}_isThirdLevelShift(e,t){let r=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return t.type==="keypress"?r:r&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,!(this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)&&(JQ(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(e)===!1)return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(e.which===null||e.which===void 0)t=e.keyCode;else if(e.which!==0&&e.charCode!==0)t=e.which;else return!1;return!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)?!1:(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,!0)}_inputEvent(e){if(e.data&&e.inputType==="insertText"&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){if(e===this.cols&&t===this.rows){this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure();return}super.resize(e,t)}_afterResize(e,t){this._charSizeService?.measure()}clear(){if(!(this.buffer.ybase===0&&this.buffer.y===0)){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e<this.rows;e++)this.buffer.lines.push(this.buffer.getBlankLine(rr));this._onScroll.fire({position:this.buffer.ydisp}),this.refresh(0,this.rows-1)}}reset(){this.options.rows=this.rows,this.options.cols=this.cols;let e=this._customKeyEventHandler;this._setup(),super.reset(),this._selectionService?.reset(),this._decorationService.reset(),this._customKeyEventHandler=e,this.refresh(0,this.rows-1)}clearTextureAtlas(){this._renderService?.clearTextureAtlas()}_reportFocus(){this.element?.classList.contains("focus")?this.coreService.triggerDataEvent($.ESC+"[I"):this.coreService.triggerDataEvent($.ESC+"[O")}_reportWindowsOptions(e){if(this._renderService)switch(e){case 0:let t=this._renderService.dimensions.css.canvas.width.toFixed(0),r=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${$.ESC}[4;${r};${t}t`);break;case 1:let o=this._renderService.dimensions.css.cell.width.toFixed(0),i=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${$.ESC}[6;${i};${o}t`);break}}cancel(e,t){if(!(!this.options.cancelEvents&&!t))return e.preventDefault(),e.stopPropagation(),!1}};function JQ(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var eJ=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=()=>this._wrappedAddonDispose(r),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let r=0;r<this._addons.length;r++)if(this._addons[r]===e){t=r;break}if(t===-1)throw new Error("Could not dispose an addon that has not been loaded");e.isDisposed=!0,e.dispose.apply(e.instance),this._addons.splice(t,1)}},tJ=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new Ti)}translateToString(e,t,r){return this._line.translateToString(e,t,r)}},n3=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new tJ(t)}getNullCell(){return new Ti}},rJ=class extends Te{constructor(e){super(),this._core=e,this._onBufferChange=this._register(new G),this.onBufferChange=this._onBufferChange.event,this._normal=new n3(this._core.buffers.normal,"normal"),this._alternate=new n3(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}},oJ=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,r=>t(r.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(r,o)=>t(r,o.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}},iJ=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}},nJ=["cols","rows"],Tn=0,nz=class extends Te{constructor(e){super(),this._core=this._register(new QQ(e)),this._addonManager=this._register(new eJ),this._publicOptions={...this._core.options};let t=o=>this._core.options[o],r=(o,i)=>{this._checkReadonlyOptions(o),this._core.options[o]=i};for(let o in this._core.options){let i={get:t.bind(this,o),set:r.bind(this,o)};Object.defineProperty(this._publicOptions,o,i)}}_checkReadonlyOptions(e){if(nJ.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new oJ(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new iJ(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this._register(new rJ(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any";break}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,synchronizedOutputMode:e.synchronizedOutput,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}input(e,t=!0){this._core.input(e,t)}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}attachCustomWheelEventHandler(e){this._core.attachCustomWheelEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){return this._checkProposedApi(),this._verifyPositiveIntegers(e.x??0,e.width??0,e.height??0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,r){this._verifyIntegers(e,t,r),this._core.select(e,t,r)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write(`\r
|
|
238
|
-
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return lC.get()},set promptLabel(e){lC.set(e)},get tooMuchOutput(){return cC.get()},set tooMuchOutput(e){cC.set(e)}}}_verifyIntegers(...e){for(Tn of e)if(Tn===1/0||isNaN(Tn)||Tn%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(Tn of e)if(Tn&&(Tn===1/0||isNaN(Tn)||Tn%1!==0||Tn<0))throw new Error("This API only accepts positive integers")}};function sz(e){let t=new nz({cursorBlink:!0,fontSize:14,fontFamily:"'Cascadia Code', 'Fira Code', Consolas, monospace",theme:{background:"#1e1e1e",foreground:"#d4d4d4"}}),r=new rI;return t.loadAddon(r),t.open(e),r.fit(),{term:t,fitAddon:r,dispose:()=>t.dispose()}}function az(e,t,r,o,i){let n=sz(e);n.term.onData(c=>r(t,c));let s=o(t,c=>n.term.write(c)),a=new ResizeObserver(()=>{n.fitAddon.fit(),i(t,n.term.cols,n.term.rows)});return a.observe(e),{handle:n,cleanup:()=>{a.disconnect(),s(),n.dispose()}}}function lz(e,t,r,o,i,n){let s=(0,em.useRef)(null);(0,em.useEffect)(()=>{let a=e.current;if(!a)return;let{handle:l,cleanup:c}=az(a,t,o,i,n);return s.current=l,()=>{c(),s.current=null}},[e,t,i,o,n]),(0,em.useEffect)(()=>{let a=s.current;if(!r||!a)return;let l=setTimeout(()=>{a.fitAddon.fit(),a.term.focus(),n(t,a.term.cols,a.term.rows)},50);return()=>clearTimeout(l)},[r,t,n])}var pz=_(R(),1);function uz({sessionId:e,visible:t,onOutput:r,sendInput:o,sendResize:i}){let n=(0,cz.useRef)(null);return lz(n,e,t,o,r,i),(0,pz.jsx)(de,{ref:n,sx:{position:"absolute",inset:0,visibility:t?"visible":"hidden",pointerEvents:t?"auto":"none"}})}var Up=_(R(),1);function dz({sessions:e,activeId:t,onOutput:r,sendInput:o,sendResize:i}){return(0,Up.jsxs)(de,{sx:{flex:1,position:"relative",bgcolor:"background.default"},children:[e.map(n=>(0,Up.jsx)(uz,{sessionId:n.id,visible:n.id===t,onOutput:r,sendInput:o,sendResize:i},n.id)),e.length===0&&(0,Up.jsx)(de,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,Up.jsx)(X,{variant:"body2",color:"text.disabled",children:"Create a session to get started"})})]})}var tm=_(R(),1);function hz({socket:e}){let[t,r]=(0,fz.useState)("active");return(0,tm.jsxs)(de,{sx:{display:"flex",width:"100%",height:"100%"},children:[(0,tm.jsx)(eI,{socket:e,tab:t,onTabChange:r}),(0,tm.jsx)(dz,{sessions:e.sessions,activeId:e.activeId,onOutput:e.onOutput,sendInput:e.sendInput,sendResize:e.sendResize})]})}var Ci=_(R(),1);function sJ(){return(0,Ci.jsx)(z0,{maxWidth:"md",sx:{py:3,px:2},children:(0,Ci.jsx)(a5,{})})}function mz({socket:e}){return(0,Ci.jsxs)(Fl,{children:[(0,Ci.jsx)(Wo,{path:"sessions",element:(0,Ci.jsx)(de,{sx:{display:"flex",width:"100%",height:"calc(100vh - 48px)"},children:(0,Ci.jsx)(hz,{socket:e})})}),(0,Ci.jsx)(Wo,{path:"backlog/*",element:(0,Ci.jsx)(sJ,{})}),(0,Ci.jsx)(Wo,{path:"*",element:(0,Ci.jsx)(h1,{to:"/sessions",replace:!0})})]})}var rw=_(R(),1);function yz({error:e,onClose:t}){return(0,rw.jsx)(Ru,{open:e!==null,autoHideDuration:8e3,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,rw.jsx)(Qc,{severity:"error",variant:"filled",onClose:t,children:e})})}var bz=_(I(),1);var jp=_(I(),1),$p=_(R(),1);function gz({onConfirm:e,onCancel:t}){let[r,o]=(0,jp.useState)(""),i=(0,jp.useRef)(null);return(0,jp.useEffect)(()=>{i.current?.focus()},[]),(0,$p.jsxs)(Ae,{component:"form",direction:"row",spacing:.5,onSubmit:n=>{n.preventDefault(),n.stopPropagation();let s=r.trim();s&&e(s)},children:[(0,$p.jsx)(Zt,{inputRef:i,value:r,onChange:n=>o(n.target.value),placeholder:"/path/to/repo",size:"small",sx:{flex:1},slotProps:{input:{sx:{fontSize:12}}},onKeyDown:n=>{n.key==="Escape"&&t()}}),(0,$p.jsx)(Re,{type:"submit",variant:"contained",size:"small",sx:{minWidth:0},children:"OK"}),(0,$p.jsx)(Re,{variant:"outlined",size:"small",onClick:t,sx:{minWidth:0},children:"Cancel"})]})}var sc=_(R(),1);function ow(e){let t=e.includes("\\")?"\\":"/";return e.split(t).filter(Boolean).pop()??e}var aJ={...Eb};function vz({repos:e,selected:t,onSelect:r,onCustom:o,close:i}){return(0,sc.jsx)(St,{elevation:4,sx:aJ,children:(0,sc.jsxs)(fl,{dense:!0,children:[e.map(n=>(0,sc.jsx)(Un,{selected:n===t,title:n,onClick:()=>{r(n),i()},sx:{fontSize:12},children:ow(n)},n)),(0,sc.jsx)(du,{}),(0,sc.jsx)(Un,{onClick:()=>{i(),o()},sx:{fontSize:12,color:"text.secondary",fontStyle:"italic"},children:"Custom path..."})]})})}var c_=_(R(),1);function _z({repos:e,selected:t,onSelect:r}){let[o,i]=(0,bz.useState)(!1);return o?(0,c_.jsx)(gz,{onConfirm:n=>{r(n),i(!1)},onCancel:()=>i(!1)}):(0,c_.jsx)(kb,{label:t?ow(t):"Select repo...",children:n=>(0,c_.jsx)(vz,{repos:e,selected:t,onSelect:r,onCustom:()=>i(!0),close:n})})}var ac=_(I(),1);function Sz(e,t){let r=new Set;e&&r.add(e);for(let o of t)o.cwd&&r.add(o.cwd);return[...r].sort((o,i)=>o.localeCompare(i))}function xz(e,t){let[r,o]=(0,ac.useState)(e);(0,ac.useEffect)(()=>{e&&!r&&o(e)},[e,r]);let i=(0,ac.useMemo)(()=>Sz(e,t),[e,t]);return(0,ac.useMemo)(()=>({repos:i,selectedCwd:r,setSelectedCwd:o}),[i,r])}var Iz=_(I(),1);var wi=_(I(),1);function Tz(e){return(t,r)=>e({type:"create",prompt:t||void 0,cwd:r})}function Cz(e){return(t,r,o)=>e({type:"create-run",runName:t,runArgs:r,cwd:o})}function wz(e){return(t,r)=>e({type:"create-assist",assistArgs:t,cwd:r})}function Rz(e){return t=>e({type:"run-configs",cwd:t})}function Pz(e){return(t,r,o)=>e({type:"resume",sessionId:t,cwd:r,name:o})}function Ez(e,t){return r=>{t.delete(r),e({type:"retry",sessionId:r})}}function kz(e,t,r){return o=>{e({type:"dismiss",sessionId:o}),t.delete(o),r.delete(o)}}function Oz(e){return(t,r)=>e({type:"input",sessionId:t,data:r})}function Mz(e){return(t,r,o)=>e({type:"resize",sessionId:t,cols:r,rows:o})}function Dz(e,t){return(r,o)=>{let i=e.get(r);return i&&o(i),t.set(r,o),()=>t.delete(r)}}function Az(e,t,r,o){let i={createSession:(0,wi.useMemo)(()=>Tz(e),[e]),createRunSession:(0,wi.useMemo)(()=>Cz(e),[e]),createAssistSession:(0,wi.useMemo)(()=>wz(e),[e]),requestRunConfigs:(0,wi.useMemo)(()=>Rz(e),[e]),resumeSession:(0,wi.useMemo)(()=>Pz(e),[e]),sendInput:(0,wi.useMemo)(()=>Oz(e),[e]),sendResize:(0,wi.useMemo)(()=>Mz(e),[e])},n=(0,wi.useMemo)(()=>Dz(t.current,r.current),[t,r]),s=(0,wi.useCallback)(l=>{Ez(e,t.current)(l)},[e,t]),a=(0,wi.useCallback)(l=>{kz(e,t.current,r.current)(l),o(null)},[e,t,r,o]);return{...i,onOutput:n,retrySession:s,dismissSession:a}}var qr=_(I(),1);function Bz(e,t){switch(e.type){case"sessions":t.setSessions(e.sessions),e.cwd&&t.setCurrentCwd(e.cwd);break;case"created":t.setActiveId(e.sessionId);break;case"history":t.setHistory(e.sessions);break;case"run-configs":t.setRunConfigs(e.configs);break;case"error":t.setError(e.message);break;case"clear":{let r=e.sessionId;t.buffers.current?.delete(r),t.handlers.current?.get(r)?.("\x1Bc");break}case"output":{let r=e.sessionId,o=t.buffers.current?.get(r)??"";t.buffers.current?.set(r,o+e.data),t.handlers.current?.get(r)?.(e.data);break}}}function Nz(e){let t=location.protocol==="https:"?"wss:":"ws:",r=new WebSocket(`${t}//${location.host}/ws`);return r.onopen=()=>{r.send(JSON.stringify({type:"history"}))},r.onmessage=o=>{Bz(JSON.parse(o.data),e)},r}function Lz(){let[e,t]=(0,qr.useState)([]),[r,o]=(0,qr.useState)([]),[i,n]=(0,qr.useState)([]),[s,a]=(0,qr.useState)(null),[l,c]=(0,qr.useState)(""),[u,p]=(0,qr.useState)(null),f=(0,qr.useRef)(null),d=(0,qr.useRef)(new Map),h=(0,qr.useRef)(new Map);(0,qr.useEffect)(()=>{let m=Nz({setSessions:t,setHistory:o,setRunConfigs:n,setActiveId:a,setCurrentCwd:c,setError:p,buffers:d,handlers:h});return f.current=m,()=>m.close()},[]);let y=(0,qr.useCallback)(()=>{let m=f.current;m?.readyState===WebSocket.OPEN&&m.send(JSON.stringify({type:"history"}))},[]),b=(0,qr.useCallback)(()=>p(null),[]);return{sessions:e,history:r,runConfigs:i,activeId:s,setActiveId:a,currentCwd:l,error:u,clearError:b,wsRef:f,buffers:d,handlers:h,requestHistory:y}}function zz(){let{sessions:e,history:t,runConfigs:r,activeId:o,setActiveId:i,currentCwd:n,error:s,clearError:a,wsRef:l,buffers:c,handlers:u,requestHistory:p}=Lz(),f=(0,Iz.useCallback)(h=>{let y=l.current;y?.readyState===WebSocket.OPEN&&y.send(JSON.stringify(h))},[l]),d=Az(f,c,u,i);return{sessions:e,history:t,runConfigs:r,activeId:o,setActiveId:i,currentCwd:n,error:s,clearError:a,...d,requestHistory:p}}var Xo=_(R(),1),lJ=["/sessions","/backlog"],cJ={zIndex:e=>e.zIndex.drawer+1},Fz={minHeight:48},uJ={width:240,ml:2,mr:5};function Hz(){let e=to(),t=_o(),r=zz(),o=xz(r.currentCwd,r.history),i=lJ.findIndex(s=>e.pathname.startsWith(s)),n=s=>{e.pathname!==s&&t(s)};return(0,Xo.jsxs)(T1.Provider,{value:o,children:[(0,Xo.jsx)(D0,{position:"fixed",elevation:1,sx:cJ,children:(0,Xo.jsxs)(_g,{variant:"dense",sx:Fz,children:[(0,Xo.jsxs)(hf,{value:i===-1?0:i,textColor:"inherit",indicatorColor:"secondary",sx:{flexGrow:1},children:[(0,Xo.jsx)(hl,{label:"Sessions",onClick:()=>n("/sessions")}),(0,Xo.jsx)(hl,{label:"Backlog",onClick:()=>n("/backlog")})]}),(0,Xo.jsx)(de,{sx:uJ,children:(0,Xo.jsx)(_z,{repos:o.repos,selected:o.selectedCwd,onSelect:o.setSelectedCwd})})]})}),(0,Xo.jsx)(_g,{variant:"dense",sx:Fz}),(0,Xo.jsx)(mz,{socket:r}),(0,Xo.jsx)(yz,{error:r.error,onClose:r.clearError})]})}var Uz=_(R(),1),$z=_e((0,Uz.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4");var jz=_(R(),1),Wz=_e((0,jz.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7");var u_=_(R(),1);function Vz({mode:e,toggle:t}){return(0,u_.jsx)(ii,{onClick:t,size:"small",sx:{position:"fixed",top:8,right:16,zIndex:r=>r.zIndex.drawer+2,color:"inherit"},"aria-label":"Toggle light/dark mode",children:e==="dark"?(0,u_.jsx)(Wz,{fontSize:"small"}):(0,u_.jsx)($z,{fontSize:"small"})})}var qz=_(I(),1);function Kz(){let[e,t]=(0,qz.useState)(()=>{try{return localStorage.getItem("theme-mode")??"dark"}catch{return"dark"}});return{mode:e,toggle:()=>t(o=>{let i=o==="dark"?"light":"dark";try{localStorage.setItem("theme-mode",i)}catch{}return i})}}var Oa=_(R(),1);function pJ(){let{mode:e,toggle:t}=Kz(),r=(0,Yz.useMemo)(()=>en({palette:{mode:e,...e==="dark"&&{background:{default:"#1e1e1e",paper:"#252526"}}}}),[e]);return(0,Oa.jsxs)(uy,{theme:r,children:[(0,Oa.jsx)(Ly,{}),(0,Oa.jsxs)(_1,{children:[(0,Oa.jsx)(Vz,{mode:e,toggle:t}),(0,Oa.jsx)(Hz,{})]})]})}var Gz=document.getElementById("app");Gz&&(0,Xz.createRoot)(Gz).render((0,Oa.jsx)(pJ,{}));})();
|
|
238
|
+
`,t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return{get promptLabel(){return lC.get()},set promptLabel(e){lC.set(e)},get tooMuchOutput(){return cC.get()},set tooMuchOutput(e){cC.set(e)}}}_verifyIntegers(...e){for(Tn of e)if(Tn===1/0||isNaN(Tn)||Tn%1!==0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(Tn of e)if(Tn&&(Tn===1/0||isNaN(Tn)||Tn%1!==0||Tn<0))throw new Error("This API only accepts positive integers")}};function sz(e){let t=new nz({cursorBlink:!0,fontSize:14,fontFamily:"'Cascadia Code', 'Fira Code', Consolas, monospace",theme:{background:"#1e1e1e",foreground:"#d4d4d4"}}),r=new rI;return t.loadAddon(r),t.open(e),r.fit(),{term:t,fitAddon:r,dispose:()=>t.dispose()}}function az(e,t,r,o,i){let n=sz(e);n.term.onData(c=>r(t,c));let s=o(t,c=>n.term.write(c)),a=new ResizeObserver(()=>{n.fitAddon.fit(),i(t,n.term.cols,n.term.rows)});return a.observe(e),{handle:n,cleanup:()=>{a.disconnect(),s(),n.dispose()}}}function lz(e,t,r,o,i,n){let s=(0,em.useRef)(null);(0,em.useEffect)(()=>{let a=e.current;if(!a)return;let{handle:l,cleanup:c}=az(a,t,o,i,n);return s.current=l,()=>{c(),s.current=null}},[e,t,i,o,n]),(0,em.useEffect)(()=>{let a=s.current;if(!r||!a)return;let l=setTimeout(()=>{a.fitAddon.fit(),a.term.focus(),n(t,a.term.cols,a.term.rows)},50);return()=>clearTimeout(l)},[r,t,n])}var pz=_(R(),1);function uz({sessionId:e,visible:t,onOutput:r,sendInput:o,sendResize:i}){let n=(0,cz.useRef)(null);return lz(n,e,t,o,r,i),(0,pz.jsx)(de,{ref:n,sx:{position:"absolute",inset:0,visibility:t?"visible":"hidden",pointerEvents:t?"auto":"none"}})}var Up=_(R(),1);function dz({sessions:e,activeId:t,onOutput:r,sendInput:o,sendResize:i}){return(0,Up.jsxs)(de,{sx:{flex:1,position:"relative",bgcolor:"background.default"},children:[e.map(n=>(0,Up.jsx)(uz,{sessionId:n.id,visible:n.id===t,onOutput:r,sendInput:o,sendResize:i},n.id)),e.length===0&&(0,Up.jsx)(de,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,Up.jsx)(X,{variant:"body2",color:"text.disabled",children:"Create a session to get started"})})]})}var tm=_(R(),1);function hz({socket:e}){let[t,r]=(0,fz.useState)("active");return(0,tm.jsxs)(de,{sx:{display:"flex",width:"100%",height:"100%"},children:[(0,tm.jsx)(eI,{socket:e,tab:t,onTabChange:r}),(0,tm.jsx)(dz,{sessions:e.sessions,activeId:e.activeId,onOutput:e.onOutput,sendInput:e.sendInput,sendResize:e.sendResize})]})}var Ci=_(R(),1);function sJ(){return(0,Ci.jsx)(z0,{maxWidth:"md",sx:{py:3,px:2},children:(0,Ci.jsx)(a5,{})})}function mz({socket:e}){return(0,Ci.jsxs)(Fl,{children:[(0,Ci.jsx)(Wo,{path:"sessions",element:(0,Ci.jsx)(de,{sx:{display:"flex",width:"100%",height:"calc(100vh - 48px)"},children:(0,Ci.jsx)(hz,{socket:e})})}),(0,Ci.jsx)(Wo,{path:"backlog/*",element:(0,Ci.jsx)(sJ,{})}),(0,Ci.jsx)(Wo,{path:"*",element:(0,Ci.jsx)(h1,{to:"/sessions",replace:!0})})]})}var rw=_(R(),1);function yz({error:e,onClose:t}){return(0,rw.jsx)(Ru,{open:e!==null,autoHideDuration:8e3,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,rw.jsx)(Qc,{severity:"error",variant:"filled",onClose:t,children:e})})}var bz=_(I(),1);var jp=_(I(),1),$p=_(R(),1);function gz({onConfirm:e,onCancel:t}){let[r,o]=(0,jp.useState)(""),i=(0,jp.useRef)(null);return(0,jp.useEffect)(()=>{i.current?.focus()},[]),(0,$p.jsxs)(Ae,{component:"form",direction:"row",spacing:.5,onSubmit:n=>{n.preventDefault(),n.stopPropagation();let s=r.trim();s&&e(s)},children:[(0,$p.jsx)(Zt,{inputRef:i,value:r,onChange:n=>o(n.target.value),placeholder:"/path/to/repo",size:"small",sx:{flex:1},slotProps:{input:{sx:{fontSize:12}}},onKeyDown:n=>{n.key==="Escape"&&t()}}),(0,$p.jsx)(Re,{type:"submit",variant:"contained",size:"small",sx:{minWidth:0},children:"OK"}),(0,$p.jsx)(Re,{variant:"outlined",size:"small",onClick:t,sx:{minWidth:0},children:"Cancel"})]})}var sc=_(R(),1);function ow(e){let t=e.includes("\\")?"\\":"/";return e.split(t).filter(Boolean).pop()??e}var aJ={...Eb};function vz({repos:e,selected:t,onSelect:r,onCustom:o,close:i}){return(0,sc.jsx)(St,{elevation:4,sx:aJ,children:(0,sc.jsxs)(fl,{dense:!0,children:[e.map(n=>(0,sc.jsx)(Un,{selected:n===t,title:n,onClick:()=>{r(n),i()},sx:{fontSize:12},children:ow(n)},n)),(0,sc.jsx)(du,{}),(0,sc.jsx)(Un,{onClick:()=>{i(),o()},sx:{fontSize:12,color:"text.secondary",fontStyle:"italic"},children:"Custom path..."})]})})}var c_=_(R(),1);function _z({repos:e,selected:t,onSelect:r}){let[o,i]=(0,bz.useState)(!1);return o?(0,c_.jsx)(gz,{onConfirm:n=>{r(n),i(!1)},onCancel:()=>i(!1)}):(0,c_.jsx)(kb,{label:t?ow(t):"Select repo...",children:n=>(0,c_.jsx)(vz,{repos:e,selected:t,onSelect:r,onCustom:()=>i(!0),close:n})})}var ac=_(I(),1);function Sz(e,t){let r=new Set;e&&r.add(e);for(let o of t)o.cwd&&r.add(o.cwd);return[...r].sort((o,i)=>o.localeCompare(i))}function xz(e,t){let[r,o]=(0,ac.useState)(e);(0,ac.useEffect)(()=>{e&&!r&&o(e)},[e,r]);let i=(0,ac.useMemo)(()=>Sz(e,t),[e,t]);return(0,ac.useMemo)(()=>({repos:i,selectedCwd:r,setSelectedCwd:o}),[i,r])}var Iz=_(I(),1);var wi=_(I(),1);function Tz(e){return(t,r)=>e({type:"create",prompt:t||void 0,cwd:r})}function Cz(e){return(t,r,o)=>e({type:"create-run",runName:t,runArgs:r,cwd:o})}function wz(e){return(t,r)=>e({type:"create-assist",assistArgs:t,cwd:r})}function Rz(e){return t=>e({type:"run-configs",cwd:t})}function Pz(e){return(t,r,o)=>e({type:"resume",sessionId:t,cwd:r,name:o})}function Ez(e,t){return r=>{t.delete(r),e({type:"retry",sessionId:r})}}function kz(e,t,r){return o=>{e({type:"dismiss",sessionId:o}),t.delete(o),r.delete(o)}}function Oz(e){return(t,r)=>e({type:"input",sessionId:t,data:r})}function Mz(e){return(t,r,o)=>e({type:"resize",sessionId:t,cols:r,rows:o})}function Dz(e,t){return(r,o)=>{let i=e.get(r);return i&&o(i),t.set(r,o),()=>t.delete(r)}}function Az(e,t,r,o){let i={createSession:(0,wi.useMemo)(()=>Tz(e),[e]),createRunSession:(0,wi.useMemo)(()=>Cz(e),[e]),createAssistSession:(0,wi.useMemo)(()=>wz(e),[e]),requestRunConfigs:(0,wi.useMemo)(()=>Rz(e),[e]),resumeSession:(0,wi.useMemo)(()=>Pz(e),[e]),sendInput:(0,wi.useMemo)(()=>Oz(e),[e]),sendResize:(0,wi.useMemo)(()=>Mz(e),[e])},n=(0,wi.useMemo)(()=>Dz(t.current,r.current),[t,r]),s=(0,wi.useCallback)(l=>{Ez(e,t.current)(l)},[e,t]),a=(0,wi.useCallback)(l=>{kz(e,t.current,r.current)(l),o(null)},[e,t,r,o]);return{...i,onOutput:n,retrySession:s,dismissSession:a}}var qr=_(I(),1);function Bz(e,t){switch(e.type){case"sessions":t.setSessions(e.sessions),e.cwd&&t.setCurrentCwd(e.cwd);break;case"created":t.setActiveId(e.sessionId);break;case"history":t.setHistory(e.sessions);break;case"run-configs":t.setRunConfigs(e.configs);break;case"error":t.setError(e.message);break;case"clear":{let r=e.sessionId;t.buffers.current?.delete(r),t.handlers.current?.get(r)?.("\x1Bc");break}case"output":{let r=e.sessionId,o=t.buffers.current?.get(r)??"";t.buffers.current?.set(r,o+e.data),t.handlers.current?.get(r)?.(e.data);break}}}function Nz(e){let t=location.protocol==="https:"?"wss:":"ws:",r=new WebSocket(`${t}//${location.host}/ws`);return r.onopen=()=>{r.send(JSON.stringify({type:"history"}))},r.onmessage=o=>{Bz(JSON.parse(o.data),e)},r}function Lz(){let[e,t]=(0,qr.useState)([]),[r,o]=(0,qr.useState)([]),[i,n]=(0,qr.useState)([]),[s,a]=(0,qr.useState)(null),[l,c]=(0,qr.useState)(""),[u,p]=(0,qr.useState)(null),f=(0,qr.useRef)(null),d=(0,qr.useRef)(new Map),h=(0,qr.useRef)(new Map);(0,qr.useEffect)(()=>{let m=Nz({setSessions:t,setHistory:o,setRunConfigs:n,setActiveId:a,setCurrentCwd:c,setError:p,buffers:d,handlers:h});return f.current=m,()=>m.close()},[]);let y=(0,qr.useCallback)(()=>{let m=f.current;m?.readyState===WebSocket.OPEN&&m.send(JSON.stringify({type:"history"}))},[]),b=(0,qr.useCallback)(()=>p(null),[]);return{sessions:e,history:r,runConfigs:i,activeId:s,setActiveId:a,currentCwd:l,error:u,clearError:b,wsRef:f,buffers:d,handlers:h,requestHistory:y}}function zz(){let{sessions:e,history:t,runConfigs:r,activeId:o,setActiveId:i,currentCwd:n,error:s,clearError:a,wsRef:l,buffers:c,handlers:u,requestHistory:p}=Lz(),f=(0,Iz.useCallback)(h=>{let y=l.current;y?.readyState===WebSocket.OPEN&&y.send(JSON.stringify(h))},[l]),d=Az(f,c,u,i);return{sessions:e,history:t,runConfigs:r,activeId:o,setActiveId:i,currentCwd:n,error:s,clearError:a,...d,requestHistory:p}}var Xo=_(R(),1),lJ=["/sessions","/backlog"],cJ={zIndex:e=>e.zIndex.drawer+1},Fz={minHeight:48},uJ={width:240,ml:2,mr:5};function Hz(){let e=to(),t=_o(),r=zz(),o=xz(r.currentCwd,r.history),i=lJ.findIndex(s=>e.pathname.startsWith(s)),n=s=>{e.pathname!==s&&t(s)};return(0,Xo.jsxs)(T1.Provider,{value:o,children:[(0,Xo.jsx)(D0,{position:"fixed",elevation:1,sx:cJ,children:(0,Xo.jsxs)(_g,{variant:"dense",sx:Fz,children:[(0,Xo.jsxs)(hf,{value:i===-1?0:i,textColor:"inherit",indicatorColor:"secondary",sx:{flexGrow:1},children:[(0,Xo.jsx)(hl,{label:"Sessions",onClick:()=>n("/sessions")}),(0,Xo.jsx)(hl,{label:"Backlog",onClick:()=>n("/backlog")})]}),(0,Xo.jsx)(de,{sx:uJ,children:(0,Xo.jsx)(_z,{repos:o.repos,selected:o.selectedCwd,onSelect:o.setSelectedCwd})})]})}),(0,Xo.jsx)(_g,{variant:"dense",sx:Fz}),(0,Xo.jsx)(mz,{socket:r}),(0,Xo.jsx)(yz,{error:r.error,onClose:r.clearError})]})}var Uz=_(R(),1),$z=_e((0,Uz.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4");var jz=_(R(),1),Wz=_e((0,jz.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7");var u_=_(R(),1);function Vz({mode:e,toggle:t}){return(0,u_.jsx)(ii,{onClick:t,size:"small",sx:{position:"fixed",top:8,right:16,zIndex:r=>r.zIndex.drawer+2,color:"inherit"},"aria-label":"Toggle light/dark mode",children:e==="dark"?(0,u_.jsx)(Wz,{fontSize:"small"}):(0,u_.jsx)($z,{fontSize:"small"})})}var qz=_(I(),1);function Kz(){let[e,t]=(0,qz.useState)(()=>{try{return localStorage.getItem("theme-mode")??"dark"}catch{return"dark"}});return{mode:e,toggle:()=>t(o=>{let i=o==="dark"?"light":"dark";try{localStorage.setItem("theme-mode",i)}catch{}return i})}}var Oa=_(R(),1),pJ={MuiButtonBase:{styleOverrides:{root:{cursor:"pointer","&.Mui-disabled":{cursor:"default"}}}},MuiLink:{styleOverrides:{root:{cursor:"pointer"}}}};function dJ(){let{mode:e,toggle:t}=Kz(),r=(0,Yz.useMemo)(()=>en({palette:{mode:e,...e==="dark"&&{background:{default:"#1e1e1e",paper:"#252526"}}},components:pJ}),[e]);return(0,Oa.jsxs)(uy,{theme:r,children:[(0,Oa.jsx)(Ly,{}),(0,Oa.jsxs)(_1,{children:[(0,Oa.jsx)(Vz,{mode:e,toggle:t}),(0,Oa.jsx)(Hz,{})]})]})}var Gz=document.getElementById("app");Gz&&(0,Xz.createRoot)(Gz).render((0,Oa.jsx)(dJ,{}));})();
|
|
239
239
|
/*! Bundled license information:
|
|
240
240
|
|
|
241
241
|
react/cjs/react.production.js:
|