function Ep(i,a){for(var s=0;sc[p]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))c(p);new MutationObserver(p=>{for(const h of p)if(h.type==="childList")for(const g of h.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&c(g)}).observe(document,{childList:!0,subtree:!0});function s(p){const h={};return p.integrity&&(h.integrity=p.integrity),p.referrerPolicy&&(h.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?h.credentials="include":p.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(p){if(p.ep)return;p.ep=!0;const h=s(p);fetch(p.href,h)}})();function jp(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ps={exports:{}},Qr={},hs={exports:{}},te={};/** * @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 jc;function Pp(){if(jc)return te;jc=1;var i=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),j=Symbol.iterator;function P(y){return y===null||typeof y!="object"?null:(y=j&&y[j]||y["@@iterator"],typeof y=="function"?y:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,R={};function z(y,T,ee){this.props=y,this.context=T,this.refs=R,this.updater=ee||B}z.prototype.isReactComponent={},z.prototype.setState=function(y,T){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,T,"setState")},z.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function H(){}H.prototype=z.prototype;function Q(y,T,ee){this.props=y,this.context=T,this.refs=R,this.updater=ee||B}var q=Q.prototype=new H;q.constructor=Q,F(q,z.prototype),q.isPureReactComponent=!0;var J=Array.isArray,pe=Object.prototype.hasOwnProperty,Ce={current:null},Pe={key:!0,ref:!0,__self:!0,__source:!0};function ze(y,T,ee){var ne,oe={},ie=null,de=null;if(T!=null)for(ne in T.ref!==void 0&&(de=T.ref),T.key!==void 0&&(ie=""+T.key),T)pe.call(T,ne)&&!Pe.hasOwnProperty(ne)&&(oe[ne]=T[ne]);var ae=arguments.length-2;if(ae===1)oe.children=ee;else if(1>>1,T=D[y];if(0>>1;yp(oe,A))iep(de,oe)?(D[y]=de,D[ie]=A,y=ie):(D[y]=oe,D[ne]=A,y=ne);else if(iep(de,A))D[y]=de,D[ie]=A,y=ie;else break e}}return G}function p(D,G){var A=D.sortIndex-G.sortIndex;return A!==0?A:D.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var g=Date,x=g.now();i.unstable_now=function(){return g.now()-x}}var k=[],_=[],N=1,j=null,P=3,B=!1,F=!1,R=!1,z=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function q(D){for(var G=s(_);G!==null;){if(G.callback===null)c(_);else if(G.startTime<=D)c(_),G.sortIndex=G.expirationTime,a(k,G);else break;G=s(_)}}function J(D){if(R=!1,q(D),!F)if(s(k)!==null)F=!0,Re(pe);else{var G=s(_);G!==null&&he(J,G.startTime-D)}}function pe(D,G){F=!1,R&&(R=!1,H(ze),ze=-1),B=!0;var A=P;try{for(q(G),j=s(k);j!==null&&(!(j.expirationTime>G)||D&&!et());){var y=j.callback;if(typeof y=="function"){j.callback=null,P=j.priorityLevel;var T=y(j.expirationTime<=G);G=i.unstable_now(),typeof T=="function"?j.callback=T:j===s(k)&&c(k),q(G)}else c(k);j=s(k)}if(j!==null)var ee=!0;else{var ne=s(_);ne!==null&&he(J,ne.startTime-G),ee=!1}return ee}finally{j=null,P=A,B=!1}}var Ce=!1,Pe=null,ze=-1,Ge=5,Fe=-1;function et(){return!(i.unstable_now()-FeD||125y?(D.sortIndex=A,a(_,D),s(k)===null&&D===s(_)&&(R?(H(ze),ze=-1):R=!0,he(J,A-y))):(D.sortIndex=T,a(k,D),F||B||(F=!0,Re(pe))),D},i.unstable_shouldYield=et,i.unstable_wrapCallback=function(D){var G=P;return function(){var A=P;P=G;try{return D.apply(this,arguments)}finally{P=A}}}})(gs)),gs}var Lc;function Mp(){return Lc||(Lc=1,vs.exports=Tp()),vs.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 Tc;function Op(){if(Tc)return Ze;Tc=1;var i=js(),a=Mp();function s(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"),k=Object.prototype.hasOwnProperty,_=/^[: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]*$/,N={},j={};function P(e){return k.call(j,e)?!0:k.call(N,e)?!1:_.test(e)?j[e]=!0:(N[e]=!0,!1)}function B(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 F(e,t,n,r){if(t===null||typeof t>"u"||B(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 R(e,t,n,r,l,o,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=u}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new R(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];z[t]=new R(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new R(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){z[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){z[e]=new R(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){z[e]=new R(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){z[e]=new R(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){z[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function Q(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(H,Q);z[t]=new R(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(H,Q);z[t]=new R(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(H,Q);z[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){z[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)}),z.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){z[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)});function q(e,t,n,r){var l=z.hasOwnProperty(t)?z[t]:null;(l!==null?l.type!==0:r||!(2f||l[u]!==o[f]){var m=` `+l[u].replace(" at new "," at ");return e.displayName&&m.includes("")&&(m=m.replace("",e.displayName)),m}while(1<=u&&0<=f);break}}}finally{ee=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?T(e):""}function oe(e){switch(e.tag){case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 2:case 15:return e=ne(e.type,!1),e;case 11:return e=ne(e.type.render,!1),e;case 1:return e=ne(e.type,!0),e;default:return""}}function ie(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 Pe:return"Fragment";case Ce:return"Portal";case Ge:return"Profiler";case ze:return"StrictMode";case Ae:return"Suspense";case Be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case et:return(e.displayName||"Context")+".Consumer";case Fe:return(e._context.displayName||"Context")+".Provider";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tt:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case Re:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function de(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 ie(t);case 8:return t===ze?"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 ae(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nt(e){var t=ye(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,o.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zr(e){e._valueTracker||(e._valueTracker=nt(e))}function Ts(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function el(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 wo(e,t){var n=t.checked;return A({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ms(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ae(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 Os(e,t){t=t.checked,t!=null&&q(e,"checked",t,!1)}function ko(e,t){Os(e,t);var n=ae(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")?So(e,t.type,n):t.hasOwnProperty("defaultValue")&&So(e,t.type,ae(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Is(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 So(e,t,n){(t!=="number"||el(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sr=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=tl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ar(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ur={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},_d=["Webkit","ms","Moz","O"];Object.keys(ur).forEach(function(e){_d.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ur[t]=ur[e]})});function Vs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ur.hasOwnProperty(e)&&ur[e]?(""+t).trim():t+"px"}function Ws(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Vs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var zd=A({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 Eo(e,t){if(t){if(zd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function jo(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 Po=null;function _o(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,Ln=null,Tn=null;function $s(e){if(e=Lr(e)){if(typeof zo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Nl(t),zo(e.stateNode,e.type,t))}}function bs(e){Ln?Tn?Tn.push(e):Tn=[e]:Ln=e}function Hs(){if(Ln){var e=Ln,t=Tn;if(Tn=Ln=null,$s(e),t)for(e=0;e>>=0,e===0?32:31-(Bd(e)/Vd|0)|0}var il=64,sl=4194304;function pr(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 al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,u=n&268435455;if(u!==0){var f=u&~l;f!==0?r=pr(f):(o&=u,o!==0&&(r=pr(o)))}else u=n&~l,u!==0?r=pr(u):o!==0&&(r=pr(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 hr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vt(t),e[t]=n}function Hd(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=Sr),xa=" ",wa=!1;function ka(e,t){switch(e){case"keyup":return wf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var In=!1;function Sf(e,t){switch(e){case"compositionend":return Sa(t);case"keypress":return t.which!==32?null:(wa=!0,xa);case"textInput":return e=t.data,e===xa&&wa?null:e;default:return null}}function Cf(e,t){if(In)return e==="compositionend"||!Go&&ka(e,t)?(e=pa(),pl=Vo=Yt=null,In=!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=za(n)}}function La(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?La(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ta(){for(var e=window,t=el();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=el(e.document)}return t}function Yo(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 Tf(e){var t=Ta(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&La(n.ownerDocument.documentElement,n)){if(r!==null&&Yo(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ra(n,o);var u=Ra(n,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.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,Fn=null,Jo=null,jr=null,qo=!1;function Ma(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||Fn==null||Fn!==el(r)||(r=Fn,"selectionStart"in r&&Yo(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&&Er(jr,r)||(jr=r,r=kl(Jo,"onSelect"),0Vn||(e.current=ci[Vn],ci[Vn]=null,Vn--)}function fe(e,t){Vn++,ci[Vn]=e.current,e.current=t}var en={},Ve=Zt(en),Ke=Zt(!1),xn=en;function Wn(e,t){var n=e.type.contextTypes;if(!n)return en;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Xe(e){return e=e.childContextTypes,e!=null}function El(){ve(Ke),ve(Ve)}function Ka(e,t,n){if(Ve.current!==en)throw Error(s(168));fe(Ve,t),fe(Ke,n)}function Xa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(s(108,de(e)||"Unknown",l));return A({},n,r)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||en,xn=Ve.current,fe(Ve,e),fe(Ke,Ke.current),!0}function Ya(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=Xa(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,ve(Ke),ve(Ve),fe(Ve,e)):ve(Ke),fe(Ke,n)}var Tt=null,Pl=!1,di=!1;function Ja(e){Tt===null?Tt=[e]:Tt.push(e)}function bf(e){Pl=!0,Ja(e)}function tn(){if(!di&&Tt!==null){di=!0;var e=0,t=ue;try{var n=Tt;for(ue=1;e>=u,l-=u,Mt=1<<32-vt(t)+l|n<Y?(Ie=X,X=null):Ie=X.sibling;var se=L(w,X,S[Y],I);if(se===null){X===null&&(X=Ie);break}e&&X&&se.alternate===null&&t(w,X),v=o(se,v,Y),K===null?b=se:K.sibling=se,K=se,X=Ie}if(Y===S.length)return n(w,X),xe&&kn(w,Y),b;if(X===null){for(;YY?(Ie=X,X=null):Ie=X.sibling;var dn=L(w,X,se.value,I);if(dn===null){X===null&&(X=Ie);break}e&&X&&dn.alternate===null&&t(w,X),v=o(dn,v,Y),K===null?b=dn:K.sibling=dn,K=dn,X=Ie}if(se.done)return n(w,X),xe&&kn(w,Y),b;if(X===null){for(;!se.done;Y++,se=S.next())se=O(w,se.value,I),se!==null&&(v=o(se,v,Y),K===null?b=se:K.sibling=se,K=se);return xe&&kn(w,Y),b}for(X=r(w,X);!se.done;Y++,se=S.next())se=U(X,w,Y,se.value,I),se!==null&&(e&&se.alternate!==null&&X.delete(se.key===null?Y:se.key),v=o(se,v,Y),K===null?b=se:K.sibling=se,K=se);return e&&X.forEach(function(Np){return t(w,Np)}),xe&&kn(w,Y),b}function je(w,v,S,I){if(typeof S=="object"&&S!==null&&S.type===Pe&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case pe:e:{for(var b=S.key,K=v;K!==null;){if(K.key===b){if(b=S.type,b===Pe){if(K.tag===7){n(w,K.sibling),v=l(K,S.props.children),v.return=w,w=v;break e}}else if(K.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Re&&ru(b)===K.type){n(w,K.sibling),v=l(K,S.props),v.ref=Tr(w,K,S),v.return=w,w=v;break e}n(w,K);break}else t(w,K);K=K.sibling}S.type===Pe?(v=zn(S.props.children,w.mode,I,S.key),v.return=w,w=v):(I=to(S.type,S.key,S.props,null,w.mode,I),I.ref=Tr(w,v,S),I.return=w,w=I)}return u(w);case Ce:e:{for(K=S.key;v!==null;){if(v.key===K)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(w,v.sibling),v=l(v,S.children||[]),v.return=w,w=v;break e}else{n(w,v);break}else t(w,v);v=v.sibling}v=as(S,w.mode,I),v.return=w,w=v}return u(w);case Re:return K=S._init,je(w,v,K(S._payload),I)}if(sr(S))return W(w,v,S,I);if(G(S))return $(w,v,S,I);Ll(w,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(w,v.sibling),v=l(v,S),v.return=w,w=v):(n(w,v),v=ss(S,w.mode,I),v.return=w,w=v),u(w)):n(w,v)}return je}var Qn=lu(!0),ou=lu(!1),Tl=Zt(null),Ml=null,Gn=null,gi=null;function yi(){gi=Gn=Ml=null}function xi(e){var t=Tl.current;ve(Tl),e._currentValue=t}function wi(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 Kn(e,t){Ml=e,gi=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(gi!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(Ml===null)throw Error(s(308));Gn=e,Ml.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var Sn=null;function ki(e){Sn===null?Sn=[e]:Sn.push(e)}function iu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ki(t)):(n.next=l.next,l.next=n),t.interleaved=n,It(e,r)}function It(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 nn=!1;function Si(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function su(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 Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(le&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,It(e,n)}return l=r.interleaved,l===null?(t.next=t,ki(r)):(t.next=l.next,l.next=t),r.interleaved=t,It(e,n)}function Ol(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,Fo(e,n)}}function au(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=u:o=o.next=u,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 Il(e,t,n,r){var l=e.updateQueue;nn=!1;var o=l.firstBaseUpdate,u=l.lastBaseUpdate,f=l.shared.pending;if(f!==null){l.shared.pending=null;var m=f,C=m.next;m.next=null,u===null?o=C:u.next=C,u=m;var M=e.alternate;M!==null&&(M=M.updateQueue,f=M.lastBaseUpdate,f!==u&&(f===null?M.firstBaseUpdate=C:f.next=C,M.lastBaseUpdate=m))}if(o!==null){var O=l.baseState;u=0,M=C=m=null,f=o;do{var L=f.lane,U=f.eventTime;if((r&L)===L){M!==null&&(M=M.next={eventTime:U,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var W=e,$=f;switch(L=t,U=n,$.tag){case 1:if(W=$.payload,typeof W=="function"){O=W.call(U,O,L);break e}O=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=$.payload,L=typeof W=="function"?W.call(U,O,L):W,L==null)break e;O=A({},O,L);break e;case 2:nn=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,L=l.effects,L===null?l.effects=[f]:L.push(f))}else U={eventTime:U,lane:L,tag:f.tag,payload:f.payload,callback:f.callback,next:null},M===null?(C=M=U,m=O):M=M.next=U,u|=L;if(f=f.next,f===null){if(f=l.shared.pending,f===null)break;L=f,f=L.next,L.next=null,l.lastBaseUpdate=L,l.shared.pending=null}}while(!0);if(M===null&&(m=O),l.baseState=m,l.firstBaseUpdate=C,l.lastBaseUpdate=M,t=l.shared.interleaved,t!==null){l=t;do u|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);En|=u,e.lanes=u,e.memoizedState=O}}function uu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Pi.transition;Pi.transition={};try{e(!1),t()}finally{ue=n,Pi.transition=r}}function _u(){return dt().memoizedState}function Kf(e,t,n){var r=an(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zu(e))Ru(t,n);else if(n=iu(e,t,n,r),n!==null){var l=Qe();St(n,e,r,l),Lu(n,t,r)}}function Xf(e,t,n){var r=an(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zu(e))Ru(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var u=t.lastRenderedState,f=o(u,n);if(l.hasEagerState=!0,l.eagerState=f,gt(f,u)){var m=t.interleaved;m===null?(l.next=l,ki(t)):(l.next=m.next,m.next=l),t.interleaved=l;return}}catch{}finally{}n=iu(e,t,l,r),n!==null&&(l=Qe(),St(n,e,r,l),Lu(n,t,r))}}function zu(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Ru(e,t){Fr=Ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lu(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fo(e,n)}}var Vl={readContext:ct,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},Yf={readContext:ct,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:wu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Al(4194308,4,Cu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Al(4194308,4,e,t)},useInsertionEffect:function(e,t){return Al(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();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=Kf.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:yu,useDebugValue:Oi,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=yu(!1),t=e[0];return e=Gf.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,l=zt();if(xe){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Oe===null)throw Error(s(349));(Nn&30)!==0||pu(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,wu(mu.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,hu.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=zt(),t=Oe.identifierPrefix;if(xe){var n=Ot,r=Mt;n=(r&~(1<<32-vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Dr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Pt]=t,e[Rr]=r,Ju(e,t,!1,!1),t.stateNode=e;e:{switch(u=jo(n,r),n){case"dialog":me("cancel",e),me("close",e),l=r;break;case"iframe":case"object":case"embed":me("load",e),l=r;break;case"video":case"audio":for(l=0;lZn&&(t.flags|=128,r=!0,Br(o,!1),t.lanes=4194304)}else{if(!r)if(e=Fl(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!xe)return $e(t),null}else 2*Ee()-o.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,Br(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(n=o.last,n!==null?n.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ee(),t.sibling=null,n=we.current,fe(we,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return ls(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(it&1073741824)!==0&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function lp(e,t){switch(pi(t),t.tag){case 1:return Xe(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(),ve(Ke),ve(Ve),ji(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ni(t),null;case 13:if(ve(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Hn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(we),null;case 4:return Xn(),null;case 10:return xi(t.type._context),null;case 22:case 23:return ls(),null;case 24:return null;default:return null}}var Hl=!1,be=!1,op=typeof WeakSet=="function"?WeakSet:Set,V=null;function Jn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ne(e,t,r)}else n.current=null}function Qi(e,t,n){try{n()}catch(r){Ne(e,t,r)}}var ec=!1;function ip(e,t){if(li=dl,e=Ta(),Yo(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var u=0,f=-1,m=-1,C=0,M=0,O=e,L=null;t:for(;;){for(var U;O!==n||l!==0&&O.nodeType!==3||(f=u+l),O!==o||r!==0&&O.nodeType!==3||(m=u+r),O.nodeType===3&&(u+=O.nodeValue.length),(U=O.firstChild)!==null;)L=O,O=U;for(;;){if(O===e)break t;if(L===n&&++C===l&&(f=u),L===o&&++M===r&&(m=u),(U=O.nextSibling)!==null)break;O=L,L=O.parentNode}O=U}n=f===-1||m===-1?null:{start:f,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(oi={focusedElem:e,selectionRange:n},dl=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var W=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(W!==null){var $=W.memoizedProps,je=W.memoizedState,w=t.stateNode,v=w.getSnapshotBeforeUpdate(t.elementType===t.type?$:xt(t.type,$),je);w.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(I){Ne(t,t.return,I)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return W=ec,ec=!1,W}function Vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Qi(t,n,o)}l=l.next}while(l!==r)}}function Ql(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 Gi(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 tc(e){var t=e.alternate;t!==null&&(e.alternate=null,tc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pt],delete t[Rr],delete t[ui],delete t[Wf],delete t[$f])),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 nc(e){return e.tag===5||e.tag===3||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nc(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 Ki(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=Cl));else if(r!==4&&(e=e.child,e!==null))for(Ki(e,t,n),e=e.sibling;e!==null;)Ki(e,t,n),e=e.sibling}function Xi(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(Xi(e,t,n),e=e.sibling;e!==null;)Xi(e,t,n),e=e.sibling}var De=null,wt=!1;function ln(e,t,n){for(n=n.child;n!==null;)lc(e,t,n),n=n.sibling}function lc(e,t,n){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(ol,n)}catch{}switch(n.tag){case 5:be||Jn(n,t);case 6:var r=De,l=wt;De=null,ln(e,t,n),De=r,wt=l,De!==null&&(wt?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(wt?(e=De,n=n.stateNode,e.nodeType===8?ai(e.parentNode,n):e.nodeType===1&&ai(e,n),xr(e)):ai(De,n.stateNode));break;case 4:r=De,l=wt,De=n.stateNode.containerInfo,wt=!0,ln(e,t,n),De=r,wt=l;break;case 0:case 11:case 14:case 15:if(!be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,u=o.destroy;o=o.tag,u!==void 0&&((o&2)!==0||(o&4)!==0)&&Qi(n,t,u),l=l.next}while(l!==r)}ln(e,t,n);break;case 1:if(!be&&(Jn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(f){Ne(n,t,f)}ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:n.mode&1?(be=(r=be)||n.memoizedState!==null,ln(e,t,n),be=r):ln(e,t,n);break;default:ln(e,t,n)}}function oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new op),t.forEach(function(r){var l=mp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=u),r&=~o}if(r=l,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ap(r/1960))-r,10e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,Jl=0,(le&6)!==0)throw Error(s(331));var l=le;for(le|=4,V=e.current;V!==null;){var o=V,u=o.child;if((V.flags&16)!==0){var f=o.deletions;if(f!==null){for(var m=0;mEe()-qi?Pn(e,0):Ji|=n),qe(e,t)}function yc(e,t){t===0&&((e.mode&1)===0?t=1:(t=sl,sl<<=1,(sl&130023424)===0&&(sl=4194304)));var n=Qe();e=It(e,t),e!==null&&(hr(e,t,n),qe(e,n))}function hp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yc(e,n)}function mp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(s(314))}r!==null&&r.delete(t),yc(e,n)}var xc;xc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Ye=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ye=!1,np(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,xe&&(t.flags&1048576)!==0&&qa(t,zl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var l=Wn(t,Ve.current);Kn(t,n),l=zi(null,t,r,e,l,n);var o=Ri();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(o=!0,jl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Si(t),l.updater=Wl,t.stateNode=l,l._reactInternals=t,Fi(t,r,e,n),t=Bi(null,t,r,!0,o,n)):(t.tag=0,xe&&o&&fi(t),He(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=gp(r),e=xt(r,e),l){case 0:t=Ai(null,t,r,e,n);break e;case 1:t=Hu(null,t,r,e,n);break e;case 11:t=Bu(null,t,r,e,n);break e;case 14:t=Vu(null,t,r,xt(r.type,e),n);break e}throw Error(s(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:xt(r,l),Ai(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:xt(r,l),Hu(e,t,r,l,n);case 3:e:{if(Qu(t),e===null)throw Error(s(387));r=t.pendingProps,o=t.memoizedState,l=o.element,su(e,t),Il(t,r,null,n);var u=t.memoizedState;if(r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Yn(Error(s(423)),t),t=Gu(e,t,r,n,l);break e}else if(r!==l){l=Yn(Error(s(424)),t),t=Gu(e,t,r,n,l);break e}else for(ot=qt(t.stateNode.containerInfo.firstChild),lt=t,xe=!0,yt=null,n=ou(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hn(),r===l){t=Dt(e,t,n);break e}He(e,t,r,n)}t=t.child}return t;case 5:return cu(t),e===null&&mi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,u=l.children,ii(r,l)?u=null:o!==null&&ii(r,o)&&(t.flags|=32),bu(e,t),He(e,t,u,n),t.child;case 6:return e===null&&mi(t),null;case 13:return Ku(e,t,n);case 4:return Ci(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qn(t,null,r,n):He(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:xt(r,l),Bu(e,t,r,l,n);case 7:return He(e,t,t.pendingProps,n),t.child;case 8:return He(e,t,t.pendingProps.children,n),t.child;case 12:return He(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,u=l.value,fe(Tl,r._currentValue),r._currentValue=u,o!==null)if(gt(o.value,u)){if(o.children===l.children&&!Ke.current){t=Dt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var f=o.dependencies;if(f!==null){u=o.child;for(var m=f.firstContext;m!==null;){if(m.context===r){if(o.tag===1){m=Ft(-1,n&-n),m.tag=2;var C=o.updateQueue;if(C!==null){C=C.shared;var M=C.pending;M===null?m.next=m:(m.next=M.next,M.next=m),C.pending=m}}o.lanes|=n,m=o.alternate,m!==null&&(m.lanes|=n),wi(o.return,n,t),f.lanes|=n;break}m=m.next}}else if(o.tag===10)u=o.type===t.type?null:o.child;else if(o.tag===18){if(u=o.return,u===null)throw Error(s(341));u.lanes|=n,f=u.alternate,f!==null&&(f.lanes|=n),wi(u,n,t),u=o.sibling}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===t){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}He(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Kn(t,n),l=ct(l),r=r(l),t.flags|=1,He(e,t,r,n),t.child;case 14:return r=t.type,l=xt(r,t.pendingProps),l=xt(r.type,l),Vu(e,t,r,l,n);case 15:return Wu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:xt(r,l),bl(e,t),t.tag=1,Xe(r)?(e=!0,jl(t)):e=!1,Kn(t,n),Mu(t,r,l),Fi(t,r,l,n),Bi(null,t,r,!0,e,n);case 19:return Yu(e,t,n);case 22:return $u(e,t,n)}throw Error(s(156,t.tag))};function wc(e,t){return Zs(e,t)}function vp(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 pt(e,t,n,r){return new vp(e,t,n,r)}function is(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gp(e){if(typeof e=="function")return is(e)?1:0;if(e!=null){if(e=e.$$typeof,e===re)return 11;if(e===tt)return 14}return 2}function cn(e,t){var n=e.alternate;return n===null?(n=pt(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 to(e,t,n,r,l,o){var u=2;if(r=e,typeof e=="function")is(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Pe:return zn(n.children,l,o,t);case ze:u=8,l|=8;break;case Ge:return e=pt(12,n,t,l|2),e.elementType=Ge,e.lanes=o,e;case Ae:return e=pt(13,n,t,l),e.elementType=Ae,e.lanes=o,e;case Be:return e=pt(19,n,t,l),e.elementType=Be,e.lanes=o,e;case he:return no(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fe:u=10;break e;case et:u=9;break e;case re:u=11;break e;case tt:u=14;break e;case Re:u=16,r=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=pt(u,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function zn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function no(e,t,n,r){return e=pt(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function ss(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function as(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yp(e,t,n,r,l){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=Io(0),this.expirationTimes=Io(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Io(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function us(e,t,n,r,l,o,u,f,m){return e=new yp(e,t,n,f,m),t===1?(t=1,o===!0&&(t|=8)):t=0,o=pt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Si(o),e}function xp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),ms.exports=Op(),ms.exports}var Oc;function Ip(){if(Oc)return uo;Oc=1;var i=Yc();return uo.createRoot=i.createRoot,uo.hydrateRoot=i.hydrateRoot,uo}var Fp=Ip();Yc();/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Yr(){return Yr=Object.assign?Object.assign.bind():function(i){for(var a=1;a"u")throw new Error(a)}function Ps(i,a){if(!i){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Up(){return Math.random().toString(36).substr(2,8)}function Fc(i,a){return{usr:i.state,key:i.key,idx:a}}function ks(i,a,s,c){return s===void 0&&(s=null),Yr({pathname:typeof i=="string"?i:i.pathname,search:"",hash:""},typeof a=="string"?lr(a):a,{state:s,key:a&&a.key||c||Up()})}function fo(i){let{pathname:a="/",search:s="",hash:c=""}=i;return s&&s!=="?"&&(a+=s.charAt(0)==="?"?s:"?"+s),c&&c!=="#"&&(a+=c.charAt(0)==="#"?c:"#"+c),a}function lr(i){let a={};if(i){let s=i.indexOf("#");s>=0&&(a.hash=i.substr(s),i=i.substr(0,s));let c=i.indexOf("?");c>=0&&(a.search=i.substr(c),i=i.substr(0,c)),i&&(a.pathname=i)}return a}function Ap(i,a,s,c){c===void 0&&(c={});let{window:p=document.defaultView,v5Compat:h=!1}=c,g=p.history,x=hn.Pop,k=null,_=N();_==null&&(_=0,g.replaceState(Yr({},g.state,{idx:_}),""));function N(){return(g.state||{idx:null}).idx}function j(){x=hn.Pop;let z=N(),H=z==null?null:z-_;_=z,k&&k({action:x,location:R.location,delta:H})}function P(z,H){x=hn.Push;let Q=ks(R.location,z,H);_=N()+1;let q=Fc(Q,_),J=R.createHref(Q);try{g.pushState(q,"",J)}catch(pe){if(pe instanceof DOMException&&pe.name==="DataCloneError")throw pe;p.location.assign(J)}h&&k&&k({action:x,location:R.location,delta:1})}function B(z,H){x=hn.Replace;let Q=ks(R.location,z,H);_=N();let q=Fc(Q,_),J=R.createHref(Q);g.replaceState(q,"",J),h&&k&&k({action:x,location:R.location,delta:0})}function F(z){let H=p.location.origin!=="null"?p.location.origin:p.location.href,Q=typeof z=="string"?z:fo(z);return Q=Q.replace(/ $/,"%20"),Se(H,"No window.location.(origin|href) available to create URL for href: "+Q),new URL(Q,H)}let R={get action(){return x},get location(){return i(p,g)},listen(z){if(k)throw new Error("A history only accepts one active listener");return p.addEventListener(Ic,j),k=z,()=>{p.removeEventListener(Ic,j),k=null}},createHref(z){return a(p,z)},createURL:F,encodeLocation(z){let H=F(z);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:P,replace:B,go(z){return g.go(z)}};return R}var Dc;(function(i){i.data="data",i.deferred="deferred",i.redirect="redirect",i.error="error"})(Dc||(Dc={}));function Bp(i,a,s){return s===void 0&&(s="/"),Vp(i,a,s)}function Vp(i,a,s,c){let p=typeof a=="string"?lr(a):a,h=nr(p.pathname||"/",s);if(h==null)return null;let g=Jc(i);Wp(g);let x=null,k=Zp(h);for(let _=0;x==null&&_{let k={relativePath:x===void 0?h.path||"":x,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};k.relativePath.startsWith("/")&&(Se(k.relativePath.startsWith(c),'Absolute route path "'+k.relativePath+'" nested under path '+('"'+c+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),k.relativePath=k.relativePath.slice(c.length));let _=mn([c,k.relativePath]),N=s.concat(k);h.children&&h.children.length>0&&(Se(h.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+_+'".')),Jc(h.children,a,N,_)),!(h.path==null&&!h.index)&&a.push({path:_,score:Xp(_,h.index),routesMeta:N})};return i.forEach((h,g)=>{var x;if(h.path===""||!((x=h.path)!=null&&x.includes("?")))p(h,g);else for(let k of qc(h.path))p(h,g,k)}),a}function qc(i){let a=i.split("/");if(a.length===0)return[];let[s,...c]=a,p=s.endsWith("?"),h=s.replace(/\?$/,"");if(c.length===0)return p?[h,""]:[h];let g=qc(c.join("/")),x=[];return x.push(...g.map(k=>k===""?h:[h,k].join("/"))),p&&x.push(...g),x.map(k=>i.startsWith("/")&&k===""?"/":k)}function Wp(i){i.sort((a,s)=>a.score!==s.score?s.score-a.score:Yp(a.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}const $p=/^:[\w-]+$/,bp=3,Hp=2,Qp=1,Gp=10,Kp=-2,Uc=i=>i==="*";function Xp(i,a){let s=i.split("/"),c=s.length;return s.some(Uc)&&(c+=Kp),a&&(c+=Hp),s.filter(p=>!Uc(p)).reduce((p,h)=>p+($p.test(h)?bp:h===""?Qp:Gp),c)}function Yp(i,a){return i.length===a.length&&i.slice(0,-1).every((c,p)=>c===a[p])?i[i.length-1]-a[a.length-1]:0}function Jp(i,a,s){let{routesMeta:c}=i,p={},h="/",g=[];for(let x=0;x{let{paramName:P,isOptional:B}=N;if(P==="*"){let R=x[j]||"";g=h.slice(0,h.length-R.length).replace(/(.)\/+$/,"$1")}const F=x[j];return B&&!F?_[P]=void 0:_[P]=(F||"").replace(/%2F/g,"/"),_},{}),pathname:h,pathnameBase:g,pattern:i}}function qp(i,a,s){a===void 0&&(a=!1),s===void 0&&(s=!0),Ps(i==="*"||!i.endsWith("*")||i.endsWith("/*"),'Route path "'+i+'" will be treated as if it were '+('"'+i.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+i.replace(/\*$/,"/*")+'".'));let c=[],p="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,x,k)=>(c.push({paramName:x,isOptional:k!=null}),k?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(c.push({paramName:"*"}),p+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?p+="\\/*$":i!==""&&i!=="/"&&(p+="(?:(?=\\/|$))"),[new RegExp(p,a?void 0:"i"),c]}function Zp(i){try{return i.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Ps(!1,'The URL path "'+i+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+a+").")),i}}function nr(i,a){if(a==="/")return i;if(!i.toLowerCase().startsWith(a.toLowerCase()))return null;let s=a.endsWith("/")?a.length-1:a.length,c=i.charAt(s);return c&&c!=="/"?null:i.slice(s)||"/"}const eh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,th=i=>eh.test(i);function nh(i,a){a===void 0&&(a="/");let{pathname:s,search:c="",hash:p=""}=typeof i=="string"?lr(i):i,h;if(s)if(th(s))h=s;else{if(s.includes("//")){let g=s;s=Zc(s),Ps(!1,"Pathnames cannot have embedded double slashes - normalizing "+(g+" -> "+s))}s.startsWith("/")?h=Ac(s.substring(1),"/"):h=Ac(s,a)}else h=a;return{pathname:h,search:oh(c),hash:ih(p)}}function Ac(i,a){let s=a.replace(/\/+$/,"").split("/");return i.split("/").forEach(p=>{p===".."?s.length>1&&s.pop():p!=="."&&s.push(p)}),s.length>1?s.join("/"):"/"}function ys(i,a,s,c){return"Cannot include a '"+i+"' character in a manually specified "+("`to."+a+"` field ["+JSON.stringify(c)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function rh(i){return i.filter((a,s)=>s===0||a.route.path&&a.route.path.length>0)}function _s(i,a){let s=rh(i);return a?s.map((c,p)=>p===s.length-1?c.pathname:c.pathnameBase):s.map(c=>c.pathnameBase)}function zs(i,a,s,c){c===void 0&&(c=!1);let p;typeof i=="string"?p=lr(i):(p=Yr({},i),Se(!p.pathname||!p.pathname.includes("?"),ys("?","pathname","search",p)),Se(!p.pathname||!p.pathname.includes("#"),ys("#","pathname","hash",p)),Se(!p.search||!p.search.includes("#"),ys("#","search","hash",p)));let h=i===""||p.pathname==="",g=h?"/":p.pathname,x;if(g==null)x=s;else{let j=a.length-1;if(!c&&g.startsWith("..")){let P=g.split("/");for(;P[0]==="..";)P.shift(),j-=1;p.pathname=P.join("/")}x=j>=0?a[j]:"/"}let k=nh(p,x),_=g&&g!=="/"&&g.endsWith("/"),N=(h||g===".")&&s.endsWith("/");return!k.pathname.endsWith("/")&&(_||N)&&(k.pathname+="/"),k}const Zc=i=>i.replace(/\/\/+/g,"/"),mn=i=>Zc(i.join("/")),lh=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),oh=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,ih=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function sh(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}const ed=["post","put","patch","delete"];new Set(ed);const ah=["get",...ed];new Set(ah);/** * React Router v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jr(){return Jr=Object.assign?Object.assign.bind():function(i){for(var a=1;a{x.current=!0}),E.useCallback(function(_,N){if(N===void 0&&(N={}),!x.current)return;if(typeof _=="number"){c.go(_);return}let j=zs(_,JSON.parse(g),h,N.relative==="path");i==null&&a!=="/"&&(j.pathname=j.pathname==="/"?a:mn([a,j.pathname])),(N.replace?c.replace:c.push)(j,N.state,N)},[a,c,g,h,i])}const dh=E.createContext(null);function fh(i){let a=E.useContext(Ht).outlet;return a&&E.createElement(dh.Provider,{value:i},a)}function xo(i,a){let{relative:s}=a===void 0?{}:a,{future:c}=E.useContext(bt),{matches:p}=E.useContext(Ht),{pathname:h}=vn(),g=JSON.stringify(_s(p,c.v7_relativeSplatPath));return E.useMemo(()=>zs(i,JSON.parse(g),h,s==="path"),[i,g,h,s])}function ph(i,a){return hh(i,a)}function hh(i,a,s,c){or()||Se(!1);let{navigator:p}=E.useContext(bt),{matches:h}=E.useContext(Ht),g=h[h.length-1],x=g?g.params:{};g&&g.pathname;let k=g?g.pathnameBase:"/";g&&g.route;let _=vn(),N;if(a){var j;let z=typeof a=="string"?lr(a):a;k==="/"||(j=z.pathname)!=null&&j.startsWith(k)||Se(!1),N=z}else N=_;let P=N.pathname||"/",B=P;if(k!=="/"){let z=k.replace(/^\//,"").split("/");B="/"+P.replace(/^\//,"").split("/").slice(z.length).join("/")}let F=Bp(i,{pathname:B}),R=xh(F&&F.map(z=>Object.assign({},z,{params:Object.assign({},x,z.params),pathname:mn([k,p.encodeLocation?p.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?k:mn([k,p.encodeLocation?p.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),h,s,c);return a&&R?E.createElement(go.Provider,{value:{location:Jr({pathname:"/",search:"",hash:"",state:null,key:"default"},N),navigationType:hn.Pop}},R):R}function mh(){let i=Ch(),a=sh(i)?i.status+" "+i.statusText:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,p={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},a),s?E.createElement("pre",{style:p},s):null,null)}const vh=E.createElement(mh,null);class gh extends E.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,s){return s.location!==a.location||s.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:s.error,location:s.location,revalidation:a.revalidation||s.revalidation}}componentDidCatch(a,s){console.error("React Router caught the following error during render",a,s)}render(){return this.state.error!==void 0?E.createElement(Ht.Provider,{value:this.props.routeContext},E.createElement(nd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function yh(i){let{routeContext:a,match:s,children:c}=i,p=E.useContext(vo);return p&&p.static&&p.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(p.staticContext._deepestRenderedBoundaryId=s.route.id),E.createElement(Ht.Provider,{value:a},c)}function xh(i,a,s,c){var p;if(a===void 0&&(a=[]),s===void 0&&(s=null),c===void 0&&(c=null),i==null){var h;if(!s)return null;if(s.errors)i=s.matches;else if((h=c)!=null&&h.v7_partialHydration&&a.length===0&&!s.initialized&&s.matches.length>0)i=s.matches;else return null}let g=i,x=(p=s)==null?void 0:p.errors;if(x!=null){let N=g.findIndex(j=>j.route.id&&(x==null?void 0:x[j.route.id])!==void 0);N>=0||Se(!1),g=g.slice(0,Math.min(g.length,N+1))}let k=!1,_=-1;if(s&&c&&c.v7_partialHydration)for(let N=0;N=0?g=g.slice(0,_+1):g=[g[0]];break}}}return g.reduceRight((N,j,P)=>{let B,F=!1,R=null,z=null;s&&(B=x&&j.route.id?x[j.route.id]:void 0,R=j.route.errorElement||vh,k&&(_<0&&P===0?(Eh("route-fallback"),F=!0,z=null):_===P&&(F=!0,z=j.route.hydrateFallbackElement||null)));let H=a.concat(g.slice(0,P+1)),Q=()=>{let q;return B?q=R:F?q=z:j.route.Component?q=E.createElement(j.route.Component,null):j.route.element?q=j.route.element:q=N,E.createElement(yh,{match:j,routeContext:{outlet:N,matches:H,isDataRoute:s!=null},children:q})};return s&&(j.route.ErrorBoundary||j.route.errorElement||P===0)?E.createElement(gh,{location:s.location,revalidation:s.revalidation,component:R,error:B,children:Q(),routeContext:{outlet:null,matches:H,isDataRoute:!0}}):Q()},null)}var ld=(function(i){return i.UseBlocker="useBlocker",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i})(ld||{}),od=(function(i){return i.UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i})(od||{});function wh(i){let a=E.useContext(vo);return a||Se(!1),a}function kh(i){let a=E.useContext(td);return a||Se(!1),a}function Sh(i){let a=E.useContext(Ht);return a||Se(!1),a}function id(i){let a=Sh(),s=a.matches[a.matches.length-1];return s.route.id||Se(!1),s.route.id}function Ch(){var i;let a=E.useContext(nd),s=kh(),c=id();return a!==void 0?a:(i=s.errors)==null?void 0:i[c]}function Nh(){let{router:i}=wh(ld.UseNavigateStable),a=id(od.UseNavigateStable),s=E.useRef(!1);return rd(()=>{s.current=!0}),E.useCallback(function(p,h){h===void 0&&(h={}),s.current&&(typeof p=="number"?i.navigate(p):i.navigate(p,Jr({fromRouteId:a},h)))},[i,a])}const Bc={};function Eh(i,a,s){Bc[i]||(Bc[i]=!0)}function jh(i,a){i==null||i.v7_startTransition,i==null||i.v7_relativeSplatPath}function co(i){let{to:a,replace:s,state:c,relative:p}=i;or()||Se(!1);let{future:h,static:g}=E.useContext(bt),{matches:x}=E.useContext(Ht),{pathname:k}=vn(),_=yo(),N=zs(a,_s(x,h.v7_relativeSplatPath),k,p==="path"),j=JSON.stringify(N);return E.useEffect(()=>_(JSON.parse(j),{replace:s,state:c,relative:p}),[_,j,p,s,c]),null}function sd(i){return fh(i.context)}function Ct(i){Se(!1)}function Ph(i){let{basename:a="/",children:s=null,location:c,navigationType:p=hn.Pop,navigator:h,static:g=!1,future:x}=i;or()&&Se(!1);let k=a.replace(/^\/*/,"/"),_=E.useMemo(()=>({basename:k,navigator:h,static:g,future:Jr({v7_relativeSplatPath:!1},x)}),[k,x,h,g]);typeof c=="string"&&(c=lr(c));let{pathname:N="/",search:j="",hash:P="",state:B=null,key:F="default"}=c,R=E.useMemo(()=>{let z=nr(N,k);return z==null?null:{location:{pathname:z,search:j,hash:P,state:B,key:F},navigationType:p}},[k,N,j,P,B,F,p]);return R==null?null:E.createElement(bt.Provider,{value:_},E.createElement(go.Provider,{children:s,value:R}))}function _h(i){let{children:a,location:s}=i;return ph(Cs(a),s)}new Promise(()=>{});function Cs(i,a){a===void 0&&(a=[]);let s=[];return E.Children.forEach(i,(c,p)=>{if(!E.isValidElement(c))return;let h=[...a,p];if(c.type===E.Fragment){s.push.apply(s,Cs(c.props.children,h));return}c.type!==Ct&&Se(!1),!c.props.index||!c.props.children||Se(!1);let g={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,loader:c.props.loader,action:c.props.action,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(g.children=Cs(c.props.children,h)),s.push(g)}),s}/** * React Router DOM v6.30.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function po(){return po=Object.assign?Object.assign.bind():function(i){for(var a=1;a{_&&Vc?Vc(()=>k(j)):k(j)},[k,_]);return E.useLayoutEffect(()=>g.listen(N),[g,N]),E.useEffect(()=>jh(c),[c]),E.createElement(Ph,{basename:a,children:s,location:x.location,navigationType:x.action,navigator:g,future:c})}const Dh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ah=E.forwardRef(function(a,s){let{onClick:c,relative:p,reloadDocument:h,replace:g,state:x,target:k,to:_,preventScrollReset:N,viewTransition:j}=a,P=ad(a,Lh),{basename:B}=E.useContext(bt),F,R=!1;if(typeof _=="string"&&Uh.test(_)&&(F=_,Dh))try{let q=new URL(window.location.href),J=_.startsWith("//")?new URL(q.protocol+_):new URL(_),pe=nr(J.pathname,B);J.origin===q.origin&&pe!=null?_=pe+J.search+J.hash:R=!0}catch{}let z=uh(_,{relative:p}),H=Wh(_,{replace:g,state:x,target:k,preventScrollReset:N,relative:p,viewTransition:j});function Q(q){c&&c(q),q.defaultPrevented||H(q)}return E.createElement("a",po({},P,{href:F||z,onClick:R||h?c:Q,ref:s,target:k}))}),Bh=E.forwardRef(function(a,s){let{"aria-current":c="page",caseSensitive:p=!1,className:h="",end:g=!1,style:x,to:k,viewTransition:_,children:N}=a,j=ad(a,Th),P=xo(k,{relative:j.relative}),B=vn(),F=E.useContext(td),{navigator:R,basename:z}=E.useContext(bt),H=F!=null&&$h(P)&&_===!0,Q=R.encodeLocation?R.encodeLocation(P).pathname:P.pathname,q=B.pathname,J=F&&F.navigation&&F.navigation.location?F.navigation.location.pathname:null;p||(q=q.toLowerCase(),J=J?J.toLowerCase():null,Q=Q.toLowerCase()),J&&z&&(J=nr(J,z)||J);const pe=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let Ce=q===Q||!g&&q.startsWith(Q)&&q.charAt(pe)==="/",Pe=J!=null&&(J===Q||!g&&J.startsWith(Q)&&J.charAt(Q.length)==="/"),ze={isActive:Ce,isPending:Pe,isTransitioning:H},Ge=Ce?c:void 0,Fe;typeof h=="function"?Fe=h(ze):Fe=[h,Ce?"active":null,Pe?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let et=typeof x=="function"?x(ze):x;return E.createElement(Ah,po({},j,{"aria-current":Ge,className:Fe,ref:s,style:et,to:k,viewTransition:_}),typeof N=="function"?N(ze):N)});var Ns;(function(i){i.UseScrollRestoration="useScrollRestoration",i.UseSubmit="useSubmit",i.UseSubmitFetcher="useSubmitFetcher",i.UseFetcher="useFetcher",i.useViewTransitionState="useViewTransitionState"})(Ns||(Ns={}));var Wc;(function(i){i.UseFetcher="useFetcher",i.UseFetchers="useFetchers",i.UseScrollRestoration="useScrollRestoration"})(Wc||(Wc={}));function Vh(i){let a=E.useContext(vo);return a||Se(!1),a}function Wh(i,a){let{target:s,replace:c,state:p,preventScrollReset:h,relative:g,viewTransition:x}=a===void 0?{}:a,k=yo(),_=vn(),N=xo(i,{relative:g});return E.useCallback(j=>{if(Rh(j,s)){j.preventDefault();let P=c!==void 0?c:fo(_)===fo(N);k(i,{replace:P,state:p,preventScrollReset:h,relative:g,viewTransition:x})}},[_,k,N,c,p,s,i,h,g,x])}function $h(i,a){a===void 0&&(a={});let s=E.useContext(Oh);s==null&&Se(!1);let{basename:c}=Vh(Ns.useViewTransitionState),p=xo(i,{relative:a.relative});if(!s.isTransitioning)return!1;let h=nr(s.currentLocation.pathname,c)||s.currentLocation.pathname,g=nr(s.nextLocation.pathname,c)||s.nextLocation.pathname;return Ss(p.pathname,g)!=null||Ss(p.pathname,h)!=null}/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bh=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ud=(...i)=>i.filter((a,s,c)=>!!a&&a.trim()!==""&&c.indexOf(a)===s).join(" ").trim();/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Hh={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.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qh=E.forwardRef(({color:i="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:p="",children:h,iconNode:g,...x},k)=>E.createElement("svg",{ref:k,...Hh,width:a,height:a,stroke:i,strokeWidth:c?Number(s)*24/Number(a):s,className:ud("lucide",p),...x},[...g.map(([_,N])=>E.createElement(_,N)),...Array.isArray(h)?h:[h]]));/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ce=(i,a)=>{const s=E.forwardRef(({className:c,...p},h)=>E.createElement(Qh,{ref:h,iconNode:a,className:ud(`lucide-${bh(i)}`,c),...p}));return s.displayName=`${i}`,s};/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cd=ce("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dd=ce("Anvil",[["path",{d:"M7 10H6a4 4 0 0 1-4-4 1 1 0 0 1 1-1h4",key:"1hjpb6"}],["path",{d:"M7 5a1 1 0 0 1 1-1h13a1 1 0 0 1 1 1 7 7 0 0 1-7 7H8a1 1 0 0 1-1-1z",key:"1qn45f"}],["path",{d:"M9 12v5",key:"3anwtq"}],["path",{d:"M15 12v5",key:"5xh3zn"}],["path",{d:"M5 20a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3 1 1 0 0 1-1 1H6a1 1 0 0 1-1-1",key:"1fi4x8"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gh=ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kh=ce("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xh=ce("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.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fd=ce("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yh=ce("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pd=ce("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jh=ce("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qh=ce("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rr=ce("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zh=ce("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.469.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=ce("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tm=ce("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** * @license lucide-react v0.469.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=ce("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** * @license lucide-react v0.469.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=ce("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lm=ce("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $c=ce("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const om=ce("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const im=ce("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** * @license lucide-react v0.469.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=ce("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const am=ce("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const um=ce("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hd=ce("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/** * @license lucide-react v0.469.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=ce("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dm=ce("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fm=ce("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bc=ce("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/** * @license lucide-react v0.469.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const md=ce("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function vd(i){var a,s,c="";if(typeof i=="string"||typeof i=="number")c+=i;else if(typeof i=="object")if(Array.isArray(i)){var p=i.length;for(a=0;a{const a=mm(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=i;return{getClassGroupId:g=>{const x=g.split(Rs);return x[0]===""&&x.length!==1&&x.shift(),yd(x,a)||hm(g)},getConflictingClassGroupIds:(g,x)=>{const k=s[g]||[];return x&&c[g]?[...k,...c[g]]:k}}},yd=(i,a)=>{var g;if(i.length===0)return a.classGroupId;const s=i[0],c=a.nextPart.get(s),p=c?yd(i.slice(1),c):void 0;if(p)return p;if(a.validators.length===0)return;const h=i.join(Rs);return(g=a.validators.find(({validator:x})=>x(h)))==null?void 0:g.classGroupId},Hc=/^\[(.+)\]$/,hm=i=>{if(Hc.test(i)){const a=Hc.exec(i)[1],s=a==null?void 0:a.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},mm=i=>{const{theme:a,prefix:s}=i,c={nextPart:new Map,validators:[]};return gm(Object.entries(i.classGroups),s).forEach(([h,g])=>{Es(g,c,h,a)}),c},Es=(i,a,s,c)=>{i.forEach(p=>{if(typeof p=="string"){const h=p===""?a:Qc(a,p);h.classGroupId=s;return}if(typeof p=="function"){if(vm(p)){Es(p(c),a,s,c);return}a.validators.push({validator:p,classGroupId:s});return}Object.entries(p).forEach(([h,g])=>{Es(g,Qc(a,h),s,c)})})},Qc=(i,a)=>{let s=i;return a.split(Rs).forEach(c=>{s.nextPart.has(c)||s.nextPart.set(c,{nextPart:new Map,validators:[]}),s=s.nextPart.get(c)}),s},vm=i=>i.isThemeGetter,gm=(i,a)=>a?i.map(([s,c])=>{const p=c.map(h=>typeof h=="string"?a+h:typeof h=="object"?Object.fromEntries(Object.entries(h).map(([g,x])=>[a+g,x])):h);return[s,p]}):i,ym=i=>{if(i<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,c=new Map;const p=(h,g)=>{s.set(h,g),a++,a>i&&(a=0,c=s,s=new Map)};return{get(h){let g=s.get(h);if(g!==void 0)return g;if((g=c.get(h))!==void 0)return p(h,g),g},set(h,g){s.has(h)?s.set(h,g):p(h,g)}}},xd="!",xm=i=>{const{separator:a,experimentalParseClassName:s}=i,c=a.length===1,p=a[0],h=a.length,g=x=>{const k=[];let _=0,N=0,j;for(let z=0;zN?j-N:void 0;return{modifiers:k,hasImportantModifier:B,baseClassName:F,maybePostfixModifierPosition:R}};return s?x=>s({className:x,parseClassName:g}):g},wm=i=>{if(i.length<=1)return i;const a=[];let s=[];return i.forEach(c=>{c[0]==="["?(a.push(...s.sort(),c),s=[]):s.push(c)}),a.push(...s.sort()),a},km=i=>({cache:ym(i.cacheSize),parseClassName:xm(i),...pm(i)}),Sm=/\s+/,Cm=(i,a)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:p}=a,h=[],g=i.trim().split(Sm);let x="";for(let k=g.length-1;k>=0;k-=1){const _=g[k],{modifiers:N,hasImportantModifier:j,baseClassName:P,maybePostfixModifierPosition:B}=s(_);let F=!!B,R=c(F?P.substring(0,B):P);if(!R){if(!F){x=_+(x.length>0?" "+x:x);continue}if(R=c(P),!R){x=_+(x.length>0?" "+x:x);continue}F=!1}const z=wm(N).join(":"),H=j?z+xd:z,Q=H+R;if(h.includes(Q))continue;h.push(Q);const q=p(R,F);for(let J=0;J0?" "+x:x)}return x};function Nm(){let i=0,a,s,c="";for(;i{if(typeof i=="string")return i;let a,s="";for(let c=0;cj(N),i());return s=km(_),c=s.cache.get,p=s.cache.set,h=x,x(k)}function x(k){const _=c(k);if(_)return _;const N=Cm(k,s);return p(k,N),N}return function(){return h(Nm.apply(null,arguments))}}const ge=i=>{const a=s=>s[i]||[];return a.isThemeGetter=!0,a},kd=/^\[(?:([a-z-]+):)?(.+)\]$/i,jm=/^\d+\/\d+$/,Pm=new Set(["px","full","screen"]),_m=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zm=/\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$/,Rm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=i=>tr(i)||Pm.has(i)||jm.test(i),fn=i=>ir(i,"length",Bm),tr=i=>!!i&&!Number.isNaN(Number(i)),xs=i=>ir(i,"number",tr),Gr=i=>!!i&&Number.isInteger(Number(i)),Mm=i=>i.endsWith("%")&&tr(i.slice(0,-1)),Z=i=>kd.test(i),pn=i=>_m.test(i),Om=new Set(["length","size","percentage"]),Im=i=>ir(i,Om,Sd),Fm=i=>ir(i,"position",Sd),Dm=new Set(["image","url"]),Um=i=>ir(i,Dm,Wm),Am=i=>ir(i,"",Vm),Kr=()=>!0,ir=(i,a,s)=>{const c=kd.exec(i);return c?c[1]?typeof a=="string"?c[1]===a:a.has(c[1]):s(c[2]):!1},Bm=i=>zm.test(i)&&!Rm.test(i),Sd=()=>!1,Vm=i=>Lm.test(i),Wm=i=>Tm.test(i),$m=()=>{const i=ge("colors"),a=ge("spacing"),s=ge("blur"),c=ge("brightness"),p=ge("borderColor"),h=ge("borderRadius"),g=ge("borderSpacing"),x=ge("borderWidth"),k=ge("contrast"),_=ge("grayscale"),N=ge("hueRotate"),j=ge("invert"),P=ge("gap"),B=ge("gradientColorStops"),F=ge("gradientColorStopPositions"),R=ge("inset"),z=ge("margin"),H=ge("opacity"),Q=ge("padding"),q=ge("saturate"),J=ge("scale"),pe=ge("sepia"),Ce=ge("skew"),Pe=ge("space"),ze=ge("translate"),Ge=()=>["auto","contain","none"],Fe=()=>["auto","hidden","clip","visible","scroll"],et=()=>["auto",Z,a],re=()=>[Z,a],Ae=()=>["",At,fn],Be=()=>["auto",tr,Z],tt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["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"],D=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",Z],A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>[tr,Z];return{cacheSize:500,separator:":",theme:{colors:[Kr],spacing:[At,fn],blur:["none","",pn,Z],brightness:y(),borderColor:[i],borderRadius:["none","","full",pn,Z],borderSpacing:re(),borderWidth:Ae(),contrast:y(),grayscale:G(),hueRotate:y(),invert:G(),gap:re(),gradientColorStops:[i],gradientColorStopPositions:[Mm,fn],inset:et(),margin:et(),opacity:y(),padding:re(),saturate:y(),scale:y(),sepia:G(),skew:y(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[pn]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:[...tt(),Z]}],overflow:[{overflow:Fe()}],"overflow-x":[{"overflow-x":Fe()}],"overflow-y":[{"overflow-y":Fe()}],overscroll:[{overscroll:Ge()}],"overscroll-x":[{"overscroll-x":Ge()}],"overscroll-y":[{"overscroll-y":Ge()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[R]}],"inset-x":[{"inset-x":[R]}],"inset-y":[{"inset-y":[R]}],start:[{start:[R]}],end:[{end:[R]}],top:[{top:[R]}],right:[{right:[R]}],bottom:[{bottom:[R]}],left:[{left:[R]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Gr,Z]}],basis:[{basis:et()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",Gr,Z]}],"grid-cols":[{"grid-cols":[Kr]}],"col-start-end":[{col:["auto",{span:["full",Gr,Z]},Z]}],"col-start":[{"col-start":Be()}],"col-end":[{"col-end":Be()}],"grid-rows":[{"grid-rows":[Kr]}],"row-start-end":[{row:["auto",{span:[Gr,Z]},Z]}],"row-start":[{"row-start":Be()}],"row-end":[{"row-end":Be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Q]}],px:[{px:[Q]}],py:[{py:[Q]}],ps:[{ps:[Q]}],pe:[{pe:[Q]}],pt:[{pt:[Q]}],pr:[{pr:[Q]}],pb:[{pb:[Q]}],pl:[{pl:[Q]}],m:[{m:[z]}],mx:[{mx:[z]}],my:[{my:[z]}],ms:[{ms:[z]}],me:[{me:[z]}],mt:[{mt:[z]}],mr:[{mr:[z]}],mb:[{mb:[z]}],ml:[{ml:[z]}],"space-x":[{"space-x":[Pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,a]}],"min-w":[{"min-w":[Z,a,"min","max","fit"]}],"max-w":[{"max-w":[Z,a,"none","full","min","max","fit","prose",{screen:[pn]},pn]}],h:[{h:[Z,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,a,"auto","min","max","fit"]}],"font-size":[{text:["base",pn,fn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xs]}],"font-family":[{font:[Kr]}],"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",Z]}],"line-clamp":[{"line-clamp":["none",tr,xs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,fn]}],"underline-offset":[{"underline-offset":["auto",At,Z]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],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",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...tt(),Fm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Im]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Um]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[F]}],"gradient-via-pos":[{via:[F]}],"gradient-to-pos":[{to:[F]}],"gradient-from":[{from:[B]}],"gradient-via":[{via:[B]}],"gradient-to":[{to:[B]}],rounded:[{rounded:[h]}],"rounded-s":[{"rounded-s":[h]}],"rounded-e":[{"rounded-e":[h]}],"rounded-t":[{"rounded-t":[h]}],"rounded-r":[{"rounded-r":[h]}],"rounded-b":[{"rounded-b":[h]}],"rounded-l":[{"rounded-l":[h]}],"rounded-ss":[{"rounded-ss":[h]}],"rounded-se":[{"rounded-se":[h]}],"rounded-ee":[{"rounded-ee":[h]}],"rounded-es":[{"rounded-es":[h]}],"rounded-tl":[{"rounded-tl":[h]}],"rounded-tr":[{"rounded-tr":[h]}],"rounded-br":[{"rounded-br":[h]}],"rounded-bl":[{"rounded-bl":[h]}],"border-w":[{border:[x]}],"border-w-x":[{"border-x":[x]}],"border-w-y":[{"border-y":[x]}],"border-w-s":[{"border-s":[x]}],"border-w-e":[{"border-e":[x]}],"border-w-t":[{"border-t":[x]}],"border-w-r":[{"border-r":[x]}],"border-w-b":[{"border-b":[x]}],"border-w-l":[{"border-l":[x]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[...Re(),"hidden"]}],"divide-x":[{"divide-x":[x]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[x]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:Re()}],"border-color":[{border:[p]}],"border-color-x":[{"border-x":[p]}],"border-color-y":[{"border-y":[p]}],"border-color-s":[{"border-s":[p]}],"border-color-e":[{"border-e":[p]}],"border-color-t":[{"border-t":[p]}],"border-color-r":[{"border-r":[p]}],"border-color-b":[{"border-b":[p]}],"border-color-l":[{"border-l":[p]}],"divide-color":[{divide:[p]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[At,Z]}],"outline-w":[{outline:[At,fn]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[At,fn]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",pn,Am]}],"shadow-color":[{shadow:[Kr]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":[...he(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":he()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[c]}],contrast:[{contrast:[k]}],"drop-shadow":[{"drop-shadow":["","none",pn,Z]}],grayscale:[{grayscale:[_]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[j]}],saturate:[{saturate:[q]}],sepia:[{sepia:[pe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[k]}],"backdrop-grayscale":[{"backdrop-grayscale":[_]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[g]}],"border-spacing-x":[{"border-spacing-x":[g]}],"border-spacing-y":[{"border-spacing-y":[g]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:y()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:y()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[Gr,Z]}],"translate-x":[{"translate-x":[ze]}],"translate-y":[{"translate-y":[ze]}],"skew-x":[{"skew-x":[Ce]}],"skew-y":[{"skew-y":[Ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",i]}],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",Z]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-mt":[{"scroll-mt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-pe":[{"scroll-pe":re()}],"scroll-pt":[{"scroll-pt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"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",Z]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[At,fn,xs]}],stroke:[{stroke:[i,"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"]}}},bm=Em($m);function ht(...i){return bm(gd(i))}function Cd(i){return i>=1e12?`${(i/1e12).toFixed(2)} TH/s`:i>=1e9?`${(i/1e9).toFixed(2)} GH/s`:i>=1e6?`${(i/1e6).toFixed(2)} MH/s`:i>=1e3?`${(i/1e3).toFixed(2)} KH/s`:`${i.toFixed(0)} H/s`}function Hm(i){const a=Math.floor(i/3600),s=Math.floor(i%3600/60);return a>0?`${a}h ${s}m`:`${s}m`}const ho="aetherforge_auth";function Nd(){const i=sessionStorage.getItem(ho);if(!i)return null;try{const a=JSON.parse(i);if(a.username&&a.password)return a}catch{sessionStorage.removeItem(ho)}return null}function Qm(i){sessionStorage.setItem(ho,JSON.stringify(i))}function Gm(){sessionStorage.removeItem(ho)}function Xr(){return Nd()!==null}function Ls(){const i=Nd();return i?`Basic ${btoa(`${i.username}:${i.password}`)}`:null}async function Nt(i,a={}){const s=Ls(),c=new Headers(a.headers);return s&&c.set("Authorization",s),fetch(i,{...a,headers:c})}async function Km(){try{const i=await Nt("/api/v1/ws/ticket",{method:"POST"});return i.ok?(await i.json()).ticket??null:null}catch{return null}}function Xm(i){const a=window.location.protocol==="https:"?"wss:":"ws:",s=window.location.host,c=`${a}//${s}/api/v1/ws/fleet`;return i?`${c}?ticket=${encodeURIComponent(i)}`:c}const Gc=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,Kc=gd,Ed=(i,a)=>s=>{var c;if((a==null?void 0:a.variants)==null)return Kc(i,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:p,defaultVariants:h}=a,g=Object.keys(p).map(_=>{const N=s==null?void 0:s[_],j=h==null?void 0:h[_];if(N===null)return null;const P=Gc(N)||Gc(j);return p[_][P]}),x=s&&Object.entries(s).reduce((_,N)=>{let[j,P]=N;return P===void 0||(_[j]=P),_},{}),k=a==null||(c=a.compoundVariants)===null||c===void 0?void 0:c.reduce((_,N)=>{let{class:j,className:P,...B}=N;return Object.entries(B).every(F=>{let[R,z]=F;return Array.isArray(z)?z.includes({...h,...x}[R]):{...h,...x}[R]===z})?[..._,j,P]:_},[]);return Kc(i,g,k,s==null?void 0:s.class,s==null?void 0:s.className)},Ym=Ed("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-mono font-medium transition-colors",{variants:{variant:{default:"border-deck-accent/40 bg-deck-accent/10 text-deck-accent",secondary:"border-deck-border bg-deck-panel text-deck-muted",active:"border-deck-accent/60 bg-deck-accent/20 text-deck-accent shadow-glow",probing:"border-deck-amber/60 bg-deck-amber/10 text-deck-amber animate-pulse-slow",failed:"border-deck-danger/60 bg-deck-danger/10 text-deck-danger",idle:"border-deck-border bg-deck-surface text-deck-muted",paused:"border-deck-cyan/40 bg-deck-cyan/10 text-deck-cyan",online:"border-deck-accent/40 bg-deck-accent/10 text-deck-accent",offline:"border-deck-border bg-deck-surface text-deck-muted"}},defaultVariants:{variant:"default"}});function mt({className:i,variant:a,...s}){return d.jsx("div",{className:ht(Ym({variant:a}),i),...s})}const Jm=Ed("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-deck-accent focus-visible:ring-offset-2 focus-visible:ring-offset-deck-bg disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-deck-accent text-deck-bg hover:bg-deck-accent/90 shadow-glow",secondary:"bg-deck-panel text-deck-text border border-deck-border hover:bg-deck-surface",ghost:"hover:bg-deck-panel hover:text-deck-accent",destructive:"bg-deck-danger/20 text-deck-danger border border-deck-danger/40 hover:bg-deck-danger/30",outline:"border border-deck-border bg-transparent hover:bg-deck-panel hover:text-deck-accent"},size:{default:"h-10 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),st=E.forwardRef(({className:i,variant:a,size:s,...c},p)=>d.jsx("button",{className:ht(Jm({variant:a,size:s,className:i})),ref:p,...c}));st.displayName="Button";const qm=[{to:"/dashboard",label:"Dashboard",icon:Yh},{to:"/forge",label:"Forge",icon:pd},{to:"/calibrate",label:"Calibrate",icon:cd},{to:"/crucible",label:"Crucible",icon:hd},{to:"/seer",label:"Seer",icon:fd}];function Zm({wsState:i="disconnected"}){const a=yo(),s=()=>{Gm(),a("/login")},c=i==="connected"?{variant:"online",label:"WS LIVE",icon:bc}:i==="connecting"?{variant:"probing",label:"WS CONNECTING",icon:bc}:{variant:"offline",label:"WS OFFLINE",icon:fm},p=c.icon;return d.jsxs("aside",{className:"flex h-full w-56 flex-col border-r border-deck-border bg-deck-surface/80 backdrop-blur-sm",children:[d.jsx("div",{className:"border-b border-deck-border p-4",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md border border-deck-accent/40 bg-deck-accent/10",children:d.jsx(dd,{className:"h-4 w-4 text-deck-accent"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-semibold tracking-wide text-deck-text",children:"AetherForge"}),d.jsx("p",{className:"font-mono text-[10px] uppercase text-deck-muted",children:"Command Deck"})]})]})}),d.jsx("nav",{className:"flex-1 space-y-1 p-3",children:qm.map(({to:h,label:g,icon:x})=>d.jsxs(Bh,{to:h,className:({isActive:k})=>ht("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors",k?"bg-deck-accent/10 text-deck-accent border border-deck-accent/30":"text-deck-muted hover:bg-deck-panel hover:text-deck-text"),children:[d.jsx(x,{className:"h-4 w-4"}),g]},h))}),d.jsxs("div",{className:"space-y-3 border-t border-deck-border p-4",children:[d.jsxs(mt,{variant:c.variant,className:"w-full justify-center gap-1.5",children:[d.jsx(p,{className:"h-3 w-3"}),c.label]}),d.jsxs(st,{variant:"ghost",size:"sm",className:"w-full justify-start text-deck-muted",onClick:s,children:[d.jsx(em,{className:"h-4 w-4"}),"Sign out"]})]})]})}function ev(i={}){const{enabled:a=!0,onMessage:s,reconnectIntervalMs:c=5e3}=i,[p,h]=E.useState("disconnected"),[g,x]=E.useState(null),k=E.useRef(null),_=E.useRef(),N=E.useRef(s);N.current=s;const j=E.useCallback(()=>{_.current&&clearTimeout(_.current),k.current&&(k.current.onclose=null,k.current.close(),k.current=null),h("disconnected")},[]),P=E.useCallback(async()=>{if(!a||!Xr()){j();return}j(),h("connecting");let F=null;Ls()&&(F=await Km());const R=Xm(F),z=new WebSocket(R);k.current=z,z.onopen=()=>h("connected"),z.onmessage=H=>{var Q;try{const q=JSON.parse(H.data);x(q),(Q=N.current)==null||Q.call(N,q)}catch{}},z.onerror=()=>h("error"),z.onclose=()=>{k.current=null,h("disconnected"),a&&Xr()&&(_.current=setTimeout(()=>{P()},c))}},[a,j,c]);E.useEffect(()=>(a&&Xr()?P():j(),j),[a,P,j]);const B=E.useCallback(F=>{var R;((R=k.current)==null?void 0:R.readyState)===WebSocket.OPEN&&k.current.send(JSON.stringify(F))},[]);return{connectionState:p,lastMessage:g,connect:P,disconnect:j,send:B}}const jd=E.createContext({connectionState:"disconnected",lastMessage:null});function tv({children:i}){const{connectionState:a,lastMessage:s}=ev({enabled:!0});return d.jsx(jd.Provider,{value:{connectionState:a,lastMessage:s},children:i})}function Pd(){return E.useContext(jd)}function nv(){const{connectionState:i}=Pd();return d.jsxs("div",{className:"flex h-screen overflow-hidden",children:[d.jsx(Zm,{wsState:i}),d.jsx("main",{className:"flex-1 overflow-auto deck-grid-bg",children:d.jsx(sd,{})})]})}function rv(){return d.jsx(tv,{children:d.jsx(nv,{})})}function lv(){const i=vn();return Xr()?d.jsx(sd,{}):d.jsx(co,{to:"/login",state:{from:i},replace:!0})}const qr=E.forwardRef(({className:i,type:a,...s},c)=>d.jsx("input",{type:a,className:ht("flex h-10 w-full rounded-md border border-deck-border bg-deck-surface px-3 py-2 font-mono text-sm text-deck-text placeholder:text-deck-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-deck-accent focus-visible:ring-offset-2 focus-visible:ring-offset-deck-bg disabled:cursor-not-allowed disabled:opacity-50",i),ref:c,...s}));qr.displayName="Input";const mo=E.forwardRef(({className:i,...a},s)=>d.jsx("label",{ref:s,className:ht("text-xs font-medium uppercase tracking-wider text-deck-muted",i),...a}));mo.displayName="Label";const Et=E.forwardRef(({className:i,...a},s)=>d.jsx("div",{ref:s,className:ht("rounded-lg border border-deck-border bg-deck-panel text-deck-text shadow-sm",i),...a}));Et.displayName="Card";const Bt=E.forwardRef(({className:i,...a},s)=>d.jsx("div",{ref:s,className:ht("flex flex-col space-y-1.5 p-4",i),...a}));Bt.displayName="CardHeader";const Vt=E.forwardRef(({className:i,...a},s)=>d.jsx("h3",{ref:s,className:ht("font-semibold leading-none tracking-tight text-deck-text",i),...a}));Vt.displayName="CardTitle";const Wt=E.forwardRef(({className:i,...a},s)=>d.jsx("p",{ref:s,className:ht("text-sm text-deck-muted",i),...a}));Wt.displayName="CardDescription";const $t=E.forwardRef(({className:i,...a},s)=>d.jsx("div",{ref:s,className:ht("p-4 pt-0",i),...a}));$t.displayName="CardContent";function ov(){var N,j;const i=yo(),s=((j=(N=vn().state)==null?void 0:N.from)==null?void 0:j.pathname)??"/dashboard",[c,p]=E.useState(""),[h,g]=E.useState(""),[x,k]=E.useState(""),_=P=>{if(P.preventDefault(),!c.trim()||!h){k("Username and password are required.");return}Qm({username:c.trim(),password:h}),i(s,{replace:!0})};return d.jsxs("div",{className:"flex min-h-screen items-center justify-center p-4 deck-grid-bg",children:[d.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-deck-accent/5 via-transparent to-transparent pointer-events-none"}),d.jsxs(Et,{className:"relative w-full max-w-md border-deck-accent/20 shadow-glow",children:[d.jsxs(Bt,{className:"text-center",children:[d.jsx("div",{className:"mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-lg border border-deck-accent/40 bg-deck-accent/10",children:d.jsx(dd,{className:"h-6 w-6 text-deck-accent"})}),d.jsx(Vt,{className:"text-xl",children:"AetherForge Command Deck"}),d.jsx(Wt,{children:"HTTP Basic authentication — credentials stored in session only"})]}),d.jsxs($t,{children:[d.jsxs("form",{onSubmit:_,className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(mo,{htmlFor:"username",children:"Username"}),d.jsxs("div",{className:"relative",children:[d.jsx(cm,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-deck-muted"}),d.jsx(qr,{id:"username",autoComplete:"username",placeholder:"operator",className:"pl-10",value:c,onChange:P=>p(P.target.value)})]})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(mo,{htmlFor:"password",children:"Password"}),d.jsxs("div",{className:"relative",children:[d.jsx(Zh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-deck-muted"}),d.jsx(qr,{id:"password",type:"password",autoComplete:"current-password",placeholder:"••••••••",className:"pl-10",value:h,onChange:P=>g(P.target.value)})]})]}),x&&d.jsx("p",{className:"text-sm text-deck-danger",children:x}),d.jsx(st,{type:"submit",className:"w-full",children:"Authenticate"})]}),d.jsx("p",{className:"mt-4 text-center font-mono text-[10px] text-deck-muted",children:"sessionStorage · cleared on tab close"})]})]})]})}function iv(i){switch(i){case"active":return"active";case"probing":return"probing";case"failed":return"failed";case"paused":return"paused";default:return"idle"}}function sv({host:i}){return d.jsxs(Et,{className:ht("transition-all hover:border-deck-accent/30",i.online&&"shadow-glow",!i.online&&"opacity-60"),children:[d.jsx(Bt,{className:"pb-2",children:d.jsxs("div",{className:"flex items-start justify-between gap-2",children:[d.jsxs("div",{className:"min-w-0",children:[d.jsx(Vt,{className:"truncate font-mono text-base",children:i.hostname}),d.jsxs(Wt,{className:"font-mono text-xs",children:[i.id," · ",i.ip]})]}),d.jsx(mt,{variant:i.online?"online":"offline",children:i.online?"ONLINE":"OFFLINE"})]})}),d.jsxs($t,{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-baseline gap-2",children:[d.jsx(md,{className:ht("h-5 w-5",i.online?"text-deck-accent":"text-deck-muted")}),d.jsx("span",{className:"font-mono text-2xl font-semibold text-deck-accent",children:i.online?Cd(i.hashrate):"—"})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[d.jsxs("div",{className:"flex items-center gap-1.5 text-deck-muted",children:[d.jsx(Xh,{className:"h-3.5 w-3.5"}),d.jsx("span",{className:"truncate",children:i.arch})]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-deck-muted",children:[d.jsx(Jh,{className:"h-3.5 w-3.5"}),d.jsx("span",{children:i.algo})]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-deck-muted",children:[d.jsx(tm,{className:"h-3.5 w-3.5"}),d.jsxs("span",{children:["T",i.tier]})]}),d.jsxs("div",{className:"flex items-center gap-1.5 text-deck-muted",children:[d.jsx(um,{className:"h-3.5 w-3.5"}),d.jsxs("span",{children:["L",i.clearance]})]})]}),d.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-t border-deck-border pt-3",children:[d.jsx(mt,{variant:iv(i.tierState),children:i.tierState.toUpperCase()}),d.jsx("span",{className:"font-mono text-xs text-deck-muted",children:i.tierName}),i.online&&d.jsxs("span",{className:"ml-auto font-mono text-xs text-deck-muted",children:["↑ ",Hm(i.uptimeSec)]})]})]})]})}const Xc={totalHashrate:425e5,onlineCount:3,hosts:[{id:"host-001",hostname:"forge-node-alpha",ip:"10.0.1.12",arch:"linux/amd64",hashrate:182e5,tier:2,tierName:"Bundled xmrig",tierState:"active",algo:"rx/0",uptimeSec:86400,lastSeen:new Date().toISOString(),clearance:2,online:!0},{id:"host-002",hostname:"mesh-worker-beta",ip:"10.0.1.47",arch:"linux/amd64",hashrate:128e5,tier:3,tierName:"GPU lolMiner",tierState:"probing",algo:"kawpow",uptimeSec:3600,lastSeen:new Date().toISOString(),clearance:1,online:!0},{id:"host-003",hostname:"edge-probe-gamma",ip:"10.0.2.8",arch:"linux/arm64",hashrate:115e5,tier:1,tierName:"OCI podman",tierState:"active",algo:"rx/0",uptimeSec:172800,lastSeen:new Date().toISOString(),clearance:3,online:!0},{id:"host-004",hostname:"offline-staging",ip:"10.0.3.99",arch:"linux/amd64",hashrate:0,tier:0,tierName:"—",tierState:"idle",algo:"—",uptimeSec:0,lastSeen:new Date(Date.now()-36e5).toISOString(),clearance:0,online:!1}]};function av(){const[i,a]=E.useState(Xc),[s,c]=E.useState(!0),[p,h]=E.useState("mock"),g=E.useCallback(async()=>{c(!0);try{const N=await Nt("/api/v1/fleet");if(N.ok){const j=await N.json();a(j),h("api");return}}catch{}a(Xc),h("mock")},[]),{connectionState:x,lastMessage:k}=Pd();E.useEffect(()=>{var j;if((k==null?void 0:k.type)!=="host_update"||!((j=k.host)!=null&&j.id))return;const N=k.host;a(P=>({...P,hosts:P.hosts.map(B=>B.id===N.id?{...B,...N}:B),totalHashrate:P.hosts.reduce((B,F)=>B+(F.id===N.id?N.hashrate??F.hashrate:F.hashrate),0)})),h("api")},[k]),E.useEffect(()=>{g().finally(()=>c(!1));const N=setInterval(()=>void g(),3e4);return()=>clearInterval(N)},[g]);const _=i.hosts.filter(N=>N.online);return{fleet:i,hosts:i.hosts,onlineHosts:_,loading:s,source:p,connectionState:x,refetch:g}}function uv(){const{fleet:i,hosts:a,loading:s,source:c,connectionState:p,refetch:h}=av();return d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsxs("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Fleet Dashboard"}),d.jsx("p",{className:"text-sm text-deck-muted",children:"Live host telemetry · tier state · aggregate hashrate"})]}),d.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d.jsx(mt,{variant:c==="api"?"online":"secondary",children:c==="api"?"API LIVE":"MOCK DATA"}),d.jsxs(mt,{variant:p==="connected"?"online":"offline",children:["WS ",p.toUpperCase()]}),d.jsxs(st,{variant:"outline",size:"sm",onClick:()=>void h(),children:[d.jsx($c,{className:"h-4 w-4"}),"Refresh"]})]})]}),d.jsxs("div",{className:"grid gap-4 sm:grid-cols-3",children:[d.jsx(ws,{icon:md,label:"Total Hashrate",value:Cd(i.totalHashrate),accent:!0}),d.jsx(ws,{icon:sm,label:"Online Hosts",value:`${i.onlineCount} / ${a.length}`}),d.jsx(ws,{icon:$c,label:"Status",value:s?"Syncing…":"Ready"})]}),d.jsxs("section",{children:[d.jsx("h2",{className:"mb-4 text-sm font-medium uppercase tracking-wider text-deck-muted",children:"Fleet Hosts"}),d.jsx("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-3",children:a.map(g=>d.jsx(sv,{host:g},g.id))})]})]})}function ws({icon:i,label:a,value:s,accent:c}){return d.jsxs("div",{className:"rounded-lg border border-deck-border bg-deck-panel p-4",children:[d.jsxs("div",{className:"flex items-center gap-2 text-deck-muted",children:[d.jsx(i,{className:"h-4 w-4"}),d.jsx("span",{className:"text-xs uppercase tracking-wider",children:a})]}),d.jsx("p",{className:`mt-2 font-mono text-2xl font-semibold ${c?"text-deck-accent":"text-deck-text"}`,children:s})]})}function cv(){const[i,a]=E.useState([]),[s,c]=E.useState(!0),[p,h]=E.useState(!1),[g,x]=E.useState(""),k=E.useCallback(async()=>{c(!0);try{const N=await Nt("/api/v1/forge/builds");if(N.ok){const j=await N.json();a(j.builds??[])}}finally{c(!1)}},[]);E.useEffect(()=>{k()},[k]);const _=async()=>{h(!0),x("");try{const j=await(await Nt("/api/v1/forge/builds/trigger",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({public:!0})})).json();x(j.ok?"Build triggered successfully.":j.message??"Build queued with warnings."),await k()}catch{x("Failed to trigger build.")}finally{h(!1)}};return d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsxs("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Forge Pipeline"}),d.jsx("p",{className:"text-sm text-deck-muted",children:"Cross-compile, sign, and publish agent artifacts"})]}),d.jsxs(st,{onClick:()=>void _(),disabled:p,children:[p?d.jsx(rr,{className:"h-4 w-4 animate-spin"}):d.jsx(rm,{className:"h-4 w-4"}),"Trigger Build"]})]}),g&&d.jsx(Et,{className:"border-deck-accent/30 bg-deck-accent/5",children:d.jsx($t,{className:"p-4 text-sm text-deck-text",children:g})}),d.jsx(Et,{className:"border-dashed border-deck-amber/30 bg-deck-amber/5",children:d.jsxs(Bt,{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(pd,{className:"h-5 w-5 text-deck-amber"}),d.jsx(Vt,{className:"text-base",children:"Artifact store"})]}),d.jsxs(Wt,{children:["Public builds served at"," ",d.jsx("code",{className:"font-mono text-deck-cyan",children:"/api/v1/public/builds/latest"})]})]})}),s?d.jsxs("p",{className:"text-sm text-deck-muted flex items-center gap-2",children:[d.jsx(rr,{className:"h-4 w-4 animate-spin"})," Loading builds…"]}):i.length===0?d.jsx("p",{className:"text-sm text-deck-muted",children:"No builds yet — trigger one above."}):d.jsx("div",{className:"space-y-3",children:i.map(N=>d.jsx(Et,{children:d.jsxs($t,{className:"flex flex-wrap items-center gap-4 p-4",children:[d.jsx(nm,{className:"h-8 w-8 text-deck-accent"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"font-mono font-medium",children:N.id}),d.jsxs("p",{className:"text-sm text-deck-muted",children:[N.os,"/",N.arch," · v",N.version]}),d.jsxs("p",{className:"font-mono text-[10px] text-deck-muted truncate",children:["sha256:",N.checksum.slice(0,16),"…"]})]}),d.jsxs("div",{className:"flex gap-2",children:[N.signature&&N.signature!=="UNSIGNED"&&d.jsxs(mt,{variant:"active",children:[d.jsx(am,{className:"mr-1 h-3 w-3"}),"SIGNED"]}),d.jsx(mt,{variant:N.public?"online":"secondary",children:N.public?"PUBLIC":"PRIVATE"})]})]})},N.id))})]})}function dv(){const[i,a]=E.useState(null),[s,c]=E.useState(!0),[p,h]=E.useState(!1),[g,x]=E.useState(!1),k=E.useCallback(async()=>{c(!0);try{const P=await Nt("/api/v1/policy/mining-profile");P.ok&&a(await P.json())}finally{c(!1)}},[]);E.useEffect(()=>{k()},[k]);const _=(P,B)=>{if(!i)return;const F=P+B;if(F<0||F>=i.tiers.length)return;const R=[...i.tiers];[R[P],R[F]]=[R[F],R[P]],a({...i,tiers:R.map((z,H)=>({...z,tier:H+1}))}),x(!1)},N=P=>{if(!i)return;const B=i.tiers.map((F,R)=>R===P?{...F,enabled:!F.enabled}:F);a({...i,tiers:B}),x(!1)},j=async()=>{if(i){h(!0);try{await Nt("/api/v1/policy/mining-profile",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),await Nt("/api/v1/policy/wallet",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({default_wallet:i.wallet_address,currency:"XMR"})}),x(!0)}finally{h(!1)}}};return s||!i?d.jsxs("div",{className:"p-6 text-sm text-deck-muted flex items-center gap-2",children:[d.jsx(rr,{className:"h-4 w-4 animate-spin"})," Loading policy…"]}):d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsxs("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Calibrate"}),d.jsx("p",{className:"text-sm text-deck-muted",children:"Mining policy — tier order, wallet pin, earn-before-burn gates"})]}),d.jsxs(st,{onClick:()=>void j(),disabled:p,children:[p?d.jsx(rr,{className:"h-4 w-4 animate-spin"}):d.jsx(om,{className:"h-4 w-4"}),"Save Policy"]})]}),g&&d.jsx("p",{className:"text-sm text-deck-accent",children:"Policy saved to server."}),d.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[d.jsxs(Et,{children:[d.jsxs(Bt,{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(qh,{className:"h-5 w-5 text-deck-accent"}),d.jsx(Vt,{className:"text-base",children:"Tier Chain"})]}),d.jsx(Wt,{children:"Reorder with arrows — pushed to agents with policy_from_server"})]}),d.jsx($t,{className:"space-y-2",children:i.tiers.map((P,B)=>d.jsxs("div",{className:"flex items-center justify-between rounded-md border border-deck-border bg-deck-surface px-3 py-2",children:[d.jsxs("span",{className:"font-mono text-sm",children:["T",P.tier," · ",P.name]}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(st,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>_(B,-1),children:d.jsx(Kh,{className:"h-4 w-4"})}),d.jsx(st,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>_(B,1),children:d.jsx(Gh,{className:"h-4 w-4"})}),d.jsx(mt,{variant:P.enabled?"active":"idle",className:"cursor-pointer",onClick:()=>N(B),children:P.enabled?"ENABLED":"DISABLED"})]})]},P.tier))})]}),d.jsxs(Et,{children:[d.jsxs(Bt,{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(dm,{className:"h-5 w-5 text-deck-amber"}),d.jsx(Vt,{className:"text-base",children:"Wallet Policy"})]}),d.jsx(Wt,{children:"Pinned destination address (server-push)"})]}),d.jsx($t,{className:"space-y-3",children:d.jsxs("div",{className:"space-y-2",children:[d.jsx(mo,{htmlFor:"wallet",children:"XMR wallet"}),d.jsx(qr,{id:"wallet",className:"font-mono text-xs",placeholder:"48edfHu7V9…",value:i.wallet_address,onChange:P=>{a({...i,wallet_address:P.target.value}),x(!1)}})]})})]})]}),d.jsx(Et,{className:"border-dashed",children:d.jsxs(Bt,{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(cd,{className:"h-5 w-5 text-deck-cyan"}),d.jsx(Vt,{className:"text-base",children:"Per-host override"})]}),d.jsxs(Wt,{children:["Push profile to a host via"," ",d.jsx("code",{className:"font-mono text-deck-cyan",children:"POST /api/v1/fleet/{id}/mining-profile"})]})]})})]})}function fv(){var F;const[i,a]=E.useState("status"),[s,c]=E.useState(null),[p,h]=E.useState([]),[g,x]=E.useState(!1),[k,_]=E.useState(null),N=E.useRef(null),j=E.useCallback(async()=>{const R=await Nt("/api/v1/crucible/history");if(R.ok){const z=await R.json();h(z.jobs??[])}},[]);E.useEffect(()=>{j(),Nt("/api/v1/operator/me").then(async R=>{if(R.ok){const z=await R.json();_(z.clearance_level)}})},[j]),E.useEffect(()=>{var R;(R=N.current)==null||R.scrollTo({top:N.current.scrollHeight})},[s,p]);const P=async R=>{x(!0);try{const z=await Nt("/api/v1/crucible/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:i,all:R})});if(z.ok){const H=await z.json();c(H),await j()}else z.status===403&&c({id:"denied",command:i,status:"forbidden",results:[{host_id:"—",status:"denied",message:"Requires clearance L4"}]})}finally{x(!1)}},B=(s==null?void 0:s.results)??((F=p[0])==null?void 0:F.results)??[];return d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsxs("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Crucible"}),d.jsx("p",{className:"text-sm text-deck-muted",children:"Batch terminal — dispatch commands across fleet hosts (L4)"})]}),k!==null&&d.jsxs(mt,{variant:k>=4?"online":"failed",children:["OPERATOR L",k]})]}),d.jsxs(Et,{children:[d.jsxs(Bt,{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(hd,{className:"h-5 w-5 text-deck-accent"}),d.jsx(Vt,{className:"text-base",children:"Batch command terminal"})]}),d.jsx(Wt,{children:"Maps to pause · resume · reboot · screenshot · shell · status"})]}),d.jsxs($t,{className:"space-y-4",children:[d.jsxs("div",{className:"flex gap-2",children:[d.jsx(qr,{className:"font-mono",value:i,onChange:R=>a(R.target.value),placeholder:"status",onKeyDown:R=>R.key==="Enter"&&void P(!0)}),d.jsxs(st,{onClick:()=>void P(!1),disabled:g,children:[g?d.jsx(rr,{className:"h-4 w-4 animate-spin"}):d.jsx(im,{className:"h-4 w-4"}),"Run"]}),d.jsx(st,{variant:"outline",onClick:()=>void P(!0),disabled:g,children:"All online"})]}),d.jsxs("div",{ref:N,className:"max-h-[420px] overflow-y-auto rounded-lg border border-deck-border bg-deck-bg p-4 font-mono text-sm",children:[d.jsxs("p",{className:"text-deck-muted mb-3",children:["$ crucible dispatch --cmd ",i||"status"]}),B.length===0&&d.jsx("p",{className:"text-deck-muted text-xs",children:"No output yet — run a batch command."}),B.map((R,z)=>d.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs py-1 border-b border-deck-border/40",children:[d.jsx("span",{className:"text-deck-cyan",children:R.hostname??R.host_id}),d.jsx("span",{className:"text-deck-text",children:i}),d.jsx(mt,{variant:R.status==="dispatched"||R.status==="ok"?"active":R.status==="denied"?"failed":"probing",className:"ml-auto",children:R.status.toUpperCase()})]},z)),g&&d.jsx("p",{className:"mt-3 text-deck-accent animate-pulse",children:"▌ dispatching…"}),!g&&B.length>0&&d.jsx("p",{className:"mt-3 text-deck-accent",children:"▌"})]}),s&&d.jsxs("p",{className:"font-mono text-[10px] text-deck-muted",children:["job ",s.id," · ",s.status]})]})]})]})}function pv(){const[i,a]=E.useState([]),[s,c]=E.useState(!1),[p,h]=E.useState("idle"),g=E.useRef(null),x=E.useRef(null),k=P=>{try{return JSON.parse(P)}catch{return{id:String(Date.now()),event_type:"sse",payload_json:P,created_at:new Date().toISOString()}}},_=E.useCallback(()=>{var R;(R=g.current)==null||R.close(),h("connecting"),a([]);const P=Ls(),B=P?`/seer?authorization=${encodeURIComponent(P)}`:"/seer",F=new EventSource(B);g.current=F,F.onopen=()=>{c(!0),h("live")},F.onmessage=z=>{const H=k(z.data);H&&a(Q=>[H,...Q].slice(0,200))},F.onerror=()=>{c(!1),h("error"),F.close()}},[]),N=()=>{var P;(P=g.current)==null||P.close(),g.current=null,c(!1),h("idle")};E.useEffect(()=>()=>{var P;return(P=g.current)==null?void 0:P.close()},[]),E.useEffect(()=>{var P;(P=x.current)==null||P.scrollTo({top:0})},[i]);const j=async()=>{h("connecting");try{(await Nt("/api/v1/crucible/history")).ok&&(h("live"),a([{id:"snapshot",event_type:"system",payload_json:'{"message":"Seer snapshot — connect SSE for live stream"}',created_at:new Date().toISOString()}]))}catch{h("error")}};return d.jsxs("div",{className:"p-6 space-y-6",children:[d.jsxs("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Seer"}),d.jsx("p",{className:"text-sm text-deck-muted",children:"Court transcripts · LOTL timeline · live SSE stream"})]}),d.jsxs("div",{className:"flex gap-2",children:[s?d.jsx(st,{variant:"outline",size:"sm",onClick:N,children:"Disconnect"}):d.jsxs(d.Fragment,{children:[d.jsxs(st,{size:"sm",onClick:_,children:[d.jsx(lm,{className:"h-4 w-4"}),"Connect SSE"]}),d.jsx(st,{size:"sm",variant:"outline",onClick:()=>void j(),children:"Snapshot"})]}),d.jsxs(mt,{variant:p==="live"?"online":p==="error"?"failed":"secondary",children:[p==="connecting"&&d.jsx(rr,{className:"mr-1 h-3 w-3 animate-spin"}),p.toUpperCase()]})]})]}),d.jsxs(Et,{children:[d.jsxs(Bt,{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(fd,{className:"h-5 w-5 text-deck-cyan"}),d.jsx(Vt,{className:"text-base",children:"Event Stream"})]}),d.jsxs(Wt,{children:["SSE endpoint: ",d.jsx("code",{className:"font-mono text-deck-cyan",children:"GET /seer"})]})]}),d.jsx($t,{children:d.jsxs("div",{ref:x,className:"max-h-[480px] overflow-y-auto rounded-lg border border-deck-border bg-deck-bg p-3 font-mono text-xs space-y-2",children:[i.length===0&&d.jsx("p",{className:"text-deck-muted",children:"Waiting for events…"}),i.map(P=>d.jsxs("div",{className:"flex gap-2 border-b border-deck-border/50 pb-2",children:[d.jsx("span",{className:"text-deck-muted shrink-0",children:new Date(P.created_at).toLocaleTimeString()}),d.jsx(mt,{variant:"secondary",className:"shrink-0",children:P.event_type}),P.host_id&&d.jsx("span",{className:"text-deck-cyan shrink-0",children:P.host_id.slice(0,8)}),d.jsx("span",{className:"text-deck-text break-all",children:P.payload_json})]},P.id))]})})]})]})}function hv(){return d.jsxs(_h,{children:[d.jsx(Ct,{path:"/login",element:Xr()?d.jsx(co,{to:"/dashboard",replace:!0}):d.jsx(ov,{})}),d.jsx(Ct,{element:d.jsx(lv,{}),children:d.jsxs(Ct,{element:d.jsx(rv,{}),children:[d.jsx(Ct,{path:"/dashboard",element:d.jsx(uv,{})}),d.jsx(Ct,{path:"/forge",element:d.jsx(cv,{})}),d.jsx(Ct,{path:"/calibrate",element:d.jsx(dv,{})}),d.jsx(Ct,{path:"/crucible",element:d.jsx(fv,{})}),d.jsx(Ct,{path:"/seer",element:d.jsx(pv,{})})]})}),d.jsx(Ct,{path:"/",element:d.jsx(co,{to:"/dashboard",replace:!0})}),d.jsx(Ct,{path:"*",element:d.jsx(co,{to:"/dashboard",replace:!0})})]})}Fp.createRoot(document.getElementById("root")).render(d.jsx(E.StrictMode,{children:d.jsx(Fh,{children:d.jsx(hv,{})})}));