diff --git "a/frontend/dist/assets/index-DMNVfo70.js" "b/frontend/dist/assets/index-DMNVfo70.js" new file mode 100644--- /dev/null +++ "b/frontend/dist/assets/index-DMNVfo70.js" @@ -0,0 +1,357 @@ +var y3=Object.defineProperty;var wm=e=>{throw TypeError(e)};var v3=(e,t,n)=>t in e?y3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var el=(e,t,n)=>v3(e,typeof t!="symbol"?t+"":t,n),xp=(e,t,n)=>t.has(e)||wm("Cannot "+n);var H=(e,t,n)=>(xp(e,t,"read from private field"),n?n.call(e):t.get(e)),Ye=(e,t,n)=>t.has(e)?wm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Me=(e,t,n,o)=>(xp(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),ct=(e,t,n)=>(xp(e,t,"access private method"),n);var fc=(e,t,n,o)=>({set _(s){Me(e,t,s,n)},get _(){return H(e,t,o)}});function x3(e,t){for(var n=0;no[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();function ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cp={exports:{}},tl={},bp={exports:{}},it={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rm;function C3(){if(Rm)return it;Rm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function C(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function R(A,X,he){this.props=A,this.context=X,this.refs=v,this.updater=he||x}R.prototype.isReactComponent={},R.prototype.setState=function(A,X){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,X,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function E(){}E.prototype=R.prototype;function L(A,X,he){this.props=A,this.context=X,this.refs=v,this.updater=he||x}var k=L.prototype=new E;k.constructor=L,b(k,R.prototype),k.isPureReactComponent=!0;var P=Array.isArray,M=Object.prototype.hasOwnProperty,j={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function N(A,X,he){var fe,pe={},ie=null,Ce=null;if(X!=null)for(fe in X.ref!==void 0&&(Ce=X.ref),X.key!==void 0&&(ie=""+X.key),X)M.call(X,fe)&&!_.hasOwnProperty(fe)&&(pe[fe]=X[fe]);var xe=arguments.length-2;if(xe===1)pe.children=he;else if(1>>1,X=D[A];if(0>>1;As(pe,te))ies(Ce,pe)?(D[A]=Ce,D[ie]=te,A=ie):(D[A]=pe,D[fe]=te,A=fe);else if(ies(Ce,te))D[A]=Ce,D[ie]=te,A=ie;else break e}}return G}function s(D,G){var te=D.sortIndex-G.sortIndex;return te!==0?te:D.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var p=[],h=[],g=1,y=null,C=3,x=!1,b=!1,v=!1,R=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(D){for(var G=n(h);G!==null;){if(G.callback===null)o(h);else if(G.startTime<=D)o(h),G.sortIndex=G.expirationTime,t(p,G);else break;G=n(h)}}function P(D){if(v=!1,k(D),!b)if(n(p)!==null)b=!0,Q(M);else{var G=n(h);G!==null&&ee(P,G.startTime-D)}}function M(D,G){b=!1,v&&(v=!1,E(N),N=-1),x=!0;var te=C;try{for(k(G),y=n(p);y!==null&&(!(y.expirationTime>G)||D&&!F());){var A=y.callback;if(typeof A=="function"){y.callback=null,C=y.priorityLevel;var X=A(y.expirationTime<=G);G=e.unstable_now(),typeof X=="function"?y.callback=X:y===n(p)&&o(p),k(G)}else o(p);y=n(p)}if(y!==null)var he=!0;else{var fe=n(h);fe!==null&&ee(P,fe.startTime-G),he=!1}return he}finally{y=null,C=te,x=!1}}var j=!1,_=null,N=-1,V=5,I=-1;function F(){return!(e.unstable_now()-ID||125A?(D.sortIndex=te,t(h,D),n(p)===null&&D===n(h)&&(v?(E(N),N=-1):v=!0,ee(P,te-A))):(D.sortIndex=X,t(p,D),b||x||(b=!0,Q(M))),D},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(D){var G=C;return function(){var te=C;C=G;try{return D.apply(this,arguments)}finally{C=te}}}}(Rp)),Rp}var Mm;function R3(){return Mm||(Mm=1,wp.exports=w3()),wp.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lm;function k3(){if(Lm)return Fn;Lm=1;var e=V1(),t=R3();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,l=1;l"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},y={};function C(r){return p.call(y,r)?!0:p.call(g,r)?!1:h.test(r)?y[r]=!0:(g[r]=!0,!1)}function x(r,i,l,f){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return f?!1:l!==null?!l.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function b(r,i,l,f){if(i===null||typeof i>"u"||x(r,i,l,f))return!0;if(f)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function v(r,i,l,f,m,S,T){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=f,this.attributeNamespace=m,this.mustUseProperty=l,this.propertyName=r,this.type=i,this.sanitizeURL=S,this.removeEmptyString=T}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){R[r]=new v(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];R[i]=new v(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){R[r]=new v(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){R[r]=new v(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){R[r]=new v(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){R[r]=new v(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){R[r]=new v(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){R[r]=new v(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){R[r]=new v(r,5,!1,r.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function L(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(E,L);R[i]=new v(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(E,L);R[i]=new v(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(E,L);R[i]=new v(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){R[r]=new v(r,1,!1,r.toLowerCase(),null,!1,!1)}),R.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){R[r]=new v(r,1,!1,r.toLowerCase(),null,!0,!0)});function k(r,i,l,f){var m=R.hasOwnProperty(i)?R[i]:null;(m!==null?m.type!==0:f||!(2$||m[T]!==S[$]){var B=` +`+m[T].replace(" at new "," at ");return r.displayName&&B.includes("")&&(B=B.replace("",r.displayName)),B}while(1<=T&&0<=$);break}}}finally{he=!1,Error.prepareStackTrace=l}return(r=r?r.displayName||r.name:"")?X(r):""}function pe(r){switch(r.tag){case 5:return X(r.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return r=fe(r.type,!1),r;case 11:return r=fe(r.type.render,!1),r;case 1:return r=fe(r.type,!0),r;default:return""}}function ie(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case _:return"Fragment";case j:return"Portal";case V:return"Profiler";case N:return"StrictMode";case z:return"Suspense";case q:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case F:return(r.displayName||"Context")+".Consumer";case I:return(r._context.displayName||"Context")+".Provider";case O:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case K:return i=r.displayName||null,i!==null?i:ie(r.type)||"Memo";case Q:i=r._payload,r=r._init;try{return ie(r(i))}catch{}}return null}function Ce(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(i);case 8:return i===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function xe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function we(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Re(r){var i=we(r)?"checked":"value",l=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),f=""+r[i];if(!r.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var m=l.get,S=l.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return m.call(this)},set:function(T){f=""+T,S.call(this,T)}}),Object.defineProperty(r,i,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(T){f=""+T},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function De(r){r._valueTracker||(r._valueTracker=Re(r))}function Te(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var l=i.getValue(),f="";return r&&(f=we(r)?r.checked?"true":"false":r.value),r=f,r!==l?(i.setValue(r),!0):!1}function We(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Fe(r,i){var l=i.checked;return te({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??r._wrapperState.initialChecked})}function tt(r,i){var l=i.defaultValue==null?"":i.defaultValue,f=i.checked!=null?i.checked:i.defaultChecked;l=xe(i.value!=null?i.value:l),r._wrapperState={initialChecked:f,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function gt(r,i){i=i.checked,i!=null&&k(r,"checked",i,!1)}function ze(r,i){gt(r,i);var l=xe(i.value),f=i.type;if(l!=null)f==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+l):r.value!==""+l&&(r.value=""+l);else if(f==="submit"||f==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?mt(r,i.type,l):i.hasOwnProperty("defaultValue")&&mt(r,i.type,xe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function nt(r,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var f=i.type;if(!(f!=="submit"&&f!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,l||i===r.value||(r.value=i),r.defaultValue=i}l=r.name,l!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,l!==""&&(r.name=l)}function mt(r,i,l){(i!=="number"||We(r.ownerDocument)!==r)&&(l==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+l&&(r.defaultValue=""+l))}var ot=Array.isArray;function Je(r,i,l,f){if(r=r.options,i){i={};for(var m=0;m"+i.valueOf().toString()+"",i=Pe.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function Se(r,i){if(i){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=i;return}}r.textContent=i}var be={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rt=["Webkit","ms","Moz","O"];Object.keys(be).forEach(function(r){rt.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),be[i]=be[r]})});function lt(r,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||be.hasOwnProperty(r)&&be[r]?(""+i).trim():i+"px"}function Ct(r,i){r=r.style;for(var l in i)if(i.hasOwnProperty(l)){var f=l.indexOf("--")===0,m=lt(l,i[l],f);l==="float"&&(l="cssFloat"),f?r.setProperty(l,m):r[l]=m}}var _e=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ut(r,i){if(i){if(_e[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Pt(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){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 un=null;function or(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ro=null,Ar=null,wt=null;function Dt(r){if(r=Na(r)){if(typeof ro!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Pu(i),ro(r.stateNode,r.type,i))}}function Mo(r){Ar?wt?wt.push(r):wt=[r]:Ar=r}function oo(){if(Ar){var r=Ar,i=wt;if(wt=Ar=null,Dt(r),i)for(r=0;r>>=0,r===0?32:31-(Ov(r)/_v|0)|0}var uu=64,cu=4194304;function ba(r){switch(r&-r){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: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function du(r,i){var l=r.pendingLanes;if(l===0)return 0;var f=0,m=r.suspendedLanes,S=r.pingedLanes,T=l&268435455;if(T!==0){var $=T&~m;$!==0?f=ba($):(S&=T,S!==0&&(f=ba(S)))}else T=l&~m,T!==0?f=ba(T):S!==0&&(f=ba(S));if(f===0)return 0;if(i!==0&&i!==f&&!(i&m)&&(m=f&-f,S=i&-i,m>=S||m===16&&(S&4194240)!==0))return i;if(f&4&&(f|=l&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=f;0l;l++)i.push(r);return i}function Sa(r,i,l){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-br(i),r[i]=l}function zv(r,i){var l=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var f=r.eventTimes;for(r=r.expirationTimes;0=La),mg=" ",yg=!1;function vg(r,i){switch(r){case"keyup":return f6.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var as=!1;function h6(r,i){switch(r){case"compositionend":return xg(i);case"keypress":return i.which!==32?null:(yg=!0,mg);case"textInput":return r=i.data,r===mg&&yg?null:r;default:return null}}function g6(r,i){if(as)return r==="compositionend"||!Zd&&vg(r,i)?(r=cg(),mu=Gd=_o=null,as=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:l,offset:i-r};r=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Eg(l)}}function Ig(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?Ig(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function Mg(){for(var r=window,i=We();i instanceof r.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)r=i.contentWindow;else break;i=We(r.document)}return i}function tf(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function R6(r){var i=Mg(),l=r.focusedElem,f=r.selectionRange;if(i!==l&&l&&l.ownerDocument&&Ig(l.ownerDocument.documentElement,l)){if(f!==null&&tf(l)){if(i=f.start,r=f.end,r===void 0&&(r=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(r,l.value.length);else if(r=(i=l.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var m=l.textContent.length,S=Math.min(f.start,m);f=f.end===void 0?S:Math.min(f.end,m),!r.extend&&S>f&&(m=f,f=S,S=m),m=Pg(l,S);var T=Pg(l,f);m&&T&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==T.node||r.focusOffset!==T.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),r.removeAllRanges(),S>f?(r.addRange(i),r.extend(T.node,T.offset)):(i.setEnd(T.node,T.offset),r.addRange(i)))}}for(i=[],r=l;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l=document.documentMode,ls=null,nf=null,_a=null,rf=!1;function Lg(r,i,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;rf||ls==null||ls!==We(f)||(f=ls,"selectionStart"in f&&tf(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),_a&&Oa(_a,f)||(_a=f,f=Ru(nf,"onSelect"),0ps||(r.current=mf[ps],mf[ps]=null,ps--)}function Lt(r,i){ps++,mf[ps]=r.current,r.current=i}var zo={},yn=Fo(zo),jn=Fo(!1),xi=zo;function hs(r,i){var l=r.type.contextTypes;if(!l)return zo;var f=r.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===i)return f.__reactInternalMemoizedMaskedChildContext;var m={},S;for(S in l)m[S]=i[S];return f&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=m),m}function On(r){return r=r.childContextTypes,r!=null}function Iu(){Ot(jn),Ot(yn)}function Wg(r,i,l){if(yn.current!==zo)throw Error(n(168));Lt(yn,i),Lt(jn,l)}function Gg(r,i,l){var f=r.stateNode;if(i=i.childContextTypes,typeof f.getChildContext!="function")return l;f=f.getChildContext();for(var m in f)if(!(m in i))throw Error(n(108,Ce(r)||"Unknown",m));return te({},l,f)}function Mu(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||zo,xi=yn.current,Lt(yn,r),Lt(jn,jn.current),!0}function Kg(r,i,l){var f=r.stateNode;if(!f)throw Error(n(169));l?(r=Gg(r,i,xi),f.__reactInternalMemoizedMergedChildContext=r,Ot(jn),Ot(yn),Lt(yn,r)):Ot(jn),Lt(jn,l)}var so=null,Lu=!1,yf=!1;function qg(r){so===null?so=[r]:so.push(r)}function A6(r){Lu=!0,qg(r)}function No(){if(!yf&&so!==null){yf=!0;var r=0,i=Rt;try{var l=so;for(Rt=1;r>=T,m-=T,ao=1<<32-br(i)+m|l<Xe?(sn=Ve,Ve=null):sn=Ve.sibling;var pt=ue(Y,Ve,Z[Xe],ge);if(pt===null){Ve===null&&(Ve=sn);break}r&&Ve&&pt.alternate===null&&i(Y,Ve),U=S(pt,U,Xe),Be===null?Oe=pt:Be.sibling=pt,Be=pt,Ve=sn}if(Xe===Z.length)return l(Y,Ve),_t&&bi(Y,Xe),Oe;if(Ve===null){for(;XeXe?(sn=Ve,Ve=null):sn=Ve.sibling;var qo=ue(Y,Ve,pt.value,ge);if(qo===null){Ve===null&&(Ve=sn);break}r&&Ve&&qo.alternate===null&&i(Y,Ve),U=S(qo,U,Xe),Be===null?Oe=qo:Be.sibling=qo,Be=qo,Ve=sn}if(pt.done)return l(Y,Ve),_t&&bi(Y,Xe),Oe;if(Ve===null){for(;!pt.done;Xe++,pt=Z.next())pt=de(Y,pt.value,ge),pt!==null&&(U=S(pt,U,Xe),Be===null?Oe=pt:Be.sibling=pt,Be=pt);return _t&&bi(Y,Xe),Oe}for(Ve=f(Y,Ve);!pt.done;Xe++,pt=Z.next())pt=ke(Ve,Y,Xe,pt.value,ge),pt!==null&&(r&&pt.alternate!==null&&Ve.delete(pt.key===null?Xe:pt.key),U=S(pt,U,Xe),Be===null?Oe=pt:Be.sibling=pt,Be=pt);return r&&Ve.forEach(function(m3){return i(Y,m3)}),_t&&bi(Y,Xe),Oe}function qt(Y,U,Z,ge){if(typeof Z=="object"&&Z!==null&&Z.type===_&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case M:e:{for(var Oe=Z.key,Be=U;Be!==null;){if(Be.key===Oe){if(Oe=Z.type,Oe===_){if(Be.tag===7){l(Y,Be.sibling),U=m(Be,Z.props.children),U.return=Y,Y=U;break e}}else if(Be.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Q&&e0(Oe)===Be.type){l(Y,Be.sibling),U=m(Be,Z.props),U.ref=Da(Y,Be,Z),U.return=Y,Y=U;break e}l(Y,Be);break}else i(Y,Be);Be=Be.sibling}Z.type===_?(U=Mi(Z.props.children,Y.mode,ge,Z.key),U.return=Y,Y=U):(ge=oc(Z.type,Z.key,Z.props,null,Y.mode,ge),ge.ref=Da(Y,U,Z),ge.return=Y,Y=ge)}return T(Y);case j:e:{for(Be=Z.key;U!==null;){if(U.key===Be)if(U.tag===4&&U.stateNode.containerInfo===Z.containerInfo&&U.stateNode.implementation===Z.implementation){l(Y,U.sibling),U=m(U,Z.children||[]),U.return=Y,Y=U;break e}else{l(Y,U);break}else i(Y,U);U=U.sibling}U=hp(Z,Y.mode,ge),U.return=Y,Y=U}return T(Y);case Q:return Be=Z._init,qt(Y,U,Be(Z._payload),ge)}if(ot(Z))return Le(Y,U,Z,ge);if(G(Z))return je(Y,U,Z,ge);_u(Y,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,U!==null&&U.tag===6?(l(Y,U.sibling),U=m(U,Z),U.return=Y,Y=U):(l(Y,U),U=pp(Z,Y.mode,ge),U.return=Y,Y=U),T(Y)):l(Y,U)}return qt}var vs=t0(!0),n0=t0(!1),$u=Fo(null),Au=null,xs=null,wf=null;function Rf(){wf=xs=Au=null}function kf(r){var i=$u.current;Ot($u),r._currentValue=i}function Ef(r,i,l){for(;r!==null;){var f=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),r===l)break;r=r.return}}function Cs(r,i){Au=r,wf=xs=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&i&&(_n=!0),r.firstContext=null)}function ar(r){var i=r._currentValue;if(wf!==r)if(r={context:r,memoizedValue:i,next:null},xs===null){if(Au===null)throw Error(n(308));xs=r,Au.dependencies={lanes:0,firstContext:r}}else xs=xs.next=r;return i}var Si=null;function Pf(r){Si===null?Si=[r]:Si.push(r)}function r0(r,i,l,f){var m=i.interleaved;return m===null?(l.next=l,Pf(i)):(l.next=m.next,m.next=l),i.interleaved=l,uo(r,f)}function uo(r,i){r.lanes|=i;var l=r.alternate;for(l!==null&&(l.lanes|=i),l=r,r=r.return;r!==null;)r.childLanes|=i,l=r.alternate,l!==null&&(l.childLanes|=i),l=r,r=r.return;return l.tag===3?l.stateNode:null}var Do=!1;function If(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function o0(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function co(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Bo(r,i,l){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,ft&2){var m=f.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),f.pending=i,uo(r,l)}return m=f.interleaved,m===null?(i.next=i,Pf(f)):(i.next=m.next,m.next=i),f.interleaved=i,uo(r,l)}function Fu(r,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var f=i.lanes;f&=r.pendingLanes,l|=f,i.lanes=l,Bd(r,l)}}function i0(r,i){var l=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var m=null,S=null;if(l=l.firstBaseUpdate,l!==null){do{var T={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};S===null?m=S=T:S=S.next=T,l=l.next}while(l!==null);S===null?m=S=i:S=S.next=i}else m=S=i;l={baseState:f.baseState,firstBaseUpdate:m,lastBaseUpdate:S,shared:f.shared,effects:f.effects},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=i:r.next=i,l.lastBaseUpdate=i}function zu(r,i,l,f){var m=r.updateQueue;Do=!1;var S=m.firstBaseUpdate,T=m.lastBaseUpdate,$=m.shared.pending;if($!==null){m.shared.pending=null;var B=$,J=B.next;B.next=null,T===null?S=J:T.next=J,T=B;var ce=r.alternate;ce!==null&&(ce=ce.updateQueue,$=ce.lastBaseUpdate,$!==T&&($===null?ce.firstBaseUpdate=J:$.next=J,ce.lastBaseUpdate=B))}if(S!==null){var de=m.baseState;T=0,ce=J=B=null,$=S;do{var ue=$.lane,ke=$.eventTime;if((f&ue)===ue){ce!==null&&(ce=ce.next={eventTime:ke,lane:0,tag:$.tag,payload:$.payload,callback:$.callback,next:null});e:{var Le=r,je=$;switch(ue=i,ke=l,je.tag){case 1:if(Le=je.payload,typeof Le=="function"){de=Le.call(ke,de,ue);break e}de=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=je.payload,ue=typeof Le=="function"?Le.call(ke,de,ue):Le,ue==null)break e;de=te({},de,ue);break e;case 2:Do=!0}}$.callback!==null&&$.lane!==0&&(r.flags|=64,ue=m.effects,ue===null?m.effects=[$]:ue.push($))}else ke={eventTime:ke,lane:ue,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ce===null?(J=ce=ke,B=de):ce=ce.next=ke,T|=ue;if($=$.next,$===null){if($=m.shared.pending,$===null)break;ue=$,$=ue.next,ue.next=null,m.lastBaseUpdate=ue,m.shared.pending=null}}while(!0);if(ce===null&&(B=de),m.baseState=B,m.firstBaseUpdate=J,m.lastBaseUpdate=ce,i=m.shared.interleaved,i!==null){m=i;do T|=m.lane,m=m.next;while(m!==i)}else S===null&&(m.shared.lanes=0);ki|=T,r.lanes=T,r.memoizedState=de}}function s0(r,i,l){if(r=i.effects,i.effects=null,r!==null)for(i=0;il?l:4,r(!0);var f=Of.transition;Of.transition={};try{r(!1),i()}finally{Rt=l,Of.transition=f}}function k0(){return lr().memoizedState}function D6(r,i,l){var f=Wo(r);if(l={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null},E0(r))P0(i,l);else if(l=r0(r,i,l,f),l!==null){var m=En();Pr(l,r,f,m),I0(l,i,f)}}function B6(r,i,l){var f=Wo(r),m={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null};if(E0(r))P0(i,m);else{var S=r.alternate;if(r.lanes===0&&(S===null||S.lanes===0)&&(S=i.lastRenderedReducer,S!==null))try{var T=i.lastRenderedState,$=S(T,l);if(m.hasEagerState=!0,m.eagerState=$,Sr($,T)){var B=i.interleaved;B===null?(m.next=m,Pf(i)):(m.next=B.next,B.next=m),i.interleaved=m;return}}catch{}finally{}l=r0(r,i,m,f),l!==null&&(m=En(),Pr(l,r,f,m),I0(l,i,f))}}function E0(r){var i=r.alternate;return r===Nt||i!==null&&i===Nt}function P0(r,i){Ha=Bu=!0;var l=r.pending;l===null?i.next=i:(i.next=l.next,l.next=i),r.pending=i}function I0(r,i,l){if(l&4194240){var f=i.lanes;f&=r.pendingLanes,l|=f,i.lanes=l,Bd(r,l)}}var Hu={readContext:ar,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useInsertionEffect:vn,useLayoutEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useMutableSource:vn,useSyncExternalStore:vn,useId:vn,unstable_isNewReconciler:!1},V6={readContext:ar,useCallback:function(r,i){return Dr().memoizedState=[r,i===void 0?null:i],r},useContext:ar,useEffect:y0,useImperativeHandle:function(r,i,l){return l=l!=null?l.concat([r]):null,Vu(4194308,4,C0.bind(null,i,r),l)},useLayoutEffect:function(r,i){return Vu(4194308,4,r,i)},useInsertionEffect:function(r,i){return Vu(4,2,r,i)},useMemo:function(r,i){var l=Dr();return i=i===void 0?null:i,r=r(),l.memoizedState=[r,i],r},useReducer:function(r,i,l){var f=Dr();return i=l!==void 0?l(i):i,f.memoizedState=f.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},f.queue=r,r=r.dispatch=D6.bind(null,Nt,r),[f.memoizedState,r]},useRef:function(r){var i=Dr();return r={current:r},i.memoizedState=r},useState:g0,useDebugValue:Df,useDeferredValue:function(r){return Dr().memoizedState=r},useTransition:function(){var r=g0(!1),i=r[0];return r=N6.bind(null,r[1]),Dr().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,l){var f=Nt,m=Dr();if(_t){if(l===void 0)throw Error(n(407));l=l()}else{if(l=i(),on===null)throw Error(n(349));Ri&30||c0(f,i,l)}m.memoizedState=l;var S={value:l,getSnapshot:i};return m.queue=S,y0(f0.bind(null,f,S,r),[r]),f.flags|=2048,Ka(9,d0.bind(null,f,S,l,i),void 0,null),l},useId:function(){var r=Dr(),i=on.identifierPrefix;if(_t){var l=lo,f=ao;l=(f&~(1<<32-br(f)-1)).toString(32)+l,i=":"+i+"R"+l,l=Wa++,0<\/script>",r=r.removeChild(r.firstChild)):typeof f.is=="string"?r=T.createElement(l,{is:f.is}):(r=T.createElement(l),l==="select"&&(T=r,f.multiple?T.multiple=!0:f.size&&(T.size=f.size))):r=T.createElementNS(r,l),r[zr]=i,r[za]=f,q0(r,i,!1,!1),i.stateNode=r;e:{switch(T=Pt(l,f),l){case"dialog":jt("cancel",r),jt("close",r),m=f;break;case"iframe":case"object":case"embed":jt("load",r),m=f;break;case"video":case"audio":for(m=0;m<$a.length;m++)jt($a[m],r);m=f;break;case"source":jt("error",r),m=f;break;case"img":case"image":case"link":jt("error",r),jt("load",r),m=f;break;case"details":jt("toggle",r),m=f;break;case"input":tt(r,f),m=Fe(r,f),jt("invalid",r);break;case"option":m=f;break;case"select":r._wrapperState={wasMultiple:!!f.multiple},m=te({},f,{value:void 0}),jt("invalid",r);break;case"textarea":Tt(r,f),m=Ee(r,f),jt("invalid",r);break;default:m=f}ut(l,m),$=m;for(S in $)if($.hasOwnProperty(S)){var B=$[S];S==="style"?Ct(r,B):S==="dangerouslySetInnerHTML"?(B=B?B.__html:void 0,B!=null&&$e(r,B)):S==="children"?typeof B=="string"?(l!=="textarea"||B!=="")&&Se(r,B):typeof B=="number"&&Se(r,""+B):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(s.hasOwnProperty(S)?B!=null&&S==="onScroll"&&jt("scroll",r):B!=null&&k(r,S,B,T))}switch(l){case"input":De(r),nt(r,f,!1);break;case"textarea":De(r),se(r);break;case"option":f.value!=null&&r.setAttribute("value",""+xe(f.value));break;case"select":r.multiple=!!f.multiple,S=f.value,S!=null?Je(r,!!f.multiple,S,!1):f.defaultValue!=null&&Je(r,!!f.multiple,f.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=Eu)}switch(l){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return xn(i),null;case 6:if(r&&i.stateNode!=null)Y0(r,i,r.memoizedProps,f);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(l=wi(Ua.current),wi(Nr.current),Ou(i)){if(f=i.stateNode,l=i.memoizedProps,f[zr]=i,(S=f.nodeValue!==l)&&(r=qn,r!==null))switch(r.tag){case 3:ku(f.nodeValue,l,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&ku(f.nodeValue,l,(r.mode&1)!==0)}S&&(i.flags|=4)}else f=(l.nodeType===9?l:l.ownerDocument).createTextNode(f),f[zr]=i,i.stateNode=f}return xn(i),null;case 13:if(Ot(zt),f=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(_t&&Qn!==null&&i.mode&1&&!(i.flags&128))Jg(),ys(),i.flags|=98560,S=!1;else if(S=Ou(i),f!==null&&f.dehydrated!==null){if(r===null){if(!S)throw Error(n(318));if(S=i.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(n(317));S[zr]=i}else ys(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;xn(i),S=!1}else wr!==null&&(lp(wr),wr=null),S=!0;if(!S)return i.flags&65536?i:null}return i.flags&128?(i.lanes=l,i):(f=f!==null,f!==(r!==null&&r.memoizedState!==null)&&f&&(i.child.flags|=8192,i.mode&1&&(r===null||zt.current&1?en===0&&(en=3):dp())),i.updateQueue!==null&&(i.flags|=4),xn(i),null);case 4:return bs(),Xf(r,i),r===null&&Aa(i.stateNode.containerInfo),xn(i),null;case 10:return kf(i.type._context),xn(i),null;case 17:return On(i.type)&&Iu(),xn(i),null;case 19:if(Ot(zt),S=i.memoizedState,S===null)return xn(i),null;if(f=(i.flags&128)!==0,T=S.rendering,T===null)if(f)qa(S,!1);else{if(en!==0||r!==null&&r.flags&128)for(r=i.child;r!==null;){if(T=Nu(r),T!==null){for(i.flags|=128,qa(S,!1),f=T.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),i.subtreeFlags=0,f=l,l=i.child;l!==null;)S=l,r=f,S.flags&=14680066,T=S.alternate,T===null?(S.childLanes=0,S.lanes=r,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=T.childLanes,S.lanes=T.lanes,S.child=T.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=T.memoizedProps,S.memoizedState=T.memoizedState,S.updateQueue=T.updateQueue,S.type=T.type,r=T.dependencies,S.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l=l.sibling;return Lt(zt,zt.current&1|2),i.child}r=r.sibling}S.tail!==null&&Kt()>ks&&(i.flags|=128,f=!0,qa(S,!1),i.lanes=4194304)}else{if(!f)if(r=Nu(T),r!==null){if(i.flags|=128,f=!0,l=r.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),qa(S,!0),S.tail===null&&S.tailMode==="hidden"&&!T.alternate&&!_t)return xn(i),null}else 2*Kt()-S.renderingStartTime>ks&&l!==1073741824&&(i.flags|=128,f=!0,qa(S,!1),i.lanes=4194304);S.isBackwards?(T.sibling=i.child,i.child=T):(l=S.last,l!==null?l.sibling=T:i.child=T,S.last=T)}return S.tail!==null?(i=S.tail,S.rendering=i,S.tail=i.sibling,S.renderingStartTime=Kt(),i.sibling=null,l=zt.current,Lt(zt,f?l&1|2:l&1),i):(xn(i),null);case 22:case 23:return cp(),f=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==f&&(i.flags|=8192),f&&i.mode&1?Yn&1073741824&&(xn(i),i.subtreeFlags&6&&(i.flags|=8192)):xn(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function Y6(r,i){switch(xf(i),i.tag){case 1:return On(i.type)&&Iu(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return bs(),Ot(jn),Ot(yn),jf(),r=i.flags,r&65536&&!(r&128)?(i.flags=r&-65537|128,i):null;case 5:return Lf(i),null;case 13:if(Ot(zt),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));ys()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return Ot(zt),null;case 4:return bs(),null;case 10:return kf(i.type._context),null;case 22:case 23:return cp(),null;case 24:return null;default:return null}}var qu=!1,Cn=!1,X6=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function ws(r,i){var l=r.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(f){Bt(r,i,f)}else l.current=null}function Zf(r,i,l){try{l()}catch(f){Bt(r,i,f)}}var X0=!1;function Z6(r,i){if(cf=hu,r=Mg(),tf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var m=f.anchorOffset,S=f.focusNode;f=f.focusOffset;try{l.nodeType,S.nodeType}catch{l=null;break e}var T=0,$=-1,B=-1,J=0,ce=0,de=r,ue=null;t:for(;;){for(var ke;de!==l||m!==0&&de.nodeType!==3||($=T+m),de!==S||f!==0&&de.nodeType!==3||(B=T+f),de.nodeType===3&&(T+=de.nodeValue.length),(ke=de.firstChild)!==null;)ue=de,de=ke;for(;;){if(de===r)break t;if(ue===l&&++J===m&&($=T),ue===S&&++ce===f&&(B=T),(ke=de.nextSibling)!==null)break;de=ue,ue=de.parentNode}de=ke}l=$===-1||B===-1?null:{start:$,end:B}}else l=null}l=l||{start:0,end:0}}else l=null;for(df={focusedElem:r,selectionRange:l},hu=!1,Ie=i;Ie!==null;)if(i=Ie,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,Ie=r;else for(;Ie!==null;){i=Ie;try{var Le=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(Le!==null){var je=Le.memoizedProps,qt=Le.memoizedState,Y=i.stateNode,U=Y.getSnapshotBeforeUpdate(i.elementType===i.type?je:Rr(i.type,je),qt);Y.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var Z=i.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ge){Bt(i,i.return,ge)}if(r=i.sibling,r!==null){r.return=i.return,Ie=r;break}Ie=i.return}return Le=X0,X0=!1,Le}function Qa(r,i,l){var f=i.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var m=f=f.next;do{if((m.tag&r)===r){var S=m.destroy;m.destroy=void 0,S!==void 0&&Zf(i,l,S)}m=m.next}while(m!==f)}}function Qu(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&r)===r){var f=l.create;l.destroy=f()}l=l.next}while(l!==i)}}function Jf(r){var i=r.ref;if(i!==null){var l=r.stateNode;switch(r.tag){case 5:r=l;break;default:r=l}typeof i=="function"?i(r):i.current=r}}function Z0(r){var i=r.alternate;i!==null&&(r.alternate=null,Z0(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[zr],delete i[za],delete i[gf],delete i[_6],delete i[$6])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function J0(r){return r.tag===5||r.tag===3||r.tag===4}function em(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||J0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function ep(r,i,l){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(r,i):l.insertBefore(r,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(r,l)):(i=l,i.appendChild(r)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Eu));else if(f!==4&&(r=r.child,r!==null))for(ep(r,i,l),r=r.sibling;r!==null;)ep(r,i,l),r=r.sibling}function tp(r,i,l){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?l.insertBefore(r,i):l.appendChild(r);else if(f!==4&&(r=r.child,r!==null))for(tp(r,i,l),r=r.sibling;r!==null;)tp(r,i,l),r=r.sibling}var cn=null,kr=!1;function Vo(r,i,l){for(l=l.child;l!==null;)tm(r,i,l),l=l.sibling}function tm(r,i,l){if(Fr&&typeof Fr.onCommitFiberUnmount=="function")try{Fr.onCommitFiberUnmount(lu,l)}catch{}switch(l.tag){case 5:Cn||ws(l,i);case 6:var f=cn,m=kr;cn=null,Vo(r,i,l),cn=f,kr=m,cn!==null&&(kr?(r=cn,l=l.stateNode,r.nodeType===8?r.parentNode.removeChild(l):r.removeChild(l)):cn.removeChild(l.stateNode));break;case 18:cn!==null&&(kr?(r=cn,l=l.stateNode,r.nodeType===8?hf(r.parentNode,l):r.nodeType===1&&hf(r,l),Pa(r)):hf(cn,l.stateNode));break;case 4:f=cn,m=kr,cn=l.stateNode.containerInfo,kr=!0,Vo(r,i,l),cn=f,kr=m;break;case 0:case 11:case 14:case 15:if(!Cn&&(f=l.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){m=f=f.next;do{var S=m,T=S.destroy;S=S.tag,T!==void 0&&(S&2||S&4)&&Zf(l,i,T),m=m.next}while(m!==f)}Vo(r,i,l);break;case 1:if(!Cn&&(ws(l,i),f=l.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=l.memoizedProps,f.state=l.memoizedState,f.componentWillUnmount()}catch($){Bt(l,i,$)}Vo(r,i,l);break;case 21:Vo(r,i,l);break;case 22:l.mode&1?(Cn=(f=Cn)||l.memoizedState!==null,Vo(r,i,l),Cn=f):Vo(r,i,l);break;default:Vo(r,i,l)}}function nm(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var l=r.stateNode;l===null&&(l=r.stateNode=new X6),i.forEach(function(f){var m=a3.bind(null,r,f);l.has(f)||(l.add(f),f.then(m,m))})}}function Er(r,i){var l=i.deletions;if(l!==null)for(var f=0;fm&&(m=T),f&=~S}if(f=m,f=Kt()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*e3(f/1960))-f,10r?16:r,Ho===null)var f=!1;else{if(r=Ho,Ho=null,ec=0,ft&6)throw Error(n(331));var m=ft;for(ft|=4,Ie=r.current;Ie!==null;){var S=Ie,T=S.child;if(Ie.flags&16){var $=S.deletions;if($!==null){for(var B=0;B<$.length;B++){var J=$[B];for(Ie=J;Ie!==null;){var ce=Ie;switch(ce.tag){case 0:case 11:case 15:Qa(8,ce,S)}var de=ce.child;if(de!==null)de.return=ce,Ie=de;else for(;Ie!==null;){ce=Ie;var ue=ce.sibling,ke=ce.return;if(Z0(ce),ce===J){Ie=null;break}if(ue!==null){ue.return=ke,Ie=ue;break}Ie=ke}}}var Le=S.alternate;if(Le!==null){var je=Le.child;if(je!==null){Le.child=null;do{var qt=je.sibling;je.sibling=null,je=qt}while(je!==null)}}Ie=S}}if(S.subtreeFlags&2064&&T!==null)T.return=S,Ie=T;else e:for(;Ie!==null;){if(S=Ie,S.flags&2048)switch(S.tag){case 0:case 11:case 15:Qa(9,S,S.return)}var Y=S.sibling;if(Y!==null){Y.return=S.return,Ie=Y;break e}Ie=S.return}}var U=r.current;for(Ie=U;Ie!==null;){T=Ie;var Z=T.child;if(T.subtreeFlags&2064&&Z!==null)Z.return=T,Ie=Z;else e:for(T=U;Ie!==null;){if($=Ie,$.flags&2048)try{switch($.tag){case 0:case 11:case 15:Qu(9,$)}}catch(Oe){Bt($,$.return,Oe)}if($===T){Ie=null;break e}var ge=$.sibling;if(ge!==null){ge.return=$.return,Ie=ge;break e}Ie=$.return}}if(ft=m,No(),Fr&&typeof Fr.onPostCommitFiberRoot=="function")try{Fr.onPostCommitFiberRoot(lu,r)}catch{}f=!0}return f}finally{Rt=l,ur.transition=i}}return!1}function hm(r,i,l){i=Ss(l,i),i=j0(r,i,1),r=Bo(r,i,1),i=En(),r!==null&&(Sa(r,1,i),An(r,i))}function Bt(r,i,l){if(r.tag===3)hm(r,r,l);else for(;i!==null;){if(i.tag===3){hm(i,r,l);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Uo===null||!Uo.has(f))){r=Ss(l,r),r=O0(i,r,1),i=Bo(i,r,1),r=En(),i!==null&&(Sa(i,1,r),An(i,r));break}}i=i.return}}function i3(r,i,l){var f=r.pingCache;f!==null&&f.delete(i),i=En(),r.pingedLanes|=r.suspendedLanes&l,on===r&&(dn&l)===l&&(en===4||en===3&&(dn&130023424)===dn&&500>Kt()-op?Pi(r,0):rp|=l),An(r,i)}function gm(r,i){i===0&&(r.mode&1?(i=cu,cu<<=1,!(cu&130023424)&&(cu=4194304)):i=1);var l=En();r=uo(r,i),r!==null&&(Sa(r,i,l),An(r,l))}function s3(r){var i=r.memoizedState,l=0;i!==null&&(l=i.retryLane),gm(r,l)}function a3(r,i){var l=0;switch(r.tag){case 13:var f=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:f=r.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(i),gm(r,l)}var mm;mm=function(r,i,l){if(r!==null)if(r.memoizedProps!==i.pendingProps||jn.current)_n=!0;else{if(!(r.lanes&l)&&!(i.flags&128))return _n=!1,q6(r,i,l);_n=!!(r.flags&131072)}else _n=!1,_t&&i.flags&1048576&&Qg(i,ju,i.index);switch(i.lanes=0,i.tag){case 2:var f=i.type;Ku(r,i),r=i.pendingProps;var m=hs(i,yn.current);Cs(i,l),m=$f(null,i,f,r,m,l);var S=Af();return i.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,On(f)?(S=!0,Mu(i)):S=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,If(i),m.updater=Wu,i.stateNode=m,m._reactInternals=i,Vf(i,f,r,l),i=Gf(null,i,f,!0,S,l)):(i.tag=0,_t&&S&&vf(i),kn(null,i,m,l),i=i.child),i;case 16:f=i.elementType;e:{switch(Ku(r,i),r=i.pendingProps,m=f._init,f=m(f._payload),i.type=f,m=i.tag=u3(f),r=Rr(f,r),m){case 0:i=Wf(null,i,f,r,l);break e;case 1:i=V0(null,i,f,r,l);break e;case 11:i=F0(null,i,f,r,l);break e;case 14:i=z0(null,i,f,Rr(f.type,r),l);break e}throw Error(n(306,f,""))}return i;case 0:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:Rr(f,m),Wf(r,i,f,m,l);case 1:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:Rr(f,m),V0(r,i,f,m,l);case 3:e:{if(U0(i),r===null)throw Error(n(387));f=i.pendingProps,S=i.memoizedState,m=S.element,o0(r,i),zu(i,f,null,l);var T=i.memoizedState;if(f=T.element,S.isDehydrated)if(S={element:f,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},i.updateQueue.baseState=S,i.memoizedState=S,i.flags&256){m=Ss(Error(n(423)),i),i=H0(r,i,f,l,m);break e}else if(f!==m){m=Ss(Error(n(424)),i),i=H0(r,i,f,l,m);break e}else for(Qn=Ao(i.stateNode.containerInfo.firstChild),qn=i,_t=!0,wr=null,l=n0(i,null,f,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ys(),f===m){i=fo(r,i,l);break e}kn(r,i,f,l)}i=i.child}return i;case 5:return a0(i),r===null&&bf(i),f=i.type,m=i.pendingProps,S=r!==null?r.memoizedProps:null,T=m.children,ff(f,m)?T=null:S!==null&&ff(f,S)&&(i.flags|=32),B0(r,i),kn(r,i,T,l),i.child;case 6:return r===null&&bf(i),null;case 13:return W0(r,i,l);case 4:return Mf(i,i.stateNode.containerInfo),f=i.pendingProps,r===null?i.child=vs(i,null,f,l):kn(r,i,f,l),i.child;case 11:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:Rr(f,m),F0(r,i,f,m,l);case 7:return kn(r,i,i.pendingProps,l),i.child;case 8:return kn(r,i,i.pendingProps.children,l),i.child;case 12:return kn(r,i,i.pendingProps.children,l),i.child;case 10:e:{if(f=i.type._context,m=i.pendingProps,S=i.memoizedProps,T=m.value,Lt($u,f._currentValue),f._currentValue=T,S!==null)if(Sr(S.value,T)){if(S.children===m.children&&!jn.current){i=fo(r,i,l);break e}}else for(S=i.child,S!==null&&(S.return=i);S!==null;){var $=S.dependencies;if($!==null){T=S.child;for(var B=$.firstContext;B!==null;){if(B.context===f){if(S.tag===1){B=co(-1,l&-l),B.tag=2;var J=S.updateQueue;if(J!==null){J=J.shared;var ce=J.pending;ce===null?B.next=B:(B.next=ce.next,ce.next=B),J.pending=B}}S.lanes|=l,B=S.alternate,B!==null&&(B.lanes|=l),Ef(S.return,l,i),$.lanes|=l;break}B=B.next}}else if(S.tag===10)T=S.type===i.type?null:S.child;else if(S.tag===18){if(T=S.return,T===null)throw Error(n(341));T.lanes|=l,$=T.alternate,$!==null&&($.lanes|=l),Ef(T,l,i),T=S.sibling}else T=S.child;if(T!==null)T.return=S;else for(T=S;T!==null;){if(T===i){T=null;break}if(S=T.sibling,S!==null){S.return=T.return,T=S;break}T=T.return}S=T}kn(r,i,m.children,l),i=i.child}return i;case 9:return m=i.type,f=i.pendingProps.children,Cs(i,l),m=ar(m),f=f(m),i.flags|=1,kn(r,i,f,l),i.child;case 14:return f=i.type,m=Rr(f,i.pendingProps),m=Rr(f.type,m),z0(r,i,f,m,l);case 15:return N0(r,i,i.type,i.pendingProps,l);case 17:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:Rr(f,m),Ku(r,i),i.tag=1,On(f)?(r=!0,Mu(i)):r=!1,Cs(i,l),L0(i,f,m),Vf(i,f,m,l),Gf(null,i,f,!0,r,l);case 19:return K0(r,i,l);case 22:return D0(r,i,l)}throw Error(n(156,i.tag))};function ym(r,i){return Yh(r,i)}function l3(r,i,l,f){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function cr(r,i,l,f){return new l3(r,i,l,f)}function fp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function u3(r){if(typeof r=="function")return fp(r)?1:0;if(r!=null){if(r=r.$$typeof,r===O)return 11;if(r===K)return 14}return 2}function Ko(r,i){var l=r.alternate;return l===null?(l=cr(r.tag,i,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=i,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&14680064,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,i=r.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l}function oc(r,i,l,f,m,S){var T=2;if(f=r,typeof r=="function")fp(r)&&(T=1);else if(typeof r=="string")T=5;else e:switch(r){case _:return Mi(l.children,m,S,i);case N:T=8,m|=8;break;case V:return r=cr(12,l,i,m|2),r.elementType=V,r.lanes=S,r;case z:return r=cr(13,l,i,m),r.elementType=z,r.lanes=S,r;case q:return r=cr(19,l,i,m),r.elementType=q,r.lanes=S,r;case ee:return ic(l,m,S,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case I:T=10;break e;case F:T=9;break e;case O:T=11;break e;case K:T=14;break e;case Q:T=16,f=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=cr(T,l,i,m),i.elementType=r,i.type=f,i.lanes=S,i}function Mi(r,i,l,f){return r=cr(7,r,f,i),r.lanes=l,r}function ic(r,i,l,f){return r=cr(22,r,f,i),r.elementType=ee,r.lanes=l,r.stateNode={isHidden:!1},r}function pp(r,i,l){return r=cr(6,r,null,i),r.lanes=l,r}function hp(r,i,l){return i=cr(4,r.children!==null?r.children:[],r.key,i),i.lanes=l,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function c3(r,i,l,f,m){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Dd(0),this.expirationTimes=Dd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dd(0),this.identifierPrefix=f,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function gp(r,i,l,f,m,S,T,$,B){return r=new c3(r,i,l,$,B),i===1?(i=1,S===!0&&(i|=8)):i=0,S=cr(3,null,null,i),r.current=S,S.stateNode=r,S.memoizedState={element:f,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},If(S),r}function d3(r,i,l){var f=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sp.exports=k3(),Sp.exports}var jm;function E3(){if(jm)return pc;jm=1;var e=ry();return pc.createRoot=e.createRoot,pc.hydrateRoot=e.hydrateRoot,pc}var P3=E3(),U1=ry();const hc=ny(U1);/** + * @remix-run/router v1.22.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function H1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function M3(){return Math.random().toString(36).substr(2,8)}function _m(e,t){return{usr:e.state,key:e.key,idx:t}}function Xp(e,t,n,o){return n===void 0&&(n=null),Tl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ns(t):t,{state:n,key:t&&t.key||o||M3()})}function oy(e){let{pathname:t="/",search:n="",hash:o=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),o&&o!=="#"&&(t+=o.charAt(0)==="#"?o:"#"+o),t}function ns(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}function L3(e,t,n,o){o===void 0&&(o={});let{window:s=document.defaultView,v5Compat:a=!1}=o,u=s.history,c=si.Pop,p=null,h=g();h==null&&(h=0,u.replaceState(Tl({},u.state,{idx:h}),""));function g(){return(u.state||{idx:null}).idx}function y(){c=si.Pop;let R=g(),E=R==null?null:R-h;h=R,p&&p({action:c,location:v.location,delta:E})}function C(R,E){c=si.Push;let L=Xp(v.location,R,E);n&&n(L,R),h=g()+1;let k=_m(L,h),P=v.createHref(L);try{u.pushState(k,"",P)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;s.location.assign(P)}a&&p&&p({action:c,location:v.location,delta:1})}function x(R,E){c=si.Replace;let L=Xp(v.location,R,E);n&&n(L,R),h=g();let k=_m(L,h),P=v.createHref(L);u.replaceState(k,"",P),a&&p&&p({action:c,location:v.location,delta:0})}function b(R){let E=s.location.origin!=="null"?s.location.origin:s.location.href,L=typeof R=="string"?R:oy(R);return L=L.replace(/ $/,"%20"),nn(E,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,E)}let v={get action(){return c},get location(){return e(s,u)},listen(R){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Om,y),p=R,()=>{s.removeEventListener(Om,y),p=null}},createHref(R){return t(s,R)},createURL:b,encodeLocation(R){let E=b(R);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:C,replace:x,go(R){return u.go(R)}};return v}var $m;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($m||($m={}));function T3(e,t,n){return n===void 0&&(n="/"),j3(e,t,n)}function j3(e,t,n,o){let s=typeof t=="string"?ns(t):t,a=ay(s.pathname||"/",n);if(a==null)return null;let u=iy(e);O3(u);let c=null;for(let p=0;c==null&&p{let p={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:u,route:a};p.relativePath.startsWith("/")&&(nn(p.relativePath.startsWith(o),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(o.length));let h=qi([o,p.relativePath]),g=n.concat(p);a.children&&a.children.length>0&&(nn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),iy(a.children,t,g,h)),!(a.path==null&&!a.index)&&t.push({path:h,score:D3(h,a.index),routesMeta:g})};return e.forEach((a,u)=>{var c;if(a.path===""||!((c=a.path)!=null&&c.includes("?")))s(a,u);else for(let p of sy(a.path))s(a,u,p)}),t}function sy(e){let t=e.split("/");if(t.length===0)return[];let[n,...o]=t,s=n.endsWith("?"),a=n.replace(/\?$/,"");if(o.length===0)return s?[a,""]:[a];let u=sy(o.join("/")),c=[];return c.push(...u.map(p=>p===""?a:[a,p].join("/"))),s&&c.push(...u),c.map(p=>e.startsWith("/")&&p===""?"/":p)}function O3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:B3(t.routesMeta.map(o=>o.childrenIndex),n.routesMeta.map(o=>o.childrenIndex)))}const _3=/^:[\w-]+$/,$3=3,A3=2,F3=1,z3=10,N3=-2,Am=e=>e==="*";function D3(e,t){let n=e.split("/"),o=n.length;return n.some(Am)&&(o+=N3),t&&(o+=A3),n.filter(s=>!Am(s)).reduce((s,a)=>s+(_3.test(a)?$3:a===""?F3:z3),o)}function B3(e,t){return e.length===t.length&&e.slice(0,-1).every((o,s)=>o===t[s])?e[e.length-1]-t[t.length-1]:0}function V3(e,t,n){let{routesMeta:o}=e,s={},a="/",u=[];for(let c=0;c{let{paramName:C,isOptional:x}=g;if(C==="*"){let v=c[y]||"";u=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const b=c[y];return x&&!b?h[C]=void 0:h[C]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:a,pathnameBase:u,pattern:e}}function H3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),H1(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,c,p)=>(o.push({paramName:c,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),o]}function W3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return H1(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ay(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,o=e.charAt(n);return o&&o!=="/"?null:e.slice(n)||"/"}function G3(e,t){t===void 0&&(t="/");let{pathname:n,search:o="",hash:s=""}=typeof e=="string"?ns(e):e;return{pathname:n?n.startsWith("/")?n:K3(n,t):t,search:Z3(o),hash:J3(s)}}function K3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function kp(e,t,n,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function q3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Q3(e,t){let n=q3(e);return t?n.map((o,s)=>s===n.length-1?o.pathname:o.pathnameBase):n.map(o=>o.pathnameBase)}function Y3(e,t,n,o){o===void 0&&(o=!1);let s;typeof e=="string"?s=ns(e):(s=Tl({},e),nn(!s.pathname||!s.pathname.includes("?"),kp("?","pathname","search",s)),nn(!s.pathname||!s.pathname.includes("#"),kp("#","pathname","hash",s)),nn(!s.search||!s.search.includes("#"),kp("#","search","hash",s)));let a=e===""||s.pathname==="",u=a?"/":s.pathname,c;if(u==null)c=n;else{let y=t.length-1;if(!o&&u.startsWith("..")){let C=u.split("/");for(;C[0]==="..";)C.shift(),y-=1;s.pathname=C.join("/")}c=y>=0?t[y]:"/"}let p=G3(s,c),h=u&&u!=="/"&&u.endsWith("/"),g=(a||u===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(h||g)&&(p.pathname+="/"),p}const qi=e=>e.join("/").replace(/\/\/+/g,"/"),X3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,J3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function e8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ly=["post","put","patch","delete"];new Set(ly);const t8=["get",...ly];new Set(t8);/** + * React Router v6.29.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.current=!0}),w.useCallback(function(h,g){if(g===void 0&&(g={}),!c.current)return;if(typeof h=="number"){o.go(h);return}let y=Y3(h,JSON.parse(u),a,g.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:qi([t,y.pathname])),(g.replace?o.replace:o.push)(y,g.state,g)},[t,o,u,a,e])}function o8(e,t){return i8(e,t)}function i8(e,t,n,o){sd()||nn(!1);let{navigator:s,static:a}=w.useContext(od),{matches:u}=w.useContext(fa),c=u[u.length-1],p=c?c.params:{};c&&c.pathname;let h=c?c.pathnameBase:"/";c&&c.route;let g=Io(),y;if(t){var C;let E=typeof t=="string"?ns(t):t;h==="/"||(C=E.pathname)!=null&&C.startsWith(h)||nn(!1),y=E}else y=g;let x=y.pathname||"/",b=x;if(h!=="/"){let E=h.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(E.length).join("/")}let v=T3(e,{pathname:b}),R=c8(v&&v.map(E=>Object.assign({},E,{params:Object.assign({},p,E.params),pathname:qi([h,s.encodeLocation?s.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?h:qi([h,s.encodeLocation?s.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),u,n,o);return t&&R?w.createElement(id.Provider,{value:{location:jl({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:si.Pop}},R):R}function s8(){let e=h8(),t=e8(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:s},n):null,null)}const a8=w.createElement(s8,null);class l8 extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(fa.Provider,{value:this.props.routeContext},w.createElement(uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function u8(e){let{routeContext:t,match:n,children:o}=e,s=w.useContext(W1);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(fa.Provider,{value:t},o)}function c8(e,t,n,o){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),o===void 0&&(o=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=o)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,c=(s=n)==null?void 0:s.errors;if(c!=null){let g=u.findIndex(y=>y.route.id&&(c==null?void 0:c[y.route.id])!==void 0);g>=0||nn(!1),u=u.slice(0,Math.min(u.length,g+1))}let p=!1,h=-1;if(n&&o&&o.v7_partialHydration)for(let g=0;g=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((g,y,C)=>{let x,b=!1,v=null,R=null;n&&(x=c&&y.route.id?c[y.route.id]:void 0,v=y.route.errorElement||a8,p&&(h<0&&C===0?(m8("route-fallback"),b=!0,R=null):h===C&&(b=!0,R=y.route.hydrateFallbackElement||null)));let E=t.concat(u.slice(0,C+1)),L=()=>{let k;return x?k=v:b?k=R:y.route.Component?k=w.createElement(y.route.Component,null):y.route.element?k=y.route.element:k=g,w.createElement(u8,{match:y,routeContext:{outlet:g,matches:E,isDataRoute:n!=null},children:k})};return n&&(y.route.ErrorBoundary||y.route.errorElement||C===0)?w.createElement(l8,{location:n.location,revalidation:n.revalidation,component:v,error:x,children:L(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):L()},null)}var dy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dy||{}),Gc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Gc||{});function d8(e){let t=w.useContext(W1);return t||nn(!1),t}function f8(e){let t=w.useContext(n8);return t||nn(!1),t}function p8(e){let t=w.useContext(fa);return t||nn(!1),t}function fy(e){let t=p8(),n=t.matches[t.matches.length-1];return n.route.id||nn(!1),n.route.id}function h8(){var e;let t=w.useContext(uy),n=f8(Gc.UseRouteError),o=fy(Gc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[o]}function g8(){let{router:e}=d8(dy.UseNavigateStable),t=fy(Gc.UseNavigateStable),n=w.useRef(!1);return cy(()=>{n.current=!0}),w.useCallback(function(s,a){a===void 0&&(a={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,jl({fromRouteId:t},a)))},[e,t])}const Fm={};function m8(e,t,n){Fm[e]||(Fm[e]=!0)}function y8(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function hl(e){nn(!1)}function v8(e){let{basename:t="/",children:n=null,location:o,navigationType:s=si.Pop,navigator:a,static:u=!1,future:c}=e;sd()&&nn(!1);let p=t.replace(/^\/*/,"/"),h=w.useMemo(()=>({basename:p,navigator:a,static:u,future:jl({v7_relativeSplatPath:!1},c)}),[p,c,a,u]);typeof o=="string"&&(o=ns(o));let{pathname:g="/",search:y="",hash:C="",state:x=null,key:b="default"}=o,v=w.useMemo(()=>{let R=ay(g,p);return R==null?null:{location:{pathname:R,search:y,hash:C,state:x,key:b},navigationType:s}},[p,g,y,C,x,b,s]);return v==null?null:w.createElement(od.Provider,{value:h},w.createElement(id.Provider,{children:n,value:v}))}function x8(e){let{children:t,location:n}=e;return o8(Zp(t),n)}new Promise(()=>{});function Zp(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(o,s)=>{if(!w.isValidElement(o))return;let a=[...t,s];if(o.type===w.Fragment){n.push.apply(n,Zp(o.props.children,a));return}o.type!==hl&&nn(!1),!o.props.index||!o.props.children||nn(!1);let u={id:o.props.id||a.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=Zp(o.props.children,a)),n.push(u)}),n}/** + * React Router DOM v6.29.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Jp(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let o=e[n];return t.concat(Array.isArray(o)?o.map(s=>[n,s]):[[n,o]])},[]))}function C8(e,t){let n=Jp(e);return t&&t.forEach((o,s)=>{n.has(s)||t.getAll(s).forEach(a=>{n.append(s,a)})}),n}const b8="6";try{window.__reactRouterVersion=b8}catch{}const S8="startTransition",zm=Ll[S8];function w8(e){let{basename:t,children:n,future:o,window:s}=e,a=w.useRef();a.current==null&&(a.current=I3({window:s,v5Compat:!0}));let u=a.current,[c,p]=w.useState({action:u.action,location:u.location}),{v7_startTransition:h}=o||{},g=w.useCallback(y=>{h&&zm?zm(()=>p(y)):p(y)},[p,h]);return w.useLayoutEffect(()=>u.listen(g),[u,g]),w.useEffect(()=>y8(o),[o]),w.createElement(v8,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:u,future:o})}var Nm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Nm||(Nm={}));var Dm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Dm||(Dm={}));function ha(e){let t=w.useRef(Jp(e)),n=w.useRef(!1),o=Io(),s=w.useMemo(()=>C8(o.search,n.current?null:t.current),[o.search]),a=pa(),u=w.useCallback((c,p)=>{const h=Jp(typeof c=="function"?c(s):c);n.current=!0,a("?"+h,p)},[a,s]);return[s,u]}function So(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const jr="$$material";function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?pn(ga,--Hn):0,na--,Zt===10&&(na=1,ld--),Zt}function Jn(){return Zt=Hn2||_l(Zt)>3?"":" "}function F8(e,t){for(;--t&&Jn()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return ql(e,$c()+(t<6&&Jr()==32&&Jn()==32))}function t1(e){for(;Jn();)switch(Zt){case e:return Hn;case 34:case 39:e!==34&&e!==39&&t1(Zt);break;case 40:e===41&&t1(e);break;case 92:Jn();break}return Hn}function z8(e,t){for(;Jn()&&e+Zt!==57;)if(e+Zt===84&&Jr()===47)break;return"/*"+ql(t,Hn-1)+"*"+ad(e===47?e:Jn())}function N8(e){for(;!_l(Jr());)Jn();return ql(e,Hn)}function D8(e){return vy(Fc("",null,null,null,[""],e=yy(e),0,[0],e))}function Fc(e,t,n,o,s,a,u,c,p){for(var h=0,g=0,y=u,C=0,x=0,b=0,v=1,R=1,E=1,L=0,k="",P=s,M=a,j=o,_=k;R;)switch(b=L,L=Jn()){case 40:if(b!=108&&pn(_,y-1)==58){e1(_+=xt(Ac(L),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:_+=Ac(L);break;case 9:case 10:case 13:case 32:_+=A8(b);break;case 92:_+=F8($c()-1,7);continue;case 47:switch(Jr()){case 42:case 47:gc(B8(z8(Jn(),$c()),t,n),p);break;default:_+="/"}break;case 123*v:c[h++]=qr(_)*E;case 125*v:case 59:case 0:switch(L){case 0:case 125:R=0;case 59+g:E==-1&&(_=xt(_,/\f/g,"")),x>0&&qr(_)-y&&gc(x>32?Vm(_+";",o,n,y-1):Vm(xt(_," ","")+";",o,n,y-2),p);break;case 59:_+=";";default:if(gc(j=Bm(_,t,n,h,g,s,c,k,P=[],M=[],y),a),L===123)if(g===0)Fc(_,t,j,j,P,a,y,c,M);else switch(C===99&&pn(_,3)===110?100:C){case 100:case 108:case 109:case 115:Fc(e,j,j,o&&gc(Bm(e,j,j,0,0,s,c,k,s,P=[],y),M),s,M,y,c,o?P:M);break;default:Fc(_,j,j,j,[""],M,0,c,M)}}h=g=x=0,v=E=1,k=_="",y=u;break;case 58:y=1+qr(_),x=b;default:if(v<1){if(L==123)--v;else if(L==125&&v++==0&&$8()==125)continue}switch(_+=ad(L),L*v){case 38:E=g>0?1:(_+="\f",-1);break;case 44:c[h++]=(qr(_)-1)*E,E=1;break;case 64:Jr()===45&&(_+=Ac(Jn())),C=Jr(),g=y=qr(k=_+=N8($c())),L++;break;case 45:b===45&&qr(_)==2&&(v=0)}}return a}function Bm(e,t,n,o,s,a,u,c,p,h,g){for(var y=s-1,C=s===0?a:[""],x=q1(C),b=0,v=0,R=0;b0?C[E]+" "+L:xt(L,/&\f/g,C[E])))&&(p[R++]=k);return ud(e,t,n,s===0?G1:c,p,h,g)}function B8(e,t,n){return ud(e,t,n,py,ad(_8()),Ol(e,2,-2),0)}function Vm(e,t,n,o){return ud(e,t,n,K1,Ol(e,0,o),Ol(e,o+1,-1),o)}function Ds(e,t){for(var n="",o=q1(e),s=0;s6)switch(pn(e,t+1)){case 109:if(pn(e,t+4)!==45)break;case 102:return xt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+qc+(pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~e1(e,"stretch")?Cy(xt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pn(e,t+1)!==115)break;case 6444:switch(pn(e,qr(e)-3-(~e1(e,"!important")&&10))){case 107:return xt(e,":",":"+vt)+e;case 101:return xt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vt+(pn(e,14)===45?"inline-":"")+"box$3$1"+vt+"$2$3$1"+Sn+"$2box$3")+e}break;case 5936:switch(pn(e,t+11)){case 114:return vt+e+Sn+xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Sn+xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Sn+xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Sn+e+e}return e}var Y8=function(t,n,o,s){if(t.length>-1&&!t.return)switch(t.type){case K1:t.return=Cy(t.value,t.length);break;case hy:return Ds([nl(t,{value:xt(t.value,"@","@"+vt)})],s);case G1:if(t.length)return O8(t.props,function(a){switch(j8(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ds([nl(t,{props:[xt(a,/:(read-\w+)/,":"+qc+"$1")]})],s);case"::placeholder":return Ds([nl(t,{props:[xt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),nl(t,{props:[xt(a,/:(plac\w+)/,":"+qc+"$1")]}),nl(t,{props:[xt(a,/:(plac\w+)/,Sn+"input-$1")]})],s)}return""})}},X8=[Y8],Z8=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(v){var R=v.getAttribute("data-emotion");R.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var s=t.stylisPlugins||X8,a={},u,c=[];u=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var R=v.getAttribute("data-emotion").split(" "),E=1;E=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){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 ox={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},ix=/[A-Z]|^ms/g,sx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sy=function(t){return t.charCodeAt(1)===45},Km=function(t){return t!=null&&typeof t!="boolean"},Ip=xy(function(e){return Sy(e)?e:e.replace(ix,"-$&").toLowerCase()}),qm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(sx,function(o,s,a){return Qr={name:s,styles:a,next:Qr},s})}return ox[t]!==1&&!Sy(t)&&typeof n=="number"&&n!==0?n+"px":n};function $l(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Qr={name:s.name,styles:s.styles,next:Qr},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Qr={name:u.name,styles:u.styles,next:Qr},u=u.next;var c=a.styles+";";return c}return ax(e,t,n)}case"function":{if(e!==void 0){var p=Qr,h=n(e);return Qr=p,$l(e,t,h)}break}}var g=n;if(t==null)return g;var y=t[g];return y!==void 0?y:g}function ax(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s96?mx:yx},Jm=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},vx=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return Q1(n,o,s),Ry(function(){return Y1(n,o,s)}),null},xx=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var c=Jm(t,n,o),p=c||Zm(s),h=!p("as");return function(){var g=arguments,y=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&y.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{var C=g[0];y.push(C[0]);for(var x=g.length,b=1;bt(bx(s)?n:s):t;return d.jsx(px,{styles:o})}/** + * @mui/styled-engine v6.4.3 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Py(e,t){return r1(e,t)}function Sx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const e2=[];function t2(e){return e2[0]=e,Ql(e2)}var Mp={exports:{}},Et={};/** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n2;function wx(){if(n2)return Et;n2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),x=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var R=v.$$typeof;switch(R){case e:switch(v=v.type,v){case n:case s:case o:case p:case h:return v;default:switch(v=v&&v.$$typeof,v){case u:case c:case y:case g:return v;case a:return v;default:return R}}case t:return R}}}return Et.ContextConsumer=a,Et.ContextProvider=u,Et.Element=e,Et.ForwardRef=c,Et.Fragment=n,Et.Lazy=y,Et.Memo=g,Et.Portal=t,Et.Profiler=s,Et.StrictMode=o,Et.Suspense=p,Et.SuspenseList=h,Et.isContextConsumer=function(v){return b(v)===a},Et.isContextProvider=function(v){return b(v)===u},Et.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Et.isForwardRef=function(v){return b(v)===c},Et.isFragment=function(v){return b(v)===n},Et.isLazy=function(v){return b(v)===y},Et.isMemo=function(v){return b(v)===g},Et.isPortal=function(v){return b(v)===t},Et.isProfiler=function(v){return b(v)===s},Et.isStrictMode=function(v){return b(v)===o},Et.isSuspense=function(v){return b(v)===p},Et.isSuspenseList=function(v){return b(v)===h},Et.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===s||v===o||v===p||v===h||v===C||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===g||v.$$typeof===u||v.$$typeof===a||v.$$typeof===c||v.$$typeof===x||v.getModuleId!==void 0)},Et.typeOf=b,Et}var r2;function Rx(){return r2||(r2=1,Mp.exports=wx()),Mp.exports}var Iy=Rx();function Yr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function My(e){if(w.isValidElement(e)||Iy.isValidElementType(e)||!Yr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=My(e[n])}),t}function ln(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Yr(e)&&Yr(t)&&Object.keys(t).forEach(s=>{w.isValidElement(t[s])||Iy.isValidElementType(t[s])?o[s]=t[s]:Yr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Yr(e[s])?o[s]=ln(e[s],t[s],n):n.clone?o[s]=Yr(t[s])?My(t[s]):t[s]:o[s]=t[s]}),o}const kx=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Ex(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,a=kx(t),u=Object.keys(a);function c(C){return`@media (min-width:${typeof t[C]=="number"?t[C]:C}${n})`}function p(C){return`@media (max-width:${(typeof t[C]=="number"?t[C]:C)-o/100}${n})`}function h(C,x){const b=u.indexOf(x);return`@media (min-width:${typeof t[C]=="number"?t[C]:C}${n}) and (max-width:${(b!==-1&&typeof t[u[b]]=="number"?t[u[b]]:x)-o/100}${n})`}function g(C){return u.indexOf(C)+1o.startsWith("@container")).sort((o,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=o.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((o,s)=>{const a=t[s];return delete o[s],o[s]=a,o},{...t}):t}function Ix(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Mx(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,s]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(a)}function Lx(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const p=t(e.breakpoints.not(...c),u);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const o={},s=a=>(n(o,a),o);return n(s),{...e,containerQueries:s}}const Tx={borderRadius:4};function bl(e,t){return t?ln(e,t,{clone:!1}):e}const cd={xs:0,sm:600,md:900,lg:1200,xl:1536},o2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cd[e]}px)`},jx={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:cd[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Wn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||o2;return t.reduce((u,c,p)=>(u[a.up(a.keys[p])]=n(t[p]),u),{})}if(typeof t=="object"){const a=o.breakpoints||o2;return Object.keys(t).reduce((u,c)=>{if(Ix(a.keys,c)){const p=Mx(o.containerQueries?o:jx,c);p&&(u[p]=n(t[c],c))}else if(Object.keys(a.values||cd).includes(c)){const p=a.up(c);u[p]=n(t[c],c)}else{const p=c;u[p]=t[p]}return u},{})}return n(t)}function Ly(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const a=e.up(s);return o[a]={},o},{}))||{}}function Ty(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function Ox(e,...t){const n=Ly(e),o=[n,...t].reduce((s,a)=>ln(s,a),{});return Ty(Object.keys(n),o)}function _x(e,t){if(typeof e!="object")return{};const n={},o=Object.keys(t);return Array.isArray(e)?o.forEach((s,a)=>{a{e[s]!=null&&(n[s]=!0)}),n}function Qi({values:e,breakpoints:t,base:n}){const o=n||_x(e,t),s=Object.keys(o);if(s.length===0)return e;let a;return s.reduce((u,c,p)=>(Array.isArray(e)?(u[c]=e[p]!=null?e[p]:e[a],a=p):typeof e=="object"?(u[c]=e[c]!=null?e[c]:e[a],a=c):u[c]=e,u),{})}function ae(e){if(typeof e!="string")throw new Error(So(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ai(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function Qc(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=ai(e,n)||o,t&&(s=t(s,o,e)),s}function Yt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],p=u.theme,h=ai(p,o)||{};return Wn(u,c,y=>{let C=Qc(h,s,y);return y===C&&typeof y=="string"&&(C=Qc(h,s,`${t}${y==="default"?"":ae(y)}`,y)),n===!1?C:{[n]:C}})};return a.propTypes={},a.filterProps=[t],a}function $x(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ax={m:"margin",p:"padding"},Fx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},i2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zx=$x(e=>{if(e.length>2)if(i2[e])e=i2[e];else return[e];const[t,n]=e.split(""),o=Ax[t],s=Fx[n]||"";return Array.isArray(s)?s.map(a=>o+a):[o+s]}),J1=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...J1,...eh];function Zl(e,t,n,o){const s=ai(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a),c=s[u];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof s=="function"?s:()=>{}}function dd(e){return Zl(e,"spacing",8)}function Zi(e,t){return typeof t=="string"||t==null?t:e(t)}function Nx(e,t){return n=>e.reduce((o,s)=>(o[s]=Zi(t,n),o),{})}function Dx(e,t,n,o){if(!t.includes(n))return null;const s=zx(n),a=Nx(s,o),u=e[n];return Wn(e,u,a)}function jy(e,t){const n=dd(e.theme);return Object.keys(e).map(o=>Dx(e,t,o,n)).reduce(bl,{})}function Vt(e){return jy(e,J1)}Vt.propTypes={};Vt.filterProps=J1;function Ut(e){return jy(e,eh)}Ut.propTypes={};Ut.filterProps=eh;function Oy(e=8,t=dd({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" ");return n.mui=!0,n}function fd(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),n=o=>Object.keys(o).reduce((s,a)=>t[a]?bl(s,t[a](o)):s,{});return n.propTypes={},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function hr(e){return typeof e!="number"?e:`${e}px solid`}function Cr(e,t){return Yt({prop:e,themeKey:"borders",transform:t})}const Bx=Cr("border",hr),Vx=Cr("borderTop",hr),Ux=Cr("borderRight",hr),Hx=Cr("borderBottom",hr),Wx=Cr("borderLeft",hr),Gx=Cr("borderColor"),Kx=Cr("borderTopColor"),qx=Cr("borderRightColor"),Qx=Cr("borderBottomColor"),Yx=Cr("borderLeftColor"),Xx=Cr("outline",hr),Zx=Cr("outlineColor"),pd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Zl(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Zi(t,o)});return Wn(e,e.borderRadius,n)}return null};pd.propTypes={};pd.filterProps=["borderRadius"];fd(Bx,Vx,Ux,Hx,Wx,Gx,Kx,qx,Qx,Yx,pd,Xx,Zx);const hd=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Zl(e.theme,"spacing",8),n=o=>({gap:Zi(t,o)});return Wn(e,e.gap,n)}return null};hd.propTypes={};hd.filterProps=["gap"];const gd=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Zl(e.theme,"spacing",8),n=o=>({columnGap:Zi(t,o)});return Wn(e,e.columnGap,n)}return null};gd.propTypes={};gd.filterProps=["columnGap"];const md=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Zl(e.theme,"spacing",8),n=o=>({rowGap:Zi(t,o)});return Wn(e,e.rowGap,n)}return null};md.propTypes={};md.filterProps=["rowGap"];const Jx=Yt({prop:"gridColumn"}),e9=Yt({prop:"gridRow"}),t9=Yt({prop:"gridAutoFlow"}),n9=Yt({prop:"gridAutoColumns"}),r9=Yt({prop:"gridAutoRows"}),o9=Yt({prop:"gridTemplateColumns"}),i9=Yt({prop:"gridTemplateRows"}),s9=Yt({prop:"gridTemplateAreas"}),a9=Yt({prop:"gridArea"});fd(hd,gd,md,Jx,e9,t9,n9,r9,o9,i9,s9,a9);function Bs(e,t){return t==="grey"?t:e}const l9=Yt({prop:"color",themeKey:"palette",transform:Bs}),u9=Yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bs}),c9=Yt({prop:"backgroundColor",themeKey:"palette",transform:Bs});fd(l9,u9,c9);function Zn(e){return e<=1&&e!==0?`${e*100}%`:e}const d9=Yt({prop:"width",transform:Zn}),th=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,p;const o=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||cd[n];return o?((p=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Zn(n)}};return Wn(e,e.maxWidth,t)}return null};th.filterProps=["maxWidth"];const f9=Yt({prop:"minWidth",transform:Zn}),p9=Yt({prop:"height",transform:Zn}),h9=Yt({prop:"maxHeight",transform:Zn}),g9=Yt({prop:"minHeight",transform:Zn});Yt({prop:"size",cssProperty:"width",transform:Zn});Yt({prop:"size",cssProperty:"height",transform:Zn});const m9=Yt({prop:"boxSizing"});fd(d9,th,f9,p9,h9,g9,m9);const Jl={border:{themeKey:"borders",transform:hr},borderTop:{themeKey:"borders",transform:hr},borderRight:{themeKey:"borders",transform:hr},borderBottom:{themeKey:"borders",transform:hr},borderLeft:{themeKey:"borders",transform:hr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:hr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pd},color:{themeKey:"palette",transform:Bs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bs},backgroundColor:{themeKey:"palette",transform:Bs},p:{style:Ut},pt:{style:Ut},pr:{style:Ut},pb:{style:Ut},pl:{style:Ut},px:{style:Ut},py:{style:Ut},padding:{style:Ut},paddingTop:{style:Ut},paddingRight:{style:Ut},paddingBottom:{style:Ut},paddingLeft:{style:Ut},paddingX:{style:Ut},paddingY:{style:Ut},paddingInline:{style:Ut},paddingInlineStart:{style:Ut},paddingInlineEnd:{style:Ut},paddingBlock:{style:Ut},paddingBlockStart:{style:Ut},paddingBlockEnd:{style:Ut},m:{style:Vt},mt:{style:Vt},mr:{style:Vt},mb:{style:Vt},ml:{style:Vt},mx:{style:Vt},my:{style:Vt},margin:{style:Vt},marginTop:{style:Vt},marginRight:{style:Vt},marginBottom:{style:Vt},marginLeft:{style:Vt},marginX:{style:Vt},marginY:{style:Vt},marginInline:{style:Vt},marginInlineStart:{style:Vt},marginInlineEnd:{style:Vt},marginBlock:{style:Vt},marginBlockStart:{style:Vt},marginBlockEnd:{style:Vt},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:hd},rowGap:{style:md},columnGap:{style:gd},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zn},maxWidth:{style:th},minWidth:{transform:Zn},height:{transform:Zn},maxHeight:{transform:Zn},minHeight:{transform:Zn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function y9(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function v9(e,t){return typeof e=="function"?e(t):e}function x9(){function e(n,o,s,a){const u={[n]:o,theme:s},c=a[n];if(!c)return{[n]:o};const{cssProperty:p=n,themeKey:h,transform:g,style:y}=c;if(o==null)return null;if(h==="typography"&&o==="inherit")return{[n]:o};const C=ai(s,h)||{};return y?y(u):Wn(u,o,b=>{let v=Qc(C,g,b);return b===v&&typeof b=="string"&&(v=Qc(C,g,`${n}${b==="default"?"":ae(b)}`,b)),p===!1?v:{[p]:v}})}function t(n){const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Jl;function u(c){let p=c;if(typeof c=="function")p=c(s);else if(typeof c!="object")return c;if(!p)return null;const h=Ly(s.breakpoints),g=Object.keys(h);let y=h;return Object.keys(p).forEach(C=>{const x=v9(p[C],s);if(x!=null)if(typeof x=="object")if(a[C])y=bl(y,e(C,x,s,a));else{const b=Wn({theme:s},x,v=>({[C]:v}));y9(b,x)?y[C]=t({sx:x,theme:s}):y=bl(y,b)}else y=bl(y,e(C,x,s,a))}),Px(s,Ty(g,y))}return Array.isArray(o)?o.map(u):u(o)}return t}const ci=x9();ci.filterProps=["sx"];function C9(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function yd(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:a={},...u}=e,c=Ex(n),p=Oy(s);let h=ln({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:p,shape:{...Tx,...a}},u);return h=Lx(h),h.applyStyles=C9,h=t.reduce((g,y)=>ln(g,y),h),h.unstable_sxConfig={...Jl,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(y){return ci({sx:y,theme:this})},h}function b9(e){return Object.keys(e).length===0}function nh(e=null){const t=w.useContext(Yl);return!t||b9(t)?e:t}const S9=yd();function vd(e=S9){return nh(e)}function w9({styles:e,themeId:t,defaultTheme:n={}}){const o=vd(n),s=typeof e=="function"?e(t&&o[t]||o):e;return d.jsx(Ey,{styles:s})}const R9=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Jl;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function xd(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=R9(n);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...u)=>{const c=t(...u);return Yr(c)?{...o,...c}:o}:a={...o,...t},{...s,sx:a}}const s2=e=>e,k9=()=>{let e=s2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=s2}}},_y=k9();function $y(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;tc!=="theme"&&c!=="sx"&&c!=="as"})(ci);return w.forwardRef(function(p,h){const g=vd(n),{className:y,component:C="div",...x}=xd(p);return d.jsx(a,{as:C,ref:h,className:ve(y,s?s(o):o),theme:t&&g[t]||g,...x})})}const P9={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 Ue(e,t,n="Mui"){const o=P9[t];return o?`${n}-${o}`:`${_y.generate(e)}-${t}`}function Ne(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Ue(e,s,n)}),o}function Ay(e){const{variants:t,...n}=e,o={variants:t,style:t2(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=t2(s.style))}),o}const I9=yd();function Lp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function M9(e){return e?(t,n)=>n[e]:null}function L9(e,t,n){e.theme=j9(e.theme)?n:e.theme[t]||e.theme}function zc(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>zc(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:s,...a}=n;o=a}return Fy(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function Fy(e,t,n=[]){var s;let o;e:for(let a=0;a{Sx(c,M=>M.filter(j=>j!==ci));const{name:h,slot:g,skipVariantsResolver:y,skipSx:C,overridesResolver:x=M9(_9(g)),...b}=p,v=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,R=C||!1;let E=Lp;g==="Root"||g==="root"?E=o:g?E=s:O9(c)&&(E=void 0);const L=Py(c,{shouldForwardProp:E,label:T9(),...b}),k=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(_){return zc(_,M)};if(Yr(M)){const j=Ay(M);return j.variants?function(N){return zc(N,j)}:j.style}return M},P=(...M)=>{const j=[],_=M.map(k),N=[];if(j.push(a),h&&x&&N.push(function(O){var Q,ee;const q=(ee=(Q=O.theme.components)==null?void 0:Q[h])==null?void 0:ee.styleOverrides;if(!q)return null;const K={};for(const D in q)K[D]=zc(O,q[D]);return x(O,K)}),h&&!v&&N.push(function(O){var K,Q;const z=O.theme,q=(Q=(K=z==null?void 0:z.components)==null?void 0:K[h])==null?void 0:Q.variants;return q?Fy(O,q):null}),R||N.push(ci),Array.isArray(_[0])){const F=_.shift(),O=new Array(j.length).fill(""),z=new Array(N.length).fill("");let q;q=[...O,...F,...z],q.raw=[...O,...F.raw,...z],j.unshift(q)}const V=[...j,..._,...N],I=L(...V);return c.muiName&&(I.muiName=c.muiName),I};return L.withConfig&&(P.withConfig=L.withConfig),P}}function T9(e,t){return void 0}function j9(e){for(const t in e)return!1;return!0}function O9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _9(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const $9=zy();function Al(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],u=t[s];if(!u)n[s]=a||{};else if(!a)n[s]=u;else{n[s]={...u};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const p=c;n[s][p]=Al(a[p],u[p])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function Ny(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Al(t.components[n].defaultProps,o)}function A9({props:e,name:t,defaultTheme:n,themeId:o}){let s=vd(n);return o&&(s=s[o]||s),Ny({theme:s,name:t,props:e})}const er=typeof window<"u"?w.useLayoutEffect:w.useEffect;function F9(e,t,n,o,s){const[a,u]=w.useState(()=>s&&n?n(e).matches:o?o(e).matches:t);return er(()=>{if(!n)return;const c=n(e),p=()=>{u(c.matches)};return p(),c.addEventListener("change",p),()=>{c.removeEventListener("change",p)}},[e,n]),a}const z9={...Ll},Dy=z9.useSyncExternalStore;function N9(e,t,n,o,s){const a=w.useCallback(()=>t,[t]),u=w.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(o!==null){const{matches:g}=o(e);return()=>g}return a},[a,e,o,s,n]),[c,p]=w.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const g=n(e);return[()=>g.matches,y=>(g.addEventListener("change",y),()=>{g.removeEventListener("change",y)})]},[a,n,e]);return Dy(p,c,u)}function By(e={}){const{themeId:t}=e;return function(o,s={}){let a=nh();a&&t&&(a=a[t]||a);const u=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:p=u?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:g=!1}=Ny({name:"MuiUseMediaQuery",props:s,theme:a});let y=typeof o=="function"?o(a):o;return y=y.replace(/^@media( ?)/m,""),(Dy!==void 0?N9:F9)(y,c,p,h,g)}}By();function As(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function rh(e,t=0,n=1){return As(e,t,n)}function D9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function di(e){if(e.type)return e;if(e.charAt(0)==="#")return di(D9(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(So(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=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(s))throw new Error(So(10,s))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:s}}const B9=e=>{const t=di(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},gl=(e,t)=>{try{return B9(e)}catch{return e}};function Cd(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Vy(e){e=di(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,a=o*Math.min(s,1-s),u=(h,g=(h+n/30)%12)=>s-a*Math.max(Math.min(g-3,9-g,1),-1);let c="rgb";const p=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",p.push(t[3])),Cd({type:c,values:p})}function o1(e){e=di(e);let t=e.type==="hsl"||e.type==="hsla"?di(Vy(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function V9(e,t){const n=o1(e),o=o1(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function re(e,t){return e=di(e),t=rh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Cd(e)}function mc(e,t,n){try{return re(e,t)}catch{return e}}function wo(e,t){if(e=di(e),t=rh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Cd(e)}function It(e,t,n){try{return wo(e,t)}catch{return e}}function Ro(e,t){if(e=di(e),t=rh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Cd(e)}function Mt(e,t,n){try{return Ro(e,t)}catch{return e}}function U9(e,t=.15){return o1(e)>.5?wo(e,t):Ro(e,t)}function yc(e,t,n){try{return U9(e,t)}catch{return e}}function a2(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function Uy(e,t=166){let n;function o(...s){const a=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(a,t)}return o.clear=()=>{clearTimeout(n)},o}function Nc(e,t){var n,o,s;return w.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}function gn(e){return e&&e.ownerDocument||document}function ko(e){return gn(e).defaultView||window}function i1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let l2=0;function H9(e){const[t,n]=w.useState(e),o=e||t;return w.useEffect(()=>{t==null&&(l2+=1,n(`mui-${l2}`))},[t]),o}const W9={...Ll},u2=W9.useId;function eu(e){if(u2!==void 0){const t=u2();return e??t}return H9(e)}function ra({controlled:e,default:t,name:n,state:o="value"}){const{current:s}=w.useRef(e!==void 0),[a,u]=w.useState(t),c=s?e:a,p=w.useCallback(h=>{s||u(h)},[]);return[c,p]}function Or(e){const t=w.useRef(e);return er(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function Ft(...e){return w.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{i1(n,t)})},e)}const c2={};function Hy(e,t){const n=w.useRef(c2);return n.current===c2&&(n.current=e(t)),n}const G9=[];function K9(e){w.useEffect(e,G9)}class bd{constructor(){el(this,"currentId",null);el(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});el(this,"disposeEffect",()=>this.clear)}static create(){return new bd}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function $i(){const e=Hy(bd.create).current;return K9(e.disposeEffect),e}function fi(e){try{return e.matches(":focus-visible")}catch{}return!1}function Wy(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const q9={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function He(e,t,n=void 0){const o={};for(const s in e){const a=e[s];let u="",c=!0;for(let p=0;po.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function d2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Ky(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:a}=e;if(!t){const x=ve(n==null?void 0:n.className,a,s==null?void 0:s.className,o==null?void 0:o.className),b={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},v={...n,...s,...o};return x.length>0&&(v.className=x),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const u=Sl({...s,...o}),c=d2(o),p=d2(s),h=t(u),g=ve(h==null?void 0:h.className,n==null?void 0:n.className,a,s==null?void 0:s.className,o==null?void 0:o.className),y={...h==null?void 0:h.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},C={...h,...n,...p,...c};return g.length>0&&(C.className=g),Object.keys(y).length>0&&(C.style=y),{props:C,internalRef:h.ref}}function qy(e,t,n){return typeof e=="function"?e(t,n):e}function Ir(e){var y;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...a}=e,u=s?{}:qy(n,o),{props:c,internalRef:p}=Ky({...a,externalSlotProps:u}),h=Ft(p,u==null?void 0:u.ref,(y=e.additionalProps)==null?void 0:y.ref);return Gy(t,{...c,ref:h},o)}function ma(e){var t;return parseInt(w.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Qy=w.createContext(null);function oh(){return w.useContext(Qy)}const Y9=typeof Symbol=="function"&&Symbol.for,X9=Y9?Symbol.for("mui.nested"):"__THEME_NESTED__";function Z9(e,t){return typeof t=="function"?t(e):{...e,...t}}function J9(e){const{children:t,theme:n}=e,o=oh(),s=w.useMemo(()=>{const a=o===null?{...n}:Z9(o,n);return a!=null&&(a[X9]=o!==null),a},[n,o]);return d.jsx(Qy.Provider,{value:s,children:t})}const Yy=w.createContext();function e7({value:e,...t}){return d.jsx(Yy.Provider,{value:e??!0,...t})}const Sd=()=>w.useContext(Yy)??!1,Xy=w.createContext(void 0);function t7({value:e,children:t}){return d.jsx(Xy.Provider,{value:e,children:t})}function n7(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?Al(s.defaultProps,o):!s.styleOverrides&&!s.variants?Al(s,o):o}function r7({props:e,name:t}){const n=w.useContext(Xy);return n7({props:e,name:t,theme:{components:n}})}const f2={};function p2(e,t,n,o=!1){return w.useMemo(()=>{const s=e&&t[e]||t;if(typeof n=="function"){const a=n(s),u=e?{...t,[e]:a}:a;return o?()=>u:u}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function Zy(e){const{children:t,theme:n,themeId:o}=e,s=nh(f2),a=oh()||f2,u=p2(o,s,n),c=p2(o,a,n,!0),p=(o?u[o]:u).direction==="rtl";return d.jsx(J9,{theme:c,children:d.jsx(Yl.Provider,{value:u,children:d.jsx(e7,{value:p,children:d.jsx(t7,{value:o?u[o].components:u.components,children:t})})})})}const h2={theme:void 0};function o7(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(h2.theme=s.theme,a=Ay(e(h2)),t=a,n=s.theme),a}}const ih="mode",sh="color-scheme",i7="data-color-scheme";function s7(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:o="dark",modeStorageKey:s=ih,colorSchemeStorageKey:a=sh,attribute:u=i7,colorSchemeNode:c="document.documentElement",nonce:p}=e||{};let h="",g=u;if(u==="class"&&(g=".%s"),u==="data"&&(g="[data-%s]"),g.startsWith(".")){const C=g.substring(1);h+=`${c}.classList.remove('${C}'.replace('%s', light), '${C}'.replace('%s', dark)); + ${c}.classList.add('${C}'.replace('%s', colorScheme));`}const y=g.match(/\[([^\]]+)\]/);if(y){const[C,x]=y[1].split("=");x||(h+=`${c}.removeAttribute('${C}'.replace('%s', light)); + ${c}.removeAttribute('${C}'.replace('%s', dark));`),h+=` + ${c}.setAttribute('${C}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else h+=`${c}.setAttribute('${g}', colorScheme);`;return d.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${s}') || '${t}'; + const dark = localStorage.getItem('${a}-dark') || '${o}'; + const light = localStorage.getItem('${a}-light') || '${n}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${h} + } +} catch(e){}})();`}},"mui-color-scheme-init")}function g2(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Jy(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function a7(e){return Jy(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Tp(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function l7(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:s=[],modeStorageKey:a=ih,colorSchemeStorageKey:u=sh,storageWindow:c=typeof window>"u"?void 0:window,noSsr:p=!1}=e,h=s.join(","),g=s.length>1,[y,C]=w.useState(()=>{const P=Tp(a,t),M=Tp(`${u}-light`,n),j=Tp(`${u}-dark`,o);return{mode:P,systemMode:g2(P),lightColorScheme:M,darkColorScheme:j}}),[x,b]=w.useState(p||!g);w.useEffect(()=>{b(!0)},[]);const v=a7(y),R=w.useCallback(P=>{C(M=>{if(P===M.mode)return M;const j=P??t;try{localStorage.setItem(a,j)}catch{}return{...M,mode:j,systemMode:g2(j)}})},[a,t]),E=w.useCallback(P=>{P?typeof P=="string"?P&&!h.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):C(M=>{const j={...M};return Jy(M,_=>{try{localStorage.setItem(`${u}-${_}`,P)}catch{}_==="light"&&(j.lightColorScheme=P),_==="dark"&&(j.darkColorScheme=P)}),j}):C(M=>{const j={...M},_=P.light===null?n:P.light,N=P.dark===null?o:P.dark;if(_)if(!h.includes(_))console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`);else{j.lightColorScheme=_;try{localStorage.setItem(`${u}-light`,_)}catch{}}if(N)if(!h.includes(N))console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`);else{j.darkColorScheme=N;try{localStorage.setItem(`${u}-dark`,N)}catch{}}return j}):C(M=>{try{localStorage.setItem(`${u}-light`,n),localStorage.setItem(`${u}-dark`,o)}catch{}return{...M,lightColorScheme:n,darkColorScheme:o}})},[h,u,n,o]),L=w.useCallback(P=>{y.mode==="system"&&C(M=>{const j=P!=null&&P.matches?"dark":"light";return M.systemMode===j?M:{...M,systemMode:j}})},[y.mode]),k=w.useRef(L);return k.current=L,w.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const P=(...j)=>k.current(...j),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(P),P(M),()=>{M.removeListener(P)}},[g]),w.useEffect(()=>{if(c&&g){const P=M=>{const j=M.newValue;typeof M.key=="string"&&M.key.startsWith(u)&&(!j||h.match(j))&&(M.key.endsWith("light")&&E({light:j}),M.key.endsWith("dark")&&E({dark:j})),M.key===a&&(!j||["light","dark","system"].includes(j))&&R(j||t)};return c.addEventListener("storage",P),()=>{c.removeEventListener("storage",P)}}},[E,R,a,u,h,t,c,g]),{...y,mode:x?y.mode:void 0,systemMode:x?y.systemMode:void 0,colorScheme:x?v:void 0,setMode:R,setColorScheme:E}}const u7="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function c7(e){const{themeId:t,theme:n={},modeStorageKey:o=ih,colorSchemeStorageKey:s=sh,disableTransitionOnChange:a=!1,defaultColorScheme:u,resolveTheme:c}=e,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=w.createContext(void 0),g=()=>w.useContext(h)||p,y={},C={};function x(E){var Tt,yt,se,me;const{children:L,theme:k,modeStorageKey:P=o,colorSchemeStorageKey:M=s,disableTransitionOnChange:j=a,storageWindow:_=typeof window>"u"?void 0:window,documentNode:N=typeof document>"u"?void 0:document,colorSchemeNode:V=typeof document>"u"?void 0:document.documentElement,disableNestedContext:I=!1,disableStyleSheetGeneration:F=!1,defaultMode:O="system",noSsr:z}=E,q=w.useRef(!1),K=oh(),Q=w.useContext(h),ee=!!Q&&!I,D=w.useMemo(()=>k||(typeof n=="function"?n():n),[k]),G=D[t],te=G||D,{colorSchemes:A=y,components:X=C,cssVarPrefix:he}=te,fe=Object.keys(A).filter(ye=>!!A[ye]).join(","),pe=w.useMemo(()=>fe.split(","),[fe]),ie=typeof u=="string"?u:u.light,Ce=typeof u=="string"?u:u.dark,xe=A[ie]&&A[Ce]?O:((yt=(Tt=A[te.defaultColorScheme])==null?void 0:Tt.palette)==null?void 0:yt.mode)||((se=te.palette)==null?void 0:se.mode),{mode:we,setMode:Re,systemMode:De,lightColorScheme:Te,darkColorScheme:We,colorScheme:Fe,setColorScheme:tt}=l7({supportedColorSchemes:pe,defaultLightColorScheme:ie,defaultDarkColorScheme:Ce,modeStorageKey:P,colorSchemeStorageKey:M,defaultMode:xe,storageWindow:_,noSsr:z});let gt=we,ze=Fe;ee&&(gt=Q.mode,ze=Q.colorScheme);const nt=w.useMemo(()=>{var Se;const ye=ze||te.defaultColorScheme,Pe=((Se=te.generateThemeVars)==null?void 0:Se.call(te))||te.vars,$e={...te,components:X,colorSchemes:A,cssVarPrefix:he,vars:Pe};if(typeof $e.generateSpacing=="function"&&($e.spacing=$e.generateSpacing()),ye){const be=A[ye];be&&typeof be=="object"&&Object.keys(be).forEach(rt=>{be[rt]&&typeof be[rt]=="object"?$e[rt]={...$e[rt],...be[rt]}:$e[rt]=be[rt]})}return c?c($e):$e},[te,ze,X,A,he]),mt=te.colorSchemeSelector;er(()=>{if(ze&&V&&mt&&mt!=="media"){const ye=mt;let Pe=mt;if(ye==="class"&&(Pe=".%s"),ye==="data"&&(Pe="[data-%s]"),ye!=null&&ye.startsWith("data-")&&!ye.includes("%s")&&(Pe=`[${ye}="%s"]`),Pe.startsWith("."))V.classList.remove(...pe.map($e=>Pe.substring(1).replace("%s",$e))),V.classList.add(Pe.substring(1).replace("%s",ze));else{const $e=Pe.replace("%s",ze).match(/\[([^\]]+)\]/);if($e){const[Se,be]=$e[1].split("=");be||pe.forEach(rt=>{V.removeAttribute(Se.replace(ze,rt))}),V.setAttribute(Se,be?be.replace(/"|'/g,""):"")}else V.setAttribute(Pe,ze)}}},[ze,mt,V,pe]),w.useEffect(()=>{let ye;if(j&&q.current&&N){const Pe=N.createElement("style");Pe.appendChild(N.createTextNode(u7)),N.head.appendChild(Pe),window.getComputedStyle(N.body),ye=setTimeout(()=>{N.head.removeChild(Pe)},1)}return()=>{clearTimeout(ye)}},[ze,j,N]),w.useEffect(()=>(q.current=!0,()=>{q.current=!1}),[]);const ot=w.useMemo(()=>({allColorSchemes:pe,colorScheme:ze,darkColorScheme:We,lightColorScheme:Te,mode:gt,setColorScheme:tt,setMode:Re,systemMode:De}),[pe,ze,We,Te,gt,tt,Re,De,nt.colorSchemeSelector]);let Je=!0;(F||te.cssVariables===!1||ee&&(K==null?void 0:K.cssVarPrefix)===he)&&(Je=!1);const Ee=d.jsxs(w.Fragment,{children:[d.jsx(Zy,{themeId:G?t:void 0,theme:nt,children:L}),Je&&d.jsx(Ey,{styles:((me=nt.generateStyleSheets)==null?void 0:me.call(nt))||[]})]});return ee?Ee:d.jsx(h.Provider,{value:ot,children:Ee})}const b=typeof u=="string"?u:u.light,v=typeof u=="string"?u:u.dark;return{CssVarsProvider:x,useColorScheme:g,getInitColorSchemeScript:E=>s7({colorSchemeStorageKey:s,defaultLightColorScheme:b,defaultDarkColorScheme:v,modeStorageKey:o,...E})}}function d7(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const m2=(e,t,n,o=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=o.includes(a)?[]:{}),s=s[a])})},f7=(e,t,n)=>{function o(s,a=[],u=[]){Object.entries(s).forEach(([c,p])=>{(!n||n&&!n([...a,c]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?o(p,[...a,c],Array.isArray(p)?[...u,c]:u):t([...a,c],p,u))})}o(e)},p7=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function jp(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},a={},u={};return f7(e,(c,p,h)=>{if((typeof p=="string"||typeof p=="number")&&(!o||!o(c,p))){const g=`--${n?`${n}-`:""}${c.join("-")}`,y=p7(c,p);Object.assign(s,{[g]:y}),m2(a,c,`var(${g})`,h),m2(u,c,`var(${g}, ${y})`,h)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function h7(e,t={}){const{getSelector:n=R,disableCssColorScheme:o,colorSchemeSelector:s}=t,{colorSchemes:a={},components:u,defaultColorScheme:c="light",...p}=e,{vars:h,css:g,varsWithDefaults:y}=jp(p,t);let C=y;const x={},{[c]:b,...v}=a;if(Object.entries(v||{}).forEach(([k,P])=>{const{vars:M,css:j,varsWithDefaults:_}=jp(P,t);C=ln(C,_),x[k]={css:j,vars:M}}),b){const{css:k,vars:P,varsWithDefaults:M}=jp(b,t);C=ln(C,M),x[c]={css:k,vars:P}}function R(k,P){var j,_;let M=s;if(s==="class"&&(M=".%s"),s==="data"&&(M="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(M=`[${s}="%s"]`),k){if(M==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((_=(j=a[k])==null?void 0:j.palette)==null?void 0:_.mode)||k})`]:{":root":P}};if(M)return e.defaultColorScheme===k?`:root, ${M.replace("%s",String(k))}`:M.replace("%s",String(k))}return":root"}return{vars:C,generateThemeVars:()=>{let k={...h};return Object.entries(x).forEach(([,{vars:P}])=>{k=ln(k,P)}),k},generateStyleSheets:()=>{var N,V;const k=[],P=e.defaultColorScheme||"light";function M(I,F){Object.keys(F).length&&k.push(typeof I=="string"?{[I]:{...F}}:I)}M(n(void 0,{...g}),g);const{[P]:j,..._}=x;if(j){const{css:I}=j,F=(V=(N=a[P])==null?void 0:N.palette)==null?void 0:V.mode,O=!o&&F?{colorScheme:F,...I}:{...I};M(n(P,{...O}),O)}return Object.entries(_).forEach(([I,{css:F}])=>{var q,K;const O=(K=(q=a[I])==null?void 0:q.palette)==null?void 0:K.mode,z=!o&&O?{colorScheme:O,...F}:{...F};M(n(I,{...z}),z)}),k}}}function g7(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const m7=yd(),y7=$9("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function v7(e){return A9({props:e,name:"MuiStack",defaultTheme:m7})}function x7(e,t){const n=w.Children.toArray(e).filter(Boolean);return n.reduce((o,s,a)=>(o.push(s),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],b7=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Wn({theme:t},Qi({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o}))};if(e.spacing){const o=dd(t),s=Object.keys(t.breakpoints.values).reduce((p,h)=>((typeof e.spacing=="object"&&e.spacing[h]!=null||typeof e.direction=="object"&&e.direction[h]!=null)&&(p[h]=!0),p),{}),a=Qi({values:e.direction,base:s}),u=Qi({values:e.spacing,base:s});typeof a=="object"&&Object.keys(a).forEach((p,h,g)=>{if(!a[p]){const C=h>0?a[g[h-1]]:"column";a[p]=C}}),n=ln(n,Wn({theme:t},u,(p,h)=>e.useFlexGap?{gap:Zi(o,p)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${C7(h?a[h]:e.direction)}`]:Zi(o,p)}}))}return n=Ox(t.breakpoints,n),n};function S7(e={}){const{createStyledComponent:t=y7,useThemeProps:n=v7,componentName:o="MuiStack"}=e,s=()=>He({root:["root"]},p=>Ue(o,p),{}),a=t(b7);return w.forwardRef(function(p,h){const g=n(p),y=xd(g),{component:C="div",direction:x="column",spacing:b=0,divider:v,children:R,className:E,useFlexGap:L=!1,...k}=y,P={direction:x,spacing:b,useFlexGap:L},M=s();return d.jsx(a,{as:C,ownerState:P,ref:h,className:ve(M.root,E),...k,children:v?x7(R,v):R})})}const Fl={black:"#000",white:"#fff"},w7={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"},Ps={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Is={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},rl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ms={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ls={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ts={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function e4(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fl.white,default:Fl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const R7=e4();function t4(){return{text:{primary:Fl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const y2=t4();function v2(e,t,n,o){const s=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ro(e.main,s):t==="dark"&&(e.dark=wo(e.main,a)))}function k7(e="light"){return e==="dark"?{main:Ms[200],light:Ms[50],dark:Ms[400]}:{main:Ms[700],light:Ms[400],dark:Ms[800]}}function E7(e="light"){return e==="dark"?{main:Ps[200],light:Ps[50],dark:Ps[400]}:{main:Ps[500],light:Ps[300],dark:Ps[700]}}function P7(e="light"){return e==="dark"?{main:Is[500],light:Is[300],dark:Is[700]}:{main:Is[700],light:Is[400],dark:Is[800]}}function I7(e="light"){return e==="dark"?{main:Ls[400],light:Ls[300],dark:Ls[700]}:{main:Ls[700],light:Ls[500],dark:Ls[900]}}function M7(e="light"){return e==="dark"?{main:Ts[400],light:Ts[300],dark:Ts[700]}:{main:Ts[800],light:Ts[500],dark:Ts[900]}}function L7(e="light"){return e==="dark"?{main:rl[400],light:rl[300],dark:rl[700]}:{main:"#ed6c02",light:rl[500],dark:rl[900]}}function ah(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...s}=e,a=e.primary||k7(t),u=e.secondary||E7(t),c=e.error||P7(t),p=e.info||I7(t),h=e.success||M7(t),g=e.warning||L7(t);function y(v){return V9(v,y2.text.primary)>=n?y2.text.primary:R7.text.primary}const C=({color:v,name:R,mainShade:E=500,lightShade:L=300,darkShade:k=700})=>{if(v={...v},!v.main&&v[E]&&(v.main=v[E]),!v.hasOwnProperty("main"))throw new Error(So(11,R?` (${R})`:"",E));if(typeof v.main!="string")throw new Error(So(12,R?` (${R})`:"",JSON.stringify(v.main)));return v2(v,"light",L,o),v2(v,"dark",k,o),v.contrastText||(v.contrastText=y(v.main)),v};let x;return t==="light"?x=e4():t==="dark"&&(x=t4()),ln({common:{...Fl},mode:t,primary:C({color:a,name:"primary"}),secondary:C({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:c,name:"error"}),warning:C({color:g,name:"warning"}),info:C({color:p,name:"info"}),success:C({color:h,name:"success"}),grey:w7,contrastThreshold:n,getContrastText:y,augmentColor:C,tonalOffset:o,...x},s)}function T7(e){const t={};return Object.entries(e).forEach(o=>{const[s,a]=o;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function j7(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function O7(e){return Math.round(e*1e5)/1e5}const x2={textTransform:"uppercase"},C2='"Roboto", "Helvetica", "Arial", sans-serif';function n4(e,t){const{fontFamily:n=C2,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:p=16,allVariants:h,pxToRem:g,...y}=typeof t=="function"?t(e):t,C=o/14,x=g||(R=>`${R/p*C}rem`),b=(R,E,L,k,P)=>({fontFamily:n,fontWeight:R,fontSize:x(E),lineHeight:L,...n===C2?{letterSpacing:`${O7(k/E)}em`}:{},...P,...h}),v={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(u,14,1.75,.4,x2),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,x2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:p,pxToRem:x,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...v},y,{clone:!1})}const _7=.2,$7=.14,A7=.12;function $t(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${$7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${A7})`].join(",")}const F7=["none",$t(0,2,1,-1,0,1,1,0,0,1,3,0),$t(0,3,1,-2,0,2,2,0,0,1,5,0),$t(0,3,3,-2,0,3,4,0,0,1,8,0),$t(0,2,4,-1,0,4,5,0,0,1,10,0),$t(0,3,5,-1,0,5,8,0,0,1,14,0),$t(0,3,5,-1,0,6,10,0,0,1,18,0),$t(0,4,5,-2,0,7,10,1,0,2,16,1),$t(0,5,5,-3,0,8,10,1,0,3,14,2),$t(0,5,6,-3,0,9,12,1,0,3,16,2),$t(0,6,6,-3,0,10,14,1,0,4,18,3),$t(0,6,7,-4,0,11,15,1,0,4,20,3),$t(0,7,8,-4,0,12,17,2,0,5,22,4),$t(0,7,8,-4,0,13,19,2,0,5,24,4),$t(0,7,9,-4,0,14,21,2,0,5,26,4),$t(0,8,9,-5,0,15,22,2,0,6,28,5),$t(0,8,10,-5,0,16,24,2,0,6,30,5),$t(0,8,11,-5,0,17,26,2,0,6,32,5),$t(0,9,11,-5,0,18,28,2,0,7,34,6),$t(0,9,12,-6,0,19,29,2,0,7,36,6),$t(0,10,13,-6,0,20,31,3,0,8,38,7),$t(0,10,13,-6,0,21,33,3,0,8,40,7),$t(0,10,14,-6,0,22,35,3,0,8,42,7),$t(0,11,14,-7,0,23,36,3,0,9,44,8),$t(0,11,15,-7,0,24,38,3,0,9,46,8)],z7={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},r4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b2(e){return`${Math.round(e)}ms`}function N7(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function D7(e){const t={...z7,...e.easing},n={...r4,...e.duration};return{getAutoHeightDuration:N7,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:p=0,...h}=a;return(Array.isArray(s)?s:[s]).map(g=>`${g} ${typeof u=="string"?u:b2(u)} ${c} ${typeof p=="string"?p:b2(p)}`).join(",")},...e,easing:t,duration:n}}const B7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function V7(e){return Yr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function o4(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let a=0;aln(x,b),C),C.unstable_sxConfig={...Jl,...h==null?void 0:h.unstable_sxConfig},C.unstable_sx=function(b){return ci({sx:b,theme:this})},C.toRuntimeSource=o4,C}function a1(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const U7=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=a1(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function i4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function s4(e){return e==="dark"?U7:[]}function H7(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...s}=e,a=ah(t);return{palette:a,opacity:{...i4(a.mode),...n},overlays:o||s4(a.mode),...s}}function W7(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const G7=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],K7=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return G7(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:u}}:a?{[a.replace("%s",t)]:u,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...u}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function q7(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function oe(e,t,n){!e[t]&&n&&(e[t]=n)}function ml(e){return typeof e!="string"||!e.startsWith("hsl")?e:Vy(e)}function ho(e,t){`${t}Channel`in e||(e[`${t}Channel`]=gl(ml(e[t])))}function Q7(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Vr=e=>{try{return e()}catch{}},Y7=(e="mui")=>d7(e);function Op(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=H7({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...u}=s1({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...i4(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||s4(s)},u}function X7(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:u=W7,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...h}=e,g=Object.keys(n)[0],y=o||(n.light&&g!=="light"?"light":g),C=Y7(a),{[y]:x,light:b,dark:v,...R}=n,E={...R};let L=x;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(L=!0),!L)throw new Error(So(21,y));const k=Op(E,L,h,y);b&&!E.light&&Op(E,b,void 0,"light"),v&&!E.dark&&Op(E,v,void 0,"dark");let P={defaultColorScheme:y,...k,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:p,getCssVar:C,colorSchemes:E,font:{...T7(k.typography),...k.font},spacing:Q7(h.spacing)};Object.keys(P.colorSchemes).forEach(V=>{const I=P.colorSchemes[V].palette,F=O=>{const z=O.split("-"),q=z[1],K=z[2];return C(O,I[q][K])};if(I.mode==="light"&&(oe(I.common,"background","#fff"),oe(I.common,"onBackground","#000")),I.mode==="dark"&&(oe(I.common,"background","#000"),oe(I.common,"onBackground","#fff")),q7(I,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),I.mode==="light"){oe(I.Alert,"errorColor",It(I.error.light,.6)),oe(I.Alert,"infoColor",It(I.info.light,.6)),oe(I.Alert,"successColor",It(I.success.light,.6)),oe(I.Alert,"warningColor",It(I.warning.light,.6)),oe(I.Alert,"errorFilledBg",F("palette-error-main")),oe(I.Alert,"infoFilledBg",F("palette-info-main")),oe(I.Alert,"successFilledBg",F("palette-success-main")),oe(I.Alert,"warningFilledBg",F("palette-warning-main")),oe(I.Alert,"errorFilledColor",Vr(()=>I.getContrastText(I.error.main))),oe(I.Alert,"infoFilledColor",Vr(()=>I.getContrastText(I.info.main))),oe(I.Alert,"successFilledColor",Vr(()=>I.getContrastText(I.success.main))),oe(I.Alert,"warningFilledColor",Vr(()=>I.getContrastText(I.warning.main))),oe(I.Alert,"errorStandardBg",Mt(I.error.light,.9)),oe(I.Alert,"infoStandardBg",Mt(I.info.light,.9)),oe(I.Alert,"successStandardBg",Mt(I.success.light,.9)),oe(I.Alert,"warningStandardBg",Mt(I.warning.light,.9)),oe(I.Alert,"errorIconColor",F("palette-error-main")),oe(I.Alert,"infoIconColor",F("palette-info-main")),oe(I.Alert,"successIconColor",F("palette-success-main")),oe(I.Alert,"warningIconColor",F("palette-warning-main")),oe(I.AppBar,"defaultBg",F("palette-grey-100")),oe(I.Avatar,"defaultBg",F("palette-grey-400")),oe(I.Button,"inheritContainedBg",F("palette-grey-300")),oe(I.Button,"inheritContainedHoverBg",F("palette-grey-A100")),oe(I.Chip,"defaultBorder",F("palette-grey-400")),oe(I.Chip,"defaultAvatarColor",F("palette-grey-700")),oe(I.Chip,"defaultIconColor",F("palette-grey-700")),oe(I.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(I.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(I.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(I.LinearProgress,"primaryBg",Mt(I.primary.main,.62)),oe(I.LinearProgress,"secondaryBg",Mt(I.secondary.main,.62)),oe(I.LinearProgress,"errorBg",Mt(I.error.main,.62)),oe(I.LinearProgress,"infoBg",Mt(I.info.main,.62)),oe(I.LinearProgress,"successBg",Mt(I.success.main,.62)),oe(I.LinearProgress,"warningBg",Mt(I.warning.main,.62)),oe(I.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),oe(I.Slider,"primaryTrack",Mt(I.primary.main,.62)),oe(I.Slider,"secondaryTrack",Mt(I.secondary.main,.62)),oe(I.Slider,"errorTrack",Mt(I.error.main,.62)),oe(I.Slider,"infoTrack",Mt(I.info.main,.62)),oe(I.Slider,"successTrack",Mt(I.success.main,.62)),oe(I.Slider,"warningTrack",Mt(I.warning.main,.62));const O=yc(I.background.default,.8);oe(I.SnackbarContent,"bg",O),oe(I.SnackbarContent,"color",Vr(()=>I.getContrastText(O))),oe(I.SpeedDialAction,"fabHoverBg",yc(I.background.paper,.15)),oe(I.StepConnector,"border",F("palette-grey-400")),oe(I.StepContent,"border",F("palette-grey-400")),oe(I.Switch,"defaultColor",F("palette-common-white")),oe(I.Switch,"defaultDisabledColor",F("palette-grey-100")),oe(I.Switch,"primaryDisabledColor",Mt(I.primary.main,.62)),oe(I.Switch,"secondaryDisabledColor",Mt(I.secondary.main,.62)),oe(I.Switch,"errorDisabledColor",Mt(I.error.main,.62)),oe(I.Switch,"infoDisabledColor",Mt(I.info.main,.62)),oe(I.Switch,"successDisabledColor",Mt(I.success.main,.62)),oe(I.Switch,"warningDisabledColor",Mt(I.warning.main,.62)),oe(I.TableCell,"border",Mt(mc(I.divider,1),.88)),oe(I.Tooltip,"bg",mc(I.grey[700],.92))}if(I.mode==="dark"){oe(I.Alert,"errorColor",Mt(I.error.light,.6)),oe(I.Alert,"infoColor",Mt(I.info.light,.6)),oe(I.Alert,"successColor",Mt(I.success.light,.6)),oe(I.Alert,"warningColor",Mt(I.warning.light,.6)),oe(I.Alert,"errorFilledBg",F("palette-error-dark")),oe(I.Alert,"infoFilledBg",F("palette-info-dark")),oe(I.Alert,"successFilledBg",F("palette-success-dark")),oe(I.Alert,"warningFilledBg",F("palette-warning-dark")),oe(I.Alert,"errorFilledColor",Vr(()=>I.getContrastText(I.error.dark))),oe(I.Alert,"infoFilledColor",Vr(()=>I.getContrastText(I.info.dark))),oe(I.Alert,"successFilledColor",Vr(()=>I.getContrastText(I.success.dark))),oe(I.Alert,"warningFilledColor",Vr(()=>I.getContrastText(I.warning.dark))),oe(I.Alert,"errorStandardBg",It(I.error.light,.9)),oe(I.Alert,"infoStandardBg",It(I.info.light,.9)),oe(I.Alert,"successStandardBg",It(I.success.light,.9)),oe(I.Alert,"warningStandardBg",It(I.warning.light,.9)),oe(I.Alert,"errorIconColor",F("palette-error-main")),oe(I.Alert,"infoIconColor",F("palette-info-main")),oe(I.Alert,"successIconColor",F("palette-success-main")),oe(I.Alert,"warningIconColor",F("palette-warning-main")),oe(I.AppBar,"defaultBg",F("palette-grey-900")),oe(I.AppBar,"darkBg",F("palette-background-paper")),oe(I.AppBar,"darkColor",F("palette-text-primary")),oe(I.Avatar,"defaultBg",F("palette-grey-600")),oe(I.Button,"inheritContainedBg",F("palette-grey-800")),oe(I.Button,"inheritContainedHoverBg",F("palette-grey-700")),oe(I.Chip,"defaultBorder",F("palette-grey-700")),oe(I.Chip,"defaultAvatarColor",F("palette-grey-300")),oe(I.Chip,"defaultIconColor",F("palette-grey-300")),oe(I.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(I.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(I.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(I.LinearProgress,"primaryBg",It(I.primary.main,.5)),oe(I.LinearProgress,"secondaryBg",It(I.secondary.main,.5)),oe(I.LinearProgress,"errorBg",It(I.error.main,.5)),oe(I.LinearProgress,"infoBg",It(I.info.main,.5)),oe(I.LinearProgress,"successBg",It(I.success.main,.5)),oe(I.LinearProgress,"warningBg",It(I.warning.main,.5)),oe(I.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),oe(I.Slider,"primaryTrack",It(I.primary.main,.5)),oe(I.Slider,"secondaryTrack",It(I.secondary.main,.5)),oe(I.Slider,"errorTrack",It(I.error.main,.5)),oe(I.Slider,"infoTrack",It(I.info.main,.5)),oe(I.Slider,"successTrack",It(I.success.main,.5)),oe(I.Slider,"warningTrack",It(I.warning.main,.5));const O=yc(I.background.default,.98);oe(I.SnackbarContent,"bg",O),oe(I.SnackbarContent,"color",Vr(()=>I.getContrastText(O))),oe(I.SpeedDialAction,"fabHoverBg",yc(I.background.paper,.15)),oe(I.StepConnector,"border",F("palette-grey-600")),oe(I.StepContent,"border",F("palette-grey-600")),oe(I.Switch,"defaultColor",F("palette-grey-300")),oe(I.Switch,"defaultDisabledColor",F("palette-grey-600")),oe(I.Switch,"primaryDisabledColor",It(I.primary.main,.55)),oe(I.Switch,"secondaryDisabledColor",It(I.secondary.main,.55)),oe(I.Switch,"errorDisabledColor",It(I.error.main,.55)),oe(I.Switch,"infoDisabledColor",It(I.info.main,.55)),oe(I.Switch,"successDisabledColor",It(I.success.main,.55)),oe(I.Switch,"warningDisabledColor",It(I.warning.main,.55)),oe(I.TableCell,"border",It(mc(I.divider,1),.68)),oe(I.Tooltip,"bg",mc(I.grey[700],.92))}ho(I.background,"default"),ho(I.background,"paper"),ho(I.common,"background"),ho(I.common,"onBackground"),ho(I,"divider"),Object.keys(I).forEach(O=>{const z=I[O];O!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&oe(I[O],"mainChannel",gl(ml(z.main))),z.light&&oe(I[O],"lightChannel",gl(ml(z.light))),z.dark&&oe(I[O],"darkChannel",gl(ml(z.dark))),z.contrastText&&oe(I[O],"contrastTextChannel",gl(ml(z.contrastText))),O==="text"&&(ho(I[O],"primary"),ho(I[O],"secondary")),O==="action"&&(z.active&&ho(I[O],"active"),z.selected&&ho(I[O],"selected")))})}),P=t.reduce((V,I)=>ln(V,I),P);const M={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:u,getSelector:K7(P)},{vars:j,generateThemeVars:_,generateStyleSheets:N}=h7(P,M);return P.vars=j,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([V,I])=>{P[V]=I}),P.generateThemeVars=_,P.generateStyleSheets=N,P.generateSpacing=function(){return Oy(h.spacing,dd(this))},P.getColorSchemeSelector=g7(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=u,P.unstable_sxConfig={...Jl,...h==null?void 0:h.unstable_sxConfig},P.unstable_sx=function(I){return ci({sx:I,theme:this})},P.toRuntimeSource=o4,P}function S2(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ah({...n===!0?{}:n.palette,mode:t})})}function wd(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",p=s==null?void 0:s[c],h={...s,...n?{[c]:{...typeof p!="boolean"&&p,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return s1(e,...t);let g=n;"palette"in e||h[c]&&(h[c]!==!0?g=h[c].palette:c==="dark"&&(g={mode:"dark"}));const y=s1({...e,palette:g},...t);return y.defaultColorScheme=c,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},S2(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},S2(y,"light",h.light)),y}return!n&&!("light"in h)&&c==="light"&&(h.light=!0),X7({...u,colorSchemes:h,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}function Z7(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function J7(e){return parseFloat(e)}const lh=wd();function Gn(){const e=vd(lh);return e[jr]||e}function Rd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const rr=e=>Rd(e)&&e!=="classes",le=zy({themeId:jr,defaultTheme:lh,rootShouldForwardProp:rr});function w2({theme:e,...t}){const n=jr in e?e[jr]:void 0;return d.jsx(Zy,{...t,themeId:n?jr:void 0,theme:n||e})}const vc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:eC}=c7({themeId:jr,theme:()=>wd({cssVariables:!0}),colorSchemeStorageKey:vc.colorSchemeStorageKey,modeStorageKey:vc.modeStorageKey,defaultColorScheme:{light:vc.defaultLightColorScheme,dark:vc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:n4(e.palette,e.typography)};return t.unstable_sx=function(o){return ci({sx:o,theme:this})},t}}),tC=eC;function nC({theme:e,...t}){return typeof e=="function"?d.jsx(w2,{theme:e,...t}):"colorSchemes"in(jr in e?e[jr]:e)?d.jsx(tC,{theme:e,...t}):d.jsx(w2,{theme:e,...t})}function rC(e){return d.jsx(w9,{...e,defaultTheme:lh,themeId:jr})}function uh(e){return function(n){return d.jsx(rC,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function oC(){return xd}const Ae=o7;function Ke(e){return r7(e)}function iC(e){return Ue("MuiSvgIcon",e)}Ne("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sC=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${ae(t)}`,`fontSize${ae(n)}`]};return He(s,iC,o)},aC=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ae(n.color)}`],t[`fontSize${ae(n.fontSize)}`]]}})(Ae(({theme:e})=>{var t,n,o,s,a,u,c,p,h,g,y,C,x,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:v=>!v.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:p.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,v])=>v&&v.main).map(([v])=>{var R,E;return{props:{color:v},style:{color:(E=(R=(e.vars??e).palette)==null?void 0:R[v])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(C=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:C.active}},{props:{color:"disabled"},style:{color:(b=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l1=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:p="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:y,viewBox:C="0 0 24 24",...x}=o,b=w.isValidElement(s)&&s.type==="svg",v={...o,color:u,component:c,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:C,hasSvgAsChild:b},R={};g||(R.viewBox=C);const E=sC(v);return d.jsxs(aC,{as:c,className:ve(E.root,a),focusable:"false",color:h,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:n,...R,...x,...b&&s.props,ownerState:v,children:[b?s.props.children:s,y?d.jsx("title",{children:y}):null]})});l1.muiName="SvgIcon";function Ze(e,t){function n(o,s){return d.jsx(l1,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return n.muiName=l1.muiName,w.memo(w.forwardRef(n))}function a4(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function u1(e,t){return u1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},u1(e,t)}function l4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u1(e,t)}const R2={disabled:!1},Yc=kt.createContext(null);var lC=function(t){return t.scrollTop},yl="unmounted",Oi="exited",_i="entering",Fs="entered",c1="exiting",$r=function(e){l4(t,e);function t(o,s){var a;a=e.call(this,o,s)||this;var u=s,c=u&&!u.isMounting?o.enter:o.appear,p;return a.appearStatus=null,o.in?c?(p=Oi,a.appearStatus=_i):p=Fs:o.unmountOnExit||o.mountOnEnter?p=yl:p=Oi,a.state={status:p},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var u=s.in;return u&&a.status===yl?{status:Oi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var u=this.state.status;this.props.in?u!==_i&&u!==Fs&&(a=_i):(u===_i||u===Fs)&&(a=c1)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,u,c;return a=u=c=s,s!=null&&typeof s!="number"&&(a=s.exit,u=s.enter,c=s.appear!==void 0?s.appear:u),{exit:a,enter:u,appear:c}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===_i){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:hc.findDOMNode(this);u&&lC(u)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oi&&this.setState({status:yl})},n.performEnter=function(s){var a=this,u=this.props.enter,c=this.context?this.context.isMounting:s,p=this.props.nodeRef?[c]:[hc.findDOMNode(this),c],h=p[0],g=p[1],y=this.getTimeouts(),C=c?y.appear:y.enter;if(!s&&!u||R2.disabled){this.safeSetState({status:Fs},function(){a.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:_i},function(){a.props.onEntering(h,g),a.onTransitionEnd(C,function(){a.safeSetState({status:Fs},function(){a.props.onEntered(h,g)})})})},n.performExit=function(){var s=this,a=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:hc.findDOMNode(this);if(!a||R2.disabled){this.safeSetState({status:Oi},function(){s.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:c1},function(){s.props.onExiting(c),s.onTransitionEnd(u.exit,function(){s.safeSetState({status:Oi},function(){s.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,a.nextCallback=null,s(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:hc.findDOMNode(this),c=s==null&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],h=p[0],g=p[1];this.props.addEndListener(h,g)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===yl)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var c=a4(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kt.createElement(Yc.Provider,{value:null},typeof u=="function"?u(s,c):kt.cloneElement(kt.Children.only(u),c))},t}(kt.Component);$r.contextType=Yc;$r.propTypes={};function js(){}$r.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:js,onEntering:js,onEntered:js,onExit:js,onExiting:js,onExited:js};$r.UNMOUNTED=yl;$r.EXITED=Oi;$r.ENTERING=_i;$r.ENTERED=Fs;$r.EXITING=c1;function uC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ch(e,t){var n=function(a){return t&&w.isValidElement(a)?t(a):a},o=Object.create(null);return e&&w.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function cC(e,t){e=e||{},t=t||{};function n(g){return g in t?t[g]:e[g]}var o=Object.create(null),s=[];for(var a in e)a in t?s.length&&(o[a]=s,s=[]):s.push(a);var u,c={};for(var p in t){if(o[p])for(u=0;ue.scrollTop;function oa(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function gC(e){return Ue("MuiCollapse",e)}Ne("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const mC=e=>{const{orientation:t,classes:n}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return He(o,gC,n)},yC=le("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ae(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),vC=le("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xC=le("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),zl=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCollapse"}),{addEndListener:s,children:a,className:u,collapsedSize:c="0px",component:p,easing:h,in:g,onEnter:y,onEntered:C,onEntering:x,onExit:b,onExited:v,onExiting:R,orientation:E="vertical",style:L,timeout:k=r4.standard,TransitionComponent:P=$r,...M}=o,j={...o,orientation:E,collapsedSize:c},_=mC(j),N=Gn(),V=$i(),I=w.useRef(null),F=w.useRef(),O=typeof c=="number"?`${c}px`:c,z=E==="horizontal",q=z?"width":"height",K=w.useRef(null),Q=Ft(n,K),ee=ie=>Ce=>{if(ie){const xe=K.current;Ce===void 0?ie(xe):ie(xe,Ce)}},D=()=>I.current?I.current[z?"clientWidth":"clientHeight"]:0,G=ee((ie,Ce)=>{I.current&&z&&(I.current.style.position="absolute"),ie.style[q]=O,y&&y(ie,Ce)}),te=ee((ie,Ce)=>{const xe=D();I.current&&z&&(I.current.style.position="");const{duration:we,easing:Re}=oa({style:L,timeout:k,easing:h},{mode:"enter"});if(k==="auto"){const De=N.transitions.getAutoHeightDuration(xe);ie.style.transitionDuration=`${De}ms`,F.current=De}else ie.style.transitionDuration=typeof we=="string"?we:`${we}ms`;ie.style[q]=`${xe}px`,ie.style.transitionTimingFunction=Re,x&&x(ie,Ce)}),A=ee((ie,Ce)=>{ie.style[q]="auto",C&&C(ie,Ce)}),X=ee(ie=>{ie.style[q]=`${D()}px`,b&&b(ie)}),he=ee(v),fe=ee(ie=>{const Ce=D(),{duration:xe,easing:we}=oa({style:L,timeout:k,easing:h},{mode:"exit"});if(k==="auto"){const Re=N.transitions.getAutoHeightDuration(Ce);ie.style.transitionDuration=`${Re}ms`,F.current=Re}else ie.style.transitionDuration=typeof xe=="string"?xe:`${xe}ms`;ie.style[q]=O,ie.style.transitionTimingFunction=we,R&&R(ie)}),pe=ie=>{k==="auto"&&V.start(F.current||0,ie),s&&s(K.current,ie)};return d.jsx(P,{in:g,onEnter:G,onEntered:A,onEntering:te,onExit:X,onExited:he,onExiting:fe,addEndListener:pe,nodeRef:K,timeout:k==="auto"?null:k,...M,children:(ie,{ownerState:Ce,...xe})=>d.jsx(yC,{as:p,className:ve(_.root,u,{entered:_.entered,exited:!g&&O==="0px"&&_.hidden}[ie]),style:{[z?"minWidth":"minHeight"]:O,...L},ref:Q,ownerState:{...j,state:ie},...xe,children:d.jsx(vC,{ownerState:{...j,state:ie},className:_.wrapper,ref:I,children:d.jsx(xC,{ownerState:{...j,state:ie},className:_.wrapperInner,children:a})})})})});zl&&(zl.muiSupportAuto=!0);function CC(e){return Ue("MuiPaper",e)}Ne("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"]);const bC=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,a={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return He(a,CC,s)},SC=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ae(({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)"}}]}))),mn=w.forwardRef(function(t,n){var x;const o=Ke({props:t,name:"MuiPaper"}),s=Gn(),{className:a,component:u="div",elevation:c=1,square:p=!1,variant:h="elevation",...g}=o,y={...o,component:u,elevation:c,square:p,variant:h},C=bC(y);return d.jsx(SC,{as:u,ownerState:y,className:ve(C.root,a),ref:n,...g,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[c],...s.vars&&{"--Paper-overlay":(x=s.vars.overlays)==null?void 0:x[c]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${re("#fff",a1(c))}, ${re("#fff",a1(c))})`}},...g.style}})}),c4=w.createContext({});function At(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:a,internalForwardedProps:u,shouldForwardComponentProp:c=!1,...p}=t,{component:h,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...C}=a,x=g[e]||o,b=qy(y[e],s),{props:{component:v,...R},internalRef:E}=Ky({className:n,...p,externalForwardedProps:e==="root"?C:void 0,externalSlotProps:b}),L=Ft(E,b==null?void 0:b.ref,t.ref),k=e==="root"?v||h:v,P=Gy(x,{...e==="root"&&!h&&!g[e]&&u,...e!=="root"&&!g[e]&&u,...R,...k&&!c&&{as:k},...k&&c&&{component:k},ref:L},s);return[x,P]}function wC(e){return Ue("MuiAccordion",e)}const xc=Ne("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),RC=e=>{const{classes:t,square:n,expanded:o,disabled:s,disableGutters:a}=e;return He({root:["root",!n&&"rounded",o&&"expanded",s&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},wC,t)},kC=le(mn,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xc.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(Ae(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${xc.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${xc.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),Ae(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${xc.expanded}`]:{margin:"16px 0"}}}]}))),EC=le("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),fh=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAccordion"}),{children:s,className:a,defaultExpanded:u=!1,disabled:c=!1,disableGutters:p=!1,expanded:h,onChange:g,square:y=!1,slots:C={},slotProps:x={},TransitionComponent:b,TransitionProps:v,...R}=o,[E,L]=ra({controlled:h,default:u,name:"Accordion",state:"expanded"}),k=w.useCallback(Q=>{L(!E),g&&g(Q,!E)},[E,g,L]),[P,...M]=w.Children.toArray(s),j=w.useMemo(()=>({expanded:E,disabled:c,disableGutters:p,toggle:k}),[E,c,p,k]),_={...o,square:y,disabled:c,disableGutters:p,expanded:E},N=RC(_),V={transition:b,...C},I={transition:v,...x},F={slots:V,slotProps:I},[O,z]=At("heading",{elementType:EC,externalForwardedProps:F,className:N.heading,ownerState:_}),[q,K]=At("transition",{elementType:zl,externalForwardedProps:F,ownerState:_});return d.jsxs(kC,{className:ve(N.root,a),ref:n,ownerState:_,square:y,...R,children:[d.jsx(O,{...z,children:d.jsx(c4.Provider,{value:j,children:P})}),d.jsx(q,{in:E,timeout:"auto",...K,children:d.jsx("div",{"aria-labelledby":P.props.id,id:P.props["aria-controls"],role:"region",className:N.region,children:M})})]})});function PC(e){return Ue("MuiAccordionDetails",e)}Ne("MuiAccordionDetails",["root"]);const IC=e=>{const{classes:t}=e;return He({root:["root"]},PC,t)},MC=le("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(Ae(({theme:e})=>({padding:e.spacing(1,2,2)}))),ph=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAccordionDetails"}),{className:s,...a}=o,u=o,c=IC(u);return d.jsx(MC,{className:ve(c.root,s),ref:n,ownerState:u,...a})});class Xc{constructor(){el(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 Xc}static use(){const t=Hy(Xc.create).current,[n,o]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=o,w.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=TC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function LC(){return Xc.use()}function TC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function jC(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:a,rippleSize:u,in:c,onExited:p,timeout:h}=e,[g,y]=w.useState(!1),C=ve(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),x={width:u,height:u,top:-(u/2)+a,left:-(u/2)+s},b=ve(n.child,g&&n.childLeaving,o&&n.childPulsate);return!c&&!g&&y(!0),w.useEffect(()=>{if(!c&&p!=null){const v=setTimeout(p,h);return()=>{clearTimeout(v)}}},[p,c,h]),d.jsx("span",{className:C,style:x,children:d.jsx("span",{className:b})})}const pr=Ne("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),d1=550,OC=80,_C=rs` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`,$C=rs` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`,AC=rs` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`,FC=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zC=le(jC,{name:"MuiTouchRipple",slot:"Ripple"})` + opacity: 0; + position: absolute; + + &.${pr.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${_C}; + animation-duration: ${d1}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + &.${pr.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; + } + + & .${pr.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${pr.childLeaving} { + opacity: 0; + animation-name: ${$C}; + animation-duration: ${d1}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + } + + & .${pr.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${AC}; + animation-duration: 2500ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`,NC=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:u,...c}=o,[p,h]=w.useState([]),g=w.useRef(0),y=w.useRef(null);w.useEffect(()=>{y.current&&(y.current(),y.current=null)},[p]);const C=w.useRef(!1),x=$i(),b=w.useRef(null),v=w.useRef(null),R=w.useCallback(P=>{const{pulsate:M,rippleX:j,rippleY:_,rippleSize:N,cb:V}=P;h(I=>[...I,d.jsx(zC,{classes:{ripple:ve(a.ripple,pr.ripple),rippleVisible:ve(a.rippleVisible,pr.rippleVisible),ripplePulsate:ve(a.ripplePulsate,pr.ripplePulsate),child:ve(a.child,pr.child),childLeaving:ve(a.childLeaving,pr.childLeaving),childPulsate:ve(a.childPulsate,pr.childPulsate)},timeout:d1,pulsate:M,rippleX:j,rippleY:_,rippleSize:N},g.current)]),g.current+=1,y.current=V},[a]),E=w.useCallback((P={},M={},j=()=>{})=>{const{pulsate:_=!1,center:N=s||M.pulsate,fakeElement:V=!1}=M;if((P==null?void 0:P.type)==="mousedown"&&C.current){C.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(C.current=!0);const I=V?null:v.current,F=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,z,q;if(N||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)O=Math.round(F.width/2),z=Math.round(F.height/2);else{const{clientX:K,clientY:Q}=P.touches&&P.touches.length>0?P.touches[0]:P;O=Math.round(K-F.left),z=Math.round(Q-F.top)}if(N)q=Math.sqrt((2*F.width**2+F.height**2)/3),q%2===0&&(q+=1);else{const K=Math.max(Math.abs((I?I.clientWidth:0)-O),O)*2+2,Q=Math.max(Math.abs((I?I.clientHeight:0)-z),z)*2+2;q=Math.sqrt(K**2+Q**2)}P!=null&&P.touches?b.current===null&&(b.current=()=>{R({pulsate:_,rippleX:O,rippleY:z,rippleSize:q,cb:j})},x.start(OC,()=>{b.current&&(b.current(),b.current=null)})):R({pulsate:_,rippleX:O,rippleY:z,rippleSize:q,cb:j})},[s,R,x]),L=w.useCallback(()=>{E({},{pulsate:!0})},[E]),k=w.useCallback((P,M)=>{if(x.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,x.start(0,()=>{k(P,M)});return}b.current=null,h(j=>j.length>0?j.slice(1):j),y.current=M},[x]);return w.useImperativeHandle(n,()=>({pulsate:L,start:E,stop:k}),[L,E,k]),d.jsx(FC,{className:ve(pr.root,a.root,u),ref:v,...c,children:d.jsx(dh,{component:null,exit:!0,children:p})})});function DC(e){return Ue("MuiButtonBase",e)}const BC=Ne("MuiButtonBase",["root","disabled","focusVisible"]),VC=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,u=He({root:["root",t&&"disabled",n&&"focusVisible"]},DC,s);return n&&o&&(u.root+=` ${o}`),u},UC=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${BC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Eo=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:u,className:c,component:p="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:C=!1,focusVisibleClassName:x,LinkComponent:b="a",onBlur:v,onClick:R,onContextMenu:E,onDragLeave:L,onFocus:k,onFocusVisible:P,onKeyDown:M,onKeyUp:j,onMouseDown:_,onMouseLeave:N,onMouseUp:V,onTouchEnd:I,onTouchMove:F,onTouchStart:O,tabIndex:z=0,TouchRippleProps:q,touchRippleRef:K,type:Q,...ee}=o,D=w.useRef(null),G=LC(),te=Ft(G.ref,K),[A,X]=w.useState(!1);h&&A&&X(!1),w.useImperativeHandle(s,()=>({focusVisible:()=>{X(!0),D.current.focus()}}),[]);const he=G.shouldMount&&!g&&!h;w.useEffect(()=>{A&&C&&!g&&G.pulsate()},[g,C,A,G]);const fe=go(G,"start",_,y),pe=go(G,"stop",E,y),ie=go(G,"stop",L,y),Ce=go(G,"stop",V,y),xe=go(G,"stop",Ee=>{A&&Ee.preventDefault(),N&&N(Ee)},y),we=go(G,"start",O,y),Re=go(G,"stop",I,y),De=go(G,"stop",F,y),Te=go(G,"stop",Ee=>{fi(Ee.target)||X(!1),v&&v(Ee)},!1),We=Or(Ee=>{D.current||(D.current=Ee.currentTarget),fi(Ee.target)&&(X(!0),P&&P(Ee)),k&&k(Ee)}),Fe=()=>{const Ee=D.current;return p&&p!=="button"&&!(Ee.tagName==="A"&&Ee.href)},tt=Or(Ee=>{C&&!Ee.repeat&&A&&Ee.key===" "&&G.stop(Ee,()=>{G.start(Ee)}),Ee.target===Ee.currentTarget&&Fe()&&Ee.key===" "&&Ee.preventDefault(),M&&M(Ee),Ee.target===Ee.currentTarget&&Fe()&&Ee.key==="Enter"&&!h&&(Ee.preventDefault(),R&&R(Ee))}),gt=Or(Ee=>{C&&Ee.key===" "&&A&&!Ee.defaultPrevented&&G.stop(Ee,()=>{G.pulsate(Ee)}),j&&j(Ee),R&&Ee.target===Ee.currentTarget&&Fe()&&Ee.key===" "&&!Ee.defaultPrevented&&R(Ee)});let ze=p;ze==="button"&&(ee.href||ee.to)&&(ze=b);const nt={};ze==="button"?(nt.type=Q===void 0?"button":Q,nt.disabled=h):(!ee.href&&!ee.to&&(nt.role="button"),h&&(nt["aria-disabled"]=h));const mt=Ft(n,D),ot={...o,centerRipple:a,component:p,disabled:h,disableRipple:g,disableTouchRipple:y,focusRipple:C,tabIndex:z,focusVisible:A},Je=VC(ot);return d.jsxs(UC,{as:ze,className:ve(Je.root,c),ownerState:ot,onBlur:Te,onClick:R,onContextMenu:pe,onFocus:We,onKeyDown:tt,onKeyUp:gt,onMouseDown:fe,onMouseLeave:xe,onMouseUp:Ce,onDragLeave:ie,onTouchEnd:Re,onTouchMove:De,onTouchStart:we,ref:mt,tabIndex:h?-1:z,type:Q,...nt,...ee,children:[u,he?d.jsx(NC,{ref:te,center:a,...q}):null]})});function go(e,t,n,o=!1){return Or(s=>(n&&n(s),o||e[t](s),!0))}function HC(e){return Ue("MuiAccordionSummary",e)}const zs=Ne("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),WC=e=>{const{classes:t,expanded:n,disabled:o,disableGutters:s}=e;return He({root:["root",n&&"expanded",o&&"disabled",!s&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!s&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},HC,t)},GC=le(Eo,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(Ae(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${zs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${zs.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${zs.expanded}`]:{minHeight:64}}}]}})),KC=le("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(Ae(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${zs.expanded}`]:{margin:"20px 0"}}}]}))),qC=le("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(Ae(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${zs.expanded}`]:{transform:"rotate(180deg)"}}))),d4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAccordionSummary"}),{children:s,className:a,expandIcon:u,focusVisibleClassName:c,onClick:p,...h}=o,{disabled:g=!1,disableGutters:y,expanded:C,toggle:x}=w.useContext(c4),b=E=>{x&&x(E),p&&p(E)},v={...o,expanded:C,disabled:g,disableGutters:y},R=WC(v);return d.jsxs(GC,{focusRipple:!1,disableRipple:!0,disabled:g,"aria-expanded":C,className:ve(R.root,a),focusVisibleClassName:ve(R.focusVisible,c),onClick:b,ref:n,ownerState:v,...h,children:[d.jsx(KC,{className:R.content,ownerState:v,children:s}),u&&d.jsx(qC,{className:R.expandIconWrapper,ownerState:v,children:u})]})});function QC(e){return typeof e.main=="string"}function YC(e,t=[]){if(!QC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Gt(e=[]){return([,t])=>t&&YC(t,e)}function XC(e){return Ue("MuiAlert",e)}const k2=Ne("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function ZC(e){return Ue("MuiCircularProgress",e)}Ne("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qo=44,f1=rs` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`,p1=rs` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`,JC=typeof f1!="string"?Xl` + animation: ${f1} 1.4s linear infinite; + `:null,eb=typeof p1!="string"?Xl` + animation: ${p1} 1.4s ease-in-out infinite; + `:null,tb=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,a={root:["root",n,`color${ae(o)}`],svg:["svg"],circle:["circle",`circle${ae(n)}`,s&&"circleDisableShrink"]};return He(a,ZC,t)},nb=le("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ae(n.color)}`]]}})(Ae(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:JC||{animation:`${f1} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rb=le("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ob=le("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ae(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ae(({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:eb||{animation:`${p1} 1.4s ease-in-out infinite`}}]}))),to=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:u=!1,size:c=40,style:p,thickness:h=3.6,value:g=0,variant:y="indeterminate",...C}=o,x={...o,color:a,disableShrink:u,size:c,thickness:h,value:g,variant:y},b=tb(x),v={},R={},E={};if(y==="determinate"){const L=2*Math.PI*((Qo-h)/2);v.strokeDasharray=L.toFixed(3),E["aria-valuenow"]=Math.round(g),v.strokeDashoffset=`${((100-g)/100*L).toFixed(3)}px`,R.transform="rotate(-90deg)"}return d.jsx(nb,{className:ve(b.root,s),style:{width:c,height:c,...R,...p},ownerState:x,ref:n,role:"progressbar",...E,...C,children:d.jsx(rb,{className:b.svg,ownerState:x,viewBox:`${Qo/2} ${Qo/2} ${Qo} ${Qo}`,children:d.jsx(ob,{className:b.circle,style:v,ownerState:x,cx:Qo,cy:Qo,r:(Qo-h)/2,fill:"none",strokeWidth:h})})})});function ib(e){return Ue("MuiIconButton",e)}const E2=Ne("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),sb=e=>{const{classes:t,disabled:n,color:o,edge:s,size:a,loading:u}=e,c={root:["root",u&&"loading",n&&"disabled",o!=="default"&&`color${ae(o)}`,s&&`edge${ae(s)}`,`size${ae(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return He(c,ib,t)},ab=le(Eo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ae(n.color)}`],n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(n.size)}`]]}})(Ae(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette.action.active,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}}]})),Ae(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:re((e.vars||e).palette[t].main,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)}}],[`&.${E2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${E2.loading}`]:{color:"transparent"}}))),lb=le("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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"}}]})),tu=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiIconButton"}),{edge:s=!1,children:a,className:u,color:c="default",disabled:p=!1,disableFocusRipple:h=!1,size:g="medium",id:y,loading:C=null,loadingIndicator:x,...b}=o,v=eu(y),R=x??d.jsx(to,{"aria-labelledby":v,color:"inherit",size:16}),E={...o,edge:s,color:c,disabled:p,disableFocusRipple:h,loading:C,loadingIndicator:R,size:g},L=sb(E);return d.jsxs(ab,{id:v,className:ve(L.root,u),centerRipple:!0,focusRipple:!h,disabled:p||C,ref:n,...b,ownerState:E,children:[typeof C=="boolean"&&d.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:d.jsx(lb,{className:L.loadingIndicator,ownerState:E,children:C&&R})}),a]})}),ub=Ze(d.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"),cb=Ze(d.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),db=Ze(d.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"),fb=Ze(d.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"),pb=Ze(d.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"),hb=e=>{const{variant:t,color:n,severity:o,classes:s}=e,a={root:["root",`color${ae(n||o)}`,`${t}${ae(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return He(a,XC,s)},gb=le(mn,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ae(n.color||n.severity)}`]]}})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?wo:Ro,n=e.palette.mode==="light"?Ro:wo;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Gt(["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`]:n(e.palette[o].light,.9),[`& .${k2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Gt(["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}`,[`& .${k2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Gt(["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)}}}))]}})),mb=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),yb=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),vb=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P2={success:d.jsx(ub,{fontSize:"inherit"}),warning:d.jsx(cb,{fontSize:"inherit"}),error:d.jsx(db,{fontSize:"inherit"}),info:d.jsx(fb,{fontSize:"inherit"})},kd=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAlert"}),{action:s,children:a,className:u,closeText:c="Close",color:p,components:h={},componentsProps:g={},icon:y,iconMapping:C=P2,onClose:x,role:b="alert",severity:v="success",slotProps:R={},slots:E={},variant:L="standard",...k}=o,P={...o,color:p,severity:v,variant:L,colorSeverity:p||v},M=hb(P),j={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...E},slotProps:{...g,...R}},[_,N]=At("root",{ref:n,shouldForwardComponentProp:!0,className:ve(M.root,u),elementType:gb,externalForwardedProps:{...j,...k},ownerState:P,additionalProps:{role:b,elevation:0}}),[V,I]=At("icon",{className:M.icon,elementType:mb,externalForwardedProps:j,ownerState:P}),[F,O]=At("message",{className:M.message,elementType:yb,externalForwardedProps:j,ownerState:P}),[z,q]=At("action",{className:M.action,elementType:vb,externalForwardedProps:j,ownerState:P}),[K,Q]=At("closeButton",{elementType:tu,externalForwardedProps:j,ownerState:P}),[ee,D]=At("closeIcon",{elementType:pb,externalForwardedProps:j,ownerState:P});return d.jsxs(_,{...N,children:[y!==!1?d.jsx(V,{...I,children:y||C[v]||P2[v]}):null,d.jsx(F,{...O,children:a}),s!=null?d.jsx(z,{...q,children:s}):null,s==null&&x?d.jsx(z,{...q,children:d.jsx(K,{size:"small","aria-label":c,title:c,color:"inherit",onClick:x,...Q,children:d.jsx(ee,{fontSize:"small",...D})})}):null]})});function xb(e){return Ue("MuiTypography",e)}Ne("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Cb={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},bb=oC(),Sb=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:a,classes:u}=e,c={root:["root",a,e.align!=="inherit"&&`align${ae(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return He(c,xb,u)},wb=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ae(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ae(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Gt()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ae(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),I2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ne=w.forwardRef(function(t,n){const{color:o,...s}=Ke({props:t,name:"MuiTypography"}),a=!Cb[o],u=bb({...s,...a&&{color:o}}),{align:c="inherit",className:p,component:h,gutterBottom:g=!1,noWrap:y=!1,paragraph:C=!1,variant:x="body1",variantMapping:b=I2,...v}=u,R={...u,align:c,color:o,className:p,component:h,gutterBottom:g,noWrap:y,paragraph:C,variant:x,variantMapping:b},E=h||(C?"p":b[x]||I2[x])||"span",L=Sb(R);return d.jsx(wb,{as:E,ref:n,className:ve(L.root,p),...v,ownerState:R,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...v.style}})});function Rb(e){return Ue("MuiAppBar",e)}Ne("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const kb=e=>{const{color:t,position:n,classes:o}=e,s={root:["root",`color${ae(t)}`,`position${ae(n)}`]};return He(s,Rb,o)},M2=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Eb=le(mn,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ae(n.position)}`],t[`color${ae(n.color)}`]]}})(Ae(({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"}},{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(Gt(["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?M2(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?M2(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"})}}]}))),Pb=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiAppBar"}),{className:s,color:a="primary",enableColorOnDark:u=!1,position:c="fixed",...p}=o,h={...o,color:a,position:c,enableColorOnDark:u},g=kb(h);return d.jsx(Eb,{square:!0,component:"header",ownerState:h,elevation:4,className:ve(g.root,s,c==="fixed"&&"mui-fixed"),ref:n,...p})});var Vn="top",vr="bottom",xr="right",Un="left",hh="auto",nu=[Vn,vr,xr,Un],ia="start",Nl="end",Ib="clippingParents",f4="viewport",ol="popper",Mb="reference",L2=nu.reduce(function(e,t){return e.concat([t+"-"+ia,t+"-"+Nl])},[]),p4=[].concat(nu,[hh]).reduce(function(e,t){return e.concat([t,t+"-"+ia,t+"-"+Nl])},[]),Lb="beforeRead",Tb="read",jb="afterRead",Ob="beforeMain",_b="main",$b="afterMain",Ab="beforeWrite",Fb="write",zb="afterWrite",Nb=[Lb,Tb,jb,Ob,_b,$b,Ab,Fb,zb];function no(e){return e?(e.nodeName||"").toLowerCase():null}function tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ji(e){var t=tr(e).Element;return e instanceof t||e instanceof Element}function yr(e){var t=tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gh(e){if(typeof ShadowRoot>"u")return!1;var t=tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Db(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},a=t.elements[n];!yr(a)||!no(a)||(Object.assign(a.style,o),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function Bb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],a=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),c=u.reduce(function(p,h){return p[h]="",p},{});!yr(s)||!no(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(p){s.removeAttribute(p)}))})}}const Vb={name:"applyStyles",enabled:!0,phase:"write",fn:Db,effect:Bb,requires:["computeStyles"]};function eo(e){return e.split("-")[0]}var Yi=Math.max,Zc=Math.min,sa=Math.round;function h1(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function h4(){return!/^((?!chrome|android).)*safari/i.test(h1())}function aa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,a=1;t&&yr(e)&&(s=e.offsetWidth>0&&sa(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&sa(o.height)/e.offsetHeight||1);var u=Ji(e)?tr(e):window,c=u.visualViewport,p=!h4()&&n,h=(o.left+(p&&c?c.offsetLeft:0))/s,g=(o.top+(p&&c?c.offsetTop:0))/a,y=o.width/s,C=o.height/a;return{width:y,height:C,top:g,right:h+y,bottom:g+C,left:h,x:h,y:g}}function mh(e){var t=aa(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function g4(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gh(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Po(e){return tr(e).getComputedStyle(e)}function Ub(e){return["table","td","th"].indexOf(no(e))>=0}function hi(e){return((Ji(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ed(e){return no(e)==="html"?e:e.assignedSlot||e.parentNode||(gh(e)?e.host:null)||hi(e)}function T2(e){return!yr(e)||Po(e).position==="fixed"?null:e.offsetParent}function Hb(e){var t=/firefox/i.test(h1()),n=/Trident/i.test(h1());if(n&&yr(e)){var o=Po(e);if(o.position==="fixed")return null}var s=Ed(e);for(gh(s)&&(s=s.host);yr(s)&&["html","body"].indexOf(no(s))<0;){var a=Po(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function ru(e){for(var t=tr(e),n=T2(e);n&&Ub(n)&&Po(n).position==="static";)n=T2(n);return n&&(no(n)==="html"||no(n)==="body"&&Po(n).position==="static")?t:n||Hb(e)||t}function yh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wl(e,t,n){return Yi(e,Zc(t,n))}function Wb(e,t,n){var o=wl(e,t,n);return o>n?n:o}function m4(){return{top:0,right:0,bottom:0,left:0}}function y4(e){return Object.assign({},m4(),e)}function v4(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var Gb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,y4(typeof t!="number"?t:v4(t,nu))};function Kb(e){var t,n=e.state,o=e.name,s=e.options,a=n.elements.arrow,u=n.modifiersData.popperOffsets,c=eo(n.placement),p=yh(c),h=[Un,xr].indexOf(c)>=0,g=h?"height":"width";if(!(!a||!u)){var y=Gb(s.padding,n),C=mh(a),x=p==="y"?Vn:Un,b=p==="y"?vr:xr,v=n.rects.reference[g]+n.rects.reference[p]-u[p]-n.rects.popper[g],R=u[p]-n.rects.reference[p],E=ru(a),L=E?p==="y"?E.clientHeight||0:E.clientWidth||0:0,k=v/2-R/2,P=y[x],M=L-C[g]-y[b],j=L/2-C[g]/2+k,_=wl(P,j,M),N=p;n.modifiersData[o]=(t={},t[N]=_,t.centerOffset=_-j,t)}}function qb(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||g4(t.elements.popper,s)&&(t.elements.arrow=s))}const Qb={name:"arrow",enabled:!0,phase:"main",fn:Kb,effect:qb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function la(e){return e.split("-")[1]}var Yb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xb(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:sa(n*s)/s||0,y:sa(o*s)/s||0}}function j2(e){var t,n=e.popper,o=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,p=e.gpuAcceleration,h=e.adaptive,g=e.roundOffsets,y=e.isFixed,C=u.x,x=C===void 0?0:C,b=u.y,v=b===void 0?0:b,R=typeof g=="function"?g({x,y:v}):{x,y:v};x=R.x,v=R.y;var E=u.hasOwnProperty("x"),L=u.hasOwnProperty("y"),k=Un,P=Vn,M=window;if(h){var j=ru(n),_="clientHeight",N="clientWidth";if(j===tr(n)&&(j=hi(n),Po(j).position!=="static"&&c==="absolute"&&(_="scrollHeight",N="scrollWidth")),j=j,s===Vn||(s===Un||s===xr)&&a===Nl){P=vr;var V=y&&j===M&&M.visualViewport?M.visualViewport.height:j[_];v-=V-o.height,v*=p?1:-1}if(s===Un||(s===Vn||s===vr)&&a===Nl){k=xr;var I=y&&j===M&&M.visualViewport?M.visualViewport.width:j[N];x-=I-o.width,x*=p?1:-1}}var F=Object.assign({position:c},h&&Yb),O=g===!0?Xb({x,y:v},tr(n)):{x,y:v};if(x=O.x,v=O.y,p){var z;return Object.assign({},F,(z={},z[P]=L?"0":"",z[k]=E?"0":"",z.transform=(M.devicePixelRatio||1)<=1?"translate("+x+"px, "+v+"px)":"translate3d("+x+"px, "+v+"px, 0)",z))}return Object.assign({},F,(t={},t[P]=L?v+"px":"",t[k]=E?x+"px":"",t.transform="",t))}function Zb(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,a=n.adaptive,u=a===void 0?!0:a,c=n.roundOffsets,p=c===void 0?!0:c,h={placement:eo(t.placement),variation:la(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,j2(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,j2(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Jb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zb,data:{}};var Cc={passive:!0};function eS(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,a=s===void 0?!0:s,u=o.resize,c=u===void 0?!0:u,p=tr(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&h.forEach(function(g){g.addEventListener("scroll",n.update,Cc)}),c&&p.addEventListener("resize",n.update,Cc),function(){a&&h.forEach(function(g){g.removeEventListener("scroll",n.update,Cc)}),c&&p.removeEventListener("resize",n.update,Cc)}}const tS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eS,data:{}};var nS={left:"right",right:"left",bottom:"top",top:"bottom"};function Dc(e){return e.replace(/left|right|bottom|top/g,function(t){return nS[t]})}var rS={start:"end",end:"start"};function O2(e){return e.replace(/start|end/g,function(t){return rS[t]})}function vh(e){var t=tr(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function xh(e){return aa(hi(e)).left+vh(e).scrollLeft}function oS(e,t){var n=tr(e),o=hi(e),s=n.visualViewport,a=o.clientWidth,u=o.clientHeight,c=0,p=0;if(s){a=s.width,u=s.height;var h=h4();(h||!h&&t==="fixed")&&(c=s.offsetLeft,p=s.offsetTop)}return{width:a,height:u,x:c+xh(e),y:p}}function iS(e){var t,n=hi(e),o=vh(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Yi(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Yi(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+xh(e),p=-o.scrollTop;return Po(s||n).direction==="rtl"&&(c+=Yi(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:p}}function Ch(e){var t=Po(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function x4(e){return["html","body","#document"].indexOf(no(e))>=0?e.ownerDocument.body:yr(e)&&Ch(e)?e:x4(Ed(e))}function Rl(e,t){var n;t===void 0&&(t=[]);var o=x4(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),a=tr(o),u=s?[a].concat(a.visualViewport||[],Ch(o)?o:[]):o,c=t.concat(u);return s?c:c.concat(Rl(Ed(u)))}function g1(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sS(e,t){var n=aa(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function _2(e,t,n){return t===f4?g1(oS(e,n)):Ji(t)?sS(t,n):g1(iS(hi(e)))}function aS(e){var t=Rl(Ed(e)),n=["absolute","fixed"].indexOf(Po(e).position)>=0,o=n&&yr(e)?ru(e):e;return Ji(o)?t.filter(function(s){return Ji(s)&&g4(s,o)&&no(s)!=="body"}):[]}function lS(e,t,n,o){var s=t==="clippingParents"?aS(e):[].concat(t),a=[].concat(s,[n]),u=a[0],c=a.reduce(function(p,h){var g=_2(e,h,o);return p.top=Yi(g.top,p.top),p.right=Zc(g.right,p.right),p.bottom=Zc(g.bottom,p.bottom),p.left=Yi(g.left,p.left),p},_2(e,u,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function C4(e){var t=e.reference,n=e.element,o=e.placement,s=o?eo(o):null,a=o?la(o):null,u=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,p;switch(s){case Vn:p={x:u,y:t.y-n.height};break;case vr:p={x:u,y:t.y+t.height};break;case xr:p={x:t.x+t.width,y:c};break;case Un:p={x:t.x-n.width,y:c};break;default:p={x:t.x,y:t.y}}var h=s?yh(s):null;if(h!=null){var g=h==="y"?"height":"width";switch(a){case ia:p[h]=p[h]-(t[g]/2-n[g]/2);break;case Nl:p[h]=p[h]+(t[g]/2-n[g]/2);break}}return p}function Dl(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,a=n.strategy,u=a===void 0?e.strategy:a,c=n.boundary,p=c===void 0?Ib:c,h=n.rootBoundary,g=h===void 0?f4:h,y=n.elementContext,C=y===void 0?ol:y,x=n.altBoundary,b=x===void 0?!1:x,v=n.padding,R=v===void 0?0:v,E=y4(typeof R!="number"?R:v4(R,nu)),L=C===ol?Mb:ol,k=e.rects.popper,P=e.elements[b?L:C],M=lS(Ji(P)?P:P.contextElement||hi(e.elements.popper),p,g,u),j=aa(e.elements.reference),_=C4({reference:j,element:k,placement:s}),N=g1(Object.assign({},k,_)),V=C===ol?N:j,I={top:M.top-V.top+E.top,bottom:V.bottom-M.bottom+E.bottom,left:M.left-V.left+E.left,right:V.right-M.right+E.right},F=e.modifiersData.offset;if(C===ol&&F){var O=F[s];Object.keys(I).forEach(function(z){var q=[xr,vr].indexOf(z)>=0?1:-1,K=[Vn,vr].indexOf(z)>=0?"y":"x";I[z]+=O[K]*q})}return I}function uS(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,a=n.rootBoundary,u=n.padding,c=n.flipVariations,p=n.allowedAutoPlacements,h=p===void 0?p4:p,g=la(o),y=g?c?L2:L2.filter(function(b){return la(b)===g}):nu,C=y.filter(function(b){return h.indexOf(b)>=0});C.length===0&&(C=y);var x=C.reduce(function(b,v){return b[v]=Dl(e,{placement:v,boundary:s,rootBoundary:a,padding:u})[eo(v)],b},{});return Object.keys(x).sort(function(b,v){return x[b]-x[v]})}function cS(e){if(eo(e)===hh)return[];var t=Dc(e);return[O2(e),t,O2(t)]}function dS(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!0:u,p=n.fallbackPlacements,h=n.padding,g=n.boundary,y=n.rootBoundary,C=n.altBoundary,x=n.flipVariations,b=x===void 0?!0:x,v=n.allowedAutoPlacements,R=t.options.placement,E=eo(R),L=E===R,k=p||(L||!b?[Dc(R)]:cS(R)),P=[R].concat(k).reduce(function(fe,pe){return fe.concat(eo(pe)===hh?uS(t,{placement:pe,boundary:g,rootBoundary:y,padding:h,flipVariations:b,allowedAutoPlacements:v}):pe)},[]),M=t.rects.reference,j=t.rects.popper,_=new Map,N=!0,V=P[0],I=0;I=0,K=q?"width":"height",Q=Dl(t,{placement:F,boundary:g,rootBoundary:y,altBoundary:C,padding:h}),ee=q?z?xr:Un:z?vr:Vn;M[K]>j[K]&&(ee=Dc(ee));var D=Dc(ee),G=[];if(a&&G.push(Q[O]<=0),c&&G.push(Q[ee]<=0,Q[D]<=0),G.every(function(fe){return fe})){V=F,N=!1;break}_.set(F,G)}if(N)for(var te=b?3:1,A=function(pe){var ie=P.find(function(Ce){var xe=_.get(Ce);if(xe)return xe.slice(0,pe).every(function(we){return we})});if(ie)return V=ie,"break"},X=te;X>0;X--){var he=A(X);if(he==="break")break}t.placement!==V&&(t.modifiersData[o]._skip=!0,t.placement=V,t.reset=!0)}}const fS={name:"flip",enabled:!0,phase:"main",fn:dS,requiresIfExists:["offset"],data:{_skip:!1}};function $2(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function A2(e){return[Vn,xr,vr,Un].some(function(t){return e[t]>=0})}function pS(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=Dl(t,{elementContext:"reference"}),c=Dl(t,{altBoundary:!0}),p=$2(u,o),h=$2(c,s,a),g=A2(p),y=A2(h);t.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":y})}const hS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pS};function gS(e,t,n){var o=eo(e),s=[Un,Vn].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Un,xr].indexOf(o)>=0?{x:c,y:u}:{x:u,y:c}}function mS(e){var t=e.state,n=e.options,o=e.name,s=n.offset,a=s===void 0?[0,0]:s,u=p4.reduce(function(g,y){return g[y]=gS(y,t.rects,a),g},{}),c=u[t.placement],p=c.x,h=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=h),t.modifiersData[o]=u}const yS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mS};function vS(e){var t=e.state,n=e.name;t.modifiersData[n]=C4({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const xS={name:"popperOffsets",enabled:!0,phase:"read",fn:vS,data:{}};function CS(e){return e==="x"?"y":"x"}function bS(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,a=s===void 0?!0:s,u=n.altAxis,c=u===void 0?!1:u,p=n.boundary,h=n.rootBoundary,g=n.altBoundary,y=n.padding,C=n.tether,x=C===void 0?!0:C,b=n.tetherOffset,v=b===void 0?0:b,R=Dl(t,{boundary:p,rootBoundary:h,padding:y,altBoundary:g}),E=eo(t.placement),L=la(t.placement),k=!L,P=yh(E),M=CS(P),j=t.modifiersData.popperOffsets,_=t.rects.reference,N=t.rects.popper,V=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,I=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(j){if(a){var z,q=P==="y"?Vn:Un,K=P==="y"?vr:xr,Q=P==="y"?"height":"width",ee=j[P],D=ee+R[q],G=ee-R[K],te=x?-N[Q]/2:0,A=L===ia?_[Q]:N[Q],X=L===ia?-N[Q]:-_[Q],he=t.elements.arrow,fe=x&&he?mh(he):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:m4(),ie=pe[q],Ce=pe[K],xe=wl(0,_[Q],fe[Q]),we=k?_[Q]/2-te-xe-ie-I.mainAxis:A-xe-ie-I.mainAxis,Re=k?-_[Q]/2+te+xe+Ce+I.mainAxis:X+xe+Ce+I.mainAxis,De=t.elements.arrow&&ru(t.elements.arrow),Te=De?P==="y"?De.clientTop||0:De.clientLeft||0:0,We=(z=F==null?void 0:F[P])!=null?z:0,Fe=ee+we-We-Te,tt=ee+Re-We,gt=wl(x?Zc(D,Fe):D,ee,x?Yi(G,tt):G);j[P]=gt,O[P]=gt-ee}if(c){var ze,nt=P==="x"?Vn:Un,mt=P==="x"?vr:xr,ot=j[M],Je=M==="y"?"height":"width",Ee=ot+R[nt],Tt=ot-R[mt],yt=[Vn,Un].indexOf(E)!==-1,se=(ze=F==null?void 0:F[M])!=null?ze:0,me=yt?Ee:ot-_[Je]-N[Je]-se+I.altAxis,ye=yt?ot+_[Je]+N[Je]-se-I.altAxis:Tt,Pe=x&&yt?Wb(me,ot,ye):wl(x?me:Ee,ot,x?ye:Tt);j[M]=Pe,O[M]=Pe-ot}t.modifiersData[o]=O}}const SS={name:"preventOverflow",enabled:!0,phase:"main",fn:bS,requiresIfExists:["offset"]};function wS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RS(e){return e===tr(e)||!yr(e)?vh(e):wS(e)}function kS(e){var t=e.getBoundingClientRect(),n=sa(t.width)/e.offsetWidth||1,o=sa(t.height)/e.offsetHeight||1;return n!==1||o!==1}function ES(e,t,n){n===void 0&&(n=!1);var o=yr(t),s=yr(t)&&kS(t),a=hi(t),u=aa(e,s,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&((no(t)!=="body"||Ch(a))&&(c=RS(t)),yr(t)?(p=aa(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):a&&(p.x=xh(a))),{x:u.left+c.scrollLeft-p.x,y:u.top+c.scrollTop-p.y,width:u.width,height:u.height}}function PS(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function s(a){n.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!n.has(c)){var p=t.get(c);p&&s(p)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||s(a)}),o}function IS(e){var t=PS(e);return Nb.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function MS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function LS(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var F2={placement:"bottom",modifiers:[],strategy:"absolute"};function z2(){for(var e=arguments.length,t=new Array(e),n=0;n{a||c(_S(s)||document.body)},[s,a]),er(()=>{if(u&&!a)return i1(n,u),()=>{i1(n,null)}},[n,u,a]),a){if(w.isValidElement(o)){const h={ref:p};return w.cloneElement(o,h)}return o}return u&&U1.createPortal(o,u)});function $S(e){return Ue("MuiPopper",e)}Ne("MuiPopper",["root"]);function AS(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function m1(e){return typeof e=="function"?e():e}function FS(e){return e.nodeType!==void 0}const zS=e=>{const{classes:t}=e;return He({root:["root"]},$S,t)},NS={},DS=w.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:a,disablePortal:u,modifiers:c,open:p,placement:h,popperOptions:g,popperRef:y,slotProps:C={},slots:x={},TransitionProps:b,ownerState:v,...R}=t,E=w.useRef(null),L=Ft(E,n),k=w.useRef(null),P=Ft(k,y),M=w.useRef(P);er(()=>{M.current=P},[P]),w.useImperativeHandle(y,()=>k.current,[]);const j=AS(h,a),[_,N]=w.useState(j),[V,I]=w.useState(m1(o));w.useEffect(()=>{k.current&&k.current.forceUpdate()}),w.useEffect(()=>{o&&I(m1(o))},[o]),er(()=>{if(!V||!p)return;const K=D=>{N(D.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{K(D)}}];c!=null&&(Q=Q.concat(c)),g&&g.modifiers!=null&&(Q=Q.concat(g.modifiers));const ee=OS(V,E.current,{placement:j,...g,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,u,c,p,g,j]);const F={placement:_};b!==null&&(F.TransitionProps=b);const O=zS(t),z=x.root??"div",q=Ir({elementType:z,externalSlotProps:C.root,externalForwardedProps:R,additionalProps:{role:"tooltip",ref:L},ownerState:t,className:O.root});return d.jsx(z,{...q,children:typeof s=="function"?s(F):s})}),BS=w.forwardRef(function(t,n){const{anchorEl:o,children:s,container:a,direction:u="ltr",disablePortal:c=!1,keepMounted:p=!1,modifiers:h,open:g,placement:y="bottom",popperOptions:C=NS,popperRef:x,style:b,transition:v=!1,slotProps:R={},slots:E={},...L}=t,[k,P]=w.useState(!0),M=()=>{P(!1)},j=()=>{P(!0)};if(!p&&!g&&(!v||k))return null;let _;if(a)_=a;else if(o){const I=m1(o);_=I&&FS(I)?gn(I).body:gn(null).body}const N=!g&&p&&(!v||k)?"none":void 0,V=v?{in:g,onEnter:M,onExited:j}:void 0;return d.jsx(Pd,{disablePortal:c,container:_,children:d.jsx(DS,{anchorEl:o,direction:u,disablePortal:c,modifiers:h,ref:n,open:v?!k:g,placement:y,popperOptions:C,popperRef:x,slotProps:R,slots:E,...L,style:{position:"fixed",top:0,left:0,display:N,...b},TransitionProps:V,children:s})})}),VS=le(BS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),b4=w.forwardRef(function(t,n){const o=Sd(),s=Ke({props:t,name:"MuiPopper"}),{anchorEl:a,component:u,components:c,componentsProps:p,container:h,disablePortal:g,keepMounted:y,modifiers:C,open:x,placement:b,popperOptions:v,popperRef:R,transition:E,slots:L,slotProps:k,...P}=s,M=(L==null?void 0:L.root)??(c==null?void 0:c.Root),j={anchorEl:a,container:h,disablePortal:g,keepMounted:y,modifiers:C,open:x,placement:b,popperOptions:v,popperRef:R,transition:E,...P};return d.jsx(VS,{as:u,direction:o?"rtl":"ltr",slots:{root:M},slotProps:k??p,...j,ref:n})}),US=Ze(d.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 HS(e){return Ue("MuiChip",e)}const st=Ne("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),WS=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:a,onDelete:u,clickable:c,variant:p}=e,h={root:["root",p,n&&"disabled",`size${ae(o)}`,`color${ae(s)}`,c&&"clickable",c&&`clickableColor${ae(s)}`,u&&"deletable",u&&`deletableColor${ae(s)}`,`${p}${ae(s)}`],label:["label",`label${ae(o)}`],avatar:["avatar",`avatar${ae(o)}`,`avatarColor${ae(s)}`],icon:["icon",`icon${ae(o)}`,`iconColor${ae(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ae(o)}`,`deleteIconColor${ae(s)}`,`deleteIcon${ae(p)}Color${ae(s)}`]};return He(h,HS,t)},GS=le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:a,onDelete:u,size:c,variant:p}=n;return[{[`& .${st.avatar}`]:t.avatar},{[`& .${st.avatar}`]:t[`avatar${ae(c)}`]},{[`& .${st.avatar}`]:t[`avatarColor${ae(o)}`]},{[`& .${st.icon}`]:t.icon},{[`& .${st.icon}`]:t[`icon${ae(c)}`]},{[`& .${st.icon}`]:t[`iconColor${ae(s)}`]},{[`& .${st.deleteIcon}`]:t.deleteIcon},{[`& .${st.deleteIcon}`]:t[`deleteIcon${ae(c)}`]},{[`& .${st.deleteIcon}`]:t[`deleteIconColor${ae(o)}`]},{[`& .${st.deleteIcon}`]:t[`deleteIcon${ae(p)}Color${ae(o)}`]},t.root,t[`size${ae(c)}`],t[`color${ae(o)}`],a&&t.clickable,a&&o!=="default"&&t[`clickableColor${ae(o)})`],u&&t.deletable,u&&o!=="default"&&t[`deletableColor${ae(o)}`],t[p],t[`${p}${ae(o)}`]]}})(Ae(({theme:e})=>{const 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,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",[`&.${st.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${st.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${st.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${st.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${st.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${st.icon}`]:{marginLeft:5,marginRight:-6},[`& .${st.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:re(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${st.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${st.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Gt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${st.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:re(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${st.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${st.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${st.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Gt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${st.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${st.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Gt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${st.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].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]}`,[`&.${st.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${st.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${st.avatar}`]:{marginLeft:4},[`& .${st.avatarSmall}`]:{marginLeft:2},[`& .${st.icon}`]:{marginLeft:4},[`& .${st.iconSmall}`]:{marginLeft:2},[`& .${st.deleteIcon}`]:{marginRight:5},[`& .${st.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Gt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:re(e.palette[n].main,.7)}`,[`&.${st.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${st.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:re(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${st.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:re(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),KS=le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${ae(o)}`]]}})({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 N2(e){return e.key==="Backspace"||e.key==="Delete"}const ui=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiChip"}),{avatar:s,className:a,clickable:u,color:c="default",component:p,deleteIcon:h,disabled:g=!1,icon:y,label:C,onClick:x,onDelete:b,onKeyDown:v,onKeyUp:R,size:E="medium",variant:L="filled",tabIndex:k,skipFocusWhenDisabled:P=!1,...M}=o,j=w.useRef(null),_=Ft(j,n),N=G=>{G.stopPropagation(),b&&b(G)},V=G=>{G.currentTarget===G.target&&N2(G)&&G.preventDefault(),v&&v(G)},I=G=>{G.currentTarget===G.target&&b&&N2(G)&&b(G),R&&R(G)},F=u!==!1&&x?!0:u,O=F||b?Eo:p||"div",z={...o,component:O,disabled:g,size:E,color:c,iconColor:w.isValidElement(y)&&y.props.color||c,onDelete:!!b,clickable:F,variant:L},q=WS(z),K=O===Eo?{component:p||"div",focusVisibleClassName:q.focusVisible,...b&&{disableRipple:!0}}:{};let Q=null;b&&(Q=h&&w.isValidElement(h)?w.cloneElement(h,{className:ve(h.props.className,q.deleteIcon),onClick:N}):d.jsx(US,{className:ve(q.deleteIcon),onClick:N}));let ee=null;s&&w.isValidElement(s)&&(ee=w.cloneElement(s,{className:ve(q.avatar,s.props.className)}));let D=null;return y&&w.isValidElement(y)&&(D=w.cloneElement(y,{className:ve(q.icon,y.props.className)})),d.jsxs(GS,{as:O,className:ve(q.root,a),disabled:F&&g?!0:void 0,onClick:x,onKeyDown:V,onKeyUp:I,ref:_,tabIndex:P&&g?-1:k,ownerState:z,...K,...M,children:[ee||D,d.jsx(KS,{className:ve(q.label),ownerState:z,children:C}),Q]})});function bc(e){return parseInt(e,10)||0}const qS={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function QS(e){for(const t in e)return!1;return!0}function YS(e){return QS(e)||e.outerHeightStyle===0&&!e.overflowing}const XS=w.forwardRef(function(t,n){const{onChange:o,maxRows:s,minRows:a=1,style:u,value:c,...p}=t,{current:h}=w.useRef(c!=null),g=w.useRef(null),y=Ft(n,g),C=w.useRef(null),x=w.useRef(null),b=w.useCallback(()=>{const L=g.current,k=x.current;if(!L||!k)return;const M=ko(L).getComputedStyle(L);if(M.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=M.width,k.value=L.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const j=M.boxSizing,_=bc(M.paddingBottom)+bc(M.paddingTop),N=bc(M.borderBottomWidth)+bc(M.borderTopWidth),V=k.scrollHeight;k.value="x";const I=k.scrollHeight;let F=V;a&&(F=Math.max(Number(a)*I,F)),s&&(F=Math.min(Number(s)*I,F)),F=Math.max(F,I);const O=F+(j==="border-box"?_+N:0),z=Math.abs(F-V)<=1;return{outerHeightStyle:O,overflowing:z}},[s,a,t.placeholder]),v=w.useCallback(()=>{const L=g.current,k=b();if(!L||!k||YS(k))return;const P=k.outerHeightStyle;C.current!==P&&(C.current=P,L.style.height=`${P}px`),L.style.overflow=k.overflowing?"hidden":""},[b]),R=w.useRef(-1);er(()=>{const L=Uy(()=>v()),k=g==null?void 0:g.current;if(!k)return;const P=ko(k);P.addEventListener("resize",L);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(()=>{M.unobserve(k),cancelAnimationFrame(R.current),v(),R.current=requestAnimationFrame(()=>{M.observe(k)})}),M.observe(k)),()=>{L.clear(),cancelAnimationFrame(R.current),P.removeEventListener("resize",L),M&&M.disconnect()}},[b,v]),er(()=>{v()});const E=L=>{h||v(),o&&o(L)};return d.jsxs(w.Fragment,{children:[d.jsx("textarea",{value:c,onChange:E,ref:y,rows:a,style:u,...p}),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:{...qS.shadow,...u,paddingTop:0,paddingBottom:0}})]})});function bo(e){return typeof e=="string"}function os({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}const bh=w.createContext(void 0);function gi(){return w.useContext(bh)}function D2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Jc(e,t=!1){return e&&(D2(e.value)&&e.value!==""||t&&D2(e.defaultValue)&&e.defaultValue!=="")}function ZS(e){return e.startAdornment}function JS(e){return Ue("MuiInputBase",e)}const ua=Ne("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var B2;const Id=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ae(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Md=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ew=e=>{const{classes:t,color:n,disabled:o,error:s,endAdornment:a,focused:u,formControl:c,fullWidth:p,hiddenLabel:h,multiline:g,readOnly:y,size:C,startAdornment:x,type:b}=e,v={root:["root",`color${ae(n)}`,o&&"disabled",s&&"error",p&&"fullWidth",u&&"focused",c&&"formControl",C&&C!=="medium"&&`size${ae(C)}`,g&&"multiline",x&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",y&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",g&&"inputMultiline",C==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",x&&"inputAdornedStart",a&&"inputAdornedEnd",y&&"readOnly"]};return He(v,JS,t)},Ld=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Id})(Ae(({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",[`&.${ua.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:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Td=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Md})(Ae(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ua.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${ua.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.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:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),V2=uh({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),jd=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:u,className:c,color:p,components:h={},componentsProps:g={},defaultValue:y,disabled:C,disableInjectingGlobalStyles:x,endAdornment:b,error:v,fullWidth:R=!1,id:E,inputComponent:L="input",inputProps:k={},inputRef:P,margin:M,maxRows:j,minRows:_,multiline:N=!1,name:V,onBlur:I,onChange:F,onClick:O,onFocus:z,onKeyDown:q,onKeyUp:K,placeholder:Q,readOnly:ee,renderSuffix:D,rows:G,size:te,slotProps:A={},slots:X={},startAdornment:he,type:fe="text",value:pe,...ie}=o,Ce=k.value!=null?k.value:pe,{current:xe}=w.useRef(Ce!=null),we=w.useRef(),Re=w.useCallback(be=>{},[]),De=Ft(we,P,k.ref,Re),[Te,We]=w.useState(!1),Fe=gi(),tt=os({props:o,muiFormControl:Fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tt.focused=Fe?Fe.focused:Te,w.useEffect(()=>{!Fe&&C&&Te&&(We(!1),I&&I())},[Fe,C,Te,I]);const gt=Fe&&Fe.onFilled,ze=Fe&&Fe.onEmpty,nt=w.useCallback(be=>{Jc(be)?gt&>():ze&&ze()},[gt,ze]);er(()=>{xe&&nt({value:Ce})},[Ce,nt,xe]);const mt=be=>{z&&z(be),k.onFocus&&k.onFocus(be),Fe&&Fe.onFocus?Fe.onFocus(be):We(!0)},ot=be=>{I&&I(be),k.onBlur&&k.onBlur(be),Fe&&Fe.onBlur?Fe.onBlur(be):We(!1)},Je=(be,...rt)=>{if(!xe){const lt=be.target||we.current;if(lt==null)throw new Error(So(1));nt({value:lt.value})}k.onChange&&k.onChange(be,...rt),F&&F(be,...rt)};w.useEffect(()=>{nt(we.current)},[]);const Ee=be=>{we.current&&be.currentTarget===be.target&&we.current.focus(),O&&O(be)};let Tt=L,yt=k;N&&Tt==="input"&&(G?yt={type:void 0,minRows:G,maxRows:G,...yt}:yt={type:void 0,maxRows:j,minRows:_,...yt},Tt=XS);const se=be=>{nt(be.animationName==="mui-auto-fill-cancel"?we.current:{value:"x"})};w.useEffect(()=>{Fe&&Fe.setAdornedStart(!!he)},[Fe,he]);const me={...o,color:tt.color||"primary",disabled:tt.disabled,endAdornment:b,error:tt.error,focused:tt.focused,formControl:Fe,fullWidth:R,hiddenLabel:tt.hiddenLabel,multiline:N,size:tt.size,startAdornment:he,type:fe},ye=ew(me),Pe=X.root||h.Root||Ld,$e=A.root||g.root||{},Se=X.input||h.Input||Td;return yt={...yt,...A.input??g.input},d.jsxs(w.Fragment,{children:[!x&&typeof V2=="function"&&(B2||(B2=d.jsx(V2,{}))),d.jsxs(Pe,{...$e,ref:n,onClick:Ee,...ie,...!bo(Pe)&&{ownerState:{...me,...$e.ownerState}},className:ve(ye.root,$e.className,c,ee&&"MuiInputBase-readOnly"),children:[he,d.jsx(bh.Provider,{value:null,children:d.jsx(Se,{"aria-invalid":tt.error,"aria-describedby":s,autoComplete:a,autoFocus:u,defaultValue:y,disabled:tt.disabled,id:E,onAnimationStart:se,name:V,placeholder:Q,readOnly:ee,required:tt.required,rows:G,value:Ce,onKeyDown:q,onKeyUp:K,type:fe,...yt,...!bo(Se)&&{as:Tt,ownerState:{...me,...yt.ownerState}},ref:De,className:ve(ye.input,yt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:Je,onFocus:mt})}),b,D?D({...tt,startAdornment:he}):null]})]})});function tw(e){return Ue("MuiInput",e)}const il={...ua,...Ne("MuiInput",["root","underline","input"])};function nw(e){return Ue("MuiOutlinedInput",e)}const Ur={...ua,...Ne("MuiOutlinedInput",["root","notchedOutline","input"])};function rw(e){return Ue("MuiFilledInput",e)}const Li={...ua,...Ne("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ow=Ze(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),iw={entering:{opacity:1},entered:{opacity:1}},sw=w.forwardRef(function(t,n){const o=Gn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:c,easing:p,in:h,onEnter:g,onEntered:y,onEntering:C,onExit:x,onExited:b,onExiting:v,style:R,timeout:E=s,TransitionComponent:L=$r,...k}=t,P=w.useRef(null),M=Ft(P,ma(c),n),j=q=>K=>{if(q){const Q=P.current;K===void 0?q(Q):q(Q,K)}},_=j(C),N=j((q,K)=>{u4(q);const Q=oa({style:R,timeout:E,easing:p},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",Q),q.style.transition=o.transitions.create("opacity",Q),g&&g(q,K)}),V=j(y),I=j(v),F=j(q=>{const K=oa({style:R,timeout:E,easing:p},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",K),q.style.transition=o.transitions.create("opacity",K),x&&x(q)}),O=j(b),z=q=>{a&&a(P.current,q)};return d.jsx(L,{appear:u,in:h,nodeRef:P,onEnter:N,onEntered:V,onEntering:_,onExit:F,onExited:O,onExiting:I,addEndListener:z,timeout:E,...k,children:(q,{ownerState:K,...Q})=>w.cloneElement(c,{style:{opacity:0,visibility:q==="exited"&&!h?"hidden":void 0,...iw[q],...R,...c.props.style},ref:M,...Q})})});function aw(e){return Ue("MuiBackdrop",e)}Ne("MuiBackdrop",["root","invisible"]);const lw=e=>{const{classes:t,invisible:n}=e;return He({root:["root",n&&"invisible"]},aw,t)},uw=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),S4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:u="div",invisible:c=!1,open:p,components:h={},componentsProps:g={},slotProps:y={},slots:C={},TransitionComponent:x,transitionDuration:b,...v}=o,R={...o,component:u,invisible:c},E=lw(R),L={transition:x,root:h.Root,...C},k={...g,...y},P={slots:L,slotProps:k},[M,j]=At("root",{elementType:uw,externalForwardedProps:P,className:ve(E.root,a),ownerState:R}),[_,N]=At("transition",{elementType:sw,externalForwardedProps:P,ownerState:R});return d.jsx(_,{in:p,timeout:b,...v,...N,children:d.jsx(M,{"aria-hidden":!0,...j,classes:E,ref:n,children:s})})}),cw=Ne("MuiBox",["root"]),dw=wd(),W=E9({themeId:jr,defaultTheme:dw,defaultClassName:cw.root,generateClassName:_y.generate});function fw(e){return Ue("MuiButton",e)}const Ti=Ne("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),pw=w.createContext({}),hw=w.createContext(void 0),gw=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:a,loading:u,loadingPosition:c,classes:p}=e,h={root:["root",u&&"loading",a,`${a}${ae(t)}`,`size${ae(s)}`,`${a}Size${ae(s)}`,`color${ae(t)}`,n&&"disableElevation",o&&"fullWidth",u&&`loadingPosition${ae(c)}`],startIcon:["icon","startIcon",`iconSize${ae(s)}`],endIcon:["icon","endIcon",`iconSize${ae(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=He(h,fw,p);return{...p,...g}},w4=[{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}}}],mw=le(Eo,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ae(n.color)}`],t[`size${ae(n.size)}`],t[`${n.variant}Size${ae(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=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"},[`&.${Ti.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]},[`&.${Ti.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ti.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)",[`&.${Ti.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(Gt()).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.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:re(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.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette[o].main,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:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette.text.primary,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"},[`&.${Ti.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ti.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}),[`&.${Ti.loading}`]:{color:"transparent"}}}]}})),yw=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ae(n.size)}`]]}})(({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}},...w4]})),vw=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ae(n.size)}`]]}})(({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}},...w4]})),xw=le("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.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}}]})),U2=le("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ca=w.forwardRef(function(t,n){const o=w.useContext(pw),s=w.useContext(hw),a=Al(o,t),u=Ke({props:a,name:"MuiButton"}),{children:c,color:p="primary",component:h="button",className:g,disabled:y=!1,disableElevation:C=!1,disableFocusRipple:x=!1,endIcon:b,focusVisibleClassName:v,fullWidth:R=!1,id:E,loading:L=null,loadingIndicator:k,loadingPosition:P="center",size:M="medium",startIcon:j,type:_,variant:N="text",...V}=u,I=eu(E),F=k??d.jsx(to,{"aria-labelledby":I,color:"inherit",size:16}),O={...u,color:p,component:h,disabled:y,disableElevation:C,disableFocusRipple:x,fullWidth:R,loading:L,loadingIndicator:F,loadingPosition:P,size:M,type:_,variant:N},z=gw(O),q=(j||L&&P==="start")&&d.jsx(yw,{className:z.startIcon,ownerState:O,children:j||d.jsx(U2,{className:z.loadingIconPlaceholder,ownerState:O})}),K=(b||L&&P==="end")&&d.jsx(vw,{className:z.endIcon,ownerState:O,children:b||d.jsx(U2,{className:z.loadingIconPlaceholder,ownerState:O})}),Q=s||"",ee=typeof L=="boolean"?d.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:L&&d.jsx(xw,{className:z.loadingIndicator,ownerState:O,children:F})}):null;return d.jsxs(mw,{ownerState:O,className:ve(o.className,z.root,g,Q),component:h,disabled:y||L,focusRipple:!x,focusVisibleClassName:ve(z.focusVisible,v),ref:n,type:_,id:I,...V,classes:z,children:[q,P!=="end"&&ee,c,P==="end"&&ee,K]})});function Cw(e){return Ue("PrivateSwitchBase",e)}Ne("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bw=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,a={root:["root",n&&"checked",o&&"disabled",s&&`edge${ae(s)}`],input:["input"]};return He(a,Cw,t)},Sw=le(Eo)({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}}]}),ww=le("input",{shouldForwardProp:rr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Rw=w.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:a,className:u,defaultChecked:c,disabled:p,disableFocusRipple:h=!1,edge:g=!1,icon:y,id:C,inputProps:x,inputRef:b,name:v,onBlur:R,onChange:E,onFocus:L,readOnly:k,required:P=!1,tabIndex:M,type:j,value:_,...N}=t,[V,I]=ra({controlled:s,default:!!c,name:"SwitchBase",state:"checked"}),F=gi(),O=G=>{L&&L(G),F&&F.onFocus&&F.onFocus(G)},z=G=>{R&&R(G),F&&F.onBlur&&F.onBlur(G)},q=G=>{if(G.nativeEvent.defaultPrevented)return;const te=G.target.checked;I(te),E&&E(G,te)};let K=p;F&&typeof K>"u"&&(K=F.disabled);const Q=j==="checkbox"||j==="radio",ee={...t,checked:V,disabled:K,disableFocusRipple:h,edge:g},D=bw(ee);return d.jsxs(Sw,{component:"span",className:ve(D.root,u),centerRipple:!0,focusRipple:!h,disabled:K,tabIndex:null,role:void 0,onFocus:O,onBlur:z,ownerState:ee,ref:n,...N,children:[d.jsx(ww,{autoFocus:o,checked:s,defaultChecked:c,className:D.input,disabled:K,id:Q?C:void 0,name:v,onChange:q,readOnly:k,ref:b,required:P,ownerState:ee,tabIndex:M,type:j,...j==="checkbox"&&_===void 0?{}:{value:_},...x}),V?a:y]})}),y1=typeof uh({})=="function",kw=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Ew=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}}),R4=(e,t=!1)=>{var a,u;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([c,p])=>{var g,y;const h=e.getColorSchemeSelector(c);h.startsWith("@")?n[h]={":root":{colorScheme:(g=p.palette)==null?void 0:g.mode}}:n[h.replace(/\s*&/,"")]={colorScheme:(y=p.palette)==null?void 0:y.mode}});let o={html:kw(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Ew(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const s=(u=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:u.styleOverrides;return s&&(o=[o,s]),o},Bc="mui-ecs",Pw=e=>{const t=R4(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Bc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var u,c;const a=e.getColorSchemeSelector(o);a.startsWith("@")?n[a]={[`:root:not(:has(.${Bc}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${Bc}))`]:{colorScheme:(c=s.palette)==null?void 0:c.mode}}}),t},Iw=uh(y1?({theme:e,enableColorScheme:t})=>R4(e,t):({theme:e})=>Pw(e));function Mw(e){const t=Ke({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:o=!1}=t;return d.jsxs(w.Fragment,{children:[y1&&d.jsx(Iw,{enableColorScheme:o}),!y1&&!o&&d.jsx("span",{className:Bc,style:{display:"none"}}),n]})}function Lw(e){const t=gn(e);return t.body===e?ko(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function kl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function H2(e){return parseInt(ko(e).getComputedStyle(e).paddingRight,10)||0}function Tw(e){const n=["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 n||o}function W2(e,t,n,o,s){const a=[t,n,...o];[].forEach.call(e.children,u=>{const c=!a.includes(u),p=!Tw(u);c&&p&&kl(u,s)})}function _p(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function jw(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Lw(o)){const u=Wy(ko(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${H2(o)+u}px`;const c=gn(o).querySelectorAll(".mui-fixed");[].forEach.call(c,p=>{n.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${H2(p)+u}px`})}let a;if(o.parentNode instanceof DocumentFragment)a=gn(o).body;else{const u=o.parentElement,c=ko(o);a=(u==null?void 0:u.nodeName)==="HTML"&&c.getComputedStyle(u).overflowY==="scroll"?u:o}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:u,property:c})=>{a?u.style.setProperty(c,a):u.style.removeProperty(c)})}}function Ow(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _w{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&kl(t.modalRef,!1);const s=Ow(n);W2(n,t.mount,t.modalRef,s,!0);const a=_p(this.containers,u=>u.container===n);return a!==-1?(this.containers[a].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=_p(this.containers,a=>a.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=jw(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=_p(this.containers,u=>u.modals.includes(t)),a=this.containers[s];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(o,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&kl(t.modalRef,n),W2(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(s,1);else{const u=a.modals[a.modals.length-1];u.modalRef&&kl(u.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const $w=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Aw(e){const 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 Fw(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function zw(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Fw(e))}function Nw(e){const t=[],n=[];return Array.from(e.querySelectorAll($w)).forEach((o,s)=>{const a=Aw(o);a===-1||!zw(o)||(a===0?t.push(o):n.push({documentOrder:s,tabIndex:a,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function Dw(){return!0}function Bw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:a=Nw,isEnabled:u=Dw,open:c}=e,p=w.useRef(!1),h=w.useRef(null),g=w.useRef(null),y=w.useRef(null),C=w.useRef(null),x=w.useRef(!1),b=w.useRef(null),v=Ft(ma(t),b),R=w.useRef(null);w.useEffect(()=>{!c||!b.current||(x.current=!n)},[n,c]),w.useEffect(()=>{if(!c||!b.current)return;const k=gn(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),x.current&&b.current.focus()),()=>{s||(y.current&&y.current.focus&&(p.current=!0,y.current.focus()),y.current=null)}},[c]),w.useEffect(()=>{if(!c||!b.current)return;const k=gn(b.current),P=_=>{R.current=_,!(o||!u()||_.key!=="Tab")&&k.activeElement===b.current&&_.shiftKey&&(p.current=!0,g.current&&g.current.focus())},M=()=>{var V,I;const _=b.current;if(_===null)return;if(!k.hasFocus()||!u()||p.current){p.current=!1;return}if(_.contains(k.activeElement)||o&&k.activeElement!==h.current&&k.activeElement!==g.current)return;if(k.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!x.current)return;let N=[];if((k.activeElement===h.current||k.activeElement===g.current)&&(N=a(b.current)),N.length>0){const F=!!((V=R.current)!=null&&V.shiftKey&&((I=R.current)==null?void 0:I.key)==="Tab"),O=N[0],z=N[N.length-1];typeof O!="string"&&typeof z!="string"&&(F?z.focus():O.focus())}else _.focus()};k.addEventListener("focusin",M),k.addEventListener("keydown",P,!0);const j=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(j),k.removeEventListener("focusin",M),k.removeEventListener("keydown",P,!0)}},[n,o,s,u,c,a]);const E=k=>{y.current===null&&(y.current=k.relatedTarget),x.current=!0,C.current=k.target;const P=t.props.onFocus;P&&P(k)},L=k=>{y.current===null&&(y.current=k.relatedTarget),x.current=!0};return d.jsxs(w.Fragment,{children:[d.jsx("div",{tabIndex:c?0:-1,onFocus:L,ref:h,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:v,onFocus:E}),d.jsx("div",{tabIndex:c?0:-1,onFocus:L,ref:g,"data-testid":"sentinelEnd"})]})}function Vw(e){return typeof e=="function"?e():e}function Uw(e){return e?e.props.hasOwnProperty("in"):!1}const G2=()=>{},Sc=new _w;function Hw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:u,children:c,onClose:p,open:h,rootRef:g}=e,y=w.useRef({}),C=w.useRef(null),x=w.useRef(null),b=Ft(x,g),[v,R]=w.useState(!h),E=Uw(c);let L=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(L=!1);const k=()=>gn(C.current),P=()=>(y.current.modalRef=x.current,y.current.mount=C.current,y.current),M=()=>{Sc.mount(P(),{disableScrollLock:o}),x.current&&(x.current.scrollTop=0)},j=Or(()=>{const K=Vw(t)||k().body;Sc.add(P(),K),x.current&&M()}),_=()=>Sc.isTopModal(P()),N=Or(K=>{C.current=K,K&&(h&&_()?M():x.current&&kl(x.current,L))}),V=w.useCallback(()=>{Sc.remove(P(),L)},[L]);w.useEffect(()=>()=>{V()},[V]),w.useEffect(()=>{h?j():(!E||!s)&&V()},[h,V,E,s,j]);const I=K=>Q=>{var ee;(ee=K.onKeyDown)==null||ee.call(K,Q),!(Q.key!=="Escape"||Q.which===229||!_())&&(n||(Q.stopPropagation(),p&&p(Q,"escapeKeyDown")))},F=K=>Q=>{var ee;(ee=K.onClick)==null||ee.call(K,Q),Q.target===Q.currentTarget&&p&&p(Q,"backdropClick")};return{getRootProps:(K={})=>{const Q=Sl(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...K};return{role:"presentation",...ee,onKeyDown:I(ee),ref:b}},getBackdropProps:(K={})=>{const Q=K;return{"aria-hidden":!0,...Q,onClick:F(Q),open:h}},getTransitionProps:()=>{const K=()=>{R(!1),a&&a()},Q=()=>{R(!0),u&&u(),s&&V()};return{onEnter:a2(K,(c==null?void 0:c.props.onEnter)??G2),onExited:a2(Q,(c==null?void 0:c.props.onExited)??G2)}},rootRef:b,portalRef:N,isTopModal:_,exited:v,hasTransition:E}}function Ww(e){return Ue("MuiModal",e)}Ne("MuiModal",["root","hidden","backdrop"]);const Gw=e=>{const{open:t,exited:n,classes:o}=e;return He({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ww,o)},Kw=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ae(({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"}}]}))),qw=le(S4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Qw=w.forwardRef(function(t,n){const o=Ke({name:"MuiModal",props:t}),{BackdropComponent:s=qw,BackdropProps:a,classes:u,className:c,closeAfterTransition:p=!1,children:h,container:g,component:y,components:C={},componentsProps:x={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:R=!1,disablePortal:E=!1,disableRestoreFocus:L=!1,disableScrollLock:k=!1,hideBackdrop:P=!1,keepMounted:M=!1,onBackdropClick:j,onClose:_,onTransitionEnter:N,onTransitionExited:V,open:I,slotProps:F={},slots:O={},theme:z,...q}=o,K={...o,closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:R,disablePortal:E,disableRestoreFocus:L,disableScrollLock:k,hideBackdrop:P,keepMounted:M},{getRootProps:Q,getBackdropProps:ee,getTransitionProps:D,portalRef:G,isTopModal:te,exited:A,hasTransition:X}=Hw({...K,rootRef:n}),he={...K,exited:A},fe=Gw(he),pe={};if(h.props.tabIndex===void 0&&(pe.tabIndex="-1"),X){const{onEnter:Te,onExited:We}=D();pe.onEnter=Te,pe.onExited=We}const ie={...q,slots:{root:C.Root,backdrop:C.Backdrop,...O},slotProps:{...x,...F}},[Ce,xe]=At("root",{elementType:Kw,externalForwardedProps:ie,getSlotProps:Q,additionalProps:{ref:n,as:y},ownerState:he,className:ve(c,fe==null?void 0:fe.root,!he.open&&he.exited&&(fe==null?void 0:fe.hidden))}),[we,Re]=At("backdrop",{elementType:s,externalForwardedProps:ie,additionalProps:a,getSlotProps:Te=>ee({...Te,onClick:We=>{j&&j(We),Te!=null&&Te.onClick&&Te.onClick(We)}}),className:ve(a==null?void 0:a.className,fe==null?void 0:fe.backdrop),ownerState:he}),De=Ft(a==null?void 0:a.ref,Re.ref);return!M&&!I&&(!X||A)?null:d.jsx(Pd,{ref:G,container:g,disablePortal:E,children:d.jsxs(Ce,{...xe,children:[!P&&s?d.jsx(we,{...Re,ref:De}):null,d.jsx(Bw,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:L,isEnabled:te,open:I,children:w.cloneElement(h,pe)})]})})});function Yw(e){return Ue("MuiDivider",e)}const K2=Ne("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Xw=e=>{const{absolute:t,children:n,classes:o,flexItem:s,light:a,orientation:u,textAlign:c,variant:p}=e;return He({root:["root",t&&"absolute",p,a&&"light",u==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&u==="vertical"&&"withChildrenVertical",c==="right"&&u!=="vertical"&&"textAlignRight",c==="left"&&u!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",u==="vertical"&&"wrapperVertical"]},Yw,o)},Zw=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ae(({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:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:re(e.palette.divider,.08)}},{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%"}}}]}))),Jw=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ae(({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)`}}]}))),v1=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiDivider"}),{absolute:s=!1,children:a,className:u,orientation:c="horizontal",component:p=a||c==="vertical"?"div":"hr",flexItem:h=!1,light:g=!1,role:y=p!=="hr"?"separator":void 0,textAlign:C="center",variant:x="fullWidth",...b}=o,v={...o,absolute:s,component:p,flexItem:h,light:g,orientation:c,role:y,textAlign:C,variant:x},R=Xw(v);return d.jsx(Zw,{as:p,className:ve(R.root,u),role:y,ref:n,ownerState:v,"aria-orientation":y==="separator"&&(p!=="hr"||c==="vertical")?c:void 0,...b,children:a?d.jsx(Jw,{className:R.wrapper,ownerState:v,children:a}):null})});v1&&(v1.muiSkipListHighlight=!0);const eR=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:s,size:a,hiddenLabel:u,multiline:c}=e,p={root:["root",!n&&"underline",o&&"adornedStart",s&&"adornedEnd",a==="small"&&`size${ae(a)}`,u&&"hiddenLabel",c&&"multiline"],input:["input"]},h=He(p,rw,t);return{...t,...h}},tR=le(Ld,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Id(e,t),!n.disableUnderline&&t.underline]}})(Ae(({theme:e})=>{const t=e.palette.mode==="light",n=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)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg: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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Li.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Li.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:u})=>!u.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"},[`&.${Li.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Li.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Li.disabled}, .${Li.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Li.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Gt()).map(([u])=>{var c;return{props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(c=(e.vars||e).palette[u])==null?void 0:c.main}`}}}}),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:c})=>u.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),nR=le(Td,{name:"MuiFilledInput",slot:"Input",overridesResolver:Md})(Ae(({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}}]}))),Sh=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:a={},componentsProps:u,fullWidth:c=!1,hiddenLabel:p,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:C={},type:x="text",...b}=o,v={...o,disableUnderline:s,fullWidth:c,inputComponent:h,multiline:g,type:x},R=eR(o),E={root:{ownerState:v},input:{ownerState:v}},L=y??u?ln(E,y??u):E,k=C.root??a.Root??tR,P=C.input??a.Input??nR;return d.jsx(jd,{slots:{root:k,input:P},slotProps:L,fullWidth:c,inputComponent:h,multiline:g,ref:n,type:x,...b,classes:R})});Sh.muiName="Input";function rR(e){return Ue("MuiFormControl",e)}Ne("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const oR=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${ae(n)}`,o&&"fullWidth"]};return He(s,rR,t)},iR=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ae(n.margin)}`],n.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%"}}]}),Vc=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControl"}),{children:s,className:a,color:u="primary",component:c="div",disabled:p=!1,error:h=!1,focused:g,fullWidth:y=!1,hiddenLabel:C=!1,margin:x="none",required:b=!1,size:v="medium",variant:R="outlined",...E}=o,L={...o,color:u,component:c,disabled:p,error:h,fullWidth:y,hiddenLabel:C,margin:x,required:b,size:v,variant:R},k=oR(L),[P,M]=w.useState(()=>{let K=!1;return s&&w.Children.forEach(s,Q=>{if(!Nc(Q,["Input","Select"]))return;const ee=Nc(Q,["Select"])?Q.props.input:Q;ee&&ZS(ee.props)&&(K=!0)}),K}),[j,_]=w.useState(()=>{let K=!1;return s&&w.Children.forEach(s,Q=>{Nc(Q,["Input","Select"])&&(Jc(Q.props,!0)||Jc(Q.props.inputProps,!0))&&(K=!0)}),K}),[N,V]=w.useState(!1);p&&N&&V(!1);const I=g!==void 0&&!p?g:N;let F;w.useRef(!1);const O=w.useCallback(()=>{_(!0)},[]),z=w.useCallback(()=>{_(!1)},[]),q=w.useMemo(()=>({adornedStart:P,setAdornedStart:M,color:u,disabled:p,error:h,filled:j,focused:I,fullWidth:y,hiddenLabel:C,size:v,onBlur:()=>{V(!1)},onFocus:()=>{V(!0)},onEmpty:z,onFilled:O,registerEffect:F,required:b,variant:R}),[P,u,p,h,j,I,y,C,F,z,O,b,v,R]);return d.jsx(bh.Provider,{value:q,children:d.jsx(iR,{as:c,ownerState:L,className:ve(k.root,a),ref:n,...E,children:s})})});function sR(e){return Ue("MuiFormControlLabel",e)}const vl=Ne("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),aR=e=>{const{classes:t,disabled:n,labelPlacement:o,error:s,required:a}=e,u={root:["root",n&&"disabled",`labelPlacement${ae(o)}`,s&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",s&&"error"]};return He(u,sR,t)},lR=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vl.label}`]:t.label},t.root,t[`labelPlacement${ae(n.labelPlacement)}`]]}})(Ae(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${vl.disabled}`]:{cursor:"default"},[`& .${vl.label}`]:{[`&.${vl.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}}]}))),uR=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ae(({theme:e})=>({[`&.${vl.error}`]:{color:(e.vars||e).palette.error.main}}))),cR=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormControlLabel"}),{checked:s,className:a,componentsProps:u={},control:c,disabled:p,disableTypography:h,inputRef:g,label:y,labelPlacement:C="end",name:x,onChange:b,required:v,slots:R={},slotProps:E={},value:L,...k}=o,P=gi(),M=p??c.props.disabled??(P==null?void 0:P.disabled),j=v??c.props.required,_={disabled:M,required:j};["checked","name","onChange","value","inputRef"].forEach(K=>{typeof c.props[K]>"u"&&typeof o[K]<"u"&&(_[K]=o[K])});const N=os({props:o,muiFormControl:P,states:["error"]}),V={...o,disabled:M,labelPlacement:C,required:j,error:N.error},I=aR(V),F={slots:R,slotProps:{...u,...E}},[O,z]=At("typography",{elementType:ne,externalForwardedProps:F,ownerState:V});let q=y;return q!=null&&q.type!==ne&&!h&&(q=d.jsx(O,{component:"span",...z,className:ve(I.label,z==null?void 0:z.className),children:q})),d.jsxs(lR,{className:ve(I.root,a),ownerState:V,ref:n,...k,children:[w.cloneElement(c,_),j?d.jsxs("div",{children:[q,d.jsxs(uR,{ownerState:V,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):q]})});function dR(e){return Ue("MuiFormHelperText",e)}const q2=Ne("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Q2;const fR=e=>{const{classes:t,contained:n,size:o,disabled:s,error:a,filled:u,focused:c,required:p}=e,h={root:["root",s&&"disabled",a&&"error",o&&`size${ae(o)}`,n&&"contained",c&&"focused",u&&"filled",p&&"required"]};return He(h,dR,t)},pR=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ae(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ae(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${q2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${q2.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}}]}))),hR=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormHelperText"}),{children:s,className:a,component:u="p",disabled:c,error:p,filled:h,focused:g,margin:y,required:C,variant:x,...b}=o,v=gi(),R=os({props:o,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),E={...o,component:u,contained:R.variant==="filled"||R.variant==="outlined",variant:R.variant,size:R.size,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required};delete E.ownerState;const L=fR(E);return d.jsx(pR,{as:u,className:ve(L.root,a),ref:n,...b,ownerState:E,children:s===" "?Q2||(Q2=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function gR(e){return Ue("MuiFormLabel",e)}const El=Ne("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),mR=e=>{const{classes:t,color:n,focused:o,disabled:s,error:a,filled:u,required:c}=e,p={root:["root",`color${ae(n)}`,s&&"disabled",a&&"error",u&&"filled",o&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return He(p,gR,t)},yR=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ae(({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(Gt()).map(([t])=>({props:{color:t},style:{[`&.${El.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${El.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${El.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),vR=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Ae(({theme:e})=>({[`&.${El.error}`]:{color:(e.vars||e).palette.error.main}}))),xR=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiFormLabel"}),{children:s,className:a,color:u,component:c="label",disabled:p,error:h,filled:g,focused:y,required:C,...x}=o,b=gi(),v=os({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),R={...o,color:v.color||"primary",component:c,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},E=mR(R);return d.jsxs(yR,{as:c,ownerState:R,className:ve(E.root,a),ref:n,...x,children:[s,v.required&&d.jsxs(vR,{ownerState:R,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]})}),Y2=w.createContext();function CR(e){return Ue("MuiGrid",e)}const bR=[0,1,2,3,4,5,6,7,8,9,10],SR=["column-reverse","column","row-reverse","row"],wR=["nowrap","wrap-reverse","wrap"],sl=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bl=Ne("MuiGrid",["root","container","item","zeroMinWidth",...bR.map(e=>`spacing-xs-${e}`),...SR.map(e=>`direction-xs-${e}`),...wR.map(e=>`wrap-xs-${e}`),...sl.map(e=>`grid-xs-${e}`),...sl.map(e=>`grid-sm-${e}`),...sl.map(e=>`grid-md-${e}`),...sl.map(e=>`grid-lg-${e}`),...sl.map(e=>`grid-xl-${e}`)]);function RR({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((o,s)=>{let a={};if(t[s]&&(n=t[s]),!n)return o;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=Qi({values:t.columns,breakpoints:e.breakpoints.values}),c=typeof u=="object"?u[s]:u;if(c==null)return o;const p=`${Math.round(n/c*1e8)/1e6}%`;let h={};if(t.container&&t.item&&t.columnSpacing!==0){const g=e.spacing(t.columnSpacing);if(g!=="0px"){const y=`calc(${p} + ${g})`;h={flexBasis:y,maxWidth:y}}}a={flexBasis:p,flexGrow:0,maxWidth:p,...h}}return e.breakpoints.values[s]===0?Object.assign(o,a):o[e.breakpoints.up(s)]=a,o},{})}function kR({theme:e,ownerState:t}){const n=Qi({values:t.direction,breakpoints:e.breakpoints.values});return Wn({theme:e},n,o=>{const s={flexDirection:o};return o.startsWith("column")&&(s[`& > .${Bl.item}`]={maxWidth:"none"}),s})}function k4({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(s=>{n===""&&t[s]!==0&&(n=s)});const o=Object.keys(e).sort((s,a)=>e[s]-e[a]);return o.slice(0,o.indexOf(n))}function ER({theme:e,ownerState:t}){const{container:n,rowSpacing:o}=t;let s={};if(n&&o!==0){const a=Qi({values:o,breakpoints:e.breakpoints.values});let u;typeof a=="object"&&(u=k4({breakpoints:e.breakpoints.values,values:a})),s=Wn({theme:e},a,(c,p)=>{const h=e.spacing(c);return h!=="0px"?{marginTop:`calc(-1 * ${h})`,[`& > .${Bl.item}`]:{paddingTop:h}}:u!=null&&u.includes(p)?{}:{marginTop:0,[`& > .${Bl.item}`]:{paddingTop:0}}})}return s}function PR({theme:e,ownerState:t}){const{container:n,columnSpacing:o}=t;let s={};if(n&&o!==0){const a=Qi({values:o,breakpoints:e.breakpoints.values});let u;typeof a=="object"&&(u=k4({breakpoints:e.breakpoints.values,values:a})),s=Wn({theme:e},a,(c,p)=>{const h=e.spacing(c);if(h!=="0px"){const g=`calc(-1 * ${h})`;return{width:`calc(100% + ${h})`,marginLeft:g,[`& > .${Bl.item}`]:{paddingLeft:h}}}return u!=null&&u.includes(p)?{}:{width:"100%",marginLeft:0,[`& > .${Bl.item}`]:{paddingLeft:0}}})}return s}function IR(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const o=[];return t.forEach(s=>{const a=e[s];Number(a)>0&&o.push(n[`spacing-${s}-${String(a)}`])}),o}const MR=le("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:o,direction:s,item:a,spacing:u,wrap:c,zeroMinWidth:p,breakpoints:h}=n;let g=[];o&&(g=IR(u,h,t));const y=[];return h.forEach(C=>{const x=n[C];x&&y.push(t[`grid-${C}-${String(x)}`])}),[t.root,o&&t.container,a&&t.item,p&&t.zeroMinWidth,...g,s!=="row"&&t[`direction-xs-${String(s)}`],c!=="wrap"&&t[`wrap-xs-${String(c)}`],...y]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),kR,ER,PR,RR);function LR(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(o=>{const s=e[o];if(Number(s)>0){const a=`spacing-${o}-${String(s)}`;n.push(a)}}),n}const TR=e=>{const{classes:t,container:n,direction:o,item:s,spacing:a,wrap:u,zeroMinWidth:c,breakpoints:p}=e;let h=[];n&&(h=LR(a,p));const g=[];p.forEach(C=>{const x=e[C];x&&g.push(`grid-${C}-${String(x)}`)});const y={root:["root",n&&"container",s&&"item",c&&"zeroMinWidth",...h,o!=="row"&&`direction-xs-${String(o)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...g]};return He(y,CR,t)},tn=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiGrid"}),{breakpoints:s}=Gn(),a=xd(o),{className:u,columns:c,columnSpacing:p,component:h="div",container:g=!1,direction:y="row",item:C=!1,rowSpacing:x,spacing:b=0,wrap:v="wrap",zeroMinWidth:R=!1,...E}=a,L=x||b,k=p||b,P=w.useContext(Y2),M=g?c||12:P,j={},_={...E};s.keys.forEach(I=>{E[I]!=null&&(j[I]=E[I],delete _[I])});const N={...a,columns:M,container:g,direction:y,item:C,rowSpacing:L,columnSpacing:k,wrap:v,zeroMinWidth:R,spacing:b,...j,breakpoints:s.keys},V=TR(N);return d.jsx(Y2.Provider,{value:M,children:d.jsx(MR,{ownerState:N,className:ve(V.root,u),as:h,ref:n,..._})})});function x1(e){return`scale(${e}, ${e**2})`}const jR={entering:{opacity:1,transform:x1(1)},entered:{opacity:1,transform:"none"}},$p=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ed=w.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:a,easing:u,in:c,onEnter:p,onEntered:h,onEntering:g,onExit:y,onExited:C,onExiting:x,style:b,timeout:v="auto",TransitionComponent:R=$r,...E}=t,L=$i(),k=w.useRef(),P=Gn(),M=w.useRef(null),j=Ft(M,ma(a),n),_=K=>Q=>{if(K){const ee=M.current;Q===void 0?K(ee):K(ee,Q)}},N=_(g),V=_((K,Q)=>{u4(K);const{duration:ee,delay:D,easing:G}=oa({style:b,timeout:v,easing:u},{mode:"enter"});let te;v==="auto"?(te=P.transitions.getAutoHeightDuration(K.clientHeight),k.current=te):te=ee,K.style.transition=[P.transitions.create("opacity",{duration:te,delay:D}),P.transitions.create("transform",{duration:$p?te:te*.666,delay:D,easing:G})].join(","),p&&p(K,Q)}),I=_(h),F=_(x),O=_(K=>{const{duration:Q,delay:ee,easing:D}=oa({style:b,timeout:v,easing:u},{mode:"exit"});let G;v==="auto"?(G=P.transitions.getAutoHeightDuration(K.clientHeight),k.current=G):G=Q,K.style.transition=[P.transitions.create("opacity",{duration:G,delay:ee}),P.transitions.create("transform",{duration:$p?G:G*.666,delay:$p?ee:ee||G*.333,easing:D})].join(","),K.style.opacity=0,K.style.transform=x1(.75),y&&y(K)}),z=_(C),q=K=>{v==="auto"&&L.start(k.current||0,K),o&&o(M.current,K)};return d.jsx(R,{appear:s,in:c,nodeRef:M,onEnter:V,onEntered:I,onEntering:N,onExit:O,onExited:z,onExiting:F,addEndListener:q,timeout:v==="auto"?null:v,...E,children:(K,{ownerState:Q,...ee})=>w.cloneElement(a,{style:{opacity:0,transform:x1(.75),visibility:K==="exited"&&!c?"hidden":void 0,...jR[K],...b,...a.props.style},ref:j,...ee})})});ed&&(ed.muiSupportAuto=!0);const OR=By({themeId:jr}),_R=e=>{const{classes:t,disableUnderline:n}=e,s=He({root:["root",!n&&"underline"],input:["input"]},tw,t);return{...t,...s}},$R=le(Ld,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Id(e,t),!n.disableUnderline&&t.underline]}})(Ae(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{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"},[`&.${il.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${il.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${il.disabled}, .${il.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${il.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Gt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),AR=le(Td,{name:"MuiInput",slot:"Input",overridesResolver:Md})({}),wh=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:u,fullWidth:c=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:y={},type:C="text",...x}=o,b=_R(o),R={root:{ownerState:{disableUnderline:s}}},E=g??u?ln(g??u,R):R,L=y.root??a.Root??$R,k=y.input??a.Input??AR;return d.jsx(jd,{slots:{root:L,input:k},slotProps:E,fullWidth:c,inputComponent:p,multiline:h,ref:n,type:C,...x,classes:b})});wh.muiName="Input";function FR(e){return Ue("MuiInputLabel",e)}Ne("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const zR=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:a,variant:u,required:c}=e,p={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",o&&o!=="normal"&&`size${ae(o)}`,u],asterisk:[c&&"asterisk"]},h=He(p,FR,t);return{...t,...h}},NR=le(xR,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${El.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ae(({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:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.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:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Uc=w.forwardRef(function(t,n){const o=Ke({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:a,shrink:u,variant:c,className:p,...h}=o,g=gi();let y=u;typeof y>"u"&&g&&(y=g.filled||g.focused||g.adornedStart);const C=os({props:o,muiFormControl:g,states:["size","variant","required","focused"]}),x={...o,disableAnimation:s,formControl:g,shrink:y,size:C.size,variant:C.variant,required:C.required,focused:C.focused},b=zR(x);return d.jsx(NR,{"data-shrink":y,ref:n,className:ve(b.root,p),...h,ownerState:x,classes:b})});function DR(e){return Ue("MuiLink",e)}const BR=Ne("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),VR=({theme:e,ownerState:t})=>{const n=t.color,o=ai(e,`palette.${n}.main`,!1)||ai(e,`palette.${n}`,!1)||t.color,s=ai(e,`palette.${n}.mainChannel`)||ai(e,`palette.${n}Channel`);return"vars"in e&&s?`rgba(${s} / 0.4)`:re(o,.4)},X2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},UR=e=>{const{classes:t,component:n,focusVisible:o,underline:s}=e,a={root:["root",`underline${ae(s)}`,n==="button"&&"button",o&&"focusVisible"]};return He(a,DR,t)},HR=le(ne,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ae(n.underline)}`],n.component==="button"&&t.button]}})(Ae(({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:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:re(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:re(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:re(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"},[`&.${BR.focusVisible}`]:{outline:"auto"}}}]}))),Zr=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiLink"}),s=Gn(),{className:a,color:u="primary",component:c="a",onBlur:p,onFocus:h,TypographyClasses:g,underline:y="always",variant:C="inherit",sx:x,...b}=o,[v,R]=w.useState(!1),E=M=>{fi(M.target)||R(!1),p&&p(M)},L=M=>{fi(M.target)&&R(!0),h&&h(M)},k={...o,color:u,component:c,focusVisible:v,underline:y,variant:C},P=UR(k);return d.jsx(HR,{color:u,className:ve(P.root,a),classes:g,component:c,onBlur:E,onFocus:L,ref:n,ownerState:k,variant:C,...b,sx:[...X2[u]===void 0?[{color:u}]:[],...Array.isArray(x)?x:[x]],style:{...b.style,...y==="always"&&u!=="inherit"&&!X2[u]&&{"--Link-underlineColor":VR({theme:s,ownerState:k})}}})}),Xi=w.createContext({});function WR(e){return Ue("MuiList",e)}Ne("MuiList",["root","padding","dense","subheader"]);const GR=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return He({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},WR,t)},KR=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.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}}]}),E4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiList"}),{children:s,className:a,component:u="ul",dense:c=!1,disablePadding:p=!1,subheader:h,...g}=o,y=w.useMemo(()=>({dense:c}),[c]),C={...o,component:u,dense:c,disablePadding:p},x=GR(C);return d.jsx(Xi.Provider,{value:y,children:d.jsxs(KR,{as:u,className:ve(x.root,a),ref:n,ownerState:C,...g,children:[h,s]})})});function qR(e){return Ue("MuiListItem",e)}Ne("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const QR=Ne("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function YR(e){return Ue("MuiListItemSecondaryAction",e)}Ne("MuiListItemSecondaryAction",["root","disableGutters"]);const XR=e=>{const{disableGutters:t,classes:n}=e;return He({root:["root",t&&"disableGutters"]},YR,n)},ZR=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),P4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...a}=o,u=w.useContext(Xi),c={...o,disableGutters:u.disableGutters},p=XR(c);return d.jsx(ZR,{className:ve(p.root,s),ownerState:c,ref:n,...a})});P4.muiName="ListItemSecondaryAction";const JR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},ek=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:a,divider:u,hasSecondaryAction:c}=e;return He({root:["root",o&&"dense",!s&&"gutters",!a&&"padding",u&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},qR,n)},tk=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:JR})(Ae(({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:{[`& > .${QR.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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),nk=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),rk=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiListItem"}),{alignItems:s="center",children:a,className:u,component:c,components:p={},componentsProps:h={},ContainerComponent:g="li",ContainerProps:{className:y,...C}={},dense:x=!1,disableGutters:b=!1,disablePadding:v=!1,divider:R=!1,secondaryAction:E,slotProps:L={},slots:k={},...P}=o,M=w.useContext(Xi),j=w.useMemo(()=>({dense:x||M.dense||!1,alignItems:s,disableGutters:b}),[s,M.dense,x,b]),_=w.useRef(null),N=w.Children.toArray(a),V=N.length&&Nc(N[N.length-1],["ListItemSecondaryAction"]),I={...o,alignItems:s,dense:j.dense,disableGutters:b,disablePadding:v,divider:R,hasSecondaryAction:V},F=ek(I),O=Ft(_,n),z=k.root||p.Root||tk,q=L.root||h.root||{},K={className:ve(F.root,q.className,u),...P};let Q=c||"li";return V?(Q=!K.component&&!c?"div":Q,g==="li"&&(Q==="li"?Q="div":K.component==="li"&&(K.component="div")),d.jsx(Xi.Provider,{value:j,children:d.jsxs(nk,{as:g,className:ve(F.container,y),ref:O,ownerState:I,...C,children:[d.jsx(z,{...q,...!bo(z)&&{as:Q,ownerState:{...I,...q.ownerState}},...K,children:N}),N.pop()]})})):d.jsx(Xi.Provider,{value:j,children:d.jsxs(z,{...q,as:Q,ref:O,...!bo(z)&&{ownerState:{...I,...q.ownerState}},...K,children:[N,E&&d.jsx(P4,{children:E})]})})}),Z2=Ne("MuiListItemIcon",["root","alignItemsFlexStart"]),J2=Ne("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ap(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function e5(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function I4(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function al(e,t,n,o,s,a){let u=!1,c=s(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(u)return!1;u=!0}const p=o?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!I4(c,a)||p)c=s(e,c,n);else return c.focus(),!0}return!1}const ok=w.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:a=!1,children:u,className:c,disabledItemsFocusable:p=!1,disableListWrap:h=!1,onKeyDown:g,variant:y="selectedMenu",...C}=t,x=w.useRef(null),b=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});er(()=>{s&&x.current.focus()},[s]),w.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(k,{direction:P})=>{const M=!x.current.style.width;if(k.clientHeight{const P=x.current,M=k.key;if(k.ctrlKey||k.metaKey||k.altKey){g&&g(k);return}const _=gn(P).activeElement;if(M==="ArrowDown")k.preventDefault(),al(P,_,h,p,Ap);else if(M==="ArrowUp")k.preventDefault(),al(P,_,h,p,e5);else if(M==="Home")k.preventDefault(),al(P,null,h,p,Ap);else if(M==="End")k.preventDefault(),al(P,null,h,p,e5);else if(M.length===1){const N=b.current,V=M.toLowerCase(),I=performance.now();N.keys.length>0&&(I-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&V!==N.keys[0]&&(N.repeating=!1)),N.lastTime=I,N.keys.push(V);const F=_&&!N.repeating&&I4(_,N);N.previousKeyMatched&&(F||al(P,_,!1,p,Ap,N))?k.preventDefault():N.previousKeyMatched=!1}g&&g(k)},R=Ft(x,n);let E=-1;w.Children.forEach(u,(k,P)=>{if(!w.isValidElement(k)){E===P&&(E+=1,E>=u.length&&(E=-1));return}k.props.disabled||(y==="selectedMenu"&&k.props.selected||E===-1)&&(E=P),E===P&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(E+=1,E>=u.length&&(E=-1))});const L=w.Children.map(u,(k,P)=>{if(P===E){const M={};return a&&(M.autoFocus=!0),k.props.tabIndex===void 0&&y==="selectedMenu"&&(M.tabIndex=0),w.cloneElement(k,M)}return k});return d.jsx(E4,{role:"menu",ref:R,className:c,onKeyDown:v,tabIndex:s?0:-1,...C,children:L})});function ik(e){return Ue("MuiPopover",e)}Ne("MuiPopover",["root","paper"]);function t5(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function n5(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function r5(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Fp(e){return typeof e=="function"?e():e}const sk=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"]},ik,t)},ak=le(Qw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),M4=le(mn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),L4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:p="anchorEl",children:h,className:g,container:y,elevation:C=8,marginThreshold:x=16,open:b,PaperProps:v={},slots:R={},slotProps:E={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:k=ed,transitionDuration:P="auto",TransitionProps:{onEntering:M,...j}={},disableScrollLock:_=!1,...N}=o,V=(E==null?void 0:E.paper)??v,I=w.useRef(),F={...o,anchorOrigin:u,anchorReference:p,elevation:C,marginThreshold:x,externalPaperSlotProps:V,transformOrigin:L,TransitionComponent:k,transitionDuration:P,TransitionProps:j},O=sk(F),z=w.useCallback(()=>{if(p==="anchorPosition")return c;const Re=Fp(a),Te=(Re&&Re.nodeType===1?Re:gn(I.current).body).getBoundingClientRect();return{top:Te.top+t5(Te,u.vertical),left:Te.left+n5(Te,u.horizontal)}},[a,u.horizontal,u.vertical,c,p]),q=w.useCallback(Re=>({vertical:t5(Re,L.vertical),horizontal:n5(Re,L.horizontal)}),[L.horizontal,L.vertical]),K=w.useCallback(Re=>{const De={width:Re.offsetWidth,height:Re.offsetHeight},Te=q(De);if(p==="none")return{top:null,left:null,transformOrigin:r5(Te)};const We=z();let Fe=We.top-Te.vertical,tt=We.left-Te.horizontal;const gt=Fe+De.height,ze=tt+De.width,nt=ko(Fp(a)),mt=nt.innerHeight-x,ot=nt.innerWidth-x;if(x!==null&&Femt){const Je=gt-mt;Fe-=Je,Te.vertical+=Je}if(x!==null&&ttot){const Je=ze-ot;tt-=Je,Te.horizontal+=Je}return{top:`${Math.round(Fe)}px`,left:`${Math.round(tt)}px`,transformOrigin:r5(Te)}},[a,p,z,q,x]),[Q,ee]=w.useState(b),D=w.useCallback(()=>{const Re=I.current;if(!Re)return;const De=K(Re);De.top!==null&&Re.style.setProperty("top",De.top),De.left!==null&&(Re.style.left=De.left),Re.style.transformOrigin=De.transformOrigin,ee(!0)},[K]);w.useEffect(()=>(_&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[a,_,D]);const G=(Re,De)=>{M&&M(Re,De),D()},te=()=>{ee(!1)};w.useEffect(()=>{b&&D()}),w.useImperativeHandle(s,()=>b?{updatePosition:()=>{D()}}:null,[b,D]),w.useEffect(()=>{if(!b)return;const Re=Uy(()=>{D()}),De=ko(a);return De.addEventListener("resize",Re),()=>{Re.clear(),De.removeEventListener("resize",Re)}},[a,b,D]);let A=P;P==="auto"&&!k.muiSupportAuto&&(A=void 0);const X=y||(a?gn(Fp(a)).body:void 0),he={slots:R,slotProps:{...E,paper:V}},[fe,pe]=At("paper",{elementType:M4,externalForwardedProps:he,additionalProps:{elevation:C,className:ve(O.paper,V==null?void 0:V.className),style:Q?V.style:{...V.style,opacity:0}},ownerState:F}),[ie,{slotProps:Ce,...xe}]=At("root",{elementType:ak,externalForwardedProps:he,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:X,open:b},ownerState:F,className:ve(O.root,g)}),we=Ft(I,pe.ref);return d.jsx(ie,{...xe,...!bo(ie)&&{slotProps:Ce,disableScrollLock:_},...N,ref:n,children:d.jsx(k,{appear:!0,in:b,onEntering:G,onExited:te,timeout:A,...j,children:d.jsx(fe,{...pe,ref:we,children:h})})})});function lk(e){return Ue("MuiMenu",e)}Ne("MuiMenu",["root","paper","list"]);const uk={vertical:"top",horizontal:"right"},ck={vertical:"top",horizontal:"left"},dk=e=>{const{classes:t}=e;return He({root:["root"],paper:["paper"],list:["list"]},lk,t)},fk=le(L4,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pk=le(M4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hk=le(ok,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),T4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:u,disableAutoFocusItem:c=!1,MenuListProps:p={},onClose:h,open:g,PaperProps:y={},PopoverClasses:C,transitionDuration:x="auto",TransitionProps:{onEntering:b,...v}={},variant:R="selectedMenu",slots:E={},slotProps:L={},...k}=o,P=Sd(),M={...o,autoFocus:s,disableAutoFocusItem:c,MenuListProps:p,onEntering:b,PaperProps:y,transitionDuration:x,TransitionProps:v,variant:R},j=dk(M),_=s&&!c&&g,N=w.useRef(null),V=(Q,ee)=>{N.current&&N.current.adjustStyleForScrollbar(Q,{direction:P?"rtl":"ltr"}),b&&b(Q,ee)},I=Q=>{Q.key==="Tab"&&(Q.preventDefault(),h&&h(Q,"tabKeyDown"))};let F=-1;w.Children.map(a,(Q,ee)=>{w.isValidElement(Q)&&(Q.props.disabled||(R==="selectedMenu"&&Q.props.selected||F===-1)&&(F=ee))});const O=E.paper??pk,z=L.paper??y,q=Ir({elementType:E.root,externalSlotProps:L.root,ownerState:M,className:[j.root,u]}),K=Ir({elementType:O,externalSlotProps:z,ownerState:M,className:j.paper});return d.jsx(fk,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?uk:ck,slots:{paper:O,root:E.root},slotProps:{root:q,paper:K},open:g,ref:n,transitionDuration:x,TransitionProps:{onEntering:V,...v},ownerState:M,...k,classes:C,children:d.jsx(hk,{onKeyDown:I,actions:N,autoFocus:s&&(F===-1||c),autoFocusItem:_,variant:R,...p,className:ve(j.list,p.className),children:a})})});function gk(e){return Ue("MuiMenuItem",e)}const ll=Ne("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),mk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},yk=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:a,classes:u}=e,p=He({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",a&&"selected"]},gk,u);return{...u,...p}},vk=le(Eo,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mk})(Ae(({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"}},[`&.${ll.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ll.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ll.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:re(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ll.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${K2.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${K2.inset}`]:{marginLeft:52},[`& .${J2.root}`]:{marginTop:0,marginBottom:0},[`& .${J2.inset}`]:{paddingLeft:36},[`& .${Z2.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,[`& .${Z2.root} svg`]:{fontSize:"1.25rem"}}}]}))),vo=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:a="li",dense:u=!1,divider:c=!1,disableGutters:p=!1,focusVisibleClassName:h,role:g="menuitem",tabIndex:y,className:C,...x}=o,b=w.useContext(Xi),v=w.useMemo(()=>({dense:u||b.dense||!1,disableGutters:p}),[b.dense,u,p]),R=w.useRef(null);er(()=>{s&&R.current&&R.current.focus()},[s]);const E={...o,dense:v.dense,divider:c,disableGutters:p},L=yk(o),k=Ft(R,n);let P;return o.disabled||(P=y!==void 0?y:-1),d.jsx(Xi.Provider,{value:v,children:d.jsx(vk,{ref:k,role:g,tabIndex:P,component:a,focusVisibleClassName:ve(L.focusVisible,h),className:ve(L.root,C),...x,ownerState:E,classes:L})})});function xk(e){return Ue("MuiNativeSelect",e)}const Rh=Ne("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ck=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:a,error:u}=e,c={select:["select",n,o&&"disabled",s&&"multiple",u&&"error"],icon:["icon",`icon${ae(n)}`,a&&"iconOpen",o&&"disabled"]};return He(c,xk,t)},j4=le("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Rh.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}}}]})),bk=le(j4,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:rr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Rh.multiple}`]:t.multiple}]}})({}),O4=le("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Rh.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}}]})),Sk=le(O4,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),wk=w.forwardRef(function(t,n){const{className:o,disabled:s,error:a,IconComponent:u,inputRef:c,variant:p="standard",...h}=t,g={...t,disabled:s,variant:p,error:a},y=Ck(g);return d.jsxs(w.Fragment,{children:[d.jsx(bk,{ownerState:g,className:ve(y.select,o),disabled:s,ref:c||n,...h}),t.multiple?null:d.jsx(Sk,{as:u,ownerState:g,className:y.icon})]})});var o5;const Rk=le("fieldset",{shouldForwardProp:rr})({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%"}),kk=le("legend",{shouldForwardProp:rr})(Ae(({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 Ek(e){const{children:t,classes:n,className:o,label:s,notched:a,...u}=e,c=s!=null&&s!=="",p={...e,notched:a,withLabel:c};return d.jsx(Rk,{"aria-hidden":!0,className:o,ownerState:p,...u,children:d.jsx(kk,{ownerState:p,children:c?d.jsx("span",{children:s}):o5||(o5=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Pk=e=>{const{classes:t}=e,o=He({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nw,t);return{...t,...o}},Ik=le(Ld,{shouldForwardProp:e=>rr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Id})(Ae(({theme:e})=>{const 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 .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ur.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Gt()).map(([n])=>({props:{color:n},style:{[`&.${Ur.focused} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ur.error} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ur.disabled} .${Ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),Mk=le(Ek,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Ae(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Lk=le(Td,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Md})(Ae(({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}}]}))),kh=w.forwardRef(function(t,n){var o;const s=Ke({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:u=!1,inputComponent:c="input",label:p,multiline:h=!1,notched:g,slots:y={},type:C="text",...x}=s,b=Pk(s),v=gi(),R=os({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E={...s,color:R.color||"primary",disabled:R.disabled,error:R.error,focused:R.focused,formControl:v,fullWidth:u,hiddenLabel:R.hiddenLabel,multiline:h,size:R.size,type:C},L=y.root??a.Root??Ik,k=y.input??a.Input??Lk;return d.jsx(jd,{slots:{root:L,input:k},renderSuffix:P=>d.jsx(Mk,{ownerState:E,className:b.notchedOutline,label:p!=null&&p!==""&&R.required?o||(o=d.jsxs(w.Fragment,{children:[p," ","*"]})):p,notched:typeof g<"u"?g:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:u,inputComponent:c,multiline:h,ref:n,type:C,...x,classes:{...b,notchedOutline:null}})});kh.muiName="Input";function _4(e){return Ue("MuiSelect",e)}const ul=Ne("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var i5;const Tk=le(j4,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ul.select}`]:t.select},{[`&.${ul.select}`]:t[n.variant]},{[`&.${ul.error}`]:t.error},{[`&.${ul.multiple}`]:t.multiple}]}})({[`&.${ul.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jk=le(O4,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ae(n.variant)}`],n.open&&t.iconOpen]}})({}),Ok=le("input",{shouldForwardProp:e=>Rd(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function s5(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _k(e){return e==null||typeof e=="string"&&!e.trim()}const $k=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:a,error:u}=e,c={select:["select",n,o&&"disabled",s&&"multiple",u&&"error"],icon:["icon",`icon${ae(n)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return He(c,_4,t)},Ak=w.forwardRef(function(t,n){var Ct;const{"aria-describedby":o,"aria-label":s,autoFocus:a,autoWidth:u,children:c,className:p,defaultOpen:h,defaultValue:g,disabled:y,displayEmpty:C,error:x=!1,IconComponent:b,inputRef:v,labelId:R,MenuProps:E={},multiple:L,name:k,onBlur:P,onChange:M,onClose:j,onFocus:_,onOpen:N,open:V,readOnly:I,renderValue:F,required:O,SelectDisplayProps:z={},tabIndex:q,type:K,value:Q,variant:ee="standard",...D}=t,[G,te]=ra({controlled:Q,default:g,name:"Select"}),[A,X]=ra({controlled:V,default:h,name:"Select"}),he=w.useRef(null),fe=w.useRef(null),[pe,ie]=w.useState(null),{current:Ce}=w.useRef(V!=null),[xe,we]=w.useState(),Re=Ft(n,v),De=w.useCallback(_e=>{fe.current=_e,_e&&ie(_e)},[]),Te=pe==null?void 0:pe.parentNode;w.useImperativeHandle(Re,()=>({focus:()=>{fe.current.focus()},node:he.current,value:G}),[G]),w.useEffect(()=>{h&&A&&pe&&!Ce&&(we(u?null:Te.clientWidth),fe.current.focus())},[pe,u]),w.useEffect(()=>{a&&fe.current.focus()},[a]),w.useEffect(()=>{if(!R)return;const _e=gn(fe.current).getElementById(R);if(_e){const ut=()=>{getSelection().isCollapsed&&fe.current.focus()};return _e.addEventListener("click",ut),()=>{_e.removeEventListener("click",ut)}}},[R]);const We=(_e,ut)=>{_e?N&&N(ut):j&&j(ut),Ce||(we(u?null:Te.clientWidth),X(_e))},Fe=_e=>{_e.button===0&&(_e.preventDefault(),fe.current.focus(),We(!0,_e))},tt=_e=>{We(!1,_e)},gt=w.Children.toArray(c),ze=_e=>{const ut=gt.find(Pt=>Pt.props.value===_e.target.value);ut!==void 0&&(te(ut.props.value),M&&M(_e,ut))},nt=_e=>ut=>{let Pt;if(ut.currentTarget.hasAttribute("tabindex")){if(L){Pt=Array.isArray(G)?G.slice():[];const un=G.indexOf(_e.props.value);un===-1?Pt.push(_e.props.value):Pt.splice(un,1)}else Pt=_e.props.value;if(_e.props.onClick&&_e.props.onClick(ut),G!==Pt&&(te(Pt),M)){const un=ut.nativeEvent||ut,or=new un.constructor(un.type,un);Object.defineProperty(or,"target",{writable:!0,value:{value:Pt,name:k}}),M(or,_e)}L||We(!1,ut)}},mt=_e=>{I||[" ","ArrowUp","ArrowDown","Enter"].includes(_e.key)&&(_e.preventDefault(),We(!0,_e))},ot=pe!==null&&A,Je=_e=>{!ot&&P&&(Object.defineProperty(_e,"target",{writable:!0,value:{value:G,name:k}}),P(_e))};delete D["aria-invalid"];let Ee,Tt;const yt=[];let se=!1;(Jc({value:G})||C)&&(F?Ee=F(G):se=!0);const me=gt.map(_e=>{if(!w.isValidElement(_e))return null;let ut;if(L){if(!Array.isArray(G))throw new Error(So(2));ut=G.some(Pt=>s5(Pt,_e.props.value)),ut&&se&&yt.push(_e.props.children)}else ut=s5(G,_e.props.value),ut&&se&&(Tt=_e.props.children);return w.cloneElement(_e,{"aria-selected":ut?"true":"false",onClick:nt(_e),onKeyUp:Pt=>{Pt.key===" "&&Pt.preventDefault(),_e.props.onKeyUp&&_e.props.onKeyUp(Pt)},role:"option",selected:ut,value:void 0,"data-value":_e.props.value})});se&&(L?yt.length===0?Ee=null:Ee=yt.reduce((_e,ut,Pt)=>(_e.push(ut),Pt{const{classes:t}=e,o=He({root:["root"]},_4,t);return{...t,...o}},Eh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>rr(e)&&e!=="variant",slot:"Root"},zk=le(wh,Eh)(""),Nk=le(kh,Eh)(""),Dk=le(Sh,Eh)(""),Pl=w.forwardRef(function(t,n){const o=Ke({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:a,classes:u={},className:c,defaultOpen:p=!1,displayEmpty:h=!1,IconComponent:g=ow,id:y,input:C,inputProps:x,label:b,labelId:v,MenuProps:R,multiple:E=!1,native:L=!1,onClose:k,onOpen:P,open:M,renderValue:j,SelectDisplayProps:_,variant:N="outlined",...V}=o,I=L?wk:Ak,F=gi(),O=os({props:o,muiFormControl:F,states:["variant","error"]}),z=O.variant||N,q={...o,variant:z,classes:u},K=Fk(q),{...Q}=K,ee=C||{standard:d.jsx(zk,{ownerState:q}),outlined:d.jsx(Nk,{label:b,ownerState:q}),filled:d.jsx(Dk,{ownerState:q})}[z],D=Ft(n,ma(ee));return d.jsx(w.Fragment,{children:w.cloneElement(ee,{inputComponent:I,inputProps:{children:a,error:O.error,IconComponent:g,variant:z,type:void 0,multiple:E,...L?{id:y}:{autoWidth:s,defaultOpen:p,displayEmpty:h,labelId:v,MenuProps:R,onClose:k,onOpen:P,open:M,renderValue:j,SelectDisplayProps:{id:y,..._}},...x,classes:x?ln(Q,x.classes):Q,...C?C.props.inputProps:{}},...(E&&L||h)&&z==="outlined"?{notched:!0}:{},ref:D,className:ve(ee.props.className,c,K.root),...!C&&{variant:z},...V})})});Pl.muiName="Select";function Bk(e){return Ue("MuiSkeleton",e)}Ne("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Vk=e=>{const{classes:t,variant:n,animation:o,hasChildren:s,width:a,height:u}=e;return He({root:["root",n,o,s&&"withChildren",s&&!a&&"fitContent",s&&!u&&"heightAuto"]},Bk,t)},C1=rs` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`,b1=rs` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`,Uk=typeof C1!="string"?Xl` + animation: ${C1} 2s ease-in-out 0.5s infinite; + `:null,Hk=typeof b1!="string"?Xl` + &::after { + animation: ${b1} 2s linear 0.5s infinite; + } + `:null,Wk=le("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Ae(({theme:e})=>{const t=Z7(e.shape.borderRadius)||"px",n=J7(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:re(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Uk||{animation:`${C1} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Hk||{"&::after":{animation:`${b1} 2s linear 0.5s infinite`}}}]}})),Xr=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:a,component:u="span",height:c,style:p,variant:h="text",width:g,...y}=o,C={...o,animation:s,component:u,variant:h,hasChildren:!!y.children},x=Vk(C);return d.jsx(Wk,{as:u,ref:n,className:ve(x.root,a),ownerState:C,...y,style:{width:g,height:c,...p}})});function Gk(e,t,n=(o,s)=>o===s){return e.length===t.length&&e.every((o,s)=>n(o,t[s]))}const Kk=2;function Os(e,t,n,o,s){return n===1?Math.min(e+t,s):Math.max(e-t,o)}function $4(e,t){return e-t}function a5(e,t){const{index:n}=e.reduce((o,s,a)=>{const u=Math.abs(t-s);return o===null||u({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Zk=e=>e;let Ec;function u5(){return Ec===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ec=CSS.supports("touch-action","none"):Ec=!0),Ec}function Jk(e){const{"aria-labelledby":t,defaultValue:n,disabled:o=!1,disableSwap:s=!1,isRtl:a=!1,marks:u=!1,max:c=100,min:p=0,name:h,onChange:g,onChangeCommitted:y,orientation:C="horizontal",rootRef:x,scale:b=Zk,step:v=1,shiftStep:R=10,tabIndex:E,value:L}=e,k=w.useRef(void 0),[P,M]=w.useState(-1),[j,_]=w.useState(-1),[N,V]=w.useState(!1),I=w.useRef(0),F=w.useRef(null),[O,z]=ra({controlled:L,default:n??p,name:"Slider"}),q=g&&((se,me,ye)=>{const Pe=se.nativeEvent||se,$e=new Pe.constructor(Pe.type,Pe);Object.defineProperty($e,"target",{writable:!0,value:{value:me,name:h}}),F.current=me,g($e,me,ye)}),K=Array.isArray(O);let Q=K?O.slice().sort($4):[O];Q=Q.map(se=>se==null?p:As(se,p,c));const ee=u===!0&&v!==null?[...Array(Math.floor((c-p)/v)+1)].map((se,me)=>({value:p+v*me})):u||[],D=ee.map(se=>se.value),[G,te]=w.useState(-1),A=w.useRef(null),X=Ft(x,A),he=se=>me=>{var Pe;const ye=Number(me.currentTarget.getAttribute("data-index"));fi(me.target)&&te(ye),_(ye),(Pe=se==null?void 0:se.onFocus)==null||Pe.call(se,me)},fe=se=>me=>{var ye;fi(me.target)||te(-1),_(-1),(ye=se==null?void 0:se.onBlur)==null||ye.call(se,me)},pe=(se,me)=>{const ye=Number(se.currentTarget.getAttribute("data-index")),Pe=Q[ye],$e=D.indexOf(Pe);let Se=me;if(ee&&v==null){const be=D[D.length-1];Se>=be?Se=be:Se<=D[0]?Se=D[0]:Se=Seme=>{var ye;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(me.key)){me.preventDefault();const Pe=Number(me.currentTarget.getAttribute("data-index")),$e=Q[Pe];let Se=null;if(v!=null){const be=me.shiftKey?R:v;switch(me.key){case"ArrowUp":Se=Os($e,be,1,p,c);break;case"ArrowRight":Se=Os($e,be,a?-1:1,p,c);break;case"ArrowDown":Se=Os($e,be,-1,p,c);break;case"ArrowLeft":Se=Os($e,be,a?1:-1,p,c);break;case"PageUp":Se=Os($e,R,1,p,c);break;case"PageDown":Se=Os($e,R,-1,p,c);break;case"Home":Se=p;break;case"End":Se=c;break}}else if(ee){const be=D[D.length-1],rt=D.indexOf($e),lt=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ct=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];lt.includes(me.key)?rt===0?Se=D[0]:Se=D[rt-1]:Ct.includes(me.key)&&(rt===D.length-1?Se=be:Se=D[rt+1])}Se!=null&&pe(me,Se)}(ye=se==null?void 0:se.onKeyDown)==null||ye.call(se,me)};er(()=>{var se;o&&A.current.contains(document.activeElement)&&((se=document.activeElement)==null||se.blur())},[o]),o&&P!==-1&&M(-1),o&&G!==-1&&te(-1);const Ce=se=>me=>{var ye;(ye=se.onChange)==null||ye.call(se,me),pe(me,me.target.valueAsNumber)},xe=w.useRef(void 0);let we=C;a&&C==="horizontal"&&(we+="-reverse");const Re=({finger:se,move:me=!1})=>{const{current:ye}=A,{width:Pe,height:$e,bottom:Se,left:be}=ye.getBoundingClientRect();let rt;we.startsWith("vertical")?rt=(Se-se.y)/$e:rt=(se.x-be)/Pe,we.includes("-reverse")&&(rt=1-rt);let lt;if(lt=qk(rt,p,c),v)lt=Yk(lt,v,p);else{const _e=a5(D,lt);lt=D[_e]}lt=As(lt,p,c);let Ct=0;if(K){me?Ct=xe.current:Ct=a5(Q,lt),s&&(lt=As(lt,Q[Ct-1]||-1/0,Q[Ct+1]||1/0));const _e=lt;lt=l5({values:Q,newValue:lt,index:Ct}),s&&me||(Ct=lt.indexOf(_e),xe.current=Ct)}return{newValue:lt,activeIndex:Ct}},De=Or(se=>{const me=wc(se,k);if(!me)return;if(I.current+=1,se.type==="mousemove"&&se.buttons===0){Te(se);return}const{newValue:ye,activeIndex:Pe}=Re({finger:me,move:!0});Rc({sliderRef:A,activeIndex:Pe,setActive:M}),z(ye),!N&&I.current>Kk&&V(!0),q&&!kc(ye,O)&&q(se,ye,Pe)}),Te=Or(se=>{const me=wc(se,k);if(V(!1),!me)return;const{newValue:ye}=Re({finger:me,move:!0});M(-1),se.type==="touchend"&&_(-1),y&&y(se,F.current??ye),k.current=void 0,Fe()}),We=Or(se=>{if(o)return;u5()||se.preventDefault();const me=se.changedTouches[0];me!=null&&(k.current=me.identifier);const ye=wc(se,k);if(ye!==!1){const{newValue:$e,activeIndex:Se}=Re({finger:ye});Rc({sliderRef:A,activeIndex:Se,setActive:M}),z($e),q&&!kc($e,O)&&q(se,$e,Se)}I.current=0;const Pe=gn(A.current);Pe.addEventListener("touchmove",De,{passive:!0}),Pe.addEventListener("touchend",Te,{passive:!0})}),Fe=w.useCallback(()=>{const se=gn(A.current);se.removeEventListener("mousemove",De),se.removeEventListener("mouseup",Te),se.removeEventListener("touchmove",De),se.removeEventListener("touchend",Te)},[Te,De]);w.useEffect(()=>{const{current:se}=A;return se.addEventListener("touchstart",We,{passive:u5()}),()=>{se.removeEventListener("touchstart",We),Fe()}},[Fe,We]),w.useEffect(()=>{o&&Fe()},[o,Fe]);const tt=se=>me=>{var $e;if(($e=se.onMouseDown)==null||$e.call(se,me),o||me.defaultPrevented||me.button!==0)return;me.preventDefault();const ye=wc(me,k);if(ye!==!1){const{newValue:Se,activeIndex:be}=Re({finger:ye});Rc({sliderRef:A,activeIndex:be,setActive:M}),z(Se),q&&!kc(Se,O)&&q(me,Se,be)}I.current=0;const Pe=gn(A.current);Pe.addEventListener("mousemove",De,{passive:!0}),Pe.addEventListener("mouseup",Te)},gt=td(K?Q[0]:p,p,c),ze=td(Q[Q.length-1],p,c)-gt,nt=(se={})=>{const me=Sl(se),ye={onMouseDown:tt(me||{})},Pe={...me,...ye};return{...se,ref:X,...Pe}},mt=se=>me=>{var Pe;(Pe=se.onMouseOver)==null||Pe.call(se,me);const ye=Number(me.currentTarget.getAttribute("data-index"));_(ye)},ot=se=>me=>{var ye;(ye=se.onMouseLeave)==null||ye.call(se,me),_(-1)},Je=(se={})=>{const me=Sl(se),ye={onMouseOver:mt(me||{}),onMouseLeave:ot(me||{})};return{...se,...me,...ye}},Ee=se=>({pointerEvents:P!==-1&&P!==se?"none":void 0});let Tt;return C==="vertical"&&(Tt=a?"vertical-rl":"vertical-lr"),{active:P,axis:we,axisProps:Xk,dragging:N,focusedThumbIndex:G,getHiddenInputProps:(se={})=>{const me=Sl(se),ye={onChange:Ce(me||{}),onFocus:he(me||{}),onBlur:fe(me||{}),onKeyDown:ie(me||{})},Pe={...me,...ye};return{tabIndex:E,"aria-labelledby":t,"aria-orientation":C,"aria-valuemax":b(c),"aria-valuemin":b(p),name:h,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:o,...se,...Pe,style:{...q9,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Tt}}},getRootProps:nt,getThumbProps:Je,marks:ee,open:j,range:K,rootRef:X,trackLeap:ze,trackOffset:gt,values:Q,getThumbStyle:Ee}}const eE=e=>!e||!bo(e);function tE(e){return Ue("MuiSlider",e)}const mr=Ne("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),nE=e=>{const{open:t}=e;return{offset:ve(t&&mr.valueLabelOpen),circle:mr.valueLabelCircle,label:mr.valueLabelLabel}};function rE(e){const{children:t,className:n,value:o}=e,s=nE(e);return t?w.cloneElement(t,{className:ve(t.props.className)},d.jsxs(w.Fragment,{children:[t.props.children,d.jsx("span",{className:ve(s.offset,n),"aria-hidden":!0,children:d.jsx("span",{className:s.circle,children:d.jsx("span",{className:s.label,children:o})})})]})):null}function c5(e){return e}const oE=le("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ae(n.color)}`],n.size!=="medium"&&t[`size${ae(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ae(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${mr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${mr.dragging}`]:{[`& .${mr.thumb}, & .${mr.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),iE=le("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),sE=le("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Ae(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:Ro(e.palette[t].main,.62),borderColor:Ro(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:wo(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:wo(e.palette[t].main,.5)})}}}))]}))),aE=le("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ae(n.color)}`],n.size!=="medium"&&t[`thumbSize${ae(n.size)}`]]}})(Ae(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${mr.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Gt()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${mr.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${re(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${mr.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${re(e.palette[t].main,.16)}`}}}}))]}))),lE=le(rE,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Ae(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${mr.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${mr.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),uE=le("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Rd(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ae(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),cE=le("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Rd(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Ae(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),dE=e=>{const{disabled:t,dragging:n,marked:o,orientation:s,track:a,classes:u,color:c,size:p}=e,h={root:["root",t&&"disabled",n&&"dragging",o&&"marked",s==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",c&&`color${ae(c)}`,p&&`size${ae(p)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",p&&`thumbSize${ae(p)}`,c&&`thumbColor${ae(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return He(h,tE,u)},fE=({children:e})=>e,A4=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSlider"}),s=Sd(),{"aria-label":a,"aria-valuetext":u,"aria-labelledby":c,component:p="span",components:h={},componentsProps:g={},color:y="primary",classes:C,className:x,disableSwap:b=!1,disabled:v=!1,getAriaLabel:R,getAriaValueText:E,marks:L=!1,max:k=100,min:P=0,name:M,onChange:j,onChangeCommitted:_,orientation:N="horizontal",shiftStep:V=10,size:I="medium",step:F=1,scale:O=c5,slotProps:z,slots:q,tabIndex:K,track:Q="normal",value:ee,valueLabelDisplay:D="off",valueLabelFormat:G=c5,...te}=o,A={...o,isRtl:s,max:k,min:P,classes:C,disabled:v,disableSwap:b,orientation:N,marks:L,color:y,size:I,step:F,shiftStep:V,scale:O,track:Q,valueLabelDisplay:D,valueLabelFormat:G},{axisProps:X,getRootProps:he,getHiddenInputProps:fe,getThumbProps:pe,open:ie,active:Ce,axis:xe,focusedThumbIndex:we,range:Re,dragging:De,marks:Te,values:We,trackOffset:Fe,trackLeap:tt,getThumbStyle:gt}=Jk({...A,rootRef:n});A.marked=Te.length>0&&Te.some(wt=>wt.label),A.dragging=De,A.focusedThumbIndex=we;const ze=dE(A),nt=(q==null?void 0:q.root)??h.Root??oE,mt=(q==null?void 0:q.rail)??h.Rail??iE,ot=(q==null?void 0:q.track)??h.Track??sE,Je=(q==null?void 0:q.thumb)??h.Thumb??aE,Ee=(q==null?void 0:q.valueLabel)??h.ValueLabel??lE,Tt=(q==null?void 0:q.mark)??h.Mark??uE,yt=(q==null?void 0:q.markLabel)??h.MarkLabel??cE,se=(q==null?void 0:q.input)??h.Input??"input",me=(z==null?void 0:z.root)??g.root,ye=(z==null?void 0:z.rail)??g.rail,Pe=(z==null?void 0:z.track)??g.track,$e=(z==null?void 0:z.thumb)??g.thumb,Se=(z==null?void 0:z.valueLabel)??g.valueLabel,be=(z==null?void 0:z.mark)??g.mark,rt=(z==null?void 0:z.markLabel)??g.markLabel,lt=(z==null?void 0:z.input)??g.input,Ct=Ir({elementType:nt,getSlotProps:he,externalSlotProps:me,externalForwardedProps:te,additionalProps:{...eE(nt)&&{as:p}},ownerState:{...A,...me==null?void 0:me.ownerState},className:[ze.root,x]}),_e=Ir({elementType:mt,externalSlotProps:ye,ownerState:A,className:ze.rail}),ut=Ir({elementType:ot,externalSlotProps:Pe,additionalProps:{style:{...X[xe].offset(Fe),...X[xe].leap(tt)}},ownerState:{...A,...Pe==null?void 0:Pe.ownerState},className:ze.track}),Pt=Ir({elementType:Je,getSlotProps:pe,externalSlotProps:$e,ownerState:{...A,...$e==null?void 0:$e.ownerState},className:ze.thumb}),un=Ir({elementType:Ee,externalSlotProps:Se,ownerState:{...A,...Se==null?void 0:Se.ownerState},className:ze.valueLabel}),or=Ir({elementType:Tt,externalSlotProps:be,ownerState:A,className:ze.mark}),ro=Ir({elementType:yt,externalSlotProps:rt,ownerState:A,className:ze.markLabel}),Ar=Ir({elementType:se,getSlotProps:fe,externalSlotProps:lt,ownerState:A});return d.jsxs(nt,{...Ct,children:[d.jsx(mt,{..._e}),d.jsx(ot,{...ut}),Te.filter(wt=>wt.value>=P&&wt.value<=k).map((wt,Dt)=>{const Mo=td(wt.value,P,k),oo=X[xe].offset(Mo);let Tn;return Q===!1?Tn=We.includes(wt.value):Tn=Q==="normal"&&(Re?wt.value>=We[0]&&wt.value<=We[We.length-1]:wt.value<=We[0])||Q==="inverted"&&(Re?wt.value<=We[0]||wt.value>=We[We.length-1]:wt.value>=We[0]),d.jsxs(w.Fragment,{children:[d.jsx(Tt,{"data-index":Dt,...or,...!bo(Tt)&&{markActive:Tn},style:{...oo,...or.style},className:ve(or.className,Tn&&ze.markActive)}),wt.label!=null?d.jsx(yt,{"aria-hidden":!0,"data-index":Dt,...ro,...!bo(yt)&&{markLabelActive:Tn},style:{...oo,...ro.style},className:ve(ze.markLabel,ro.className,Tn&&ze.markLabelActive),children:wt.label}):null]},Dt)}),We.map((wt,Dt)=>{const Mo=td(wt,P,k),oo=X[xe].offset(Mo),Tn=D==="off"?fE:Ee;return d.jsx(Tn,{...!bo(Tn)&&{valueLabelFormat:G,valueLabelDisplay:D,value:typeof G=="function"?G(O(wt),Dt):G,index:Dt,open:ie===Dt||Ce===Dt||D==="on",disabled:v},...un,children:d.jsx(Je,{"data-index":Dt,...Pt,className:ve(ze.thumb,Pt.className,Ce===Dt&&ze.active,we===Dt&&ze.focusVisible),style:{...oo,...gt(Dt),...Pt.style},children:d.jsx(se,{"data-index":Dt,"aria-label":R?R(Dt):a,"aria-valuenow":O(wt),"aria-labelledby":c,"aria-valuetext":E?E(O(wt),Dt):u,value:We[Dt],...Ar})})},Dt)})]})});function pE(e){return Ue("MuiTooltip",e)}const Wt=Ne("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function hE(e){return Math.round(e*1e5)/1e5}const gE=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:s,placement:a}=e,u={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",s&&"touch",`tooltipPlacement${ae(a.split("-")[0])}`],arrow:["arrow"]};return He(u,pE,t)},mE=le(b4,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ae(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Wt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Wt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Wt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Wt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Wt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),yE=le("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ae(n.placement.split("-")[0])}`]]}})(Ae(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:re(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Wt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Wt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Wt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${hE(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Wt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Wt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Wt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Wt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),vE=le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ae(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:re(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Pc=!1;const d5=new bd;let cl={x:0,y:0};function Ic(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const Ln=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTooltip"}),{arrow:s=!1,children:a,classes:u,components:c={},componentsProps:p={},describeChild:h=!1,disableFocusListener:g=!1,disableHoverListener:y=!1,disableInteractive:C=!1,disableTouchListener:x=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:R=700,followCursor:E=!1,id:L,leaveDelay:k=0,leaveTouchDelay:P=1500,onClose:M,onOpen:j,open:_,placement:N="bottom",PopperComponent:V,PopperProps:I={},slotProps:F={},slots:O={},title:z,TransitionComponent:q,TransitionProps:K,...Q}=o,ee=w.isValidElement(a)?a:d.jsx("span",{children:a}),D=Gn(),G=Sd(),[te,A]=w.useState(),[X,he]=w.useState(null),fe=w.useRef(!1),pe=C||E,ie=$i(),Ce=$i(),xe=$i(),we=$i(),[Re,De]=ra({controlled:_,default:!1,name:"Tooltip",state:"open"});let Te=Re;const We=eu(L),Fe=w.useRef(),tt=Or(()=>{Fe.current!==void 0&&(document.body.style.WebkitUserSelect=Fe.current,Fe.current=void 0),we.clear()});w.useEffect(()=>tt,[tt]);const gt=et=>{d5.clear(),Pc=!0,De(!0),j&&!Te&&j(et)},ze=Or(et=>{d5.start(800+k,()=>{Pc=!1}),De(!1),M&&Te&&M(et),ie.start(D.transitions.duration.shortest,()=>{fe.current=!1})}),nt=et=>{fe.current&&et.type!=="touchstart"||(te&&te.removeAttribute("title"),Ce.clear(),xe.clear(),b||Pc&&v?Ce.start(Pc?v:b,()=>{gt(et)}):gt(et))},mt=et=>{Ce.clear(),xe.start(k,()=>{ze(et)})},[,ot]=w.useState(!1),Je=et=>{fi(et.target)||(ot(!1),mt(et))},Ee=et=>{te||A(et.currentTarget),fi(et.target)&&(ot(!0),nt(et))},Tt=et=>{fe.current=!0;const Rn=ee.props;Rn.onTouchStart&&Rn.onTouchStart(et)},yt=et=>{Tt(et),xe.clear(),ie.clear(),tt(),Fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.start(R,()=>{document.body.style.WebkitUserSelect=Fe.current,nt(et)})},se=et=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(et),tt(),xe.start(P,()=>{ze(et)})};w.useEffect(()=>{if(!Te)return;function et(Rn){Rn.key==="Escape"&&ze(Rn)}return document.addEventListener("keydown",et),()=>{document.removeEventListener("keydown",et)}},[ze,Te]);const me=Ft(ma(ee),A,n);!z&&z!==0&&(Te=!1);const ye=w.useRef(),Pe=et=>{const Rn=ee.props;Rn.onMouseMove&&Rn.onMouseMove(et),cl={x:et.clientX,y:et.clientY},ye.current&&ye.current.update()},$e={},Se=typeof z=="string";h?($e.title=!Te&&Se&&!y?z:null,$e["aria-describedby"]=Te?We:null):($e["aria-label"]=Se?z:null,$e["aria-labelledby"]=Te&&!Se?We:null);const be={...$e,...Q,...ee.props,className:ve(Q.className,ee.props.className),onTouchStart:Tt,ref:me,...E?{onMouseMove:Pe}:{}},rt={};x||(be.onTouchStart=yt,be.onTouchEnd=se),y||(be.onMouseOver=Ic(nt,be.onMouseOver),be.onMouseLeave=Ic(mt,be.onMouseLeave),pe||(rt.onMouseOver=nt,rt.onMouseLeave=mt)),g||(be.onFocus=Ic(Ee,be.onFocus),be.onBlur=Ic(Je,be.onBlur),pe||(rt.onFocus=Ee,rt.onBlur=Je));const lt={...o,isRtl:G,arrow:s,disableInteractive:pe,placement:N,PopperComponentProp:V,touch:fe.current},Ct=typeof F.popper=="function"?F.popper(lt):F.popper,_e=w.useMemo(()=>{var Rn,ya;let et=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return(Rn=I.popperOptions)!=null&&Rn.modifiers&&(et=et.concat(I.popperOptions.modifiers)),(ya=Ct==null?void 0:Ct.popperOptions)!=null&&ya.modifiers&&(et=et.concat(Ct.popperOptions.modifiers)),{...I.popperOptions,...Ct==null?void 0:Ct.popperOptions,modifiers:et}},[X,I.popperOptions,Ct==null?void 0:Ct.popperOptions]),ut=gE(lt),Pt=typeof F.transition=="function"?F.transition(lt):F.transition,un={slots:{popper:c.Popper,transition:c.Transition??q,tooltip:c.Tooltip,arrow:c.Arrow,...O},slotProps:{arrow:F.arrow??p.arrow,popper:{...I,...Ct??p.popper},tooltip:F.tooltip??p.tooltip,transition:{...K,...Pt??p.transition}}},[or,ro]=At("popper",{elementType:mE,externalForwardedProps:un,ownerState:lt,className:ve(ut.popper,I==null?void 0:I.className)}),[Ar,wt]=At("transition",{elementType:ed,externalForwardedProps:un,ownerState:lt}),[Dt,Mo]=At("tooltip",{elementType:yE,className:ut.tooltip,externalForwardedProps:un,ownerState:lt}),[oo,Tn]=At("arrow",{elementType:vE,className:ut.arrow,externalForwardedProps:un,ownerState:lt,ref:he});return d.jsxs(w.Fragment,{children:[w.cloneElement(ee,be),d.jsx(or,{as:V??b4,placement:N,anchorEl:E?{getBoundingClientRect:()=>({top:cl.y,left:cl.x,right:cl.x,bottom:cl.y,width:0,height:0})}:te,popperRef:ye,open:te?Te:!1,id:We,transition:!0,...rt,...ro,popperOptions:_e,children:({TransitionProps:et})=>d.jsx(Ar,{timeout:D.transitions.duration.shorter,...et,...wt,children:d.jsxs(Dt,{...Mo,children:[z,s?d.jsx(oo,{...Tn}):null]})})})]})}),at=S7({createStyledComponent:le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ke({props:e,name:"MuiStack"})});function xE(e){return Ue("MuiSwitch",e)}const Pn=Ne("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),CE=e=>{const{classes:t,edge:n,size:o,color:s,checked:a,disabled:u}=e,c={root:["root",n&&`edge${ae(n)}`,`size${ae(o)}`],switchBase:["switchBase",`color${ae(s)}`,a&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=He(c,xE,t);return{...t,...p}},bE=le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ae(n.edge)}`],t[`size${ae(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,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,[`& .${Pn.thumb}`]:{width:16,height:16},[`& .${Pn.switchBase}`]:{padding:4,[`&.${Pn.checked}`]:{transform:"translateX(16px)"}}}}]}),SE=le(Rw,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Pn.input}`]:t.input},n.color!=="default"&&t[`color${ae(n.color)}`]]}})(Ae(({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}),[`&.${Pn.checked}`]:{transform:"translateX(20px)"},[`&.${Pn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Pn.checked} + .${Pn.track}`]:{opacity:.5},[`&.${Pn.disabled} + .${Pn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Pn.input}`]:{left:"-100%",width:"300%"}})),Ae(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Gt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Pn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:re(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Ro(e.palette[t].main,.62):wo(e.palette[t].main,.55)}`}},[`&.${Pn.checked} + .${Pn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),wE=le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(Ae(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,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}`}))),RE=le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(Ae(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),kE=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiSwitch"}),{className:s,color:a="primary",edge:u=!1,size:c="medium",sx:p,...h}=o,g={...o,color:a,edge:u,size:c},y=CE(g),C=d.jsx(RE,{className:y.thumb,ownerState:g});return d.jsxs(bE,{className:ve(y.root,s),sx:p,ownerState:g,children:[d.jsx(SE,{type:"checkbox",icon:C,checkedIcon:C,ref:n,ownerState:g,...h,classes:{...y,root:y.switchBase}}),d.jsx(wE,{className:y.track,ownerState:g})]})}),F4=w.createContext();function EE(e){return Ue("MuiTable",e)}Ne("MuiTable",["root","stickyHeader"]);const PE=e=>{const{classes:t,stickyHeader:n}=e;return He({root:["root",n&&"stickyHeader"]},EE,t)},IE=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ae(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),f5="table",Ph=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTable"}),{className:s,component:a=f5,padding:u="normal",size:c="medium",stickyHeader:p=!1,...h}=o,g={...o,component:a,padding:u,size:c,stickyHeader:p},y=PE(g),C=w.useMemo(()=>({padding:u,size:c,stickyHeader:p}),[u,c,p]);return d.jsx(F4.Provider,{value:C,children:d.jsx(IE,{as:a,role:a===f5?null:"table",ref:n,className:ve(y.root,s),ownerState:g,...h})})}),Od=w.createContext();function ME(e){return Ue("MuiTableBody",e)}Ne("MuiTableBody",["root"]);const LE=e=>{const{classes:t}=e;return He({root:["root"]},ME,t)},TE=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),jE={variant:"body"},p5="tbody",Ih=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTableBody"}),{className:s,component:a=p5,...u}=o,c={...o,component:a},p=LE(c);return d.jsx(Od.Provider,{value:jE,children:d.jsx(TE,{className:ve(p.root,s),as:a,ref:n,role:a===p5?null:"rowgroup",ownerState:c,...u})})});function OE(e){return Ue("MuiTableCell",e)}const _E=Ne("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),$E=e=>{const{classes:t,variant:n,align:o,padding:s,size:a,stickyHeader:u}=e,c={root:["root",n,u&&"stickyHeader",o!=="inherit"&&`align${ae(o)}`,s!=="normal"&&`padding${ae(s)}`,`size${ae(a)}`]};return He(c,OE,t)},AE=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ae(n.size)}`],n.padding!=="normal"&&t[`padding${ae(n.padding)}`],n.align!=="inherit"&&t[`align${ae(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ae(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Ro(re(e.palette.divider,1),.88):wo(re(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${_E.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Bn=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTableCell"}),{align:s="inherit",className:a,component:u,padding:c,scope:p,size:h,sortDirection:g,variant:y,...C}=o,x=w.useContext(F4),b=w.useContext(Od),v=b&&b.variant==="head";let R;u?R=u:R=v?"th":"td";let E=p;R==="td"?E=void 0:!E&&v&&(E="col");const L=y||b&&b.variant,k={...o,align:s,component:R,padding:c||(x&&x.padding?x.padding:"normal"),size:h||(x&&x.size?x.size:"medium"),sortDirection:g,stickyHeader:L==="head"&&x&&x.stickyHeader,variant:L},P=$E(k);let M=null;return g&&(M=g==="asc"?"ascending":"descending"),d.jsx(AE,{as:R,ref:n,className:ve(P.root,a),"aria-sort":M,scope:E,ownerState:k,...C})});function FE(e){return Ue("MuiTableContainer",e)}Ne("MuiTableContainer",["root"]);const zE=e=>{const{classes:t}=e;return He({root:["root"]},FE,t)},NE=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Mh=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTableContainer"}),{className:s,component:a="div",...u}=o,c={...o,component:a},p=zE(c);return d.jsx(NE,{ref:n,as:a,className:ve(p.root,s),ownerState:c,...u})});function DE(e){return Ue("MuiTableHead",e)}Ne("MuiTableHead",["root"]);const BE=e=>{const{classes:t}=e;return He({root:["root"]},DE,t)},VE=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),UE={variant:"head"},h5="thead",Lh=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTableHead"}),{className:s,component:a=h5,...u}=o,c={...o,component:a},p=BE(c);return d.jsx(Od.Provider,{value:UE,children:d.jsx(VE,{as:a,className:ve(p.root,s),ref:n,role:a===h5?null:"rowgroup",ownerState:c,...u})})});function HE(e){return Ue("MuiToolbar",e)}Ne("MuiToolbar",["root","gutters","regular","dense"]);const WE=e=>{const{classes:t,disableGutters:n,variant:o}=e;return He({root:["root",!n&&"gutters",o]},HE,t)},GE=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ae(({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}]}))),KE=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiToolbar"}),{className:s,component:a="div",disableGutters:u=!1,variant:c="regular",...p}=o,h={...o,component:a,disableGutters:u,variant:c},g=WE(h);return d.jsx(GE,{as:a,className:ve(g.root,s),ref:n,ownerState:h,...p})});function qE(e){return Ue("MuiTableRow",e)}const g5=Ne("MuiTableRow",["root","selected","hover","head","footer"]),QE=e=>{const{classes:t,selected:n,hover:o,head:s,footer:a}=e;return He({root:["root",n&&"selected",o&&"hover",s&&"head",a&&"footer"]},qE,t)},YE=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ae(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${g5.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${g5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:re(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),m5="tr",Co=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTableRow"}),{className:s,component:a=m5,hover:u=!1,selected:c=!1,...p}=o,h=w.useContext(Od),g={...o,component:a,hover:u,selected:c,head:h&&h.variant==="head",footer:h&&h.variant==="footer"},y=QE(g);return d.jsx(YE,{as:a,ref:n,className:ve(y.root,s),role:a===m5?null:"row",ownerState:g,...p})});function XE(e){return Ue("MuiTextField",e)}Ne("MuiTextField",["root"]);const ZE={standard:wh,filled:Sh,outlined:kh},JE=e=>{const{classes:t}=e;return He({root:["root"]},XE,t)},eP=le(Vc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Il=w.forwardRef(function(t,n){const o=Ke({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:a=!1,children:u,className:c,color:p="primary",defaultValue:h,disabled:g=!1,error:y=!1,FormHelperTextProps:C,fullWidth:x=!1,helperText:b,id:v,InputLabelProps:R,inputProps:E,InputProps:L,inputRef:k,label:P,maxRows:M,minRows:j,multiline:_=!1,name:N,onBlur:V,onChange:I,onFocus:F,placeholder:O,required:z=!1,rows:q,select:K=!1,SelectProps:Q,slots:ee={},slotProps:D={},type:G,value:te,variant:A="outlined",...X}=o,he={...o,autoFocus:a,color:p,disabled:g,error:y,fullWidth:x,multiline:_,required:z,select:K,variant:A},fe=JE(he),pe=eu(v),ie=b&&pe?`${pe}-helper-text`:void 0,Ce=P&&pe?`${pe}-label`:void 0,xe=ZE[A],we={slots:ee,slotProps:{input:L,inputLabel:R,htmlInput:E,formHelperText:C,select:Q,...D}},Re={},De=we.slotProps.inputLabel;A==="outlined"&&(De&&typeof De.shrink<"u"&&(Re.notched=De.shrink),Re.label=P),K&&((!Q||!Q.native)&&(Re.id=void 0),Re["aria-describedby"]=void 0);const[Te,We]=At("input",{elementType:xe,externalForwardedProps:we,additionalProps:Re,ownerState:he}),[Fe,tt]=At("inputLabel",{elementType:Uc,externalForwardedProps:we,ownerState:he}),[gt,ze]=At("htmlInput",{elementType:"input",externalForwardedProps:we,ownerState:he}),[nt,mt]=At("formHelperText",{elementType:hR,externalForwardedProps:we,ownerState:he}),[ot,Je]=At("select",{elementType:Pl,externalForwardedProps:we,ownerState:he}),Ee=d.jsx(Te,{"aria-describedby":ie,autoComplete:s,autoFocus:a,defaultValue:h,fullWidth:x,multiline:_,name:N,rows:q,maxRows:M,minRows:j,type:G,value:te,id:pe,inputRef:k,onBlur:V,onChange:I,onFocus:F,placeholder:O,inputProps:ze,slots:{input:ee.htmlInput?gt:void 0},...We});return d.jsxs(eP,{className:ve(fe.root,c),disabled:g,error:y,fullWidth:x,ref:n,required:z,color:p,variant:A,ownerState:he,...X,children:[P!=null&&P!==""&&d.jsx(Fe,{htmlFor:pe,id:Ce,...tt,children:P}),K?d.jsx(ot,{"aria-describedby":ie,id:pe,labelId:Ce,value:te,input:Ee,...Je,children:u}):Ee,b&&d.jsx(nt,{id:ie,...mt,children:b})]})}),Fi=Ze(d.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew"),y5=Ze(d.jsx("path",{d:"M12 9c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3m0-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightModeOutlined"),v5=Ze(d.jsx("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkModeOutlined"),tP=Ze(d.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),nP=({onToggleTheme:e,mode:t})=>{const n=Io(),o=pa(),[s]=ha(),[a,u]=w.useState(null),c=Gn(),p=OR(c.breakpoints.down("md")),[h,g]=w.useState(!1),y=()=>{g(!0),e()},C={fontSize:"1.125rem",...h&&{animation:"rotateIn 0.3s cubic-bezier(0.4, 0, 0.2, 1)","@keyframes rotateIn":{"0%":{opacity:0,transform:t==="light"?"rotate(-90deg) scale(0.8)":"rotate(90deg) scale(0.8)"},"100%":{opacity:1,transform:"rotate(0) scale(1)"}}}},x=(k,P)=>{if(window.location!==window.parent.location)try{const j=`${k}${P?"#"+P:""}`;window.parent.postMessage({type:"urlUpdate",path:j},"https://huggingface.co")}catch(j){console.warn("Unable to sync URL with parent:",j)}},b=(k=!1)=>({textDecoration:"none",color:k?"text.primary":"text.secondary",fontSize:"0.8125rem",opacity:k?1:.8,display:"flex",alignItems:"center",gap:.5,paddingBottom:"2px",cursor:"pointer",position:"relative","&:hover":{opacity:1,color:"text.primary"},"&::after":k?{content:'""',position:"absolute",bottom:"-4px",left:"0",width:"100%",height:"2px",backgroundColor:P=>re(P.palette.text.primary,P.palette.mode==="dark"?.3:.2),borderRadius:"2px"}:{}}),v=()=>d.jsx(W,{sx:k=>({width:"4px",height:"4px",borderRadius:"100%",backgroundColor:re(k.palette.text.primary,k.palette.mode==="dark"?.2:.15)})}),R=k=>P=>{P.preventDefault();const M=s.toString(),j=M?`?${M}`:"",_=`${k}${j}`;o(_),window.location!==window.parent.location&&x(j,_)},E=k=>{u(k.currentTarget)},L=()=>{u(null)};return d.jsx(Pb,{position:"static",sx:{backgroundColor:"transparent",boxShadow:"none",width:"100%"},children:d.jsx(KE,{sx:{justifyContent:"center"},children:p?d.jsxs(W,{sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[d.jsx(tu,{onClick:E,sx:{color:"text.secondary"},children:d.jsx(tP,{})}),d.jsxs(T4,{anchorEl:a,open:!!a,onClose:L,PaperProps:{elevation:3,sx:{mt:1.5,minWidth:220,borderRadius:"12px",border:k=>`1px solid ${re(k.palette.divider,.1)}`,backgroundColor:k=>k.palette.mode==="dark"?re(k.palette.background.paper,.8):k.palette.background.paper,backdropFilter:"blur(20px)","& .MuiList-root":{py:1},"& .MuiMenuItem-root":{px:2,py:1,fontSize:"0.8125rem",color:"text.secondary",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:k=>re(k.palette.text.primary,k.palette.mode==="dark"?.1:.06),color:"text.primary"},"&.Mui-selected":{backgroundColor:"transparent",color:"text.primary","&::after":{content:'""',position:"absolute",left:"8px",width:"4px",height:"100%",top:"0",backgroundColor:k=>re(k.palette.text.primary,k.palette.mode==="dark"?.3:.2),borderRadius:"2px"},"&:hover":{backgroundColor:k=>re(k.palette.text.primary,k.palette.mode==="dark"?.1:.06)}}}}},transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"left",vertical:"bottom"},children:[d.jsx(W,{sx:{px:2,pb:1.5,pt:.5},children:d.jsx(ne,{variant:"caption",sx:{color:"text.disabled"},children:"Navigation"})}),d.jsx(vo,{onClick:k=>{R("/")(k),L()},selected:n.pathname==="/",children:"Leaderboard"}),d.jsx(vo,{onClick:k=>{R("/add")(k),L()},selected:n.pathname==="/add",children:"Submit model"}),d.jsx(vo,{onClick:k=>{R("/vote")(k),L()},selected:n.pathname==="/vote",children:"Vote for next model"}),d.jsx(vo,{onClick:k=>{R("/quote")(k),L()},selected:n.pathname==="/quote",children:"Citations"}),d.jsx(W,{sx:{my:1,borderTop:k=>`1px solid ${re(k.palette.divider,.1)}`}}),d.jsx(W,{sx:{px:2,pb:1.5},children:d.jsx(ne,{variant:"caption",sx:{color:"text.disabled"},children:"External links"})}),d.jsxs(vo,{component:Zr,href:"https://huggingface.co/spaces/open-llm-leaderboard/comparator",target:"_blank",sx:{"& svg":{ml:"auto",fontSize:"0.875rem",opacity:.6}},children:["Compare models",d.jsx(Fi,{})]}),d.jsxs(vo,{component:Zr,href:"https://huggingface.co/docs/leaderboards/open_llm_leaderboard/about",target:"_blank",sx:{"& svg":{ml:"auto",fontSize:"0.875rem",opacity:.6}},children:["About",d.jsx(Fi,{})]})]}),d.jsx(Ln,{title:t==="light"?"Switch to dark mode":"Switch to light mode",children:d.jsx(Eo,{onClick:y,sx:k=>({color:"text.secondary",borderRadius:"100%",padding:0,width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out","&:hover":{color:"text.primary",backgroundColor:re(k.palette.text.primary,k.palette.mode==="dark"?.1:.06)},"&.MuiButtonBase-root":{overflow:"hidden"},"& .MuiTouchRipple-root":{color:re(k.palette.text.primary,.3)}}),children:t==="light"?d.jsx(v5,{sx:C}):d.jsx(y5,{sx:C})})})]}):d.jsxs(W,{sx:{display:"flex",gap:2.5,alignItems:"center",padding:"0.5rem 0"},children:[d.jsxs(W,{sx:{display:"flex",gap:2.5,alignItems:"center"},children:[d.jsx(W,{onClick:R("/"),sx:b(n.pathname==="/"),children:"Leaderboard"}),d.jsx(W,{onClick:R("/add"),sx:b(n.pathname==="/add"),children:"Submit model"}),d.jsx(W,{onClick:R("/vote"),sx:b(n.pathname==="/vote"),children:"Vote for next model"}),d.jsx(W,{onClick:R("/quote"),sx:b(n.pathname==="/quote"),children:"Citations"})]}),d.jsx(v,{}),d.jsxs(W,{sx:{display:"flex",gap:2.5,alignItems:"center"},children:[d.jsxs(Zr,{href:"https://huggingface.co/spaces/open-llm-leaderboard/comparator",target:"_blank",rel:"noopener noreferrer",sx:{...b(),"& svg":{fontSize:"0.75rem",ml:.5,opacity:.6,transition:"opacity 0.2s ease-in-out"},"&:hover svg":{opacity:.8}},children:["Compare models",d.jsx(Fi,{})]}),d.jsxs(Zr,{href:"https://huggingface.co/docs/leaderboards/open_llm_leaderboard/about",target:"_blank",rel:"noopener noreferrer",sx:{...b(),"& svg":{fontSize:"0.75rem",ml:.5,opacity:.6,transition:"opacity 0.2s ease-in-out"},"&:hover svg":{opacity:.8}},children:["About",d.jsx(Fi,{})]})]}),d.jsx(v,{}),d.jsx(Ln,{title:t==="light"?"Switch to dark mode":"Switch to light mode",children:d.jsx(Eo,{onClick:y,sx:k=>({color:"text.secondary",borderRadius:"100%",padding:0,width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out","&:hover":{color:"text.primary",backgroundColor:re(k.palette.text.primary,k.palette.mode==="dark"?.1:.06)},"&.MuiButtonBase-root":{overflow:"hidden"},"& .MuiTouchRipple-root":{color:re(k.palette.text.primary,.3)}}),children:t==="light"?d.jsx(v5,{sx:C}):d.jsx(y5,{sx:C})})})]})})})},es=["pretrained","continuously pretrained","fine-tuned","chat","merge","multimodal"],Ns={pretrained:{icon:"🟢",label:"Pretrained",description:"Base models trained on raw text data using self-supervised learning objectives",order:0},"continuously pretrained":{icon:"🟩",label:"Continuously Pretrained",description:"Base models with extended pretraining on additional data while maintaining original architecture",order:1},"fine-tuned":{icon:"🔶",label:"Fine-tuned",description:"Models specialized through task-specific training on curated datasets",order:2},chat:{icon:"💬",label:"Chat",description:"Models optimized for conversation using various techniques: RLHF, DPO, IFT, SFT",order:3},merge:{icon:"🤝",label:"Merge",description:"Models created by combining weights from multiple models",order:4},multimodal:{icon:"🌸",label:"Multimodal",description:"Models capable of processing multiple types of input",order:5}},rP=e=>{const t=e.toLowerCase().trim(),n=Object.entries(Ns).find(([o])=>t.includes(o));return n?n[1].icon:"❓"},oP={DEBOUNCE:{SEARCH:150}},Th={ROW_SIZES:{normal:45,large:60},SCORE_DISPLAY_OPTIONS:[{value:"normalized",label:"Normalized"},{value:"raw",label:"Raw"}],RANKING_MODE_OPTIONS:[{value:"static",label:"Static"},{value:"dynamic",label:"Dynamic"}]},jh={PRECISIONS:["bfloat16","float16","4bit"],SUBMISSION_PRECISIONS:[{value:"float16",label:"float16"},{value:"bfloat16",label:"bfloat16"},{value:"8bit",label:"8-bit"},{value:"4bit",label:"4-bit"},{value:"gptq",label:"GPTQ"}],BOOLEAN_OPTIONS:[{value:"is_moe",label:"Mixture of Experts",hide:!0},{value:"is_merged",label:"Merged model",hide:!0},{value:"is_flagged",label:"Potentially contaminated model",hide:!0},{value:"is_not_available_on_hub",label:"Unavailable model",hide:!0},{value:"is_official_provider",label:"Only Official Providers",hide:!1}]},ht={RANK:65,TYPE_ICON:65,MODEL:400,AVERAGE_SCORE:150,BENCHMARK:110,CO2_COST:140,HUB_HEARTS:140,ARCHITECTURE:210,PRECISION:140,PARAMS:160,LICENSE:160,UPLOAD_DATE:160,SUBMISSION_DATE:200,GENERATION:160,BASE_MODEL:390,HUB_AVAILABILITY:180,OFFICIAL_PROVIDER:240,MOE:200,FLAG_STATUS:160,CHAT_TEMPLATE:140},zi={FIXED:{rank:{group:"fixed",size:ht.RANK,defaultVisible:!0,label:"Rank"},"model.type_icon":{group:"fixed",size:ht.TYPE_ICON,defaultVisible:!0,label:"Type"},id:{group:"fixed",size:ht.MODEL,defaultVisible:!0,label:"Model"},"model.average_score":{group:"fixed",size:ht.AVERAGE_SCORE,defaultVisible:!0,label:"Average Score"}},EVALUATION:{"evaluations.ifeval_fr.normalized_score":{group:"evaluation",size:ht.BENCHMARK,defaultVisible:!0,label:"IFEval FR"},"evaluations.gpqa_fr.normalized_score":{group:"evaluation",size:ht.BENCHMARK,defaultVisible:!0,label:"GPQA FR"},"evaluations.bac_fr.normalized_score":{group:"evaluation",size:ht.BENCHMARK,defaultVisible:!0,label:"BAC FR"}},MODEL_INFO:{"metadata.co2_cost":{group:"model_info",size:ht.CO2_COST,defaultVisible:!0,label:"CO₂ Cost (kg)"},"metadata.hub_hearts":{group:"model_info",size:ht.HUB_HEARTS,defaultVisible:!1,label:"Hub ❤️"},"model.architecture":{group:"model_info",size:ht.ARCHITECTURE,defaultVisible:!1,label:"Architecture"},"model.precision":{group:"model_info",size:ht.PRECISION,defaultVisible:!1,label:"Precision"},"metadata.params_billions":{group:"model_info",size:ht.PARAMS,defaultVisible:!1,label:"Parameters (B)"},"metadata.hub_license":{group:"model_info",size:ht.LICENSE,defaultVisible:!1,label:"License"},"model.has_chat_template":{group:"model_info",size:ht.CHAT_TEMPLATE,defaultVisible:!1,label:"Chat Template"}},ADDITIONAL_INFO:{"metadata.upload_date":{group:"additional_info",size:ht.UPLOAD_DATE,defaultVisible:!1,label:"Upload Date"},"metadata.submission_date":{group:"additional_info",size:ht.SUBMISSION_DATE,defaultVisible:!1,label:"Submission Date"},"metadata.generation":{group:"additional_info",size:ht.GENERATION,defaultVisible:!1,label:"Generation"},"metadata.base_model":{group:"additional_info",size:ht.BASE_MODEL,defaultVisible:!1,label:"Base Model"},"features.is_not_available_on_hub":{group:"additional_info",size:ht.HUB_AVAILABILITY,defaultVisible:!1,label:"Hub Availability"},"features.is_official_provider":{group:"additional_info",size:ht.OFFICIAL_PROVIDER,defaultVisible:!1,label:"Only Official Providers"},"features.is_moe":{group:"additional_info",size:ht.MOE,defaultVisible:!1,label:"Mixture of Experts"},"features.is_flagged":{group:"additional_info",size:ht.FLAG_STATUS,defaultVisible:!1,label:"Flag Status"}}},_s={...zi.FIXED,...zi.EVALUATION,...zi.MODEL_INFO,...zi.ADDITIONAL_INFO},iP={COLUMN_GROUPS:{"Evaluation Scores":Object.keys(zi.EVALUATION),"Model Information":Object.keys(zi.MODEL_INFO),"Additional Information":Object.keys(zi.ADDITIONAL_INFO)},COLUMN_LABELS:Object.entries(_s).reduce((e,[t,n])=>(e[t]=n.label,e),{}),DEFAULT_VISIBLE:Object.entries(_s).filter(([e,t])=>t.defaultVisible).map(([e])=>e),get FIXED(){return Object.entries(_s).filter(([e,t])=>t.group==="fixed").map(([e])=>e)},get EVALUATION(){return Object.entries(_s).filter(([e,t])=>t.group==="evaluation").map(([e])=>e)},get OPTIONAL(){return Object.entries(_s).filter(([e,t])=>t.group!=="fixed"&&t.group!=="evaluation").map(([e])=>e)},get COLUMN_SIZES(){return Object.entries(_s).reduce((e,[t,n])=>({...e,[t]:n.size}),{})}},da=jh.PRECISIONS,sP=jh.SUBMISSION_PRECISIONS,Oh=Th.ROW_SIZES,aP=Th.SCORE_DISPLAY_OPTIONS,lP=Th.RANKING_MODE_OPTIONS,x5=jh.BOOLEAN_OPTIONS,Ge={ROW_SIZE:"normal",SCORE_DISPLAY:"normalized",AVERAGE_MODE:"all",RANKING_MODE:"static",DEBOUNCE:oP.DEBOUNCE,COLUMNS:iP},Ni=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],C5=[40,ht.RANK,ht.TYPE_ICON,ht.MODEL,ht.AVERAGE_SCORE,ht.BENCHMARK,ht.BENCHMARK,ht.BENCHMARK,ht.BENCHMARK,ht.BENCHMARK,ht.BENCHMARK],z4=w.createContext(),S1={search:"",precisions:da,types:es,paramsRange:[-1,140],booleanFilters:[],isOfficialProviderActive:!1},N4={rowSize:Ge.ROW_SIZE,scoreDisplay:Ge.SCORE_DISPLAY,averageMode:Ge.AVERAGE_MODE,rankingMode:Ge.RANKING_MODE,visibleColumns:Ge.COLUMNS.DEFAULT_VISIBLE},nd=()=>{const e={};es.forEach(n=>{e[n]=0});const t={};return da.forEach(n=>{t[n]=0}),{modelTypes:e,precisions:t,officialProviders:0,mixtureOfExperts:0,flagged:0,merged:0,notOnHub:0,parameterRanges:{edge:0,small:0,medium:0,large:0}}},uP={models:[],loading:!0,countsReady:!1,error:null,filters:S1,display:N4,filtersExpanded:!1,pinnedModels:[],filterCounts:{normal:nd(),officialOnly:nd()}},cP=e=>{const t=Number(e);return isNaN(t)?null:Math.round(t*100)/100},xl=(e,t)=>{if(t[0]===-1&&t[1]===140)return!0;const n=cP(e);return n===null?!1:n>=t[0]&&n{var o,s,a;if(t.precisions.length>0&&!t.precisions.includes(e.model.precision))return!1;if(t.types.length>0){const u=(o=e.model.type)==null?void 0:o.toLowerCase().trim();if(!t.types.some(c=>u==null?void 0:u.includes(c)))return!1}const n=Number(((s=e.metadata)==null?void 0:s.params_billions)||((a=e.features)==null?void 0:a.params_billions));if(!xl(n,t.paramsRange))return!1;if(t.search){const u=t.search.toLowerCase();if(!e.model.name.toLowerCase().includes(u))return!1}return t.booleanFilters.length>0?t.booleanFilters.every(u=>{const c=typeof u=="object"?u.value:u;return c==="is_official_provider"||c==="is_not_available_on_hub"?e.features[c]:!e.features[c]}):!0},dP=(e,t,n,o)=>{if(!e)return{currentFilteredCount:typeof o=="number"?o:0,totalPinnedCount:t||0};const s=e.length,a=e.filter(u=>{const c=u.original;return c.isPinned&&D4(c,n)}).length;return{currentFilteredCount:s-a,totalPinnedCount:t||0}},fP=e=>{const t=nd(),n=nd();return e.forEach(o=>{var u,c;const s=((u=o.features)==null?void 0:u.is_official_provider)||((c=o.metadata)==null?void 0:c.is_official_provider),a=[t];s&&a.push(n),a.forEach(p=>{var g,y,C,x,b,v,R,E,L,k,P,M,j,_;if((g=o.model)!=null&&g.type){const N=o.model.type.toLowerCase().trim(),V=es.find(I=>N.includes(I));V&&p.modelTypes[V]++}(y=o.model)!=null&&y.precision&&p.precisions[o.model.precision]++,((C=o.features)!=null&&C.is_official_provider||(x=o.metadata)!=null&&x.is_official_provider)&&p.officialProviders++,((b=o.features)!=null&&b.is_moe||(v=o.metadata)!=null&&v.is_moe)&&p.mixtureOfExperts++,((R=o.features)!=null&&R.is_flagged||(E=o.metadata)!=null&&E.is_flagged)&&p.flagged++,((L=o.features)!=null&&L.is_merged||(k=o.metadata)!=null&&k.is_merged)&&p.merged++,(P=o.features)!=null&&P.is_not_available_on_hub||(M=o.metadata)!=null&&M.is_not_available_on_hub||p.notOnHub++;const h=Number(((j=o.metadata)==null?void 0:j.params_billions)||((_=o.features)==null?void 0:_.params_billions));isNaN(h)||(xl(h,[0,3])&&p.parameterRanges.edge++,xl(h,[3,7])&&p.parameterRanges.small++,xl(h,[7,65])&&p.parameterRanges.medium++,xl(h,[65,141])&&p.parameterRanges.large++)})}),{normal:t,officialOnly:n}},pP=(e,t)=>{switch(t.type){case"SET_MODELS":const n=fP(t.payload);return{...e,models:t.payload,filterCounts:n,countsReady:!0,loading:!1};case"SET_LOADING":return{...e,loading:t.payload,...t.payload?{countsReady:!1}:{}};case"SET_ERROR":return{...e,error:t.payload,loading:!1};case"SET_FILTER":return{...e,filters:{...e.filters,[t.key]:t.value}};case"SET_DISPLAY_OPTION":return{...e,display:{...e.display,[t.key]:t.value}};case"TOGGLE_PINNED_MODEL":const o=t.payload,s=[...e.pinnedModels],a=s.indexOf(o);return a===-1?s.push(o):s.splice(a,1),{...e,pinnedModels:s};case"SET_PINNED_MODELS":return{...e,pinnedModels:t.payload};case"TOGGLE_FILTERS_EXPANDED":return{...e,filtersExpanded:!e.filtersExpanded};case"TOGGLE_OFFICIAL_PROVIDER":return{...e,filters:{...e.filters,isOfficialProviderActive:!e.filters.isOfficialProviderActive}};case"RESET_FILTERS":return{...e,filters:S1};case"RESET_ALL":return{...e,filters:S1,display:N4,pinnedModels:[]};default:return e}},hP=({children:e})=>{const[t,n]=w.useReducer(pP,uP),[o,s]=ha(),a=Io();w.useEffect(()=>{var y;if((y=a.state)!=null&&y.skipUrlSync)return;(()=>{var N,V,I,F,O,z;const C=o.get("search");C&&n({type:"SET_FILTER",key:"search",value:C});const x=(N=o.get("params"))==null?void 0:N.split(",").map(Number);(x==null?void 0:x.length)===2&&n({type:"SET_FILTER",key:"paramsRange",value:x});const b=((V=o.get("filters"))==null?void 0:V.split(",").filter(Boolean))||[];b.length>0&&n({type:"SET_FILTER",key:"booleanFilters",value:b});const v=(I=o.get("precision"))==null?void 0:I.split(",").filter(Boolean);v&&n({type:"SET_FILTER",key:"precisions",value:v});const R=(F=o.get("types"))==null?void 0:F.split(",").filter(Boolean);R&&n({type:"SET_FILTER",key:"types",value:R}),o.get("official")==="true"&&n({type:"SET_FILTER",key:"isOfficialProviderActive",value:!0});const L=((O=o.get("pinned"))==null?void 0:O.split(",").filter(Boolean))||[];L.length>0&&n({type:"SET_PINNED_MODELS",payload:L});const k=(z=o.get("columns"))==null?void 0:z.split(",").filter(Boolean);k&&n({type:"SET_DISPLAY_OPTION",key:"visibleColumns",value:k});const P=o.get("rowSize");P&&n({type:"SET_DISPLAY_OPTION",key:"rowSize",value:P});const M=o.get("scoreDisplay");M&&n({type:"SET_DISPLAY_OPTION",key:"scoreDisplay",value:M});const j=o.get("averageMode");j&&n({type:"SET_DISPLAY_OPTION",key:"averageMode",value:j});const _=o.get("rankingMode");_&&n({type:"SET_DISPLAY_OPTION",key:"rankingMode",value:_})})()},[o,a.state]),w.useEffect(()=>{var G,te,A,X,he,fe,pe;if((G=a.state)!=null&&G.skipUrlSync)return;const g=new URLSearchParams(o),y=(te=o.get("params"))==null?void 0:te.split(",").map(Number),C=((A=o.get("filters"))==null?void 0:A.split(",").filter(Boolean))||[],x=o.get("search"),b=((X=o.get("pinned"))==null?void 0:X.split(",").filter(Boolean))||[],v=((he=o.get("columns"))==null?void 0:he.split(",").filter(Boolean))||[],R=o.get("rowSize"),E=o.get("scoreDisplay"),L=o.get("averageMode"),k=o.get("rankingMode"),P=o.get("official")==="true",M=((fe=o.get("precision"))==null?void 0:fe.split(",").filter(Boolean))||[],j=((pe=o.get("types"))==null?void 0:pe.split(",").filter(Boolean))||[],_=!y||y[0]!==t.filters.paramsRange[0]||y[1]!==t.filters.paramsRange[1],N=t.filters.booleanFilters.length!==C.length||t.filters.booleanFilters.some(ie=>!C.includes(ie)),V=t.filters.search!==x,I=t.pinnedModels.length!==b.length||t.pinnedModels.some(ie=>!b.includes(ie)),F=t.display.visibleColumns.length!==v.length||t.display.visibleColumns.some(ie=>!v.includes(ie)),O=t.display.rowSize!==R,z=t.display.scoreDisplay!==E,q=t.display.averageMode!==L,K=t.display.rankingMode!==k,Q=t.filters.isOfficialProviderActive!==P,ee=t.filters.precisions.length!==M.length||t.filters.precisions.some(ie=>!M.includes(ie)),D=t.filters.types.length!==j.length||t.filters.types.some(ie=>!j.includes(ie));_&&(t.filters.paramsRange[0]!==-1||t.filters.paramsRange[1]!==140?g.set("params",t.filters.paramsRange.join(",")):g.delete("params")),N&&(t.filters.booleanFilters.length>0?g.set("filters",t.filters.booleanFilters.join(",")):g.delete("filters")),V&&(t.filters.search?g.set("search",t.filters.search):g.delete("search")),I&&(t.pinnedModels.length>0?g.set("pinned",t.pinnedModels.join(",")):g.delete("pinned")),F&&(JSON.stringify([...t.display.visibleColumns].sort())!==JSON.stringify([...Ge.COLUMNS.DEFAULT_VISIBLE].sort())?g.set("columns",t.display.visibleColumns.join(",")):g.delete("columns")),O&&(t.display.rowSize!==Ge.ROW_SIZE?g.set("rowSize",t.display.rowSize):g.delete("rowSize")),z&&(t.display.scoreDisplay!==Ge.SCORE_DISPLAY?g.set("scoreDisplay",t.display.scoreDisplay):g.delete("scoreDisplay")),q&&(t.display.averageMode!==Ge.AVERAGE_MODE?g.set("averageMode",t.display.averageMode):g.delete("averageMode")),K&&(t.display.rankingMode!==Ge.RANKING_MODE?g.set("rankingMode",t.display.rankingMode):g.delete("rankingMode")),Q&&(t.filters.isOfficialProviderActive?g.set("official","true"):g.delete("official")),ee&&(JSON.stringify([...t.filters.precisions].sort())!==JSON.stringify([...da].sort())?g.set("precision",t.filters.precisions.join(",")):g.delete("precision")),D&&(JSON.stringify([...t.filters.types].sort())!==JSON.stringify([...es].sort())?g.set("types",t.filters.types.join(",")):g.delete("types")),(_||N||V||I||F||O||z||q||K||Q||ee||D)&&s(g)},[t,o,a.state]);const u=w.useMemo(()=>({setModels:g=>n({type:"SET_MODELS",payload:g}),setLoading:g=>n({type:"SET_LOADING",payload:g}),setError:g=>n({type:"SET_ERROR",payload:g}),setFilter:(g,y)=>n({type:"SET_FILTER",key:g,value:y}),setDisplayOption:(g,y)=>n({type:"SET_DISPLAY_OPTION",key:g,value:y}),togglePinnedModel:g=>n({type:"TOGGLE_PINNED_MODEL",payload:g}),toggleOfficialProvider:()=>n({type:"TOGGLE_OFFICIAL_PROVIDER"}),toggleFiltersExpanded:()=>n({type:"TOGGLE_FILTERS_EXPANDED"}),resetFilters:()=>{n({type:"RESET_FILTERS"});const g=new URLSearchParams(o);["filters","params","precision","types","official","search"].forEach(y=>{g.delete(y)}),s(g)},resetAll:()=>{n({type:"RESET_ALL"}),s({},{state:{skipUrlSync:!0}})}}),[o,s]),c=w.useCallback((g,y,C)=>dP(g,y,t.filters,C),[t.filters]),p=w.useCallback(g=>D4(g,t.filters),[t.filters]),h=w.useMemo(()=>({state:{...t,loading:t.loading||!t.countsReady},actions:u,utils:{getFilteredCounts:c,checkModelMatchesFilters:p}}),[t,u,c,p]);return d.jsx(z4.Provider,{value:h,children:e})},mi=()=>{const e=w.useContext(z4);if(!e)throw new Error("useLeaderboard must be used within a LeaderboardProvider");return e};var ou=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ts=typeof window>"u"||"Deno"in globalThis;function fr(){}function gP(e,t){return typeof e=="function"?e(t):e}function w1(e){return typeof e=="number"&&e>=0&&e!==1/0}function B4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vs(e,t){return typeof e=="function"?e(t):e}function Tr(e,t){return typeof e=="function"?e(t):e}function b5(e,t){const{type:n="all",exact:o,fetchStatus:s,predicate:a,queryKey:u,stale:c}=e;if(u){if(o){if(t.queryHash!==_h(u,t.options))return!1}else if(!Ul(t.queryKey,u))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||s&&s!==t.state.fetchStatus||a&&!a(t))}function S5(e,t){const{exact:n,status:o,predicate:s,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Vl(t.options.mutationKey)!==Vl(a))return!1}else if(!Ul(t.options.mutationKey,a))return!1}return!(o&&t.state.status!==o||s&&!s(t))}function _h(e,t){return((t==null?void 0:t.queryKeyHashFn)||Vl)(e)}function Vl(e){return JSON.stringify(e,(t,n)=>k1(n)?Object.keys(n).sort().reduce((o,s)=>(o[s]=n[s],o),{}):n)}function Ul(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ul(e[n],t[n])):!1}function V4(e,t){if(e===t)return e;const n=w5(e)&&w5(t);if(n||k1(e)&&k1(t)){const o=n?e:Object.keys(e),s=o.length,a=n?t:Object.keys(t),u=a.length,c=n?[]:{};let p=0;for(let h=0;h{setTimeout(t,e)})}function E1(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?V4(e,t):t}function yP(e,t,n=0){const o=[...e,t];return n&&o.length>n?o.slice(1):o}function vP(e,t,n=0){const o=[t,...e];return n&&o.length>n?o.slice(0,-1):o}var $h=Symbol();function U4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$h?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Di,Jo,Us,K5,xP=(K5=class extends ou{constructor(){super();Ye(this,Di);Ye(this,Jo);Ye(this,Us);Me(this,Us,t=>{if(!ts&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){H(this,Jo)||this.setEventListener(H(this,Us))}onUnsubscribe(){var t;this.hasListeners()||((t=H(this,Jo))==null||t.call(this),Me(this,Jo,void 0))}setEventListener(t){var n;Me(this,Us,t),(n=H(this,Jo))==null||n.call(this),Me(this,Jo,t(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(t){H(this,Di)!==t&&(Me(this,Di,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof H(this,Di)=="boolean"?H(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Jo=new WeakMap,Us=new WeakMap,K5),Ah=new xP,Hs,ei,Ws,q5,CP=(q5=class extends ou{constructor(){super();Ye(this,Hs,!0);Ye(this,ei);Ye(this,Ws);Me(this,Ws,t=>{if(!ts&&window.addEventListener){const n=()=>t(!0),o=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",o)}}})}onSubscribe(){H(this,ei)||this.setEventListener(H(this,Ws))}onUnsubscribe(){var t;this.hasListeners()||((t=H(this,ei))==null||t.call(this),Me(this,ei,void 0))}setEventListener(t){var n;Me(this,Ws,t),(n=H(this,ei))==null||n.call(this),Me(this,ei,t(this.setOnline.bind(this)))}setOnline(t){H(this,Hs)!==t&&(Me(this,Hs,t),this.listeners.forEach(o=>{o(t)}))}isOnline(){return H(this,Hs)}},Hs=new WeakMap,ei=new WeakMap,Ws=new WeakMap,q5),rd=new CP;function P1(){let e,t;const n=new Promise((s,a)=>{e=s,t=a});n.status="pending",n.catch(()=>{});function o(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{o({status:"fulfilled",value:s}),e(s)},n.reject=s=>{o({status:"rejected",reason:s}),t(s)},n}function bP(e){return Math.min(1e3*2**e,3e4)}function H4(e){return(e??"online")==="online"?rd.isOnline():!0}var W4=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zp(e){return e instanceof W4}function G4(e){let t=!1,n=0,o=!1,s;const a=P1(),u=v=>{var R;o||(C(new W4(v)),(R=e.abort)==null||R.call(e))},c=()=>{t=!0},p=()=>{t=!1},h=()=>Ah.isFocused()&&(e.networkMode==="always"||rd.isOnline())&&e.canRun(),g=()=>H4(e.networkMode)&&e.canRun(),y=v=>{var R;o||(o=!0,(R=e.onSuccess)==null||R.call(e,v),s==null||s(),a.resolve(v))},C=v=>{var R;o||(o=!0,(R=e.onError)==null||R.call(e,v),s==null||s(),a.reject(v))},x=()=>new Promise(v=>{var R;s=E=>{(o||h())&&v(E)},(R=e.onPause)==null||R.call(e)}).then(()=>{var v;s=void 0,o||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(o)return;let v;const R=n===0?e.initialPromise:void 0;try{v=R??e.fn()}catch(E){v=Promise.reject(E)}Promise.resolve(v).then(y).catch(E=>{var j;if(o)return;const L=e.retry??(ts?0:3),k=e.retryDelay??bP,P=typeof k=="function"?k(n,E):k,M=L===!0||typeof L=="number"&&nh()?void 0:x()).then(()=>{t?C(E):b()})})};return{promise:a,cancel:u,continue:()=>(s==null||s(),a),cancelRetry:c,continueRetry:p,canStart:g,start:()=>(g()?b():x().then(b),a)}}function SP(){let e=[],t=0,n=c=>{c()},o=c=>{c()},s=c=>setTimeout(c,0);const a=c=>{t?e.push(c):s(()=>{n(c)})},u=()=>{const c=e;e=[],c.length&&s(()=>{o(()=>{c.forEach(p=>{n(p)})})})};return{batch:c=>{let p;t++;try{p=c()}finally{t--,t||u()}return p},batchCalls:c=>(...p)=>{a(()=>{c(...p)})},schedule:a,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{o=c},setScheduler:c=>{s=c}}}var hn=SP(),Bi,Q5,K4=(Q5=class{constructor(){Ye(this,Bi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),w1(this.gcTime)&&Me(this,Bi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ts?1/0:5*60*1e3))}clearGcTimeout(){H(this,Bi)&&(clearTimeout(H(this,Bi)),Me(this,Bi,void 0))}},Bi=new WeakMap,Q5),Gs,Ks,dr,Vi,wn,Hl,Ui,Mr,mo,Y5,wP=(Y5=class extends K4{constructor(t){super();Ye(this,Mr);Ye(this,Gs);Ye(this,Ks);Ye(this,dr);Ye(this,Vi);Ye(this,wn);Ye(this,Hl);Ye(this,Ui);Me(this,Ui,!1),Me(this,Hl,t.defaultOptions),this.setOptions(t.options),this.observers=[],Me(this,Vi,t.client),Me(this,dr,H(this,Vi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Me(this,Gs,RP(this.options)),this.state=t.state??H(this,Gs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=H(this,wn))==null?void 0:t.promise}setOptions(t){this.options={...H(this,Hl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&H(this,dr).remove(this)}setData(t,n){const o=E1(this.state.data,t,this.options);return ct(this,Mr,mo).call(this,{data:o,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),o}setState(t,n){ct(this,Mr,mo).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var o,s;const n=(o=H(this,wn))==null?void 0:o.promise;return(s=H(this,wn))==null||s.cancel(t),n?n.then(fr).catch(fr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(H(this,Gs))}isActive(){return this.observers.some(t=>Tr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$h||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!B4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(o=>o.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=H(this,wn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(o=>o.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=H(this,wn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),H(this,dr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(H(this,wn)&&(H(this,Ui)?H(this,wn).cancel({revert:!0}):H(this,wn).cancelRetry()),this.scheduleGc()),H(this,dr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ct(this,Mr,mo).call(this,{type:"invalidate"})}fetch(t,n){var p,h,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(H(this,wn))return H(this,wn).continueRetry(),H(this,wn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(C=>C.options.queryFn);y&&this.setOptions(y.options)}const o=new AbortController,s=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(Me(this,Ui,!0),o.signal)})},a=()=>{const y=U4(this.options,n),C={client:H(this,Vi),queryKey:this.queryKey,meta:this.meta};return s(C),Me(this,Ui,!1),this.options.persister?this.options.persister(y,C,this):y(C)},u={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:H(this,Vi),state:this.state,fetchFn:a};s(u),(p=this.options.behavior)==null||p.onFetch(u,this),Me(this,Ks,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&ct(this,Mr,mo).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta});const c=y=>{var C,x,b,v;zp(y)&&y.silent||ct(this,Mr,mo).call(this,{type:"error",error:y}),zp(y)||((x=(C=H(this,dr).config).onError)==null||x.call(C,y,this),(v=(b=H(this,dr).config).onSettled)==null||v.call(b,this.state.data,y,this)),this.scheduleGc()};return Me(this,wn,G4({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,abort:o.abort.bind(o),onSuccess:y=>{var C,x,b,v;if(y===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(R){c(R);return}(x=(C=H(this,dr).config).onSuccess)==null||x.call(C,y,this),(v=(b=H(this,dr).config).onSettled)==null||v.call(b,y,this.state.error,this),this.scheduleGc()},onError:c,onFail:(y,C)=>{ct(this,Mr,mo).call(this,{type:"failed",failureCount:y,error:C})},onPause:()=>{ct(this,Mr,mo).call(this,{type:"pause"})},onContinue:()=>{ct(this,Mr,mo).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),H(this,wn).start()}},Gs=new WeakMap,Ks=new WeakMap,dr=new WeakMap,Vi=new WeakMap,wn=new WeakMap,Hl=new WeakMap,Ui=new WeakMap,Mr=new WeakSet,mo=function(t){const n=o=>{switch(t.type){case"failed":return{...o,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...q4(o.data,this.options),fetchMeta:t.meta??null};case"success":return{...o,data:t.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return zp(s)&&s.revert&&H(this,Ks)?{...H(this,Ks),fetchStatus:"idle"}:{...o,error:s,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...t.state}}};this.state=n(this.state),hn.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),H(this,dr).notify({query:this,type:"updated",action:t})})},Y5);function q4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function RP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,o=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Hr,X5,kP=(X5=class extends ou{constructor(t={}){super();Ye(this,Hr);this.config=t,Me(this,Hr,new Map)}build(t,n,o){const s=n.queryKey,a=n.queryHash??_h(s,n);let u=this.get(a);return u||(u=new wP({client:t,queryKey:s,queryHash:a,options:t.defaultQueryOptions(n),state:o,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){H(this,Hr).has(t.queryHash)||(H(this,Hr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=H(this,Hr).get(t.queryHash);n&&(t.destroy(),n===t&&H(this,Hr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){hn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return H(this,Hr).get(t)}getAll(){return[...H(this,Hr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(o=>b5(n,o))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(o=>b5(t,o)):n}notify(t){hn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){hn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){hn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Hr=new WeakMap,X5),Wr,In,Hi,Gr,Zo,Z5,EP=(Z5=class extends K4{constructor(t){super();Ye(this,Gr);Ye(this,Wr);Ye(this,In);Ye(this,Hi);this.mutationId=t.mutationId,Me(this,In,t.mutationCache),Me(this,Wr,[]),this.state=t.state||PP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){H(this,Wr).includes(t)||(H(this,Wr).push(t),this.clearGcTimeout(),H(this,In).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Me(this,Wr,H(this,Wr).filter(n=>n!==t)),this.scheduleGc(),H(this,In).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){H(this,Wr).length||(this.state.status==="pending"?this.scheduleGc():H(this,In).remove(this))}continue(){var t;return((t=H(this,Hi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,a,u,c,p,h,g,y,C,x,b,v,R,E,L,k,P,M,j,_;Me(this,Hi,G4({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,V)=>{ct(this,Gr,Zo).call(this,{type:"failed",failureCount:N,error:V})},onPause:()=>{ct(this,Gr,Zo).call(this,{type:"pause"})},onContinue:()=>{ct(this,Gr,Zo).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>H(this,In).canRun(this)}));const n=this.state.status==="pending",o=!H(this,Hi).canStart();try{if(!n){ct(this,Gr,Zo).call(this,{type:"pending",variables:t,isPaused:o}),await((a=(s=H(this,In).config).onMutate)==null?void 0:a.call(s,t,this));const V=await((c=(u=this.options).onMutate)==null?void 0:c.call(u,t));V!==this.state.context&&ct(this,Gr,Zo).call(this,{type:"pending",context:V,variables:t,isPaused:o})}const N=await H(this,Hi).start();return await((h=(p=H(this,In).config).onSuccess)==null?void 0:h.call(p,N,t,this.state.context,this)),await((y=(g=this.options).onSuccess)==null?void 0:y.call(g,N,t,this.state.context)),await((x=(C=H(this,In).config).onSettled)==null?void 0:x.call(C,N,null,this.state.variables,this.state.context,this)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,N,null,t,this.state.context)),ct(this,Gr,Zo).call(this,{type:"success",data:N}),N}catch(N){try{throw await((E=(R=H(this,In).config).onError)==null?void 0:E.call(R,N,t,this.state.context,this)),await((k=(L=this.options).onError)==null?void 0:k.call(L,N,t,this.state.context)),await((M=(P=H(this,In).config).onSettled)==null?void 0:M.call(P,void 0,N,this.state.variables,this.state.context,this)),await((_=(j=this.options).onSettled)==null?void 0:_.call(j,void 0,N,t,this.state.context)),N}finally{ct(this,Gr,Zo).call(this,{type:"error",error:N})}}finally{H(this,In).runNext(this)}}},Wr=new WeakMap,In=new WeakMap,Hi=new WeakMap,Gr=new WeakSet,Zo=function(t){const n=o=>{switch(t.type){case"failed":return{...o,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"pending":return{...o,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...o,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:t.error,failureCount:o.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),hn.batch(()=>{H(this,Wr).forEach(o=>{o.onMutationUpdate(t)}),H(this,In).notify({mutation:this,type:"updated",action:t})})},Z5);function PP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xo,Lr,Wl,J5,IP=(J5=class extends ou{constructor(t={}){super();Ye(this,xo);Ye(this,Lr);Ye(this,Wl);this.config=t,Me(this,xo,new Set),Me(this,Lr,new Map),Me(this,Wl,0)}build(t,n,o){const s=new EP({mutationCache:this,mutationId:++fc(this,Wl)._,options:t.defaultMutationOptions(n),state:o});return this.add(s),s}add(t){H(this,xo).add(t);const n=Mc(t);if(typeof n=="string"){const o=H(this,Lr).get(n);o?o.push(t):H(this,Lr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(H(this,xo).delete(t)){const n=Mc(t);if(typeof n=="string"){const o=H(this,Lr).get(n);if(o)if(o.length>1){const s=o.indexOf(t);s!==-1&&o.splice(s,1)}else o[0]===t&&H(this,Lr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Mc(t);if(typeof n=="string"){const o=H(this,Lr).get(n),s=o==null?void 0:o.find(a=>a.state.status==="pending");return!s||s===t}else return!0}runNext(t){var o;const n=Mc(t);if(typeof n=="string"){const s=(o=H(this,Lr).get(n))==null?void 0:o.find(a=>a!==t&&a.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){hn.batch(()=>{H(this,xo).forEach(t=>{this.notify({type:"removed",mutation:t})}),H(this,xo).clear(),H(this,Lr).clear()})}getAll(){return Array.from(H(this,xo))}find(t){const n={exact:!0,...t};return this.getAll().find(o=>S5(n,o))}findAll(t={}){return this.getAll().filter(n=>S5(t,n))}notify(t){hn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return hn.batch(()=>Promise.all(t.map(n=>n.continue().catch(fr))))}},xo=new WeakMap,Lr=new WeakMap,Wl=new WeakMap,J5);function Mc(e){var t;return(t=e.options.scope)==null?void 0:t.id}function k5(e){return{onFetch:(t,n)=>{var g,y,C,x,b;const o=t.options,s=(C=(y=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:y.fetchMore)==null?void 0:C.direction,a=((x=t.state.data)==null?void 0:x.pages)||[],u=((b=t.state.data)==null?void 0:b.pageParams)||[];let c={pages:[],pageParams:[]},p=0;const h=async()=>{let v=!1;const R=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},E=U4(t.options,t.fetchOptions),L=async(k,P,M)=>{if(v)return Promise.reject();if(P==null&&k.pages.length)return Promise.resolve(k);const j={client:t.client,queryKey:t.queryKey,pageParam:P,direction:M?"backward":"forward",meta:t.options.meta};R(j);const _=await E(j),{maxPages:N}=t.options,V=M?vP:yP;return{pages:V(k.pages,_,N),pageParams:V(k.pageParams,P,N)}};if(s&&a.length){const k=s==="backward",P=k?MP:E5,M={pages:a,pageParams:u},j=P(o,M);c=await L(M,j,k)}else{const k=e??a.length;do{const P=p===0?u[0]??o.initialPageParam:E5(o,c);if(p>0&&P==null)break;c=await L(c,P),p++}while(p{var v,R;return(R=(v=t.options).persister)==null?void 0:R.call(v,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function E5(e,{pages:t,pageParams:n}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,n[o],n):void 0}function MP(e,{pages:t,pageParams:n}){var o;return t.length>0?(o=e.getPreviousPageParam)==null?void 0:o.call(e,t[0],t,n[0],n):void 0}var Ht,ti,ni,qs,Qs,ri,Ys,Xs,ey,LP=(ey=class{constructor(e={}){Ye(this,Ht);Ye(this,ti);Ye(this,ni);Ye(this,qs);Ye(this,Qs);Ye(this,ri);Ye(this,Ys);Ye(this,Xs);Me(this,Ht,e.queryCache||new kP),Me(this,ti,e.mutationCache||new IP),Me(this,ni,e.defaultOptions||{}),Me(this,qs,new Map),Me(this,Qs,new Map),Me(this,ri,0)}mount(){fc(this,ri)._++,H(this,ri)===1&&(Me(this,Ys,Ah.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,Ht).onFocus())})),Me(this,Xs,rd.subscribe(async e=>{e&&(await this.resumePausedMutations(),H(this,Ht).onOnline())})))}unmount(){var e,t;fc(this,ri)._--,H(this,ri)===0&&((e=H(this,Ys))==null||e.call(this),Me(this,Ys,void 0),(t=H(this,Xs))==null||t.call(this),Me(this,Xs,void 0))}isFetching(e){return H(this,Ht).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return H(this,ti).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=H(this,Ht).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=H(this,Ht).build(this,t),o=n.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return H(this,Ht).findAll(e).map(({queryKey:t,state:n})=>{const o=n.data;return[t,o]})}setQueryData(e,t,n){const o=this.defaultQueryOptions({queryKey:e}),s=H(this,Ht).get(o.queryHash),a=s==null?void 0:s.state.data,u=gP(t,a);if(u!==void 0)return H(this,Ht).build(this,o).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return hn.batch(()=>H(this,Ht).findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=H(this,Ht).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=H(this,Ht);hn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=H(this,Ht),o={type:"active",...e};return hn.batch(()=>(n.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries(o,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},o=hn.batch(()=>H(this,Ht).findAll(e).map(s=>s.cancel(n)));return Promise.all(o).then(fr).catch(fr)}invalidateQueries(e,t={}){return hn.batch(()=>{if(H(this,Ht).findAll(e).forEach(o=>{o.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},o=hn.batch(()=>H(this,Ht).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let a=s.fetch(void 0,n);return n.throwOnError||(a=a.catch(fr)),s.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(o).then(fr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=H(this,Ht).build(this,t);return n.isStaleByTime(Vs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fr).catch(fr)}fetchInfiniteQuery(e){return e.behavior=k5(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fr).catch(fr)}ensureInfiniteQueryData(e){return e.behavior=k5(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return rd.isOnline()?H(this,ti).resumePausedMutations():Promise.resolve()}getQueryCache(){return H(this,Ht)}getMutationCache(){return H(this,ti)}getDefaultOptions(){return H(this,ni)}setDefaultOptions(e){Me(this,ni,e)}setQueryDefaults(e,t){H(this,qs).set(Vl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...H(this,qs).values()],n={};return t.forEach(o=>{Ul(e,o.queryKey)&&Object.assign(n,o.defaultOptions)}),n}setMutationDefaults(e,t){H(this,Qs).set(Vl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...H(this,Qs).values()];let n={};return t.forEach(o=>{Ul(e,o.mutationKey)&&(n={...n,...o.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...H(this,ni).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_h(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===$h&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...H(this,ni).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){H(this,Ht).clear(),H(this,ti).clear()}},Ht=new WeakMap,ti=new WeakMap,ni=new WeakMap,qs=new WeakMap,Qs=new WeakMap,ri=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,ey),Nn,dt,Gl,Mn,Wi,Zs,oi,Kr,Kl,Js,ea,Gi,Ki,ii,ta,St,Cl,I1,M1,L1,T1,j1,O1,_1,Q4,ty,TP=(ty=class extends ou{constructor(t,n){super();Ye(this,St);Ye(this,Nn);Ye(this,dt);Ye(this,Gl);Ye(this,Mn);Ye(this,Wi);Ye(this,Zs);Ye(this,oi);Ye(this,Kr);Ye(this,Kl);Ye(this,Js);Ye(this,ea);Ye(this,Gi);Ye(this,Ki);Ye(this,ii);Ye(this,ta,new Set);this.options=n,Me(this,Nn,t),Me(this,Kr,null),Me(this,oi,P1()),this.options.experimental_prefetchInRender||H(this,oi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(H(this,dt).addObserver(this),P5(H(this,dt),this.options)?ct(this,St,Cl).call(this):this.updateResult(),ct(this,St,T1).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $1(H(this,dt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $1(H(this,dt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ct(this,St,j1).call(this),ct(this,St,O1).call(this),H(this,dt).removeObserver(this)}setOptions(t,n){const o=this.options,s=H(this,dt);if(this.options=H(this,Nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tr(this.options.enabled,H(this,dt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ct(this,St,_1).call(this),H(this,dt).setOptions(this.options),o._defaulted&&!R1(this.options,o)&&H(this,Nn).getQueryCache().notify({type:"observerOptionsUpdated",query:H(this,dt),observer:this});const a=this.hasListeners();a&&I5(H(this,dt),s,this.options,o)&&ct(this,St,Cl).call(this),this.updateResult(n),a&&(H(this,dt)!==s||Tr(this.options.enabled,H(this,dt))!==Tr(o.enabled,H(this,dt))||Vs(this.options.staleTime,H(this,dt))!==Vs(o.staleTime,H(this,dt)))&&ct(this,St,I1).call(this);const u=ct(this,St,M1).call(this);a&&(H(this,dt)!==s||Tr(this.options.enabled,H(this,dt))!==Tr(o.enabled,H(this,dt))||u!==H(this,ii))&&ct(this,St,L1).call(this,u)}getOptimisticResult(t){const n=H(this,Nn).getQueryCache().build(H(this,Nn),t),o=this.createResult(n,t);return OP(this,o)&&(Me(this,Mn,o),Me(this,Zs,this.options),Me(this,Wi,H(this,dt).state)),o}getCurrentResult(){return H(this,Mn)}trackResult(t,n){const o={};return Object.keys(t).forEach(s=>{Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),o}trackProp(t){H(this,ta).add(t)}getCurrentQuery(){return H(this,dt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=H(this,Nn).defaultQueryOptions(t),o=H(this,Nn).getQueryCache().build(H(this,Nn),n);return o.fetch().then(()=>this.createResult(o,n))}fetch(t){return ct(this,St,Cl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),H(this,Mn)))}createResult(t,n){var N;const o=H(this,dt),s=this.options,a=H(this,Mn),u=H(this,Wi),c=H(this,Zs),h=t!==o?t.state:H(this,Gl),{state:g}=t;let y={...g},C=!1,x;if(n._optimisticResults){const V=this.hasListeners(),I=!V&&P5(t,n),F=V&&I5(t,o,n,s);(I||F)&&(y={...y,...q4(g.data,t.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:R}=y;if(n.select&&y.data!==void 0)if(a&&y.data===(u==null?void 0:u.data)&&n.select===H(this,Kl))x=H(this,Js);else try{Me(this,Kl,n.select),x=n.select(y.data),x=E1(a==null?void 0:a.data,x,n),Me(this,Js,x),Me(this,Kr,null)}catch(V){Me(this,Kr,V)}else x=y.data;if(n.placeholderData!==void 0&&x===void 0&&R==="pending"){let V;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(c==null?void 0:c.placeholderData))V=a.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((N=H(this,ea))==null?void 0:N.state.data,H(this,ea)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),Me(this,Kr,null)}catch(I){Me(this,Kr,I)}V!==void 0&&(R="success",x=E1(a==null?void 0:a.data,V,n),C=!0)}H(this,Kr)&&(b=H(this,Kr),x=H(this,Js),v=Date.now(),R="error");const E=y.fetchStatus==="fetching",L=R==="pending",k=R==="error",P=L&&E,M=x!==void 0,_={status:R,fetchStatus:y.fetchStatus,isPending:L,isSuccess:R==="success",isError:k,isInitialLoading:P,isLoading:P,data:x,dataUpdatedAt:y.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>h.dataUpdateCount||y.errorUpdateCount>h.errorUpdateCount,isFetching:E,isRefetching:E&&!L,isLoadingError:k&&!M,isPaused:y.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:k&&M,isStale:Fh(t,n),refetch:this.refetch,promise:H(this,oi)};if(this.options.experimental_prefetchInRender){const V=O=>{_.status==="error"?O.reject(_.error):_.data!==void 0&&O.resolve(_.data)},I=()=>{const O=Me(this,oi,_.promise=P1());V(O)},F=H(this,oi);switch(F.status){case"pending":t.queryHash===o.queryHash&&V(F);break;case"fulfilled":(_.status==="error"||_.data!==F.value)&&I();break;case"rejected":(_.status!=="error"||_.error!==F.reason)&&I();break}}return _}updateResult(t){const n=H(this,Mn),o=this.createResult(H(this,dt),this.options);if(Me(this,Wi,H(this,dt).state),Me(this,Zs,this.options),H(this,Wi).data!==void 0&&Me(this,ea,H(this,dt)),R1(o,n))return;Me(this,Mn,o);const s={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:u}=this.options,c=typeof u=="function"?u():u;if(c==="all"||!c&&!H(this,ta).size)return!0;const p=new Set(c??H(this,ta));return this.options.throwOnError&&p.add("error"),Object.keys(H(this,Mn)).some(h=>{const g=h;return H(this,Mn)[g]!==n[g]&&p.has(g)})};(t==null?void 0:t.listeners)!==!1&&a()&&(s.listeners=!0),ct(this,St,Q4).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ct(this,St,T1).call(this)}},Nn=new WeakMap,dt=new WeakMap,Gl=new WeakMap,Mn=new WeakMap,Wi=new WeakMap,Zs=new WeakMap,oi=new WeakMap,Kr=new WeakMap,Kl=new WeakMap,Js=new WeakMap,ea=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,ii=new WeakMap,ta=new WeakMap,St=new WeakSet,Cl=function(t){ct(this,St,_1).call(this);let n=H(this,dt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(fr)),n},I1=function(){ct(this,St,j1).call(this);const t=Vs(this.options.staleTime,H(this,dt));if(ts||H(this,Mn).isStale||!w1(t))return;const o=B4(H(this,Mn).dataUpdatedAt,t)+1;Me(this,Gi,setTimeout(()=>{H(this,Mn).isStale||this.updateResult()},o))},M1=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(H(this,dt)):this.options.refetchInterval)??!1},L1=function(t){ct(this,St,O1).call(this),Me(this,ii,t),!(ts||Tr(this.options.enabled,H(this,dt))===!1||!w1(H(this,ii))||H(this,ii)===0)&&Me(this,Ki,setInterval(()=>{(this.options.refetchIntervalInBackground||Ah.isFocused())&&ct(this,St,Cl).call(this)},H(this,ii)))},T1=function(){ct(this,St,I1).call(this),ct(this,St,L1).call(this,ct(this,St,M1).call(this))},j1=function(){H(this,Gi)&&(clearTimeout(H(this,Gi)),Me(this,Gi,void 0))},O1=function(){H(this,Ki)&&(clearInterval(H(this,Ki)),Me(this,Ki,void 0))},_1=function(){const t=H(this,Nn).getQueryCache().build(H(this,Nn),this.options);if(t===H(this,dt))return;const n=H(this,dt);Me(this,dt,t),Me(this,Gl,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Q4=function(t){hn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(H(this,Mn))}),H(this,Nn).getQueryCache().notify({query:H(this,dt),type:"observerResultsUpdated"})})},ty);function jP(e,t){return Tr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function P5(e,t){return jP(e,t)||e.state.data!==void 0&&$1(e,t,t.refetchOnMount)}function $1(e,t,n){if(Tr(t.enabled,e)!==!1){const o=typeof n=="function"?n(e):n;return o==="always"||o!==!1&&Fh(e,t)}return!1}function I5(e,t,n,o){return(e!==t||Tr(o.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Fh(e,n)}function Fh(e,t){return Tr(t.enabled,e)!==!1&&e.isStaleByTime(Vs(t.staleTime,e))}function OP(e,t){return!R1(e.getCurrentResult(),t)}var Y4=w.createContext(void 0),X4=e=>{const t=w.useContext(Y4);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},_P=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Y4.Provider,{value:e,children:t})),Z4=w.createContext(!1),$P=()=>w.useContext(Z4);Z4.Provider;function AP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var FP=w.createContext(AP()),zP=()=>w.useContext(FP);function NP(e,t){return typeof e=="function"?e(...t):!!e}function M5(){}var DP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},BP=e=>{w.useEffect(()=>{e.clearReset()},[e])},VP=({result:e,errorResetBoundary:t,throwOnError:n,query:o,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(s&&e.data===void 0||NP(n,[e.error,o])),UP=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},HP=(e,t)=>e.isLoading&&e.isFetching&&!t,WP=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,L5=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function GP(e,t,n){var y,C,x,b,v;const o=X4(),s=$P(),a=zP(),u=o.defaultQueryOptions(e);(C=(y=o.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||C.call(y,u),u._optimisticResults=s?"isRestoring":"optimistic",UP(u),DP(u,a),BP(a);const c=!o.getQueryCache().get(u.queryHash),[p]=w.useState(()=>new t(o,u)),h=p.getOptimisticResult(u),g=!s&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(R=>{const E=g?p.subscribe(hn.batchCalls(R)):M5;return p.updateResult(),E},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(u,{listeners:!1})},[u,p]),WP(u,h))throw L5(u,p,a);if(VP({result:h,errorResetBoundary:a,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;if((b=(x=o.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||b.call(x,u,h),u.experimental_prefetchInRender&&!ts&&HP(h,s)){const R=c?L5(u,p,a):(v=o.getQueryCache().get(u.queryHash))==null?void 0:v.promise;R==null||R.catch(M5).finally(()=>{p.updateResult()})}return u.notifyOnChangeProps?h:p.trackResult(h)}function KP(e,t){return GP(e,TP)}/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function li(e,t){return typeof e=="function"?e(t):e}function nr(e,t){return n=>{t.setState(o=>({...o,[e]:li(n,o[e])}))}}function _d(e){return e instanceof Function}function qP(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function QP(e,t){const n=[],o=s=>{s.forEach(a=>{n.push(a);const u=t(a);u!=null&&u.length&&o(u)})};return o(e),n}function qe(e,t,n){let o=[],s;return a=>{let u;n.key&&n.debug&&(u=Date.now());const c=e(a);if(!(c.length!==o.length||c.some((g,y)=>o[y]!==g)))return s;o=c;let h;if(n.key&&n.debug&&(h=Date.now()),s=t(...c),n==null||n.onChange==null||n.onChange(s),n.key&&n.debug&&n!=null&&n.debug()){const g=Math.round((Date.now()-u)*100)/100,y=Math.round((Date.now()-h)*100)/100,C=y/16,x=(b,v)=>{for(b=String(b);b.length{var s;return(s=e==null?void 0:e.debugAll)!=null?s:e[t]},key:!1,onChange:o}}function YP(e,t,n,o){const s=()=>{var u;return(u=a.getValue())!=null?u:e.options.renderFallbackValue},a={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:s,getContext:qe(()=>[e,n,t,a],(u,c,p,h)=>({table:u,column:c,row:p,cell:h,getValue:h.getValue,renderValue:h.renderValue}),Qe(e.options,"debugCells"))};return e._features.forEach(u=>{u.createCell==null||u.createCell(a,n,t,e)},{}),a}function XP(e,t,n,o){var s,a;const c={...e._getDefaultColumnDef(),...t},p=c.accessorKey;let h=(s=(a=c.id)!=null?a:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?s:typeof c.header=="string"?c.header:void 0,g;if(c.accessorFn?g=c.accessorFn:p&&(p.includes(".")?g=C=>{let x=C;for(const v of p.split(".")){var b;x=(b=x)==null?void 0:b[v]}return x}:g=C=>C[c.accessorKey]),!h)throw new Error;let y={id:`${String(h)}`,accessorFn:g,parent:o,depth:n,columnDef:c,columns:[],getFlatColumns:qe(()=>[!0],()=>{var C;return[y,...(C=y.columns)==null?void 0:C.flatMap(x=>x.getFlatColumns())]},Qe(e.options,"debugColumns")),getLeafColumns:qe(()=>[e._getOrderColumnsFn()],C=>{var x;if((x=y.columns)!=null&&x.length){let b=y.columns.flatMap(v=>v.getLeafColumns());return C(b)}return[y]},Qe(e.options,"debugColumns"))};for(const C of e._features)C.createColumn==null||C.createColumn(y,e);return y}const bn="debugHeaders";function T5(e,t,n){var o;let a={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const u=[],c=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(c),u.push(p)};return c(a),u},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(u=>{u.createHeader==null||u.createHeader(a,e)}),a}const ZP={createTable:e=>{e.getHeaderGroups=qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,s)=>{var a,u;const c=(a=o==null?void 0:o.map(y=>n.find(C=>C.id===y)).filter(Boolean))!=null?a:[],p=(u=s==null?void 0:s.map(y=>n.find(C=>C.id===y)).filter(Boolean))!=null?u:[],h=n.filter(y=>!(o!=null&&o.includes(y.id))&&!(s!=null&&s.includes(y.id)));return Lc(t,[...c,...h,...p],e)},Qe(e.options,bn)),e.getCenterHeaderGroups=qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,s)=>(n=n.filter(a=>!(o!=null&&o.includes(a.id))&&!(s!=null&&s.includes(a.id))),Lc(t,n,e,"center")),Qe(e.options,bn)),e.getLeftHeaderGroups=qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var s;const a=(s=o==null?void 0:o.map(u=>n.find(c=>c.id===u)).filter(Boolean))!=null?s:[];return Lc(t,a,e,"left")},Qe(e.options,bn)),e.getRightHeaderGroups=qe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var s;const a=(s=o==null?void 0:o.map(u=>n.find(c=>c.id===u)).filter(Boolean))!=null?s:[];return Lc(t,a,e,"right")},Qe(e.options,bn)),e.getFooterGroups=qe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Qe(e.options,bn)),e.getLeftFooterGroups=qe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Qe(e.options,bn)),e.getCenterFooterGroups=qe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Qe(e.options,bn)),e.getRightFooterGroups=qe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Qe(e.options,bn)),e.getFlatHeaders=qe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Qe(e.options,bn)),e.getLeftFlatHeaders=qe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Qe(e.options,bn)),e.getCenterFlatHeaders=qe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Qe(e.options,bn)),e.getRightFlatHeaders=qe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Qe(e.options,bn)),e.getCenterLeafHeaders=qe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Qe(e.options,bn)),e.getLeftLeafHeaders=qe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Qe(e.options,bn)),e.getRightLeafHeaders=qe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),Qe(e.options,bn)),e.getLeafHeaders=qe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var s,a,u,c,p,h;return[...(s=(a=t[0])==null?void 0:a.headers)!=null?s:[],...(u=(c=n[0])==null?void 0:c.headers)!=null?u:[],...(p=(h=o[0])==null?void 0:h.headers)!=null?p:[]].map(g=>g.getLeafHeaders()).flat()},Qe(e.options,bn))}};function Lc(e,t,n,o){var s,a;let u=0;const c=function(C,x){x===void 0&&(x=1),u=Math.max(u,x),C.filter(b=>b.getIsVisible()).forEach(b=>{var v;(v=b.columns)!=null&&v.length&&c(b.columns,x+1)},0)};c(e);let p=[];const h=(C,x)=>{const b={depth:x,id:[o,`${x}`].filter(Boolean).join("_"),headers:[]},v=[];C.forEach(R=>{const E=[...v].reverse()[0],L=R.column.depth===b.depth;let k,P=!1;if(L&&R.column.parent?k=R.column.parent:(k=R.column,P=!0),E&&(E==null?void 0:E.column)===k)E.subHeaders.push(R);else{const M=T5(n,k,{id:[o,x,k.id,R==null?void 0:R.id].filter(Boolean).join("_"),isPlaceholder:P,placeholderId:P?`${v.filter(j=>j.column===k).length}`:void 0,depth:x,index:v.length});M.subHeaders.push(R),v.push(M)}b.headers.push(R),R.headerGroup=b}),p.push(b),x>0&&h(v,x-1)},g=t.map((C,x)=>T5(n,C,{depth:u,index:x}));h(g,u-1),p.reverse();const y=C=>C.filter(b=>b.column.getIsVisible()).map(b=>{let v=0,R=0,E=[0];b.subHeaders&&b.subHeaders.length?(E=[],y(b.subHeaders).forEach(k=>{let{colSpan:P,rowSpan:M}=k;v+=P,E.push(M)})):v=1;const L=Math.min(...E);return R=R+L,b.colSpan=v,b.rowSpan=R,{colSpan:v,rowSpan:R}});return y((s=(a=p[0])==null?void 0:a.headers)!=null?s:[]),p}const zh=(e,t,n,o,s,a,u)=>{let c={id:t,index:o,original:n,depth:s,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(c._valuesCache.hasOwnProperty(p))return c._valuesCache[p];const h=e.getColumn(p);if(h!=null&&h.accessorFn)return c._valuesCache[p]=h.accessorFn(c.original,o),c._valuesCache[p]},getUniqueValues:p=>{if(c._uniqueValuesCache.hasOwnProperty(p))return c._uniqueValuesCache[p];const h=e.getColumn(p);if(h!=null&&h.accessorFn)return h.columnDef.getUniqueValues?(c._uniqueValuesCache[p]=h.columnDef.getUniqueValues(c.original,o),c._uniqueValuesCache[p]):(c._uniqueValuesCache[p]=[c.getValue(p)],c._uniqueValuesCache[p])},renderValue:p=>{var h;return(h=c.getValue(p))!=null?h:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>QP(c.subRows,p=>p.subRows),getParentRow:()=>c.parentId?e.getRow(c.parentId,!0):void 0,getParentRows:()=>{let p=[],h=c;for(;;){const g=h.getParentRow();if(!g)break;p.push(g),h=g}return p.reverse()},getAllCells:qe(()=>[e.getAllLeafColumns()],p=>p.map(h=>YP(e,c,h,h.id)),Qe(e.options,"debugRows")),_getAllCellsByColumnId:qe(()=>[c.getAllCells()],p=>p.reduce((h,g)=>(h[g.column.id]=g,h),{}),Qe(e.options,"debugRows"))};for(let p=0;p{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},J4=(e,t,n)=>{var o,s;const a=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((s=e.getValue(t))==null||(s=s.toString())==null||(s=s.toLowerCase())==null)&&s.includes(a))};J4.autoRemove=e=>_r(e);const ev=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};ev.autoRemove=e=>_r(e);const tv=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};tv.autoRemove=e=>_r(e);const nv=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};nv.autoRemove=e=>_r(e)||!(e!=null&&e.length);const rv=(e,t,n)=>!n.some(o=>{var s;return!((s=e.getValue(t))!=null&&s.includes(o))});rv.autoRemove=e=>_r(e)||!(e!=null&&e.length);const ov=(e,t,n)=>n.some(o=>{var s;return(s=e.getValue(t))==null?void 0:s.includes(o)});ov.autoRemove=e=>_r(e)||!(e!=null&&e.length);const iv=(e,t,n)=>e.getValue(t)===n;iv.autoRemove=e=>_r(e);const sv=(e,t,n)=>e.getValue(t)==n;sv.autoRemove=e=>_r(e);const Nh=(e,t,n)=>{let[o,s]=n;const a=e.getValue(t);return a>=o&&a<=s};Nh.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,s=typeof n!="number"?parseFloat(n):n,a=t===null||Number.isNaN(o)?-1/0:o,u=n===null||Number.isNaN(s)?1/0:s;if(a>u){const c=a;a=u,u=c}return[a,u]};Nh.autoRemove=e=>_r(e)||_r(e[0])&&_r(e[1]);const yo={includesString:J4,includesStringSensitive:ev,equalsString:tv,arrIncludes:nv,arrIncludesAll:rv,arrIncludesSome:ov,equals:iv,weakEquals:sv,inNumberRange:Nh};function _r(e){return e==null||e===""}const eI={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:nr("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(e.id);return typeof o=="string"?yo.includesString:typeof o=="number"?yo.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?yo.equals:Array.isArray(o)?yo.arrIncludes:yo.weakEquals},e.getFilterFn=()=>{var n,o;return _d(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:yo[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,s;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(s=>s.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{const s=e.getFilterFn(),a=o==null?void 0:o.find(g=>g.id===e.id),u=li(n,a?a.value:void 0);if(j5(s,u,e)){var c;return(c=o==null?void 0:o.filter(g=>g.id!==e.id))!=null?c:[]}const p={id:e.id,value:u};if(a){var h;return(h=o==null?void 0:o.map(g=>g.id===e.id?p:g))!=null?h:[]}return o!=null&&o.length?[...o,p]:[p]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),o=s=>{var a;return(a=li(t,s))==null?void 0:a.filter(u=>{const c=n.find(p=>p.id===u.id);if(c){const p=c.getFilterFn();if(j5(p,u.value,c))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function j5(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const tI=(e,t,n)=>n.reduce((o,s)=>{const a=s.getValue(e);return o+(typeof a=="number"?a:0)},0),nI=(e,t,n)=>{let o;return n.forEach(s=>{const a=s.getValue(e);a!=null&&(o>a||o===void 0&&a>=a)&&(o=a)}),o},rI=(e,t,n)=>{let o;return n.forEach(s=>{const a=s.getValue(e);a!=null&&(o=a)&&(o=a)}),o},oI=(e,t,n)=>{let o,s;return n.forEach(a=>{const u=a.getValue(e);u!=null&&(o===void 0?u>=u&&(o=s=u):(o>u&&(o=u),s{let n=0,o=0;if(t.forEach(s=>{let a=s.getValue(e);a!=null&&(a=+a)>=a&&(++n,o+=a)}),n)return o/n},sI=(e,t)=>{if(!t.length)return;const n=t.map(a=>a.getValue(e));if(!qP(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),s=n.sort((a,u)=>a-u);return n.length%2!==0?s[o]:(s[o-1]+s[o])/2},aI=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),lI=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,uI=(e,t)=>t.length,Np={sum:tI,min:nI,max:rI,extent:oI,mean:iI,median:sI,unique:aI,uniqueCount:lI,count:uI},cI={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:nr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(e.id);if(typeof o=="number")return Np.sum;if(Object.prototype.toString.call(o)==="[object Date]")return Np.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return _d(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:Np[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var s;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((s=n.subRows)!=null&&s.length)}}};function dI(e,t,n){if(!(t!=null&&t.length)||!n)return e;const o=e.filter(a=>!t.includes(a.id));return n==="remove"?o:[...t.map(a=>e.find(u=>u.id===a)).filter(Boolean),...o]}const fI={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:nr("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=qe(n=>[Ml(t,n)],n=>n.findIndex(o=>o.id===e.id),Qe(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var o;return((o=Ml(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const s=Ml(t,n);return((o=s[s.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=qe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>s=>{let a=[];if(!(t!=null&&t.length))a=s;else{const u=[...t],c=[...s];for(;c.length&&u.length;){const p=u.shift(),h=c.findIndex(g=>g.id===p);h>-1&&a.push(c.splice(h,1)[0])}a=[...a,...c]}return dI(a,n,o)},Qe(e.options,"debugTable"))}},Dp=()=>({left:[],right:[]}),pI={getInitialState:e=>({columnPinning:Dp(),...e}),getDefaultOptions:e=>({onColumnPinningChange:nr("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map(s=>s.id).filter(Boolean);t.setColumnPinning(s=>{var a,u;if(n==="right"){var c,p;return{left:((c=s==null?void 0:s.left)!=null?c:[]).filter(y=>!(o!=null&&o.includes(y))),right:[...((p=s==null?void 0:s.right)!=null?p:[]).filter(y=>!(o!=null&&o.includes(y))),...o]}}if(n==="left"){var h,g;return{left:[...((h=s==null?void 0:s.left)!=null?h:[]).filter(y=>!(o!=null&&o.includes(y))),...o],right:((g=s==null?void 0:s.right)!=null?g:[]).filter(y=>!(o!=null&&o.includes(y)))}}return{left:((a=s==null?void 0:s.left)!=null?a:[]).filter(y=>!(o!=null&&o.includes(y))),right:((u=s==null?void 0:s.right)!=null?u:[]).filter(y=>!(o!=null&&o.includes(y)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var s,a,u;return((s=o.columnDef.enablePinning)!=null?s:!0)&&((a=(u=t.options.enableColumnPinning)!=null?u:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(c=>c.id),{left:o,right:s}=t.getState().columnPinning,a=n.some(c=>o==null?void 0:o.includes(c)),u=n.some(c=>s==null?void 0:s.includes(c));return a?"left":u?"right":!1},e.getPinnedIndex=()=>{var n,o;const s=e.getIsPinned();return s?(n=(o=t.getState().columnPinning)==null||(o=o[s])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,s)=>{const a=[...o??[],...s??[]];return n.filter(u=>!a.includes(u.column.id))},Qe(t.options,"debugRows")),e.getLeftVisibleCells=qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(a=>n.find(u=>u.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Qe(t.options,"debugRows")),e.getRightVisibleCells=qe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(a=>n.find(u=>u.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Qe(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?Dp():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:Dp())},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;if(!t){var s,a;return!!((s=o.left)!=null&&s.length||(a=o.right)!=null&&a.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(s=>s.id===o)).filter(Boolean),Qe(e.options,"debugColumns")),e.getRightLeafColumns=qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(s=>s.id===o)).filter(Boolean),Qe(e.options,"debugColumns")),e.getCenterLeafColumns=qe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{const s=[...n??[],...o??[]];return t.filter(a=>!s.includes(a.id))},Qe(e.options,"debugColumns"))}},Tc={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Bp=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),hI={getDefaultColumnDef:()=>Tc,getInitialState:e=>({columnSizing:{},columnSizingInfo:Bp(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:nr("columnSizing",e),onColumnSizingInfoChange:nr("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,s;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Tc.minSize,(o=a??e.columnDef.size)!=null?o:Tc.size),(s=e.columnDef.maxSize)!=null?s:Tc.maxSize)},e.getStart=qe(n=>[n,Ml(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((s,a)=>s+a.getSize(),0),Qe(t.options,"debugColumns")),e.getAfter=qe(n=>[n,Ml(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((s,a)=>s+a.getSize(),0),Qe(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...s}=n;return s})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const o=s=>{if(s.subHeaders.length)s.subHeaders.forEach(o);else{var a;n+=(a=s.column.getSize())!=null?a:0}};return o(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),s=o==null?void 0:o.getCanResize();return a=>{if(!o||!s||(a.persist==null||a.persist(),Vp(a)&&a.touches&&a.touches.length>1))return;const u=e.getSize(),c=e?e.getLeafHeaders().map(E=>[E.column.id,E.column.getSize()]):[[o.id,o.getSize()]],p=Vp(a)?Math.round(a.touches[0].clientX):a.clientX,h={},g=(E,L)=>{typeof L=="number"&&(t.setColumnSizingInfo(k=>{var P,M;const j=t.options.columnResizeDirection==="rtl"?-1:1,_=(L-((P=k==null?void 0:k.startOffset)!=null?P:0))*j,N=Math.max(_/((M=k==null?void 0:k.startSize)!=null?M:0),-.999999);return k.columnSizingStart.forEach(V=>{let[I,F]=V;h[I]=Math.round(Math.max(F+F*N,0)*100)/100}),{...k,deltaOffset:_,deltaPercentage:N}}),(t.options.columnResizeMode==="onChange"||E==="end")&&t.setColumnSizing(k=>({...k,...h})))},y=E=>g("move",E),C=E=>{g("end",E),t.setColumnSizingInfo(L=>({...L,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},x=n||typeof document<"u"?document:null,b={moveHandler:E=>y(E.clientX),upHandler:E=>{x==null||x.removeEventListener("mousemove",b.moveHandler),x==null||x.removeEventListener("mouseup",b.upHandler),C(E.clientX)}},v={moveHandler:E=>(E.cancelable&&(E.preventDefault(),E.stopPropagation()),y(E.touches[0].clientX),!1),upHandler:E=>{var L;x==null||x.removeEventListener("touchmove",v.moveHandler),x==null||x.removeEventListener("touchend",v.upHandler),E.cancelable&&(E.preventDefault(),E.stopPropagation()),C((L=E.touches[0])==null?void 0:L.clientX)}},R=gI()?{passive:!1}:!1;Vp(a)?(x==null||x.addEventListener("touchmove",v.moveHandler,R),x==null||x.addEventListener("touchend",v.upHandler,R)):(x==null||x.addEventListener("mousemove",b.moveHandler,R),x==null||x.addEventListener("mouseup",b.upHandler,R)),t.setColumnSizingInfo(E=>({...E,startOffset:p,startSize:u,deltaOffset:0,deltaPercentage:0,columnSizingStart:c,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Bp():(n=e.initialState.columnSizingInfo)!=null?n:Bp())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,s)=>o+s.getSize(),0))!=null?t:0}}};let jc=null;function gI(){if(typeof jc=="boolean")return jc;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return jc=e,jc}function Vp(e){return e.type==="touchstart"}const mI={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:nr("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;const s=e.columns;return(n=s.length?s.some(a=>a.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=qe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),Qe(t.options,"debugRows")),e.getVisibleCells=qe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,s)=>[...n,...o,...s],Qe(t.options,"debugRows"))},createTable:e=>{const t=(n,o)=>qe(()=>[o(),o().filter(s=>s.getIsVisible()).map(s=>s.id).join("_")],s=>s.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Qe(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((s,a)=>({...s,[a.id]:n||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function Ml(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const yI={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},vI={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:nr("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,s,a;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((s=t.options.enableFilters)!=null?s:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>yo.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return _d(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:yo[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},xI={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:nr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,s;if(!t){e._queue(()=>{t=!0});return}if((o=(s=e.options.autoResetAll)!=null?s:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var s,a;e.setExpanded(o?{}:(s=(a=e.initialState)==null?void 0:a.expanded)!=null?s:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(s=>!s.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const u=a.split(".");o=Math.max(o,u.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var s;const a=o===!0?!0:!!(o!=null&&o[e.id]);let u={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(c=>{u[c]=!0}):u=o,n=(s=n)!=null?s:!a,!a&&n)return{...u,[e.id]:!0};if(a&&!n){const{[e.id]:c,...p}=u;return p}return o})},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o!=null&&o[e.id])},e.getCanExpand=()=>{var n,o,s;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((s=e.subRows)!=null&&s.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},A1=0,F1=10,Up=()=>({pageIndex:A1,pageSize:F1}),CI={getInitialState:e=>({...e,pagination:{...Up(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:nr("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,s;if(!t){e._queue(()=>{t=!0});return}if((o=(s=e.options.autoResetAll)!=null?s:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{const s=a=>li(o,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(s)},e.resetPagination=o=>{var s;e.setPagination(o?Up():(s=e.initialState.pagination)!=null?s:Up())},e.setPageIndex=o=>{e.setPagination(s=>{let a=li(o,s.pageIndex);const u=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,u)),{...s,pageIndex:a}})},e.resetPageIndex=o=>{var s,a;e.setPageIndex(o?A1:(s=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?s:A1)},e.resetPageSize=o=>{var s,a;e.setPageSize(o?F1:(s=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?s:F1)},e.setPageSize=o=>{e.setPagination(s=>{const a=Math.max(1,li(o,s.pageSize)),u=s.pageSize*s.pageIndex,c=Math.floor(u/a);return{...s,pageIndex:c,pageSize:a}})},e.setPageCount=o=>e.setPagination(s=>{var a;let u=li(o,(a=e.options.pageCount)!=null?a:-1);return typeof u=="number"&&(u=Math.max(-1,u)),{...s,pageCount:u}}),e.getPageOptions=qe(()=>[e.getPageCount()],o=>{let s=[];return o&&o>0&&(s=[...new Array(o)].fill(null).map((a,u)=>u)),s},Qe(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,s=e.getPageCount();return s===-1?!0:s===0?!1:oe.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},Hp=()=>({top:[],bottom:[]}),bI={getInitialState:e=>({rowPinning:Hp(),...e}),getDefaultOptions:e=>({onRowPinningChange:nr("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,s)=>{const a=o?e.getLeafRows().map(p=>{let{id:h}=p;return h}):[],u=s?e.getParentRows().map(p=>{let{id:h}=p;return h}):[],c=new Set([...u,e.id,...a]);t.setRowPinning(p=>{var h,g;if(n==="bottom"){var y,C;return{top:((y=p==null?void 0:p.top)!=null?y:[]).filter(v=>!(c!=null&&c.has(v))),bottom:[...((C=p==null?void 0:p.bottom)!=null?C:[]).filter(v=>!(c!=null&&c.has(v))),...Array.from(c)]}}if(n==="top"){var x,b;return{top:[...((x=p==null?void 0:p.top)!=null?x:[]).filter(v=>!(c!=null&&c.has(v))),...Array.from(c)],bottom:((b=p==null?void 0:p.bottom)!=null?b:[]).filter(v=>!(c!=null&&c.has(v)))}}return{top:((h=p==null?void 0:p.top)!=null?h:[]).filter(v=>!(c!=null&&c.has(v))),bottom:((g=p==null?void 0:p.bottom)!=null?g:[]).filter(v=>!(c!=null&&c.has(v)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:s}=t.options;return typeof o=="function"?o(e):(n=o??s)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:s}=t.getState().rowPinning,a=n.some(c=>o==null?void 0:o.includes(c)),u=n.some(c=>s==null?void 0:s.includes(c));return a?"top":u?"bottom":!1},e.getPinnedIndex=()=>{var n,o;const s=e.getIsPinned();if(!s)return-1;const a=(n=s==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(u=>{let{id:c}=u;return c});return(o=a==null?void 0:a.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?Hp():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:Hp())},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;if(!t){var s,a;return!!((s=o.top)!=null&&s.length||(a=o.bottom)!=null&&a.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var s;return((s=e.options.keepPinnedRows)==null||s?(n??[]).map(u=>{const c=e.getRow(u,!0);return c.getIsAllParentsExpanded()?c:null}):(n??[]).map(u=>t.find(c=>c.id===u))).filter(Boolean).map(u=>({...u,position:o}))},e.getTopRows=qe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Qe(e.options,"debugRows")),e.getBottomRows=qe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Qe(e.options,"debugRows")),e.getCenterRows=qe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{const s=new Set([...n??[],...o??[]]);return t.filter(a=>!s.has(a.id))},Qe(e.options,"debugRows"))}},SI={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:nr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},s=e.getPreGroupedRowModel().flatRows;return t?s.forEach(a=>{a.getCanSelect()&&(o[a.id]=!0)}):s.forEach(a=>{delete o[a.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),s={...n};return e.getRowModel().rows.forEach(a=>{z1(s,a.id,o,!0,e)}),s}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=qe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Wp(e,n):{rows:[],flatRows:[],rowsById:{}},Qe(e.options,"debugTable")),e.getFilteredSelectedRowModel=qe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Wp(e,n):{rows:[],flatRows:[],rowsById:{}},Qe(e.options,"debugTable")),e.getGroupedSelectedRowModel=qe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Wp(e,n):{rows:[],flatRows:[],rowsById:{}},Qe(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!!(t.length&&Object.keys(n).length);return o&&t.some(s=>s.getCanSelect()&&!n[s.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(s=>s.getCanSelect()),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some(s=>!n[s.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const s=e.getIsSelected();t.setRowSelection(a=>{var u;if(n=typeof n<"u"?n:!s,e.getCanSelect()&&s===n)return a;const c={...a};return z1(c,e.id,n,(u=o==null?void 0:o.selectChildren)!=null?u:!0,t),c})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Dh(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return N1(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return N1(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return o=>{var s;n&&e.toggleSelected((s=o.target)==null?void 0:s.checked)}}}},z1=(e,t,n,o,s)=>{var a;const u=s.getRow(t,!0);n?(u.getCanMultiSelect()||Object.keys(e).forEach(c=>delete e[c]),u.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(a=u.subRows)!=null&&a.length&&u.getCanSelectSubRows()&&u.subRows.forEach(c=>z1(e,c.id,n,o,s))};function Wp(e,t){const n=e.getState().rowSelection,o=[],s={},a=function(u,c){return u.map(p=>{var h;const g=Dh(p,n);if(g&&(o.push(p),s[p.id]=p),(h=p.subRows)!=null&&h.length&&(p={...p,subRows:a(p.subRows)}),g)return p}).filter(Boolean)};return{rows:a(t.rows),flatRows:o,rowsById:s}}function Dh(e,t){var n;return(n=t[e.id])!=null?n:!1}function N1(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let s=!0,a=!1;return e.subRows.forEach(u=>{if(!(a&&!s)&&(u.getCanSelect()&&(Dh(u,t)?a=!0:s=!1),u.subRows&&u.subRows.length)){const c=N1(u,t);c==="all"?a=!0:(c==="some"&&(a=!0),s=!1)}}),s?"all":a?"some":!1}const D1=/([0-9]+)/gm,wI=(e,t,n)=>av(pi(e.getValue(n)).toLowerCase(),pi(t.getValue(n)).toLowerCase()),RI=(e,t,n)=>av(pi(e.getValue(n)),pi(t.getValue(n))),kI=(e,t,n)=>Bh(pi(e.getValue(n)).toLowerCase(),pi(t.getValue(n)).toLowerCase()),EI=(e,t,n)=>Bh(pi(e.getValue(n)),pi(t.getValue(n))),PI=(e,t,n)=>{const o=e.getValue(n),s=t.getValue(n);return o>s?1:oBh(e.getValue(n),t.getValue(n));function Bh(e,t){return e===t?0:e>t?1:-1}function pi(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function av(e,t){const n=e.split(D1).filter(Boolean),o=t.split(D1).filter(Boolean);for(;n.length&&o.length;){const s=n.shift(),a=o.shift(),u=parseInt(s,10),c=parseInt(a,10),p=[u,c].sort();if(isNaN(p[0])){if(s>a)return 1;if(a>s)return-1;continue}if(isNaN(p[1]))return isNaN(u)?-1:1;if(u>c)return 1;if(c>u)return-1}return n.length-o.length}const dl={alphanumeric:wI,alphanumericCaseSensitive:RI,text:kI,textCaseSensitive:EI,datetime:PI,basic:II},MI={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:nr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const s of n){const a=s==null?void 0:s.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return dl.datetime;if(typeof a=="string"&&(o=!0,a.split(D1).length>1))return dl.alphanumeric}return o?dl.text:dl.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return _d(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:dl[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const s=e.getNextSortingOrder(),a=typeof n<"u"&&n!==null;t.setSorting(u=>{const c=u==null?void 0:u.find(x=>x.id===e.id),p=u==null?void 0:u.findIndex(x=>x.id===e.id);let h=[],g,y=a?n:s==="desc";if(u!=null&&u.length&&e.getCanMultiSort()&&o?c?g="toggle":g="add":u!=null&&u.length&&p!==u.length-1?g="replace":c?g="toggle":g="replace",g==="toggle"&&(a||s||(g="remove")),g==="add"){var C;h=[...u,{id:e.id,desc:y}],h.splice(0,h.length-((C=t.options.maxMultiSortColCount)!=null?C:Number.MAX_SAFE_INTEGER))}else g==="toggle"?h=u.map(x=>x.id===e.id?{...x,desc:y}:x):g==="remove"?h=u.filter(x=>x.id!==e.id):h=[{id:e.id,desc:y}];return h})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,s;const a=e.getFirstSortDir(),u=e.getIsSorted();return u?u!==a&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(s=t.options.enableMultiRemove)!=null)||s)?!1:u==="desc"?"asc":"desc":a},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=(n=t.getState().sorting)==null?void 0:n.find(s=>s.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(s=>s.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},LI=[ZP,mI,fI,pI,JP,eI,yI,vI,MI,cI,xI,CI,bI,SI,hI];function TI(e){var t,n;const o=[...LI,...(t=e._features)!=null?t:[]];let s={_features:o};const a=s._features.reduce((C,x)=>Object.assign(C,x.getDefaultOptions==null?void 0:x.getDefaultOptions(s)),{}),u=C=>s.options.mergeOptions?s.options.mergeOptions(a,C):{...a,...C};let p={...{},...(n=e.initialState)!=null?n:{}};s._features.forEach(C=>{var x;p=(x=C.getInitialState==null?void 0:C.getInitialState(p))!=null?x:p});const h=[];let g=!1;const y={_features:o,options:{...a,...e},initialState:p,_queue:C=>{h.push(C),g||(g=!0,Promise.resolve().then(()=>{for(;h.length;)h.shift()();g=!1}).catch(x=>setTimeout(()=>{throw x})))},reset:()=>{s.setState(s.initialState)},setOptions:C=>{const x=li(C,s.options);s.options=u(x)},getState:()=>s.options.state,setState:C=>{s.options.onStateChange==null||s.options.onStateChange(C)},_getRowId:(C,x,b)=>{var v;return(v=s.options.getRowId==null?void 0:s.options.getRowId(C,x,b))!=null?v:`${b?[b.id,x].join("."):x}`},getCoreRowModel:()=>(s._getCoreRowModel||(s._getCoreRowModel=s.options.getCoreRowModel(s)),s._getCoreRowModel()),getRowModel:()=>s.getPaginationRowModel(),getRow:(C,x)=>{let b=(x?s.getPrePaginationRowModel():s.getRowModel()).rowsById[C];if(!b&&(b=s.getCoreRowModel().rowsById[C],!b))throw new Error;return b},_getDefaultColumnDef:qe(()=>[s.options.defaultColumn],C=>{var x;return C=(x=C)!=null?x:{},{header:b=>{const v=b.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:b=>{var v,R;return(v=(R=b.renderValue())==null||R.toString==null?void 0:R.toString())!=null?v:null},...s._features.reduce((b,v)=>Object.assign(b,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...C}},Qe(e,"debugColumns")),_getColumnDefs:()=>s.options.columns,getAllColumns:qe(()=>[s._getColumnDefs()],C=>{const x=function(b,v,R){return R===void 0&&(R=0),b.map(E=>{const L=XP(s,E,R,v),k=E;return L.columns=k.columns?x(k.columns,L,R+1):[],L})};return x(C)},Qe(e,"debugColumns")),getAllFlatColumns:qe(()=>[s.getAllColumns()],C=>C.flatMap(x=>x.getFlatColumns()),Qe(e,"debugColumns")),_getAllFlatColumnsById:qe(()=>[s.getAllFlatColumns()],C=>C.reduce((x,b)=>(x[b.id]=b,x),{}),Qe(e,"debugColumns")),getAllLeafColumns:qe(()=>[s.getAllColumns(),s._getOrderColumnsFn()],(C,x)=>{let b=C.flatMap(v=>v.getLeafColumns());return x(b)},Qe(e,"debugColumns")),getColumn:C=>s._getAllFlatColumnsById()[C]};Object.assign(s,y);for(let C=0;Cqe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(s,a,u){a===void 0&&(a=0);const c=[];for(let h=0;he._autoResetPageIndex()))}function OI(e,t,n){return n.options.filterFromLeafRows?_I(e,t,n):$I(e,t,n)}function _I(e,t,n){var o;const s=[],a={},u=(o=n.options.maxLeafRowFilterDepth)!=null?o:100,c=function(p,h){h===void 0&&(h=0);const g=[];for(let C=0;Cqe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,o)=>{if(!t.rows.length||!(n!=null&&n.length)&&!o){for(let C=0;C{var x;const b=e.getColumn(C.id);if(!b)return;const v=b.getFilterFn();v&&s.push({id:C.id,filterFn:v,resolvedValue:(x=v.resolveFilterValue==null?void 0:v.resolveFilterValue(C.value))!=null?x:C.value})});const u=(n??[]).map(C=>C.id),c=e.getGlobalFilterFn(),p=e.getAllLeafColumns().filter(C=>C.getCanGlobalFilter());o&&c&&p.length&&(u.push("__global__"),p.forEach(C=>{var x;a.push({id:C.id,filterFn:c,resolvedValue:(x=c.resolveFilterValue==null?void 0:c.resolveFilterValue(o))!=null?x:o})}));let h,g;for(let C=0;C{x.columnFiltersMeta[v]=R})}if(a.length){for(let b=0;b{x.columnFiltersMeta[v]=R})){x.columnFilters.__global__=!0;break}}x.columnFilters.__global__!==!0&&(x.columnFilters.__global__=!1)}}const y=C=>{for(let x=0;xe._autoResetPageIndex()))}function FI(){return e=>qe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const o=e.getState().sorting,s=[],a=o.filter(p=>{var h;return(h=e.getColumn(p.id))==null?void 0:h.getCanSort()}),u={};a.forEach(p=>{const h=e.getColumn(p.id);h&&(u[p.id]={sortUndefined:h.columnDef.sortUndefined,invertSorting:h.columnDef.invertSorting,sortingFn:h.getSortingFn()})});const c=p=>{const h=p.map(g=>({...g}));return h.sort((g,y)=>{for(let x=0;x{var y;s.push(g),(y=g.subRows)!=null&&y.length&&(g.subRows=c(g.subRows))}),h};return{rows:c(n.rows),flatRows:s,rowsById:n.rowsById}},Qe(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function O5(e,t){return e?zI(e)?w.createElement(e,t):e:null}function zI(e){return NI(e)||typeof e=="function"||DI(e)}function NI(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function DI(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function BI(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=w.useState(()=>({current:TI(t)})),[o,s]=w.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...o,...e.state},onStateChange:u=>{s(u),e.onStateChange==null||e.onStateChange(u)}})),n.current}const VI=Ze(d.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}),"TrendingUp"),UI=Ze(d.jsx("path",{d:"m16 18 2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"}),"TrendingDown"),HI=Ze(d.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),WI=Ze(d.jsx("path",{fillRule:"evenodd",d:"M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"}),"PushPin"),GI=Ze(d.jsx("path",{d:"M14 4v5c0 1.12.37 2.16 1 3H9c.65-.86 1-1.9 1-3V4zm3-2H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3V4h1c.55 0 1-.45 1-1s-.45-1-1-1"}),"PushPinOutlined"),lv=e=>/[\\^$.*+?()[\]{}|]/.test(e),KI=e=>({precision:"model.precision",architecture:"model.architecture",license:"metadata.hub_license",type:"model.type"})[e]||e,Vh=e=>{const t=[];let n=e;const o=/@\w+:/g;return(e.match(o)||[]).forEach(a=>{const u=new RegExp(`${a}([^\\s@]+)`,"g");n=n.replace(u,(c,p)=>{const h=a.slice(1,-1);return t.push({field:KI(h),displayField:h,value:p}),""})}),{specialSearches:t,textSearch:n.trim()}},qI=e=>e.split(";").map(t=>{const{textSearch:n}=Vh(t);return n}).filter(Boolean).join(";"),QI=(e,t)=>t.split(".").reduce((n,o)=>n==null?void 0:n[o],e),YI=e=>e?e.split(";").map(n=>n.trim()).filter(Boolean).map((n,o)=>{const{specialSearches:s,textSearch:a}=Vh(n);let u=[];if(a&&u.push(a),s.length>0){const c=s.map(({displayField:p,value:h})=>`@${p}:${h}`);u=u.concat(c)}return{text:u.join(" "),index:o}}):null,B1={tooltip:{sx:{bgcolor:"background.tooltip","& .MuiTooltip-arrow":{color:"background.tooltip"},padding:"12px 16px",maxWidth:300,fontSize:"0.875rem",lineHeight:1.4}},progressBar:{position:"absolute",left:-16,top:-8,height:"calc(100% + 16px)",opacity:e=>e.palette.mode==="light"?.1:.2,transition:"width 0.3s ease",zIndex:0},cellContainer:{display:"flex",alignItems:"center",height:"100%",width:"100%",position:"relative"},hoverEffect:(e,t=!1)=>({backgroundColor:t?re(e.palette.primary.main,e.palette.mode==="light"?.08:.16):e.palette.action.hover,"& .MuiTypography-root":{color:t?"primary.main":"text.primary"},"& .MuiSvgIcon-root":{color:t?"primary.main":"text.primary"}}),filterGroup:{title:{mb:1,fontSize:"0.8rem",fontWeight:700,color:"text.primary",display:"flex",alignItems:"center",gap:.5},container:{display:"flex",flexWrap:"wrap",gap:.5,alignItems:"center"}},optionButton:{display:"flex",alignItems:"center",gap:.8,cursor:"pointer",padding:"4px 10px",borderRadius:1,height:"32px","& .MuiSvgIcon-root":{fontSize:"0.9rem"},"& .MuiTypography-root":{fontSize:"0.85rem"}},scoreIndicator:{dot:{width:10,height:10,borderRadius:"50%",marginLeft:-1},bar:{position:"absolute",left:-16,top:-8,height:"calc(100% + 16px)",opacity:e=>e.palette.mode==="light"?.1:.2,transition:"width 0.3s ease"}},popoverContent:{p:3,width:280,maxHeight:400,overflowY:"auto"}},XI=(e,t)=>{const n=e.getValue("model_type"),o=t.getValue("model_type");return Array.isArray(n)&&Array.isArray(o)?String(n[0]||"").localeCompare(String(o[0]||"")):Array.isArray(n)?-1:Array.isArray(o)?1:String(n||"").localeCompare(String(o||""))},Xn=(e,t)=>d.jsxs(W,{sx:{maxWidth:400},children:[d.jsx(ne,{variant:"body2",paragraph:!0,sx:{mb:1,color:"inherit"},children:e}),d.jsx(W,{component:"ul",sx:{m:0,pl:2},children:t.map(({label:n,description:o,subItems:s},a)=>d.jsx("li",{children:d.jsxs(ne,{variant:"body2",sx:{mb:.5,color:"inherit"},children:[d.jsx("b",{children:n}),": ",o,s&&d.jsx(W,{component:"ul",sx:{mt:.5,mb:1},children:s.map((u,c)=>d.jsx("li",{children:d.jsx(ne,{variant:"body2",sx:{color:"inherit"},children:u})},c))})]})},a))})]}),fn={AVERAGE:Xn("Average score across all benchmarks:",[{label:"Calculation",description:"Weighted average of normalized scores from all benchmarks",subItems:["Each benchmark is normalized to a 0-100 scale","All normalised benchmarks are then averaged together"]}]),IFEVALFR:Xn("Instruction-Following Evaluation (IFEval):",[{label:"Purpose",description:"Tests model's ability to follow explicit formatting instructions",subItems:["Instruction following","Formatting","Generation"]},{label:"Scoring: Accuracy",description:"Was the format asked for strictly respected."}]),GPQAFR:Xn("Graduate-Level Google-Proof Q&A (GPQA):",[{label:"Focus",description:"PhD-level knowledge multiple choice questions in science",subItems:["Chemistry","Biology","Physics"]},{label:"Scoring: Accuracy",description:"Was the correct choice selected among the options."}]),BACFR:Xn("Multistep Soft Reasoning (MuSR):",[{label:"Scope",description:"Reasoning and understanding on/of long texts",subItems:["Language understanding","Reasoning capabilities","Long context reasoning"]},{label:"Scoring: Accuracy",description:"Was the correct choice selected among the options."}]),ARCHITECTURE:Xn("Model Architecture Information:",[{label:"Definition",description:"The fundamental structure and design of the model",subItems:["Pretrained: Foundational models, initially trained on large datasets without task-specific tuning, serving as a versatile base for further development.","Continuously Pretrained: Base models trained with a data mix evolving as the model is trained, with the addition of specialized data during the last training steps.","Fine-tuned: Base models, fine-tuned on specialised domain data (legal, medical, ...), and optimized for particular tasks.","Chat: Models fine-tuned with IFT, RLHF, DPO, and other techniques, to handle conversational contexts effectively.","Merged: Combining multiple models through weights averaging or similar methods.","Multimodal: Models which can handle several modalities (text & image/audio/video/...). We only evaluate the text capabilities."]},{label:"Impact",description:"How architecture affects model capabilities",subItems:["Base models are expected to perform less well on instruction following evaluations, like IFEval.","Fine-tuned and chat models can be more verbose and more chatty than base models.","Merged models tend to exhibit good performance on benchmarks, which do not translate to real-world situations."]}]),PRECISION:Xn("Numerical Precision Format:",[{label:"Overview",description:"Data format used to store model weights and perform computations",subItems:["bfloat16: Half precision (Brain Float format), good for stability","float16: Half precision","8bit/4bit: Quantized formats, for efficiency","GPTQ/AWQ: Quantized methods"]},{label:"Impact",description:"How precision affects model deployment",subItems:["Higher precision = better accuracy but more memory usage","Lower precision = faster inference and smaller size","Trade-off between model quality and resource usage"]}]),FLAGS:Xn("Model Flags and Special Features:",[{label:"Filters",subItems:["Mixture of Expert: Uses a MoE architecture","Merged models: Created by averaging other models","Contaminated: Flagged by users from the community for (possibly accidental) cheating","Unavailable: No longer on the hub (private, deleted) or missing a license tag"]},{label:"Purpose",description:"Why do people want to hide these models?",subItems:["Mixture of Experts: These models can be too parameter heavy","Merged models: Performance on benchmarks tend to be inflated compared to real life usage","Contaminated: Performance on benchmarks is inflated and not reflecting real life usage"]}]),PARAMETERS:Xn("Model Parameters:",[{label:"Measurement",description:"Total number of trainable parameters in billions",subItems:["Indicates model capacity and complexity","Correlates with computational requirements","Influences memory usage and inference speed"]}]),LICENSE:Xn("Model License Information:",[{label:"Importance",description:"Legal terms governing model usage and distribution",subItems:["Commercial vs non-commercial use","Attribution requirements","Modification and redistribution rights","Liability and warranty terms"]}]),CO2_COST:Xn("Carbon Dioxide Emissions:",[{label:"What is it?",description:"CO₂ emissions of the model evaluation ",subItems:["Only focuses on model inference for our specific setup","Considers data center location and energy mix","Allows equivalent comparision of models on our use case"]},{label:"Why it matters",description:"Environmental impact of AI model training",subItems:["Large models can have significant carbon footprints","Helps make informed choices about model selection"]},{label:"Learn more",description:"For detailed information about our CO₂ calculation methodology, visit:",subItems:[d.jsx("a",{href:"https://huggingface.co/docs/leaderboards/open_llm_leaderboard/emissions",target:"_blank",rel:"noopener noreferrer",style:{color:"#90caf9"},children:"Carbon Emissions Documentation ↗"})]}])},Dn={COLUMN_SELECTOR:"Choose which columns to display in the table",DISPLAY_OPTIONS:Xn("Table Display Options",[{label:"Overview",description:"Configure how the table displays data and information",subItems:["Row size and layout","Score display format","Ranking calculation","Average score computation"]}]),SEARCH_BAR:Xn("Advanced Model Search",[{label:"Name Search",description:"Search directly by model name",subItems:["Supports regular expressions (e.g., ^mistral.*7b)","Case sensitive"]},{label:"Field Search",description:"Use @field:value syntax for precise filtering",subItems:["@architecture:llama - Filter by architecture","@license:mit - Filter by license","@precision:float16 - Filter by precision","@type:chat - Filter by model type"]},{label:"Multiple Searches",description:"Combine multiple criteria using semicolons",subItems:["meta @license:mit; @architecture:llama","^mistral.*7b; @precision:float16"]}]),QUICK_FILTERS:Xn("Filter models based on their size and applicable hardware:",[{label:"Edge devices (Up to 3BB)",description:"Efficient models for edge devices, optimized for blazing fast inference."},{label:"Smol Models (3B-7B)",description:"Efficient models for consumer hardware, optimized for fast inference."},{label:"Mid-range models (7B-65B)",description:"A bit of everything here, with overall balanced performance and resource usage around 30B."},{label:"GPU-rich models (65B+)",description:"State-of-the-art performance for complex tasks, requires significant computing power."},{label:"Official Providers",description:"Models directly maintained by their original creators, ensuring reliability and up-to-date performance."}]),ROW_SIZE:{title:"Row Size",description:"Adjust the height of table rows. Compact is ideal for viewing more data at once, while Large provides better readability and touch targets."},SCORE_DISPLAY:{title:"Score Display",description:"Choose between normalized scores (0-100% scale for easy comparison) or raw scores (actual benchmark results). Normalized scores help compare performance across different benchmarks, while raw scores show actual benchmark outputs."},RANKING_MODE:{title:"Ranking Mode",description:"Choose between static ranking (original position in the full leaderboard) or dynamic ranking (position based on current filters and sorting)."},AVERAGE_SCORE:{title:"Average Score Calculation",description:"Define how the average score is calculated. 'All Scores' uses all benchmarks, while 'Visible Only' calculates the average using only the visible benchmark columns."}},ZI={},_5={HUB_LINK:e=>`View ${e} on Hugging Face Hub`,EVAL_RESULTS:e=>`View detailed evaluation results for ${e}`,POSITION_CHANGE:e=>`${Math.abs(e)} position${Math.abs(e)>1?"s":""} ${e>0?"up":"down"}`,METADATA:{TYPE:e=>e||"-",ARCHITECTURE:e=>e||"-",PRECISION:e=>e||"-",LICENSE:e=>e||"-",UPLOAD_DATE:e=>e||"-",SUBMISSION_DATE:e=>e||"-",BASE_MODEL:e=>e||"-"}},uv=Ze(d.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),an=({tooltip:e,iconProps:t={},sx:n={}})=>{const[o,s]=kt.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(Ln,{title:e,arrow:!0,placement:"top",open:o,onOpen:()=>s(!0),onClose:()=>s(!1),componentsProps:{tooltip:{sx:{bgcolor:"rgba(33, 33, 33, 0.95)",padding:"12px 16px",maxWidth:"none !important",width:"auto",minWidth:"200px",fontSize:"0.875rem",lineHeight:1.5,position:"relative",zIndex:1501,"& .MuiTooltip-arrow":{color:"rgba(33, 33, 33, 0.95)"}}},popper:{sx:{zIndex:1501,maxWidth:"min(600px, 90vw) !important",'&[data-popper-placement*="bottom"] .MuiTooltip-tooltip':{marginTop:"10px"},'&[data-popper-placement*="top"] .MuiTooltip-tooltip':{marginBottom:"10px"}}}},children:d.jsx(W,{component:"span",sx:{opacity:.5,display:"flex",alignItems:"center",cursor:"help","&:hover":{opacity:.8},position:"relative",zIndex:o?1502:"auto",...n},children:d.jsx(uv,{sx:{fontSize:"1rem",...t.sx},...t})})}),o&&d.jsx(Pd,{children:d.jsx(S4,{open:!0,sx:{zIndex:1500,backgroundColor:"rgba(0, 0, 0, 0.5)",transition:"opacity 0.2s ease",pointerEvents:"none"}})})]})},JI=()=>d.jsxs("svg",{className:"mr-1.5 text-gray-400 group-hover:text-red-500",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",role:"img",width:"1.4em",height:"1.4em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 25 25",children:[d.jsx("ellipse",{cx:"12.5",cy:"5",fill:"currentColor",fillOpacity:"0.25",rx:"7.5",ry:"2"}),d.jsx("path",{d:"M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z",fill:"currentColor",opacity:"0.5"}),d.jsx("path",{d:"M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z",fill:"currentColor",opacity:"0.5"}),d.jsx("path",{d:"M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z",fill:"currentColor"})]}),eM=({text:e,searchValue:t})=>{if(!t)return e;const n=t.split(";").map(a=>a.trim()).filter(Boolean);let s=[{text:e,isMatch:!1}];return n.forEach((a,u)=>{if(a)try{let c;lv(a)?c=new RegExp(a,"gi"):c=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");const p=[];s.forEach(h=>{if(h.isMatch){p.push(h);return}const g=h.text.split(c),y=h.text.match(c);if(!y){p.push(h);return}g.forEach((C,x)=>{C&&p.push({text:C,isMatch:!1}),xa.isMatch?d.jsx(W,{component:"span",sx:{backgroundColor:Ni[a.colorIndex],color:c=>c.palette.getContrastText(Ni[a.colorIndex]),fontWeight:500,px:.5,py:"2px",borderRadius:"3px",mx:"1px",overflow:"visible",display:"inline-block"},children:a.text},u):d.jsx(kt.Fragment,{children:a.text},u))})},tM={1:{color:"#B58A1B",background:"linear-gradient(135deg, #FFF7E0 0%, #FFD700 100%)",borderColor:"rgba(212, 160, 23, 0.35)",shadowColor:"rgba(212, 160, 23, 0.8)"},2:{color:"#667380",background:"linear-gradient(135deg, #FFFFFF 0%, #D8E3ED 100%)",borderColor:"rgba(124, 139, 153, 0.35)",shadowColor:"rgba(124, 139, 153, 0.8)"},3:{color:"#B85C2F",background:"linear-gradient(135deg, #FDF0E9 0%, #FFBC8C 100%)",borderColor:"rgba(204, 108, 61, 0.35)",shadowColor:"rgba(204, 108, 61, 0.8)"}},nM=e=>{if(e<=3){const t=tM[e];return{color:t.color,fontWeight:900,fontStretch:"150%",fontFamily:'"Inter", -apple-system, sans-serif',width:"24px",height:"24px",background:t.background,border:"1px solid",borderColor:t.borderColor,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.95rem",lineHeight:1,padding:0,boxShadow:`1px 1px 0 ${t.shadowColor}`,position:"relative"}}return{color:"inherit",fontWeight:e<=10?600:400}},rM=e=>nM(e),oM=({rank:e,previousRank:t,mode:n})=>{const o=t?t-e:0,s=({change:a})=>{if(!a||n==="dynamic")return null;const u=p=>p>0?"success.main":p<0?"error.main":"grey.500",c=p=>p>0?d.jsx(VI,{sx:{fontSize:"1rem"}}):p<0?d.jsx(UI,{sx:{fontSize:"1rem"}}):d.jsx(HI,{sx:{fontSize:"1rem"}});return d.jsx(Ln,{title:`${Math.abs(a)} position${Math.abs(a)>1?"s":""} ${a>0?"up":"down"}`,arrow:!0,placement:"right",children:d.jsx(W,{sx:{display:"flex",alignItems:"center",color:u(a),ml:.5,fontSize:"0.75rem"},children:c(a)})})};return d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:d.jsx(ne,{sx:{...rM(e),display:"flex",alignItems:"center",lineHeight:1,position:"relative"},children:e<=3?d.jsxs(d.Fragment,{children:[d.jsx(W,{component:"span",sx:{position:"relative",zIndex:1},children:e}),d.jsx(s,{change:o})]}):d.jsxs(d.Fragment,{children:[d.jsx(W,{component:"span",sx:{position:"relative",zIndex:1},children:e}),d.jsx(s,{change:o})]})})})},iM=e=>`https://huggingface.co/datasets/open-llm-leaderboard/${e.replace("/","__")}-details`,sM=({label:e,tooltip:t,className:n,isSorted:o})=>d.jsx(Ln,{title:e,arrow:!0,placement:"top",enterDelay:1e3,componentsProps:ZI,children:d.jsx(ne,{className:n,sx:{fontWeight:600,color:o?"primary.main":"grey.700",flex:1,transition:"max-width 0.2s ease",maxWidth:"100%",...e==="Rank"||e==="Type"?{overflow:"visible",whiteSpace:"normal",textOverflow:"clip",textAlign:"center"}:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"@media (hover: hover)":{".MuiTableCell-root:hover &":{maxWidth:t?"calc(100% - 48px)":"100%"}}},children:e})}),aM=({tooltip:e})=>d.jsx(W,{component:"span",sx:{opacity:.5,display:"flex",alignItems:"center",ml:.5},children:d.jsx(an,{tooltip:e})}),Qt=(e,t)=>n=>{var o;return d.jsxs(W,{className:"header-content",sx:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[d.jsx(sM,{label:e,tooltip:t,className:"header-label",isSorted:(o=n==null?void 0:n.column)==null?void 0:o.getIsSorted()}),d.jsx(W,{sx:{display:"flex",alignItems:"center",gap:.5,ml:"auto",flexShrink:0},children:t&&d.jsx(aM,{tooltip:t})})]})},lM=(e,t=0,n=!1)=>({table:o})=>d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:d.jsx(W,{sx:{display:"flex",alignItems:"center",gap:1},children:d.jsx(ne,{sx:{fontWeight:600,color:"grey.700",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:"Model"})})}),fl=({value:e})=>e==null?d.jsx(ne,{variant:"body2",children:"-"}):d.jsx(W,{sx:t=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",px:1,py:.5,backgroundColor:e?(t.palette.mode==="dark",re(t.palette.success.main,.1)):(t.palette.mode==="dark",re(t.palette.error.main,.1))}),children:d.jsx(ne,{variant:"body2",sx:t=>({color:e?t.palette.mode==="dark"?t.palette.success.light:t.palette.success.dark:t.palette.mode==="dark"?t.palette.error.light:t.palette.error.dark}),children:e?"Yes":"No"})}),uM=(e,t="normalized",n={},o,s="all",a="",u="static",c,p=!1)=>{const g=[{accessorKey:"isPinned",header:()=>null,cell:({row:v})=>d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:d.jsx(tu,{size:"small",onClick:R=>{R.stopPropagation(),R.preventDefault(),c(v.original.id)},sx:{padding:.5,color:v.original.isPinned?"primary.main":"grey.400","&:hover":{color:"primary.main"}},children:v.original.isPinned?d.jsx(WI,{fontSize:"small"}):d.jsx(GI,{fontSize:"small"})})}),enableSorting:!1,size:(v=>p?"auto":`${v}px`)(40)},{accessorKey:"rank",header:Qt("Rank"),cell:({row:v})=>{const R=u==="static"?v.original.static_rank:v.original.dynamic_rank;return d.jsx(oM,{rank:R,previousRank:v.original.previous_rank,mode:"static"})},size:Ge.COLUMNS.COLUMN_SIZES.rank},{id:"model_type",accessorFn:v=>v.model.type,header:Qt("Type"),sortingFn:XI,cell:({row:v})=>d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:d.jsx(Ln,{title:v.original.model.type,children:d.jsx(ne,{sx:{fontSize:"1.2rem",cursor:"help",lineHeight:1,fontFamily:'"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif'},children:rP(v.original.model.type)})})}),size:Ge.COLUMNS.COLUMN_SIZES["model.type_icon"]},{accessorKey:"id",header:lM(),cell:({row:v})=>{const R=qI(a),E=v.original.model.name;return d.jsx(W,{sx:{width:"100%",display:"flex",alignItems:"center",gap:1},children:d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:1,minWidth:0,flex:1},children:[d.jsxs(Zr,{href:`https://huggingface.co/${E}`,target:"_blank",rel:"noopener noreferrer","aria-label":`View ${E} on Hugging Face Hub`,title:_5.HUB_LINK(E),sx:{textDecoration:"none",color:"info.main",display:"flex",alignItems:"center",gap:.5,"&:hover":{textDecoration:"underline",color:L=>L.palette.mode==="dark"?L.palette.info.light:L.palette.info.dark,"& svg":{opacity:.8}},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,fontWeight:v.original.static_rank<=3?600:"inherit"},children:[d.jsx(eM,{text:E,searchValue:R}),d.jsx(Fi,{sx:{fontSize:"0.75rem",opacity:.6,transition:"opacity 0.2s ease-in-out",ml:.5,flexShrink:0}})]}),d.jsx(Zr,{href:iM(E),target:"_blank",rel:"noopener noreferrer","aria-label":`View detailed evaluation results for ${E}`,title:_5.EVAL_RESULTS(E),sx:{textDecoration:"none","&:hover":{textDecoration:"underline","& svg":{color:"text.primary"}},display:"flex",alignItems:"center",color:"text.secondary",flexShrink:0,mr:0},children:d.jsx(JI,{})})]})})},size:Ge.COLUMNS.COLUMN_SIZES.id},{accessorKey:"model.average_score",header:Qt("Average",fn.AVERAGE),cell:({row:v,getValue:R})=>y(R,v,"model.average_score"),size:Ge.COLUMNS.COLUMN_SIZES["model.average_score"],meta:{headerStyle:{borderLeft:v=>`2px solid ${re(v.palette.divider,v.palette.mode==="dark"?.1:.2)}`,borderRight:v=>`2px solid ${re(v.palette.divider,v.palette.mode==="dark"?.1:.2)}`},cellStyle:v=>({position:"relative",overflow:"hidden",padding:"8px 16px",borderLeft:R=>`2px solid ${re(R.palette.divider,R.palette.mode==="dark"?.1:.2)}`,borderRight:R=>`2px solid ${re(R.palette.divider,R.palette.mode==="dark"?.1:.2)}`})}}],y=(v,R,E)=>{var j;const L=v(),k=E.includes("normalized")?(j=R.original.evaluations[E.split(".")[1]])==null?void 0:j.value:L,P=E==="model.average_score",M=L==null;return d.jsxs(W,{sx:B1.cellContainer,children:[!M&&(t==="normalized"||P)&&d.jsx(W,{sx:{position:"absolute",left:-16,top:-16,height:"calc(100% + 32px)",width:`calc(${L}% + 16px)`,backgroundColor:e(L),opacity:_=>_.palette.mode==="light"?.1:.2,transition:"width 0.3s ease",zIndex:0}}),d.jsxs(W,{sx:{position:"relative",display:"flex",alignItems:"center",gap:1,zIndex:1,pl:P&&!M?1:0},children:[P&&!M&&d.jsx(W,{sx:{width:10,height:10,borderRadius:"50%",marginLeft:-1,backgroundColor:e(L)}}),d.jsx(ne,{variant:"body2",children:M?"-":d.jsx(d.Fragment,{children:P?d.jsxs(d.Fragment,{children:[L.toFixed(2),d.jsx("span",{style:{opacity:.5},children:" %"})]}):t==="normalized"?d.jsxs(d.Fragment,{children:[L.toFixed(2),d.jsx("span",{style:{opacity:.5},children:" %"})]}):d.jsx(d.Fragment,{children:k.toFixed(2)})})})]})]})},C=[{accessorKey:"evaluations.ifeval_fr.normalized_score",header:Qt("IFEval FR",fn.IFEVALFR),cell:({row:v,getValue:R})=>y(R,v,"evaluations.ifeval_fr.normalized_score"),size:Ge.COLUMNS.COLUMN_SIZES["evaluations.ifeval_fr.normalized_score"]},{accessorKey:"evaluations.gpqa_fr.normalized_score",header:Qt("GPQA FR",fn.GPQAFR),cell:({row:v,getValue:R})=>y(R,v,"evaluations.gpqa_fr.normalized_score"),size:Ge.COLUMNS.COLUMN_SIZES["evaluations.gpqa_fr.normalized_score"]},{accessorKey:"evaluations.bac_fr.normalized_score",header:Qt("BAC FR",fn.BACFR),cell:({row:v,getValue:R})=>y(R,v,"evaluations.bac_fr.normalized_score"),size:Ge.COLUMNS.COLUMN_SIZES["evaluations.bac_fr.normalized_score"]}],x=[{accessorKey:"model.architecture",header:Qt("Architecture",fn.ARCHITECTURE),accessorFn:v=>v.model.architecture,cell:({row:v})=>d.jsx(Ln,{title:v.original.model.architecture||"-",children:d.jsx("span",{children:v.original.model.architecture||"-"})}),size:Ge.COLUMNS.COLUMN_SIZES["model.architecture"]},{accessorKey:"model.precision",header:Qt("Precision",fn.PRECISION),accessorFn:v=>v.model.precision,cell:({row:v})=>d.jsx(Ln,{title:v.original.model.precision||"-",children:d.jsx("span",{children:v.original.model.precision||"-"})}),size:Ge.COLUMNS.COLUMN_SIZES["model.precision"]},{accessorKey:"metadata.params_billions",header:Qt("Parameters",fn.PARAMETERS),cell:({row:v})=>d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:d.jsxs(ne,{variant:"body2",children:[v.original.metadata.params_billions,d.jsx("span",{style:{opacity:.6},children:"B"})]})}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.params_billions"]},{accessorKey:"metadata.hub_license",header:Qt("License",fn.LICENSE),cell:({row:v})=>d.jsx(Ln,{title:v.original.metadata.hub_license||"-",children:d.jsx(ne,{variant:"body2",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.original.metadata.hub_license||"-"})}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.hub_license"]},{accessorKey:"metadata.hub_hearts",header:Qt("Hub ❤️","Number of likes received on the Hugging Face Hub"),cell:({row:v})=>d.jsx(ne,{variant:"body2",children:v.original.metadata.hub_hearts}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.hub_hearts"]},{accessorKey:"metadata.upload_date",header:Qt("Upload Date","Date when the model was uploaded to the Hugging Face Hub"),cell:({row:v})=>d.jsx(Ln,{title:v.original.metadata.upload_date||"-",children:d.jsx(ne,{variant:"body2",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.original.metadata.upload_date||"-"})}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.upload_date"]},{accessorKey:"metadata.submission_date",header:Qt("Submission Date","Date when the model was submitted to the leaderboard"),cell:({row:v})=>d.jsx(Ln,{title:v.original.metadata.submission_date||"-",children:d.jsx(ne,{variant:"body2",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.original.metadata.submission_date||"-"})}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.submission_date"]},{accessorKey:"metadata.generation",header:Qt("Generation","The generation or version number of the model"),cell:({row:v})=>d.jsx(ne,{variant:"body2",children:v.original.metadata.generation}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.generation"]},{accessorKey:"metadata.base_model",header:Qt("Base Model","The original model this model was derived from"),cell:({row:v})=>d.jsx(Ln,{title:v.original.metadata.base_model||"-",children:d.jsx(ne,{variant:"body2",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.original.metadata.base_model||"-"})}),size:Ge.COLUMNS.COLUMN_SIZES["metadata.base_model"]},{accessorKey:"metadata.co2_cost",header:Qt("CO₂ Cost",fn.CO2_COST),cell:({row:v})=>{var R;return d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start"},children:d.jsxs(ne,{variant:"body2",children:[((R=v.original.metadata.co2_cost)==null?void 0:R.toFixed(2))||"0",d.jsx("span",{style:{opacity:.6},children:" kg"})]})})},size:Ge.COLUMNS.COLUMN_SIZES["metadata.co2_cost"]},{accessorKey:"model.has_chat_template",header:Qt("Chat Template","Whether this model has a chat template defined"),cell:({row:v})=>d.jsx(fl,{value:v.original.model.has_chat_template}),size:Ge.COLUMNS.COLUMN_SIZES["model.has_chat_template"]},{accessorKey:"features.is_not_available_on_hub",header:Qt("Hub Availability","Whether the model is available on the Hugging Face Hub"),cell:({row:v})=>d.jsx(fl,{value:v.original.features.is_not_available_on_hub}),size:Ge.COLUMNS.COLUMN_SIZES["features.is_not_available_on_hub"]},{accessorKey:"features.is_official_provider",header:Qt("Official Providers","Models that are officially provided and maintained by their original creators or organizations"),cell:({row:v})=>d.jsx(fl,{value:v.original.features.is_official_provider}),size:Ge.COLUMNS.COLUMN_SIZES["features.is_official_provider"],enableSorting:!0},{accessorKey:"features.is_moe",header:Qt("Mixture of Experts","Whether this model uses a Mixture of Experts architecture"),cell:({row:v})=>d.jsx(fl,{value:v.original.features.is_moe}),size:Ge.COLUMNS.COLUMN_SIZES["features.is_moe"]},{accessorKey:"features.is_flagged",header:Qt("Flag Status","Whether this model has been flagged for any issues"),cell:({row:v})=>d.jsx(fl,{value:v.original.features.is_flagged}),size:Ge.COLUMNS.COLUMN_SIZES["features.is_flagged"]}];return[...g,...C.filter(v=>n[v.accessorKey]),...x.filter(v=>n[v.accessorKey]).sort((v,R)=>{const E={"model.architecture":1,"model.precision":2,"metadata.params_billions":3,"metadata.hub_license":4,"metadata.co2_cost":5,"metadata.hub_hearts":6,"metadata.upload_date":7,"metadata.submission_date":8,"metadata.generation":9,"metadata.base_model":10,"model.has_chat_template":11,"features.is_not_available_on_hub":12,"features.is_official_provider":13,"features.is_moe":14,"features.is_flagged":15};return E[v.accessorKey]-E[R.accessorKey]})]},cM=e=>w.useMemo(()=>{const t=e.map(n=>n.model.average_score);return{minAverage:Math.min(...t),maxAverage:Math.max(...t)}},[e]),dM=(e,t)=>w.useMemo(()=>{const n=new Map;return o=>{const s=n.get(o);if(s)return s;const a=(o-e)/(t-e),u=Math.round(255*(1-a)*1),c=Math.round(255*a)*1,p=`rgba(${u}, ${c}, 0, 1)`;return n.set(o,p),p}},[e,t]),fM=(e,t,n)=>w.useMemo(()=>{let o=e.map(s=>{const a=Object.entries(s.evaluations).filter(([p])=>t==="all"?!0:n.includes(`evaluations.${p}.normalized_score`)).map(([,p])=>p.normalized_score),u=a.length>0?a.reduce((p,h)=>p+h,0)/a.length:t==="visible"?null:0,c={...s.features,is_moe:!!s.features.is_moe,is_flagged:!!s.features.is_flagged,is_official_provider:!!s.features.is_official_provider,is_merged:!!s.features.is_merged,is_not_available_on_hub:!!s.features.is_not_available_on_hub};return{...s,features:c,model:{...s.model,has_chat_template:!!s.model.has_chat_template,average_score:u}}});return o.sort((s,a)=>s.model.average_score===null&&a.model.average_score===null?0:s.model.average_score===null?1:a.model.average_score===null?-1:a.model.average_score-s.model.average_score),o.map((s,a)=>({...s,static_rank:a+1}))},[e,t,n]),pM=(e,t,n,o,s,a,u,c=[],p=!1)=>w.useMemo(()=>{const h=e.filter(E=>c.includes(E.id));let y=e.filter(E=>!c.includes(E.id));if(p&&(y=y.filter(E=>{var L,k;return((L=E.features)==null?void 0:L.is_official_provider)||((k=E.metadata)==null?void 0:k.is_official_provider)})),t.length>0&&(y=y.filter(E=>t.includes(E.model.precision))),n.length>0&&(y=y.filter(E=>{var k;const L=(k=E.model.type)==null?void 0:k.toLowerCase().trim();return n.some(P=>L==null?void 0:L.includes(P))})),y=y.filter(E=>{var k,P;if(o[0]===-1&&o[1]===140)return!0;const L=((k=E.metadata)==null?void 0:k.params_billions)||((P=E.features)==null?void 0:P.params_billions);return L==null?!1:L>=o[0]&&LL.trim()).filter(L=>L);E.length>0&&(y=y.filter(L=>E.some(k=>{const{specialSearches:P,textSearch:M}=Vh(k);if(!P.every(({field:V,value:I})=>{var O;const F=(O=QI(L,V))==null?void 0:O.toString().toLowerCase();return F==null?void 0:F.includes(I.toLowerCase())}))return!1;if(!M)return!0;const _=L.model.name.toLowerCase(),N=M.toLowerCase();if(lv(M))try{return new RegExp(M,"i").test(_)}catch{return _.includes(N)}else return _.includes(N)})))}a.length>0&&(y=y.filter(E=>a.every(L=>{const k=typeof L=="object"?L.value:L;return k==="is_official_provider"||k==="is_not_available_on_hub"?E.features[k]:!E.features[k]})));const C=c.map(E=>h.find(L=>L.id===E)).filter(Boolean),b=[...[...y,...C]].sort((E,L)=>{var k,P;if(E.model.average_score!==L.model.average_score)return E.model.average_score===null&&L.model.average_score===null?0:E.model.average_score===null?1:L.model.average_score===null?-1:L.model.average_score-E.model.average_score;if(E.model.name===L.model.name){const M=new Date(((k=E.metadata)==null?void 0:k.submission_date)||0);return new Date(((P=L.metadata)==null?void 0:P.submission_date)||0)-M}return E.model.name.localeCompare(L.model.name)}),v=new Map;return b.forEach((E,L)=>{v.set(E.id,L+1)}),[...C,...y].map(E=>({...E,dynamic_rank:v.get(E.id),rank:E.isPinned?c.indexOf(E.id)+1:u==="static"?E.static_rank:v.get(E.id),isPinned:c.includes(E.id)}))},[e,t,n,o,s,a,u,c,p]),hM=(e=[])=>w.useMemo(()=>{const n=Array.isArray(e)?e:[],o={};try{n.forEach(s=>{typeof s=="string"&&(o[s]=!0)})}catch(s){console.warn("Error in useColumnVisibility:",s)}return o},[e]),gM=(e,t,n,o,s,a,u,c,p,h,g,y,C,x,b)=>{const{minAverage:v,maxAverage:R}=cM(e),E=dM(v,R),L=fM(e,p,h),k=hM(h),P=w.useMemo(()=>({selectedPrecisions:n,selectedTypes:o,paramsRange:s,searchValue:t,selectedBooleanFilters:a,rankingMode:c,pinnedModels:y,isOfficialProviderActive:b}),[n,o,s,t,a,c,y,b]),M=pM(L,P.selectedPrecisions,P.selectedTypes,P.paramsRange,P.searchValue,P.selectedBooleanFilters,P.rankingMode,P.pinnedModels,P.isOfficialProviderActive),j=w.useMemo(()=>uM(E,g,k,e.length,p,t,c,C),[E,g,k,e.length,p,t,c,C]),_=w.useMemo(()=>({data:M,columns:j,state:{sorting:Array.isArray(u)?u:[],columnVisibility:k},getCoreRowModel:jI(),getFilteredRowModel:AI(),getSortedRowModel:FI(),onSortingChange:x,enableColumnVisibility:!0,defaultColumn:{sortingFn:(V,I,F)=>{var K;const O=(K=u==null?void 0:u[0])==null?void 0:K.desc;if(V.original.isPinned&&I.original.isPinned)return y.indexOf(V.original.id)-y.indexOf(I.original.id);if(O){if(V.original.isPinned)return-1;if(I.original.isPinned)return 1}else{if(V.original.isPinned)return-1;if(I.original.isPinned)return 1}const z=V.getValue(F),q=I.getValue(F);return typeof z=="number"&&typeof q=="number"?z-q:String(z).localeCompare(String(q))}}}),[M,j,u,k,y,x]);return{table:BI(_),minAverage:v,maxAverage:R,getColorForValue:E,processedData:L,filteredData:M,columns:j,columnVisibility:k}},$5="leaderboardData",Gp=5*60*1e3,cv=()=>{const e=X4(),[t]=ha(),n=w.useRef(!0),{data:o,isLoading:s,error:a}=KP({queryKey:["leaderboard"],queryFn:async()=>{try{const u=localStorage.getItem($5);if(u){const{data:h,timestamp:g}=JSON.parse(u);if(Date.now()-g{o&&n.current&&(n.current=!1)},[o]),{data:o,isLoading:s,error:a,refetch:()=>e.invalidateQueries(["leaderboard"])}},mM=()=>{const{state:e,actions:t}=mi(),[n,o]=w.useState([{id:"model.average_score",desc:!0}]),s=w.useMemo(()=>e.models,[e.models]),a=w.useMemo(()=>({search:e.filters.search,precisions:e.filters.precisions,types:e.filters.types,paramsRange:e.filters.paramsRange,booleanFilters:e.filters.booleanFilters,isOfficialProviderActive:e.filters.isOfficialProviderActive}),[e.filters.search,e.filters.precisions,e.filters.types,e.filters.paramsRange,e.filters.booleanFilters,e.filters.isOfficialProviderActive]),{table:u,minAverage:c,maxAverage:p,getColorForValue:h,processedData:g,filteredData:y,columns:C,columnVisibility:x}=gM(s,a.search,a.precisions,a.types,a.paramsRange,a.booleanFilters,n,e.display.rankingMode,e.display.averageMode,e.display.visibleColumns,e.display.scoreDisplay,e.pinnedModels,t.togglePinnedModel,o,a.isOfficialProviderActive);return{table:u,minAverage:c,maxAverage:p,getColorForValue:h,processedData:g,filteredData:y,columns:C,columnVisibility:x,loading:e.loading,error:e.error}},yM=Ze(d.jsx("path",{d:"M19 5v14H5V5zm0-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-2"}),"CheckBoxOutlineBlank"),vM=Ze(d.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-2m0 16H5V5h14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"}),"CheckBoxOutlined"),gr=({label:e,checked:t,onChange:n,count:o,isHideFilter:s=!1,totalCount:a=0,variant:u="tag",showCheckbox:c=!1,stacked:p=!1,sx:h={}})=>{const g=Gn(),y=b=>b===void 0?"":`${b}`,C=e,x=o!==void 0?y(o):"";return d.jsx(ui,{icon:c?t?d.jsx(vM,{sx:{fontSize:"1.1rem",ml:.8,color:t?u==="secondary"?"secondary.main":"primary.main":"text.secondary"}}):d.jsx(yM,{sx:{fontSize:"1.1rem",ml:.8,color:"text.secondary"}}):null,label:d.jsxs("span",{children:[C,x&&d.jsxs(d.Fragment,{children:[d.jsx("span",{style:{display:"inline-block",width:"3px",height:"3px",borderRadius:"50%",backgroundColor:"currentColor",opacity:.2,margin:"0 4px",verticalAlign:"middle"}}),d.jsx("span",{style:{opacity:.5},children:x})]})]}),onClick:n,variant:"outlined",color:t?u==="secondary"?"secondary":"primary":"default",size:"small","data-checked":t,sx:{height:"32px",fontWeight:600,opacity:t?1:.8,borderRadius:"5px",borderWidth:"1px",borderStyle:"solid",cursor:"pointer",pl:c?.5:0,mr:.5,mb:.5,transition:"opacity 0.2s ease, border-color 0.2s ease","& .MuiChip-label":{px:.75,pl:c?.6:.75},"& .MuiChip-icon":{mr:.5,pl:.2},"&:hover":{opacity:1,backgroundColor:t?re(g.palette[u==="secondary"?"secondary":"primary"].main,g.palette.mode==="light"?.08:.16):"action.hover",borderWidth:"1px"},backgroundColor:t?re(g.palette[u==="secondary"?"secondary":"primary"].main,g.palette.mode==="light"?.08:.16):"background.paper",borderColor:t?u==="secondary"?"secondary.main":"primary.main":"divider",...h}})},xM=e=>{switch(e){case"Model Type":return fn.ARCHITECTURE;case"Precision format":return fn.PRECISION;case"Flags":return fn.FLAGS;case"Parameters":return fn.PARAMETERS;default:return null}},Oc=({title:e,tooltip:t,children:n,paramsRange:o,onParamsRangeChange:s})=>{const a=Gn(),[u,c]=w.useState(o),p=w.useRef(null),h=w.useCallback((C,x)=>{c(x)},[]),g=w.useCallback(C=>x=>{const b=x.target.value===""?"":Number(x.target.value);if(b===""||b>=-1&&b<=140){const v=[...u];v[C]=b,c(v)}},[u]);w.useEffect(()=>{c(o)},[o]),w.useEffect(()=>(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{Array.isArray(u)&&u.length===2&&s(u)},300),()=>{p.current&&clearTimeout(p.current)}),[u,s]);const y=()=>e==="Parameters"?d.jsxs(W,{sx:{px:1},children:[d.jsx(W,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:d.jsxs(W,{sx:{display:"flex",gap:1,position:"absolute",right:0,top:"-5px"},children:[d.jsx(Il,{value:u[0],onChange:g(0),variant:"outlined",size:"small",type:"number",inputProps:{min:-1,max:140,style:{width:"45px",textAlign:"center",padding:"4px",fontSize:"0.875rem"}},sx:{"& .MuiOutlinedInput-root":{borderRadius:1,height:"28px"}}}),d.jsx(Il,{value:u[1],onChange:g(1),variant:"outlined",size:"small",type:"number",inputProps:{min:-1,max:140,style:{width:"45px",textAlign:"center",padding:"4px",fontSize:"0.875rem"}},sx:{"& .MuiOutlinedInput-root":{borderRadius:1,height:"28px"}}})]})}),d.jsx(A4,{value:u,onChange:h,valueLabelDisplay:"auto",min:-1,max:140,step:1,marks:[{value:-1,label:"All"},{value:7,label:"7"},{value:70,label:"70"},{value:140,label:"140"}],valueLabelFormat:C=>C===-1?"All":`${C}B`,sx:{"& .MuiSlider-rail":{height:10,backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",opacity:1},"& .MuiSlider-track":{height:10,border:"1px solid",borderColor:C=>re(C.palette.primary.main,C.palette.mode==="light"?.3:.5),backgroundColor:C=>re(C.palette.primary.main,C.palette.mode==="light"?.1:.2)},"& .MuiSlider-thumb":{width:20,height:20,backgroundColor:"background.paper",border:"1px solid",borderColor:"primary.main","&:hover, &.Mui-focusVisible":{boxShadow:C=>`0 0 0 8px ${re(C.palette.primary.main,C.palette.mode==="light"?.08:.16)}`},"&.Mui-active":{boxShadow:C=>`0 0 0 12px ${re(C.palette.primary.main,C.palette.mode==="light"?.08:.16)}`}},"& .MuiSlider-valueLabel":{backgroundColor:a.palette.primary.main},"& .MuiSlider-mark":{width:2,height:10,backgroundColor:"divider"},"& .MuiSlider-markLabel":{fontSize:"0.875rem","&::after":{content:'"B"',marginLeft:"1px",opacity:.5},'&[data-index="0"]::after':{content:'""'}}}})]}):d.jsx(W,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:n});return d.jsxs(W,{sx:{mb:3},children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:.5,mb:1.5},children:[d.jsx(ne,{variant:"body2",sx:{fontWeight:600},children:e}),d.jsx(an,{tooltip:xM(e),iconProps:{sx:{fontSize:"1rem"}}})]}),y()]})},CM=w.forwardRef((e,t)=>{const{children:n,style:o={},...s}=e,a="0px",u=300,c=w.useRef(null),[p,h]=w.useState(e.in?"auto":a);w.useEffect(()=>{if(c.current)if(e.in){const y=c.current.scrollHeight;h(`${y}px`)}else h(a)},[e.in,n]);const g=y=>{h("auto"),e.onEntered&&e.onEntered(y)};return d.jsx(zl,{ref:t,style:{...o,height:p},timeout:u,onEntered:g,...s,children:d.jsx("div",{ref:c,children:n})})}),bM=({selectedPrecisions:e=da,onPrecisionsChange:t=()=>{},selectedTypes:n=es,onTypesChange:o=()=>{},paramsRange:s=[-1,140],onParamsRangeChange:a=()=>{},selectedBooleanFilters:u=[],onBooleanFiltersChange:c=()=>{},data:p=[],expanded:h,onToggleExpanded:g,loading:y=!1})=>{const[C,x]=w.useState(s),b=w.useRef(null),{state:v,actions:R}=mi(),{normal:E,officialOnly:L}=v.filterCounts,k=v.filters.isOfficialProviderActive,P=w.useMemo(()=>k?L:E,[k,L,E]);w.useEffect(()=>{x(s)},[s]),w.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[]);const M=(O,z)=>{x(z)},j=(O,z)=>{b.current&&clearTimeout(b.current),a(z),b.current=setTimeout(()=>{R.updateFilteredData()},Ge.DEBOUNCE.SEARCH)},_=O=>{const z=e.includes(O)?e.filter(q=>q!==O):[...e,O];t(z)},N=O=>{const z=u.includes(O)?u.filter(q=>q!==O):[...u,O];c(z)},V=x5.filter(O=>!O.hide),I=x5.filter(O=>O.hide),F=()=>{R.toggleOfficialProvider()};return y?null:d.jsx(W,{children:d.jsx(fh,{expanded:h,onChange:g,elevation:0,TransitionComponent:CM,disableGutters:!0,sx:{backgroundColor:"transparent",border:"1px solid transparent !important","& .MuiAccordion-region":{margin:0},"&.MuiAccordion-root":{margin:0},"& .MuiCollapse-root":{margin:0}},children:d.jsx(ph,{sx:{p:0,m:0},children:d.jsx(W,{children:d.jsxs(tn,{container:!0,spacing:3,children:[d.jsx(tn,{item:!0,xs:12,md:9,sx:{display:"flex"},children:d.jsxs(W,{sx:{backgroundColor:O=>re(O.palette.primary.main,.02),border:"1px solid",borderColor:O=>re(O.palette.primary.main,.2),borderRadius:1,p:3,position:"relative",width:"100%",display:"flex",flexDirection:"column","&:hover":{borderColor:O=>re(O.palette.primary.main,.3),backgroundColor:O=>re(O.palette.primary.main,.03)},transition:O=>O.transitions.create(["border-color","background-color"],{duration:O.transitions.duration.short})},children:[d.jsx(ne,{variant:"h6",sx:{mb:3,fontWeight:600,color:"text.primary",fontSize:"1.1rem"},children:"Advanced Filters"}),d.jsx(W,{sx:{flex:1},children:d.jsxs(tn,{container:!0,spacing:3,sx:{flex:1},children:[d.jsx(tn,{item:!0,xs:12,md:6,children:d.jsx(W,{children:d.jsx(Oc,{title:"Precision format",tooltip:fn.PRECISION,children:da.map(O=>d.jsx(gr,{label:O,checked:e.includes(O),onChange:()=>_(O),count:P.precisions[O],showCheckbox:!0},O))})})}),d.jsx(tn,{item:!0,xs:12,md:6,children:d.jsx(W,{sx:{position:"relative"},children:d.jsx(Oc,{title:"Parameters",tooltip:fn.PARAMETERS,paramsRange:s,onParamsRangeChange:a,children:d.jsx(W,{sx:{width:"100%",display:"flex",alignItems:"center",gap:2},children:d.jsx(W,{sx:{flex:1},children:d.jsx(A4,{value:C,onChange:M,onChangeCommitted:j,valueLabelDisplay:"auto",min:-1,max:140,step:1,marks:[{value:-1,label:""},{value:0,label:"0"},{value:7,label:"7"},{value:70,label:"70"},{value:140,label:"140"}],sx:{"& .MuiSlider-rail":{height:10,backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",opacity:1},"& .MuiSlider-track":{height:10,border:"1px solid",borderColor:O=>re(O.palette.primary.main,O.palette.mode==="light"?.3:.5),backgroundColor:O=>re(O.palette.primary.main,O.palette.mode==="light"?.1:.2)},"& .MuiSlider-thumb":{width:20,height:20,backgroundColor:"background.paper",border:"1px solid",borderColor:"primary.main","&:hover, &.Mui-focusVisible":{boxShadow:O=>`0 0 0 8px ${re(O.palette.primary.main,O.palette.mode==="light"?.08:.16)}`},"&.Mui-active":{boxShadow:O=>`0 0 0 12px ${re(O.palette.primary.main,O.palette.mode==="light"?.08:.16)}`}},"& .MuiSlider-mark":{backgroundColor:"text.disabled",height:2,width:2,borderRadius:"50%"},"& .MuiSlider-markLabel":{color:"text.secondary"}}})})})})})}),d.jsx(tn,{item:!0,xs:12,md:6,children:d.jsx(W,{children:d.jsx(Oc,{title:"Model Type",tooltip:fn.ARCHITECTURE,children:es.sort((O,z)=>Ns[O].order-Ns[z].order).map(O=>{var z,q;return d.jsx(gr,{label:`${(z=Ns[O])==null?void 0:z.icon} ${((q=Ns[O])==null?void 0:q.label)||O}`,checked:n.includes(O),onChange:()=>{const K=n.includes(O)?n.filter(Q=>Q!==O):[...n,O];o(K)},count:P.modelTypes[O],variant:"tag",showCheckbox:!0},O)})})})}),d.jsx(tn,{item:!0,xs:12,md:6,children:d.jsx(W,{children:d.jsx(Oc,{title:"Flags",tooltip:fn.FLAGS,children:I.map(O=>d.jsx(gr,{label:O.label,checked:!u.includes(O.value),onChange:()=>{const z=u.includes(O.value)?u.filter(q=>q!==O.value):[...u,O.value];c(z)},count:O.value==="is_moe"?P.mixtureOfExperts:O.value==="is_flagged"?P.flagged:O.value==="is_merged"?P.merged:O.value==="is_not_available_on_hub"?P.notOnHub:0,isHideFilter:!1,totalCount:p.length,showCheckbox:!0},O.value))})})})]})})]})}),d.jsx(tn,{item:!0,xs:12,md:3,sx:{display:"flex"},children:d.jsx(W,{sx:{backgroundColor:O=>re(O.palette.secondary.main,.02),border:"1px solid",borderColor:O=>re(O.palette.secondary.main,.15),borderRadius:1,p:3,position:"relative",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",minHeight:"100%","&:hover":{borderColor:O=>re(O.palette.secondary.main,.25),backgroundColor:O=>re(O.palette.secondary.main,.03)},transition:O=>O.transitions.create(["border-color","background-color"],{duration:O.transitions.duration.short})},children:d.jsxs(W,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[d.jsx(ne,{variant:"h6",sx:{fontWeight:600,color:"text.primary",fontSize:"1.1rem",display:"flex",alignItems:"center",gap:1},children:"Official Models"}),d.jsx(ne,{variant:"body2",sx:{color:"text.secondary",fontSize:"0.8rem",lineHeight:1.4,maxWidth:"280px"},children:"Show only models that are officially provided and maintained by their original creators."}),d.jsx(W,{sx:{display:"flex",flexDirection:"column",gap:1,width:"100%",alignItems:"center"},children:V.map(O=>d.jsxs(W,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[d.jsx(gr,{label:O.label,checked:O.value==="is_official_provider"?k:u.includes(O.value),onChange:O.value==="is_official_provider"?F:()=>N(O.value),count:O.value==="is_official_provider"?P.officialProviders:0,showCheckbox:!0,variant:"secondary"}),d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:.5,color:"text.secondary",fontSize:"0.75rem"},children:[d.jsx(W,{component:"span",sx:{width:6,height:6,borderRadius:"50%",backgroundColor:(O.value==="is_official_provider"?k:u.includes(O.value))?"success.main":"text.disabled"}}),(O.value==="is_official_provider"?k:u.includes(O.value))?"Filter active":"Filter inactive"]})]},O.value))})]})})})]})})})})})};function $s(e,t,n){let o=n.initialDeps??[],s;return()=>{var a,u,c,p;let h;n.key&&((a=n.debug)!=null&&a.call(n))&&(h=Date.now());const g=e();if(!(g.length!==o.length||g.some((x,b)=>o[b]!==x)))return s;o=g;let C;if(n.key&&((u=n.debug)!=null&&u.call(n))&&(C=Date.now()),s=t(...g),n.key&&((c=n.debug)!=null&&c.call(n))){const x=Math.round((Date.now()-h)*100)/100,b=Math.round((Date.now()-C)*100)/100,v=b/16,R=(E,L)=>{for(E=String(E);E.lengthMath.abs(e-t)<1,wM=(e,t,n)=>{let o;return function(...s){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,s),n)}},RM=e=>e,kM=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let s=t;s<=n;s++)o.push(s);return o},EM=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;const s=u=>{const{width:c,height:p}=u;t({width:Math.round(c),height:Math.round(p)})};if(s(n.getBoundingClientRect()),!o.ResizeObserver)return()=>{};const a=new o.ResizeObserver(u=>{const c=u[0];if(c!=null&&c.borderBoxSize){const p=c.borderBoxSize[0];if(p){s({width:p.inlineSize,height:p.blockSize});return}}s(n.getBoundingClientRect())});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},A5={passive:!0},PM=typeof window>"u"?!0:"onscrollend"in window,IM=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;let s=0;const a=e.options.useScrollendEvent&&PM?()=>{}:wM(o,()=>{t(s,!1)},e.options.isScrollingResetDelay),u=h=>()=>{const{horizontal:g,isRtl:y}=e.options;s=g?n.scrollLeft*(y&&-1||1):n.scrollTop,a(),t(s,h)},c=u(!0),p=u(!1);return p(),n.addEventListener("scroll",c,A5),n.addEventListener("scrollend",p,A5),()=>{n.removeEventListener("scroll",c),n.removeEventListener("scrollend",p)}},MM=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const o=t.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},LM=(e,{adjustments:t=0,behavior:n},o)=>{var s,a;const u=e+t;(a=(s=o.scrollElement)==null?void 0:s.scrollTo)==null||a.call(s,{[o.options.horizontal?"left":"top"]:u,behavior:n})};class TM{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(s=>{s.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var s;(s=o())==null||s.disconnect(),n=null},observe:s=>{var a;return(a=o())==null?void 0:a.observe(s,{box:"border-box"})},unobserve:s=>{var a;return(a=o())==null?void 0:a.unobserve(s)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([o,s])=>{typeof s>"u"&&delete n[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:RM,rangeExtractor:kM,onChange:()=>{},measureElement:MM,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var o,s;(s=(o=this.options).onChange)==null||s.call(o,this,n)},this.maybeNotify=$s(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,o)=>{const s=new Map,a=new Map;for(let u=o-1;u>=0;u--){const c=n[u];if(s.has(c.lane))continue;const p=a.get(c.lane);if(p==null||c.end>p.end?a.set(c.lane,c):c.endu.end===c.end?u.index-c.index:u.end-c.end)[0]:void 0},this.getMeasurementOptions=$s(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,o,s,a,u)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:o,scrollMargin:s,getItemKey:a,enabled:u}),{key:!1}),this.getMeasurements=$s(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:o,scrollMargin:s,getItemKey:a,enabled:u},c)=>{if(!u)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,p);for(let g=p;gthis.options.debug}),this.calculateRange=$s(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,o,s)=>this.range=n.length>0&&o>0?jM({measurements:n,outerSize:o,scrollOffset:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=$s(()=>{let n=null,o=null;const s=this.calculateRange();return s&&(n=s.startIndex,o=s.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,s,a,u)=>a===null||u===null?[]:n({startIndex:a,endIndex:u,overscan:o,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,s=n.getAttribute(o);return s?parseInt(s,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this._measureElement=(n,o)=>{const s=this.indexFromElement(n),a=this.measurementsCache[s];if(!a)return;const u=a.key,c=this.elementsCache.get(u);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(u,n)),n.isConnected&&this.resizeItem(s,this.options.measureElement(n,o,this))},this.resizeItem=(n,o)=>{const s=this.measurementsCache[n];if(!s)return;const a=this.itemSizeCache.get(s.key)??s.size,u=o-a;u!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,u,this):s.start{if(!n){this.elementsCache.forEach((o,s)=>{o.isConnected||(this.observer.unobserve(o),this.elementsCache.delete(s))});return}this._measureElement(n,void 0)},this.getVirtualItems=$s(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const s=[];for(let a=0,u=n.length;athis.options.debug}),this.getVirtualItemForOffset=n=>{const o=this.getMeasurements();if(o.length!==0)return Kp(o[dv(0,o.length-1,s=>Kp(o[s]).start,n)])},this.getOffsetForAlignment=(n,o)=>{const s=this.getSize(),a=this.getScrollOffset();o==="auto"&&n>=a+s&&(o="end"),o==="end"&&(n-=s);const u=this.options.horizontal?"scrollWidth":"scrollHeight",p=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[u]:this.scrollElement[u]:0)-s;return Math.max(Math.min(p,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const s=this.measurementsCache[n];if(!s)return;const a=this.getSize(),u=this.getScrollOffset();if(o==="auto")if(s.end>=u+a-this.options.scrollPaddingEnd)o="end";else if(s.start<=u+this.options.scrollPaddingStart)o="start";else return[u,o];const c=s.start-this.options.scrollPaddingStart+(s.size-a)/2;switch(o){case"center":return[this.getOffsetForAlignment(c,o),o];case"end":return[this.getOffsetForAlignment(s.end+this.options.scrollPaddingEnd,o),o];default:return[this.getOffsetForAlignment(s.start-this.options.scrollPaddingStart,o),o]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:o="start",behavior:s}={})=>{this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,o),{adjustments:void 0,behavior:s})},this.scrollToIndex=(n,{align:o="auto",behavior:s}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(n,o);if(!a)return;const[u,c]=a;this._scrollToOffset(u,{adjustments:void 0,behavior:s}),s!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[h]=Kp(this.getOffsetForIndex(n,c));SM(h,this.getScrollOffset())||this.scrollToIndex(n,{align:c,behavior:s})}else this.scrollToIndex(n,{align:c,behavior:s})}))},this.scrollBy=(n,{behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:o})},this.getTotalSize=()=>{var n;const o=this.getMeasurements();let s;return o.length===0?s=this.options.paddingStart:s=this.options.lanes===1?((n=o[o.length-1])==null?void 0:n.end)??0:Math.max(...o.slice(-this.options.lanes).map(a=>a.end)),Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:o,behavior:s})=>{this.options.scrollToFn(n,{behavior:s,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const dv=(e,t,n,o)=>{for(;e<=t;){const s=(e+t)/2|0,a=n(s);if(ao)t=s-1;else return s}return e>0?e-1:0};function jM({measurements:e,outerSize:t,scrollOffset:n}){const o=e.length-1,a=dv(0,o,c=>e[c].start,n);let u=a;for(;u({}),{})[1],n={...e,onChange:(s,a)=>{var u;a?U1.flushSync(t):t(),(u=e.onChange)==null||u.call(e,s,a)}},[o]=w.useState(()=>new TM(n));return o.setOptions(n),F5(()=>o._didMount(),[]),F5(()=>o._willUpdate()),o}function fv(e){return OM({observeElementRect:EM,observeElementOffset:IM,scrollToFn:LM,...e})}const _M=Ze(d.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),$M=Ze(d.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),z5=Ze(d.jsx("path",{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"}),"UnfoldMore"),AM=Ze([d.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),d.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),FM=Ze(d.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune"),pv=Ze(d.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"),Uh=Ze(d.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt"),hv=({label:e,icon:t,closeIcon:n,hasChanges:o=!1,children:s,defaultWidth:a=340,paperProps:u={},buttonSx:c={},loading:p=!1})=>{const h=Gn(),[g,y]=w.useState(null),C=b=>{b.stopPropagation(),y(b.currentTarget)},x=b=>{b&&b.stopPropagation(),y(null)};return p?d.jsx(Xr,{variant:"rounded",sx:{width:e==="table options"?120:140,height:32,transform:"none",borderRadius:1}}):d.jsxs(W,{children:[d.jsxs(W,{onClick:C,sx:{...B1.optionButton,"&:hover":B1.hoverEffect(h,o),...c},children:[g&&n?d.jsx(n,{sx:{fontSize:"1rem",color:o?"primary.main":"grey.600"}}):d.jsx(t,{sx:{fontSize:"1rem",color:o?"primary.main":"grey.600"}}),d.jsx(ne,{variant:"caption",sx:{color:o?"primary.main":"grey.600",fontSize:"0.875rem",userSelect:"none",lineHeight:1},children:e})]}),d.jsx(Pd,{children:d.jsx(L4,{open:!!g,anchorEl:g,onClose:x,disableRestoreFocus:!0,disableAutoFocus:!0,PaperProps:{sx:{p:3,maxHeight:"470px",overflowY:"auto",width:a,backgroundColor:"background.paper",border:"1px solid",borderColor:b=>b.palette.mode==="light"?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)",borderRadius:1,position:"relative",boxShadow:b=>`0px 4px 20px ${b.palette.mode==="light"?"rgba(0, 0, 0, 0.1)":"rgba(255, 255, 255, 0.1)"}`,...u.sx},...u},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{backdrop:{sx:{backgroundColor:"transparent"}}},children:s})})]})},zM=({rowSize:e,onRowSizeChange:t,scoreDisplay:n="normalized",onScoreDisplayChange:o,averageMode:s="all",onAverageModeChange:a,rankingMode:u="static",onRankingModeChange:c,hasChanges:p,searchParams:h,setSearchParams:g,loading:y=!1})=>{const C=()=>{t(Ge.ROW_SIZE),o(Ge.SCORE_DISPLAY),a(Ge.AVERAGE_MODE),c(Ge.RANKING_MODE);const x=new URLSearchParams(h);["rowSize","scoreDisplay","averageMode","rankingMode"].forEach(b=>{x.delete(b)}),g(x)};return d.jsxs(hv,{label:"table options",icon:FM,closeIcon:pv,hasChanges:p,loading:y,defaultWidth:260,tooltip:Dn.DISPLAY_OPTIONS,children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(ne,{variant:"body2",sx:{fontWeight:600},children:"Table Options"}),d.jsx(an,{tooltip:Dn.DISPLAY_OPTIONS,iconProps:{sx:{fontSize:"1rem",ml:.5}}})]}),d.jsxs(W,{onClick:p?C:void 0,sx:{display:"flex",alignItems:"center",gap:.5,cursor:p?"pointer":"default",color:p?"text.secondary":"text.disabled",backgroundColor:"transparent",border:"1px solid",borderColor:p?"divider":"action.disabledBackground",borderRadius:1,padding:"4px 8px","&:hover":p?{backgroundColor:"action.hover",color:"text.primary"}:{},userSelect:"none",transition:"all 0.2s ease"},children:[d.jsx(Uh,{sx:{fontSize:"1.2rem"}}),d.jsx(ne,{variant:"body2",sx:{fontWeight:600,display:{xs:"none",sm:"block"}},children:"Reset"})]})]}),d.jsx(W,{children:d.jsxs(W,{sx:{display:"flex",flexDirection:"column",gap:3},children:[d.jsxs(W,{children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",mb:1},children:[d.jsx(ne,{variant:"subtitle2",children:Dn.ROW_SIZE.title}),d.jsx(an,{tooltip:Dn.ROW_SIZE.description,iconProps:{sx:{fontSize:"1rem",ml:.5}}})]}),d.jsx(W,{sx:{display:"flex",gap:1},children:Object.keys(Oh).map(x=>d.jsx(gr,{label:x.charAt(0).toUpperCase()+x.slice(1),checked:e===x,onChange:()=>t(x),variant:"tag"},x))})]}),d.jsxs(W,{children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",mb:1},children:[d.jsx(ne,{variant:"subtitle2",children:Dn.SCORE_DISPLAY.title}),d.jsx(an,{tooltip:Dn.SCORE_DISPLAY.description,iconProps:{sx:{fontSize:"1rem",ml:.5}}})]}),d.jsx(W,{sx:{display:"flex",gap:1},children:aP.map(({value:x,label:b})=>d.jsx(gr,{label:b,checked:n===x,onChange:()=>o(x),variant:"tag"},x))})]}),d.jsxs(W,{children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",mb:1},children:[d.jsx(ne,{variant:"subtitle2",children:Dn.RANKING_MODE.title}),d.jsx(an,{tooltip:Dn.RANKING_MODE.description,iconProps:{sx:{fontSize:"1rem",ml:.5}}})]}),d.jsx(W,{sx:{display:"flex",gap:1},children:lP.map(({value:x,label:b})=>d.jsx(gr,{label:b,checked:u===x,onChange:()=>c(x),variant:"tag"},x))})]}),d.jsxs(W,{children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",mb:1},children:[d.jsx(ne,{variant:"subtitle2",children:Dn.AVERAGE_SCORE.title}),d.jsx(an,{tooltip:Dn.AVERAGE_SCORE.description,iconProps:{sx:{fontSize:"1rem",ml:.5}}})]}),d.jsxs(W,{sx:{display:"flex",gap:1},children:[d.jsx(gr,{label:"All Scores",checked:s==="all",onChange:()=>a("all"),variant:"tag"}),d.jsx(gr,{label:"Visible Only",checked:s==="visible",onChange:()=>a("visible"),variant:"tag"})]})]})]})})]})},NM=Ze(d.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),DM=({title:e,children:t,count:n,total:o})=>d.jsxs(W,{sx:{mb:3},children:[d.jsxs(ne,{variant:"subtitle2",sx:{mb:1.5,fontSize:"0.8rem",fontWeight:700,color:"text.primary",display:"flex",alignItems:"center",gap:.5},children:[e,n!==void 0&&o!==void 0&&d.jsxs(ne,{component:"span",variant:"caption",sx:{color:"text.secondary",ml:.5,fontSize:"0.75rem"},children:["(",n,"/",o,")"]})]}),d.jsx(W,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center"},children:t})]}),BM=({table:e,onReset:t,hasChanges:n,onColumnVisibilityChange:o,loading:s=!1})=>{const{getState:a,setColumnVisibility:u}=e,{columnVisibility:c}=a(),p=[...Ge.COLUMNS.EVALUATION,...Ge.COLUMNS.OPTIONAL],h=y=>{if(y.preventDefault(),y.stopPropagation(),!n)return;t==null||t();const C={};Ge.COLUMNS.DEFAULT_VISIBLE.forEach(x=>{C[x]=!0}),o==null||o(C),u(C)},g=y=>{if(Ge.COLUMNS.FIXED.includes(y))return;const C={...c,[y]:!c[y]};u(C),o==null||o(C)};return d.jsxs(hv,{label:"column visibility",icon:NM,closeIcon:pv,hasChanges:n,loading:s,tooltip:Dn.COLUMN_SELECTOR,children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:[d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(ne,{variant:"body2",sx:{fontWeight:600},children:"Column Visibility"}),d.jsx(an,{tooltip:Dn.COLUMN_SELECTOR,iconProps:{sx:{fontSize:"1rem"}}})]}),d.jsxs(W,{component:"button",onClick:n?h:void 0,sx:{display:"flex",alignItems:"center",gap:.5,cursor:n?"pointer":"default",color:n?"text.secondary":"text.disabled",backgroundColor:"transparent",border:"1px solid",borderColor:n?"divider":"action.disabledBackground",borderRadius:1,padding:"4px 8px","&:hover":n?{backgroundColor:"action.hover",color:"text.primary"}:{},userSelect:"none",transition:"all 0.2s ease"},children:[d.jsx(Uh,{sx:{fontSize:"1.2rem"}}),d.jsx(ne,{variant:"body2",sx:{fontWeight:600,display:{xs:"none",sm:"block"}},children:"Reset"})]})]}),Object.entries(Ge.COLUMNS.COLUMN_GROUPS).map(([y,C])=>{const x=y==="Evaluation Scores",b=C.filter(E=>p.includes(E)),v=x?b.filter(E=>c[E]).length:void 0,R=x?b.length:void 0;return d.jsx(DM,{title:y,count:v,total:R,children:b.map(E=>{const L=Ge.COLUMNS.FIXED.includes(E);return d.jsx(gr,{label:Ge.COLUMNS.COLUMN_LABELS[E]||E,checked:c[E],onChange:()=>g(E),disabled:L,variant:"tag"},E)})},y)})]})},VM=()=>d.jsxs(W,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:8,textAlign:"center",height:"100%",backgroundColor:"background.paper"},children:[d.jsx(AM,{sx:{fontSize:80,color:"grey.300",mb:2}}),d.jsx(ne,{variant:"h4",component:"h2",sx:{fontWeight:"bold",color:"grey.700",mb:1},children:"No models found"}),d.jsx(ne,{variant:"body1",sx:{color:"grey.600",maxWidth:450,mx:"auto"},children:"Try modifying your filters or search to see more models."})]}),UM=({rowSize:e="normal"})=>{const t=Math.floor(Oh[e]),n=Math.floor(t*1.25);return d.jsx(Mh,{sx:{border:s=>`1px solid ${re(s.palette.divider,s.palette.mode==="dark"?.05:.1)}`,borderRadius:1},children:d.jsxs(Ph,{stickyHeader:!0,children:[d.jsx(Lh,{children:d.jsx(Co,{children:C5.map((s,a)=>d.jsx(Bn,{sx:{width:s,minWidth:s,height:`${n}px`,padding:`${n*.25}px 16px`,fontWeight:400,textAlign:a>3?"right":"left",borderRight:u=>`1px solid ${u.palette.divider}`,"&:last-child":{borderRight:"none"},position:"sticky",top:0,backgroundColor:u=>u.palette.background.paper,zIndex:2}},a))})}),d.jsx(Ih,{children:[...Array(10)].map((s,a)=>d.jsx(Co,{sx:{height:`${t}px !important`,backgroundColor:u=>a%2===0?"transparent":u.palette.action.hover},children:C5.map((u,c)=>d.jsx(Bn,{sx:{width:u,minWidth:u,height:`${t}px`,padding:`${t*.25}px 16px`,borderRight:p=>`1px solid ${p.palette.divider}`,"&:last-child":{borderRight:"none"}},children:d.jsx(Xr,{variant:c===1?"circular":"text",width:c===2?"60%":"80%",height:c===1?Math.min(24,t-4):Math.min(20,t-8),sx:{transform:"none",marginLeft:c>3?"auto":0,backgroundColor:p=>re(p.palette.text.primary,.11),"&::after":{background:p=>`linear-gradient(90deg, ${re(p.palette.text.primary,.11)}, ${re(p.palette.text.primary,.14)}, ${re(p.palette.text.primary,.11)})`}}})},c))},a))})]})})},Hc=kt.memo(({loading:e,rowSize:t,onRowSizeChange:n,scoreDisplay:o,onScoreDisplayChange:s,averageMode:a,onAverageModeChange:u,rankingMode:c,onRankingModeChange:p,hasTableOptionsChanges:h,searchParams:g,setSearchParams:y,table:C,handleColumnReset:x,hasColumnFilterChanges:b,onColumnVisibilityChange:v})=>d.jsxs(W,{sx:{display:"flex",justifyContent:{xs:"center",md:"flex-end"},gap:1,mb:2,pt:{xs:2,md:0}},children:[d.jsx(zM,{loading:e,rowSize:t,onRowSizeChange:n,scoreDisplay:o,onScoreDisplayChange:s,averageMode:a,onAverageModeChange:u,rankingMode:c,onRankingModeChange:p,hasChanges:h,searchParams:g,setSearchParams:y}),d.jsx(BM,{loading:e,table:C,onReset:x,hasChanges:b,onColumnVisibilityChange:v})]}));Hc.displayName="TableControls";const HM=({table:e,rowSize:t="normal",loading:n=!1,hasTableOptionsChanges:o,hasColumnFilterChanges:s,onColumnVisibilityChange:a,scoreDisplay:u,onScoreDisplayChange:c,averageMode:p,onAverageModeChange:h,rankingMode:g,onRankingModeChange:y,onRowSizeChange:C,searchParams:x,setSearchParams:b,pinnedModels:v=[]})=>{const{rows:R}=e.getRowModel(),E=w.useRef(null),L=w.useMemo(()=>Oh[t],[t]),k=w.useMemo(()=>Math.floor(L*1.25),[L]),P=w.useMemo(()=>R.filter(G=>G.original.isPinned).sort((G,te)=>{const A=v.indexOf(G.original.id),X=v.indexOf(te.original.id);return A-X}),[R,v]),M=w.useMemo(()=>R.filter(D=>!D.original.isPinned),[R]),j=w.useMemo(()=>P.length*L,[P.length,L]),_=w.useMemo(()=>({count:M.length,getScrollElement:()=>E.current,estimateSize:()=>L,overscan:15,scrollMode:"sync",scrollPaddingStart:j,scrollPaddingEnd:0,initialRect:{width:0,height:L*15}}),[L,M.length,j]),V=fv(_).getVirtualItems(),I=V.length>0?V[0].start:0,F=V.length>0?M.length*L-V[V.length-1].end:0,O=w.useCallback(()=>{a(Ge.COLUMNS.DEFAULT_VISIBLE)},[a]),z=D=>({borderRight:`1px solid ${re(D.palette.divider,D.palette.mode==="dark"?.05:.1)}`,"&:last-child":{borderRight:"none"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"8px 16px"}),q=D=>({...z(D),padding:"6px 16px",height:"36px",position:"sticky !important",top:0,zIndex:10,"& > .header-content":{display:"flex",alignItems:"center",width:"100%",gap:"4px",flexDirection:"row"}}),K=D=>D.id==="rank"||D.id==="model_type"||D.id==="isPinned"?null:D.getIsSorted()?D.getIsSorted()==="desc"?d.jsx($M,{sx:{fontSize:"1rem"}}):d.jsx(_M,{sx:{fontSize:"1rem"}}):d.jsx(z5,{sx:{fontSize:"1rem",opacity:.3}}),Q=D=>{const G=K(D.column);return d.jsxs(W,{className:"header-content",sx:{display:"flex",alignItems:"center",width:"100%",gap:"4px"},children:[O5(D.column.columnDef.header,D.getContext()),d.jsx(ne,{className:"sort-icon",sx:{opacity:D.column.getIsSorted()?1:.3,fontSize:"0.75rem",fontWeight:D.column.getIsSorted()?700:400,transition:"none 0.2s ease",display:"flex",alignItems:"center",visibility:G?"visible":"hidden","&:hover":{opacity:1}},children:G||d.jsx(z5,{sx:{fontSize:"1rem"}})})]})},ee=(D,G=!1,te=0)=>{const A=e.getSortedRowModel().rows.findIndex(X=>X.id===D.id);return d.jsx(Co,{sx:X=>({height:`${L}px !important`,backgroundColor:G?X.palette.background.paper:(A+1)%2===0?"transparent":re(X.palette.mode==="dark"?"#fff":"#000",.02),position:G?"sticky":"relative",top:G?`${k+te*L}px`:"auto",zIndex:G?2:1,boxShadow:G?`0 1px 1px ${re(X.palette.common.black,X.palette.mode==="dark"?.1:.05)}`:"none","&::after":G?{content:'""',position:"absolute",left:0,right:0,height:"1px",bottom:-1,backgroundColor:re(X.palette.divider,X.palette.mode==="dark"?.1:.2),zIndex:1}:{}}),children:D.getVisibleCells().map(X=>d.jsx(Bn,{sx:he=>{var fe,pe;return{width:`${X.column.columnDef.size}px !important`,minWidth:`${X.column.columnDef.size}px !important`,height:`${L}px`,backgroundColor:G?he.palette.background.paper:"inherit",borderBottom:G?"none":`1px solid ${he.palette.divider}`,...z(he),...((pe=(fe=X.column.columnDef.meta)==null?void 0:fe.cellStyle)==null?void 0:pe.call(fe,X.getValue()))||{},"& .MuiBox-root":{overflow:"visible"}}},children:O5(X.column.columnDef.cell,X.getContext())},X.id))},D.id)};return!n&&(!R||R.length===0)?d.jsxs(W,{sx:{width:"100%"},children:[d.jsx(Hc,{loading:n,rowSize:t,onRowSizeChange:C,scoreDisplay:u,onScoreDisplayChange:c,averageMode:p,onAverageModeChange:h,rankingMode:g,onRankingModeChange:y,hasTableOptionsChanges:o,searchParams:x,setSearchParams:b,table:e,handleColumnReset:O,hasColumnFilterChanges:s,onColumnVisibilityChange:a}),d.jsx(mn,{sx:{height:"calc(100vh - 380px)",minHeight:"500px",resize:"vertical",overflow:"hidden",boxShadow:"none",backgroundColor:"background.paper",borderRadius:1},children:d.jsx(VM,{})})]}):n?d.jsxs(W,{sx:{width:"100%"},children:[d.jsx(Hc,{loading:n,rowSize:t,onRowSizeChange:C,scoreDisplay:u,onScoreDisplayChange:c,averageMode:p,onAverageModeChange:h,rankingMode:g,onRankingModeChange:y,hasTableOptionsChanges:o,searchParams:x,setSearchParams:b,table:e,handleColumnReset:O,hasColumnFilterChanges:s,onColumnVisibilityChange:a}),d.jsx(mn,{sx:{borderRadius:1,overflow:"hidden"},children:d.jsx(UM,{rowSize:t})})]}):d.jsxs(W,{sx:{width:"100%"},children:[d.jsx(Hc,{loading:n,rowSize:t,onRowSizeChange:C,scoreDisplay:u,onScoreDisplayChange:c,averageMode:p,onAverageModeChange:h,rankingMode:g,onRankingModeChange:y,hasTableOptionsChanges:o,searchParams:x,setSearchParams:b,table:e,handleColumnReset:O,hasColumnFilterChanges:s,onColumnVisibilityChange:a}),d.jsx(mn,{elevation:0,sx:{height:"calc(100vh - 380px)",minHeight:"500px",resize:"vertical",overflow:"hidden",boxShadow:"none",backgroundColor:"background.paper",borderRadius:1,"&:hover::after":{opacity:1}},children:d.jsx(Mh,{ref:E,sx:D=>({height:"100%",overflow:"auto",border:"none",boxShadow:"none","&::-webkit-scrollbar":{width:"8px",height:"8px"},"&::-webkit-scrollbar-thumb":{backgroundColor:re(D.palette.common.black,D.palette.mode==="dark"?.4:.2),borderRadius:"4px"},"&::-webkit-scrollbar-corner":{backgroundColor:D.palette.background.paper},willChange:"transform",transform:"translateZ(0)",WebkitOverflowScrolling:"touch",scrollBehavior:"auto"}),children:d.jsxs(Ph,{sx:{margin:0,width:"100%",borderCollapse:"separate",borderSpacing:0,tableLayout:(P.length>0,"fixed"),border:"none","& td, & th":P.length>0?{width:`${100/e.getAllColumns().length}%`}:{}},children:[d.jsx("colgroup",{children:e.getAllColumns().map((D,G)=>d.jsx("col",{style:G<4?{width:D.columnDef.size,minWidth:D.columnDef.size,maxWidth:D.columnDef.size}:{minWidth:D.columnDef.size,width:`${100/(e.getAllColumns().length-4)}%`}},D.id))}),d.jsx(Lh,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:D=>D.palette.background.paper,"& th":{backgroundColor:D=>D.palette.background.paper}},children:e.getHeaderGroups().map(D=>d.jsx(Co,{children:D.headers.map(G=>d.jsx(Bn,{onClick:G.column.getToggleSortingHandler(),"data-column":G.column.accessorKey,sx:te=>({cursor:G.column.getCanSort()?"pointer":"default",width:G.column.columnDef.size,minWidth:G.column.columnDef.size,...q(te),textAlign:"left",fontWeight:G.column.getIsSorted()?700:400,userSelect:"none",height:`${k}px`,padding:`${k*.25}px 16px`,backgroundColor:te.palette.background.paper}),children:Q(G)},G.id))},D.id))}),d.jsxs(Ih,{children:[P.map((D,G)=>ee(D,!0,G)),I>0&&d.jsx(Co,{children:d.jsx(Bn,{colSpan:e.getAllColumns().length,style:{height:`${I}px`,padding:0,border:"none",backgroundColor:"transparent"}})}),V.map(D=>{const G=M[D.index];return G?ee(G):null}),F>0&&d.jsx(Co,{children:d.jsx(Bn,{colSpan:e.getAllColumns().length,style:{height:`${F}px`,padding:0,border:"none"}})})]})]})})})]})},WM=Ze(d.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),GM=Ze(d.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),KM=({totalCount:e,filteredCount:t,data:n,table:o,loading:s})=>{const{state:a}=mi(),u=a.filters.isOfficialProviderActive,{officialOnly:c}=a.filterCounts;return w.useMemo(()=>{var C,x;if(s)return{displayCount:0,currentFilteredCount:0,totalPinnedCount:0,filteredPinnedCount:0,isOfficialProviderActive:u};const p=u?c.officialProviders:e,h=((C=n==null?void 0:n.filter(b=>b.isPinned))==null?void 0:C.length)||0,g={selectedPrecisions:a.filters.precisions,selectedTypes:a.filters.types,paramsRange:a.filters.paramsRange,searchValue:a.filters.search,selectedBooleanFilters:a.filters.booleanFilters,isOfficialProviderActive:a.filters.isOfficialProviderActive},y=((x=n==null?void 0:n.filter(b=>{var R,E,L;if(!b.isPinned||g.isOfficialProviderActive&&!((R=b.features)!=null&&R.is_official_provider)&&!((E=b.metadata)!=null&&E.is_official_provider)||g.selectedPrecisions.length>0&&!g.selectedPrecisions.includes(b.model.precision))return!1;if(g.selectedTypes.length>0){const k=(L=b.model.type)==null?void 0:L.toLowerCase().trim();if(!g.selectedTypes.some(P=>k==null?void 0:k.includes(P)))return!1}const v=b.metadata.params_billions;if(v=g.paramsRange[1])return!1;if(g.searchValue){const k=g.searchValue.toLowerCase();if(!b.model.name.toLowerCase().includes(k))return!1}return!(g.selectedBooleanFilters.length>0&&!g.selectedBooleanFilters.every(k=>{const P=typeof k=="object"?k.value:k;return P==="is_official_provider"||P==="is_not_available_on_hub"?b.features[P]:!b.features[P]}))}))==null?void 0:x.length)||0;return{displayCount:p,currentFilteredCount:t,totalPinnedCount:h,filteredPinnedCount:y,isOfficialProviderActive:u}},[s,e,t,n,a.filters,u,c.officialProviders])},qp=({value:e,color:t="text.primary",loading:n=!1,pinnedCount:o=0,filteredPinnedCount:s=0,showPinned:a=!1})=>n?d.jsx(Xr,{variant:"text",width:24,height:20,sx:{display:"inline-block",transform:"none",marginBottom:"-4px"}}):d.jsxs(W,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(ne,{variant:"body2",sx:{fontWeight:700,whiteSpace:"nowrap",color:t},children:e}),a&&o>0&&d.jsx(ne,{variant:"body2",component:"span",sx:{fontWeight:700,whiteSpace:"nowrap",color:"text.secondary",ml:.5},children:`+${o}`})]}),gv=kt.memo(({totalCount:e=0,filteredCount:t=0,hasFilterChanges:n=!1,loading:o=!1,data:s=[],table:a=null})=>{const{displayCount:u,currentFilteredCount:c,totalPinnedCount:p,filteredPinnedCount:h,isOfficialProviderActive:g}=KM({totalCount:e,filteredCount:t,data:s,table:a,loading:o}),y=!o&&n&&c!==u,C=p;return d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(qp,{value:c-C,color:y?"primary.main":"text.primary",loading:o,pinnedCount:C,filteredPinnedCount:h,showPinned:C>0}),d.jsx(qp,{value:"/",loading:o}),d.jsx(qp,{value:u,color:g?"secondary.main":"text.primary",loading:o})]})});gv.displayName="FilteredModelCount";const qM=()=>d.jsxs(W,{children:[d.jsxs(W,{sx:{width:"100%",height:"56px",bgcolor:e=>re(e.palette.background.paper,.8),borderRadius:1,border:e=>`1px solid ${re(e.palette.divider,e.palette.mode==="dark"?.05:.1)}`,display:"flex",alignItems:"center",px:2,gap:2},children:[d.jsx(Xr,{variant:"circular",width:20,height:20}),d.jsx(Xr,{variant:"text",sx:{flex:7},height:32}),d.jsx(Xr,{variant:"text",sx:{flex:1},height:32}),d.jsx(W,{sx:{display:"flex",gap:1},children:d.jsx(Xr,{variant:"rounded",width:150,height:28})}),d.jsx(Xr,{variant:"circular",width:20,height:20})]}),d.jsx(W,{sx:{ml:3.5},children:d.jsx(ne,{variant:"caption",sx:{color:"text.secondary",fontSize:"0.75rem",textAlign:"left",opacity:1,transition:"opacity 0.2s ease",height:"18px"},children:"Supports strict search and regex • Use semicolons for multiple terms"})})]}),QM=({searchValue:e})=>{const t=YI(e);return!t||t.length===0?null:d.jsxs(W,{sx:{display:"flex",gap:1,flexWrap:"wrap",alignItems:"center"},children:[d.jsx(ne,{sx:{color:"text.secondary",fontSize:"0.85rem"},children:"Showing models matching:"}),t.map(({text:n,index:o},s)=>d.jsxs(kt.Fragment,{children:[s>0&&d.jsx(ne,{sx:{color:"text.secondary",fontSize:"0.85rem"},children:"and"}),d.jsx(W,{sx:{backgroundColor:Ni[o%Ni.length],color:a=>a.palette.getContrastText(Ni[o%Ni.length]),padding:"2px 4px",borderRadius:"4px",fontSize:"0.85rem",fontWeight:500},children:n})]},o))]})},YM=({onToggleFilters:e,filtersOpen:t,loading:n=!1,data:o=[],table:s=null})=>{const a=Gn(),{state:u,actions:c}=mi(),[p,h]=w.useState(u.filters.search);w.useEffect(()=>{h(u.filters.search)},[u.filters.search]),w.useEffect(()=>{const x=setTimeout(()=>{p!==u.filters.search&&c.setFilter("search",p)},Ge.DEBOUNCE.SEARCH);return()=>clearTimeout(x)},[p,u.filters.search,c]);const g=x=>{h(x.target.value)},y=Object.values(u.filters.booleanFilters).some(x=>x)||u.filters.precisions.length!==da.length||u.filters.types.length!==es.length||u.filters.paramsRange[0]!==-1||u.filters.paramsRange[1]!==140||u.filters.isOfficialProviderActive,C=p||y;return d.jsxs(W,{sx:{display:"flex",flexDirection:"column",width:"100%",gap:.5},children:[d.jsxs(mn,{elevation:0,sx:{display:"flex",alignItems:"center",flex:1,border:"1px solid",borderColor:"divider",borderRadius:1,px:2,py:1.5,backgroundColor:"background.paper","&:focus-within":{borderColor:"primary.main"}},children:[d.jsx(WM,{sx:{color:"text.secondary",mr:1,fontSize:"1.5rem"}}),d.jsx(jd,{value:p,onChange:g,placeholder:'Search by model name • try "meta @architecture:llama @license:mit"',sx:{flex:1,fontSize:"1rem",color:"text.primary",mr:4,"& .MuiInputBase-input":{padding:"2px 0",fontWeight:600,"&::placeholder":{color:"text.secondary",opacity:.8}}}}),!n&&d.jsx(gv,{totalCount:u.models.length,filteredCount:o.length,hasFilterChanges:y,loading:n,isOfficialProviderActive:u.filters.isOfficialProviderActive,officialProvidersCount:u.filters.officialProvidersCount,size:"large",data:o,table:s}),d.jsxs(W,{sx:{display:"flex",gap:1,ml:2},children:[C&&d.jsxs(W,{onClick:()=>{h(""),c.resetFilters()},sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"text.secondary",backgroundColor:"transparent",border:"1px solid",borderColor:"divider",borderRadius:1,padding:"4px 8px","&:hover":{backgroundColor:"action.hover",color:"text.primary"},userSelect:"none",transition:"all 0.2s ease"},children:[d.jsx(Uh,{sx:{fontSize:"1.2rem"}}),d.jsx(ne,{variant:"body2",sx:{fontWeight:600,display:{xs:"none",md:"block"}},children:"Reset"})]}),d.jsxs(W,{onClick:e,sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:!n&&y||t?"primary.main":"text.secondary",backgroundColor:t?re(a.palette.primary.main,.04):"transparent",border:"1px solid",borderColor:t?"primary.100":"divider",borderRadius:1,padding:"4px 8px","&:hover":{backgroundColor:re(a.palette.primary.main,.08)},userSelect:"none"},children:[d.jsx(GM,{sx:{fontSize:"1.2rem"}}),d.jsx(ne,{variant:"body2",sx:{fontWeight:600,display:{xs:"none",md:"block"}},children:"Advanced Filters"})]}),d.jsx(an,{tooltip:Dn.SEARCH_BAR,iconProps:{sx:{fontSize:"1.2rem",display:{xs:"none",md:"block"}}}})]})]}),d.jsx(W,{sx:{ml:3.5,mr:3.5},children:p?d.jsx(QM,{searchValue:p}):d.jsx(W,{sx:{display:"flex",alignItems:"center",gap:1},children:d.jsx(ne,{variant:"caption",sx:{color:"text.secondary",fontSize:"0.75rem",textAlign:{xs:"center",md:"left"},opacity:1,transition:"opacity 0.2s ease",minHeight:"18px",width:"100%",whiteSpace:"normal",lineHeight:1.5},children:"Supports strict search and regex • Use semicolons for multiple terms"})})})]})},XM=Ze(d.jsx("path",{d:"M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88"}),"NetworkCheck"),N5=Ze(d.jsx("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"}),"Memory"),D5=Ze(d.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed"),B5=()=>{var e;try{const t=document.createElement("canvas"),n=t.getContext("webgl")||t.getContext("experimental-webgl");if(!n)return t.remove(),null;const o=n.getExtension("WEBGL_debug_renderer_info");let s=0;try{const a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a);const u=1024,c=new Uint8Array(u*u*4);n.texImage2D(n.TEXTURE_2D,0,n.RGBA,u,u,0,n.RGBA,n.UNSIGNED_BYTE,c),s=u*u*4/(1024*1024),n.deleteTexture(a),(e=n.getExtension("WEBGL_lose_context"))==null||e.loseContext()}catch(a){console.warn("GPU memory estimation failed:",a)}finally{const a=n.getExtension("WEBGL_lose_context");a&&a.loseContext(),n.canvas.remove()}return{vendor:o?n.getParameter(o.UNMASKED_VENDOR_WEBGL):"Unknown",renderer:o?n.getParameter(o.UNMASKED_RENDERER_WEBGL):"Unknown",usedMemory:Math.round(s)}}catch{return null}},ji=({icon:e,label:t,value:n,tooltip:o})=>{const s=Gn();return d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:1,padding:"2px 0",position:"relative"},children:[e,d.jsxs(ne,{component:"div",variant:"body2",sx:{fontSize:"0.8rem",fontWeight:500,display:"flex",alignItems:"center",gap:.5,flex:1,color:s.palette.text.primary},children:[d.jsx(W,{component:"span",sx:{opacity:.7,fontSize:"0.75rem",textTransform:"uppercase",color:s.palette.text.secondary},children:t}),d.jsx(W,{sx:{flex:1}}),kt.isValidElement(n)?n:d.jsx("span",{children:n})]}),o&&d.jsx(W,{component:"span",sx:{opacity:.5,display:"flex",alignItems:"center",cursor:"help",ml:.5,"&:hover":{opacity:.8},color:s.palette.text.secondary},children:d.jsx(Ln,{title:o,arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:s.palette.mode==="dark"?"rgba(0, 0, 0, 0.95)":"rgba(255, 255, 255, 0.95)",color:s.palette.text.primary,padding:"8px 12px",maxWidth:250,fontSize:"0.75rem",position:"relative",top:"-10px",border:"1px solid",borderColor:s.palette.mode==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.1)","& .MuiTooltip-arrow":{color:s.palette.mode==="dark"?"rgba(0, 0, 0, 0.95)":"rgba(255, 255, 255, 0.95)"}}},popper:{sx:{zIndex:1e4}}},children:d.jsx(uv,{sx:{fontSize:"0.9rem"}})})})]})},V5=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "),ZM=()=>{var p;const e=Gn(),[t,n]=w.useState({fps:0,memory:{usedJSHeapSize:0,totalJSHeapSize:0},renders:0,network:{transferSize:0,decodedBodySize:0,compressionRatio:0},gpu:B5(),fcp:null}),[o,s]=w.useState(!1),a=w.useRef(0),u=w.useRef(null);w.useEffect(()=>{const h=g=>{g.target.tagName==="INPUT"||g.target.tagName==="TEXTAREA"||(g.key==="p"||g.key==="P")&&s(y=>!y)};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[]),w.useEffect(()=>{let h=0,g=performance.now(),y;const C=()=>{const b=performance.getEntriesByType("resource"),v=performance.getEntriesByType("navigation")[0];let R=v?v.transferSize:0,E=v?v.decodedBodySize:0;b.forEach(k=>{R+=k.transferSize||0,E+=k.decodedBodySize||0});const L=E?Math.round((1-R/E)*100):0;return{transferSize:Math.round(R/1024),decodedBodySize:Math.round(E/1024),compressionRatio:L}};u.current=kt.createElement,kt.createElement=function(...b){return a.current++,u.current.apply(this,b)};const x=()=>{var R;h++;const b=performance.now(),v=b-g;if(v>=1e3){const E=Math.round(h*1e3/v),L=(R=window.performance)!=null&&R.memory?{usedJSHeapSize:Math.round(window.performance.memory.usedJSHeapSize/1048576),totalJSHeapSize:Math.round(window.performance.memory.totalJSHeapSize/1048576)}:null,k=C(),P=B5();n(M=>({...M,fps:E,memory:L||M.memory,renders:a.current,network:k,gpu:P})),h=0,g=b}y=requestAnimationFrame(x)};return x(),()=>{cancelAnimationFrame(y),u.current&&(kt.createElement=u.current),a.current=0,delete window.__REACT_RENDERS__}},[]),w.useEffect(()=>{if(window.PerformanceObserver)try{const h=new PerformanceObserver(g=>{const y=g.getEntries();if(y.length>0){const C=y[0].startTime;n(x=>({...x,fcp:C}))}});return h.observe({entryTypes:["paint"]}),()=>h.disconnect()}catch(h){console.warn("FCP observation failed:",h)}},[]);const c=h=>h>=55?"#4CAF50":h>=30?"#FFC107":"#F44336";return o?d.jsxs(W,{sx:{position:"fixed",top:16,left:16,zIndex:9999,backgroundColor:e.palette.background.paper,borderRadius:"6px",color:"white",fontFamily:"monospace",userSelect:"none",padding:"6px 10px",minWidth:"180px",border:"1px solid",borderColor:e.palette.divider,display:"flex",flexDirection:"column",gap:.25},children:[d.jsx(W,{sx:{display:"flex",flexDirection:"column",gap:.5},children:d.jsxs(ne,{variant:"body2",sx:{fontSize:"0.85rem",fontWeight:600,color:e.palette.text.primary,borderBottom:`1px solid ${e.palette.divider}`,pb:.5},children:["Performances"," ",d.jsx("span",{style:{float:"right",opacity:.3},children:"dev only"})]})}),d.jsxs(W,{sx:{display:"flex",flexDirection:"column",gap:.25},children:[d.jsx(ji,{icon:d.jsx(D5,{sx:{fontSize:"1.1rem",color:c(t.fps)}}),label:"FPS",value:d.jsx(ne,{sx:{fontSize:"0.9rem",fontWeight:600,color:c(t.fps)},children:t.fps}),tooltip:"Frames Per Second - Indicates how smooth the UI is running"}),t.fcp!==null&&d.jsx(ji,{icon:d.jsx(D5,{sx:{fontSize:"1.1rem",color:e.palette.text.secondary}}),label:"FCP",value:d.jsxs(ne,{sx:{fontSize:"0.9rem",fontWeight:600,color:e.palette.text.primary},children:[Math.round(t.fcp),"ms"]}),tooltip:"First Contentful Paint - Time until first content is rendered"}),d.jsx(ji,{icon:d.jsx(W,{sx:{width:"0.9rem",height:"0.9rem",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.7rem"},children:"⚛️"}),label:"React",value:d.jsxs(W,{component:"span",sx:{display:"flex",gap:.5,alignItems:"center"},children:[d.jsx("span",{children:V5(t.renders)}),d.jsx("span",{style:{opacity:.5},children:" cycles"})]}),tooltip:"Total number of React render cycles"})]}),d.jsxs(W,{sx:{display:"flex",flexDirection:"column",gap:.25,mt:.5,pt:.5,borderTop:"1px solid rgba(255, 255, 255, 0.1)"},children:[((p=window.performance)==null?void 0:p.memory)&&d.jsx(ji,{icon:d.jsx(N5,{sx:{fontSize:"0.9rem",color:"#64B5F6"}}),label:"Mem",value:d.jsxs(W,{component:"span",sx:{display:"flex",gap:.5,alignItems:"center"},children:[d.jsx("span",{children:t.memory.usedJSHeapSize}),d.jsx("span",{style:{opacity:.5},children:" / "}),d.jsx("span",{children:t.memory.totalJSHeapSize}),d.jsx("span",{style:{opacity:.5},children:" MB"})]}),tooltip:"JavaScript heap memory usage (Used / Total)"}),t.gpu&&d.jsx(ji,{icon:d.jsx(N5,{sx:{fontSize:"0.9rem",color:"#FFB74D"}}),label:"GPU",value:d.jsxs(W,{component:"span",sx:{display:"flex",gap:.5,alignItems:"center"},children:[d.jsx("span",{children:t.gpu.usedMemory}),d.jsx("span",{style:{opacity:.5},children:" MB"})]}),tooltip:"Estimated GPU memory usage"})]}),d.jsxs(W,{sx:{display:"flex",flexDirection:"column",gap:.25,mt:.5,pt:.5,borderTop:"1px solid rgba(255, 255, 255, 0.1)"},children:[d.jsx(ji,{icon:d.jsx(XM,{sx:{fontSize:"0.9rem",color:"#81C784"}}),label:"Net",value:d.jsxs(W,{component:"span",sx:{display:"flex",gap:.5,alignItems:"center"},children:[d.jsx("span",{children:t.network.transferSize}),d.jsx("span",{style:{opacity:.5},children:" KB"})]}),tooltip:"Network data transferred"}),d.jsx(ji,{icon:d.jsx(W,{sx:{width:"0.9rem",opacity:.5}}),label:"Size",value:d.jsxs(W,{component:"span",sx:{display:"flex",gap:.5,alignItems:"center"},children:[d.jsx("span",{children:V5(t.network.decodedBodySize)}),d.jsx("span",{style:{opacity:.5},children:" KB"}),d.jsxs(W,{component:"span",sx:{color:t.network.compressionRatio>0?"#81C784":"inherit",fontSize:"0.7rem",opacity:.8,ml:1},children:["(-",t.network.compressionRatio,"%)"]})]}),tooltip:"Total decoded size and compression ratio"}),d.jsx(W,{sx:{borderTop:`1px solid ${e.palette.divider}`},children:d.jsx(ne,{variant:"body2",sx:{fontSize:"0.7rem",pt:1,pb:.5,opacity:.5,color:e.palette.text.primary},children:'Press "P" to show/hide'})})]})]}):null},JM=kt.memo(ZM),U5=[{id:"edge_device",label:"For Edge Devices",shortDescription:"Tiny models: Up to 3B parameters",description:"Lightweight models optimized for edge devices with limited resources. Ideal for mobile deployment or edge computing environments.",filters:{paramsRange:[0,3],selectedBooleanFilters:["is_for_edge_devices"]}},{id:"small_models",label:"For Consumers",shortDescription:"Smol-LMs: 3-7B parameters",description:"Lightweight models optimized for consumer hardware with up to one GPU. Ideal for private consumer hardware.",filters:{paramsRange:[3,7],selectedBooleanFilters:["is_for_edge_devices"]}},{id:"medium_models",label:"Mid-range",shortDescription:"Medium-sized models: 7B-65B parameters",description:"Overall balance between performance and required resources.",filters:{paramsRange:[7,65],selectedBooleanFilters:[]}},{id:"large_models",label:"For the GPU-rich",shortDescription:"Large models: 65B+ parameters",description:"Large-scale models offering (in theory) the best performance but requiring significant resources. Require adapted infrastructure.",filters:{paramsRange:[65,141],selectedBooleanFilters:[]}},{id:"official_providers",label:"Only Official Providers",shortDescription:"Officially provided models",description:"Models that are officially provided and maintained by official creators or organizations.",filters:{selectedBooleanFilters:["is_official_provider"]}}],mv=({sx:e={}})=>d.jsxs(W,{sx:{display:"flex",alignItems:"center",gap:.5,whiteSpace:"nowrap",...e},children:[d.jsx(ne,{variant:"body2",sx:{fontWeight:600},children:"Quick Filters"}),d.jsx(an,{tooltip:Dn.QUICK_FILTERS,iconProps:{sx:{fontSize:"1rem"}}})]}),yv=()=>d.jsx(W,{sx:{width:"100%"},children:d.jsxs(W,{sx:{backgroundColor:e=>({xs:re(e.palette.primary.main,.02),lg:"transparent"}),borderColor:e=>({xs:re(e.palette.primary.main,.2),lg:"transparent"}),border:"1px solid",borderRadius:1,p:3,display:"flex",flexDirection:{xs:"column",md:"column",lg:"row"},gap:2,mb:2,width:"100%"},children:[d.jsx(mv,{sx:{mb:{xs:1,md:2,lg:0}}}),[1,2,3,4].map(e=>d.jsx(Xr,{height:32,sx:{width:{xs:"100%",md:120},borderRadius:1}},e)),d.jsx(Xr,{height:32,sx:{width:{xs:"100%",md:150},borderRadius:1,ml:2}})]})}),vv=({totalCount:e=0,loading:t=!1})=>{const{state:n,actions:o}=mi(),{normal:s,officialOnly:a}=n.filterCounts,u=n.filters.isOfficialProviderActive,c=n.filters.paramsRange,p=w.useMemo(()=>u?a:s,[u,a,s]),h=w.useMemo(()=>U5.filter(b=>b.id!=="official_providers"),[]),g=w.useMemo(()=>U5.find(b=>b.id==="official_providers"),[]),y=w.useCallback(b=>{c[0]===b.filters.paramsRange[0]&&c[1]===b.filters.paramsRange[1]?o.setFilter("paramsRange",[-1,140]):o.setFilter("paramsRange",b.filters.paramsRange)},[c,o]),C=w.useCallback(b=>{const v=b.id.split("_")[0];return p.parameterRanges[v]||0},[p]),x=w.useCallback(()=>{o.toggleOfficialProvider()},[o]);return t?d.jsx(yv,{}):d.jsx(W,{children:d.jsxs(W,{sx:{backgroundColor:b=>({xs:re(b.palette.primary.main,.02),lg:"transparent"}),borderColor:b=>({xs:re(b.palette.primary.main,.2),lg:"transparent"}),border:"1px solid",borderRadius:1,p:3,display:"flex",flexDirection:{xs:"column",lg:"row"},alignItems:"center",gap:2,width:"100%"},children:[d.jsx(W,{sx:{width:{xs:"100%",lg:"auto"},mb:{xs:1,md:2,lg:0}},children:d.jsx(mv,{})}),d.jsx(W,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:1,width:{xs:"100%",md:"100%",lg:"auto"},"& > div":{width:{xs:"100%",md:0,lg:"auto"},flex:{xs:"auto",md:"1 1 0",lg:"0 0 auto"}}},children:h.map(b=>d.jsx(gr,{label:b.label,checked:c[0]===b.filters.paramsRange[0]&&c[1]===b.filters.paramsRange[1],onChange:()=>y(b),count:C(b),totalCount:e},b.id))}),d.jsx(W,{sx:{width:{xs:"100%",md:"100%",lg:"auto"},display:"flex"},children:g&&d.jsx(gr,{label:g.label,checked:u,onChange:x,count:p.officialProviders,totalCount:e,showCheckbox:!0,variant:"secondary",sx:{width:{xs:"100%",md:"100%",lg:"auto"}}})})]})})};vv.displayName="QuickFilters";const eL=kt.memo(vv),tL=({expanded:e,quickFilters:t,advancedFilters:n})=>{const o=kt.useRef(null),s=kt.useRef(null),[a,u]=kt.useState("auto"),c=kt.useRef(null),p=kt.useCallback(()=>{e&&o.current?u(`${o.current.scrollHeight}px`):!e&&s.current&&u(`${s.current.scrollHeight}px`)},[e]);return kt.useEffect(()=>{const h=setTimeout(p,100),g=()=>{c.current&&clearTimeout(c.current),c.current=setTimeout(p,150)};return window.addEventListener("resize",g),()=>{clearTimeout(h),window.removeEventListener("resize",g),c.current&&clearTimeout(c.current)}},[p]),kt.useEffect(()=>{p()},[e,p]),d.jsxs(W,{sx:{position:"relative",width:"100%",height:a,transition:"height 0.3s ease",mb:.5,overflow:"hidden"},children:[d.jsx(W,{ref:s,sx:{position:e?"absolute":"relative",top:0,left:0,right:0,opacity:e?0:1,visibility:e?"hidden":"visible",transition:"opacity 0.3s ease",mb:0},children:t}),d.jsx(W,{ref:o,sx:{position:e?"relative":"absolute",top:0,left:0,right:0,opacity:e?1:0,visibility:e?"visible":"hidden",transition:"opacity 0.3s ease",mt:0},children:n})]})},nL=()=>{var q;const{state:e,actions:t}=mi(),[n,o]=ha(),{data:s,isLoading:a,error:u}=cv(),{table:c,filteredData:p,error:h}=mM(),g=w.useMemo(()=>p,[p]),y=w.useMemo(()=>c,[c]),C=w.useMemo(()=>e.display.rowSize!==Ge.ROW_SIZE||JSON.stringify(e.display.scoreDisplay)!==JSON.stringify(Ge.SCORE_DISPLAY)||e.display.averageMode!==Ge.AVERAGE_MODE||e.display.rankingMode!==Ge.RANKING_MODE,[e.display]),x=w.useMemo(()=>JSON.stringify([...e.display.visibleColumns].sort())!==JSON.stringify([...Ge.COLUMNS.DEFAULT_VISIBLE].sort()),[e.display.visibleColumns]),b=w.useCallback(()=>{t.toggleFiltersExpanded()},[t]),v=w.useCallback(K=>{t.setDisplayOption("visibleColumns",Object.keys(K).filter(Q=>K[Q]))},[t]),R=w.useCallback(K=>{t.setDisplayOption("rowSize",K)},[t]),E=w.useCallback(K=>{t.setDisplayOption("scoreDisplay",K)},[t]),L=w.useCallback(K=>{t.setDisplayOption("averageMode",K)},[t]),k=w.useCallback(K=>{t.setDisplayOption("rankingMode",K)},[t]),P=w.useCallback(K=>{t.setFilter("precisions",K)},[t]),M=w.useCallback(K=>{t.setFilter("types",K)},[t]),j=w.useCallback(K=>{t.setFilter("paramsRange",K)},[t]),_=w.useCallback(K=>{t.setFilter("booleanFilters",K)},[t]),N=w.useCallback(()=>{t.resetFilters()},[t]),V=w.useMemo(()=>{const K=a||!s,Q=!y||!g,ee=e.models.length>0&&!g,D=e.countsReady&&e.filterCounts&&e.filterCounts.normal&&e.filterCounts.officialOnly;return{isInitialLoading:K,isProcessingData:Q,isApplyingFilters:ee,showSearchSkeleton:K||!D,showFiltersSkeleton:K||!D,showTableSkeleton:K||Q||ee||!D}},[a,s,y,g,e.models.length,e.filterCounts,e.countsReady]),I=w.useMemo(()=>d.jsx(YM,{onToggleFilters:b,filtersOpen:e.filtersExpanded,loading:V.showTableSkeleton,data:g,table:c}),[b,e.filtersExpanded,V.showTableSkeleton,g,c]),F=w.useMemo(()=>d.jsx(eL,{totalCount:e.models.length,filteredCount:(g==null?void 0:g.length)||0,data:g,table:y}),[e.models.length,g,y]),O=w.useMemo(()=>d.jsx(bM,{data:g,loading:V.showFiltersSkeleton,selectedPrecisions:e.filters.precisions,onPrecisionsChange:P,selectedTypes:e.filters.types,onTypesChange:M,paramsRange:e.filters.paramsRange,onParamsRangeChange:j,selectedBooleanFilters:e.filters.booleanFilters,onBooleanFiltersChange:_,onReset:N}),[g,V.showFiltersSkeleton,e.filters.precisions,e.filters.types,e.filters.paramsRange,e.filters.booleanFilters,P,M,j,_,N]),z=d.jsx(HM,{table:c,loading:V.showTableSkeleton,onColumnVisibilityChange:v,hasTableOptionsChanges:C,hasColumnFilterChanges:x,rowSize:e.display.rowSize,onRowSizeChange:R,scoreDisplay:e.display.scoreDisplay,onScoreDisplayChange:E,averageMode:e.display.averageMode,onAverageModeChange:L,rankingMode:e.display.rankingMode,onRankingModeChange:k,searchParams:n,setSearchParams:o,pinnedModels:e.pinnedModels});return w.useEffect(()=>{s&&t.setModels(s)},[s,t]),w.useEffect(()=>{},[a,s,c,p==null?void 0:p.length,e.models.length,p,e.filters]),u||h?d.jsx(W,{sx:{p:3,textAlign:"center"},children:d.jsx(ne,{color:"error",children:((q=u||h)==null?void 0:q.message)||"An error occurred while loading the data"})}):d.jsxs(W,{sx:{width:"100%",display:"flex",flexDirection:"column"},children:[d.jsx(JM,{}),d.jsxs(W,{sx:{display:"flex",flexDirection:"column",gap:0,alignItems:"center"},children:[d.jsxs(W,{sx:{width:{xs:"100%",sm:"100%",md:"80%"},maxWidth:"1200px"},children:[V.showSearchSkeleton?d.jsx(qM,{}):I,d.jsx(W,{sx:{mt:1},children:V.showFiltersSkeleton?d.jsx(yv,{}):d.jsx(tL,{expanded:e.filtersExpanded,quickFilters:F,advancedFilters:O})})]}),d.jsx(W,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"center",width:"100%",overflow:"hidden"},children:d.jsx(W,{sx:{width:"100%",px:1},children:z})})]})]})},$d=({title:e,subtitle:t})=>d.jsxs(W,{sx:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",mb:6,mt:6,gap:2},children:[d.jsx(ne,{fontWeight:"bold",variant:"h3",component:"h1",children:e}),t&&d.jsx(ne,{variant:"h6",color:"text.secondary",children:t})]}),xv=()=>d.jsxs("svg",{width:"100%",viewBox:"0 0 236 220",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("title",{children:"hg-logo"}),d.jsx("g",{id:"hg-logo",stroke:"none",strokeWidth:"1",fill:"none",children:d.jsxs("g",{id:"Group",transform:"translate(-1.000000, 0.000000)",children:[d.jsx("path",{d:"M236.188357,161.726225 C235.570415,159.393906 234.569281,157.181253 233.22638,155.176863 C233.514062,154.120588 233.732701,153.048205 233.879994,151.965466 C234.832798,145.089325 232.449638,138.794251 227.956041,133.922501 C225.522249,131.262254 222.913547,129.506398 220.150646,128.428262 C221.964195,120.669591 222.882477,112.729122 222.88708,104.761037 C222.88708,101.122758 222.681099,97.5581193 222.335881,94.046409 C222.155216,92.2928551 221.937728,90.5427531 221.683417,88.7984042 C220.891716,83.6516545 219.717972,78.5709507 218.171392,73.5986359 C217.1576,70.3316637 215.985007,67.1160095 214.658216,63.9632945 C212.668606,59.2945148 210.345284,54.7746261 207.706662,50.4388375 C205.974815,47.5549087 204.089921,44.7659066 202.058884,42.0841428 C201.063504,40.7298561 200.026697,39.4075568 198.947313,38.1190859 C195.750588,34.2338824 192.277687,30.5855928 188.552777,27.2030978 C187.316894,26.0660493 186.045339,24.9682371 184.739261,23.9111571 C183.453897,22.8390039 182.139764,21.8011393 180.799165,20.798714 C178.100706,18.7906417 175.311338,16.9066068 172.44142,15.1525926 C156.583223,5.52185376 137.986291,0 118.109749,0 C60.2385495,0 13.3336831,46.9018135 13.3336831,104.76564 C13.3321871,112.833829 14.2670394,120.874403 16.1195981,128.726274 C13.6340233,129.805561 11.2508635,131.486626 9.04261448,133.920199 C4.55016831,138.788498 2.16585774,145.06171 3.11981211,151.9367 C3.26365324,153.029795 3.48229176,154.111383 3.77227548,155.174561 C2.4301802,157.180102 1.42939115,159.393906 0.810298929,161.726225 C-0.570575919,166.97423 -0.116037948,171.706754 1.63882384,175.85246 C-0.267934182,181.273058 0.208467641,187.044598 2.69289164,192.062477 C4.49953623,195.727221 7.08522438,198.561213 10.2715931,201.096041 C14.0609438,204.107229 18.8042489,206.667372 24.5268244,209.121657 C31.3529491,212.032741 39.6842274,214.767779 43.4735781,215.771124 C53.2616793,218.305953 62.6470253,219.912227 72.1599872,219.989319 C85.7109724,220.115888 97.3816663,216.928654 105.738261,208.774168 C109.842911,209.276992 113.974028,209.528979 118.109749,209.527828 C122.479067,209.518623 126.843782,209.242473 131.179729,208.70398 C139.51561,216.910244 151.231182,220.126243 164.8328,219.996223 C174.343575,219.921432 183.728921,218.315158 193.491706,215.776877 C197.306373,214.773532 205.63535,212.038494 212.464927,209.128561 C218.187502,206.668523 222.929657,204.109531 226.745474,201.101795 C229.907678,198.568116 232.491064,195.732974 234.29886,192.068231 C236.8086,187.050351 237.260836,181.278811 235.378244,175.858213 C237.116995,171.712507 237.568081,166.969627 236.188357,161.726225 Z M226.477354,175.501519 C228.400223,179.150153 228.523351,183.272846 226.826025,187.112485 C224.252995,192.932351 217.861846,197.515294 205.448932,202.436521 C197.730992,205.498336 190.662064,207.4544 190.599924,207.47281 C180.390656,210.1204 171.157207,211.464332 163.164243,211.464332 C149.928557,211.464332 140.080618,207.813396 133.834461,200.601272 C123.271919,202.399701 112.486136,202.460684 101.904031,200.781921 C95.6509699,207.874379 85.857115,211.464332 72.7330503,211.464332 C64.7390507,211.464332 55.5067517,210.1204 45.2974836,207.47281 C45.2341935,207.4544 38.1698679,205.498336 30.4484761,202.436521 C18.0355619,197.515294 11.6432621,192.934652 9.07138271,187.112485 C7.37405737,183.272846 7.49718538,179.150153 9.4200536,175.501519 C9.59841661,175.163235 9.7882869,174.831854 9.99196594,174.513131 C8.83939573,172.78259 8.06645104,170.826526 7.72364885,168.77611 C7.38096175,166.725695 7.47635718,164.624652 8.00350616,162.613358 C8.76759024,159.711479 10.3463905,157.297466 12.489048,155.563473 C11.4573043,153.86745 10.7801003,151.980424 10.4982867,150.015155 C9.88149595,145.74173 11.2991941,141.474059 14.4913165,137.995716 C16.9757405,135.288294 20.4889162,133.798233 24.3795311,133.798233 L24.4830967,133.798233 C21.5502336,124.39877 20.0630314,114.608094 20.0723523,104.762188 C20.0723523,51.0601755 63.612487,7.52279222 117.324951,7.52279222 C171.038681,7.52279222 214.577665,51.0567236 214.577665,104.762188 C214.58457,114.634558 213.087471,124.450548 210.137002,133.871873 C210.606499,133.825848 211.066791,133.801685 211.517877,133.801685 C215.407341,133.801685 218.921668,135.290595 221.406092,137.998018 C224.595912,141.474059 226.017063,145.745182 225.399121,150.017456 C225.117193,151.982725 224.440564,153.870902 223.40836,155.566925 C225.551018,157.299767 227.129818,159.71378 227.893902,162.61681 C228.419785,164.628104 228.515296,166.727996 228.172378,168.779562 C227.829461,170.829977 227.057322,172.784891 225.905442,174.516583 C226.109121,174.831854 226.301293,175.163235 226.477354,175.501519 Z",id:"Shape",fill:"#FFFFFF",fillRule:"nonzero"}),d.jsx("path",{d:"M226.52977,174.037682 C227.682419,172.305523 228.455074,170.350082 228.798221,168.299114 C229.141367,166.246994 229.045793,164.146536 228.519558,162.134699 C227.754964,159.232038 226.175108,156.817373 224.031019,155.082913 C225.062761,153.386432 225.740993,151.498897 226.02311,149.533098 C226.640313,145.258521 225.221668,140.989698 222.027412,137.510418 C219.541328,134.802265 216.024653,133.311802 212.13259,133.311802 C211.680051,133.311802 211.220603,133.334821 210.750792,133.382009 C213.699779,123.958143 215.195575,114.139506 215.186363,104.265624 C215.186363,50.5501622 171.617132,7 117.873265,7 C64.1293973,7 20.5555606,50.5455585 20.5555606,104.265624 C20.5462334,114.114185 22.0344295,123.907502 24.9692525,133.3095 L24.8656177,133.3095 C20.9735543,133.3095 17.4580309,134.799963 14.9719466,137.508116 C11.7799941,140.985094 10.3590456,145.256219 10.9762485,149.530796 C11.2580201,151.496595 11.9356766,153.384131 12.9683401,155.080611 C10.8242508,156.815072 9.24439546,159.229736 8.48095227,162.133548 C7.95379648,164.145385 7.85868274,166.246994 8.20205945,168.299114 C8.54543616,170.350082 9.31935798,172.306674 10.4730439,174.037682 C10.2669257,174.356491 10.07808,174.687961 9.90074934,175.026336 C7.97774764,178.675955 7.85338585,182.79976 9.55184544,186.640434 C12.1254435,192.460719 18.522015,197.0472 30.9432242,201.968603 C38.6663215,205.031245 45.7399738,206.987836 45.8021547,207.006251 C56.0182452,209.654556 65.2567139,211 73.2550191,211 C86.3890056,211 96.1882538,207.409079 102.446646,200.313557 C113.035821,201.992773 123.828812,201.931773 134.398413,200.13286 C140.647592,207.346928 150.503264,211 163.747794,211 C171.7461,211 180.98572,209.654556 191.20181,207.006251 C191.263991,206.987836 198.334189,205.031245 206.060741,201.968603 C218.48195,197.0472 224.878521,192.460719 227.45212,186.640434 C229.150579,182.79976 229.027369,178.675955 227.103216,175.026336 C226.927036,174.684508 226.733585,174.354189 226.52977,174.037682 Z M97.9684697,189.207022 C97.4295686,190.149639 96.8526681,191.069237 96.2377682,191.963514 C94.6199135,194.33099 92.4919451,196.139111 90.0231334,197.484555 C85.30084,200.056898 79.3257167,200.95693 73.2538676,200.95693 C63.6641921,200.95693 53.832702,198.713755 48.3216324,197.284293 C48.0510304,197.214085 14.5435894,187.75454 18.7857081,179.70259 C19.4996369,178.349089 20.6753163,177.808149 22.1538398,177.808149 C28.1266601,177.808149 39.0026741,186.697981 43.677756,186.697981 C44.7210132,186.697981 45.4578568,186.252568 45.7583978,185.169537 C47.7504894,178.027978 15.4820603,175.026336 18.1995956,164.686325 C18.6797703,162.856336 19.9798115,162.113982 21.8095419,162.113982 C29.7053639,162.112831 47.4292214,175.993123 51.1358936,175.993123 C51.4203136,175.993123 51.6241287,175.910255 51.7346726,175.735313 L51.7830355,175.655898 C53.5217975,172.784312 52.5246002,170.696514 40.6042927,163.399578 L39.4597036,162.703262 C26.3441411,154.767556 17.1367629,149.993472 22.3737759,144.296338 C22.9760094,143.638002 23.8292694,143.346815 24.8667692,143.346815 C26.0977205,143.346815 27.5866075,143.758851 29.2263407,144.448261 C36.1537528,147.368187 45.7549433,155.331515 49.7656109,158.80504 C50.9481994,159.833977 51.6448557,160.462389 51.6448557,160.462389 C51.6448557,160.462389 56.722962,165.740582 59.7940072,165.740582 C60.501027,165.740582 61.099806,165.463207 61.5062848,164.773796 C63.684919,161.104611 41.282525,144.137509 40.0193317,137.137514 C39.1637686,132.393355 40.6204136,129.991351 43.3160705,129.991351 C44.5965363,129.991351 46.1602706,130.535744 47.8863662,131.630284 C53.240832,135.027848 63.5789812,152.784493 67.3639552,159.691261 C68.6329061,162.006945 70.7988738,162.985241 72.750663,162.985241 C76.6231508,162.985241 79.6504392,159.137661 73.1053244,154.248484 C63.2680768,146.890548 66.7202678,134.865566 71.4149253,134.125514 C71.6152859,134.094439 71.8179496,134.078326 72.0194617,134.077175 C76.2892164,134.077175 78.1730672,141.431658 78.1730672,141.431658 C78.1730672,141.431658 83.6921972,155.286628 93.1747834,164.756532 C101.779928,173.352875 102.980941,180.408114 97.9684697,189.207022 Z M128.631711,190.829842 L128.140021,190.88854 L127.300579,190.985218 C126.859555,191.030105 126.418531,191.07384 125.975205,191.115274 L125.542241,191.154406 L125.148429,191.187783 L124.58765,191.23267 C124.381531,191.247632 124.175413,191.263745 123.969295,191.276405 L123.352092,191.317839 L123.216215,191.325896 L122.730283,191.354669 L122.524165,191.365027 L121.948416,191.393801 L121.279396,191.421423 L120.671405,191.44214 L120.266077,191.453649 L120.061111,191.453649 C119.934446,191.453649 119.808933,191.460555 119.682268,191.461706 L119.480756,191.461706 C119.354091,191.461706 119.228578,191.461706 119.101913,191.468612 L118.587193,191.474366 L117.866356,191.474366 C117.30097,191.474366 116.737888,191.468612 116.174805,191.458253 L115.718812,191.447895 C115.589844,191.447895 115.459725,191.440989 115.330757,191.437536 L114.848279,191.422574 L114.247197,191.399555 L113.707145,191.376537 L113.566662,191.370782 L113.051942,191.34316 C112.909157,191.335103 112.766371,191.328197 112.624737,191.31899 L112.291954,191.299424 C111.87396,191.272952 111.455966,191.243028 111.037972,191.210802 L110.600403,191.176274 L110.047684,191.129085 L109.401694,191.069237 C109.041275,191.03586 108.680856,190.99903 108.320437,190.958747 L108.303164,190.958747 C113.56551,179.224952 110.904399,168.266887 100.270314,157.646048 C93.2968422,150.685185 88.6563052,140.403871 87.6948043,138.146885 C85.7464697,131.4657 80.58891,124.038709 72.0252192,124.038709 C71.300927,124.03986 70.5789377,124.097406 69.8638574,124.210198 C66.1111254,124.799478 62.831659,126.958634 60.491815,130.206576 C57.9642769,127.063369 55.5058286,124.564687 53.2834374,123.152488 C49.9325781,121.030161 46.5897794,119.952885 43.33104,119.952885 C39.2662519,119.952885 35.6309727,121.621743 33.097677,124.648705 L33.0343446,124.725818 L32.8915589,124.12618 L32.8858014,124.100859 C32.4040146,122.040683 31.9992631,119.962092 31.6721225,117.871992 C31.6721225,117.85703 31.6721225,117.843219 31.6652135,117.829408 L31.5938206,117.356373 C31.5552454,117.100865 31.5175914,116.844206 31.4809738,116.588698 C31.4510349,116.375775 31.4210959,116.162852 31.39346,115.95108 C31.365824,115.739307 31.3358851,115.526384 31.3105521,115.313461 C31.2829161,115.099387 31.2575832,114.886464 31.2322502,114.67354 C31.2079536,114.470976 31.1845782,114.268411 31.1620089,114.065846 L31.155215,114.014054 C31.0513499,113.079494 30.9623391,112.143782 30.8879523,111.20692 L30.8476499,110.664829 C30.8361349,110.516359 30.8257714,110.366737 30.8165594,110.215964 C30.8165594,110.181436 30.8119535,110.145757 30.8096505,110.113531 L30.7717662,109.512742 C30.7579482,109.295215 30.7474696,109.077688 30.7359546,108.860161 C30.7244396,108.643785 30.7129246,108.426258 30.7037126,108.20758 L30.6806827,107.637867 L30.6737737,107.465226 L30.6565012,106.938098 L30.6439499,106.491534 C30.6439499,106.313139 30.6357743,106.133593 30.6323198,105.955198 L30.6231078,105.39239 C30.6208048,105.204788 30.6231078,105.018336 30.6185018,104.830733 C30.6127443,104.64198 30.6185018,104.454377 30.6185018,104.265624 C30.6185018,56.0965241 69.6899812,17.0441057 117.887083,17.0441057 C166.084184,17.0441057 205.154512,56.0942222 205.154512,104.265624 L205.154512,105.39239 C205.154512,105.579993 205.149906,105.768746 205.1453,105.955198 C205.1453,106.111725 205.139542,106.2648 205.134936,106.421327 C205.134936,106.560591 205.129179,106.698703 205.123421,106.833362 C205.123421,107.009456 205.113058,107.184398 205.1073,107.360491 L205.1073,107.375453 C205.092331,107.757564 205.07621,108.139675 205.060089,108.521786 L205.05318,108.648389 L205.023241,109.219253 L204.995605,109.671571 C204.931121,110.743093 204.847062,111.814615 204.744579,112.883834 L204.744579,112.898797 C204.726155,113.09906 204.705428,113.300473 204.683549,113.500736 C204.632883,113.966865 204.581066,114.432995 204.529248,114.899124 L204.470522,115.367555 L204.397978,115.917702 C204.372645,116.119116 204.345009,116.319379 204.316221,116.519642 C204.285131,116.744075 204.251737,116.967356 204.219495,117.190638 L204.138891,117.717767 L204.044468,118.316254 C204.012226,118.515366 203.979984,118.713327 203.941984,118.912439 C203.902833,119.1104 203.872894,119.308361 203.83835,119.507473 C203.76926,119.903395 203.697867,120.298166 203.620716,120.692937 C203.467567,121.479026 203.307509,122.262814 203.138239,123.045451 C203.095633,123.239959 203.051876,123.435618 203.006968,123.630126 C200.550823,121.244235 197.298992,119.944828 193.710924,119.944828 C190.45564,119.944828 187.109386,121.020954 183.759679,123.144431 C181.536136,124.555479 179.079991,127.055313 176.550149,130.19852 C174.206851,126.949427 170.927385,124.791421 167.179258,124.200991 C166.464178,124.08935 165.741037,124.031803 165.016745,124.030652 C156.450751,124.030652 151.296646,131.457644 149.34716,138.138829 C148.381053,140.395815 143.740516,150.675978 136.758984,157.648349 C126.13296,168.234661 123.451121,179.144386 128.631711,190.829842 Z M218.724916,167.341535 L218.690371,167.443968 C218.66619,167.509571 218.642008,167.575175 218.615524,167.639627 C218.57407,167.737457 218.530313,167.832984 218.484253,167.928512 C218.372558,168.156398 218.245893,168.377377 218.106562,168.58915 C217.914261,168.875733 217.703537,169.149656 217.474389,169.407465 C217.42142,169.467314 217.370754,169.526012 217.310876,169.584709 C217.230272,169.673332 217.143909,169.759652 217.058698,169.845972 C215.507631,171.382472 213.144757,172.727916 210.473281,173.964022 C210.170437,174.100983 209.864139,174.237945 209.553234,174.374906 L209.244633,174.511868 C209.038515,174.602792 208.833548,174.693716 208.617066,174.782338 C208.406342,174.872111 208.194467,174.960733 207.982591,175.048204 L207.340055,175.31407 C205.83735,175.932123 204.297797,176.520251 202.795092,177.102625 L202.153708,177.351227 L201.518081,177.59983 C201.096633,177.764414 200.67979,177.928997 200.268706,178.093581 L199.65726,178.339882 L199.05733,178.586182 L198.761395,178.709332 C198.56564,178.7922 198.372188,178.872765 198.18104,178.955633 C193.76159,180.850074 190.583456,182.777892 191.251325,185.170688 C191.269749,185.238594 191.290476,185.303046 191.313506,185.365197 C191.373383,185.542441 191.45514,185.710477 191.556472,185.867005 C191.61635,185.961382 191.685439,186.050004 191.76259,186.130569 C192.547911,186.945432 193.97692,186.816527 195.779015,186.169701 C195.925255,186.116758 196.07495,186.060362 196.225796,186.000513 C196.329431,185.961382 196.431914,185.919948 196.535549,185.878514 L196.691001,185.812911 C197.103238,185.637968 197.539655,185.44346 197.986437,185.230537 C198.098132,185.178745 198.210979,185.128104 198.323826,185.068255 C200.526641,183.99213 203.02424,182.540799 205.502264,181.220675 C205.882259,181.014658 206.263404,180.817847 206.642247,180.622188 C207.261753,180.301077 207.887017,179.991475 208.518038,179.695685 C210.86479,178.593088 213.069909,177.810451 214.844368,177.810451 C215.675749,177.810451 216.411556,177.98079 217.023002,178.372108 L217.125485,178.440013 C217.435238,178.658691 217.704689,178.926859 217.924625,179.23531 C217.975291,179.307819 218.02826,179.38263 218.073168,179.459743 C218.121531,179.539157 218.167591,179.620874 218.211348,179.703741 C219.087638,181.365693 218.354134,183.088645 216.638402,184.777068 C214.990608,186.397586 212.427373,187.987029 209.512932,189.459077 C209.297602,189.568416 209.079969,189.677755 208.861184,189.783641 C200.189252,194.039803 188.835482,197.245161 188.676575,197.285443 C185.650438,198.069231 181.323109,199.099319 176.448818,199.869295 L175.726828,199.980936 L175.609375,199.9982 C174.503937,200.163935 173.395045,200.310104 172.283849,200.436707 L172.181366,200.447065 C170.160487,200.677253 168.08779,200.844138 166.011639,200.914346 L165.980549,200.914346 C165.234378,200.941968 164.489359,200.954628 163.743188,200.954628 L162.884171,200.954628 C161.746491,200.938515 160.609962,200.887874 159.475737,200.800403 C159.449252,200.800403 159.421616,200.800403 159.39398,200.794648 C158.988653,200.763573 158.582174,200.725592 158.177998,200.680705 C157.482494,200.605895 156.78814,200.51382 156.09609,200.405632 C155.826639,200.360745 155.538765,200.313557 155.261254,200.265217 C155.134589,200.242199 155.009076,200.21918 154.883563,200.193859 L154.853624,200.188105 C154.454054,200.112143 154.056787,200.028125 153.660672,199.937201 C153.431524,199.885408 153.201224,199.833616 152.974379,199.772617 L152.838502,199.736938 C152.725655,199.709315 152.615111,199.679391 152.504568,199.649467 L152.443538,199.633353 L152.087725,199.53092 C151.958758,199.49409 151.830941,199.456109 151.701974,199.418128 L151.655914,199.404317 L151.320828,199.301884 C151.194163,199.262752 151.06865,199.221318 150.943136,199.181036 C150.839501,199.146507 150.737018,199.110828 150.633383,199.077451 L150.406538,198.998037 C150.187754,198.922075 149.971272,198.841509 149.75479,198.758642 L149.549824,198.679227 L149.380554,198.611322 C149.05468,198.480115 148.729957,198.343154 148.408689,198.199287 L148.194511,198.096854 L148.158814,198.08074 C148.082815,198.045061 148.007968,198.009382 147.931969,197.977156 C147.783426,197.905798 147.636034,197.832138 147.489794,197.757327 L147.446037,197.73546 L147.234161,197.623819 C146.857621,197.42816 146.48799,197.218689 146.12642,196.995408 L145.928362,196.874559 C145.825879,196.812409 145.732608,196.749107 145.63473,196.685806 L145.376795,196.514316 C145.283524,196.452166 145.190252,196.388864 145.099284,196.323261 L144.933468,196.205865 C144.75844,196.080413 144.586867,195.952659 144.417597,195.820302 C144.32778,195.751245 144.239115,195.679887 144.150449,195.614284 C143.953543,195.456606 143.761243,195.294324 143.571246,195.127438 L143.563185,195.120532 C143.377794,194.960552 143.197009,194.794817 143.02083,194.62563 L143.011618,194.61412 C142.919498,194.526649 142.829681,194.439178 142.739864,194.348254 C142.651199,194.25733 142.561382,194.167557 142.47502,194.076633 C142.387506,193.984558 142.299992,193.891332 142.214781,193.795805 C142.131873,193.706032 142.051269,193.615108 141.970664,193.523033 L141.943028,193.491958 C141.527337,193.009715 141.138131,192.504454 140.777712,191.978476 L140.634926,191.767855 C140.540503,191.628592 140.447232,191.488178 140.355112,191.347763 L140.083358,190.929973 C139.949785,190.726258 139.819665,190.52024 139.693001,190.313072 C139.602032,190.165752 139.512215,190.018432 139.42355,189.869961 C139.348703,189.743358 139.273855,189.617906 139.202462,189.493605 C139.16216,189.4257 139.124161,189.356644 139.086161,189.287587 C139.048162,189.216229 139.003253,189.14372 138.962951,189.071211 L138.898467,188.957269 C138.876589,188.919288 138.86968,188.907778 138.858165,188.882458 C138.779863,188.745496 138.703864,188.606233 138.630168,188.464668 C138.596775,188.403668 138.563381,188.341518 138.527685,188.280518 L138.42405,188.082557 L138.321566,187.885747 L138.123509,187.486372 C138.091267,187.420769 138.060176,187.355165 138.029086,187.289562 C137.961148,187.147997 137.896664,187.008734 137.83218,186.86947 C137.806847,186.813074 137.780362,186.756679 137.757332,186.700283 C137.668667,186.508076 137.584608,186.313568 137.505154,186.116758 C137.451034,185.986702 137.40152,185.857797 137.348551,185.728892 C137.200007,185.349083 137.060676,184.965822 136.93286,184.577956 C136.89486,184.462863 136.856861,184.34892 136.823468,184.233826 C136.74056,183.972564 136.665712,183.708999 136.598925,183.443133 C136.517169,183.133531 136.444625,182.820477 136.383595,182.506271 C136.344444,182.32097 136.309899,182.134518 136.281112,181.946916 C136.250022,181.761615 136.223537,181.576314 136.201659,181.392165 C136.154447,181.025016 136.121054,180.656716 136.101478,180.287266 C136.101478,180.226266 136.095721,180.164116 136.094569,180.103116 C136.088812,179.981117 136.085357,179.859118 136.084206,179.737118 C136.019722,174.820319 138.510412,170.091121 143.833788,164.772645 C153.315222,155.303892 158.835504,141.447771 158.835504,141.447771 C158.835504,141.447771 158.984047,140.866548 159.2938,140.030968 C159.397435,139.753592 159.505676,139.477368 159.619674,139.204596 C159.749793,138.896145 159.889124,138.591147 160.038819,138.291903 L160.082576,138.204432 C160.274876,137.822321 160.483297,137.450569 160.710143,137.088024 C160.76196,137.004006 160.812626,136.919987 160.872504,136.83712 C161.040622,136.586216 161.219105,136.343368 161.406799,136.107426 C161.551888,135.926729 161.706188,135.751787 161.86855,135.586052 C162.418966,135.019792 163.046532,134.557115 163.757006,134.309664 L163.846823,134.280891 C163.906701,134.261325 163.965427,134.24291 164.026457,134.225646 C164.09785,134.207231 164.169243,134.189967 164.240636,134.175004 L164.272877,134.16925 C164.423724,134.139325 164.57457,134.118608 164.727719,134.10825 L164.741537,134.10825 C164.820991,134.10825 164.900444,134.100194 164.9822,134.100194 C165.186015,134.101344 165.388679,134.117458 165.590191,134.148533 C166.444603,134.283192 167.258712,134.791906 167.958823,135.576845 L168.053245,135.687335 C168.281242,135.954352 168.488512,136.239784 168.672751,136.539027 C168.810931,136.761158 168.94105,136.994798 169.064261,137.239948 C169.113775,137.343532 169.160987,137.437909 169.208198,137.539191 C169.231228,137.590983 169.254258,137.641624 169.276136,137.694567 C169.322196,137.797001 169.364802,137.900585 169.407407,138.008773 C169.64807,138.625675 169.834613,139.262143 169.965884,139.911271 C170.105215,140.612191 170.18582,141.32347 170.20885,142.038201 C170.21691,142.352407 170.21691,142.670065 170.20885,142.992327 C170.203092,143.114326 170.197335,143.237477 170.188123,143.360627 C170.0937,144.72909 169.795462,146.075685 169.302621,147.356677 C169.253106,147.48328 169.198986,147.612185 169.14832,147.74109 C168.900748,148.332671 168.612873,148.905838 168.288151,149.458287 C168.10276,149.773644 167.902399,150.086698 167.688221,150.397451 L167.55695,150.583903 C167.049139,151.292879 166.482602,151.958121 165.863096,152.572721 C165.252802,153.183868 164.598751,153.748977 163.906701,154.265748 C163.212348,154.777914 162.561751,155.346477 161.960669,155.96453 C160.229968,157.780707 159.826944,159.381659 160.21615,160.595897 C160.26221,160.732859 160.31633,160.867518 160.378511,160.997574 C160.522448,161.279553 160.708991,161.538514 160.932382,161.764098 L160.993411,161.825097 C161.056743,161.886097 161.12353,161.944795 161.191469,162.00119 L161.260559,162.057586 C161.428677,162.186491 161.606008,162.301585 161.791399,162.401716 C161.844368,162.43049 161.893883,162.459263 161.954912,162.486886 C162.209393,162.613489 162.475389,162.714771 162.749446,162.791884 L162.825444,162.81145 L162.927928,162.839072 L163.017745,162.86094 L163.113319,162.881657 L163.208893,162.901223 L163.299862,162.916185 C163.3678,162.928845 163.43689,162.939203 163.504828,162.948411 L163.571615,162.957618 L163.690219,162.970279 L163.763915,162.977184 L163.885974,162.986392 L163.956215,162.986392 L164.08288,162.992147 L164.48245,162.992147 L164.596448,162.986392 L164.727719,162.978335 L164.887777,162.963373 L165.037472,162.944958 C165.070866,162.944958 165.105411,162.935751 165.139955,162.929996 C165.667342,162.852883 166.18091,162.704412 166.666842,162.488036 C166.770477,162.444301 166.87296,162.395962 166.967383,162.34532 C167.170046,162.244038 167.366953,162.130095 167.555798,162.004643 C167.819491,161.832003 168.068215,161.637495 168.301969,161.425722 L168.46433,161.271497 C168.489663,161.246176 168.516148,161.222007 168.540329,161.195535 C168.699236,161.036706 168.848931,160.868669 168.988262,160.692576 C169.234682,160.381823 169.453467,160.051504 169.643464,159.703922 C171.896946,155.60889 174.258668,151.573708 176.726329,147.604129 L177.064869,147.062038 L177.406864,146.518796 C177.578437,146.244873 177.75001,145.973252 177.921584,145.705084 L178.09546,145.434614 L178.442061,144.894825 C178.907266,144.17549 179.373623,143.464211 179.843434,142.759838 L180.194641,142.235011 C180.899357,141.192263 181.602923,140.177137 182.298428,139.211501 L182.64618,138.735014 C183.402714,137.689964 184.19149,136.669083 185.010205,135.672372 L185.336079,135.283356 C185.389048,135.217753 185.438563,135.154451 185.497289,135.09115 L185.816254,134.721699 C185.869223,134.660699 185.919889,134.600851 185.975161,134.542153 L186.283762,134.193419 L186.439214,134.025383 C186.588909,133.863101 186.740907,133.703121 186.895208,133.544291 C186.998842,133.441858 187.094417,133.338274 187.194597,133.242746 C187.778407,132.64541 188.422094,132.110225 189.116447,131.646397 L189.276506,131.543964 L189.438867,131.44038 C189.542502,131.375927 189.647288,131.313777 189.754377,131.255079 C192.476519,129.711674 194.731152,129.597731 196.027738,130.893685 C196.814212,131.679775 197.248326,132.981483 197.225296,134.791906 C197.225296,134.872472 197.225296,134.951886 197.218387,135.034754 L197.218387,135.124527 C197.218387,135.206243 197.211478,135.290262 197.205721,135.37428 C197.205721,135.476713 197.193054,135.580298 197.182691,135.682731 C197.172327,135.786315 197.167722,135.864579 197.157358,135.955503 C197.157358,135.981974 197.151601,136.008446 197.148146,136.034917 C197.140086,136.115483 197.129722,136.197199 197.119359,136.277765 C197.119359,136.303086 197.119359,136.327255 197.108995,136.352576 C197.09748,136.461915 197.081359,136.571254 197.061784,136.679442 C197.049117,136.779573 197.032996,136.879705 197.013421,136.979836 C197.00536,137.037383 196.993845,137.093779 196.984633,137.151326 C196.954694,137.314759 196.915543,137.477041 196.868332,137.63587 C196.779667,137.932811 196.671426,138.223998 196.54361,138.507128 C196.488338,138.630279 196.429611,138.753429 196.369733,138.874277 C196.245372,139.12403 196.104889,139.379538 195.950588,139.644253 C195.873438,139.774309 195.793984,139.908969 195.708774,140.043628 L195.579806,140.248495 C195.448535,140.454513 195.311507,140.662832 195.168721,140.873453 C195.025935,141.084075 194.872786,141.2993 194.708122,141.516827 C194.495095,141.806863 194.270552,142.102653 194.033344,142.401897 L193.85371,142.628631 C193.3459,143.260495 192.825422,143.882001 192.29343,144.493148 L191.870831,144.970787 L191.6555,145.212483 C191.361868,145.5405 191.067085,145.866215 190.769998,146.189628 L190.542002,146.435928 C190.391156,146.599361 190.2334,146.765096 190.082554,146.92968 C189.928253,147.096566 189.77165,147.262301 189.615046,147.428035 L189.140629,147.927542 L188.660454,148.428199 C188.500396,148.595085 188.339186,148.764272 188.176825,148.931158 L187.199203,149.938227 C182.529879,154.724971 177.609528,159.495602 175.944461,162.469621 C175.833918,162.66413 175.733737,162.863242 175.642769,163.066957 C175.406712,163.607897 175.307683,164.070574 175.37447,164.444628 C175.396348,164.567778 175.440105,164.686325 175.503438,164.793362 C175.597861,164.955644 175.711859,165.105266 175.84313,165.238774 C175.904159,165.298623 175.967491,165.355019 176.036581,165.40566 C176.378576,165.649658 176.793115,165.77511 177.213412,165.76245 L177.344683,165.76245 L177.479408,165.753243 L177.615285,165.73713 L177.72698,165.721016 C177.74195,165.719865 177.756919,165.716413 177.771889,165.71296 L177.874372,165.693394 L177.902008,165.686488 L178.014855,165.662319 L178.055157,165.65196 L178.176065,165.620885 L178.320002,165.5783 C178.414425,165.549527 178.508848,165.517301 178.605573,165.481622 C178.813994,165.407962 179.01781,165.322792 179.217019,165.227265 C179.267685,165.203095 179.319502,165.180076 179.369017,165.153605 L179.522166,165.077643 C179.722526,164.976361 179.921736,164.867022 180.122096,164.748475 C180.282154,164.654099 180.441061,164.55742 180.599968,164.454987 L180.754269,164.352553 C180.804935,164.320327 180.856752,164.28695 180.907418,164.248969 L181.060567,164.146536 L181.141172,164.09014 L181.36226,163.935914 C181.568378,163.793198 181.760678,163.647029 181.956433,163.498559 L181.973705,163.485898 L182.282307,163.246503 C182.704906,162.912732 183.106779,162.576659 183.469501,162.260151 L183.711316,162.047228 L183.734346,162.026511 L183.859859,161.91487 C184.156945,161.649004 184.42179,161.400402 184.642877,161.194384 L184.732694,161.106913 L184.950327,160.900895 L185.080447,160.774292 L185.125355,160.728255 L185.138022,160.715595 C185.248565,160.605105 185.248565,160.605105 185.359109,160.493464 L185.368321,160.484256 L185.409775,160.447426 C185.422442,160.433615 185.439714,160.419804 185.45929,160.40254 L185.475411,160.387578 L185.519167,160.348446 L185.752922,160.142428 L185.884192,160.023882 C185.948676,159.968637 186.018918,159.905335 186.090311,159.83743 L186.248066,159.699318 C186.275702,159.676299 186.303338,159.649828 186.332125,159.624507 L186.496789,159.48064 L186.739755,159.268868 L186.867572,159.157227 C187.368473,158.721022 187.978767,158.195044 188.677727,157.602312 L188.96445,157.360615 L189.438867,156.963542 L189.922496,156.558413 C190.55582,156.033586 191.237507,155.475382 191.958344,154.89531 L192.43161,154.515501 C192.834634,154.195541 193.249174,153.867524 193.668319,153.538356 C193.836438,153.405998 194.008011,153.273641 194.183039,153.142434 C194.612547,152.810964 195.044359,152.480646 195.477322,152.154931 C196.465308,151.409124 197.484383,150.662166 198.514974,149.933624 L198.958301,149.626324 C199.266902,149.41225 199.575504,149.199326 199.885257,148.991007 L200.165071,148.801102 C200.718941,148.428199 201.277418,148.063352 201.8405,147.706562 L202.120315,147.530469 L202.397826,147.357828 C202.675337,147.186339 202.952848,147.016 203.226904,146.851416 L203.502112,146.687983 L204.05368,146.366872 C204.234465,146.262137 204.414099,146.159704 204.593732,146.058421 L204.701973,145.997422 L205.13033,145.763782 C205.307661,145.667103 205.486143,145.573877 205.662322,145.482953 L205.927167,145.347143 L206.1828,145.217087 C206.767761,144.923598 207.363085,144.651977 207.968773,144.403375 C208.051681,144.368847 208.133437,144.33547 208.215194,144.299791 C208.377555,144.231885 208.538764,144.169735 208.698823,144.11449 C208.858881,144.060396 209.016636,144.004 209.172088,143.948755 C209.313723,143.901567 209.450751,143.857831 209.584325,143.816397 L209.629233,143.802586 C209.700626,143.780718 209.772019,143.760002 209.843412,143.741587 L209.864139,143.735832 C210.009227,143.694398 210.154316,143.656417 210.300556,143.621889 L210.312071,143.621889 C210.527402,143.570097 210.736974,143.526362 210.941941,143.491833 C211.012182,143.480324 211.081272,143.468815 211.148059,143.459607 C211.347268,143.429683 211.547629,143.408966 211.747989,143.395155 C211.874654,143.385947 212.002471,143.382494 212.129135,143.382494 L212.225861,143.382494 C212.354829,143.382494 212.479191,143.390551 212.602401,143.403211 C212.658824,143.403211 212.715248,143.41357 212.77052,143.421626 L212.79355,143.421626 C212.848822,143.427381 212.905245,143.436588 212.959365,143.448098 C213.013486,143.459607 213.068758,143.467664 213.121727,143.480324 L213.140151,143.480324 C213.19312,143.491833 213.242634,143.506796 213.297906,143.521758 C213.737778,143.640304 214.141954,143.863586 214.47704,144.172037 L214.506979,144.201961 L214.565705,144.259508 L214.62328,144.320508 C215.085031,144.806203 215.467328,145.362105 215.755203,145.967497 L215.800111,146.069931 C215.897988,146.300118 215.975139,146.538362 216.029259,146.78236 C216.178954,147.462564 216.138651,148.17154 215.911806,148.829876 C215.813929,149.116459 215.694173,149.394986 215.552539,149.662003 L215.458116,149.832341 C215.098849,150.434281 214.675097,150.994787 214.19262,151.503501 L214.088985,151.61284 C213.86214,151.853385 213.626083,152.087025 213.383117,152.311458 C213.305966,152.383967 213.226513,152.456476 213.145908,152.528985 L213.023849,152.639475 C212.77052,152.863907 212.511433,153.082585 212.248891,153.296659 C212.202831,153.333489 212.15562,153.370319 212.110711,153.409451 C211.927623,153.556771 211.738777,153.706393 211.543023,153.856014 C210.868245,154.371634 210.180801,154.868838 209.48069,155.348779 C209.068454,155.630758 208.642399,155.915039 208.202527,156.203924 C207.38266,156.741412 206.557036,157.26739 205.723352,157.783009 C205.482689,157.93148 205.240874,158.082252 204.994454,158.231874 C202.729457,159.624507 200.21804,161.113819 197.539655,162.733186 L196.846454,163.154429 C196.087616,163.617105 195.371385,164.059064 194.697758,164.479156 L194.358066,164.69323 L193.71553,165.105266 C193.461049,165.266397 193.213477,165.425226 192.972814,165.581753 C192.790878,165.697998 192.613547,165.813091 192.439671,165.927034 L192.096524,166.152618 C191.929557,166.261956 191.763741,166.371295 191.597926,166.482936 L191.436716,166.58537 C191.266294,166.699312 191.100478,166.810953 190.939269,166.921443 L190.675576,167.100989 L190.365823,167.316214 L190.080251,167.515326 C189.628864,167.831834 189.183234,168.155247 188.741059,168.484414 L188.586758,168.60181 C188.412882,168.733017 188.244763,168.864223 188.082402,168.991977 L187.870526,169.161165 C187.513562,169.447748 187.189991,169.722822 186.897511,169.985235 L186.754725,170.116442 C186.672969,170.191253 186.592364,170.266064 186.516365,170.339724 C186.462244,170.390365 186.41273,170.442157 186.35861,170.492798 L186.283762,170.566458 C186.119098,170.731042 185.95904,170.90023 185.803588,171.074021 L185.727589,171.161492 C185.558318,171.357151 185.410927,171.544754 185.280807,171.727753 L185.223232,171.81062 C185.073538,172.029298 184.941115,172.260636 184.828269,172.501182 L184.789118,172.5852 L184.764936,172.643898 L184.745361,172.694539 L184.718876,172.764746 C184.710816,172.788916 184.694695,172.831501 184.685483,172.868331 C184.638272,173.005292 184.603727,173.146857 184.580697,173.290724 L184.569182,173.367837 L184.55997,173.438044 L184.554212,173.505949 L184.554212,173.867343 C184.554212,173.897268 184.554212,173.928343 184.561121,173.959418 C184.562273,173.977833 184.564576,173.996248 184.566879,174.014663 C184.566879,174.044587 184.574939,174.074512 184.578394,174.105587 L184.600272,174.23219 L184.600272,174.237945 C184.608333,174.278228 184.616393,174.31851 184.626757,174.358793 C184.63712,174.399076 184.647483,174.443962 184.66015,174.486547 C184.696998,174.616603 184.741906,174.745508 184.793724,174.87096 C184.793724,174.880167 184.801784,174.890526 184.805239,174.899733 C184.819057,174.930808 184.831723,174.963035 184.846693,174.99411 C184.903116,175.125317 184.966448,175.253071 185.035538,175.378523 L185.108083,175.508578 L185.184082,175.639785 L185.263535,175.770992 C185.277353,175.79286 185.292322,175.812426 185.309595,175.831992 L185.336079,175.859614 L185.363715,175.884935 L185.394806,175.909104 C185.415533,175.924066 185.437411,175.936727 185.460441,175.949387 C185.483471,175.959745 185.508804,175.971255 185.534137,175.980462 C185.561773,175.98967 185.589409,175.997726 185.617045,176.004632 C186.281459,176.154254 187.647136,175.604106 189.460745,174.646527 L189.786619,174.473887 L190.338187,174.173492 L190.608789,174.023871 C190.799937,173.920286 190.996844,173.805193 191.196053,173.69125 L191.561078,173.485232 C193.959648,172.10526 196.825727,170.331667 199.78738,168.600659 C200.063739,168.438377 200.342402,168.277246 200.621064,168.116115 L201.180692,167.759325 C201.460506,167.598193 201.739169,167.439364 202.018983,167.282837 C203.209632,166.606086 204.416402,165.955807 205.635838,165.333151 L206.1828,165.055775 C206.546673,164.876229 206.907092,164.701287 207.262905,164.530948 C207.952652,164.204082 208.649308,163.894481 209.352874,163.600992 L209.738625,163.444465 L209.785837,163.42605 C211.828594,162.616941 213.681355,162.116284 215.180605,162.116284 C215.505328,162.113982 215.828898,162.140454 216.149015,162.195699 L216.158227,162.195699 C216.261862,162.214114 216.355133,162.23483 216.449556,162.259 L216.466828,162.259 C216.605008,162.292377 216.740885,162.334962 216.872156,162.387905 C216.976942,162.425886 217.078274,162.470772 217.176151,162.523715 C217.60566,162.741242 217.972988,163.062354 218.247044,163.458276 C218.270074,163.491653 218.291953,163.526181 218.31268,163.56186 C218.414012,163.716085 218.501525,163.878367 218.572918,164.048706 C218.615524,164.146536 218.654675,164.247818 218.691523,164.357157 C218.728371,164.467647 218.760612,164.573533 218.794006,164.687476 C219.038123,165.559885 219.013942,166.482936 218.724916,167.341535 Z",id:"Shape",fill:"#FF9D00",fillRule:"nonzero"}),d.jsx("path",{d:"M205.169417,104.827718 L205.169417,104.263487 C205.169417,56.0689579 166.09852,17 117.882512,17 C69.6688088,17 30.5830519,56.0712609 30.5830519,104.263487 L30.5805699,104.452331 C30.5805699,104.577844 30.5805699,104.702205 30.5805699,104.827718 C30.5874292,105.015411 30.5893875,105.203104 30.5876596,105.390797 L30.5945712,105.805334 L30.596875,105.955028 L30.6026346,106.159993 C30.6049385,106.270536 30.6083942,106.379928 30.6083942,106.490471 L30.6199134,106.938402 L30.6383442,107.464633 L30.6441038,107.637357 L30.6671422,108.182012 L30.6671422,108.207345 L30.6993961,108.84412 L30.6993961,108.860241 C30.7109153,109.077873 30.7224345,109.295505 30.7362576,109.511985 C30.7477768,109.713496 30.7604479,109.913856 30.774271,110.114215 L30.7777268,110.149912 C30.7878637,110.321484 30.7993829,110.494208 30.8122844,110.66578 L30.8157402,110.710688 C30.8272594,110.876503 30.8399306,111.043469 30.8537536,111.208132 L30.8560575,111.240374 L30.8790959,111.528247 C30.9480961,112.358472 31.0287306,113.188698 31.1209996,114.01662 L31.1267592,114.068437 L31.1958745,114.676425 L31.2753572,115.316654 C31.3286912,115.742706 31.3855961,116.167607 31.4458417,116.592507 C31.4817816,116.84929 31.5191039,117.104921 31.5575781,117.360552 L31.5633377,117.391642 C31.6493863,117.969691 31.7422312,118.54774 31.8421029,119.123486 C32.1285859,120.7943 32.4650624,122.457054 32.8511867,124.108293 L32.8569463,124.134777 L32.8938079,124.290228 C32.9283655,124.437619 32.9629232,124.58501 32.9997847,124.733552 L33.0631404,124.656403 C35.5973693,121.62798 39.2328357,119.958317 43.300273,119.958317 C46.5602128,119.958317 49.9053949,121.034962 53.2563365,123.159464 C55.4795464,124.571192 57.9377483,127.072232 60.4673695,130.216955 C62.8080754,126.966295 66.0886346,124.807248 69.8415971,124.217684 C70.5580927,124.104838 71.2814999,124.047264 72.004907,124.046112 C80.5717524,124.046112 85.7312119,131.477839 87.6802643,138.161096 C88.6421193,140.420322 93.2843658,150.704294 100.283445,157.661606 C110.921447,168.286419 113.583539,179.250921 108.319254,190.990378 L108.336533,190.990378 C108.695933,191.029529 109.056484,191.066377 109.418188,191.09977 C109.633597,191.120497 109.849007,191.141224 110.064416,191.159647 L110.140443,191.166556 C110.298257,191.181526 110.457222,191.195344 110.616187,191.206859 L111.053918,191.242555 C111.470913,191.274797 111.889061,191.303584 112.309513,191.33122 L112.641266,191.350795 L112.905057,191.365764 L113.069781,191.374976 L113.583539,191.402612 L113.724073,191.40837 L114.265477,191.431399 L114.865628,191.454429 L115.349435,191.468247 L115.43007,191.471702 C115.531439,191.475156 115.635112,191.479762 115.737633,191.479762 L115.847066,191.482065 C116.5267,191.498186 117.205182,191.506246 117.884816,191.506246 L118.605919,191.506246 L119.121981,191.500489 C119.248692,191.49358 119.374252,191.49358 119.500963,191.49358 L119.701397,191.49358 L119.875338,191.490126 C119.943301,191.487823 120.012416,191.48552 120.08038,191.48552 L120.286574,191.48552 L120.690899,191.474005 L121.299114,191.453278 L121.969532,191.424491 C122.161903,191.41643 122.353122,191.407218 122.545493,191.396855 L122.751687,191.38534 L123.056947,191.368067 L123.237799,191.357704 L123.372574,191.349644 L123.991156,191.30819 C124.19735,191.295523 124.403544,191.279403 124.609738,191.263282 L125.169572,191.219525 L125.564681,191.186132 L125.996652,191.146981 C126.440142,191.105527 126.88248,191.061771 127.322515,191.015711 C127.603584,190.984621 127.882349,190.95353 128.162266,190.920137 L128.654137,190.861411 C123.471639,179.170317 126.154466,168.255328 136.749846,157.671969 C143.732798,150.697385 148.375045,140.41111 149.342659,138.153035 C151.292864,131.468627 156.447716,124.038052 165.016865,124.038052 C165.741424,124.039203 166.464831,124.095626 167.180175,124.209624 C170.929681,124.799188 174.211508,126.959386 176.555669,130.208895 C179.086443,127.064171 181.543493,124.563132 183.766702,123.151403 C187.117644,121.026901 190.46513,119.950256 193.721614,119.950256 C197.311004,119.950256 200.565184,121.251442 203.022234,123.637333 C203.157009,123.036254 203.287176,122.435175 203.411584,121.831794 C203.48761,121.455256 203.562485,121.077567 203.636208,120.698726 C203.726058,120.233523 203.811301,119.766018 203.889631,119.298512 C203.910366,119.171848 203.932252,119.045184 203.956443,118.917369 C203.994456,118.71816 204.027862,118.521255 204.058964,118.320896 L204.071635,118.244897 L204.153421,117.723272 L204.234056,117.194737 L204.235208,117.18898 C204.267462,116.967893 204.300867,116.745655 204.330817,116.523418 C204.355008,116.3553 204.378046,116.187182 204.399933,116.017913 L204.413756,115.921187 L204.485175,115.370774 L204.543923,114.902117 C204.579633,114.593518 204.61419,114.284918 204.647596,113.975167 C204.662571,113.851957 204.675242,113.727596 204.687913,113.603235 L204.699433,113.503055 C204.721319,113.296938 204.740902,113.091973 204.759333,112.885856 L204.805409,112.406835 C204.901019,111.34516 204.978198,110.283485 205.038098,109.219506 L205.038098,109.212597 L205.0692,108.648367 L205.074959,108.521703 L205.097998,107.986259 C205.107213,107.784748 205.115276,107.580934 205.122188,107.374817 L205.122188,107.359847 L205.127948,107.211305 C205.133707,107.084641 205.138315,106.957977 205.138315,106.832464 L205.140619,106.780647 C205.145226,106.663195 205.149834,106.541137 205.149834,106.42023 L205.15329,106.316596 C205.156746,106.19569 205.160201,106.075934 205.160201,105.955028 L205.162505,105.852545 C205.165961,105.698245 205.169417,105.545097 205.169417,105.390797 L205.169417,104.827718 Z M96.2309827,192.003691 C103.143668,181.868262 102.654101,174.261508 93.1680216,164.784733 C83.6819423,155.307957 78.1607792,141.448604 78.1607792,141.448604 C78.1607792,141.448604 76.0999904,133.397375 71.4001479,134.137784 C66.7003053,134.877042 63.2527174,146.906674 73.0923216,154.270463 C82.932041,161.634252 71.1352058,166.627119 67.3476856,159.717018 C63.5591287,152.805766 53.219475,135.041705 47.8572772,131.643653 C42.4962313,128.245602 38.7259899,130.150169 39.9896486,137.153541 C40.6174462,140.629894 46.4553879,146.562378 51.9097395,152.105659 C57.4435737,157.730695 62.5822986,162.95271 61.4845168,164.800854 C59.3039281,168.471809 51.6240628,160.488518 51.6240628,160.488518 C51.6240628,160.488518 27.576535,138.613632 22.3410486,144.314667 C17.5156465,149.568923 24.9570639,154.035559 36.4256013,160.919175 C37.4012794,161.505285 38.4057556,162.108666 39.4344221,162.730472 C52.5548159,170.671158 53.575419,172.765721 51.7139127,175.769962 C51.0262152,176.88 46.6339358,174.244236 41.2314207,171.001636 C32.0218028,165.474476 19.877087,158.186686 18.1630268,164.709886 C16.6781991,170.355649 25.6125077,173.81473 33.7151284,176.952544 C40.4653925,179.56643 46.6396954,181.956927 45.7319807,185.20183 C44.7908603,188.565337 39.6889969,185.760303 34.1113896,182.69273 C27.8506925,179.248619 20.9909958,175.475181 18.7470514,179.733396 C14.50337,187.782323 48.0173944,197.257947 48.2927038,197.327036 C59.1207724,200.134373 86.6193439,206.082978 96.2309827,192.003691 Z M140.768903,192.003691 C133.855066,181.868262 134.345784,174.261508 143.831864,164.784733 C153.317943,155.307957 158.840258,141.448604 158.840258,141.448604 C158.840258,141.448604 160.899895,133.397375 165.599737,134.137784 C170.29958,134.877042 173.748435,146.906674 163.907564,154.270463 C154.066692,161.634252 165.86468,166.627119 169.653352,159.717018 C173.440872,152.805766 183.775918,135.041705 189.136964,131.643653 C194.49801,128.245602 198.269403,130.150169 197.005744,137.153541 C196.377947,140.629894 190.540005,146.56353 185.084501,152.10681 C179.551819,157.730695 174.413094,162.95271 175.510876,164.800854 C177.690313,168.471809 185.37709,160.483912 185.37709,160.483912 C185.37709,160.483912 209.423465,138.609026 214.658952,144.310061 C219.484354,149.564317 212.041785,154.032104 200.573247,160.916873 C199.597569,161.50183 198.594245,162.10406 197.565578,162.727017 C184.444033,170.666552 183.424581,172.762266 185.286088,175.765356 C185.973785,176.875394 190.366065,174.23963 195.767428,170.998181 C204.978198,165.471022 217.122913,158.18208 218.836974,164.70528 C220.321801,170.351043 211.387493,173.811275 203.28372,176.94909 C196.533456,179.562976 190.360305,181.952321 191.266868,185.198376 C192.207988,188.561882 197.307548,185.755697 202.882851,182.688124 C209.143548,179.244013 216.004397,175.469423 218.249493,179.72879 C222.493175,187.783474 188.974543,197.248735 188.702689,197.318976 C177.87462,200.134373 150.375934,206.082978 140.768903,192.003691 Z",id:"Shape",fill:"#FFD21E"}),d.jsx("path",{d:"M146.614758,80.6109193 C147.976342,81.0911 148.989747,82.5534685 149.953577,83.9434653 C151.256362,85.8239816 152.46922,87.5723908 154.330012,86.5867567 C156.5263,85.424214 158.325988,83.6390445 159.503106,81.456405 C160.680224,79.2743398 161.180586,76.793253 160.941934,74.3272149 C160.764386,72.4833439 160.178709,70.7015059 159.226408,69.1104765 C158.274107,67.5193323 156.979392,66.1585139 155.436803,65.1258957 C153.89306,64.0933923 152.138336,63.414936 150.300602,63.139349 C148.461715,62.8637621 146.584783,62.9980518 144.804694,63.532339 C142.423941,64.2467514 140.30951,65.6481209 138.727721,67.5595388 C137.147086,69.4708418 136.169421,71.806381 135.91924,74.2709257 C135.670212,76.7360448 136.160198,79.2193143 137.326939,81.4070084 C138.189314,83.0233104 140.10314,82.2616841 142.123033,81.456405 C143.707127,80.825737 145.355784,80.1686476 146.614758,80.6109193 Z M87.3830077,80.6120681 C86.0214245,81.0922488 85.0068663,82.5546173 84.043036,83.9446141 C82.7402511,85.8239816 81.5273929,87.5735396 79.666601,86.5879055 C78.0260143,85.7182959 76.5998684,84.4960178 75.4896189,83.0106741 C74.3793695,81.5253304 73.6138392,79.8136815 73.2472148,77.9977254 C72.8805903,76.1821139 72.922095,74.3082604 73.3694229,72.5107992 C73.8179037,70.7133381 74.6595259,69.036956 75.8343381,67.6023875 C77.0114562,66.168623 78.4917888,65.0125133 80.1704214,64.2172284 C81.849054,63.4219434 83.684482,63.0074717 85.5429681,63.0033066 C87.4014542,62.9993155 89.238035,63.4058608 90.9201264,64.1936788 C92.6022177,64.9816117 94.0883149,66.1312884 95.2711974,67.5598834 C96.8529859,69.4711864 97.830651,71.8071852 98.0808318,74.2723042 C98.3298598,76.7374233 97.8398743,79.2208077 96.6719795,81.4081571 C95.8072992,83.0244592 93.8934736,82.2616841 91.8735805,81.456405 C90.2906392,80.825737 88.6419821,80.1686476 87.3830077,80.6120681 Z M137.451453,134.317638 C146.839575,126.947209 150.28792,114.91627 150.28792,107.504485 C150.28792,101.645821 146.331143,103.489577 139.998225,106.613049 L139.641977,106.789958 C133.827867,109.658406 126.089555,113.476876 117.594936,113.476876 C109.099164,113.476876 101.360852,109.657257 95.549048,106.788809 C89.0109124,103.561949 84.9100221,101.537838 84.9100221,107.505634 C84.9100221,115.150616 88.5785722,127.705389 98.649215,135 C99.9773639,132.311907 101.847379,129.925937 104.14397,127.991429 C106.439408,126.056922 109.111846,124.616379 111.992961,123.758257 C112.998296,123.45958 114.033606,125.183866 115.094281,126.948357 C116.116909,128.651965 117.161443,130.393482 118.225576,130.393482 C119.357731,130.393482 120.471439,128.677238 121.55863,127.0012 C122.694244,125.250494 123.801034,123.54344 124.872085,123.884621 C130.263078,125.608906 134.772098,129.348112 137.451453,134.317638 Z",id:"Shape",fill:"#32343D"}),d.jsx("path",{d:"M137,134.589063 C132.085163,138.426668 125.552521,141 117.046296,141 C109.053457,141 102.801266,138.72867 98,135.271151 C99.3361959,132.585286 101.217068,130.200275 103.524411,128.267693 C105.831753,126.333962 108.518052,124.892851 111.41295,124.033925 C113.398122,123.447146 115.500342,130.666483 117.67673,130.666483 C120.00725,130.666483 122.252013,123.493078 124.358868,124.160238 C129.775503,125.884979 134.306748,129.622682 137,134.589063 Z",id:"Path",fill:"#FF323D",fillRule:"nonzero"}),d.jsx("path",{d:"M64.7091655,90.6371141 C63.8188025,91.2251504 62.8188988,91.6348571 61.7668713,91.8425321 C60.7147288,92.0502071 59.6311738,92.0524645 58.5782258,91.8493041 C57.5252778,91.6450151 56.5236482,91.2398231 55.6307538,90.6563014 C54.7378594,90.0716511 53.971305,89.3210865 53.3749298,88.4452396 C52.7785546,87.5705215 52.3642101,86.5874511 52.1555996,85.555848 C51.9469891,84.5231163 51.9481398,83.4599105 52.1590515,82.4271787 C52.3699633,81.3955756 52.786609,80.4147626 53.3848253,79.5400444 C53.9831565,78.6662292 54.7514369,77.9166804 55.645597,77.3345131 C57.4440428,76.1637452 59.642335,75.7399301 61.7587018,76.1560702 C63.8750686,76.5722103 65.7370296,77.7943327 66.9366838,79.5547171 C68.1356477,81.3154401 68.5751911,83.4700685 68.1575098,85.5468187 C67.7398285,87.6246976 66.4994417,89.455398 64.7091655,90.6371141 Z M181.39746,90.6371141 C180.506867,91.2251504 179.506963,91.6348571 178.455281,91.8425321 C177.403599,92.0502071 176.319699,92.0524645 175.266866,91.8493041 C174.214033,91.6450151 173.211828,91.2398231 172.318933,90.6563014 C171.426039,90.0716511 170.659715,89.3210865 170.063685,88.4452396 C169.466504,87.5705215 169.052275,86.5874511 168.844009,85.555848 C168.635744,84.5231163 168.636895,83.4599105 168.847461,82.4271787 C169.058028,81.3955756 169.474559,80.4147626 170.07289,79.5400444 C170.671221,78.6662292 171.439847,77.9166804 172.333892,77.3345131 C174.132338,76.1637452 176.331205,75.7399301 178.447227,76.1560702 C180.563248,76.5722103 182.424979,77.7943327 183.625094,79.5547171 C184.824057,81.3154401 185.263601,83.4700685 184.84592,85.5468187 C184.428238,87.6246976 183.187852,89.455398 181.39746,90.6371141 Z",id:"Shape",fill:"#FFAD03"})]})})]}),rL=({height:e="40px"})=>{const t=pa(),[n,o]=ha(),s=Io(),{actions:a}=mi(),u=()=>{a.resetAll(),(s.pathname!=="/"||n.toString()!==""||s.hash!=="")&&(window.history.replaceState(null,"","/"),t("/",{replace:!0,state:{skipUrlSync:!0}}),o({},{replace:!0,state:{skipUrlSync:!0}}))};return d.jsx(W,{onClick:u,sx:{height:e,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"opacity 0.2s ease","&:hover":{opacity:.8}},children:d.jsx(W,{sx:{height:"100%",aspectRatio:"95/88"},children:d.jsx(xv,{})})})};function oL(){const{data:e,isLoading:t,error:n}=cv(),{actions:o}=mi();return w.useEffect(()=>{e&&o.setModels(e),o.setLoading(t),o.setError(n)},[e,t,n,o]),d.jsxs(W,{sx:{width:"100%",ph:2,display:"flex",flexDirection:"column"},children:[d.jsx(W,{sx:{display:"flex",justifyContent:"center",pt:6,mb:-4,pb:0},children:d.jsx(rL,{height:"80px"})}),d.jsx($d,{title:"Open LLM Leaderboard",subtitle:d.jsxs(d.Fragment,{children:["Comparing Large Language Models in an"," ",d.jsx("span",{style:{fontWeight:600},children:"open"})," and"," ",d.jsx("span",{style:{fontWeight:600},children:"reproducible"})," way"]})}),d.jsx(nL,{})]})}var iL=Object.defineProperty,sL=(e,t,n)=>t in e?iL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_c=(e,t,n)=>(sL(e,typeof t!="symbol"?t+"":t,n),n);function aL(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{const t=[];return e.forEach(n=>{t.push(String.fromCharCode(n))}),globalThis.btoa(t.join(""))}}var Cv="https://huggingface.co";async function Wc(e,t){var n,o;const s=new lL(e.url,e.status,(n=e.headers.get("X-Request-Id"))!=null?n:void 0);if(s.message=`Api error with status ${s.statusCode}. Request ID: ${s.requestId}, url: ${s.url}`,(o=e.headers.get("Content-Type"))!=null&&o.startsWith("application/json")){const a=await e.json();s.message=a.error||a.message||s.message,s.data=a}else s.data={message:await e.text()};throw s}var lL=class extends Error{constructor(e,t,n,o){super(o),_c(this,"statusCode"),_c(this,"url"),_c(this,"requestId"),_c(this,"data"),this.statusCode=t,this.requestId=n,this.url=e}};new Promise(e=>{});async function H5(e){var t,n;if(typeof window>"u")throw new Error("oauthHandleRedirect is only available in the browser");const o=new URLSearchParams(window.location.search),[s,a]=[o.get("error"),o.get("error_description")];if(s)throw new Error(`${s}: ${a}`);const u=o.get("code"),c=localStorage.getItem("huggingface.co:oauth:nonce");if(!u)throw new Error("Missing oauth code from query parameters in redirected URL");if(!c)throw new Error("Missing oauth nonce from localStorage");const p=localStorage.getItem("huggingface.co:oauth:code_verifier");if(!p)throw new Error("Missing oauth code_verifier from localStorage");const h=o.get("state");if(!h)throw new Error("Missing oauth state from query parameters in redirected URL");let g;try{g=JSON.parse(h)}catch{throw new Error("Invalid oauth state in redirected URL, unable to parse JSON: "+h)}if(g.nonce!==c)throw new Error("Invalid oauth state in redirected URL");const y=Cv,C=`${new URL(y).origin}/.well-known/openid-configuration`,x=await fetch(C,{headers:{Accept:"application/json"}});if(!x.ok)throw await Wc(x);const b=await x.json(),v=await fetch(b.token_endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:u,redirect_uri:g.redirectUri,code_verifier:p}).toString()});if(localStorage.removeItem("huggingface.co:oauth:code_verifier"),localStorage.removeItem("huggingface.co:oauth:nonce"),!v.ok)throw await Wc(v);const R=await v.json(),E=new Date(Date.now()+R.expires_in*1e3),L=await fetch(b.userinfo_endpoint,{headers:{Authorization:`Bearer ${R.access_token}`}});if(!L.ok)throw await Wc(L);const k=await L.json();return{accessToken:R.access_token,accessTokenExpiresAt:E,userInfo:{id:k.sub,name:k.name,fullname:k.preferred_username,email:k.email,emailVerified:k.email_verified,avatarUrl:k.picture,websiteUrl:k.website,isPro:k.isPro,orgs:(n=(t=k.orgs)==null?void 0:t.map(P=>({id:P.sub,name:P.name,fullname:P.name,isEnterprise:P.isEnterprise,canPay:P.canPay,avatarUrl:P.picture,roleInOrg:P.roleInOrg})))!=null?n:[]},state:g.state,scope:R.scope}}async function uL(e){if(typeof window>"u")throw new Error("oauthHandleRedirect is only available in the browser");const t=new URLSearchParams(window.location.search);return t.has("error")?H5():t.has("code")?localStorage.getItem("huggingface.co:oauth:nonce")?H5():(console.warn("Missing oauth nonce from localStorage. This can happen when the user refreshes the page after logging in, without changing the URL."),!1):!1}async function cL(e){var t,n;if(typeof window>"u")throw new Error("oauthLogin is only available in the browser");const o=(e==null?void 0:e.hubUrl)||Cv,s=`${new URL(o).origin}/.well-known/openid-configuration`,a=await fetch(s,{headers:{Accept:"application/json"}});if(!a.ok)throw await Wc(a);const u=await a.json(),c=globalThis.crypto.randomUUID(),p=globalThis.crypto.randomUUID()+globalThis.crypto.randomUUID();localStorage.setItem("huggingface.co:oauth:nonce",c),localStorage.setItem("huggingface.co:oauth:code_verifier",p);const h=(e==null?void 0:e.redirectUrl)||window.location.href,g=JSON.stringify({nonce:c,redirectUri:h,state:e==null?void 0:e.state}),y=(n=(t=window==null?void 0:window.huggingface)==null?void 0:t.variables)!=null?n:null,C=(e==null?void 0:e.clientId)||(y==null?void 0:y.OAUTH_CLIENT_ID);if(!C)throw y?new Error("Missing clientId, please add hf_oauth: true to the README.md's metadata in your static Space"):new Error("Missing clientId");const x=aL(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",new TextEncoder().encode(p)))).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/=/g,"");return`${u.authorization_endpoint}?${new URLSearchParams({client_id:C,scope:(e==null?void 0:e.scopes)||(y==null?void 0:y.OAUTH_SCOPES)||"openid profile",response_type:"code",redirect_uri:h,state:g,code_challenge:x,code_challenge_method:"S256"}).toString()}`}const Yo={CLIENT_ID:"18fe6b93-6921-444c-9a20-5c22c578f2d8",STORAGE_KEY:"hf_oauth",SCOPE:"openid profile",PROD_URL:"https://open-llm-leaderboard-open-llm-leaderboard.hf.space",DEV_URL:"http://localhost:7860"};async function W5(e){const t=await fetch("https://huggingface.co/api/whoami-v2",{headers:{Authorization:`Bearer ${e}`}});if(!t.ok)throw new Error("Failed to fetch user info");return t.json()}function Hh(){const[e,t]=w.useState(!1),[n,o]=w.useState(null),[s,a]=w.useState(!0),[u,c]=w.useState(null),p=Io(),h=pa();return w.useEffect(()=>{let C=!0;return(async()=>{try{console.group("Auth Initialization"),a(!0);let b=await uL();if(b){console.log("Processing OAuth redirect");const v=b.accessToken,R=await W5(v),E={access_token:v,username:R.name};localStorage.setItem(Yo.STORAGE_KEY,JSON.stringify(E)),C&&(t(!0),o({username:R.name,token:v}));const L=localStorage.getItem("auth_return_to");L&&(h(L),localStorage.removeItem("auth_return_to"))}else{const v=localStorage.getItem(Yo.STORAGE_KEY);if(v)try{b=JSON.parse(v),console.log("Found existing auth");const R=await W5(b.access_token);C&&(t(!0),o({username:R.name,token:b.access_token}))}catch(R){console.log("Invalid stored auth data, clearing...",R),localStorage.removeItem(Yo.STORAGE_KEY),C&&(t(!1),o(null))}}}catch(b){console.error("Auth initialization error:",b),C&&(c(b.message),t(!1),o(null))}finally{C&&a(!1),console.groupEnd()}})(),()=>{C=!1}},[h,p.pathname]),{isAuthenticated:e,user:n,loading:s,error:u,login:async()=>{try{console.group("Login Process"),a(!0);const C=window.location.hash.replace("#","")||"/";localStorage.setItem("auth_return_to",C);const x=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?Yo.DEV_URL:Yo.PROD_URL;console.log("Using redirect URL:",x);const b=await cL({clientId:Yo.CLIENT_ID,redirectUrl:x,scope:Yo.SCOPE});window.location.href=b+"&prompt=consent",console.groupEnd()}catch(C){console.error("Login error:",C),c(C.message),a(!1),console.groupEnd()}},logout:()=>{console.group("Logout Process"),a(!0);try{console.log("Clearing auth data..."),localStorage.removeItem(Yo.STORAGE_KEY),localStorage.removeItem("auth_return_to"),t(!1),o(null),console.log("Logged out successfully")}catch(C){console.error("Logout error:",C),c(C.message)}finally{a(!1),console.groupEnd()}}}}const bv=Ze([d.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),d.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),dL=Ze(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),fL=Ze(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"Pending"),pL=Ze(d.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew"),Wh=Ze(d.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),hL=e=>{const t=parseFloat(e.replace("s",""));if(t<60)return"just now";const n=Math.floor(t/60);if(n<60)return`${n}m ago`;const o=Math.floor(n/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`},zn=[{id:"model",label:"Model",width:"35%",align:"left"},{id:"submitter",label:"Submitted by",width:"15%",align:"left"},{id:"wait_time",label:"Submitted",width:"12%",align:"center"},{id:"precision",label:"Precision",width:"13%",align:"center"},{id:"revision",label:"Revision",width:"12%",align:"center"},{id:"status",label:"Status",width:"13%",align:"center"}],gL=({status:e})=>{const t={finished:{icon:d.jsx(dL,{}),label:"Completed",color:"success"},evaluating:{icon:d.jsx(pL,{}),label:"Evaluating",color:"warning"},pending:{icon:d.jsx(fL,{}),label:"Pending",color:"info"}},n=t[e]||t.pending;return d.jsx(ui,{icon:n.icon,label:n.label,color:n.color,size:"small",variant:"outlined"})},mL=({models:e,emptyMessage:t,status:n})=>{const o=w.useRef(null),s=fv({count:e.length,getScrollElement:()=>o.current,estimateSize:()=>53,overscan:5});return e.length===0?d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{p:2},children:t}):d.jsx(Mh,{ref:o,sx:{maxHeight:400,"&::-webkit-scrollbar":{width:8,height:8},"&::-webkit-scrollbar-track":{backgroundColor:"action.hover",borderRadius:4},"&::-webkit-scrollbar-thumb":{backgroundColor:"action.selected",borderRadius:4,"&:hover":{backgroundColor:"action.focus"}}},children:d.jsxs(Ph,{size:"small",stickyHeader:!0,sx:{tableLayout:"fixed"},children:[d.jsx("colgroup",{children:zn.map(a=>d.jsx("col",{style:{width:a.width}},a.id))}),d.jsx(Lh,{children:d.jsx(Co,{children:zn.map((a,u)=>d.jsx(Bn,{align:a.align,sx:{backgroundColor:"background.paper",fontWeight:600,borderBottom:"2px solid",borderColor:"divider",borderRight:u{const u=e[a.index],c=hL(u.wait_time);return d.jsxs(Co,{style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`,backgroundColor:"background.paper",display:"flex"},hover:!0,children:[d.jsx(Bn,{component:"div",sx:{flex:`0 0 ${zn[0].width}`,padding:"12px 16px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRight:"1px solid",borderRightColor:"divider",display:"flex",alignItems:"center"},children:d.jsxs(Zr,{href:`https://huggingface.co/${u.name}`,target:"_blank",rel:"noopener noreferrer",sx:{textDecoration:"none",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:.5,"& .MuiSvgIcon-root":{fontSize:"1rem",opacity:.6}},children:[u.name,d.jsx(Fi,{})]})}),d.jsx(Bn,{component:"div",sx:{flex:`0 0 ${zn[1].width}`,padding:"12px 16px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRight:"1px solid",borderRightColor:"divider",display:"flex",alignItems:"center"},children:u.submitter}),d.jsx(Bn,{component:"div",align:zn[2].align,sx:{flex:`0 0 ${zn[2].width}`,padding:"12px 16px",borderRight:"1px solid",borderRightColor:"divider",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx(Ln,{title:u.wait_time,arrow:!0,placement:"top",children:d.jsxs(ne,{variant:"body2",color:"text.secondary",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5},children:[d.jsx(bv,{sx:{fontSize:"0.9rem"}}),c]})})}),d.jsx(Bn,{component:"div",align:zn[3].align,sx:{flex:`0 0 ${zn[3].width}`,padding:"12px 16px",borderRight:"1px solid",borderRightColor:"divider",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx(ne,{variant:"body2",color:"text.secondary",children:u.precision})}),d.jsx(Bn,{component:"div",align:zn[4].align,sx:{flex:`0 0 ${zn[4].width}`,padding:"12px 16px",fontFamily:"monospace",borderRight:"1px solid",borderRightColor:"divider",display:"flex",alignItems:"center",justifyContent:"center"},children:u.revision.substring(0,7)}),d.jsx(Bn,{component:"div",align:zn[5].align,sx:{flex:`0 0 ${zn[5].width}`,padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx(gL,{status:n})})]},a.index)})})})})})]})})},Qp=({title:e,models:t,status:n,emptyMessage:o,expanded:s,onChange:a,loading:u})=>d.jsxs(fh,{expanded:s,onChange:a,disabled:u,sx:{"&:before":{display:"none"},boxShadow:"none",border:"none"},children:[d.jsx(d4,{expandIcon:d.jsx(Wh,{}),children:d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",children:[d.jsx(ne,{children:e}),d.jsxs(at,{direction:"row",spacing:1,alignItems:"center",children:[d.jsx(ui,{label:t.length,size:"small",color:n==="finished"?"success":n==="evaluating"?"warning":"info",variant:"outlined",sx:c=>({borderWidth:2,fontWeight:600,bgcolor:n==="finished"?c.palette.success[100]:n==="evaluating"?c.palette.warning[100]:c.palette.info[100],borderColor:n==="finished"?c.palette.success[400]:n==="evaluating"?c.palette.warning[400]:c.palette.info[400],color:n==="finished"?c.palette.success[700]:n==="evaluating"?c.palette.warning[700]:c.palette.info[700],"& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:n==="finished"?c.palette.success[200]:n==="evaluating"?c.palette.warning[200]:c.palette.info[200]}})}),u&&d.jsx(to,{size:16,color:"inherit",sx:{opacity:.5}})]})]})}),d.jsx(ph,{sx:{p:2},children:d.jsx(W,{sx:{border:"1px solid",borderColor:"grey.200",borderRadius:1,overflow:"hidden"},children:d.jsx(mL,{models:t,emptyMessage:o,status:n})})})]}),yL=({defaultExpanded:e=!0})=>{const[t,n]=w.useState(e),[o,s]=w.useState(new Set),[a,u]=w.useState({pending:[],evaluating:[],finished:[]}),[c,p]=w.useState(!0),[h,g]=w.useState(null);w.useEffect(()=>{const x=async()=>{try{const v=await fetch("/api/models/status");if(!v.ok)throw new Error("Failed to fetch models");const R=await v.json(),E=L=>[...L].sort((k,P)=>{const M=new Date(k.submission_time);return new Date(P.submission_time)-M});u({finished:E(R.finished),evaluating:E(R.evaluating),pending:E(R.pending)})}catch(v){g(v.message)}finally{p(!1)}};x();const b=setInterval(x,3e4);return()=>clearInterval(b)},[]);const y=x=>(b,v)=>{n(v?x:!1)},C=x=>(b,v)=>{s(R=>{const E=new Set(R);return v?E.add(x):E.delete(x),E})};return h?d.jsx(kd,{severity:"error",sx:{mb:2},children:h}):d.jsxs(fh,{expanded:t==="main",onChange:y("main"),disabled:c,elevation:0,sx:{mb:3,boxShadow:"none",border:"1px solid",borderColor:"divider",borderRadius:"8px !important","&:before":{display:"none"},"&.Mui-disabled":{backgroundColor:"rgba(0, 0, 0, 0.03)",opacity:.9},"& .MuiAccordionSummary-root":{minHeight:64,bgcolor:"background.paper",borderRadius:"8px","&.Mui-expanded":{minHeight:64,borderRadius:"8px 8px 0 0"}},"& .MuiAccordionSummary-content":{m:0,"&.Mui-expanded":{m:0}}},children:[d.jsx(d4,{expandIcon:d.jsx(Wh,{}),sx:{px:3,"& .MuiAccordionSummary-expandIconWrapper":{color:"text.secondary",transform:"rotate(0deg)",transition:"transform 150ms","&.Mui-expanded":{transform:"rotate(180deg)"}}},children:d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",children:[d.jsx(ne,{variant:"h6",sx:{fontWeight:600,color:"text.primary",letterSpacing:"-0.01em"},children:"Evaluation Status"}),!c&&d.jsxs(at,{direction:"row",spacing:1,sx:{transition:"opacity 0.2s",".Mui-expanded &":{opacity:0}},children:[d.jsx(ui,{label:`${a.pending.length} In Queue`,size:"small",color:"info",variant:"outlined",sx:{borderWidth:2,fontWeight:600,bgcolor:"info.100",borderColor:"info.400",color:"info.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"info.200"}}}),d.jsx(ui,{label:`${a.evaluating.length} Evaluating`,size:"small",color:"warning",variant:"outlined",sx:{borderWidth:2,fontWeight:600,bgcolor:"warning.100",borderColor:"warning.400",color:"warning.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"warning.200"}}}),d.jsx(ui,{label:`${a.finished.length} Evaluated`,size:"small",color:"success",variant:"outlined",sx:{borderWidth:2,fontWeight:600,bgcolor:"success.100",borderColor:"success.400",color:"success.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"success.200"}}})]}),c&&d.jsx(to,{size:20,sx:{color:"primary.main"}})]})}),d.jsx(ph,{sx:{p:0},children:c?d.jsx(W,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200,width:"100%"},children:d.jsx(to,{})}):d.jsxs(d.Fragment,{children:[d.jsx(Qp,{title:"Models in queue",models:a.pending,status:"pending",emptyMessage:"No models in queue",expanded:o.has("pending"),onChange:C("pending"),loading:c}),d.jsx(Qp,{title:"Models being evaluated",models:a.evaluating,status:"evaluating",emptyMessage:"No models currently being evaluated",expanded:o.has("evaluating"),onChange:C("evaluating"),loading:c}),d.jsx(Qp,{title:"Recently evaluated models",models:a.finished,status:"finished",emptyMessage:"No models have been evaluated recently",expanded:o.has("finished"),onChange:C("finished"),loading:c})]})})]})},vL=Ze(d.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"}),"RocketLaunch"),xL=Ze(d.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),CL=Ze(d.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");function Sv({actionText:e="DO_ACTION"}){const{isAuthenticated:t,user:n,login:o,logout:s,loading:a}=Hh(),u=pa(),c=()=>{t&&s&&(s(),u("/",{replace:!0}),window.location.reload())};return a?d.jsx(mn,{elevation:0,sx:{p:3,mb:4,border:"1px solid",borderColor:"grey.300",display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:d.jsx(to,{size:24})}):t?d.jsx(mn,{elevation:0,sx:{p:2,border:"1px solid",borderColor:"grey.300",mb:4},children:d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",justifyContent:"space-between",children:[d.jsxs(at,{direction:"row",spacing:1,alignItems:"center",children:[d.jsxs(ne,{variant:"body1",children:["Connected as ",d.jsx("strong",{children:n==null?void 0:n.username})]}),d.jsx(ui,{label:`Ready to ${e}`,color:"success",size:"small",variant:"outlined"})]}),d.jsx(ca,{variant:"contained",onClick:c,endIcon:d.jsx(CL,{}),color:"primary",sx:{minWidth:120,height:36,textTransform:"none",fontSize:"0.9375rem"},children:"Logout"})]})}):d.jsxs(mn,{elevation:0,sx:{p:3,mb:4,border:"1px solid",borderColor:"grey.300",display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[d.jsxs(ne,{variant:"h6",align:"center",children:["Login to ",e]}),d.jsxs(ne,{variant:"body2",color:"text.secondary",align:"center",children:["You need to be logged in with your Hugging Face account to"," ",e.toLowerCase()]}),d.jsx(ca,{variant:"contained",onClick:o,startIcon:d.jsx(W,{sx:{width:20,height:20,display:"flex",alignItems:"center"},children:d.jsx(xv,{})}),sx:{textTransform:"none",fontWeight:600,py:1,px:2},children:"Sign in with Hugging Face"})]})}const bL=[{value:"Original",label:"Original"},{value:"Delta",label:"Delta"},{value:"Adapter",label:"Adapter"}],Xo={modelName:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Model Name on Hugging Face Hub"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"Your model must be public and loadable with AutoClasses without trust_remote_code. The model should be in Safetensors format for better safety and loading performance. Example: mistralai/Mistral-7B-v0.1"})]}),revision:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Model Revision"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"Git branch, tag or commit hash. The evaluation will be strictly tied to this specific commit to ensure consistency. Make sure this version is stable and contains all necessary files."})]}),modelType:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Model Category"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"🟢 Pretrained: Base models trained on text using masked modeling 🟩 Continuously Pretrained: Extended training on additional corpus 🔶 Fine-tuned: Domain-specific optimization 💬 Chat: Models using RLHF, DPO, or IFT for conversation 🤝 Merge: Combined weights without additional training 🌸 Multimodal: Handles multiple input types"})]}),baseModel:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Base Model Reference"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"Required for delta weights or adapters. This information is used to identify the original model and calculate the total parameter count by combining base model and adapter/delta parameters."})]}),precision:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Model Precision"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"Size limits vary by precision: • FP16/BF16: up to 100B parameters • 8-bit: up to 280B parameters (2x) • 4-bit: up to 560B parameters (4x) Choose carefully as incorrect precision can cause evaluation errors."})]}),weightsType:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Weights Format"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"Original: Complete model weights in safetensors format Delta: Weight differences from base model (requires base model for size calculation) Adapter: Lightweight fine-tuning layers (requires base model for size calculation)"})]}),chatTemplate:d.jsxs(W,{sx:{p:1},children:[d.jsx(ne,{variant:"subtitle2",sx:{fontWeight:600,mb:.5},children:"Chat Template Support"}),d.jsx(ne,{variant:"body2",sx:{opacity:.9,lineHeight:1.4},children:"Activates automatically for chat models. It uses the standardized Hugging Face chat template for consistent prompt formatting during evaluation. Required for models using RLHF, DPO, or instruction fine-tuning."})]})},SL=Object.entries(Ns).map(([e,{icon:t,label:n}])=>({value:e,label:`${t} ${n}`}));function wL({user:e,isAuthenticated:t}){const[n,o]=w.useState({modelName:"",revision:"main",modelType:"fine-tuned",isChatModel:!1,useChatTemplate:!1,precision:"float16",weightsType:"Original",baseModel:""}),[s,a]=w.useState(null),[u,c]=w.useState(!1),[p,h]=w.useState(!1),[g,y]=w.useState(null),C=b=>{const{name:v,value:R,checked:E}=b.target;o(L=>({...L,[v]:b.target.type==="checkbox"?E:R}))},x=async b=>{b.preventDefault(),a(null),c(!0);try{const v=await fetch("/api/models/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model_id:n.modelName,revision:n.revision,model_type:n.modelType,precision:n.precision,weight_type:n.weightsType,base_model:n.baseModel,use_chat_template:n.useChatTemplate,user_id:e.username})});if(!v.ok){const R=await v.json();throw new Error(R.detail||"Failed to submit model")}y(n),h(!0)}catch(v){a(v.message)}finally{c(!1)}};return p&&g?d.jsx(mn,{variant:"outlined",sx:b=>({p:6,mb:3,bgcolor:re(b.palette.success.main,.05),borderColor:re(b.palette.success.main,.2)}),children:d.jsxs(at,{spacing:3,children:[d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",children:[d.jsx(xL,{color:"success",sx:{fontSize:28}}),d.jsx(ne,{variant:"h5",sx:{fontWeight:600,color:"success.800"},children:"Model submitted successfully!"})]}),d.jsxs(ne,{variant:"body1",children:["Your model ",d.jsx("strong",{children:g.modelName})," has been added to the evaluation queue with the following parameters:"]}),d.jsx(mn,{variant:"outlined",sx:{p:2,borderColor:"divider"},children:d.jsxs(at,{spacing:1.5,children:[d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Model:"}),d.jsx(ne,{variant:"body2",sx:{fontFamily:"monospace"},children:g.modelName})]}),d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Type:"}),d.jsx(ne,{variant:"body2",children:g.modelType})]}),d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Revision:"}),d.jsx(ne,{variant:"body2",sx:{fontFamily:"monospace"},children:g.revision})]}),d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Precision:"}),d.jsx(ne,{variant:"body2",children:g.precision})]}),d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Weight type:"}),d.jsx(ne,{variant:"body2",children:g.weightsType})]}),g.baseModel&&d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Base model:"}),d.jsx(ne,{variant:"body2",children:g.baseModel})]}),d.jsxs(at,{direction:"row",spacing:2,children:[d.jsx(ne,{variant:"body2",color:"text.secondary",sx:{width:120},children:"Chat template:"}),d.jsx(ne,{variant:"body2",children:g.useChatTemplate?"Yes":"No"})]})]})}),d.jsx(ne,{variant:"body2",color:"text.secondary",children:"An automatic upvote has been added to your model to help with prioritization."}),d.jsx(at,{direction:"row",spacing:2,children:d.jsx(ca,{variant:"outlined",size:"large",onClick:()=>{h(!1),y(null),o({modelName:"",revision:"main",modelType:"fine-tuned",isChatModel:!1,useChatTemplate:!1,precision:"float16",weightsType:"Original",baseModel:""})},children:"Submit another model"})})]})}):d.jsxs(d.Fragment,{children:[s&&d.jsx(kd,{severity:"error",sx:{mb:2},children:s}),d.jsx(Sv,{actionText:"submit a model"}),t&&d.jsxs(mn,{elevation:0,component:"form",onSubmit:x,sx:{p:0,border:"1px solid",borderColor:"grey.300",mb:3,overflow:"hidden"},children:[d.jsx(W,{sx:{px:3,py:2,borderBottom:"1px solid",borderColor:b=>b.palette.mode==="dark"?re(b.palette.divider,.1):"grey.200",bgcolor:b=>b.palette.mode==="dark"?re(b.palette.background.paper,.5):"grey.50"},children:d.jsx(ne,{variant:"h6",sx:{fontWeight:600,color:"text.primary"},children:"Model Submission Form"})}),d.jsx(W,{sx:{p:3},children:d.jsxs(tn,{container:!0,spacing:3,children:[d.jsx(tn,{item:!0,xs:12,children:d.jsxs(at,{direction:"row",spacing:1,alignItems:"center",children:[d.jsx(ne,{variant:"h6",children:"Model Information"}),d.jsx(an,{tooltip:Xo.modelName})]})}),d.jsx(tn,{item:!0,xs:12,sm:8,children:d.jsx(Il,{required:!0,fullWidth:!0,name:"modelName",label:"Model Name",placeholder:"organization/model-name",value:n.modelName,onChange:C,helperText:"Example: meta-llama/Llama-3.2-1B",InputProps:{endAdornment:d.jsx(an,{tooltip:Xo.modelName})}})}),d.jsx(tn,{item:!0,xs:12,sm:4,children:d.jsx(Il,{fullWidth:!0,name:"revision",label:"Revision commit",value:n.revision,onChange:C,helperText:"Default: main",InputProps:{endAdornment:d.jsx(an,{tooltip:Xo.revision})}})}),d.jsx(tn,{item:!0,xs:12,children:d.jsx(at,{direction:"row",spacing:1,alignItems:"center",children:d.jsx(ne,{variant:"h6",children:"Model Configuration"})})}),d.jsx(tn,{item:!0,xs:12,sm:6,children:d.jsxs(Vc,{fullWidth:!0,children:[d.jsx(Uc,{children:"Model Type"}),d.jsx(Pl,{name:"modelType",value:n.modelType,onChange:C,label:"Model Type",endAdornment:d.jsx(an,{tooltip:Xo.modelType,sx:{mr:2}}),children:SL.map(b=>d.jsx(vo,{value:b.value,children:b.label},b.value))})]})}),d.jsx(tn,{item:!0,xs:12,sm:6,children:d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",sx:{height:"100%"},children:[d.jsx(cR,{control:d.jsx(kE,{name:"useChatTemplate",checked:n.useChatTemplate,onChange:C}),label:"Use Chat Template"}),d.jsx(an,{tooltip:Xo.chatTemplate})]})}),d.jsx(tn,{item:!0,xs:12,sm:6,children:d.jsxs(Vc,{fullWidth:!0,children:[d.jsx(Uc,{children:"Precision"}),d.jsx(Pl,{name:"precision",value:n.precision,onChange:C,label:"Precision",endAdornment:d.jsx(an,{tooltip:Xo.precision,sx:{mr:2}}),children:sP.map(b=>d.jsx(vo,{value:b.value,children:b.label},b.value))})]})}),d.jsx(tn,{item:!0,xs:12,sm:6,children:d.jsxs(Vc,{fullWidth:!0,children:[d.jsx(Uc,{children:"Weights Type"}),d.jsx(Pl,{name:"weightsType",value:n.weightsType,onChange:C,label:"Weights Type",endAdornment:d.jsx(an,{tooltip:Xo.weightsType,sx:{mr:2}}),children:bL.map(b=>d.jsx(vo,{value:b.value,children:b.label},b.value))})]})}),n.weightsType!=="Original"&&d.jsx(tn,{item:!0,xs:12,children:d.jsx(Il,{fullWidth:!0,required:n.weightsType==="Delta"||n.weightsType==="Adapter",name:"baseModel",label:"Base Model",value:n.baseModel,onChange:C,InputProps:{endAdornment:d.jsx(an,{tooltip:Xo.baseModel})}})}),d.jsx(tn,{item:!0,xs:12,children:d.jsxs(W,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:2},children:[d.jsx(ne,{variant:"body2",color:"text.secondary",children:"All fields marked with * are required"}),d.jsx(ca,{type:"submit",variant:"contained",disabled:u,endIcon:u?null:d.jsx(vL,{}),sx:{minWidth:120,position:"relative"},children:u?d.jsx(to,{size:24,color:"inherit"}):"Submit"})]})})]})})]})]})}const pl=({href:e,children:t})=>d.jsxs(ca,{variant:"text",size:"small",href:e,target:"_blank",sx:{fontFamily:"monospace",textTransform:"none",color:"primary.main",fontSize:"0.875rem",p:0,minWidth:"auto",justifyContent:"flex-start","&:hover":{color:"primary.dark",backgroundColor:"transparent",textDecoration:"underline"}},children:[t," →"]}),RL=({number:e})=>d.jsx(W,{sx:{width:32,height:32,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"primary.main",color:"primary.main",fontSize:"0.875rem",fontWeight:600,flexShrink:0,bgcolor:"transparent"},children:e}),G5=[{title:"Model Information",content:d.jsxs(at,{spacing:2,children:[d.jsxs(ne,{variant:"body2",color:"text.secondary",children:["Your model should be ",d.jsx("strong",{children:"public"})," on the Hub and follow the"," ",d.jsx("strong",{children:"username/model-id"})," format (e.g. mistralai/Mistral-7B-v0.1). Specify the ",d.jsx("strong",{children:"revision"})," ","(commit hash or branch) and ",d.jsx("strong",{children:"model type"}),"."]}),d.jsx(pl,{href:"https://huggingface.co/docs/hub/models-uploading",children:"Model uploading guide"})]})},{title:"Technical Details",content:d.jsxs(at,{spacing:2,children:[d.jsxs(ne,{variant:"body2",color:"text.secondary",children:["Make sure your model can be ",d.jsx("strong",{children:"loaded locally"})," before submitting:"]}),d.jsx(W,{sx:{p:2,bgcolor:e=>e.palette.mode==="dark"?"grey.50":"grey.900",borderRadius:1,"& pre":{m:0,p:0,fontFamily:"monospace",fontSize:"0.875rem",color:e=>e.palette.mode==="dark"?"grey.900":"grey.50"}},children:d.jsx("pre",{children:`from transformers import AutoConfig, AutoModel, AutoTokenizer + +config = AutoConfig.from_pretrained("your-username/your-model", revision="main") +model = AutoModel.from_pretrained("your-username/your-model", revision="main") +tokenizer = AutoTokenizer.from_pretrained("your-username/your-model", revision="main")`})}),d.jsx(pl,{href:"https://huggingface.co/docs/transformers/installation",children:"Transformers documentation"})]})},{title:"License Requirements",content:d.jsxs(at,{spacing:2,children:[d.jsxs(ne,{variant:"body2",color:"text.secondary",children:["A ",d.jsx("strong",{children:"license tag"})," is required."," ",d.jsx("strong",{children:"Open licenses"})," (Apache, MIT, etc) are strongly recommended."]}),d.jsx(pl,{href:"https://huggingface.co/docs/hub/repositories-licenses",children:"About model licenses"})]})},{title:"Model Card Requirements",content:d.jsxs(at,{spacing:2,children:[d.jsxs(ne,{variant:"body2",color:"text.secondary",children:["Your model card must include: ",d.jsx("strong",{children:"architecture"}),","," ",d.jsx("strong",{children:"training details"}),","," ",d.jsx("strong",{children:"dataset information"}),", intended use, limitations, and"," ",d.jsx("strong",{children:"performance metrics"}),"."]}),d.jsx(pl,{href:"https://huggingface.co/docs/hub/model-cards",children:"Model cards guide"})]})},{title:"Final Checklist",content:d.jsxs(at,{spacing:2,children:[d.jsxs(ne,{variant:"body2",color:"text.secondary",children:["Ensure your model is ",d.jsx("strong",{children:"public"}),", uses"," ",d.jsx("strong",{children:"safetensors"})," format, has a"," ",d.jsx("strong",{children:"license tag"}),", and ",d.jsx("strong",{children:"loads correctly"})," ","with the provided code."]}),d.jsx(pl,{href:"https://huggingface.co/docs/hub/repositories-getting-started",children:"Sharing best practices"})]})}];function kL(){const e=Io(),t=pa(),n=!new URLSearchParams(e.search).get("guide"),[o,s]=w.useState(n);w.useEffect(()=>{const u=!new URLSearchParams(e.search).get("guide");u!==o&&s(u)},[e.search,o]);const a=()=>{const u=!o;s(u);const c=new URLSearchParams(e.search);u?c.delete("guide"):c.set("guide","closed"),t({search:c.toString()},{replace:!0})};return d.jsxs(mn,{elevation:0,sx:{mb:3,borderRadius:"8px !important",border:"1px solid",borderColor:u=>u.palette.mode==="dark"?"grey.800":"grey.200",overflow:"hidden"},children:[d.jsxs(W,{onClick:a,sx:{p:2,display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",bgcolor:u=>u.palette.mode==="dark"?"grey.900":"grey.50",borderBottom:"1px solid",borderColor:u=>o?u.palette.mode==="dark"?"grey.800":"grey.200":"transparent"},children:[d.jsx(ne,{variant:"h6",sx:{fontWeight:600,color:"text.primary"},children:"Submission Guide"}),d.jsx(Wh,{sx:{transform:o?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s"}})]}),d.jsx(zl,{in:o,appear:!1,children:d.jsx(W,{sx:{py:4},children:d.jsx(at,{spacing:4,children:G5.map((u,c)=>d.jsxs(W,{children:[d.jsxs(at,{spacing:3,children:[d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",sx:{px:4},children:[d.jsx(RL,{number:c+1}),d.jsx(ne,{variant:"subtitle1",sx:{fontWeight:600,color:"text.primary",letterSpacing:"-0.01em"},children:u.title})]}),d.jsx(W,{sx:{px:4,pl:7},children:u.content})]}),cp.palette.mode==="dark"?"grey.800":"grey.100"}})]},u.title))})})})]})}function EL(){const{isAuthenticated:e,loading:t,user:n}=Hh();return t?d.jsx(W,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:d.jsx(to,{})}):d.jsxs(W,{sx:{width:"100%",maxWidth:1200,margin:"0 auto",padding:4},children:[d.jsx($d,{title:"Submit a Model for Evaluation",subtitle:d.jsxs(d.Fragment,{children:["Add ",d.jsx("span",{style:{fontWeight:600},children:"your"})," model to the Open LLM Leaderboard"]})}),d.jsx(kL,{}),d.jsx(wL,{user:n,isAuthenticated:e}),d.jsx(yL,{defaultExpanded:!1})]})}const PL=Ze(d.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),IL=[{title:"Open LLM Leaderboard v2",authors:"Clémentine Fourrier, Nathan Habib, Alina Lozovskaya, Konrad Szafer, Thomas Wolf",citation:`@misc{open-llm-leaderboard-v2, + author = {Clémentine Fourrier and Nathan Habib and Alina Lozovskaya and Konrad Szafer and Thomas Wolf}, + title = {Open LLM Leaderboard v2}, + year = {2024}, + publisher = {Hugging Face}, + howpublished = "\\url{https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard}", +}`,type:"main"},{title:"Evaluation Framework",authors:"Leo Gao et al.",citation:`@software{eval-harness, + author = {Gao, Leo and Tow, Jonathan and Biderman, Stella and Black, Sid and DiPofi, Anthony and Foster, Charles and Golding, Laurence and Hsu, Jeffrey and McDonell, Kyle and Muennighoff, Niklas and Phang, Jason and Reynolds, Laria and Tang, Eric and Thite, Anish and Wang, Ben and Wang, Kevin and Zou, Andy}, + title = {A framework for few-shot language model evaluation}, + month = sep, + year = 2021, + publisher = {Zenodo}, + version = {v0.0.1}, + doi = {10.5281/zenodo.5371628}, + url = {https://doi.org/10.5281/zenodo.5371628}, +}`,url:"https://doi.org/10.5281/zenodo.5371628"}],ML=[{title:"Open LLM Leaderboard v1",authors:"Edward Beeching, Clémentine Fourrier, Nathan Habib, Sheon Han, Nathan Lambert, Nazneen Rajani, Omar Sanseviero, Lewis Tunstall, Thomas Wolf",citation:`@misc{open-llm-leaderboard-v1, + author = {Edward Beeching and Clémentine Fourrier and Nathan Habib and Sheon Han and Nathan Lambert and Nazneen Rajani and Omar Sanseviero and Lewis Tunstall and Thomas Wolf}, + title = {Open LLM Leaderboard (2023-2024)}, + year = {2023}, + publisher = {Hugging Face}, + howpublished = "\\url{https://huggingface.co/spaces/open-llm-leaderboard-old/open_llm_leaderboard}" +}`,type:"main"}],LL=[{title:"IFEval: Instruction-Following Evaluation",authors:"Zhou et al.",citation:`@misc{zhou2023instructionfollowingevaluationlargelanguage, + title={Instruction-Following Evaluation for Large Language Models}, + author={Jeffrey Zhou and Tianjian Lu and Swaroop Mishra and Siddhartha Brahma and Sujoy Basu and Yi Luan and Denny Zhou and Le Hou}, + year={2023}, + eprint={2311.07911}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2311.07911}, +}`,url:"https://arxiv.org/abs/2311.07911"},{title:"BBH: Big-Bench Hard",authors:"Suzgun et al.",citation:`@misc{suzgun2022challengingbigbenchtaskschainofthought, + title={Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them}, + author={Mirac Suzgun and Nathan Scales and Nathanael Schärli and Sebastian Gehrmann and Yi Tay and Hyung Won Chung and Aakanksha Chowdhery and Quoc V. Le and Ed H. Chi and Denny Zhou and Jason Wei}, + year={2022}, + eprint={2210.09261}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2210.09261}, +}`,url:"https://arxiv.org/abs/2210.09261"},{title:"MATH: Mathematics Aptitude Test of Heuristics - Level 5",authors:"Hendrycks et al.",citation:`@misc{hendrycks2021measuringmathematicalproblemsolving, + title={Measuring Mathematical Problem Solving With the MATH Dataset}, + author={Dan Hendrycks and Collin Burns and Saurav Kadavath and Akul Arora and Steven Basart and Eric Tang and Dawn Song and Jacob Steinhardt}, + year={2021}, + eprint={2103.03874}, + archivePrefix={arXiv}, + primaryClass={cs.LG}, + url={https://arxiv.org/abs/2103.03874}, +}`,url:"https://arxiv.org/abs/2103.03874"},{title:"GPQA: Graduate-Level Google-Proof Q&A",authors:"Rein et al.",citation:`@misc{rein2023gpqagraduatelevelgoogleproofqa, + title={GPQA: A Graduate-Level Google-Proof Q&A Benchmark}, + author={David Rein and Betty Li Hou and Asa Cooper Stickland and Jackson Petty and Richard Yuanzhe Pang and Julien Dirani and Julian Michael and Samuel R. Bowman}, + year={2023}, + eprint={2311.12022}, + archivePrefix={arXiv}, + primaryClass={cs.AI}, + url={https://arxiv.org/abs/2311.12022}, +}`,url:"https://arxiv.org/abs/2311.12022"},{title:"MuSR: Multistep Soft Reasoning",authors:"Sprague et al.",citation:`@misc{sprague2024musrtestinglimitschainofthought, + title={MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoning}, + author={Zayne Sprague and Xi Ye and Kaj Bostrom and Swarat Chaudhuri and Greg Durrett}, + year={2024}, + eprint={2310.16049}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2310.16049}, +}`,url:"https://arxiv.org/abs/2310.16049"},{title:"MMLU-Pro: Massive Multitask Language Understanding Professional",authors:"Wang et al.",citation:`@misc{wang2024mmluprorobustchallengingmultitask, + title={MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmark}, + author={Yubo Wang and Xueguang Ma and Ge Zhang and Yuansheng Ni and Abhranil Chandra and Shiguang Guo and Weiming Ren and Aaran Arulraj and Xuan He and Ziyan Jiang and Tianle Li and Max Ku and Kai Wang and Alex Zhuang and Rongqi Fan and Xiang Yue and Wenhu Chen}, + year={2024}, + eprint={2406.01574}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/2406.01574}, +}`,url:"https://arxiv.org/abs/2406.01574"}],Yp=({citation:e,title:t,authors:n,url:o,type:s})=>{const a=()=>{navigator.clipboard.writeText(e)};return d.jsxs(mn,{elevation:0,sx:{p:3,border:"1px solid",borderColor:"grey.200",backgroundColor:"transparent",borderRadius:2,position:"relative"},children:[d.jsxs(W,{sx:{mb:2},children:[d.jsx(ne,{variant:"h6",sx:{mb:.5},children:t}),d.jsx(ne,{variant:"body2",color:"text.secondary",children:n}),o&&d.jsx(Zr,{href:o,target:"_blank",rel:"noopener noreferrer",sx:{fontSize:"0.875rem",display:"block",mt:.5},children:"View paper →"})]}),d.jsxs(W,{sx:{backgroundColor:"grey.900",borderRadius:1,p:2,position:"relative"},children:[d.jsx(Ln,{title:"Copy citation",placement:"top",children:d.jsx(tu,{onClick:a,size:"small",sx:{position:"absolute",top:8,right:8,color:"grey.500","&:hover":{color:"grey.300"}},children:d.jsx(PL,{fontSize:"small"})})}),d.jsx(W,{component:"pre",sx:{margin:0,color:"#fff",fontSize:"0.875rem",fontFamily:"monospace",whiteSpace:"pre",textAlign:"left",overflow:"auto"},children:d.jsx("code",{children:e})})]})]})};function TL(){return d.jsxs(W,{sx:{width:"100%",maxWidth:1200,margin:"0 auto",padding:4},children:[d.jsx($d,{title:"Citation Information",subtitle:"How to cite the Open LLM Leaderboard in your work"}),d.jsx(kd,{severity:"info",sx:{mb:4},children:d.jsx(ne,{variant:"body2",children:"The citations below include both the leaderboard itself and the individual benchmarks used in our evaluation suite."})}),d.jsxs(W,{sx:{mb:6},children:[d.jsx(ne,{variant:"h5",sx:{mb:3},children:"Leaderboard"}),d.jsx(W,{sx:{display:"flex",flexDirection:"column",gap:3},children:IL.map((e,t)=>d.jsx(Yp,{...e},t))})]}),d.jsxs(W,{sx:{mb:6},children:[d.jsx(ne,{variant:"h5",sx:{mb:3},children:"Benchmarks"}),d.jsx(W,{sx:{display:"flex",flexDirection:"column",gap:3},children:LL.map((e,t)=>d.jsx(Yp,{...e},t))})]}),d.jsxs(W,{children:[d.jsx(ne,{variant:"h5",sx:{mb:3},children:"Prior Work"}),d.jsx(W,{sx:{display:"flex",flexDirection:"column",gap:3},children:ML.map((e,t)=>d.jsx(Yp,{...e},t))})]})]})}const jL=Ze(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),OL=Ze(d.jsx("path",{d:"M18 13h-.68l-2 2h1.91L19 17H5l1.78-2h2.05l-2-2H6l-3 3v4c0 1.1.89 2 1.99 2H19c1.1 0 2-.89 2-2v-4zm-1-5.05-4.95 4.95-3.54-3.54 4.95-4.95zm-4.24-5.66L6.39 8.66c-.39.39-.39 1.02 0 1.41l4.95 4.95c.39.39 1.02.39 1.41 0l6.36-6.36c.39-.39.39-1.02 0-1.41L14.16 2.3c-.38-.4-1.01-.4-1.4-.01"}),"HowToVote"),_L=Ze(d.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),$L=()=>d.jsxs(W,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:8,textAlign:"center"},children:[d.jsx(OL,{sx:{fontSize:100,color:"grey.300",mb:3}}),d.jsx(ne,{variant:"h4",component:"h2",sx:{fontWeight:"bold",color:"grey.700",mb:2},children:"No Models to Vote"}),d.jsxs(ne,{variant:"body1",sx:{color:"grey.600",maxWidth:450,mx:"auto"},children:["There are currently no models waiting for votes.",d.jsx("br",{}),"Check back later!"]})]});function AL(){const{isAuthenticated:e,user:t,loading:n}=Hh(),[o,s]=w.useState([]),[a,u]=w.useState(!0),[c,p]=w.useState(null),[h,g]=w.useState(new Set),y=x=>{if(!x)return"N/A";const b=new Date,v=new Date(x),R=Math.floor((b-v)/(1e3*60*60));if(R<24)return`${R}h`;const E=Math.floor(R/24);return E<7?`${E}d`:`${Math.floor(E/7)}w`};w.useEffect(()=>{(async()=>{if(!(!e||!t))try{const b=JSON.parse(localStorage.getItem(`votes_${t.username}`)||"[]"),v=new Set(b),R=await fetch(`/api/votes/user/${t.username}`);if(!R.ok)throw new Error("Failed to fetch user votes");const E=await R.json(),L=new Set([...E.map(k=>k.model),...v]);g(L)}catch(b){console.error("Error fetching user votes:",b)}})()},[e,t]),w.useEffect(()=>{(async()=>{try{const b=await fetch("/api/models/pending");if(!b.ok)throw new Error("Failed to fetch pending models");const v=await b.json(),E=(await Promise.all(v.map(async L=>{const[k,P]=L.name.split("/"),j=await(await fetch(`/api/votes/model/${k}/${P}`)).json(),_=Object.values(j.votes_by_revision||{}).reduce((V,I)=>V+I,0),N=y(L.submission_time);return{...L,votes:_,votes_by_revision:j.votes_by_revision,wait_time:N,hasVoted:h.has(L.name)}}))).sort((L,k)=>k.votes-L.votes);s(E)}catch(b){p(b.message)}finally{u(!1)}})()},[h]);const C=async x=>{if(e)try{g(P=>{const M=new Set([...P,x]);if(t){const j=JSON.parse(localStorage.getItem(`votes_${t.username}`)||"[]");j.includes(x)||(j.push(x),localStorage.setItem(`votes_${t.username}`,JSON.stringify(j)))}return M});const[b,v]=x.split("/");if(!(await fetch(`/api/votes/${x}?vote_type=up&user_id=${t.username}`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw g(P=>{const M=new Set(P);if(M.delete(x),t){const _=JSON.parse(localStorage.getItem(`votes_${t.username}`)||"[]").filter(N=>N!==x);localStorage.setItem(`votes_${t.username}`,JSON.stringify(_))}return M}),new Error("Failed to submit vote");const L=await(await fetch(`/api/votes/model/${b}/${v}`)).json(),k=Object.values(L.votes_by_revision||{}).reduce((P,M)=>P+M,0);s(P=>P.map(j=>j.name===x?{...j,votes:k,votes_by_revision:L.votes_by_revision}:j).sort((j,_)=>_.votes-j.votes))}catch(b){p(b.message)}};return n?d.jsx(W,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:d.jsx(to,{})}):d.jsxs(W,{sx:{width:"100%",maxWidth:1200,margin:"0 auto",padding:4},children:[d.jsx($d,{title:"Vote for the Next Models",subtitle:d.jsxs(d.Fragment,{children:["Help us ",d.jsx("span",{style:{fontWeight:600},children:"prioritize"})," which models to evaluate next"]})}),c&&d.jsx(kd,{severity:"error",sx:{mb:2},children:c}),d.jsx(Sv,{actionText:"vote for models"}),d.jsxs(mn,{elevation:0,sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",minHeight:400},children:[d.jsx(W,{sx:{px:3,py:2,borderBottom:"1px solid",borderColor:x=>x.palette.mode==="dark"?re(x.palette.divider,.1):"grey.200",bgcolor:x=>x.palette.mode==="dark"?re(x.palette.background.paper,.5):"grey.50"},children:d.jsx(ne,{variant:"h6",sx:{fontWeight:600,color:"text.primary"},children:"Models Pending Evaluation"})}),d.jsxs(W,{sx:{px:3,py:1.5,borderBottom:"1px solid",borderColor:"divider",bgcolor:"background.paper",display:"grid",gridTemplateColumns:"1fr 200px 160px",gap:3,alignItems:"center"},children:[d.jsx(W,{children:d.jsx(ne,{variant:"subtitle2",color:"text.secondary",children:"Model"})}),d.jsx(W,{sx:{textAlign:"right"},children:d.jsx(ne,{variant:"subtitle2",color:"text.secondary",children:"Votes"})}),d.jsx(W,{sx:{textAlign:"right"},children:d.jsx(ne,{variant:"subtitle2",color:"text.secondary",children:"Priority"})})]}),a?d.jsx(W,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",width:"100%",bgcolor:"background.paper"},children:d.jsx(to,{})}):o.length===0&&!a?d.jsx($L,{}):d.jsx(E4,{sx:{p:0,bgcolor:"background.paper"},children:o.map((x,b)=>{const v=b<3;return d.jsxs(kt.Fragment,{children:[b>0&&d.jsx(v1,{}),d.jsxs(rk,{sx:{py:2.5,px:3,display:"grid",gridTemplateColumns:"1fr 200px 160px",gap:3,alignItems:"center",position:"relative","&:hover":{bgcolor:"action.hover"}},children:[d.jsx(W,{children:d.jsxs(at,{spacing:1,children:[d.jsxs(at,{direction:"row",spacing:1,alignItems:"center",children:[d.jsx(Zr,{href:`https://huggingface.co/${x.name}`,target:"_blank",rel:"noopener noreferrer",sx:{textDecoration:"none",color:"primary.main",fontWeight:500,"&:hover":{textDecoration:"underline"}},children:x.name}),d.jsx(tu,{size:"small",href:`https://huggingface.co/${x.name}`,target:"_blank",rel:"noopener noreferrer",sx:{ml:.5,p:.5,color:"action.active","&:hover":{color:"primary.main"}},children:d.jsx(Fi,{sx:{fontSize:"1rem"}})})]}),d.jsxs(at,{direction:"row",spacing:2,alignItems:"center",children:[d.jsxs(at,{direction:"row",spacing:.5,alignItems:"center",children:[d.jsx(bv,{sx:{fontSize:"0.875rem",color:"text.secondary"}}),d.jsx(ne,{variant:"body2",color:"text.secondary",children:x.wait_time})]}),d.jsxs(at,{direction:"row",spacing:.5,alignItems:"center",children:[d.jsx(jL,{sx:{fontSize:"0.875rem",color:"text.secondary"}}),d.jsx(ne,{variant:"body2",color:"text.secondary",children:x.submitter})]})]})]})}),d.jsx(W,{sx:{textAlign:"right"},children:d.jsxs(at,{direction:"row",spacing:2.5,justifyContent:"flex-end",alignItems:"center",children:[d.jsxs(at,{alignItems:"center",sx:{minWidth:"90px"},children:[d.jsxs(ne,{variant:"h4",component:"div",sx:{fontWeight:700,lineHeight:1,fontSize:"2rem",display:"flex",alignItems:"center",justifyContent:"center"},children:[d.jsx(ne,{component:"span",sx:{fontSize:"1.5rem",fontWeight:600,color:"primary.main",lineHeight:1,mr:.5,mt:"-2px"},children:"+"}),d.jsx(ne,{component:"span",sx:{color:x.votes===0?"text.primary":"primary.main",fontWeight:700,lineHeight:1},children:x.votes>999?"999":x.votes})]}),d.jsx(ne,{variant:"caption",sx:{color:"text.secondary",fontWeight:500,mt:.5,textTransform:"uppercase",letterSpacing:"0.05em",fontSize:"0.75rem"},children:"votes"})]}),d.jsx(ca,{variant:x.hasVoted?"contained":"outlined",size:"large",onClick:()=>C(x.name),disabled:!e||x.hasVoted,color:"primary",sx:{minWidth:"100px",height:"40px",textTransform:"none",fontWeight:600,fontSize:"0.95rem",...x.hasVoted?{bgcolor:"primary.main","&:hover":{bgcolor:"primary.dark"},"&.Mui-disabled":{bgcolor:"primary.main",color:"white",opacity:.7}}:{borderWidth:2,"&:hover":{borderWidth:2}}},children:x.hasVoted?d.jsxs(at,{direction:"row",spacing:.5,alignItems:"center",children:[d.jsx(_L,{sx:{fontSize:"1.2rem"}}),d.jsx("span",{children:"Voted"})]}):"Vote"})]})}),d.jsx(W,{sx:{textAlign:"right"},children:d.jsx(ui,{label:d.jsxs(at,{direction:"row",spacing:.5,alignItems:"center",children:[v&&d.jsx(ne,{variant:"body2",sx:{fontWeight:600,color:v?"primary.main":"text.primary",letterSpacing:"0.02em"},children:"HIGH"}),d.jsxs(ne,{variant:"body2",sx:{fontWeight:600,color:v?"primary.main":"text.secondary",letterSpacing:"0.02em"},children:["#",b+1]})]}),size:"medium",variant:v?"filled":"outlined",sx:{height:36,minWidth:"100px",bgcolor:v?R=>re(R.palette.primary.main,.1):"transparent",borderColor:v?"primary.main":"grey.300",borderWidth:2,"& .MuiChip-label":{px:2,fontSize:"0.95rem"}}})})]})]},x.name)})})]})]})}const FL=()=>d.jsx(W,{component:"footer",sx:{width:"100%",py:4,textAlign:"center"},children:d.jsxs(ne,{variant:"body2",color:"text.secondary",sx:{mx:4},children:["© 2024 Hugging Face - Open LLM Leaderboard - Made with 🤗 by the HF team -"," ",d.jsx(Zr,{href:"https://huggingface.co",target:"_blank",rel:"noopener noreferrer",color:"inherit",children:"huggingface.co"})]})}),zL=e=>({typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif"].join(","),h1:{fontFamily:'"Source Sans Pro", sans-serif'},h2:{fontFamily:'"Source Sans Pro", sans-serif'},h3:{fontFamily:'"Source Sans Pro", sans-serif'},h4:{fontFamily:'"Source Sans Pro", sans-serif'},h5:{fontFamily:'"Source Sans Pro", sans-serif'},h6:{fontFamily:'"Source Sans Pro", sans-serif'},subtitle1:{fontFamily:'"Source Sans Pro", sans-serif'},subtitle2:{fontFamily:'"Source Sans Pro", sans-serif'}},palette:{mode:e,primary:{main:"#4F86C6",light:e==="light"?"#7BA7D7":"#6B97D7",dark:e==="light"?"#2B5C94":"#3B6CA4",50:e==="light"?re("#4F86C6",.05):re("#4F86C6",.15),100:e==="light"?re("#4F86C6",.1):re("#4F86C6",.2),200:e==="light"?re("#4F86C6",.2):re("#4F86C6",.3),contrastText:"#fff"},background:{default:e==="light"?"#f8f9fa":"#0a0a0a",paper:e==="light"?"#fff":"#1a1a1a",subtle:e==="light"?"grey.100":"grey.900",hover:e==="light"?"action.hover":re("#fff",.08),tooltip:re(e==="light"?"#212121":"#fff",.9)},text:{primary:e==="light"?"rgba(0, 0, 0, 0.87)":"#fff",secondary:e==="light"?"rgba(0, 0, 0, 0.6)":"rgba(255, 255, 255, 0.7)",disabled:e==="light"?"rgba(0, 0, 0, 0.38)":"rgba(255, 255, 255, 0.5)",hint:e==="light"?"rgba(0, 0, 0, 0.38)":"rgba(255, 255, 255, 0.5)"},divider:e==="light"?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)",action:{active:e==="light"?"rgba(0, 0, 0, 0.54)":"rgba(255, 255, 255, 0.7)",hover:e==="light"?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.08)",selected:e==="light"?"rgba(0, 0, 0, 0.08)":"rgba(255, 255, 255, 0.16)",disabled:e==="light"?"rgba(0, 0, 0, 0.26)":"rgba(255, 255, 255, 0.3)",disabledBackground:e==="light"?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},shape:{borderRadius:8},components:{MuiCssBaseline:{styleOverrides:{"html, body":{backgroundColor:"background.default",color:e==="dark"?"#fff":"#000"},body:{"& *::-webkit-scrollbar":{width:8,height:8,backgroundColor:"transparent"},"& *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e==="light"?re("#000",.2):re("#fff",.1),"&:hover":{backgroundColor:e==="light"?re("#000",.3):re("#fff",.15)}}}}},MuiButton:{styleOverrides:{root:{borderRadius:8}}},MuiPaper:{defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none",boxShadow:"none",border:"1px solid",borderColor:e==="light"?"rgba(0, 0, 0, 0.12)!important":"rgba(255, 255, 255, 0.25)!important"},rounded:{borderRadius:12}}},MuiTableCell:{styleOverrides:{root:{borderColor:t=>re(t.palette.divider,t.palette.mode==="dark"?.1:.2)},head:{backgroundColor:e==="light"?"grey.50":"grey.900",color:"text.primary",fontWeight:600}}},MuiTableRow:{styleOverrides:{root:{backgroundColor:"transparent"}}},MuiTableContainer:{styleOverrides:{root:{backgroundColor:"background.paper",borderRadius:8,border:"none",boxShadow:"none"}}},MuiSlider:{styleOverrides:{root:{"& .MuiSlider-valueLabel":{backgroundColor:"background.paper",color:"text.primary",border:"1px solid",borderColor:"divider",boxShadow:e==="light"?"0px 2px 4px rgba(0, 0, 0, 0.1)":"0px 2px 4px rgba(0, 0, 0, 0.3)"}},thumb:{"&:hover":{boxShadow:t=>`0px 0px 0px 8px ${re(t.palette.primary.main,e==="light"?.08:.16)}`},"&.Mui-active":{boxShadow:t=>`0px 0px 0px 12px ${re(t.palette.primary.main,e==="light"?.08:.16)}`}},track:{border:"none"},rail:{opacity:e==="light"?.38:.3},mark:{backgroundColor:e==="light"?"grey.400":"grey.600"},markLabel:{color:"text.secondary"}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:8}}}},MuiChip:{styleOverrides:{root:{borderRadius:8},outlinedInfo:{borderWidth:2,fontWeight:600,bgcolor:"info.100",borderColor:"info.400",color:"info.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"info.200"}},outlinedWarning:{borderWidth:2,fontWeight:600,bgcolor:"warning.100",borderColor:"warning.400",color:"warning.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"warning.200"}},outlinedSuccess:{borderWidth:2,fontWeight:600,bgcolor:"success.100",borderColor:"success.400",color:"success.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"success.200"}},outlinedError:{borderWidth:2,fontWeight:600,bgcolor:"error.100",borderColor:"error.400",color:"error.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"error.200"}},outlinedPrimary:{borderWidth:2,fontWeight:600,bgcolor:"primary.100",borderColor:"primary.400",color:"primary.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"primary.200"}},outlinedSecondary:{borderWidth:2,fontWeight:600,bgcolor:"secondary.100",borderColor:"secondary.400",color:"secondary.700","& .MuiChip-label":{px:1.2},"&:hover":{bgcolor:"secondary.200"}}}},MuiIconButton:{styleOverrides:{root:{borderRadius:8,padding:"8px","&.MuiIconButton-sizeSmall":{padding:"4px",borderRadius:6}}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:re(e==="light"?"#212121":"#424242",.9),color:"#fff",fontSize:"0.875rem",padding:"8px 12px",maxWidth:400,borderRadius:8,lineHeight:1.4,border:"1px solid",borderColor:e==="light"?re("#fff",.1):re("#fff",.05),boxShadow:e==="light"?"0 2px 8px rgba(0, 0, 0, 0.15)":"0 2px 8px rgba(0, 0, 0, 0.5)","& b":{fontWeight:600,color:"inherit"},"& a":{color:e==="light"?"#90caf9":"#64b5f6",textDecoration:"none","&:hover":{textDecoration:"underline"}}},arrow:{color:re(e==="light"?"#212121":"#424242",.9),"&:before":{border:"1px solid",borderColor:e==="light"?re("#fff",.1):re("#fff",.05)}}},defaultProps:{arrow:!0,enterDelay:400,leaveDelay:200}},MuiAppBar:{styleOverrides:{root:{border:"none",borderBottom:"none"}}}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1240,xl:1536}}}),NL=e=>{const t=zL(e);return wd(t)},DL=()=>{const e=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[t,n]=w.useState(e);return w.useEffect(()=>{const s=window.matchMedia("(prefers-color-scheme: dark)"),a=u=>{n(u.matches?"dark":"light")};return s.addEventListener("change",a),()=>s.removeEventListener("change",a)},[]),{mode:t,toggleTheme:()=>{n(s=>s==="light"?"dark":"light")}}},BL=new LP({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});function VL(){const e=Io(),[t]=ha();return w.useEffect(()=>{if(!(window.location!==window.parent.location))return;const o=window.location.search,s=window.location.hash;window.parent.postMessage({queryString:o,hash:s},"https://huggingface.co")},[e,t]),w.useEffect(()=>{const n=o=>{console.log("hash change event",o)};return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),null}function UL(){const{mode:e,toggleTheme:t}=DL(),n=NL(e);return d.jsx("div",{className:"App",style:{height:"100%",width:"100%",WebkitOverflowScrolling:"touch",overflow:"auto"},children:d.jsx(_P,{client:BL,children:d.jsxs(nC,{theme:n,children:[d.jsx(Mw,{}),d.jsx(w8,{children:d.jsxs(hP,{children:[d.jsx(VL,{}),d.jsxs(W,{sx:{minHeight:"100vh",display:"flex",flexDirection:"column",bgcolor:"background.default",color:"text.primary"},children:[d.jsx(nP,{onToggleTheme:t,mode:e}),d.jsx(W,{sx:{flex:1,display:"flex",flexDirection:"column",width:"100%",px:4,pb:4},children:d.jsxs(x8,{children:[d.jsx(hl,{path:"/",element:d.jsx(oL,{})}),d.jsx(hl,{path:"/add",element:d.jsx(EL,{})}),d.jsx(hl,{path:"/quote",element:d.jsx(TL,{})}),d.jsx(hl,{path:"/vote",element:d.jsx(AL,{})})]})}),d.jsx(FL,{})]})]})})]})})})}P3.createRoot(document.getElementById("root")).render(d.jsx(w.StrictMode,{children:d.jsx(UL,{})}));