samarthya-bot 1.1.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,149 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&c(p)}).observe(document,{childList:!0,subtree:!0});function u(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(d){if(d.ep)return;d.ep=!0;const h=u(d);fetch(d.href,h)}})();function zm(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var _c={exports:{}},li={};var Rp;function qy(){if(Rp)return li;Rp=1;var l=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function u(c,d,h){var p=null;if(h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),"key"in d){h={};for(var v in d)v!=="key"&&(h[v]=d[v])}else h=d;return d=h.ref,{$$typeof:l,type:c,key:p,ref:d!==void 0?d:null,props:h}}return li.Fragment=o,li.jsx=u,li.jsxs=u,li}var Ap;function Gy(){return Ap||(Ap=1,_c.exports=qy()),_c.exports}var s=Gy(),Oc={exports:{}},se={};var Tp;function Yy(){if(Tp)return se;Tp=1;var l=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),M=Symbol.iterator;function E(S){return S===null||typeof S!="object"?null:(S=M&&S[M]||S["@@iterator"],typeof S=="function"?S:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function Y(S,B,G){this.props=S,this.context=B,this.refs=w,this.updater=G||R}Y.prototype.isReactComponent={},Y.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,B,"setState")},Y.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=Y.prototype;function X(S,B,G){this.props=S,this.context=B,this.refs=w,this.updater=G||R}var le=X.prototype=new I;le.constructor=X,C(le,Y.prototype),le.isPureReactComponent=!0;var ce=Array.isArray;function me(){}var F={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function ke(S,B,G){var V=G.ref;return{$$typeof:l,type:S,key:B,ref:V!==void 0?V:null,props:G}}function it(S,B){return ke(S.type,B,S.props)}function Je(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function Z(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return B[G]})}var de=/\/+/g;function xe(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Z(""+S.key):B.toString(36)}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(me,me):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function D(S,B,G,V,$){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var Re=!1;if(S===null)Re=!0;else switch(oe){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(S.$$typeof){case l:case o:Re=!0;break;case x:return Re=S._init,D(Re(S._payload),B,G,V,$)}}if(Re)return $=$(S),Re=V===""?"."+xe(S,0):V,ce($)?(G="",Re!=null&&(G=Re.replace(de,"$&/")+"/"),D($,B,G,"",function(dl){return dl})):$!=null&&(Je($)&&($=it($,G+($.key==null||S&&S.key===$.key?"":(""+$.key).replace(de,"$&/")+"/")+Re)),B.push($)),1;Re=0;var rt=V===""?".":V+":";if(ce(S))for(var Ze=0;Ze<S.length;Ze++)V=S[Ze],oe=rt+xe(V,Ze),Re+=D(V,B,G,oe,$);else if(Ze=E(S),typeof Ze=="function")for(S=Ze.call(S),Ze=0;!(V=S.next()).done;)V=V.value,oe=rt+xe(V,Ze++),Re+=D(V,B,G,oe,$);else if(oe==="object"){if(typeof S.then=="function")return D(_e(S),B,G,V,$);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Re}function Q(S,B,G){if(S==null)return S;var V=[],$=0;return D(S,V,"","",function(oe){return B.call(G,oe,$++)}),V}function te(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var Ee=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},W={map:Q,forEach:function(S,B,G){Q(S,function(){B.apply(this,arguments)},G)},count:function(S){var B=0;return Q(S,function(){B++}),B},toArray:function(S){return Q(S,function(B){return B})||[]},only:function(S){if(!Je(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return se.Activity=y,se.Children=W,se.Component=Y,se.Fragment=u,se.Profiler=d,se.PureComponent=X,se.StrictMode=c,se.Suspense=b,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,se.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},se.cache=function(S){return function(){return S.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(S,B,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=C({},S.props),$=S.key;if(B!=null)for(oe in B.key!==void 0&&($=""+B.key),B)!we.call(B,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&B.ref===void 0||(V[oe]=B[oe]);var oe=arguments.length-2;if(oe===1)V.children=G;else if(1<oe){for(var Re=Array(oe),rt=0;rt<oe;rt++)Re[rt]=arguments[rt+2];V.children=Re}return ke(S.type,$,V)},se.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},se.createElement=function(S,B,G){var V,$={},oe=null;if(B!=null)for(V in B.key!==void 0&&(oe=""+B.key),B)we.call(B,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&($[V]=B[V]);var Re=arguments.length-2;if(Re===1)$.children=G;else if(1<Re){for(var rt=Array(Re),Ze=0;Ze<Re;Ze++)rt[Ze]=arguments[Ze+2];$.children=rt}if(S&&S.defaultProps)for(V in Re=S.defaultProps,Re)$[V]===void 0&&($[V]=Re[V]);return ke(S,oe,$)},se.createRef=function(){return{current:null}},se.forwardRef=function(S){return{$$typeof:v,render:S}},se.isValidElement=Je,se.lazy=function(S){return{$$typeof:x,_payload:{_status:-1,_result:S},_init:te}},se.memo=function(S,B){return{$$typeof:m,type:S,compare:B===void 0?null:B}},se.startTransition=function(S){var B=F.T,G={};F.T=G;try{var V=S(),$=F.S;$!==null&&$(G,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(me,Ee)}catch(oe){Ee(oe)}finally{B!==null&&G.types!==null&&(B.types=G.types),F.T=B}},se.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},se.use=function(S){return F.H.use(S)},se.useActionState=function(S,B,G){return F.H.useActionState(S,B,G)},se.useCallback=function(S,B){return F.H.useCallback(S,B)},se.useContext=function(S){return F.H.useContext(S)},se.useDebugValue=function(){},se.useDeferredValue=function(S,B){return F.H.useDeferredValue(S,B)},se.useEffect=function(S,B){return F.H.useEffect(S,B)},se.useEffectEvent=function(S){return F.H.useEffectEvent(S)},se.useId=function(){return F.H.useId()},se.useImperativeHandle=function(S,B,G){return F.H.useImperativeHandle(S,B,G)},se.useInsertionEffect=function(S,B){return F.H.useInsertionEffect(S,B)},se.useLayoutEffect=function(S,B){return F.H.useLayoutEffect(S,B)},se.useMemo=function(S,B){return F.H.useMemo(S,B)},se.useOptimistic=function(S,B){return F.H.useOptimistic(S,B)},se.useReducer=function(S,B,G){return F.H.useReducer(S,B,G)},se.useRef=function(S){return F.H.useRef(S)},se.useState=function(S){return F.H.useState(S)},se.useSyncExternalStore=function(S,B,G){return F.H.useSyncExternalStore(S,B,G)},se.useTransition=function(){return F.H.useTransition()},se.version="19.2.4",se}var Cp;function ru(){return Cp||(Cp=1,Oc.exports=Yy()),Oc.exports}var A=ru();const to=zm(A);var Mc={exports:{}},ii={},kc={exports:{}},Dc={};var wp;function Vy(){return wp||(wp=1,(function(l){function o(D,Q){var te=D.length;D.push(Q);e:for(;0<te;){var Ee=te-1>>>1,W=D[Ee];if(0<d(W,Q))D[Ee]=Q,D[te]=W,te=Ee;else break e}}function u(D){return D.length===0?null:D[0]}function c(D){if(D.length===0)return null;var Q=D[0],te=D.pop();if(te!==Q){D[0]=te;e:for(var Ee=0,W=D.length,S=W>>>1;Ee<S;){var B=2*(Ee+1)-1,G=D[B],V=B+1,$=D[V];if(0>d(G,te))V<W&&0>d($,G)?(D[Ee]=$,D[V]=te,Ee=V):(D[Ee]=G,D[B]=te,Ee=B);else if(V<W&&0>d($,te))D[Ee]=$,D[V]=te,Ee=V;else break e}}return Q}function d(D,Q){var te=D.sortIndex-Q.sortIndex;return te!==0?te:D.id-Q.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var p=Date,v=p.now();l.unstable_now=function(){return p.now()-v}}var b=[],m=[],x=1,y=null,M=3,E=!1,R=!1,C=!1,w=!1,Y=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function le(D){for(var Q=u(m);Q!==null;){if(Q.callback===null)c(m);else if(Q.startTime<=D)c(m),Q.sortIndex=Q.expirationTime,o(b,Q);else break;Q=u(m)}}function ce(D){if(C=!1,le(D),!R)if(u(b)!==null)R=!0,me||(me=!0,Z());else{var Q=u(m);Q!==null&&_e(ce,Q.startTime-D)}}var me=!1,F=-1,we=5,ke=-1;function it(){return w?!0:!(l.unstable_now()-ke<we)}function Je(){if(w=!1,me){var D=l.unstable_now();ke=D;var Q=!0;try{e:{R=!1,C&&(C=!1,I(F),F=-1),E=!0;var te=M;try{t:{for(le(D),y=u(b);y!==null&&!(y.expirationTime>D&&it());){var Ee=y.callback;if(typeof Ee=="function"){y.callback=null,M=y.priorityLevel;var W=Ee(y.expirationTime<=D);if(D=l.unstable_now(),typeof W=="function"){y.callback=W,le(D),Q=!0;break t}y===u(b)&&c(b),le(D)}else c(b);y=u(b)}if(y!==null)Q=!0;else{var S=u(m);S!==null&&_e(ce,S.startTime-D),Q=!1}}break e}finally{y=null,M=te,E=!1}Q=void 0}}finally{Q?Z():me=!1}}}var Z;if(typeof X=="function")Z=function(){X(Je)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,xe=de.port2;de.port1.onmessage=Je,Z=function(){xe.postMessage(null)}}else Z=function(){Y(Je,0)};function _e(D,Q){F=Y(function(){D(l.unstable_now())},Q)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return M},l.unstable_next=function(D){switch(M){case 1:case 2:case 3:var Q=3;break;default:Q=M}var te=M;M=Q;try{return D()}finally{M=te}},l.unstable_requestPaint=function(){w=!0},l.unstable_runWithPriority=function(D,Q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=M;M=D;try{return Q()}finally{M=te}},l.unstable_scheduleCallback=function(D,Q,te){var Ee=l.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Ee+te:Ee):te=Ee,D){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=te+W,D={id:x++,callback:Q,priorityLevel:D,startTime:te,expirationTime:W,sortIndex:-1},te>Ee?(D.sortIndex=te,o(m,D),u(b)===null&&D===u(m)&&(C?(I(F),F=-1):C=!0,_e(ce,te-Ee))):(D.sortIndex=W,o(b,D),R||E||(R=!0,me||(me=!0,Z()))),D},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(D){var Q=M;return function(){var te=M;M=Q;try{return D.apply(this,arguments)}finally{M=te}}}})(Dc)),Dc}var _p;function Xy(){return _p||(_p=1,kc.exports=Vy()),kc.exports}var Bc={exports:{}},ft={};var Op;function Qy(){if(Op)return ft;Op=1;var l=ru();function o(b){var m="https://react.dev/errors/"+b;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+b+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var c={d:{f:u,r:function(){throw Error(o(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(b,m,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:b,containerInfo:m,implementation:x}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,m){if(b==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ft.createPortal=function(b,m){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(o(299));return h(b,m,null,x)},ft.flushSync=function(b){var m=p.T,x=c.p;try{if(p.T=null,c.p=2,b)return b()}finally{p.T=m,c.p=x,c.d.f()}},ft.preconnect=function(b,m){typeof b=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,c.d.C(b,m))},ft.prefetchDNS=function(b){typeof b=="string"&&c.d.D(b)},ft.preinit=function(b,m){if(typeof b=="string"&&m&&typeof m.as=="string"){var x=m.as,y=v(x,m.crossOrigin),M=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?c.d.S(b,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:M,fetchPriority:E}):x==="script"&&c.d.X(b,{crossOrigin:y,integrity:M,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ft.preinitModule=function(b,m){if(typeof b=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=v(m.as,m.crossOrigin);c.d.M(b,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&c.d.M(b)},ft.preload=function(b,m){if(typeof b=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,y=v(x,m.crossOrigin);c.d.L(b,x,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ft.preloadModule=function(b,m){if(typeof b=="string")if(m){var x=v(m.as,m.crossOrigin);c.d.m(b,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else c.d.m(b)},ft.requestFormReset=function(b){c.d.r(b)},ft.unstable_batchedUpdates=function(b,m){return b(m)},ft.useFormState=function(b,m,x){return p.H.useFormState(b,m,x)},ft.useFormStatus=function(){return p.H.useHostTransitionStatus()},ft.version="19.2.4",ft}var Mp;function Zy(){if(Mp)return Bc.exports;Mp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),Bc.exports=Qy(),Bc.exports}var kp;function Wy(){if(kp)return ii;kp=1;var l=Xy(),o=ru(),u=Zy();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(c(188))}function m(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var r=i.alternate;if(r===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===a)return b(i),e;if(r===n)return b(i),t;r=r.sibling}throw Error(c(188))}if(a.return!==n.return)a=i,n=r;else{for(var f=!1,g=i.child;g;){if(g===a){f=!0,a=i,n=r;break}if(g===n){f=!0,n=i,a=r;break}g=g.sibling}if(!f){for(g=r.child;g;){if(g===a){f=!0,a=r,n=i;break}if(g===n){f=!0,n=r,a=i;break}g=g.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,M=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),X=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),ke=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function xe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case Y:return"Profiler";case w:return"StrictMode";case ce:return"Suspense";case me:return"SuspenseList";case ke:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case X:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:xe(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var _e=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Ee=[],W=-1;function S(e){return{current:e}}function B(e){0>W||(e.current=Ee[W],Ee[W]=null,W--)}function G(e,t){W++,Ee[W]=e.current,e.current=t}var V=S(null),$=S(null),oe=S(null),Re=S(null);function rt(e,t){switch(G(oe,t),G($,e),G(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fh(t),e=Kh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(V),G(V,e)}function Ze(){B(V),B($),B(oe)}function dl(e){e.memoizedState!==null&&G(Re,e);var t=V.current,a=Kh(t,e.type);t!==a&&(G($,e),G(V,a))}function Si(e){$.current===e&&(B(V),B($)),Re.current===e&&(B(Re),ei._currentValue=te)}var fo,zu;function Ja(e){if(fo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);fo=t&&t[1]||"",zu=-1<a.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+fo+e+zu}var ho=!1;function po(e,t){if(!e||ho)return"";ho=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(H){var k=H}Reflect.construct(e,[],q)}else{try{q.call()}catch(H){k=H}e.call(q.prototype)}}else{try{throw Error()}catch(H){k=H}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(H){if(H&&k&&typeof H.stack=="string")return[H.stack,k.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),f=r[0],g=r[1];if(f&&g){var j=f.split(`
4
+ `),O=g.split(`
5
+ `);for(i=n=0;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(n===j.length||i===O.length)for(n=j.length-1,i=O.length-1;1<=n&&0<=i&&j[n]!==O[i];)i--;for(;1<=n&&0<=i;n--,i--)if(j[n]!==O[i]){if(n!==1||i!==1)do if(n--,i--,0>i||j[n]!==O[i]){var U=`
6
+ `+j[n].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=n&&0<=i);break}}}finally{ho=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ja(a):""}function y0(e,t){switch(e.tag){case 26:case 27:case 5:return Ja(e.type);case 16:return Ja("Lazy");case 13:return e.child!==t&&t!==null?Ja("Suspense Fallback"):Ja("Suspense");case 19:return Ja("SuspenseList");case 0:case 15:return po(e.type,!1);case 11:return po(e.type.render,!1);case 1:return po(e.type,!0);case 31:return Ja("Activity");default:return""}}function Eu(e){try{var t="",a=null;do t+=y0(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var mo=Object.prototype.hasOwnProperty,go=l.unstable_scheduleCallback,yo=l.unstable_cancelCallback,x0=l.unstable_shouldYield,v0=l.unstable_requestPaint,Et=l.unstable_now,b0=l.unstable_getCurrentPriorityLevel,Ru=l.unstable_ImmediatePriority,Au=l.unstable_UserBlockingPriority,ji=l.unstable_NormalPriority,S0=l.unstable_LowPriority,Tu=l.unstable_IdlePriority,j0=l.log,z0=l.unstable_setDisableYieldValue,fl=null,Rt=null;function Ra(e){if(typeof j0=="function"&&z0(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(fl,e)}catch{}}var At=Math.clz32?Math.clz32:A0,E0=Math.log,R0=Math.LN2;function A0(e){return e>>>=0,e===0?32:31-(E0(e)/R0|0)|0}var zi=256,Ei=262144,Ri=4194304;function $a(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ai(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var g=n&134217727;return g!==0?(n=g&~r,n!==0?i=$a(n):(f&=g,f!==0?i=$a(f):a||(a=g&~e,a!==0&&(i=$a(a))))):(g=n&~r,g!==0?i=$a(g):f!==0?i=$a(f):a||(a=n&~e,a!==0&&(i=$a(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function hl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function T0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cu(){var e=Ri;return Ri<<=1,(Ri&62914560)===0&&(Ri=4194304),e}function xo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function C0(e,t,a,n,i,r){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,j=e.expirationTimes,O=e.hiddenUpdates;for(a=f&~a;0<a;){var U=31-At(a),q=1<<U;g[U]=0,j[U]=-1;var k=O[U];if(k!==null)for(O[U]=null,U=0;U<k.length;U++){var H=k[U];H!==null&&(H.lane&=-536870913)}a&=~q}n!==0&&wu(e,n,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(f&~t))}function wu(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-At(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function _u(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-At(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function Ou(e,t){var a=t&-t;return a=(a&42)!==0?1:vo(a),(a&(e.suspendedLanes|t))!==0?0:a}function vo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Mu(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:xp(e.type))}function ku(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var Aa=Math.random().toString(36).slice(2),ot="__reactFiber$"+Aa,mt="__reactProps$"+Aa,bn="__reactContainer$"+Aa,So="__reactEvents$"+Aa,w0="__reactListeners$"+Aa,_0="__reactHandles$"+Aa,Du="__reactResources$"+Aa,ml="__reactMarker$"+Aa;function jo(e){delete e[ot],delete e[mt],delete e[So],delete e[w0],delete e[_0]}function Sn(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[bn]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ap(e);e!==null;){if(a=e[ot])return a;e=ap(e)}return t}e=a,a=e.parentNode}return null}function jn(e){if(e=e[ot]||e[bn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function zn(e){var t=e[Du];return t||(t=e[Du]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[ml]=!0}var Bu=new Set,Nu={};function Ia(e,t){En(e,t),En(e+"Capture",t)}function En(e,t){for(Nu[e]=t,e=0;e<t.length;e++)Bu.add(t[e])}var O0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hu={},Uu={};function M0(e){return mo.call(Uu,e)?!0:mo.call(Hu,e)?!1:O0.test(e)?Uu[e]=!0:(Hu[e]=!0,!1)}function Ti(e,t,a){if(M0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ci(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ia(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k0(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zo(e){if(!e._valueTracker){var t=Lu(e)?"checked":"value";e._valueTracker=k0(e,t,""+e[t])}}function qu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Lu(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function wi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var D0=/[\n"\\]/g;function Nt(e){return e.replace(D0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Eo(e,t,a,n,i,r,f,g){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Ro(e,f,Bt(t)):a!=null?Ro(e,f,Bt(a)):n!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Bt(g):e.removeAttribute("name")}function Gu(e,t,a,n,i,r,f,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){zo(e);return}a=a!=null?""+Bt(a):"",t=t!=null?""+Bt(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=g?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),zo(e)}function Ro(e,t,a){t==="number"&&wi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Rn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Bt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yu(e,t,a){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Bt(a):""}function Vu(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(_e(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Bt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),zo(e)}function An(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var B0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xu(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||B0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Qu(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Xu(e,i,n)}else for(var r in t)t.hasOwnProperty(r)&&Xu(e,r,t[r])}function Ao(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var N0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),H0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function _i(e){return H0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var To=null;function Co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,Cn=null;function Zu(e){var t=jn(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Eo(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Nt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[mt]||null;if(!i)throw Error(c(90));Eo(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&qu(n)}break e;case"textarea":Yu(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Rn(e,!!a.multiple,t,!1)}}}var wo=!1;function Wu(e,t,a){if(wo)return e(t,a);wo=!0;try{var n=e(t);return n}finally{if(wo=!1,(Tn!==null||Cn!==null)&&(yr(),Tn&&(t=Tn,e=Cn,Cn=Tn=null,Zu(t),e)))for(t=0;t<e.length;t++)Zu(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[mt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=!1;if(oa)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){_o=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{_o=!1}var Ta=null,Oo=null,Oi=null;function Fu(){if(Oi)return Oi;var e,t=Oo,a=t.length,n,i="value"in Ta?Ta.value:Ta.textContent,r=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===i[r-n];n++);return Oi=i.slice(e,1<n?1-n:void 0)}function Mi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ki(){return!0}function Ku(){return!1}function gt(e){function t(a,n,i,r,f){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ki:Ku,this.isPropagationStopped=Ku,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),t}var Pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=gt(Pa),vl=y({},Pa,{view:0,detail:0}),U0=gt(vl),Mo,ko,bl,Bi=y({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bl&&(bl&&e.type==="mousemove"?(Mo=e.screenX-bl.screenX,ko=e.screenY-bl.screenY):ko=Mo=0,bl=e),Mo)},movementY:function(e){return"movementY"in e?e.movementY:ko}}),Ju=gt(Bi),L0=y({},Bi,{dataTransfer:0}),q0=gt(L0),G0=y({},vl,{relatedTarget:0}),Do=gt(G0),Y0=y({},Pa,{animationName:0,elapsedTime:0,pseudoElement:0}),V0=gt(Y0),X0=y({},Pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q0=gt(X0),Z0=y({},Pa,{data:0}),$u=gt(Z0),W0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K0[e])?!!t[e]:!1}function Bo(){return J0}var $0=y({},vl,{key:function(e){if(e.key){var t=W0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?F0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return e.type==="keypress"?Mi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I0=gt($0),P0=y({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Iu=gt(P0),eg=y({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo}),tg=gt(eg),ag=y({},Pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ng=gt(ag),lg=y({},Bi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ig=gt(lg),rg=y({},Pa,{newState:0,oldState:0}),og=gt(rg),sg=[9,13,27,32],No=oa&&"CompositionEvent"in window,Sl=null;oa&&"documentMode"in document&&(Sl=document.documentMode);var cg=oa&&"TextEvent"in window&&!Sl,Pu=oa&&(!No||Sl&&8<Sl&&11>=Sl),ed=" ",td=!1;function ad(e,t){switch(e){case"keyup":return sg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function ug(e,t){switch(e){case"compositionend":return nd(t);case"keypress":return t.which!==32?null:(td=!0,ed);case"textInput":return e=t.data,e===ed&&td?null:e;default:return null}}function dg(e,t){if(wn)return e==="compositionend"||!No&&ad(e,t)?(e=Fu(),Oi=Oo=Ta=null,wn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pu&&t.locale!=="ko"?null:t.data;default:return null}}var fg={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fg[e.type]:t==="textarea"}function id(e,t,a,n){Tn?Cn?Cn.push(n):Cn=[n]:Tn=n,t=Er(t,"onChange"),0<t.length&&(a=new Di("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var jl=null,zl=null;function hg(e){Yh(e,0)}function Ni(e){var t=gl(e);if(qu(t))return e}function rd(e,t){if(e==="change")return t}var od=!1;if(oa){var Ho;if(oa){var Uo="oninput"in document;if(!Uo){var sd=document.createElement("div");sd.setAttribute("oninput","return;"),Uo=typeof sd.oninput=="function"}Ho=Uo}else Ho=!1;od=Ho&&(!document.documentMode||9<document.documentMode)}function cd(){jl&&(jl.detachEvent("onpropertychange",ud),zl=jl=null)}function ud(e){if(e.propertyName==="value"&&Ni(zl)){var t=[];id(t,zl,e,Co(e)),Wu(hg,t)}}function pg(e,t,a){e==="focusin"?(cd(),jl=t,zl=a,jl.attachEvent("onpropertychange",ud)):e==="focusout"&&cd()}function mg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(zl)}function gg(e,t){if(e==="click")return Ni(t)}function yg(e,t){if(e==="input"||e==="change")return Ni(t)}function xg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:xg;function El(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!mo.call(t,i)||!Tt(e[i],t[i]))return!1}return!0}function dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fd(e,t){var a=dd(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=dd(a)}}function hd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=wi(e.document)}return t}function Lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vg=oa&&"documentMode"in document&&11>=document.documentMode,_n=null,qo=null,Rl=null,Go=!1;function md(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Go||_n==null||_n!==wi(n)||(n=_n,"selectionStart"in n&&Lo(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Rl&&El(Rl,n)||(Rl=n,n=Er(qo,"onSelect"),0<n.length&&(t=new Di("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=_n)))}function en(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var On={animationend:en("Animation","AnimationEnd"),animationiteration:en("Animation","AnimationIteration"),animationstart:en("Animation","AnimationStart"),transitionrun:en("Transition","TransitionRun"),transitionstart:en("Transition","TransitionStart"),transitioncancel:en("Transition","TransitionCancel"),transitionend:en("Transition","TransitionEnd")},Yo={},gd={};oa&&(gd=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function tn(e){if(Yo[e])return Yo[e];if(!On[e])return e;var t=On[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in gd)return Yo[e]=t[a];return e}var yd=tn("animationend"),xd=tn("animationiteration"),vd=tn("animationstart"),bg=tn("transitionrun"),Sg=tn("transitionstart"),jg=tn("transitioncancel"),bd=tn("transitionend"),Sd=new Map,Vo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vo.push("scrollEnd");function Zt(e,t){Sd.set(e,t),Ia(t,[e])}var Hi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],Mn=0,Xo=0;function Ui(){for(var e=Mn,t=Xo=Mn=0;t<e;){var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var i=Ht[t];Ht[t++]=null;var r=Ht[t];if(Ht[t++]=null,n!==null&&i!==null){var f=n.pending;f===null?i.next=i:(i.next=f.next,f.next=i),n.pending=i}r!==0&&jd(a,i,r)}}function Li(e,t,a,n){Ht[Mn++]=e,Ht[Mn++]=t,Ht[Mn++]=a,Ht[Mn++]=n,Xo|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Qo(e,t,a,n){return Li(e,t,a,n),qi(e)}function an(e,t){return Li(e,null,null,t),qi(e)}function jd(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-At(a),e=r.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),r):null}function qi(e){if(50<Wl)throw Wl=0,ec=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var kn={};function zg(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,n){return new zg(e,t,a,n)}function Zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sa(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zd(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gi(e,t,a,n,i,r){var f=0;if(n=e,typeof e=="function")Zo(e)&&(f=1);else if(typeof e=="string")f=Cy(e,a,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ke:return e=Ct(31,a,t,i),e.elementType=ke,e.lanes=r,e;case C:return nn(a.children,i,r,t);case w:f=8,i|=24;break;case Y:return e=Ct(12,a,t,i|2),e.elementType=Y,e.lanes=r,e;case ce:return e=Ct(13,a,t,i),e.elementType=ce,e.lanes=r,e;case me:return e=Ct(19,a,t,i),e.elementType=me,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:f=10;break e;case I:f=9;break e;case le:f=11;break e;case F:f=14;break e;case we:f=16,n=null;break e}f=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=Ct(f,a,t,i),t.elementType=e,t.type=n,t.lanes=r,t}function nn(e,t,a,n){return e=Ct(7,e,n,t),e.lanes=a,e}function Wo(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function Ed(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Fo(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rd=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var a=Rd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Eu(t)},Rd.set(e,t),t)}return{value:e,source:t,stack:Eu(t)}}var Dn=[],Bn=0,Yi=null,Al=0,Lt=[],qt=0,Ca=null,It=1,Pt="";function ca(e,t){Dn[Bn++]=Al,Dn[Bn++]=Yi,Yi=e,Al=t}function Ad(e,t,a){Lt[qt++]=It,Lt[qt++]=Pt,Lt[qt++]=Ca,Ca=e;var n=It;e=Pt;var i=32-At(n)-1;n&=~(1<<i),a+=1;var r=32-At(t)+i;if(30<r){var f=i-i%5;r=(n&(1<<f)-1).toString(32),n>>=f,i-=f,It=1<<32-At(t)+i|a<<i|n,Pt=r+e}else It=1<<r|a<<i|n,Pt=e}function Ko(e){e.return!==null&&(ca(e,1),Ad(e,1,0))}function Jo(e){for(;e===Yi;)Yi=Dn[--Bn],Dn[Bn]=null,Al=Dn[--Bn],Dn[Bn]=null;for(;e===Ca;)Ca=Lt[--qt],Lt[qt]=null,Pt=Lt[--qt],Lt[qt]=null,It=Lt[--qt],Lt[qt]=null}function Td(e,t){Lt[qt++]=It,Lt[qt++]=Pt,Lt[qt++]=Ca,It=t.id,Pt=t.overflow,Ca=e}var st=null,qe=null,ze=!1,wa=null,Gt=!1,$o=Error(c(519));function _a(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Ut(t,e)),$o}function Cd(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ot]=e,t[mt]=n,a){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(a=0;a<Kl.length;a++)ye(Kl[a],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),Gu(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),Vu(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||Zh(t.textContent,a)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||_a(e,!0)}function wd(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:st=st.return}}function Nn(e){if(e!==st)return!1;if(!ze)return wd(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||mc(e.type,e.memoizedProps)),a=!a),a&&qe&&_a(e),wd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=tp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));qe=tp(e)}else t===27?(t=qe,Xa(e.type)?(e=bc,bc=null,qe=e):qe=t):qe=st?Vt(e.stateNode.nextSibling):null;return!0}function ln(){qe=st=null,ze=!1}function Io(){var e=wa;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),wa=null),e}function Tl(e){wa===null?wa=[e]:wa.push(e)}var Po=S(null),rn=null,ua=null;function Oa(e,t,a){G(Po,t._currentValue),t._currentValue=a}function da(e){e._currentValue=Po.current,B(Po)}function es(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function ts(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var f=i.child;r=r.firstContext;e:for(;r!==null;){var g=r;r=i;for(var j=0;j<t.length;j++)if(g.context===t[j]){r.lanes|=a,g=r.alternate,g!==null&&(g.lanes|=a),es(r.return,a,e),n||(f=null);break e}r=g.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(c(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),es(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Hn(e,t,a,n){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var g=i.type;Tt(i.pendingProps.value,f.value)||(e!==null?e.push(g):e=[g])}}else if(i===Re.current){if(f=i.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}i=i.return}e!==null&&ts(t,e,a,n),t.flags|=262144}function Vi(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function on(e){rn=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return _d(rn,e)}function Xi(e,t){return rn===null&&on(e),_d(e,t)}function _d(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ua===null){if(e===null)throw Error(c(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return a}var Eg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Rg=l.unstable_scheduleCallback,Ag=l.unstable_NormalPriority,$e={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function as(){return{controller:new Eg,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&Rg(Ag,function(){e.controller.abort()})}var wl=null,ns=0,Un=0,Ln=null;function Tg(e,t){if(wl===null){var a=wl=[];ns=0,Un=rc(),Ln={status:"pending",value:void 0,then:function(n){a.push(n)}}}return ns++,t.then(Od,Od),t}function Od(){if(--ns===0&&wl!==null){Ln!==null&&(Ln.status="fulfilled");var e=wl;wl=null,Un=0,Ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Cg(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var Md=D.S;D.S=function(e,t){gh=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Tg(e,t),Md!==null&&Md(e,t)};var sn=S(null);function ls(){var e=sn.current;return e!==null?e:Ue.pooledCache}function Qi(e,t){t===null?G(sn,sn.current):G(sn,t.pool)}function kd(){var e=ls();return e===null?null:{parent:$e._currentValue,pool:e}}var qn=Error(c(460)),is=Error(c(474)),Zi=Error(c(542)),Wi={then:function(){}};function Dd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ra,ra),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hd(e),e}throw un=t,qn}}function cn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(un=a,qn):a}}var un=null;function Nd(){if(un===null)throw Error(c(459));var e=un;return un=null,e}function Hd(e){if(e===qn||e===Zi)throw Error(c(483))}var Gn=null,_l=0;function Fi(e){var t=_l;return _l+=1,Gn===null&&(Gn=[]),Bd(Gn,e,t)}function Ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ki(e,t){throw t.$$typeof===M?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ud(e){function t(T,z){if(e){var _=T.deletions;_===null?(T.deletions=[z],T.flags|=16):_.push(z)}}function a(T,z){if(!e)return null;for(;z!==null;)t(T,z),z=z.sibling;return null}function n(T){for(var z=new Map;T!==null;)T.key!==null?z.set(T.key,T):z.set(T.index,T),T=T.sibling;return z}function i(T,z){return T=sa(T,z),T.index=0,T.sibling=null,T}function r(T,z,_){return T.index=_,e?(_=T.alternate,_!==null?(_=_.index,_<z?(T.flags|=67108866,z):_):(T.flags|=67108866,z)):(T.flags|=1048576,z)}function f(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function g(T,z,_,L){return z===null||z.tag!==6?(z=Wo(_,T.mode,L),z.return=T,z):(z=i(z,_),z.return=T,z)}function j(T,z,_,L){var ne=_.type;return ne===C?U(T,z,_.props.children,L,_.key):z!==null&&(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&cn(ne)===z.type)?(z=i(z,_.props),Ol(z,_),z.return=T,z):(z=Gi(_.type,_.key,_.props,null,T.mode,L),Ol(z,_),z.return=T,z)}function O(T,z,_,L){return z===null||z.tag!==4||z.stateNode.containerInfo!==_.containerInfo||z.stateNode.implementation!==_.implementation?(z=Fo(_,T.mode,L),z.return=T,z):(z=i(z,_.children||[]),z.return=T,z)}function U(T,z,_,L,ne){return z===null||z.tag!==7?(z=nn(_,T.mode,L,ne),z.return=T,z):(z=i(z,_),z.return=T,z)}function q(T,z,_){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Wo(""+z,T.mode,_),z.return=T,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case E:return _=Gi(z.type,z.key,z.props,null,T.mode,_),Ol(_,z),_.return=T,_;case R:return z=Fo(z,T.mode,_),z.return=T,z;case we:return z=cn(z),q(T,z,_)}if(_e(z)||Z(z))return z=nn(z,T.mode,_,null),z.return=T,z;if(typeof z.then=="function")return q(T,Fi(z),_);if(z.$$typeof===X)return q(T,Xi(T,z),_);Ki(T,z)}return null}function k(T,z,_,L){var ne=z!==null?z.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ne!==null?null:g(T,z,""+_,L);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case E:return _.key===ne?j(T,z,_,L):null;case R:return _.key===ne?O(T,z,_,L):null;case we:return _=cn(_),k(T,z,_,L)}if(_e(_)||Z(_))return ne!==null?null:U(T,z,_,L,null);if(typeof _.then=="function")return k(T,z,Fi(_),L);if(_.$$typeof===X)return k(T,z,Xi(T,_),L);Ki(T,_)}return null}function H(T,z,_,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(_)||null,g(z,T,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case E:return T=T.get(L.key===null?_:L.key)||null,j(z,T,L,ne);case R:return T=T.get(L.key===null?_:L.key)||null,O(z,T,L,ne);case we:return L=cn(L),H(T,z,_,L,ne)}if(_e(L)||Z(L))return T=T.get(_)||null,U(z,T,L,ne,null);if(typeof L.then=="function")return H(T,z,_,Fi(L),ne);if(L.$$typeof===X)return H(T,z,_,Xi(z,L),ne);Ki(z,L)}return null}function K(T,z,_,L){for(var ne=null,Ae=null,ee=z,fe=z=0,be=null;ee!==null&&fe<_.length;fe++){ee.index>fe?(be=ee,ee=null):be=ee.sibling;var Te=k(T,ee,_[fe],L);if(Te===null){ee===null&&(ee=be);break}e&&ee&&Te.alternate===null&&t(T,ee),z=r(Te,z,fe),Ae===null?ne=Te:Ae.sibling=Te,Ae=Te,ee=be}if(fe===_.length)return a(T,ee),ze&&ca(T,fe),ne;if(ee===null){for(;fe<_.length;fe++)ee=q(T,_[fe],L),ee!==null&&(z=r(ee,z,fe),Ae===null?ne=ee:Ae.sibling=ee,Ae=ee);return ze&&ca(T,fe),ne}for(ee=n(ee);fe<_.length;fe++)be=H(ee,T,fe,_[fe],L),be!==null&&(e&&be.alternate!==null&&ee.delete(be.key===null?fe:be.key),z=r(be,z,fe),Ae===null?ne=be:Ae.sibling=be,Ae=be);return e&&ee.forEach(function(Ka){return t(T,Ka)}),ze&&ca(T,fe),ne}function ie(T,z,_,L){if(_==null)throw Error(c(151));for(var ne=null,Ae=null,ee=z,fe=z=0,be=null,Te=_.next();ee!==null&&!Te.done;fe++,Te=_.next()){ee.index>fe?(be=ee,ee=null):be=ee.sibling;var Ka=k(T,ee,Te.value,L);if(Ka===null){ee===null&&(ee=be);break}e&&ee&&Ka.alternate===null&&t(T,ee),z=r(Ka,z,fe),Ae===null?ne=Ka:Ae.sibling=Ka,Ae=Ka,ee=be}if(Te.done)return a(T,ee),ze&&ca(T,fe),ne;if(ee===null){for(;!Te.done;fe++,Te=_.next())Te=q(T,Te.value,L),Te!==null&&(z=r(Te,z,fe),Ae===null?ne=Te:Ae.sibling=Te,Ae=Te);return ze&&ca(T,fe),ne}for(ee=n(ee);!Te.done;fe++,Te=_.next())Te=H(ee,T,fe,Te.value,L),Te!==null&&(e&&Te.alternate!==null&&ee.delete(Te.key===null?fe:Te.key),z=r(Te,z,fe),Ae===null?ne=Te:Ae.sibling=Te,Ae=Te);return e&&ee.forEach(function(Ly){return t(T,Ly)}),ze&&ca(T,fe),ne}function Ne(T,z,_,L){if(typeof _=="object"&&_!==null&&_.type===C&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case E:e:{for(var ne=_.key;z!==null;){if(z.key===ne){if(ne=_.type,ne===C){if(z.tag===7){a(T,z.sibling),L=i(z,_.props.children),L.return=T,T=L;break e}}else if(z.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===we&&cn(ne)===z.type){a(T,z.sibling),L=i(z,_.props),Ol(L,_),L.return=T,T=L;break e}a(T,z);break}else t(T,z);z=z.sibling}_.type===C?(L=nn(_.props.children,T.mode,L,_.key),L.return=T,T=L):(L=Gi(_.type,_.key,_.props,null,T.mode,L),Ol(L,_),L.return=T,T=L)}return f(T);case R:e:{for(ne=_.key;z!==null;){if(z.key===ne)if(z.tag===4&&z.stateNode.containerInfo===_.containerInfo&&z.stateNode.implementation===_.implementation){a(T,z.sibling),L=i(z,_.children||[]),L.return=T,T=L;break e}else{a(T,z);break}else t(T,z);z=z.sibling}L=Fo(_,T.mode,L),L.return=T,T=L}return f(T);case we:return _=cn(_),Ne(T,z,_,L)}if(_e(_))return K(T,z,_,L);if(Z(_)){if(ne=Z(_),typeof ne!="function")throw Error(c(150));return _=ne.call(_),ie(T,z,_,L)}if(typeof _.then=="function")return Ne(T,z,Fi(_),L);if(_.$$typeof===X)return Ne(T,z,Xi(T,_),L);Ki(T,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,z!==null&&z.tag===6?(a(T,z.sibling),L=i(z,_),L.return=T,T=L):(a(T,z),L=Wo(_,T.mode,L),L.return=T,T=L),f(T)):a(T,z)}return function(T,z,_,L){try{_l=0;var ne=Ne(T,z,_,L);return Gn=null,ne}catch(ee){if(ee===qn||ee===Zi)throw ee;var Ae=Ct(29,ee,null,T.mode);return Ae.lanes=L,Ae.return=T,Ae}}}var dn=Ud(!0),Ld=Ud(!1),Ma=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function os(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=qi(e),jd(e,null,a),t}return Li(e,n,t,a),qi(e)}function Ml(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,_u(e,a)}}function ss(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?i=r=f:r=r.next=f,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var cs=!1;function kl(){if(cs){var e=Ln;if(e!==null)throw e}}function Dl(e,t,a,n){cs=!1;var i=e.updateQueue;Ma=!1;var r=i.firstBaseUpdate,f=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var j=g,O=j.next;j.next=null,f===null?r=O:f.next=O,f=j;var U=e.alternate;U!==null&&(U=U.updateQueue,g=U.lastBaseUpdate,g!==f&&(g===null?U.firstBaseUpdate=O:g.next=O,U.lastBaseUpdate=j))}if(r!==null){var q=i.baseState;f=0,U=O=j=null,g=r;do{var k=g.lane&-536870913,H=k!==g.lane;if(H?(ve&k)===k:(n&k)===k){k!==0&&k===Un&&(cs=!0),U!==null&&(U=U.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var K=e,ie=g;k=t;var Ne=a;switch(ie.tag){case 1:if(K=ie.payload,typeof K=="function"){q=K.call(Ne,q,k);break e}q=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=ie.payload,k=typeof K=="function"?K.call(Ne,q,k):K,k==null)break e;q=y({},q,k);break e;case 2:Ma=!0}}k=g.callback,k!==null&&(e.flags|=64,H&&(e.flags|=8192),H=i.callbacks,H===null?i.callbacks=[k]:H.push(k))}else H={lane:k,tag:g.tag,payload:g.payload,callback:g.callback,next:null},U===null?(O=U=H,j=q):U=U.next=H,f|=k;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;H=g,g=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);U===null&&(j=q),i.baseState=j,i.firstBaseUpdate=O,i.lastBaseUpdate=U,r===null&&(i.shared.lanes=0),La|=f,e.lanes=f,e.memoizedState=q}}function qd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Gd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)qd(a[e],t)}var Yn=S(null),Ji=S(0);function Yd(e,t){e=ba,G(Ji,e),G(Yn,t),ba=e|t.baseLanes}function us(){G(Ji,ba),G(Yn,Yn.current)}function ds(){ba=Ji.current,B(Yn),B(Ji)}var wt=S(null),Yt=null;function Ba(e){var t=e.alternate;G(We,We.current&1),G(wt,e),Yt===null&&(t===null||Yn.current!==null||t.memoizedState!==null)&&(Yt=e)}function fs(e){G(We,We.current),G(wt,e),Yt===null&&(Yt=e)}function Vd(e){e.tag===22?(G(We,We.current),G(wt,e),Yt===null&&(Yt=e)):Na()}function Na(){G(We,We.current),G(wt,wt.current)}function _t(e){B(wt),Yt===e&&(Yt=null),B(We)}var We=S(0);function $i(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||xc(a)||vc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=0,ue=null,De=null,Ie=null,Ii=!1,Vn=!1,fn=!1,Pi=0,Bl=0,Xn=null,wg=0;function Xe(){throw Error(c(321))}function hs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Tt(e[a],t[a]))return!1;return!0}function ps(e,t,a,n,i,r){return fa=r,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Tf:ws,fn=!1,r=a(n,i),fn=!1,Vn&&(r=Qd(t,a,n,i)),Xd(e),r}function Xd(e){D.H=Ul;var t=De!==null&&De.next!==null;if(fa=0,Ie=De=ue=null,Ii=!1,Bl=0,Xn=null,t)throw Error(c(300));e===null||Pe||(e=e.dependencies,e!==null&&Vi(e)&&(Pe=!0))}function Qd(e,t,a,n){ue=e;var i=0;do{if(Vn&&(Xn=null),Bl=0,Vn=!1,25<=i)throw Error(c(301));if(i+=1,Ie=De=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=Cf,r=t(a,n)}while(Vn);return r}function _g(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Nl(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ue.flags|=1024),t}function ms(){var e=Pi!==0;return Pi=0,e}function gs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ys(e){if(Ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ii=!1}fa=0,Ie=De=ue=null,Vn=!1,Bl=Pi=0,Xn=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ue.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function Fe(){if(De===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ie===null?ue.memoizedState:Ie.next;if(t!==null)Ie=t,De=e;else{if(e===null)throw ue.alternate===null?Error(c(467)):Error(c(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ie===null?ue.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function er(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nl(e){var t=Bl;return Bl+=1,Xn===null&&(Xn=[]),e=Bd(Xn,e,t),t=ue,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Tf:ws),e}function tr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nl(e);if(e.$$typeof===X)return ct(e)}throw Error(c(438,String(e)))}function xs(e){var t=null,a=ue.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ue.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=er(),ue.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=it;return t.index++,a}function ha(e,t){return typeof t=="function"?t(e):t}function ar(e){var t=Fe();return vs(t,De,e)}function vs(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var i=e.baseQueue,r=n.pending;if(r!==null){if(i!==null){var f=i.next;i.next=r.next,r.next=f}t.baseQueue=i=r,n.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var g=f=null,j=null,O=t,U=!1;do{var q=O.lane&-536870913;if(q!==O.lane?(ve&q)===q:(fa&q)===q){var k=O.revertLane;if(k===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),q===Un&&(U=!0);else if((fa&k)===k){O=O.next,k===Un&&(U=!0);continue}else q={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(g=j=q,f=r):j=j.next=q,ue.lanes|=k,La|=k;q=O.action,fn&&a(r,q),r=O.hasEagerState?O.eagerState:a(r,q)}else k={lane:q,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(g=j=k,f=r):j=j.next=k,ue.lanes|=q,La|=q;O=O.next}while(O!==null&&O!==t);if(j===null?f=r:j.next=g,!Tt(r,e.memoizedState)&&(Pe=!0,U&&(a=Ln,a!==null)))throw a;e.memoizedState=r,e.baseState=f,e.baseQueue=j,n.lastRenderedState=r}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function bs(e){var t=Fe(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,r=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do r=e(r,f.action),f=f.next;while(f!==i);Tt(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Zd(e,t,a){var n=ue,i=Fe(),r=ze;if(r){if(a===void 0)throw Error(c(407));a=a()}else a=t();var f=!Tt((De||i).memoizedState,a);if(f&&(i.memoizedState=a,Pe=!0),i=i.queue,zs(Kd.bind(null,n,i,e),[e]),i.getSnapshot!==t||f||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},Fd.bind(null,n,i,a,t),null),Ue===null)throw Error(c(349));r||(fa&127)!==0||Wd(n,t,a)}return a}function Wd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ue.updateQueue,t===null?(t=er(),ue.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Fd(e,t,a,n){t.value=a,t.getSnapshot=n,Jd(t)&&$d(e)}function Kd(e,t,a){return a(function(){Jd(t)&&$d(e)})}function Jd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Tt(e,a)}catch{return!0}}function $d(e){var t=an(e,2);t!==null&&St(t,e,2)}function Ss(e){var t=pt();if(typeof e=="function"){var a=e;if(e=a(),fn){Ra(!0);try{a()}finally{Ra(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function Id(e,t,a,n){return e.baseState=a,vs(e,De,typeof n=="function"?n:ha)}function Og(e,t,a,n,i){if(ir(e))throw Error(c(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};D.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Pd(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Pd(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var r=D.T,f={};D.T=f;try{var g=a(i,n),j=D.S;j!==null&&j(f,g),ef(e,t,g)}catch(O){js(e,t,O)}finally{r!==null&&f.types!==null&&(r.types=f.types),D.T=r}}else try{r=a(i,n),ef(e,t,r)}catch(O){js(e,t,O)}}function ef(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){tf(e,t,n)},function(n){return js(e,t,n)}):tf(e,t,a)}function tf(e,t,a){t.status="fulfilled",t.value=a,af(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Pd(e,a)))}function js(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,af(t),t=t.next;while(t!==n)}e.action=null}function af(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nf(e,t){return t}function lf(e,t){if(ze){var a=Ue.formState;if(a!==null){e:{var n=ue;if(ze){if(qe){t:{for(var i=qe,r=Gt;i.nodeType!==8;){if(!r){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){qe=Vt(i.nextSibling),n=i.data==="F!";break e}}_a(n)}n=!1}n&&(t=a[0])}}return a=pt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nf,lastRenderedState:t},a.queue=n,a=Ef.bind(null,ue,n),n.dispatch=a,n=Ss(!1),r=Cs.bind(null,ue,!1,n.queue),n=pt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=Og.bind(null,ue,i,r,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function rf(e){var t=Fe();return of(t,De,e)}function of(e,t,a){if(t=vs(e,t,nf)[0],e=ar(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nl(t)}catch(f){throw f===qn?Zi:f}else n=t;t=Fe();var i=t.queue,r=i.dispatch;return a!==t.memoizedState&&(ue.flags|=2048,Qn(9,{destroy:void 0},Mg.bind(null,i,a),null)),[n,r,e]}function Mg(e,t){e.action=t}function sf(e){var t=Fe(),a=De;if(a!==null)return of(t,a,e);Fe(),t=t.memoizedState,a=Fe();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Qn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ue.updateQueue,t===null&&(t=er(),ue.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function cf(){return Fe().memoizedState}function nr(e,t,a,n){var i=pt();ue.flags|=e,i.memoizedState=Qn(1|t,{destroy:void 0},a,n===void 0?null:n)}function lr(e,t,a,n){var i=Fe();n=n===void 0?null:n;var r=i.memoizedState.inst;De!==null&&n!==null&&hs(n,De.memoizedState.deps)?i.memoizedState=Qn(t,r,a,n):(ue.flags|=e,i.memoizedState=Qn(1|t,r,a,n))}function uf(e,t){nr(8390656,8,e,t)}function zs(e,t){lr(2048,8,e,t)}function kg(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=er(),ue.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function df(e){var t=Fe().memoizedState;return kg({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function ff(e,t){return lr(4,2,e,t)}function hf(e,t){return lr(4,4,e,t)}function pf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mf(e,t,a){a=a!=null?a.concat([e]):null,lr(4,4,pf.bind(null,t,e),a)}function Es(){}function gf(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&hs(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function yf(e,t){var a=Fe();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&hs(t,n[1]))return n[0];if(n=e(),fn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n}function Rs(e,t,a){return a===void 0||(fa&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=xh(),ue.lanes|=e,La|=e,a)}function xf(e,t,a,n){return Tt(a,t)?a:Yn.current!==null?(e=Rs(e,a,n),Tt(e,t)||(Pe=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(ve&261930)===0?(Pe=!0,e.memoizedState=a):(e=xh(),ue.lanes|=e,La|=e,t)}function vf(e,t,a,n,i){var r=Q.p;Q.p=r!==0&&8>r?r:8;var f=D.T,g={};D.T=g,Cs(e,!1,t,a);try{var j=i(),O=D.S;if(O!==null&&O(g,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var U=Cg(j,n);Hl(e,t,U,kt(e))}else Hl(e,t,n,kt(e))}catch(q){Hl(e,t,{then:function(){},status:"rejected",reason:q},kt())}finally{Q.p=r,f!==null&&g.types!==null&&(f.types=g.types),D.T=f}}function Dg(){}function As(e,t,a,n){if(e.tag!==5)throw Error(c(476));var i=bf(e).queue;vf(e,i,t,te,a===null?Dg:function(){return Sf(e),a(n)})}function bf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sf(e){var t=bf(e);t.next===null&&(t=e.alternate.memoizedState),Hl(e,t.next.queue,{},kt())}function Ts(){return ct(ei)}function jf(){return Fe().memoizedState}function zf(){return Fe().memoizedState}function Bg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=kt();e=ka(a);var n=Da(t,e,a);n!==null&&(St(n,t,a),Ml(n,t,a)),t={cache:as()},e.payload=t;return}t=t.return}}function Ng(e,t,a){var n=kt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ir(e)?Rf(t,a):(a=Qo(e,t,a,n),a!==null&&(St(a,e,n),Af(a,t,n)))}function Ef(e,t,a){var n=kt();Hl(e,t,a,n)}function Hl(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ir(e))Rf(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var f=t.lastRenderedState,g=r(f,a);if(i.hasEagerState=!0,i.eagerState=g,Tt(g,f))return Li(e,t,i,0),Ue===null&&Ui(),!1}catch{}if(a=Qo(e,t,i,n),a!==null)return St(a,e,n),Af(a,t,n),!0}return!1}function Cs(e,t,a,n){if(n={lane:2,revertLane:rc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ir(e)){if(t)throw Error(c(479))}else t=Qo(e,a,n,2),t!==null&&St(t,e,2)}function ir(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function Rf(e,t){Vn=Ii=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Af(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,_u(e,a)}}var Ul={readContext:ct,use:tr,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Ul.useEffectEvent=Xe;var Tf={readContext:ct,use:tr,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:uf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,nr(4194308,4,pf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return nr(4194308,4,e,t)},useInsertionEffect:function(e,t){nr(4,2,e,t)},useMemo:function(e,t){var a=pt();t=t===void 0?null:t;var n=e();if(fn){Ra(!0);try{e()}finally{Ra(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=pt();if(a!==void 0){var i=a(t);if(fn){Ra(!0);try{a(t)}finally{Ra(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Ng.bind(null,ue,e),[n.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,a=Ef.bind(null,ue,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Es,useDeferredValue:function(e,t){var a=pt();return Rs(a,e,t)},useTransition:function(){var e=Ss(!1);return e=vf.bind(null,ue,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ue,i=pt();if(ze){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),Ue===null)throw Error(c(349));(ve&127)!==0||Wd(n,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,uf(Kd.bind(null,n,r,e),[e]),n.flags|=2048,Qn(9,{destroy:void 0},Fd.bind(null,n,r,a,t),null),a},useId:function(){var e=pt(),t=Ue.identifierPrefix;if(ze){var a=Pt,n=It;a=(n&~(1<<32-At(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Pi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=wg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:lf,useActionState:lf,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Cs.bind(null,ue,!0,a),a.dispatch=t,[e,t]},useMemoCache:xs,useCacheRefresh:function(){return pt().memoizedState=Bg.bind(null,ue)},useEffectEvent:function(e){var t=pt(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},ws={readContext:ct,use:tr,useCallback:gf,useContext:ct,useEffect:zs,useImperativeHandle:mf,useInsertionEffect:ff,useLayoutEffect:hf,useMemo:yf,useReducer:ar,useRef:cf,useState:function(){return ar(ha)},useDebugValue:Es,useDeferredValue:function(e,t){var a=Fe();return xf(a,De.memoizedState,e,t)},useTransition:function(){var e=ar(ha)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Zd,useId:jf,useHostTransitionStatus:Ts,useFormState:rf,useActionState:rf,useOptimistic:function(e,t){var a=Fe();return Id(a,De,e,t)},useMemoCache:xs,useCacheRefresh:zf};ws.useEffectEvent=df;var Cf={readContext:ct,use:tr,useCallback:gf,useContext:ct,useEffect:zs,useImperativeHandle:mf,useInsertionEffect:ff,useLayoutEffect:hf,useMemo:yf,useReducer:bs,useRef:cf,useState:function(){return bs(ha)},useDebugValue:Es,useDeferredValue:function(e,t){var a=Fe();return De===null?Rs(a,e,t):xf(a,De.memoizedState,e,t)},useTransition:function(){var e=bs(ha)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Nl(e),t]},useSyncExternalStore:Zd,useId:jf,useHostTransitionStatus:Ts,useFormState:sf,useActionState:sf,useOptimistic:function(e,t){var a=Fe();return De!==null?Id(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:xs,useCacheRefresh:zf};Cf.useEffectEvent=df;function _s(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Os={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=kt(),i=ka(n);i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,n),t!==null&&(St(t,e,n),Ml(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=kt(),i=ka(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,n),t!==null&&(St(t,e,n),Ml(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=kt(),n=ka(a);n.tag=2,t!=null&&(n.callback=t),t=Da(e,n,a),t!==null&&(St(t,e,a),Ml(t,e,a))}};function wf(e,t,a,n,i,r,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,f):t.prototype&&t.prototype.isPureReactComponent?!El(a,n)||!El(i,r):!0}function _f(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function hn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Of(e){Hi(e)}function Mf(e){console.error(e)}function kf(e){Hi(e)}function rr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Df(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Ms(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){rr(e,t)},a}function Bf(e){return e=ka(e),e.tag=3,e}function Nf(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var r=n.value;e.payload=function(){return i(r)},e.callback=function(){Df(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Df(t,a,n),typeof i!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})})}function Hg(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Hn(t,a,i,!0),a=wt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?xr():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Wi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),nc(e,n,i)),!1;case 22:return a.flags|=65536,n===Wi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),nc(e,n,i)),!1}throw Error(c(435,a.tag))}return nc(e,n,i),xr(),!1}if(ze)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==$o&&(e=Error(c(422),{cause:n}),Tl(Ut(e,a)))):(n!==$o&&(t=Error(c(423),{cause:n}),Tl(Ut(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Ut(n,a),i=Ms(e.stateNode,n,i),ss(e,i),Qe!==4&&(Qe=2)),!1;var r=Error(c(520),{cause:n});if(r=Ut(r,a),Zl===null?Zl=[r]:Zl.push(r),Qe!==4&&(Qe=2),t===null)return!0;n=Ut(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Ms(a.stateNode,n,e),ss(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(qa===null||!qa.has(r))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Bf(i),Nf(i,e,a,n),ss(a,i),!1}a=a.return}while(a!==null);return!1}var ks=Error(c(461)),Pe=!1;function ut(e,t,a,n){t.child=e===null?Ld(t,null,a,n):dn(t,e.child,a,n)}function Hf(e,t,a,n,i){a=a.render;var r=t.ref;if("ref"in n){var f={};for(var g in n)g!=="ref"&&(f[g]=n[g])}else f=n;return on(t),n=ps(e,t,a,f,r,i),g=ms(),e!==null&&!Pe?(gs(e,t,i),pa(e,t,i)):(ze&&g&&Ko(t),t.flags|=1,ut(e,t,n,i),t.child)}function Uf(e,t,a,n,i){if(e===null){var r=a.type;return typeof r=="function"&&!Zo(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Lf(e,t,r,n,i)):(e=Gi(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Gs(e,i)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:El,a(f,n)&&e.ref===t.ref)return pa(e,t,i)}return t.flags|=1,e=sa(r,n),e.ref=t.ref,e.return=t,t.child=e}function Lf(e,t,a,n,i){if(e!==null){var r=e.memoizedProps;if(El(r,n)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=n=r,Gs(e,i))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,pa(e,t,i)}return Ds(e,t,a,n,i)}function qf(e,t,a,n){var i=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~r}else n=0,t.child=null;return Gf(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qi(t,r!==null?r.cachePool:null),r!==null?Yd(t,r):us(),Vd(t);else return n=t.lanes=536870912,Gf(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Qi(t,r.cachePool),Yd(t,r),Na(),t.memoizedState=null):(e!==null&&Qi(t,null),us(),Na());return ut(e,t,i,a),t.child}function Ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gf(e,t,a,n,i){var r=ls();return r=r===null?null:{parent:$e._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Qi(t,null),us(),Vd(t),e!==null&&Hn(e,t,n,!0),t.childLanes=i,null}function or(e,t){return t=cr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yf(e,t,a){return dn(t,e.child,null,a),e=or(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function Ug(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(n.mode==="hidden")return e=or(t,n),t.lanes=536870912,Ll(null,e);if(fs(t),(e=qe)?(e=ep(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=Ed(e),a.return=t,t.child=a,st=t,qe=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return or(t,n)}var r=e.memoizedState;if(r!==null){var f=r.dehydrated;if(fs(t),i)if(t.flags&256)t.flags&=-257,t=Yf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Pe||Hn(e,t,a,!1),i=(a&e.childLanes)!==0,Pe||i){if(n=Ue,n!==null&&(f=Ou(n,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,an(e,f),St(n,e,f),ks;xr(),t=Yf(e,t,a)}else e=r.treeContext,qe=Vt(f.nextSibling),st=t,ze=!0,wa=null,Gt=!1,e!==null&&Td(t,e),t=or(t,n),t.flags|=4096;return t}return e=sa(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function sr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ds(e,t,a,n,i){return on(t),a=ps(e,t,a,n,void 0,i),n=ms(),e!==null&&!Pe?(gs(e,t,i),pa(e,t,i)):(ze&&n&&Ko(t),t.flags|=1,ut(e,t,a,i),t.child)}function Vf(e,t,a,n,i,r){return on(t),t.updateQueue=null,a=Qd(t,n,a,i),Xd(e),n=ms(),e!==null&&!Pe?(gs(e,t,r),pa(e,t,r)):(ze&&n&&Ko(t),t.flags|=1,ut(e,t,a,r),t.child)}function Xf(e,t,a,n,i){if(on(t),t.stateNode===null){var r=kn,f=a.contextType;typeof f=="object"&&f!==null&&(r=ct(f)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Os,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},rs(t),f=a.contextType,r.context=typeof f=="object"&&f!==null?ct(f):kn,r.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(_s(t,a,f,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&Os.enqueueReplaceState(r,r.state,null),Dl(t,n,r,i),kl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var g=t.memoizedProps,j=hn(a,g);r.props=j;var O=r.context,U=a.contextType;f=kn,typeof U=="object"&&U!==null&&(f=ct(U));var q=a.getDerivedStateFromProps;U=typeof q=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,U||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||O!==f)&&_f(t,r,n,f),Ma=!1;var k=t.memoizedState;r.state=k,Dl(t,n,r,i),kl(),O=t.memoizedState,g||k!==O||Ma?(typeof q=="function"&&(_s(t,a,q,n),O=t.memoizedState),(j=Ma||wf(t,a,j,n,k,O,f))?(U||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=O),r.props=n,r.state=O,r.context=f,n=j):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,os(e,t),f=t.memoizedProps,U=hn(a,f),r.props=U,q=t.pendingProps,k=r.context,O=a.contextType,j=kn,typeof O=="object"&&O!==null&&(j=ct(O)),g=a.getDerivedStateFromProps,(O=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==q||k!==j)&&_f(t,r,n,j),Ma=!1,k=t.memoizedState,r.state=k,Dl(t,n,r,i),kl();var H=t.memoizedState;f!==q||k!==H||Ma||e!==null&&e.dependencies!==null&&Vi(e.dependencies)?(typeof g=="function"&&(_s(t,a,g,n),H=t.memoizedState),(U=Ma||wf(t,a,U,n,k,H,j)||e!==null&&e.dependencies!==null&&Vi(e.dependencies))?(O||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,H,j),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,H,j)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=H),r.props=n,r.state=H,r.context=j,n=U):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,sr(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=dn(t,e.child,null,i),t.child=dn(t,null,a,i)):ut(e,t,a,i),t.memoizedState=r.state,e=t.child):e=pa(e,t,i),e}function Qf(e,t,a,n){return ln(),t.flags|=256,ut(e,t,a,n),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ns(e){return{baseLanes:e,cachePool:kd()}}function Hs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Mt),e}function Zf(e,t,a){var n=t.pendingProps,i=!1,r=(t.flags&128)!==0,f;if((f=r)||(f=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(i?Ba(t):Na(),(e=qe)?(e=ep(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=Ed(e),a.return=t,t.child=a,st=t,qe=null)):e=null,e===null)throw _a(t);return vc(e)?t.lanes=32:t.lanes=536870912,null}var g=n.children;return n=n.fallback,i?(Na(),i=t.mode,g=cr({mode:"hidden",children:g},i),n=nn(n,i,a,null),g.return=t,n.return=t,g.sibling=n,t.child=g,n=t.child,n.memoizedState=Ns(a),n.childLanes=Hs(e,f,a),t.memoizedState=Bs,Ll(null,n)):(Ba(t),Us(t,g))}var j=e.memoizedState;if(j!==null&&(g=j.dehydrated,g!==null)){if(r)t.flags&256?(Ba(t),t.flags&=-257,t=Ls(e,t,a)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),g=n.fallback,i=t.mode,n=cr({mode:"visible",children:n.children},i),g=nn(g,i,a,null),g.flags|=2,n.return=t,g.return=t,n.sibling=g,t.child=n,dn(t,e.child,null,a),n=t.child,n.memoizedState=Ns(a),n.childLanes=Hs(e,f,a),t.memoizedState=Bs,t=Ll(null,n));else if(Ba(t),vc(g)){if(f=g.nextSibling&&g.nextSibling.dataset,f)var O=f.dgst;f=O,n=Error(c(419)),n.stack="",n.digest=f,Tl({value:n,source:null,stack:null}),t=Ls(e,t,a)}else if(Pe||Hn(e,t,a,!1),f=(a&e.childLanes)!==0,Pe||f){if(f=Ue,f!==null&&(n=Ou(f,a),n!==0&&n!==j.retryLane))throw j.retryLane=n,an(e,n),St(f,e,n),ks;xc(g)||xr(),t=Ls(e,t,a)}else xc(g)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,qe=Vt(g.nextSibling),st=t,ze=!0,wa=null,Gt=!1,e!==null&&Td(t,e),t=Us(t,n.children),t.flags|=4096);return t}return i?(Na(),g=n.fallback,i=t.mode,j=e.child,O=j.sibling,n=sa(j,{mode:"hidden",children:n.children}),n.subtreeFlags=j.subtreeFlags&65011712,O!==null?g=sa(O,g):(g=nn(g,i,a,null),g.flags|=2),g.return=t,n.return=t,n.sibling=g,t.child=n,Ll(null,n),n=t.child,g=e.child.memoizedState,g===null?g=Ns(a):(i=g.cachePool,i!==null?(j=$e._currentValue,i=i.parent!==j?{parent:j,pool:j}:i):i=kd(),g={baseLanes:g.baseLanes|a,cachePool:i}),n.memoizedState=g,n.childLanes=Hs(e,f,a),t.memoizedState=Bs,Ll(e.child,n)):(Ba(t),a=e.child,e=a.sibling,a=sa(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Us(e,t){return t=cr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function cr(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Ls(e,t,a){return dn(t,e.child,null,a),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wf(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),es(e.return,t,a)}function qs(e,t,a,n,i,r){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:r}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=i,f.treeForkCount=r)}function Ff(e,t,a){var n=t.pendingProps,i=n.revealOrder,r=n.tail;n=n.children;var f=We.current,g=(f&2)!==0;if(g?(f=f&1|2,t.flags|=128):f&=1,G(We,f),ut(e,t,n,a),n=ze?Al:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wf(e,a,t);else if(e.tag===19)Wf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&$i(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),qs(t,!1,i,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$i(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}qs(t,!0,a,null,r,n);break;case"together":qs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function pa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),La|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Hn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=sa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vi(e)))}function Lg(e,t,a){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Oa(t,$e,e.memoizedState.cache),ln();break;case 27:case 5:dl(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fs(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Zf(e,t,a):(Ba(t),e=pa(e,t,a),e!==null?e.sibling:null);Ba(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Hn(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return Ff(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(We,We.current),n)break;return null;case 22:return t.lanes=0,qf(e,t,a,t.pendingProps);case 24:Oa(t,$e,e.memoizedState.cache)}return pa(e,t,a)}function Kf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Gs(e,a)&&(t.flags&128)===0)return Pe=!1,Lg(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,ze&&(t.flags&1048576)!==0&&Ad(t,Al,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=cn(t.elementType),t.type=e,typeof e=="function")Zo(e)?(n=hn(e,n),t.tag=1,t=Xf(null,t,e,n,a)):(t.tag=0,t=Ds(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===le){t.tag=11,t=Hf(null,t,e,n,a);break e}else if(i===F){t.tag=14,t=Uf(null,t,e,n,a);break e}}throw t=xe(e)||e,Error(c(306,t,""))}}return t;case 0:return Ds(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=hn(n,t.pendingProps),Xf(e,t,n,i,a);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var r=t.memoizedState;i=r.element,os(e,t),Dl(t,n,null,a);var f=t.memoizedState;if(n=f.cache,Oa(t,$e,n),n!==r.cache&&ts(t,[$e],a,!0),kl(),n=f.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Qf(e,t,n,a);break e}else if(n!==i){i=Ut(Error(c(424)),t),Tl(i),t=Qf(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=Vt(e.firstChild),st=t,ze=!0,wa=null,Gt=!0,a=Ld(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(ln(),n===i){t=pa(e,t,a);break e}ut(e,t,n,a)}t=t.child}return t;case 26:return sr(e,t),e===null?(a=rp(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,n=Rr(oe.current).createElement(a),n[ot]=t,n[mt]=e,dt(n,a,e),at(n),t.stateNode=n):t.memoizedState=rp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dl(t),e===null&&ze&&(n=t.stateNode=np(t.type,t.pendingProps,oe.current),st=t,Gt=!0,i=qe,Xa(t.type)?(bc=i,qe=Vt(n.firstChild)):qe=i),ut(e,t,t.pendingProps.children,a),sr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((i=n=qe)&&(n=my(n,t.type,t.pendingProps,Gt),n!==null?(t.stateNode=n,st=t,qe=Vt(n.firstChild),Gt=!1,i=!0):i=!1),i||_a(t)),dl(t),i=t.type,r=t.pendingProps,f=e!==null?e.memoizedProps:null,n=r.children,mc(i,r)?n=null:f!==null&&mc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=ps(e,t,_g,null,null,a),ei._currentValue=i),sr(e,t),ut(e,t,n,a),t.child;case 6:return e===null&&ze&&((e=a=qe)&&(a=gy(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,st=t,qe=null,e=!0):e=!1),e||_a(t)),null;case 13:return Zf(e,t,a);case 4:return rt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=dn(t,null,n,a):ut(e,t,n,a),t.child;case 11:return Hf(e,t,t.type,t.pendingProps,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Oa(t,t.type,n.value),ut(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,on(t),i=ct(i),n=n(i),t.flags|=1,ut(e,t,n,a),t.child;case 14:return Uf(e,t,t.type,t.pendingProps,a);case 15:return Lf(e,t,t.type,t.pendingProps,a);case 19:return Ff(e,t,a);case 31:return Ug(e,t,a);case 22:return qf(e,t,a,t.pendingProps);case 24:return on(t),n=ct($e),e===null?(i=ls(),i===null&&(i=Ue,r=as(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=a),i=r),t.memoizedState={parent:n,cache:i},rs(t),Oa(t,$e,i)):((e.lanes&a)!==0&&(os(e,t),Dl(t,null,null,a),kl()),i=e.memoizedState,r=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Oa(t,$e,n)):(n=r.cache,Oa(t,$e,n),n!==i.cache&&ts(t,[$e],a,!0))),ut(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ma(e){e.flags|=4}function Ys(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(jh())e.flags|=8192;else throw un=Wi,is}else e.flags&=-16777217}function Jf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dp(t))if(jh())e.flags|=8192;else throw un=Wi,is}function ur(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Cu():536870912,e.lanes|=t,Kn|=t)}function ql(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function qg(e,t,a){var n=t.pendingProps;switch(Jo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),da($e),Ze(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nn(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Io())),Ge(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(ma(t),r!==null?(Ge(t),Jf(t,r)):(Ge(t),Ys(t,i,null,n,a))):r?r!==e.memoizedState?(ma(t),Ge(t),Jf(t,r)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ma(t),Ge(t),Ys(t,i,e,n,a)),null;case 27:if(Si(t),a=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Ge(t),null}e=V.current,Nn(t)?Cd(t):(e=np(i,n,a),t.stateNode=e,ma(t))}return Ge(t),null;case 5:if(Si(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return Ge(t),null}if(r=V.current,Nn(t))Cd(t);else{var f=Rr(oe.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?f.createElement(i,{is:n.is}):f.createElement(i)}}r[ot]=t,r[mt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=r;e:switch(dt(r,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ma(t)}}return Ge(t),Ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ma(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,Nn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=st,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ot]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Zh(e.nodeValue,a)),e||_a(t,!0)}else e=Rr(e).createTextNode(n),e[ot]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Nn(t),a!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ot]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else a=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ge(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Nn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[ot]=t}else ln(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else i=Io(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ur(t,t.updateQueue),Ge(t),null);case 4:return Ze(),e===null&&uc(t.stateNode.containerInfo),Ge(t),null;case 10:return da(t.type),Ge(t),null;case 19:if(B(We),n=t.memoizedState,n===null)return Ge(t),null;if(i=(t.flags&128)!==0,r=n.rendering,r===null)if(i)ql(n,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=$i(e),r!==null){for(t.flags|=128,ql(n,!1),e=r.updateQueue,t.updateQueue=e,ur(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zd(a,e),a=a.sibling;return G(We,We.current&1|2),ze&&ca(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Et()>mr&&(t.flags|=128,i=!0,ql(n,!1),t.lanes=4194304)}else{if(!i)if(e=$i(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ur(t,e),ql(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!ze)return Ge(t),null}else 2*Et()-n.renderingStartTime>mr&&a!==536870912&&(t.flags|=128,i=!0,ql(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Et(),e.sibling=null,a=We.current,G(We,i?a&1|2:a&1),ze&&ca(t,n.treeForkCount),e):(Ge(t),null);case 22:case 23:return _t(t),ds(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&ur(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&B(sn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),da($e),Ge(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Gg(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return da($e),Ze(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Si(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(c(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(We),null;case 4:return Ze(),null;case 10:return da(t.type),null;case 22:case 23:return _t(t),ds(),e!==null&&B(sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return da($e),null;case 25:return null;default:return null}}function $f(e,t){switch(Jo(t),t.tag){case 3:da($e),Ze();break;case 26:case 27:case 5:Si(t);break;case 4:Ze();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:B(We);break;case 10:da(t.type);break;case 22:case 23:_t(t),ds(),e!==null&&B(sn);break;case 24:da($e)}}function Gl(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var r=a.create,f=a.inst;n=r(),f.destroy=n}a=a.next}while(a!==i)}}catch(g){Me(t,t.return,g)}}function Ha(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){var f=n.inst,g=f.destroy;if(g!==void 0){f.destroy=void 0,i=t;var j=a,O=g;try{O()}catch(U){Me(i,j,U)}}}n=n.next}while(n!==r)}}catch(U){Me(t,t.return,U)}}function If(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Gd(t,a)}catch(n){Me(e,e.return,n)}}}function Pf(e,t,a){a.props=hn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(e,t,n)}}function Yl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){Me(e,t,i)}}function ea(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Me(e,t,i)}else a.current=null}function eh(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Me(e,e.return,i)}}function Vs(e,t,a){try{var n=e.stateNode;cy(n,e.type,a,t),n[mt]=t}catch(i){Me(e,e.return,i)}}function th(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Xs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qs(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ra));else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Qs(e,t,a),e=e.sibling;e!==null;)Qs(e,t,a),e=e.sibling}function dr(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(dr(e,t,a),e=e.sibling;e!==null;)dr(e,t,a),e=e.sibling}function ah(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);dt(t,n,a),t[ot]=e,t[mt]=a}catch(r){Me(e,e.return,r)}}var ga=!1,et=!1,Zs=!1,nh=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Yg(e,t){if(e=e.containerInfo,hc=Mr,e=pd(e),Lo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var f=0,g=-1,j=-1,O=0,U=0,q=e,k=null;t:for(;;){for(var H;q!==a||i!==0&&q.nodeType!==3||(g=f+i),q!==r||n!==0&&q.nodeType!==3||(j=f+n),q.nodeType===3&&(f+=q.nodeValue.length),(H=q.firstChild)!==null;)k=q,q=H;for(;;){if(q===e)break t;if(k===a&&++O===i&&(g=f),k===r&&++U===n&&(j=f),(H=q.nextSibling)!==null)break;q=k,k=q.parentNode}q=H}a=g===-1||j===-1?null:{start:g,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(pc={focusedElem:e,selectionRange:a},Mr=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,i=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var K=hn(a.type,i);e=n.getSnapshotBeforeUpdate(K,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Me(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)yc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function lh(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:xa(e,a),n&4&&Gl(5,a);break;case 1:if(xa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(a,a.return,f)}else{var i=hn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(a,a.return,f)}}n&64&&If(a),n&512&&Yl(a,a.return);break;case 3:if(xa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Gd(e,t)}catch(f){Me(a,a.return,f)}}break;case 27:t===null&&n&4&&ah(a);case 26:case 5:xa(e,a),t===null&&n&4&&eh(a),n&512&&Yl(a,a.return);break;case 12:xa(e,a);break;case 31:xa(e,a),n&4&&oh(e,a);break;case 13:xa(e,a),n&4&&sh(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=$g.bind(null,a),yy(e,a))));break;case 22:if(n=a.memoizedState!==null||ga,!n){t=t!==null&&t.memoizedState!==null||et,i=ga;var r=et;ga=n,(et=t)&&!r?va(e,a,(a.subtreeFlags&8772)!==0):xa(e,a),ga=i,et=r}break;case 30:break;default:xa(e,a)}}function ih(e){var t=e.alternate;t!==null&&(e.alternate=null,ih(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,yt=!1;function ya(e,t,a){for(a=a.child;a!==null;)rh(e,t,a),a=a.sibling}function rh(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:et||ea(a,t),ya(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:et||ea(a,t);var n=Ye,i=yt;Xa(a.type)&&(Ye=a.stateNode,yt=!1),ya(e,t,a),$l(a.stateNode),Ye=n,yt=i;break;case 5:et||ea(a,t);case 6:if(n=Ye,i=yt,Ye=null,ya(e,t,a),Ye=n,yt=i,Ye!==null)if(yt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Ye.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Ye!==null&&(yt?(e=Ye,Ih(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),nl(e)):Ih(Ye,a.stateNode));break;case 4:n=Ye,i=yt,Ye=a.stateNode.containerInfo,yt=!0,ya(e,t,a),Ye=n,yt=i;break;case 0:case 11:case 14:case 15:Ha(2,a,t),et||Ha(4,a,t),ya(e,t,a);break;case 1:et||(ea(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Pf(a,t,n)),ya(e,t,a);break;case 21:ya(e,t,a);break;case 22:et=(n=et)||a.memoizedState!==null,ya(e,t,a),et=n;break;default:ya(e,t,a)}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nl(e)}catch(a){Me(t,t.return,a)}}}function sh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nl(e)}catch(a){Me(t,t.return,a)}}function Vg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nh),t;default:throw Error(c(435,e.tag))}}function fr(e,t){var a=Vg(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Ig.bind(null,e,n);n.then(i,i)}})}function xt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],r=e,f=t,g=f;e:for(;g!==null;){switch(g.tag){case 27:if(Xa(g.type)){Ye=g.stateNode,yt=!1;break e}break;case 5:Ye=g.stateNode,yt=!1;break e;case 3:case 4:Ye=g.stateNode.containerInfo,yt=!0;break e}g=g.return}if(Ye===null)throw Error(c(160));rh(r,f,i),Ye=null,yt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ch(t,e),t=t.sibling}var Wt=null;function ch(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),vt(e),n&4&&(Ha(3,e,e.return),Gl(3,e),Ha(5,e,e.return));break;case 1:xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),n&64&&ga&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=Wt;if(xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":r=i.getElementsByTagName("title")[0],(!r||r[ml]||r[ot]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(n),i.head.insertBefore(r,i.querySelector("head > title"))),dt(r,n,a),r[ot]=e,at(r),n=r;break e;case"link":var f=cp("link","href",i).get(n+(a.href||""));if(f){for(var g=0;g<f.length;g++)if(r=f[g],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(g,1);break t}}r=i.createElement(n),dt(r,n,a),i.head.appendChild(r);break;case"meta":if(f=cp("meta","content",i).get(n+(a.content||""))){for(g=0;g<f.length;g++)if(r=f[g],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(g,1);break t}}r=i.createElement(n),dt(r,n,a),i.head.appendChild(r);break;default:throw Error(c(468,n))}r[ot]=e,at(r),n=r}e.stateNode=n}else up(i,e.type,e.stateNode);else e.stateNode=sp(i,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?up(i,e.type,e.stateNode):sp(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Vs(e,e.memoizedProps,a.memoizedProps)}break;case 27:xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),a!==null&&n&4&&Vs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(xt(t,e),vt(e),n&512&&(et||a===null||ea(a,a.return)),e.flags&32){i=e.stateNode;try{An(i,"")}catch(K){Me(e,e.return,K)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,Vs(e,i,a!==null?a.memoizedProps:i)),n&1024&&(Zs=!0);break;case 6:if(xt(t,e),vt(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(K){Me(e,e.return,K)}}break;case 3:if(Cr=null,i=Wt,Wt=Ar(t.containerInfo),xt(t,e),Wt=i,vt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{nl(t.containerInfo)}catch(K){Me(e,e.return,K)}Zs&&(Zs=!1,uh(e));break;case 4:n=Wt,Wt=Ar(e.stateNode.containerInfo),xt(t,e),vt(e),Wt=n;break;case 12:xt(t,e),vt(e);break;case 31:xt(t,e),vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fr(e,n)));break;case 13:xt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(pr=Et()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fr(e,n)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,O=ga,U=et;if(ga=O||i,et=U||j,xt(t,e),et=U,ga=O,vt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||ga||et||pn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(r=j.stateNode,i)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{g=j.stateNode;var q=j.memoizedProps.style,k=q!=null&&q.hasOwnProperty("display")?q.display:null;g.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(K){Me(j,j.return,K)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(K){Me(j,j.return,K)}}}else if(t.tag===18){if(a===null){j=t;try{var H=j.stateNode;i?Ph(H,!0):Ph(j.stateNode,!1)}catch(K){Me(j,j.return,K)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,fr(e,a))));break;case 19:xt(t,e),vt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fr(e,n)));break;case 30:break;case 21:break;default:xt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(th(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,r=Xs(e);dr(e,r,i);break;case 5:var f=a.stateNode;a.flags&32&&(An(f,""),a.flags&=-33);var g=Xs(e);dr(e,g,f);break;case 3:case 4:var j=a.stateNode.containerInfo,O=Xs(e);Qs(e,O,j);break;default:throw Error(c(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function uh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;uh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lh(e,t.alternate,t),t=t.sibling}function pn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ha(4,t,t.return),pn(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Pf(t,t.return,a),pn(t);break;case 27:$l(t.stateNode);case 26:case 5:ea(t,t.return),pn(t);break;case 22:t.memoizedState===null&&pn(t);break;case 30:pn(t);break;default:pn(t)}e=e.sibling}}function va(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,r=t,f=r.flags;switch(r.tag){case 0:case 11:case 15:va(i,r,a),Gl(4,r);break;case 1:if(va(i,r,a),n=r,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(O){Me(n,n.return,O)}if(n=r,i=n.updateQueue,i!==null){var g=n.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)qd(j[i],g)}catch(O){Me(n,n.return,O)}}a&&f&64&&If(r),Yl(r,r.return);break;case 27:ah(r);case 26:case 5:va(i,r,a),a&&n===null&&f&4&&eh(r),Yl(r,r.return);break;case 12:va(i,r,a);break;case 31:va(i,r,a),a&&f&4&&oh(i,r);break;case 13:va(i,r,a),a&&f&4&&sh(i,r);break;case 22:r.memoizedState===null&&va(i,r,a),Yl(r,r.return);break;case 30:break;default:va(i,r,a)}t=t.sibling}}function Ws(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Cl(a))}function Fs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e))}function Ft(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dh(e,t,a,n),t=t.sibling}function dh(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ft(e,t,a,n),i&2048&&Gl(9,t);break;case 1:Ft(e,t,a,n);break;case 3:Ft(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e)));break;case 12:if(i&2048){Ft(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,f=r.id,g=r.onPostCommit;typeof g=="function"&&g(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Me(t,t.return,j)}}else Ft(e,t,a,n);break;case 31:Ft(e,t,a,n);break;case 13:Ft(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,f=t.alternate,t.memoizedState!==null?r._visibility&2?Ft(e,t,a,n):Vl(e,t):r._visibility&2?Ft(e,t,a,n):(r._visibility|=2,Zn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Ws(f,t);break;case 24:Ft(e,t,a,n),i&2048&&Fs(t.alternate,t);break;default:Ft(e,t,a,n)}}function Zn(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,f=t,g=a,j=n,O=f.flags;switch(f.tag){case 0:case 11:case 15:Zn(r,f,g,j,i),Gl(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?Zn(r,f,g,j,i):Vl(r,f):(U._visibility|=2,Zn(r,f,g,j,i)),i&&O&2048&&Ws(f.alternate,f);break;case 24:Zn(r,f,g,j,i),i&&O&2048&&Fs(f.alternate,f);break;default:Zn(r,f,g,j,i)}t=t.sibling}}function Vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:Vl(a,n),i&2048&&Ws(n.alternate,n);break;case 24:Vl(a,n),i&2048&&Fs(n.alternate,n);break;default:Vl(a,n)}t=t.sibling}}var Xl=8192;function Wn(e,t,a){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)fh(e,t,a),e=e.sibling}function fh(e,t,a){switch(e.tag){case 26:Wn(e,t,a),e.flags&Xl&&e.memoizedState!==null&&wy(a,Wt,e.memoizedState,e.memoizedProps);break;case 5:Wn(e,t,a);break;case 3:case 4:var n=Wt;Wt=Ar(e.stateNode.containerInfo),Wn(e,t,a),Wt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Xl,Xl=16777216,Wn(e,t,a),Xl=n):Wn(e,t,a));break;default:Wn(e,t,a)}}function hh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ql(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,mh(n,e)}hh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ph(e),e=e.sibling}function ph(e){switch(e.tag){case 0:case 11:case 15:Ql(e),e.flags&2048&&Ha(9,e,e.return);break;case 3:Ql(e);break;case 12:Ql(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hr(e)):Ql(e);break;default:Ql(e)}}function hr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];nt=n,mh(n,e)}hh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ha(8,t,t.return),hr(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,hr(t));break;default:hr(t)}e=e.sibling}}function mh(e,t){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:Ha(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,nt=n;else e:for(a=e;nt!==null;){n=nt;var i=n.sibling,r=n.return;if(ih(n),n===a){nt=null;break e}if(i!==null){i.return=r,nt=i;break e}nt=r}}}var Xg={getCacheForType:function(e){var t=ct($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct($e).controller.signal}},Qg=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Ue=null,ge=null,ve=0,Oe=0,Ot=null,Ua=!1,Fn=!1,Ks=!1,ba=0,Qe=0,La=0,mn=0,Js=0,Mt=0,Kn=0,Zl=null,bt=null,$s=!1,pr=0,gh=0,mr=1/0,gr=null,qa=null,tt=0,Ga=null,Jn=null,Sa=0,Is=0,Ps=null,yh=null,Wl=0,ec=null;function kt(){return(Ce&2)!==0&&ve!==0?ve&-ve:D.T!==null?rc():Mu()}function xh(){if(Mt===0)if((ve&536870912)===0||ze){var e=Ei;Ei<<=1,(Ei&3932160)===0&&(Ei=262144),Mt=e}else Mt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Mt}function St(e,t,a){(e===Ue&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&($n(e,0),Ya(e,ve,Mt,!1)),pl(e,a),((Ce&2)===0||e!==Ue)&&(e===Ue&&((Ce&2)===0&&(mn|=a),Qe===4&&Ya(e,ve,Mt,!1)),ta(e))}function vh(e,t,a){if((Ce&6)!==0)throw Error(c(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hl(e,t),i=n?Fg(e,t):ac(e,t,!0),r=n;do{if(i===0){Fn&&!n&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!Zg(a)){i=ac(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var g=e;i=Zl;var j=g.current.memoizedState.isDehydrated;if(j&&($n(g,f).flags|=256),f=ac(g,f,!1),f!==2){if(Ks&&!j){g.errorRecoveryDisabledLanes|=r,mn|=r,i=4;break e}r=bt,bt=i,r!==null&&(bt===null?bt=r:bt.push.apply(bt,r))}i=f}if(r=!1,i!==2)continue}}if(i===1){$n(e,0),Ya(e,t,0,!0);break}e:{switch(n=e,r=i,r){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Ya(n,t,Mt,!Ua);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=pr+300-Et(),10<i)){if(Ya(n,t,Mt,!Ua),Ai(n,0,!0)!==0)break e;Sa=t,n.timeoutHandle=Jh(bh.bind(null,n,a,bt,gr,$s,t,Mt,mn,Kn,Ua,r,"Throttled",-0,0),i);break e}bh(n,a,bt,gr,$s,t,Mt,mn,Kn,Ua,r,null,-0,0)}}break}while(!0);ta(e)}function bh(e,t,a,n,i,r,f,g,j,O,U,q,k,H){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ra},fh(t,r,q);var K=(r&62914560)===r?pr-Et():(r&4194048)===r?gh-Et():0;if(K=_y(q,K),K!==null){Sa=r,e.cancelPendingCommit=K(Ch.bind(null,e,t,r,a,n,i,f,g,j,U,q,null,k,H)),Ya(e,r,f,!O);return}}Ch(e,t,r,a,n,i,f,g,j)}function Zg(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],r=i.getSnapshot;i=i.value;try{if(!Tt(r(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ya(e,t,a,n){t&=~Js,t&=~mn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var r=31-At(i),f=1<<r;n[r]=-1,i&=~f}a!==0&&wu(e,a,t)}function yr(){return(Ce&6)===0?(Fl(0),!1):!0}function tc(){if(ge!==null){if(Oe===0)var e=ge.return;else e=ge,ua=rn=null,ys(e),Gn=null,_l=0,e=ge;for(;e!==null;)$f(e.alternate,e),e=e.return;ge=null}}function $n(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,fy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Sa=0,tc(),Ue=e,ge=a=sa(e.current,null),ve=t,Oe=0,Ot=null,Ua=!1,Fn=hl(e,t),Ks=!1,Kn=Mt=Js=mn=La=Qe=0,bt=Zl=null,$s=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-At(n),r=1<<i;t|=e[i],n&=~r}return ba=t,Ui(),a}function Sh(e,t){ue=null,D.H=Ul,t===qn||t===Zi?(t=Nd(),Oe=3):t===is?(t=Nd(),Oe=4):Oe=t===ks?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ge===null&&(Qe=1,rr(e,Ut(t,e.current)))}function jh(){var e=wt.current;return e===null?!0:(ve&4194048)===ve?Yt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Yt:!1}function zh(){var e=D.H;return D.H=Ul,e===null?Ul:e}function Eh(){var e=D.A;return D.A=Xg,e}function xr(){Qe=4,Ua||(ve&4194048)!==ve&&wt.current!==null||(Fn=!0),(La&134217727)===0&&(mn&134217727)===0||Ue===null||Ya(Ue,ve,Mt,!1)}function ac(e,t,a){var n=Ce;Ce|=2;var i=zh(),r=Eh();(Ue!==e||ve!==t)&&(gr=null,$n(e,t)),t=!1;var f=Qe;e:do try{if(Oe!==0&&ge!==null){var g=ge,j=Ot;switch(Oe){case 8:tc(),f=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var O=Oe;if(Oe=0,Ot=null,In(e,g,j,O),a&&Fn){f=0;break e}break;default:O=Oe,Oe=0,Ot=null,In(e,g,j,O)}}Wg(),f=Qe;break}catch(U){Sh(e,U)}while(!0);return t&&e.shellSuspendCounter++,ua=rn=null,Ce=n,D.H=i,D.A=r,ge===null&&(Ue=null,ve=0,Ui()),f}function Wg(){for(;ge!==null;)Rh(ge)}function Fg(e,t){var a=Ce;Ce|=2;var n=zh(),i=Eh();Ue!==e||ve!==t?(gr=null,mr=Et()+500,$n(e,t)):Fn=hl(e,t);e:do try{if(Oe!==0&&ge!==null){t=ge;var r=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,In(e,t,r,1);break;case 2:case 9:if(Dd(r)){Oe=0,Ot=null,Ah(t);break}t=function(){Oe!==2&&Oe!==9||Ue!==e||(Oe=7),ta(e)},r.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Dd(r)?(Oe=0,Ot=null,Ah(t)):(Oe=0,Ot=null,In(e,t,r,7));break;case 5:var f=null;switch(ge.tag){case 26:f=ge.memoizedState;case 5:case 27:var g=ge;if(f?dp(f):g.stateNode.complete){Oe=0,Ot=null;var j=g.sibling;if(j!==null)ge=j;else{var O=g.return;O!==null?(ge=O,vr(O)):ge=null}break t}}Oe=0,Ot=null,In(e,t,r,5);break;case 6:Oe=0,Ot=null,In(e,t,r,6);break;case 8:tc(),Qe=6;break e;default:throw Error(c(462))}}Kg();break}catch(U){Sh(e,U)}while(!0);return ua=rn=null,D.H=n,D.A=i,Ce=a,ge!==null?0:(Ue=null,ve=0,Ui(),Qe)}function Kg(){for(;ge!==null&&!x0();)Rh(ge)}function Rh(e){var t=Kf(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?vr(e):ge=t}function Ah(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Vf(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Vf(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:ys(t);default:$f(a,t),t=ge=zd(t,ba),t=Kf(a,t,ba)}e.memoizedProps=e.pendingProps,t===null?vr(e):ge=t}function In(e,t,a,n){ua=rn=null,ys(t),Gn=null,_l=0;var i=t.return;try{if(Hg(e,i,t,a,ve)){Qe=1,rr(e,Ut(a,e.current)),ge=null;return}}catch(r){if(i!==null)throw ge=i,r;Qe=1,rr(e,Ut(a,e.current)),ge=null;return}t.flags&32768?(ze||n===1?e=!0:Fn||(ve&536870912)!==0?e=!1:(Ua=e=!0,(n===2||n===9||n===3||n===6)&&(n=wt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Th(t,e)):vr(t)}function vr(e){var t=e;do{if((t.flags&32768)!==0){Th(t,Ua);return}e=t.return;var a=qg(t.alternate,t,ba);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Qe===0&&(Qe=5)}function Th(e,t){do{var a=Gg(e.alternate,e);if(a!==null){a.flags&=32767,ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=a}while(e!==null);Qe=6,ge=null}function Ch(e,t,a,n,i,r,f,g,j){e.cancelPendingCommit=null;do br();while(tt!==0);if((Ce&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(r=t.lanes|t.childLanes,r|=Xo,C0(e,a,r,f,g,j),e===Ue&&(ge=Ue=null,ve=0),Jn=t,Ga=e,Sa=a,Is=r,Ps=i,yh=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pg(ji,function(){return kh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,i=Q.p,Q.p=2,f=Ce,Ce|=4;try{Yg(e,t,a)}finally{Ce=f,Q.p=i,D.T=n}}tt=1,wh(),_h(),Oh()}}function wh(){if(tt===1){tt=0;var e=Ga,t=Jn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=Q.p;Q.p=2;var i=Ce;Ce|=4;try{ch(t,e);var r=pc,f=pd(e.containerInfo),g=r.focusedElem,j=r.selectionRange;if(f!==g&&g&&g.ownerDocument&&hd(g.ownerDocument.documentElement,g)){if(j!==null&&Lo(g)){var O=j.start,U=j.end;if(U===void 0&&(U=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(U,g.value.length);else{var q=g.ownerDocument||document,k=q&&q.defaultView||window;if(k.getSelection){var H=k.getSelection(),K=g.textContent.length,ie=Math.min(j.start,K),Ne=j.end===void 0?ie:Math.min(j.end,K);!H.extend&&ie>Ne&&(f=Ne,Ne=ie,ie=f);var T=fd(g,ie),z=fd(g,Ne);if(T&&z&&(H.rangeCount!==1||H.anchorNode!==T.node||H.anchorOffset!==T.offset||H.focusNode!==z.node||H.focusOffset!==z.offset)){var _=q.createRange();_.setStart(T.node,T.offset),H.removeAllRanges(),ie>Ne?(H.addRange(_),H.extend(z.node,z.offset)):(_.setEnd(z.node,z.offset),H.addRange(_))}}}}for(q=[],H=g;H=H.parentNode;)H.nodeType===1&&q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<q.length;g++){var L=q[g];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}Mr=!!hc,pc=hc=null}finally{Ce=i,Q.p=n,D.T=a}}e.current=t,tt=2}}function _h(){if(tt===2){tt=0;var e=Ga,t=Jn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=Q.p;Q.p=2;var i=Ce;Ce|=4;try{lh(e,t.alternate,t)}finally{Ce=i,Q.p=n,D.T=a}}tt=3}}function Oh(){if(tt===4||tt===3){tt=0,v0();var e=Ga,t=Jn,a=Sa,n=yh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,Jn=Ga=null,Mh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(qa=null),bo(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(fl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,i=Q.p,Q.p=2,D.T=null;try{for(var r=e.onRecoverableError,f=0;f<n.length;f++){var g=n[f];r(g.value,{componentStack:g.stack})}}finally{D.T=t,Q.p=i}}(Sa&3)!==0&&br(),ta(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===ec?Wl++:(Wl=0,ec=e):Wl=0,Fl(0)}}function Mh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function br(){return wh(),_h(),Oh(),kh()}function kh(){if(tt!==5)return!1;var e=Ga,t=Is;Is=0;var a=bo(Sa),n=D.T,i=Q.p;try{Q.p=32>a?32:a,D.T=null,a=Ps,Ps=null;var r=Ga,f=Sa;if(tt=0,Jn=Ga=null,Sa=0,(Ce&6)!==0)throw Error(c(331));var g=Ce;if(Ce|=4,ph(r.current),dh(r,r.current,f,a),Ce=g,Fl(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(fl,r)}catch{}return!0}finally{Q.p=i,D.T=n,Mh(e,t)}}function Dh(e,t,a){t=Ut(a,t),t=Ms(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(pl(e,2),ta(e))}function Me(e,t,a){if(e.tag===3)Dh(e,e,a);else for(;t!==null;){if(t.tag===3){Dh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qa===null||!qa.has(n))){e=Ut(a,e),a=Bf(2),n=Da(t,a,2),n!==null&&(Nf(a,n,t,e),pl(n,2),ta(n));break}}t=t.return}}function nc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Qg;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(Ks=!0,i.add(a),e=Jg.bind(null,e,t,a),t.then(e,e))}function Jg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ve&a)===a&&(Qe===4||Qe===3&&(ve&62914560)===ve&&300>Et()-pr?(Ce&2)===0&&$n(e,0):Js|=a,Kn===ve&&(Kn=0)),ta(e)}function Bh(e,t){t===0&&(t=Cu()),e=an(e,t),e!==null&&(pl(e,t),ta(e))}function $g(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Bh(e,a)}function Ig(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),Bh(e,a)}function Pg(e,t){return go(e,t)}var Sr=null,Pn=null,lc=!1,jr=!1,ic=!1,Va=0;function ta(e){e!==Pn&&e.next===null&&(Pn===null?Sr=Pn=e:Pn=Pn.next=e),jr=!0,lc||(lc=!0,ty())}function Fl(e,t){if(!ic&&jr){ic=!0;do for(var a=!1,n=Sr;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var r=0;else{var f=n.suspendedLanes,g=n.pingedLanes;r=(1<<31-At(42|e)+1)-1,r&=i&~(f&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Lh(n,r))}else r=ve,r=Ai(n,n===Ue?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||hl(n,r)||(a=!0,Lh(n,r));n=n.next}while(a);ic=!1}}function ey(){Nh()}function Nh(){jr=lc=!1;var e=0;Va!==0&&dy()&&(e=Va);for(var t=Et(),a=null,n=Sr;n!==null;){var i=n.next,r=Hh(n,t);r===0?(n.next=null,a===null?Sr=i:a.next=i,i===null&&(Pn=a)):(a=n,(e!==0||(r&3)!==0)&&(jr=!0)),n=i}tt!==0&&tt!==5||Fl(e),Va!==0&&(Va=0)}function Hh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var f=31-At(r),g=1<<f,j=i[f];j===-1?((g&a)===0||(g&n)!==0)&&(i[f]=T0(g,t)):j<=t&&(e.expiredLanes|=g),r&=~g}if(t=Ue,a=ve,a=Ai(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&yo(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&yo(n),bo(a)){case 2:case 8:a=Au;break;case 32:a=ji;break;case 268435456:a=Tu;break;default:a=ji}return n=Uh.bind(null,e),a=go(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&yo(n),e.callbackPriority=2,e.callbackNode=null,2}function Uh(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(br()&&e.callbackNode!==a)return null;var n=ve;return n=Ai(e,e===Ue?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(vh(e,n,t),Hh(e,Et()),e.callbackNode!=null&&e.callbackNode===a?Uh.bind(null,e):null)}function Lh(e,t){if(br())return null;vh(e,t,!0)}function ty(){hy(function(){(Ce&6)!==0?go(Ru,ey):Nh()})}function rc(){if(Va===0){var e=Un;e===0&&(e=zi,zi<<=1,(zi&261888)===0&&(zi=256)),Va=e}return Va}function qh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_i(""+e)}function Gh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function ay(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var r=qh((i[mt]||null).action),f=n.submitter;f&&(t=(t=f[mt]||null)?qh(t.formAction):f.getAttribute("formAction"),t!==null&&(r=t,f=null));var g=new Di("action","action",null,n,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Va!==0){var j=f?Gh(i,f):new FormData(i);As(a,{pending:!0,data:j,method:i.method,action:r},null,j)}}else typeof r=="function"&&(g.preventDefault(),j=f?Gh(i,f):new FormData(i),As(a,{pending:!0,data:j,method:i.method,action:r},r,j))},currentTarget:i}]})}}for(var oc=0;oc<Vo.length;oc++){var sc=Vo[oc],ny=sc.toLowerCase(),ly=sc[0].toUpperCase()+sc.slice(1);Zt(ny,"on"+ly)}Zt(yd,"onAnimationEnd"),Zt(xd,"onAnimationIteration"),Zt(vd,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(bg,"onTransitionRun"),Zt(Sg,"onTransitionStart"),Zt(jg,"onTransitionCancel"),Zt(bd,"onTransitionEnd"),En("onMouseEnter",["mouseout","mouseover"]),En("onMouseLeave",["mouseout","mouseover"]),En("onPointerEnter",["pointerout","pointerover"]),En("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function Yh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var f=n.length-1;0<=f;f--){var g=n[f],j=g.instance,O=g.currentTarget;if(g=g.listener,j!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=O;try{r(i)}catch(U){Hi(U)}i.currentTarget=null,r=j}else for(f=0;f<n.length;f++){if(g=n[f],j=g.instance,O=g.currentTarget,g=g.listener,j!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=O;try{r(i)}catch(U){Hi(U)}i.currentTarget=null,r=j}}}}function ye(e,t){var a=t[So];a===void 0&&(a=t[So]=new Set);var n=e+"__bubble";a.has(n)||(Vh(t,e,2,!1),a.add(n))}function cc(e,t,a){var n=0;t&&(n|=4),Vh(a,e,n,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[zr]){e[zr]=!0,Bu.forEach(function(a){a!=="selectionchange"&&(iy.has(a)||cc(a,!1,e),cc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,cc("selectionchange",!1,t))}}function Vh(e,t,a,n){switch(xp(t)){case 2:var i=ky;break;case 8:i=Dy;break;default:i=Rc}a=i.bind(null,t,a,e),i=void 0,!_o||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function dc(e,t,a,n,i){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var g=n.stateNode.containerInfo;if(g===i)break;if(f===4)for(f=n.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;g!==null;){if(f=Sn(g),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){n=r=f;continue e}g=g.parentNode}}n=n.return}Wu(function(){var O=r,U=Co(a),q=[];e:{var k=Sd.get(e);if(k!==void 0){var H=Di,K=e;switch(e){case"keypress":if(Mi(a)===0)break e;case"keydown":case"keyup":H=I0;break;case"focusin":K="focus",H=Do;break;case"focusout":K="blur",H=Do;break;case"beforeblur":case"afterblur":H=Do;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=Ju;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=q0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=tg;break;case yd:case xd:case vd:H=V0;break;case bd:H=ng;break;case"scroll":case"scrollend":H=U0;break;case"wheel":H=ig;break;case"copy":case"cut":case"paste":H=Q0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Iu;break;case"toggle":case"beforetoggle":H=og}var ie=(t&4)!==0,Ne=!ie&&(e==="scroll"||e==="scrollend"),T=ie?k!==null?k+"Capture":null:k;ie=[];for(var z=O,_;z!==null;){var L=z;if(_=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||_===null||T===null||(L=yl(z,T),L!=null&&ie.push(Jl(z,L,_))),Ne)break;z=z.return}0<ie.length&&(k=new H(k,K,null,a,U),q.push({event:k,listeners:ie}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",k&&a!==To&&(K=a.relatedTarget||a.fromElement)&&(Sn(K)||K[bn]))break e;if((H||k)&&(k=U.window===U?U:(k=U.ownerDocument)?k.defaultView||k.parentWindow:window,H?(K=a.relatedTarget||a.toElement,H=O,K=K?Sn(K):null,K!==null&&(Ne=h(K),ie=K.tag,K!==Ne||ie!==5&&ie!==27&&ie!==6)&&(K=null)):(H=null,K=O),H!==K)){if(ie=Ju,L="onMouseLeave",T="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Iu,L="onPointerLeave",T="onPointerEnter",z="pointer"),Ne=H==null?k:gl(H),_=K==null?k:gl(K),k=new ie(L,z+"leave",H,a,U),k.target=Ne,k.relatedTarget=_,L=null,Sn(U)===O&&(ie=new ie(T,z+"enter",K,a,U),ie.target=_,ie.relatedTarget=Ne,L=ie),Ne=L,H&&K)t:{for(ie=ry,T=H,z=K,_=0,L=T;L;L=ie(L))_++;L=0;for(var ne=z;ne;ne=ie(ne))L++;for(;0<_-L;)T=ie(T),_--;for(;0<L-_;)z=ie(z),L--;for(;_--;){if(T===z||z!==null&&T===z.alternate){ie=T;break t}T=ie(T),z=ie(z)}ie=null}else ie=null;H!==null&&Xh(q,k,H,ie,!1),K!==null&&Ne!==null&&Xh(q,Ne,K,ie,!0)}}e:{if(k=O?gl(O):window,H=k.nodeName&&k.nodeName.toLowerCase(),H==="select"||H==="input"&&k.type==="file")var Ae=rd;else if(ld(k))if(od)Ae=yg;else{Ae=mg;var ee=pg}else H=k.nodeName,!H||H.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?O&&Ao(O.elementType)&&(Ae=rd):Ae=gg;if(Ae&&(Ae=Ae(e,O))){id(q,Ae,a,U);break e}ee&&ee(e,k,O),e==="focusout"&&O&&k.type==="number"&&O.memoizedProps.value!=null&&Ro(k,"number",k.value)}switch(ee=O?gl(O):window,e){case"focusin":(ld(ee)||ee.contentEditable==="true")&&(_n=ee,qo=O,Rl=null);break;case"focusout":Rl=qo=_n=null;break;case"mousedown":Go=!0;break;case"contextmenu":case"mouseup":case"dragend":Go=!1,md(q,a,U);break;case"selectionchange":if(vg)break;case"keydown":case"keyup":md(q,a,U)}var fe;if(No)e:{switch(e){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else wn?ad(e,a)&&(be="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(be="onCompositionStart");be&&(Pu&&a.locale!=="ko"&&(wn||be!=="onCompositionStart"?be==="onCompositionEnd"&&wn&&(fe=Fu()):(Ta=U,Oo="value"in Ta?Ta.value:Ta.textContent,wn=!0)),ee=Er(O,be),0<ee.length&&(be=new $u(be,e,null,a,U),q.push({event:be,listeners:ee}),fe?be.data=fe:(fe=nd(a),fe!==null&&(be.data=fe)))),(fe=cg?ug(e,a):dg(e,a))&&(be=Er(O,"onBeforeInput"),0<be.length&&(ee=new $u("onBeforeInput","beforeinput",null,a,U),q.push({event:ee,listeners:be}),ee.data=fe)),ay(q,e,O,a,U)}Yh(q,t)})}function Jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Er(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=yl(e,a),i!=null&&n.unshift(Jl(e,i,r)),i=yl(e,t),i!=null&&n.push(Jl(e,i,r))),e.tag===3)return n;e=e.return}return[]}function ry(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xh(e,t,a,n,i){for(var r=t._reactName,f=[];a!==null&&a!==n;){var g=a,j=g.alternate,O=g.stateNode;if(g=g.tag,j!==null&&j===n)break;g!==5&&g!==26&&g!==27||O===null||(j=O,i?(O=yl(a,r),O!=null&&f.unshift(Jl(a,O,j))):i||(O=yl(a,r),O!=null&&f.push(Jl(a,O,j)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var oy=/\r\n?/g,sy=/\u0000|\uFFFD/g;function Qh(e){return(typeof e=="string"?e:""+e).replace(oy,`
9
+ `).replace(sy,"")}function Zh(e,t){return t=Qh(t),Qh(e)===t}function Be(e,t,a,n,i,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||An(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&An(e,""+n);break;case"className":Ci(e,"class",n);break;case"tabIndex":Ci(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ci(e,a,n);break;case"style":Qu(e,n,r);break;case"data":if(t!=="object"){Ci(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_i(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&Be(e,t,"name",i.name,i,null),Be(e,t,"formEncType",i.formEncType,i,null),Be(e,t,"formMethod",i.formMethod,i,null),Be(e,t,"formTarget",i.formTarget,i,null)):(Be(e,t,"encType",i.encType,i,null),Be(e,t,"method",i.method,i,null),Be(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=_i(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ra);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=_i(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":ye("beforetoggle",e),ye("toggle",e),Ti(e,"popover",n);break;case"xlinkActuate":ia(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ia(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ia(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ia(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ia(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ia(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ia(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ia(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ia(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ti(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=N0.get(a)||a,Ti(e,a,n))}}function fc(e,t,a,n,i,r){switch(a){case"style":Qu(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?An(e,n):(typeof n=="number"||typeof n=="bigint")&&An(e,""+n);break;case"onScroll":n!=null&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nu.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),r=e[mt]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):Ti(e,a,n)}}}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var n=!1,i=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=null)switch(r){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Be(e,t,r,f,a,null)}}i&&Be(e,t,"srcSet",a.srcSet,a,null),n&&Be(e,t,"src",a.src,a,null);return;case"input":ye("invalid",e);var g=r=f=i=null,j=null,O=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":i=U;break;case"type":f=U;break;case"checked":j=U;break;case"defaultChecked":O=U;break;case"value":r=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:Be(e,t,n,U,a,null)}}Gu(e,r,g,j,O,f,i,!1);return;case"select":ye("invalid",e),n=f=r=null;for(i in a)if(a.hasOwnProperty(i)&&(g=a[i],g!=null))switch(i){case"value":r=g;break;case"defaultValue":f=g;break;case"multiple":n=g;default:Be(e,t,i,g,a,null)}t=r,a=f,e.multiple=!!n,t!=null?Rn(e,!!n,t,!1):a!=null&&Rn(e,!!n,a,!0);return;case"textarea":ye("invalid",e),r=i=n=null;for(f in a)if(a.hasOwnProperty(f)&&(g=a[f],g!=null))switch(f){case"value":n=g;break;case"defaultValue":i=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Be(e,t,f,g,a,null)}Vu(e,n,i,r);return;case"option":for(j in a)a.hasOwnProperty(j)&&(n=a[j],n!=null)&&(j==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Be(e,t,j,n,a,null));return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(n=0;n<Kl.length;n++)ye(Kl[n],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in a)if(a.hasOwnProperty(O)&&(n=a[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Be(e,t,O,n,a,null)}return;default:if(Ao(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&fc(e,t,U,n,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(n=a[g],n!=null&&Be(e,t,g,n,a,null))}function cy(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,f=null,g=null,j=null,O=null,U=null;for(H in a){var q=a[H];if(a.hasOwnProperty(H)&&q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":j=q;default:n.hasOwnProperty(H)||Be(e,t,H,null,n,q)}}for(var k in n){var H=n[k];if(q=a[k],n.hasOwnProperty(k)&&(H!=null||q!=null))switch(k){case"type":r=H;break;case"name":i=H;break;case"checked":O=H;break;case"defaultChecked":U=H;break;case"value":f=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:H!==q&&Be(e,t,k,H,n,q)}}Eo(e,f,g,j,O,U,r,i);return;case"select":H=f=g=k=null;for(r in a)if(j=a[r],a.hasOwnProperty(r)&&j!=null)switch(r){case"value":break;case"multiple":H=j;default:n.hasOwnProperty(r)||Be(e,t,r,null,n,j)}for(i in n)if(r=n[i],j=a[i],n.hasOwnProperty(i)&&(r!=null||j!=null))switch(i){case"value":k=r;break;case"defaultValue":g=r;break;case"multiple":f=r;default:r!==j&&Be(e,t,i,r,n,j)}t=g,a=f,n=H,k!=null?Rn(e,!!a,k,!1):!!n!=!!a&&(t!=null?Rn(e,!!a,t,!0):Rn(e,!!a,a?[]:"",!1));return;case"textarea":H=k=null;for(g in a)if(i=a[g],a.hasOwnProperty(g)&&i!=null&&!n.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Be(e,t,g,null,n,i)}for(f in n)if(i=n[f],r=a[f],n.hasOwnProperty(f)&&(i!=null||r!=null))switch(f){case"value":k=i;break;case"defaultValue":H=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==r&&Be(e,t,f,i,n,r)}Yu(e,k,H);return;case"option":for(var K in a)k=a[K],a.hasOwnProperty(K)&&k!=null&&!n.hasOwnProperty(K)&&(K==="selected"?e.selected=!1:Be(e,t,K,null,n,k));for(j in n)k=n[j],H=a[j],n.hasOwnProperty(j)&&k!==H&&(k!=null||H!=null)&&(j==="selected"?e.selected=k&&typeof k!="function"&&typeof k!="symbol":Be(e,t,j,k,n,H));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in a)k=a[ie],a.hasOwnProperty(ie)&&k!=null&&!n.hasOwnProperty(ie)&&Be(e,t,ie,null,n,k);for(O in n)if(k=n[O],H=a[O],n.hasOwnProperty(O)&&k!==H&&(k!=null||H!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(c(137,t));break;default:Be(e,t,O,k,n,H)}return;default:if(Ao(t)){for(var Ne in a)k=a[Ne],a.hasOwnProperty(Ne)&&k!==void 0&&!n.hasOwnProperty(Ne)&&fc(e,t,Ne,void 0,n,k);for(U in n)k=n[U],H=a[U],!n.hasOwnProperty(U)||k===H||k===void 0&&H===void 0||fc(e,t,U,k,n,H);return}}for(var T in a)k=a[T],a.hasOwnProperty(T)&&k!=null&&!n.hasOwnProperty(T)&&Be(e,t,T,null,n,k);for(q in n)k=n[q],H=a[q],!n.hasOwnProperty(q)||k===H||k==null&&H==null||Be(e,t,q,k,n,H)}function Wh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],r=i.transferSize,f=i.initiatorType,g=i.duration;if(r&&g&&Wh(f)){for(f=0,g=i.responseEnd,n+=1;n<a.length;n++){var j=a[n],O=j.startTime;if(O>g)break;var U=j.transferSize,q=j.initiatorType;U&&Wh(q)&&(j=j.responseEnd,f+=U*(j<g?1:(g-O)/(j-O)))}if(--n,t+=8*(r+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var hc=null,pc=null;function Rr(e){return e.nodeType===9?e:e.ownerDocument}function Fh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function mc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gc=null;function dy(){var e=window.event;return e&&e.type==="popstate"?e===gc?!1:(gc=e,!0):(gc=null,!1)}var Jh=typeof setTimeout=="function"?setTimeout:void 0,fy=typeof clearTimeout=="function"?clearTimeout:void 0,$h=typeof Promise=="function"?Promise:void 0,hy=typeof queueMicrotask=="function"?queueMicrotask:typeof $h<"u"?function(e){return $h.resolve(null).then(e).catch(py)}:Jh;function py(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Ih(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),nl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")$l(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,$l(a);for(var r=a.firstChild;r;){var f=r.nextSibling,g=r.nodeName;r[ml]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&$l(e.ownerDocument.body);a=i}while(a);nl(t)}function Ph(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":yc(a),jo(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function my(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[ml])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function gy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Vt(e.nextSibling),e===null))return null;return e}function ep(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function xc(e){return e.data==="$?"||e.data==="$~"}function vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yy(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bc=null;function tp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Vt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ap(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function np(e,t,a){switch(t=Rr(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function $l(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jo(e)}var Xt=new Map,lp=new Set;function Ar(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Q.d;Q.d={f:xy,r:vy,D:by,C:Sy,L:jy,m:zy,X:Ry,S:Ey,M:Ay};function xy(){var e=ja.f(),t=yr();return e||t}function vy(e){var t=jn(e);t!==null&&t.tag===5&&t.type==="form"?Sf(t):ja.r(e)}var el=typeof document>"u"?null:document;function ip(e,t,a){var n=el;if(n&&typeof t=="string"&&t){var i=Nt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),lp.has(i)||(lp.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),dt(t,"link",e),at(t),n.head.appendChild(t)))}}function by(e){ja.D(e),ip("dns-prefetch",e,null)}function Sy(e,t){ja.C(e,t),ip("preconnect",e,t)}function jy(e,t,a){ja.L(e,t,a);var n=el;if(n&&e&&t){var i='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Nt(a.imageSizes)+'"]')):i+='[href="'+Nt(e)+'"]';var r=i;switch(t){case"style":r=tl(e);break;case"script":r=al(e)}Xt.has(r)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(r,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Il(r))||t==="script"&&n.querySelector(Pl(r))||(t=n.createElement("link"),dt(t,"link",e),at(t),n.head.appendChild(t)))}}function zy(e,t){ja.m(e,t);var a=el;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Nt(n)+'"][href="'+Nt(e)+'"]',r=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=al(e)}if(!Xt.has(r)&&(e=y({rel:"modulepreload",href:e},t),Xt.set(r,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Pl(r)))return}n=a.createElement("link"),dt(n,"link",e),at(n),a.head.appendChild(n)}}}function Ey(e,t,a){ja.S(e,t,a);var n=el;if(n&&e){var i=zn(n).hoistableStyles,r=tl(e);t=t||"default";var f=i.get(r);if(!f){var g={loading:0,preload:null};if(f=n.querySelector(Il(r)))g.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(r))&&Sc(e,a);var j=f=n.createElement("link");at(j),dt(j,"link",e),j._p=new Promise(function(O,U){j.onload=O,j.onerror=U}),j.addEventListener("load",function(){g.loading|=1}),j.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Tr(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:g},i.set(r,f)}}}function Ry(e,t){ja.X(e,t);var a=el;if(a&&e){var n=zn(a).hoistableScripts,i=al(e),r=n.get(i);r||(r=a.querySelector(Pl(i)),r||(e=y({src:e,async:!0},t),(t=Xt.get(i))&&jc(e,t),r=a.createElement("script"),at(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function Ay(e,t){ja.M(e,t);var a=el;if(a&&e){var n=zn(a).hoistableScripts,i=al(e),r=n.get(i);r||(r=a.querySelector(Pl(i)),r||(e=y({src:e,async:!0,type:"module"},t),(t=Xt.get(i))&&jc(e,t),r=a.createElement("script"),at(r),dt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function rp(e,t,a,n){var i=(i=oe.current)?Ar(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=tl(a.href),a=zn(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=tl(a.href);var r=zn(i).hoistableStyles,f=r.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,f),(r=i.querySelector(Il(e)))&&!r._p&&(f.instance=r,f.state.loading=5),Xt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Xt.set(e,a),r||Ty(i,e,a,f.state))),t&&n===null)throw Error(c(528,""));return f}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=al(a),a=zn(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function tl(e){return'href="'+Nt(e)+'"'}function Il(e){return'link[rel="stylesheet"]['+e+"]"}function op(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Ty(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),dt(t,"link",a),at(t),e.head.appendChild(t))}function al(e){return'[src="'+Nt(e)+'"]'}function Pl(e){return"script[async]"+e}function sp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(n)return t.instance=n,at(n),n;var i=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),at(n),dt(n,"style",i),Tr(n,a.precedence,e),t.instance=n;case"stylesheet":i=tl(a.href);var r=e.querySelector(Il(i));if(r)return t.state.loading|=4,t.instance=r,at(r),r;n=op(a),(i=Xt.get(i))&&Sc(n,i),r=(e.ownerDocument||e).createElement("link"),at(r);var f=r;return f._p=new Promise(function(g,j){f.onload=g,f.onerror=j}),dt(r,"link",n),t.state.loading|=4,Tr(r,a.precedence,e),t.instance=r;case"script":return r=al(a.src),(i=e.querySelector(Pl(r)))?(t.instance=i,at(i),i):(n=a,(i=Xt.get(r))&&(n=y({},a),jc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),at(i),dt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Tr(n,a.precedence,e));return t.instance}function Tr(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,r=i,f=0;f<n.length;f++){var g=n[f];if(g.dataset.precedence===t)r=g;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cr=null;function cp(e,t,a){if(Cr===null){var n=new Map,i=Cr=new Map;i.set(a,n)}else i=Cr,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var r=a[i];if(!(r[ml]||r[ot]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(t)||"";f=e+f;var g=n.get(f);g?g.push(r):n.set(f,[r])}}return n}function up(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cy(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function dp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wy(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=tl(n.href),r=t.querySelector(Il(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=wr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,at(r);return}r=t.ownerDocument||t,n=op(n),(i=Xt.get(i))&&Sc(n,i),r=r.createElement("link"),at(r);var f=r;f._p=new Promise(function(g,j){f.onload=g,f.onerror=j}),dt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=wr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var zc=0;function _y(e,t){return e.stylesheets&&e.count===0&&Or(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Or(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&zc===0&&(zc=62500*uy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Or(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>zc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function wr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Or(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _r=null;function Or(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_r=new Map,t.forEach(Oy,e),_r=null,wr.call(e))}function Oy(e,t){if(!(t.state.loading&4)){var a=_r.get(e);if(a)var n=a.get(null);else{a=new Map,_r.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var f=i[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}i=t.instance,f=i.getAttribute("data-precedence"),r=a.get(f)||n,r===n&&a.set(null,i),a.set(f,i),this.count++,n=wr.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function My(e,t,a,n,i,r,f,g,j){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=xo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.hiddenUpdates=xo(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function fp(e,t,a,n,i,r,f,g,j,O,U,q){return e=new My(e,t,a,f,j,O,U,q,g),t=1,r===!0&&(t|=24),r=Ct(3,null,null,t),e.current=r,r.stateNode=e,t=as(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},rs(r),e}function hp(e){return e?(e=kn,e):kn}function pp(e,t,a,n,i,r){i=hp(i),n.context===null?n.context=i:n.pendingContext=i,n=ka(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Da(e,n,t),a!==null&&(St(a,e,t),Ml(a,e,t))}function mp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Ec(e,t){mp(e,t),(e=e.alternate)&&mp(e,t)}function gp(e){if(e.tag===13||e.tag===31){var t=an(e,67108864);t!==null&&St(t,e,67108864),Ec(e,67108864)}}function yp(e){if(e.tag===13||e.tag===31){var t=kt();t=vo(t);var a=an(e,t);a!==null&&St(a,e,t),Ec(e,t)}}var Mr=!0;function ky(e,t,a,n){var i=D.T;D.T=null;var r=Q.p;try{Q.p=2,Rc(e,t,a,n)}finally{Q.p=r,D.T=i}}function Dy(e,t,a,n){var i=D.T;D.T=null;var r=Q.p;try{Q.p=8,Rc(e,t,a,n)}finally{Q.p=r,D.T=i}}function Rc(e,t,a,n){if(Mr){var i=Ac(n);if(i===null)dc(e,t,n,kr,a),vp(e,n);else if(Ny(i,e,t,a,n))n.stopPropagation();else if(vp(e,n),t&4&&-1<By.indexOf(e)){for(;i!==null;){var r=jn(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=$a(r.pendingLanes);if(f!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;f;){var j=1<<31-At(f);g.entanglements[1]|=j,f&=~j}ta(r),(Ce&6)===0&&(mr=Et()+500,Fl(0))}}break;case 31:case 13:g=an(r,2),g!==null&&St(g,r,2),yr(),Ec(r,2)}if(r=Ac(n),r===null&&dc(e,t,n,kr,a),r===i)break;i=r}i!==null&&n.stopPropagation()}else dc(e,t,n,null,a)}}function Ac(e){return e=Co(e),Tc(e)}var kr=null;function Tc(e){if(kr=null,e=Sn(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=p(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kr=e,null}function xp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(b0()){case Ru:return 2;case Au:return 8;case ji:case S0:return 32;case Tu:return 268435456;default:return 32}default:return 32}}var Cc=!1,Qa=null,Za=null,Wa=null,ti=new Map,ai=new Map,Fa=[],By="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vp(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function ni(e,t,a,n,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[i]},t!==null&&(t=jn(t),t!==null&&gp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ny(e,t,a,n,i){switch(t){case"focusin":return Qa=ni(Qa,e,t,a,n,i),!0;case"dragenter":return Za=ni(Za,e,t,a,n,i),!0;case"mouseover":return Wa=ni(Wa,e,t,a,n,i),!0;case"pointerover":var r=i.pointerId;return ti.set(r,ni(ti.get(r)||null,e,t,a,n,i)),!0;case"gotpointercapture":return r=i.pointerId,ai.set(r,ni(ai.get(r)||null,e,t,a,n,i)),!0}return!1}function bp(e){var t=Sn(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=p(a),t!==null){e.blockedOn=t,ku(e.priority,function(){yp(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,ku(e.priority,function(){yp(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ac(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);To=n,a.target.dispatchEvent(n),To=null}else return t=jn(a),t!==null&&gp(t),e.blockedOn=a,!1;t.shift()}return!0}function Sp(e,t,a){Dr(e)&&a.delete(t)}function Hy(){Cc=!1,Qa!==null&&Dr(Qa)&&(Qa=null),Za!==null&&Dr(Za)&&(Za=null),Wa!==null&&Dr(Wa)&&(Wa=null),ti.forEach(Sp),ai.forEach(Sp)}function Br(e,t){e.blockedOn===t&&(e.blockedOn=null,Cc||(Cc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Hy)))}var Nr=null;function jp(e){Nr!==e&&(Nr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Nr===e&&(Nr=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Tc(n||a)===null)continue;break}var r=jn(a);r!==null&&(e.splice(t,3),t-=3,As(r,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function nl(e){function t(j){return Br(j,e)}Qa!==null&&Br(Qa,e),Za!==null&&Br(Za,e),Wa!==null&&Br(Wa,e),ti.forEach(t),ai.forEach(t);for(var a=0;a<Fa.length;a++){var n=Fa[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)bp(a),a.blockedOn===null&&Fa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],r=a[n+1],f=i[mt]||null;if(typeof r=="function")f||jp(a);else if(f){var g=null;if(r&&r.hasAttribute("formAction")){if(i=r,f=r[mt]||null)g=f.formAction;else if(Tc(i)!==null)continue}else g=f.action;typeof g=="function"?a[n+1]=g:(a.splice(n,3),n-=3),jp(a)}}}function zp(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function wc(e){this._internalRoot=e}Hr.prototype.render=wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=kt();pp(a,n,e,t,null,null)},Hr.prototype.unmount=wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pp(e.current,2,null,e,null,null),yr(),t[bn]=null}};function Hr(e){this._internalRoot=e}Hr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mu();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fa.length&&t!==0&&t<Fa[a].priority;a++);Fa.splice(a,0,e),a===0&&bp(e)}};var Ep=o.version;if(Ep!=="19.2.4")throw Error(c(527,Ep,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=m(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Uy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ur.isDisabled&&Ur.supportsFiber)try{fl=Ur.inject(Uy),Rt=Ur}catch{}}return ii.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,n="",i=Of,r=Mf,f=kf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=fp(e,1,!1,null,null,a,n,null,i,r,f,zp),e[bn]=t.current,uc(e),new wc(t)},ii.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var n=!1,i="",r=Of,f=Mf,g=kf,j=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=fp(e,1,!0,t,a??null,n,i,j,r,f,g,zp),t.context=hp(null),a=t.current,n=kt(),n=vo(n),i=ka(n),i.callback=null,Da(a,i,n),a=n,t.current.lanes=a,pl(t,a),ta(t),e[bn]=t.current,uc(e),new Hr(t)},ii.version="19.2.4",ii}var Dp;function Fy(){if(Dp)return Mc.exports;Dp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}return l(),Mc.exports=Wy(),Mc.exports}var Ky=Fy();const Jy=zm(Ky);var Bp="popstate";function Np(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function $y(l={}){function o(c,d){let h=d.state?.masked,{pathname:p,search:v,hash:b}=h||c.location;return Jc("",{pathname:p,search:v,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function u(c,d){return typeof d=="string"?d:fi(d)}return Py(o,u,null,l)}function Ve(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function Kt(l,o){if(!l){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Iy(){return Math.random().toString(36).substring(2,10)}function Hp(l,o){return{usr:l.state,key:l.key,idx:o,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Jc(l,o,u=null,c,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof o=="string"?ol(o):o,state:u,key:o&&o.key||c||Iy(),unstable_mask:d}}function fi({pathname:l="/",search:o="",hash:u=""}){return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function ol(l){let o={};if(l){let u=l.indexOf("#");u>=0&&(o.hash=l.substring(u),l=l.substring(0,u));let c=l.indexOf("?");c>=0&&(o.search=l.substring(c),l=l.substring(0,c)),l&&(o.pathname=l)}return o}function Py(l,o,u,c={}){let{window:d=document.defaultView,v5Compat:h=!1}=c,p=d.history,v="POP",b=null,m=x();m==null&&(m=0,p.replaceState({...p.state,idx:m},""));function x(){return(p.state||{idx:null}).idx}function y(){v="POP";let w=x(),Y=w==null?null:w-m;m=w,b&&b({action:v,location:C.location,delta:Y})}function M(w,Y){v="PUSH";let I=Np(w)?w:Jc(C.location,w,Y);m=x()+1;let X=Hp(I,m),le=C.createHref(I.unstable_mask||I);try{p.pushState(X,"",le)}catch(ce){if(ce instanceof DOMException&&ce.name==="DataCloneError")throw ce;d.location.assign(le)}h&&b&&b({action:v,location:C.location,delta:1})}function E(w,Y){v="REPLACE";let I=Np(w)?w:Jc(C.location,w,Y);m=x();let X=Hp(I,m),le=C.createHref(I.unstable_mask||I);p.replaceState(X,"",le),h&&b&&b({action:v,location:C.location,delta:0})}function R(w){return e1(w)}let C={get action(){return v},get location(){return l(d,p)},listen(w){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(Bp,y),b=w,()=>{d.removeEventListener(Bp,y),b=null}},createHref(w){return o(d,w)},createURL:R,encodeLocation(w){let Y=R(w);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:M,replace:E,go(w){return p.go(w)}};return C}function e1(l,o=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(u,"No window.location.(origin|href) available to create URL");let c=typeof l=="string"?l:fi(l);return c=c.replace(/ $/,"%20"),!o&&c.startsWith("//")&&(c=u+c),new URL(c,u)}function Em(l,o,u="/"){return t1(l,o,u,!1)}function t1(l,o,u,c){let d=typeof o=="string"?ol(o):o,h=Ea(d.pathname||"/",u);if(h==null)return null;let p=Rm(l);a1(p);let v=null;for(let b=0;v==null&&b<p.length;++b){let m=h1(h);v=d1(p[b],m,c)}return v}function Rm(l,o=[],u=[],c="",d=!1){let h=(p,v,b=d,m)=>{let x={relativePath:m===void 0?p.path||"":m,caseSensitive:p.caseSensitive===!0,childrenIndex:v,route:p};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(c)&&b)return;Ve(x.relativePath.startsWith(c),`Absolute route path "${x.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(c.length)}let y=na([c,x.relativePath]),M=u.concat(x);p.children&&p.children.length>0&&(Ve(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Rm(p.children,o,M,y,b)),!(p.path==null&&!p.index)&&o.push({path:y,score:c1(y,p.index),routesMeta:M})};return l.forEach((p,v)=>{if(p.path===""||!p.path?.includes("?"))h(p,v);else for(let b of Am(p.path))h(p,v,!0,b)}),o}function Am(l){let o=l.split("/");if(o.length===0)return[];let[u,...c]=o,d=u.endsWith("?"),h=u.replace(/\?$/,"");if(c.length===0)return d?[h,""]:[h];let p=Am(c.join("/")),v=[];return v.push(...p.map(b=>b===""?h:[h,b].join("/"))),d&&v.push(...p),v.map(b=>l.startsWith("/")&&b===""?"/":b)}function a1(l){l.sort((o,u)=>o.score!==u.score?u.score-o.score:u1(o.routesMeta.map(c=>c.childrenIndex),u.routesMeta.map(c=>c.childrenIndex)))}var n1=/^:[\w-]+$/,l1=3,i1=2,r1=1,o1=10,s1=-2,Up=l=>l==="*";function c1(l,o){let u=l.split("/"),c=u.length;return u.some(Up)&&(c+=s1),o&&(c+=i1),u.filter(d=>!Up(d)).reduce((d,h)=>d+(n1.test(h)?l1:h===""?r1:o1),c)}function u1(l,o){return l.length===o.length&&l.slice(0,-1).every((c,d)=>c===o[d])?l[l.length-1]-o[o.length-1]:0}function d1(l,o,u=!1){let{routesMeta:c}=l,d={},h="/",p=[];for(let v=0;v<c.length;++v){let b=c[v],m=v===c.length-1,x=h==="/"?o:o.slice(h.length)||"/",y=$r({path:b.relativePath,caseSensitive:b.caseSensitive,end:m},x),M=b.route;if(!y&&m&&u&&!c[c.length-1].route.index&&(y=$r({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},x)),!y)return null;Object.assign(d,y.params),p.push({params:d,pathname:na([h,y.pathname]),pathnameBase:y1(na([h,y.pathnameBase])),route:M}),y.pathnameBase!=="/"&&(h=na([h,y.pathnameBase]))}return p}function $r(l,o){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,c]=f1(l.path,l.caseSensitive,l.end),d=o.match(u);if(!d)return null;let h=d[0],p=h.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:c.reduce((m,{paramName:x,isOptional:y},M)=>{if(x==="*"){let R=v[M]||"";p=h.slice(0,h.length-R.length).replace(/(.)\/+$/,"$1")}const E=v[M];return y&&!E?m[x]=void 0:m[x]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:h,pathnameBase:p,pattern:l}}function f1(l,o=!1,u=!0){Kt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,v,b,m,x)=>{if(c.push({paramName:v,isOptional:b!=null}),b){let y=x.charAt(m+p.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),c]}function h1(l){try{return l.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Kt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),l}}function Ea(l,o){if(o==="/")return l;if(!l.toLowerCase().startsWith(o.toLowerCase()))return null;let u=o.endsWith("/")?o.length-1:o.length,c=l.charAt(u);return c&&c!=="/"?null:l.slice(u)||"/"}var p1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function m1(l,o="/"){let{pathname:u,search:c="",hash:d=""}=typeof l=="string"?ol(l):l,h;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?h=Lp(u.substring(1),"/"):h=Lp(u,o)):h=o,{pathname:h,search:x1(c),hash:v1(d)}}function Lp(l,o){let u=o.replace(/\/+$/,"").split("/");return l.split("/").forEach(d=>{d===".."?u.length>1&&u.pop():d!=="."&&u.push(d)}),u.length>1?u.join("/"):"/"}function Nc(l,o,u,c){return`Cannot include a '${l}' character in a manually specified \`to.${o}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function g1(l){return l.filter((o,u)=>u===0||o.route.path&&o.route.path.length>0)}function ou(l){let o=g1(l);return o.map((u,c)=>c===o.length-1?u.pathname:u.pathnameBase)}function ao(l,o,u,c=!1){let d;typeof l=="string"?d=ol(l):(d={...l},Ve(!d.pathname||!d.pathname.includes("?"),Nc("?","pathname","search",d)),Ve(!d.pathname||!d.pathname.includes("#"),Nc("#","pathname","hash",d)),Ve(!d.search||!d.search.includes("#"),Nc("#","search","hash",d)));let h=l===""||d.pathname==="",p=h?"/":d.pathname,v;if(p==null)v=u;else{let y=o.length-1;if(!c&&p.startsWith("..")){let M=p.split("/");for(;M[0]==="..";)M.shift(),y-=1;d.pathname=M.join("/")}v=y>=0?o[y]:"/"}let b=m1(d,v),m=p&&p!=="/"&&p.endsWith("/"),x=(h||p===".")&&u.endsWith("/");return!b.pathname.endsWith("/")&&(m||x)&&(b.pathname+="/"),b}var na=l=>l.join("/").replace(/\/\/+/g,"/"),y1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),x1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,v1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,b1=class{constructor(l,o,u,c=!1){this.status=l,this.statusText=o||"",this.internal=c,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function S1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function j1(l){return l.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Tm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Cm(l,o){let u=l;if(typeof u!="string"||!p1.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let c=u,d=!1;if(Tm)try{let h=new URL(window.location.href),p=u.startsWith("//")?new URL(h.protocol+u):new URL(u),v=Ea(p.pathname,o);p.origin===h.origin&&v!=null?u=v+p.search+p.hash:d=!0}catch{Kt(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wm=["POST","PUT","PATCH","DELETE"];new Set(wm);var z1=["GET",...wm];new Set(z1);var sl=A.createContext(null);sl.displayName="DataRouter";var no=A.createContext(null);no.displayName="DataRouterState";var E1=A.createContext(!1),_m=A.createContext({isTransitioning:!1});_m.displayName="ViewTransition";var R1=A.createContext(new Map);R1.displayName="Fetchers";var A1=A.createContext(null);A1.displayName="Await";var Dt=A.createContext(null);Dt.displayName="Navigation";var hi=A.createContext(null);hi.displayName="Location";var la=A.createContext({outlet:null,matches:[],isDataRoute:!1});la.displayName="Route";var su=A.createContext(null);su.displayName="RouteError";var Om="REACT_ROUTER_ERROR",T1="REDIRECT",C1="ROUTE_ERROR_RESPONSE";function w1(l){if(l.startsWith(`${Om}:${T1}:{`))try{let o=JSON.parse(l.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function _1(l){if(l.startsWith(`${Om}:${C1}:{`))try{let o=JSON.parse(l.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new b1(o.status,o.statusText,o.data)}catch{}}function O1(l,{relative:o}={}){Ve(cl(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:c}=A.useContext(Dt),{hash:d,pathname:h,search:p}=pi(l,{relative:o}),v=h;return u!=="/"&&(v=h==="/"?u:na([u,h])),c.createHref({pathname:v,search:p,hash:d})}function cl(){return A.useContext(hi)!=null}function Jt(){return Ve(cl(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(hi).location}var Mm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function km(l){A.useContext(Dt).static||A.useLayoutEffect(l)}function lo(){let{isDataRoute:l}=A.useContext(la);return l?X1():M1()}function M1(){Ve(cl(),"useNavigate() may be used only in the context of a <Router> component.");let l=A.useContext(sl),{basename:o,navigator:u}=A.useContext(Dt),{matches:c}=A.useContext(la),{pathname:d}=Jt(),h=JSON.stringify(ou(c)),p=A.useRef(!1);return km(()=>{p.current=!0}),A.useCallback((b,m={})=>{if(Kt(p.current,Mm),!p.current)return;if(typeof b=="number"){u.go(b);return}let x=ao(b,JSON.parse(h),d,m.relative==="path");l==null&&o!=="/"&&(x.pathname=x.pathname==="/"?o:na([o,x.pathname])),(m.replace?u.replace:u.push)(x,m.state,m)},[o,u,h,d,l])}A.createContext(null);function pi(l,{relative:o}={}){let{matches:u}=A.useContext(la),{pathname:c}=Jt(),d=JSON.stringify(ou(u));return A.useMemo(()=>ao(l,JSON.parse(d),c,o==="path"),[l,d,c,o])}function k1(l,o){return Dm(l,o)}function Dm(l,o,u){Ve(cl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=A.useContext(Dt),{matches:d}=A.useContext(la),h=d[d.length-1],p=h?h.params:{},v=h?h.pathname:"/",b=h?h.pathnameBase:"/",m=h&&h.route;{let w=m&&m.path||"";Nm(v,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
10
+
11
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let x=Jt(),y;if(o){let w=typeof o=="string"?ol(o):o;Ve(b==="/"||w.pathname?.startsWith(b),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${w.pathname}" was given in the \`location\` prop.`),y=w}else y=x;let M=y.pathname||"/",E=M;if(b!=="/"){let w=b.replace(/^\//,"").split("/");E="/"+M.replace(/^\//,"").split("/").slice(w.length).join("/")}let R=Em(l,{pathname:E});Kt(m||R!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Kt(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=U1(R&&R.map(w=>Object.assign({},w,{params:Object.assign({},p,w.params),pathname:na([b,c.encodeLocation?c.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?b:na([b,c.encodeLocation?c.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),d,u);return o&&C?A.createElement(hi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function D1(){let l=V1(),o=S1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},p=null;return console.error("Error handled by React Router default ErrorBoundary:",l),p=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:h},"ErrorBoundary")," or"," ",A.createElement("code",{style:h},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},o),u?A.createElement("pre",{style:d},u):null,p)}var B1=A.createElement(D1,null),Bm=class extends A.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){this.props.onError?this.props.onError(l,o):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=_1(l.digest);u&&(l=u)}let o=l!==void 0?A.createElement(la.Provider,{value:this.props.routeContext},A.createElement(su.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?A.createElement(N1,{error:l},o):o}};Bm.contextType=E1;var Hc=new WeakMap;function N1({children:l,error:o}){let{basename:u}=A.useContext(Dt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let c=w1(o.digest);if(c){let d=Hc.get(o);if(d)throw d;let h=Cm(c.location,u);if(Tm&&!Hc.get(o))if(h.isExternal||c.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:c.replace}));throw Hc.set(o,p),p}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return l}function H1({routeContext:l,match:o,children:u}){let c=A.useContext(sl);return c&&c.static&&c.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=o.route.id),A.createElement(la.Provider,{value:l},u)}function U1(l,o=[],u){let c=u?.state;if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let d=l,h=c?.errors;if(h!=null){let x=d.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);Ve(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,x+1))}let p=!1,v=-1;if(u&&c){p=c.renderFallback;for(let x=0;x<d.length;x++){let y=d[x];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(v=x),y.route.id){let{loaderData:M,errors:E}=c,R=y.route.loader&&!M.hasOwnProperty(y.route.id)&&(!E||E[y.route.id]===void 0);if(y.route.lazy||R){u.isStatic&&(p=!0),v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}}let b=u?.onError,m=c&&b?(x,y)=>{b(x,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:j1(c.matches),errorInfo:y})}:void 0;return d.reduceRight((x,y,M)=>{let E,R=!1,C=null,w=null;c&&(E=h&&y.route.id?h[y.route.id]:void 0,C=y.route.errorElement||B1,p&&(v<0&&M===0?(Nm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,w=null):v===M&&(R=!0,w=y.route.hydrateFallbackElement||null)));let Y=o.concat(d.slice(0,M+1)),I=()=>{let X;return E?X=C:R?X=w:y.route.Component?X=A.createElement(y.route.Component,null):y.route.element?X=y.route.element:X=x,A.createElement(H1,{match:y,routeContext:{outlet:x,matches:Y,isDataRoute:c!=null},children:X})};return c&&(y.route.ErrorBoundary||y.route.errorElement||M===0)?A.createElement(Bm,{location:c.location,revalidation:c.revalidation,component:C,error:E,children:I(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:m}):I()},null)}function cu(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function L1(l){let o=A.useContext(sl);return Ve(o,cu(l)),o}function q1(l){let o=A.useContext(no);return Ve(o,cu(l)),o}function G1(l){let o=A.useContext(la);return Ve(o,cu(l)),o}function uu(l){let o=G1(l),u=o.matches[o.matches.length-1];return Ve(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function Y1(){return uu("useRouteId")}function V1(){let l=A.useContext(su),o=q1("useRouteError"),u=uu("useRouteError");return l!==void 0?l:o.errors?.[u]}function X1(){let{router:l}=L1("useNavigate"),o=uu("useNavigate"),u=A.useRef(!1);return km(()=>{u.current=!0}),A.useCallback(async(d,h={})=>{Kt(u.current,Mm),u.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:o,...h}))},[l,o])}var qp={};function Nm(l,o,u){!o&&!qp[l]&&(qp[l]=!0,Kt(!1,u))}A.memo(Q1);function Q1({routes:l,future:o,state:u,isStatic:c,onError:d}){return Dm(l,void 0,{state:u,isStatic:c,onError:d})}function Z1({to:l,replace:o,state:u,relative:c}){Ve(cl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=A.useContext(Dt);Kt(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=A.useContext(la),{pathname:p}=Jt(),v=lo(),b=ao(l,ou(h),p,c==="path"),m=JSON.stringify(b);return A.useEffect(()=>{v(JSON.parse(m),{replace:o,state:u,relative:c})},[v,m,c,o,u]),null}function aa(l){Ve(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function W1({basename:l="/",children:o=null,location:u,navigationType:c="POP",navigator:d,static:h=!1,unstable_useTransitions:p}){Ve(!cl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=l.replace(/^\/*/,"/"),b=A.useMemo(()=>({basename:v,navigator:d,static:h,unstable_useTransitions:p,future:{}}),[v,d,h,p]);typeof u=="string"&&(u=ol(u));let{pathname:m="/",search:x="",hash:y="",state:M=null,key:E="default",unstable_mask:R}=u,C=A.useMemo(()=>{let w=Ea(m,v);return w==null?null:{location:{pathname:w,search:x,hash:y,state:M,key:E,unstable_mask:R},navigationType:c}},[v,m,x,y,M,E,c,R]);return Kt(C!=null,`<Router basename="${v}"> is not able to match the URL "${m}${x}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:A.createElement(Dt.Provider,{value:b},A.createElement(hi.Provider,{children:o,value:C}))}function F1({children:l,location:o}){return k1($c(l),o)}function $c(l,o=[]){let u=[];return A.Children.forEach(l,(c,d)=>{if(!A.isValidElement(c))return;let h=[...o,d];if(c.type===A.Fragment){u.push.apply(u,$c(c.props.children,h));return}Ve(c.type===aa,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!c.props.index||!c.props.children,"An index route cannot have child routes.");let p={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,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(p.children=$c(c.props.children,h)),u.push(p)}),u}var Vr="get",Xr="application/x-www-form-urlencoded";function io(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function K1(l){return io(l)&&l.tagName.toLowerCase()==="button"}function J1(l){return io(l)&&l.tagName.toLowerCase()==="form"}function $1(l){return io(l)&&l.tagName.toLowerCase()==="input"}function I1(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function P1(l,o){return l.button===0&&(!o||o==="_self")&&!I1(l)}var Lr=null;function ex(){if(Lr===null)try{new FormData(document.createElement("form"),0),Lr=!1}catch{Lr=!0}return Lr}var tx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Uc(l){return l!=null&&!tx.has(l)?(Kt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xr}"`),null):l}function ax(l,o){let u,c,d,h,p;if(J1(l)){let v=l.getAttribute("action");c=v?Ea(v,o):null,u=l.getAttribute("method")||Vr,d=Uc(l.getAttribute("enctype"))||Xr,h=new FormData(l)}else if(K1(l)||$1(l)&&(l.type==="submit"||l.type==="image")){let v=l.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=l.getAttribute("formaction")||v.getAttribute("action");if(c=b?Ea(b,o):null,u=l.getAttribute("formmethod")||v.getAttribute("method")||Vr,d=Uc(l.getAttribute("formenctype"))||Uc(v.getAttribute("enctype"))||Xr,h=new FormData(v,l),!ex()){let{name:m,type:x,value:y}=l;if(x==="image"){let M=m?`${m}.`:"";h.append(`${M}x`,"0"),h.append(`${M}y`,"0")}else m&&h.append(m,y)}}else{if(io(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Vr,c=null,d=Xr,p=l}return h&&d==="text/plain"&&(p=h,h=void 0),{action:c,method:u.toLowerCase(),encType:d,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function du(l,o){if(l===!1||l===null||typeof l>"u")throw new Error(o)}function nx(l,o,u,c){let d=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:o&&Ea(d.pathname,o)==="/"?d.pathname=`${o.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function lx(l,o){if(l.id in o)return o[l.id];try{let u=await import(l.module);return o[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ix(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function rx(l,o,u){let c=await Promise.all(l.map(async d=>{let h=o.routes[d.route.id];if(h){let p=await lx(h,u);return p.links?p.links():[]}return[]}));return ux(c.flat(1).filter(ix).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Gp(l,o,u,c,d,h){let p=(b,m)=>u[m]?b.route.id!==u[m].route.id:!0,v=(b,m)=>u[m].pathname!==b.pathname||u[m].route.path?.endsWith("*")&&u[m].params["*"]!==b.params["*"];return h==="assets"?o.filter((b,m)=>p(b,m)||v(b,m)):h==="data"?o.filter((b,m)=>{let x=c.routes[b.route.id];if(!x||!x.hasLoader)return!1;if(p(b,m)||v(b,m))return!0;if(b.route.shouldRevalidate){let y=b.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:u[0]?.params||{},nextUrl:new URL(l,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function ox(l,o,{includeHydrateFallback:u}={}){return sx(l.map(c=>{let d=o.routes[c.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),u&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function sx(l){return[...new Set(l)]}function cx(l){let o={},u=Object.keys(l).sort();for(let c of u)o[c]=l[c];return o}function ux(l,o){let u=new Set;return new Set(o),l.reduce((c,d)=>{let h=JSON.stringify(cx(d));return u.has(h)||(u.add(h),c.push({key:h,link:d})),c},[])}function Hm(){let l=A.useContext(sl);return du(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function dx(){let l=A.useContext(no);return du(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var fu=A.createContext(void 0);fu.displayName="FrameworkContext";function Um(){let l=A.useContext(fu);return du(l,"You must render this element inside a <HydratedRouter> element"),l}function fx(l,o){let u=A.useContext(fu),[c,d]=A.useState(!1),[h,p]=A.useState(!1),{onFocus:v,onBlur:b,onMouseEnter:m,onMouseLeave:x,onTouchStart:y}=o,M=A.useRef(null);A.useEffect(()=>{if(l==="render"&&p(!0),l==="viewport"){let C=Y=>{Y.forEach(I=>{p(I.isIntersecting)})},w=new IntersectionObserver(C,{threshold:.5});return M.current&&w.observe(M.current),()=>{w.disconnect()}}},[l]),A.useEffect(()=>{if(c){let C=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(C)}}},[c]);let E=()=>{d(!0)},R=()=>{d(!1),p(!1)};return u?l!=="intent"?[h,M,{}]:[h,M,{onFocus:ri(v,E),onBlur:ri(b,R),onMouseEnter:ri(m,E),onMouseLeave:ri(x,R),onTouchStart:ri(y,E)}]:[!1,M,{}]}function ri(l,o){return u=>{l&&l(u),u.defaultPrevented||o(u)}}function hx({page:l,...o}){let{router:u}=Hm(),c=A.useMemo(()=>Em(u.routes,l,u.basename),[u.routes,l,u.basename]);return c?A.createElement(mx,{page:l,matches:c,...o}):null}function px(l){let{manifest:o,routeModules:u}=Um(),[c,d]=A.useState([]);return A.useEffect(()=>{let h=!1;return rx(l,o,u).then(p=>{h||d(p)}),()=>{h=!0}},[l,o,u]),c}function mx({page:l,matches:o,...u}){let c=Jt(),{future:d,manifest:h,routeModules:p}=Um(),{basename:v}=Hm(),{loaderData:b,matches:m}=dx(),x=A.useMemo(()=>Gp(l,o,m,h,c,"data"),[l,o,m,h,c]),y=A.useMemo(()=>Gp(l,o,m,h,c,"assets"),[l,o,m,h,c]),M=A.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let C=new Set,w=!1;if(o.forEach(I=>{let X=h.routes[I.route.id];!X||!X.hasLoader||(!x.some(le=>le.route.id===I.route.id)&&I.route.id in b&&p[I.route.id]?.shouldRevalidate||X.hasClientLoader?w=!0:C.add(I.route.id))}),C.size===0)return[];let Y=nx(l,v,d.unstable_trailingSlashAwareDataRequests,"data");return w&&C.size>0&&Y.searchParams.set("_routes",o.filter(I=>C.has(I.route.id)).map(I=>I.route.id).join(",")),[Y.pathname+Y.search]},[v,d.unstable_trailingSlashAwareDataRequests,b,c,h,x,o,l,p]),E=A.useMemo(()=>ox(y,h),[y,h]),R=px(y);return A.createElement(A.Fragment,null,M.map(C=>A.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...u})),E.map(C=>A.createElement("link",{key:C,rel:"modulepreload",href:C,...u})),R.map(({key:C,link:w})=>A.createElement("link",{key:C,nonce:u.nonce,...w,crossOrigin:w.crossOrigin??u.crossOrigin})))}function gx(...l){return o=>{l.forEach(u=>{typeof u=="function"?u(o):u!=null&&(u.current=o)})}}var yx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yx&&(window.__reactRouterVersion="7.13.1")}catch{}function xx({basename:l,children:o,unstable_useTransitions:u,window:c}){let d=A.useRef();d.current==null&&(d.current=$y({window:c,v5Compat:!0}));let h=d.current,[p,v]=A.useState({action:h.action,location:h.location}),b=A.useCallback(m=>{u===!1?v(m):A.startTransition(()=>v(m))},[u]);return A.useLayoutEffect(()=>h.listen(b),[h,b]),A.createElement(W1,{basename:l,children:o,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:u})}var Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ci=A.forwardRef(function({onClick:o,discover:u="render",prefetch:c="none",relative:d,reloadDocument:h,replace:p,unstable_mask:v,state:b,target:m,to:x,preventScrollReset:y,viewTransition:M,unstable_defaultShouldRevalidate:E,...R},C){let{basename:w,navigator:Y,unstable_useTransitions:I}=A.useContext(Dt),X=typeof x=="string"&&Lm.test(x),le=Cm(x,w);x=le.to;let ce=O1(x,{relative:d}),me=Jt(),F=null;if(v){let _e=ao(v,[],me.unstable_mask?me.unstable_mask.pathname:"/",!0);w!=="/"&&(_e.pathname=_e.pathname==="/"?w:na([w,_e.pathname])),F=Y.createHref(_e)}let[we,ke,it]=fx(c,R),Je=jx(x,{replace:p,unstable_mask:v,state:b,target:m,preventScrollReset:y,relative:d,viewTransition:M,unstable_defaultShouldRevalidate:E,unstable_useTransitions:I});function Z(_e){o&&o(_e),_e.defaultPrevented||Je(_e)}let de=!(le.isExternal||h),xe=A.createElement("a",{...R,...it,href:(de?F:void 0)||le.absoluteURL||ce,onClick:de?Z:o,ref:gx(C,ke),target:m,"data-discover":!X&&u==="render"?"true":void 0});return we&&!X?A.createElement(A.Fragment,null,xe,A.createElement(hx,{page:ce})):xe});ci.displayName="Link";var vx=A.forwardRef(function({"aria-current":o="page",caseSensitive:u=!1,className:c="",end:d=!1,style:h,to:p,viewTransition:v,children:b,...m},x){let y=pi(p,{relative:m.relative}),M=Jt(),E=A.useContext(no),{navigator:R,basename:C}=A.useContext(Dt),w=E!=null&&Tx(y)&&v===!0,Y=R.encodeLocation?R.encodeLocation(y).pathname:y.pathname,I=M.pathname,X=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;u||(I=I.toLowerCase(),X=X?X.toLowerCase():null,Y=Y.toLowerCase()),X&&C&&(X=Ea(X,C)||X);const le=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let ce=I===Y||!d&&I.startsWith(Y)&&I.charAt(le)==="/",me=X!=null&&(X===Y||!d&&X.startsWith(Y)&&X.charAt(Y.length)==="/"),F={isActive:ce,isPending:me,isTransitioning:w},we=ce?o:void 0,ke;typeof c=="function"?ke=c(F):ke=[c,ce?"active":null,me?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let it=typeof h=="function"?h(F):h;return A.createElement(ci,{...m,"aria-current":we,className:ke,ref:x,style:it,to:p,viewTransition:v},typeof b=="function"?b(F):b)});vx.displayName="NavLink";var bx=A.forwardRef(({discover:l="render",fetcherKey:o,navigate:u,reloadDocument:c,replace:d,state:h,method:p=Vr,action:v,onSubmit:b,relative:m,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:M,...E},R)=>{let{unstable_useTransitions:C}=A.useContext(Dt),w=Rx(),Y=Ax(v,{relative:m}),I=p.toLowerCase()==="get"?"get":"post",X=typeof v=="string"&&Lm.test(v),le=ce=>{if(b&&b(ce),ce.defaultPrevented)return;ce.preventDefault();let me=ce.nativeEvent.submitter,F=me?.getAttribute("formmethod")||p,we=()=>w(me||ce.currentTarget,{fetcherKey:o,method:F,navigate:u,replace:d,state:h,relative:m,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:M});C&&u!==!1?A.startTransition(()=>we()):we()};return A.createElement("form",{ref:R,method:I,action:Y,onSubmit:c?b:le,...E,"data-discover":!X&&l==="render"?"true":void 0})});bx.displayName="Form";function Sx(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qm(l){let o=A.useContext(sl);return Ve(o,Sx(l)),o}function jx(l,{target:o,replace:u,unstable_mask:c,state:d,preventScrollReset:h,relative:p,viewTransition:v,unstable_defaultShouldRevalidate:b,unstable_useTransitions:m}={}){let x=lo(),y=Jt(),M=pi(l,{relative:p});return A.useCallback(E=>{if(P1(E,o)){E.preventDefault();let R=u!==void 0?u:fi(y)===fi(M),C=()=>x(l,{replace:R,unstable_mask:c,state:d,preventScrollReset:h,relative:p,viewTransition:v,unstable_defaultShouldRevalidate:b});m?A.startTransition(()=>C()):C()}},[y,x,M,u,c,d,o,l,h,p,v,b,m])}var zx=0,Ex=()=>`__${String(++zx)}__`;function Rx(){let{router:l}=qm("useSubmit"),{basename:o}=A.useContext(Dt),u=Y1(),c=l.fetch,d=l.navigate;return A.useCallback(async(h,p={})=>{let{action:v,method:b,encType:m,formData:x,body:y}=ax(h,o);if(p.navigate===!1){let M=p.fetcherKey||Ex();await c(M,u,p.action||v,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:x,body:y,formMethod:p.method||b,formEncType:p.encType||m,flushSync:p.flushSync})}else await d(p.action||v,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:x,body:y,formMethod:p.method||b,formEncType:p.encType||m,replace:p.replace,state:p.state,fromRouteId:u,flushSync:p.flushSync,viewTransition:p.viewTransition})},[c,d,o,u])}function Ax(l,{relative:o}={}){let{basename:u}=A.useContext(Dt),c=A.useContext(la);Ve(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),h={...pi(l||".",{relative:o})},p=Jt();if(l==null){h.search=p.search;let v=new URLSearchParams(h.search),b=v.getAll("index");if(b.some(x=>x==="")){v.delete("index"),b.filter(y=>y).forEach(y=>v.append("index",y));let x=v.toString();h.search=x?`?${x}`:""}}return(!l||l===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(h.pathname=h.pathname==="/"?u:na([u,h.pathname])),fi(h)}function Tx(l,{relative:o}={}){let u=A.useContext(_m);Ve(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=qm("useViewTransitionState"),d=pi(l,{relative:o});if(!u.isTransitioning)return!1;let h=Ea(u.currentLocation.pathname,c)||u.currentLocation.pathname,p=Ea(u.nextLocation.pathname,c)||u.nextLocation.pathname;return $r(d.pathname,p)!=null||$r(d.pathname,h)!=null}const Gm=(...l)=>l.filter((o,u,c)=>!!o&&o.trim()!==""&&c.indexOf(o)===u).join(" ").trim();const Cx=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const wx=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,u,c)=>c?c.toUpperCase():u.toLowerCase());const Yp=l=>{const o=wx(l);return o.charAt(0).toUpperCase()+o.slice(1)};var _x={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"};const Ox=l=>{for(const o in l)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};const Mx=A.forwardRef(({color:l="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:c,className:d="",children:h,iconNode:p,...v},b)=>A.createElement("svg",{ref:b,..._x,width:o,height:o,stroke:l,strokeWidth:c?Number(u)*24/Number(o):u,className:Gm("lucide",d),...!h&&!Ox(v)&&{"aria-hidden":"true"},...v},[...p.map(([m,x])=>A.createElement(m,x)),...Array.isArray(h)?h:[h]]));const ae=(l,o)=>{const u=A.forwardRef(({className:c,...d},h)=>A.createElement(Mx,{ref:h,iconNode:o,className:Gm(`lucide-${Cx(Yp(l))}`,`lucide-${l}`,c),...d}));return u.displayName=Yp(l),u};const kx=[["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"}]],Qr=ae("activity",kx);const Dx=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Bx=ae("arrow-left",Dx);const Nx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Hx=ae("arrow-right",Nx);const Ux=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ic=ae("bot",Ux);const Lx=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],qx=ae("camera",Lx);const Gx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ir=ae("check",Gx);const Yx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Vx=ae("chevron-down",Yx);const Xx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Qx=ae("chevron-left",Xx);const Zx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ll=ae("chevron-right",Zx);const Wx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Fx=ae("chevron-up",Wx);const Kx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jx=ae("circle-check",Kx);const $x=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ix=ae("circle-play",$x);const Px=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Pc=ae("clock",Px);const ev=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],tv=ae("copy",ev);const av=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],eu=ae("cpu",av);const nv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ym=ae("database",nv);const lv=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],iv=ae("download",lv);const rv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ov=ae("external-link",rv);const sv=[["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"}]],Vm=ae("eye",sv);const cv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],qr=ae("file-code",cv);const uv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Lc=ae("file-image",uv);const dv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],tu=ae("file-text",dv);const fv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Vp=ae("file",fv);const hv=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Xp=ae("folder-plus",hv);const pv=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Xm=ae("folder",pv);const mv=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],gv=ae("funnel",mv);const yv=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],qc=ae("github",yv);const xv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ui=ae("globe",xv);const vv=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],hu=ae("hard-drive",vv);const bv=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Sv=ae("layout-dashboard",bv);const jv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],zv=ae("loader-circle",jv);const Ev=[["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"}]],Rv=ae("lock",Ev);const Av=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],pu=ae("message-square",Av);const Tv=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],Cv=ae("mic-off",Tv);const wv=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Qp=ae("mic",wv);const _v=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Ov=ae("moon",_v);const Mv=[["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"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Qm=ae("package",Mv);const kv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],Dv=ae("panels-top-left",kv);const Bv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Nv=ae("plus",Bv);const Hv=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Zp=ae("power",Hv);const Uv=[["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"}]],Lv=ae("refresh-cw",Uv);const qv=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Wp=ae("rotate-ccw",qv);const Gv=[["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"}]],Yv=ae("save",Gv);const Vv=[["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"}]],Xv=ae("send",Vv);const Qv=[["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"}]],di=ae("server",Qv);const Zv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Wv=ae("settings",Zv);const Fv=[["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"}]],il=ae("shield",Fv);const Kv=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Fp=ae("star",Kv);const Jv=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],$v=ae("sun",Jv);const Iv=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Zr=ae("terminal",Iv);const Pv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Zm=ae("trash-2",Pv);const eb=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mu=ae("triangle-alert",eb);const tb=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],ab=ae("upload",tb);const nb=[["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"}]],Wm=ae("user",nb);const lb=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],ib=ae("workflow",lb);const rb=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Pr=ae("wrench",rb);const ob=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Kp=ae("x",ob);const sb=[["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"}]],mi=ae("zap",sb),cb=[{icon:Sv,label:"Control Center",labelHi:"डैशबोर्ड",path:"/dashboard"},{icon:pu,label:"Chat",labelHi:"चैट",path:"/chat"},{icon:hu,label:"My Stuff",labelHi:"मेरा डेटा",path:"/my-stuff"},{icon:Pr,label:"Modules",path:"/tools"},{icon:mi,label:"Integrations",labelHi:"इंटीग्रेशन",path:"/integrations"},{icon:il,label:"Audit Log",labelHi:"ऑडिट लॉग",path:"/audit"},{icon:Wv,label:"Settings",labelHi:"सेटिंग्स",path:"/settings"}];function ub({user:l,isOpen:o,onToggle:u,onLogout:c}){const d=lo(),h=Jt();return s.jsxs("aside",{style:{...lt.sidebar,width:o?"280px":"72px",resize:o?"horizontal":"none",minWidth:o?"200px":"72px",maxWidth:o?"500px":"72px"},children:[s.jsxs("div",{style:lt.header,children:[s.jsxs("div",{style:lt.brand,onClick:()=>d("/"),children:[s.jsx("div",{style:lt.logoWrap,children:s.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"32px",height:"32px",objectFit:"contain"}})}),o&&s.jsxs("div",{style:lt.brandText,children:[s.jsx("span",{style:lt.brandName,children:"SamarthyaBot"}),s.jsx("span",{style:lt.brandSub,children:"v1.0.0"})]})]}),s.jsx("button",{onClick:u,style:lt.toggleBtn,children:o?s.jsx(Qx,{size:18}):s.jsx(ll,{size:18})})]}),s.jsx("nav",{style:lt.nav,children:cb.map(p=>{const v=p.icon,b=h.pathname===p.path||p.path!=="/"&&h.pathname.startsWith(p.path);return s.jsxs("button",{onClick:()=>d(p.path),style:{...lt.navItem,...b?lt.navItemActive:{},justifyContent:o?"flex-start":"center"},title:o?void 0:p.label,children:[s.jsx(v,{size:20,style:{minWidth:"20px"}}),o&&s.jsx("span",{children:p.label}),b&&s.jsx("div",{style:lt.activeIndicator})]},p.path)})}),s.jsx("div",{style:lt.footer,children:o&&s.jsxs("div",{style:lt.userInfo,children:[s.jsx("div",{style:lt.avatar,children:(l?.name||"U").charAt(0).toUpperCase()}),s.jsxs("div",{style:lt.userText,children:[s.jsx("div",{style:lt.userName,children:l?.name||"Local Admin"}),s.jsx("div",{style:lt.userStatus,children:"AI Agent Operator"})]})]})})]})}const lt={sidebar:{position:"sticky",top:0,height:"100vh",background:"rgba(6, 6, 10, 0.97)",backdropFilter:"blur(24px)",borderRight:"1px solid #1e1e28",display:"flex",flexDirection:"column",zIndex:100,overflow:"hidden",transition:"width 0.25s cubic-bezier(0.4,0,0.2,1)"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 14px",borderBottom:"1px solid #1e1e28",minHeight:"68px"},brand:{display:"flex",alignItems:"center",gap:"10px",cursor:"pointer",overflow:"hidden"},logoWrap:{width:"38px",height:"38px",borderRadius:"10px",background:"#0e0e16",border:"1px solid #2a2a38",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden"},brandText:{display:"flex",flexDirection:"column",whiteSpace:"nowrap"},brandName:{fontWeight:800,fontSize:"1rem",color:"#f0f0ff",letterSpacing:"-0.3px"},brandSub:{fontSize:"0.68rem",color:"#3a3a4e",fontWeight:600,letterSpacing:"0.5px"},toggleBtn:{background:"transparent",border:"1px solid #1e1e28",color:"#3a3a4e",width:"28px",height:"28px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.15s ease",flexShrink:0},nav:{flex:1,padding:"12px 10px",display:"flex",flexDirection:"column",gap:"3px"},navItem:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 12px",borderRadius:"10px",background:"transparent",border:"none",color:"#8888a8",fontSize:"0.875rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s ease",position:"relative",fontFamily:"'Inter', -apple-system, sans-serif",whiteSpace:"nowrap",width:"100%"},navItemActive:{background:"rgba(255, 153, 51, 0.10)",color:"#FF9933",borderLeft:"2px solid #FF9933"},activeIndicator:{display:"none"},footer:{padding:"14px",borderTop:"1px solid #1e1e28",display:"flex",flexDirection:"column",gap:"10px"},userInfo:{display:"flex",alignItems:"center",gap:"10px",overflow:"hidden",padding:"8px 10px",borderRadius:"10px",background:"#0e0e16",border:"1px solid #1e1e28"},avatar:{width:"34px",height:"34px",borderRadius:"8px",background:"linear-gradient(135deg,#FF9933,#e8851d)",display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",fontWeight:800,fontSize:"0.88rem",flexShrink:0},userText:{overflow:"hidden",whiteSpace:"nowrap"},userName:{fontWeight:700,fontSize:"0.83rem",color:"#f0f0ff"},userStatus:{fontSize:"0.72rem",color:"#3a3a4e",marginTop:"2px"}};function Fm(l,o){return function(){return l.apply(o,arguments)}}const{toString:db}=Object.prototype,{getPrototypeOf:gu}=Object,{iterator:ro,toStringTag:Km}=Symbol,oo=(l=>o=>{const u=db.call(o);return l[u]||(l[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),$t=l=>(l=l.toLowerCase(),o=>oo(o)===l),so=l=>o=>typeof o===l,{isArray:ul}=Array,rl=so("undefined");function gi(l){return l!==null&&!rl(l)&&l.constructor!==null&&!rl(l.constructor)&&jt(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const Jm=$t("ArrayBuffer");function fb(l){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(l):o=l&&l.buffer&&Jm(l.buffer),o}const hb=so("string"),jt=so("function"),$m=so("number"),yi=l=>l!==null&&typeof l=="object",pb=l=>l===!0||l===!1,Wr=l=>{if(oo(l)!=="object")return!1;const o=gu(l);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Km in l)&&!(ro in l)},mb=l=>{if(!yi(l)||gi(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},gb=$t("Date"),yb=$t("File"),xb=$t("Blob"),vb=$t("FileList"),bb=l=>yi(l)&&jt(l.pipe),Sb=l=>{let o;return l&&(typeof FormData=="function"&&l instanceof FormData||jt(l.append)&&((o=oo(l))==="formdata"||o==="object"&&jt(l.toString)&&l.toString()==="[object FormData]"))},jb=$t("URLSearchParams"),[zb,Eb,Rb,Ab]=["ReadableStream","Request","Response","Headers"].map($t),Tb=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xi(l,o,{allOwnKeys:u=!1}={}){if(l===null||typeof l>"u")return;let c,d;if(typeof l!="object"&&(l=[l]),ul(l))for(c=0,d=l.length;c<d;c++)o.call(null,l[c],c,l);else{if(gi(l))return;const h=u?Object.getOwnPropertyNames(l):Object.keys(l),p=h.length;let v;for(c=0;c<p;c++)v=h[c],o.call(null,l[v],v,l)}}function Im(l,o){if(gi(l))return null;o=o.toLowerCase();const u=Object.keys(l);let c=u.length,d;for(;c-- >0;)if(d=u[c],o===d.toLowerCase())return d;return null}const yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pm=l=>!rl(l)&&l!==yn;function au(){const{caseless:l,skipUndefined:o}=Pm(this)&&this||{},u={},c=(d,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const p=l&&Im(u,h)||h;Wr(u[p])&&Wr(d)?u[p]=au(u[p],d):Wr(d)?u[p]=au({},d):ul(d)?u[p]=d.slice():(!o||!rl(d))&&(u[p]=d)};for(let d=0,h=arguments.length;d<h;d++)arguments[d]&&xi(arguments[d],c);return u}const Cb=(l,o,u,{allOwnKeys:c}={})=>(xi(o,(d,h)=>{u&&jt(d)?Object.defineProperty(l,h,{value:Fm(d,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,h,{value:d,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:c}),l),wb=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),_b=(l,o,u,c)=>{l.prototype=Object.create(o.prototype,c),Object.defineProperty(l.prototype,"constructor",{value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{value:o.prototype}),u&&Object.assign(l.prototype,u)},Ob=(l,o,u,c)=>{let d,h,p;const v={};if(o=o||{},l==null)return o;do{for(d=Object.getOwnPropertyNames(l),h=d.length;h-- >0;)p=d[h],(!c||c(p,l,o))&&!v[p]&&(o[p]=l[p],v[p]=!0);l=u!==!1&&gu(l)}while(l&&(!u||u(l,o))&&l!==Object.prototype);return o},Mb=(l,o,u)=>{l=String(l),(u===void 0||u>l.length)&&(u=l.length),u-=o.length;const c=l.indexOf(o,u);return c!==-1&&c===u},kb=l=>{if(!l)return null;if(ul(l))return l;let o=l.length;if(!$m(o))return null;const u=new Array(o);for(;o-- >0;)u[o]=l[o];return u},Db=(l=>o=>l&&o instanceof l)(typeof Uint8Array<"u"&&gu(Uint8Array)),Bb=(l,o)=>{const c=(l&&l[ro]).call(l);let d;for(;(d=c.next())&&!d.done;){const h=d.value;o.call(l,h[0],h[1])}},Nb=(l,o)=>{let u;const c=[];for(;(u=l.exec(o))!==null;)c.push(u);return c},Hb=$t("HTMLFormElement"),Ub=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,c,d){return c.toUpperCase()+d}),Jp=(({hasOwnProperty:l})=>(o,u)=>l.call(o,u))(Object.prototype),Lb=$t("RegExp"),e0=(l,o)=>{const u=Object.getOwnPropertyDescriptors(l),c={};xi(u,(d,h)=>{let p;(p=o(d,h,l))!==!1&&(c[h]=p||d)}),Object.defineProperties(l,c)},qb=l=>{e0(l,(o,u)=>{if(jt(l)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const c=l[u];if(jt(c)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},Gb=(l,o)=>{const u={},c=d=>{d.forEach(h=>{u[h]=!0})};return ul(l)?c(l):c(String(l).split(o)),u},Yb=()=>{},Vb=(l,o)=>l!=null&&Number.isFinite(l=+l)?l:o;function Xb(l){return!!(l&&jt(l.append)&&l[Km]==="FormData"&&l[ro])}const Qb=l=>{const o=new Array(10),u=(c,d)=>{if(yi(c)){if(o.indexOf(c)>=0)return;if(gi(c))return c;if(!("toJSON"in c)){o[d]=c;const h=ul(c)?[]:{};return xi(c,(p,v)=>{const b=u(p,d+1);!rl(b)&&(h[v]=b)}),o[d]=void 0,h}}return c};return u(l,0)},Zb=$t("AsyncFunction"),Wb=l=>l&&(yi(l)||jt(l))&&jt(l.then)&&jt(l.catch),t0=((l,o)=>l?setImmediate:o?((u,c)=>(yn.addEventListener("message",({source:d,data:h})=>{d===yn&&h===u&&c.length&&c.shift()()},!1),d=>{c.push(d),yn.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",jt(yn.postMessage)),Fb=typeof queueMicrotask<"u"?queueMicrotask.bind(yn):typeof process<"u"&&process.nextTick||t0,Kb=l=>l!=null&&jt(l[ro]),N={isArray:ul,isArrayBuffer:Jm,isBuffer:gi,isFormData:Sb,isArrayBufferView:fb,isString:hb,isNumber:$m,isBoolean:pb,isObject:yi,isPlainObject:Wr,isEmptyObject:mb,isReadableStream:zb,isRequest:Eb,isResponse:Rb,isHeaders:Ab,isUndefined:rl,isDate:gb,isFile:yb,isBlob:xb,isRegExp:Lb,isFunction:jt,isStream:bb,isURLSearchParams:jb,isTypedArray:Db,isFileList:vb,forEach:xi,merge:au,extend:Cb,trim:Tb,stripBOM:wb,inherits:_b,toFlatObject:Ob,kindOf:oo,kindOfTest:$t,endsWith:Mb,toArray:kb,forEachEntry:Bb,matchAll:Nb,isHTMLForm:Hb,hasOwnProperty:Jp,hasOwnProp:Jp,reduceDescriptors:e0,freezeMethods:qb,toObjectSet:Gb,toCamelCase:Ub,noop:Yb,toFiniteNumber:Vb,findKey:Im,global:yn,isContextDefined:Pm,isSpecCompliantForm:Xb,toJSONObject:Qb,isAsyncFn:Zb,isThenable:Wb,setImmediate:t0,asap:Fb,isIterable:Kb};let re=class a0 extends Error{static from(o,u,c,d,h,p){const v=new a0(o.message,u||o.code,c,d,h);return v.cause=o,v.name=o.name,p&&Object.assign(v,p),v}constructor(o,u,c,d,h){super(o),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),c&&(this.config=c),d&&(this.request=d),h&&(this.response=h,this.status=h.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";const Jb=null;function nu(l){return N.isPlainObject(l)||N.isArray(l)}function n0(l){return N.endsWith(l,"[]")?l.slice(0,-2):l}function $p(l,o,u){return l?l.concat(o).map(function(d,h){return d=n0(d),!u&&h?"["+d+"]":d}).join(u?".":""):o}function $b(l){return N.isArray(l)&&!l.some(nu)}const Ib=N.toFlatObject(N,{},null,function(o){return/^is[A-Z]/.test(o)});function co(l,o,u){if(!N.isObject(l))throw new TypeError("target must be an object");o=o||new FormData,u=N.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,w){return!N.isUndefined(w[C])});const c=u.metaTokens,d=u.visitor||x,h=u.dots,p=u.indexes,b=(u.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(o);if(!N.isFunction(d))throw new TypeError("visitor must be a function");function m(R){if(R===null)return"";if(N.isDate(R))return R.toISOString();if(N.isBoolean(R))return R.toString();if(!b&&N.isBlob(R))throw new re("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(R)||N.isTypedArray(R)?b&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function x(R,C,w){let Y=R;if(R&&!w&&typeof R=="object"){if(N.endsWith(C,"{}"))C=c?C:C.slice(0,-2),R=JSON.stringify(R);else if(N.isArray(R)&&$b(R)||(N.isFileList(R)||N.endsWith(C,"[]"))&&(Y=N.toArray(R)))return C=n0(C),Y.forEach(function(X,le){!(N.isUndefined(X)||X===null)&&o.append(p===!0?$p([C],le,h):p===null?C:C+"[]",m(X))}),!1}return nu(R)?!0:(o.append($p(w,C,h),m(R)),!1)}const y=[],M=Object.assign(Ib,{defaultVisitor:x,convertValue:m,isVisitable:nu});function E(R,C){if(!N.isUndefined(R)){if(y.indexOf(R)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(R),N.forEach(R,function(Y,I){(!(N.isUndefined(Y)||Y===null)&&d.call(o,Y,N.isString(I)?I.trim():I,C,M))===!0&&E(Y,C?C.concat(I):[I])}),y.pop()}}if(!N.isObject(l))throw new TypeError("data must be an object");return E(l),o}function Ip(l){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(c){return o[c]})}function yu(l,o){this._pairs=[],l&&co(l,this,o)}const l0=yu.prototype;l0.append=function(o,u){this._pairs.push([o,u])};l0.toString=function(o){const u=o?function(c){return o.call(this,c,Ip)}:Ip;return this._pairs.map(function(d){return u(d[0])+"="+u(d[1])},"").join("&")};function Pb(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function i0(l,o,u){if(!o)return l;const c=u&&u.encode||Pb,d=N.isFunction(u)?{serialize:u}:u,h=d&&d.serialize;let p;if(h?p=h(o,d):p=N.isURLSearchParams(o)?o.toString():new yu(o,d).toString(c),p){const v=l.indexOf("#");v!==-1&&(l=l.slice(0,v)),l+=(l.indexOf("?")===-1?"?":"&")+p}return l}class Pp{constructor(){this.handlers=[]}use(o,u,c){return this.handlers.push({fulfilled:o,rejected:u,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){N.forEach(this.handlers,function(c){c!==null&&o(c)})}}const xu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},e2=typeof URLSearchParams<"u"?URLSearchParams:yu,t2=typeof FormData<"u"?FormData:null,a2=typeof Blob<"u"?Blob:null,n2={isBrowser:!0,classes:{URLSearchParams:e2,FormData:t2,Blob:a2},protocols:["http","https","file","blob","url","data"]},vu=typeof window<"u"&&typeof document<"u",lu=typeof navigator=="object"&&navigator||void 0,l2=vu&&(!lu||["ReactNative","NativeScript","NS"].indexOf(lu.product)<0),i2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",r2=vu&&window.location.href||"http://localhost",o2=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vu,hasStandardBrowserEnv:l2,hasStandardBrowserWebWorkerEnv:i2,navigator:lu,origin:r2},Symbol.toStringTag,{value:"Module"})),ht={...o2,...n2};function s2(l,o){return co(l,new ht.classes.URLSearchParams,{visitor:function(u,c,d,h){return ht.isNode&&N.isBuffer(u)?(this.append(c,u.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...o})}function c2(l){return N.matchAll(/\w+|\[(\w*)]/g,l).map(o=>o[0]==="[]"?"":o[1]||o[0])}function u2(l){const o={},u=Object.keys(l);let c;const d=u.length;let h;for(c=0;c<d;c++)h=u[c],o[h]=l[h];return o}function r0(l){function o(u,c,d,h){let p=u[h++];if(p==="__proto__")return!0;const v=Number.isFinite(+p),b=h>=u.length;return p=!p&&N.isArray(d)?d.length:p,b?(N.hasOwnProp(d,p)?d[p]=[d[p],c]:d[p]=c,!v):((!d[p]||!N.isObject(d[p]))&&(d[p]=[]),o(u,c,d[p],h)&&N.isArray(d[p])&&(d[p]=u2(d[p])),!v)}if(N.isFormData(l)&&N.isFunction(l.entries)){const u={};return N.forEachEntry(l,(c,d)=>{o(c2(c),d,u,0)}),u}return null}function d2(l,o,u){if(N.isString(l))try{return(o||JSON.parse)(l),N.trim(l)}catch(c){if(c.name!=="SyntaxError")throw c}return(u||JSON.stringify)(l)}const vi={transitional:xu,adapter:["xhr","http","fetch"],transformRequest:[function(o,u){const c=u.getContentType()||"",d=c.indexOf("application/json")>-1,h=N.isObject(o);if(h&&N.isHTMLForm(o)&&(o=new FormData(o)),N.isFormData(o))return d?JSON.stringify(r0(o)):o;if(N.isArrayBuffer(o)||N.isBuffer(o)||N.isStream(o)||N.isFile(o)||N.isBlob(o)||N.isReadableStream(o))return o;if(N.isArrayBufferView(o))return o.buffer;if(N.isURLSearchParams(o))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let v;if(h){if(c.indexOf("application/x-www-form-urlencoded")>-1)return s2(o,this.formSerializer).toString();if((v=N.isFileList(o))||c.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return co(v?{"files[]":o}:o,b&&new b,this.formSerializer)}}return h||d?(u.setContentType("application/json",!1),d2(o)):o}],transformResponse:[function(o){const u=this.transitional||vi.transitional,c=u&&u.forcedJSONParsing,d=this.responseType==="json";if(N.isResponse(o)||N.isReadableStream(o))return o;if(o&&N.isString(o)&&(c&&!this.responseType||d)){const p=!(u&&u.silentJSONParsing)&&d;try{return JSON.parse(o,this.parseReviver)}catch(v){if(p)throw v.name==="SyntaxError"?re.from(v,re.ERR_BAD_RESPONSE,this,null,this.response):v}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],l=>{vi.headers[l]={}});const f2=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h2=l=>{const o={};let u,c,d;return l&&l.split(`
12
+ `).forEach(function(p){d=p.indexOf(":"),u=p.substring(0,d).trim().toLowerCase(),c=p.substring(d+1).trim(),!(!u||o[u]&&f2[u])&&(u==="set-cookie"?o[u]?o[u].push(c):o[u]=[c]:o[u]=o[u]?o[u]+", "+c:c)}),o},em=Symbol("internals");function oi(l){return l&&String(l).trim().toLowerCase()}function Fr(l){return l===!1||l==null?l:N.isArray(l)?l.map(Fr):String(l)}function p2(l){const o=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let c;for(;c=u.exec(l);)o[c[1]]=c[2];return o}const m2=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function Gc(l,o,u,c,d){if(N.isFunction(c))return c.call(this,o,u);if(d&&(o=u),!!N.isString(o)){if(N.isString(c))return o.indexOf(c)!==-1;if(N.isRegExp(c))return c.test(o)}}function g2(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,u,c)=>u.toUpperCase()+c)}function y2(l,o){const u=N.toCamelCase(" "+o);["get","set","has"].forEach(c=>{Object.defineProperty(l,c+u,{value:function(d,h,p){return this[c].call(this,o,d,h,p)},configurable:!0})})}let zt=class{constructor(o){o&&this.set(o)}set(o,u,c){const d=this;function h(v,b,m){const x=oi(b);if(!x)throw new Error("header name must be a non-empty string");const y=N.findKey(d,x);(!y||d[y]===void 0||m===!0||m===void 0&&d[y]!==!1)&&(d[y||b]=Fr(v))}const p=(v,b)=>N.forEach(v,(m,x)=>h(m,x,b));if(N.isPlainObject(o)||o instanceof this.constructor)p(o,u);else if(N.isString(o)&&(o=o.trim())&&!m2(o))p(h2(o),u);else if(N.isObject(o)&&N.isIterable(o)){let v={},b,m;for(const x of o){if(!N.isArray(x))throw TypeError("Object iterator must return a key-value pair");v[m=x[0]]=(b=v[m])?N.isArray(b)?[...b,x[1]]:[b,x[1]]:x[1]}p(v,u)}else o!=null&&h(u,o,c);return this}get(o,u){if(o=oi(o),o){const c=N.findKey(this,o);if(c){const d=this[c];if(!u)return d;if(u===!0)return p2(d);if(N.isFunction(u))return u.call(this,d,c);if(N.isRegExp(u))return u.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,u){if(o=oi(o),o){const c=N.findKey(this,o);return!!(c&&this[c]!==void 0&&(!u||Gc(this,this[c],c,u)))}return!1}delete(o,u){const c=this;let d=!1;function h(p){if(p=oi(p),p){const v=N.findKey(c,p);v&&(!u||Gc(c,c[v],v,u))&&(delete c[v],d=!0)}}return N.isArray(o)?o.forEach(h):h(o),d}clear(o){const u=Object.keys(this);let c=u.length,d=!1;for(;c--;){const h=u[c];(!o||Gc(this,this[h],h,o,!0))&&(delete this[h],d=!0)}return d}normalize(o){const u=this,c={};return N.forEach(this,(d,h)=>{const p=N.findKey(c,h);if(p){u[p]=Fr(d),delete u[h];return}const v=o?g2(h):String(h).trim();v!==h&&delete u[h],u[v]=Fr(d),c[v]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const u=Object.create(null);return N.forEach(this,(c,d)=>{c!=null&&c!==!1&&(u[d]=o&&N.isArray(c)?c.join(", "):c)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,u])=>o+": "+u).join(`
13
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...u){const c=new this(o);return u.forEach(d=>c.set(d)),c}static accessor(o){const c=(this[em]=this[em]={accessors:{}}).accessors,d=this.prototype;function h(p){const v=oi(p);c[v]||(y2(d,p),c[v]=!0)}return N.isArray(o)?o.forEach(h):h(o),this}};zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(zt.prototype,({value:l},o)=>{let u=o[0].toUpperCase()+o.slice(1);return{get:()=>l,set(c){this[u]=c}}});N.freezeMethods(zt);function Yc(l,o){const u=this||vi,c=o||u,d=zt.from(c.headers);let h=c.data;return N.forEach(l,function(v){h=v.call(u,h,d.normalize(),o?o.status:void 0)}),d.normalize(),h}function o0(l){return!!(l&&l.__CANCEL__)}let bi=class extends re{constructor(o,u,c){super(o??"canceled",re.ERR_CANCELED,u,c),this.name="CanceledError",this.__CANCEL__=!0}};function s0(l,o,u){const c=u.config.validateStatus;!u.status||!c||c(u.status)?l(u):o(new re("Request failed with status code "+u.status,[re.ERR_BAD_REQUEST,re.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function x2(l){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return o&&o[1]||""}function v2(l,o){l=l||10;const u=new Array(l),c=new Array(l);let d=0,h=0,p;return o=o!==void 0?o:1e3,function(b){const m=Date.now(),x=c[h];p||(p=m),u[d]=b,c[d]=m;let y=h,M=0;for(;y!==d;)M+=u[y++],y=y%l;if(d=(d+1)%l,d===h&&(h=(h+1)%l),m-p<o)return;const E=x&&m-x;return E?Math.round(M*1e3/E):void 0}}function b2(l,o){let u=0,c=1e3/o,d,h;const p=(m,x=Date.now())=>{u=x,d=null,h&&(clearTimeout(h),h=null),l(...m)};return[(...m)=>{const x=Date.now(),y=x-u;y>=c?p(m,x):(d=m,h||(h=setTimeout(()=>{h=null,p(d)},c-y)))},()=>d&&p(d)]}const eo=(l,o,u=3)=>{let c=0;const d=v2(50,250);return b2(h=>{const p=h.loaded,v=h.lengthComputable?h.total:void 0,b=p-c,m=d(b),x=p<=v;c=p;const y={loaded:p,total:v,progress:v?p/v:void 0,bytes:b,rate:m||void 0,estimated:m&&v&&x?(v-p)/m:void 0,event:h,lengthComputable:v!=null,[o?"download":"upload"]:!0};l(y)},u)},tm=(l,o)=>{const u=l!=null;return[c=>o[0]({lengthComputable:u,total:l,loaded:c}),o[1]]},am=l=>(...o)=>N.asap(()=>l(...o)),S2=ht.hasStandardBrowserEnv?((l,o)=>u=>(u=new URL(u,ht.origin),l.protocol===u.protocol&&l.host===u.host&&(o||l.port===u.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,j2=ht.hasStandardBrowserEnv?{write(l,o,u,c,d,h,p){if(typeof document>"u")return;const v=[`${l}=${encodeURIComponent(o)}`];N.isNumber(u)&&v.push(`expires=${new Date(u).toUTCString()}`),N.isString(c)&&v.push(`path=${c}`),N.isString(d)&&v.push(`domain=${d}`),h===!0&&v.push("secure"),N.isString(p)&&v.push(`SameSite=${p}`),document.cookie=v.join("; ")},read(l){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function z2(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function E2(l,o){return o?l.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):l}function c0(l,o,u){let c=!z2(o);return l&&(c||u==!1)?E2(l,o):o}const nm=l=>l instanceof zt?{...l}:l;function vn(l,o){o=o||{};const u={};function c(m,x,y,M){return N.isPlainObject(m)&&N.isPlainObject(x)?N.merge.call({caseless:M},m,x):N.isPlainObject(x)?N.merge({},x):N.isArray(x)?x.slice():x}function d(m,x,y,M){if(N.isUndefined(x)){if(!N.isUndefined(m))return c(void 0,m,y,M)}else return c(m,x,y,M)}function h(m,x){if(!N.isUndefined(x))return c(void 0,x)}function p(m,x){if(N.isUndefined(x)){if(!N.isUndefined(m))return c(void 0,m)}else return c(void 0,x)}function v(m,x,y){if(y in o)return c(m,x);if(y in l)return c(void 0,m)}const b={url:h,method:h,data:h,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:v,headers:(m,x,y)=>d(nm(m),nm(x),y,!0)};return N.forEach(Object.keys({...l,...o}),function(x){if(x==="__proto__"||x==="constructor"||x==="prototype")return;const y=N.hasOwnProp(b,x)?b[x]:d,M=y(l[x],o[x],x);N.isUndefined(M)&&y!==v||(u[x]=M)}),u}const u0=l=>{const o=vn({},l);let{data:u,withXSRFToken:c,xsrfHeaderName:d,xsrfCookieName:h,headers:p,auth:v}=o;if(o.headers=p=zt.from(p),o.url=i0(c0(o.baseURL,o.url,o.allowAbsoluteUrls),l.params,l.paramsSerializer),v&&p.set("Authorization","Basic "+btoa((v.username||"")+":"+(v.password?unescape(encodeURIComponent(v.password)):""))),N.isFormData(u)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(N.isFunction(u.getHeaders)){const b=u.getHeaders(),m=["content-type","content-length"];Object.entries(b).forEach(([x,y])=>{m.includes(x.toLowerCase())&&p.set(x,y)})}}if(ht.hasStandardBrowserEnv&&(c&&N.isFunction(c)&&(c=c(o)),c||c!==!1&&S2(o.url))){const b=d&&h&&j2.read(h);b&&p.set(d,b)}return o},R2=typeof XMLHttpRequest<"u",A2=R2&&function(l){return new Promise(function(u,c){const d=u0(l);let h=d.data;const p=zt.from(d.headers).normalize();let{responseType:v,onUploadProgress:b,onDownloadProgress:m}=d,x,y,M,E,R;function C(){E&&E(),R&&R(),d.cancelToken&&d.cancelToken.unsubscribe(x),d.signal&&d.signal.removeEventListener("abort",x)}let w=new XMLHttpRequest;w.open(d.method.toUpperCase(),d.url,!0),w.timeout=d.timeout;function Y(){if(!w)return;const X=zt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),ce={data:!v||v==="text"||v==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:X,config:l,request:w};s0(function(F){u(F),C()},function(F){c(F),C()},ce),w=null}"onloadend"in w?w.onloadend=Y:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(Y)},w.onabort=function(){w&&(c(new re("Request aborted",re.ECONNABORTED,l,w)),w=null)},w.onerror=function(le){const ce=le&&le.message?le.message:"Network Error",me=new re(ce,re.ERR_NETWORK,l,w);me.event=le||null,c(me),w=null},w.ontimeout=function(){let le=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const ce=d.transitional||xu;d.timeoutErrorMessage&&(le=d.timeoutErrorMessage),c(new re(le,ce.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,l,w)),w=null},h===void 0&&p.setContentType(null),"setRequestHeader"in w&&N.forEach(p.toJSON(),function(le,ce){w.setRequestHeader(ce,le)}),N.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),v&&v!=="json"&&(w.responseType=d.responseType),m&&([M,R]=eo(m,!0),w.addEventListener("progress",M)),b&&w.upload&&([y,E]=eo(b),w.upload.addEventListener("progress",y),w.upload.addEventListener("loadend",E)),(d.cancelToken||d.signal)&&(x=X=>{w&&(c(!X||X.type?new bi(null,l,w):X),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(x),d.signal&&(d.signal.aborted?x():d.signal.addEventListener("abort",x)));const I=x2(d.url);if(I&&ht.protocols.indexOf(I)===-1){c(new re("Unsupported protocol "+I+":",re.ERR_BAD_REQUEST,l));return}w.send(h||null)})},T2=(l,o)=>{const{length:u}=l=l?l.filter(Boolean):[];if(o||u){let c=new AbortController,d;const h=function(m){if(!d){d=!0,v();const x=m instanceof Error?m:this.reason;c.abort(x instanceof re?x:new bi(x instanceof Error?x.message:x))}};let p=o&&setTimeout(()=>{p=null,h(new re(`timeout of ${o}ms exceeded`,re.ETIMEDOUT))},o);const v=()=>{l&&(p&&clearTimeout(p),p=null,l.forEach(m=>{m.unsubscribe?m.unsubscribe(h):m.removeEventListener("abort",h)}),l=null)};l.forEach(m=>m.addEventListener("abort",h));const{signal:b}=c;return b.unsubscribe=()=>N.asap(v),b}},C2=function*(l,o){let u=l.byteLength;if(u<o){yield l;return}let c=0,d;for(;c<u;)d=c+o,yield l.slice(c,d),c=d},w2=async function*(l,o){for await(const u of _2(l))yield*C2(u,o)},_2=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const o=l.getReader();try{for(;;){const{done:u,value:c}=await o.read();if(u)break;yield c}}finally{await o.cancel()}},lm=(l,o,u,c)=>{const d=w2(l,o);let h=0,p,v=b=>{p||(p=!0,c&&c(b))};return new ReadableStream({async pull(b){try{const{done:m,value:x}=await d.next();if(m){v(),b.close();return}let y=x.byteLength;if(u){let M=h+=y;u(M)}b.enqueue(new Uint8Array(x))}catch(m){throw v(m),m}},cancel(b){return v(b),d.return()}},{highWaterMark:2})},im=64*1024,{isFunction:Gr}=N,O2=(({Request:l,Response:o})=>({Request:l,Response:o}))(N.global),{ReadableStream:rm,TextEncoder:om}=N.global,sm=(l,...o)=>{try{return!!l(...o)}catch{return!1}},M2=l=>{l=N.merge.call({skipUndefined:!0},O2,l);const{fetch:o,Request:u,Response:c}=l,d=o?Gr(o):typeof fetch=="function",h=Gr(u),p=Gr(c);if(!d)return!1;const v=d&&Gr(rm),b=d&&(typeof om=="function"?(R=>C=>R.encode(C))(new om):async R=>new Uint8Array(await new u(R).arrayBuffer())),m=h&&v&&sm(()=>{let R=!1;const C=new u(ht.origin,{body:new rm,method:"POST",get duplex(){return R=!0,"half"}}).headers.has("Content-Type");return R&&!C}),x=p&&v&&sm(()=>N.isReadableStream(new c("").body)),y={stream:x&&(R=>R.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(R=>{!y[R]&&(y[R]=(C,w)=>{let Y=C&&C[R];if(Y)return Y.call(C);throw new re(`Response type '${R}' is not supported`,re.ERR_NOT_SUPPORT,w)})});const M=async R=>{if(R==null)return 0;if(N.isBlob(R))return R.size;if(N.isSpecCompliantForm(R))return(await new u(ht.origin,{method:"POST",body:R}).arrayBuffer()).byteLength;if(N.isArrayBufferView(R)||N.isArrayBuffer(R))return R.byteLength;if(N.isURLSearchParams(R)&&(R=R+""),N.isString(R))return(await b(R)).byteLength},E=async(R,C)=>{const w=N.toFiniteNumber(R.getContentLength());return w??M(C)};return async R=>{let{url:C,method:w,data:Y,signal:I,cancelToken:X,timeout:le,onDownloadProgress:ce,onUploadProgress:me,responseType:F,headers:we,withCredentials:ke="same-origin",fetchOptions:it}=u0(R),Je=o||fetch;F=F?(F+"").toLowerCase():"text";let Z=T2([I,X&&X.toAbortSignal()],le),de=null;const xe=Z&&Z.unsubscribe&&(()=>{Z.unsubscribe()});let _e;try{if(me&&m&&w!=="get"&&w!=="head"&&(_e=await E(we,Y))!==0){let S=new u(C,{method:"POST",body:Y,duplex:"half"}),B;if(N.isFormData(Y)&&(B=S.headers.get("content-type"))&&we.setContentType(B),S.body){const[G,V]=tm(_e,eo(am(me)));Y=lm(S.body,im,G,V)}}N.isString(ke)||(ke=ke?"include":"omit");const D=h&&"credentials"in u.prototype,Q={...it,signal:Z,method:w.toUpperCase(),headers:we.normalize().toJSON(),body:Y,duplex:"half",credentials:D?ke:void 0};de=h&&new u(C,Q);let te=await(h?Je(de,it):Je(C,Q));const Ee=x&&(F==="stream"||F==="response");if(x&&(ce||Ee&&xe)){const S={};["status","statusText","headers"].forEach($=>{S[$]=te[$]});const B=N.toFiniteNumber(te.headers.get("content-length")),[G,V]=ce&&tm(B,eo(am(ce),!0))||[];te=new c(lm(te.body,im,G,()=>{V&&V(),xe&&xe()}),S)}F=F||"text";let W=await y[N.findKey(y,F)||"text"](te,R);return!Ee&&xe&&xe(),await new Promise((S,B)=>{s0(S,B,{data:W,headers:zt.from(te.headers),status:te.status,statusText:te.statusText,config:R,request:de})})}catch(D){throw xe&&xe(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,R,de,D&&D.response),{cause:D.cause||D}):re.from(D,D&&D.code,R,de,D&&D.response)}}},k2=new Map,d0=l=>{let o=l&&l.env||{};const{fetch:u,Request:c,Response:d}=o,h=[c,d,u];let p=h.length,v=p,b,m,x=k2;for(;v--;)b=h[v],m=x.get(b),m===void 0&&x.set(b,m=v?new Map:M2(o)),x=m;return m};d0();const bu={http:Jb,xhr:A2,fetch:{get:d0}};N.forEach(bu,(l,o)=>{if(l){try{Object.defineProperty(l,"name",{value:o})}catch{}Object.defineProperty(l,"adapterName",{value:o})}});const cm=l=>`- ${l}`,D2=l=>N.isFunction(l)||l===null||l===!1;function B2(l,o){l=N.isArray(l)?l:[l];const{length:u}=l;let c,d;const h={};for(let p=0;p<u;p++){c=l[p];let v;if(d=c,!D2(c)&&(d=bu[(v=String(c)).toLowerCase()],d===void 0))throw new re(`Unknown adapter '${v}'`);if(d&&(N.isFunction(d)||(d=d.get(o))))break;h[v||"#"+p]=d}if(!d){const p=Object.entries(h).map(([b,m])=>`adapter ${b} `+(m===!1?"is not supported by the environment":"is not available in the build"));let v=u?p.length>1?`since :
14
+ `+p.map(cm).join(`
15
+ `):" "+cm(p[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+v,"ERR_NOT_SUPPORT")}return d}const f0={getAdapter:B2,adapters:bu};function Vc(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new bi(null,l)}function um(l){return Vc(l),l.headers=zt.from(l.headers),l.data=Yc.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),f0.getAdapter(l.adapter||vi.adapter,l)(l).then(function(c){return Vc(l),c.data=Yc.call(l,l.transformResponse,c),c.headers=zt.from(c.headers),c},function(c){return o0(c)||(Vc(l),c&&c.response&&(c.response.data=Yc.call(l,l.transformResponse,c.response),c.response.headers=zt.from(c.response.headers))),Promise.reject(c)})}const h0="1.13.5",uo={};["object","boolean","number","function","string","symbol"].forEach((l,o)=>{uo[l]=function(c){return typeof c===l||"a"+(o<1?"n ":" ")+l}});const dm={};uo.transitional=function(o,u,c){function d(h,p){return"[Axios v"+h0+"] Transitional option '"+h+"'"+p+(c?". "+c:"")}return(h,p,v)=>{if(o===!1)throw new re(d(p," has been removed"+(u?" in "+u:"")),re.ERR_DEPRECATED);return u&&!dm[p]&&(dm[p]=!0,console.warn(d(p," has been deprecated since v"+u+" and will be removed in the near future"))),o?o(h,p,v):!0}};uo.spelling=function(o){return(u,c)=>(console.warn(`${c} is likely a misspelling of ${o}`),!0)};function N2(l,o,u){if(typeof l!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const c=Object.keys(l);let d=c.length;for(;d-- >0;){const h=c[d],p=o[h];if(p){const v=l[h],b=v===void 0||p(v,h,l);if(b!==!0)throw new re("option "+h+" must be "+b,re.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new re("Unknown option "+h,re.ERR_BAD_OPTION)}}const Kr={assertOptions:N2,validators:uo},Qt=Kr.validators;let xn=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Pp,response:new Pp}}async request(o,u){try{return await this._request(o,u)}catch(c){if(c instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const h=d.stack?d.stack.replace(/^.+\n/,""):"";try{c.stack?h&&!String(c.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(c.stack+=`
16
+ `+h):c.stack=h}catch{}}throw c}}_request(o,u){typeof o=="string"?(u=u||{},u.url=o):u=o||{},u=vn(this.defaults,u);const{transitional:c,paramsSerializer:d,headers:h}=u;c!==void 0&&Kr.assertOptions(c,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean),legacyInterceptorReqResOrdering:Qt.transitional(Qt.boolean)},!1),d!=null&&(N.isFunction(d)?u.paramsSerializer={serialize:d}:Kr.assertOptions(d,{encode:Qt.function,serialize:Qt.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),Kr.assertOptions(u,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let p=h&&N.merge(h.common,h[u.method]);h&&N.forEach(["delete","get","head","post","put","patch","common"],R=>{delete h[R]}),u.headers=zt.concat(p,h);const v=[];let b=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(u)===!1)return;b=b&&C.synchronous;const w=u.transitional||xu;w&&w.legacyInterceptorReqResOrdering?v.unshift(C.fulfilled,C.rejected):v.push(C.fulfilled,C.rejected)});const m=[];this.interceptors.response.forEach(function(C){m.push(C.fulfilled,C.rejected)});let x,y=0,M;if(!b){const R=[um.bind(this),void 0];for(R.unshift(...v),R.push(...m),M=R.length,x=Promise.resolve(u);y<M;)x=x.then(R[y++],R[y++]);return x}M=v.length;let E=u;for(;y<M;){const R=v[y++],C=v[y++];try{E=R(E)}catch(w){C.call(this,w);break}}try{x=um.call(this,E)}catch(R){return Promise.reject(R)}for(y=0,M=m.length;y<M;)x=x.then(m[y++],m[y++]);return x}getUri(o){o=vn(this.defaults,o);const u=c0(o.baseURL,o.url,o.allowAbsoluteUrls);return i0(u,o.params,o.paramsSerializer)}};N.forEach(["delete","get","head","options"],function(o){xn.prototype[o]=function(u,c){return this.request(vn(c||{},{method:o,url:u,data:(c||{}).data}))}});N.forEach(["post","put","patch"],function(o){function u(c){return function(h,p,v){return this.request(vn(v||{},{method:o,headers:c?{"Content-Type":"multipart/form-data"}:{},url:h,data:p}))}}xn.prototype[o]=u(),xn.prototype[o+"Form"]=u(!0)});let H2=class p0{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(h){u=h});const c=this;this.promise.then(d=>{if(!c._listeners)return;let h=c._listeners.length;for(;h-- >0;)c._listeners[h](d);c._listeners=null}),this.promise.then=d=>{let h;const p=new Promise(v=>{c.subscribe(v),h=v}).then(d);return p.cancel=function(){c.unsubscribe(h)},p},o(function(h,p,v){c.reason||(c.reason=new bi(h,p,v),u(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const u=this._listeners.indexOf(o);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const o=new AbortController,u=c=>{o.abort(c)};return this.subscribe(u),o.signal.unsubscribe=()=>this.unsubscribe(u),o.signal}static source(){let o;return{token:new p0(function(d){o=d}),cancel:o}}};function U2(l){return function(u){return l.apply(null,u)}}function L2(l){return N.isObject(l)&&l.isAxiosError===!0}const iu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iu).forEach(([l,o])=>{iu[o]=l});function m0(l){const o=new xn(l),u=Fm(xn.prototype.request,o);return N.extend(u,xn.prototype,o,{allOwnKeys:!0}),N.extend(u,o,null,{allOwnKeys:!0}),u.create=function(d){return m0(vn(l,d))},u}const Ke=m0(vi);Ke.Axios=xn;Ke.CanceledError=bi;Ke.CancelToken=H2;Ke.isCancel=o0;Ke.VERSION=h0;Ke.toFormData=co;Ke.AxiosError=re;Ke.Cancel=Ke.CanceledError;Ke.all=function(o){return Promise.all(o)};Ke.spread=U2;Ke.isAxiosError=L2;Ke.mergeConfig=vn;Ke.AxiosHeaders=zt;Ke.formToJSON=l=>r0(N.isHTMLForm(l)?new FormData(l):l);Ke.getAdapter=f0.getAdapter;Ke.HttpStatusCode=iu;Ke.default=Ke;const{Axios:mS,AxiosError:gS,CanceledError:yS,isCancel:xS,CancelToken:vS,VERSION:bS,all:SS,Cancel:jS,isAxiosError:zS,spread:ES,toFormData:RS,AxiosHeaders:AS,HttpStatusCode:TS,formToJSON:CS,getAdapter:wS,mergeConfig:_S}=Ke,g0="/api",He=Ke.create({baseURL:g0,headers:{"Content-Type":"application/json"}});He.interceptors.request.use(l=>{const o=localStorage.getItem("samarthya_token");return o&&(l.headers.Authorization=`Bearer ${o}`),l});const Su={register:l=>He.post("/auth/register",l),login:l=>He.post("/auth/login",l),demoLogin:()=>He.post("/auth/demo"),getProfile:()=>He.get("/auth/profile"),updateProfile:l=>He.put("/auth/profile",l)},si={sendMessage:l=>He.post("/chat/message",l),getConversations:()=>He.get("/chat/conversations"),getConversation:l=>He.get(`/chat/conversations/${l}`),deleteConversation:l=>He.delete(`/chat/conversations/${l}`),togglePin:l=>He.patch(`/chat/conversations/${l}/pin`)},Jr={getLogs:l=>He.get("/audit/logs",{params:l}),getStats:()=>He.get("/audit/stats"),rollback:l=>He.post(`/audit/rollback/${l}`)},Xc={getAll:()=>He.get("/tools"),getPacks:()=>He.get("/tools/packs"),getPackTools:l=>He.get(`/tools/packs/${l}`)},q2={analyze:(l,o)=>He.post("/screen/analyze",{image:l,prompt:o}),getSupported:()=>He.get("/screen/supported")},gn={list:l=>He.get("/files/list",{params:{path:l}}),read:l=>He.get("/files/read",{params:{path:l}}),download:l=>`${g0}/files/download?path=${encodeURIComponent(l)}&token=${localStorage.getItem("samarthya_token")}`,mkdir:(l,o)=>He.post("/files/mkdir",{name:l,parentPath:o}),upload:(l,o,u)=>He.post("/files/upload",{filename:l,content:o,parentPath:u}),deleteFile:l=>He.delete("/files/delete",{params:{path:l}}),getStats:()=>He.get("/files/stats")},Qc={getStatus:()=>He.get("/platform/status"),getJobs:()=>He.get("/platform/jobs"),emergencyStop:()=>He.post("/platform/emergency-stop")},G2=[{emoji:"🔍",text:"Web search karo",textEn:"Search the web"},{emoji:"📝",text:"Note likh do",textEn:"Take a note"},{emoji:"🧮",text:"Calculate karo",textEn:"Do a calculation"},{emoji:"⏰",text:"Reminder set karo",textEn:"Set a reminder"},{emoji:"📅",text:"Calendar mein add karo",textEn:"Add to calendar"},{emoji:"💳",text:"UPI link banao",textEn:"Generate UPI link"}],Y2=l=>{if(!l)return"";const o=new Date(l);return isNaN(o)?"":o.toLocaleTimeString("en-IN",{hour:"2-digit",minute:"2-digit",hour12:!0})},V2=l=>{const o={};return l.forEach(u=>{const c=u.createdAt?new Date(u.createdAt):new Date;if(isNaN(c))return;const d=new Date,h=new Date;h.setDate(d.getDate()-1);let p;c.toDateString()===d.toDateString()?p="Today":c.toDateString()===h.toDateString()?p="Yesterday":p=c.toLocaleDateString("en-IN",{day:"short",month:"short",year:"numeric"}),o[p]||(o[p]=[]),o[p].push(u)}),o},fm=l=>l?l.split(`
17
+ `).map((o,u)=>{const c=[];let d=o;const h=/\[([^\]]+)\]\((https?:\/\/[^\)]+)\)/;let p;for(;(p=h.exec(d))!==null;){if(p.index>0){const v=d.substring(0,p.index);c.push(s.jsx("span",{children:v.replace(/\*\*/g,"")},`t-${p.index}`))}c.push(s.jsx("a",{href:p[2],target:"_blank",rel:"noopener noreferrer",style:{color:"#FF9933",textDecoration:"underline",fontWeight:"bold"},children:p[1].replace(/\*\*/g,"")},`l-${p.index}`)),d=d.substring(p.index+p[0].length)}if(d.length>0){let v=d;v.startsWith("- ")&&(v="• "+v.substring(2)),c.push(s.jsx("span",{children:v.replace(/\*\*/g,"")},`end-${u}`))}return s.jsxs(to.Fragment,{children:[c.length>0?c:s.jsx("span",{children:o.replace(/\*\*/g,"")}),s.jsx("br",{})]},u)}):null;function hm({user:l}){const[o,u]=A.useState([]),[c,d]=A.useState(null),[h,p]=A.useState([]),[v,b]=A.useState(""),[m,x]=A.useState(!1),[y,M]=A.useState(!1),[E,R]=A.useState(!1),[C,w]=A.useState(!1),[Y,I]=A.useState(null),X=A.useRef(null),le=A.useRef(null),[ce,me]=A.useState(""),F=A.useRef(null),we=A.useRef(null),ke=A.useRef(null);A.useEffect(()=>{"Notification"in window&&Notification.permission!=="granted"&&Notification.permission!=="denied"&&Notification.requestPermission()},[]);const it=W=>{const S=W||"Reminder";"Notification"in window&&Notification.permission==="granted"&&new Notification("⏰ Reminder from SamarthyaBot",{body:S});const B=window.AudioContext||window.webkitAudioContext;if(B){X.current=new B;const G=X.current.createOscillator(),V=X.current.createGain();G.type="triangle",G.frequency.setValueAtTime(600,X.current.currentTime),setInterval(()=>{le.current&&X.current&&(G.frequency.setValueAtTime(800,X.current.currentTime),G.frequency.exponentialRampToValueAtTime(400,X.current.currentTime+.3))},500),V.gain.value=.1,G.connect(V),V.connect(X.current.destination),G.start(),le.current=G}I(S)},Je=()=>{I(null),le.current&&(le.current.stop(),le.current=null),X.current&&(X.current.close(),X.current=null)};A.useEffect(()=>(xe(),Z(),()=>{F.current&&F.current.abort()}),[]),A.useEffect(()=>{we.current?.scrollIntoView({behavior:"smooth"})},[h]);const Z=()=>{const W=window.SpeechRecognition||window.webkitSpeechRecognition;if(!W)return;w(!0);const S=new W;S.continuous=!1,S.interimResults=!0,S.lang="hi-IN",S.maxAlternatives=1,S.onresult=B=>{let G="";for(let V=0;V<B.results.length;V++)G+=B.results[V][0].transcript;me(G),b(G),B.results[B.results.length-1].isFinal&&setTimeout(()=>{R(!1),G.trim()&&D(G.trim())},500)},S.onerror=B=>{console.error("Voice error:",B.error),R(!1)},S.onend=()=>{R(!1)},F.current=S},de=()=>{F.current&&(E?(F.current.stop(),R(!1)):(me(""),F.current.lang=l?.language==="hindi"?"hi-IN":l?.language==="english"?"en-IN":"hi-IN",F.current.start(),R(!0)))},xe=async()=>{try{const W=await si.getConversations();u(W.data.conversations||[])}catch{console.error("Failed to load conversations")}},_e=async W=>{try{const S=await si.getConversation(W);d(S.data.conversation),p(S.data.conversation.messages||[])}catch{console.error("Failed to load conversation")}},D=async W=>{const S=W||v.trim();if(!S||m)return;b("");const B={role:"user",content:S,createdAt:new Date};p(G=>[...G,B]),x(!0),M(!0);try{const V=(await si.sendMessage({message:S,conversationId:c?._id})).data;c||(d({_id:V.conversationId}),xe());const $={role:"assistant",content:V.message.content,toolCalls:V.message.toolCalls,sensitiveDataWarnings:V.message.sensitiveDataWarnings,createdAt:new Date};p(oe=>[...oe,$]),$.toolCalls&&$.toolCalls.forEach(oe=>{if(oe.toolName==="reminder_set"&&oe.notificationParams){const{delayMs:Re,message:rt}=oe.notificationParams;setTimeout(()=>{it(rt)},Re||5e3)}})}catch{p(V=>[...V,{role:"assistant",content:l?.language==="english"?"❌ Oops, an error occurred. Check the server or try again.":"❌ Arre, kuch error aa gaya. Server check karo ya dubara try karo.",createdAt:new Date}])}finally{x(!1),M(!1),ke.current?.focus()}},Q=()=>{d(null),p([]),ke.current?.focus()},te=async(W,S)=>{S.stopPropagation();try{await si.deleteConversation(W),c?._id===W&&Q(),xe()}catch{console.error("Delete failed")}},Ee=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),D())};return s.jsxs("div",{style:J.container,children:[Y&&s.jsx("div",{style:J.alarmPopupLayer,children:s.jsxs("div",{style:J.alarmBox,children:[s.jsx("div",{style:J.alarmIcon,children:"⏰"}),s.jsxs("div",{style:J.alarmContent,children:[s.jsx("h4",{style:J.alarmTitle,children:"Reminder"}),s.jsx("p",{style:J.alarmMessage,children:Y})]}),s.jsx("button",{onClick:Je,style:J.alarmStopBtn,children:"Stop Alarm"})]})}),s.jsxs("div",{style:J.convSidebar,children:[s.jsxs("div",{style:J.convHeader,children:[s.jsx("h3",{style:J.convTitle,children:"💬 Conversations"}),s.jsx("button",{onClick:Q,style:J.newBtn,title:"New Chat",children:s.jsx(Nv,{size:18})})]}),s.jsxs("div",{style:J.convList,children:[o.map(W=>s.jsxs("button",{onClick:()=>_e(W._id),style:{...J.convItem,...c?._id===W._id?J.convItemActive:{}},children:[s.jsx("span",{style:J.convItemTitle,children:W.title}),s.jsx("div",{style:J.convActions,children:s.jsx("button",{onClick:S=>te(W._id,S),style:J.convDelBtn,children:s.jsx(Zm,{size:14})})})]},W._id)),o.length===0&&s.jsx("p",{style:J.emptyConv,children:l?.language==="english"?"No conversations found. Start a new one! 🚀":"Koi conversation nahi. Naya shuru karo! 🚀"})]})]}),s.jsxs("div",{style:J.chatArea,children:[E&&s.jsxs("div",{style:J.voiceOverlay,children:[s.jsx("div",{style:J.voicePulseRing,children:s.jsx(Qp,{size:36,color:"#FF9933"})}),s.jsx("p",{style:J.voiceText,children:ce||(l?.language==="hindi"?"बोलिए...":l?.language==="english"?"Listening...":"Bol rahe ho... sunna shuru")}),s.jsx("p",{style:J.voiceHint,children:"🎙️ Hindi, Hinglish & English voice supported"}),s.jsxs("button",{onClick:de,style:J.voiceStopBtn,children:[s.jsx(Cv,{size:18})," Stop Listening"]})]}),s.jsxs("div",{style:J.messages,children:[h.length===0&&s.jsxs("div",{style:J.welcome,children:[s.jsx("div",{style:J.welcomeLogo,children:"स"}),s.jsxs("h2",{style:J.welcomeTitle,children:[l?.language==="english"?"Hello":"Namaste",", ",l?.name||"User","! 🙏"]}),s.jsx("p",{style:J.welcomeSubtitle,children:l?.language==="english"?"I am SamarthyaBot, your personal AI assistant. How can I help you today?":"Main SamarthyaBot hoon, aapka personal AI assistant. Kaise madad kar sakta hoon?"}),s.jsx("div",{style:J.quickActions,children:G2.map((W,S)=>s.jsxs("button",{onClick:()=>D(l?.language==="english"?W.textEn:W.text),style:J.quickActionBtn,children:[s.jsx("span",{style:J.quickEmoji,children:W.emoji}),s.jsx("span",{children:l?.language==="english"?W.textEn:W.text})]},S))})]}),Object.entries(V2(h)).map(([W,S],B)=>s.jsxs(to.Fragment,{children:[s.jsx("div",{style:J.dateDivider,children:s.jsx("span",{style:J.dateBadge,children:W})}),S.map((G,V)=>s.jsxs("div",{style:{...J.message,...G.role==="user"?J.userMessage:J.assistantMessage,animation:"fadeInUp 0.3s ease-out"},children:[s.jsx("div",{style:G.role==="user"?J.userAvatar:J.assistantAvatar,children:G.role==="user"?s.jsx(Wm,{size:16}):s.jsx(Ic,{size:16})}),s.jsxs("div",{style:J.messageContent,children:[G.sensitiveDataWarnings?.length>0&&s.jsxs("div",{style:J.warningBanner,children:[s.jsx(mu,{size:14}),s.jsxs("span",{children:["⚠️ Sensitive data detected: ",G.sensitiveDataWarnings.map($=>$.type).join(", ")]})]}),s.jsx("div",{style:J.messageText,children:fm(G.content)}),G.toolCalls?.length>0&&s.jsx("div",{style:J.toolCalls,children:G.toolCalls.map(($,oe)=>s.jsxs("div",{style:J.toolCall,children:[s.jsxs("div",{style:J.toolCallHeader,children:[s.jsxs("span",{style:{...J.toolBadge,background:$.status==="completed"?"rgba(16,185,129,0.15)":$.status==="blocked"?"rgba(239,68,68,0.15)":"rgba(245,158,11,0.15)",color:$.status==="completed"?"#10b981":$.status==="blocked"?"#ef4444":"#f59e0b"},children:[$.status==="completed"?"✅":$.status==="blocked"?"🚫":"⏳"," ",$.toolName]}),s.jsxs("span",{style:J.toolRisk,children:["Risk: ",$.riskLevel]})]}),$.result&&s.jsx("div",{style:J.toolResult,children:fm($.result)})]},oe))}),s.jsx("div",{style:{...J.msgTime,color:G.role==="user"?"rgba(255,255,255,0.7)":"var(--text-muted)"},children:Y2(G.createdAt)})]})]},`msg-${B}-${V}`))]},`group-${B}`)),y&&s.jsxs("div",{style:{...J.message,...J.assistantMessage},children:[s.jsx("div",{style:J.assistantAvatar,children:s.jsx(Ic,{size:16})}),s.jsxs("div",{style:J.typingIndicator,children:[s.jsx("span",{style:{...J.typingDot,animationDelay:"0s"}}),s.jsx("span",{style:{...J.typingDot,animationDelay:"0.2s"}}),s.jsx("span",{style:{...J.typingDot,animationDelay:"0.4s"}})]})]}),s.jsx("div",{ref:we})]}),s.jsxs("div",{style:J.inputArea,children:[s.jsxs("div",{style:J.inputWrap,children:[s.jsx("textarea",{ref:ke,value:v,onChange:W=>b(W.target.value),onKeyDown:Ee,placeholder:l?.language==="hindi"?"यहां टाइप करें...":l?.language==="hinglish"?"Yahan type karo...":"Type your message...",style:J.textarea,rows:1,disabled:m}),s.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},ref:W=>{W&&(W._screenInput=!0)},id:"screenInput",onChange:async W=>{const S=W.target.files?.[0];if(S){x(!0),p(B=>[...B,{role:"user",content:`📸 Screenshot uploaded: ${S.name}`,createdAt:new Date}]),M(!0);try{const B=new FileReader;B.onload=async()=>{const G=B.result,V=await q2.analyze(G,v.trim()||"Is screenshot mein kya hai? Next step batao.");p($=>[...$,{role:"assistant",content:`👁️ **Screen Analysis:**
18
+
19
+ ${V.data.analysis.content}`,createdAt:new Date}]),b("")},B.readAsDataURL(S)}catch{p(G=>[...G,{role:"assistant",content:l?.language==="english"?"❌ Screen analysis failed. Check the Gemini API key.":"❌ Screen analysis fail ho gaya. Gemini API key check karo.",createdAt:new Date}])}finally{x(!1),M(!1),W.target.value=""}}}}),s.jsx("button",{onClick:()=>document.getElementById("screenInput").click(),style:J.voiceBtn,title:"Screenshot upload for AI analysis",children:s.jsx(qx,{size:20})}),C&&s.jsx("button",{onClick:de,style:{...J.voiceBtn,...E?J.voiceBtnActive:{}},title:"Voice input (Hindi/English)",children:s.jsx(Qp,{size:20})}),s.jsx("button",{onClick:()=>D(),disabled:m||!v.trim(),style:{...J.sendBtn,opacity:m||!v.trim()?.5:1},children:m?s.jsx(zv,{size:20,style:{animation:"spin 1s linear infinite"}}):s.jsx(Xv,{size:20})})]}),s.jsx("p",{style:J.inputHint,children:"🇮🇳 Hindi, Hinglish & English supported • Enter to send • Shift+Enter for new line"})]})]})]})}const J={container:{display:"flex",height:"100vh",background:"var(--bg-primary)"},alarmPopupLayer:{position:"fixed",top:0,left:0,width:"100%",height:"100%",background:"rgba(0,0,0,0.6)",backdropFilter:"blur(5px)",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center"},alarmBox:{background:"rgba(20, 20, 35, 0.95)",border:"2px solid rgba(255, 107, 0, 0.5)",borderRadius:"var(--radius-lg)",padding:"32px",boxShadow:"0 20px 50px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",alignItems:"center",gap:"20px",maxWidth:"400px",textAlign:"center",animation:"pulseAlarm 1s infinite alternate"},alarmIcon:{fontSize:"4rem",animation:"ringAlarm 0.5s infinite alternate"},alarmTitle:{fontSize:"1.4rem",fontWeight:"bold",color:"var(--text-primary)",margin:0},alarmMessage:{fontSize:"1.1rem",color:"var(--text-secondary)",margin:0},alarmStopBtn:{background:"#ef4444",color:"white",border:"none",borderRadius:"var(--radius-md)",padding:"12px 24px",fontSize:"1rem",fontWeight:"bold",cursor:"pointer",boxShadow:"0 4px 15px rgba(239,68,68,0.3)",transition:"all 0.2s ease"},convSidebar:{width:"280px",minWidth:"200px",maxWidth:"500px",resize:"horizontal",overflowX:"hidden",background:"var(--bg-secondary)",borderRight:"1px solid var(--border-subtle)",display:"flex",flexDirection:"column",flexShrink:0},convHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px",borderBottom:"1px solid var(--border-subtle)"},convTitle:{fontSize:"1rem",fontWeight:600,color:"var(--text-primary)"},newBtn:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"white",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)"},convList:{flex:1,overflow:"auto",padding:"8px"},convItem:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"12px",background:"transparent",border:"none",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",textAlign:"left",transition:"all var(--transition-fast)",marginBottom:"2px"},convItemActive:{background:"rgba(255, 153, 51, 0.1)",color:"var(--text-primary)"},convItemTitle:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},convActions:{display:"flex",gap:"4px",flexShrink:0},convDelBtn:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",transition:"all var(--transition-fast)"},emptyConv:{padding:"20px",textAlign:"center",color:"var(--text-muted)",fontSize:"0.85rem"},chatArea:{flex:1,display:"flex",flexDirection:"column",minWidth:0},messages:{flex:1,overflow:"auto",padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},welcome:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,textAlign:"center",padding:"40px 20px",animation:"fadeInUp 0.6s ease-out"},welcomeLogo:{fontSize:"4rem",fontFamily:"var(--font-hindi)",fontWeight:700,background:"var(--gradient-primary)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",marginBottom:"16px",animation:"float 4s ease-in-out infinite"},welcomeTitle:{fontSize:"1.8rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},welcomeSubtitle:{fontSize:"1rem",color:"var(--text-muted)",marginBottom:"32px",maxWidth:"500px",fontFamily:"var(--font-primary)"},dateDivider:{display:"flex",justifyContent:"center",margin:"16px 0",width:"100%"},dateBadge:{backgroundColor:"var(--bg-card)",color:"var(--text-muted)",fontSize:"0.75rem",padding:"4px 12px",borderRadius:"16px",border:"1px solid var(--border-subtle)"},quickActions:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(200px, 1fr))",gap:"10px",maxWidth:"680px",width:"100%"},quickActionBtn:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",cursor:"pointer",fontSize:"0.85rem",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)",textAlign:"left"},quickEmoji:{fontSize:"1.2rem"},message:{display:"flex",gap:"12px",maxWidth:"85%",animation:"fadeIn 0.3s ease-out"},userMessage:{alignSelf:"flex-end",flexDirection:"row-reverse"},assistantMessage:{alignSelf:"flex-start"},userAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-saffron)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},assistantAvatar:{width:"34px",height:"34px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",flexShrink:0},messageContent:{maxWidth:"100%"},messageText:{padding:"14px 18px",borderRadius:"var(--radius-lg)",background:"var(--bg-card)",border:"1px solid var(--border-subtle)",color:"var(--text-primary)",fontSize:"0.9rem",lineHeight:1.7,wordBreak:"break-word"},warningBanner:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",background:"rgba(245, 158, 11, 0.1)",border:"1px solid rgba(245, 158, 11, 0.3)",borderRadius:"var(--radius-sm)",color:"#f59e0b",fontSize:"0.8rem",marginBottom:"8px"},msgTime:{fontSize:"0.7rem",textAlign:"right",marginTop:"4px",fontWeight:"500"},toolCalls:{marginTop:"8px",display:"flex",flexDirection:"column",gap:"6px"},toolCall:{padding:"10px 14px",background:"rgba(99, 102, 241, 0.06)",border:"1px solid rgba(99, 102, 241, 0.15)",borderRadius:"var(--radius-sm)",fontSize:"0.8rem"},toolCallHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"},toolBadge:{padding:"2px 8px",borderRadius:"var(--radius-full)",fontSize:"0.75rem",fontWeight:600},toolRisk:{fontSize:"0.7rem",color:"var(--text-muted)",textTransform:"uppercase"},toolResult:{color:"var(--text-secondary)",fontSize:"0.8rem",lineHeight:1.5,whiteSpace:"pre-wrap"},typingIndicator:{display:"flex",gap:"6px",padding:"14px 18px",background:"var(--bg-card)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border-subtle)"},typingDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",animation:"typing 1.4s ease-in-out infinite",display:"inline-block"},inputArea:{padding:"16px 24px 20px",borderTop:"1px solid var(--border-subtle)",background:"var(--bg-secondary)"},inputWrap:{display:"flex",alignItems:"flex-end",gap:"12px",padding:"6px 6px 6px 18px",background:"var(--bg-input)",border:"1px solid var(--border-primary)",borderRadius:"var(--radius-lg)",transition:"all var(--transition-normal)"},textarea:{flex:1,background:"transparent",border:"none",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.95rem",padding:"10px 0",resize:"none",outline:"none",maxHeight:"120px",lineHeight:1.5},sendBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"var(--gradient-primary)",border:"none",color:"#0D0D0D",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtn:{width:"42px",height:"42px",borderRadius:"var(--radius-md)",background:"transparent",border:"1px solid var(--border-subtle)",color:"var(--text-muted)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all var(--transition-fast)",flexShrink:0},voiceBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"var(--accent-saffron)",color:"var(--accent-saffron)",animation:"voicePulse 1.5s infinite"},voiceOverlay:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(13, 13, 13, 0.92)",backdropFilter:"blur(20px)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:50,animation:"fadeIn 0.3s ease-out",gap:"16px"},voicePulseRing:{width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255, 153, 51, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",animation:"voicePulse 1.5s infinite"},voiceText:{fontSize:"1.2rem",fontWeight:600,color:"var(--text-primary)",maxWidth:"400px",textAlign:"center"},voiceHint:{fontSize:"0.82rem",color:"var(--text-muted)"},voiceStopBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"rgba(239, 68, 68, 0.15)",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",color:"#ef4444",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)"},inputHint:{fontSize:"0.7rem",color:"var(--text-muted)",textAlign:"center",marginTop:"8px"}};function X2({user:l}){const o=lo(),[u,c]=A.useState(null),[d,h]=A.useState(null),[p,v]=A.useState([]),[b,m]=A.useState([]),[x,y]=A.useState(!0);A.useEffect(()=>{E();const C=setInterval(()=>{M()},15e3);return()=>clearInterval(C)},[]);const M=async()=>{try{const[C,w]=await Promise.all([Qc.getStatus().catch(()=>({data:{status:null}})),Qc.getJobs().catch(()=>({data:{jobs:[]}}))]);h(C.data.status),v(w.data.jobs||[])}catch{}},E=async()=>{y(!0);try{const[C,w]=await Promise.all([si.getConversations().catch(()=>({data:{conversations:[]}})),Jr.getStats().catch(()=>({data:{stats:{totalActions:0,byCategory:{},byStatus:{}}}}))]);m(C.data.conversations?.slice(0,5)||[]),c(w.data.stats),await M()}catch(C){console.error("Dashboard load error:",C)}finally{y(!1)}},R=C=>{if(!C)return"0h 0m";const w=Math.floor(C/3600),Y=Math.floor(C%3600/60);return`${w}h ${Y}m`};return x?s.jsx("div",{style:{...P.container,display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:s.jsx(Qr,{size:40,className:"spinner",style:{color:"var(--accent-primary)"}})}):s.jsxs("div",{style:P.container,children:[s.jsxs("div",{style:P.header,children:[s.jsxs("div",{children:[s.jsx("h1",{style:P.title,children:"Control Center"}),s.jsxs("div",{style:P.systemBadge,children:[s.jsx(di,{size:14})," System Online • OS: ",d?.osName||"SamarthyaOS"]})]}),s.jsxs("div",{style:P.headerActions,children:[s.jsxs("button",{onClick:async()=>{window.confirm("Are you sure you want to KILL all background processes? This will stop all autonomous activity immediately.")&&(await Qc.emergencyStop(),M(),alert("🚨 Emergency Stop Engaged. All systems halted."))},style:P.dangerBtn,title:"Emergency Kill Switch",children:[s.jsx(Zp,{size:18})," Kill Switch"]}),s.jsxs("button",{onClick:()=>o("/tools"),style:P.secondaryBtn,children:[s.jsx(Pr,{size:18})," Modules"]}),s.jsxs("button",{onClick:()=>o("/chat"),style:P.newChatBtn,children:[s.jsx(mi,{size:18})," Spawn Agent"]})]})]}),s.jsx("h3",{style:P.sectionTitle,children:"System Vitals"}),s.jsxs("div",{style:P.statsGrid,children:[s.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #6366f1"},children:[s.jsx("div",{style:{...P.statIcon,background:"#6366f120",color:"#6366f1"},children:s.jsx(Pc,{size:22})}),s.jsxs("div",{style:P.statInfo,children:[s.jsx("div",{style:P.statValue,children:R(d?.uptime)}),s.jsx("div",{style:P.statLabel,children:"Agent Uptime"})]})]}),s.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #14b8a6"},children:[s.jsx("div",{style:{...P.statIcon,background:"#14b8a620",color:"#14b8a6"},children:s.jsx(eu,{size:22})}),s.jsxs("div",{style:P.statInfo,children:[s.jsxs("div",{style:P.statValue,children:[d?.ramUsage||0,"%"]}),s.jsx("div",{style:P.statLabel,children:"Memory Load"})]})]}),s.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f59e0b"},children:[s.jsx("div",{style:{...P.statIcon,background:"#f59e0b20",color:"#f59e0b"},children:s.jsx(Dv,{size:22})}),s.jsxs("div",{style:P.statInfo,children:[s.jsxs("div",{style:P.statValue,children:[d?.totalTools||0," / ",d?.loadedPlugins||0]}),s.jsx("div",{style:P.statLabel,children:"Core Tools / Plugins"})]})]}),s.jsxs("div",{style:{...P.statCard,background:"var(--bg-secondary)",borderLeft:"4px solid #f43f5e"},children:[s.jsx("div",{style:{...P.statIcon,background:"#f43f5e20",color:"#f43f5e"},children:s.jsx(Qr,{size:22})}),s.jsxs("div",{style:P.statInfo,children:[s.jsx("div",{style:P.statValue,children:u?.totalActions||0}),s.jsx("div",{style:P.statLabel,children:"Tasks Executed"})]})]})]}),s.jsxs("div",{style:P.mainGrid,children:[s.jsxs("div",{style:{...P.card,gridColumn:"span 2"},children:[s.jsxs("div",{style:P.cardHeader,children:[s.jsxs("h3",{style:P.cardTitle,children:[s.jsx(Qr,{size:18,style:{color:"#10b981"}}),"Autonomous Background Processes"]}),s.jsxs("span",{style:P.liveBadge,children:[s.jsx("span",{style:P.pulseDot})," LIVE"]})]}),s.jsx("div",{style:P.cardBody,children:p.length>0?s.jsx("div",{style:P.jobsList,children:p.map(C=>s.jsxs("div",{style:P.jobCard,children:[s.jsxs("div",{style:P.jobHeader,children:[s.jsx("span",{style:P.jobName,children:C.taskName}),s.jsx("span",{style:C.isActive?P.jobActive:P.jobInactive,children:C.isActive?"RUNNING":"STOPPED"})]}),s.jsxs("div",{style:P.jobPrompt,children:['"',C.prompt,'"']}),s.jsxs("div",{style:P.jobMeta,children:[s.jsxs("span",{children:[s.jsx(Pc,{size:12})," Interval: ",C.intervalMinutes,"m"]}),s.jsxs("span",{children:[s.jsx(Ix,{size:12})," Next Run: ",new Date(C.nextRunAt).toLocaleTimeString()]})]})]},C._id))}):s.jsxs("div",{style:P.emptyState,children:[s.jsx(hu,{size:32,style:{color:"var(--text-muted)",marginBottom:"8px"}}),s.jsx("p",{children:"No autonomous background tasks running."}),s.jsx("span",{style:{fontSize:"0.8rem",color:"var(--text-muted)"},children:'Ask the agent to "schedule a background task" to monitor processes!'})]})})]}),s.jsxs("div",{style:P.card,children:[s.jsxs("div",{style:P.cardHeader,children:[s.jsxs("h3",{style:P.cardTitle,children:[s.jsx(pu,{size:18,style:{color:"var(--accent-primary)"}}),"Recent Interactions"]}),s.jsxs("button",{onClick:()=>o("/chat"),style:P.viewAllBtn,children:["View All ",s.jsx(ll,{size:14})]})]}),s.jsx("div",{style:P.cardBody,children:b.length>0?b.map(C=>s.jsxs("button",{onClick:()=>o(`/chat/${C._id}`),style:P.convRow,children:[s.jsx("div",{style:P.convDot}),s.jsxs("div",{style:P.convInfo,children:[s.jsx("span",{style:P.convName,children:C.title}),s.jsxs("span",{style:P.convTime,children:[new Date(C.updatedAt).toLocaleDateString()," ",new Date(C.updatedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),s.jsx(ll,{size:14,style:{color:"var(--text-muted)"}})]},C._id)):s.jsx("div",{style:P.emptyState,children:s.jsx("p",{children:"System idle. No recent sessions."})})})]})]}),s.jsxs("div",{style:P.bannerGrid,children:[s.jsxs("div",{style:P.vaultBanner,children:[s.jsx(il,{size:24,style:{color:"#10b981"}}),s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Encrypted Memory Vault Active"}),s.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"AES-256-CBC encryption enabled for secrets and PI data."})]}),s.jsx("button",{onClick:()=>o("/settings"),style:P.outlineBtn,children:"Configure"})]}),s.jsxs("div",{style:P.pluginBanner,children:[s.jsx(Zp,{size:24,style:{color:"#f59e0b"}}),s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{style:{fontWeight:"bold",fontSize:"1rem"},children:"Extensibility Engine"}),s.jsx("div",{style:{fontSize:"0.8rem",opacity:.8},children:"Drop JS modules in ~/SamarthyaBot_Files/plugins/ to expand OS."})]})]})]})]})}const P={container:{padding:"28px 32px",maxWidth:"1200px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"32px",flexWrap:"wrap",gap:"16px"},title:{fontSize:"2rem",fontWeight:800,color:"var(--text-primary)",letterSpacing:"-0.5px"},systemBadge:{display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",background:"rgba(16, 185, 129, 0.15)",color:"#10b981",borderRadius:"4px",fontSize:"0.8rem",fontWeight:600,marginTop:"8px"},headerActions:{display:"flex",gap:"12px"},dangerBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",border:"1px solid rgba(239, 68, 68, 0.3)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s"},secondaryBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 18px",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",transition:"all 0.2s"},newChatBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 24px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.95rem",fontWeight:600,cursor:"pointer",boxShadow:"0 4px 14px rgba(99,102,241,0.3)",transition:"all 0.2s"},sectionTitle:{fontSize:"1.2rem",fontWeight:600,marginBottom:"16px",color:"var(--text-secondary)"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(220px, 1fr))",gap:"20px",marginBottom:"32px"},statCard:{padding:"20px",borderRadius:"var(--radius-md)",display:"flex",alignItems:"center",gap:"16px",boxShadow:"0 2px 10px rgba(0,0,0,0.02)"},statIcon:{width:"44px",height:"44px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},statInfo:{flex:1},statValue:{fontSize:"1.5rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.85rem",color:"var(--text-muted)",fontWeight:500},mainGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:"24px",marginBottom:"28px"},card:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden",boxShadow:"0 4px 20px rgba(0,0,0,0.04)"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:"1px solid var(--border-subtle)",background:"rgba(0,0,0,0.02)"},cardTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},liveBadge:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",fontWeight:700,color:"#10b981",background:"rgba(16, 185, 129, 0.1)",padding:"4px 8px",borderRadius:"4px"},pulseDot:{width:"6px",height:"6px",backgroundColor:"#10b981",borderRadius:"50%",boxShadow:"0 0 0 0 rgba(16, 185, 129, 0.7)",animation:"pulse 1.5s infinite"},viewAllBtn:{display:"flex",alignItems:"center",gap:"4px",background:"none",border:"none",color:"var(--accent-primary)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer"},cardBody:{padding:"16px"},jobsList:{display:"flex",flexDirection:"column",gap:"12px"},jobCard:{background:"var(--bg-main)",border:"1px solid var(--border-subtle)",borderRadius:"8px",padding:"14px"},jobHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},jobName:{fontWeight:600,fontSize:"0.95rem",color:"var(--text-primary)"},jobActive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(16, 185, 129, 0.1)",color:"#10b981",borderRadius:"4px",fontWeight:700},jobInactive:{fontSize:"0.7rem",padding:"2px 6px",background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",borderRadius:"4px",fontWeight:700},jobPrompt:{fontSize:"0.85rem",color:"var(--text-secondary)",fontStyle:"italic",lineHeight:1.4,marginBottom:"10px"},jobMeta:{display:"flex",gap:"16px",fontSize:"0.75rem",color:"var(--text-muted)"},convRow:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",borderRadius:"8px",background:"transparent",border:"none",width:"100%",cursor:"pointer",textAlign:"left",color:"var(--text-primary)"},convDot:{width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-primary)",flexShrink:0},convInfo:{flex:1,display:"flex",flexDirection:"column",gap:"4px",minWidth:0},convName:{fontSize:"0.9rem",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},convTime:{fontSize:"0.75rem",color:"var(--text-muted)"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"40px 16px",color:"var(--text-muted)",textAlign:"center"},bannerGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"20px"},vaultBanner:{background:"linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.05) 100%)",border:"1px solid rgba(16,185,129,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},pluginBanner:{background:"linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(217,119,6,0.05) 100%)",border:"1px solid rgba(245,158,11,0.2)",borderRadius:"var(--radius-lg)",padding:"20px",display:"flex",alignItems:"center",gap:"16px",color:"var(--text-primary)"},outlineBtn:{padding:"6px 16px",fontSize:"0.8rem",background:"transparent",border:"1px solid #10b981",color:"#10b981",borderRadius:"4px",cursor:"pointer",fontWeight:600}},ju=document.createElement("style");ju.type="text/css";ju.innerText=`
20
+ @keyframes pulse {
21
+ 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
22
+ 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
23
+ 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
24
+ }
25
+ `;document.head.appendChild(ju);function Q2({user:l,onUpdate:o}){const[u,c]=A.useState({name:l?.name||"",language:l?.language||"hinglish",city:l?.city||"",permissions:l?.permissions||{fileAccess:"ask",emailAccess:"ask",browserAccess:"ask",calendarAccess:"ask"}}),[d,h]=A.useState(!1),[p,v]=A.useState(!1),b=async()=>{h(!0);try{const y=await Su.updateProfile(u);o(y.data.user),v(!0),setTimeout(()=>v(!1),3e3)}catch{console.error("Save failed")}finally{h(!1)}},m=[{value:"ask",label:"🔔 Ask Every Time",labelHi:"हर बार पूछो"},{value:"allow_always",label:"✅ Always Allow",labelHi:"हमेशा अनुमति"},{value:"allow_once",label:"☑️ Allow Once",labelHi:"एक बार अनुमति"},{value:"never",label:"🚫 Never Allow",labelHi:"कभी नहीं"}],x=[{key:"fileAccess",label:"File Access",labelHi:"फ़ाइल एक्सेस",icon:"📁",desc:"Read, write, and delete files on your system"},{key:"emailAccess",label:"Email Access",labelHi:"ईमेल एक्सेस",icon:"📧",desc:"Send and read emails on your behalf"},{key:"browserAccess",label:"Browser Automation",labelHi:"ब्राउज़र ऑटोमेशन",icon:"🌐",desc:"Automate web browsing, form filling, scraping"},{key:"calendarAccess",label:"Calendar Access",labelHi:"कैलेंडर एक्सेस",icon:"📅",desc:"Schedule and manage calendar events"}];return s.jsxs("div",{style:Se.container,children:[s.jsxs("div",{style:Se.header,children:[s.jsx("h1",{style:Se.title,children:"⚙️ Settings"}),s.jsx("button",{onClick:b,disabled:d,style:Se.saveBtn,children:p?s.jsxs(s.Fragment,{children:[s.jsx(Ir,{size:18})," Saved!"]}):d?"Saving...":s.jsxs(s.Fragment,{children:[s.jsx(Yv,{size:18})," Save Changes"]})})]}),s.jsxs("div",{style:Se.grid,children:[s.jsxs("div",{style:Se.section,children:[s.jsxs("div",{style:Se.sectionHeader,children:[s.jsx(Wm,{size:20,style:{color:"var(--accent-primary)"}}),s.jsx("h2",{style:Se.sectionTitle,children:"Profile / प्रोफ़ाइल"})]}),s.jsxs("div",{style:Se.sectionBody,children:[s.jsxs("div",{style:Se.field,children:[s.jsx("label",{style:Se.label,children:"Name / नाम"}),s.jsx("input",{style:Se.input,value:u.name,onChange:y=>c({...u,name:y.target.value}),placeholder:"Your name"})]}),s.jsxs("div",{style:Se.field,children:[s.jsx("label",{style:Se.label,children:"City / शहर"}),s.jsx("input",{style:Se.input,value:u.city,onChange:y=>c({...u,city:y.target.value}),placeholder:"Mumbai, Delhi, etc."})]})]})]}),s.jsxs("div",{style:Se.section,children:[s.jsxs("div",{style:Se.sectionHeader,children:[s.jsx(ui,{size:20,style:{color:"var(--accent-saffron)"}}),s.jsx("h2",{style:Se.sectionTitle,children:"Language / भाषा"})]}),s.jsx("div",{style:Se.sectionBody,children:s.jsx("div",{style:Se.langOptions,children:[{value:"hinglish",label:"Hinglish",desc:"Hindi + English mix",icon:"🗣️"},{value:"hindi",label:"हिंदी",desc:"Pure Hindi responses",icon:"🇮🇳"},{value:"english",label:"English",desc:"English only",icon:"🌍"}].map(y=>s.jsxs("button",{onClick:()=>c({...u,language:y.value}),style:{...Se.langCard,...u.language===y.value?Se.langCardActive:{}},children:[s.jsx("span",{style:Se.langIcon,children:y.icon}),s.jsx("span",{style:Se.langLabel,children:y.label}),s.jsx("span",{style:Se.langDesc,children:y.desc}),u.language===y.value&&s.jsx(Ir,{size:16,style:Se.langCheck})]},y.value))})})]}),s.jsxs("div",{style:Se.section,children:[s.jsxs("div",{style:Se.sectionHeader,children:[s.jsx(il,{size:20,style:{color:"var(--accent-rose)"}}),s.jsx("h2",{style:Se.sectionTitle,children:"Permissions / अनुमतियाँ"})]}),s.jsx("div",{style:Se.sectionBody,children:x.map(y=>s.jsxs("div",{style:Se.permRow,children:[s.jsxs("div",{style:Se.permInfo,children:[s.jsx("span",{style:Se.permIcon,children:y.icon}),s.jsxs("div",{children:[s.jsx("div",{style:Se.permLabel,children:y.label}),s.jsx("div",{style:Se.permDesc,children:y.desc})]})]}),s.jsx("select",{style:Se.permSelect,value:u.permissions[y.key],onChange:M=>c({...u,permissions:{...u.permissions,[y.key]:M.target.value}}),children:m.map(M=>s.jsx("option",{value:M.value,children:M.label},M.value))})]},y.key))})]})]})]})}const Se={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},saveBtn:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 22px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.9rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",boxShadow:"var(--shadow-glow)",transition:"all var(--transition-normal)"},grid:{display:"flex",flexDirection:"column",gap:"20px"},section:{background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",overflow:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:"10px",padding:"18px 22px",borderBottom:"1px solid var(--border-subtle)"},sectionTitle:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)"},sectionBody:{padding:"22px"},field:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"16px",flex:1},label:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.05em"},input:{width:"100%",padding:"11px 16px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.9rem",outline:"none",transition:"all 0.2s"},langOptions:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"},langCard:{display:"flex",flexDirection:"column",alignItems:"center",gap:"6px",padding:"18px 14px",background:"var(--bg-card)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-md)",cursor:"pointer",transition:"all var(--transition-fast)",fontFamily:"var(--font-primary)",position:"relative",color:"var(--text-primary)"},langCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.08)"},langIcon:{fontSize:"1.5rem"},langLabel:{fontWeight:600,fontSize:"0.9rem"},langDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},langCheck:{position:"absolute",top:"8px",right:"8px",color:"var(--accent-primary)"},permRow:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:"1px solid var(--border-subtle)",gap:"16px"},permInfo:{display:"flex",alignItems:"center",gap:"12px",flex:1},permIcon:{fontSize:"1.3rem"},permLabel:{fontWeight:600,fontSize:"0.9rem",color:"var(--text-primary)"},permDesc:{fontSize:"0.75rem",color:"var(--text-muted)"},permSelect:{padding:"8px 12px",background:"var(--bg-input)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-primary)",fontSize:"0.8rem",outline:"none",minWidth:"170px"}},Zc={file:{bg:"rgba(99,102,241,0.1)",color:"#6366f1",icon:"📁"},email:{bg:"rgba(14,165,233,0.1)",color:"#0ea5e9",icon:"📧"},browser:{bg:"rgba(245,158,11,0.1)",color:"#f59e0b",icon:"🌐"},calendar:{bg:"rgba(16,185,129,0.1)",color:"#10b981",icon:"📅"},search:{bg:"rgba(139,92,246,0.1)",color:"#8b5cf6",icon:"🔍"},system:{bg:"rgba(107,114,128,0.1)",color:"#6b7280",icon:"⚙️"},security:{bg:"rgba(244,63,94,0.1)",color:"#f43f5e",icon:"🔐"},tool:{bg:"rgba(20,184,166,0.1)",color:"#14b8a6",icon:"🛠️"}},pm={success:{bg:"rgba(16,185,129,0.15)",color:"#10b981"},failed:{bg:"rgba(239,68,68,0.15)",color:"#ef4444"},blocked:{bg:"rgba(245,158,11,0.15)",color:"#f59e0b"},rolled_back:{bg:"rgba(139,92,246,0.15)",color:"#8b5cf6"}};function Z2({user:l}){const[o,u]=A.useState([]),[c,d]=A.useState(null),[h,p]=A.useState(""),[v,b]=A.useState(!0);A.useEffect(()=>{m()},[h]);const m=async()=>{b(!0);try{const y={};h&&(y.category=h);const[M,E]=await Promise.all([Jr.getLogs(y),Jr.getStats()]);u(M.data.logs||[]),d(E.data.stats||null)}catch{console.error("Failed to load audit data"),u([]),d({totalActions:0,byCategory:{},byStatus:{}})}finally{b(!1)}},x=async y=>{try{await Jr.rollback(y),m()}catch{console.error("Rollback failed")}};return s.jsxs("div",{style:pe.container,children:[s.jsx("div",{style:pe.header,children:s.jsxs("div",{children:[s.jsx("h1",{style:pe.title,children:"🔐 Audit Log / ऑडिट लॉग"}),s.jsx("p",{style:pe.subtitle,children:"Full action replay timeline • हर एक्शन की पूरी जानकारी"})]})}),s.jsxs("div",{style:pe.statsRow,children:[s.jsxs("div",{style:pe.statCard,children:[s.jsx(Qr,{size:20,style:{color:"var(--accent-primary)"}}),s.jsxs("div",{children:[s.jsx("div",{style:pe.statValue,children:c?.totalActions||0}),s.jsx("div",{style:pe.statLabel,children:"Total Actions"})]})]}),s.jsxs("div",{style:pe.statCard,children:[s.jsx(il,{size:20,style:{color:"#10b981"}}),s.jsxs("div",{children:[s.jsx("div",{style:pe.statValue,children:c?.byStatus?.success||0}),s.jsx("div",{style:pe.statLabel,children:"Successful"})]})]}),s.jsxs("div",{style:pe.statCard,children:[s.jsx(mu,{size:20,style:{color:"#f59e0b"}}),s.jsxs("div",{children:[s.jsx("div",{style:pe.statValue,children:c?.byStatus?.blocked||0}),s.jsx("div",{style:pe.statLabel,children:"Blocked"})]})]}),s.jsxs("div",{style:pe.statCard,children:[s.jsx(Wp,{size:20,style:{color:"#8b5cf6"}}),s.jsxs("div",{children:[s.jsx("div",{style:pe.statValue,children:c?.byStatus?.rolled_back||0}),s.jsx("div",{style:pe.statLabel,children:"Rolled Back"})]})]})]}),s.jsxs("div",{style:pe.filters,children:[s.jsx(gv,{size:16,style:{color:"var(--text-muted)"}}),s.jsx("button",{onClick:()=>p(""),style:{...pe.filterBtn,...h===""?pe.filterBtnActive:{}},children:"All"}),Object.entries(Zc).map(([y,M])=>s.jsxs("button",{onClick:()=>p(y),style:{...pe.filterBtn,...h===y?pe.filterBtnActive:{}},children:[M.icon," ",y]},y))]}),s.jsx("div",{style:pe.timeline,children:v?s.jsxs("div",{style:pe.loadingState,children:[s.jsx("div",{style:pe.spinner}),s.jsx("span",{children:"Loading audit logs..."})]}):o.length===0?s.jsxs("div",{style:pe.emptyState,children:[s.jsx(il,{size:48,style:{color:"var(--text-muted)",marginBottom:"12px"}}),s.jsx("p",{children:"No audit logs yet. Start chatting with SamarthyaBot to see activity here."})]}):o.map((y,M)=>{const E=Zc[y.category]||Zc.system,R=pm[y.status]||pm.success;return s.jsxs("div",{style:pe.logEntry,children:[s.jsxs("div",{style:pe.logTimeline,children:[s.jsx("div",{style:{...pe.logDot,background:E.color}}),M<o.length-1&&s.jsx("div",{style:pe.logLine})]}),s.jsxs("div",{style:pe.logContent,children:[s.jsxs("div",{style:pe.logHeader,children:[s.jsxs("span",{style:{...pe.logCategory,background:E.bg,color:E.color},children:[E.icon," ",y.category]}),s.jsx("span",{style:{...pe.logStatus,background:R.bg,color:R.color},children:y.status}),y.details?.riskLevel&&y.details.riskLevel!=="low"&&s.jsxs("span",{style:pe.riskBadge,children:["⚠️ ",y.details.riskLevel," risk"]})]}),s.jsx("div",{style:pe.logAction,children:y.action}),y.details?.toolName&&s.jsxs("div",{style:pe.logDetail,children:["Tool: ",y.details.toolName]}),s.jsxs("div",{style:pe.logTime,children:[s.jsx(Pc,{size:12}),new Date(y.createdAt).toLocaleString("en-IN",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})]}),y.canRollback&&y.status!=="rolled_back"&&s.jsxs("button",{onClick:()=>x(y._id),style:pe.rollbackBtn,children:[s.jsx(Wp,{size:14})," Undo / Rollback"]})]})]},y._id||M)})})]})}const pe={container:{padding:"28px 32px",maxWidth:"900px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"24px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},statsRow:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:"12px",marginBottom:"20px"},statCard:{display:"flex",alignItems:"center",gap:"14px",padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},statValue:{fontSize:"1.3rem",fontWeight:700,color:"var(--text-primary)"},statLabel:{fontSize:"0.75rem",color:"var(--text-muted)"},filters:{display:"flex",alignItems:"center",gap:"8px",padding:"12px 16px",background:"var(--bg-secondary)",borderRadius:"var(--radius-md)",marginBottom:"20px",flexWrap:"wrap",border:"1px solid var(--border-subtle)"},filterBtn:{padding:"6px 12px",background:"transparent",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-full)",color:"var(--text-muted)",fontSize:"0.78rem",cursor:"pointer",fontFamily:"var(--font-primary)",textTransform:"capitalize",transition:"all var(--transition-fast)",display:"flex",alignItems:"center",gap:"4px"},filterBtnActive:{background:"rgba(99, 102, 241, 0.15)",borderColor:"var(--accent-primary)",color:"var(--accent-primary)"},timeline:{display:"flex",flexDirection:"column"},logEntry:{display:"flex",gap:"16px"},logTimeline:{display:"flex",flexDirection:"column",alignItems:"center",width:"20px",flexShrink:0},logDot:{width:"12px",height:"12px",borderRadius:"50%",flexShrink:0},logLine:{width:"2px",flex:1,background:"var(--border-subtle)",marginTop:"4px",marginBottom:"4px"},logContent:{flex:1,padding:"14px 18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",marginBottom:"12px"},logHeader:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"8px",flexWrap:"wrap"},logCategory:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize",display:"inline-flex",alignItems:"center",gap:"4px"},logStatus:{padding:"3px 10px",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600,textTransform:"capitalize"},riskBadge:{fontSize:"0.72rem",color:"#f59e0b"},logAction:{fontSize:"0.9rem",fontWeight:500,color:"var(--text-primary)",marginBottom:"4px"},logDetail:{fontSize:"0.8rem",color:"var(--text-muted)",marginBottom:"4px"},logTime:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.75rem",color:"var(--text-muted)"},rollbackBtn:{display:"inline-flex",alignItems:"center",gap:"6px",marginTop:"8px",padding:"6px 14px",background:"rgba(139, 92, 246, 0.1)",border:"1px solid rgba(139, 92, 246, 0.3)",borderRadius:"var(--radius-sm)",color:"#8b5cf6",fontSize:"0.78rem",fontWeight:500,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},loadingState:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",padding:"60px 20px",color:"var(--text-muted)"},spinner:{width:"24px",height:"24px",border:"2px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",padding:"60px 20px",color:"var(--text-muted)",textAlign:"center",fontSize:"0.9rem"}},mm={low:{bg:"rgba(16,185,129,0.12)",color:"#10b981",label:"🟢 Low Risk"},medium:{bg:"rgba(245,158,11,0.12)",color:"#f59e0b",label:"🟡 Medium Risk"},high:{bg:"rgba(239,68,68,0.12)",color:"#ef4444",label:"🔴 High Risk"}};function W2({user:l}){const[o,u]=A.useState([]),[c,d]=A.useState([]),[h,p]=A.useState(null),[v,b]=A.useState([]);A.useEffect(()=>{m()},[]);const m=async()=>{try{const[E,R]=await Promise.all([Xc.getPacks(),Xc.getAll()]);u(E.data.packs||[]),d(R.data.tools||[])}catch{console.error("Failed to load tools")}},x=async E=>{p(E);try{const R=await Xc.getPackTools(E);b(R.data.tools||[])}catch{b([])}},y=async E=>{try{await Su.updateProfile({activePack:E})}catch{console.error("Failed to activate pack")}},M=l?.language==="english";return s.jsxs("div",{style:Le.container,children:[s.jsx("div",{style:Le.header,children:s.jsxs("div",{children:[s.jsxs("h1",{style:Le.title,children:["🛠️ ",M?"Tool Packs":"टूल पैक्स"]}),s.jsx("p",{style:Le.subtitle,children:M?"Choose the right tool pack for your workflow":"अपने काम के हिसाब से पैक चुनो"})]})}),s.jsx("div",{style:Le.packsGrid,children:o.map((E,R)=>{const C=l?.activePack===E.id,w=h===E.id;return s.jsxs("div",{onClick:()=>x(E.id),style:{...Le.packCard,...C?Le.packCardActive:{},...w?Le.packCardSelected:{},animationDelay:`${R*.1}s`},children:[s.jsxs("div",{style:Le.packHeader,children:[s.jsx("span",{style:Le.packEmoji,children:E.id==="student"?"🎓":E.id==="business"?"🏢":E.id==="developer"?"👨‍💻":"🏠"}),C&&s.jsxs("span",{style:Le.activeBadge,children:[s.jsx(Ir,{size:12})," ",M?"Active":"सक्रिय"]})]}),s.jsx("h3",{style:Le.packName,children:M?E.name:E.nameHi||E.name}),s.jsx("p",{style:Le.packDesc,children:M?E.description:E.descriptionHi||E.description}),s.jsxs("div",{style:Le.packMeta,children:[s.jsxs("span",{style:Le.toolCount,children:[s.jsx(Pr,{size:14})," ",E.toolCount," tools"]}),s.jsx(ll,{size:16,style:{color:"var(--text-muted)"}})]}),!C&&s.jsxs("button",{onClick:Y=>{Y.stopPropagation(),y(E.id)},style:Le.activateBtn,children:[s.jsx(mi,{size:14})," ",M?"Activate":"एक्टिवेट करें"]})]},E.id)})}),s.jsxs("div",{style:Le.section,children:[s.jsxs("h2",{style:Le.sectionTitle,children:[s.jsx(Pr,{size:20,style:{color:"var(--accent-primary)"}}),h?M?`Tools in ${h} pack`:`${h} पैक के टूल्स`:M?"All Available Tools":"सभी टूल्स"]}),s.jsx("div",{style:Le.toolsGrid,children:(h?v:c).map((E,R)=>{const C=mm[E.riskLevel]||mm.low;return s.jsxs("div",{style:{...Le.toolCard,animationDelay:`${R*.05}s`},children:[s.jsxs("div",{style:Le.toolHeader,children:[s.jsx("span",{style:Le.toolName,children:E.name}),s.jsx("span",{style:{...Le.riskBadge,background:C.bg,color:C.color},children:C.label})]}),s.jsx("p",{style:Le.toolDesc,children:M?E.description:E.descriptionHi||E.description}),s.jsx("div",{style:Le.toolMeta,children:s.jsxs("span",{style:Le.toolCategory,children:[E.category==="file"?"📁":E.category==="email"?"📧":E.category==="search"?"🔍":E.category==="calendar"?"📅":"🛠️"," ",E.category]})})]},E.name)})})]})]})}const Le={container:{padding:"28px 32px",maxWidth:"1100px",margin:"0 auto",animation:"fadeIn 0.4s ease-out"},header:{marginBottom:"28px"},title:{fontSize:"1.6rem",fontWeight:700,color:"var(--text-primary)"},subtitle:{fontSize:"0.9rem",color:"var(--text-muted)",marginTop:"4px"},packsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:"16px",marginBottom:"32px"},packCard:{padding:"22px",background:"var(--bg-secondary)",border:"2px solid var(--border-subtle)",borderRadius:"var(--radius-lg)",cursor:"pointer",transition:"all var(--transition-normal)",animation:"fadeInUp 0.4s ease-out both"},packCardActive:{borderColor:"var(--accent-primary)",background:"rgba(99, 102, 241, 0.05)"},packCardSelected:{borderColor:"var(--accent-gold)",boxShadow:"0 0 16px rgba(245, 158, 11, 0.15)"},packHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"12px"},packEmoji:{fontSize:"2rem"},activeBadge:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",background:"rgba(99, 102, 241, 0.15)",color:"var(--accent-primary)",borderRadius:"var(--radius-full)",fontSize:"0.72rem",fontWeight:600},packName:{fontSize:"1.05rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px"},packDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"12px"},packMeta:{display:"flex",alignItems:"center",justifyContent:"space-between"},toolCount:{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.8rem",color:"var(--text-muted)"},activateBtn:{display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",width:"100%",padding:"10px",marginTop:"14px",background:"var(--gradient-primary)",color:"white",border:"none",borderRadius:"var(--radius-md)",fontSize:"0.85rem",fontWeight:600,cursor:"pointer",fontFamily:"var(--font-primary)",transition:"all var(--transition-fast)"},section:{marginBottom:"20px"},sectionTitle:{display:"flex",alignItems:"center",gap:"10px",fontSize:"1.1rem",fontWeight:600,color:"var(--text-primary)",marginBottom:"16px",textTransform:"capitalize"},toolsGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px"},toolCard:{padding:"18px",background:"var(--bg-secondary)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",animation:"fadeIn 0.3s ease-out both",transition:"all var(--transition-fast)"},toolHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px",flexWrap:"wrap",gap:"6px"},toolName:{fontSize:"0.9rem",fontWeight:600,color:"var(--text-primary)",fontFamily:"monospace"},riskBadge:{padding:"3px 8px",borderRadius:"var(--radius-full)",fontSize:"0.68rem",fontWeight:600},toolDesc:{fontSize:"0.8rem",color:"var(--text-secondary)",lineHeight:1.5,marginBottom:"4px"},toolMeta:{display:"flex",alignItems:"center",gap:"8px"},toolCategory:{fontSize:"0.75rem",color:"var(--text-muted)",textTransform:"capitalize"}},gm=[{label:"Features",href:"#features"},{label:"CLI",href:"#cli"},{label:"Architecture",href:"#architecture"},{label:"Security",href:"#security"}],F2=[{icon:s.jsx(ib,{size:22}),accent:"#FF9933",title:"Autonomous Planning",desc:"Native ReAct engine (Reason → Act → Observe) that breaks complex goals into discrete steps and executes them without holding your hand."},{icon:s.jsx(il,{size:22}),accent:"#6ee7f7",title:"Full Local Sovereignty",desc:"Your data never leaves your machine. Use Ollama for 100% offline inference, or encrypted tunnels to cloud providers. You own the compute."},{icon:s.jsx(Ym,{size:22}),accent:"#a78bfa",title:"Encrypted Memory Vault",desc:"Every interaction stored locally. Sensitive data is encrypted via AES-256-CBC. Semantic vector search surfaces context across sessions."},{icon:s.jsx(ui,{size:22}),accent:"#138808",title:"Indian Digital Highway",desc:"Native support for GST filings, IRCTC bookings, UPI payments, and Hinglish fluency. Built for India's digital infrastructure."},{icon:s.jsx(Qm,{size:22}),accent:"#fb923c",title:"Plugin Extensibility",desc:"Drop any JS file into the plugins folder and the assistant learns it instantly. Build custom automations for unique business logic."},{icon:s.jsx(Vm,{size:22}),accent:"#f472b6",title:"Visual Intelligence",desc:"Built-in screen understanding for contextual automation. Let the agent see what you see and act on it autonomously."},{icon:s.jsx(Ic,{size:22}),accent:"#3b82f6",title:"Browser DOM Automation",desc:"Advanced RPA with Puppeteer-core. Let the AI click, type, and extract data precisely via DOM selectors."},{icon:s.jsx(Zr,{size:22}),accent:"#facc15",title:"Go Background Worker",desc:"High-performance Go worker node for long-running, CPU-intensive tasks with real-time streaming of stdout/stderr."},{icon:s.jsx(di,{size:22}),accent:"#ef4444",title:"Remote SSH Deployments",desc:"Securely connect to and manage your VPS or remote servers via SSH directly from the local agentic hub."}],ym=[{cmd:"samarthya onboard",desc:"Start the installation & configuration wizard"},{cmd:"samarthya gateway",desc:"Run the backend control plane and serve the Dashboard"},{cmd:"samarthya status",desc:"Display the status of background jobs and the engine"},{cmd:"samarthya stop",desc:"Gracefully shut down all background autonomous agents"},{cmd:"samarthya model [name]",desc:"Swap between LLM providers (e.g. ollama, gemini)"}],K2=[{name:"WhatsApp",emoji:"💬",bg:"#25D366",fg:"#fff"},{name:"Telegram",emoji:"✈️",bg:"#2AABEE",fg:"#fff"},{name:"Gmail",emoji:"📧",bg:"#EA4335",fg:"#fff"},{name:"GitHub",emoji:"🐙",bg:"#24292e",fg:"#fff"},{name:"Discord",emoji:"🎮",bg:"#5865F2",fg:"#fff"},{name:"Slack",emoji:"#",bg:"#4A154B",fg:"#fff"},{name:"UPI",emoji:"₹",bg:"#FF6600",fg:"#fff"},{name:"IRCTC",emoji:"🚂",bg:"#1565C0",fg:"#fff"}],J2=[{name:"jonahships_",handle:"@jonahships_",text:"Setup SamarthyaBot yesterday. All I have to say is, wow. The fact that it can just keep building upon itself just by talking to it is crazy.",initials:"JS",avatarBg:"#FF9933"},{name:"markjaquith",handle:"@markjaquith",text:'SamarthyaBot feels like a "just had to glue all the parts together" leap forward. Incredible experience running locally.',initials:"MJ",avatarBg:"#6ee7f7"},{name:"danpeguine",handle:"@danpeguine",text:"Your context and skills live on YOUR computer. Proactive AF: cron jobs, reminders, background tasks. Memory is amazing.",initials:"DP",avatarBg:"#a78bfa"},{name:"nateliason",handle:"@nateliason",text:"Managing autonomous agent sessions I can kick off anywhere, running tests on my app and resolving them. The future of digital employees.",initials:"NL",avatarBg:"#22c55e"}],xm=`// ~/SamarthyaBot_Files/plugins/hello.js
26
+ module.exports = {
27
+ name: 'greet',
28
+ description: 'Greets the user in a friendly way',
29
+ parameters: {
30
+ name: { type: 'string', required: true }
31
+ },
32
+ execute: async (args) => ({
33
+ success: true,
34
+ result: \`Namaste \${args.name}! Main SamarthyaBot hoon.\`
35
+ })
36
+ };`;function vm({text:l,dark:o}){const[u,c]=A.useState(!1),d=()=>{navigator.clipboard.writeText(l),c(!0),setTimeout(()=>c(!1),2e3)};return s.jsx("button",{onClick:d,style:nS(),"aria-label":"Copy to clipboard",children:u?s.jsx(Ir,{size:15,color:"#22c55e"}):s.jsx(tv,{size:15,color:o?"#666":"#999"})})}function za({children:l,dark:o}){return s.jsx("div",{style:lS(),children:s.jsx("span",{style:{color:"#FF9933",fontSize:"0.7rem",fontWeight:800,letterSpacing:"3px",textTransform:"uppercase"},children:l})})}function $2(){const[l,o]=A.useState(!0),[u,c]=A.useState(!1),[d,h]=A.useState(!1);A.useEffect(()=>{const E=()=>h(window.scrollY>20);return window.addEventListener("scroll",E,{passive:!0}),()=>window.removeEventListener("scroll",E)},[]);const p=(E,R)=>{E.preventDefault(),c(!1),document.querySelector(R)?.scrollIntoView({behavior:"smooth"})},v=l?"#06060a":"#ffffff",b=l?"#0e0e14":"#f8f8fb",m=l?"#1e1e28":"#e8e8ee",x=l?"#ffffff":"#0a0a0f",y=l?"#8888a8":"#555568",M=l?"#3a3a4e":"#ccccdb";return s.jsxs(s.Fragment,{children:[s.jsx("style",{children:`
37
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
38
+ html { scroll-behavior: smooth; }
39
+ body { background: ${v}; transition: background 0.3s; }
40
+ a { text-decoration: none; color: inherit; }
41
+ @keyframes fadeUp {
42
+ from { opacity: 0; transform: translateY(28px); }
43
+ to { opacity: 1; transform: translateY(0); }
44
+ }
45
+ @keyframes glow {
46
+ 0%, 100% { opacity: 0.4; }
47
+ 50% { opacity: 0.8; }
48
+ }
49
+ @keyframes flagFlow {
50
+ 0% { background-position: 0% 50%; }
51
+ 50% { background-position: 100% 50%; }
52
+ 100% { background-position: 0% 50%; }
53
+ }
54
+ .flag-text {
55
+ background: linear-gradient(90deg, #FF9933 0%, #ffffff 33%, #138808 66%, #FF9933 100%);
56
+ background-size: 300% auto;
57
+ -webkit-background-clip: text;
58
+ -webkit-text-fill-color: transparent;
59
+ background-clip: text;
60
+ animation: flagFlow 6s ease infinite;
61
+ }
62
+ .fade-up { animation: fadeUp 0.7s ease both; }
63
+ .fade-up-d1 { animation: fadeUp 0.7s ease 0.1s both; }
64
+ .fade-up-d2 { animation: fadeUp 0.7s ease 0.2s both; }
65
+ .fade-up-d3 { animation: fadeUp 0.7s ease 0.3s both; }
66
+ .fade-up-d4 { animation: fadeUp 0.7s ease 0.4s both; }
67
+ .card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
68
+ .card-hover:hover {
69
+ transform: translateY(-4px);
70
+ box-shadow: 0 20px 60px rgba(0,0,0,0.15);
71
+ }
72
+ .nav-link {
73
+ font-size: 0.85rem; font-weight: 600; letter-spacing: 0.3px;
74
+ padding: 8px 14px; border-radius: 8px; transition: background 0.15s; cursor: pointer;
75
+ }
76
+ .nav-link:hover { background: ${l?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"}; }
77
+ .btn-primary {
78
+ display: inline-flex; align-items: center; gap: 8px;
79
+ padding: 12px 24px; border-radius: 10px; font-size: 0.9rem;
80
+ font-weight: 700; cursor: pointer;
81
+ background: linear-gradient(135deg, #FF9933 0%, #e8851d 100%);
82
+ color: #fff; border: none;
83
+ transition: transform 0.15s, box-shadow 0.15s;
84
+ box-shadow: 0 4px 20px rgba(255,153,51,0.35);
85
+ }
86
+ .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,153,51,0.5); }
87
+ .btn-secondary {
88
+ display: inline-flex; align-items: center; gap: 8px;
89
+ padding: 12px 24px; border-radius: 10px; font-size: 0.9rem;
90
+ font-weight: 700; cursor: pointer; background: transparent;
91
+ color: ${x}; border: 1.5px solid ${m};
92
+ transition: border-color 0.15s, background 0.15s;
93
+ }
94
+ .btn-secondary:hover {
95
+ border-color: ${l?"#3a3a4e":"#aaaacc"};
96
+ background: ${l?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"};
97
+ }
98
+ .mobile-menu {
99
+ position: fixed; top: 0; left: 0; width: 100%; height: 100%;
100
+ z-index: 998;
101
+ background: ${l?"rgba(6,6,10,0.97)":"rgba(255,255,255,0.97)"};
102
+ display: flex; flex-direction: column; align-items: center;
103
+ justify-content: center; gap: 8px; backdrop-filter: blur(12px);
104
+ }
105
+ .mobile-menu-link {
106
+ font-size: 1.4rem; font-weight: 700; padding: 14px 32px;
107
+ color: ${x}; border-radius: 12px; cursor: pointer; transition: background 0.15s;
108
+ }
109
+ .mobile-menu-link:hover { background: ${l?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.05)"}; }
110
+ ::-webkit-scrollbar { width: 6px; }
111
+ ::-webkit-scrollbar-track { background: ${v}; }
112
+ ::-webkit-scrollbar-thumb { background: ${M}; border-radius: 99px; }
113
+ @media (max-width: 900px) {
114
+ .feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
115
+ .int-grid { grid-template-columns: repeat(4, 1fr) !important; }
116
+ .arch-row { flex-direction: column !important; }
117
+ }
118
+ @media (max-width: 640px) {
119
+ .hero-title { font-size: clamp(2.4rem, 12vw, 3.5rem) !important; letter-spacing: -2px !important; }
120
+ .feat-grid { grid-template-columns: 1fr !important; }
121
+ .spec-grid { grid-template-columns: 1fr !important; }
122
+ .int-grid { grid-template-columns: repeat(2, 1fr) !important; }
123
+ .test-grid { grid-template-columns: 1fr !important; }
124
+ .footer-inner { flex-direction: column; gap: 40px !important; }
125
+ .nav-desktop { display: none !important; }
126
+ .hamburger { display: flex !important; }
127
+ .hero-btns { flex-direction: column !important; align-items: stretch !important; }
128
+ .hero-btns > * { text-align: center !important; justify-content: center; }
129
+ .plug-row { flex-direction: column !important; }
130
+ .stats-row { gap: 24px !important; }
131
+ .cta-pad { padding: 40px 24px !important; }
132
+ .section-padded{ padding: 64px 20px !important; }
133
+ }
134
+ `}),s.jsxs("div",{style:{background:v,color:x,fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",minHeight:"100vh",overflowX:"hidden"},children:[s.jsx("nav",{style:P2(l,d,m),children:s.jsxs("div",{style:eS(),children:[s.jsxs("a",{href:"/",style:{display:"flex",alignItems:"center",gap:10,fontWeight:900,fontSize:"1.1rem",color:x},children:[s.jsx("span",{style:bm,children:s.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"24px",height:"24px",objectFit:"contain"}})}),s.jsxs("span",{children:["Samarthya",s.jsx("span",{style:{color:"#FF9933"},children:"Bot"})]})]}),s.jsx("div",{className:"nav-desktop",style:{display:"flex",alignItems:"center",gap:4},children:gm.map(E=>s.jsx("a",{href:E.href,className:"nav-link",style:{color:y},onClick:R=>p(R,E.href),children:E.label},E.label))}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[s.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:{display:"flex",alignItems:"center",gap:7,padding:"8px 14px",borderRadius:9,border:`1.5px solid ${m}`,fontSize:"0.82rem",fontWeight:700,color:y},children:[s.jsx(qc,{size:15})," GitHub"]}),s.jsx("button",{onClick:()=>o(E=>!E),style:tS(l,m),"aria-label":"Toggle theme",children:l?s.jsx($v,{size:16}):s.jsx(Ov,{size:16})}),s.jsx("button",{className:"hamburger",onClick:()=>c(E=>!E),style:{display:"none",background:"none",border:"none",cursor:"pointer",color:x,padding:6},children:s.jsxs("div",{style:{width:22,display:"flex",flexDirection:"column",gap:5},children:[s.jsx("span",{style:{height:2,background:x,borderRadius:2,display:"block",transition:"0.2s",transform:u?"rotate(45deg) translateY(7px)":"none"}}),s.jsx("span",{style:{height:2,background:x,borderRadius:2,display:"block",opacity:u?0:1,transition:"0.2s"}}),s.jsx("span",{style:{height:2,background:x,borderRadius:2,display:"block",transition:"0.2s",transform:u?"rotate(-45deg) translateY(-7px)":"none"}})]})})]})]})}),u&&s.jsxs("div",{className:"mobile-menu",children:[gm.map(E=>s.jsx("a",{href:E.href,className:"mobile-menu-link",onClick:R=>p(R,E.href),children:E.label},E.label)),s.jsx(ci,{to:"/dashboard",className:"mobile-menu-link",onClick:()=>c(!1),children:"Dashboard"})]}),s.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"160px 24px 120px",textAlign:"center",position:"relative"},children:[s.jsx("div",{style:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",width:700,height:420,background:"radial-gradient(ellipse at center, rgba(255,153,51,0.10) 0%, transparent 70%)",pointerEvents:"none",animation:"glow 5s ease infinite",zIndex:0}}),s.jsxs("div",{style:{position:"relative",zIndex:1},children:[s.jsxs("div",{className:"fade-up",style:aS(l,m),children:[s.jsx("span",{style:{background:"linear-gradient(135deg,#FF9933,#e8851d)",color:"#fff",fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:5,letterSpacing:1},children:"v1.1.3"}),s.jsx("span",{style:{color:y,fontSize:"0.82rem",fontWeight:600},children:"God-Mode DOM RPA, Go Streaming & SSH"}),s.jsx(ll,{size:13,color:y})]}),s.jsx("div",{className:"fade-up-d1",style:{marginBottom:28,display:"flex",justifyContent:"center"},children:s.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:I2()})}),s.jsxs("h1",{className:"fade-up-d2 hero-title",style:{fontSize:"clamp(3rem, 8vw, 5.5rem)",fontWeight:950,letterSpacing:"-4px",lineHeight:1.05,marginBottom:22,color:x},children:["Your Local",s.jsx("br",{}),s.jsx("span",{className:"flag-text",children:"Agentic OS"})]}),s.jsxs("p",{className:"fade-up-d3",style:{fontSize:"clamp(0.95rem, 2.5vw, 1.15rem)",color:y,maxWidth:640,margin:"0 auto 52px",lineHeight:1.75,fontWeight:400},children:["Run powerful AI agents ",s.jsx("strong",{style:{color:x,fontWeight:700},children:"locally on your machine"}),". Bypass cloud limits, own your compute, and automate complex ",s.jsx("strong",{style:{color:x,fontWeight:700},children:"Indian digital workflows"})," — fully private."]}),s.jsxs("div",{className:"fade-up-d4 hero-btns",style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[s.jsxs("a",{href:"#install",onClick:E=>p(E,"#install"),className:"btn-primary",children:[s.jsx(Zr,{size:16})," Get Started Free"]}),s.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",className:"btn-secondary",children:[s.jsx(qc,{size:16})," View on GitHub"]}),s.jsxs(ci,{to:"/dashboard",className:"btn-secondary",children:[s.jsx(eu,{size:16})," Open Dashboard"]})]}),s.jsx("div",{className:"fade-up-d4 stats-row",style:{display:"flex",gap:48,justifyContent:"center",marginTop:72,flexWrap:"wrap"},children:[{label:"License",val:"MIT"},{label:"LLM Providers",val:"4+"},{label:"Built-in Tools",val:"30+"},{label:"Cloud Required",val:"Zero"}].map(E=>s.jsxs("div",{style:{textAlign:"center"},children:[s.jsx("div",{style:{fontSize:"1.45rem",fontWeight:900,color:x},children:E.val}),s.jsx("div",{style:{fontSize:"0.74rem",color:y,fontWeight:600,letterSpacing:"0.5px",marginTop:5},children:E.label})]},E.label))})]})]}),s.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:s.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${m}, transparent)`}})}),s.jsxs("section",{id:"install",className:"section-padded",style:{maxWidth:820,margin:"0 auto",padding:"96px 24px"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[s.jsx(za,{dark:l,children:"Quick Start"}),s.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Deploy in 60 Seconds"}),s.jsx("p",{style:{color:y,marginTop:12,fontSize:"0.92rem"},children:"Requires Node.js ≥ 20 and a local MongoDB instance."})]}),s.jsxs("div",{style:Wc(l,m),children:[s.jsxs("div",{style:Fc(l),children:[s.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(E=>s.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:E}},E))}),s.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:M},children:"Terminal"}),s.jsx("div",{})]}),s.jsx("div",{style:{padding:"8px 0",fontFamily:"monospace"},children:[{cmd:"npm install -g samarthya-bot",comment:"# install globally"},{cmd:"samarthya onboard",comment:"# interactive setup wizard"},{cmd:"samarthya gateway",comment:"# launch the control plane"}].map((E,R)=>s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 24px",borderBottom:R<2?`1px solid ${l?"#13131e":"#1e1e2a"}`:"none"},children:[s.jsxs("div",{style:{display:"flex",gap:14,fontSize:"0.88rem",flexWrap:"wrap",alignItems:"center"},children:[s.jsx("span",{style:{color:"#FF9933",fontWeight:700,userSelect:"none"},children:"$"}),s.jsx("span",{style:{color:l?"#d0d0f0":"#c8c8e8"},children:E.cmd}),s.jsx("span",{style:{color:M,fontSize:"0.8rem"},children:E.comment})]}),s.jsx(vm,{text:E.cmd,dark:l})]},R))})]}),s.jsxs("p",{style:{color:y,fontSize:"0.8rem",textAlign:"center",marginTop:20},children:["From source:"," ",s.jsx("code",{style:{background:l?"#1a1a24":"#eeeefc",padding:"2px 8px",borderRadius:5,fontSize:"0.78rem",color:l?"#b0b0d8":"#3a3a6e"},children:"git clone https://github.com/mebishnusahu0595/SamarthyaBot"})]})]}),s.jsx("section",{id:"features",style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:s.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:40},children:[s.jsx(za,{dark:l,children:"Capabilities"}),s.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Built Different. Runs Locally."}),s.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:520,margin:"14px auto 0"},children:"Everything you need to run an autonomous AI agent on your own hardware."})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(300px, 1fr))",gap:24,marginBottom:50},children:[s.jsxs("div",{className:"card-hover",style:{padding:"24px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14},children:[s.jsx("div",{style:{width:38,height:38,borderRadius:10,background:"rgba(59, 130, 246, 0.1)",color:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center"},children:s.jsx(ui,{size:18})}),s.jsxs("div",{children:[s.jsx("h3",{style:{fontSize:"0.95rem",fontWeight:800,color:x},children:"Browser RPA"}),s.jsx("div",{style:{fontSize:"0.7rem",fontWeight:700,color:"#3b82f6",textTransform:"uppercase",letterSpacing:1},children:"Puppeteer-Core"})]})]}),s.jsx("div",{style:{background:l?"#0a0a0f":"#f0f0f5",padding:"12px",borderRadius:8,border:`1px solid ${m}`,color:M,fontSize:"0.75rem",fontWeight:600,marginBottom:16},children:s.jsx("span",{style:{color:x},children:'"Go to zerodha, click login, and read my portfolio."'})})]}),s.jsxs("div",{className:"card-hover",style:{padding:"24px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14},children:[s.jsx("div",{style:{width:38,height:38,borderRadius:10,background:"rgba(250, 204, 21, 0.1)",color:"#facc15",display:"flex",alignItems:"center",justifyContent:"center"},children:s.jsx(Zr,{size:18})}),s.jsxs("div",{children:[s.jsx("h3",{style:{fontSize:"0.95rem",fontWeight:800,color:x},children:"Go Streaming"}),s.jsx("div",{style:{fontSize:"0.7rem",fontWeight:700,color:"#facc15",textTransform:"uppercase",letterSpacing:1},children:"High-Perf Sub-Node"})]})]}),s.jsx("div",{style:{background:l?"#0a0a0f":"#f0f0f5",padding:"12px",borderRadius:8,border:`1px solid ${m}`,color:M,fontSize:"0.75rem",fontWeight:600,marginBottom:16},children:s.jsx("span",{style:{color:x},children:'"Run a heavy cargo build and stream the output to me."'})})]}),s.jsxs("div",{className:"card-hover",style:{padding:"24px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14},children:[s.jsx("div",{style:{width:38,height:38,borderRadius:10,background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",display:"flex",alignItems:"center",justifyContent:"center"},children:s.jsx(di,{size:18})}),s.jsxs("div",{children:[s.jsx("h3",{style:{fontSize:"0.95rem",fontWeight:800,color:x},children:"Remote SSH"}),s.jsx("div",{style:{fontSize:"0.7rem",fontWeight:700,color:"#ef4444",textTransform:"uppercase",letterSpacing:1},children:"DevOps Control"})]})]}),s.jsx("div",{style:{background:l?"#0a0a0f":"#f0f0f5",padding:"12px",borderRadius:8,border:`1px solid ${m}`,color:M,fontSize:"0.75rem",fontWeight:600,marginBottom:16},children:s.jsx("span",{style:{color:x},children:'"SSH into 1.2.3.4 and pull the latest github repo."'})})]})]}),s.jsx("div",{className:"feat-grid",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:20},children:F2.map((E,R)=>s.jsxs("div",{className:"card-hover",style:{padding:"28px 24px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff",display:"flex",flexDirection:"column"},children:[s.jsx("div",{style:{width:42,height:42,borderRadius:10,background:`${E.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:E.accent,marginBottom:18},children:E.icon}),s.jsx("h3",{style:{fontSize:"0.98rem",fontWeight:800,color:x,marginBottom:10},children:E.title}),s.jsx("p",{style:{fontSize:"0.85rem",color:y,lineHeight:1.7},children:E.desc})]},R))})]})}),s.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:s.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${m}, transparent)`}})}),s.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[s.jsx(za,{dark:l,children:"God Mode RPA"}),s.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"True Autonomous Engineering"}),s.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:640,margin:"14px auto 0"},children:"SamarthyaBot goes far beyond API wrapping. It can actively commandeer your local OS, automate invisible browsers, and SSH into your fleet."})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(320px, 1fr))",gap:24},children:[s.jsxs("div",{className:"card-hover",style:{padding:"32px",borderRadius:16,border:`1px solid ${m}`,background:b},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:20},children:[s.jsx("div",{style:{width:44,height:44,borderRadius:12,background:"rgba(59, 130, 246, 0.1)",color:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center"},children:s.jsx(ui,{size:20})}),s.jsxs("div",{children:[s.jsx("h3",{style:{fontSize:"1.05rem",fontWeight:800,color:x},children:"Browser Manipulation"}),s.jsx("div",{style:{fontSize:"0.75rem",fontWeight:700,color:"#3b82f6",textTransform:"uppercase",letterSpacing:1,marginTop:2},children:"Puppeteer-Core Engine"})]})]}),s.jsx("p",{style:{fontSize:"0.88rem",color:y,lineHeight:1.7,marginBottom:24},children:"The AI spins up an invisible Chromium instance to navigate complex web pages, click DOM nodes, solve captchas, and scrape JSON cleanly."}),s.jsxs("div",{style:{background:l?"#0a0a0f":"#f0f0f5",padding:"16px",borderRadius:10,border:`1px solid ${m}`},children:[s.jsx("div",{style:{fontSize:"0.75rem",color:M,marginBottom:8,fontWeight:600},children:"EXAMPLE COMMAND"}),s.jsx("code",{style:{fontSize:"0.85rem",color:x,fontFamily:"monospace"},children:'"Go to zerodha.com, click the login button, and read the error message."'})]})]}),s.jsxs("div",{className:"card-hover",style:{padding:"32px",borderRadius:16,border:`1px solid ${m}`,background:b},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:20},children:[s.jsx("div",{style:{width:44,height:44,borderRadius:12,background:"rgba(250, 204, 21, 0.1)",color:"#facc15",display:"flex",alignItems:"center",justifyContent:"center"},children:s.jsx(Zr,{size:20})}),s.jsxs("div",{children:[s.jsx("h3",{style:{fontSize:"1.05rem",fontWeight:800,color:x},children:"Go Streaming Worker"}),s.jsx("div",{style:{fontSize:"0.75rem",fontWeight:700,color:"#facc15",textTransform:"uppercase",letterSpacing:1,marginTop:2},children:"High-Performance Sub-Node"})]})]}),s.jsx("p",{style:{fontSize:"0.88rem",color:y,lineHeight:1.7,marginBottom:24},children:"For long-running CLI tasks (like building Docker images), Samarthya spawns a tiny Golang subprocess to run safely without blocking Node's event loop."}),s.jsxs("div",{style:{background:l?"#0a0a0f":"#f0f0f5",padding:"16px",borderRadius:10,border:`1px solid ${m}`},children:[s.jsx("div",{style:{fontSize:"0.75rem",color:M,marginBottom:8,fontWeight:600},children:"EXAMPLE COMMAND"}),s.jsx("code",{style:{fontSize:"0.85rem",color:x,fontFamily:"monospace"},children:'"Run a cargo build on my Rust project and stream the compilation logs to me."'})]})]}),s.jsxs("div",{className:"card-hover",style:{padding:"32px",borderRadius:16,border:`1px solid ${m}`,background:b},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,marginBottom:20},children:[s.jsx("div",{style:{width:44,height:44,borderRadius:12,background:"rgba(239, 68, 68, 0.1)",color:"#ef4444",display:"flex",alignItems:"center",justifyContent:"center"},children:s.jsx(di,{size:20})}),s.jsxs("div",{children:[s.jsx("h3",{style:{fontSize:"1.05rem",fontWeight:800,color:x},children:"Remote SSH Control"}),s.jsx("div",{style:{fontSize:"0.75rem",fontWeight:700,color:"#ef4444",textTransform:"uppercase",letterSpacing:1,marginTop:2},children:"DevOps Automation"})]})]}),s.jsx("p",{style:{fontSize:"0.88rem",color:y,lineHeight:1.7,marginBottom:24},children:"The agent can securely authenticate into your remote VPS fleet. Tell it to restart an Nginx server or pull the latest GitHub commit directly inside chat."}),s.jsxs("div",{style:{background:l?"#0a0a0f":"#f0f0f5",padding:"16px",borderRadius:10,border:`1px solid ${m}`},children:[s.jsx("div",{style:{fontSize:"0.75rem",color:M,marginBottom:8,fontWeight:600},children:"EXAMPLE COMMAND"}),s.jsx("code",{style:{fontSize:"0.85rem",color:x,fontFamily:"monospace"},children:'"SSH into 142.250.21.2, pull the main branch for /app, and restart pm2."'})]})]})]})]}),s.jsxs("section",{style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[s.jsx(za,{dark:l,children:"Integrations"}),s.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Omnichannel Connectivity"}),s.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.92rem",maxWidth:440,margin:"14px auto 0"},children:"One control plane, many frontends. Talk to your agent where you already are."})]}),s.jsx("div",{className:"int-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:14},children:K2.map((E,R)=>s.jsxs("div",{className:"card-hover",style:{padding:"18px 20px",borderRadius:12,border:`1px solid ${m}`,background:b,display:"flex",alignItems:"center",gap:12},children:[s.jsx("span",{style:{width:32,height:32,borderRadius:8,background:E.bg,color:E.fg,display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:"1rem",fontWeight:900,flexShrink:0,lineHeight:1},children:E.emoji}),s.jsx("span",{style:{fontSize:"0.85rem",fontWeight:700,color:x},children:E.name})]},R))})]}),s.jsx("div",{style:{maxWidth:1100,margin:"0 auto",padding:"0 24px"},children:s.jsx("div",{style:{height:1,background:`linear-gradient(90deg, transparent, ${m}, transparent)`}})}),s.jsx("section",{id:"architecture",style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:s.jsxs("div",{style:{maxWidth:960,margin:"0 auto"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[s.jsx(za,{dark:l,children:"Under the Hood"}),s.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Architecture Overview"})]}),s.jsxs("div",{className:"arch-row",style:{display:"flex",gap:36,alignItems:"flex-start"},children:[s.jsx("div",{style:{flex:1,minWidth:280},children:s.jsxs("div",{style:{...Wc(l,m),padding:0},children:[s.jsxs("div",{style:Fc(l),children:[s.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(E=>s.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:E}},E))}),s.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:M},children:"System Topology"}),s.jsx("div",{})]}),s.jsx("pre",{style:{padding:"22px 24px",fontFamily:"monospace",fontSize:"0.78rem",lineHeight:1.85,color:l?"#7070a0":"#5050a0",overflowX:"auto"},children:`WhatsApp · Telegram · WebUI · CLI
135
+
136
+
137
+ ┌─────────────────────────┐
138
+ │ Samarthya Gateway │
139
+ │ localhost:5000 │
140
+ └──────────┬──────────────┘
141
+
142
+ ┌─────┴───────┐
143
+ ▼ ▼
144
+ Planner Skill Registry
145
+ (ReAct) (Plugins + Tools)
146
+
147
+ ├─ Background CRON
148
+ ├─ Memory Vault (AES-256)
149
+ └─ Vector Search (Local)`})]})}),s.jsx("div",{style:{flex:1,minWidth:260,display:"flex",flexDirection:"column",gap:12},children:[{icon:s.jsx(pu,{size:18}),title:"Surface Layer",desc:"WhatsApp, Telegram, Web UI, CLI — unified gateway",accent:"#FF9933"},{icon:s.jsx(eu,{size:18}),title:"Planner Engine",desc:"ReAct loop: Reason → Act → Observe",accent:"#6ee7f7"},{icon:s.jsx(Ym,{size:18}),title:"Memory Vault",desc:"AES-256 encrypted + semantic vector indexing",accent:"#a78bfa"},{icon:s.jsx(mi,{size:18}),title:"Skill Registry",desc:"Hot-plug JS plugins, shell scripts, 30+ built-ins",accent:"#22c55e"}].map((E,R)=>s.jsxs("div",{style:{display:"flex",gap:14,alignItems:"flex-start",padding:"16px 18px",borderRadius:12,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[s.jsx("div",{style:{width:34,height:34,borderRadius:8,background:`${E.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:E.accent,flexShrink:0},children:E.icon}),s.jsxs("div",{children:[s.jsx("div",{style:{fontWeight:800,fontSize:"0.87rem",color:x,marginBottom:4},children:E.title}),s.jsx("div",{style:{fontSize:"0.78rem",color:y,lineHeight:1.5},children:E.desc})]})]},R))})]})]})}),s.jsxs("section",{id:"cli",className:"section-padded",style:{maxWidth:860,margin:"0 auto",padding:"96px 24px"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[s.jsx(za,{dark:l,children:"CLI Reference"}),s.jsx("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.2rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Control Everything from Your Terminal"})]}),s.jsx("div",{style:{border:`1px solid ${m}`,borderRadius:14,overflow:"hidden",background:b},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{background:l?"#0a0a14":"#ededf8",borderBottom:`1px solid ${m}`},children:[s.jsx("th",{style:{padding:"13px 22px",textAlign:"left",fontWeight:700,fontSize:"0.72rem",color:y,letterSpacing:"1.8px",textTransform:"uppercase"},children:"Command"}),s.jsx("th",{style:{padding:"13px 22px",textAlign:"left",fontWeight:700,fontSize:"0.72rem",color:y,letterSpacing:"1.8px",textTransform:"uppercase"},children:"Description"})]})}),s.jsx("tbody",{children:ym.map((E,R)=>s.jsxs("tr",{style:{borderBottom:R<ym.length-1?`1px solid ${m}`:"none"},onMouseEnter:C=>C.currentTarget.style.background=l?"#0c0c18":"#f4f4fb",onMouseLeave:C=>C.currentTarget.style.background="transparent",children:[s.jsx("td",{style:{padding:"15px 22px"},children:s.jsx("code",{style:{fontFamily:"monospace",fontSize:"0.85rem",color:"#FF9933",background:"rgba(255,153,51,0.08)",padding:"4px 10px",borderRadius:6,fontWeight:700,whiteSpace:"nowrap"},children:E.cmd})}),s.jsx("td",{style:{padding:"15px 22px",fontSize:"0.86rem",color:y,lineHeight:1.5},children:E.desc})]},R))})]})})]}),s.jsx("section",{style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:s.jsxs("div",{className:"plug-row",style:{maxWidth:960,margin:"0 auto",display:"flex",gap:56,alignItems:"center",flexWrap:"wrap"},children:[s.jsxs("div",{style:{flex:1,minWidth:260},children:[s.jsx(za,{dark:l,children:"Extensibility"}),s.jsxs("h2",{style:{fontSize:"clamp(1.5rem, 4vw, 2.1rem)",fontWeight:900,color:x,marginTop:16,marginBottom:18,letterSpacing:"-1px",lineHeight:1.2},children:["Teach the Agent",s.jsx("br",{}),"New Superpowers"]}),s.jsxs("p",{style:{fontSize:"0.9rem",color:y,lineHeight:1.8,marginBottom:28},children:["Drop any ",s.jsx("code",{style:{background:l?"#1a1a24":"#e4e4f4",padding:"1px 6px",borderRadius:4,fontSize:"0.83rem"},children:".js"})," file into"," ",s.jsx("code",{style:{background:l?"#1a1a24":"#e4e4f4",padding:"1px 6px",borderRadius:4,fontSize:"0.83rem"},children:"~/SamarthyaBot_Files/plugins/"})," ","and the agent learns it on the fly — no restart required."]}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:["Hot-reload without restarting","Full async/await support","Type-safe parameter schema","Access to all memory APIs"].map((E,R)=>s.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center",fontSize:"0.87rem",color:y},children:[s.jsx(Jx,{size:16,color:"#22c55e"})," ",E]},R))})]}),s.jsx("div",{style:{flex:1.2,minWidth:300},children:s.jsxs("div",{style:{...Wc(l,m)},children:[s.jsxs("div",{style:Fc(l),children:[s.jsx("div",{style:{display:"flex",gap:7},children:["#ff5f56","#ffbd2e","#27c93f"].map(E=>s.jsx("div",{style:{width:11,height:11,borderRadius:"50%",background:E}},E))}),s.jsx("span",{style:{fontSize:"0.62rem",fontWeight:700,textTransform:"uppercase",letterSpacing:2,color:M},children:"plugins/hello.js"}),s.jsx(vm,{text:xm,dark:l})]}),s.jsx("pre",{style:{padding:"22px 24px",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.8,overflowX:"auto",color:l?"#b0b0e0":"#3a3a6e"},children:xm})]})})]})}),s.jsxs("section",{id:"security",className:"section-padded",style:{maxWidth:1100,margin:"0 auto",padding:"96px 24px"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[s.jsx(za,{dark:l,children:"Privacy"}),s.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Zero-Trust. Local-First. Always."}),s.jsx("p",{style:{color:y,marginTop:14,fontSize:"0.93rem",maxWidth:520,margin:"14px auto 0"},children:"Connecting an AI to your real-world data requires trust. That's why we built privacy in from the ground up."})]}),s.jsx("div",{className:"spec-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:20},children:[{icon:s.jsx(di,{size:22}),accent:"#6ee7f7",title:"Local Control Plane",desc:"The gateway runs entirely on YOUR machine. No SaaS, no subscription, no vendor lock-in."},{icon:s.jsx(ui,{size:22}),accent:"#22c55e",title:"Offline-Ready with Ollama",desc:"Swap to Ollama for 100% offline inference. Zero data ever reaches a remote server."},{icon:s.jsx(Rv,{size:22}),accent:"#a78bfa",title:"AES-256 Vault",desc:"All sensitive data including API keys are encrypted at rest with your own vault key."},{icon:s.jsx(mu,{size:22}),accent:"#FF9933",title:"Emergency Kill Switch",desc:"Stop all background agents instantly with a single command from the dashboard."}].map((E,R)=>s.jsxs("div",{className:"card-hover",style:{padding:"28px 24px",borderRadius:14,border:`1px solid ${m}`,background:b,display:"flex",flexDirection:"column"},children:[s.jsx("div",{style:{width:42,height:42,borderRadius:10,background:`${E.accent}18`,display:"flex",alignItems:"center",justifyContent:"center",color:E.accent,marginBottom:16},children:E.icon}),s.jsx("h3",{style:{fontSize:"0.98rem",fontWeight:800,color:x,marginBottom:8},children:E.title}),s.jsx("p",{style:{fontSize:"0.85rem",color:y,lineHeight:1.7},children:E.desc})]},R))})]}),s.jsx("section",{style:{background:l?"#07070e":"#f4f4fa",padding:"96px 24px"},children:s.jsxs("div",{style:{maxWidth:1100,margin:"0 auto"},children:[s.jsxs("div",{style:{textAlign:"center",marginBottom:56},children:[s.jsx(za,{dark:l,children:"Community"}),s.jsx("h2",{style:{fontSize:"clamp(1.6rem, 4vw, 2.4rem)",fontWeight:900,color:x,marginTop:14,letterSpacing:"-1.5px"},children:"Loved by Developers"})]}),s.jsx("div",{className:"test-grid",style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:20},children:J2.map((E,R)=>s.jsxs("div",{className:"card-hover",style:{padding:"26px",borderRadius:14,border:`1px solid ${m}`,background:l?"#0e0e16":"#ffffff"},children:[s.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center",marginBottom:16},children:[s.jsx("div",{style:{width:40,height:40,borderRadius:"50%",background:E.avatarBg,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"0.85rem",fontWeight:900,color:"#fff",flexShrink:0,letterSpacing:"-0.5px"},children:E.initials}),s.jsxs("div",{children:[s.jsx("div",{style:{fontWeight:800,fontSize:"0.9rem",color:x},children:E.name}),s.jsx("div",{style:{fontSize:"0.76rem",color:M,marginTop:2},children:E.handle})]}),s.jsx("div",{style:{marginLeft:"auto",display:"flex",gap:2},children:[1,2,3,4,5].map(C=>s.jsx(Fp,{size:11,fill:"#FF9933",color:"#FF9933"},C))})]}),s.jsxs("p",{style:{fontSize:"0.9rem",color:y,lineHeight:1.75,fontStyle:"italic"},children:['"',E.text,'"']})]},R))})]})}),s.jsx("section",{style:{maxWidth:860,margin:"0 auto",padding:"96px 24px"},children:s.jsxs("div",{className:"cta-pad",style:{borderRadius:22,overflow:"hidden",position:"relative",padding:"76px 60px",textAlign:"center",background:l?"linear-gradient(135deg, #120a02 0%, #0c0c16 50%, #060818 100%)":"linear-gradient(135deg, #fff8f0 0%, #ffffff 50%, #f0f0ff 100%)",border:`1px solid ${l?"#2a1a0a":"#f0e8e0"}`},children:[s.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"radial-gradient(ellipse at 50% 0%, rgba(255,153,51,0.10) 0%, transparent 65%)",pointerEvents:"none"}}),s.jsxs("div",{style:{position:"relative"},children:[s.jsx("span",{style:{fontSize:"3rem",display:"block",marginBottom:18},children:"🇮🇳"}),s.jsxs("h2",{style:{fontSize:"clamp(1.8rem, 5vw, 2.8rem)",fontWeight:950,color:x,letterSpacing:"-2px",marginBottom:18,lineHeight:1.15},children:["Built for India's",s.jsx("br",{}),"Digital Future"]}),s.jsx("p",{style:{color:y,fontSize:"0.95rem",maxWidth:480,margin:"0 auto 40px",lineHeight:1.75},children:"Native support for GST portals, IRCTC, UPI, and Hinglish — the first Agentic OS designed from the ground up for the Indian digital highway."}),s.jsxs("div",{style:{display:"flex",gap:14,justifyContent:"center",flexWrap:"wrap"},children:[s.jsxs("a",{href:"#install",onClick:E=>p(E,"#install"),className:"btn-primary",children:["Start Building ",s.jsx(Hx,{size:16})]}),s.jsxs("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",className:"btn-secondary",children:[s.jsx(Fp,{size:16})," Star on GitHub"]})]})]})]})}),s.jsxs("footer",{style:{borderTop:`1px solid ${m}`,padding:"64px 24px 40px"},children:[s.jsxs("div",{className:"footer-inner",style:{maxWidth:1100,margin:"0 auto",display:"flex",justifyContent:"space-between",gap:40,flexWrap:"wrap",marginBottom:52},children:[s.jsxs("div",{style:{maxWidth:250},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,fontWeight:900,fontSize:"1.05rem",color:x,marginBottom:12},children:[s.jsx("span",{style:bm,children:s.jsx("img",{src:"/logo.png",alt:"SamarthyaBot",style:{width:"24px",height:"24px",objectFit:"contain"}})}),"Samarthya",s.jsx("span",{style:{color:"#FF9933"},children:"Bot"})]}),s.jsx("p",{style:{fontSize:"0.82rem",color:y,lineHeight:1.7},children:"Privacy-first agentic OS built for India's digital future. Run it locally, own your intelligence."}),s.jsxs("div",{style:{display:"flex",gap:8,marginTop:18},children:[s.jsx("a",{href:"https://github.com/mebishnusahu0595/SamarthyaBot",target:"_blank",rel:"noreferrer",style:Sm(l,m),children:s.jsx(qc,{size:14,color:y})}),s.jsx("a",{href:"https://www.npmjs.com/package/samarthya-bot",target:"_blank",rel:"noreferrer",style:Sm(l,m),children:s.jsx(Qm,{size:14,color:y})})]})]}),s.jsx("div",{style:{display:"flex",gap:52,flexWrap:"wrap"},children:[{heading:"Product",links:[{label:"Features",href:"#features",scroll:!0},{label:"CLI Reference",href:"#cli",scroll:!0},{label:"Architecture",href:"#architecture",scroll:!0},{label:"Dashboard",href:"/dashboard",internal:!0}]},{heading:"Resources",links:[{label:"GitHub",href:"https://github.com/mebishnusahu0595/SamarthyaBot",ext:!0},{label:"NPM Package",href:"https://www.npmjs.com/package/samarthya-bot",ext:!0},{label:"Report a Bug",href:"https://github.com/mebishnusahu0595/SamarthyaBot/issues",ext:!0}]}].map((E,R)=>s.jsxs("div",{children:[s.jsx("div",{style:{fontWeight:800,fontSize:"0.72rem",letterSpacing:"2px",textTransform:"uppercase",color:M,marginBottom:18},children:E.heading}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:E.links.map((C,w)=>C.internal?s.jsx(ci,{to:C.href,style:{fontSize:"0.86rem",color:y,fontWeight:600},onMouseEnter:Y=>Y.target.style.color=x,onMouseLeave:Y=>Y.target.style.color=y,children:C.label},w):C.ext?s.jsxs("a",{href:C.href,target:"_blank",rel:"noreferrer",style:{fontSize:"0.86rem",color:y,fontWeight:600,display:"flex",alignItems:"center",gap:5},onMouseEnter:Y=>Y.currentTarget.style.color=x,onMouseLeave:Y=>Y.currentTarget.style.color=y,children:[C.label," ",s.jsx(ov,{size:11})]},w):s.jsx("a",{href:C.href,style:{fontSize:"0.86rem",color:y,fontWeight:600},onClick:Y=>p(Y,C.href),onMouseEnter:Y=>Y.target.style.color=x,onMouseLeave:Y=>Y.target.style.color=y,children:C.label},w))})]},R))})]}),s.jsxs("div",{style:{maxWidth:1100,margin:"0 auto",paddingTop:24,borderTop:`1px solid ${m}`,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:10},children:[s.jsxs("p",{style:{fontSize:"0.76rem",color:M},children:["© 2025 Samarthya Project · MIT License · Built with ❤️ in India by ",s.jsx("strong",{style:{color:y},children:"Bishnu Sahu"})]}),s.jsx("p",{style:{fontSize:"0.72rem",color:M},children:"Not affiliated with OpenAI or Anthropic 🇮🇳"})]})]})]})]})}const bm={width:34,height:34,borderRadius:8,background:"#0e0e16",border:"1px solid #2a2a38",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},I2=()=>({width:84,height:84,borderRadius:22,objectFit:"contain",filter:"drop-shadow(0 8px 28px rgba(255,153,51,0.40))",flexShrink:0}),P2=(l,o,u)=>({position:"fixed",top:0,left:0,right:0,zIndex:999,background:o?l?"rgba(6,6,10,0.88)":"rgba(255,255,255,0.88)":"transparent",backdropFilter:o?"blur(18px) saturate(160%)":"none",borderBottom:o?`1px solid ${u}`:"1px solid transparent",transition:"all 0.3s ease"}),eS=()=>({maxWidth:1100,margin:"0 auto",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 24px",height:66}),tS=(l,o)=>({width:36,height:36,borderRadius:9,border:`1.5px solid ${o}`,background:"transparent",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#888":"#555"}),aS=(l,o)=>({display:"inline-flex",alignItems:"center",gap:10,padding:"7px 16px",borderRadius:100,border:`1px solid ${o}`,background:l?"rgba(255,255,255,0.025)":"rgba(0,0,0,0.025)",marginBottom:30,cursor:"default"}),Wc=(l,o)=>({borderRadius:14,overflow:"hidden",border:`1px solid ${o}`,background:l?"#09090f":"#111"}),Fc=(l,o)=>({padding:"11px 16px",display:"flex",alignItems:"center",justifyContent:"space-between",background:l?"rgba(255,255,255,0.02)":"rgba(255,255,255,0.04)",borderBottom:`1px solid ${l?"#151520":"#1e1e28"}`}),nS=l=>({background:"none",border:"none",cursor:"pointer",padding:"4px 6px",borderRadius:6,flexShrink:0,display:"flex",alignItems:"center"}),lS=()=>({display:"inline-flex",alignItems:"center",gap:8,padding:"5px 14px",borderRadius:100,background:"rgba(255,153,51,0.08)",border:"1px solid rgba(255,153,51,0.18)"}),Sm=(l,o)=>({width:32,height:32,borderRadius:8,border:`1.5px solid ${o}`,display:"flex",alignItems:"center",justifyContent:"center",transition:"border-color 0.15s",background:"transparent"}),Yr=[{id:"chat",title:"⟩ Chat Providers",subtitle:"Message SamarthyaBot from any chat app — it responds right where you are.",items:[{name:"WhatsApp",nameHi:"व्हाट्सएप",icon:"📱",desc:"WhatsApp Business Cloud API",status:"live",tag:"🇮🇳 #1 in India"},{name:"Telegram",nameHi:"टेलीग्राम",icon:"✈️",desc:"Bot API integration",status:"live",tag:"Active"},{name:"WebChat",nameHi:"वेबचैट",icon:"💬",desc:"Browser-based UI (this app)",status:"live",tag:""},{name:"Discord",nameHi:"डिस्कॉर्ड",icon:"🎮",desc:"Servers, channels & DMs",status:"coming",tag:""},{name:"Slack",nameHi:"स्लैक",icon:"💼",desc:"Workspace integration",status:"coming",tag:""},{name:"Signal",nameHi:"सिग्नल",icon:"🔒",desc:"Privacy-focused messaging",status:"planned",tag:""}]},{id:"ai",title:"⟩ AI Models",subtitle:"Use any model you want — cloud or local. Your keys, your choice.",items:[{name:"Google Gemini",nameHi:"गूगल जेमिनी",icon:"✨",desc:"Gemini 2.5 Flash (Default)",status:"live",tag:"Default"},{name:"Ollama (Local)",nameHi:"ऑलामा",icon:"🏠",desc:"dolphin3:8b — offline mode",status:"live",tag:"Offline"},{name:"OpenAI",nameHi:"ओपनएआई",icon:"🤖",desc:"GPT-4o, GPT-5",status:"coming",tag:""},{name:"Anthropic",nameHi:"एंथ्रोपिक",icon:"🧠",desc:"Claude 4 Opus",status:"planned",tag:""},{name:"DeepSeek",nameHi:"डीपसीक",icon:"🔍",desc:"DeepSeek V3 & R1",status:"planned",tag:""},{name:"Gemini Vision",nameHi:"जेमिनी विज़न",icon:"👁️",desc:"Screen Understanding",status:"live",tag:"Vision"}]},{id:"tools",title:"⟩ Real Tools & Automation",subtitle:"Not simulations — these actually work. Files, emails, commands, and more.",items:[{name:"Email (Gmail)",nameHi:"ईमेल",icon:"📧",desc:"Real email via Nodemailer SMTP",status:"live",tag:"Real"},{name:"File System",nameHi:"फाइल सिस्टम",icon:"📁",desc:"Read/write/list files (sandboxed)",status:"live",tag:"Real"},{name:"Shell Commands",nameHi:"शेल कमांड",icon:"💻",desc:"Safe command execution (whitelisted)",status:"live",tag:"Real"},{name:"Web Search",nameHi:"वेब सर्च",icon:"🔍",desc:"DuckDuckGo instant search",status:"live",tag:"Real"},{name:"Weather",nameHi:"मौसम",icon:"🌤️",desc:"Open-Meteo (free, no API key)",status:"live",tag:"Real"},{name:"Calculator",nameHi:"कैलकुलेटर",icon:"🧮",desc:"Math + GST calculations",status:"live",tag:"Real"},{name:"System Info",nameHi:"सिस्टम जानकारी",icon:"🖥️",desc:"CPU, RAM, OS info",status:"live",tag:"Real"},{name:"Browser Open",nameHi:"ब्राउज़र",icon:"🌐",desc:"Open URLs in default browser",status:"live",tag:"Real"},{name:"Notes",nameHi:"नोट्स",icon:"📝",desc:"Save notes as Markdown files",status:"live",tag:"Real"},{name:"Reminders",nameHi:"रिमाइंडर",icon:"⏰",desc:"Persistent JSON reminders",status:"live",tag:"Real"},{name:"Calendar",nameHi:"कैलेंडर",icon:"📅",desc:"Event scheduling (local files)",status:"live",tag:"Real"}]},{id:"india",title:"⟩ Indian Workflows",subtitle:"Built specifically for Indian users — GST, UPI, IRCTC, and more.",items:[{name:"UPI Payments",nameHi:"यूपीआई",icon:"💳",desc:"Generate real UPI deep links",status:"live",tag:"🇮🇳 Real"},{name:"GST Reminders",nameHi:"जीएसटी",icon:"🏢",desc:"GSTR-1, 3B, 9 deadline tracking",status:"live",tag:"🇮🇳 Real"},{name:"IRCTC Helper",nameHi:"आईआरसीटीसी",icon:"🚂",desc:"Screen Understanding for booking",status:"live",tag:"Vision"},{name:"PAN/Aadhaar Masking",nameHi:"पैन/आधार",icon:"🔐",desc:"Auto-detect & mask sensitive data",status:"live",tag:"Security"},{name:"DigiLocker",nameHi:"डिजीलॉकर",icon:"📋",desc:"Screen Understanding support",status:"live",tag:"Vision"},{name:"Hindi/Hinglish",nameHi:"हिंदी/हिंग्लिश",icon:"🗣️",desc:"3 language support with auto-detect",status:"live",tag:"🇮🇳"}]},{id:"voice",title:"⟩ Voice & Vision",subtitle:"Talk to SamarthyaBot, send screenshots — it understands everything.",items:[{name:"Voice Input",nameHi:"वॉइस इनपुट",icon:"🎙️",desc:"Web Speech API (Hindi/English)",status:"live",tag:"Real"},{name:"Text-to-Speech",nameHi:"टेक्स्ट-टू-स्पीच",icon:"🔊",desc:"Bot reads responses aloud",status:"live",tag:"Real"},{name:"Screen Capture",nameHi:"स्क्रीन कैप्चर",icon:"📸",desc:"Upload screenshots for AI analysis",status:"live",tag:"Vision"},{name:"Whisper (Local)",nameHi:"व्हिस्पर",icon:"🎧",desc:"Offline voice-to-text",status:"planned",tag:""}]},{id:"security",title:"⟩ Privacy & Security",subtitle:"Your data stays yours. Privacy-first, always.",items:[{name:"Sensitive Data Detection",nameHi:"सेंसिटिव डेटा",icon:"🛡️",desc:"PAN, Aadhaar, bank auto-detect",status:"live",tag:"Always On"},{name:"Permission System",nameHi:"अनुमति सिस्टम",icon:"🔑",desc:"Ask before file/email/browser access",status:"live",tag:""},{name:"Audit Log",nameHi:"ऑडिट लॉग",icon:"📊",desc:"Full tool execution history",status:"live",tag:""},{name:"Sandbox Mode",nameHi:"सैंडबॉक्स",icon:"📦",desc:"Files restricted to ~/SamarthyaBot_Files",status:"live",tag:""},{name:"Local-First",nameHi:"लोकल-फर्स्ट",icon:"🏠",desc:"Ollama for offline private AI",status:"live",tag:""}]}],iS={live:{bg:"rgba(19, 136, 8, 0.2)",color:"#4ade80",label:"✅ Live"},coming:{bg:"rgba(255, 153, 51, 0.2)",color:"#FF9933",label:"🔜 Coming Soon"},planned:{bg:"rgba(100, 100, 100, 0.2)",color:"#888",label:"📋 Planned"}};function rS({user:l}){const[o,u]=A.useState(Yr.reduce((m,x)=>({...m,[x.id]:!0}),{})),[c,d]=A.useState("all"),h=m=>{u(x=>({...x,[m]:!x[m]}))},p=Yr.map(m=>({...m,items:c==="all"?m.items:m.items.filter(x=>x.status===c)})).filter(m=>m.items.length>0),v=Yr.flatMap(m=>m.items).filter(m=>m.status==="live").length,b=Yr.flatMap(m=>m.items).filter(m=>m.status==="coming").length;return s.jsxs("div",{style:je.container,children:[s.jsxs("div",{style:je.header,children:[s.jsxs("h1",{style:je.title,children:[s.jsx(mi,{size:28,color:"#FF9933"}),"Integrations"]}),s.jsxs("p",{style:je.subtitle,children:[s.jsx("span",{style:je.countBadge,children:v})," live integrations with real tools & services.",s.jsx("br",{}),"Chat from WhatsApp, control files, send emails, check weather — all from one AI."]})]}),s.jsx("div",{style:je.filterBar,children:[{key:"all",label:`All (${v+b})`},{key:"live",label:`✅ Live (${v})`},{key:"coming",label:`🔜 Coming (${b})`}].map(m=>s.jsx("button",{onClick:()=>d(m.key),style:{...je.filterBtn,...c===m.key?je.filterBtnActive:{}},children:m.label},m.key))}),p.map(m=>s.jsxs("div",{style:je.category,children:[s.jsxs("button",{onClick:()=>h(m.id),style:je.categoryHeader,children:[s.jsxs("div",{children:[s.jsx("h2",{style:je.categoryTitle,children:m.title}),s.jsx("p",{style:je.categorySubtitle,children:m.subtitle})]}),o[m.id]?s.jsx(Fx,{size:20}):s.jsx(Vx,{size:20})]}),o[m.id]&&s.jsx("div",{style:je.grid,children:m.items.map((x,y)=>{const M=iS[x.status];return s.jsxs("div",{style:je.card,children:[s.jsxs("div",{style:je.cardTop,children:[s.jsx("span",{style:je.cardIcon,children:x.icon}),s.jsxs("div",{style:je.cardInfo,children:[s.jsx("h3",{style:je.cardName,children:x.name}),s.jsx("p",{style:je.cardNameHi,children:x.nameHi})]}),x.tag&&s.jsx("span",{style:{...je.tag,background:x.tag.includes("Real")?"rgba(19,136,8,0.3)":x.tag.includes("🇮🇳")?"rgba(255,153,51,0.2)":"rgba(100,100,200,0.2)",color:x.tag.includes("Real")?"#4ade80":x.tag.includes("🇮🇳")?"#FF9933":"#a0a0ff"},children:x.tag})]}),s.jsx("p",{style:je.cardDesc,children:x.desc}),s.jsx("div",{style:{...je.statusBadge,background:M.bg,color:M.color},children:M.label})]},y)})})]},m.id)),s.jsxs("div",{style:je.footerCTA,children:[s.jsx("h2",{style:je.ctaTitle,children:"🔧 Want to add more integrations?"}),s.jsxs("p",{style:je.ctaText,children:["SamarthyaBot is open-source. Add your own tools in ",s.jsx("code",{style:je.code,children:"toolRegistry.js"})]}),s.jsxs("div",{style:je.ctaButtons,children:[s.jsxs("div",{style:je.ctaCard,children:[s.jsx("span",{style:je.ctaIcon,children:"📧"}),s.jsx("strong",{children:"Email Setup"}),s.jsx("p",{style:je.ctaSmall,children:"Add Gmail App Password to .env"})]}),s.jsxs("div",{style:je.ctaCard,children:[s.jsx("span",{style:je.ctaIcon,children:"📱"}),s.jsx("strong",{children:"WhatsApp Setup"}),s.jsx("p",{style:je.ctaSmall,children:"Meta Business API token"})]}),s.jsxs("div",{style:je.ctaCard,children:[s.jsx("span",{style:je.ctaIcon,children:"🏠"}),s.jsx("strong",{children:"Offline Mode"}),s.jsx("p",{style:je.ctaSmall,children:"Set USE_OLLAMA=true in .env"})]})]})]})]})}const je={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{textAlign:"center",marginBottom:"32px"},title:{fontSize:"28px",fontWeight:"700",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",marginBottom:"12px"},subtitle:{color:"#94a3b8",fontSize:"15px",lineHeight:"1.6"},countBadge:{background:"linear-gradient(135deg, #FF9933, #FF6600)",color:"#fff",padding:"2px 10px",borderRadius:"20px",fontWeight:"700",fontSize:"14px"},filterBar:{display:"flex",gap:"8px",justifyContent:"center",marginBottom:"24px"},filterBtn:{padding:"8px 20px",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"20px",background:"transparent",color:"#94a3b8",cursor:"pointer",fontSize:"13px",transition:"all 0.2s"},filterBtnActive:{background:"rgba(255, 153, 51, 0.15)",borderColor:"#FF9933",color:"#FF9933"},category:{marginBottom:"24px",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"12px",overflow:"hidden",background:"rgba(255,255,255,0.02)"},categoryHeader:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 20px",background:"rgba(255,255,255,0.03)",border:"none",color:"#fff",cursor:"pointer",textAlign:"left"},categoryTitle:{fontSize:"18px",fontWeight:"600",margin:0,color:"#FF9933"},categorySubtitle:{fontSize:"13px",color:"#64748b",margin:"4px 0 0"},grid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:"12px",padding:"16px 20px"},card:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",padding:"14px",transition:"all 0.2s"},cardTop:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"8px"},cardIcon:{fontSize:"24px"},cardInfo:{flex:1},cardName:{fontSize:"14px",fontWeight:"600",color:"#e2e8f0",margin:0},cardNameHi:{fontSize:"11px",color:"#64748b",margin:0},tag:{fontSize:"10px",padding:"2px 8px",borderRadius:"10px",fontWeight:"600",whiteSpace:"nowrap"},cardDesc:{fontSize:"12px",color:"#94a3b8",margin:"0 0 8px",lineHeight:"1.4"},statusBadge:{display:"inline-block",fontSize:"11px",padding:"3px 10px",borderRadius:"12px",fontWeight:"500"},footerCTA:{textAlign:"center",padding:"32px 20px",marginTop:"24px",background:"linear-gradient(135deg, rgba(255,153,51,0.05), rgba(0,0,128,0.05))",borderRadius:"16px",border:"1px solid rgba(255,153,51,0.15)"},ctaTitle:{fontSize:"20px",color:"#fff",margin:"0 0 8px"},ctaText:{color:"#94a3b8",fontSize:"14px",marginBottom:"20px"},code:{background:"rgba(255,153,51,0.15)",padding:"2px 6px",borderRadius:"4px",color:"#FF9933",fontSize:"13px"},ctaButtons:{display:"flex",gap:"12px",justifyContent:"center",flexWrap:"wrap"},ctaCard:{background:"rgba(255,255,255,0.04)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"14px 20px",textAlign:"center",color:"#e2e8f0",fontSize:"14px",minWidth:"160px"},ctaIcon:{fontSize:"24px",display:"block",marginBottom:"6px"},ctaSmall:{fontSize:"11px",color:"#64748b",margin:"4px 0 0"}},Kc={folder:{icon:Xm,color:"#FF9933"},txt:{icon:tu,color:"#94a3b8"},md:{icon:tu,color:"#60a5fa"},json:{icon:qr,color:"#fbbf24"},js:{icon:qr,color:"#fbbf24"},html:{icon:qr,color:"#f97316"},css:{icon:qr,color:"#38bdf8"},png:{icon:Lc,color:"#a78bfa"},jpg:{icon:Lc,color:"#a78bfa"},jpeg:{icon:Lc,color:"#a78bfa"},pdf:{icon:Vp,color:"#ef4444"},default:{icon:Vp,color:"#64748b"}};function oS(l){return l.type==="folder"?Kc.folder:Kc[l.extension]||Kc.default}function jm(l){return l?l<1024?`${l} B`:l<1048576?`${(l/1024).toFixed(1)} KB`:`${(l/1048576).toFixed(1)} MB`:"—"}function sS(l){return new Date(l).toLocaleString("en-IN",{timeZone:"Asia/Kolkata",day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function cS({user:l}){const[o,u]=A.useState([]),[c,d]=A.useState(""),[h,p]=A.useState(!1),[v,b]=A.useState(null),[m,x]=A.useState(null),[y,M]=A.useState(!1),[E,R]=A.useState(""),[C,w]=A.useState(""),Y=A.useRef(null);A.useEffect(()=>{I(),X()},[c]);const I=async()=>{p(!0),w("");try{const Z=await gn.list(c);u(Z.data.items||[])}catch(Z){w(Z.response?.data?.error||"Failed to load files"),u([])}finally{p(!1)}},X=async()=>{try{const Z=await gn.getStats();b(Z.data.stats)}catch{}},le=Z=>{Z.type==="folder"?d(Z.path):me(Z)},ce=()=>{const Z=c.split("/");Z.pop(),d(Z.join("/"))},me=async Z=>{try{const de=await gn.read(Z.path);x(de.data)}catch{w("Cannot preview this file")}},F=Z=>{const de=gn.download(Z.path);window.open(de,"_blank")},we=async Z=>{const de=Z.type==="folder"?`Delete folder "${Z.name}" and all its contents?`:`Delete file "${Z.name}"?`;if(window.confirm(de))try{await gn.deleteFile(Z.path),I(),X()}catch(xe){w(xe.response?.data?.error||"Delete failed")}},ke=async()=>{if(E.trim())try{await gn.mkdir(E.trim(),c),R(""),M(!1),I()}catch(Z){w(Z.response?.data?.error||"Failed to create folder")}},it=async Z=>{const de=Z.target.files?.[0];if(!de)return;const xe=new FileReader;xe.onload=async()=>{try{await gn.upload(de.name,xe.result,c),I(),X()}catch(_e){w(_e.response?.data?.error||"Upload failed")}},de.type.startsWith("text/")||["application/json","application/javascript"].includes(de.type)?xe.readAsText(de):xe.readAsDataURL(de),Z.target.value=""},Je=["My Stuff",...c.split("/").filter(Boolean)];return s.jsxs("div",{style:he.container,children:[s.jsxs("div",{style:he.header,children:[s.jsxs("div",{style:he.headerLeft,children:[s.jsx(hu,{size:24,color:"#FF9933"}),s.jsx("h1",{style:he.title,children:"My Stuff"}),v&&s.jsxs("span",{style:he.statsTag,children:[v.fileCount," files · ",v.folderCount," folders · ",v.totalSizeFormatted]})]}),s.jsxs("div",{style:he.headerActions,children:[s.jsxs("button",{onClick:()=>M(!0),style:he.actionBtn,children:[s.jsx(Xp,{size:16})," New Folder"]}),s.jsxs("button",{onClick:()=>Y.current?.click(),style:he.actionBtn,children:[s.jsx(ab,{size:16})," Upload"]}),s.jsx("button",{onClick:I,style:he.actionBtnIcon,children:s.jsx(Lv,{size:16})}),s.jsx("input",{ref:Y,type:"file",onChange:it,style:{display:"none"}})]})]}),s.jsx("div",{style:he.breadcrumb,children:Je.map((Z,de)=>s.jsxs(to.Fragment,{children:[de>0&&s.jsx(ll,{size:14,color:"#64748b"}),s.jsx("button",{onClick:()=>{if(de===0)d("");else{const xe=c.split("/").slice(0,de).join("/");d(xe)}},style:{...he.crumbItem,color:de===Je.length-1?"#FF9933":"#94a3b8"},children:Z})]},de))}),y&&s.jsxs("div",{style:he.newFolderRow,children:[s.jsx(Xp,{size:18,color:"#FF9933"}),s.jsx("input",{type:"text",value:E,onChange:Z=>R(Z.target.value),onKeyDown:Z=>Z.key==="Enter"&&ke(),placeholder:"Folder name...",style:he.newFolderInput,autoFocus:!0}),s.jsx("button",{onClick:ke,style:he.newFolderOk,children:"Create"}),s.jsx("button",{onClick:()=>{M(!1),R("")},style:he.newFolderCancel,children:s.jsx(Kp,{size:16})})]}),C&&s.jsxs("div",{style:he.error,children:["❌ ",C,s.jsx("button",{onClick:()=>w(""),style:he.errorClose,children:"×"})]}),c&&s.jsxs("button",{onClick:ce,style:he.backBtn,children:[s.jsx(Bx,{size:16})," Back"]}),h?s.jsx("div",{style:he.loadingBox,children:"Loading..."}):o.length===0?s.jsxs("div",{style:he.emptyBox,children:[s.jsx(Xm,{size:48,color:"#333"}),s.jsx("p",{style:he.emptyText,children:"This folder is empty"}),s.jsx("p",{style:he.emptyHint,children:"Upload a file or ask SamarthyaBot to create one in chat!"})]}):s.jsx("div",{style:he.fileGrid,children:o.map((Z,de)=>{const xe=oS(Z),_e=xe.icon;return s.jsxs("div",{style:he.fileCard,onDoubleClick:()=>le(Z),children:[s.jsxs("div",{style:he.fileCardTop,onClick:()=>le(Z),children:[s.jsx(_e,{size:32,color:xe.color}),s.jsxs("div",{style:he.fileInfo,children:[s.jsx("span",{style:he.fileName,children:Z.name}),s.jsxs("span",{style:he.fileMeta,children:[Z.type==="folder"?"Folder":jm(Z.size),Z.modified&&` · ${sS(Z.modified)}`]})]})]}),s.jsxs("div",{style:he.fileActions,children:[Z.type==="file"&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>me(Z),style:he.fileActionBtn,title:"Preview",children:s.jsx(Vm,{size:14})}),s.jsx("button",{onClick:()=>F(Z),style:he.fileActionBtn,title:"Download",children:s.jsx(iv,{size:14})})]}),s.jsx("button",{onClick:()=>we(Z),style:{...he.fileActionBtn,...he.deleteBtn},title:"Delete",children:s.jsx(Zm,{size:14})})]})]},de)})}),m&&s.jsx("div",{style:he.modalOverlay,onClick:()=>x(null),children:s.jsxs("div",{style:he.modal,onClick:Z=>Z.stopPropagation(),children:[s.jsxs("div",{style:he.modalHeader,children:[s.jsxs("h3",{style:he.modalTitle,children:[s.jsx(tu,{size:18,color:"#FF9933"}),m.name]}),s.jsxs("span",{style:he.modalMeta,children:[jm(m.size)," · ",m.extension?.toUpperCase()]}),s.jsx("button",{onClick:()=>x(null),style:he.modalClose,children:s.jsx(Kp,{size:20})})]}),s.jsx("pre",{style:he.previewContent,children:m.content})]})})]})}const he={container:{padding:"24px",maxWidth:"1200px",margin:"0 auto"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px",flexWrap:"wrap",gap:"12px"},headerLeft:{display:"flex",alignItems:"center",gap:"10px"},title:{fontSize:"22px",fontWeight:"700",color:"#fff",margin:0},statsTag:{fontSize:"12px",color:"#94a3b8",background:"rgba(255,255,255,0.05)",padding:"4px 10px",borderRadius:"12px"},headerActions:{display:"flex",gap:"8px"},actionBtn:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 14px",background:"rgba(255,153,51,0.1)",border:"1px solid rgba(255,153,51,0.3)",borderRadius:"8px",color:"#FF9933",cursor:"pointer",fontSize:"13px",fontWeight:"500",transition:"all 0.2s"},actionBtnIcon:{display:"flex",alignItems:"center",padding:"8px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",transition:"all 0.2s"},breadcrumb:{display:"flex",alignItems:"center",gap:"4px",marginBottom:"16px",padding:"8px 12px",background:"rgba(255,255,255,0.03)",borderRadius:"8px",border:"1px solid rgba(255,255,255,0.06)"},crumbItem:{background:"none",border:"none",cursor:"pointer",fontSize:"13px",padding:"2px 4px",borderRadius:"4px"},newFolderRow:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"12px",padding:"10px 14px",background:"rgba(255,153,51,0.05)",border:"1px solid rgba(255,153,51,0.2)",borderRadius:"8px"},newFolderInput:{flex:1,background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"6px",padding:"6px 10px",color:"#fff",fontSize:"13px",outline:"none"},newFolderOk:{padding:"6px 14px",background:"#FF9933",border:"none",borderRadius:"6px",color:"#000",fontWeight:"600",cursor:"pointer",fontSize:"12px"},newFolderCancel:{padding:"6px",background:"none",border:"none",color:"#94a3b8",cursor:"pointer"},error:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",background:"rgba(239,68,68,0.1)",border:"1px solid rgba(239,68,68,0.3)",borderRadius:"8px",color:"#ef4444",fontSize:"13px",marginBottom:"12px"},errorClose:{background:"none",border:"none",color:"#ef4444",cursor:"pointer",fontSize:"16px"},backBtn:{display:"flex",alignItems:"center",gap:"6px",marginBottom:"12px",padding:"6px 12px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"8px",color:"#94a3b8",cursor:"pointer",fontSize:"13px"},loadingBox:{textAlign:"center",color:"#64748b",padding:"60px 0",fontSize:"14px"},emptyBox:{textAlign:"center",padding:"60px 0"},emptyText:{color:"#64748b",fontSize:"16px",margin:"12px 0 4px"},emptyHint:{color:"#4a5568",fontSize:"13px"},fileGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:"10px"},fileCard:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 14px",background:"rgba(255,255,255,0.03)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"10px",transition:"all 0.15s",cursor:"pointer"},fileCardTop:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},fileInfo:{display:"flex",flexDirection:"column",minWidth:0},fileName:{fontSize:"14px",color:"#e2e8f0",fontWeight:"500",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},fileMeta:{fontSize:"11px",color:"#64748b"},fileActions:{display:"flex",gap:"4px",flexShrink:0},fileActionBtn:{padding:"5px",background:"rgba(255,255,255,0.05)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"6px",color:"#94a3b8",cursor:"pointer",transition:"all 0.15s"},deleteBtn:{color:"#ef4444"},modalOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,background:"rgba(0,0,0,0.7)",backdropFilter:"blur(4px)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{width:"90%",maxWidth:"800px",maxHeight:"80vh",background:"#1a1a2e",border:"1px solid rgba(255,255,255,0.1)",borderRadius:"16px",overflow:"hidden",display:"flex",flexDirection:"column"},modalHeader:{display:"flex",alignItems:"center",gap:"8px",padding:"14px 20px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.03)"},modalTitle:{display:"flex",alignItems:"center",gap:"8px",fontSize:"15px",color:"#fff",margin:0,flex:1},modalMeta:{fontSize:"12px",color:"#64748b"},modalClose:{background:"none",border:"none",color:"#94a3b8",cursor:"pointer",padding:"4px"},previewContent:{padding:"16px 20px",margin:0,overflow:"auto",flex:1,fontSize:"13px",lineHeight:"1.6",color:"#cbd5e1",fontFamily:"'JetBrains Mono', 'Fira Code', monospace',",whiteSpace:"pre-wrap",wordBreak:"break-word"}},uS=({user:l,loading:o,updateUser:u,sidebarOpen:c,setSidebarOpen:d})=>{const h=Jt();return o&&h.pathname!=="/"?s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"100vh",flexDirection:"column",background:"var(--bg-primary)"},children:[s.jsx("div",{style:{width:"48px",height:"48px",border:"3px solid var(--border-primary)",borderTopColor:"var(--accent-primary)",borderRadius:"50%",animation:"spin 1s linear infinite"}}),s.jsx("span",{style:{color:"var(--text-muted)"},children:"Loading SamarthyaBot..."})]}):h.pathname==="/"?s.jsx($2,{}):s.jsxs("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-primary)"},children:[s.jsx(ub,{user:l,isOpen:c,onToggle:()=>d(!c)}),s.jsx("main",{style:{flex:1,minHeight:"100vh"},children:s.jsxs(F1,{children:[s.jsx(aa,{path:"/dashboard",element:s.jsx(X2,{user:l})}),s.jsx(aa,{path:"/chat",element:s.jsx(hm,{user:l})}),s.jsx(aa,{path:"/chat/:id",element:s.jsx(hm,{user:l})}),s.jsx(aa,{path:"/settings",element:s.jsx(Q2,{user:l,onUpdate:u})}),s.jsx(aa,{path:"/audit",element:s.jsx(Z2,{user:l})}),s.jsx(aa,{path:"/tools",element:s.jsx(W2,{user:l})}),s.jsx(aa,{path:"/integrations",element:s.jsx(rS,{user:l})}),s.jsx(aa,{path:"/my-stuff",element:s.jsx(cS,{user:l})}),s.jsx(aa,{path:"*",element:s.jsx(Z1,{to:"/dashboard"})})]})})]})};function dS(){const[l,o]=A.useState(null),[u,c]=A.useState(!0),[d,h]=A.useState(!0);A.useEffect(()=>{(async()=>{try{const b=await Su.getProfile();o(b.data.user)}catch(b){console.error(b)}c(!1)})()},[]);const p=v=>{o(v)};return s.jsx(xx,{children:s.jsx(uS,{user:l,loading:u,updateUser:p,sidebarOpen:d,setSidebarOpen:h})})}Jy.createRoot(document.getElementById("root")).render(s.jsx(to.StrictMode,{children:s.jsx(dS,{})}));