(function(){const A=document.createElement("link").relList;if(A&&A.supports&&A.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))m(p);new MutationObserver(p=>{for(const q of p)if(q.type==="childList")for(const nl of q.addedNodes)nl.tagName==="LINK"&&nl.rel==="modulepreload"&&m(nl)}).observe(document,{childList:!0,subtree:!0});function _(p){const q={};return p.integrity&&(q.integrity=p.integrity),p.referrerPolicy&&(q.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?q.credentials="include":p.crossOrigin==="anonymous"?q.credentials="omit":q.credentials="same-origin",q}function m(p){if(p.ep)return;p.ep=!0;const q=_(p);fetch(p.href,q)}})();function o0(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}var Ts={exports:{}},an={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ir;function dh(){if(Ir)return an;Ir=1;var b=Symbol.for("react.transitional.element"),A=Symbol.for("react.fragment");function _(m,p,q){var nl=null;if(q!==void 0&&(nl=""+q),p.key!==void 0&&(nl=""+p.key),"key"in p){q={};for(var w in p)w!=="key"&&(q[w]=p[w])}else q=p;return p=q.ref,{$$typeof:b,type:m,key:nl,ref:p!==void 0?p:null,props:q}}return an.Fragment=A,an.jsx=_,an.jsxs=_,an}var Pr;function mh(){return Pr||(Pr=1,Ts.exports=dh()),Ts.exports}var z=mh(),Es={exports:{}},L={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l0;function rh(){if(l0)return L;l0=1;var b=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),nl=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),ll=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),B=Symbol.for("react.view_transition"),Z=Symbol.iterator;function El(o){return o===null||typeof o!="object"?null:(o=Z&&o[Z]||o["@@iterator"],typeof o=="function"?o:null)}var wl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vl=Object.assign,kl={};function nt(o,N,j){this.props=o,this.context=N,this.refs=kl,this.updater=j||wl}nt.prototype.isReactComponent={},nt.prototype.setState=function(o,N){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,N,"setState")},nt.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function Ke(){}Ke.prototype=nt.prototype;function Bt(o,N,j){this.props=o,this.context=N,this.refs=kl,this.updater=j||wl}var qt=Bt.prototype=new Ke;qt.constructor=Bt,vl(qt,nt.prototype),qt.isPureReactComponent=!0;var it=Array.isArray;function W(){}var il={H:null,A:null,T:null,S:null},Gt=Object.prototype.hasOwnProperty;function bt(o,N,j){var Y=j.ref;return{$$typeof:b,type:o,key:N,ref:Y!==void 0?Y:null,props:j}}function Tt(o,N){return bt(o.type,N,o.props)}function ct(o){return typeof o=="object"&&o!==null&&o.$$typeof===b}function he(o){var N={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(j){return N[j]})}var Je=/\/+/g;function Cl(o,N){return typeof o=="object"&&o!==null&&o.key!=null?he(""+o.key):N.toString(36)}function O(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(W,W):(o.status="pending",o.then(function(N){o.status==="pending"&&(o.status="fulfilled",o.value=N)},function(N){o.status==="pending"&&(o.status="rejected",o.reason=N)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function Q(o,N,j,Y,el){var ul=typeof o;(ul==="undefined"||ul==="boolean")&&(o=null);var cl=!1;if(o===null)cl=!0;else switch(ul){case"bigint":case"string":case"number":cl=!0;break;case"object":switch(o.$$typeof){case b:case A:cl=!0;break;case U:return cl=o._init,Q(cl(o._payload),N,j,Y,el)}}if(cl)return el=el(o),cl=Y===""?"."+Cl(o,0):Y,it(el)?(j="",cl!=null&&(j=cl.replace(Je,"$&/")+"/"),Q(el,N,j,"",function(le){return le})):el!=null&&(ct(el)&&(el=Tt(el,j+(el.key==null||o&&o.key===el.key?"":(""+el.key).replace(Je,"$&/")+"/")+cl)),N.push(el)),1;cl=0;var R=Y===""?".":Y+":";if(it(o))for(var V=0;V>>1,sl=O[hl];if(0>>1;hlp($e,X))op(N,$e)?(O[hl]=N,O[o]=X,hl=o):(O[hl]=$e,O[Pt]=X,hl=Pt);else if(op(N,X))O[hl]=N,O[o]=X,hl=o;else break l}}return Q}function p(O,Q){var X=O.sortIndex-Q.sortIndex;return X!==0?X:O.id-Q.id}if(b.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var q=performance;b.unstable_now=function(){return q.now()}}else{var nl=Date,w=nl.now();b.unstable_now=function(){return nl.now()-w}}var C=[],ll=[],U=1,S=null,B=3,Z=!1,El=!1,wl=!1,vl=!1,kl=typeof setTimeout=="function"?setTimeout:null,nt=typeof clearTimeout=="function"?clearTimeout:null,Ke=typeof setImmediate<"u"?setImmediate:null;function Bt(O){for(var Q=_(ll);Q!==null;){if(Q.callback===null)m(ll);else if(Q.startTime<=O)m(ll),Q.sortIndex=Q.expirationTime,A(C,Q);else break;Q=_(ll)}}function qt(O){if(wl=!1,Bt(O),!El)if(_(C)!==null)El=!0,it||(it=!0,ct());else{var Q=_(ll);Q!==null&&Cl(qt,Q.startTime-O)}}var it=!1,W=-1,il=5,Gt=-1;function bt(){return vl?!0:!(b.unstable_now()-GtO&&bt());){var hl=S.callback;if(typeof hl=="function"){S.callback=null,B=S.priorityLevel;var sl=hl(S.expirationTime<=O);if(O=b.unstable_now(),typeof sl=="function"){S.callback=sl,Bt(O),Q=!0;break t}S===_(C)&&m(C),Bt(O)}else m(C);S=_(C)}if(S!==null)Q=!0;else{var Dt=_(ll);Dt!==null&&Cl(qt,Dt.startTime-O),Q=!1}}break l}finally{S=null,B=X,Z=!1}Q=void 0}}finally{Q?ct():it=!1}}}var ct;if(typeof Ke=="function")ct=function(){Ke(Tt)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Je=he.port2;he.port1.onmessage=Tt,ct=function(){Je.postMessage(null)}}else ct=function(){kl(Tt,0)};function Cl(O,Q){W=kl(function(){O(b.unstable_now())},Q)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(O){O.callback=null},b.unstable_forceFrameRate=function(O){0>O||125hl?(O.sortIndex=X,A(ll,O),_(C)===null&&O===_(ll)&&(wl?(nt(W),W=-1):wl=!0,Cl(qt,X-hl))):(O.sortIndex=sl,A(C,O),El||Z||(El=!0,it||(it=!0,ct()))),O},b.unstable_shouldYield=bt,b.unstable_wrapCallback=function(O){var Q=B;return function(){var X=B;B=Q;try{return O.apply(this,arguments)}finally{B=X}}}})(Ns)),Ns}var u0;function yh(){return u0||(u0=1,_s.exports=vh()),_s.exports}var xs={exports:{}},Ll={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var a0;function hh(){if(a0)return Ll;a0=1;var b=Os();function A(U){var S="https://react.dev/errors/"+U;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(A){console.error(A)}}return b(),xs.exports=hh(),xs.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i0;function Sh(){if(i0)return nn;i0=1;var b=yh(),A=Os(),_=gh();function m(l){var t="https://react.dev/errors/"+l;if(1Su||(l.current=qi[Su],qi[Su]=null,Su--)}function Sl(l,t){Su++,qi[Su]=l.current,l.current=t}var Xt=Qt(null),oa=Qt(null),ge=Qt(null),cn=Qt(null);function fn(l,t){switch(Sl(ge,t),Sl(oa,l),Sl(Xt,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?cr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=cr(t),l=fr(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}Bl(Xt),Sl(Xt,l)}function bu(){Bl(Xt),Bl(oa),Bl(ge)}function Gi(l){var t=l.memoizedState;t!==null&&(ia._currentValue=t.memoizedState,Sl(cn,l)),t=Xt.current;var e=fr(t,l.type);t!==e&&(Sl(oa,l),Sl(Xt,e))}function sn(l){oa.current===l&&(Bl(Xt),Bl(oa)),cn.current===l&&(Bl(cn),ia._currentValue=le)}var Qi,As;function Se(l){if(Qi===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Qi=t&&t[1]||"",As=-1)":-1a||f[u]!==v[a]){var g=` `+f[u].replace(" at new "," at ");return l.displayName&&g.includes("")&&(g=g.replace("",l.displayName)),g}while(1<=u&&0<=a);break}}}finally{Xi=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Se(e):""}function y0(l,t){switch(l.tag){case 26:case 27:case 5:return Se(l.type);case 16:return Se("Lazy");case 13:return l.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Zi(l.type,!1);case 11:return Zi(l.type.render,!1);case 1:return Zi(l.type,!0);case 31:return Se("Activity");case 30:return Se("ViewTransition");default:return""}}function ps(l){try{var t="",e=null;do t+=y0(l,e),e=l,l=l.return;while(l);return t}catch(u){return` Error generating stack: `+u.message+` `+u.stack}}var Vi=Object.prototype.hasOwnProperty,Li=b.unstable_scheduleCallback,wi=b.unstable_cancelCallback,h0=b.unstable_shouldYield,g0=b.unstable_requestPaint,ft=b.unstable_now,S0=b.unstable_getCurrentPriorityLevel,Ms=b.unstable_ImmediatePriority,Ds=b.unstable_UserBlockingPriority,on=b.unstable_NormalPriority,b0=b.unstable_LowPriority,Us=b.unstable_IdlePriority,T0=b.log,E0=b.unstable_setDisableYieldValue,da=null,st=null;function be(l){if(typeof T0=="function"&&E0(l),st&&typeof st.setStrictMode=="function")try{st.setStrictMode(da,l)}catch{}}var ot=Math.clz32?Math.clz32:N0,z0=Math.log,_0=Math.LN2;function N0(l){return l>>>=0,l===0?32:31-(z0(l)/_0|0)|0}var dn=256,mn=262144,rn=4194304;function We(l){var t=l&42;if(t!==0)return t;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return l&-l;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function vn(l,t,e){var u=l.pendingLanes;if(u===0)return 0;var a=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=u&134217727;return c!==0?(u=c&~n,u!==0?a=We(u):(i&=c,i!==0?a=We(i):e||(e=c&~l,e!==0&&(a=We(e))))):(c=u&~n,c!==0?a=We(c):i!==0?a=We(i):e||(e=u&~l,e!==0&&(a=We(e)))),a===0?0:t!==0&&t!==a&&(t&n)===0&&(n=a&-a,e=t&-t,n>=e||n===32&&(e&4194048)!==0)?t:a}function ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Cs(l,t){(t&8)!==0&&(t|=t&32);var e=l.entangledLanes;if(e!==0)for(l=l.entanglements,e&=t;0e;e++)t.push(l);return t}function ra(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function O0(l,t,e,u,a,n){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,f=l.expirationTimes,v=l.hiddenUpdates;for(e=i&~e;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ec=!1;if(ue)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){ec=!0}}),window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{ec=!1}var Te=null,uc=null,Tn=null;function eo(){if(Tn)return Tn;var l,t=uc,e=t.length,u,a="value"in Te?Te.value:Te.textContent,n=a.length;for(l=0;l=Ta),fo=" ",so=!1;function oo(l,t){switch(l){case"keyup":return fv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mo(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var pu=!1;function ov(l,t){switch(l){case"compositionend":return mo(t);case"keypress":return t.which!==32?null:(so=!0,fo);case"textInput":return l=t.data,l===fo&&so?null:l;default:return null}}function dv(l,t){if(pu)return l==="compositionend"||!fc&&oo(l,t)?(l=eo(),Tn=uc=Te=null,pu=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function To(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Eo(l,t){var e=To(l);l=0;for(var u;e;){if(e.nodeType===3){if(u=l+e.textContent.length,l<=t&&u>=t)return{node:e,offset:t-l};l=u}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=To(e)}}function zo(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?zo(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function _o(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=dc(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=dc(l.document)}return t}function mc(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var bv=ue&&"documentMode"in document&&11>=document.documentMode,Mu=null,rc=null,Na=null,vc=!1;function No(l,t,e){var u=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;vc||Mu==null||Mu!==dc(u)||(u=Mu,"selectionStart"in u&&mc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Na&&_a(Na,u)||(Na=u,u=xi(rc,"onSelect"),0>=i,a-=i,Vt=1<<32-ot(t)+a|e<G?(Dl=H,H=null):Dl=H.sibling;var tl=d(r,H,y[G],T);if(tl===null){H===null&&(H=Dl);break}l&&H&&tl.alternate===null&&t(r,H),s=n(tl,s,G),P===null?M=tl:P.sibling=tl,P=tl,H=Dl}if(G===y.length)return e(r,H),$&&ce(r,G),M;if(H===null){for(;GG?(Dl=H,H=null):Dl=H.sibling;var we=d(r,H,tl.value,T);if(we===null){H===null&&(H=Dl);break}l&&H&&we.alternate===null&&t(r,H),s=n(we,s,G),P===null?M=we:P.sibling=we,P=we,H=Dl}if(tl.done)return e(r,H),$&&ce(r,G),M;if(H===null){for(;!tl.done;G++,tl=y.next())tl=E(r,tl.value,T),tl!==null&&(s=n(tl,s,G),P===null?M=tl:P.sibling=tl,P=tl);return $&&ce(r,G),M}for(H=u(H);!tl.done;G++,tl=y.next())tl=h(H,r,G,tl.value,T),tl!==null&&(l&&(Dl=tl.alternate,Dl!==null&&H.delete(Dl.key===null?G:Dl.key)),s=n(tl,s,G),P===null?M=tl:P.sibling=tl,P=tl);return l&&H.forEach(function(oh){return t(r,oh)}),$&&ce(r,G),M}function J(r,s,y,T){if(typeof y=="object"&&y!==null&&y.type===Tt&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Gt:l:{for(var M=y.key;s!==null;){if(s.key===M){if(M=y.type,M===Tt){if(s.tag===7){e(r,s.sibling),T=a(s,y.props.children),Oe(T,y),T.return=r,r=T;break l}}else if(s.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===sl&&fu(M)===s.type){e(r,s.sibling),T=a(s,y.props),Oe(T,y),T.return=r,r=T;break l}e(r,s);break}else t(r,s);s=s.sibling}y.type===Tt?(T=tu(y.props.children,r.mode,T,y.key),Oe(T,y),T.return=r,r=T):(T=Dn(y.type,y.key,y.props,null,r.mode,T),Oe(T,y),T.return=r,r=T)}return i(r);case bt:l:{for(M=y.key;s!==null;){if(s.key===M)if(s.tag===4&&s.stateNode.containerInfo===y.containerInfo&&s.stateNode.implementation===y.implementation){e(r,s.sibling),T=a(s,y.children||[]),T.return=r,r=T;break l}else{e(r,s);break}else t(r,s);s=s.sibling}T=Ec(y,r.mode,T),T.return=r,r=T}return i(r);case sl:return y=fu(y),J(r,s,y,T)}if(cl(y))return x(r,s,y,T);if(Y(y)){if(M=Y(y),typeof M!="function")throw Error(m(150));return y=M.call(y),D(r,s,y,T)}if(typeof y.then=="function")return J(r,s,Qn(y),T);if(y.$$typeof===Cl)return J(r,s,Yn(r,y),T);Xn(r,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,s!==null&&s.tag===6?(e(r,s.sibling),T=a(s,y),T.return=r,r=T):(e(r,s),T=Tc(y,r.mode,T),T.return=r,r=T),i(r)):e(r,s)}return function(r,s,y,T){try{Da=0;var M=J(r,s,y,T);return qu=null,M}catch(H){if(H===Bu||H===qn)throw H;var P=Pl(29,H,null,r.mode);return P.lanes=T,P.return=r,P}finally{}}}var ou=$o(!0),Wo=$o(!1),Ae=!1;function Uc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cc(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function pe(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Me(l,t,e){var u=l.updateQueue;if(u===null)return null;if(u=u.shared,(fl&2)!==0){var a=u.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),u.pending=t,t=Mn(l),Co(l,null,e),t}return pn(l,u,t,e),Mn(l)}function Ua(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var u=t.lanes;u&=l.pendingLanes,e|=u,t.lanes=e,js(l,e)}}function Rc(l,t){var e=l.updateQueue,u=l.alternate;if(u!==null&&(u=u.updateQueue,e===u)){var a=null,n=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};n===null?a=n=i:n=n.next=i,e=e.next}while(e!==null);n===null?a=n=t:n=n.next=t}else a=n=t;e={baseState:u.baseState,firstBaseUpdate:a,lastBaseUpdate:n,shared:u.shared,callbacks:u.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var Hc=!1;function Ca(){if(Hc){var l=Yu;if(l!==null)throw l}}function Ra(l,t,e,u){Hc=!1;var a=l.updateQueue;Ae=!1;var n=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var f=c,v=f.next;f.next=null,i===null?n=v:i.next=v,i=f;var g=l.alternate;g!==null&&(g=g.updateQueue,c=g.lastBaseUpdate,c!==i&&(c===null?g.firstBaseUpdate=v:c.next=v,g.lastBaseUpdate=f))}if(n!==null){var E=a.baseState;i=0,g=v=f=null,c=n;do{var d=c.lane&-536870913,h=d!==c.lane;if(h?(I&d)===d:(u&d)===d){d!==0&&d===iu&&(Hc=!0),g!==null&&(g=g.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var x=l,D=c;d=t;var J=e;switch(D.tag){case 1:if(x=D.payload,typeof x=="function"){E=x.call(J,E,d);break l}E=x;break l;case 3:x.flags=x.flags&-65537|128;case 0:if(x=D.payload,d=typeof x=="function"?x.call(J,E,d):x,d==null)break l;E=W({},E,d);break l;case 2:Ae=!0}}d=c.callback,d!==null&&(l.flags|=64,h&&(l.flags|=8192),h=a.callbacks,h===null?a.callbacks=[d]:h.push(d))}else h={lane:d,tag:c.tag,payload:c.payload,callback:c.callback,next:null},g===null?(v=g=h,f=E):g=g.next=h,i|=d;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;h=c,c=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);g===null&&(f=E),a.baseState=f,a.firstBaseUpdate=v,a.lastBaseUpdate=g,n===null&&(a.shared.lanes=0),Ye|=i,l.lanes=i,l.memoizedState=E}}function Fo(l,t){if(typeof l!="function")throw Error(m(191,l));l.call(t)}function ko(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;ln?n:8;var i=R.T,c={};c.types=i!==null?i.types:null,R.T=c,lf(l,!1,t,e);try{var f=a(),v=R.S;if(v!==null&&v(c,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var g=Dv(f,u);Ba(l,t,g,gt(l))}else Ba(l,t,u,gt(l))}catch(E){Ba(l,t,{then:function(){},status:"rejected",reason:E},gt())}finally{V.p=n,i!==null&&c.types!==null&&(i.types=c.types),R.T=i}}function Yv(){}function Ic(l,t,e,u){if(l.tag!==5)throw Error(m(476));var a=Md(l).queue;pd(l,a,t,le,e===null?Yv:function(){return Dd(l),e(u)})}function Md(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:de,lastRenderedState:le},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:de,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Dd(l){var t=Md(l);t.next===null&&(t=l.alternate.memoizedState),Ba(l,t.next.queue,{},gt())}function Pc(){return Gl(ia)}function Ud(){return Ol().memoizedState}function Cd(){return Ol().memoizedState}function Bv(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=gt();l=pe(e);var u=Me(t,l,e);u!==null&&(ut(u,t,e),Ua(u,t,e)),t={cache:Ac()},l.payload=t;return}t=t.return}}function qv(l,t,e){var u=gt();e={lane:u,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},kn(l)?Hd(t,e):(e=Sc(l,t,e,u),e!==null&&(ut(e,l,u),jd(e,t,u)))}function Rd(l,t,e){var u=gt();Ba(l,t,e,u)}function Ba(l,t,e,u){var a={lane:u,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(kn(l))Hd(t,a);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,e);if(a.hasEagerState=!0,a.eagerState=c,mt(c,i))return pn(l,t,a,0),gl===null&&An(),!1}catch{}finally{}if(e=Sc(l,t,a,u),e!==null)return ut(e,l,u),jd(e,t,u),!0}return!1}function lf(l,t,e,u){if(u={lane:2,revertLane:wf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},kn(l)){if(t)throw Error(m(479))}else t=Sc(l,e,u,2),t!==null&&ut(t,l,2)}function kn(l){var t=l.alternate;return l===K||t!==null&&t===K}function Hd(l,t){Gu=Ln=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function jd(l,t,e){if((e&4194048)!==0){var u=t.lanes;u&=l.pendingLanes,e|=u,t.lanes=e,js(l,e)}}var In={readContext:Gl,use:Jn,useCallback:Nl,useContext:Nl,useEffect:Nl,useImperativeHandle:Nl,useLayoutEffect:Nl,useInsertionEffect:Nl,useMemo:Nl,useReducer:Nl,useRef:Nl,useState:Nl,useDebugValue:Nl,useDeferredValue:Nl,useTransition:Nl,useSyncExternalStore:Nl,useId:Nl,useHostTransitionStatus:Nl,useFormState:Nl,useActionState:Nl,useOptimistic:Nl,useMemoCache:Nl,useCacheRefresh:Nl,useEffectEvent:Nl},Yd={readContext:Gl,use:Jn,useCallback:function(l,t){return $l().memoizedState=[l,t===void 0?null:t],l},useContext:Gl,useEffect:bd,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,Wn(4194308,4,_d.bind(null,t,l),e)},useLayoutEffect:function(l,t){return Wn(4194308,4,l,t)},useInsertionEffect:function(l,t){Wn(4,2,l,t)},useMemo:function(l,t){var e=$l();t=t===void 0?null:t;var u=l();if(du){be(!0);try{l()}finally{be(!1)}}return e.memoizedState=[u,t],u},useReducer:function(l,t,e){var u=$l();if(e!==void 0){var a=e(t);if(du){be(!0);try{e(t)}finally{be(!1)}}}else a=t;return u.memoizedState=u.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:a},u.queue=l,l=l.dispatch=qv.bind(null,K,l),[u.memoizedState,l]},useRef:function(l){var t=$l();return l={current:l},t.memoizedState=l},useState:function(l){l=Jc(l);var t=l.queue,e=Rd.bind(null,K,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:Fc,useDeferredValue:function(l,t){var e=$l();return kc(e,l,t)},useTransition:function(){var l=Jc(!1);return l=pd.bind(null,K,l.queue,!0,!1),$l().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var u=K,a=$l();if($){if(e===void 0)throw Error(m(407));e=e()}else{if(e=t(),gl===null)throw Error(m(349));(I&127)!==0||ud(u,t,e)}a.memoizedState=e;var n={value:e,getSnapshot:t};return a.queue=n,bd(nd.bind(null,u,n,l),[l]),u.flags|=2048,Xu(9,{destroy:void 0},ad.bind(null,u,n,e,t),null),e},useId:function(){var l=$l(),t=gl.identifierPrefix;if($){var e=Lt,u=Vt;e=(u&~(1<<32-ot(u)-1)).toString(32)+e,t="_"+t+"R_"+e,e=wn++,0<\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof u.is=="string"?i.createElement("select",{is:u.is}):i.createElement("select"),u.multiple?n.multiple=!0:u.size&&(n.size=u.size);break;default:n=typeof u.is=="string"?i.createElement(a,{is:u.is}):i.createElement(a)}}n[ql]=t,n[Il]=u;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;l:switch(Vl(n,a,u),a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break l;case"img":u=!0;break l;default:u=!1}u&&re(t)}}return Tl(t),t.subtreeFlags&=-33554433,vf(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==u&&re(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error(m(166));if(l=ge.current,ju(t)){if(l=t.stateNode,e=t.memoizedProps,u=null,a=Hl,a!==null)switch(a.tag){case 27:case 5:u=a.memoizedProps}l[ql]=t,l=!!(l.nodeValue===e||u!==null&&u.suppressHydrationWarning===!0||nr(l.nodeValue,e)),l||Ne(t,!0)}else l=Fa(l).createTextNode(u),l[ql]=t,t.stateNode=l}return Tl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(u=ju(t),e!==null){if(l===null){if(!u)throw Error(m(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(m(557));l[ql]=t}else eu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Tl(t),l=!1}else e=Nc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(rt(t),t):(rt(t),null);if((t.flags&128)!==0)throw Error(m(558))}return Tl(t),null;case 13:if(u=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(a=ju(t),u!==null&&u.dehydrated!==null){if(l===null){if(!a)throw Error(m(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(m(317));a[ql]=t}else eu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Tl(t),a=!1}else a=Nc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(rt(t),t):(rt(t),null)}return rt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=u!==null,l=l!==null&&l.memoizedState!==null,e&&(u=t.child,a=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(a=u.alternate.memoizedState.cachePool.pool),n=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(n=u.memoizedState.cachePool.pool),n!==a&&(u.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),ai(t,t.updateQueue),Tl(t),null);case 4:return bu(),l===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,Tl(t),null;case 10:return se(t.type),Tl(t),null;case 19:if(qc(t),u=t.memoizedState,u===null)return Tl(t),null;if(a=(t.flags&128)!==0,n=u.rendering,n===null)if(a)Ga(u,!1);else{if(xl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=Vn(l),n!==null){for(t.flags|=128,Ga(u,!1),l=n.updateQueue,t.updateQueue=l,ai(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Ro(e,l),e=e.sibling;return Ha(t,Xl.current&1|2),$&&ce(t,u.treeForkCount),t.child}l=l.sibling}u.tail!==null&&ft()>hi&&(t.flags|=128,a=!0,Ga(u,!1),t.lanes=4194304)}else{if(!a)if(l=Vn(n),l!==null){if(t.flags|=128,a=!0,l=l.updateQueue,t.updateQueue=l,ai(t,l),Ga(u,!0),u.tail===null&&u.tailMode!=="collapsed"&&u.tailMode!=="visible"&&!n.alternate&&!$)return Tl(t),null}else 2*ft()-u.renderingStartTime>hi&&e!==536870912&&(t.flags|=128,a=!0,Ga(u,!1),t.lanes=4194304);u.isBackwards?(n.sibling=t.child,t.child=n):(l=u.last,l!==null?l.sibling=n:t.child=n,u.last=n)}if(u.tail!==null){l=u.tail;l:{for(e=l;e!==null;){if(e.alternate!==null){e=!1;break l}e=e.sibling}e=!0}return u.rendering=l,u.tail=l.sibling,u.renderingStartTime=ft(),l.sibling=null,n=Xl.current,n=a?n&1|2:n&1,u.tailMode==="visible"||u.tailMode==="collapsed"||!e||$?Ha(t,n):(e=n,Sl(Ql,t),Sl(Xl,e),Kl===null&&(Kl=t)),$&&ce(t,u.treeForkCount),l}return Tl(t),null;case 22:case 23:return rt(t),Yc(),u=t.memoizedState!==null,l!==null?l.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(e&536870912)!==0&&(t.flags&128)===0&&(Tl(t),t.subtreeFlags&6&&(t.flags|=8192)):Tl(t),e=t.updateQueue,e!==null&&ai(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==e&&(t.flags|=2048),l!==null&&Bl(cu),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),se(Al),Tl(t),null;case 25:return null;case 30:return t.flags|=33554432,Tl(t),null}throw Error(m(156,t.tag))}function wv(l,t){switch(zc(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return se(Al),bu(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return sn(t),null;case 31:if(t.memoizedState!==null){if(rt(t),t.alternate===null)throw Error(m(340));eu()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(rt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(m(340));eu()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return qc(t),l=t.flags,l&65536?(t.flags=l&-65537|128,l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null),t.flags|=4,t):null;case 4:return bu(),null;case 10:return se(t.type),null;case 22:case 23:return rt(t),Yc(),l!==null&&Bl(cu),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return se(Al),null;case 25:return null;default:return null}}function cm(l,t){switch(zc(t),t.tag){case 3:se(Al),bu();break;case 26:case 27:case 5:sn(t);break;case 4:bu();break;case 31:t.memoizedState!==null&&rt(t);break;case 13:rt(t);break;case 19:qc(t);break;case 10:se(t.type);break;case 22:case 23:rt(t),Yc(),l!==null&&Bl(cu);break;case 24:se(Al)}}function Qa(l,t){try{var e=t.updateQueue,u=e!==null?e.lastEffect:null;if(u!==null){var a=u.next;e=a;do{if((e.tag&l)===l){u=void 0;var n=e.create,i=e.inst;u=n(),i.destroy=u}e=e.next}while(e!==a)}}catch(c){ml(t,t.return,c)}}function Re(l,t,e){try{var u=t.updateQueue,a=u!==null?u.lastEffect:null;if(a!==null){var n=a.next;u=n;do{if((u.tag&l)===l){var i=u.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=t;var f=e,v=c;try{v()}catch(g){ml(a,f,g)}}}u=u.next}while(u!==n)}}catch(g){ml(t,t.return,g)}}function fm(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{ko(t,e)}catch(u){ml(l,l.return,u)}}}function sm(l,t,e){e.props=mu(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(u){ml(l,t,u)}}function wt(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var u=l.stateNode;break;case 30:var a=l.stateNode,n=ae(l.memoizedProps,a);(a.ref===null||a.ref.name!==n)&&(a.ref=hr(n)),u=a.ref;break;case 7:if(l.stateNode===null){var i=new St(l);S(l.child,!1,jy,i,void 0,void 0),l.stateNode=i}u=l.stateNode;break;default:u=l.stateNode}typeof e=="function"?l.refCleanup=e(u):e.current=u}}catch(c){ml(l,t,c)}}function Zl(l,t){var e=l.ref,u=l.refCleanup;if(e!==null)if(typeof u=="function")try{u()}catch(a){ml(l,t,a)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(a){ml(l,t,a)}else e.current=null}function ni(l,t){if((l.tag===5||l.tag===27||l.tag===6)&&l.alternate===null&&t!==null)for(var e=0;e title"))),Vl(u,t,e),u[ql]=l,Rl(u),t=u;break l;case"link":if(n=Rr("link","href",a).get(t+(e.href||""))){for(i=0;iJ&&(i=J,J=D,D=i);var r=Eo(c,D),s=Eo(c,J);if(r&&s&&(h.rangeCount!==1||h.anchorNode!==r.node||h.anchorOffset!==r.offset||h.focusNode!==s.node||h.focusOffset!==s.offset)){var y=E.createRange();y.setStart(r.node,r.offset),h.removeAllRanges(),D>J?(h.addRange(y),h.extend(s.node,s.offset)):(y.setEnd(s.node,s.offset),h.addRange(y))}}}}for(E=[],h=c;h=h.parentNode;)h.nodeType===1&&E.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;ce?32:e,R.T=null,e=jf,jf=null;var n=jt,i=kt;if(_l=0,hu=jt=null,kt=0,(fl&6)!==0)throw Error(m(331));var c=fl;if(fl|=4,Cm(n.current),Mm(n,n.current,i,e),fl=c,Ja(0,!1),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(da,n)}catch{}return!0}finally{V.p=a,R.T=u,Jm(l,t)}}function $m(l,t,e){t=_t(e,t),t=uf(l.stateNode,t,2),l=Me(l,t,2),l!==null&&(ra(l,2),It(l))}function ml(l,t,e){if(l.tag===3)$m(l,l,e);else for(;t!==null;){if(t.tag===3){$m(t,l,e);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Be===null||!Be.has(u))){l=_t(e,l),e=Ld(2),u=Me(t,e,2),u!==null&&(wd(e,u,t,l),ra(u,2),It(u));break}}t=t.return}}function Zf(l,t,e){var u=l.pingCache;if(u===null){u=l.pingCache=new Wv;var a=new Set;u.set(t,a)}else a=u.get(t),a===void 0&&(a=new Set,u.set(t,a));a.has(e)||(Cf=!0,a.add(e),l=uy.bind(null,l,t,e),t.then(l,l))}function uy(l,t,e){var u=l.pingCache;u!==null&&u.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,gl===l&&(I&e)===e&&((xl===4||xl===3&&(I&62914560)===I&&300>ft()-yi)&&(fl&2)===0?Iu(l,0):vi|=e,Ju===I&&(Ju=0)),It(l)}function Wm(l,t){t===0&&(t=Rs()),l=lu(l,t),l!==null&&(ra(l,t),It(l))}function ay(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),Wm(l,e)}function ny(l,t){var e=0;switch(l.tag){case 31:case 13:var u=l.stateNode,a=l.memoizedState;a!==null&&(e=a.retryLane);break;case 19:u=l.stateNode;break;case 22:u=l.stateNode._retryCache;break;default:throw Error(m(314))}u!==null&&u.delete(t),Wm(l,e)}function iy(l,t){return Li(l,t)}var la=null,ta=null,Vf=!1,_i=!1,Lf=!1,Ge=0;function It(l){l!==ta&&l.next===null&&(ta===null?la=ta=l:ta=ta.next=l),_i=!0,Vf||(Vf=!0,fy())}function Ja(l,t){if(!Lf&&_i){Lf=!0;do for(var e=!1,u=la;u!==null;){if(l!==0){var a=u.pendingLanes;if(a===0)var n=0;else{var i=u.suspendedLanes,c=u.pingedLanes;n=(1<<31-ot(42|l)+1)-1,n&=a&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(e=!0,Pm(u,n))}else n=I,n=vn(u,u===gl?n:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(n&3)===0||ma(u,n)||(e=!0,Pm(u,n));u=u.next}while(e);Lf=!1}}function cy(){Fm()}function Fm(){_i=Vf=!1;var l=0;Ge!==0&&by()&&(l=Ge);for(var t=ft(),e=null,u=la;u!==null;){var a=u.next,n=km(u,t);n===0?(u.next=null,e===null?la=a:e.next=a,a===null&&(ta=e)):(e=u,(l!==0||(n&3)!==0)&&(_i=!0)),u=a}_l!==0&&_l!==5||Ja(l),Ge!==0&&(Ge=0)}function km(l,t){for(var e=l.suspendedLanes,u=l.pingedLanes,a=l.expirationTimes,n=l.pendingLanes&-62914561;0c)break;var g=f.transferSize,E=f.initiatorType;g&&ir(E)&&(f=f.responseEnd,i+=g*(fpi){D.length=x;break}y=new Promise(xy.bind(y)),D.push(y)}}}if(0"u"?null:document;function Mr(l,t,e){var u=ua;if(u&&typeof t=="string"&&t){var a=Et(t);a='link[rel="'+l+'"][href="'+a+'"]',typeof e=="string"&&(a+='[crossorigin="'+e+'"]'),pr.has(a)||(pr.add(a),l={rel:l,crossOrigin:e,href:t},u.querySelector(a)===null&&(t=u.createElement("link"),Vl(t,"link",l),Rl(t),u.head.appendChild(t)))}}function Ly(l){ye.D(l),Mr("dns-prefetch",l,null)}function wy(l,t){ye.C(l,t),Mr("preconnect",l,t)}function Ky(l,t,e){ye.L(l,t,e);var u=ua;if(u&&l&&t){var a='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&e&&e.imageSrcSet?(a+='[imagesrcset="'+Et(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(a+='[imagesizes="'+Et(e.imageSizes)+'"]')):a+='[href="'+Et(l)+'"]';var n=a;switch(t){case"style":n=aa(l);break;case"script":n=na(l)}if(!(Mt.has(n)||(l=W({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),Mt.set(n,l),u.querySelector(a)!==null||t==="style"&&u.querySelector(Ia(n))||t==="script"&&u.querySelector(Pa(n))))){var i=u.createElement("link");Vl(i,"link",l),t==="style"&&(i[yn]=!0,i.onload=i.onerror=function(){Xs(i)}),Rl(i),u.head.appendChild(i)}}}function Jy(l,t){ye.m(l,t);var e=ua;if(e&&l){var u=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Et(u)+'"][href="'+Et(l)+'"]',n=a;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=na(l)}if(!Mt.has(n)&&(l=W({rel:"modulepreload",href:l},t),Mt.set(n,l),e.querySelector(a)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(Pa(n)))return}u=e.createElement("link"),Vl(u,"link",l),Rl(u),e.head.appendChild(u)}}}function $y(l,t,e){ye.S(l,t,e);var u=ua;if(u&&l){var a=zu(u).hoistableStyles,n=aa(l);t=t||"default";var i=a.get(n);if(!i){var c={loading:0,preload:null};if(i=u.querySelector(Ia(n)))c.loading=5;else{l=W({rel:"stylesheet",href:l,"data-precedence":t},e),(e=Mt.get(n))&&ds(l,e);var f=i=u.createElement("link");Rl(f),Vl(f,"link",l),f._p=new Promise(function(v,g){f.onload=v,f.onerror=g}),f.addEventListener("load",function(){c.loading|=1}),f.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Oi(i,t,u)}i={type:"stylesheet",instance:i,count:1,state:c},a.set(n,i)}}}function Wy(l,t){ye.X(l,t);var e=ua;if(e&&l){var u=zu(e).hoistableScripts,a=na(l),n=u.get(a);n||(n=e.querySelector(Pa(a)),n||(l=W({src:l,async:!0},t),(t=Mt.get(a))&&ms(l,t),n=e.createElement("script"),Rl(n),Vl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},u.set(a,n))}}function Fy(l,t){ye.M(l,t);var e=ua;if(e&&l){var u=zu(e).hoistableScripts,a=na(l),n=u.get(a);n||(n=e.querySelector(Pa(a)),n||(l=W({src:l,async:!0,type:"module"},t),(t=Mt.get(a))&&ms(l,t),n=e.createElement("script"),Rl(n),Vl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},u.set(a,n))}}function Dr(l,t,e,u){var a=(a=ge.current)?ka(a):null;if(!a)throw Error(m(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(e=aa(e.href),t=zu(a).hoistableStyles,u=t.get(e),u||(u={type:"style",instance:null,count:0,state:null},t.set(e,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=aa(e.href);var n=zu(a).hoistableStyles,i=n.get(l);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=a.querySelector(Ia(l)))?n._p||(i.instance=n,i.state.loading=5):(n=Mt.get(l),n||(n={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Mt.set(l,n)),ky(a,l,n,i.state))),t&&u===null)throw Error(m(528,""));return i}if(t&&u!==null)throw Error(m(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(e=na(e),t=zu(a).hoistableScripts,u=t.get(e),u||(u={type:"script",instance:null,count:0,state:null},t.set(e,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(m(444,l))}}function aa(l){return'href="'+Et(l)+'"'}function Ia(l){return'link[rel="stylesheet"]['+l+"]"}function Ur(l){return W({},l,{"data-precedence":l.precedence,precedence:null})}function ky(l,t,e,u){if(t=l.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[yn]!==!0){u.loading=1;return}}else t=l.createElement("link"),t[yn]=!0,t.onload=t.onerror=Xs.bind(null,t),Vl(t,"link",e),Rl(t),l.head.appendChild(t);u.preload=t,t.addEventListener("load",function(){return u.loading|=1}),t.addEventListener("error",function(){return u.loading|=2})}function na(l){return'[src="'+Et(l)+'"]'}function Pa(l){return"script[async]"+l}function Cr(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var u=l.querySelector('style[data-href~="'+Et(e.href)+'"]');if(u)return t.instance=u,Rl(u),u;var a=W({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return u=(l.ownerDocument||l).createElement("style"),Rl(u),Vl(u,"style",a),Oi(u,e.precedence,l),t.instance=u;case"stylesheet":a=aa(e.href);var n=l.querySelector(Ia(a));if(n)return t.state.loading|=4,t.instance=n,Rl(n),n;u=Ur(e),(a=Mt.get(a))&&ds(u,a),n=(l.ownerDocument||l).createElement("link"),Rl(n);var i=n;return i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),Vl(n,"link",u),t.state.loading|=4,Oi(n,e.precedence,l),t.instance=n;case"script":return n=na(e.src),(a=l.querySelector(Pa(n)))?(t.instance=a,Rl(a),a):(u=e,(a=Mt.get(n))&&(u=W({},e),ms(u,a)),l=l.ownerDocument||l,a=l.createElement("script"),Rl(a),Vl(a,"link",u),l.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(m(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(u=t.instance,t.state.loading|=4,Oi(u,e.precedence,l));return t.instance}function Oi(l,t,e){for(var u=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=u.length?u[u.length-1]:null,n=a,i=0;i title"):null)}function Iy(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Hr(l,t){return l==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function jr(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Yr(l){return(l.width||100)*(l.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Br(l,t){typeof t.decode=="function"&&(l.imgCount++,t.complete||(l.imgBytes+=Yr(t),l.suspenseyImages.push(t)),l=th.bind(l),t.decode().then(l,l))}function Py(l,t,e,u){if(e.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=aa(u.href),n=t.querySelector(Ia(a));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=ln.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=n,Rl(n);return}n=t.ownerDocument||t,u=Ur(u),(a=Mt.get(a))&&ds(u,a),n=n.createElement("link"),Rl(n);var i=n;i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),Vl(n,"link",u),e.instance=n}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=ln.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var pi=0;function lh(l,t){return l.stylesheets&&l.count===0&&Di(l,l.stylesheets),0pi?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(u),clearTimeout(a)}}:null}function qr(l){if(l.count===0&&(l.imgCount===0||!l.waitingForImages)){if(l.stylesheets)Di(l,l.stylesheets);else if(l.unsuspend){var t=l.unsuspend;l.unsuspend=null,t()}}}function ln(){this.count--,qr(this)}function th(){this.imgCount--,qr(this)}var Mi=null;function Di(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Mi=new Map,t.forEach(eh,l),Mi=null,ln.call(l))}function eh(l,t){if(!(t.state.loading&4)){var e=Mi.get(l);if(e)var u=e.get(null);else{e=new Map,Mi.set(l,e);for(var a=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(A){console.error(A)}}return b(),zs.exports=Sh(),zs.exports}var Th=bh();const Eh=o0(Th),f0=b=>{let A;const _=new Set,m=(ll,U)=>{const S=typeof ll=="function"?ll(A):ll;if(!Object.is(S,A)){const B=A;A=U??(typeof S!="object"||S===null)?S:Object.assign({},A,S),_.forEach(Z=>Z(A,B))}},p=()=>A,w={setState:m,getState:p,getInitialState:()=>C,subscribe:ll=>(_.add(ll),()=>_.delete(ll))},C=A=b(m,p,w);return w},zh=(b=>b?f0(b):f0),_h=b=>b;function Nh(b,A=_h){const _=Bi.useSyncExternalStore(b.subscribe,Bi.useCallback(()=>A(b.getState()),[b,A]),()=>A(b.getInitialState()));return Bi.useDebugValue(_),_}const s0=b=>{const A=zh(b),_=m=>Nh(A,m);return Object.assign(_,A),_},xh=(b=>b?s0(b):s0),d0=localStorage.getItem("hl_theme")||"catppuccin",Oh=localStorage.getItem("hl_route_mode")||"auto";typeof document<"u"&&document.documentElement.setAttribute("data-theme",d0);const sa=xh((b,A)=>({theme:d0,routeMode:Oh,showAgyModal:!1,showCmdPalette:!1,toast:"",actionLoading:!1,telemetry:{mini:{chip:"Apple M6 (12核)",ip:"192.168.31.164",tailscale_ip:"100.108.205.40",cpu_pct:6.5,load_1m:.85,mem_used_gb:11.8,mem_total_gb:24,mem_pct:49.2,disk_used_gb:59.9,disk_total_gb:460.4,disk_pct:13,uptime:"运行中",agy_tmux:!0},nas:{ip:"192.168.31.185",online:!0,mounted:!0,total_tb:19.94,used_tb:3.36,free_tb:16.58,pct:16.8,latest_backup:"11-06 23:17"},network:{home_wan_ip:"124.90.142.21",ai_policy:"Ai平台 → 狮城节点",sg_node:"233boy-sea",sg_egress_ip:"104.43.105.243",sg_delay_ms:68},services:{agy:!0,vaultwarden:!0,nas:!0,clash:!0,router:!0,uptime:!0}},setTheme:_=>{localStorage.setItem("hl_theme",_),document.documentElement.setAttribute("data-theme",_),b({theme:_})},setRouteMode:_=>{localStorage.setItem("hl_route_mode",_),b({routeMode:_})},setShowAgyModal:_=>b({showAgyModal:_}),setShowCmdPalette:_=>b({showCmdPalette:_}),showToast:_=>{b({toast:_}),setTimeout(()=>{A().toast===_&&b({toast:""})},3e3)},fetchTelemetry:async()=>{try{const _=await fetch("/api/telemetry");if(_.ok){const m=await _.json();b({telemetry:m})}}catch{}},triggerAction:async(_,m)=>{const{showToast:p,fetchTelemetry:q}=A();b({actionLoading:!0}),p(m);try{const w=await(await fetch(`/api/action/${_}`,{method:"POST"})).json();p(w.message||"操作已完成"),await q()}catch{p("请求失败,请稍后重试")}finally{b({actionLoading:!1})}},copyCmd:async(_,m)=>{const{showToast:p}=A();try{await navigator.clipboard.writeText(_),p(`已复制「${m}」: ${_}`)}catch{p(_)}},getEffectiveMode:()=>{const{routeMode:_}=A();if(_!=="auto")return _;const m=window.location.hostname;return m.startsWith("192.168.")||m.startsWith("100.")||m==="localhost"?"lan":m.includes(".home.961504.xyz")||window.location.port==="10443"?"home10443":"edge443"}}));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ah=b=>b.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m0=(...b)=>b.filter((A,_,m)=>!!A&&A.trim()!==""&&m.indexOf(A)===_).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var ph={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mh=at.forwardRef(({color:b="currentColor",size:A=24,strokeWidth:_=2,absoluteStrokeWidth:m,className:p="",children:q,iconNode:nl,...w},C)=>at.createElement("svg",{ref:C,...ph,width:A,height:A,stroke:b,strokeWidth:m?Number(_)*24/Number(A):_,className:m0("lucide",p),...w},[...nl.map(([ll,U])=>at.createElement(ll,U)),...Array.isArray(q)?q:[q]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=(b,A)=>{const _=at.forwardRef(({className:m,...p},q)=>at.createElement(Mh,{ref:q,iconNode:A,className:m0(`lucide-${Ah(b)}`,m),...p}));return _.displayName=`${b}`,_};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dh=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],v0=r0("Search",Dh);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Uh=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Ch=r0("Terminal",Uh),Rh=[{id:"zinc-dark",label:"深色极客",dot:"#18181b"},{id:"zinc-light",label:"浅色纯净",dot:"#f8fafc"},{id:"catppuccin",label:"Catppuccin",dot:"#cba6f7"},{id:"nord",label:"Nord",dot:"#88c0d0"}],Hh=[{id:"auto",label:"智能路由"},{id:"edge443",label:"443 免端口"},{id:"home10443",label:"10443 家宽"},{id:"lan",label:"LAN 局域网"}],jh=()=>{const{theme:b,routeMode:A,telemetry:_,setTheme:m,setRouteMode:p,setShowAgyModal:q,setShowCmdPalette:nl}=sa();return z.jsx("header",{className:"border-b hl-border sticky top-0 z-30 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--bg-page) 86%, transparent)"},children:z.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 flex flex-wrap items-center justify-between gap-3",children:[z.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:gap-3",children:[z.jsxs("div",{className:"flex items-center gap-2.5 pr-1",children:[z.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/apple.png",alt:"Mac mini",className:"w-6 h-6 rounded"}),z.jsx("span",{className:"font-semibold text-sm tracking-tight",children:"HomeLab"}),z.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"},title:"全屋 4 节点在线"})]}),z.jsxs("div",{className:"hidden xl:flex items-center gap-2 text-xs font-mono-num",children:[z.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",title:"Apple M6 12核处理器负载",children:[z.jsx("span",{style:{color:"var(--text-muted)"},children:"M6 CPU"}),z.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:z.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,_.mini.cpu_pct)}%`}})}),z.jsxs("span",{className:"font-medium",children:[_.mini.cpu_pct,"%"]})]}),z.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",title:"Mac mini 24GB 统一内存",children:[z.jsx("span",{style:{color:"var(--text-muted)"},children:"RAM"}),z.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:z.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,_.mini.mem_pct)}%`}})}),z.jsxs("span",{className:"font-medium",children:[_.mini.mem_used_gb,"G"]})]}),z.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",title:"极空间 Z4 20TB 存储阵列",children:[z.jsx("span",{style:{color:"var(--text-muted)"},children:"NAS 余量"}),z.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:z.jsx("div",{className:"h-full hl-bar-fill-green",style:{width:`${Math.max(5,_.nas.pct)}%`}})}),z.jsxs("span",{className:"font-medium",style:{color:"var(--success)"},children:[_.nas.free_tb," TB"]})]}),z.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-1.5",title:"AGY 锁定新加坡 Azure 专线出口",children:[z.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:"var(--success)"}}),z.jsx("span",{style:{color:"var(--text-muted)"},children:"SG 专线"}),z.jsx("span",{className:"font-medium",children:_.network.sg_delay_ms>0?`${_.network.sg_delay_ms}ms`:"直连"})]})]})]}),z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsxs("button",{onClick:()=>nl(!0),className:"hl-btn-outline px-2.5 py-1 text-xs flex items-center gap-3 cursor-pointer",title:"按 Cmd+K 唤起全局命令面板",children:[z.jsxs("span",{className:"flex items-center gap-1.5",style:{color:"var(--text-muted)"},children:[z.jsx(v0,{className:"w-3.5 h-3.5"}),z.jsx("span",{className:"hidden sm:inline",children:"搜索或执行指令..."})]}),z.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted",style:{color:"var(--text-muted)"},children:"⌘K"})]}),z.jsx("div",{className:"hidden md:flex items-center p-0.5 rounded-lg hl-muted border hl-border text-xs",children:Hh.map(w=>z.jsx("button",{onClick:()=>p(w.id),className:"px-2 py-1 rounded-md font-medium transition-all cursor-pointer",style:A===w.id?{backgroundColor:"var(--bg-card)",color:"var(--text-main)",boxShadow:"0 1px 2px rgba(0,0,0,0.08)"}:{color:"var(--text-muted)"},children:w.label},w.id))}),z.jsx("div",{className:"flex items-center p-0.5 rounded-lg hl-muted border hl-border text-xs",children:Rh.map(w=>z.jsxs("button",{onClick:()=>m(w.id),className:"px-2 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 cursor-pointer",style:b===w.id?{backgroundColor:"var(--bg-card)",color:"var(--text-main)",boxShadow:"0 1px 2px rgba(0,0,0,0.08)"}:{color:"var(--text-muted)"},title:w.label,children:[z.jsx("span",{className:"w-2 h-2 rounded-full border border-black/10",style:{backgroundColor:w.dot}}),z.jsx("span",{className:"hidden lg:inline",children:w.label})]},w.id))}),z.jsxs("button",{onClick:()=>q(!0),className:"hl-btn-primary px-3 py-1.5 text-xs flex items-center gap-1.5 cursor-pointer",children:[z.jsx(Ch,{className:"w-3.5 h-3.5"}),z.jsx("span",{children:"AGY 终端"})]})]})]})})},Yh=({card:b})=>{const{getEffectiveMode:A,setShowAgyModal:_,triggerAction:m}=sa(),p=A(),q=p==="lan"?b.lanUrl:p==="home10443"?b.homeUrl:b.edgeUrl,nl=p==="lan"?"LAN 直连":p==="home10443"?"10443":"443 免端口";return z.jsxs("a",{href:q,target:"_blank",rel:"noopener noreferrer",className:"hl-card hl-card-interactive flex flex-col justify-between overflow-hidden group cursor-pointer",children:[z.jsxs("div",{className:"p-4 sm:p-5 space-y-3",children:[z.jsxs("div",{className:"flex items-start justify-between gap-3",children:[z.jsxs("div",{className:"flex items-center gap-3.5 min-w-0",children:[z.jsx("div",{className:"w-10 h-10 rounded-xl hl-muted border hl-border p-1.5 flex items-center justify-center shrink-0",children:z.jsx("img",{src:b.iconUrl,alt:b.title,className:"w-full h-full object-contain"})}),z.jsxs("div",{className:"min-w-0",children:[z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("h3",{className:"text-sm font-semibold truncate group-hover:underline",children:b.title}),z.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:b.online!==!1?"var(--success)":"#ef4444"}})]}),z.jsx("p",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--text-muted)"},children:b.subtitle})]})]}),b.actionType==="drawer"?z.jsx("button",{onClick:w=>{w.preventDefault(),_(!0)},className:"px-2 py-1 rounded-md text-[11px] font-medium shrink-0 transition-opacity hover:opacity-80 cursor-pointer",style:{backgroundColor:"var(--accent-soft)",color:"var(--accent)"},children:"页内终端"}):b.actionType==="backup"?z.jsx("button",{onClick:w=>{w.preventDefault(),m("backup_nas","正在打包备份至极空间 Z4...")},className:"px-2 py-1 rounded-md text-[11px] font-medium shrink-0 transition-opacity hover:opacity-80 cursor-pointer",style:{backgroundColor:"var(--success-soft)",color:"var(--success)"},children:"立即备份"}):z.jsx("span",{className:"text-xs font-mono-num px-2 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:nl})]}),z.jsx("p",{className:"text-xs leading-relaxed line-clamp-2",style:{color:"var(--text-muted)"},children:b.desc})]}),z.jsx("div",{className:"hl-widget-footer grid grid-cols-3 divide-x hl-border text-center",children:b.stats.map((w,C)=>z.jsxs("div",{className:"py-2.5 px-2 flex flex-col items-center justify-center",children:[z.jsx("span",{className:"text-[10px] uppercase tracking-wider truncate max-w-full",style:{color:"var(--text-subtle)"},children:w.label}),z.jsx("span",{className:"text-xs font-semibold font-mono-num mt-0.5 truncate max-w-full",style:{color:w.highlight?"var(--success)":"var(--text-main)"},children:w.value})]},C))})]})},Bh=[{label:"SSH 连接 Mac mini",cmd:"ssh mini"},{label:"终端接力 AGY 会话",cmd:'ssh mini -t "tmux attach -t agy"'},{label:"SSH 连接新加坡 Azure",cmd:"ssh azure"},{label:"SSH 连接小米主路由",cmd:"ssh root@192.168.31.1"}],qh=()=>{const{copyCmd:b,triggerAction:A}=sa();return z.jsxs("section",{className:"space-y-3 pt-1",children:[z.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"终端快捷指令与备用直连书签"}),z.jsx("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:"· 点击指令即复制"})]}),z.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[z.jsx("button",{onClick:()=>A("refresh_ddns","正在同步 Cloudflare DDNS..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"刷新 DDNS 解析"}),z.jsx("button",{onClick:()=>A("mount_nas","正在巡检极空间 20TB SMB 挂载..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"巡检极空间挂载"})]})]}),z.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Bh.map(_=>z.jsxs("button",{onClick:()=>b(_.cmd,_.label),className:"hl-card hl-card-interactive px-4 py-3 text-left flex items-center justify-between gap-2 cursor-pointer",children:[z.jsxs("div",{className:"min-w-0",children:[z.jsx("div",{className:"text-xs font-semibold",children:_.label}),z.jsx("div",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--accent)"},children:_.cmd})]}),z.jsx("span",{className:"text-[10px] font-mono-num px-1.5 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:"COPY"})]},_.cmd))})]})},Gh=()=>{const{showCmdPalette:b,setShowCmdPalette:A,setShowAgyModal:_,setTheme:m,triggerAction:p,copyCmd:q,getEffectiveMode:nl}=sa(),[w,C]=at.useState(""),ll=at.useRef(null);at.useEffect(()=>{b&&(C(""),setTimeout(()=>{var Z;return(Z=ll.current)==null?void 0:Z.focus()},20))},[b]);const U=at.useMemo(()=>{const Z=nl(),El=(wl,vl,kl)=>Z==="lan"?kl:Z==="home10443"?vl:wl;return[{id:"open-agy-drawer",title:"在页内唤起 AGY 云端终端",hint:"tmux attach -t agy",type:"终端",run:()=>_(!0)},{id:"open-agy",title:"新窗口打开 AGY 云端工作台",hint:"https://agy.961504.xyz",type:"跳转",run:()=>window.open(El("https://agy.961504.xyz","https://agy.home.961504.xyz:10443","http://192.168.31.164:7681"),"_blank")},{id:"open-z4",title:"打开 极空间 Z4 私有云 (20TB)",hint:"192.168.31.185:5055",type:"跳转",run:()=>window.open(El("https://z4.home.961504.xyz:10443","https://z4.home.961504.xyz:10443","http://192.168.31.185:5055"),"_blank")},{id:"open-vw",title:"打开 Vaultwarden 密码保险箱",hint:"https://vw.961504.xyz",type:"跳转",run:()=>window.open(El("https://vw.961504.xyz","https://vw.home.961504.xyz:10443","http://192.168.31.164:8222"),"_blank")},{id:"open-clash",title:"打开 Mihomo 路由分流面板",hint:"192.168.31.1:9999",type:"跳转",run:()=>window.open(El("https://clash.home.961504.xyz:10443/ui/","https://clash.home.961504.xyz:10443/ui/","http://192.168.31.1:9999/ui/"),"_blank")},{id:"act-backup",title:"立即打包备份核心数据至极空间 Z4",hint:"backup-to-nas.sh",type:"运维",run:()=>p("backup_nas","正在打包备份至极空间 Z4...")},{id:"act-ddns",title:"立即刷新 Cloudflare DDNS 解析",hint:"cloudflare-ddns.sh",type:"运维",run:()=>p("refresh_ddns","正在同步 Cloudflare DDNS...")},{id:"ssh-mini",title:"复制 SSH 连接 Mac mini 指令",hint:"ssh mini",type:"SSH",run:()=>q("ssh mini","SSH Mac mini")},{id:"ssh-agy",title:"复制 终端接力 AGY 会话指令",hint:'ssh mini -t "tmux attach -t agy"',type:"SSH",run:()=>q('ssh mini -t "tmux attach -t agy"',"接力 AGY")},{id:"theme-light",title:"切换主题: 浅色纯净 (Shadcn Light)",hint:"zinc-light",type:"主题",run:()=>m("zinc-light")},{id:"theme-dark",title:"切换主题: 深色极客 (Shadcn Dark)",hint:"zinc-dark",type:"主题",run:()=>m("zinc-dark")},{id:"theme-cat",title:"切换主题: Catppuccin Mocha",hint:"catppuccin",type:"主题",run:()=>m("catppuccin")},{id:"theme-nord",title:"切换主题: Nord 极地霜蓝",hint:"nord",type:"主题",run:()=>m("nord")}]},[nl,_,m,p,q]),S=at.useMemo(()=>{const Z=w.trim().toLowerCase();return Z?U.filter(El=>El.title.toLowerCase().includes(Z)||El.hint.toLowerCase().includes(Z)):U},[w,U]);if(!b)return null;const B=Z=>{A(!1),Z.run()};return z.jsx("div",{onClick:Z=>{Z.target===Z.currentTarget&&A(!1)},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm flex items-start justify-center pt-20 px-4",children:z.jsxs("div",{className:"w-full max-w-xl hl-card overflow-hidden shadow-2xl",children:[z.jsxs("div",{className:"px-4 py-3 border-b hl-border flex items-center gap-3",children:[z.jsx(v0,{className:"w-4 h-4",style:{color:"var(--text-muted)"}}),z.jsx("input",{ref:ll,value:w,onChange:Z=>C(Z.target.value),type:"text",placeholder:"输入服务名称、SSH 指令、路由模式或主题...",className:"w-full bg-transparent text-sm outline-none",onKeyDown:Z=>{Z.key==="Escape"&&A(!1),Z.key==="Enter"&&S.length>0&&B(S[0])}}),z.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted",style:{color:"var(--text-muted)"},children:"ESC"})]}),z.jsxs("div",{className:"max-h-80 overflow-y-auto p-2 text-xs",children:[z.jsx("div",{className:"px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider",style:{color:"var(--text-subtle)"},children:"快速操作与服务直达"}),S.map(Z=>z.jsxs("button",{onClick:()=>B(Z),className:"w-full px-3 py-2 rounded-lg text-left flex items-center justify-between transition-colors cursor-pointer",onMouseEnter:El=>{El.currentTarget.style.backgroundColor="var(--bg-muted)"},onMouseLeave:El=>{El.currentTarget.style.backgroundColor="transparent"},children:[z.jsxs("div",{className:"flex items-center gap-2.5",children:[z.jsx("span",{className:"font-medium",children:Z.title}),z.jsx("span",{className:"font-mono-num text-[11px]",style:{color:"var(--text-muted)"},children:Z.hint})]}),z.jsx("span",{className:"text-[10px] font-mono-num px-1.5 py-0.5 rounded hl-muted",style:{color:"var(--text-muted)"},children:Z.type})]},Z.id))]})]})})},Qh=()=>{const{showAgyModal:b,setShowAgyModal:A,getEffectiveMode:_}=sa();if(!b)return null;const m=_(),p=m==="lan"?"http://192.168.31.164:7681":m==="home10443"?"https://agy.home.961504.xyz:10443":"https://agy.961504.xyz";return z.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-3 sm:p-6",children:z.jsxs("div",{className:"w-full h-full max-w-6xl hl-card flex flex-col overflow-hidden shadow-2xl",children:[z.jsxs("div",{className:"px-4 py-2.5 border-b hl-border flex items-center justify-between hl-muted",children:[z.jsxs("div",{className:"flex items-center gap-2.5",children:[z.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",alt:"AGY",className:"w-4 h-4"}),z.jsx("span",{className:"text-xs font-mono-num font-medium",children:"AGY 云端工作台 · tmux 持久会话 (关窗不断连)"})]}),z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"hl-btn-outline px-2.5 py-1 text-xs font-mono-num",children:"新标签页全屏 ↗"}),z.jsx("button",{onClick:()=>A(!1),className:"hl-btn-primary px-3 py-1 text-xs cursor-pointer",children:"收起终端"})]})]}),z.jsx("iframe",{src:p,title:"AGY Cloud Workbench",className:"w-full flex-1 bg-black border-0"})]})})},Xh=()=>{const{telemetry:b,toast:A,fetchTelemetry:_,setShowCmdPalette:m,getEffectiveMode:p,routeMode:q}=sa();at.useEffect(()=>{_();const C=setInterval(_,3e3),ll=U=>{(U.metaKey||U.ctrlKey)&&U.key.toLowerCase()==="k"&&(U.preventDefault(),m(!0))};return window.addEventListener("keydown",ll),()=>{clearInterval(C),window.removeEventListener("keydown",ll)}},[_,m]);const nl=at.useMemo(()=>{const C=p();return C==="lan"?"LAN 局域网极速直连 (192.168.31.x)":C==="home10443"?"10443 家宽公网 HTTPS 直连":"443 免端口 HTTPS 直达 (*.961504.xyz)"},[p,q]),w=at.useMemo(()=>{const C=b;return[{title:"核心工作台与私有云存储",subtitle:"Core Workbench & Storage",showRouteHint:!0,items:[{id:"agy",title:"AGY 云端工作台",subtitle:"agy.961504.xyz · ttyd + tmux",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",online:C.services.agy,actionType:"drawer",desc:"M6 Mac mini 上的 24 小时常驻 AI 编程终端,已同步 Google 登录态并锁定新加坡出口,关掉网页后台继续运行。",edgeUrl:"https://agy.961504.xyz",homeUrl:"https://agy.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:7681",stats:[{label:"M6 CPU 负载",value:`${C.mini.cpu_pct}%`},{label:"已用内存",value:`${C.mini.mem_used_gb} / 24 GB`},{label:"tmux 会话",value:C.mini.agy_tmux?"常驻运行中":"待机",highlight:!0}]},{id:"zspace",title:"极空间 Z4 私有云",subtitle:"192.168.31.185 · 20TB RAID 存储池",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/synology-drive.png",online:C.services.nas,desc:"家庭 20TB 大容量存储中心、极影视蓝光影院与手机相册备份,已自动 SMB 挂载至 Mac mini ~/nas。",edgeUrl:"https://z4.home.961504.xyz:10443",homeUrl:"https://z4.home.961504.xyz:10443",lanUrl:"http://192.168.31.185:5055",stats:[{label:"剩余可用",value:`${C.nas.free_tb} TB`,highlight:!0},{label:"已用容量",value:`${C.nas.used_tb} TB (${C.nas.pct}%)`},{label:"SMB 挂载",value:C.nas.mounted?"~/nas 已挂载":"重连中"}]},{id:"vaultwarden",title:"Vaultwarden 密码保险箱",subtitle:"vw.961504.xyz · Bitwarden 兼容",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/vaultwarden.png",online:C.services.vaultwarden,actionType:"backup",desc:"自托管全平台加密密码库,支持 iOS / Android / 浏览器插件自动填充,每天凌晨 03:30 自动打包灾备至极空间。",edgeUrl:"https://vw.961504.xyz",homeUrl:"https://vw.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:8222",stats:[{label:"容器状态",value:"Healthy",highlight:!0},{label:"最近极空间灾备",value:C.nas.latest_backup},{label:"Mac SSD 占用",value:`${C.mini.disk_pct}%`}]}]},{title:"网络网关、AI 专线与外部哨兵",subtitle:"Network Gateway & Cloud Edge",showRouteHint:!1,items:[{id:"clash",title:"Mihomo 路由分流面板",subtitle:"192.168.31.1:9999 · ShellCrash",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/clash.png",online:C.services.clash,desc:"小米主路由器透明网关控制台,实时监控全屋设备流量、分流规则与狮城 AI 算力专线锁定状态。",edgeUrl:"https://clash.home.961504.xyz:10443/ui/",homeUrl:"https://clash.home.961504.xyz:10443/ui/",lanUrl:"http://192.168.31.1:9999/ui/",stats:[{label:"AI 锁定策略",value:"狮城节点",highlight:!0},{label:"新加坡延迟",value:C.network.sg_delay_ms>0?`${C.network.sg_delay_ms} ms`:"直连"},{label:"固定出口 IP",value:C.network.sg_egress_ip}]},{id:"router",title:"小米主路由器后台",subtitle:"192.168.31.1 · PPPoE 公网网关",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/openwrt.png",online:C.services.router,desc:"管理家庭联通公网宽带拨号、DHCP 静态 IP 绑定、10443 与 41641 端口转发及全屋内网 Split-DNS。",edgeUrl:"https://router.home.961504.xyz:10443",homeUrl:"https://router.home.961504.xyz:10443",lanUrl:"http://192.168.31.1",stats:[{label:"联通公网 IPv4",value:C.network.home_wan_ip,highlight:!0},{label:"泛域名 DDNS",value:"*.home.961504.xyz"},{label:"内网网关",value:"192.168.31.1"}]},{id:"uptime",title:"Uptime Kuma 外部哨兵",subtitle:"status.961504.xyz · SG Azure",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/uptime-kuma.png",online:C.services.uptime,desc:"独立部署在新加坡 Azure 公有云上的 24 小时外部监控哨兵,通过 Tailscale P2P 专线实时探测家庭服务。",edgeUrl:"https://status.961504.xyz",homeUrl:"https://status.961504.xyz",lanUrl:"https://status.961504.xyz",stats:[{label:"云端公网 IP",value:"104.43.105.243"},{label:"Tailscale 专线",value:"100.115.204.51"},{label:"外部探测状态",value:"100% 在线",highlight:!0}]}]}]},[b]);return z.jsxs("div",{className:"min-h-screen flex flex-col",children:[A&&z.jsxs("div",{className:"fixed bottom-5 right-5 z-50 hl-card px-4 py-3 flex items-center gap-2.5 shadow-2xl",children:[z.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"}}),z.jsx("span",{className:"text-xs font-medium",children:A})]}),z.jsx(jh,{}),z.jsxs("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-7",children:[w.map(C=>z.jsxs("section",{className:"space-y-3",children:[z.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[z.jsxs("div",{className:"flex items-center gap-2",children:[z.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:C.title}),z.jsxs("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:["· ",C.subtitle]})]}),C.showRouteHint&&z.jsxs("span",{className:"text-[11px] font-mono-num hidden sm:inline",style:{color:"var(--text-subtle)"},children:["当前路由模式: ",nl]})]}),z.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:C.items.map(ll=>z.jsx(Yh,{card:ll},ll.id))})]},C.title)),z.jsx(qh,{})]}),z.jsx(Gh,{}),z.jsx(Qh,{})]})};Eh.createRoot(document.getElementById("root")).render(z.jsx(Bi.StrictMode,{children:z.jsx(Xh,{})}));