function sm(l,s){for(var u=0;uc[d]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function u(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(d){if(d.ep)return;d.ep=!0;const f=u(d);fetch(d.href,f)}})();function xd(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var ku={exports:{}},Yr={},Eu={exports:{}},fe={};/** * @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 Wc;function am(){if(Wc)return fe;Wc=1;var l=Symbol.for("react.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.iterator;function L(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K=Object.assign,j={};function T(S,w,A){this.props=S,this.context=w,this.refs=j,this.updater=A||z}T.prototype.isReactComponent={},T.prototype.setState=function(S,w){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,w,"setState")},T.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function W(){}W.prototype=T.prototype;function V(S,w,A){this.props=S,this.context=w,this.refs=j,this.updater=A||z}var te=V.prototype=new W;te.constructor=V,K(te,T.prototype),te.isPureReactComponent=!0;var q=Array.isArray,le=Object.prototype.hasOwnProperty,ne={current:null},ue={key:!0,ref:!0,__self:!0,__source:!0};function ye(S,w,A){var B,b={},Y=null,re=null;if(w!=null)for(B in w.ref!==void 0&&(re=w.ref),w.key!==void 0&&(Y=""+w.key),w)le.call(w,B)&&!ue.hasOwnProperty(B)&&(b[B]=w[B]);var se=arguments.length-2;if(se===1)b.children=A;else if(1>>1,w=F[S];if(0>>1;Sd(b,U))Yd(re,b)?(F[S]=re,F[Y]=U,S=Y):(F[S]=b,F[B]=U,S=B);else if(Yd(re,U))F[S]=re,F[Y]=U,S=Y;else break e}}return Z}function d(F,Z){var U=F.sortIndex-Z.sortIndex;return U!==0?U:F.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,m=h.now();l.unstable_now=function(){return h.now()-m}}var N=[],P=[],R=1,_=null,L=3,z=!1,K=!1,j=!1,T=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function te(F){for(var Z=u(P);Z!==null;){if(Z.callback===null)c(P);else if(Z.startTime<=F)c(P),Z.sortIndex=Z.expirationTime,s(N,Z);else break;Z=u(P)}}function q(F){if(j=!1,te(F),!K)if(u(N)!==null)K=!0,_e(le);else{var Z=u(P);Z!==null&&he(q,Z.startTime-F)}}function le(F,Z){K=!1,j&&(j=!1,W(ye),ye=-1),z=!0;var U=L;try{for(te(Z),_=u(N);_!==null&&(!(_.expirationTime>Z)||F&&!Ce());){var S=_.callback;if(typeof S=="function"){_.callback=null,L=_.priorityLevel;var w=S(_.expirationTime<=Z);Z=l.unstable_now(),typeof w=="function"?_.callback=w:_===u(N)&&c(N),te(Z)}else c(N);_=u(N)}if(_!==null)var A=!0;else{var B=u(P);B!==null&&he(q,B.startTime-Z),A=!1}return A}finally{_=null,L=U,z=!1}}var ne=!1,ue=null,ye=-1,de=5,xe=-1;function Ce(){return!(l.unstable_now()-xeF||125S?(F.sortIndex=U,s(P,F),u(N)===null&&F===u(P)&&(j?(W(ye),ye=-1):j=!0,he(q,U-S))):(F.sortIndex=w,s(N,F),K||z||(K=!0,_e(le))),F},l.unstable_shouldYield=Ce,l.unstable_wrapCallback=function(F){var Z=L;return function(){var U=L;L=Z;try{return F.apply(this,arguments)}finally{L=U}}}})(_u)),_u}var Yc;function pm(){return Yc||(Yc=1,Nu.exports=fm()),Nu.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 Xc;function mm(){if(Xc)return tt;Xc=1;var l=Vu(),s=pm();function u(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N=Object.prototype.hasOwnProperty,P=/^[: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]*$/,R={},_={};function L(e){return N.call(_,e)?!0:N.call(R,e)?!1:P.test(e)?_[e]=!0:(R[e]=!0,!1)}function z(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function K(e,t,n,r){if(t===null||typeof t>"u"||z(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function j(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){T[e]=new j(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];T[t]=new j(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){T[e]=new j(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){T[e]=new j(e,2,!1,e,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(e){T[e]=new j(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){T[e]=new j(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){T[e]=new j(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){T[e]=new j(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){T[e]=new j(e,5,!1,e.toLowerCase(),null,!1,!1)});var W=/[\-:]([a-z])/g;function V(e){return e[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(e){var t=e.replace(W,V);T[t]=new j(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(W,V);T[t]=new j(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(W,V);T[t]=new j(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){T[e]=new j(e,1,!1,e.toLowerCase(),null,!1,!1)}),T.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){T[e]=new j(e,1,!1,e.toLowerCase(),null,!0,!0)});function te(e,t,n,r){var o=T.hasOwnProperty(t)?T[t]:null;(o!==null?o.type!==0:r||!(2p||o[a]!==i[p]){var g=` `+o[a].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),g}while(1<=a&&0<=p);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?w(e):""}function b(e){switch(e.tag){case 5:return w(e.type);case 16:return w("Lazy");case 13:return w("Suspense");case 19:return w("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1),e;case 11:return e=B(e.type.render,!1),e;case 1:return e=B(e.type,!0),e;default:return""}}function Y(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ue:return"Fragment";case ne:return"Portal";case de:return"Profiler";case ye:return"StrictMode";case Oe:return"Suspense";case Ne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ze:return t=e.displayName||null,t!==null?t:Y(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return Y(e(t))}catch{}}return null}function re(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Y(t);case 8:return t===ye?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function be(e){var t=ce(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=be(e))}function Xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ce(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jo(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=se(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qu(e,t){t=t.checked,t!=null&&te(e,"checked",t,!1)}function Mo(e,t){qu(e,t);var n=se(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lo(e,t.type,se(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ju(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Lo(e,t,n){(t!=="number"||rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var cr=Array.isArray;function Nn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={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},ff=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){ff.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function os(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function is(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=os(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pf=U({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 zo(e,t){if(t){if(pf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(u(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(u(61))}if(t.style!=null&&typeof t.style!="object")throw Error(u(62))}}function Io(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Do=null;function bo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ao=null,_n=null,Pn=null;function us(e){if(e=zr(e)){if(typeof Ao!="function")throw Error(u(280));var t=e.stateNode;t&&(t=Pl(t),Ao(e.stateNode,e.type,t))}}function ss(e){_n?Pn?Pn.push(e):Pn=[e]:_n=e}function as(){if(_n){var e=_n,t=Pn;if(Pn=_n=null,us(e),t)for(e=0;e>>=0,e===0?32:31-(Cf(e)/Nf|0)|0}var al=64,cl=4194304;function vr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var p=a&~o;p!==0?r=vr(p):(i&=a,i!==0&&(r=vr(i)))}else a=n&~o,a!==0?r=vr(a):i!==0&&(r=vr(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function jf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Nr),bs=" ",As=!1;function Fs(e,t){switch(e){case"keyup":return rp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Us(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function op(e,t){switch(e){case"compositionend":return Us(t);case"keypress":return t.which!==32?null:(As=!0,bs);case"textInput":return e=t.data,e===bs&&As?null:e;default:return null}}function ip(e,t){if(Mn)return e==="compositionend"||!ni&&Fs(e,t)?(e=Ls(),vl=Xo=$t=null,Mn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Qs(n)}}function Ys(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ys(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xs(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function oi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hp(e){var t=Xs(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ys(n.ownerDocument.documentElement,n)){if(r!==null&&oi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Gs(n,i);var a=Gs(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ln=null,ii=null,jr=null,ui=!1;function Zs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ui||Ln==null||Ln!==rl(r)||(r=Ln,"selectionStart"in r&&oi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Rr(jr,r)||(jr=r,r=Cl(ii,"onSelect"),0Dn||(e.current=xi[Dn],xi[Dn]=null,Dn--)}function ge(e,t){Dn++,xi[Dn]=e.current,e.current=t}var Kt={},We=Ht(Kt),Xe=Ht(!1),dn=Kt;function bn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ze(e){return e=e.childContextTypes,e!=null}function Rl(){Se(Xe),Se(We)}function fa(e,t,n){if(We.current!==Kt)throw Error(u(168));ge(We,t),ge(Xe,n)}function pa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(u(108,re(e)||"Unknown",o));return U({},n,r)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,dn=We.current,ge(We,e),ge(Xe,Xe.current),!0}function ma(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=pa(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,Se(Xe),Se(We),ge(We,e)):Se(Xe),ge(Xe,n)}var jt=null,Ml=!1,wi=!1;function ha(e){jt===null?jt=[e]:jt.push(e)}function Pp(e){Ml=!0,ha(e)}function Qt(){if(!wi&&jt!==null){wi=!0;var e=0,t=ve;try{var n=jt;for(ve=1;e>=a,o-=a,Mt=1<<32-ft(t)+o|n<oe?(Ue=ee,ee=null):Ue=ee.sibling;var me=M(k,ee,E[oe],D);if(me===null){ee===null&&(ee=Ue);break}e&&ee&&me.alternate===null&&t(k,ee),x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me,ee=Ue}if(oe===E.length)return n(k,ee),Ee&&pn(k,oe),X;if(ee===null){for(;oeoe?(Ue=ee,ee=null):Ue=ee.sibling;var nn=M(k,ee,me.value,D);if(nn===null){ee===null&&(ee=Ue);break}e&&ee&&nn.alternate===null&&t(k,ee),x=i(nn,x,oe),J===null?X=nn:J.sibling=nn,J=nn,ee=Ue}if(me.done)return n(k,ee),Ee&&pn(k,oe),X;if(ee===null){for(;!me.done;oe++,me=E.next())me=I(k,me.value,D),me!==null&&(x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me);return Ee&&pn(k,oe),X}for(ee=r(k,ee);!me.done;oe++,me=E.next())me=$(ee,k,oe,me.value,D),me!==null&&(e&&me.alternate!==null&&ee.delete(me.key===null?oe:me.key),x=i(me,x,oe),J===null?X=me:J.sibling=me,J=me);return e&&ee.forEach(function(um){return t(k,um)}),Ee&&pn(k,oe),X}function Le(k,x,E,D){if(typeof E=="object"&&E!==null&&E.type===ue&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case le:e:{for(var X=E.key,J=x;J!==null;){if(J.key===X){if(X=E.type,X===ue){if(J.tag===7){n(k,J.sibling),x=o(J,E.props.children),x.return=k,k=x;break e}}else if(J.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===_e&&Sa(X)===J.type){n(k,J.sibling),x=o(J,E.props),x.ref=Ir(k,J,E),x.return=k,k=x;break e}n(k,J);break}else t(k,J);J=J.sibling}E.type===ue?(x=Sn(E.props.children,k.mode,D,E.key),x.return=k,k=x):(D=lo(E.type,E.key,E.props,null,k.mode,D),D.ref=Ir(k,x,E),D.return=k,k=D)}return a(k);case ne:e:{for(J=E.key;x!==null;){if(x.key===J)if(x.tag===4&&x.stateNode.containerInfo===E.containerInfo&&x.stateNode.implementation===E.implementation){n(k,x.sibling),x=o(x,E.children||[]),x.return=k,k=x;break e}else{n(k,x);break}else t(k,x);x=x.sibling}x=gu(E,k.mode,D),x.return=k,k=x}return a(k);case _e:return J=E._init,Le(k,x,J(E._payload),D)}if(cr(E))return Q(k,x,E,D);if(Z(E))return G(k,x,E,D);zl(k,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,x!==null&&x.tag===6?(n(k,x.sibling),x=o(x,E),x.return=k,k=x):(n(k,x),x=vu(E,k.mode,D),x.return=k,k=x),a(k)):n(k,x)}return Le}var Bn=ka(!0),Ea=ka(!1),Il=Ht(null),Dl=null,$n=null,_i=null;function Pi(){_i=$n=Dl=null}function Ri(e){var t=Il.current;Se(Il),e._currentValue=t}function ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vn(e,t){Dl=e,_i=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(qe=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(Dl===null)throw Error(u(308));$n=e,Dl.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var mn=null;function Mi(e){mn===null?mn=[e]:mn.push(e)}function Ca(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Gt=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(pe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Tt(e,n)}return o=r.interleaved,o===null?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Tt(e,n)}function bl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ho(e,n)}}function _a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Al(e,t,n,r){var o=e.updateQueue;Gt=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var g=p,C=g.next;g.next=null,a===null?i=C:a.next=C,a=g;var O=e.alternate;O!==null&&(O=O.updateQueue,p=O.lastBaseUpdate,p!==a&&(p===null?O.firstBaseUpdate=C:p.next=C,O.lastBaseUpdate=g))}if(i!==null){var I=o.baseState;a=0,O=C=g=null,p=i;do{var M=p.lane,$=p.eventTime;if((r&M)===M){O!==null&&(O=O.next={eventTime:$,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var Q=e,G=p;switch(M=t,$=n,G.tag){case 1:if(Q=G.payload,typeof Q=="function"){I=Q.call($,I,M);break e}I=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=G.payload,M=typeof Q=="function"?Q.call($,I,M):Q,M==null)break e;I=U({},I,M);break e;case 2:Gt=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,M=o.effects,M===null?o.effects=[p]:M.push(p))}else $={eventTime:$,lane:M,tag:p.tag,payload:p.payload,callback:p.callback,next:null},O===null?(C=O=$,g=I):O=O.next=$,a|=M;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;M=p,p=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);if(O===null&&(g=I),o.baseState=g,o.firstBaseUpdate=C,o.lastBaseUpdate=O,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);gn|=a,e.lanes=a,e.memoizedState=I}}function Pa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Di.transition;Di.transition={};try{e(!1),t()}finally{ve=n,Di.transition=r}}function Ka(){return at().memoizedState}function Lp(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e))Ga(t,n);else if(n=Ca(e,t,n,r),n!==null){var o=Ye();yt(n,e,r,o),Ya(n,t,r)}}function Tp(e,t,n){var r=Jt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Ga(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,p=i(a,n);if(o.hasEagerState=!0,o.eagerState=p,pt(p,a)){var g=t.interleaved;g===null?(o.next=o,Mi(t)):(o.next=g.next,g.next=o),t.interleaved=o;return}}catch{}finally{}n=Ca(e,t,o,r),n!==null&&(o=Ye(),yt(n,e,r,o),Ya(n,t,r))}}function Qa(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Ga(e,t){Fr=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ho(e,n)}}var Wl={readContext:st,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useInsertionEffect:He,useLayoutEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useMutableSource:He,useSyncExternalStore:He,useId:He,unstable_isNewReconciler:!1},Op={readContext:st,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4194308,4,Ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(4194308,4,e,t)},useInsertionEffect:function(e,t){return $l(4,2,e,t)},useMemo:function(e,t){var n=Et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Lp.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:Da,useDebugValue:Vi,useDeferredValue:function(e){return Et().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Mp.bind(null,e[1]),Et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=Et();if(Ee){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Fe===null)throw Error(u(349));(vn&30)!==0||La(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Aa(Oa.bind(null,r,i,e),[e]),r.flags|=2048,$r(9,Ta.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Et(),t=Fe.identifierPrefix;if(Ee){var n=Lt,r=Mt;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ur++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[St]=t,e[Or]=r,hc(e,t,!1,!1),t.stateNode=e;e:{switch(a=Io(n,r),n){case"dialog":we("cancel",e),we("close",e),o=r;break;case"iframe":case"object":case"embed":we("load",e),o=r;break;case"video":case"audio":for(o=0;oGn&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ee)return Ke(t),null}else 2*Me()-i.renderingStartTime>Gn&&n!==1073741824&&(t.flags|=128,r=!0,Vr(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Me(),t.sibling=null,n=Pe.current,ge(Pe,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(ot&1073741824)!==0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(u(156,t.tag))}function Bp(e,t){switch(ki(t),t.tag){case 1:return Ze(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wn(),Se(Xe),Se(We),Ii(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Oi(t),null;case 13:if(Se(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Un()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Pe),null;case 4:return Wn(),null;case 10:return Ri(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var Gl=!1,Qe=!1,$p=typeof WeakSet=="function"?WeakSet:Set,H=null;function Kn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){je(e,t,r)}}var yc=!1;function Vp(e,t){if(pi=ml,e=Xs(),oi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,p=-1,g=-1,C=0,O=0,I=e,M=null;t:for(;;){for(var $;I!==n||o!==0&&I.nodeType!==3||(p=a+o),I!==i||r!==0&&I.nodeType!==3||(g=a+r),I.nodeType===3&&(a+=I.nodeValue.length),($=I.firstChild)!==null;)M=I,I=$;for(;;){if(I===e)break t;if(M===n&&++C===o&&(p=a),M===i&&++O===r&&(g=a),($=I.nextSibling)!==null)break;I=M,M=I.parentNode}I=$}n=p===-1||g===-1?null:{start:p,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(mi={focusedElem:e,selectionRange:n},ml=!1,H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var Q=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(Q!==null){var G=Q.memoizedProps,Le=Q.memoizedState,k=t.stateNode,x=k.getSnapshotBeforeUpdate(t.elementType===t.type?G:ht(t.type,G),Le);k.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(D){je(t,t.return,D)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return Q=yc,yc=!1,Q}function Wr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&tu(t,n,i)}o=o.next}while(o!==r)}}function Yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xc(e){var t=e.alternate;t!==null&&(e.alternate=null,xc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[Or],delete t[yi],delete t[Np],delete t[_p])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wc(e){return e.tag===5||e.tag===3||e.tag===4}function Sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_l));else if(r!==4&&(e=e.child,e!==null))for(ru(e,t,n),e=e.sibling;e!==null;)ru(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lu(e,t,n),e=e.sibling;e!==null;)lu(e,t,n),e=e.sibling}var Be=null,vt=!1;function Xt(e,t,n){for(n=n.child;n!==null;)kc(e,t,n),n=n.sibling}function kc(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(sl,n)}catch{}switch(n.tag){case 5:Qe||Kn(n,t);case 6:var r=Be,o=vt;Be=null,Xt(e,t,n),Be=r,vt=o,Be!==null&&(vt?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(vt?(e=Be,n=n.stateNode,e.nodeType===8?gi(e.parentNode,n):e.nodeType===1&&gi(e,n),kr(e)):gi(Be,n.stateNode));break;case 4:r=Be,o=vt,Be=n.stateNode.containerInfo,vt=!0,Xt(e,t,n),Be=r,vt=o;break;case 0:case 11:case 14:case 15:if(!Qe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&tu(n,t,a),o=o.next}while(o!==r)}Xt(e,t,n);break;case 1:if(!Qe&&(Kn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(p){je(n,t,p)}Xt(e,t,n);break;case 21:Xt(e,t,n);break;case 22:n.mode&1?(Qe=(r=Qe)||n.memoizedState!==null,Xt(e,t,n),Qe=r):Xt(e,t,n);break;default:Xt(e,t,n)}}function Ec(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $p),t.forEach(function(r){var o=qp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hp(r/1960))-r,10e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,eo=0,(pe&6)!==0)throw Error(u(331));var o=pe;for(pe|=4,H=e.current;H!==null;){var i=H,a=i.child;if((H.flags&16)!==0){var p=i.deletions;if(p!==null){for(var g=0;gMe()-uu?xn(e,0):iu|=n),et(e,t)}function Dc(e,t){t===0&&((e.mode&1)===0?t=1:(t=cl,cl<<=1,(cl&130023424)===0&&(cl=4194304)));var n=Ye();e=Tt(e,t),e!==null&&(gr(e,t,n),et(e,n))}function Zp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dc(e,n)}function qp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(t),Dc(e,n)}var bc;bc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)qe=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return qe=!1,Fp(e,t,n);qe=(e.flags&131072)!==0}else qe=!1,Ee&&(t.flags&1048576)!==0&&va(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ql(e,t),e=t.pendingProps;var o=bn(t,We.current);Vn(t,n),o=Ai(null,t,r,e,o,n);var i=Fi();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ze(r)?(i=!0,jl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Li(t),o.updater=Hl,t.stateNode=o,o._reactInternals=t,Hi(t,r,e,n),t=Yi(null,t,r,!0,i,n)):(t.tag=0,Ee&&i&&Si(t),Ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ql(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=em(r),e=ht(r,e),o){case 0:t=Gi(null,t,r,e,n);break e;case 1:t=ac(null,t,r,e,n);break e;case 11:t=lc(null,t,r,e,n);break e;case 14:t=oc(null,t,r,ht(r.type,e),n);break e}throw Error(u(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Gi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),ac(e,t,r,o,n);case 3:e:{if(cc(t),e===null)throw Error(u(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Na(e,t),Al(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hn(Error(u(423)),t),t=dc(e,t,r,n,o);break e}else if(r!==o){o=Hn(Error(u(424)),t),t=dc(e,t,r,n,o);break e}else for(lt=Wt(t.stateNode.containerInfo.firstChild),rt=t,Ee=!0,mt=null,n=Ea(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Un(),r===o){t=zt(e,t,n);break e}Ge(e,t,r,n)}t=t.child}return t;case 5:return Ra(t),e===null&&Ci(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,hi(r,o)?a=null:i!==null&&hi(r,i)&&(t.flags|=32),sc(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&Ci(t),null;case 13:return fc(e,t,n);case 4:return Ti(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bn(t,null,r,n):Ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),lc(e,t,r,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ge(Il,r._currentValue),r._currentValue=a,i!==null)if(pt(i.value,a)){if(i.children===o.children&&!Xe.current){t=zt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var p=i.dependencies;if(p!==null){a=i.child;for(var g=p.firstContext;g!==null;){if(g.context===r){if(i.tag===1){g=Ot(-1,n&-n),g.tag=2;var C=i.updateQueue;if(C!==null){C=C.shared;var O=C.pending;O===null?g.next=g:(g.next=O.next,O.next=g),C.pending=g}}i.lanes|=n,g=i.alternate,g!==null&&(g.lanes|=n),ji(i.return,n,t),p.lanes|=n;break}g=g.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(u(341));a.lanes|=n,p=a.alternate,p!==null&&(p.lanes|=n),ji(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vn(t,n),o=st(o),r=r(o),t.flags|=1,Ge(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),oc(e,t,r,o,n);case 15:return ic(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Ql(e,t),t.tag=1,Ze(r)?(e=!0,jl(t)):e=!1,Vn(t,n),Za(t,r,o),Hi(t,r,o,n),Yi(null,t,r,!0,e,n);case 19:return mc(e,t,n);case 22:return uc(e,t,n)}throw Error(u(156,t.tag))};function Ac(e,t){return gs(e,t)}function Jp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,n,r){return new Jp(e,t,n,r)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function em(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ie)return 11;if(e===ze)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lo(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")hu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ue:return Sn(n.children,o,i,t);case ye:a=8,o|=8;break;case de:return e=dt(12,n,t,o|2),e.elementType=de,e.lanes=i,e;case Oe:return e=dt(13,n,t,o),e.elementType=Oe,e.lanes=i,e;case Ne:return e=dt(19,n,t,o),e.elementType=Ne,e.lanes=i,e;case he:return oo(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xe:a=10;break e;case Ce:a=9;break e;case ie:a=11;break e;case ze:a=14;break e;case _e:a=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return t=dt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Sn(e,t,n,r){return e=dt(7,e,r,t),e.lanes=n,e}function oo(e,t,n,r){return e=dt(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function vu(e,t,n){return e=dt(6,e,null,t),e.lanes=n,e}function gu(e,t,n){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tm(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function yu(e,t,n,r,o,i,a,p,g){return e=new tm(e,t,n,p,g),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function nm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Cu.exports=mm(),Cu.exports}var qc;function hm(){if(qc)return po;qc=1;var l=Sd();return po.createRoot=l.createRoot,po.hydrateRoot=l.hydrateRoot,po}var vm=hm();const gm=xd(vm);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ym=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kd=(...l)=>l.filter((s,u,c)=>!!s&&s.trim()!==""&&c.indexOf(s)===u).join(" ").trim();/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var xm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wm=v.forwardRef(({color:l="currentColor",size:s=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:d="",children:f,iconNode:h,...m},N)=>v.createElement("svg",{ref:N,...xm,width:s,height:s,stroke:l,strokeWidth:c?Number(u)*24/Number(s):u,className:kd("lucide",d),...m},[...h.map(([P,R])=>v.createElement(P,R)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pt=(l,s)=>{const u=v.forwardRef(({className:c,...d},f)=>v.createElement(wm,{ref:f,iconNode:s,className:kd(`lucide-${ym(l)}`,c),...d}));return u.displayName=`${l}`,u};/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sm=Pt("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const km=Pt("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Em=Pt("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cm=Pt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nm=Pt("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _m=Pt("Construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Pm=Pt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rm=Pt("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jm=Pt("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mm=Pt("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]),bu=[{id:"models",label:"Modelle & Routing",hint:"Modelle kuratieren, Gruppen & Auto-Routing",icon:km},{id:"routing",label:"Routing",hint:"Gateway-Regeln: schnell ↔ schwer",icon:Mm},{id:"system",label:"System",hint:"Metriken, Dienste, Updates",icon:Rm},{id:"memory",label:"Gedächtnis",hint:"Geteiltes Memory verwalten",icon:Em},{id:"connect",label:"Verbinden",hint:"IDE-/Agent-Configs erzeugen",icon:jm},{id:"agent",label:"Hermes",hint:"Agent-Status & WebUI öffnen",icon:Sm}];var Jc=1,Lm=.9,Tm=.8,Om=.17,Pu=.1,Ru=.999,zm=.9999,Im=.99,Dm=/[\\\/_+.#"@\[\(\{&]/,bm=/[\\\/_+.#"@\[\(\{&]/g,Am=/[\s-]/,Ed=/[\s-]/g;function Au(l,s,u,c,d,f,h){if(f===s.length)return d===l.length?Jc:Im;var m=`${d},${f}`;if(h[m]!==void 0)return h[m];for(var N=c.charAt(f),P=u.indexOf(N,d),R=0,_,L,z,K;P>=0;)_=Au(l,s,u,c,P+1,f+1,h),_>R&&(P===d?_*=Jc:Dm.test(l.charAt(P-1))?(_*=Tm,z=l.slice(d,P-1).match(bm),z&&d>0&&(_*=Math.pow(Ru,z.length))):Am.test(l.charAt(P-1))?(_*=Lm,K=l.slice(d,P-1).match(Ed),K&&d>0&&(_*=Math.pow(Ru,K.length))):(_*=Om,d>0&&(_*=Math.pow(Ru,P-d))),l.charAt(P)!==s.charAt(f)&&(_*=zm)),(__&&(_=L*Pu)),_>R&&(R=_),P=u.indexOf(N,P+1);return h[m]=R,R}function ed(l){return l.toLowerCase().replace(Ed," ")}function Fm(l,s,u){return l=u&&u.length>0?`${l+" "+u.join(" ")}`:l,Au(l,s,ed(l),ed(s),0,0,{})}function un(l,s,{checkForDefaultPrevented:u=!0}={}){return function(d){if(l==null||l(d),u===!1||!d.defaultPrevented)return s==null?void 0:s(d)}}function td(l,s){if(typeof l=="function")return l(s);l!=null&&(l.current=s)}function or(...l){return s=>{let u=!1;const c=l.map(d=>{const f=td(d,s);return!u&&typeof f=="function"&&(u=!0),f});if(u)return()=>{for(let d=0;d{var W;const{scope:L,children:z,...K}=_,j=((W=L==null?void 0:L[l])==null?void 0:W[N])||m,T=v.useMemo(()=>K,Object.values(K));return y.jsx(j.Provider,{value:T,children:z})};P.displayName=f+"Provider";function R(_,L){var j;const z=((j=L==null?void 0:L[l])==null?void 0:j[N])||m,K=v.useContext(z);if(K)return K;if(h!==void 0)return h;throw new Error(`\`${_}\` must be used within \`${f}\``)}return[P,R]}const d=()=>{const f=u.map(h=>v.createContext(h));return function(m){const N=(m==null?void 0:m[l])||f;return v.useMemo(()=>({[`__scope${l}`]:{...m,[l]:N}}),[m,N])}};return d.scopeName=l,[c,Bm(d,...s)]}function Bm(...l){const s=l[0];if(l.length===1)return s;const u=()=>{const c=l.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(f){const h=c.reduce((m,{useScope:N,scopeName:P})=>{const _=N(f)[`__scope${P}`];return{...m,..._}},{});return v.useMemo(()=>({[`__scope${s.scopeName}`]:h}),[h])}};return u.scopeName=s.scopeName,u}var Jr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},$m=Wu[" useId ".trim().toString()]||(()=>{}),Vm=0;function bt(l){const[s,u]=v.useState($m());return Jr(()=>{u(c=>c??String(Vm++))},[l]),s?`radix-${s}`:""}var Wm=Wu[" useInsertionEffect ".trim().toString()]||Jr;function Hm({prop:l,defaultProp:s,onChange:u=()=>{},caller:c}){const[d,f,h]=Km({defaultProp:s,onChange:u}),m=l!==void 0,N=m?l:d;{const R=v.useRef(l!==void 0);v.useEffect(()=>{const _=R.current;_!==m&&console.warn(`${c} is changing from ${_?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),R.current=m},[m,c])}const P=v.useCallback(R=>{var _;if(m){const L=Qm(R)?R(l):R;L!==l&&((_=h.current)==null||_.call(h,L))}else f(R)},[m,l,f,h]);return[N,P]}function Km({defaultProp:l,onChange:s}){const[u,c]=v.useState(l),d=v.useRef(u),f=v.useRef(s);return Wm(()=>{f.current=s},[s]),v.useEffect(()=>{var h;d.current!==u&&((h=f.current)==null||h.call(f,u),d.current=u)},[u,d]),[u,c,f]}function Qm(l){return typeof l=="function"}var Cd=Sd();function Nd(l){const s=v.forwardRef((u,c)=>{let{children:d,...f}=u,h=null,m=!1;const N=[];nd(d)&&typeof mo=="function"&&(d=mo(d._payload)),v.Children.forEach(d,L=>{var z;if(qm(L)){m=!0;const K=L;let j="child"in K.props?K.props.child:K.props.children;nd(j)&&typeof mo=="function"&&(j=mo(j._payload)),h=Ym(K,j),N.push((z=h==null?void 0:h.props)==null?void 0:z.children)}else N.push(L)}),h?h=v.cloneElement(h,void 0,N):!m&&v.Children.count(d)===1&&v.isValidElement(d)&&(h=d);const P=h?Zm(h):void 0,R=Cn(c,P);if(!h){if(d||d===0)throw new Error(m?nh(l):th(l));return d}const _=Xm(f,h.props??{});return h.type!==v.Fragment&&(_.ref=c?R:P),v.cloneElement(h,_)});return s.displayName=`${l}.Slot`,s}var Gm=Symbol.for("radix.slottable"),Ym=(l,s)=>{if("child"in l.props){const u=l.props.child;return v.isValidElement(u)?v.cloneElement(u,void 0,l.props.children(u.props.children)):null}return v.isValidElement(s)?s:null};function Xm(l,s){const u={...s};for(const c in s){const d=l[c],f=s[c];/^on[A-Z]/.test(c)?d&&f?u[c]=(...m)=>{const N=f(...m);return d(...m),N}:d&&(u[c]=d):c==="style"?u[c]={...d,...f}:c==="className"&&(u[c]=[d,f].filter(Boolean).join(" "))}return{...l,...u}}function Zm(l){var c,d;let s=(c=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:c.get,u=s&&"isReactWarning"in s&&s.isReactWarning;return u?l.ref:(s=(d=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:d.get,u=s&&"isReactWarning"in s&&s.isReactWarning,u?l.props.ref:l.props.ref||l.ref)}function qm(l){return v.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===Gm}var Jm=Symbol.for("react.lazy");function nd(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===Jm&&"_payload"in l&&eh(l._payload)}function eh(l){return typeof l=="object"&&l!==null&&"then"in l}var th=l=>`${l} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,nh=l=>`${l} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,mo=Wu[" use ".trim().toString()],rh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=rh.reduce((l,s)=>{const u=Nd(`Primitive.${s}`),c=v.forwardRef((d,f)=>{const{asChild:h,...m}=d,N=h?u:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(N,{...m,ref:f})});return c.displayName=`Primitive.${s}`,{...l,[s]:c}},{});function lh(l,s){l&&Cd.flushSync(()=>l.dispatchEvent(s))}function el(l){const s=v.useRef(l);return v.useEffect(()=>{s.current=l}),v.useMemo(()=>((...u)=>{var c;return(c=s.current)==null?void 0:c.call(s,...u)}),[])}function oh(l,s=globalThis==null?void 0:globalThis.document){const u=el(l);v.useEffect(()=>{const c=d=>{d.key==="Escape"&&u(d)};return s.addEventListener("keydown",c,{capture:!0}),()=>s.removeEventListener("keydown",c,{capture:!0})},[u,s])}var ih="DismissableLayer",Fu="dismissableLayer.update",uh="dismissableLayer.pointerDownOutside",sh="dismissableLayer.focusOutside",rd,Hu=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),_d=v.forwardRef((l,s)=>{const{disableOutsidePointerEvents:u=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:m,onDismiss:N,...P}=l,R=v.useContext(Hu),[_,L]=v.useState(null),z=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,K]=v.useState({}),j=Cn(s,de=>L(de)),T=Array.from(R.layers),[W]=[...R.layersWithOutsidePointerEventsDisabled].slice(-1),V=T.indexOf(W),te=_?T.indexOf(_):-1,q=R.layersWithOutsidePointerEventsDisabled.size>0,le=te>=V,ne=v.useRef(!1),ue=fh(de=>{const xe=de.target;if(!(xe instanceof Node))return;const Ce=[...R.branches].some(ie=>ie.contains(xe));!le||Ce||(f==null||f(de),m==null||m(de),de.defaultPrevented||N==null||N())},{ownerDocument:z,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:ne,dismissableSurfaces:R.dismissableSurfaces}),ye=ph(de=>{if(c&&ne.current)return;const xe=de.target;[...R.branches].some(ie=>ie.contains(xe))||(h==null||h(de),m==null||m(de),de.defaultPrevented||N==null||N())},z);return oh(de=>{te===R.layers.size-1&&(d==null||d(de),!de.defaultPrevented&&N&&(de.preventDefault(),N()))},z),v.useEffect(()=>{if(_)return u&&(R.layersWithOutsidePointerEventsDisabled.size===0&&(rd=z.body.style.pointerEvents,z.body.style.pointerEvents="none"),R.layersWithOutsidePointerEventsDisabled.add(_)),R.layers.add(_),ld(),()=>{u&&(R.layersWithOutsidePointerEventsDisabled.delete(_),R.layersWithOutsidePointerEventsDisabled.size===0&&(z.body.style.pointerEvents=rd))}},[_,z,u,R]),v.useEffect(()=>()=>{_&&(R.layers.delete(_),R.layersWithOutsidePointerEventsDisabled.delete(_),ld())},[_,R]),v.useEffect(()=>{const de=()=>K({});return document.addEventListener(Fu,de),()=>document.removeEventListener(Fu,de)},[]),y.jsx(Ve.div,{...P,ref:j,style:{pointerEvents:q?le?"auto":"none":void 0,...l.style},onFocusCapture:un(l.onFocusCapture,ye.onFocusCapture),onBlurCapture:un(l.onBlurCapture,ye.onBlurCapture),onPointerDownCapture:un(l.onPointerDownCapture,ue.onPointerDownCapture)})});_d.displayName=ih;var ah="DismissableLayerBranch",ch=v.forwardRef((l,s)=>{const u=v.useContext(Hu),c=v.useRef(null),d=Cn(s,c);return v.useEffect(()=>{const f=c.current;if(f)return u.branches.add(f),()=>{u.branches.delete(f)}},[u.branches]),y.jsx(Ve.div,{...l,ref:d})});ch.displayName=ah;function dh(){const l=v.useContext(Hu),[s,u]=v.useState(null);return v.useEffect(()=>{if(s)return l.dismissableSurfaces.add(s),()=>{l.dismissableSurfaces.delete(s)}},[s,l.dismissableSurfaces]),u}function fh(l,s){const{ownerDocument:u=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:c=!1,isDeferredPointerDownOutsideRef:d,dismissableSurfaces:f}=s,h=el(l),m=v.useRef(!1),N=v.useRef(!1),P=v.useRef(new Map),R=v.useRef(()=>{});return v.useEffect(()=>{function _(){N.current=!1,d.current=!1,P.current.clear()}function L(){return Array.from(P.current.values()).some(Boolean)}function z(V){if(!N.current)return;const te=V.target;te instanceof Node&&[...f].some(le=>le.contains(te))||P.current.set(V.type,!0),V.type==="click"&&window.setTimeout(()=>{N.current&&R.current()},0)}function K(V){N.current&&P.current.set(V.type,!1)}const j=V=>{if(V.target&&!m.current){let te=function(){u.removeEventListener("click",R.current);const le=L();_(),le||Pd(uh,h,q,{discrete:!0})};const q={originalEvent:V};N.current=!0,d.current=c&&V.button===0,P.current.clear(),!c||V.button!==0?te():(u.removeEventListener("click",R.current),R.current=te,u.addEventListener("click",R.current,{once:!0}))}else u.removeEventListener("click",R.current),_();m.current=!1},T=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const V of T)u.addEventListener(V,z,!0),u.addEventListener(V,K);const W=window.setTimeout(()=>{u.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(W),u.removeEventListener("pointerdown",j),u.removeEventListener("click",R.current);for(const V of T)u.removeEventListener(V,z,!0),u.removeEventListener(V,K)}},[u,h,c,d,f]),{onPointerDownCapture:()=>m.current=!0}}function ph(l,s=globalThis==null?void 0:globalThis.document){const u=el(l),c=v.useRef(!1);return v.useEffect(()=>{const d=f=>{f.target&&!c.current&&Pd(sh,u,{originalEvent:f},{discrete:!1})};return s.addEventListener("focusin",d),()=>s.removeEventListener("focusin",d)},[s,u]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function ld(){const l=new CustomEvent(Fu);document.dispatchEvent(l)}function Pd(l,s,u,{discrete:c}){const d=u.originalEvent.target,f=new CustomEvent(l,{bubbles:!1,cancelable:!0,detail:u});s&&d.addEventListener(l,s,{once:!0}),c?lh(d,f):d.dispatchEvent(f)}var ju="focusScope.autoFocusOnMount",Mu="focusScope.autoFocusOnUnmount",od={bubbles:!1,cancelable:!0},mh="FocusScope",Rd=v.forwardRef((l,s)=>{const{loop:u=!1,trapped:c=!1,onMountAutoFocus:d,onUnmountAutoFocus:f,...h}=l,[m,N]=v.useState(null),P=el(d),R=el(f),_=v.useRef(null),L=Cn(s,j=>N(j)),z=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(c){let j=function(te){if(z.paused||!m)return;const q=te.target;m.contains(q)?_.current=q:on(_.current,{select:!0})},T=function(te){if(z.paused||!m)return;const q=te.relatedTarget;q!==null&&(m.contains(q)||on(_.current,{select:!0}))},W=function(te){if(document.activeElement===document.body)for(const le of te)le.removedNodes.length>0&&on(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",T);const V=new MutationObserver(W);return m&&V.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",T),V.disconnect()}}},[c,m,z.paused]),v.useEffect(()=>{if(m){ud.add(z);const j=document.activeElement;if(!m.contains(j)){const W=new CustomEvent(ju,od);m.addEventListener(ju,P),m.dispatchEvent(W),W.defaultPrevented||(hh(wh(jd(m)),{select:!0}),document.activeElement===j&&on(m))}return()=>{m.removeEventListener(ju,P),setTimeout(()=>{const W=new CustomEvent(Mu,od);m.addEventListener(Mu,R),m.dispatchEvent(W),W.defaultPrevented||on(j??document.body,{select:!0}),m.removeEventListener(Mu,R),ud.remove(z)},0)}}},[m,P,R,z]);const K=v.useCallback(j=>{if(!u&&!c||z.paused)return;const T=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,W=document.activeElement;if(T&&W){const V=j.currentTarget,[te,q]=vh(V);te&&q?!j.shiftKey&&W===q?(j.preventDefault(),u&&on(te,{select:!0})):j.shiftKey&&W===te&&(j.preventDefault(),u&&on(q,{select:!0})):W===V&&j.preventDefault()}},[u,c,z.paused]);return y.jsx(Ve.div,{tabIndex:-1,...h,ref:L,onKeyDown:K})});Rd.displayName=mh;function hh(l,{select:s=!1}={}){const u=document.activeElement;for(const c of l)if(on(c,{select:s}),document.activeElement!==u)return}function vh(l){const s=jd(l),u=id(s,l),c=id(s.reverse(),l);return[u,c]}function jd(l){const s=[],u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const d=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||d?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;u.nextNode();)s.push(u.currentNode);return s}function id(l,s){for(const u of l)if(!gh(u,{upTo:s}))return u}function gh(l,{upTo:s}){if(getComputedStyle(l).visibility==="hidden")return!0;for(;l;){if(s!==void 0&&l===s)return!1;if(getComputedStyle(l).display==="none")return!0;l=l.parentElement}return!1}function yh(l){return l instanceof HTMLInputElement&&"select"in l}function on(l,{select:s=!1}={}){if(l&&l.focus){const u=document.activeElement;l.focus({preventScroll:!0}),l!==u&&yh(l)&&s&&l.select()}}var ud=xh();function xh(){let l=[];return{add(s){const u=l[0];s!==u&&(u==null||u.pause()),l=sd(l,s),l.unshift(s)},remove(s){var u;l=sd(l,s),(u=l[0])==null||u.resume()}}}function sd(l,s){const u=[...l],c=u.indexOf(s);return c!==-1&&u.splice(c,1),u}function wh(l){return l.filter(s=>s.tagName!=="A")}var Sh="Portal",Md=v.forwardRef((l,s)=>{var m;const{container:u,...c}=l,[d,f]=v.useState(!1);Jr(()=>f(!0),[]);const h=u||d&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return h?Cd.createPortal(y.jsx(Ve.div,{...c,ref:s}),h):null});Md.displayName=Sh;function kh(l,s){return v.useReducer((u,c)=>s[u][c]??u,l)}var No=l=>{const{present:s,children:u}=l,c=Eh(s),d=typeof u=="function"?u({present:c.isPresent}):v.Children.only(u),f=Ch(c.ref,Nh(d));return typeof u=="function"||c.isPresent?v.cloneElement(d,{ref:f}):null};No.displayName="Presence";function Eh(l){const[s,u]=v.useState(),c=v.useRef(null),d=v.useRef(l),f=v.useRef("none"),h=l?"mounted":"unmounted",[m,N]=kh(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const P=ho(c.current);f.current=m==="mounted"?P:"none"},[m]),Jr(()=>{const P=c.current,R=d.current;if(R!==l){const L=f.current,z=ho(P);l?N("MOUNT"):z==="none"||(P==null?void 0:P.display)==="none"?N("UNMOUNT"):N(R&&L!==z?"ANIMATION_OUT":"UNMOUNT"),d.current=l}},[l,N]),Jr(()=>{if(s){let P;const R=s.ownerDocument.defaultView??window,_=z=>{const j=ho(c.current).includes(CSS.escape(z.animationName));if(z.target===s&&j&&(N("ANIMATION_END"),!d.current)){const T=s.style.animationFillMode;s.style.animationFillMode="forwards",P=R.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=T)})}},L=z=>{z.target===s&&(f.current=ho(c.current))};return s.addEventListener("animationstart",L),s.addEventListener("animationcancel",_),s.addEventListener("animationend",_),()=>{R.clearTimeout(P),s.removeEventListener("animationstart",L),s.removeEventListener("animationcancel",_),s.removeEventListener("animationend",_)}}else N("ANIMATION_END")},[s,N]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(P=>{c.current=P?getComputedStyle(P):null,u(P)},[])}}function ad(l,s){if(typeof l=="function")return l(s);l!=null&&(l.current=s)}function Ch(...l){const s=v.useRef(l);return s.current=l,v.useCallback(u=>{const c=s.current;let d=!1;const f=c.map(h=>{const m=ad(h,u);return!d&&typeof m=="function"&&(d=!0),m});if(d)return()=>{for(let h=0;h{Nt||(Nt={start:cd(),end:cd()});const{start:l,end:s}=Nt;return document.body.firstElementChild!==l&&document.body.insertAdjacentElement("afterbegin",l),document.body.lastElementChild!==s&&document.body.insertAdjacentElement("beforeend",s),vo++,()=>{vo===1&&(Nt==null||Nt.start.remove(),Nt==null||Nt.end.remove(),Nt=null),vo=Math.max(0,vo-1)}},[])}function cd(){const l=document.createElement("span");return l.setAttribute("data-radix-focus-guard",""),l.tabIndex=0,l.style.outline="none",l.style.opacity="0",l.style.position="fixed",l.style.pointerEvents="none",l}var _t=function(){return _t=Object.assign||function(s){for(var u,c=1,d=arguments.length;c"u")return Vh;var s=Wh(l),u=document.documentElement.clientWidth,c=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,c-u+s[2]-s[0])}},Kh=zd(),rr="data-scroll-locked",Qh=function(l,s,u,c){var d=l.left,f=l.top,h=l.right,m=l.gap;return u===void 0&&(u="margin"),` .`.concat(Rh,` { overflow: hidden `).concat(c,`; padding-right: `).concat(m,"px ").concat(c,`; } body[`).concat(rr,`] { overflow: hidden `).concat(c,`; overscroll-behavior: contain; `).concat([s&&"position: relative ".concat(c,";"),u==="margin"&&` padding-left: `.concat(d,`px; padding-top: `).concat(f,`px; padding-right: `).concat(h,`px; margin-left:0; margin-top:0; margin-right: `).concat(m,"px ").concat(c,`; `),u==="padding"&&"padding-right: ".concat(m,"px ").concat(c,";")].filter(Boolean).join(""),` } .`).concat(ko,` { right: `).concat(m,"px ").concat(c,`; } .`).concat(Eo,` { margin-right: `).concat(m,"px ").concat(c,`; } .`).concat(ko," .").concat(ko,` { right: 0 `).concat(c,`; } .`).concat(Eo," .").concat(Eo,` { margin-right: 0 `).concat(c,`; } body[`).concat(rr,`] { `).concat(jh,": ").concat(m,`px; } `)},fd=function(){var l=parseInt(document.body.getAttribute(rr)||"0",10);return isFinite(l)?l:0},Gh=function(){v.useEffect(function(){return document.body.setAttribute(rr,(fd()+1).toString()),function(){var l=fd()-1;l<=0?document.body.removeAttribute(rr):document.body.setAttribute(rr,l.toString())}},[])},Yh=function(l){var s=l.noRelative,u=l.noImportant,c=l.gapMode,d=c===void 0?"margin":c;Gh();var f=v.useMemo(function(){return Hh(d)},[d]);return v.createElement(Kh,{styles:Qh(f,!s,d,u?"":"!important")})},Uu=!1;if(typeof window<"u")try{var go=Object.defineProperty({},"passive",{get:function(){return Uu=!0,!0}});window.addEventListener("test",go,go),window.removeEventListener("test",go,go)}catch{Uu=!1}var Xn=Uu?{passive:!1}:!1,Xh=function(l){return l.tagName==="TEXTAREA"},Id=function(l,s){if(!(l instanceof Element))return!1;var u=window.getComputedStyle(l);return u[s]!=="hidden"&&!(u.overflowY===u.overflowX&&!Xh(l)&&u[s]==="visible")},Zh=function(l){return Id(l,"overflowY")},qh=function(l){return Id(l,"overflowX")},pd=function(l,s){var u=s.ownerDocument,c=s;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var d=Dd(l,c);if(d){var f=bd(l,c),h=f[1],m=f[2];if(h>m)return!0}c=c.parentNode}while(c&&c!==u.body);return!1},Jh=function(l){var s=l.scrollTop,u=l.scrollHeight,c=l.clientHeight;return[s,u,c]},ev=function(l){var s=l.scrollLeft,u=l.scrollWidth,c=l.clientWidth;return[s,u,c]},Dd=function(l,s){return l==="v"?Zh(s):qh(s)},bd=function(l,s){return l==="v"?Jh(s):ev(s)},tv=function(l,s){return l==="h"&&s==="rtl"?-1:1},nv=function(l,s,u,c,d){var f=tv(l,window.getComputedStyle(s).direction),h=f*c,m=u.target,N=s.contains(m),P=!1,R=h>0,_=0,L=0;do{if(!m)break;var z=bd(l,m),K=z[0],j=z[1],T=z[2],W=j-T-f*K;(K||W)&&Dd(l,m)&&(_+=W,L+=K);var V=m.parentNode;m=V&&V.nodeType===Node.DOCUMENT_FRAGMENT_NODE?V.host:V}while(!N&&m!==document.body||N&&(s.contains(m)||s===m));return(R&&Math.abs(_)<1||!R&&Math.abs(L)<1)&&(P=!0),P},yo=function(l){return"changedTouches"in l?[l.changedTouches[0].clientX,l.changedTouches[0].clientY]:[0,0]},md=function(l){return[l.deltaX,l.deltaY]},hd=function(l){return l&&"current"in l?l.current:l},rv=function(l,s){return l[0]===s[0]&&l[1]===s[1]},lv=function(l){return` .block-interactivity-`.concat(l,` {pointer-events: none;} .allow-interactivity-`).concat(l,` {pointer-events: all;} `)},ov=0,Zn=[];function iv(l){var s=v.useRef([]),u=v.useRef([0,0]),c=v.useRef(),d=v.useState(ov++)[0],f=v.useState(zd)[0],h=v.useRef(l);v.useEffect(function(){h.current=l},[l]),v.useEffect(function(){if(l.inert){document.body.classList.add("block-interactivity-".concat(d));var j=Ph([l.lockRef.current],(l.shards||[]).map(hd),!0).filter(Boolean);return j.forEach(function(T){return T.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),j.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(d))})}}},[l.inert,l.lockRef.current,l.shards]);var m=v.useCallback(function(j,T){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var W=yo(j),V=u.current,te="deltaX"in j?j.deltaX:V[0]-W[0],q="deltaY"in j?j.deltaY:V[1]-W[1],le,ne=j.target,ue=Math.abs(te)>Math.abs(q)?"h":"v";if("touches"in j&&ue==="h"&&ne.type==="range")return!1;var ye=window.getSelection(),de=ye&&ye.anchorNode,xe=de?de===ne||de.contains(ne):!1;if(xe)return!1;var Ce=pd(ue,ne);if(!Ce)return!0;if(Ce?le=ue:(le=ue==="v"?"h":"v",Ce=pd(ue,ne)),!Ce)return!1;if(!c.current&&"changedTouches"in j&&(te||q)&&(c.current=le),!le)return!0;var ie=c.current||le;return nv(ie,T,j,ie==="h"?te:q)},[]),N=v.useCallback(function(j){var T=j;if(!(!Zn.length||Zn[Zn.length-1]!==f)){var W="deltaY"in T?md(T):yo(T),V=s.current.filter(function(le){return le.name===T.type&&(le.target===T.target||T.target===le.shadowParent)&&rv(le.delta,W)})[0];if(V&&V.should){T.cancelable&&T.preventDefault();return}if(!V){var te=(h.current.shards||[]).map(hd).filter(Boolean).filter(function(le){return le.contains(T.target)}),q=te.length>0?m(T,te[0]):!h.current.noIsolation;q&&T.cancelable&&T.preventDefault()}}},[]),P=v.useCallback(function(j,T,W,V){var te={name:j,delta:T,target:W,should:V,shadowParent:uv(W)};s.current.push(te),setTimeout(function(){s.current=s.current.filter(function(q){return q!==te})},1)},[]),R=v.useCallback(function(j){u.current=yo(j),c.current=void 0},[]),_=v.useCallback(function(j){P(j.type,md(j),j.target,m(j,l.lockRef.current))},[]),L=v.useCallback(function(j){P(j.type,yo(j),j.target,m(j,l.lockRef.current))},[]);v.useEffect(function(){return Zn.push(f),l.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:L}),document.addEventListener("wheel",N,Xn),document.addEventListener("touchmove",N,Xn),document.addEventListener("touchstart",R,Xn),function(){Zn=Zn.filter(function(j){return j!==f}),document.removeEventListener("wheel",N,Xn),document.removeEventListener("touchmove",N,Xn),document.removeEventListener("touchstart",R,Xn)}},[]);var z=l.removeScrollBar,K=l.inert;return v.createElement(v.Fragment,null,K?v.createElement(f,{styles:lv(d)}):null,z?v.createElement(Yh,{noRelative:l.noRelative,gapMode:l.gapMode}):null)}function uv(l){for(var s=null;l!==null;)l instanceof ShadowRoot&&(s=l.host,l=l.host),l=l.parentNode;return s}const sv=Dh(Od,iv);var Ad=v.forwardRef(function(l,s){return v.createElement(_o,_t({},l,{ref:s,sideCar:sv}))});Ad.classNames=_o.classNames;var av=function(l){if(typeof document>"u")return null;var s=Array.isArray(l)?l[0]:l;return s.ownerDocument.body},qn=new WeakMap,xo=new WeakMap,wo={},zu=0,Fd=function(l){return l&&(l.host||Fd(l.parentNode))},cv=function(l,s){return s.map(function(u){if(l.contains(u))return u;var c=Fd(u);return c&&l.contains(c)?c:(console.error("aria-hidden",u,"in not contained inside",l,". Doing nothing"),null)}).filter(function(u){return!!u})},dv=function(l,s,u,c){var d=cv(s,Array.isArray(l)?l:[l]);wo[u]||(wo[u]=new WeakMap);var f=wo[u],h=[],m=new Set,N=new Set(d),P=function(_){!_||m.has(_)||(m.add(_),P(_.parentNode))};d.forEach(P);var R=function(_){!_||N.has(_)||Array.prototype.forEach.call(_.children,function(L){if(m.has(L))R(L);else try{var z=L.getAttribute(c),K=z!==null&&z!=="false",j=(qn.get(L)||0)+1,T=(f.get(L)||0)+1;qn.set(L,j),f.set(L,T),h.push(L),j===1&&K&&xo.set(L,!0),T===1&&L.setAttribute(u,"true"),K||L.setAttribute(c,"true")}catch(W){console.error("aria-hidden: cannot operate on ",L,W)}})};return R(s),m.clear(),zu++,function(){h.forEach(function(_){var L=qn.get(_)-1,z=f.get(_)-1;qn.set(_,L),f.set(_,z),L||(xo.has(_)||_.removeAttribute(c),xo.delete(_)),z||_.removeAttribute(u)}),zu--,zu||(qn=new WeakMap,qn=new WeakMap,xo=new WeakMap,wo={})}},fv=function(l,s,u){u===void 0&&(u="data-aria-hidden");var c=Array.from(Array.isArray(l)?l:[l]),d=av(l);return d?(c.push.apply(c,Array.from(d.querySelectorAll("[aria-live], script"))),dv(c,d,u,"aria-hidden")):function(){return null}},Po="Dialog",[Ud]=Um(Po),[pv,xt]=Ud(Po),Bd=l=>{const{__scopeDialog:s,children:u,open:c,defaultOpen:d,onOpenChange:f,modal:h=!0}=l,m=v.useRef(null),N=v.useRef(null),[P,R]=Hm({prop:c,defaultProp:d??!1,onChange:f,caller:Po});return y.jsx(pv,{scope:s,triggerRef:m,contentRef:N,contentId:bt(),titleId:bt(),descriptionId:bt(),open:P,onOpenChange:R,onOpenToggle:v.useCallback(()=>R(_=>!_),[R]),modal:h,children:u})};Bd.displayName=Po;var $d="DialogTrigger",mv=v.forwardRef((l,s)=>{const{__scopeDialog:u,...c}=l,d=xt($d,u),f=Cn(s,d.triggerRef);return y.jsx(Ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":Qu(d.open),...c,ref:f,onClick:un(l.onClick,d.onOpenToggle)})});mv.displayName=$d;var Ku="DialogPortal",[hv,Vd]=Ud(Ku,{forceMount:void 0}),Wd=l=>{const{__scopeDialog:s,forceMount:u,children:c,container:d}=l,f=xt(Ku,s);return y.jsx(hv,{scope:s,forceMount:u,children:v.Children.map(c,h=>y.jsx(No,{present:u||f.open,children:y.jsx(Md,{asChild:!0,container:d,children:h})}))})};Wd.displayName=Ku;var Co="DialogOverlay",Hd=v.forwardRef((l,s)=>{const u=Vd(Co,l.__scopeDialog),{forceMount:c=u.forceMount,...d}=l,f=xt(Co,l.__scopeDialog);return f.modal?y.jsx(No,{present:c||f.open,children:y.jsx(gv,{...d,ref:s})}):null});Hd.displayName=Co;var vv=Nd("DialogOverlay.RemoveScroll"),gv=v.forwardRef((l,s)=>{const{__scopeDialog:u,...c}=l,d=xt(Co,u),f=dh(),h=Cn(s,f);return y.jsx(Ad,{as:vv,allowPinchZoom:!0,shards:[d.contentRef],children:y.jsx(Ve.div,{"data-state":Qu(d.open),...c,ref:h,style:{pointerEvents:"auto",...c.style}})})}),ir="DialogContent",Kd=v.forwardRef((l,s)=>{const u=Vd(ir,l.__scopeDialog),{forceMount:c=u.forceMount,...d}=l,f=xt(ir,l.__scopeDialog);return y.jsx(No,{present:c||f.open,children:f.modal?y.jsx(yv,{...d,ref:s}):y.jsx(xv,{...d,ref:s})})});Kd.displayName=ir;var yv=v.forwardRef((l,s)=>{const u=xt(ir,l.__scopeDialog),c=v.useRef(null),d=Cn(s,u.contentRef,c);return v.useEffect(()=>{const f=c.current;if(f)return fv(f)},[]),y.jsx(Qd,{...l,ref:d,trapFocus:u.open,disableOutsidePointerEvents:u.open,onCloseAutoFocus:un(l.onCloseAutoFocus,f=>{var h;f.preventDefault(),(h=u.triggerRef.current)==null||h.focus()}),onPointerDownOutside:un(l.onPointerDownOutside,f=>{const h=f.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&f.preventDefault()}),onFocusOutside:un(l.onFocusOutside,f=>f.preventDefault())})}),xv=v.forwardRef((l,s)=>{const u=xt(ir,l.__scopeDialog),c=v.useRef(!1),d=v.useRef(!1);return y.jsx(Qd,{...l,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=l.onCloseAutoFocus)==null||h.call(l,f),f.defaultPrevented||(c.current||(m=u.triggerRef.current)==null||m.focus(),f.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:f=>{var N,P;(N=l.onInteractOutside)==null||N.call(l,f),f.defaultPrevented||(c.current=!0,f.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const h=f.target;((P=u.triggerRef.current)==null?void 0:P.contains(h))&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&d.current&&f.preventDefault()}})}),Qd=v.forwardRef((l,s)=>{const{__scopeDialog:u,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:f,...h}=l,m=xt(ir,u);return _h(),y.jsx(y.Fragment,{children:y.jsx(Rd,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:f,children:y.jsx(_d,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Qu(m.open),...h,ref:s,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})}),Gd="DialogTitle",wv=v.forwardRef((l,s)=>{const{__scopeDialog:u,...c}=l,d=xt(Gd,u);return y.jsx(Ve.h2,{id:d.titleId,...c,ref:s})});wv.displayName=Gd;var Yd="DialogDescription",Sv=v.forwardRef((l,s)=>{const{__scopeDialog:u,...c}=l,d=xt(Yd,u);return y.jsx(Ve.p,{id:d.descriptionId,...c,ref:s})});Sv.displayName=Yd;var Xd="DialogClose",kv=v.forwardRef((l,s)=>{const{__scopeDialog:u,...c}=l,d=xt(Xd,u);return y.jsx(Ve.button,{type:"button",...c,ref:s,onClick:un(l.onClick,()=>d.onOpenChange(!1))})});kv.displayName=Xd;function Qu(l){return l?"open":"closed"}var Xr='[cmdk-group=""]',Iu='[cmdk-group-items=""]',Ev='[cmdk-group-heading=""]',Zd='[cmdk-item=""]',vd=`${Zd}:not([aria-disabled="true"])`,Bu="cmdk-item-select",tr="data-value",Cv=(l,s,u)=>Fm(l,s,u),qd=v.createContext(void 0),tl=()=>v.useContext(qd),Jd=v.createContext(void 0),Gu=()=>v.useContext(Jd),ef=v.createContext(void 0),tf=v.forwardRef((l,s)=>{let u=nr(()=>{var w,A;return{search:"",value:(A=(w=l.value)!=null?w:l.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=nr(()=>new Set),d=nr(()=>new Map),f=nr(()=>new Map),h=nr(()=>new Set),m=nf(l),{label:N,children:P,value:R,onValueChange:_,filter:L,shouldFilter:z,loop:K,disablePointerSelection:j=!1,vimBindings:T=!0,...W}=l,V=bt(),te=bt(),q=bt(),le=v.useRef(null),ne=Iv();En(()=>{if(R!==void 0){let w=R.trim();u.current.value=w,ue.emit()}},[R]),En(()=>{ne(6,Oe)},[]);let ue=v.useMemo(()=>({subscribe:w=>(h.current.add(w),()=>h.current.delete(w)),snapshot:()=>u.current,setState:(w,A,B)=>{var b,Y,re,se;if(!Object.is(u.current[w],A)){if(u.current[w]=A,w==="search")ie(),xe(),ne(1,Ce);else if(w==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ce=document.getElementById(q);ce?ce.focus():(b=document.getElementById(V))==null||b.focus()}if(ne(7,()=>{var ce;u.current.selectedItemId=(ce=Ne())==null?void 0:ce.id,ue.emit()}),B||ne(5,Oe),((Y=m.current)==null?void 0:Y.value)!==void 0){let ce=A??"";(se=(re=m.current).onValueChange)==null||se.call(re,ce);return}}ue.emit()}},emit:()=>{h.current.forEach(w=>w())}}),[]),ye=v.useMemo(()=>({value:(w,A,B)=>{var b;A!==((b=f.current.get(w))==null?void 0:b.value)&&(f.current.set(w,{value:A,keywords:B}),u.current.filtered.items.set(w,de(A,B)),ne(2,()=>{xe(),ue.emit()}))},item:(w,A)=>(c.current.add(w),A&&(d.current.has(A)?d.current.get(A).add(w):d.current.set(A,new Set([w]))),ne(3,()=>{ie(),xe(),u.current.value||Ce(),ue.emit()}),()=>{f.current.delete(w),c.current.delete(w),u.current.filtered.items.delete(w);let B=Ne();ne(4,()=>{ie(),(B==null?void 0:B.getAttribute("id"))===w&&Ce(),ue.emit()})}),group:w=>(d.current.has(w)||d.current.set(w,new Set),()=>{f.current.delete(w),d.current.delete(w)}),filter:()=>m.current.shouldFilter,label:N||l["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:V,inputId:q,labelId:te,listInnerRef:le}),[]);function de(w,A){var B,b;let Y=(b=(B=m.current)==null?void 0:B.filter)!=null?b:Cv;return w?Y(w,u.current.search,A):0}function xe(){if(!u.current.search||m.current.shouldFilter===!1)return;let w=u.current.filtered.items,A=[];u.current.filtered.groups.forEach(b=>{let Y=d.current.get(b),re=0;Y.forEach(se=>{let ce=w.get(se);re=Math.max(ce,re)}),A.push([b,re])});let B=le.current;ze().sort((b,Y)=>{var re,se;let ce=b.getAttribute("id"),be=Y.getAttribute("id");return((re=w.get(be))!=null?re:0)-((se=w.get(ce))!=null?se:0)}).forEach(b=>{let Y=b.closest(Iu);Y?Y.appendChild(b.parentElement===Y?b:b.closest(`${Iu} > *`)):B.appendChild(b.parentElement===B?b:b.closest(`${Iu} > *`))}),A.sort((b,Y)=>Y[1]-b[1]).forEach(b=>{var Y;let re=(Y=le.current)==null?void 0:Y.querySelector(`${Xr}[${tr}="${encodeURIComponent(b[0])}"]`);re==null||re.parentElement.appendChild(re)})}function Ce(){let w=ze().find(B=>B.getAttribute("aria-disabled")!=="true"),A=w==null?void 0:w.getAttribute(tr);ue.setState("value",A||void 0)}function ie(){var w,A,B,b;if(!u.current.search||m.current.shouldFilter===!1){u.current.filtered.count=c.current.size;return}u.current.filtered.groups=new Set;let Y=0;for(let re of c.current){let se=(A=(w=f.current.get(re))==null?void 0:w.value)!=null?A:"",ce=(b=(B=f.current.get(re))==null?void 0:B.keywords)!=null?b:[],be=de(se,ce);u.current.filtered.items.set(re,be),be>0&&Y++}for(let[re,se]of d.current)for(let ce of se)if(u.current.filtered.items.get(ce)>0){u.current.filtered.groups.add(re);break}u.current.filtered.count=Y}function Oe(){var w,A,B;let b=Ne();b&&(((w=b.parentElement)==null?void 0:w.firstChild)===b&&((B=(A=b.closest(Xr))==null?void 0:A.querySelector(Ev))==null||B.scrollIntoView({block:"nearest"})),b.scrollIntoView({block:"nearest"}))}function Ne(){var w;return(w=le.current)==null?void 0:w.querySelector(`${Zd}[aria-selected="true"]`)}function ze(){var w;return Array.from(((w=le.current)==null?void 0:w.querySelectorAll(vd))||[])}function _e(w){let A=ze()[w];A&&ue.setState("value",A.getAttribute(tr))}function he(w){var A;let B=Ne(),b=ze(),Y=b.findIndex(se=>se===B),re=b[Y+w];(A=m.current)!=null&&A.loop&&(re=Y+w<0?b[b.length-1]:Y+w===b.length?b[0]:b[Y+w]),re&&ue.setState("value",re.getAttribute(tr))}function F(w){let A=Ne(),B=A==null?void 0:A.closest(Xr),b;for(;B&&!b;)B=w>0?Ov(B,Xr):zv(B,Xr),b=B==null?void 0:B.querySelector(vd);b?ue.setState("value",b.getAttribute(tr)):he(w)}let Z=()=>_e(ze().length-1),U=w=>{w.preventDefault(),w.metaKey?Z():w.altKey?F(1):he(1)},S=w=>{w.preventDefault(),w.metaKey?_e(0):w.altKey?F(-1):he(-1)};return v.createElement(Ve.div,{ref:s,tabIndex:-1,...W,"cmdk-root":"",onKeyDown:w=>{var A;(A=W.onKeyDown)==null||A.call(W,w);let B=w.nativeEvent.isComposing||w.keyCode===229;if(!(w.defaultPrevented||B))switch(w.key){case"n":case"j":{T&&w.ctrlKey&&U(w);break}case"ArrowDown":{U(w);break}case"p":case"k":{T&&w.ctrlKey&&S(w);break}case"ArrowUp":{S(w);break}case"Home":{w.preventDefault(),_e(0);break}case"End":{w.preventDefault(),Z();break}case"Enter":{w.preventDefault();let b=Ne();if(b){let Y=new Event(Bu);b.dispatchEvent(Y)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:ye.inputId,id:ye.labelId,style:bv},N),Ro(l,w=>v.createElement(Jd.Provider,{value:ue},v.createElement(qd.Provider,{value:ye},w))))}),Nv=v.forwardRef((l,s)=>{var u,c;let d=bt(),f=v.useRef(null),h=v.useContext(ef),m=tl(),N=nf(l),P=(c=(u=N.current)==null?void 0:u.forceMount)!=null?c:h==null?void 0:h.forceMount;En(()=>{if(!P)return m.item(d,h==null?void 0:h.id)},[P]);let R=rf(d,f,[l.value,l.children,f],l.keywords),_=Gu(),L=sn(ne=>ne.value&&ne.value===R.current),z=sn(ne=>P||m.filter()===!1?!0:ne.search?ne.filtered.items.get(d)>0:!0);v.useEffect(()=>{let ne=f.current;if(!(!ne||l.disabled))return ne.addEventListener(Bu,K),()=>ne.removeEventListener(Bu,K)},[z,l.onSelect,l.disabled]);function K(){var ne,ue;j(),(ue=(ne=N.current).onSelect)==null||ue.call(ne,R.current)}function j(){_.setState("value",R.current,!0)}if(!z)return null;let{disabled:T,value:W,onSelect:V,forceMount:te,keywords:q,...le}=l;return v.createElement(Ve.div,{ref:or(f,s),...le,id:d,"cmdk-item":"",role:"option","aria-disabled":!!T,"aria-selected":!!L,"data-disabled":!!T,"data-selected":!!L,onPointerMove:T||m.getDisablePointerSelection()?void 0:j,onClick:T?void 0:K},l.children)}),_v=v.forwardRef((l,s)=>{let{heading:u,children:c,forceMount:d,...f}=l,h=bt(),m=v.useRef(null),N=v.useRef(null),P=bt(),R=tl(),_=sn(z=>d||R.filter()===!1?!0:z.search?z.filtered.groups.has(h):!0);En(()=>R.group(h),[]),rf(h,m,[l.value,l.heading,N]);let L=v.useMemo(()=>({id:h,forceMount:d}),[d]);return v.createElement(Ve.div,{ref:or(m,s),...f,"cmdk-group":"",role:"presentation",hidden:_?void 0:!0},u&&v.createElement("div",{ref:N,"cmdk-group-heading":"","aria-hidden":!0,id:P},u),Ro(l,z=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":u?P:void 0},v.createElement(ef.Provider,{value:L},z))))}),Pv=v.forwardRef((l,s)=>{let{alwaysRender:u,...c}=l,d=v.useRef(null),f=sn(h=>!h.search);return!u&&!f?null:v.createElement(Ve.div,{ref:or(d,s),...c,"cmdk-separator":"",role:"separator"})}),Rv=v.forwardRef((l,s)=>{let{onValueChange:u,...c}=l,d=l.value!=null,f=Gu(),h=sn(P=>P.search),m=sn(P=>P.selectedItemId),N=tl();return v.useEffect(()=>{l.value!=null&&f.setState("search",l.value)},[l.value]),v.createElement(Ve.input,{ref:s,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":N.listId,"aria-labelledby":N.labelId,"aria-activedescendant":m,id:N.inputId,type:"text",value:d?l.value:h,onChange:P=>{d||f.setState("search",P.target.value),u==null||u(P.target.value)}})}),jv=v.forwardRef((l,s)=>{let{children:u,label:c="Suggestions",...d}=l,f=v.useRef(null),h=v.useRef(null),m=sn(P=>P.selectedItemId),N=tl();return v.useEffect(()=>{if(h.current&&f.current){let P=h.current,R=f.current,_,L=new ResizeObserver(()=>{_=requestAnimationFrame(()=>{let z=P.offsetHeight;R.style.setProperty("--cmdk-list-height",z.toFixed(1)+"px")})});return L.observe(P),()=>{cancelAnimationFrame(_),L.unobserve(P)}}},[]),v.createElement(Ve.div,{ref:or(f,s),...d,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":c,id:N.listId},Ro(l,P=>v.createElement("div",{ref:or(h,N.listInnerRef),"cmdk-list-sizer":""},P)))}),Mv=v.forwardRef((l,s)=>{let{open:u,onOpenChange:c,overlayClassName:d,contentClassName:f,container:h,...m}=l;return v.createElement(Bd,{open:u,onOpenChange:c},v.createElement(Wd,{container:h},v.createElement(Hd,{"cmdk-overlay":"",className:d}),v.createElement(Kd,{"aria-label":l.label,"cmdk-dialog":"",className:f},v.createElement(tf,{ref:s,...m}))))}),Lv=v.forwardRef((l,s)=>sn(u=>u.filtered.count===0)?v.createElement(Ve.div,{ref:s,...l,"cmdk-empty":"",role:"presentation"}):null),Tv=v.forwardRef((l,s)=>{let{progress:u,children:c,label:d="Loading...",...f}=l;return v.createElement(Ve.div,{ref:s,...f,"cmdk-loading":"",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-label":d},Ro(l,h=>v.createElement("div",{"aria-hidden":!0},h)))}),Jn=Object.assign(tf,{List:jv,Item:Nv,Input:Rv,Group:_v,Separator:Pv,Dialog:Mv,Empty:Lv,Loading:Tv});function Ov(l,s){let u=l.nextElementSibling;for(;u;){if(u.matches(s))return u;u=u.nextElementSibling}}function zv(l,s){let u=l.previousElementSibling;for(;u;){if(u.matches(s))return u;u=u.previousElementSibling}}function nf(l){let s=v.useRef(l);return En(()=>{s.current=l}),s}var En=typeof window>"u"?v.useEffect:v.useLayoutEffect;function nr(l){let s=v.useRef();return s.current===void 0&&(s.current=l()),s}function sn(l){let s=Gu(),u=()=>l(s.snapshot());return v.useSyncExternalStore(s.subscribe,u,u)}function rf(l,s,u,c=[]){let d=v.useRef(),f=tl();return En(()=>{var h;let m=(()=>{var P;for(let R of u){if(typeof R=="string")return R.trim();if(typeof R=="object"&&"current"in R)return R.current?(P=R.current.textContent)==null?void 0:P.trim():d.current}})(),N=c.map(P=>P.trim());f.value(l,m,N),(h=s.current)==null||h.setAttribute(tr,m),d.current=m}),d}var Iv=()=>{let[l,s]=v.useState(),u=nr(()=>new Map);return En(()=>{u.current.forEach(c=>c()),u.current=new Map},[l]),(c,d)=>{u.current.set(c,d),s({})}};function Dv(l){let s=l.type;return typeof s=="function"?s(l.props):"render"in s?s.render(l.props):l}function Ro({asChild:l,children:s},u){return l&&v.isValidElement(s)?v.cloneElement(Dv(s),{ref:s.ref},u(s.props.children)):u(s)}var bv={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Av({onNavigate:l}){const[s,u]=v.useState(!1);return v.useEffect(()=>{const c=d=>{(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="k"&&(d.preventDefault(),u(f=>!f))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),y.jsx(Jn.Dialog,{open:s,onOpenChange:u,label:"Befehlspalette",className:"fixed inset-0 z-50 flex items-start justify-center bg-black/50 p-4 pt-[12vh]",onClick:()=>u(!1),children:y.jsxs("div",{className:"w-full max-w-lg overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-2xl",onClick:c=>c.stopPropagation(),children:[y.jsx(Jn.Input,{autoFocus:!0,placeholder:"Springe zu… (Modelle, Routing, System …)",className:"w-full border-b border-border bg-transparent px-4 py-3 text-sm outline-none placeholder:text-muted-foreground"}),y.jsxs(Jn.List,{className:"max-h-80 overflow-y-auto p-2",children:[y.jsx(Jn.Empty,{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:"Nichts gefunden."}),y.jsx(Jn.Group,{heading:"Bereiche",className:"px-1 py-1 text-xs text-muted-foreground",children:bu.map(c=>y.jsxs(Jn.Item,{value:`${c.label} ${c.hint}`,onSelect:()=>{l(c.id),u(!1)},className:"flex cursor-pointer items-center gap-3 rounded-md px-3 py-2 text-sm text-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",children:[y.jsx(c.icon,{className:"h-4 w-4 text-primary"}),y.jsx("span",{children:c.label}),y.jsx("span",{className:"ml-auto truncate text-xs text-muted-foreground",children:c.hint})]},c.id))})]})]})})}async function sr(l,s){const u=await fetch(l,{headers:{"Content-Type":"application/json"},...s});if(!u.ok)throw new Error(`${u.status} ${u.statusText}`);return u.json()}function kn({children:l,tone:s="muted"}){const u={muted:"bg-muted text-muted-foreground",primary:"bg-primary/15 text-primary",warn:"bg-amber-500/15 text-amber-500"};return y.jsx("span",{className:`rounded px-1.5 py-0.5 text-[11px] font-medium ${u[s]}`,children:l})}function lf({caps:l}){return l?y.jsxs("span",{className:"inline-flex flex-wrap gap-1",children:[l.coder&&y.jsx(kn,{children:"💻 Code"}),l.vision&&y.jsx(kn,{children:"👁 Bild"}),l.reasoning&&y.jsx(kn,{children:"🧠 Reason"}),l.moe&&y.jsxs(kn,{tone:"primary",children:["🧩 MoE",l.active_b?`·${l.active_b}b`:""]}),l.tools==="yes"&&y.jsx(kn,{tone:"primary",children:"🛠 Tools"}),l.tools==="likely"&&y.jsx(kn,{tone:"warn",children:"🛠 Tools?"}),l.embedding&&y.jsx(kn,{children:"🔢 Embed"})]}):null}function of(l){var s,u,c="";if(typeof l=="string"||typeof l=="number")c+=l;else if(typeof l=="object")if(Array.isArray(l)){var d=l.length;for(s=0;s{const s=$v(l),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=l;return{getClassGroupId:h=>{const m=h.split(Yu);return m[0]===""&&m.length!==1&&m.shift(),uf(m,s)||Bv(h)},getConflictingClassGroupIds:(h,m)=>{const N=u[h]||[];return m&&c[h]?[...N,...c[h]]:N}}},uf=(l,s)=>{var h;if(l.length===0)return s.classGroupId;const u=l[0],c=s.nextPart.get(u),d=c?uf(l.slice(1),c):void 0;if(d)return d;if(s.validators.length===0)return;const f=l.join(Yu);return(h=s.validators.find(({validator:m})=>m(f)))==null?void 0:h.classGroupId},gd=/^\[(.+)\]$/,Bv=l=>{if(gd.test(l)){const s=gd.exec(l)[1],u=s==null?void 0:s.substring(0,s.indexOf(":"));if(u)return"arbitrary.."+u}},$v=l=>{const{theme:s,prefix:u}=l,c={nextPart:new Map,validators:[]};return Wv(Object.entries(l.classGroups),u).forEach(([f,h])=>{$u(h,c,f,s)}),c},$u=(l,s,u,c)=>{l.forEach(d=>{if(typeof d=="string"){const f=d===""?s:yd(s,d);f.classGroupId=u;return}if(typeof d=="function"){if(Vv(d)){$u(d(c),s,u,c);return}s.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([f,h])=>{$u(h,yd(s,f),u,c)})})},yd=(l,s)=>{let u=l;return s.split(Yu).forEach(c=>{u.nextPart.has(c)||u.nextPart.set(c,{nextPart:new Map,validators:[]}),u=u.nextPart.get(c)}),u},Vv=l=>l.isThemeGetter,Wv=(l,s)=>s?l.map(([u,c])=>{const d=c.map(f=>typeof f=="string"?s+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([h,m])=>[s+h,m])):f);return[u,d]}):l,Hv=l=>{if(l<1)return{get:()=>{},set:()=>{}};let s=0,u=new Map,c=new Map;const d=(f,h)=>{u.set(f,h),s++,s>l&&(s=0,c=u,u=new Map)};return{get(f){let h=u.get(f);if(h!==void 0)return h;if((h=c.get(f))!==void 0)return d(f,h),h},set(f,h){u.has(f)?u.set(f,h):d(f,h)}}},sf="!",Kv=l=>{const{separator:s,experimentalParseClassName:u}=l,c=s.length===1,d=s[0],f=s.length,h=m=>{const N=[];let P=0,R=0,_;for(let T=0;TR?_-R:void 0;return{modifiers:N,hasImportantModifier:z,baseClassName:K,maybePostfixModifierPosition:j}};return u?m=>u({className:m,parseClassName:h}):h},Qv=l=>{if(l.length<=1)return l;const s=[];let u=[];return l.forEach(c=>{c[0]==="["?(s.push(...u.sort(),c),u=[]):u.push(c)}),s.push(...u.sort()),s},Gv=l=>({cache:Hv(l.cacheSize),parseClassName:Kv(l),...Uv(l)}),Yv=/\s+/,Xv=(l,s)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:d}=s,f=[],h=l.trim().split(Yv);let m="";for(let N=h.length-1;N>=0;N-=1){const P=h[N],{modifiers:R,hasImportantModifier:_,baseClassName:L,maybePostfixModifierPosition:z}=u(P);let K=!!z,j=c(K?L.substring(0,z):L);if(!j){if(!K){m=P+(m.length>0?" "+m:m);continue}if(j=c(L),!j){m=P+(m.length>0?" "+m:m);continue}K=!1}const T=Qv(R).join(":"),W=_?T+sf:T,V=W+j;if(f.includes(V))continue;f.push(V);const te=d(j,K);for(let q=0;q0?" "+m:m)}return m};function Zv(){let l=0,s,u,c="";for(;l{if(typeof l=="string")return l;let s,u="";for(let c=0;c_(R),l());return u=Gv(P),c=u.cache.get,d=u.cache.set,f=m,m(N)}function m(N){const P=c(N);if(P)return P;const R=Xv(N,u);return d(N,R),R}return function(){return f(Zv.apply(null,arguments))}}const ke=l=>{const s=u=>u[l]||[];return s.isThemeGetter=!0,s},cf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Jv=/^\d+\/\d+$/,eg=new Set(["px","full","screen"]),tg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ng=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,og=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=l=>lr(l)||eg.has(l)||Jv.test(l),rn=l=>ar(l,"length",pg),lr=l=>!!l&&!Number.isNaN(Number(l)),Du=l=>ar(l,"number",lr),Zr=l=>!!l&&Number.isInteger(Number(l)),ig=l=>l.endsWith("%")&&lr(l.slice(0,-1)),ae=l=>cf.test(l),ln=l=>tg.test(l),ug=new Set(["length","size","percentage"]),sg=l=>ar(l,ug,df),ag=l=>ar(l,"position",df),cg=new Set(["image","url"]),dg=l=>ar(l,cg,hg),fg=l=>ar(l,"",mg),qr=()=>!0,ar=(l,s,u)=>{const c=cf.exec(l);return c?c[1]?typeof s=="string"?c[1]===s:s.has(c[1]):u(c[2]):!1},pg=l=>ng.test(l)&&!rg.test(l),df=()=>!1,mg=l=>lg.test(l),hg=l=>og.test(l),vg=()=>{const l=ke("colors"),s=ke("spacing"),u=ke("blur"),c=ke("brightness"),d=ke("borderColor"),f=ke("borderRadius"),h=ke("borderSpacing"),m=ke("borderWidth"),N=ke("contrast"),P=ke("grayscale"),R=ke("hueRotate"),_=ke("invert"),L=ke("gap"),z=ke("gradientColorStops"),K=ke("gradientColorStopPositions"),j=ke("inset"),T=ke("margin"),W=ke("opacity"),V=ke("padding"),te=ke("saturate"),q=ke("scale"),le=ke("sepia"),ne=ke("skew"),ue=ke("space"),ye=ke("translate"),de=()=>["auto","contain","none"],xe=()=>["auto","hidden","clip","visible","scroll"],Ce=()=>["auto",ae,s],ie=()=>[ae,s],Oe=()=>["",Dt,rn],Ne=()=>["auto",lr,ae],ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_e=()=>["solid","dashed","dotted","double","none"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",ae],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[lr,ae];return{cacheSize:500,separator:":",theme:{colors:[qr],spacing:[Dt,rn],blur:["none","",ln,ae],brightness:S(),borderColor:[l],borderRadius:["none","","full",ln,ae],borderSpacing:ie(),borderWidth:Oe(),contrast:S(),grayscale:Z(),hueRotate:S(),invert:Z(),gap:ie(),gradientColorStops:[l],gradientColorStopPositions:[ig,rn],inset:Ce(),margin:Ce(),opacity:S(),padding:ie(),saturate:S(),scale:S(),sepia:Z(),skew:S(),space:ie(),translate:ie()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[ln]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ze(),ae]}],overflow:[{overflow:xe()}],"overflow-x":[{"overflow-x":xe()}],"overflow-y":[{"overflow-y":xe()}],overscroll:[{overscroll:de()}],"overscroll-x":[{"overscroll-x":de()}],"overscroll-y":[{"overscroll-y":de()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zr,ae]}],basis:[{basis:Ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Zr,ae]}],"grid-cols":[{"grid-cols":[qr]}],"col-start-end":[{col:["auto",{span:["full",Zr,ae]},ae]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[qr]}],"row-start-end":[{row:["auto",{span:[Zr,ae]},ae]}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[L]}],"gap-x":[{"gap-x":[L]}],"gap-y":[{"gap-y":[L]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[V]}],pt:[{pt:[V]}],pr:[{pr:[V]}],pb:[{pb:[V]}],pl:[{pl:[V]}],m:[{m:[T]}],mx:[{mx:[T]}],my:[{my:[T]}],ms:[{ms:[T]}],me:[{me:[T]}],mt:[{mt:[T]}],mr:[{mr:[T]}],mb:[{mb:[T]}],ml:[{ml:[T]}],"space-x":[{"space-x":[ue]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ue]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ae,s]}],"min-w":[{"min-w":[ae,s,"min","max","fit"]}],"max-w":[{"max-w":[ae,s,"none","full","min","max","fit","prose",{screen:[ln]},ln]}],h:[{h:[ae,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ae,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ae,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ae,s,"auto","min","max","fit"]}],"font-size":[{text:["base",ln,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Du]}],"font-family":[{font:[qr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ae]}],"line-clamp":[{"line-clamp":["none",lr,Du]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Dt,ae]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[l]}],"placeholder-opacity":[{"placeholder-opacity":[W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[l]}],"text-opacity":[{"text-opacity":[W]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Dt,rn]}],"underline-offset":[{"underline-offset":["auto",Dt,ae]}],"text-decoration-color":[{decoration:[l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ie()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[W]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ze(),ag]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dg]}],"bg-color":[{bg:[l]}],"gradient-from-pos":[{from:[K]}],"gradient-via-pos":[{via:[K]}],"gradient-to-pos":[{to:[K]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[W]}],"border-style":[{border:[..._e(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[W]}],"divide-style":[{divide:_e()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",..._e()]}],"outline-offset":[{"outline-offset":[Dt,ae]}],"outline-w":[{outline:[Dt,rn]}],"outline-color":[{outline:[l]}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[l]}],"ring-opacity":[{"ring-opacity":[W]}],"ring-offset-w":[{"ring-offset":[Dt,rn]}],"ring-offset-color":[{"ring-offset":[l]}],shadow:[{shadow:["","inner","none",ln,fg]}],"shadow-color":[{shadow:[qr]}],opacity:[{opacity:[W]}],"mix-blend":[{"mix-blend":[...he(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":he()}],filter:[{filter:["","none"]}],blur:[{blur:[u]}],brightness:[{brightness:[c]}],contrast:[{contrast:[N]}],"drop-shadow":[{"drop-shadow":["","none",ln,ae]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[R]}],invert:[{invert:[_]}],saturate:[{saturate:[te]}],sepia:[{sepia:[le]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[u]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[N]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R]}],"backdrop-invert":[{"backdrop-invert":[_]}],"backdrop-opacity":[{"backdrop-opacity":[W]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[q]}],"scale-x":[{"scale-x":[q]}],"scale-y":[{"scale-y":[q]}],rotate:[{rotate:[Zr,ae]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[ne]}],"skew-y":[{"skew-y":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",l]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae]}],"caret-color":[{caret:[l]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ie()}],"scroll-mx":[{"scroll-mx":ie()}],"scroll-my":[{"scroll-my":ie()}],"scroll-ms":[{"scroll-ms":ie()}],"scroll-me":[{"scroll-me":ie()}],"scroll-mt":[{"scroll-mt":ie()}],"scroll-mr":[{"scroll-mr":ie()}],"scroll-mb":[{"scroll-mb":ie()}],"scroll-ml":[{"scroll-ml":ie()}],"scroll-p":[{"scroll-p":ie()}],"scroll-px":[{"scroll-px":ie()}],"scroll-py":[{"scroll-py":ie()}],"scroll-ps":[{"scroll-ps":ie()}],"scroll-pe":[{"scroll-pe":ie()}],"scroll-pt":[{"scroll-pt":ie()}],"scroll-pr":[{"scroll-pr":ie()}],"scroll-pb":[{"scroll-pb":ie()}],"scroll-pl":[{"scroll-pl":ie()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae]}],fill:[{fill:[l,"none"]}],"stroke-w":[{stroke:[Dt,rn,Du]}],stroke:[{stroke:[l,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},gg=qv(vg);function ur(...l){return gg(Fv(l))}function yg(l){if(!l)return"—";const s=l/1024**3;return s>=1?`${s.toFixed(1)} GB`:`${(l/1024**2).toFixed(0)} MB`}function xg(l){return l?`${Math.round(l/1024)}k`:"—"}function wg({fit:l}){const s={perfect:"bg-emerald-500/15 text-emerald-500",marginal:"bg-amber-500/15 text-amber-500",too_tight:"bg-red-500/15 text-red-500"}[l.level];return y.jsxs("span",{className:ur("rounded px-1.5 py-0.5 text-[11px] font-medium",s),children:[l.text," · ~",l.req_gb," GB"]})}function Sg(){const[l,s]=v.useState([]),[u,c]=v.useState(""),[d,f]=v.useState(!0);return v.useEffect(()=>{sr("/api/models").then(h=>s(h.models)).catch(h=>c(String(h))).finally(()=>f(!1))},[]),d?y.jsx("div",{className:"text-sm text-muted-foreground",children:"Lade…"}):u?y.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Engine nicht erreichbar oder keine Config gefunden (",u,")."]}):y.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card",children:y.jsxs("table",{className:"w-full text-sm",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted-foreground",children:[y.jsx("th",{className:"px-4 py-2 font-medium",children:"Modell"}),y.jsx("th",{className:"px-4 py-2 font-medium",children:"Rolle"}),y.jsx("th",{className:"px-4 py-2 font-medium",children:"Fähigkeiten"}),y.jsx("th",{className:"px-4 py-2 font-medium",children:"Kontext"}),y.jsx("th",{className:"px-4 py-2 font-medium",children:"Größe"})]})}),y.jsxs("tbody",{children:[l.length===0&&y.jsx("tr",{children:y.jsx("td",{colSpan:5,className:"px-4 py-8 text-center text-muted-foreground",children:"Keine Modelle konfiguriert."})}),l.map(h=>y.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[y.jsx("td",{className:"px-4 py-2.5 font-medium",children:h.name}),y.jsx("td",{className:"px-4 py-2.5",children:h.role?y.jsx("span",{className:"rounded-md bg-primary/15 px-2 py-0.5 text-xs text-primary",children:h.role}):y.jsx("span",{className:"text-muted-foreground",children:"—"})}),y.jsx("td",{className:"px-4 py-2.5",children:y.jsx(lf,{caps:h.capabilities})}),y.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:xg(h.ctx)}),y.jsx("td",{className:"px-4 py-2.5 text-muted-foreground",children:yg(h.size_bytes)})]},h.name))]})]})})}function kg(){const[l,s]=v.useState(null),[u,c]=v.useState(""),[d,f]=v.useState(!0);return v.useEffect(()=>{sr("/api/discover").then(s).catch(h=>c(String(h))).finally(()=>f(!1))},[]),d?y.jsx("div",{className:"text-sm text-muted-foreground",children:"Suche aktuelle Modelle…"}):u||!l?y.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Modell-Quellen gerade nicht erreichbar (",u,")."]}):y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{className:"text-xs text-muted-foreground",children:["Live von HuggingFace · Hardware-Fit für ~",l.sys_ram_gb," GB · ⭐ = beste Wahl je Kategorie"]}),l.categories.map(h=>y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-sm font-semibold",children:h.title}),y.jsx("div",{className:"grid gap-2 sm:grid-cols-2",children:h.models.map(m=>y.jsxs("div",{className:"rounded-lg border border-border bg-card p-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[h.recommended===m.repo&&y.jsx("span",{title:"beste Wahl",children:"⭐"}),y.jsx("span",{className:"truncate text-sm font-medium",children:m.name})]}),y.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:m.author}),y.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1",children:[y.jsx(lf,{caps:m.caps}),y.jsx(wg,{fit:m.fit})]})]},m.repo))})]},h.role))]})}function Eg(){const[l,s]=v.useState("installed");return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold",children:"Modelle & Routing"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"Installierte Modelle (mit Fähigkeiten) und aktuell beste Modelle für deine Hardware."})]}),y.jsx("div",{className:"inline-flex rounded-lg border border-border bg-card p-0.5 text-sm",children:["installed","discover"].map(u=>y.jsx("button",{onClick:()=>s(u),className:ur("rounded-md px-3 py-1.5 transition-colors",l===u?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"),children:u==="installed"?"Installiert":"Modelle finden"},u))}),l==="installed"?y.jsx(Sg,{}):y.jsx(kg,{})]})}function Cg(){const[l,s]=v.useState(null),[u,c]=v.useState("");return v.useEffect(()=>{sr("/api/routing").then(s).catch(d=>c(String(d)))},[]),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold",children:"Routing"}),y.jsxs("p",{className:"text-sm text-muted-foreground",children:["Der LiteLLM-Gateway bündelt alle Modelle zu einem Endpunkt. ",y.jsx("code",{children:"auto"})," = schnell im Alltag, eskaliert bei Bedarf auf ",y.jsx("code",{children:"heavy"}),". Gilt für Hermes ",y.jsx("em",{children:"und"})," Vibe Coding."]})]}),u&&y.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Gateway-Config nicht lesbar (",u,")."]}),l&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.jsx("span",{className:ur("h-2 w-2 rounded-full",l.gateway_reachable?"bg-emerald-500":"bg-amber-500")}),"Gateway ",l.gateway_reachable?"online":"offline (Config wird trotzdem angezeigt)"]}),y.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card",children:y.jsxs("table",{className:"w-full text-sm",children:[y.jsx("thead",{children:y.jsxs("tr",{className:"border-b border-border text-left text-xs text-muted-foreground",children:[y.jsx("th",{className:"px-4 py-2 font-medium",children:"Gateway-Modell"}),y.jsx("th",{className:"px-4 py-2 font-medium",children:"→ Backend (llama-swap)"})]})}),y.jsx("tbody",{children:l.routes.map(d=>y.jsxs("tr",{className:"border-b border-border/50 last:border-0",children:[y.jsx("td",{className:"px-4 py-2.5 font-medium",children:d.name}),y.jsx("td",{className:"px-4 py-2.5 font-mono text-xs text-muted-foreground",children:d.target})]},d.name))})]})}),l.fallbacks.length>0&&y.jsxs("div",{className:"rounded-xl border border-border bg-card p-4 text-sm",children:[y.jsx("div",{className:"mb-2 font-medium",children:"Eskalation (Fallbacks)"}),y.jsx("ul",{className:"space-y-1 text-muted-foreground",children:l.fallbacks.map((d,f)=>{const[h,m]=Object.entries(d)[0];return y.jsxs("li",{children:[y.jsx("code",{children:h})," → ",y.jsx("code",{children:m.join(", ")})]},f)})})]})]})]})}function er(l){return(l/1024**3).toFixed(1)}function So({label:l,percent:s,detail:u}){return y.jsxs("div",{className:"rounded-lg border border-border bg-card p-4",children:[y.jsxs("div",{className:"flex items-baseline justify-between",children:[y.jsx("span",{className:"text-sm font-medium",children:l}),y.jsxs("span",{className:"text-sm text-muted-foreground",children:[Math.round(s),"%"]})]}),y.jsx("div",{className:"mt-2 h-2 overflow-hidden rounded-full bg-muted",children:y.jsx("div",{className:"h-full rounded-full bg-primary",style:{width:`${Math.min(s,100)}%`}})}),u&&y.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u})]})}function Ng(){const[l,s]=v.useState(null),[u,c]=v.useState("");return v.useEffect(()=>{const d=()=>sr("/api/system/status").then(s).catch(h=>c(String(h)));d();const f=setInterval(d,3e3);return()=>clearInterval(f)},[]),y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold",children:"System"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"Live-Auslastung der Box, Dienste & Updates."})]}),u&&y.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["System-Status nicht lesbar (",u,")."]}),l&&y.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[y.jsx(So,{label:"CPU",percent:l.cpu.percent,detail:l.cpu.cores?`${l.cpu.cores} Kerne`:void 0}),y.jsx(So,{label:"RAM",percent:l.ram.percent,detail:`${er(l.ram.used)} / ${er(l.ram.total)} GB`}),l.gpu&&l.gpu.busy_percent!=null&&y.jsx(So,{label:"GPU",percent:l.gpu.busy_percent,detail:l.gpu.vram_used!=null&&l.gpu.vram_total!=null?`${er(l.gpu.vram_used)} / ${er(l.gpu.vram_total)} GB VRAM`:void 0}),l.disk&&y.jsx(So,{label:"Disk (Modelle)",percent:l.disk.percent,detail:`${er(l.disk.used)} / ${er(l.disk.total)} GB`})]}),(l==null?void 0:l.temp)&&(l.temp.cpu||l.temp.gpu)&&y.jsxs("div",{className:"flex gap-3 text-sm text-muted-foreground",children:[l.temp.cpu!=null&&y.jsxs("span",{children:["CPU ",l.temp.cpu," °C"]}),l.temp.gpu!=null&&y.jsxs("span",{children:["GPU ",l.temp.gpu," °C"]})]})]})}function _g(){const[l,s]=v.useState(localStorage.getItem("mc_host")||"192.168.178.151"),[u,c]=v.useState(null),[d,f]=v.useState("cline"),[h,m]=v.useState(!1),[N,P]=v.useState("");v.useEffect(()=>{sr(`/api/connect?host=${encodeURIComponent(l)}`).then(c).catch(z=>P(String(z)))},[l]);function R(z){s(z),z&&localStorage.setItem("mc_host",z)}const _=u==null?void 0:u.tools[d];async function L(){_&&(await navigator.clipboard.writeText(_.snippet),m(!0),setTimeout(()=>m(!1),1500))}return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold",children:"Verbinden"}),y.jsxs("p",{className:"text-sm text-muted-foreground",children:["Fertige Snippets für deine Tools auf dem lokalen PC — alle zeigen auf den Gateway der Box (",y.jsx("code",{children:"model: auto"}),") + das geteilte Gedächtnis."]})]}),y.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[y.jsx("label",{className:"text-muted-foreground",children:"Box-LAN-IP:"}),y.jsx("input",{value:l,onChange:z=>R(z.target.value),className:"rounded-md border border-border bg-card px-2 py-1 font-mono text-xs outline-none focus:ring-2 focus:ring-ring"}),u&&y.jsxs("span",{className:"text-xs text-muted-foreground",children:["→ ",u.gateway_url]})]}),N&&y.jsxs("div",{className:"rounded-md border border-border bg-card p-3 text-sm text-muted-foreground",children:["Snippets nicht ladbar (",N,")."]}),u&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"flex flex-wrap gap-1",children:Object.entries(u.tools).map(([z,K])=>y.jsx("button",{onClick:()=>f(z),className:ur("rounded-md px-3 py-1.5 text-sm transition-colors",d===z?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground"),children:K.label},z))}),_&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-xs text-muted-foreground",children:_.note}),y.jsxs("button",{onClick:L,className:"flex items-center gap-1.5 rounded-md border border-border px-2 py-1 text-xs hover:bg-accent",children:[h?y.jsx(Cm,{className:"h-3.5 w-3.5 text-emerald-500"}):y.jsx(Pm,{className:"h-3.5 w-3.5"}),h?"Kopiert":"Kopieren"]})]}),y.jsx("pre",{className:"overflow-x-auto rounded-xl border border-border bg-card p-4 text-xs leading-relaxed",children:y.jsx("code",{children:_.snippet})})]})]})]})}function Pg({title:l,hint:s}){return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"text-xl font-semibold",children:l}),y.jsx("p",{className:"text-sm text-muted-foreground",children:s})]}),y.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 rounded-xl border border-dashed border-border bg-card/50 py-20 text-center",children:[y.jsx(_m,{className:"h-8 w-8 text-muted-foreground"}),y.jsx("div",{className:"text-sm text-muted-foreground",children:"Kommt in einer späteren Phase."})]})]})}function Rg(){const[l,s]=v.useState("models"),[u,c]=v.useState(null);v.useEffect(()=>{const f=()=>sr("/api/health").then(c).catch(()=>c(null));f();const h=setInterval(f,1e4);return()=>clearInterval(h)},[]);const d=bu.find(f=>f.id===l);return y.jsxs("div",{className:"flex h-full",children:[y.jsx(Av,{onNavigate:s}),y.jsxs("aside",{className:"flex w-60 shrink-0 flex-col border-r border-border bg-card/40",children:[y.jsxs("div",{className:"flex items-center gap-2 px-5 py-4",children:[y.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary"}),y.jsxs("div",{className:"leading-tight",children:[y.jsx("div",{className:"text-sm font-semibold",children:"Mission Control"}),y.jsx("div",{className:"text-xs text-muted-foreground",children:"2.0"})]})]}),y.jsx("nav",{className:"flex-1 space-y-1 px-3 py-2",children:bu.map(f=>y.jsxs("button",{onClick:()=>s(f.id),className:ur("flex w-full items-center gap-3 rounded-md px-3 py-2 text-sm transition-colors",l===f.id?"bg-primary/15 text-primary":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[y.jsx(f.icon,{className:"h-4 w-4"}),f.label]},f.id))}),y.jsx("div",{className:"px-4 py-3 text-xs text-muted-foreground",children:u?y.jsxs("span",{className:"flex items-center gap-2",children:[y.jsx("span",{className:ur("h-2 w-2 rounded-full",u.engine_reachable?"bg-emerald-500":"bg-amber-500")}),"Engine ",u.engine_reachable?"online":"offline"," · v",u.version]}):y.jsxs("span",{className:"flex items-center gap-2",children:[y.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"})," Backend offline"]})})]}),y.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[y.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between border-b border-border px-6",children:[y.jsx("div",{className:"text-sm text-muted-foreground",children:d.hint}),y.jsxs("button",{onClick:()=>{const f=new KeyboardEvent("keydown",{key:"k",metaKey:!0});document.dispatchEvent(f)},className:"flex items-center gap-2 rounded-md border border-border px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent",children:[y.jsx(Nm,{className:"h-3.5 w-3.5"}),y.jsx("span",{children:"Springen"}),y.jsx("kbd",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-[10px]",children:"⌘K"})]})]}),y.jsxs("main",{className:"flex-1 overflow-y-auto p-6",children:[l==="models"&&y.jsx(Eg,{}),l==="routing"&&y.jsx(Cg,{}),l==="system"&&y.jsx(Ng,{}),l==="connect"&&y.jsx(_g,{}),!["models","routing","system","connect"].includes(l)&&y.jsx(Pg,{title:d.label,hint:d.hint})]})]})]})}gm.createRoot(document.getElementById("root")).render(y.jsx(wd.StrictMode,{children:y.jsx(Rg,{})}));