1(function(){const x=document.createElement("link").relList;if(x&&x.supports&&x.supports("modulepreload"))return;for(const N of document.querySelectorAll('link[rel="modulepreload"]'))d(N);new MutationObserver(N=>{for(const S of N)if(S.type==="childList")for(const T of S.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&d(T)}).observe(document,{childList:!0,subtree:!0});function g(N){const S={};return N.integrity&&(S.integrity=N.integrity),N.referrerPolicy&&(S.referrerPolicy=N.referrerPolicy),N.crossOrigin==="use-credentials"?S.credentials="include":N.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function d(N){if(N.ep)return;N.ep=!0;const S=g(N);fetch(N.href,S)}})();function ux(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Lo={exports:{}},ii={};var Bh;function Uf(){if(Bh)return ii;Bh=1;var r=Symbol.for("react.transitional.element"),x=Symbol.for("react.fragment");function g(d,N,S){var T=null;if(S!==void 0&&(T=""+S),N.key!==void 0&&(T=""+N.key),"key"in N){S={};for(var H in N)H!=="key"&&(S[H]=N[H])}else S=N;return N=S.ref,{$$typeof:r,type:d,key:T,ref:N!==void 0?N:null,props:S}}return ii.Fragment=x,ii.jsx=g,ii.jsxs=g,ii}var qh;function $f(){return qh||(qh=1,Lo.exports=Uf()),Lo.exports}var a=$f(),Uo={exports:{}},Oe={};var Rh;function Bf(){if(Rh)return Oe;Rh=1;var r=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),T=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),J=Symbol.iterator;function xe(f){return f===null||typeof f!="object"?null:(f=J&&f[J]||f["@@iterator"],typeof f=="function"?f:null)}var me={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,Se={};function ae(f,E,U){this.props=f,this.context=E,this.refs=Se,this.updater=U||me}ae.prototype.isReactComponent={},ae.prototype.setState=function(f,E){if(typeof f!="object"&&typeof f!="function"&&f!=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,f,E,"setState")},ae.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function he(){}he.prototype=ae.prototype;function Me(f,E,U){this.props=f,this.context=E,this.refs=Se,this.updater=U||me}var Xe=Me.prototype=new he;Xe.constructor=Me,I(Xe,ae.prototype),Xe.isPureReactComponent=!0;var $e=Array.isArray;function ne(){}var re={H:null,A:null,T:null,S:null},Ke=Object.prototype.hasOwnProperty;function Le(f,E,U){var V=U.ref;return{$$typeof:r,type:f,key:E,ref:V!==void 0?V:null,props:U}}function tt(f,E){return Le(f.type,E,f.props)}function Ze(f){return typeof f=="object"&&f!==null&&f.$$typeof===r}function je(f){var E={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(U){return E[U]})}var Be=/\/+/g;function St(f,E){return typeof f=="object"&&f!==null&&f.key!=null?je(""+f.key):E.toString(36)}function oe(f){switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(ne,ne):(f.status="pending",f.then(function(E){f.status==="pending"&&(f.status="fulfilled",f.value=E)},function(E){f.status==="pending"&&(f.status="rejected",f.reason=E)})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}}throw f}function v(f,E,U,V,ue){var we=typeof f;(we==="undefined"||we==="boolean")&&(f=null);var Y=!1;if(f===null)Y=!0;else switch(we){case"bigint":case"string":case"number":Y=!0;break;case"object":switch(f.$$typeof){case r:case x:Y=!0;break;case Q:return Y=f._init,v(Y(f._payload),E,U,V,ue)}}if(Y)return ue=ue(f),Y=V===""?"."+St(f,0):V,$e(ue)?(U="",Y!=null&&(U=Y.replace(Be,"$&/")+"/"),v(ue,E,U,"",function(Qe){return Qe})):ue!=null&&(Ze(ue)&&(ue=tt(ue,U+(ue.key==null||f&&f.key===ue.key?"":(""+ue.key).replace(Be,"$&/")+"/")+Y)),E.push(ue)),1;Y=0;var P=V===""?".":V+":";if($e(f))for(var ye=0;ye<f.length;ye++)V=f[ye],we=P+St(V,ye),Y+=v(V,E,U,we,ue);else if(ye=xe(f),typeof ye=="function")for(f=ye.call(f),ye=0;!(V=f.next()).done;)V=V.value,we=P+St(V,ye++),Y+=v(V,E,U,we,ue);else if(we==="object"){if(typeof f.then=="function")return v(oe(f),E,U,V,ue);throw E=String(f),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return Y}function G(f,E,U){if(f==null)return f;var V=[],ue=0;return v(f,V,"","",function(we){return E.call(U,we,ue++)}),V}function ce(f){if(f._status===-1){var E=f._result;E=E(),E.then(function(U){(f._status===0||f._status===-1)&&(f._status=1,f._result=U)},function(U){(f._status===0||f._status===-1)&&(f._status=2,f._result=U)}),f._status===-1&&(f._status=0,f._result=E)}if(f._status===1)return f._result.default;throw f._result}var pe=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(E))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},ze={map:G,forEach:function(f,E,U){G(f,function(){E.apply(this,arguments)},U)},count:function(f){var E=0;return G(f,function(){E++}),E},toArray:function(f){return G(f,function(E){return E})||[]},only:function(f){if(!Ze(f))throw Error("React.Children.only expected to receive a single React element child.");return f}};return Oe.Activity=A,Oe.Children=ze,Oe.Component=ae,Oe.Fragment=g,Oe.Profiler=N,Oe.PureComponent=Me,Oe.StrictMode=d,Oe.Suspense=D,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(f){return re.H.useMemoCache(f)}},Oe.cache=function(f){return function(){return f.apply(null,arguments)}},Oe.cacheSignal=function(){return null},Oe.cloneElement=function(f,E,U){if(f==null)throw Error("The argument must be a React element, but you passed "+f+".");var V=I({},f.props),ue=f.key;if(E!=null)for(we in E.key!==void 0&&(ue=""+E.key),E)!Ke.call(E,we)||we==="
1key"||we==="__self"||we==="__source"||we==="ref"&&E.ref===void 0||(V[we]=E[we]);var we=arguments.length-2;if(we===1)V.children=U;else if(1<we){for(var Y=Array(we),P=0;P<we;P++)Y[P]=arguments[P+2];V.children=Y}return Le(f.type,ue,V)},Oe.createContext=function(f){return f={$$typeof:T,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null},f.Provider=f,f.Consumer={$$typeof:S,_context:f},f},Oe.createElement=function(f,E,U){var V,ue={},we=null;if(E!=null)for(V in E.key!==void 0&&(we=""+E.key),E)Ke.call(E,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(ue[V]=E[V]);var Y=arguments.length-2;if(Y===1)ue.children=U;else if(1<Y){for(var P=Array(Y),ye=0;ye<Y;ye++)P[ye]=arguments[ye+2];ue.children=P}if(f&&f.defaultProps)for(V in Y=f.defaultProps,Y)ue[V]===void 0&&(ue[V]=Y[V]);return Le(f,we,ue)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(f){return{$$typeof:H,render:f}},Oe.isValidElement=Ze,Oe.lazy=function(f){return{$$typeof:Q,_payload:{_status:-1,_result:f},_init:ce}},Oe.memo=function(f,E){return{$$typeof:j,type:f,compare:E===void 0?null:E}},Oe.startTransition=function(f){var E=re.T,U={};re.T=U;try{var V=f(),ue=re.S;ue!==null&&ue(U,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(ne,pe)}catch(we){pe(we)}finally{E!==null&&U.types!==null&&(E.types=U.types),re.T=E}},Oe.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()},Oe.use=function(f){return re.H.use(f)},Oe.useActionState=function(f,E,U){return re.H.useActionState(f,E,U)},Oe.useCallback=function(f,E){return re.H.useCallback(f,E)},Oe.useContext=function(f){return re.H.useContext(f)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(f,E){return re.H.useDeferredValue(f,E)},Oe.useEffect=function(f,E){return re.H.useEffect(f,E)},Oe.useEffectEvent=function(f){return re.H.useEffectEvent(f)},Oe.useId=function(){return re.H.useId()},Oe.useImperativeHandle=function(f,E,U){return re.H.useImperativeHandle(f,E,U)},Oe.useInsertionEffect=function(f,E){return re.H.useInsertionEffect(f,E)},Oe.useLayoutEffect=function(f,E){return re.H.useLayoutEffect(f,E)},Oe.useMemo=function(f,E){return re.H.useMemo(f,E)},Oe.useOptimistic=function(f,E){return re.H.useOptimistic(f,E)},Oe.useReducer=function(f,E,U){return re.H.useReducer(f,E,U)},Oe.useRef=function(f){return re.H.useRef(f)},Oe.useState=function(f){return re.H.useState(f)},Oe.useSyncExternalStore=function(f,E,U){return re.H.useSyncExternalStore(f,E,U)},Oe.useTransition=function(){return re.H.useTransition()},Oe.version="19.2.0",Oe}var Gh;function Po(){return Gh||(Gh=1,Uo.exports=Bf()),Uo.exports}var h=Po();const hx=ux(h);var $o={exports:{}},ci={},Bo={exports:{}},qo={};var Vh;function qf(){return Vh||(Vh=1,(function(r){function x(v,G){var ce=v.length;v.push(G);e:for(;0<ce;){var pe=ce-1>>>1,ze=v[pe];if(0<N(ze,G))v[pe]=G,v[ce]=ze,ce=pe;else break e}}function g(v){return v.length===0?null:v[0]}function d(v){if(v.length===0)return null;var G=v[0],ce=v.pop();if(ce!==G){v[0]=ce;e:for(var pe=0,ze=v.length,f=ze>>>1;pe<f;){var E=2*(pe+1)-1,U=v[E],V=E+1,ue=v[V];if(0>N(U,ce))V<ze&&0>N(ue,U)?(v[pe]=ue,v[V]=ce,pe=V):(v[pe]=U,v[E]=ce,pe=E);else if(V<ze&&0>N(ue,ce))v[pe]=ue,v[V]=ce,pe=V;else break e}}return G}function N(v,G){var ce=v.sortIndex-G.sortIndex;return ce!==0?ce:v.id-G.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;r.unstable_now=function(){return S.now()}}else{var T=Date,H=T.now();r.unstable_now=function(){return T.now()-H}}var D=[],j=[],Q=1,A=null,J=3,xe=!1,me=!1,I=!1,Se=!1,ae=typeof setTimeout=="function"?setTimeout:null,he=typeof clearTimeout=="function"?clearTimeout:null,Me=typeof setImmediate<"u"?setImmediate:null;function Xe(v){for(var G=g(j);G!==null;){if(G.callback===null)d(j);else if(G.startTime<=v)d(j),G.sortIndex=G.expirationTime,x(D,G);else break;G=g(j)}}function $e(v){if(I=!1,Xe(v),!me)if(g(D)!==null)me=!0,ne||(ne=!0,je());else{var G=g(j);G!==null&&oe($e,G.startTime-v)}}var ne=!1,re=-1,Ke=5,Le=-1;function tt(){return Se?!0:!(r.unstable_now()-Le<Ke)}function Ze(){if(Se=!1,ne){var v=r.unstable_now();Le=v;var G=!0;try{e:{me=!1,I&&(I=!1,he(re),re=-1),xe=!0;var ce=J;try{t:{for(Xe(v),A=g(D);A!==null&&!(A.expirationTime>v&&tt());){var pe=A.callback;
1if(typeof pe=="function"){A.callback=null,J=A.priorityLevel;var ze=pe(A.expirationTime<=v);if(v=r.unstable_now(),typeof ze=="function"){A.callback=ze,Xe(v),G=!0;break t}A===g(D)&&d(D),Xe(v)}else d(D);A=g(D)}if(A!==null)G=!0;else{var f=g(j);f!==null&&oe($e,f.startTime-v),G=!1}}break e}finally{A=null,J=ce,xe=!1}G=void 0}}finally{G?je():ne=!1}}}var je;if(typeof Me=="function")je=function(){Me(Ze)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,St=Be.port2;Be.port1.onmessage=Ze,je=function(){St.postMessage(null)}}else je=function(){ae(Ze,0)};function oe(v,G){re=ae(function(){v(r.unstable_now())},G)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(v){v.callback=null},r.unstable_forceFrameRate=function(v){0>v||125<v?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ke=0<v?Math.floor(1e3/v):5},r.unstable_getCurrentPriorityLevel=function(){return J},r.unstable_next=function(v){switch(J){case 1:case 2:case 3:var G=3;break;default:G=J}var ce=J;J=G;try{return v()}finally{J=ce}},r.unstable_requestPaint=function(){Se=!0},r.unstable_runWithPriority=function(v,G){switch(v){case 1:case 2:case 3:case 4:case 5:break;default:v=3}var ce=J;J=v;try{return G()}finally{J=ce}},r.unstable_scheduleCallback=function(v,G,ce){var pe=r.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?pe+ce:pe):ce=pe,v){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=ce+ze,v={id:Q++,callback:G,priorityLevel:v,startTime:ce,expirationTime:ze,sortIndex:-1},ce>pe?(v.sortIndex=ce,x(j,v),g(D)===null&&v===g(j)&&(I?(he(re),re=-1):I=!0,oe($e,ce-pe))):(v.sortIndex=ze,x(D,v),me||xe||(me=!0,ne||(ne=!0,je()))),v},r.unstable_shouldYield=tt,r.unstable_wrapCallback=function(v){var G=J;return function(){var ce=J;J=G;try{return v.apply(this,arguments)}finally{J=ce}}}})(qo)),qo}var Yh;function Rf(){return Yh||(Yh=1,Bo.exports=qf()),Bo.exports}var Ro={exports:{}},xa={};var Kh;function Gf(){if(Kh)return xa;Kh=1;var r=Po();function x(D){var j="https://react.dev/errors/"+D;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var Q=2;Q<arguments.length;Q++)j+="&args[]="+encodeURIComponent(arguments[Q])}return"Minified React error #"+D+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(){}var d={d:{f:g,r:function(){throw Error(x(522))},D:g,C:g,L:g,m:g,X:g,S:g,M:g},p:0,findDOMNode:null},N=Symbol.for("react.portal");function S(D,j,Q){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:A==null?null:""+A,children:D,containerInfo:j,implementation:Q}}var T=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function H(D,j){if(D==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}return xa.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,xa.createPortal=function(D,j){var Q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(x(299));return S(D,j,null,Q)},xa.flushSync=function(D){var j=T.T,Q=d.p;try{if(T.T=null,d.p=2,D)return D()}finally{T.T=j,d.p=Q,d.d.f()}}
1,xa.preconnect=function(D,j){typeof D=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,d.d.C(D,j))},xa.prefetchDNS=function(D){typeof D=="string"&&d.d.D(D)},xa.preinit=function(D,j){if(typeof D=="string"&&j&&typeof j.as=="string"){var Q=j.as,A=H(Q,j.crossOrigin),J=typeof j.integrity=="string"?j.integrity:void 0,xe=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;Q==="style"?d.d.S(D,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:A,integrity:J,fetchPriority:xe}):Q==="script"&&d.d.X(D,{crossOrigin:A,integrity:J,fetchPriority:xe,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},xa.preinitModule=function(D,j){if(typeof D=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var Q=H(j.as,j.crossOrigin);d.d.M(D,{crossOrigin:Q,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&d.d.M(D)},xa.preload=function(D,j){if(typeof D=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var Q=j.as,A=H(Q,j.crossOrigin);d.d.L(D,Q,{crossOrigin:A,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}}
vendor: 4,550 bytes, line 1
1,xa.preloadModule=function(D,j){if(typeof D=="string")if(j){var Q=H(j.as,j.crossOrigin);d.d.m(D,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:Q,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else d.d.m(D)},xa.requestFormReset=function(D){d.d.r(D)},xa.unstable_batchedUpdates=function(D,j){return D(j)},xa.useFormState=function(D,j,Q){return T.H.useFormState(D,j,Q)},xa.useFormStatus=function(){return T.H.useHostTransitionStatus()},xa.version="19.2.0",xa}var Qh;function xx(){if(Qh)return Ro.exports;Qh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(x){console.error(x)}}return r(),Ro.exports=Gf(),Ro.exports}var Xh;function Vf(){if(Xh)return ci;Xh=1;var r=Rf(),x=Po(),g=xx();function d(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 N(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function S(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function T(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 H(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 D(e){if(S(e)!==e)throw Error(d(188))}function j(e){var t=e.alternate;if(!t){if(t=S(e),t===null)throw Error(d(188));return t!==e?null:e}for(var l=e,s=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(s=n.return,s!==null){l=s;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return D(n),e;if(i===s)return D(n),t;i=i.sibling}throw Error(d(188))}if(l.return!==s.return)l=n,s=i;else{for(var c=!1,o=n.child;o;){if(o===l){c=!0,l=n,s=i;break}if(o===s){c=!0,s=n,l=i;break}o=o.sibling}if(!c){for(o=i.child;o;){if(o===l){c=!0,l=i,s=n;break}if(o===s){c=!0,s=i,l=n;break}o=o.sibling}if(!c)throw Error(d(189))}}if(l.alternate!==s)throw Error(d(190))}if(l.tag!==3)throw Error(d(188));return l.stateNode.current===l?e:t}function Q(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Q(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,J=Symbol.for("react.element"),xe=Symbol.for("react.transitional.element"),me=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),Se=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),he=Symbol.for("react.consumer"),Me=Symbol.for("react.context"),Xe=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),Ze=Symbol.iterator;function je(e){return e===null||typeof e!="object"?null:(e=Ze&&e[Ze]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function St(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case I:return"Fragment";case ae:return"Profiler";case Se:return"StrictMode";case $e:return"Suspense";case ne:return"SuspenseList";case Le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case me:return"Portal";case Me:return e.displayName||"Context";case he:return(e._context.displayName||"Context")+".Consumer";case Xe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:St(e.type)||"Memo";case Ke:t=e._payload,e=e._init;try{return St(e(t))}catch{}}return null}var oe=Array.isArray,v=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=g.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},pe=[],ze=-1;function f(e){return{current:e}}function E(e){0>ze||(e.current=pe[ze],pe[ze]=null,ze--)}function U(e,t){ze++,pe[ze]=e.current,e.current=t}var V=f(null),ue=f(null),we=f(null),Y=f(null);function P(e,t){switch(U(we,t),U(ue,e),U(V,null),t.nodeType){case 9:case 11:e=(e
vendor: 1,193 bytes, lines 1-3
1=t.documentElement)&&(e=e.namespaceURI)?rh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rh(t),e=oh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}E(V),U(V,e)}function ye(){E(V),E(ue),E(we)}function Qe(e){e.memoizedState!==null&&U(Y,e);var t=V.current,l=oh(t,e.type);t!==l&&(U(ue,e),U(V,l))}function qe(e){ue.current===e&&(E(V),E(ue)),Y.current===e&&(E(Y),ai._currentValue=ce)}var Fe,it;function Rt(e){if(Fe===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Fe=t&&t[1]||"",it=-1<l.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+Fe+e+it}var te=!1;function ct(e,t){if(!e||te)return"";te=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(M){var _=M}Reflect.construct(e,[],R)}else{try{R.call()}catch(M){_=M}e.call(R.prototype)}}else{try{throw Error()}catch(M){_=M}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}
vendor: 10,827 bytes, lines 3-8
3catch(M){if(M&&_&&typeof M.stack=="string")return[M.stack,_.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=s.DetermineComponentFrameRoot(),c=i[0],o=i[1];if(c&&o){var m=c.split(` 4`),z=o.split(` 5`);for(n=s=0;s<m.length&&!m[s].includes("DetermineComponentFrameRoot");)s++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(s===m.length||n===z.length)for(s=m.length-1,n=z.length-1;1<=s&&0<=n&&m[s]!==z[n];)n--;for(;1<=s&&0<=n;s--,n--)if(m[s]!==z[n]){if(s!==1||n!==1)do if(s--,n--,0>n||m[s]!==z[n]){var O=` 6`+m[s].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=s&&0<=n);break}}}finally{te=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Rt(l):""}function zt(e,t){switch(e.tag){case 26:case 27:case 5:return Rt(e.type);case 16:return Rt("Lazy");case 13:return e.child!==t&&t!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return Rt("Activity");default:return""}}function Gt(e){try{var t="",l=null;do t+=zt(e,l),l=e,e=e.return;while(e);return t}catch(s){return` 7Error generating stack: `+s.message+` 8`+s.stack}}var ft=Object.prototype.hasOwnProperty,K=r.unstable_scheduleCallback,F=r.unstable_cancelCallback,W=r.unstable_shouldYield,Re=r.unstable_requestPaint,De=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,kt=r.unstable_ImmediatePriority,Vt=r.unstable_UserBlockingPriority,yt=r.unstable_NormalPriority,B=r.unstable_LowPriority,le=r.unstable_IdlePriority,de=r.log,ve=r.unstable_setDisableYieldValue,mt=null,ot=null;function Ee(e){if(typeof de=="function"&&ve(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(mt,e)}catch{}}var Et=Math.clz32?Math.clz32:Qa,ha=Math.log,la=Math.LN2;function Qa(e){return e>>>=0,e===0?32:31-(ha(e)/la|0)|0}var b=256,q=262144,ee=4194304;function Te(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 Ce(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var o=s&134217727;return o!==0?(s=o&~i,s!==0?n=Te(s):(c&=o,c!==0?n=Te(c):l||(l=o&~e,l!==0&&(n=Te(l))))):(o=s&~i,o!==0?n=Te(o):c!==0?n=Te(c):l||(l=s&~e,l!==0&&(n=Te(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Zt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pt(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 _e(){var e=ee;return ee<<=1,(ee&62914560)===0&&(ee=4194304),e}function k(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ae(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dt(e,t,l,s,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,m=e.expirationTimes,z=e.hiddenUpdates;for(l=c&~l;0<l;){var O=31-Et(l),R=1<<O;o[O]=0,m[O]=-1;var _=z[O];if(_!==null)for(z[O]=null,O=0;O<_.length;O++){var M=_[O];M!==null&&(M.lane&=-536870913)}l&=~R}s!==0&&Ut(e,s,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Ut(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Et(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function na(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-Et(l),n=1<<s;n&t|e[s]&t&&(e[s]|=t),l&=~n}}function Ha(e,t){var l=t&-t;return l=(l&42)!==0?1:pa(l),(l&(e.suspendedLanes|t))!==0?0:l}function pa(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 se(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dt(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Eh(e.type))}function fn(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var Xa=Math.random().toString(36).slice(2),Jt="__reactFiber$"+Xa,ia="__reactProps$"+Xa,ol="__reactContainer$"+Xa,Es="__reactEvents$"+Xa,di="__reactListeners$"+Xa,zc="__reactHandles$"+Xa,pn="__reactResources$"+Xa,Za="__reactMarker$"+Xa;function os(e){delete e[Jt],delete e[ia],delete e[Es],delete e[di],delete e[zc]}function Ja(e){var t=e[Jt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ol]||l[Jt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ph(e);e!==null;){if(l=e[Jt])return l;e=ph(e)}return t}e=l,l=e.parentNode}return null}function tl(e){if(e=e[Jt]||e[ol]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(d(33))}function El(e){var t=e[pn];return t||(t=e[pn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[Za]=!0}var gn=new Set,bn={};function al(e,t){Ol(e,t),Ol(e+"Capture",t)}function Ol(e,t){for(bn[e]=t,e=0;e<t.length;e++)gn.add(t[e])}var _c=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]*$"),Os={},u={};function X(e){return ft.call(u,e)?!0:ft.call(Os,e)?!1:_c.test(e)?u[e]=!0:(Os[e]=!0,!1)}function $(e,t,l){if(X(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function be(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ie(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function at(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pe(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var n=s.get,i=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ht(e){if(!e._valueTracker){var t=vt(e)?"checked":"value";e._valueTracker=Pe(e,t,""+e[t])}}function dl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=vt(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function ka(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 ui=/[\n"\\]/g;function Lt(e){return e.replace(ui,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ll(e,t,l,s,n,i,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+at(t)):e.value!==""+at(t)&&(e.value=""+at(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ta(e,c,at(t)):l!=null?Ta(e,c,at(l)):s!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+at(o):e.removeAttribute("name")}function La(e,t,l,s,n,i,c,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ht(e);return}l=l!=null?""+at(l):"",t=t!=null?""+at(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}s=s??n,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=o?e.checked:!!s,e.defaultChecked=!!s,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ht(e)}function Ta(e,t,l){t==="number"&&ka(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ma(e,t,l,s){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&s&&(e[l].defaultSelected=!0)}else{for(l=""+at(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,s&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Pa(e,t,l){if(t!=null&&(t=""+at(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+at(l):""}function $t(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(d(92));if(oe(s)){if(1<s.length)throw Error(d(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=at(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),Ht(e)}function w(e,t){if(t){var l=e.firstChild;
vendor: 4,140 bytes, line 8
8if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Mc=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 nd(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||Mc.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function id(e,t,l){if(t!=null&&typeof t!="object")throw Error(d(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var n in t)s=t[n],t.hasOwnProperty(n)&&l[n]!==s&&nd(e,n,s)}else for(var i in t)t.hasOwnProperty(i)&&nd(e,i,t[i])}function Ac(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 Ex=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
8-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"]]),Ox=/^[\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 hi(e){return Ox.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ul(){}var Ec=null;function Oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ds=null,Hs=null;function cd(e){var t=tl(e);if(t&&(e=t.stateNode)){var l=e[ia]||null;e:switch(e=t.stateNode,t.type){case"input":if(ll(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var n=s[ia]||null;if(!n)throw Error(d(90));ll(s,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&dl(s)}break e;case"textarea":Pa(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ma(e,!!l.multiple,t,!1)}}}var Dc=!1;function rd(e,t,l){if(Dc)return e(t,l);Dc=!0;try{var s=e(t);return s}finally{if(Dc=!1,(Ds!==null||Hs!==null)&&(Wi(),Ds&&(t=Ds,e=Hs,Hs=Ds=null,cd(t),e)))for(t=0;t<e.length;t++)cd(e[t])}}function yn(e,t){var l=e.stateNode;if(l===null)return null;var s=l[ia]||null;if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(d(231,t,typeof l));return l}var hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(hl)try{var vn={};Object.defineProperty(vn,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{Hc=!1}var Dl=null,Lc=null,xi=null;function od(){if(xi)return xi;var e,t=Lc,l=t.length,s,n="value"in Dl?Dl.value:Dl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(s=1;s<=c&&t[l-s]===n[i-s];s++);return xi=n.slice(e,1<s?1-s: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 fi(){return!0}function dd(){return!1}function ga(e){function t(l,s,n,i,c){this._reactName=l,this._targetInst=n,this.type=s,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?fi:dd,this.isPropagationStopped=dd,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=fi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pi=ga(ds),jn=A({},ds,{view:0,detail:0}),Dx=ga(jn),Uc,$c,Nn,gi=A({},jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qc,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!==Nn&&(Nn&&e.type==="mousemove"?(Uc=e.screenX-Nn.screenX,$c=e.screenY-Nn.screenY):$c=Uc=0,Nn=e),Uc)},movementY:function(e){return"movementY"in e?e.movementY:$c}}),ud=ga(gi),Hx=A({},gi,{dataTransfer:0}),Lx=ga(Hx),Ux=A({},jn,{relatedTarget:0}),Bc=ga(Ux),$x=A({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),Bx=ga($x),qx=A({},ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rx=ga(qx),Gx=A({},ds,{data:0}),hd=ga(Gx),Vx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yx={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"},Kx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kx[e])?!!t[e]:!1}function qc(){return Qx}var Xx=A({},jn,{key:function(e){if(e.key){var t=Vx[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 117,248 bytes, lines 8-9
8return e.type==="keypress"?(e=mi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qc,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}}),Zx=ga(Xx),Jx=A({},gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xd=ga(Jx),Px=A({},jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qc}),Ix=ga(Px),Fx=A({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wx=ga(Fx),em=A({},gi,{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}),tm=ga(em),am=A({},ds,{newState:0,oldState:0}),lm=ga(am),sm=[9,13,27,32],Rc=hl&&"CompositionEvent"in window,wn=null;hl&&"documentMode"in document&&(wn=document.documentMode);var nm=hl&&"TextEvent"in window&&!wn,md=hl&&(!Rc||wn&&8<wn&&11>=wn),fd=" ",pd=!1;function gd(e,t){switch(e){case"keyup":return sm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ls=!1;function im(e,t){switch(e){case"compositionend":return bd(t);case"keypress":return t.which!==32?null:(pd=!0,fd);case"textInput":return e=t.data,e===fd&&pd?null:e;default:return null}}function cm(e,t){if(Ls)return e==="compositionend"||!Rc&&gd(e,t)?(e=od(),xi=Lc=Dl=null,Ls=!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 md&&t.locale!=="ko"?null:t.data;default:return null}}var rm={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 yd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rm[e.type]:t==="textarea"}function vd(e,t,l,s){Ds?Hs?Hs.push(s):Hs=[s]:Ds=s,t=ic(t,"onChange"),0<t.length&&(l=new pi("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var Sn=null,kn=null;function om(e){ah(e,0)}function bi(e){var t=Al(e);if(dl(t))return e}function jd(e,t){if(e==="change")return t}var Nd=!1;if(hl){var Gc;if(hl){var Vc="oninput"in document;if(!Vc){var wd=document.createElement("div");wd.setAttribute("oninput","return;"),Vc=typeof wd.oninput=="function"}Gc=Vc}else Gc=!1;Nd=Gc&&(!document.documentMode||9<document.documentMode)}function Sd(){Sn&&(Sn.detachEvent("onpropertychange",kd),kn=Sn=null)}function kd(e){if(e.propertyName==="value"&&bi(kn)){var t=[];vd(t,kn,e,Oc(e)),rd(om,t)}}function dm(e,t,l){e==="focusin"?(Sd(),Sn=t,kn=l,Sn.attachEvent("onpropertychange",kd)):e==="focusout"&&Sd()}function um(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bi(kn)}function hm(e,t){if(e==="click")return bi(t)}function xm(e,t){if(e==="input"||e==="change")return bi(t)}function mm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ca=typeof Object.is=="function"?Object.is:mm;function Tn(e,t){if(Ca(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var n=l[s];if(!ft.call(t,n)||!Ca(e[n],t[n]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cd(e,t){var l=Td(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Td(l)}}function zd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _d(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ka(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ka(e.document)}return t}function Yc(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 fm=hl&&"documentMode"in document&&11>=document.documentMode,Us=null,Kc=null,Cn=null,Qc=!1;function Md(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qc||Us==null||Us!==ka(s)||(s=Us,"selectionStart"in s&&Yc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Cn&&Tn(Cn,s)||(Cn=s,s=ic(Kc,"onSelect"),0<s.length&&(t=new pi("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=Us)))}function us(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var $s={animationend:us("Animation","AnimationEnd"),animationiteration:us("Animation","AnimationIteration"),animationstart:us("Animation","AnimationStart"),transitionrun:us("Transition","TransitionRun"),transitionstart:us("Transition","TransitionStart"),transitioncancel:us("Transition","TransitionCancel"),transitionend:us("Transition","TransitionEnd")},Xc={},Ad={};hl&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete $s.animationend.animation,delete $s.animationiteration.animation,delete $s.animationstart.animation),"TransitionEvent"in window||delete $s.transitionend.transition);function hs(e){if(Xc[e])return Xc[e];if(!$s[e])return e;var t=$s[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ad)return Xc[e]=t[l];return e}var Ed=hs("animationend"),Od=hs("animationiteration"),Dd=hs("animationstart"),pm=hs("transitionrun"),gm=hs("transitionstart"),bm=hs("transitioncancel"),Hd=hs("transitionend"),Ld=new Map,Zc="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(" ");Zc.push("scrollEnd");function Ia(e,t){Ld.set(e,t),al(t,[e])}var yi=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)},Ua=[],Bs=0,Jc=0;function vi(){for(var e=Bs,t=Jc=Bs=0;t<e;){var l=Ua[t];Ua[t++]=null;var s=Ua[t];Ua[t++]=null;var n=Ua[t];Ua[t++]=null;var i=Ua[t];if(Ua[t++]=null,s!==null&&n!==null){var c=s.pending;c===null?n.next=n:(n.next=c.next,c.next=n),s.pending=n}i!==0&&Ud(l,n,i)}}function ji(e,t,l,s){Ua[Bs++]=e,Ua[Bs++]=t,Ua[Bs++]=l,Ua[Bs++]=s,Jc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Pc(e,t,l,s){return ji(e,t,l,s),Ni(e)}function xs(e,t){return ji(e,null,null,t),Ni(e)}function Ud(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,s=i.alternate,s!==null&&(s.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-Et(l),e=i.hiddenUpdates,s=e[n],s===null?e[n]=[t]:s.push(t),t.lane=l|536870912),i):null}function Ni(e){if(50<Jn)throw Jn=0,no=null,Error(d(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var qs={};function ym(e,t,l,s){this.tag=e,this.key=l,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function za(e,t,l,s){return new ym(e,t,l,s)}function Ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xl(e,t){var l=e.alternate;return l===null?(l=za(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function $d(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wi(e,t,l,s,n,i){var c=0;if(s=e,typeof e=="function")Ic(e)&&(c=1);else if(typeof e=="string")c=kf(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Le:return e=za(31,l,t,n),e.elementType=Le,e.lanes=i,e;case I:return ms(l.children,n,i,t);case Se:c=8,n|=24;break;case ae:return e=za(12,l,t,n|2),e.elementType=ae,e.lanes=i,e;case $e:return e=za(13,l,t,n),e.elementType=$e,e.lanes=i,e;case ne:return e=za(19,l,t,n),e.elementType=ne,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Me:c=10;break e;case he:c=9;break e;case Xe:c=11;break e;case re:c=14;break e;case Ke:c=16,s=null;break e}c=29,l=Error(d(130,e===null?"null":typeof e,"")),s=null}return t=za(c,l,t,n),t.elementType=e,t.type=s,t.lanes=i,t}function ms(e,t,l,s){return e=za(7,e,s,t),e.lanes=l,e}function Fc(e,t,l){return e=za(6,e,null,t),e.lanes=l,e}function Bd(e){var t=za(18,null,null,0);return t.stateNode=e,t}function Wc(e,t,l){return t=za(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qd=new WeakMap;function $a(e,t){if(typeof e=="object"&&e!==null){var l=qd.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Gt(t)},qd.set(e,t),t)}return{value:e,source:t,stack:Gt(t)}}var Rs=[],Gs=0,Si=null,zn=0,Ba=[],qa=0,Hl=null,sl=1,nl="";function ml(e,t){Rs[Gs++]=zn,Rs[Gs++]=Si,Si=e,zn=t}function Rd(e,t,l){Ba[qa++]=sl,Ba[qa++]=nl,Ba[qa++]=Hl,Hl=e;var s=sl;e=nl;var n=32-Et(s)-1;s&=~(1<<n),l+=1;var i=32-Et(t)+n;if(30<i){var c=n-n%5;i=(s&(1<<c)-1).toString(32),s>>=c,n-=c,sl=1<<32-Et(t)+n|l<<n|s,nl=i+e}else sl=1<<i|l<<n|s,nl=e}function er(e){e.return!==null&&(ml(e,1),Rd(e,1,0))}function tr(e){for(;e===Si;)Si=Rs[--Gs],Rs[Gs]=null,zn=Rs[--Gs],Rs[Gs]=null;for(;e===Hl;)Hl=Ba[--qa],Ba[qa]=null,nl=Ba[--qa],Ba[qa]=null,sl=Ba[--qa],Ba[qa]=null}function Gd(e,t){Ba[qa++]=sl,Ba[qa++]=nl,Ba[qa++]=Hl,sl=t.id,nl=t.overflow,Hl=e}var ca=null,_t=null,nt=!1,Ll=null,Ra=!1,ar=Error(d(519));function Ul(e){var t=Error(d(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _n($a(t,e)),ar}function Vd(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Jt]=e,t[ia]=s,l){case"dialog":et("cancel",t),et("close",t);break;case"iframe":case"object":case"embed":et("load",t);break;case"video":case"audio":for(l=0;l<In.length;l++)et(In[l],t);break;case"source":et("error",t);break;case"img":case"image":case"link":et("error",t),et("load",t);break;case"details":et("toggle",t);break;case"input":et("invalid",t),La(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":et("invalid",t);break;case"textarea":et("invalid",t),$t(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||ih(t.textContent,l)?(s.popover!=null&&(et("beforetoggle",t),et("toggle",t)),s.onScroll!=null&&et("scroll",t),s.onScrollEnd!=null&&et("scrollend",t),s.onClick!=null&&(t.onclick=ul),t=!0):t=!1,t||Ul(e,!0)}function Yd(e){for(ca=e.return;ca;)switch(ca.tag){case 5:case 31:case 13:Ra=!1;return;case 27:case 3:Ra=!0;return;default:ca=ca.return}}function Vs(e){if(e!==ca)return!1;if(!nt)return Yd(e),nt=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||jo(e.type,e.memoizedProps)),l=!l),l&&_t&&Ul(e),Yd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(d(317));_t=fh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(d(317));_t=fh(e)}else t===27?(t=_t,Il(e.type)?(e=To,To=null,_t=e):_t=t):_t=ca?Va(e.stateNode.nextSibling):null;return!0}function fs(){_t=ca=null,nt=!1}function lr(){var e=Ll;return e!==null&&(ja===null?ja=e:ja.push.apply(ja,e),Ll=null),e}function _n(e){Ll===null?Ll=[e]:Ll.push(e)}var sr=f(null),ps=null,fl=null;function $l(e,t,l){U(sr,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=sr.current,E(sr)}function nr(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function ir(e,t,l,s){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=n;for(var m=0;m<t.length;m++)if(o.context===t[m]){i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),nr(i.return,l,e),s||(c=null);break e}i=o.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(d(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),nr(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Ys(e,t,l,s){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(d(387));if(c=c.memoizedProps,c!==null){var o=n.type;Ca(n.pendingProps.value,c.value)||(e!==null?e.push(o):e=[o])}}else if(n===Y.current){if(c=n.alternate,c===null)throw Error(d(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}n=n.return}e!==null&&ir(t,e,l,s),t.flags|=262144}function ki(e){for(e=e.firstContext;e!==null;){if(!Ca(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gs(e){ps=e,fl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ra(e){return Kd(ps,e)}function Ti(e,t){return ps===null&&gs(e),Kd(e,t)}function Kd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},fl===null){if(e===null)throw Error(d(308));fl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fl=fl.next=t;return l}var vm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},jm=r.unstable_scheduleCallback,Nm=r.unstable_NormalPriority,Pt={$$typeof:Me,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cr(){return{controller:new vm,data:new Map,refCount:0}}function Mn(e){e.refCount--,e.refCount===0&&jm(Nm,function(){e.controller.abort()})}var An=null,rr=0,Ks=0,Qs=null;function wm(e,t){if(An===null){var l=An=[];rr=0,Ks=ho(),Qs={status:"pending",value:void 0,then:function(s){l.push(s)}}}return rr++,t.then(Qd,Qd),t}function Qd(){if(--rr===0&&An!==null){Qs!==null&&(Qs.status="fulfilled");var e=An;An=null,Ks=0,Qs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sm(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(s.status="rejected",s.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),s}var Xd=v.S;v.S=function(e,t){M0=De(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wm(e,t),Xd!==null&&Xd(e,t)};var bs=f(null);function or(){var e=bs.current;return e!==null?e:Tt.pooledCache}function Ci(e,t){t===null?U(bs,bs.current):U(bs,t.pool)}function Zd(){var e=or();return e===null?null:{parent:Pt._currentValue,pool:e}}var Xs=Error(d(460)),dr=Error(d(474)),zi=Error(d(542)),_i={then:function(){}};function Jd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Pd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ul,ul),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e;default:if(typeof t.status=="string")t.then(ul,ul);else{if(e=Tt,e!==null&&100<e.shellSuspendCounter)throw Error(d(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=s}},function(s){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fd(e),e}throw vs=t,Xs}}function ys(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(vs=l,Xs):l}}var vs=null;function Id(){if(vs===null)throw Error(d(459));var e=vs;return vs=null,e}function Fd(e){if(e===Xs||e===zi)throw Error(d(483))}var Zs=null,En=0;function Mi(e){var t=En;return En+=1,Zs===null&&(Zs=[]),Pd(Zs,e,t)}function On(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ai(e,t){throw t.$$typeof===J?Error(d(525)):(e=Object.prototype.toString.call(t),Error(d(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wd(e){function t(y,p){if(e){var C=y.deletions;C===null?(y.deletions=[p],y.flags|=16):C.push(p)}}function l(y,p){if(!e)return null;for(;p!==null;)t(y,p),p=p.sibling;return null}function s(y){for(var p=new Map;y!==null;)y.key!==null?p.set(y.key,y):p.set(y.index,y),y=y.sibling;return p}function n(y,p){return y=xl(y,p),y.index=0,y.sibling=null,y}function i(y,p,C){return y.index=C,e?(C=y.alternate,C!==null?(C=C.index,C<p?(y.flags|=67108866,p):C):(y.flags|=67108866,p)):(y.flags|=1048576,p)}function c(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function o(y,p,C,L){return p===null||p.tag!==6?(p=Fc(C,y.mode,L),p.return=y,p):(p=n(p,C),p.return=y,p)}function m(y,p,C,L){var Ne=C.type;return Ne===I?O(y,p,C.props.children,L,C.key):p!==null&&(p.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===Ke&&ys(Ne)===p.type)?(p=n(p,C.props),On(p,C),p.return=y,p):(p=wi(C.type,C.key,C.props,null,y.mode,L),On(p,C),p.return=y,p)}function z(y,p,C,L){return p===null||p.tag!==4||p.stateNode.containerInfo!==C.containerInfo||p.stateNode.implementation!==C.implementation?(p=Wc(C,y.mode,L),p.return=y,p):(p=n(p,C.children||[]),p.return=y,p)}function O(y,p,C,L,Ne){return p===null||p.tag!==7?(p=ms(C,y.mode,L,Ne),p.return=y,p):(p=n(p,C),p.return=y,p)}function R(y,p,C){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Fc(""+p,y.mode,C),p.return=y,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case xe:return C=wi(p.type,p.key,p.props,null,y.mode,C),On(C,p),C.return=y,C;case me:return p=Wc(p,y.mode,C),p.return=y,p;case Ke:return p=ys(p),R(y,p,C)}if(oe(p)||je(p))return p=ms(p,y.mode,C,null),p.return=y,p;if(typeof p.then=="function")return R(y,Mi(p),C);if(p.$$typeof===Me)return R(y,Ti(y,p),C);Ai(y,p)}return null}function _(y,p,C,L){var Ne=p!==null?p.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return Ne!==null?null:o(y,p,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case xe:return C.key===Ne?m(y,p,C,L):null;case me:return C.key===Ne?z(y,p,C,L):null;case Ke:return C=ys(C),_(y,p,C,L)}if(oe(C)||je(C))return Ne!==null?null:O(y,p,C,L,null);if(typeof C.then=="function")return _(y,p,Mi(C),L);if(C.$$typeof===Me)return _(y,p,Ti(y,C),L);Ai(y,C)}return null}function M(y,p,C,L,Ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return y=y.get(C)||null,o(p,y,""+L,Ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case xe:return y=y.get(L.key===null?C:L.key)||null,m(p,y,L,Ne);case me:return y=y.get(L.key===null?C:L.key)||null,z(p,y,L,Ne);case Ke:return L=ys(L),M(y,p,C,L,Ne)}if(oe(L)||je(L))return y=y.get(C)||null,O(p,y,L,Ne,null);if(typeof L.then=="function")return M(y,p,C,Mi(L),Ne);if(L.$$typeof===Me)return M(y,p,C,Ti(p,L),Ne);Ai(p,L)}return null}function fe(y,p,C,L){for(var Ne=null,ut=null,ge=p,Ge=p=0,st=null;ge!==null&&Ge<C.length;Ge++){ge.index>Ge?(st=ge,ge=null):st=ge.sibling;var ht=_(y,ge,C[Ge],L);if(ht===null){ge===null&&(ge=st);break}e&&ge&&ht.alternate===null&&t(y,ge),p=i(ht,p,Ge),ut===null?Ne=ht:ut.sibling=ht,ut=ht,ge=st}if(Ge===C.length)return l(y,ge),nt&&ml(y,Ge),Ne;if(ge===null){for(;Ge<C.length;Ge++)ge=R(y,C[Ge],L),ge!==null&&(p=i(ge,p,Ge),ut===null?Ne=ge:ut.sibling=ge,ut=ge);return nt&&ml(y,Ge),Ne}for(ge=s(ge);Ge<C.length;Ge++)st=M(ge,y,Ge,C[Ge],L),st!==null&&(e&&st.alternate!==null&&ge.delete(st.key===null?Ge:st.key),p=i(st,p,Ge),ut===null?Ne=st:ut.sibling=st,ut=st);return e&&ge.forEach(function(as){return t(y,as)}),nt&&ml(y,Ge),Ne}function ke(y,p,C,L){if(C==null)throw Error(d(151));for(var Ne=null,ut=null,ge=p,Ge=p=0,st=null,ht=C.next();ge!==null&&!ht.done;Ge++,ht=C.next()){ge.index>Ge?(st=ge,ge=null):st=ge.sibling;var as=_(y,ge,ht.value,L);if(as===null){ge===null&&(ge=st);break}e&&ge&&as.alternate===null&&t(y,ge),p=i(as,p,Ge),ut===null?Ne=as:ut.sibling=as,ut=as,ge=st}if(ht.done)return l(y,ge),nt&&ml(y,Ge),Ne;if(ge===null){for(;!ht.done;Ge++,ht=C.next())ht=R(y,ht.value,L),ht!==null&&(p=i(ht,p,Ge),ut===null?Ne=ht:ut.sibling=ht,ut=ht);return nt&&ml(y,Ge),Ne}for(ge=s(ge);!ht.done;Ge++,ht=C.next())ht=M(ge,y,Ge,ht.value,L),ht!==null&&(e&&ht.alternate!==null&&ge.delete(ht.key===null?Ge:ht.key),p=i(ht,p,Ge),ut===null?Ne=ht:ut.sibling=ht,ut=ht);return e&&ge.forEach(function(Lf){return t(y,Lf)}),nt&&ml(y,Ge),Ne}function wt(y,p,C,L){if(typeof C=="object"&&C!==null&&C.type===I&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case xe:e:{for(var Ne=C.key;p!==null;){if(p.key===Ne){if(Ne=C.type,Ne===I){if(p.tag===7){l(y,p.sibling),L=n(p,C.props.children),L.return=y,y=L;break e}}else if(p.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===Ke&&ys(Ne)===p.type){l(y,p.sibling),L=n(p,C.props),On(L,C),L.return=y,y=L;break e}l(y,p);break}else t(y,p);p=p.sibling}C.type===I?(L=ms(C.props.children,y.mode,L,C.key),L.return=y,y=L):(L=wi(C.type,C.key,C.props,null,y.mode,L),On(L,C),L.return=y,y=L)}return c(y);case me:e:{for(Ne=C.key;p!==null;){if(p.key===Ne)if(p.tag===4&&p.stateNode.containerInfo===C.containerInfo&&p.stateNode.implementation===C.implementation){l(y,p.sibling),L=n(p,C.children||[]),L.return=y,y=L;break e}else{l(y,p);break}else t(y,p);p=p.sibling}L=Wc(C,y.mode,L),L.return=y,y=L}return c(y);case Ke:return C=ys(C),wt(y,p,C,L)}if(oe(C))return fe(y,p,C,L);if(je(C)){if(Ne=je(C),typeof Ne!="function")throw Error(d(150));return C=Ne.call(C),ke(y,p,C,L)}if(typeof C.then=="function")return wt(y,p,Mi(C),L);if(C.$$typeof===Me)return wt(y,p,Ti(y,C),L);Ai(y,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,p!==null&&p.tag===6?(l(y,p.sibling),L=n(p,C),L.return=y,y=L):(l(y,p),L=Fc(C,y.mode,L),L.return=y,y=L),c(y)):l(y,p)}return function(y,p,C,L){try{En=0;var Ne=wt(y,p,C,L);return Zs=null,Ne}catch(ge){if(ge===Xs||ge===zi)throw ge;var ut=za(29,ge,null,y.mode);return ut.lanes=L,ut.return=y,ut}finally{}}}var js=Wd(!0),eu=Wd(!1),Bl=!1;function ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hr(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 ql(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rl(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(xt&2)!==0){var n=s.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),s.pending=t,t=Ni(e),Ud(e,null,l),t}return ji(e,s,t,l),Ni(e)}function Dn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,na(e,l)}}function xr(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:s.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var mr=!1;function Hn(){if(mr){var e=Qs;if(e!==null)throw e}}function Ln(e,t,l,s){mr=!1;var n=e.updateQueue;Bl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var m=o,z=m.next;m.next=null,c===null?i=z:c.next=z,c=m;var O=e.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==c&&(o===null?O.firstBaseUpdate=z:o.next=z,O.lastBaseUpdate=m))}if(i!==null){var R=n.baseState;c=0,O=z=m=null,o=i;do{var _=o.lane&-536870913,M=_!==o.lane;if(M?(lt&_)===_:(s&_)===_){_!==0&&_===Ks&&(mr=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var fe=e,ke=o;_=t;var wt=l;switch(ke.tag){case 1:if(fe=ke.payload,typeof fe=="function"){R=fe.call(wt,R,_);break e}R=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ke.payload,_=typeof fe=="function"?fe.call(wt,R,_):fe,_==null)break e;R=A({},R,_);break e;case 2:Bl=!0}}_=o.callback,_!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[_]:M.push(_))}else M={lane:_,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(z=O=M,m=R):O=O.next=M,c|=_;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;M=o,o=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);O===null&&(m=R),n.baseState=m,n.firstBaseUpdate=z,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),Ql|=c,e.lanes=c,e.memoizedState=R}}function tu(e,t){if(typeof e!="function")throw Error(d(191,e));e.call(t)}function au(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)tu(l[e],t)}var Js=f(null),Ei=f(0);function lu(e,t){e=kl,U(Ei,e),U(Js,t),kl=e|t.baseLanes}function fr(){U(Ei,kl),U(Js,Js.current)}function pr(){kl=Ei.current,E(Js),E(Ei)}var _a=f(null),Ga=null;function Gl(e){var t=e.alternate;U(Kt,Kt.current&1),U(_a,e),Ga===null&&(t===null||Js.current!==null||t.memoizedState!==null)&&(Ga=e)}function gr(e){U(Kt,Kt.current),U(_a,e),Ga===null&&(Ga=e)}function su(e){e.tag===22?(U(Kt,Kt.current),U(_a,e),Ga===null&&(Ga=e)):Vl()}function Vl(){U(Kt,Kt.current),U(_a,_a.current)}function Ma(e){E(_a),Ga===e&&(Ga=null),E(Kt)}var Kt=f(0);function Oi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||So(l)||ko(l)))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 gl=0,Ue=null,jt=null,It=null,Di=!1,Ps=!1,Ns=!1,Hi=0,Un=0,Is=null,km=0;function Bt(){throw Error(d(321))}function br(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ca(e[l],t[l]))return!1;return!0}function yr(e,t,l,s,n,i){return gl=i,Ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,v.H=e===null||e.memoizedState===null?Ru:Dr,Ns=!1,i=l(s,n),Ns=!1,Ps&&(i=iu(t,l,s,n)),nu(e),i}function nu(e){v.H=qn;var t=jt!==null&&jt.next!==null;if(gl=0,It=jt=Ue=null,Di=!1,Un=0,Is=null,t)throw Error(d(300));e===null||Ft||(e=e.dependencies,e!==null&&ki(e)&&(Ft=!0))}function iu(e,t,l,s){Ue=e;var n=0;do{if(Ps&&(Is=null),Un=0,Ps=!1,25<=n)throw Error(d(301));if(n+=1,It=jt=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}v.H=Gu,i=t(l,s)}while(Ps);return i}function Tm(){var e=v.H,t=e.useState()[0];return t=typeof t.then=="function"?$n(t):t,e=e.useState()[0],(jt!==null?jt.memoizedState:null)!==e&&(Ue.flags|=1024),t}function vr(){var e=Hi!==0;return Hi=0,e}function jr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Nr(e){if(Di){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Di=!1}gl=0,It=jt=Ue=null,Ps=!1,Un=Hi=0,Is=null}function fa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?Ue.memoizedState=It=e:It=It.next=e,It}function Qt(){if(jt===null){var e=Ue.alternate;e=e!==null?e.memoizedState:null}else e=jt.next;var t=It===null?Ue.memoizedState:It.next;if(t!==null)It=t,jt=e;else{if(e===null)throw Ue.alternate===null?Error(d(467)):Error(d(310));jt=e,e={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},It===null?Ue.memoizedState=It=e:It=It.next=e}return It}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $n(e){var t=Un;return Un+=1,Is===null&&(Is=[]),e=Pd(Is,e,t),t=Ue,(It===null?t.memoizedState:It.next)===null&&(t=t.alternate,v.H=t===null||t.memoizedState===null?Ru:Dr),e}function Ui(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $n(e);if(e.$$typeof===Me)return ra(e)}throw Error(d(438,String(e)))}function wr(e){var t=null,l=Ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=Ue.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Li(),Ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=tt;return t.index++,l}function bl(e,t){return typeof t=="function"?t(e):t}function $i(e){var t=Qt();return Sr(t,jt,e)}function Sr(e,t,l){var s=e.queue;if(s===null)throw Error(d(311));s.lastRenderedReducer=l;var n=e.baseQueue,i=s.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,s.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var o=c=null,m=null,z=t,O=!1;do{var R=z.lane&-536870913;if(R!==z.lane?(lt&R)===R:(gl&R)===R){var _=z.revertLane;if(_===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),R===Ks&&(O=!0);else if((gl&_)===_){z=z.next,_===Ks&&(O=!0);continue}else R={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},m===null?(o=m=R,c=i):m=m.next=R,Ue.lanes|=_,Ql|=_;R=z.action,Ns&&l(i,R),i=z.hasEagerState?z.eagerState:l(i,R)}else _={lane:R,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},m===null?(o=m=_,c=i):m=m.next=_,Ue.lanes|=R,Ql|=R;z=z.next}while(z!==null&&z!==t);if(m===null?c=i:m.next=o,!Ca(i,e.memoizedState)&&(Ft=!0,O&&(l=Qs,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=m,s.lastRenderedState=i}return n===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function kr(e){var t=Qt(),l=t.queue;if(l===null)throw Error(d(311));l.lastRenderedReducer=e;var s=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);Ca(i,t.memoizedState)||(Ft=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,s]}function cu(e,t,l){var s=Ue,n=Qt(),i=nt;if(i){if(l===void 0)throw Error(d(407));l=l()}else l=t();var c=!Ca((jt||n).memoizedState,l);if(c&&(n.memoizedState=l,Ft=!0),n=n.queue,zr(du.bind(null,s,n,e),[e]),n.getSnapshot!==t||c||It!==null&&It.memoizedState.tag&1){if(s.flags|=2048,Fs(9,{destroy:void 0},ou.bind(null,s,n,l,t),null),Tt===null)throw Error(d(349));i||(gl&127)!==0||ru(s,t,l)}return l}function ru(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Ue.updateQueue,t===null?(t=Li(),Ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ou(e,t,l,s){t.value=l,t.getSnapshot=s,uu(t)&&hu(e)}function du(e,t,l){return l(function(){uu(t)&&hu(e)})}function uu(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ca(e,l)}catch{return!0}}function hu(e){var t=xs(e,2);t!==null&&Na(t,e,2)}function Tr(e){var t=fa();if(typeof e=="function"){var l=e;if(e=l(),Ns){Ee(!0);try{l()}finally{Ee(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t}function xu(e,t,l,s){return e.baseState=l,Sr(e,jt,typeof s=="function"?s:bl)}function Cm(e,t,l,s,n){if(Ri(e))throw Error(d(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};v.T!==null?l(!0):i.isTransition=!1,s(i),l=t.pending,l===null?(i.next=t.pending=i,mu(t,i)):(i.next=l.next,t.pending=l.next=i)}}function mu(e,t){var l=t.action,s=t.payload,n=e.state;if(t.isTransition){var i=v.T,c={};v.T=c;try{var o=l(n,s),m=v.S;m!==null&&m(c,o),fu(e,t,o)}catch(z){Cr(e,t,z)}finally{i!==null&&c.types!==null&&(i.types=c.types),v.T=i}}else try{i=l(n,s),fu(e,t,i)}catch(z){Cr(e,t,z)}}function fu(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){pu(e,t,s)},function(s){return Cr(e,t,s)}):pu(e,t,l)}function pu(e,t,l){t.status="fulfilled",t.value=l,gu(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,mu(e,l)))}function Cr(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,gu(t),t=t.next;while(t!==s)}e.action=null}function gu(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bu(e,t){return t}function yu(e,t){if(nt){var l=Tt.formState;if(l!==null){e:{var s=Ue;if(nt){if(_t){t:{for(var n=_t,i=Ra;n.nodeType!==8;){if(!i){n=null;break t}if(n=Va(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){_t=Va(n.nextSibling),s=n.data==="F!";break e}}Ul(s)}s=!1}s&&(t=l[0])}}return l=fa(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bu,lastRenderedState:t},l.queue=s,l=$u.bind(null,Ue,s),s.dispatch=l,s=Tr(!1),i=Or.bind(null,Ue,!1,s.queue),s=fa(),n={state:t,dispatch:null,action:e,pending:null},s.queue=n,l=Cm.bind(null,Ue,n,i,l),n.dispatch=l,s.memoizedState=e,[t,l,!1]}function vu(e){var t=Qt();return ju(t,jt,e)}function ju(e,t,l){if(t=Sr(e,t,bu)[0],e=$i(bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=$n(t)}catch(c){throw c===Xs?zi:c}else s=t;t=Qt();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(Ue.flags|=2048,Fs(9,{destroy:void 0},zm.bind(null,n,l),null)),[s,i,e]}function zm(e,t){e.action=t}function Nu(e){var t=Qt(),l=jt;if(l!==null)return ju(t,l,e);Qt(),t=t.memoizedState,l=Qt();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function Fs(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=Ue.updateQueue,t===null&&(t=Li(),Ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function wu(){return Qt().memoizedState}function Bi(e,t,l,s){var n=fa();Ue.flags|=e,n.memoizedState=Fs(1|t,{destroy:void 0},l,s===void 0?null:s)}function qi(e,t,l,s){var n=Qt();s=s===void 0?null:s;var i=n.memoizedState.inst;jt!==null&&s!==null&&br(s,jt.memoizedState.deps)?n.memoizedState=Fs(t,i,l,s):(Ue.flags|=e,n.memoizedState=Fs(1|t,i,l,s))}function Su(e,t){Bi(8390656,8,e,t)}function zr(e,t){qi(2048,8,e,t)}function _m(e){Ue.flags|=4;var t=Ue.updateQueue;if(t===null)t=Li(),Ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ku(e){var t=Qt().memoizedState;return _m({ref:t,nextImpl:e}),function(){if((xt&2)!==0)throw Error(d(440));return t.impl.apply(void 0,arguments)}}function Tu(e,t){return qi(4,2,e,t)}function Cu(e,t){return qi(4,4,e,t)}function zu(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _u(e,t,l){l=l!=null?l.concat([e]):null,qi(4,4,zu.bind(null,t,e),l)}function _r(){}function Mu(e,t){var l=Qt();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&br(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function Au(e,t){var l=Qt();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&br(t,s[1]))return s[0];if(s=e(),Ns){Ee(!0);try{e()}finally{Ee(!1)}}return l.memoizedState=[s,t],s}function Mr(e,t,l){return l===void 0||(gl&1073741824)!==0&&(lt&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=E0(),Ue.lanes|=e,Ql|=e,l)}function Eu(e,t,l,s){return Ca(l,t)?l:Js.current!==null?(e=Mr(e,l,s),Ca(e,t)||(Ft=!0),e):(gl&42)===0||(gl&1073741824)!==0&&(lt&261930)===0?(Ft=!0,e.memoizedState=l):(e=E0(),Ue.lanes|=e,Ql|=e,t)}function Ou(e,t,l,s,n){var i=G.p;G.p=i!==0&&8>i?i:8;var c=v.T,o={};v.T=o,Or(e,!1,t,l);try{var m=n(),z=v.S;if(z!==null&&z(o,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=Sm(m,s);Bn(e,t,O,Oa(e))}else Bn(e,t,s,Oa(e))}catch(R){Bn(e,t,{then:function(){},status:"rejected",reason:R},Oa())}finally{G.p=i,c!==null&&o.types!==null&&(c.types=o.types),v.T=c}}function Mm(){}function Ar(e,t,l,s){if(e.tag!==5)throw Error(d(476));var n=Du(e).queue;Ou(e,n,t,ce,l===null?Mm:function(){return Hu(e),l(s)})}function Du(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:ce},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hu(e){var t=Du(e);t.next===null&&(t=e.alternate.memoizedState),Bn(e,t.next.queue,{},Oa())}function Er(){return ra(ai)}function Lu(){return Qt().memoizedState}function Uu(){return Qt().memoizedState}function Am(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Oa();e=ql(l);var s=Rl(t,e,l);s!==null&&(Na(s,t,l),Dn(s,t,l)),t={cache:cr()},e.payload=t;return}t=t.return}}function Em(e,t,l){var s=Oa();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ri(e)?Bu(t,l):(l=Pc(e,t,l,s),l!==null&&(Na(l,e,s),qu(l,t,s)))}function $u(e,t,l){var s=Oa();Bn(e,t,l,s)}function Bn(e,t,l,s){var n={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ri(e))Bu(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,o=i(c,l);if(n.hasEagerState=!0,n.eagerState=o,Ca(o,c))return ji(e,t,n,0),Tt===null&&vi(),!1}catch{}finally{}if(l=Pc(e,t,n,s),l!==null)return Na(l,e,s),qu(l,t,s),!0}return!1}function Or(e,t,l,s){if(s={lane:2,revertLane:ho(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ri(e)){if(t)throw Error(d(479))}else t=Pc(e,l,s,2),t!==null&&Na(t,e,2)}function Ri(e){var t=e.alternate;return e===Ue||t!==null&&t===Ue}function Bu(e,t){Ps=Di=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function qu(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,na(e,l)}}var qn={readContext:ra,use:Ui,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};qn.useEffectEvent=Bt;var Ru={readContext:ra,use:Ui,useCallback:function(e,t){return fa().memoizedState=[e,t===void 0?null:t],e},useContext:ra,useEffect:Su,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Bi(4194308,4,zu.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Bi(4194308,4,e,t)},useInsertionEffect:function(e,t){Bi(4,2,e,t)},useMemo:function(e,t){var l=fa();t=t===void 0?null:t;var s=e();if(Ns){Ee(!0);try{e()}finally{Ee(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=fa();if(l!==void 0){var n=l(t);if(Ns){Ee(!0);try{l(t)}finally{Ee(!1)}}}else n=t;return s.memoizedState=s.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=Em.bind(null,Ue,e),[s.memoizedState,e]},useRef:function(e){var t=fa();return e={current:e},t.memoizedState=e},useState:function(e){e=Tr(e);var t=e.queue,l=$u.bind(null,Ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:_r,useDeferredValue:function(e,t){var l=fa();return Mr(l,e,t)},useTransition:function(){var e=Tr(!1);return e=Ou.bind(null,Ue,e.queue,!0,!1),fa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=Ue,n=fa();if(nt){if(l===void 0)throw Error(d(407));l=l()}else{if(l=t(),Tt===null)throw Error(d(349));(lt&127)!==0||ru(s,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Su(du.bind(null,s,i,e),[e]),s.flags|=2048,Fs(9,{destroy:void 0},ou.bind(null,s,i,l,t),null),l},useId:function(){var e=fa(),t=Tt.identifierPrefix;if(nt){var l=nl,s=sl;l=(s&~(1<<32-Et(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Hi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=km++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Er,useFormState:yu,useActionState:yu,useOptimistic:function(e){var t=fa();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Or.bind(null,Ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:wr,useCacheRefresh:function(){return fa().memoizedState=Am.bind(null,Ue)},useEffectEvent:function(e){var t=fa(),l={impl:e};return t.memoizedState=l,function(){if((xt&2)!==0)throw Error(d(440));return l.impl.apply(void 0,arguments)}}},Dr={readContext:ra,use:Ui,useCallback:Mu,useContext:ra,useEffect:zr,useImperativeHandle:_u,useInsertionEffect:Tu,useLayoutEffect:Cu,useMemo:Au,useReducer:$i,useRef:wu,useState:function(){return $i(bl)},useDebugValue:_r,useDeferredValue:function(e,t){var l=Qt();return Eu(l,jt.memoizedState,e,t)},useTransition:function(){var e=$i(bl)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:$n(e),t]},useSyncExternalStore:cu,useId:Lu,useHostTransitionStatus:Er,useFormState:vu,useActionState:vu,useOptimistic:function(e,t){var l=Qt();return xu(l,jt,e,t)},useMemoCache:wr,useCacheRefresh:Uu};Dr.useEffectEvent=ku;var Gu={readContext:ra,use:Ui,useCallback:Mu,useContext:ra,useEffect:zr,useImperativeHandle:_u,useInsertionEffect:Tu,useLayoutEffect:Cu,useMemo:Au,useReducer:kr,useRef:wu,useState:function(){return kr(bl)},useDebugValue:_r,useDeferredValue:function(e,t){var l=Qt();return jt===null?Mr(l,e,t):Eu(l,jt.memoizedState,e,t)},useTransition:function(){var e=kr(bl)[0],t=Qt().memoizedState;return[typeof e=="boolean"?e:$n(e),t]},useSyncExternalStore:cu,useId:Lu,useHostTransitionStatus:Er,useFormState:Nu,useActionState:Nu,useOptimistic:function(e,t){var l=Qt();return jt!==null?xu(l,jt,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:wr,useCacheRefresh:Uu};Gu.useEffectEvent=ku;function Hr(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:A({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Lr={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=Oa(),n=ql(s);n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,s),t!==null&&(Na(t,e,s),Dn(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=Oa(),n=ql(s);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Rl(e,n,s),t!==null&&(Na(t,e,s),Dn(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Oa(),s=ql(l);s.tag=2,t!=null&&(s.callback=t),t=Rl(e,s,l),t!==null&&(Na(t,e,l),Dn(t,e,l))}};function Vu(e,t,l,s,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,c):t.prototype&&t.prototype.isPureReactComponent?!Tn(l,s)||!Tn(n,i):!0}function Yu(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&Lr.enqueueReplaceState(t,t.state,null)}function ws(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=A({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Ku(e){yi(e)}function Qu(e){console.error(e)}function Xu(e){yi(e)}function Gi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Zu(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ur(e,t,l){return l=ql(l),l.tag=3,l.payload={element:null},l.callback=function(){Gi(e,t)},l}function Ju(e){return e=ql(e),e.tag=3,e}function Pu(e,t,l,s){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=s.value;e.payload=function(){return n(i)},e.callback=function(){Zu(t,l,s)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Zu(t,l,s),typeof n!="function"&&(Xl===null?Xl=new Set([this]):Xl.add(this));var o=s.stack;this.componentDidCatch(s.value,{componentStack:o!==null?o:""})})}function Om(e,t,l,s,n){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Ys(t,l,n,!0),l=_a.current,l!==null){switch(l.tag){case 31:case 13:return Ga===null?ec():l.alternate===null&&qt===0&&(qt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,s===_i?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),ro(e,s,n)),!1;case 22:return l.flags|=65536,s===_i?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),ro(e,s,n)),!1}throw Error(d(435,l.tag))}return ro(e,s,n),ec(),!1}if(nt)return t=_a.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,s!==ar&&(e=Error(d(422),{cause:s}),_n($a(e,l)))):(s!==ar&&(t=Error(d(423),{cause:s}),_n($a(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,s=$a(s,l),n=Ur(e.stateNode,s,n),xr(e,n),qt!==4&&(qt=2)),!1;var i=Error(d(520),{cause:s});if(i=$a(i,l),Zn===null?Zn=[i]:Zn.push(i),qt!==4&&(qt=2),t===null)return!0;s=$a(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Ur(l.stateNode,s,e),xr(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Xl===null||!Xl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ju(n),Pu(n,e,l,s),xr(l,n),!1}l=l.return}while(l!==null);return!1}var $r=Error(d(461)),Ft=!1;function oa(e,t,l,s){t.child=e===null?eu(t,null,l,s):js(t,e.child,l,s)}function Iu(e,t,l,s,n){l=l.render;var i=t.ref;if("ref"in s){var c={};for(var o in s)o!=="ref"&&(c[o]=s[o])}else c=s;return gs(t),s=yr(e,t,l,c,i,n),o=vr(),e!==null&&!Ft?(jr(e,t,n),yl(e,t,n)):(nt&&o&&er(t),t.flags|=1,oa(e,t,s,n),t.child)}function Fu(e,t,l,s,n){if(e===null){var i=l.type;return typeof i=="function"&&!Ic(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Wu(e,t,i,s,n)):(e=wi(l.type,null,s,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Qr(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:Tn,l(c,s)&&e.ref===t.ref)return yl(e,t,n)}return t.flags|=1,e=xl(i,s),e.ref=t.ref,e.return=t,t.child=e}function Wu(e,t,l,s,n){if(e!==null){var i=e.memoizedProps;if(Tn(i,s)&&e.ref===t.ref)if(Ft=!1,t.pendingProps=s=i,Qr(e,n))(e.flags&131072)!==0&&(Ft=!0);else return t.lanes=e.lanes,yl(e,t,n)}return Br(e,t,l,s,n)}function e0(e,t,l,s){var n=s.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(s=t.child=e.child,n=0;s!==null;)n=n|s.lanes|s.childLanes,s=s.sibling;s=n&~i}else s=0,t.child=null;return t0(e,t,i,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ci(t,i!==null?i.cachePool:null),i!==null?lu(t,i):fr(),su(t);else return s=t.lanes=536870912,t0(e,t,i!==null?i.baseLanes|l:l,l,s)}else i!==null?(Ci(t,i.cachePool),lu(t,i),Vl(),t.memoizedState=null):(e!==null&&Ci(t,null),fr(),Vl());return oa(e,t,n,l),t.child}function Rn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function t0(e,t,l,s,n){var i=or();return i=i===null?null:{parent:Pt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ci(t,null),fr(),su(t),e!==null&&Ys(e,t,s,!0),t.childLanes=n,null}function Vi(e,t){return t=Ki({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function a0(e,t,l){return js(t,e.child,null,l),e=Vi(t,t.pendingProps),e.flags|=2,Ma(t),t.memoizedState=null,e}function Dm(e,t,l){var s=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(nt){if(s.mode==="hidden")return e=Vi(t,s),t.lanes=536870912,Rn(null,e);if(gr(t),(e=_t)?(e=mh(e,Ra),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hl!==null?{id:sl,overflow:nl}:null,retryLane:536870912,hydrationErrors:null},l=Bd(e),l.return=t,t.child=l,ca=t,_t=null)):e=null,e===null)throw Ul(t);return t.lanes=536870912,null}return Vi(t,s)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(gr(t),n)if(t.flags&256)t.flags&=-257,t=a0(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(d(558));else if(Ft||Ys(e,t,l,!1),n=(l&e.childLanes)!==0,Ft||n){if(s=Tt,s!==null&&(c=Ha(s,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,xs(e,c),Na(s,e,c),$r;ec(),t=a0(e,t,l)}else e=i.treeContext,_t=Va(c.nextSibling),ca=t,nt=!0,Ll=null,Ra=!1,e!==null&&Gd(t,e),t=Vi(t,s),t.flags|=4096;return t}return e=xl(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(d(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Br(e,t,l,s,n){return gs(t),l=yr(e,t,l,s,void 0,n),s=vr(),e!==null&&!Ft?(jr(e,t,n),yl(e,t,n)):(nt&&s&&er(t),t.flags|=1,oa(e,t,l,n),t.child)}function l0(e,t,l,s,n,i){return gs(t),t.updateQueue=null,l=iu(t,s,l,n),nu(e),s=vr(),e!==null&&!Ft?(jr(e,t,i),yl(e,t,i)):(nt&&s&&er(t),t.flags|=1,oa(e,t,l,i),t.child)}function s0(e,t,l,s,n){if(gs(t),t.stateNode===null){var i=qs,c=l.contextType;typeof c=="object"&&c!==null&&(i=ra(c)),i=new l(s,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Lr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=s,i.state=t.memoizedState,i.refs={},ur(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?ra(c):qs,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Hr(t,l,c,s),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Lr.enqueueReplaceState(i,i.state,null),Ln(t,s,i,n),Hn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,m=ws(l,o);i.props=m;var z=i.context,O=l.contextType;c=qs,typeof O=="object"&&O!==null&&(c=ra(O));var R=l.getDerivedStateFromProps;O=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||z!==c)&&Yu(t,i,s,c),Bl=!1;var _=t.memoizedState;i.state=_,Ln(t,s,i,n),Hn(),z=t.memoizedState,o||_!==z||Bl?(typeof R=="function"&&(Hr(t,l,R,s),z=t.memoizedState),(m=Bl||Vu(t,l,m,s,_,z,c))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=z),i.props=s,i.state=z,i.context=c,s=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{i=t.stateNode,hr(e,t),c=t.memoizedProps,O=ws(l,c),i.props=O,R=t.pendingProps,_=i.context,z=l.contextType,m=qs,typeof z=="object"&&z!==null&&(m=ra(z)),o=l.getDerivedStateFromProps,(z=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==R||_!==m)&&Yu(t,i,s,m),Bl=!1,_=t.memoizedState,i.state=_,Ln(t,s,i,n),Hn();var M=t.memoizedState;c!==R||_!==M||Bl||e!==null&&e.dependencies!==null&&ki(e.dependencies)?(typeof o=="function"&&(Hr(t,l,o,s),M=t.memoizedState),(O=Bl||Vu(t,l,O,s,_,M,m)||e!==null&&e.dependencies!==null&&ki(e.dependencies))?(z||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(s,M,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(s,M,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=M),i.props=s,i.state=M,i.context=m,s=O):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),s=!1)}return i=s,Yi(e,t),s=(t.flags&128)!==0,i||s?(i=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&s?(t.child=js(t,e.child,null,n),t.child=js(t,null,l,n)):oa(e,t,l,n),t.memoizedState=i.state,e=t.child):e=yl(e,t,n),e}function n0(e,t,l,s){return fs(),t.flags|=256,oa(e,t,l,s),t.child}var qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rr(e){return{baseLanes:e,cachePool:Zd()}}function Gr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ea),e}function i0(e,t,l){var s=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Kt.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(nt){if(n?Gl(t):Vl(),(e=_t)?(e=mh(e,Ra),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hl!==null?{id:sl,overflow:nl}:null,retryLane:536870912,hydrationErrors:null},l=Bd(e),l.return=t,t.child=l,ca=t,_t=null)):e=null,e===null)throw Ul(t);return ko(e)?t.lanes=32:t.lanes=536870912,null}var o=s.children;return s=s.fallback,n?(Vl(),n=t.mode,o=Ki({mode:"hidden",children:o},n),s=ms(s,n,l,null),o.return=t,s.return=t,o.sibling=s,t.child=o,s=t.child,s.memoizedState=Rr(l),s.childLanes=Gr(e,c,l),t.memoizedState=qr,Rn(null,s)):(Gl(t),Vr(t,o))}var m=e.memoizedState;if(m!==null&&(o=m.dehydrated,o!==null)){if(i)t.flags&256?(Gl(t),t.flags&=-257,t=Yr(e,t,l)):t.memoizedState!==null?(Vl(),t.child=e.child,t.flags|=128,t=null):(Vl(),o=s.fallback,n=t.mode,s=Ki({mode:"visible",children:s.children},n),o=ms(o,n,l,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,js(t,e.child,null,l),s=t.child,s.memoizedState=Rr(l),s.childLanes=Gr(e,c,l),t.memoizedState=qr,t=Rn(null,s));else if(Gl(t),ko(o)){if(c=o.nextSibling&&o.nextSibling.dataset,c)var z=c.dgst;c=z,s=Error(d(419)),s.stack="",s.digest=c,_n({value:s,source:null,stack:null}),t=Yr(e,t,l)}else if(Ft||Ys(e,t,l,!1),c=(l&e.childLanes)!==0,Ft||c){if(c=Tt,c!==null&&(s=Ha(c,l),s!==0&&s!==m.retryLane))throw m.retryLane=s,xs(e,s),Na(c,e,s),$r;So(o)||ec(),t=Yr(e,t,l)}else So(o)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,_t=Va(o.nextSibling),ca=t,nt=!0,Ll=null,Ra=!1,e!==null&&Gd(t,e),t=Vr(t,s.children),t.flags|=4096);return t}return n?(Vl(),o=s.fallback,n=t.mode,m=e.child,z=m.sibling,s=xl(m,{mode:"hidden",children:s.children}),s.subtreeFlags=m.subtreeFlags&65011712,z!==null?o=xl(z,o):(o=ms(o,n,l,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,Rn(null,s),s=t.child,o=e.child.memoizedState,o===null?o=Rr(l):(n=o.cachePool,n!==null?(m=Pt._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Zd(),o={baseLanes:o.baseLanes|l,cachePool:n}),s.memoizedState=o,s.childLanes=Gr(e,c,l),t.memoizedState=qr,Rn(e.child,s)):(Gl(t),l=e.child,e=l.sibling,l=xl(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Vr(e,t){return t=Ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ki(e,t){return e=za(22,e,null,t),e.lanes=0,e}function Yr(e,t,l){return js(t,e.child,null,l),e=Vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function c0(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),nr(e.return,t,l)}function Kr(e,t,l,s,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function r0(e,t,l){var s=t.pendingProps,n=s.revealOrder,i=s.tail;s=s.children;var c=Kt.current,o=(c&2)!==0;if(o?(c=c&1|2,t.flags|=128):c&=1,U(Kt,c),oa(e,t,s,l),s=nt?zn:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&c0(e,l,t);else if(e.tag===19)c0(e,l,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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Oi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Kr(t,!1,n,l,i,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Oi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Kr(t,!0,l,null,i,s);break;case"together":Kr(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function yl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ql|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ys(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(d(153));if(t.child!==null){for(e=t.child,l=xl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=xl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Qr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ki(e)))}function Hm(e,t,l){switch(t.tag){case 3:P(t,t.stateNode.containerInfo),$l(t,Pt,e.memoizedState.cache),fs();break;case 27:case 5:Qe(t);break;case 4:P(t,t.stateNode.containerInfo);break;case 10:$l(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gr(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Gl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?i0(e,t,l):(Gl(t),e=yl(e,t,l),e!==null?e.sibling:null);Gl(t);break;case 19:var n=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Ys(e,t,l,!1),s=(l&t.childLanes)!==0),n){if(s)return r0(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(Kt,Kt.current),s)break;return null;case 22:return t.lanes=0,e0(e,t,l,t.pendingProps);case 24:$l(t,Pt,e.memoizedState.cache)}return yl(e,t,l)}function o0(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ft=!0;else{if(!Qr(e,l)&&(t.flags&128)===0)return Ft=!1,Hm(e,t,l);Ft=(e.flags&131072)!==0}else Ft=!1,nt&&(t.flags&1048576)!==0&&Rd(t,zn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=ys(t.elementType),t.type=e,typeof e=="function")Ic(e)?(s=ws(e,s),t.tag=1,t=s0(null,t,e,s,l)):(t.tag=0,t=Br(null,t,e,s,l));else{if(e!=null){var n=e.$$typeof;if(n===Xe){t.tag=11,t=Iu(null,t,e,s,l);break e}else if(n===re){t.tag=14,t=Fu(null,t,e,s,l);break e}}throw t=St(e)||e,Error(d(306,t,""))}}return t;case 0:return Br(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,n=ws(s,t.pendingProps),s0(e,t,s,n,l);case 3:e:{if(P(t,t.stateNode.containerInfo),e===null)throw Error(d(387));s=t.pendingProps;var i=t.memoizedState;n=i.element,hr(e,t),Ln(t,s,null,l);var c=t.memoizedState;if(s=c.cache,$l(t,Pt,s),s!==i.cache&&ir(t,[Pt],l,!0),Hn(),s=c.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=n0(e,t,s,l);break e}else if(s!==n){n=$a(Error(d(424)),t),_n(n),t=n0(e,t,s,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_t=Va(e.firstChild),ca=t,nt=!0,Ll=null,Ra=!0,l=eu(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fs(),s===n){t=yl(e,t,l);break e}oa(e,t,s,l)}t=t.child}return t;case 26:return Yi(e,t),e===null?(l=vh(t.type,null,t.pendingProps,null))?t.memoizedState=l:nt||(l=t.type,e=t.pendingProps,s=cc(we.current).createElement(l),s[Jt]=t,s[ia]=e,da(s,l,e),Yt(s),t.stateNode=s):t.memoizedState=vh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qe(t),e===null&&nt&&(s=t.stateNode=gh(t.type,t.pendingProps,we.current),ca=t,Ra=!0,n=_t,Il(t.type)?(To=n,_t=Va(s.firstChild)):_t=n),oa(e,t,t.pendingProps.children,l),Yi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&nt&&((n=s=_t)&&(s=hf(s,t.type,t.pendingProps,Ra),s!==null?(t.stateNode=s,ca=t,_t=Va(s.firstChild),Ra=!1,n=!0):n=!1),n||Ul(t)),Qe(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,s=i.children,jo(n,i)?s=null:c!==null&&jo(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=yr(e,t,Tm,null,null,l),ai._currentValue=n),Yi(e,t),oa(e,t,s,l),t.child;case 6:return e===null&&nt&&((e=l=_t)&&(l=xf(l,t.pendingProps,Ra),l!==null?(t.stateNode=l,ca=t,_t=null,e=!0):e=!1),e||Ul(t)),null;case 13:return i0(e,t,l);case 4:return P(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=js(t,null,s,l):oa(e,t,s,l),t.child;case 11:return Iu(e,t,t.type,t.pendingProps,l);case 7:return oa(e,t,t.pendingProps,l),t.child;case 8:return oa(e,t,t.pendingProps.children,l),t.child;case 12:return oa(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,$l(t,t.type,s.value),oa(e,t,s.children,l),t.child;case 9:return n=t.type._context,s=t.pendingProps.children,gs(t),n=ra(n),s=s(n),t.flags|=1,oa(e,t,s,l),t.child;case 14:return Fu(e,t,t.type,t.pendingProps,l);case 15:return Wu(e,t,t.type,t.pendingProps,l);case 19:return r0(e,t,l);case 31:return Dm(e,t,l);case 22:return e0(e,t,l,t.pendingProps);case 24:return gs(t),s=ra(Pt),e===null?(n=or(),n===null&&(n=Tt,i=cr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:s,cache:n},ur(t),$l(t,Pt,n)):((e.lanes&l)!==0&&(hr(e,t),Ln(t,null,null,l),Hn()),n=e.memoizedState,i=t.memoizedState,n.parent!==s?(n={parent:s,cache:s},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),$l(t,Pt,s)):(s=i.cache,$l(t,Pt,s),s!==n.cache&&ir(t,[Pt],l,!0))),oa(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(d(156,t.tag))}function vl(e){e.flags|=4}function Xr(e,t,l,s,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(L0())e.flags|=8192;else throw vs=_i,dr}else e.flags&=-16777217}function d0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kh(t))if(L0())e.flags|=8192;else throw vs=_i,dr}function Qi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_e():536870912,e.lanes|=t,an|=t)}function Gn(e,t){if(!nt)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,s|=n.subtreeFlags&65011712,s|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,s|=n.subtreeFlags,s|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function Lm(e,t,l){var s=t.pendingProps;switch(tr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(t),null;case 1:return Mt(t),null;case 3:return l=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),pl(Pt),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Vs(t)?vl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lr())),Mt(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(vl(t),i!==null?(Mt(t),d0(t,i)):(Mt(t),Xr(t,n,null,s,l))):i?i!==e.memoizedState?(vl(t),Mt(t),d0(t,i)):(Mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&vl(t),Mt(t),Xr(t,n,e,s,l)),null;case 27:if(qe(t),l=we.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&vl(t);else{if(!s){if(t.stateNode===null)throw Error(d(166));return Mt(t),null}e=V.current,Vs(t)?Vd(t):(e=gh(n,s,l),t.stateNode=e,vl(t))}return Mt(t),null;case 5:if(qe(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&vl(t);else{if(!s){if(t.stateNode===null)throw Error(d(166));return Mt(t),null}if(i=V.current,Vs(t))Vd(t);else{var c=cc(we.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof s.is=="string"?c.createElement("select",{is:s.is}):c.createElement("select"),s.multiple?i.multiple=!0:s.size&&(i.size=s.size);break;default:i=typeof s.is=="string"?c.createElement(n,{is:s.is}):c.createElement(n)}}i[Jt]=t,i[ia]=s;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(da(i,n,s),n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&vl(t)}}return Mt(t),Xr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&vl(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(d(166));if(e=we.current,Vs(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,n=ca,n!==null)switch(n.tag){case 27:case 5:s=n.memoizedProps}e[Jt]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||ih(e.nodeValue,l)),e||Ul(t,!0)}else e=cc(e).createTextNode(s),e[Jt]=t,t.stateNode=e}return Mt(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Vs(t),l!==null){if(e===null){if(!s)throw Error(d(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(d(557));e[Jt]=t}else fs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),e=!1}else l=lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ma(t),t):(Ma(t),null);if((t.flags&128)!==0)throw Error(d(558))}return Mt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Vs(t),s!==null&&s.dehydrated!==null){if(e===null){if(!n)throw Error(d(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(d(317));n[Jt]=t}else fs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Mt(t),n=!1}else n=lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Ma(t),t):(Ma(t),null)}return Ma(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,n=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(n=s.alternate.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==n&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Qi(t,t.updateQueue),Mt(t),null);case 4:return ye(),e===null&&po(t.stateNode.containerInfo),Mt(t),null;case 10:return pl(t.type),Mt(t),null;case 19:if(E(Kt),s=t.memoizedState,s===null)return Mt(t),null;if(n=(t.flags&128)!==0,i=s.rendering,i===null)if(n)Gn(s,!1);else{if(qt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Oi(e),i!==null){for(t.flags|=128,Gn(s,!1),e=i.updateQueue,t.updateQueue=e,Qi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)$d(l,e),l=l.sibling;return U(Kt,Kt.current&1|2),nt&&ml(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&De()>Ii&&(t.flags|=128,n=!0,Gn(s,!1),t.lanes=4194304)}else{if(!n)if(e=Oi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Qi(t,e),Gn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!nt)return Mt(t),null}else 2*De()-s.renderingStartTime>Ii&&l!==536870912&&(t.flags|=128,n=!0,Gn(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(e=s.last,e!==null?e.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=De(),e.sibling=null,l=Kt.current,U(Kt,n?l&1|2:l&1),nt&&ml(t,s.treeForkCount),e):(Mt(t),null);case 22:case 23:return Ma(t),pr(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),l=t.updateQueue,l!==null&&Qi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&E(bs),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(Pt),Mt(t),null;case 25:return null;case 30:return null}throw Error(d(156,t.tag))}function Um(e,t){switch(tr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(Pt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qe(t),null;case 31:if(t.memoizedState!==null){if(Ma(t),t.alternate===null)throw Error(d(340));fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(d(340));fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return E(Kt),null;case 4:return ye(),null;case 10:return pl(t.type),null;case 22:case 23:return Ma(t),pr(),e!==null&&E(bs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(Pt),null;case 25:return null;default:return null}}function u0(e,t){switch(tr(t),t.tag){case 3:pl(Pt),ye();break;case 26:case 27:case 5:qe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Ma(t);break;case 13:Ma(t);break;case 19:E(Kt);break;case 10:pl(t.type);break;case 22:case 23:Ma(t),pr(),e!==null&&E(bs);break;case 24:pl(Pt)}}function Vn(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var n=s.next;l=n;do{if((l.tag&e)===e){s=void 0;var i=l.create,c=l.inst;s=i(),c.destroy=s}l=l.next}while(l!==n)}}catch(o){bt(t,t.return,o)}}function Yl(e,t,l){try{var s=t.updateQueue,n=s!==null?s.lastEffect:null;if(n!==null){var i=n.next;s=i;do{if((s.tag&e)===e){var c=s.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,n=t;var m=l,z=o;try{z()}catch(O){bt(n,m,O)}}}s=s.next}while(s!==i)}}catch(O){bt(t,t.return,O)}}function h0(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{au(t,l)}catch(s){bt(e,e.return,s)}}}function x0(e,t,l){l.props=ws(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){bt(e,t,s)}}function Yn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(n){bt(e,t,n)}}function il(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(n){bt(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){bt(e,t,n)}else l.current=null}function m0(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(n){bt(e,e.return,n)}}function Zr(e,t,l){try{var s=e.stateNode;nf(s,e.type,l,t),s[ia]=t}catch(n){bt(e,e.return,n)}}function f0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Il(e.type)||e.tag===4}function Jr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f0(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&&Il(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 Pr(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ul));else if(s!==4&&(s===27&&Il(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Pr(e,t,l),e=e.sibling;e!==null;)Pr(e,t,l),e=e.sibling}function Xi(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&Il(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Xi(e,t,l),e=e.sibling;e!==null;)Xi(e,t,l),e=e.sibling}function p0(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);da(t,s,l),t[Jt]=e,t[ia]=l}catch(i){bt(e,e.return,i)}}var jl=!1,Wt=!1,Ir=!1,g0=typeof WeakSet=="function"?WeakSet:Set,sa=null;function $m(e,t){if(e=e.containerInfo,yo=mc,e=_d(e),Yc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var n=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,o=-1,m=-1,z=0,O=0,R=e,_=null;t:for(;;){for(var M;R!==l||n!==0&&R.nodeType!==3||(o=c+n),R!==i||s!==0&&R.nodeType!==3||(m=c+s),R.nodeType===3&&(c+=R.nodeValue.length),(M=R.firstChild)!==null;)_=R,R=M;for(;;){if(R===e)break t;if(_===l&&++z===n&&(o=c),_===i&&++O===s&&(m=c),(M=R.nextSibling)!==null)break;R=_,_=R.parentNode}R=M}l=o===-1||m===-1?null:{start:o,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(vo={focusedElem:e,selectionRange:l},mc=!1,sa=t;sa!==null;)if(t=sa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,sa=e;else for(;sa!==null;){switch(t=sa,i=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(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,s=l.stateNode;try{var fe=ws(l.type,n);e=s.getSnapshotBeforeUpdate(fe,i),s.__reactInternalSnapshotBeforeUpdate=e}catch(ke){bt(l,l.return,ke)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)wo(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wo(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(d(163))}if(e=t.sibling,e!==null){e.return=t.return,sa=e;break}sa=t.return}}function b0(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:wl(e,l),s&4&&Vn(5,l);break;case 1:if(wl(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){bt(l,l.return,c)}else{var n=ws(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){bt(l,l.return,c)}}s&64&&h0(l),s&512&&Yn(l,l.return);break;case 3:if(wl(e,l),s&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{au(e,t)}catch(c){bt(l,l.return,c)}}break;case 27:t===null&&s&4&&p0(l);case 26:case 5:wl(e,l),t===null&&s&4&&m0(l),s&512&&Yn(l,l.return);break;case 12:wl(e,l);break;case 31:wl(e,l),s&4&&j0(e,l);break;case 13:wl(e,l),s&4&&N0(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Xm.bind(null,l),mf(e,l))));break;case 22:if(s=l.memoizedState!==null||jl,!s){t=t!==null&&t.memoizedState!==null||Wt,n=jl;var i=Wt;jl=s,(Wt=t)&&!i?Sl(e,l,(l.subtreeFlags&8772)!==0):wl(e,l),jl=n,Wt=i}break;case 30:break;default:wl(e,l)}}function y0(e){var t=e.alternate;t!==null&&(e.alternate=null,y0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&os(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 Ot=null,ba=!1;function Nl(e,t,l){for(l=l.child;l!==null;)v0(e,t,l),l=l.sibling}function v0(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(mt,l)}catch{}switch(l.tag){case 26:Wt||il(l,t),Nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Wt||il(l,t);var s=Ot,n=ba;Il(l.type)&&(Ot=l.stateNode,ba=!1),Nl(e,t,l),Wn(l.stateNode),Ot=s,ba=n;break;case 5:Wt||il(l,t);case 6:if(s=Ot,n=ba,Ot=null,Nl(e,t,l),Ot=s,ba=n,Ot!==null)if(ba)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(l.stateNode)}catch(i){bt(l,t,i)}else try{Ot.removeChild(l.stateNode)}catch(i){bt(l,t,i)}break;case 18:Ot!==null&&(ba?(e=Ot,hh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),un(e)):hh(Ot,l.stateNode));break;case 4:s=Ot,n=ba,Ot=l.stateNode.containerInfo,ba=!0,Nl(e,t,l),Ot=s,ba=n;break;case 0:case 11:case 14:case 15:Yl(2,l,t),Wt||Yl(4,l,t),Nl(e,t,l);break;case 1:Wt||(il(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&x0(l,t,s)),Nl(e,t,l);break;case 21:Nl(e,t,l);break;case 22:Wt=(s=Wt)||l.memoizedState!==null,Nl(e,t,l),Wt=s;break;default:Nl(e,t,l)}}function j0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{un(e)}catch(l){bt(t,t.return,l)}}}function N0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{un(e)}catch(l){bt(t,t.return,l)}}function Bm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new g0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new g0),t;default:throw Error(d(435,e.tag))}}function Zi(e,t){var l=Bm(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var n=Zm.bind(null,e,s);s.then(n,n)}})}function ya(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var n=l[s],i=e,c=t,o=c;e:for(;o!==null;){switch(o.tag){case 27:if(Il(o.type)){Ot=o.stateNode,ba=!1;break e}break;case 5:Ot=o.stateNode,ba=!1;break e;case 3:case 4:Ot=o.stateNode.containerInfo,ba=!0;break e}o=o.return}if(Ot===null)throw Error(d(160));v0(i,c,n),Ot=null,ba=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)w0(t,e),t=t.sibling}var Fa=null;function w0(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ya(t,e),va(e),s&4&&(Yl(3,e,e.return),Vn(3,e),Yl(5,e,e.return));break;case 1:ya(t,e),va(e),s&512&&(Wt||l===null||il(l,l.return)),s&64&&jl&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var n=Fa;if(ya(t,e),va(e),s&512&&(Wt||l===null||il(l,l.return)),s&4){var i=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(s){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Za]||i[Jt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(s),n.head.insertBefore(i,n.querySelector("head > title"))),da(i,s,l),i[Jt]=e,Yt(i),s=i;break e;case"link":var c=wh("link","href",n).get(s+(l.href||""));if(c){for(var o=0;o<c.length;o++)if(i=c[o],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(o,1);break t}}i=n.createElement(s),da(i,s,l),n.head.appendChild(i);break;case"meta":if(c=wh("meta","content",n).get(s+(l.content||""))){for(o=0;o<c.length;o++)if(i=c[o],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(o,1);break t}}i=n.createElement(s),da(i,s,l),n.head.appendChild(i);break;default:throw Error(d(468,s))}i[Jt]=e,Yt(i),s=i}e.stateNode=s}else Sh(n,e.type,e.stateNode);else e.stateNode=Nh(n,s,e.memoizedProps);else i!==s?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,s===null?Sh(n,e.type,e.stateNode):Nh(n,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Zr(e,e.memoizedProps,l.memoizedProps)}break;case 27:ya(t,e),va(e),s&512&&(Wt||l===null||il(l,l.return)),l!==null&&s&4&&Zr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ya(t,e),va(e),s&512&&(Wt||l===null||il(l,l.return)),e.flags&32){n=e.stateNode;try{w(n,"")}catch(fe){bt(e,e.return,fe)}}s&4&&e.stateNode!=null&&(n=e.memoizedProps,Zr(e,n,l!==null?l.memoizedProps:n)),s&1024&&(Ir=!0);break;case 6:if(ya(t,e),va(e),s&4){if(e.stateNode===null)throw Error(d(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(fe){bt(e,e.return,fe)}}break;case 3:if(dc=null,n=Fa,Fa=rc(t.containerInfo),ya(t,e),Fa=n,va(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{un(t.containerInfo)}catch(fe){bt(e,e.return,fe)}Ir&&(Ir=!1,S0(e));break;case 4:s=Fa,Fa=rc(e.stateNode.containerInfo),ya(t,e),va(e),Fa=s;break;case 12:ya(t,e),va(e);break;case 31:ya(t,e),va(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Zi(e,s)));break;case 13:ya(t,e),va(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Pi=De()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Zi(e,s)));break;case 22:n=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,z=jl,O=Wt;if(jl=z||n,Wt=O||m,ya(t,e),Wt=O,jl=z,va(e),s&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||m||jl||Wt||Ss(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(i=m.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{o=m.stateNode;var R=m.memoizedProps.style,_=R!=null&&R.hasOwnProperty("display")?R.display:null;o.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(fe){bt(m,m.return,fe)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(fe){bt(m,m.return,fe)}}}else if(t.tag===18){if(l===null){m=t;try{var M=m.stateNode;n?xh(M,!0):xh(m.stateNode,!1)}catch(fe){bt(m,m.return,fe)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Zi(e,l))));break;case 19:ya(t,e),va(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Zi(e,s)));break;case 30:break;case 21:break;default:ya(t,e),va(e)}}function va(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(f0(s)){l=s;break}s=s.return}if(l==null)throw Error(d(160));switch(l.tag){case 27:var n=l.stateNode,i=Jr(e);Xi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(w(c,""),l.flags&=-33);var o=Jr(e);Xi(e,o,c);break;case 3:case 4:var m=l.stateNode.containerInfo,z=Jr(e);Pr(e,z,m);break;default:throw Error(d(161))}}catch(O){bt(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function S0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;S0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)b0(e,t.alternate,t),t=t.sibling}function Ss(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Yl(4,t,t.return),Ss(t);break;case 1:il(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&x0(t,t.return,l),Ss(t);break;case 27:Wn(t.stateNode);case 26:case 5:il(t,t.return),Ss(t);break;case 22:t.memoizedState===null&&Ss(t);break;case 30:Ss(t);break;default:Ss(t)}e=e.sibling}}function Sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Sl(n,i,l),Vn(4,i);break;case 1:if(Sl(n,i,l),s=i,n=s.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){bt(s,s.return,z)}if(s=i,n=s.updateQueue,n!==null){var o=s.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)tu(m[n],o)}catch(z){bt(s,s.return,z)}}l&&c&64&&h0(i),Yn(i,i.return);break;case 27:p0(i);case 26:case 5:Sl(n,i,l),l&&s===null&&c&4&&m0(i),Yn(i,i.return);break;case 12:Sl(n,i,l);break;case 31:Sl(n,i,l),l&&c&4&&j0(n,i);break;case 13:Sl(n,i,l),l&&c&4&&N0(n,i);break;case 22:i.memoizedState===null&&Sl(n,i,l),Yn(i,i.return);break;case 30:break;default:Sl(n,i,l)}t=t.sibling}}function Fr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Mn(l))}function Wr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e))}function Wa(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)k0(e,t,l,s),t=t.sibling}function k0(e,t,l,s){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Wa(e,t,l,s),n&2048&&Vn(9,t);break;case 1:Wa(e,t,l,s);break;case 3:Wa(e,t,l,s),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mn(e)));break;case 12:if(n&2048){Wa(e,t,l,s),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,o=i.onPostCommit;typeof o=="function"&&o(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){bt(t,t.return,m)}}else Wa(e,t,l,s);break;case 31:Wa(e,t,l,s);break;case 13:Wa(e,t,l,s);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Wa(e,t,l,s):Kn(e,t):i._visibility&2?Wa(e,t,l,s):(i._visibility|=2,Ws(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Fr(c,t);break;case 24:Wa(e,t,l,s),n&2048&&Wr(t.alternate,t);break;default:Wa(e,t,l,s)}}function Ws(e,t,l,s,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,o=l,m=s,z=c.flags;switch(c.tag){case 0:case 11:case 15:Ws(i,c,o,m,n),Vn(8,c);break;case 23:break;case 22:var O=c.stateNode;c.memoizedState!==null?O._visibility&2?Ws(i,c,o,m,n):Kn(i,c):(O._visibility|=2,Ws(i,c,o,m,n)),n&&z&2048&&Fr(c.alternate,c);break;case 24:Ws(i,c,o,m,n),n&&z&2048&&Wr(c.alternate,c);break;default:Ws(i,c,o,m,n)}t=t.sibling}}function Kn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,n=s.flags;switch(s.tag){case 22:Kn(l,s),n&2048&&Fr(s.alternate,s);break;case 24:Kn(l,s),n&2048&&Wr(s.alternate,s);break;default:Kn(l,s)}t=t.sibling}}var Qn=8192;function en(e,t,l){if(e.subtreeFlags&Qn)for(e=e.child;e!==null;)T0(e,t,l),e=e.sibling}function T0(e,t,l){switch(e.tag){case 26:en(e,t,l),e.flags&Qn&&e.memoizedState!==null&&Tf(l,Fa,e.memoizedState,e.memoizedProps);break;case 5:en(e,t,l);break;case 3:case 4:var s=Fa;Fa=rc(e.stateNode.containerInfo),en(e,t,l),Fa=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Qn,Qn=16777216,en(e,t,l),Qn=s):en(e,t,l));break;default:en(e,t,l)}}function C0(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 Xn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];sa=s,_0(s,e)}C0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)z0(e),e=e.sibling}function z0(e){switch(e.tag){case 0:case 11:case 15:Xn(e),e.flags&2048&&Yl(9,e,e.return);break;case 3:Xn(e);break;case 12:Xn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ji(e)):Xn(e);break;default:Xn(e)}}function Ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];sa=s,_0(s,e)}C0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Yl(8,t,t.return),Ji(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ji(t));break;default:Ji(t)}e=e.sibling}}function _0(e,t){for(;sa!==null;){var l=sa;switch(l.tag){case 0:case 11:case 15:Yl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Mn(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,sa=s;else e:for(l=e;sa!==null;){s=sa;var n=s.sibling,i=s.return;if(y0(s),s===l){sa=null;break e}if(n!==null){n.return=i,sa=n;break e}sa=i}}}var qm={getCacheForType:function(e){var t=ra(Pt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ra(Pt).controller.signal}},Rm=typeof WeakMap=="function"?WeakMap:Map,xt=0,Tt=null,We=null,lt=0,gt=0,Aa=null,Kl=!1,tn=!1,eo=!1,kl=0,qt=0,Ql=0,ks=0,to=0,Ea=0,an=0,Zn=null,ja=null,ao=!1,Pi=0,M0=0,Ii=1/0,Fi=null,Xl=null,ta=0,Zl=null,ln=null,Tl=0,lo=0,so=null,A0=null,Jn=0,no=null;function Oa(){return(xt&2)!==0&<!==0?lt&-lt:v.T!==null?ho():Dt()}function E0(){if(Ea===0)if((lt&536870912)===0||nt){var e=q;q<<=1,(q&3932160)===0&&(q=262144),Ea=e}else Ea=536870912;return e=_a.current,e!==null&&(e.flags|=32),Ea}function Na(e,t,l){(e===Tt&&(gt===2||gt===9)||e.cancelPendingCommit!==null)&&(sn(e,0),Jl(e,lt,Ea,!1)),Ae(e,l),((xt&2)===0||e!==Tt)&&(e===Tt&&((xt&2)===0&&(ks|=l),qt===4&&Jl(e,lt,Ea,!1)),cl(e))}function O0(e,t,l){if((xt&6)!==0)throw Error(d(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Zt(e,t),n=s?Ym(e,t):co(e,t,!0),i=s;do{if(n===0){tn&&!s&&Jl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Gm(l)){n=co(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var o=e;n=Zn;var m=o.current.memoizedState.isDehydrated;if(m&&(sn(o,c).flags|=256),c=co(o,c,!1),c!==2){if(eo&&!m){o.errorRecoveryDisabledLanes|=i,ks|=i,n=4;break e}i=ja,ja=n,i!==null&&(ja===null?ja=i:ja.push.apply(ja,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){sn(e,0),Jl(e,t,0,!0);break}e:{switch(s=e,i=n,i){case 0:case 1:throw Error(d(345));case 4:if((t&4194048)!==t)break;case 6:Jl(s,t,Ea,!Kl);break e;case 2:ja=null;break;case 3:case 5:break;default:throw Error(d(329))}if((t&62914560)===t&&(n=Pi+300-De(),10<n)){if(Jl(s,t,Ea,!Kl),Ce(s,0,!0)!==0)break e;Tl=t,s.timeoutHandle=dh(D0.bind(null,s,l,ja,Fi,ao,t,Ea,ks,an,Kl,i,"Throttled",-0,0),n);break e}D0(s,l,ja,Fi,ao,t,Ea,ks,an,Kl,i,null,-0,0)}}break}while(!0);cl(e)}function D0(e,t,l,s,n,i,c,o,m,z,O,R,_,M){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ul},T0(t,i,R);var fe=(i&62914560)===i?Pi-De():(i&4194048)===i?M0-De():0;if(fe=Cf(R,fe),fe!==null){Tl=i,e.cancelPendingCommit=fe(G0.bind(null,e,t,i,l,s,n,c,o,m,O,R,null,_,M)),Jl(e,i,c,!z);return}}G0(e,t,i,l,s,n,c,o,m)}function Gm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var n=l[s],i=n.getSnapshot;n=n.value;try{if(!Ca(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Jl(e,t,l,s){t&=~to,t&=~ks,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var n=t;0<n;){var i=31-Et(n),c=1<<i;s[i]=-1,n&=~c}l!==0&&Ut(e,l,t)}function Wi(){return(xt&6)===0?(Pn(0),!1):!0}function io(){if(We!==null){if(gt===0)var e=We.return;else e=We,fl=ps=null,Nr(e),Zs=null,En=0,e=We;for(;e!==null;)u0(e.alternate,e),e=e.return;We=null}}function sn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,of(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Tl=0,io(),Tt=e,We=l=xl(e.current,null),lt=t,gt=0,Aa=null,Kl=!1,tn=Zt(e,t),eo=!1,an=Ea=to=ks=Ql=qt=0,ja=Zn=null,ao=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var n=31-Et(s),i=1<<n;t|=e[n],s&=~i}return kl=t,vi(),l}function H0(e,t){Ue=null,v.H=qn,t===Xs||t===zi?(t=Id(),gt=3):t===dr?(t=Id(),gt=4):gt=t===$r?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Aa=t,We===null&&(qt=1,Gi(e,$a(t,e.current)))}function L0(){var e=_a.current;return e===null?!0:(lt&4194048)===lt?Ga===null:(lt&62914560)===lt||(lt&536870912)!==0?e===Ga:!1}function U0(){var e=v.H;return v.H=qn,e===null?qn:e}function $0(){var e=v.A;return v.A=qm,e}function ec(){qt=4,Kl||(lt&4194048)!==lt&&_a.current!==null||(tn=!0),(Ql&134217727)===0&&(ks&134217727)===0||Tt===null||Jl(Tt,lt,Ea,!1)}function co(e,t,l){var s=xt;xt|=2;var n=U0(),i=$0();(Tt!==e||lt!==t)&&(Fi=null,sn(e,t)),t=!1;var c=qt;e:do try{if(gt!==0&&We!==null){var o=We,m=Aa;switch(gt){case 8:io(),c=6;break e;case 3:case 2:case 9:case 6:_a.current===null&&(t=!0);var z=gt;if(gt=0,Aa=null,nn(e,o,m,z),l&&tn){c=0;break e}break;default:z=gt,gt=0,Aa=null,nn(e,o,m,z)}}Vm(),c=qt;break}catch(O){H0(e,O)}while(!0);return t&&e.shellSuspendCounter++,fl=ps=null,xt=s,v.H=n,v.A=i,We===null&&(Tt=null,lt=0,vi()),c}function Vm(){for(;We!==null;)B0(We)}function Ym(e,t){var l=xt;xt|=2;var s=U0(),n=$0();Tt!==e||lt!==t?(Fi=null,Ii=De()+500,sn(e,t)):tn=Zt(e,t);e:do try{if(gt!==0&&We!==null){t=We;var i=Aa;t:switch(gt){case 1:gt=0,Aa=null,nn(e,t,i,1);break;case 2:case 9:if(Jd(i)){gt=0,Aa=null,q0(t);break}t=function(){gt!==2&>!==9||Tt!==e||(gt=7),cl(e)},i.then(t,t);break e;case 3:gt=7;break e;case 4:gt=5;break e;case 7:Jd(i)?(gt=0,Aa=null,q0(t)):(gt=0,Aa=null,nn(e,t,i,7));break;case 5:var c=null;switch(We.tag){case 26:c=We.memoizedState;case 5:case 27:var o=We;if(c?kh(c):o.stateNode.complete){gt=0,Aa=null;var m=o.sibling;if(m!==null)We=m;else{var z=o.return;z!==null?(We=z,tc(z)):We=null}break t}}gt=0,Aa=null,nn(e,t,i,5);break;case 6:gt=0,Aa=null,nn(e,t,i,6);break;case 8:io(),qt=6;break e;default:throw Error(d(462))}}Km();break}catch(O){H0(e,O)}while(!0);return fl=ps=null,v.H=s,v.A=n,xt=l,We!==null?0:(Tt=null,lt=0,vi(),qt)}function Km(){for(;We!==null&&!W();)B0(We)}function B0(e){var t=o0(e.alternate,e,kl);e.memoizedProps=e.pendingProps,t===null?tc(e):We=t}function q0(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=l0(l,t,t.pendingProps,t.type,void 0,lt);break;case 11:t=l0(l,t,t.pendingProps,t.type.render,t.ref,lt);break;case 5:Nr(t);default:u0(l,t),t=We=$d(t,kl),t=o0(l,t,kl)}e.memoizedProps=e.pendingProps,t===null?tc(e):We=t}function nn(e,t,l,s){fl=ps=null,Nr(t),Zs=null,En=0;var n=t.return;try{if(Om(e,n,t,l,lt)){qt=1,Gi(e,$a(l,e.current)),We=null;return}}catch(i){if(n!==null)throw We=n,i;qt=1,Gi(e,$a(l,e.current)),We=null;return}t.flags&32768?(nt||s===1?e=!0:tn||(lt&536870912)!==0?e=!1:(Kl=e=!0,(s===2||s===9||s===3||s===6)&&(s=_a.current,s!==null&&s.tag===13&&(s.flags|=16384))),R0(t,e)):tc(t)}function tc(e){var t=e;do{if((t.flags&32768)!==0){R0(t,Kl);return}e=t.return;var l=Lm(t.alternate,t,kl);if(l!==null){We=l;return}if(t=t.sibling,t!==null){We=t;return}We=t=e}while(t!==null);qt===0&&(qt=5)}function R0(e,t){do{var l=Um(e.alternate,e);if(l!==null){l.flags&=32767,We=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){We=e;return}We=e=l}while(e!==null);qt=6,We=null}function G0(e,t,l,s,n,i,c,o,m){e.cancelPendingCommit=null;do ac();while(ta!==0);if((xt&6)!==0)throw Error(d(327));if(t!==null){if(t===e.current)throw Error(d(177));if(i=t.lanes|t.childLanes,i|=Jc,dt(e,l,i,c,o,m),e===Tt&&(We=Tt=null,lt=0),ln=t,Zl=e,Tl=l,lo=i,so=n,A0=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jm(yt,function(){return X0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=v.T,v.T=null,n=G.p,G.p=2,c=xt,xt|=4;try{$m(e,t,l)}finally{xt=c,G.p=n,v.T=s}}ta=1,V0(),Y0(),K0()}}function V0(){if(ta===1){ta=0;var e=Zl,t=ln,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=v.T,v.T=null;var s=G.p;G.p=2;var n=xt;xt|=4;try{w0(t,e);var i=vo,c=_d(e.containerInfo),o=i.focusedElem,m=i.selectionRange;if(c!==o&&o&&o.ownerDocument&&zd(o.ownerDocument.documentElement,o)){if(m!==null&&Yc(o)){var z=m.start,O=m.end;if(O===void 0&&(O=z),"selectionStart"in o)o.selectionStart=z,o.selectionEnd=Math.min(O,o.value.length);else{var R=o.ownerDocument||document,_=R&&R.defaultView||window;if(_.getSelection){var M=_.getSelection(),fe=o.textContent.length,ke=Math.min(m.start,fe),wt=m.end===void 0?ke:Math.min(m.end,fe);!M.extend&&ke>wt&&(c=wt,wt=ke,ke=c);var y=Cd(o,ke),p=Cd(o,wt);if(y&&p&&(M.rangeCount!==1||M.anchorNode!==y.node||M.anchorOffset!==y.offset||M.focusNode!==p.node||M.focusOffset!==p.offset)){var C=R.createRange();C.setStart(y.node,y.offset),M.removeAllRanges(),ke>wt?(M.addRange(C),M.extend(p.node,p.offset)):(C.setEnd(p.node,p.offset),M.addRange(C))}}}}for(R=[],M=o;M=M.parentNode;)M.nodeType===1&&R.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<R.length;o++){var L=R[o];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}mc=!!yo,vo=yo=null}finally{xt=n,G.p=s,v.T=l}}e.current=t,ta=2}}function Y0(){if(ta===2){ta=0;var e=Zl,t=ln,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=v.T,v.T=null;var s=G.p;G.p=2;var n=xt;xt|=4;try{b0(e,t.alternate,t)}finally{xt=n,G.p=s,v.T=l}}ta=3}}function K0(){if(ta===4||ta===3){ta=0,Re();var e=Zl,t=ln,l=Tl,s=A0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ta=5:(ta=0,ln=Zl=null,Q0(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Xl=null),se(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(mt,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=v.T,n=G.p,G.p=2,v.T=null;try{for(var i=e.onRecoverableError,c=0;c<s.length;c++){var o=s[c];i(o.value,{componentStack:o.stack})}}finally{v.T=t,G.p=n}}(Tl&3)!==0&&ac(),cl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===no?Jn++:(Jn=0,no=e):Jn=0,Pn(0)}}function Q0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mn(t)))}function ac(){return V0(),Y0(),K0(),X0()}function X0(){if(ta!==5)return!1;var e=Zl,t=lo;lo=0;var l=se(Tl),s=v.T,n=G.p;try{G.p=32>l?32:l,v.T=null,l=so,so=null;var i=Zl,c=Tl;if(ta=0,ln=Zl=null,Tl=0,(xt&6)!==0)throw Error(d(331));var o=xt;if(xt|=4,z0(i.current),k0(i,i.current,c,l),xt=o,Pn(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(mt,i)}catch{}return!0}finally{G.p=n,v.T=s,Q0(e,t)}}function Z0(e,t,l){t=$a(l,t),t=Ur(e.stateNode,t,2),e=Rl(e,t,2),e!==null&&(Ae(e,2),cl(e))}function bt(e,t,l){if(e.tag===3)Z0(e,e,l);else for(;t!==null;){if(t.tag===3){Z0(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Xl===null||!Xl.has(s))){e=$a(l,e),l=Ju(2),s=Rl(t,l,2),s!==null&&(Pu(l,s,t,e),Ae(s,2),cl(s));break}}t=t.return}}function ro(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new Rm;var n=new Set;s.set(t,n)}else n=s.get(t),n===void 0&&(n=new Set,s.set(t,n));n.has(l)||(eo=!0,n.add(l),e=Qm.bind(null,e,t,l),t.then(e,e))}function Qm(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Tt===e&&(lt&l)===l&&(qt===4||qt===3&&(lt&62914560)===lt&&300>De()-Pi?(xt&2)===0&&sn(e,0):to|=l,an===lt&&(an=0)),cl(e)}function J0(e,t){t===0&&(t=_e()),e=xs(e,t),e!==null&&(Ae(e,t),cl(e))}function Xm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),J0(e,l)}function Zm(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(d(314))}s!==null&&s.delete(t),J0(e,l)}function Jm(e,t){return K(e,t)}var lc=null,cn=null,oo=!1,sc=!1,uo=!1,Pl=0;function cl(e){e!==cn&&e.next===null&&(cn===null?lc=cn=e:cn=cn.next=e),sc=!0,oo||(oo=!0,Im())}function Pn(e,t){if(!uo&&sc){uo=!0;do for(var l=!1,s=lc;s!==null;){if(e!==0){var n=s.pendingLanes;if(n===0)var i=0;else{var c=s.suspendedLanes,o=s.pingedLanes;i=(1<<31-Et(42|e)+1)-1,i&=n&~(c&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,W0(s,i))}else i=lt,i=Ce(s,s===Tt?i:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(i&3)===0||Zt(s,i)||(l=!0,W0(s,i));s=s.next}while(l);uo=!1}}function Pm(){P0()}function P0(){sc=oo=!1;var e=0;Pl!==0&&rf()&&(e=Pl);for(var t=De(),l=null,s=lc;s!==null;){var n=s.next,i=I0(s,t);i===0?(s.next=null,l===null?lc=n:l.next=n,n===null&&(cn=l)):(l=s,(e!==0||(i&3)!==0)&&(sc=!0)),s=n}ta!==0&&ta!==5||Pn(e),Pl!==0&&(Pl=0)}function I0(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-Et(i),o=1<<c,m=n[c];m===-1?((o&l)===0||(o&s)!==0)&&(n[c]=pt(o,t)):m<=t&&(e.expiredLanes|=o),i&=~o}if(t=Tt,l=lt,l=Ce(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(gt===2||gt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&F(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Zt(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&F(s),se(l)){case 2:case 8:l=Vt;break;case 32:l=yt;break;case 268435456:l=le;break;default:l=yt}return s=F0.bind(null,e),l=K(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&F(s),e.callbackPriority=2,e.callbackNode=null,2}function F0(e,t){if(ta!==0&&ta!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ac()&&e.callbackNode!==l)return null;var s=lt;return s=Ce(e,e===Tt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(O0(e,s,t),I0(e,De()),e.callbackNode!=null&&e.callbackNode===l?F0.bind(null,e):null)}function W0(e,t){if(ac())return null;O0(e,t,!0)}function Im(){df(function(){(xt&6)!==0?K(kt,Pm):P0()})}function ho(){if(Pl===0){var e=Ks;e===0&&(e=b,b<<=1,(b&261888)===0&&(b=256)),Pl=e}return Pl}function eh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hi(""+e)}function th(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Fm(e,t,l,s,n){if(t==="submit"&&l&&l.stateNode===n){var i=eh((n[ia]||null).action),c=s.submitter;c&&(t=(t=c[ia]||null)?eh(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var o=new pi("action","action",null,s,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Pl!==0){var m=c?th(n,c):new FormData(n);Ar(l,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(o.preventDefault(),m=c?th(n,c):new FormData(n),Ar(l,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var xo=0;xo<Zc.length;xo++){var mo=Zc[xo],Wm=mo.toLowerCase(),ef=mo[0].toUpperCase()+mo.slice(1);Ia(Wm,"on"+ef)}Ia(Ed,"onAnimationEnd"),Ia(Od,"onAnimationIteration"),Ia(Dd,"onAnimationStart"),Ia("dblclick","onDoubleClick"),Ia("focusin","onFocus"),Ia("focusout","onBlur"),Ia(pm,"onTransitionRun"),Ia(gm,"onTransitionStart"),Ia(bm,"onTransitionCancel"),Ia(Hd,"onTransitionEnd"),Ol("onMouseEnter",["mouseout","mouseover"]),Ol("onMouseLeave",["mouseout","mouseover"]),Ol("onPointerEnter",["pointerout","pointerover"]),Ol("onPointerLeave",["pointerout","pointerover"]),al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),al("onBeforeInput",["compositionend","keypress","textInput","paste"]),al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),tf=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function ah(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],n=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var c=s.length-1;0<=c;c--){var o=s[c],m=o.instance,z=o.currentTarget;if(o=o.listener,m!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=z;try{i(n)}catch(O){yi(O)}n.currentTarget=null,i=m}else for(c=0;c<s.length;c++){if(o=s[c],m=o.instance,z=o.currentTarget,o=o.listener,m!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=z;try{i(n)}catch(O){yi(O)}n.currentTarget=null,i=m}}}}function et(e,t){var l=t[Es];l===void 0&&(l=t[Es]=new Set);var s=e+"__bubble";l.has(s)||(lh(t,e,2,!1),l.add(s))}function fo(e,t,l){var s=0;t&&(s|=4),lh(l,e,s,t)}var nc="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[nc]){e[nc]=!0,gn.forEach(function(l){l!=="selectionchange"&&(tf.has(l)||fo(l,!1,e),fo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nc]||(t[nc]=!0,fo("selectionchange",!1,t))}}function lh(e,t,l,s){switch(Eh(t)){case 2:var n=Mf;break;case 8:n=Af;break;default:n=Ao}l=n.bind(null,t,l,e),n=void 0,!Hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),s?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function go(e,t,l,s,n){var i=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var c=s.tag;if(c===3||c===4){var o=s.stateNode.containerInfo;if(o===n)break;if(c===4)for(c=s.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;o!==null;){if(c=Ja(o),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){s=i=c;continue e}o=o.parentNode}}s=s.return}rd(function(){var z=i,O=Oc(l),R=[];e:{var _=Ld.get(e);if(_!==void 0){var M=pi,fe=e;switch(e){case"keypress":if(mi(l)===0)break e;case"keydown":case"keyup":M=Zx;break;case"focusin":fe="focus",M=Bc;break;case"focusout":fe="blur",M=Bc;break;case"beforeblur":case"afterblur":M=Bc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Lx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Ix;break;case Ed:case Od:case Dd:M=Bx;break;case Hd:M=Wx;break;case"scroll":case"scrollend":M=Dx;break;case"wheel":M=tm;break;case"copy":case"cut":case"paste":M=Rx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=xd;break;case"toggle":case"beforetoggle":M=lm}var ke=(t&4)!==0,wt=!ke&&(e==="scroll"||e==="scrollend"),y=ke?_!==null?_+"Capture":null:_;ke=[];for(var p=z,C;p!==null;){var L=p;if(C=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||C===null||y===null||(L=yn(p,y),L!=null&&ke.push(Fn(p,L,C))),wt)break;p=p.return}0<ke.length&&(_=new M(_,fe,null,l,O),R.push({event:_,listeners:ke}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",_&&l!==Ec&&(fe=l.relatedTarget||l.fromElement)&&(Ja(fe)||fe[ol]))break e;if((M||_)&&(_=O.window===O?O:(_=O.ownerDocument)?_.defaultView||_.parentWindow:window,M?(fe=l.relatedTarget||l.toElement,M=z,fe=fe?Ja(fe):null,fe!==null&&(wt=S(fe),ke=fe.tag,fe!==wt||ke!==5&&ke!==27&&ke!==6)&&(fe=null)):(M=null,fe=z),M!==fe)){if(ke=ud,L="onMouseLeave",y="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(ke=xd,L="onPointerLeave",y="onPointerEnter",p="pointer"),wt=M==null?_:Al(M),C=fe==null?_:Al(fe),_=new ke(L,p+"leave",M,l,O),_.target=wt,_.relatedTarget=C,L=null,Ja(O)===z&&(ke=new ke(y,p+"enter",fe,l,O),ke.target=C,ke.relatedTarget=wt,L=ke),wt=L,M&&fe)t:{for(ke=af,y=M,p=fe,C=0,L=y;L;L=ke(L))C++;L=0;for(var Ne=p;Ne;Ne=ke(Ne))L++;for(;0<C-L;)y=ke(y),C--;for(;0<L-C;)p=ke(p),L--;for(;C--;){if(y===p||p!==null&&y===p.alternate){ke=y;break t}y=ke(y),p=ke(p)}ke=null}else ke=null;M!==null&&sh(R,_,M,ke,!1),fe!==null&&wt!==null&&sh(R,wt,fe,ke,!0)}}e:{if(_=z?Al(z):window,M=_.nodeName&&_.nodeName.toLowerCase(),M==="select"||M==="input"&&_.type==="file")var ut=jd;else if(yd(_))if(Nd)ut=xm;else{ut=um;var ge=dm}else M=_.nodeName,!M||M.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?z&&Ac(z.elementType)&&(ut=jd):ut=hm;if(ut&&(ut=ut(e,z))){vd(R,ut,l,O);break e}ge&&ge(e,_,z),e==="focusout"&&z&&_.type==="number"&&z.memoizedProps.value!=null&&Ta(_,"number",_.value)}switch(ge=z?Al(z):window,e){case"focusin":(yd(ge)||ge.contentEditable==="true")&&(Us=ge,Kc=z,Cn=null);break;case"focusout":Cn=Kc=Us=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,Md(R,l,O);break;case"selectionchange":if(fm)break;case"keydown":case"keyup":Md(R,l,O)}var Ge;if(Rc)e:{switch(e){case"compositionstart":var st="onCompositionStart";break e;case"compositionend":st="onCompositionEnd";break e;case"compositionupdate":st="onCompositionUpdate";break e}st=void 0}else Ls?gd(e,l)&&(st="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(st="onCompositionStart");st&&(md&&l.locale!=="ko"&&(Ls||st!=="onCompositionStart"?st==="onCompositionEnd"&&Ls&&(Ge=od()):(Dl=O,Lc="value"in Dl?Dl.value:Dl.textContent,Ls=!0)),ge=ic(z,st),0<ge.length&&(st=new hd(st,e,null,l,O),R.push({event:st,listeners:ge}),Ge?st.data=Ge:(Ge=bd(l),Ge!==null&&(st.data=Ge)))),(Ge=nm?im(e,l):cm(e,l))&&(st=ic(z,"onBeforeInput"),0<st.length&&(ge=new hd("onBeforeInput","beforeinput",null,l,O),R.push({event:ge,listeners:st}),ge.data=Ge)),Fm(R,e,z,l,O)}ah(R,t)})}function Fn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ic(e,t){for(var l=t+"Capture",s=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=yn(e,l),n!=null&&s.unshift(Fn(e,n,i)),n=yn(e,t),n!=null&&s.push(Fn(e,n,i))),e.tag===3)return s;e=e.return}return[]}function af(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sh(e,t,l,s,n){for(var i=t._reactName,c=[];l!==null&&l!==s;){var o=l,m=o.alternate,z=o.stateNode;if(o=o.tag,m!==null&&m===s)break;o!==5&&o!==26&&o!==27||z===null||(m=z,n?(z=yn(l,i),z!=null&&c.unshift(Fn(l,z,m))):n||(z=yn(l,i),z!=null&&c.push(Fn(l,z,m)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var lf=/\r\n?/g,sf=/\u0000|\uFFFD/g;function nh(e){return(typeof e=="string"?e:""+e).replace(lf,` 9`).replace(sf,"")}function ih(e,t){return t=nh(t),nh(e)===t}function Nt(e,t,l,s,n,i){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||w(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&w(e,""+s);break;case"className":be(e,"class",s);break;case"tabIndex":be(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":be(e,l,s);break;case"style":id(e,s,i);break;case"data":if(t!=="object"){be(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=hi(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Nt(e,t,"name",n.name,n,null),Nt(e,t,"formEncType",n.formEncType,n,null),Nt(e,t,"formMethod",n.formMethod,n,null),Nt(e,t,"formTarget",n.formTarget,n,null)):(Nt(e,t,"encType",n.encType,n,null),Nt(e,t,"method",n.method,n,null),Nt(e,t,"target",n.target,n,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=hi(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ul);break;case"onScroll":s!=null&&et("scroll",e);break;case"onScrollEnd":s!=null&&et("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(d(61));if(l=s.__html,l!=null){if(n.children!=null)throw Error(d(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=hi(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);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"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":et("beforetoggle",e),et("toggle",e),$(e,"popover",s);break;case"xlinkActuate":ie(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ie(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ie(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ie(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ie(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ie(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ie(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ie(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ie(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":$(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ex.get(l)||l,$(e,l,s))}}function bo(e,t,l,s,n,i){switch(l){case"style":id(e,s,i);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(d(61));if(l=s.__html,l!=null){if(n.children!=null)throw Error(d(60));e.innerHTML=l}}break;case"children":typeof s=="string"?w(e,s):(typeof s=="number"||typeof s=="bigint")&&w(e,""+s);break;case"onScroll":s!=null&&et("scroll",e);break;case"onScrollEnd":s!=null&&et("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!bn.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[ia]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof s=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,n);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):$(e,l,s)}}}function da(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",e),et("load",e);var s=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":s=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(d(137,t));default:Nt(e,t,i,c,l,null)}}n&&Nt(e,t,"srcSet",l.srcSet,l,null),s&&Nt(e,t,"src",l.src,l,null);return;case"input":et("invalid",e);var o=i=c=n=null,m=null,z=null;for(s in l)if(l.hasOwnProperty(s)){var O=l[s];if(O!=null)switch(s){case"name":n=O;break;case"type":c=O;break;case"checked":m=O;break;case"defaultChecked":z=O;break;case"value":i=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(d(137,t));break;default:Nt(e,t,s,O,l,null)}}La(e,i,o,m,z,c,n,!1);return;case"select":et("invalid",e),s=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":i=o;break;case"defaultValue":c=o;break;case"multiple":s=o;default:Nt(e,t,n,o,l,null)}t=i,l=c,e.multiple=!!s,t!=null?ma(e,!!s,t,!1):l!=null&&ma(e,!!s,l,!0);return;case"textarea":et("invalid",e),i=n=s=null;for(c in l)if(l.hasOwnProperty(c)&&(o=l[c],o!=null))switch(c){case"value":s=o;break;case"defaultValue":n=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(d(91));break;default:Nt(e,t,c,o,l,null)}$t(e,s,n,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(s=l[m],s!=null))switch(m){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Nt(e,t,m,s,l,null)}return;case"dialog":et("beforetoggle",e),et("toggle",e),et("cancel",e),et("close",e);break;case"iframe":case"object":et("load",e);break;case"video":case"audio":for(s=0;s<In.length;s++)et(In[s],e);break;case"image":et("error",e),et("load",e);break;case"details":et("toggle",e);break;case"embed":case"source":case"link":et("error",e),et("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(z in l)if(l.hasOwnProperty(z)&&(s=l[z],s!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(d(137,t));default:Nt(e,t,z,s,l,null)}return;default:if(Ac(t)){for(O in l)l.hasOwnProperty(O)&&(s=l[O],s!==void 0&&bo(e,t,O,s,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(s=l[o],s!=null&&Nt(e,t,o,s,l,null))}
vendor: 28,086 bytes, line 9
9function nf(e,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,o=null,m=null,z=null,O=null;for(M in l){var R=l[M];if(l.hasOwnProperty(M)&&R!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":m=R;default:s.hasOwnProperty(M)||Nt(e,t,M,null,s,R)}}for(var _ in s){var M=s[_];if(R=l[_],s.hasOwnProperty(_)&&(M!=null||R!=null))switch(_){case"type":i=M;break;case"name":n=M;break;case"checked":z=M;break;case"defaultChecked":O=M;break;case"value":c=M;break;case"defaultValue":o=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(d(137,t));break;default:M!==R&&Nt(e,t,_,M,s,R)}}ll(e,c,o,m,z,O,i,n);return;case"select":M=c=o=_=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":M=m;default:s.hasOwnProperty(i)||Nt(e,t,i,null,s,m)}for(n in s)if(i=s[n],m=l[n],s.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":_=i;break;case"defaultValue":o=i;break;case"multiple":c=i;default:i!==m&&Nt(e,t,n,i,s,m)}t=o,l=c,s=M,_!=null?ma(e,!!l,_,!1):!!s!=!!l&&(t!=null?ma(e,!!l,t,!0):ma(e,!!l,l?[]:"",!1));return;case"textarea":M=_=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!s.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Nt(e,t,o,null,s,n)}for(c in s)if(n=s[c],i=l[c],s.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":_=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(d(91));break;default:n!==i&&Nt(e,t,c,n,s,i)}Pa(e,_,M);return;case"option":for(var fe in l)if(_=l[fe],l.hasOwnProperty(fe)&&_!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Nt(e,t,fe,null,s,_)}for(m in s)if(_=s[m],M=l[m],s.hasOwnProperty(m)&&_!==M&&(_!=null||M!=null))switch(m){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Nt(e,t,m,_,s,M)}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 ke in l)_=l[ke],l.hasOwnProperty(ke)&&_!=null&&!s.hasOwnProperty(ke)&&Nt(e,t,ke,null,s,_);for(z in s)if(_=s[z],M=l[z],s.hasOwnProperty(z)&&_!==M&&(_!=null||M!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(d(137,t));break;default:Nt(e,t,z,_,s,M)}return;default:if(Ac(t)){for(var wt in l)_=l[wt],l.hasOwnProperty(wt)&&_!==void 0&&!s.hasOwnProperty(wt)&&bo(e,t,wt,void 0,s,_);for(O in s)_=s[O],M=l[O],!s.hasOwnProperty(O)||_===M||_===void 0&&M===void 0||bo(e,t,O,_,s,M);return}}for(var y in l)_=l[y],l.hasOwnProperty(y)&&_!=null&&!s.hasOwnProperty(y)&&Nt(e,t,y,null,s,_);for(R in s)_=s[R],M=l[R],!s.hasOwnProperty(R)||_===M||_==null&&M==null||Nt(e,t,R,_,s,M)}function ch(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cf(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var n=l[s],i=n.transferSize,c=n.initiatorType,o=n.duration;if(i&&o&&ch(c)){for(c=0,o=n.responseEnd,s+=1;s<l.length;s++){var m=l[s],z=m.startTime;if(z>o)break;var O=m.transferSize,R=m.initiatorType;O&&ch(R)&&(m=m.responseEnd,c+=O*(m<o?1:(o-z)/(m-z)))}if(--s,t+=8*(i+c)/(n.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 yo=null,vo=null;function cc(e){return e.nodeType===9?e:e.ownerDocument}function rh(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 oh(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 jo(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 No=null;function rf(){var e=window.event;return e&&e.type==="popstate"?e===No?!1:(No=e,!0):(No=null,!1)}var dh=typeof setTimeout=="function"?setTimeout:void 0,of=typeof clearTimeout=="function"?clearTimeout:void 0,uh=typeof Promise=="function"?Promise:void 0,df=typeof queueMicrotask=="function"?queueMicrotask:typeof uh<"u"?function(e){return uh.resolve(null).then(e).catch(uf)}:dh;function uf(e){setTimeout(function(){throw e})}function Il(e){return e==="head"}function hh(e,t){var l=t,s=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(n),un(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Wn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Wn(l);for(var i=l.firstChild;i;){var c=i.nextSibling,o=i.nodeName;i[Za]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Wn(e.ownerDocument.body);l=n}while(l);un(t)}function xh(e,t){var l=e;e=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function wo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":wo(l),os(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function hf(e,t,l,s){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Za])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Va(e.nextSibling),e===null)break}return null}function xf(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Va(e.nextSibling),e===null))return null;return e}function mh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Va(e.nextSibling),e===null))return null;return e}function So(e){return e.data==="$?"||e.data==="$~"}function ko(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function mf(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Va(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 To=null;function fh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Va(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ph(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function gh(e,t,l){switch(t=cc(l),e){case"html":if(e=t.documentElement,!e)throw Error(d(452));return e;case"head":if(e=t.head,!e)throw Error(d(453));return e;case"body":if(e=t.body,!e)throw Error(d(454));return e;default:throw Error(d(451))}}function Wn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);os(e)}var Ya=new Map,bh=new Set;function rc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Cl=G.d;G.d={f:ff,r:pf,D:gf,C:bf,L:yf,m:vf,X:Nf,S:jf,M:wf};function ff(){var e=Cl.f(),t=Wi();return e||t}function pf(e){var t=tl(e);t!==null&&t.tag===5&&t.type==="form"?Hu(t):Cl.r(e)}var rn=typeof document>"u"?null:document;function yh(e,t,l){var s=rn;if(s&&typeof t=="string"&&t){var n=Lt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),bh.has(n)||(bh.add(n),e={rel:e,crossOrigin:l,href:t},s.querySelector(n)===null&&(t=s.createElement("link"),da(t,"link",e),Yt(t),s.head.appendChild(t)))}}function gf(e){Cl.D(e),yh("dns-prefetch",e,null)}function bf(e,t){Cl.C(e,t),yh("preconnect",e,t)}function yf(e,t,l){Cl.L(e,t,l);var s=rn;if(s&&e&&t){var n='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Lt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Lt(l.imageSizes)+'"]')):n+='[href="'+Lt(e)+'"]';var i=n;switch(t){case"style":i=on(e);break;case"script":i=dn(e)}Ya.has(i)||(e=A({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ya.set(i,e),s.querySelector(n)!==null||t==="style"&&s.querySelector(ei(i))||t==="script"&&s.querySelector(ti(i))||(t=s.createElement("link"),da(t,"link",e),Yt(t),s.head.appendChild(t)))}}function vf(e,t){Cl.m(e,t);var l=rn;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Lt(s)+'"][href="'+Lt(e)+'"]',i=n;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=dn(e)}if(!Ya.has(i)&&(e=A({rel:"modulepreload",href:e},t),Ya.set(i,e),l.querySelector(n)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ti(i)))return}s=l.createElement("link"),da(s,"link",e),Yt(s),l.head.appendChild(s)}}}function jf(e,t,l){Cl.S(e,t,l);var s=rn;if(s&&e){var n=El(s).hoistableStyles,i=on(e);t=t||"default";var c=n.get(i);if(!c){var o={loading:0,preload:null};if(c=s.querySelector(ei(i)))o.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ya.get(i))&&Co(e,l);var m=c=s.createElement("link");Yt(m),da(m,"link",e),m._p=new Promise(function(z,O){m.onload=z,m.onerror=O}),m.addEventListener("load",function(){o.loading|=1}),m.addEventListener("error",function(){o.loading|=2}),o.loading|=4,oc(c,t,s)}c={type:"stylesheet",instance:c,count:1,state:o},n.set(i,c)}}}function Nf(e,t){Cl.X(e,t);var l=rn;if(l&&e){var s=El(l).hoistableScripts,n=dn(e),i=s.get(n);i||(i=l.querySelector(ti(n)),i||(e=A({src:e,async:!0},t),(t=Ya.get(n))&&zo(e,t),i=l.createElement("script"),Yt(i),da(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},s.set(n,i))}}function wf(e,t){Cl.M(e,t);var l=rn;if(l&&e){var s=El(l).hoistableScripts,n=dn(e),i=s.get(n);i||(i=l.querySelector(ti(n)),i||(e=A({src:e,async:!0,type:"module"},t),(t=Ya.get(n))&&zo(e,t),i=l.createElement("script"),Yt(i),da(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},s.set(n,i))}}function vh(e,t,l,s){var n=(n=we.current)?rc(n):null;if(!n)throw Error(d(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=on(l.href),l=El(n).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=on(l.href);var i=El(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(ei(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Ya.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ya.set(e,l),i||Sf(n,e,l,c.state))),t&&s===null)throw Error(d(528,""));return c}if(t&&s!==null)throw Error(d(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dn(l),l=El(n).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(d(444,e))}}function on(e){return'href="'+Lt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function jh(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function Sf(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),da(t,"link",l),Yt(t),e.head.appendChild(t))}function dn(e){return'[src="'+Lt(e)+'"]'}function ti(e){return"script[async]"+e}function Nh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Lt(l.href)+'"]');if(s)return t.instance=s,Yt(s),s;var n=A({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Yt(s),da(s,"style",n),oc(s,l.precedence,e),t.instance=s;case"stylesheet":n=on(l.href);var i=e.querySelector(ei(n));if(i)return t.state.loading|=4,t.instance=i,Yt(i),i;s=jh(l),(n=Ya.get(n))&&Co(s,n),i=(e.ownerDocument||e).createElement("link"),Yt(i);var c=i;return c._p=new Promise(function(o,m){c.onload=o,c.onerror=m}),da(i,"link",s),t.state.loading|=4,oc(i,l.precedence,e),t.instance=i;case"script":return i=dn(l.src),(n=e.querySelector(ti(i)))?(t.instance=n,Yt(n),n):(s=l,(n=Ya.get(i))&&(s=A({},l),zo(s,n)),e=e.ownerDocument||e,n=e.createElement("script"),Yt(n),da(n,"link",s),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(d(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,oc(s,l.precedence,e));return t.instance}function oc(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=s.length?s[s.length-1]:null,i=n,c=0;c<s.length;c++){var o=s[c];if(o.dataset.precedence===t)i=o;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var dc=null;function wh(e,t,l){if(dc===null){var s=new Map,n=dc=new Map;n.set(l,s)}else n=dc,s=n.get(l),s||(s=new Map,n.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Za]||i[Jt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var o=s.get(c);o?o.push(i):s.set(c,[i])}}return s}function Sh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function kf(e,t,l){if(l===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;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function kh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Tf(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=on(s.href),i=t.querySelector(ei(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Yt(i);return}i=t.ownerDocument||t,s=jh(s),(n=Ya.get(n))&&Co(s,n),i=i.createElement("link"),Yt(i);var c=i;c._p=new Promise(function(o,m){c.onload=o,c.onerror=m}),da(i,"link",s),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=uc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _o=0;function Cf(e,t){return e.stylesheets&&e.count===0&&xc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&xc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&_o===0&&(_o=62500*cf());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>_o?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(n)}}:null}function uc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hc=null;function xc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hc=new Map,t.forEach(zf,e),hc=null,uc.call(e))}function zf(e,t){if(!(t.state.loading&4)){var l=hc.get(e);if(l)var s=l.get(null);else{l=new Map,hc.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),s=c)}s&&l.set(null,s)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||s,i===s&&l.set(null,n),l.set(c,n),this.count++,s=uc.bind(this),n.addEventListener("load",s),n.addEventListener("error",s),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:Me,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function _f(e,t,l,s,n,i,c,o,m){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=k(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k(0),this.hiddenUpdates=k(null),this.identifierPrefix=s,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Th(e,t,l,s,n,i,c,o,m,z,O,R){return e=new _f(e,t,l,c,m,z,O,R,o),t=1,i===!0&&(t|=24),i=za(3,null,null,t),e.current=i,i.stateNode=e,t=cr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:s,isDehydrated:l,cache:t},ur(i),e}function Ch(e){return e?(e=qs,e):qs}function zh(e,t,l,s,n,i){n=Ch(n),s.context===null?s.context=n:s.pendingContext=n,s=ql(t),s.payload={element:l},i=i===void 0?null:i,i!==null&&(s.callback=i),l=Rl(e,s,t),l!==null&&(Na(l,e,t),Dn(l,e,t))}function _h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Mo(e,t){_h(e,t),(e=e.alternate)&&_h(e,t)}function Mh(e){if(e.tag===13||e.tag===31){var t=xs(e,67108864);t!==null&&Na(t,e,67108864),Mo(e,67108864)}}function Ah(e){if(e.tag===13||e.tag===31){var t=Oa();t=pa(t);var l=xs(e,t);l!==null&&Na(l,e,t),Mo(e,t)}}var mc=!0;function Mf(e,t,l,s){var n=v.T;v.T=null;var i=G.p;try{G.p=2,Ao(e,t,l,s)}finally{G.p=i,v.T=n}}function Af(e,t,l,s){var n=v.T;v.T=null;var i=G.p;try{G.p=8,Ao(e,t,l,s)}finally{G.p=i,v.T=n}}function Ao(e,t,l,s){if(mc){var n=Eo(s);if(n===null)go(e,t,s,fc,l),Oh(e,s);else if(Of(n,e,t,l,s))s.stopPropagation();else if(Oh(e,s),t&4&&-1<Ef.indexOf(e)){for(;n!==null;){var i=tl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Te(i.pendingLanes);if(c!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;c;){var m=1<<31-Et(c);o.entanglements[1]|=m,c&=~m}cl(i),(xt&6)===0&&(Ii=De()+500,Pn(0))}}break;case 31:case 13:o=xs(i,2),o!==null&&Na(o,i,2),Wi(),Mo(i,2)}if(i=Eo(s),i===null&&go(e,t,s,fc,l),i===n)break;n=i}n!==null&&s.stopPropagation()}else go(e,t,s,null,l)}}function Eo(e){return e=Oc(e),Oo(e)}var fc=null;function Oo(e){if(fc=null,e=Ja(e),e!==null){var t=S(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=T(t),e!==null)return e;e=null}else if(l===31){if(e=H(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fc=e,null}function Eh(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(Je()){case kt:return 2;case Vt:return 8;case yt:case B:return 32;case le:return 268435456;default:return 32}default:return 32}}var Do=!1,Fl=null,Wl=null,es=null,li=new Map,si=new Map,ts=[],Ef="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 Oh(e,t){switch(e){case"focusin":case"focusout":Fl=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":es=null;break;case"pointerover":case"pointerout":li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":si.delete(t.pointerId)}}function ni(e,t,l,s,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:i,targetContainers:[n]},t!==null&&(t=tl(t),t!==null&&Mh(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Of(e,t,l,s,n){switch(t){case"focusin":return Fl=ni(Fl,e,t,l,s,n),!0;case"dragenter":return Wl=ni(Wl,e,t,l,s,n),!0;case"mouseover":return es=ni(es,e,t,l,s,n),!0;case"pointerover":var i=n.pointerId;return li.set(i,ni(li.get(i)||null,e,t,l,s,n)),!0;case"gotpointercapture":return i=n.pointerId,si.set(i,ni(si.get(i)||null,e,t,l,s,n)),!0}return!1}function Dh(e){var t=Ja(e.target);if(t!==null){var l=S(t);if(l!==null){if(t=l.tag,t===13){if(t=T(l),t!==null){e.blockedOn=t,fn(e.priority,function(){Ah(l)});return}}else if(t===31){if(t=H(l),t!==null){e.blockedOn=t,fn(e.priority,function(){Ah(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Eo(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);Ec=s,l.target.dispatchEvent(s),Ec=null}else return t=tl(l),t!==null&&Mh(t),e.blockedOn=l,!1;t.shift()}return!0}function Hh(e,t,l){pc(e)&&l.delete(t)}function Df(){Do=!1,Fl!==null&&pc(Fl)&&(Fl=null),Wl!==null&&pc(Wl)&&(Wl=null),es!==null&&pc(es)&&(es=null),li.forEach(Hh),si.forEach(Hh)}function gc(e,t){e.blockedOn===t&&(e.blockedOn=null,Do||(Do=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Df)))}var bc=null;function Lh(e){bc!==e&&(bc=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){bc===e&&(bc=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],n=e[t+2];if(typeof s!="function"){if(Oo(s||l)===null)continue;break}var i=tl(l);i!==null&&(e.splice(t,3),t-=3,Ar(i,{pending:!0,data:n,method:l.method,action:s},s,n))}}))}function un(e){function t(m){return gc(m,e)}Fl!==null&&gc(Fl,e),Wl!==null&&gc(Wl,e),es!==null&&gc(es,e),li.forEach(t),si.forEach(t);for(var l=0;l<ts.length;l++){var s=ts[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ts.length&&(l=ts[0],l.blockedOn===null);)Dh(l),l.blockedOn===null&&ts.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var n=l[s],i=l[s+1],c=n[ia]||null;if(typeof i=="function")c||Lh(l);else if(c){var o=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ia]||null)o=c.formAction;else if(Oo(n)!==null)continue}else o=c.action;typeof o=="function"?l[s+1]=o:(l.splice(s,3),s-=3),Lh(l)}}}function Uh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Ho(e){this._internalRoot=e}yc.prototype.render=Ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(d(409));var l=t.current,s=Oa();zh(l,s,e,t,null,null)},yc.prototype.unmount=Ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zh(e.current,2,null,e,null,null),Wi(),t[ol]=null}};function yc(e){this._internalRoot=e}yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dt();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ts.length&&t!==0&&t<ts[l].priority;l++);ts.splice(l,0,e),l===0&&Dh(e)}};var $h=x.version;if($h!=="19.2.0")throw Error(d(527,$h,"19.2.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(d(188)):(e=Object.keys(e).join(","),Error(d(268,e)));return e=j(t),e=e!==null?Q(e):null,e=e===null?null:e.stateNode,e};var Hf={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:v,reconcilerVersion:"19.2.0"};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vc.isDisabled&&vc.supportsFiber)try{mt=vc.inject(Hf),ot=vc}catch{}}return ci.createRoot=function(e,t){if(!N(e))throw Error(d(299));var l=!1,s="",n=Ku,i=Qu,c=Xu;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Th(e,1,!1,null,null,l,s,null,n,i,c,Uh),e[ol]=t.current,po(e),new Ho(t)},ci.hydrateRoot=function(e,t,l){if(!N(e))throw Error(d(299));var s=!1,n="",i=Ku,c=Qu,o=Xu,m=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=Th(e,1,!0,t,l??null,s,n,m,i,c,o,Uh),t.context=Ch(null),l=t.current,s=Oa(),s=pa(s),n=ql(s),n.callback=null,Rl(l,n,s),l=s,t.current.lanes=l,Ae(t,l),cl(t),e[ol]=t.current,po(e),new yc(t)},ci.version="19.2.0",ci}var Zh;function Yf(){if(Zh)return $o.exports;Zh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(x){console.error(x)}}return r(),$o.exports=Vf(),$o.exports}var Kf=Yf();const Qf=ux(Kf),Xf=window.location.hostname==="localhost"&&window.location.port!=="3001",Ve=Xf?"http://localhost:3001":"",Ie=()=>{const r=localStorage.getItem("proxy_token");return r?{Authorization:`Bearer ${r}`}:{}},Ye=async r=>{const x=r.headers.get("content-type");if(x&&x.includes("application/json")){const g=await r.json();if(!r.ok)throw new Error(g.message||g.error||"Request failed");return g}else{const g=await r.text();throw g.trim().startsWith("<!DOCTYPE html>")?new Error("API Endpoint not found or Server Error (404/500). Received HTML instead of JSON."):(console.error("Non-JSON response:",g.substring(0,100)),new Error("Server error: Received invalid response format."))}},He={auth:{login:async r=>{const x=await fetch(`${Ve}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});return await Ye(x)},logout:async()=>{const r=await fetch(`${Ve}/api/auth/logout`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},register:async r=>{const x=await fetch(`${Ve}/api/auth/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});return await Ye(x)},getProfile:async()=>{const r=await fetch(`${Ve}/api/auth/me`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},updateProfile:async r=>{const x=await fetch(`${Ve}/api/auth/update-profile`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify(r)});return await Ye(x)},getTransactions:async()=>{const r=await fetch(`${Ve}/api/transactions`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},changePassword:async r=>{const x=await fetch(`${Ve}/api/auth/change-password`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify(r)});return await Ye(x)},forgotPassword:async r=>{const x=await fetch(`${Ve}/api/auth/forgot-password`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r})});return await Ye(x)},resetPassword:async r=>{const x=await fetch(`${Ve}/api/auth/reset-password`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify(r)});return await Ye(x)},getLogs:async(r=1,x=5)=>{const g=await fetch(`${Ve}/api/logs?page=${r}&limit=${x}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(g)}},deposit:{calculatePromotion:async r=>{const x=await fetch(`${Ve}/api/deposit/promotion`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({amount:r})});return await Ye(x)},create:async r=>{const x=await fetch(`${Ve}/api/deposit/create`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({amount:r})});return await Ye(x)},getData:async()=>{const r=await fetch(`${Ve}/api/deposit/list`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},getCashFlow:async(r=1,x=5)=>{const g=await fetch(`${Ve}/api/cashflow?page=${r}&limit=${x}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(g)},cancel:async r=>{const x=await fetch(`${Ve}/api/deposit/cancel`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({invoice_id:r})});return await Ye(x)}},proxy:{getNewIp:async(r,x="")=>{const g=await fetch(`${Ve}/api/proxy/get-new-web`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({api_key:r,location:x})});return await Ye(g)},updateLocation:async(r,x)=>{const g=await fetch(`${Ve}/api/proxy/update-location`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({api_key:r,location_id:x})});return await Ye(g)},updateSettings:async(r,x,g)=>{const d=await fetch(`${Ve}/api/proxy/update-settings`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({id:r,field:x,value:g})});return await Ye(d)},getLocations:async()=>{const r=await fetch(`${Ve}/api/get-locations`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},renewProxy:async(r,x)=>{const g=await fetch(`${Ve}/api/proxy/renew`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({api_key:r,days:x})});return await Ye(g)},deleteProxy:async r=>{const x=await fetch(`${Ve}/api/proxy/${r}`,{method:"DELETE",headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(x)},checkLive:async(r,x,g,d)=>{const N=await fetch(`${Ve}/api/check?ip=${r}&port=${x}&user=${g}&pass=${d}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(N)},buyProxy:async r=>{const x=await fetch(`${Ve}/api/proxy/buy`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify(r)});return await Ye(x)},buyData:async(r,x)=>{const g=await fetch(`${Ve}/api/proxy/buy-data`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({api_key:r,amount_gb:x})});return await Ye(g)},getUsage:async()=>{const r=await fetch(`${Ve}/api/proxy/usage`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)}},admin:{getStats:async()=>{const r=await fetch(`${Ve}/api/admin/stats`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},getUsers:async(r,x,g="")=>{const d=await fetch(`${Ve}/api/admin/users?page=${r}&limit=${x}&search=${encodeURIComponent(g)}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(d)},updateUser:async(r,x)=>{const g=await fetch(`${Ve}/api/admin/users/${r}`,{method:"PUT",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify(x)});return await Ye(g)},getAllOrders:async(r,x,g="",d="all",N="id")=>{const S=await fetch(`${Ve}/api/admin/orders?page=${r}&limit=${x}&search=${encodeURIComponent(g)}&status=${d}&sort=${N}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(S)},getAllInvoices:async(r,x,g="")=>{const d=await fetch(`${Ve}/api/admin/invoices?page=${r}&limit=${x}&search=${encodeURIComponent(g)}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(d)},updateInvoice:async(r,x)=>{const g=await fetch(`${Ve}/api/admin/invoices/${r}`,{method:"PUT",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({status:x})});return await Ye(g)},getAccounts:async(r,x,g="",d="all")=>{const N=await fetch(`${Ve}/api/admin/accounts?page=${r}&limit=${x}&search=${encodeURIComponent(g)}&loc=${d}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(N)},syncAccounts:async()=>{const r=await fetch(`${Ve}/api/admin/accounts/sync`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},deleteAccount:async r=>{const x=await fetch(`${Ve}/api/admin/accounts/${r}`,{method:"DELETE",headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(x)},getGlobalCashFlow:async(r="")=>{const x=await fetch(`${Ve}/api/admin/cashflow?search=${encodeURIComponent(r)}`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(x)},getUserLogs:async r=>{const x=await fetch(`${Ve}/api/admin/users/${r}/logs`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(x)},getUserCashFlow:async r=>{const x=await fetch(`${Ve}/api/admin/users/${r}/cashflow`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(x)},getLatestGiftbox:async()=>{const r=await fetch(`${Ve}/api/giftbox/latest`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},getOfflineRegions:async()=>{const r=await fetch(`${Ve}/api/giftbox/offline`,{headers:{...Ie(),"Content-Type":"application/json"}});return await Ye(r)},updateTotalMoney:async r=>{const x=await fetch(`${Ve}/api/admin/debug/update-total-money`,{method:"POST",headers:{...Ie(),"Content-Type":"application/json"},body:JSON.stringify({total_money:r})});return await Ye(x)}}},Zf=async r=>{try{let x=`${Ve}/api/orders`;const g=new URLSearchParams;r&&g.append("buyer_id",r.toString()),g.append("t",Date.now().toString()),r&&(x+=`?${g.toString()}`);const d=await fetch(x,{headers:{...Ie(),"Content-Type":"application/json"},cache:"no-store"});if(!d.ok)throw d.status===401||d.status===403?new Error("Phiên ÄÄng nháºp hết hạn"):new Error(`Lá»i kết ná»i: ${d.status}`);return await Ye(d)}catch(x){throw console.warn("API Error:",x),x}};const Jf=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pf=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(x,g,d)=>d?d.toUpperCase():g.toLowerCase()),Jh=r=>{const x=Pf(r);return x.charAt(0).toUpperCase()+x.slice(1)},mx=(...r)=>r.filter((x,g,d)=>!!x&&x.trim()!==""&&d.indexOf(x)===g).join(" ").trim(),If=r=>{for(const x in r)if(x.startsWith("aria-")||x==="role"||x==="title")return!0};var Ff={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 Wf=h.forwardRef(({color:r="currentColor",size:x=24,strokeWidth:g=2,absoluteStrokeWidth:d,className:N="",children:S,iconNode:T,...H},D)=>h.createElement("svg",{ref:D,...Ff,width:x,height:x,stroke:r,strokeWidth:d?Number(g)*24/Number(x):g,className:mx("lucide",N),...!S&&!If(H)&&{"aria-hidden":"true"},...H},[...T.map(([j,Q])=>h.createElement(j,Q)),...Array.isArray(S)?S:[S]]));const Z=(r,x)=>{const g=h.forwardRef(({className:d,...N},S)=>h.createElement(Wf,{ref:S,iconNode:x,className:mx(`lucide-${Jf(Jh(r))}`,`lucide-${r}`,d),...N}));return g.displayName=Jh(r),g};const ep=[["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
9-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ns=Z("activity",ep);const tp=[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h4",key:"6d7r33"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h10",key:"1438ji"}]],fx=Z("arrow-down-narrow-wide",tp);const ap=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Tc=Z("arrow-left",ap);const lp=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Ph=Z("arrow-right-left",lp);const sp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],zs=Z("arrow-right",sp);const np=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],px=Z("arrow-up-narrow-wide",np);const ip=[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cp=Z("ban",ip);const rp=[["path",{d:"M21 8a2 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.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],op=Z("box",rp);const dp=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],up=Z("briefcase",dp);const hp=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],xp=Z("building-2",hp);const mp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],fp=Z("calendar-check",mp);const pp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m14 14-4 4",key:"rymu2i"}],["path",{d:"m10 14 4 4",key:"3sz06r"}]],gp=Z("calendar-x",pp);const bp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],wc=Z("calendar",bp);const yp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],gx=Z("chart-column",yp);const vp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],jp=Z("chart-line",vp);const Np=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],bx=Z("check",Np);const wp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],is=Z("chevron-down",wp);const Sp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rs=Z("chevron-right",Sp);const kp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ms=Z("chevron-left",kp);const Tp=[["path",{d:"M10.88 21.94 15.46 14",key:"xkve6t"}],["path",{d:"M21.17 8H12",key:"19dcdn"}],["path",{d:"M3.95 6.06 8.54 14",key:"g8jz9m"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],Cp=Z("chromium",Tp);const zp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_p=Z("circle-alert",zp);const Mp=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],rt=Z("circle-check-big",Mp);const Ap=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],As=Z("circle-check",Ap);const Ep=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Op=Z("circle-minus",Ep);const Dp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Hp=Z("circle-plus",Dp);const Lp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],rl=Z("circle-x",Lp);const Up=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Sa=Z("clock",Up);const $p=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Bp=Z("code",$p);const qp=[["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"}]],Ct=Z("copy",qp);const Rp=[["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"}
9],["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"}]],yx=Z("cpu",Rp);const Gp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],Io=Z("credit-card",Gp);const Vp=[["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"}]],_s=Z("database",Vp);const Yp=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],Kp=Z("dollar-sign",Yp);const Qp=[["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"}]],Sc=Z("download",Qp);const Xp=[["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"}]],Zp=Z("external-link",Xp);const Jp=[["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"}]],Pp=Z("eye",Jp);const Ip=[["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"}]],Fo=Z("file-code",Ip);const Fp=[["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"}]],Nc=Z("file-text",Fp);const Wp=[["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"}]],Wo=Z("funnel",Wp);const eg=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],tg=Z("gavel",eg);const ag=[["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"}]],zl=Z("globe",ag);const lg=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],kc=Z("hard-drive",lg);const sg=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],ng=Z("hash",sg);const ig=[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],vx=Z("history",ig);const cg=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Cc=Z("key",cg);const rg=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ed=Z("layers",rg);const og=[["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"}]],Yo=Z("layout-dashboard",og);const dg=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}
9]],jx=Z("list",dg);const ug=[["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"}]],Ml=Z("lock",ug);const hg=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ko=Z("log-out",hg);const xg=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],xn=Z("mail",xg);const mg=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],aa=Z("map-pin",mg);const fg=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],ss=Z("map-pinned",fg);const pg=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],gg=Z("menu",pg);const bg=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Nx=Z("message-circle",bg);const yg=[["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"}],["path",{d:"M12 15h.01",key:"q59x07"}],["path",{d:"M12 7v4",key:"xawao1"}]],vg=Z("message-square-warning",yg);const jg=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Qo=Z("monitor",jg);const Ng=[["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"}]],wg=Z("moon",Ng);const Sg=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],wx=Z("package-check",Sg);const kg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Tg=Z("panel-left",kg);const Cg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],Ih=Z("panel-top",Cg);const zg=[["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"}]],_g=Z("panels-top-left",zg);const Mg=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Xo=Z("pen-line",Mg);const Ag=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Fh=Z("pen",Ag);const Eg=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],td=Z("pencil",Eg);const Og=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Sx=Z("phone",Og);const Dg=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Zo=Z("radio",Dg);const Hg=[["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"}]],Xt=Z("refresh-cw",Hg);const Lg=[["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"}]],ad=Z("save",Lg);const Ug=[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"m19 8 3 8a5 5 0 0 1-6 0zV7",key:"zcdpyk"}],["path",{d:"M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1",key:"1yorad"}],["path",{d:"m5 8 3 8a5 5 0 0 1-6 0zV7",key:"eua70x"}],["path",{d:"M7 21h10",key:"1b0cd5"}]],$g=Z("scale",Ug);const Bg=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]],qg=Z("scan-line",Bg);const Rg=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],Gg=Z("scroll-text",Rg);const Vg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mn=Z("search",Vg);const Yg=[["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"}]],Da=Z("server",Yg);const Kg=[["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"}]],Qg=Z("settings",Kg);const Xg=[["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",ke
9y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ld=Z("shield-alert",Xg);const Zg=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ua=Z("shield-check",Zg);const Jg=[["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"}]],sd=Z("shield",Jg);const Pg=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Jo=Z("shopping-bag",Pg);const Ig=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],kx=Z("shopping-cart",Ig);const Fg=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Tx=Z("sliders-horizontal",Fg);const Wg=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],eb=Z("smartphone",Wg);const tb=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ts=Z("square-check-big",tb);const ab=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],el=Z("square",ab);const lb=[["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"}]],sb=Z("sun",lb);const nb=[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]],ib=Z("sunrise",nb);const cb=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Cx=Z("terminal",cb);const rb=[["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"}]],_l=Z("trash-2",rb);const ob=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],db=Z("trending-down",ob);const ub=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],hb=Z("trending-up",ub);const xb=[["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"}]],Ka=Z("triangle-alert",xb);const mb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],fb=Z("user-plus",mb);const pb=[["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"}]],zx=Z("user",pb);const gb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Cs=Z("users",gb);const bb=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],cs=Z("wallet",bb);const yb=[["path",{d:"M12 20h.01",key:"zekei9"}
9],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],vb=Z("wifi",yb);const jb=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],_x=Z("youtube",jb);const Nb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ea=Z("x",Nb);const wb=[["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"}]],wa=Z("zap",wb);var Sb=xx();const At=({content:r,children:x})=>{const[g,d]=h.useState(!1),[N,S]=h.useState({top:0,left:0}),[T,H]=h.useState(""),[D,j]=h.useState(""),Q=J=>{const xe=J.currentTarget.getBoundingClientRect(),me=xe.top;let I=xe.top-8,Se=xe.left+xe.width/2,ae="transform -translate-x-1/2 -translate-y-full mb-1",he="bottom-[-4px] left-1/2 -translate-x-1/2 border-t-slate-800 border-r-slate-800 border-b-transparent border-l-transparent";me<50&&(I=xe.bottom+8,ae="transform -translate-x-1/2 mt-1",he="top-[-4px] left-1/2 -translate-x-1/2 border-b-slate-800 border-l-slate-800 border-t-transparent border-r-transparent"),S({top:I,left:Se}),H(ae),j(he),d(!0)},A=()=>d(!1);return a.jsxs(a.Fragment,{children:[hx.cloneElement(x,{onMouseEnter:J=>{Q(J),x.props.onMouseEnter&&x.props.onMouseEnter(J)},onMouseLeave:J=>{A(),x.props.onMouseLeave&&x.props.onMouseLeave(J)},onMouseDown:J=>{A(),x.props.onMouseDown&&x.props.onMouseDown(J)}}),g&&r&&Sb.createPortal(a.jsxs("div",{className:`fixed z-[9999] px-3 py-1.5 text-xs font-medium text-white bg-slate-800 rounded-lg shadow-xl pointer-events-none animate-in fade-in zoom-in-95 duration-150 flex flex-col items-center ${T}
9`,style:{top:N.top,left:N.left},children:[a.jsx("span",{className:"whitespace-nowrap z-10 relative",children:r}),a.jsx("div",{className:`absolute w-2 h-2 bg-slate-800 transform rotate-45 ${D}`})]}),document.body)]})},Wh=({icon:r,label:x,value:g,copyable:d=!1,onEdit:N})=>{const S=T=>{d&&(T.stopPropagation(),navigator.clipboard.writeText(g))};return a.jsxs("div",{className:"flex items-center gap-4 p-4 rounded-lg bg-white border border-slate-100 shadow-sm hover:shadow-md transition-all group hover:border-violet-100",children:[a.jsx("div",{className:"p-2.5 rounded-xl bg-slate-50 text-slate-500 group-hover:bg-violet-50 group-hover:text-violet-600 transition-colors",children:a.jsx(r,{size:18})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 mb-0.5 tracking-wide",children:x}),N&&a.jsx(At,{content:"Chá»nh sá»a",children:a.jsx("button",{onClick:T=>{T.stopPropagation(),N()},className:"p-1 text-slate-400 hover:text-violet-600 hover:bg-violet-50 rounded-lg transition-colors opacity-0 group-hover:opacity-100",children:a.jsx(td,{size:12})})})]}),a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:d?S:void 0,children:[a.jsx("p",{className:"text-sm text-slate-800 truncate",children:g}),d&&a.jsx(Ct,{size:12,className:"opacity-0 group-hover:opacity-100 transition-opacity text-violet-500"})]})]})]})},ex=({currentPage:r,totalPages:x,onPageChange:g})=>x<=1?null:a.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-slate-100 bg-white/50 backdrop-blur rounded-b-[15px]",children:[a.jsxs("span",{className:"text-xs font-medium text-slate-400",children:["Trang ",r," / ",x]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{onClick:()=>g(Math.max(1,r-1)),disabled:r===1,className:"p-2 rounded-xl bg-white border border-slate-200 hover:bg-slate-50 disabled:opacity-50 transition-colors shadow-sm",children:a.jsx(Ms,{size:14})}),a.jsx("button",{onClick:()=>g(Math.min(x,r+1)),disabled:r===x,className:"p-2 rounded-xl bg-white border border-slate-200 hover:bg-slate-50 disabled:opacity-50 transition-colors shadow-sm",children:a.jsx(rs,{size:14})})]})]}),kb=({isOpen:r,onClose:x,currentEmail:g,currentPhone:d,onSave:N})=>{const[S,T]=h.useState(g),[H,D]=h.useState(d),[j,Q]=h.useState(!1),[A,J]=h.useState("");if(h.useEffect(()=>{r&&(T(g),D(d),J(""))},[r,g,d]),!r)return null;const xe=async me=>{me.preventDefault(),Q(!0),J("");try{await N(S,H),x()}catch(I){J(I.message||"Lá»i cáºp nháºt")}finally{Q(!1)}};return a.jsx("div",{className:"fixed inset-0 bg-slate-900/40 backdrop-blur-sm z-[80] flex items-center justify-center p-4 animate-in fade-in duration-200",children:a.jsxs("div",{className:"bg-white rounded-3xl shadow-xl w-full max-w-sm overflow-hidden border border-white/20",children:[a.jsxs("div",{className:"p-6 border-b border-slate-100 flex justify-between items-center bg-slate-50/50",children:[a.jsx("h3",{className:"font-bold text-slate-800",children:"Cáºp nháºt thông tin"}),a.jsx("button",{onClick:x,className:"text-slate-400 hover:text-slate-600 bg-white p-1 rounded-full shadow-sm",children:a.jsx(ea,{size:20})})]}),a.jsxs("form",{onSubmit:xe,className:"p-6 space-y-5",children:[A&&a.jsx("div",{className:"text-xs text-rose-600 bg-rose-50 p-3 rounded-xl border border-rose-100 font-medium",children:A}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wide",children:"Email"}),a.jsx("input",{type:"email",required:!0,value:S,onChange:me=>T(me.target.value),className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-violet-500 outline-none text-sm font-medium"})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wide",children:"Sá» Äiá»n thoại"}),a.jsx("input",{type:"text",value:H,onChange:me=>D(me.target.value),className:"w-full px-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-violet-500 outline-none text-sm font-medium"})]}),a.jsxs("div",{className:"flex gap-3 pt-2",children:[a.jsx("button",{type:"button",onClick:x,className:"flex-1 py-3 border border-slate-200 rounded-xl text-sm font-bold text-slate-600 hover:bg-slate-50",children:"Há»§y"}),a.jsxs("button",{type:"submit",disabled:j,className:"flex-1 py-3 bg-violet-600 text-white rounded-xl text-sm font-bold hover:bg-violet-700 shadow-md flex items-center justify-center gap-2",children:[j&&a.jsx("div",{className:"w-3 h-3 border-2 border-white/30 border-t-white rounded-full animate-spin"})," Lưu"]})]})]})]})})},Tb=({orders:r,user:x})=>{const[g,d]=h.useState(""),[N,S]=h.useState(""),[T,H]=h.useState(""),[D,j]=h.useState(!1),[Q,A]=h.useState(""),[J,xe]=h.useState(""),[me,I]=h.useState([]),[Se,ae]=h.useState(1),[he,Me]=h.useState(0),[Xe,$e]=h.useState(!1),[ne,re]=h.useState([]),[Ke,Le]=h.useState(1),[tt,Ze]=h.useState(0),[je,Be]=h.useState(!1),[St,oe]=h.useState(!1),[v,G]=h.useState(x),[ce,pe]=h.useState([]),[ze,f]=h.useState(!1),[E,U]=h.useState(!1),[V,ue]=h.useState(0),[we,Y]=h.useState(!1);h.useEffect(()=>{G(x)},[x]);const P=h.useMemo(()=>{const te=r.length,ct=r.filter(K=>K.status==="running"||K.status==="active"||K.trangthai_hethan==="1"),zt=ct.length,Gt=r.filter(K=>K.status==="expired"||K.trangthai_hethan!=="1").length,ft=ct.reduce((K,F)=>K+(F.price||0),0);return{total:te,active:zt,expired:Gt,totalValue:ft}},[r]);h.useEffect(()=>
9{x&&($e(!0),He.auth.getLogs(Se,5).then(te=>{I(te.logs||[]),Me(te.totalPages||0)}).finally(()=>$e(!1)))},[x,Se]),h.useEffect(()=>{x&&(Be(!0),He.deposit.getCashFlow(Ke,5).then(te=>{re(te.cashflow||[]),Ze(te.totalPages||0)}).finally(()=>Be(!1)))},[x,Ke]),h.useEffect(()=>{x&&(f(!0),He.admin.getLatestGiftbox().then(te=>pe(Array.isArray(te)?te:[])).catch(te=>console.error("Error fetching giftbox:",te)).finally(()=>f(!1)))},[x]);const ye=async te=>{if(te.preventDefault(),A(""),xe(""),j(!0),N!==T){A("Máºt khẩu xác nháºn không khá»p"),j(!1);return}try{const ct=await He.auth.changePassword({currentPassword:g,newPassword:N,confirmPassword:T});ct.success?(xe("Äá»i máºt khẩu thà nh công!"),d(""),S(""),H("")):A(ct.message||"Lá»i Äá»i máºt khẩu")}catch(ct){A(ct.message||"Lá»i kết ná»i")}finally{j(!1)}},Qe=async(te,ct)=>{await He.auth.updateProfile({email:te,phone:ct}),G(zt=>zt?{...zt,email:te,phone:ct}:null)},qe=async()=>{if(!(!v||v.id!==2||we)){Y(!0);try{await He.admin.updateTotalMoney(V),G(te=>te?{...te,total_money:V}:null),U(!1)}catch(te){alert(te.message||"Lá»i khi cáºp nháºt tá»ng tiá»n")}finally{Y(!1)}}},Fe=te=>{try{return new Date(te).toLocaleString("vi-VN")}catch{return te}},it=te=>{try{const ct=Number(te);return isNaN(ct)?"0":ct.toLocaleString("vi-VN")}catch{return"0"}},Rt=te=>{if(!te)return"-";if(typeof te=="string")return te;try{return JSON.stringify(te)}catch{return"-"}};return v?a.jsxs("div",{className:"space-y-4 animate-in fade-in duration-500 pb-10",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4",children:[a.jsx("div",{className:"lg:col-span-5 relative group",children:a.jsxs("div",{className:"relative glass-card rounded-[15px] p-8 flex flex-col justify-between h-full overflow-hidden bg-white/95 border-slate-100 shadow-sm group-hover:shadow-md transition-shadow",children:[a.jsx("div",{className:"absolute top-0 right-0 w-40 h-40 bg-violet-50 rounded-full blur-3xl -mr-10 -mt-10 opacity-40"}),a.jsx("div",{className:"absolute bottom-0 left-0 w-40 h-40 bg-fuchsia-50 rounded-full blur-3xl -ml-10 -mb-10 opacity-40"}),a.jsxs("div",{className:"relative z-10",children:[a.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[a.jsx("div",{className:"relative",children:a.jsxs("div",{className:"w-64 rounded-xl bg-white p-5 shadow-sm border border-slate-100 text-center",children:[a.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Support Email"}),a.jsx("p",{className:"font-semibold text-slate-800 break-all",children:"[email protected]"})]})}),a.jsx("div",{className:"flex-1",children:a.jsxs("span",{className:`px-2 py-0.5 text-[15px] flex items-center gap-1 ${v.admin===1?"bg-purple-50 text-purple-700 border-purple-100":"bg-emerald-50 text-emerald-700 border-emerald-100"}`,children:[a.jsx(sd,{size:10}),v.admin===1?"Quản trá» viên":"Thà nh viên",": ",v.fullname||v.username]})})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsx(Wh,{icon:xn,label:"Email",value:v.email||"Chưa cáºp nháºt",onEdit:()=>oe(!0)}),a.jsx(Wh,{icon:Sx,label:"Äiá»n thoại",value:v.phone||"Chưa cáºp nháºt",onEdit:()=>oe(!0)})]}),a.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-100 hover:border-violet-200 transition-colors group/key cursor-pointer",onClick:()=>navigator.clipboard.writeText(v.token_buy||""),children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold text-violet-600 tracking-tight",children:[a.jsx(Cc,{size:14})," Token"]}),a.jsx("span",{className:"text-[10px] bg-white px-2 py-0.5 rounded text-slate-400 font-medium group-hover/key:text-violet-600 transition-colors",children:"Nhấn Äá» copy"})]}),a.jsx("div",{className:"font-mono text-sm text-slate-700 truncate font-medium bg-white px-2 py-1.5 rounded border border-slate-100",children:v.token_buy||"Chưa kÃch hoạt"})]})]})]})]})}),a.jsx("div",{className:"lg:col-span-3",children:a.jsxs("div",{className:"glass-card rounded-[15px] p-6 h-full flex flex-col items-center justify-between text-center relative overflow-hidden bg-white/80 border-slate-100 shadow-sm",children:[a.jsx("div",{className:"w-full",children:a.jsxs("div",{className:"w-full text-left",children:[a.jsxs("h3",{className:"text-sm text-slate-600 flex items-center gap-2 tracking-wide mb-2 flex items-center gap-1.5",children:[a.jsx(ns,{size:16,className:"text-violet-600"})," Trạng thái khu vá»±c"]}),a.jsx("div",{className:"bg-slate-50/50 rounded-xl border border-slate-100 overflow-hidden",children:ze?a.jsx("div",{className:"p-4 flex justify-center",children:a.jsx("div",{className:"w-4 h-4 border-2 border-violet-200 border-t-violet-500 rounded-full animate-spin"})}):ce.length===0?a.jsx("div",{className:"p-4 text-center text-[10px] text-slate-400 italic",children:"Không có dữ liá»u"}):a.jsx("div",{className:"divide-y divide-slate-100",children:ce.map((te,ct)=>a.jsxs("div",{className:"p-2.5 hover:bg-white transition-colors flex items-center justify-between gap-2",children:[a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"text-[11px] font-medium text-slate-700 truncate",children:te.khuvuc}),a.jsx("p",{className:"text-[9px] text-slate-400",children:Fe(te.create_date)})]}),a.jsx("span",{className:`px-1.5 py-0.5 rounded text-[9px] ${te.status===1?"bg-emerald-50 text-emerald-600":"bg-rose-50 text-rose-600"}`,children:te.status===1?"online":"offline"})]},ct))})})]})}),a.jsxs("div",{className:"w-full grid grid-cols-2 gap-2 pt-4 border-t border-slate-50",children:[a.jsxs("div",{className:"bg-white p-2 rounded-lg border border-slate-50 shadow-sm",children:[a.jsx("div",{className:"text-[9px] font-bold text-slate-400 tracking-tighter",children:"Tá»ng Proxy"}),a.jsx("div",{className:"text-sm text-slate-700",children:P.total})]}),a.jsxs("div",{className:"bg-white p-2 rounded-lg border border-slate-50 shadow-sm",children:[a.jsx("div",{className:"text-[9px] font-bold text-emerald-500 tracking-tighter",children:"Còn hạn"}),a.jsx("div",{className:"text-sm text-emerald-600",children:P.active})]}),a.jsxs("div",{className:"bg-white p-2 rounded-lg border border-slate-50 shadow-sm",children:[a.jsx("div",{className:"text-[9px] font-bold text-rose-500 tracking-tighter",children:"Hết hạn"}),a.jsx("div",{className:"text-sm text-rose-600",children:P.expired})]}),a.jsxs("div",{className:"bg-white p-2 rounded-lg border border-slate-50 shadow-sm",children:[a.jsx("div",{className:"text-[9px] font-bold text-violet-500 tracking-tighter",children:"Giá trá»"}),a.jsxs("div",{className:"text-sm text-violet-600",children:[P.totalValue.toLocaleStr
9ing("vi-VN"),"Ä"]})]})]})]})}),a.jsx("div",{className:"lg:col-span-4",children:a.jsxs("div",{className:"glass-card rounded-[15px] p-0 h-full flex flex-col overflow-hidden border border-slate-100 bg-white/80 shadow-sm",children:[a.jsx("div",{className:"p-6 pb-4 border-b border-slate-50 flex justify-between items-center",children:a.jsxs("h3",{className:"text-sm text-slate-600 flex items-center gap-2 tracking-wide",children:[a.jsx(ns,{size:16,className:"text-violet-600"})," Nháºt ký hoạt Äá»ng"]})}),a.jsx("div",{className:"flex-1 overflow-hidden relative",children:Xe?a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-6 h-6 border-2 border-violet-200 border-t-violet-600 rounded-full animate-spin"})}):me.length===0?a.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-slate-300 gap-2",children:[a.jsx(vx,{size:32}),a.jsx("span",{className:"text-xs font-bold",children:"Chưa có dữ liá»u"})]}):a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"absolute left-6 top-4 bottom-4 w-px bg-slate-50"}),a.jsx("div",{className:"divide-y divide-slate-50",children:me.map(te=>a.jsxs("div",{className:"p-4 pl-10 hover:bg-slate-50/50 transition-colors group relative",children:[a.jsx("div",{className:"absolute left-[21px] top-1/2 -translate-y-1/2 w-2 h-2 rounded-full bg-white border-2 border-slate-200 group-hover:border-violet-500 group-hover:scale-110 transition-all shadow-sm z-10"}),a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[a.jsx("p",{className:"text-xs text-slate-600 group-hover:text-slate-900 transition-colors truncate flex-1",title:te.action,children:te.action}),a.jsx("div",{className:"flex items-center gap-1.5 text-[9px] text-slate-400 bg-slate-50 px-2 py-0.5 rounded-md",children:Fe(te.createdate).split(" ")[0]})]})]},te.id))})]})}),a.jsx(ex,{currentPage:Se,totalPages:he,onPageChange:ae})]})})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[a.jsxs("div",{className:"glass-card rounded-[15px] p-8 lg:col-span-1 border border-slate-100 bg-white/80 shadow-sm",children:[a.jsxs("h3",{className:"text-sm text-slate-600 flex items-center gap-2 tracking-wide",children:[a.jsx(Ml,{size:20,className:"text-rose-500"})," Bảo máºt tà i khoản"]}),J&&a.jsxs("div",{className:"mb-4 p-3 bg-emerald-50 text-emerald-600 text-xs font-bold rounded-xl border border-emerald-100 flex items-center gap-2",children:[a.jsx(rt,{size:14})," ",J]}),Q&&a.jsxs("div",{className:"mb-4 p-3 bg-rose-50 text-rose-600 text-xs font-bold rounded-xl border border-rose-100 flex items-center gap-2",children:[a.jsx(Ka,{size:14})," ",Q]}),a.jsxs("form",{onSubmit:ye,className:"space-y-4",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-[10px] text-slate-400 tracking-wide",children:"Máºt khẩu hiá»n tại"}),a.jsx("input",{type:"password",required:!0,value:g,onChange:te=>d(te.target.value),className:"w-full px-4 py-3 bg-slate-50 border border-slate-100 rounded-xl focus:ring-1 focus:ring-rose-200 outline-none text-sm text-slate-700",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-[10px] text-slate-400 tracking-wide",children:"Máºt khẩu má»i"}),a.jsx("input",{type:"password",required:!0,value:N,onChange:te=>S(te.target.value),className:"w-full px-4 py-3 bg-slate-50 border border-slate-100 rounded-xl focus:ring-1 focus:ring-rose-200 outline-none text-sm text-slate-700",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-[10px] text-slate-400 tracking-wide",children:"Xác nháºn máºt khẩu"}),a.jsx("input",{type:"password",required:!0,value:T,onChange:te=>H(te.target.value),className:"w-full px-4 py-3 bg-slate-50 border border-slate-100 rounded-xl focus:ring-1 focus:ring-rose-200 outline-none text-sm text-slate-700",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsxs("button",{type:"submit",disabled:D,className:"w-full py-3.5 bg-rose-500 hover:bg-rose-600 text-white rounded-xl shadow-sm transition-all active:scale-95 flex items-center justify-center gap-2 mt-4",children:[D?a.jsx("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsx(ad,{size:18})," Cáºp nháºt máºt khẩu"]})]})]}
9),a.jsxs("div",{className:"glass-card rounded-[15px] lg:col-span-2 flex flex-col overflow-hidden border border-slate-100 bg-white/80 shadow-sm",children:[a.jsx("div",{className:"p-6 pb-4",children:a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center mb-6 gap-4",children:[a.jsxs("h3",{className:"text-sm text-slate-600 flex items-center gap-2 tracking-wide",children:[a.jsx(cs,{size:20,className:"text-emerald-500"})," Nháºt ký tà i chÃnh"]}),a.jsxs("div",{className:"flex gap-3",children:[a.jsxs("div",{className:"bg-emerald-50 px-4 py-2 rounded-lg border border-emerald-100 shadow-sm relative group/total",children:[a.jsxs("div",{className:"text-[9px] font-bold text-emerald-400 mb-0.5 tracking-wide flex justify-between items-center",children:[a.jsx("span",{children:"Tá»ng nạp"}),v.id===2&&!E&&a.jsx("button",{onClick:()=>{ue(v.total_money||0),U(!0)},className:"opacity-0 group-hover/total:opacity-100 p-0.5 hover:bg-emerald-100 rounded transition-all text-emerald-600",children:a.jsx(td,{size:8})})]}),E?a.jsxs("div",{className:"flex items-center gap-1 mt-1",children:[a.jsx("input",{type:"number",value:V,onChange:te=>ue(Number(te.target.value)),className:"w-20 px-1 py-0.5 text-xs border border-emerald-200 rounded outline-none focus:ring-1 focus:ring-emerald-400",autoFocus:!0}),a.jsx("button",{onClick:qe,disabled:we,className:"p-1 bg-emerald-500 text-white rounded hover:bg-emerald-600 disabled:opacity-50",children:a.jsx(rt,{size:10})}),a.jsx("button",{onClick:()=>U(!1),className:"p-1 bg-slate-200 text-slate-600 rounded hover:bg-slate-300",children:a.jsx(ea,{size:10})})]}):a.jsxs("div",{className:"text-emerald-700 text-sm ",children:[v.total_money?.toLocaleString("vi-VN")||0," Ä"]})]}),a.jsxs("div",{className:"bg-rose-50 px-4 py-2 rounded-lg border border-rose-100 shadow-sm",children:[a.jsx("div",{className:"text-[9px] font-bold text-rose-400 mb-0.5 tracking-wide",children:"Äã tiêu"}),a.jsxs("div",{className:"text-rose-700 text-sm",children:[((v.total_money||0)-(v.money||0)).toLocaleString("vi-VN")," Ä"]})]})]})]})}),a.jsxs("div",{className:"flex-1 flex flex-col",children:[a.jsx("div",{className:"overflow-x-auto custom-scrollbar px-6",children:a.jsxs("table",{className:"w-full text-sm text-left whitespace-nowrap",children:[a.jsx("thead",{className:"text-[9px] font-black text-slate-400 border-b border-slate-50 bg-slate-50/30",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-4 py-3",children:"Sá» dư trưá»c"}),a.jsx("th",{className:"px-4 py-3",children:"Biến Äá»ng"}),a.jsx("th",{className:"px-4 py-3",children:"Sá» dư sau"}),a.jsx("th",{className:"px-4 py-3",children:"Thá»i gian"}),a.jsx("th",{className:"px-4 py-3",children:"Ná»i dung giao dá»ch"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-50",children:je?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"px-4 py-12 text-center text-slate-400",children:a.jsx("div",{className:"flex justify-center items-center gap-2",children:a.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-emerald-500 border-t-transparent"})})})}):!ne||ne.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"p-12 text-center text-slate-300 font-medium italic",children:"Chưa có giao dá»ch nà o"})}):ne.map((te,ct)=>{if(!te)return null;const zt=Number(te.sotientruoc||0),Gt=Number(te.sotiensau||0),ft=Gt-zt,K=ft>0;return a.jsxs("tr",{className:"hover:bg-slate-50/50 transition-colors group",children:[a.jsx("td",{className:"px-4 py-4 font-mono text-slate-400 text-xs",children:it(zt)}),a.jsx("td",{className:"px-4 py-4",children:a.jsxs("span",{className:`font-mono text-xs font-bold px-2 py-1 rounded-lg border ${K?"text-emerald-600 bg-emerald-50 border-emerald-50":"text-rose-600 bg-rose-50 border-rose-50"}`,children:[K?"+":"",it(ft)]})}),a.jsx("td",{className:"px-4 py-4 font-mono text-violet-600 text-xs font-bold",children:it(Gt)}),a.jsx("td",{className:"px-4 py-4 text-slate-400 text-[10px] font-bold",children:Fe(te.thoigian).split(" ")[0]}),a.jsx("td",{className:"px-4 py-4 text-slate-500 text-xs font-medium max-w-[200px] truncate group-hover:text-slate-800",children:Rt(te.noidung)})]},te.id||ct)})})]})}),a.jsx("div",{className:"mt-auto",children:a.jsx(ex,{currentPage:Ke,totalPages:tt,onPageChange:Le})})]})]})]}),a.jsx(kb,{isOpen:St,onClose:()=>oe(!1),currentEmail:v.email||"",currentPhone:v.phone||"",onSave:Qe})]}):null},tx=[{amount:1,price:5e3,label:"1 GB Data"},{amount:5,price:2e4,label:"5 GB Data"},{amount:10,price:35e3,label:"10 GB Data"},{amount:50,price:15e4,label:"50 GB Data"}],Mx=({order:r,isOpen:x,onClose:g,onSuccess:d,onShowToast:N,useApiKeyLabel:S})=>{const[T,H]=h.useState(tx[0]),[D,j]=h.useState(!1);if(!x)return null;const Q=async()=>{j(!0);try{if(!r.api_key)return;const A=await He.proxy.buyData(r.api_key,T.amount);if(A.success){const J=S?r.api_key:`#${r.id}`;N("success",`Äã mua thà nh công ${T.amount}GB Data cho ${S?"Apikey":"Proxy"} ${J}`),d(),g()}else N("error",A.message||"Giao dá»ch thất bại")}catch(A){N("error",A.message||"Lá»i há» thá»ng")}finally{j(!1)}};return a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[100] flex items-center justify-center p-4 animate-in fade-in duration-300",children:a.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-md overflow-hidden border border-slate-200",children:[a.jsxs("div",{className:"bg-slate-50 px-6 py-4 border-b border-slate-100 flex justify-between items-center",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-xl bg-violet-100 text-violet-600 flex items-center justify-center",children:a.jsx(_s,{size:22})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-bold text-slate-800",children:"Mua thêm Data"}),a.jsx("p",{className:"text-[10px] text-slate-500 font-semibold tracking-wider",children:S?`${r.api_key}`:`Proxy ID: #${r.id}`})]})]}),a.jsx("button",{onClick:g,className:"p-2 hover:bg-white rounded-lg transition-colors text-slate-400 hover:text-slate-600",children:a.jsx(ea,{size:20})})]}),a.jsxs("div",{className:"p-6 space-y-6",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx("label",{className:"text-xs font-medium text-slate-500 tracking-wide ml-1",children:"Chá»n gói dung lượng"}),a.jsx("div",{className:"grid grid-cols-2 gap-3",children:tx.map(A=>a.jsxs("button",{onClick:()=>H(A),className:`p-4 rounded-xl border-2 transition-all text-left relative overflow-hidden group ${T.amount===A.amount?"border-violet-500 bg-violet-50/50 shadow-md ring-1 ring-violet-500":"border-slate-100 hover:border-slate-200 bg-slate-50/30"}`,children:[a.jsx("div",{className:`font-bold text-lg ${T.amount===A.amount?"text-violet-700":"text-slate-700"}`,children:A.label}),a.jsxs("div",{className:`text-xs font-semibold ${T.amount===A.amount?"text-violet-600":"text-slate-500"}
9`,children:[A.price.toLocaleString(),"Ä"]}),T.amount===A.amount&&a.jsx("div",{className:"absolute -right-2 -bottom-2 opacity-10",children:a.jsx(_s,{size:60,className:"text-violet-600"})})]},A.amount))})]}),a.jsxs("div",{className:"bg-slate-900 rounded-xl p-5 text-white relative overflow-hidden shadow-lg",children:[a.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-violet-500/10 rounded-full blur-3xl -mr-16 -mt-16"}),a.jsxs("div",{className:"relative z-10 space-y-4",children:[a.jsxs("div",{className:"flex justify-between items-center text-xs font-medium text-slate-400",children:[a.jsx("span",{children:"Thanh toán tá»ng cá»ng"}),a.jsx("span",{className:"px-2 py-0.5 rounded bg-white/10 text-white border border-white/10",children:"Và FProxy"})]}),a.jsxs("div",{className:"flex justify-between items-end",children:[a.jsx("div",{className:"space-y-1",children:a.jsxs("p",{className:"text-2xl font-medium text-emerald-400 tracking-tight",children:[T.price.toLocaleString()," ",a.jsx("span",{className:"text-sm font-medium text-slate-400 ml-1 text-emerald-400",children:"VNÄ"})]})}),a.jsxs("div",{className:"text-right",children:[a.jsx("p",{className:"text-xs text-slate-400 mb-1",children:"Dung lượng má»i"}),a.jsxs("p",{className:"text-lg font-bold text-violet-400",children:["+",T.amount," GB"]})]})]})]})]}),a.jsx("p",{className:"text-[10px] text-slate-400 font-medium italic text-center px-4 leading-relaxed",children:"* Data mua thêm sẽ không hết hạn cho Äến khi Proxy hết hạn."}),a.jsxs("div",{className:"flex gap-3 pt-2",children:[a.jsx("button",{onClick:g,className:"flex-1 py-3.5 bg-slate-100 text-slate-600 font-bold rounded-xl hover:bg-slate-200 transition-all active:scale-95 text-sm",children:"Há»§y bá»"}),a.jsx("button",{onClick:Q,disabled:D,className:"flex-[2] py-3.5 bg-gradient-to-r from-violet-600 to-indigo-600 text-white font-bold rounded-xl shadow-lg shadow-violet-200 hover:shadow-violet-300 transition-all hover:scale-[1.02] active:scale-95 text-sm flex items-center justify-center gap-2 disabled:opacity-50 disabled:scale-100",children:D?a.jsx("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsxs(a.Fragment,{children:["Xác nháºn mua ngay ",a.jsx(zs,{size:18})]})})]})]})]})})},Cb={seq:"Sá» thứ tá»±",name:"Tên & ISP",notes:"Check Trùng",location:"IP Má»i",used:"Äã dùng",connection:"Proxy",auth:"User Auth",info:"Thông tin API",action:"Thao tác"},Go={NORTH:[20,14,38,39,10,26,7,25,24,11,16,23,12,3,5,1,19,4,2,9,8],CENTRAL:[21,43,13,22,27,32,34,29,6,37,36,33,31,28,35,30],SOUTH:[17,41,44,18,46,40,42]},ls=({value:r,onChange:x,options:g,icon:d,headerText:N,className:S="",minWidth:T="min-w-[140px]",maxWidth:H="max-w-[140px]",disabled:D=!1,iconClassName:j,renderLabel:Q,showSearch:A=!1,isMobileMode:J=!1,activeColor:xe="#8b5cf6"})=>{const[me,I]=h.useState(!1),[Se,ae]=h.useState(""),he=h.useRef(null),Me=h.useRef(null);h.useEffect(()=>{const ne=re=>{he.current&&!he.current.contains(re.target)&&I(!1)};return J||document.addEventListener("mousedown",ne),()=>{document.removeEventListener("mousedown",ne),ae("")}},[J]),h.useEffect(()=>{me&&A&&Me.current&&setTimeout(()=>Me.current?.focus(),150)},[me,A]);const Xe=g.find(ne=>String(ne.value)===String(r)&&!ne.isHeader),$e=h.useMemo(()=>{if(!A||!Se.trim())return g;const ne=Se.toLowerCase();return g.filter(re=>re.isHeader||re.label.toLowerCase().includes(ne)||String(re.value).includes(ne))},[g,Se,A]);return a.jsxs("div",{className:`relative ${S} ${T} ${me&&!J?"z-[100]":"z-auto"}`,ref:he,onClick:ne=>ne.stopPropagation(),children:[a.jsxs("button",{onClick:()=>!D&&I(!me),disabled:D,className:`flex items-center justify-between gap-2 px-3 py-1.5 border text-xs leading-[1.2rem] transition-all rounded-none 10 ${me?"border-violet-500 ring-1 ring-violet-500 bg-white shadow-sm":"border-slate-200 hover:border-violet-300 hover:bg-slate-50"} 11 ${D?"bg-slate-50 text-slate-400 cursor-not-allowed":"bg-white text-gray-700 cursor-pointer"} 12 `,children:[a.jsxs("div",{className:"flex items-center gap-2 truncate min-w-[110px] max-w-[110px]",children:[d&&a.jsx(d,{size:14,className:`${j||"text-slate-400"} flex-shrink-0`}),a.jsx("div",{className:"truncate",children:Q?Q(Xe):Xe?.label||"Chá»n..."})]}),a.jsx(is,{size:14,className:`text-slate-400 transition-transform flex-shrink-0 ${me?"rotate-180 text-violet-500":""}`})]}),me&&a.jsx("div",{className:J?"fixed inset-0 z-[200] bg-slate-900/60 backdrop-blur-sm flex flex-col p-4 animate-in fade-in duration-200":"absolute top-full left-0 mt-1 min-w-[158px] max-w-[158px] bg-white border border-slate-200 shadow-xl z-[101] py-1 animate-in fade-in zoom-in duration-100 overflow-hidden rounded-lg",onClick:J?()=>I(!1):void 0,children:a.jsxs("div",{className:J?"bg-white rounded-2xl shadow-2xl w-full max-w-[200px] mx-auto mt-5 flex flex-col max-h-[70vh] overflow-hidden border border-slate-200 animate-in slide-in-from-top-4 duration-300":"contents",onClick:ne=>ne.stopPropagation(),children:[J&&a.jsx("div",{className:"p-3 border-b border-slate-100 flex justify-between items-center bg-slate-50/50 sticky top-0 z-20"}
12),N&&!Se&&!J&&a.jsx("div",{className:"px-3 py-2 border-b border-slate-100 text-[10px] font-bold text-slate-400 uppercase tracking-wider bg-slate-50/50",children:N}),A&&a.jsx("div",{className:`p-2 border-b border-slate-100 bg-white sticky top-0 z-10 ${J?"top-0 shadow-sm":""}`,children:a.jsxs("div",{className:"relative",children:[a.jsx(mn,{size:12,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),a.jsx("input",{ref:Me,type:"text",placeholder:"Tìm kiếm vá» trÃ...",value:Se,onChange:ne=>ae(ne.target.value),className:"w-full pl-8 pr-3 py-2 text-xs outline-none bg-slate-50 rounded-md border border-slate-100 focus:border-violet-300 focus:bg-white transition-all placeholder:text-slate-400 shadow-inner",onClick:ne=>ne.stopPropagation()})]})}),a.jsx("div",{className:`overflow-y-auto custom-scrollbar p-1 ${J?"flex-1 max-h-none":"max-h-[250px]"}`,children:$e.length===0?a.jsxs("div",{className:"py-8 text-center flex flex-col items-center gap-2",children:[a.jsx(rl,{size:24,className:"text-slate-200"}),a.jsx("p",{className:"text-[9px] text-slate-400 font-black uppercase tracking-widest",children:"Không có kết quả"})]}):$e.map((ne,re)=>ne.isHeader?Se.trim()?null:a.jsx("div",{className:"px-3 py-1.5 bg-slate-50 text-[9px] font-black text-slate-500 uppercase tracking-[0.2em] mt-1.5 first:mt-0 rounded-lg mx-1 border border-slate-100/50",children:ne.label},`header-${re}`):a.jsxs("button",{onClick:()=>{x(ne.value),I(!1),ae("")},className:`w-full text-left px-3 py-2 text-xs transition-all flex items-center gap-2 rounded-lg mb-0.5 13 ${String(ne.value)===String(r)?"text-white font-bold shadow-md":"text-slate-700 hover:bg-slate-50"} 14 `,style:String(ne.value)===String(r)?{backgroundColor:xe}:{},children:[ne.icon&&a.jsx(ne.icon,{size:14,className:`${ne.iconClassName?ne.iconClassName:String(ne.value)===String(r)?"text-white":"text-slate-400"}`}),a.jsx("span",{className:"truncate flex-1 tracking-tight",children:ne.label}),String(ne.value)===String(r)&&a.jsx(rt,{size:12,className:"ml-auto flex-shrink-0"})]},ne.value))})]})})]})},zb=({isOpen:r,onClose:x,content:g,title:d})=>{const[N,S]=h.useState(!1);if(!r)return null;const T=()=>{if(g){try{if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(g);else throw new Error("Clipboard API not available")}catch{const D=document.createElement("textarea");D.value=g,document.body.appendChild(D),D.select();try{document.execCommand("copy")}catch(j){console.error("Fallback copy failed",j)}document.body.removeChild(D)}S(!0),setTimeout(()=>S(!1),2e3)}};return a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[80] flex items-center justify-center p-4 animate-in fade-in duration-200",children:a.jsxs("div",{className:"bg-white shadow-2xl w-full max-w-2xl flex flex-col max-h-[90vh] rounded-2xl overflow-hidden border border-white/20",children:[a.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-slate-100 bg-slate-50/50",children:[a.jsxs("h3",{className:"font-bold text-slate-800 flex items-center gap-2",children:[a.jsx(Ct,{size:18,className:"text-violet-600"}),d]}),a.jsx("button",{onClick:x,className:"text-slate-400 hover:text-slate-600 p-1.5 hover:bg-white rounded-full shadow-sm transition-colors",children:a.jsx(ea,{size:20})})]}),a.jsx("div",{className:"p-4 flex-1 overflow-hidden flex flex-col",children:a.jsx("div",{className:"relative flex-1",children:a.jsx("textarea",{className:"w-full h-full min-h-[300px] p-3 border border-slate-200 bg-slate-50 font-mono text-sm text-gray-700 focus:ring-2 focus:ring-violet-500 focus:border-violet-500 outline-none resize-none rounded-xl",value:g,readOnly:!0})})}),a.jsxs("div",{className:"p-4 border-t border-slate-100 bg-slate-50/50 flex justify-end gap-3",children:[a.jsx("button",{onClick:x,className:"px-4 py-2 bg-white border border-slate-200 text-sm font-bold text-slate-700 hover:bg-slate-50 transition-colors rounded-xl shadow-sm",children:"Äóng"}),a.jsxs("button",{onClick:T,className:"px-6 py-2 bg-violet-600 text-white text-sm font-bold hover:bg-violet-700 shadow-md shadow-violet-200 transition-all active:scale-95 flex items-center gap-2 rounded-xl",children:[N?a.jsx(rt,{size:16}):a.jsx(Ct,{size:16}),N?"Äã sao chép":"Sao chép toà n bá»"]})]})]})})},_b=({visibleCols:r,onToggle:x,columnOrder:g,onMove:d})=>{const[N,S]=h.useState(!1),T=h.useRef(null);return h.useEffect(()=>{const H=D=>{T.current&&!T.current.contains(D.target)&&S(!1)};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[]),a.jsxs("div",{className:"relative",ref:T,children:[a.jsx(At,{content:"Cà i Äặt hiá»n thá» & Sắp xếp cá»t",children:a.jsxs("button",{onClick:()=>S(!N),className:`px-4 py-[7px] py-1.5 border border-b-0 sm:border-b text-xs leading-[1.1rem] transition-all flex items-center gap-2 rounded-none 15 ${N?"bg-violet-50 text-violet-600 border-violet-200 ring-1 ring-violet-500":"bg-white border-slate-200 text-slate-500 hover:bg-slate-50 hover:text-slate-700"} 16 `,children:[a.jsx(Tx,{size:16}),a.jsx("span",{className:"font-bold hidden sm:inline",children:"Cá»t"})]})}),N&&a.jsxs("div",{className:"absolute top-full right-0 mt-2 w-64 bg-white border border-slate-200 shadow-xl z-[70] animate-in fade-in zoom-in duration-100 overflow-hidden rounded-xl",children:[a.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50 flex justify-between items-center",children:[a.jsx("span",{className:"text-xs font-bold text-slate-500 tracking-wider",children:"Cà i Äặt Cá»t"}),a.jsx(ea,{size:14,className:"text-slate-400 cursor-pointer hover:text-slate-600",onClick:()=>S(!1)})]}),a.jsx("div",{className:"p-2 space-y-1 max-h-[400px] overflow-y-auto custom-scrollbar-thin",children:g.map((H,D)=>{const j=H==="name"?!0:r[H];return a.jsx("div",{className:"flex flex-col p-1 border border-slate-50 rounded-lg hover:bg-slate-50/50 transition-colors",children:a.jsxs("div",{className:"flex items-center justify-between p-1",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("button",{onClick:()=>d(D,"up"),disabled:D===0,className:"p-0.5 hover:bg-slate-200 rounded disabled:opacity-20",children:a.jsx(is,{size:12,className:"rotate-180"})}),a.jsx("button",{onClick:()=>d(D,"down"),disabled:D===g.length-1,className:"p-0.5 hover:bg-slate-200 rounded disabled:opacity-20",children:a.jsx(is,{size:12})})]}),a.jsx("span",{className:`text-xs font-medium ${j?"text-slate-700":"text-slate-400"}`,children:Cb[H]})]}),H!=="name"&&a.jsx("button",{onClick:()=>x(H),className:`w-9 h-5 rounded-full relative transition-colors duration-200 ${j?"bg-violet-500":"bg-slate-200"}`,children:a.jsx("div",{className:`absolute top-1 w-3 h-3 bg-white rounded-full transition-all duration-200 shadow-sm ${j?"left-5":"left-0.5"}`})})]})},H)})})]})]})},Mb=({orders:r,isLoading:x=!1,onCheckLive:g,onGetNewIp:d,onUpdateLocation:N,onUpdateSettings:S,onRenew:T,onDelete:H,onBulkGetNewIp:D,onShowToast:j,onRefresh:Q,toastSettings:A,onUpdateToastSettings:J})=>{const[xe,me]=h.useState(""),[I,Se]=h.useState("all"),[ae,he]=h.useState(null),[Me,Xe]=h.useState([]),[$e,ne]=h.useState(null),[re,Ke]=h.useState(null),[Le,tt]=h.useState(null),[Ze,je]=h.useState(1),[Be,St]=h.useState(10),[oe,v]=h.useState("asc"),[G,ce]=h.useState(!1),[pe,ze]=h.useState(()=>localStorage.getItem("proxy_mobile_mode")==="true"),[f,E]=h.useState(()=>localStorage.getItem("proxy_used_color")||"#10b981"),[U,V]=h.useState(()=>localStorage.getItem("proxy_primary_color")||"#8b5cf6"),[ue,we]=h.useState(()=>localStorage.getItem("proxy_auto_mark_used")!=="false"),[Y,P]=h.useState(()=>localStorage.getItem("proxy_used_bg_color")||"transparent"),[ye,Qe]=h.useState(()=>Number(localStorage.getItem("proxy_used_icon_size"))||24),[qe,Fe]=h.useState(()=>localStorage.getItem("proxy_seq_color")||"#64748b"),[it,Rt]=h.useState(()=>Number(localStorage.getItem("proxy_seq_size"))||12),[te,ct]=h.useState(()=>Number(localStorage.getItem("proxy_font_size"))||12),[zt,Gt]=h.useState(()=>Number(localStorage.getItem("auth_font_size"))||12),[ft,K]=h.useState(!1),F=h.useRef(null),[W,Re]=h.useState(new Set),[De,Je]=h.useState(!1),[kt,Vt]=h.useState(!1),[yt,B
16]=h.useState(!1),[le,de]=h.useState(""),[ve,mt]=h.useState(""),ot=h.useRef(null),Ee=h.useRef(null),[Et,ha]=h.useState(new Set),[la,Qa]=h.useState(()=>{const u=localStorage.getItem("used_proxy_ids");if(u)try{return new Set(JSON.parse(u))}catch{}return new Set});h.useEffect(()=>{localStorage.setItem("used_proxy_ids",JSON.stringify(Array.from(la)))},[la]);const b=(u,X)=>{X?.stopPropagation(),Qa($=>{const be=new Set($);return be.has(u)?be.delete(u):be.add(u),be})},[q,ee]=h.useState(()=>{const u=localStorage.getItem("proxyTableCols");if(u)try{return JSON.parse(u)}catch{}return{seq:!1,notes:!0,location:!0,used:!0,connection:!0,auth:!0,info:!0,action:!0}}),[Te,Ce]=h.useState(()=>{const u=localStorage.getItem("proxyTableColumnOrder");if(u)try{return JSON.parse(u)}catch{}return["seq","name","notes","location","used","connection","auth","info","action"]}),Zt=(u,X)=>{const $=[...Te],be=X==="up"?u-1:u+1;be<0||be>=$.length||([$[u],$[be]]=[$[be],$[u]],Ce($),localStorage.setItem("proxyTableColumnOrder",JSON.stringify($)))},pt=u=>{ee(X=>{const $={...X,[u]:!X[u]};return localStorage.setItem("proxyTableCols",JSON.stringify($)),$})};h.useEffect(()=>{const u=()=>{window.innerWidth>=1024&&pe&&(ze(!1),localStorage.setItem("proxy_mobile_mode","false"))};u();const X=()=>{u()};window.addEventListener("resize",X),(async()=>{try{const ie=await He.proxy.getLocations();Xe(ie)}catch(ie){console.error("Failed to load locations",ie)}})();const be=ie=>{ot.current&&!ot.current.contains(ie.target)&&Je(!1),Ee.current&&!Ee.current.contains(ie.target)&&Vt(!1),F.current&&!F.current.contains(ie.target)&&K(!1)};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be),window.removeEventListener("resize",X)}},[pe]);const _e=h.useMemo(()=>{const u={value:0,label:"0. Ngẫu nhiên",icon:aa},X=Me.filter($=>$.id!==0);if(G){const $=Pe=>X.find(Ht=>Ht.id===Pe),be=Go.NORTH.map(Pe=>$(Pe)).filter(Pe=>Pe!==void 0),ie=Go.CENTRAL.map(Pe=>$(Pe)).filter(Pe=>Pe!==void 0),at=Go.SOUTH.map(Pe=>$(Pe)).filter(Pe=>Pe!==void 0),vt=[u];return be.length>0&&(vt.push({value:"h-north",label:"--- Miá»n Bắc ---",isHeader:!0}),vt.push({value:-1,label:"Ngẫu nhiên Miá»n Bắc",icon:ss,iconClassName:"text-indigo-500"}),vt.push(...be.map(Pe=>({value:Pe.id,label:`${Pe.id}. ${Pe.name}`,icon:aa})))),ie.length>0&&(vt.push({value:"h-central",label:"--- Miá»n Trung ---",isHeader:!0}),vt.push({value:-2,label:"Ngẫu nhiên Miá»n Trung",icon:ss,iconClassName:"text-amber-500"}),vt.push(...ie.map(Pe=>({value:Pe.id,label:`${Pe.id}. ${Pe.name}`,icon:aa})))),at.length>0&&(vt.push({value:"h-south",label:"--- Miá»n Nam ---",isHeader:!0}),vt.push({value:-3,label:"Ngẫu nhiên Miá»n Nam",icon:ss,iconClassName:"text-emerald-500"}),vt.push(...at.map(Pe=>({value:Pe.id,label:`${Pe.id}. ${Pe.name}`,icon:aa})))),vt}else return[u,...X.map($=>({value:$.id,label:`${$.id}. ${$.name}`,icon:aa}))]},[Me,G]),k=h.useMemo(()=>r.filter(X=>{const $=xe.toLowerCase(),be=X.name?.toLowerCase()||"",ie=X.proxy_orders||"",at=X.user?.toLowerCase()||"",vt=X.api_trans_id?.toLowerCase()||"",Pe=X.api_key?.toLowerCase()||"",Ht=X.ghichu?.toLowerCase()||"",dl=ie.includes($)||be.includes($)||vt.includes($)||at.includes($)||Pe.includes($)||Ht.includes($);let ka=!0;return I==="running"?ka=X.trangthai_hethan==="1":I==="expired"&&(ka=X.trangthai_hethan!=="1"),dl&&ka}).sort((X,$)=>oe==="asc"?X.id-$.id:$.id-X.id),[r,xe,I,oe]),Ae=Math.ceil(k.length/Be),dt=k.slice((Ze-1)*Be,Ze*Be),Ut=()=>{const u=dt.map(be=>be.id),X=u.every(be=>W.has(be)),$=new Set(W);X?u.forEach(be=>$.delete(be)):u.forEach(be=>$.add(be)),Re($)},na=u=>{const X=new Set(W);X.has(u)?X.delete(u):X.add(u),Re(X)},Ha=()=>r.filter(u=>W.has(u.id)),pa=u=>{const X=Ha();let $="",be="";switch(u){case"apikey":$=X.map(ie=>ie.api_key||"").filter(Boolean).join(` 17`),be=`Danh sách ${X.length} API Key`;break;case"http":$=X.map(ie=>ie.proxy_orders&&ie.port_orders?`${ie.proxy_orders}:${ie.port_orders}
17`:"").filter(Boolean).join(` 18`),be=`Danh sách ${X.length} HTTP Proxy (IP:Port)`;break;case"sock":$=X.map(ie=>ie.proxy_orders&&ie.port_sock?`${ie.proxy_orders}:${ie.port_sock}`:"").filter(Boolean).join(` 19`),be=`Danh sách ${X.length} SOCKS Proxy (IP:Port)`;break;case"http_full":$=X.map(ie=>ie.proxy_orders&&ie.port_userpass&&ie.user&&ie.pass?`${ie.proxy_orders}:${ie.port_userpass}:${ie.user}:${ie.pass}`:"").filter(Boolean).join(` 20`),be=`Danh sách ${X.length} HTTP Full (IP:Port:User:Pass)`;break;case"sock_full":$=X.map(ie=>ie.proxy_orders&&ie.port_sockuserpass&&ie.user&&ie.pass?`${ie.proxy_orders}:${ie.port_sockuserpass}:${ie.user}:${ie.pass}`:"").filter(Boolean).join(` 21`),be=`Danh sách ${X.length} SOCKS Full (IP:Port:User:Pass)`;break}de($),mt(be),B(!0),Je(!1)},se=u=>{const X=Ha();X.length!==0&&(u==="renew"?T(X):u==="delete"?H(X):u==="newip"&&(D(X),Qa($=>{const be=new Set($);return X.forEach(ie=>be.delete(ie.id)),be})),Vt(!1))},Dt=(u,X,$,be)=>{if(be.stopPropagation(),!!u){try{if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(u);else throw new Error("Clipboard API not available")}catch{const at=document.createElement("textarea");at.value=u,at.style.position="fixed",at.style.left="-9999px",at.style.top="0",document.body.appendChild(at),at.select();try{document.execCommand("copy")}catch(vt){console.error("Fallback copy failed",vt)}document.body.removeChild(at)}he(X),ue&&Qa(ie=>{const at=new Set(ie);return at.add($),at}),j("success","Sao chép và o clipboard"),setTimeout(()=>he(null),1500)}},fn=(u,X)=>{N(u,X)},Xa=async(u,X)=>{X.stopPropagation(),tt(null),ne(u.id);const $=u.vitri_orders?Number(u.vitri_orders):0,be=await d(u,$);ne(null),be?Qa(ie=>{const at=new Set(ie);return at.delete(u.id),at}):(tt(u.id),setTimeout(()=>tt(null),3e3))},Jt=(u,X)=>{S(u,"time_checktrung",X)},ia=(u,X)=>{if(X==="4"&&u.product_id!==6&&u.product_id!==7){j("error","Gói nà y không có 4G");return}S(u,"domain",X),(X==="3"||X==="4")&&N(u,0)},ol=(u,X)=>{const $=X.target.value,be=u.ghichu||"";$!==be&&S(u,"ghichu",$)},Es=(u,X)=>{X.key==="Enter"&&X.currentTarget.blur()},di=(u,X)=>{X.stopPropagation();const $=new Set(Et);$.has(u)?$.delete(u):$.add(u),ha($)},zc=()=>{v(u=>u==="asc"?"desc":"asc")},pn=u=>{if(!u||u==="0"||u===0)return"N/A";let X;if(/^\d+$/.test(String(u))){let Ht=Number(u);Ht<1e10&&(Ht*=1e3),X=new Date(Ht)}else X=new Date(u);if(isNaN(X.getTime()))return"Invalid Date";const be=X.getHours().toString().padStart(2,"0"),ie=X.getMinutes().toString().padStart(2,"0"),at=X.getDate().toString().padStart(2,"0"),vt=(X.getMonth()+1).toString().padStart(2,"0"),Pe=X.getFullYear();return`${be}:${ie} ${at}/${vt}/${Pe}`},Za=u=>{if(u<1024)return`${u} B`;const X=u/1024;if(X<1024)return`${X.toLocaleString(void 0,{maximumFractionDigits:1})} KB`;const $=X/1024;return $<1024?`${$.toLocaleString(void 0,{maximumFractionDigits:1})} MB`:`${($/1024).toLocaleString(void 0,{maximumFractionDigits:2})} GB`},os=u=>{const X=Number(u.data)||0,$=Number(u.today_used_bytes)||0;if(String(u.domain)==="4"){const ie=(Number(u.base_limit_bytes)||0)+(Number(u.bonus_limit_bytes)||0);if(ie>0)return`Ngà y: ${Za($)} / ${Za(ie)} (Tá»ng: ${Za(X)})`}return`Tá»ng: ${Za(X)}${$>0?` (Ngà y: ${Za($)})`:""}`},Ja=u=>{if(!(String(u.domain)==="4"))return!1;const $=(Number(u.base_limit_bytes)||0)+(Number(u.bonus_limit_bytes)||0);return $>0&&(Number(u.today_used_bytes)||0)>=$},tl=dt.length>0&&dt.every(u=>W.has(u.id)),Al=dt.some(u=>W.has(u.id))&&!tl,El=()=>{const u=!pe;ze(u),localStorage.setItem("proxy_mobile_mode",String(u)),j("success",u?"Äã báºt Chế Äá» xem Mobile":"Äã vá» Chế Äá» bảng thưá»ng")},Yt=u=>{E(u),localStorage.setItem("proxy_used_color",u)},gn=u=>{P(u),localStorage.setItem("proxy_used_bg_color",u)},bn=u=>{V(u),localStorage.setItem("proxy_primary_color",u)},al=u=>{Fe(u),localStorage.setItem("proxy_seq_color",u)},Ol=()=>{const u=!ue;we(u),localStorage.setItem("proxy_auto_mark_used",String(u))},_c=()=>{V("#8b5cf6"),E("#10b981"),P("transparent"),Qe(24),Fe("#64748b"),Rt(12),ct(12),Gt(12),we(!0),Ce(["seq","name","notes","location","used","connection","auth","info","action"]),localStorage.removeItem("proxy_primary_color"),localStorage.removeItem("proxy_used_color"),localStorage.removeItem("proxy_used_bg_color"),localStorage.removeItem("proxy_auto_mark_used"),localStorage.removeItem("proxy_used_icon_size"),localStorage.removeItem("proxy_seq_color"),localStorage.removeItem("proxy_seq_size"),localStorage.removeItem("proxy_font_size"),localStorage.removeItem("proxy_auth_font_size"),localStorage.removeItem("proxy_font_size"),localStorage.removeItem("auth_font_size"),localStorage.removeItem("proxyTableColumnOrder"),j("success","Äã khôi phục cà i Äặt gá»c")},Os=[{name:"Emerald",value:"#10b981"},{name:"Blue",value:"#3b82f6"},{name:"Violet",value:"#8b5cf6"},{name:"Rose",value:"#f43f5e"},{name:"Amber",value:"#f59e0b"},{name:"Indigo",value:"#6366f1"},{name:"Cyan",value:"#06b6d4"},{name:"Pink",value:"#ec4899"},{name:"Slate",value:"#64748b"},{name:"Orange",value:"#f97316"},{name:"Teal",value:"#14b8a6"},{name:"Yellow",value:"#FFFF00"}];return a.jsxs("div",{className:"bg-white/80 backdrop-blur-md rounded-[15p
21x] shadow-sm border border-white/60 flex flex-col h-full min-h-[820px] overflow-hidden relative",children:[a.jsx(zb,{isOpen:yt,onClose:()=>B(!1),content:le,title:ve}),a.jsxs("div",{className:"px-5 py-5 border-b border-slate-100 flex flex-col lg:flex-row gap-3 justify-center sm:justify-between items-center bg-white/50",children:[a.jsxs("div",{className:"flex items-center gap-4 text-sm w-full lg:w-auto justify-center lg:justify-start",children:[a.jsxs("div",{className:"flex items-center gap-2 text-slate-500",children:[a.jsx("button",{onClick:Ut,className:"hover:text-violet-600 transition-colors focus:outline-none hidden sm:block text-slate-500/60 -ml-[5px]",title:"Chá»n tất cả",children:tl?a.jsx(Ts,{size:20,className:"text-violet-600"}):Al?a.jsxs("div",{className:"relative",children:[a.jsx(el,{size:20}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-2.5 h-2.5 bg-violet-600 rounded-sm"})})]}):a.jsx(el,{size:20})}),a.jsxs("div",{className:"hidden sm:block",children:["Tá»ng ",a.jsx("span",{className:"font-nomal text-slate-800",children:k.length})]})]}),a.jsxs("div",{className:"flex gap-2 lg:w-auto",children:[a.jsxs("div",{className:"relative flex-1 lg:flex-none",ref:ot,children:[a.jsxs("button",{onClick:()=>W.size>0&&Je(!De),disabled:W.size===0,className:`flex items-center gap-2 px-3 py-1.5 border font-bold transition-all w-full justify-between min-w-[160px] sm:min-w-[160px] rounded-none 22 text-xs leading-[1.2rem] 23 ${W.size>0?"shadow-sm cursor-pointer":"bg-slate-50 text-slate-300 border-slate-100 cursor-not-allowed"}`,style:W.size>0?{backgroundColor:`${U}10`,color:U,borderColor:`${U}30`}:{},children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ct,{size:14}),a.jsxs("span",{className:"sm:hidden",children:["Sao chép (",W.size,")"]}),a.jsxs("span",{className:"hidden sm:inline",children:["Sao chép Äã chá»n (",W.size,")"]})]}),a.jsx(is,{size:14,className:`transition-transform ${De?"rotate-180":""}`})]}),De&&a.jsxs("div",{className:"absolute top-full left-0 mt-1 w-full bg-white border border-slate-200 shadow-xl z-[60] py-1 animate-in fade-in zoom-in duration-100 overflow-hidden rounded-lg",children:[a.jsx("div",{className:"px-3 py-2 border-b border-slate-100 text-[10px] font-semibold text-slate-400 uppercase tracking-wider bg-slate-50/50",children:"Chá»n Äá»nh dạng copy"}),a.jsxs("button",{onClick:()=>pa("apikey"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-violet-50 hover:text-violet-600 transition-colors flex items-center gap-2",children:[a.jsx(Cc,{size:14})," Api Key"]}),a.jsxs("button",{onClick:()=>pa("http"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-violet-50 hover:text-violet-600 transition-colors flex items-center gap-2",children:[a.jsx("span",{className:"font-bold text-[10px] bg-blue-100 text-blue-600 px-1 rounded-sm",children:"HTTP"}),"IP:Port"]}),a.jsxs("button",{onClick:()=>pa("sock"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-violet-50 hover:text-violet-600 transition-colors flex items-center gap-2",children:[a.jsx("span",{className:"font-bold text-[10px] bg-orange-100 text-orange-600 px-1 rounded-sm",children:"SOCK"}),"IP:Port"]}),a.jsxs("button",{onClick:()=>pa("http_full"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-violet-50 hover:text-violet-600 transition-colors flex items-center gap-2 whitespace-nowrap overflow-hidden text-ellipsis",children:[a.jsx(zl,{size:14})," HTTP Full"]}),a.jsxs("button",{onClick:()=>pa("sock_full"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-violet-50 hover:text-violet-600 transition-colors flex items-center gap-2 whitespace-nowrap overflow-hidden text-ellipsis",children:[a.jsx(ua,{size:14})," SOCK Full"]})]})]}),a.jsxs("div",{className:"relative flex-1 lg:flex-none",ref:Ee,children:[a.jsxs("button",{onClick:()=>W.size>0&&Vt(!kt),disabled:W.size===0,className:`flex items-center gap-2 px-3 py-1.5 border font-bold transition-all w-full justify-between min-w-[160px] sm:min-w-[160px] rounded-none 24 text-xs leading-[1.2rem] 25 ${W.size>0?"shadow-sm cursor-pointer":"bg-slate-50 text-slate-300 border-slate-100 cursor-not-allowed"}`,style:W.size>0?{backgroundColor:`${U}10`,color:U,borderColor:`${U}30`}:{},children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ed,{size:14}),a.jsx("span",{className:"sm:hidden",children:"Thao tác"}),a.jsx("span",{className:"hidden sm:inline",children:"Thao tác Äã chá»n"})]}),a.jsx(is,{size:14,className:`transition-transform ${kt?"rotate-180":""}`})]}),kt&&a.jsxs("div",{className:"absolute top-full left-0 mt-1 w-full bg-white border border-slate-200 shadow-xl z-[60] py-1 animate-in fade-in zoom-in duration-100 overflow-hidden rounded-lg",children:[a.jsx("div",{className:"px-3 py-2 border-b border-slate-100 text-[10px] font-semibold text-slate-400 uppercase tracking-wider bg-slate-50/50",children:"Chá»n hà nh Äá»ng"}),a.jsxs("button",{onClick:()=>se("newip"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-emerald-50 hover:text-emerald-600 transition-colors flex items-center gap-2",children:[a.jsx(Xt,{size:14})," Lấy IP Má»i"]}),a.jsxs("button",{onClick:()=>se("renew"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-blue-50 hover:text-blue-600 transition-colors flex items-center gap-2",children:[a.jsx(Sa,{size:14})," Gia hạn"]}),a.jsxs("button",{onClick:()=>se("delete"),className:"w-full text-left px-3 py-2 text-xs text-slate-700 hover:bg-rose-50 hover:text-rose-600 transition-colors flex items-center gap-2",children:[a.jsx(_l,{size:14})," Xóa"]})]})]})]})]}),a.jsxs("div",{className:"flex flex-row gap-2 w-full lg:w-auto justify-center sm:justify-center",children:[a.jsxs("div",{className:"relative flex-1 sm:w-64 hidden sm:block",children:[a.jsx("div",{className:"absolute inset-y-0 left-0 pl-2.5 flex items-center pointer-events-none",children:a.jsx(mn,{className:"h-4 w-4 text-slate-400"})}),a.jsx("input",{type:"text",className:"block w-full pl-9 pr-3 py-1.5 border border-[#eaedf1] text-sm focus:outline-none focus:ring-1 focus:ring-violet-500 focus:border-violet-500 transition-all rounded-none bg-white/50 focus:bg-white",placeholder:"Tìm ghi chú...",value:xe,onChange:u=>{me(u.target.value),je(1)}})]}),a.jsx("button",{onClick:Ut,className:`hover:text-violet-600 transition-colors focus:outline-none\r
26block sm:hidden p-1.5 -ml-2 rounded-none\r 27text-slate-400\r 28`,title:"Chá»n tất cả",children:tl?a.jsx(Ts,{size:20,className:"text-violet-600"}):Al?a.jsxs("div",{className:"relative",children:[a.jsx(el,{size:20}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-2.5 h-2.5 bg-violet-600 rounded-sm"})})]}):a.jsx(el,{size:20})}),a.jsx(At,{content:oe==="asc"?"Sắp xếp: Má»i nhất á» dưá»i":"Sắp xếp: Má»i nhất lên trên",children:a.jsx("button",{onClick:zc,className:"hidden sm:flex px-3 py-1.5 border border-[#eaedf1] bg-white/50 hover:bg-white hover:border-violet-300 transition-all items-center justify-center text-slate-500 hover:text-violet-600 min-w-[40px] rounded-none",children:oe==="asc"?a.jsx(fx,{size:16}):a.jsx(px,{size:16})})}),a.jsx(At,{content:pe?"Vá» giao diá»n bảng thưá»ng":"Báºt giao diá»n Mobile tá»i ưu",children:a.jsxs("button",{onClick:El,className:`relative px-3 py-1.5 border transition-all flex items-center justify-center min-w-[40px] rounded-none sm:hidden 29 ${pe?"bg-amber-50 border-amber-300 text-amber-600 shadow-sm":"bg-white border-amber-200 text-amber-500 animate-pulse shadow-[0_0_10px_rgba(245,158,11,0.4)]"} 30 `,children:[a.jsx(eb,{size:16}),a.jsx("span",{className:"absolute -top-2 -right-2 bg-rose-600 text-white text-[8px] font-black px-1 rounded-sm border border-white shadow-sm leading-tight",children:"MOBILE"})]})}),a.jsx(At,{content:G?"Tắt xếp theo miá»n":"Xếp vá» trà theo miá»n",children:a.jsx("button",{onClick:()=>ce(!G),className:`px-3 py-1.5 border transition-all items-center justify-center min-w-[40px] rounded-none hidden sm:flex 31 ${G?"bg-indigo-50 border-indigo-200 text-indigo-600":"border-[#eaedf1] bg-white text-gray-500 hover:bg-white hover:border-violet-300 hover:text-violet-600"} 32 `,children:a.jsx(ss,{size:16})})}),a.jsx(ls,{value:I,onChange:u=>{Se(u),je(1)},icon:Wo,minWidth:"min-w-[110px] sm:min-w-[150px]",options:[{value:"all",label:"All trạng thái"},{value:"running",label:"Hoạt Äá»ng",icon:rt},{value:"expired",label:"Hết hạn",icon:rl}],isMobileMode:pe,activeColor:U}),a.jsx(ls,{value:Be,onChange:u=>{St(Number(u)),je(1)},icon:jx,minWidth:"min-w-[100px] sm:min-w-[150px]",options:[{value:10,label:"10 dòng"},{value:20,label:"20 dòng"},{value:50,label:"50 dòng"},{value:100,label:"100 dòng"}],isMobileMode:pe,activeColor:U}),a.jsx(_b,{visibleCols:q,onToggle:pt,columnOrder:Te,onMove:Zt}),a.jsxs("div",{className:"relative",ref:F,children:[a.jsx(At,{content:"Cà i Äặt tùy chá»nh",children:a.jsxs("button",{onClick:()=>K(!ft),className:`px-3 py-[7px] py-1.5 border border-b-0 sm:border-b text-xs leading-[1.2rem] transition-all flex items-center justify-center min-w-[40px] rounded-none gap-2 33 ${ft?"bg-violet-50 text-violet-600 border-violet-200 ring-1 ring-violet-500":"bg-white border-slate-200 text-slate-500 hover:bg-slate-50 hover:text-slate-700"} 34 `,children:[a.jsx(Qg,{size:16,className:`${ft?"animate-spin-slow":""}`}),a.jsx("div",{className:"w-3 h-3 rounded-full border border-slate-200",style:{backgroundColor:U}})]})}),ft&&a.jsxs("div",{className:"absolute top-full right-0 mt-2 w-64 bg-white border border-slate-200 shadow-2xl z-[100] animate-in fade-in zoom-in duration-150 rounded-xl overflow-hidden",children:[a.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50 flex justify-between items-center",children:[a.jsx("span",{className:"text-xs font-bold text-slate-500 tracking-wider",children:"Cà i Äặt tùy chá»nh"}),a.jsx(ea,{size:14,className:"text-slate-400 cursor-pointer hover:text-slate-600",onClick:()=>K(!1)})]}),a.jsxs("div",{className:"p-4 space-y-5 max-h-[400px] overflow-y-auto custom-scrollbar-thin",children:[a.jsxs("div",{className:"flex items-center justify-between p-2.5 bg-slate-50 rounded-xl border border-slate-100",children:[a.jsxs("div",{className:"flex flex-col",children:[a.jsx("span",{className:"text-[10px] font-medium text-slate-500 tracking-tight",children:"Tá»± Äá»ng Äánh dấu khi sao chép"}),a.jsx("span",{className:"text-[8px] text-slate-400",children:"Chức nÄng nà y giúp phân biá»t Äã lấy proxy"})]}),a.jsx("button",{onClick:Ol,className:`w-9 h-5 relative transition-colors duration-200 rounded-full ${ue?"bg-emerald-500":"bg-slate-300"}`,children:a.jsx("div",{className:`absolute top-1 w-3 h-3 bg-white rounded-full transition-all duration-200 shadow-sm ${ue?"left-5":"left-1"}`})})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-400 tracking-widest mb-2.5 block",children:"Mà u chá»§ Äạo (Nút & Chữ)"}),a.jsx("div",{className:"grid grid-cols-6 gap-1.5 mb-3",children:Os.map(u=>a.jsx("button",{onClick:()=>bn(u.value),className:`w-full aspect-square rounded-md border-2 transition-all transform hover:scale-110 ${U===u.value?"border-slate-800 scale-105 shadow-md":"border-transparent"}`,style:{backgroundColor:u.value},title:u.name},`primary-${u.value}`))}),a.jsxs("div",{className:"flex items-center gap-2 p-2 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx("input",{type:"color",value:U,onChange:u=>bn(u.target.value),className:"w-6 h-6 rounded cursor-pointer border-none bg-transparent"}),a.jsx("span",{className:"text-[10px] font-mono text-slate-500 uppercase",children:U})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-400 tracking-widest mb-2.5 block",children:"Mà u Dấu Check Äã dùng"}),a.jsx("div",{className:"grid grid-cols-6 gap-1.5 mb-3",children:Os.map(u=>a.jsx("button",{onClick:()=>Yt(u.value),className:`w-full aspect-square rounded-md border-2 transition-all transform hover:scale-110 ${f===u.value?"border-slate-800 scale-105 shadow-md":"border-transparent"}`,style:{backgroundColor:u.value},title:u.name},`used-${u.value}`))}),a.jsxs("div",{className:"flex items-center gap-2 p-2 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx("input",{type:"color",value:f,onChange:u=>Yt(u.target.value),className:"w-6 h-6 rounded cursor-pointer border-none bg-transparent"}),a.jsx("span",{className:"text-[10px] font-mono text-slate-500 uppercase",children:f})]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-400 tracking-widest block",children:"KÃch thưá»c Dấu Check"}),a.jsxs("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-100 px-1.5 py-0.5 rounded",children:[ye,"px"]})]}),a.jsx("input",{type:"range",min:"16",max:"36",step:"2",value:ye,onChange:u=>{const X=Number(u.target.value);Qe(X),localStorage.setItem("proxy_used_icon_size",String(X))},className:"w-full h-1.5 bg-slate-200 rounded-lg appearance-none cursor-pointer accent-violet-500"}),a.jsxs("div",{className:"flex justify-between mt-1",children:[a.jsx("span",{className:"text-[8px] text-slate-400",children:"16px"}),a.jsx("span",{className:"text-[8px] text-slate-400",children:"36px"})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-400 tracking-widest mb-2.5 block",children:"Mà u Ná»n Proxy Äã dùng"}),a.jsxs("div",{className:"flex items-center gap-2 p-2 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx("input",{type:"color",value:Y==="transparent"?"#ffffff"
34:Y,onChange:u=>gn(u.target.value),className:"w-6 h-6 rounded cursor-pointer border-none bg-transparent"}),a.jsx("span",{className:"text-[10px] font-mono text-slate-500",children:Y==="transparent"?"Trong suá»t":Y}),Y!=="transparent"&&a.jsx("button",{onClick:()=>gn("transparent"),className:"ml-auto text-[10px] text-rose-500 font-bold hover:underline",children:"Xóa"})]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-400 tracking-widest mb-2.5 block",children:"Mà u Sá» thứ tá»±"}),a.jsx("div",{className:"grid grid-cols-6 gap-1.5 mb-3",children:Os.map(u=>a.jsx("button",{onClick:()=>al(u.value),className:`w-full aspect-square rounded-md border-2 transition-all transform hover:scale-110 ${qe===u.value?"border-slate-800 scale-105 shadow-md":"border-transparent"}`,style:{backgroundColor:u.value},title:u.name},`seq-${u.value}`))}),a.jsxs("div",{className:"flex items-center gap-2 p-2 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx("input",{type:"color",value:qe,onChange:u=>al(u.target.value),className:"w-6 h-6 rounded cursor-pointer border-none bg-transparent"}),a.jsx("span",{className:"text-[10px] font-mono text-slate-500 uppercase",children:qe})]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-400 tracking-widest block",children:"KÃch thưá»c Sá» thứ tá»±"}),a.jsxs("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-100 px-1.5 py-0.5 rounded",children:[it,"px"]})]}),a.jsx("input",{type:"range",min:"8",max:"15",step:"1",value:it,onChange:u=>{const X=Number(u.target.value);Rt(X),localStorage.setItem("proxy_seq_size",String(X))},className:"w-full h-1.5 bg-slate-200 rounded-lg appearance-none cursor-pointer accent-violet-500"}),a.jsxs("div",{className:"flex justify-between mt-1",children:[a.jsx("span",{className:"text-[8px] text-slate-400",children:"8px"}),a.jsx("span",{className:"text-[8px] text-slate-400",children:"15px"})]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-500 tracking-widest block",children:"Cỡ chữ Proxy"}),a.jsxs("span",{className:"text-[10px] font-bold text-violet-600 bg-violet-50 px-1.5 py-0.5 rounded",children:[te,"px"]})]}),a.jsx("input",{type:"range",min:"8",max:"24",step:"1",value:te,onChange:u=>{const X=Number(u.target.value);ct(X),localStorage.setItem("proxy_font_size",String(X))},className:"w-full h-1.5 bg-slate-200 rounded-lg appearance-none cursor-pointer accent-violet-500"})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsx("label",{className:"text-[10px] font-medium text-slate-500 tracking-widest block",children:"Cỡ chữ Auth"}),a.jsxs("span",{className:"text-[10px] font-bold text-violet-600 bg-violet-50 px-1.5 py-0.5 rounded",children:[zt,"px"]})]}),a.jsx("input",{type:"range",min:"8",max:"24",step:"1",value:zt,onChange:u=>{const X=Number(u.target.value);Gt(X),localStorage.setItem("auth_font_size",String(X))},className:"w-full h-1.5 bg-slate-200 rounded-lg appearance-none cursor-pointer accent-violet-500"})]}),a.jsxs("div",{className:"border-t border-slate-100 pt-3 mt-1 space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between p-2 rounded-lg bg-slate-50/50",children:[a.jsxs("label",{className:"text-[10px] font-medium text-slate-500 tracking-widest flex items-center gap-2",children:[a.jsx(Ka,{size:12,className:"text-orange-500"})," Ẩn/Hiá»n thông báo mất Äiá»n"]}),a.jsx("button",{onClick:()=>J?.({showPowerAlerts:!A?.showPowerAlerts}),className:`relative inline-flex h-5 w-10 items-center rounded-full transition-colors focus:outline-none ring-1 ring-inset ${A?.showPowerAlerts?"bg-emerald-500 ring-emerald-600/10":"bg-slate-200 ring-slate-300"}`,children:a.jsx("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${A?.showPowerAlerts?"translate-x-6":"translate-x-1"}`})})]}),a.jsxs("div",{children:[a.jsxs("label",{className:"text-[10px] font-medium text-slate-500 tracking-widest mb-2.5 block flex items-center gap-2",children:[a.jsx(Ih,{size:12,className:"text-violet-500"})," Vá» trà hiá»n thá» thông báo"]}),a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsxs("button",{onClick:()=>J?.({position:"right-top"}),className:`flex items-center justify-center gap-2 px-2 py-2 rounded-lg border text-[10px] font-bold transition-all 35 ${A?.position==="right-top"?"bg-violet-600 text-white border-violet-600 shadow-sm":"bg-white text-slate-600 border-slate-200 hover:border-violet-300"} 36 `,children:[a.jsx(_g,{size:12})," Bên phải"]}),a.jsxs("button",{onClick:()=>J?.({position:"center-top"}),className:`flex items-center justify-center gap-2 px-2 py-2 rounded-lg border text-[10px] font-bold transition-all 37 ${A?.position==="center-top"?"bg-violet-600 text-white border-violet-600 shadow-sm":"bg-white text-slate-600 border-slate-200 hover:border-violet-300"} 38 `,children:[a.jsx(Ih,{size:12})," ChÃnh giữa"]})]})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between items-center mb-2",children:[a.jsxs("label",{className:"text-[10px] font-medium text-slate-500 tracking-widest block flex items-center gap-2",children:[a.jsx(Sa,{size:12,className:"text-rose-500"})," Tá»± Äóng cảnh báo mất Äiá»n"]}),a.jsx("span",{className:"text-[10px] font-bold text-rose-600 bg-rose-50 px-1.5 py-0.5 rounded",children:A?.alertDuration===0?"Tắt":`${A?.alertDuration}s`})]}),a.jsx("input",{type:"range",min:"0",max:"60",step:"5",value:A?.alertDuration??10,onChange:u=>J?.({alertDuration:Number(u.target.value)}),className:"w-full h-1.5 bg-slate-200 rounded-lg appearance-none cursor-pointer accent-rose-500"}),a.jsxs("div",{className:"flex justify-between mt-1 px-1",children:[a.jsx("span",{className:"text-[8px] text-slate-400",children:"Tắt"}),a.jsx("span",{className:"text-[8px] text-slate-400",children:"60s"})]}),a.jsx("p",{className:"text-[8px] text-slate-400 mt-1 italic",children:"* 0s = Không tá»± Äá»ng Äóng thông báo khu vá»±c mất kết ná»i"})]})]}),a.jsx("button",{onClick:_c,className:"w-full py-2 mt-2 border border-dashed border-slate-200 rounded-lg text-[10px] font-medium text-slate-400 hover:text-rose-500 hover:border-rose-200 transition-all tracking-widest",children:"Khôi phục mặc Äá»nh"})]}),a.jsx("div",{className:"p-3 bg-slate-50 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[9px] text-slate-400 font-medium italic",children:"Kéo xuá»ng dưá»i Äá» tùy chá»nh thêm"})})]})]})]})]}),a.jsx("div",{className:"flex-1 overflow-auto bg-slate-50/50",children:a.jsx("table",{className:`min-w-full divide-y divide-slate-200 border-separate border-spacing-0 ${pe?"md:table":""}`,children:a.jsx("tbody",{className:`bg-white divide-y divide-slate-100 ${pe?"flex flex-col md:table-row-group":""}`,children:x?a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"px-6 py-20 text-center bg-white/50",children:a.jsx("div",{className:"flex flex-col items-center justify-center text-slate-400 gap-3",children:a.jsx("div",{className:"w-8 h-8 border-2 border-violet-600 border-t-transparent roun
38ded-full animate-spin"})})})}):dt.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"px-6 py-12 text-center bg-white/50"})}):dt.map((u,X)=>{const $=`ord-${u.id}`,be=$e===u.id,ie=Le===u.id,at=u.vitri_orders?Number(u.vitri_orders):0,vt=W.has(u.id),Pe=la.has(u.id),Ht=u.trangthai_hethan==="1",dl=Ht?"#3cb72c":"#ef4444",ka=u.time_checktrung==="172800",ui=String(u.domain)==="4",Lt=u.domain==="1"?"1":u.domain==="2"?"2":u.domain==="3"?"3":u.domain==="4"?"4":"0",ll=Et.has(u.id),La=u.proxy_orders&&u.port_orders?`${u.proxy_orders}:${u.port_orders}`:"",Ta=u.proxy_orders&&u.port_sock?`${u.proxy_orders}:${u.port_sock}`:"",ma=u.proxy_orders&&u.port_userpass&&u.user&&u.pass?`${u.proxy_orders}:${u.port_userpass}:${u.user}:${u.pass}`:"",Pa=u.proxy_orders&&u.port_sockuserpass&&u.user&&u.pass?`${u.proxy_orders}:${u.port_sockuserpass}:${u.user}:${u.pass}`:"";return a.jsx("tr",{className:`transition-all text-sm group relative hover:z-10 39 ${vt?"bg-violet-50":Pe?Y==="transparent"?"bg-amber-50/60":"":"odd:bg-[#f8fafc] even:bg-white"} 40 `,style:!vt&&Pe&&Y!=="transparent"?{backgroundColor:Y}:{},onClick:()=>na(u.id),children:a.jsx("div",{className:pe?"flex flex-col md:contents":"contents",children:pe?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex flex-row nowrap overflow-x-auto gap-3 pb-2 custom-scrollbar-thin scroll-smooth",children:Te.filter($t=>["seq","name","notes","location","used"].includes($t)).map($t=>{if($t!=="name"&&!q[$t])return null;switch($t){case"seq":return a.jsx("td",{className:"px-1 py-3 align-middle text-center border-none p-0 flex-shrink-0",onClick:w=>w.stopPropagation(),children:a.jsx("div",{className:"flex items-center justify-center h-full min-h-[60px]",children:a.jsxs("div",{className:"flex items-center justify-center rounded-full border-2 font-black transition-all shadow-sm hover:scale-110 hover:shadow-md cursor-default group/seq relative overflow-hidden",style:{color:qe,borderColor:`${qe}40`,backgroundColor:`${qe}10`,width:`${Math.max(28,it*2.4)}px`,height:`${Math.max(28,it*2.4)}px`,fontSize:`${it}px`,boxShadow:`0 2px 8px ${qe}20`},children:[a.jsx("span",{className:"relative z-10",children:(Ze-1)*Be+X+1}),a.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-tr from-white/30 to-transparent opacity-60"})]})})},"seq");case"name":return a.jsx("td",{className:"px-3 py-3 align-top border-none p-0 flex-shrink-0",children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2 mt-[10px]",children:[a.jsx("button",{onClick:w=>{w.stopPropagation(),na(u.id)},className:`p-0.5 flex-shrink-0 transition-colors 41 ${vt?"bg-violet-100 text-violet-600 rounded":"text-slate-300 hover:text-slate-500"} 42 `,children:vt?a.jsx(Ts,{size:20}):a.jsx(el,{size:20})}),a.jsx("div",{className:"flex flex-col min-w-[120px]",children:a.jsx("span",{className:"font-semibold text-slate-800 line-clamp-2 transition-colors",style:{color:vt?U:void 0},children:u.name||a.jsx("span",{className:"italic text-slate-400 font-normal",children:"Không có tên"})})})]}),a.jsx(ls,{value:Lt,onChange:w=>ia(u,String(w)),icon:zl,iconClassName:"text-slate-400",headerText:"Chá»n Nhà Mạng",options:[{value:"0",label:"ALL ISP",icon:Zo},{value:"1",label:"VNPT",icon:wa},{value:"2",label:"VIETTEL",icon:wa},{value:"3",label:"FPT",icon:wa},{value:"4",label:"4G",icon:wa}],renderLabel:w=>a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"text-[10px] font-extrabold block w-fit tracking-wide",style:{color:U},children:w?.label||"ALL ISP"}),ui&&a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{className:"text-[9px] font-bold text-emerald-600 bg-emerald-50 px-1 py-0 shadow-sm rounded border border-emerald-100",children:os(u)}),a.jsx("button",{onClick:Mc=>{Mc.stopPropagation(),Ke(u)},className:"p-1 rounded bg-violet-50 text-violet-600 hover:bg-violet-100 transition-colors border border-violet-100",title:"Mua thêm Data",children:a.jsx(_s,{size:10})})]})]}),isMobileMode:pe,activeColor:U})]})},"name");case"notes":return a.jsx("td",{className:"px-1 py-3 align-top border-none p-0 flex-shrink-0",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ls,{value:ka?"172800":"0",onChange:w=>Jt(u,String(w)),icon:ua,iconClassName:ka?"text-emerald-500":"text-rose-500",headerText:"Cấu hình Check Trùng",options:[{value:"0",label:"Tắt check trùng IP",icon:rl},{value:"172800",label:"Báºt check trùng IP",icon:rt}],minWidth:"min-w-[160px]",isMobileMode:pe,activeColor:U}),a.jsxs("div",{className:"relative group/input",children:[a.jsx(Xo,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none group-focus-within/input:text-violet-500"}),a.jsx("input",{type:"text",defaultValue:u.ghichu||"",placeholder:"Ghi chú...",className:"min-w-[158px] max-w-[158px] pl-8 pr-2 py-1.5 text-xs leading-[1.2rem] border border-transparent bg-slate-100 hover:bg-white hover:border-slate-200 focus:bg-white focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder-slate-400 text-slate-700 truncate rounded-none",onBlur:w=>ol(u,w),onKeyDown:w=>Es(u,w)},`${u.id}-${u.ghichu}`)]})]})},"notes");case"location":return a.jsx("td",{className:"px-1 py-3 align-top border-none p-0 flex-shrink-0 pr-4",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ls,{showSearch:!0,value:at,onChange:w=>fn(u,Number(w)),icon:aa,options:Lt==="3"||Lt==="4"?_e.filter(w=>w.value===0||w.value===-1||w.value===-2||w.value===-3||w.isHeader):_e,renderLabel:w=>w?w.value===-1?"Miá»n Bắc":w.value===-2?"Miá»n Trung":w.value===-3?"Miá»n Nam":w.label:"0. Ngẫu nhiên",isMobileMode:pe,activeColor:U}),a.jsx(At,{content:Ht?"":"Gói Äã hết hạn",children:a.jsxs("button",{className:`min-w-[158px] max-w-[158px] py-1.5 px-3 text-xs leading-[1.2rem] font-bold tracking-wide shadow-sm flex items-center justify-center gap-2 transition-all whitespace-nowrap rounded-none 43 ${be?"bg-violet-50 text-violet-600 border border-violet-200 cursor-wait":Ht?ie?"bg-red-50 text-red-600 border border-red-200":"text-white hover:shadow-md border border-transparent":"bg-slate-100 text-slate-400 border border-slate-200 cursor-not-allowed"} 44 `,style:Ht&&!be&&!ie?{backgroundColor:U}:{},onClick:w=>Ht&&Xa(u,w),disabled:be||!Ht,children:[be?a.jsx(Xt,{size:14,className:"animate-spin"}):ie?a.jsx(rl,{size:14}):a.jsx(Xt,{size:14}),be?"Äang lấy...":ie?"Thất bại/Chá»":"Lấy IP Má»i"]})})]})},"location");case"used":return a.jsx("td",{className:"px-1 py-3 align-middle text-center border-none p-0 flex-shrink-0",onClick:w=>w.stopPropagation(),children:a.jsx("div",{className:"flex items-center justify-center h-full min-h-[60
44px]",children:a.jsx("button",{onClick:w=>b(u.id,w),className:"transition-all transform hover:scale-110 flex items-center justify-center",style:{color:Pe?f:"#cbd5e1"},children:Pe?a.jsx(rt,{size:ye}):a.jsx("div",{className:"rounded-full border-2 border-slate-200 flex items-center justify-center text-slate-300 font-black",style:{width:ye,height:ye,fontSize:Math.max(8,ye*.45)}})})})},"used");default:return null}})}),a.jsxs("div",{className:"flex flex-col mt-0 pt-0 border-t border-slate-100 gap-0",children:[a.jsx("div",{className:"flex flex-row gap-0",children:Te.filter($t=>["connection","auth"].includes($t)).map($t=>{if(!q[$t])return null;switch($t){case"connection":return a.jsx("td",{className:"px-1 py-3 align-middle border-none p-0",onClick:w=>w.stopPropagation(),children:a.jsx("div",{className:"flex flex-col gap-2 min-w-[160px]",children:ui?a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[a.jsx("span",{className:"text-slate-400 italic text-[10px] whitespace-nowrap",children:"Äá»a chá» IP 4G:"}),u.ip_4g?a.jsx("span",{className:"text-blue-600 font-medium text-[10px] px-1.5 py-0.5 animate-in zoom-in-95 duration-300",children:u.ip_4g}):a.jsx("span",{className:"text-slate-300 italic text-[9px]",children:"Äang cáºp nháºt..."})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:`font-bold text-[10px] px-1.5 py-0.5 rounded border w-fit ${Ja(u)?"text-red-600 bg-red-50 border-red-100 animate-pulse":"text-emerald-600 bg-emerald-50/50 border-emerald-100/50"}`,children:os(u)}),a.jsx(At,{content:"Khi hết dung lượng, tá»± Äá»ng mua thêm 1GB (5,000Ä)",children:a.jsxs("label",{className:"flex items-center gap-1 ml-1 cursor-pointer group/autobuy",onClick:w=>w.stopPropagation(),children:[a.jsx("input",{type:"checkbox",checked:Number(u.auto_buy_data)===1,onChange:w=>{w.stopPropagation(),S(u,"auto_buy_data",w.target.checked?"1":"0")},className:"w-3 h-3 rounded border-slate-300 text-violet-600 focus:ring-violet-500 transition-all"}),a.jsx("span",{className:`text-[9px] font-bold tracking-tight uppercase ${Number(u.auto_buy_data)===1?"text-violet-600":"text-slate-400 group-hover/autobuy:text-slate-600"}`,children:(Number(u.auto_buy_data)===1,"Tá»± mua 1GB")})]})})]}),Ja(u)&&u.auto_buy_data!==1&&a.jsx("div",{className:"text-[9px] text-red-500 font-medium italic animate-bounce",children:'Äã hết data. Vui lòng mua thêm hoặc báºt "Tá»± mua".'})]}):a.jsxs("div",{className:"flex flex-col gap-2",children:[La&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("code",{onClick:w=>Dt(La,`${$}-http-ip`,u.id,w),className:"font-mono text-blue-600 truncate cursor-pointer hover:bg-blue-50 px-1.5 py-0.5 rounded border border-transparent hover:border-blue-100 transition-colors bg-blue-50/30",style:{fontSize:`${te}px`},children:La}),a.jsx("button",{onClick:w=>Dt(La,`${$}-http-ip`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-http-ip`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-http-ip`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),Ta&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("code",{onClick:w=>Dt(Ta,`${$}-sock-ip`,u.id,w),className:"font-mono text-orange-600 truncate cursor-pointer hover:bg-orange-50 px-1.5 py-0.5 rounded border border-transparent hover:border-orange-100 transition-colors bg-orange-50/30",style:{fontSize:`${te}px`},children:Ta}),a.jsx("button",{onClick:w=>Dt(Ta,`${$}-sock-ip`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-sock-ip`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-sock-ip`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]})]})})},"connection");case"auth":return a.jsx("td",{className:"px-1 py-3 align-middle border-none p-0",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[ma&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("code",{onClick:w=>Dt(ma||"",`${$}-httpup`,u.id,w),className:"font-mono text-blue-600 truncate max-w-[200px] cursor-pointer hover:bg-blue-50 px-1.5 py-0.5 rounded border border-transparent hover:border-blue-100 transition-colors bg-blue-50/30",style:{fontSize:`${zt}px`},children:ma||""}),a.jsx("button",{onClick:w=>Dt(ma,`${$}-httpup`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-httpup`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-httpup`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),Pa&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("code",{onClick:w=>Dt(Pa||"",`${$}-sockup`,u.id,w),className:"font-mono text-orange-600 truncate max-w-[200px] cursor-pointer hover:bg-blue-50 px-1.5 py-0.5 rounded border border-transparent hover:border-orange-100 transition-colors bg-blue-50/30",style:{fontSize:`${zt}px`},children:Pa||""}),a.jsx("button",{onClick:w=>Dt(Pa,`${$}-sockup`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-sockup`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-sockup`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]})]})},"auth");default:return null}})}),a.jsx("div",{className:"flex flex-row items-center justify-start gap-4",children:Te.filter($t=>["info","action"].includes($t)).map($t=>{if(!q[$t])return null;switch($t){case"info":return a.jsx("td",{className:"px-1 py-3 align-middle border-none p-0",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("span",{onClick:w=>Dt(u.api_key||"",`${$}-apikey`,u.id,w),className:"text-xs font-bold truncate max-w-[200px] cursor-pointer hover:bg-slate-50 px-1 text-right transition-colors",style:{color:dl},children:u.api_key||""}),u.api_key&&a.jsx("button",{onClick:w=>Dt(u.api_key||"",`${$}-apikey`,u.id,w),className:`p-1 shadow-sm transition-all flex-shrink-0 rounded-md ${ae===`${$}-apikey`?"text-green-600 bg-green-50":"bg-white/50 hover:bg-white text-slate-400 hover:text-violet-600"}`,children:ae===`${$}-apikey`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),a.jsxs("div",{className:"flex items-center text-xs gap-2 mt-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 bg-white border border-slate-100 px-1.5 py-0.5 rounded shadow-sm",children:[a.jsx(wc,{size:12,className:"flex-shrink-0",style:{color:dl}}
44),a.jsx("span",{className:"whitespace-nowrap font-bold text-[10px] text-slate-600",children:pn(u.time_het)})]}),u.location_hientai&&a.jsxs("div",{onClick:w=>di(u.id,w),className:`flex items-center gap-1 font-bold px-1.5 py-0.5 border truncate max-w-[120px] cursor-pointer transition-all select-none rounded shadow-sm ${ll?"bg-fuchsia-50 text-fuchsia-600 border-fuchsia-100 hover:bg-fuchsia-100":"bg-indigo-50 text-indigo-600 border-indigo-100 hover:bg-indigo-100"}`,children:[ll?a.jsx(ua,{size:11,className:"flex-shrink-0"}):a.jsx(aa,{size:11,className:"flex-shrink-0"}),a.jsx("span",{className:"truncate text-[10px]",children:ll?u.ip_allow_orders:u.location_hientai})]})]})]})},"info");case"action":return a.jsx("td",{className:"px-1 py-3 text-center align-middle whitespace-nowrap border-none p-0",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex items-center justify-start gap-2",children:[a.jsx("button",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-violet-500 hover:text-white hover:bg-violet-500 hover:border-violet-500 hover:shadow-lg hover:shadow-violet-200 transition-all group/check",onClick:w=>{w.stopPropagation(),g(u)},children:a.jsx(ns,{size:16,className:"group-hover/check:animate-pulse"})}),a.jsx("button",{onClick:w=>{w.stopPropagation(),T([u])},className:"flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-emerald-500 hover:text-white hover:bg-emerald-500 hover:border-emerald-500 hover:shadow-lg hover:shadow-emerald-200 transition-all",children:a.jsx(Sa,{size:16})}),a.jsx("button",{onClick:w=>{w.stopPropagation(),H([u])},className:"flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-rose-400 hover:text-white hover:bg-rose-50 hover:border-rose-500 hover:shadow-lg hover:shadow-rose-200 transition-all",children:a.jsx(_l,{size:16})})]})},"action");default:return null}})})]})]}):Te.map($t=>{if($t!=="name"&&!q[$t])return null;switch($t){case"seq":return a.jsx("td",{className:"px-1 py-3 align-middle text-center border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsx("div",{className:"flex items-center justify-center",children:a.jsxs("div",{className:"flex items-center justify-center rounded-full border-2 font-medium transition-all shadow-sm cursor-default group/seq relative overflow-hidden",style:{color:qe,borderColor:`${qe}40`,backgroundColor:`${qe}10`,width:`${Math.max(28,it*2.4)}px`,height:`${Math.max(28,it*2.4)}px`,fontSize:`${it}px`,boxShadow:`0 2px 8px ${qe}20`},children:[a.jsx("span",{className:"relative z-10",children:(Ze-1)*Be+X+1}),a.jsx("div",{className:"absolute inset-0 rounded-full bg-gradient-to-tr from-white/30 to-transparent opacity-60"})]})})},"seq");case"name":return a.jsx("td",{className:"px-3 py-3 align-top border-b border-slate-100 group-hover:border-transparent",children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2 mt-[10px]",children:[a.jsx("button",{onClick:w=>{w.stopPropagation(),na(u.id)},className:`p-0.5 flex-shrink-0 transition-colors ${vt?"bg-violet-100 text-violet-600 rounded":"text-slate-300 hover:text-slate-500"}`,children:vt?a.jsx(Ts,{size:20}):a.jsx(el,{size:20})}),a.jsx("div",{className:"flex flex-col min-w-[120px]",children:a.jsx("span",{className:"font-semibold text-slate-800 line-clamp-2 transition-colors",style:{color:vt?U:void 0},children:u.name||a.jsx("span",{className:"italic text-slate-400 font-normal",children:"Không có tên"})})})]}),a.jsx(ls,{value:Lt,onChange:w=>ia(u,String(w)),icon:zl,iconClassName:"text-slate-400",headerText:"Chá»n Nhà Mạng",options:[{value:"0",label:"ALL ISP",icon:Zo},{value:"1",label:"VNPT",icon:wa},{value:"2",label:"VIETTEL",icon:wa},{value:"3",label:"FPT",icon:wa},...u.product_id===6||u.product_id===7?[{value:"4",label:"4G",icon:wa}]:[]],renderLabel:w=>a.jsx("span",{className:"text-[10px] font-extrabold block w-fit tracking-wide",style:{color:U},children:w?.label||"ALL ISP"}),isMobileMode:pe,activeColor:U})]})},"name");case"notes":return a.jsx("td",{className:"px-1 py-3 align-top border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ls,{value:ka?"172800":"0",onChange:w=>Jt(u,String(w)),icon:ua,iconClassName:ka?"text-emerald-500":"text-rose-500",headerText:"Cấu hình Check Trùng",options:[{value:"0",label:"Tắt check trùng IP",icon:rl},{value:"172800",label:"Báºt check trùng IP",icon:rt}],minWidth:"min-w-[160px]",isMobileMode:pe,activeColor:U}),a.jsxs("div",{className:"relative group/input",children:[a.jsx(Xo,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none group-focus-within/input:text-violet-500"}),a.jsx("input",{type:"text",defaultValue:u.ghichu||"",placeholder:"Ghi chú...",className:"min-w-[158px] max-w-[158px] pl-8 pr-2 py-1.5 text-xs leading-[1.2rem] border border-transparent bg-slate-100 hover:bg-white hover:border-slate-200 focus:bg-white focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all placeholder-slate-400 text-slate-700 truncate rounded-none",onBlur:w=>ol(u,w),onKeyDown:w=>Es(u,w)},`${u.id}-${u.ghichu}`)]})]})},"notes");case"location":return a.jsx("td",{className:"px-1 py-3 align-top border-b border-slate-100 group-hover:border-transparent pr-4",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ls,{showSearch:!0,value:at,onChange:w=>fn(u,Number(w)),icon:aa,options:Lt==="3"||Lt==="4"?_e.filter(w=>w.value===0||w.value===-1||w.value===-2||w.value===-3||w.isHeader):_e,renderLabel:w=>w?w.value===-1?"Miá»n Bắc":w.value===-2?"Miá»n Trung":w.value===-3?"Miá»n Nam":w.label:"0. Ngẫu nhiên",isMobileMode:pe,activeColor:U}),a.jsx(At,{content:Ht?"":"Gói Äã hết hạn",children:a.jsxs("button",{className:`min-w-[158px] max-w-[158px] py-1.5 px-3 text-xs leading-[1.2rem] font-bold tracking-wide shadow-sm flex items-center justify-center gap-2 transition-all whitespace-nowrap rounded-none ${be?"bg-violet-50 text-violet-600 border border-violet-200 cursor-wait":Ht?ie?"bg-red-50 text-red-600 border border-red-200":"text-white hover:shadow-md border border-transparent":"bg-slate-100 text-slate-400 border border-slate-200 cursor-not-allowed"}`,style:Ht&&!be&&!ie?{backgroundColor:U}:{},onClick:w=>Ht&&Xa(u,w),disabled:be||!Ht,children:[be?a.jsx(Xt,{size:14,className:"animate-spin"}):ie?a.jsx(rl,{size:14}):a.jsx(Xt,{size:14}),be?"Äang lấy...":ie?"Thất bại/Chá»":"Lấy IP Má»i"]})})]})},"location");case"used":return a.jsx("td",{className:"px-1 py-3 align-middle text-center border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsx("div",{className:"flex items-center justify-center",children:a.jsx("button",{onClick:w=>b(u.id,w),className:"transition-all transform hover:scale-110 flex items-center justify-center",style:{color:Pe?f:"#cbd5e1"},children:Pe?a.jsx(rt,{size:ye}):a.jsx("div",{className:"rounded-full border-2 border-slate-200 flex items-center justify-center text-slate-300 font-medium",style:{width:ye,height:ye,fontSize:Math.max(8,ye*.45)}})})})},"used");case"connection":return a.jsx("td",{className:"px-1 py-3 align-middle border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[160px]",children:[La&&Lt!=="4"&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[a.jsx("span",{className:"text-[9px] font-black text-white bg-blue-500 px-1.5 py-0.5 rounded-[3px] min-w-[35px] text-center flex-shrink-0 tracking-wider",children:"HTTP"}),a.jsx("code",{onClick:w=>Dt(La,`${$}-http-ip`,u.id,w),className:"font-mono text-blue-600 truncate cursor-pointer hover:bg-blue-50 px-1.5 py-0.5 rounded border border-transparent hover:border-blue-100 transition-colors bg-blue-50/30",style:{fontSize:`${te}px`},children:La})]}),a.jsx("button",{onClick:w=>Dt(La,`${$}-http-ip`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-http-ip`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-http-ip`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),Ta&&Lt!=="4"&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[a.jsx("span",{className:"text-[9px] font-black text-white bg-orange-500 px-1.5 py-0.5 rounded-[3px] min-w-[35px] text-center flex-shrink-0 tracking-wider",children:"SOCK"}),a.jsx("code",{onClick:w=>Dt(Ta,`${$}-sock-ip`,u.id,w),className:"font-mono text-orange-600 truncate cursor-pointer hover:bg-orange-50 px-1.5 py-0.5 rounded border border-transparent hover:border-orange-100 transition-colors bg-
44orange-50/30",style:{fontSize:`${te}px`},children:Ta})]}),a.jsx("button",{onClick:w=>Dt(Ta,`${$}-sock-ip`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-sock-ip`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-sock-ip`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),Lt==="4"&&a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[a.jsx("span",{className:"text-slate-400 italic text-[10px] whitespace-nowrap",children:"Äá»a chá» IP 4G:"}),u.ip_4g?a.jsx("span",{className:"text-blue-600 font-medium text-[10px] px-1.5 py-0.5 animate-in zoom-in-95 duration-300",children:u.ip_4g}):a.jsx("span",{className:"text-slate-300 italic text-[9px]",children:"Äang cáºp nháºt..."})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("span",{className:`font-bold text-[10px] px-1.5 py-0.5 rounded border w-fit ${Ja(u)?"text-red-600 bg-red-50 border-red-100 animate-pulse":"text-emerald-600 bg-emerald-50/50 border-emerald-100/50"}`,children:os(u)}),a.jsx(At,{content:"Má»i khi hết dung lượng, há» thá»ng sẽ tá»± Äá»ng mua thêm 1GB (5,000Ä)",children:a.jsx("div",{onClick:w=>{w.stopPropagation(),S(u,"auto_buy_data",Number(u.auto_buy_data)===1?"0":"1")},className:"flex items-center p-1 rounded-md hover:bg-slate-100 transition-colors cursor-pointer group/autobuy",children:a.jsx("div",{className:`relative inline-flex h-5 w-9 items-center rounded-full transition-all duration-200 focus:outline-none shadow-inner ${Number(u.auto_buy_data)===1?"bg-violet-600":"bg-slate-300"}`,children:a.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white shadow-md ring-1 ring-black/5 transition-transform duration-200 ease-in-out ${Number(u.auto_buy_data)===1?"translate-x-[19px]":"translate-x-[1px]"}`})})})}),a.jsx("button",{onClick:w=>{w.stopPropagation(),Ke(u)},className:"text-[9px] font-medium text-white bg-violet-500 px-1.5 py-0.5 rounded-[3px] hover:bg-violet-600 transition-colors shadow-sm",children:"Mua thêm"})]}),Ja(u)&&u.auto_buy_data!==1&&a.jsx("div",{className:"text-[9px] text-red-500 font-medium italic animate-bounce mt-0.5",children:'Äã hết data. Vui lòng mua thêm hoặc báºt "Tá»± mua".'})]}),!La&&!Ta&&Lt!=="4"&&a.jsx("div",{className:"h-8 flex items-center text-slate-300 text-xs italic",children:"Chưa có IP"})]})},"connection");case"auth":return a.jsx("td",{className:"px-1 py-3 align-middle border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[ma&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("div",{className:"flex items-center gap-1.5 min-w-0 relative group/code",children:a.jsx("code",{onClick:w=>Dt(ma||"",`${$}-httpup`,u.id,w),className:"font-mono text-blue-600 truncate max-w-[200px] xl:max-w-[300px] cursor-pointer hover:bg-blue-50 px-1.5 py-0.5 rounded border border-transparent hover:border-blue-100 transition-colors bg-blue-50/30",style:{fontSize:`${zt}px`},children:ma||""})}),a.jsx("button",{onClick:w=>Dt(ma,`${$}-httpup`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-httpup`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-httpup`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),Pa&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("div",{className:"flex items-center gap-1.5 min-w-0 relative group/code",children:a.jsx("code",{onClick:w=>Dt(Pa||"",`${$}-sockup`,u.id,w),className:"font-mono text-orange-600 truncate max-w-[200px] xl:max-w-[300px] cursor-pointer hover:bg-blue-50 px-1.5 py-0.5 rounded border border-transparent hover:border-orange-100 transition-colors bg-blue-50/30",style:{fontSize:`${zt}px`},children:Pa||""})}),a.jsx("button",{onClick:w=>Dt(Pa,`${$}-sockup`,u.id,w),className:`p-1 hover:bg-white rounded-md flex-shrink-0 transition-colors ${ae===`${$}-sockup`?"text-green-600 bg-green-50":"text-slate-300 hover:text-blue-600"}`,children:ae===`${$}-sockup`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]})]})},"auth");case"info":return a.jsx("td",{className:"px-1 py-3 align-middle border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[a.jsxs("div",{className:"flex items-center gap-1.5 group/key",children:[a.jsx("div",{className:"flex items-center gap-1.5 min-w-0",children:a.jsx("span",{onClick:w=>Dt(u.api_key||"",`${$}-apikey`,u.id,w),className:"text-xs font-bold truncate max-w-[200px] cursor-pointer hover:bg-slate-50 px-1 text-right transition-colors",style:{color:dl},children:u.api_key||""})}
44),u.api_key&&a.jsx("button",{onClick:w=>Dt(u.api_key||"",`${$}-apikey`,u.id,w),className:`p-1 shadow-sm transition-all flex-shrink-0 rounded-md ${ae===`${$}-apikey`?"text-green-600 bg-green-50":"bg-white/50 hover:bg-white text-slate-400 hover:text-violet-600"}`,children:ae===`${$}-apikey`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),a.jsxs("div",{className:"flex items-center text-xs gap-2 mt-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 bg-white border border-slate-100 px-1.5 py-0.5 rounded shadow-sm",children:[a.jsx(wc,{size:12,className:"flex-shrink-0",style:{color:dl}}),a.jsx("span",{className:"whitespace-nowrap font-bold text-[10px] text-slate-600",children:pn(u.time_het)})]}),u.location_hientai&&a.jsxs("div",{onClick:w=>di(u.id,w),className:`flex items-center gap-1 font-bold px-1.5 py-0.5 border truncate max-w-[120px] cursor-pointer transition-all select-none rounded shadow-sm ${ll?"bg-fuchsia-50 text-fuchsia-600 border-fuchsia-100 hover:bg-fuchsia-100":"bg-indigo-50 text-indigo-600 border-indigo-100 hover:bg-indigo-100"}`,children:[ll?a.jsx(ua,{size:11,className:"flex-shrink-0"}):a.jsx(aa,{size:11,className:"flex-shrink-0"}),a.jsx("span",{className:"truncate text-[10px]",children:ll?u.ip_allow_orders:u.location_hientai})]})]})]})},"info");case"action":return a.jsx("td",{className:"px-1 py-3 text-center align-middle whitespace-nowrap border-b border-slate-100 group-hover:border-transparent",onClick:w=>w.stopPropagation(),children:a.jsxs("div",{className:"flex items-center justify-center gap-2",children:[a.jsx("button",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-violet-500 hover:text-white hover:bg-violet-500 hover:border-violet-500 hover:shadow-lg hover:shadow-violet-200 transition-all group/check",onClick:w=>{w.stopPropagation(),g(u)},children:a.jsx(ns,{size:16,className:"group-hover/check:animate-pulse"})}),a.jsx("button",{onClick:w=>{w.stopPropagation(),T([u])},className:"flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-emerald-500 hover:text-white hover:bg-emerald-500 hover:border-emerald-500 hover:shadow-lg hover:shadow-emerald-200 transition-all",children:a.jsx(Sa,{size:16})}),a.jsx("button",{onClick:w=>{w.stopPropagation(),H([u])},className:"flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-rose-400 hover:text-white hover:bg-rose-50 hover:border-rose-500 hover:shadow-lg hover:shadow-rose-200 transition-all",children:a.jsx(_l,{size:16})})]})},"action");default:return null}})})},u.id)})})})}),a.jsxs("div",{className:"px-4 py-3 border-t border-slate-200 bg-white/50 backdrop-blur flex items-center justify-between text-sm",children:[a.jsxs("span",{className:"text-slate-500 font-medium text-xs",children:["Trang ",a.jsx("span",{className:"font-bold text-slate-800",children:Ze})," / ",Ae||1]}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("button",{onClick:()=>je(u=>Math.max(1,u-1)),disabled:Ze===1,className:"p-2 border border-slate-200 bg-white disabled:opacity-30 rounded-lg transition-all shadow-sm",style:Ze!==1?{color:U}:{},children:a.jsx(Ms,{size:14})}),a.jsx("button",{onClick:()=>je(u=>Math.min(Ae,u+1)),disabled:Ze===Ae||Ae===0,className:"p-2 border border-slate-200 bg-white disabled:opacity-30 rounded-lg transition-all shadow-sm",style:Ze!==Ae&&Ae!==0?{color:U}:{},children:a.jsx(rs,{size:14})})]})]}),re&&a.jsx(Mx,{isOpen:!!re,onClose:()=>Ke(null),order:re,onSuccess:()=>Q?.(),onShowToast:j,useApiKeyLabel:!0})]})},jc=({title:r,value:x,icon:g,color:d,bgColor:N,trend:S})=>a.jsxs("div",{className:"bg-white rounded-none shadow-sm border border-gray-100 p-6 flex items-start justify-between hover:shadow-md transition-all duration-300",children:[a.jsxs("div",{className:"flex flex-col h-full justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-medium text-gray-500 mb-2",children:r}),a.jsx("h3",{className:"text-2xl font-nomal text-gray-900",children:x})]}),S&&a.jsx("div",{className:"mt-4 inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-emerald-50 text-emerald-700 w-fit",children:S})]}),a.jsx("div",{className:`p-4 rounded-xl ${N}`,children:a.jsx(g,{className:`w-8 h-8 ${d}`})})]}),ax=({icon:r,label:x,value:g,copyable:d=!1,onEdit:N})=>{const S=T=>{d&&(T.stopPropagation(),navigator.clipboard.writeText(g))};return a.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg border border-gray-100 bg-gray-50/50 hover:bg-white hover:border-blue-200 hover:shadow-sm transition-all group relative",children:[a.jsx("div",{className:"p-2 rounded-full bg-white border border-gray-100 text-blue-600 shadow-sm",children:a.jsx(r,{size:16})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsx("p",{className:"text-[10px] uppercase font-bold text-gray-400 mb-0.5",children:x}),N&&a.jsx(At,{content:"Chá»nh sá»a",children:a.jsx("button",{onClick:T=>{T.stopPropagation(),N()},className:"p-1 text-gray-400 hover:text-blue-600 hover:bg-blue-50 rounded transition-colors opacity-0 group-hover:opacity-100",children:a.jsx(td,{size:12})})})]}),a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:d?S:void 0,children:[a.jsx("p",{className:"text-sm font-semibold text-gray-800 truncate",children:g}),d&&a.jsx(Ct,{size:12,className:"opacity-0 group-hover:opacity-100 transition-opacity text-blue-500"})]})]})]})},lx=({currentPage:r,totalPages:x,onPageChange:g})=>x<=1?null:a.jsxs("div",{className:"flex items-center justify-between p-3 border-t border-gray-100 bg-white rounded-b-xl",children:[a.jsxs("span",{className:"text-xs text-gray-500",children:["Trang ",r," / ",x]}),a.jsxs("div",{className:"flex gap-1",children:[a.jsx("button",{onClick:()=>
44g(Math.max(1,r-1)),disabled:r===1,className:"p-1.5 rounded bg-white border border-gray-200 hover:bg-gray-50 disabled:opacity-50 transition-colors",children:a.jsx(Ms,{size:14})}),a.jsx("button",{onClick:()=>g(Math.min(x,r+1)),disabled:r===x,className:"p-1.5 rounded bg-white border border-gray-200 hover:bg-gray-50 disabled:opacity-50 transition-colors",children:a.jsx(rs,{size:14})})]})]}),Ab=({isOpen:r,onClose:x,currentEmail:g,currentPhone:d,onSave:N})=>{const[S,T]=h.useState(g),[H,D]=h.useState(d),[j,Q]=h.useState(!1),[A,J]=h.useState("");if(h.useEffect(()=>{r&&(T(g),D(d),J(""))},[r,g,d]),!r)return null;const xe=async me=>{me.preventDefault(),Q(!0),J("");try{await N(S,H),x()}catch(I){J(I.message||"Lá»i cáºp nháºt")}finally{Q(!1)}};return a.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[80] flex items-center justify-center p-4 animate-in fade-in duration-200",children:a.jsxs("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-sm overflow-hidden",children:[a.jsxs("div",{className:"p-4 border-b border-gray-100 flex justify-between items-center bg-gray-50",children:[a.jsx("h3",{className:"font-bold text-gray-800",children:"Cáºp nháºt thông tin"}),a.jsx("button",{onClick:x,className:"text-gray-400 hover:text-gray-600",children:a.jsx(ea,{size:20})})]}),a.jsxs("form",{onSubmit:xe,className:"p-5 space-y-4",children:[A&&a.jsx("div",{className:"text-xs text-red-600 bg-red-50 p-2 rounded border border-red-100",children:A}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-bold text-gray-500 uppercase mb-1",children:"Email"}),a.jsx("input",{type:"email",required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none text-sm",value:S,onChange:me=>T(me.target.value)})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-bold text-gray-500 uppercase mb-1",children:"Sá» Äiá»n thoại"}),a.jsx("input",{type:"text",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none text-sm",value:H,onChange:me=>D(me.target.value)})]}),a.jsxs("div",{className:"flex gap-3 pt-2",children:[a.jsx("button",{type:"button",onClick:x,className:"flex-1 py-2 border border-gray-300 rounded-lg text-sm text-gray-600 hover:bg-gray-50",children:"Há»§y"}),a.jsxs("button",{type:"submit",disabled:j,className:"flex-1 py-2 bg-blue-600 text-white rounded-lg text-sm hover:bg-blue-700 flex items-center justify-center gap-2",children:[j&&a.jsx("div",{className:"w-3 h-3 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Lưu"]})]})]})]})})},Eb=({orders:r,user:x})=>{const[g,d]=h.useState(""),[N,S]=h.useState(""),[T,H]=h.useState(""),[D,j]=h.useState(!1),[Q,A]=h.useState(""),[J,xe]=h.useState(""),[me,I]=h.useState([]),[Se,ae]=h.useState(1),[he,Me]=h.useState(0),[Xe,$e]=h.useState(!1),[ne,re]=h.useState([]),[Ke,Le]=h.useState(1),[tt,Ze]=h.useState(0),[je,Be]=h.useState(!1),[St,oe]=h.useState(!1),[v,G]=h.useState(x);h.useEffect(()=>{G(x)},[x]);const ce=h.useMemo(()=>{const Y=r.length,P=r.filter(Fe=>Fe.status==="running"||Fe.status==="active"||Fe.trangthai_hethan==="1"),ye=P.length,Qe=r.filter(Fe=>Fe.status==="expired"||Fe.trangthai_hethan!=="1").length,qe=P.reduce((Fe,it)=>Fe+(it.price||0),0);return{total:Y,active:ye,expired:Qe,totalValue:qe}},[r]);h.useEffect(()=>{x&&($e(!0),He.auth.getLogs(Se,5).then(Y=>{I(Y.logs||[]),Me(Y.totalPages||0)}).catch(Y=>console.error("Failed to fetch logs",Y)).finally(()=>$e(!1)))},[x,Se]),h.useEffect(()=>{x&&(Be(!0),He.deposit.getCashFlow(Ke,5).then(Y=>{re(Y.cashflow||[]),Ze(Y.totalPages||0)}).catch(Y=>console.error("Failed to fetch cashflow",Y)).finally(()=>Be(!1)))},[x,Ke]);const pe=async Y=>{if(Y.preventDefault(),A(""),xe(""),j(!0),N!==T){A("Máºt khẩu xác nháºn không khá»p"),j(!1);return}try{const P=await He.auth.changePassword({currentPassword:g,newPassword:N,confirmPassword:T});P.success?(xe("Äá»i máºt khẩu thà nh công!"),d(""),S(""),H("")):A(P.message||"Lá»i Äá»i máºt khẩu")}catch(P){A(P.message||"Lá»i kết ná»i")}finally{j(!1)}},ze=async(Y,P)=>{await He.auth.updateProfile({email:Y,phone:P}),G(ye=>ye?{...ye,email:Y,phone:P}:null)},f=Y=>
44{try{return new Date(Y).toLocaleString("vi-VN")}catch{return Y}},E=Y=>{try{const P=Number(Y);return isNaN(P)?"0":P.toLocaleString("vi-VN")+""}catch{return"0"}},U=Y=>{if(!Y)return"-";if(typeof Y=="string")return Y;try{return JSON.stringify(Y)}catch{return"-"}},ue=(()=>{const Y=new Date().getHours();return Y>=5&&Y<12?{text:"Chà o buá»i sáng",icon:ib,color:"text-amber-500"}:Y>=12&&Y<18?{text:"Chà o buá»i chiá»u",icon:sb,color:"text-orange-500"}:{text:"Chà o buá»i tá»i",icon:wg,color:"text-indigo-500"}})(),we=ue.icon;return v?a.jsxs("div",{className:"space-y-6 animate-in fade-in duration-500 pb-10",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[a.jsxs("div",{className:"lg:col-span-5 bg-white rounded-none shadow-sm border border-gray-100 p-6 flex flex-col justify-between relative overflow-hidden group",children:[a.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-blue-50 rounded-bl-full -mr-8 -mt-8 opacity-50 group-hover:scale-110 transition-transform duration-500"}),a.jsxs("div",{className:"flex items-center gap-4 mb-6 relative z-10",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-16 h-16 rounded-full bg-gray-100 p-1 shadow-sm border border-gray-200",children:v.avatar?a.jsx("img",{src:v.avatar,alt:"Avatar",className:"w-full h-full rounded-full object-cover"}):a.jsx("div",{className:"w-full h-full rounded-full bg-gradient-to-br from-blue-100 to-indigo-100 flex items-center justify-center text-blue-600 font-bold text-xl uppercase",children:v.username.charAt(0)})}),a.jsx("div",{className:`absolute -bottom-1 -right-1 p-1 bg-white rounded-full border border-gray-100 shadow-sm ${ue.color}`,children:a.jsx(we,{size:14,fill:"currentColor",className:"opacity-80"})})]}),a.jsxs("div",{children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-gray-500 mb-0.5",children:[a.jsxs("span",{className:ue.color,children:[ue.text,","]}),a.jsx("span",{className:"text-gray-400",children:new Date().toLocaleDateString("vi-VN")})]}),a.jsx("div",{className:"flex items-center gap-2 mt-1",children:a.jsxs("span",{className:`px-2 py-0.5 rounded-full text-[15px] font-bold border flex items-center gap-1 ${v.admin===1?"bg-purple-50 text-purple-700 border-purple-100":"bg-emerald-50 text-emerald-700 border-emerald-100"}`,children:[a.jsx(sd,{size:10}),v.admin===1?"Administrator":"Thà nh viên",": ",v.fullname||v.username]})})]})]}),a.jsxs("div",{className:"space-y-3 relative z-10",children:[a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[a.jsx(ax,{icon:xn,label:"Email",value:v.email||"N/A",onEdit:()=>oe(!0)}),a.jsx(ax,{icon:Sx,label:"Äiá»n thoại",value:v.phone||"N/A",onEdit:()=>oe(!0)})]}),a.jsxs("div",{className:"p-3 bg-indigo-50/50 rounded-xl border border-indigo-100 hover:border-indigo-300 transition-colors group/key cursor-pointer",onClick:()=>navigator.clipboard.writeText(v.token_buy||""),children:[a.jsxs("div",{className:"flex items-center justify-between mb-1",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold text-indigo-600 uppercase",children:[a.jsx(Cc,{size:14})," API Key (Token)"]}),a.jsx("span",{className:"text-[10px] bg-white px-2 py-0.5 rounded text-indigo-400 font-medium group-hover/key:text-indigo-600 transition-colors",children:"Nhấn Äá» copy"})]}),a.jsx("div",{className:"font-mono text-sm text-gray-700 truncate font-medium bg-white px-2 py-1.5 rounded border border-indigo-100",children:v.token_buy||"Chưa kÃch hoạt"})]})]})]}),a.jsxs("div",{className:"lg:col-span-3 bg-white rounded-none shadow-sm border border-gray-100 p-4 flex flex-col items-center justify-center text-center gap-4",children:[a.jsxs("h3",{className:"text-gray-800 font-bold flex items-center gap-2 text-sm tracking-wider text-center w-full justify-center pb-2 border-b border-gray-50",children:[a.jsx(Nx,{size:18,className:"text-indigo-600"})," Kênh Há» trợ"]}),a.jsxs("div",{className:"flex flex-row lg:flex-col gap-4 items-center w-full justify-center h-full",children:[a.jsx("div",{className:"flex flex-col items-center gap-1.5 group",children:a.jsx("div",{className:"p-1 border border-gray-100 rounded-lg shadow-sm group-hover:shadow-md transition-shadow",children:a.jsx("img",{src:"/image/zaloqr.jpg",alt:"Zalo QR",className:"w-24 h-24 object-contain rounded-md"})})}),a.jsx("div",{className:"w-px h-24 bg-gray-100 lg:hidden"}),a.jsx("div",{className:"h-px w-24 bg-gray-100 hidden lg:block"}),a.jsx("div",{className:"flex flex-col items-center gap-1.5 group",children:a.jsx("div",{className:"p-1 border border-gray-100 rounded-lg shadow-sm group-hover:shadow-md transition-shadow",children:a.jsx("img",{src:"https://fproxy.me/image/telegramqr.png",alt:"Telegram QR",className:"w-24 h-24 object-contain rounded-md"})})})]})]}),a.jsxs("div",{className:"lg:col-span-4 bg-white rounded-none shadow-sm border border-gray-100 p-0 flex flex-col h-full overflow-hidden min-h-[300px]",children:[a.jsx("div",{className:"p-4 border-b border-gray-100 bg-white flex justify-between items-center",children:a.jsxs("h3",{className:"text-gray-800 font-bold flex items-center gap-2 text-sm",children:[a.jsx(ns,{size:18,className:"text-blue-600"})," Nháºt ký hoạt Äá»ng"]})}),a.jsx("div",{className:"flex-1 overflow-hidden bg-white",children:Xe?a.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-400 gap-2 p-6",children:[a.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-blue-500"}),a.jsx("span",{className:"text-xs",children:"Äang tải..."})]}):me.length===0?a.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-400 gap-2 opacity-60 p-6",children:[a.jsx(vx,{size:24}),a.jsx("span",{className:"text-xs",children:"Chưa có nháºt ký"})]}):a.jsx("div",{className:"divide-y divide-gray-50",children:me.map(Y=>a.jsxs("div",{className:"flex items-center justify-between p-2.5 hover:bg-indigo-50/30 transition-colors group",children:[a.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 mr-4",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-blue-500 flex-shrink-0 group-hover:scale-125 transition-transform"}),a.jsx(At,{content:Y.action,children:a.jsx("p",{className:"text-xs font-medium text-gray-700 truncate cursor-default",children:Y.action})})]}),a.jsxs("div",{className:"flex-shrink-0 flex items-center gap-1.5 text-[10px] text-gray-400 font-mono bg-white px-2 py-0.5 rounded border border-gray-100 group-hover:border-blue-100 group-hover:text-blue-500 transition-colors",children:[a.jsx(Sa,{size:10}),f(Y.createdate)]})]},Y.id))})}),a.jsx(lx,{currentPage:Se,totalPages:he,onPageChange:ae})]})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[a.jsx(jc,{title:"Tá»ng Proxy",value:ce.total.toString(),icon:op,color:"text-blue-600",bgColor:"bg-blue-50",trend:"Tất cả thá»i gian"}),a.jsx(jc,{title:"Äang hoạt Äá»ng",value:ce.active.toString(),icon:vb,color:"text-emerald-600",bgColor:"bg-emerald-50",trend:`${ce.total>0?(ce.active/ce.total*100).toFixed(0):0}% hiá»u suất`}),a.jsx(jc,{title:"Äã hết hạn",value:ce.expired.toString(),icon:Ka,color:"text-rose-600",bgColor:"bg-rose-50"}),a.jsx(jc,{title:"Giá trá» tà i sản Proxy",value:`${ce.totalValue.toLocaleStr
44ing("vi-VN")}`,icon:Kp,color:"text-violet-600",bgColor:"bg-violet-50",trend:"VNÄ (Active)"})]}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[a.jsxs("div",{className:"bg-white p-12 rounded-none shadow-sm border border-gray-100 lg:col-span-1 h-fit",children:[a.jsxs("h3",{className:"text-lg font-nomal text-gray-800 mb-2 flex items-center gap-2",children:[a.jsx(Ml,{size:20,className:"text-indigo-600"})," Äá»i máºt khẩu"]}),J&&a.jsxs("div",{className:"mb-3 p-2 bg-emerald-50 text-emerald-600 text-xs font-bold rounded-lg border border-emerald-100 flex items-center gap-2 animate-in fade-in",children:[a.jsx(rt,{size:14})," ",J]}),Q&&a.jsxs("div",{className:"mb-3 p-2 bg-red-50 text-red-600 text-xs font-bold rounded-lg border border-red-100 flex items-center gap-2 animate-in fade-in",children:[a.jsx(Ka,{size:14})," ",Q]}),a.jsxs("form",{onSubmit:pe,className:"space-y-3",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-[10px] font-bold text-gray-600 mb-1",children:"Máºt khẩu cÅ©"}),a.jsx("input",{type:"password",required:!0,value:g,onChange:Y=>d(Y.target.value),className:"w-full px-3 py-2 rounded-lg border border-gray-200 focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 outline-none text-sm bg-gray-50 focus:bg-white transition-colors",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[10px] font-bold text-gray-600 mb-1",children:"Máºt khẩu má»i"}),a.jsx("input",{type:"password",required:!0,value:N,onChange:Y=>S(Y.target.value),className:"w-full px-3 py-2 rounded-lg border border-gray-200 focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 outline-none text-sm bg-gray-50 focus:bg-white transition-colors",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-[10px] font-bold text-gray-600 mb-1",children:"Nháºp lại"}),a.jsx("input",{type:"password",required:!0,value:T,onChange:Y=>H(Y.target.value),className:"w-full px-3 py-2 rounded-lg border border-gray-200 focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 outline-none text-sm bg-gray-50 focus:bg-white transition-colors",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsx("div",{className:"pt-2",children:a.jsxs("button",{type:"submit",disabled:D,className:"w-full px-4 py-3 bg-indigo-600 hover:bg-indigo-700 text-white font-nomal rounded-lg shadow-md transition-all active:scale-95 flex items-center justify-center gap-2 text-sm",children:[D?a.jsx("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsx(ad,{size:16}),"Lưu thay Äá»i"]})})]})]}),a.jsxs("div",{className:"bg-white rounded-none shadow-sm border border-gray-100 lg:col-span-2 flex flex-col overflow-hidden",children:[a.jsx("div",{className:"p-4 pb-2",children:a.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center mb-6 gap-4",children:[a.jsx("div",{children:a.jsxs("h3",{className:"text-lg font-nomal text-gray-800 flex items-center gap-2",children:[a.jsx(cs,{size:20,className:"text-emerald-600"})," Biến Äá»ng sá» dư"]})}),a.jsxs("div",{className:"flex gap-4",children:[a.jsxs("div",{className:"bg-gray-50 px-3 py-2 rounded-lg border border-gray-100",children:[a.jsx("div",{className:"text-[10px] uppercase font-bold text-gray-400 mb-0.5",children:"Tá»ng Äã nạp"}),a.jsxs("div",{className:"font-bold text-emerald-600 text-sm flex items-center gap-1",children:[a.jsx(hb,{size:14}),v.total_money?.toLocaleString("vi-VN")||0," Ä"]})]}),a.jsxs("div",{className:"bg-gray-50 px-3 py-2 rounded-lg border border-gray-100",children:[a.jsx("div",{className:"text-[10px] uppercase font-bold text-gray-400 mb-0.5",children:"Tá»ng chi tiêu"}),a.jsxs("div",{className:"font-bold text-red-500 text-sm flex items-center gap-1",children:[a.jsx(db,{size:14}),((v.total_money||0)-(v.money||0)).toLocaleString("vi-VN")," Ä"]})]})]})]})}),a.jsxs("div",{className:"flex-1 flex flex-col",children:[a.jsx("div",{className:"overflow-x-auto custom-scrollbar",children:a.jsxs("table",{className:"w-full text-sm text-left whitespace-nowrap",children:[a.jsx("thead",{className:"bg-blue-50 text-gray-500 font-medium border-b border-gray-100",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-4 py-3",children:"Trưá»c GD"}),a.jsx("th",{className:"px-4 py-3",children:"Thay Äá»i"}),a.jsx("th",{className:"px-4 py-3",children:"Sau GD"}),a.jsx("th",{className:"px-4 py-3",children:"Thá»i gian"}),a.jsx("th",{className:"px-4 py-3",children:"Sá»± kiá»n"})]})}),a.jsx("tbody",{className:"divide-y divide-gray-100",children:je?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"px-4 py-12 text-center text-gray-500",children:a.jsxs("div",{className:"flex justify-center items-center gap-2",children:[a.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-emerald-600"}),"Äang tải dữ liá»u..."]}
44)})}):!ne||ne.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"p-12 text-center text-gray-400",children:"Chưa có lá»ch sá» giao dá»ch"})}):ne.map((Y,P)=>{if(!Y)return null;const ye=Number(Y.sotientruoc||0),Qe=Number(Y.sotiensau||0),qe=Qe-ye,Fe=qe>0;return a.jsxs("tr",{className:"hover:bg-gray-50 transition-colors",children:[a.jsx("td",{className:"px-4 py-2.5 font-mono text-gray-500 font-medium text-xs",children:E(ye)}),a.jsx("td",{className:"px-4 py-3",children:a.jsxs("span",{className:`font-mono font-nomal text-xs px-2 py-0.5 rounded ${Fe?"text-emerald-700 bg-emerald-100":"text-rose-700 bg-rose-100"}`,children:[Fe?"+":"",E(qe)]})}),a.jsx("td",{className:"px-4 py-3 font-mono text-blue-600 font-bold text-xs",children:E(Qe)}),a.jsxs("td",{className:"px-4 py-3 text-gray-400 text-xs flex items-center gap-1",children:[a.jsx(Sa,{size:12}),f(Y.thoigian)]}),a.jsx("td",{className:"px-4 py-3 text-gray-700 max-w-[200px] truncate text-xs",children:a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("div",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${Fe?"bg-emerald-400":"bg-rose-400"}`}),a.jsx(At,{content:U(Y.noidung),children:a.jsx("span",{className:"truncate cursor-default",children:U(Y.noidung)})})]})})]},Y.id||P)})})]})}),a.jsx("div",{className:"mt-auto",children:a.jsx(lx,{currentPage:Ke,totalPages:tt,onPageChange:Le})})]})]})]}),a.jsx(Ab,{isOpen:St,onClose:()=>oe(!1),currentEmail:v.email||"",currentPhone:v.phone||"",onSave:ze})]}):null},Vo={NORTH:[20,14,38,39,10,26,7,25,24,11,16,23,12,3,5,1,19,4,2,9,8],CENTRAL:[21,43,13,22,27,32,34,29,6,37,36,33,31,28,35,30],SOUTH:[17,41,44,18,46,40,42]},ri=({value:r,onChange:x,options:g,icon:d,headerText:N,className:S="",minWidth:T="min-w-[140px]",maxWidth:H="max-w-[140px]",disabled:D=!1,iconClassName:j,renderLabel:Q})=>{const[A,J]=h.useState(!1),xe=h.useRef(null);h.useEffect(()=>{const I=Se=>{xe.current&&!xe.current.contains(Se.target)&&J(!1)};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);const me=g.find(I=>String(I.value)===String(r)&&!I.isHeader);return a.jsxs("div",{className:`relative ${S} ${T}`,ref:xe,onClick:I=>I.stopPropagation(),children:[a.jsxs("button",{onClick:()=>!D&&J(!A),disabled:D,className:`flex items-center justify-between gap-2 px-3 py-1.5 border text-xs leading-[1.2rem] transition-all rounded-none 45 ${A?"border-blue-500 ring-1 ring-blue-500":"border-[#eaedf1] hover:border-blue-300"} 46 ${D?"bg-gray-50 text-gray-400 cursor-not-allowed":"bg-white text-gray-700 cursor-pointer"} 47 `,children:[a.jsxs("div",{className:"flex items-center gap-2 truncate min-w-[110px] max-w-[110px]",children:[d&&a.jsx(d,{size:14,className:`${j||"text-gray-400"} flex-shrink-0`}),a.jsx("div",{className:"truncate",children:Q?Q(me):me?.label||"Chá»n..."})]}),a.jsx(is,{size:14,className:`text-gray-400 transition-transform flex-shrink-0 ${A?"rotate-180":""}`})]}),A&&a.jsxs("div",{className:"absolute top-full left-0 mt-1 min-w-[158px] max-w-[158px] bg-white border border-gray-200 shadow-xl z-[60] py-1 animate-in fade-in zoom-in duration-100 overflow-hidden",children:[N&&a.jsx("div",{className:"px-3 py-2 border-b border-gray-100 text-[10px] font-semibold text-gray-400 uppercase tracking-wider bg-gray-50/50",children:N}),a.jsx("div",{className:"max-h-[220px] overflow-y-auto custom-scrollbar",children:g.map((I,Se)=>I.isHeader?a.jsx("div",{className:"px-3 py-1.5 bg-gray-50 border-y border-gray-100 text-[10px] font-bold text-gray-500 uppercase tracking-wider mt-1 first:mt-0",children:I.label},`header-${Se}`):a.jsxs("button",{onClick:()=>{x(I.value),J(!1)},className:`w-full text-left px-3 py-2 text-xs transition-colors flex items-center gap-1 48 ${String(I.value)===String(r)?"bg-blue-50 text-blue-600 font-medium":"text-gray-700 hover:bg-gray-50 hover:text-blue-600"} 49 `,children:[I.icon&&a.jsx(I.icon,{size:14,className:String(I.value)===String(r)?"text-blue-500":"text-gray-400"}),a.jsx("span",{className:"truncate flex-1",children:I.label}),String(I.value)===String(r)&&a.jsx(rt,{size:12,className:"ml-auto flex-shrink-0"})]},I.value))})]})]})},Ob=({isOpen:r,onClose:x,content:g,title:d})=>{const[N,S]=h.useState(!1);if(!r)return null;const T=()=>{navigator.clipboard.writeText(g),S(!0),setTimeout(()=>S(!1),2e3)};return a.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[80] flex items-center justify-center p-4 animate-in fade-in duration-200",children:a.jsxs("div",{className:"bg-white shadow-2xl w-full max-w-2xl flex flex-col max-h-[90vh]",children:[a.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 bg-gray-50",children:[a.jsxs("h3",{className:"font-bold text-gray-800 flex items-center gap-2",children:[a.jsx(Ct,{size:18,className:"text-blue-600"}),d]}),a.jsx("button",{onClick:x,className:"text-gray-400 hover:text-gray-600 p-1 hover:bg-gray-200 transition-colors",children:a.jsx(ea,{size:20})})]}),a.jsx("div",{className:"p-4 flex-1 overflow-hidden flex flex-col",children:a.jsx("div",{className:"relative flex-1",children:a.jsx("textarea",{className:"w-full h-full min-h-[300px] p-3 border border-gray-300 bg-gray-50 font-mono text-sm text-gray-700 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none resize-none",value:g,readOnly:!0})})}),a.jsxs("div",{className:"p-4 border-t border-gray-200 bg-gray-50 flex justify-end gap-3",children:[a.jsx("button",{onClick:x,className:"px-4 py-2 bg-white border border-gray-300 text-sm font-medium text-gray-700 hover:bg-gray-100 transition-colors",children:"Äóng"}),a.jsxs("button",{onClick:T,className:"px-6 py-2 bg-blue-600 text-white text-sm font-bold hover:bg-blue-700 shadow-md transition-all active:scale-95 flex items-center gap-2",children:[N?a.jsx(rt,{size:16}):a.jsx(Ct,{size:16}),N?"Äã sao chép":"Sao chép toà n bá»"]})]})]})})},Db=({visibleCols:r,onToggle:x})=>{const[g,d]=h.useState(!1),N=h.useRef(null);h.useEffect(()=>{const T=H=>{N.current&&!N.current.contains(H.target)&&d(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);const S=[{key:"notes",label:"Check Trùng"},{key:"connection",label:"Allow Auth"},{key:"auth",label:"(User Auth)"},{key:"info",label:"Thông tin API"},{key:"action",label:"Thao tác"}];return a.jsxs("div",{className:"relative",ref:N,children:[a.jsx(At,{content:"Cà i Äặt hiá»n thá» cá»t",children:a.jsxs("button",{onClick:()=>d(!g),className:`px-3 py-1.5 border text-xs leading-[1.2rem] transition-all flex items-center gap-2 rounded-none 50 ${g?"bg-blue-50 text-blue-600 border-blue-200 ring-1 ring-blue-500":"bg-white border-gray-200 text-gray-500 hover:bg-gray-50"} 51 `,children:[a.jsx(Tx,{size:16}),a.jsx("span",{className:"font-medium hidden sm:inline",children:"Hiá»n thá»"})]})}),g&&a.jsxs("div",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-2 w-60 bg-white border border-gray-200 shadow-xl z-[70] animate-in fade-in zoom-in duration-200 overflow-hidden",children:[a.jsxs("div",{className:"px-4 py-3 border-b border-gray-100 bg-gray-50/50 flex justify-between items-center",children:[a.jsx("span",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider",children:"Ẩn/Hiá»n Cá»t"}),a.jsx(ea,{size:14,className:"text-gray-400 cursor-pointer hover:text-gray-600",onClick:()=>d(!1)})]}),a.jsx("div",{className:"p-2 space-y-1",children:S.map(T=>a.jsxs("div",{className:"flex items-center justify-between p-2 hover:bg-gray-50 cursor-pointer group transition-colors",onClick:()=>x(T.key),children:[a.jsx("span",{className:`text-sm ${r[T.key]?"text-gray-700 font-nomal":"text-gray-400"}`,children:T.label}),a.jsx("div",{className:`w-9 h-5 relative transition-colors duration-200 ${r[T.key]?"bg-blue-500":"bg-gray-200"}`,children:a.jsx("div",{className:`absolute top-1 w-3 h-3 bg-white transition-all duration-200 shadow-sm ${r[T.key]?"left-5":"left-1"}`})})]},T.key))})]})]})},Hb=({orders:r,isLoading:x=!1,onCheckLive:g,onGetNewIp:d,onUpdateLocation:N,onUpdateSettings:S,onRenew:T,onDelete:H,onBulkGetNewIp:D,onShowToast:j,onRefresh:Q})=>{const[A,J]=h.useState(""),[xe,me]=h.useState("all"),[I,Se]=h.useState(null),[ae,he]=h.useState([]),[Me,Xe]=h.useState(null),[$e,ne]=h.useState(null),[re,Ke]=h.useState(null),[Le,tt]=h.useState(1),[Ze,je]=h.useState(10),[Be,St]=h.useState("asc"),[oe,v]=h.useState(!1),[G,ce]=h.useState(new Set),[pe,ze]=h.useState(!1),[f,E]=h.useState(!1),[U,V]=h.useState(!1),[ue,we]=h.useState(""),[Y,P]=h.useState(""),ye=h.useRef(null),Qe=h.useRef(null),[qe,Fe]=h.useState(new Set),[it,Rt]=h.useState(()=>{const b=localStorage.getItem("proxyTableCols");if(b)try{return JSON.parse(b)}catch{}return{notes:!0,location:!0,connection:!0,auth:!0,info:!0,action:!0}}),te=b=>{Rt(q=>{const ee={...q,[b]:!q[b]};return localStorage.setItem("proxyTableCols",JSON.stringify(ee)),ee})};h.useEffect(()=>{(async()=>
51{try{const ee=await He.proxy.getLocations();he(ee)}catch(ee){console.error("Failed to load locations",ee)}})();const q=ee=>{ye.current&&!ye.current.contains(ee.target)&&ze(!1),Qe.current&&!Qe.current.contains(ee.target)&&E(!1)};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[]);const ct=h.useMemo(()=>{const b={value:0,label:"0. Ngẫu nhiên",icon:aa},q=ae.filter(ee=>ee.id!==0);if(oe){const ee=_e=>q.find(k=>k.id===_e),Te=Vo.NORTH.map(_e=>ee(_e)).filter(_e=>_e!==void 0),Ce=Vo.CENTRAL.map(_e=>ee(_e)).filter(_e=>_e!==void 0),Zt=Vo.SOUTH.map(_e=>ee(_e)).filter(_e=>_e!==void 0),pt=[b];return Te.length>0&&(pt.push({value:"h-north",label:"--- Miá»n Bắc ---",isHeader:!0}),pt.push({value:-1,label:"Ngẫu nhiên Miá»n Bắc",icon:ss,iconClassName:"text-indigo-500"}),pt.push(...Te.map(_e=>({value:_e.id,label:`${_e.id}. ${_e.name}`,icon:aa})))),Ce.length>0&&(pt.push({value:"h-central",label:"--- Miá»n Trung ---",isHeader:!0}),pt.push({value:-2,label:"Ngẫu nhiên Miá»n Trung",icon:ss,iconClassName:"text-amber-500"}),pt.push(...Ce.map(_e=>({value:_e.id,label:`${_e.id}. ${_e.name}`,icon:aa})))),Zt.length>0&&(pt.push({value:"h-south",label:"--- Miá»n Nam ---",isHeader:!0}),pt.push({value:-3,label:"Ngẫu nhiên Miá»n Nam",icon:ss,iconClassName:"text-emerald-500"}),pt.push(...Zt.map(_e=>({value:_e.id,label:`${_e.id}. ${_e.name}`,icon:aa})))),pt}else return[b,...q.map(ee=>({value:ee.id,label:`${ee.id}. ${ee.name}`,icon:aa}))]},[ae,oe]),zt=h.useMemo(()=>r.filter(q=>{const ee=A.toLowerCase(),Te=q.name?.toLowerCase()||"",Ce=q.proxy_orders||"",Zt=q.user?.toLowerCase()||"",pt=q.api_trans_id?.toLowerCase()||"",_e=q.api_key?.toLowerCase()||"",k=q.ghichu?.toLowerCase()||"",Ae=Ce.includes(ee)||Te.includes(ee)||pt.includes(ee)||Zt.includes(ee)||_e.includes(ee)||k.includes(ee);let dt=!0;return xe==="running"?dt=q.trangthai_hethan==="1":xe==="expired"&&(dt=q.trangthai_hethan!=="1"),Ae&&dt}).sort((q,ee)=>Be==="asc"?q.id-ee.id:ee.id-q.id),[r,A,xe,Be]),Gt=Math.ceil(zt.length/Ze),ft=zt.slice((Le-1)*Ze,Le*Ze),K=()=>{const b=ft.map(Te=>Te.id),q=b.every(Te=>G.has(Te)),ee=new Set(G);q?b.forEach(Te=>ee.delete(Te)):b.forEach(Te=>ee.add(Te)),ce(ee)},F=b=>{const q=new Set(G);q.has(b)?q.delete(b):q.add(b),ce(q)},W=()=>r.filter(b=>G.has(b.id)),Re=b=>{const q=W();let ee="",Te="";switch(b){case"apikey":ee=q.map(Ce=>Ce.api_key||"").filter(Boolean).join(` 52`),Te=`Danh sách ${q.length} API Key`;break;case"http":ee=q.map(Ce=>Ce.proxy_orders&&Ce.port_orders?`${Ce.proxy_orders}:${Ce.port_orders}
52`:"").filter(Boolean).join(` 53`),Te=`Danh sách ${q.length} HTTP Proxy (IP:Port)`;break;case"sock":ee=q.map(Ce=>Ce.proxy_orders&&Ce.port_sock?`${Ce.proxy_orders}:${Ce.port_sock}`:"").filter(Boolean).join(` 54`),Te=`Danh sách ${q.length} SOCKS Proxy (IP:Port)`;break;case"http_full":ee=q.map(Ce=>Ce.proxy_orders&&Ce.port_userpass&&Ce.user&&Ce.pass?`${Ce.proxy_orders}:${Ce.port_userpass}:${Ce.user}:${Ce.pass}`:"").filter(Boolean).join(` 55`),Te=`Danh sách ${q.length} HTTP Full (IP:Port:User:Pass)`;break;case"sock_full":ee=q.map(Ce=>Ce.proxy_orders&&Ce.port_sockuserpass&&Ce.user&&Ce.pass?`${Ce.proxy_orders}:${Ce.port_sockuserpass}:${Ce.user}:${Ce.pass}`:"").filter(Boolean).join(` 56`),Te=`Danh sách ${q.length} SOCKS Full (IP:Port:User:Pass)`;break}we(ee),P(Te),V(!0),ze(!1)},De=b=>{const q=W();q.length!==0&&(b==="renew"?T(q):b==="delete"?H(q):b==="newip"&&D(q),E(!1))},Je=(b,q,ee)=>{ee.stopPropagation(),navigator.clipboard.writeText(b),Se(q),j("success","Sao chép và o clipboard"),setTimeout(()=>Se(null),1500)},kt=(b,q)=>{N(b,q)},Vt=async(b,q)=>{q.stopPropagation(),Ke(null),Xe(b.id);const ee=b.vitri_orders?Number(b.vitri_orders):0,Te=await d(b,ee);Xe(null),Te||(Ke(b.id),setTimeout(()=>Ke(null),3e3))},yt=(b,q)=>{S(b,"time_checktrung",q)},B=(b,q)=>{S(b,"domain",q)},le=(b,q)=>{const ee=q.target.value,Te=b.ghichu||"";ee!==Te&&S(b,"ghichu",ee)},de=(b,q)=>{q.key==="Enter"&&q.currentTarget.blur()},ve=(b,q)=>{q.stopPropagation();const ee=new Set(qe);ee.has(b)?ee.delete(b):ee.add(b),Fe(ee)},mt=()=>{St(b=>b==="asc"?"desc":"asc")},ot=b=>{if(!b||b==="0"||b===0)return"N/A";let q;if(/^\d+$/.test(String(b))){let k=Number(b);k<1e10&&(k*=1e3),q=new Date(k)}else q=new Date(b);if(isNaN(q.getTime()))return"Invalid Date";const Te=q.getHours().toString().padStart(2,"0"),Ce=q.getMinutes().toString().padStart(2,"0"),Zt=q.getDate().toString().padStart(2,"0"),pt=(q.getMonth()+1).toString().padStart(2,"0"),_e=q.getFullYear();return`${Te}:${Ce} ${Zt}/${pt}/${_e}`},Ee=b=>{if(b<1024)return`${b} B`;const q=b/1024;if(q<1024)return`${q.toLocaleString(void 0,{maximumFractionDigits:1})} KB`;const ee=q/1024;return ee<1024?`${ee.toLocaleString(void 0,{maximumFractionDigits:1})} MB`:`${(ee/1024).toLocaleString(void 0,{maximumFractionDigits:2})} GB`},Et=b=>{const q=Number(b.data)||0,ee=Number(b.today_used_bytes)||0;if(String(b.isp)==="4"||String(b.domain)==="4"||b.api_key?.includes("4g")||b.product_id===6){const Te=(Number(b.base_limit_bytes)||0)+(Number(b.bonus_limit_bytes)||0);if(Te>0)return`Ngà y: ${Ee(ee)} / ${Ee(Te)} (Tá»ng: ${Ee(q)})`}return`Tá»ng: ${Ee(q)}${ee>0?` (Ngà y: ${Ee(ee)})`:""}`},ha=b=>{if(!(String(b.isp)==="4"||String(b.domain)==="4"||b.api_key?.includes("4g")||b.product_id===6))return!1;const ee=(Number(b.base_limit_bytes)||0)+(Number(b.bonus_limit_bytes)||0);return ee>0&&(Number(b.today_used_bytes)||0)>=ee},la=ft.length>0&&ft.every(b=>G.has(b.id)),Qa=ft.some(b=>G.has(b.id))&&!la;return a.jsxs("div",{className:"bg-white rounded-none shadow-sm border border-gray-200 flex flex-col h-full min-h-[800px] overflow-hidden relative",children:[a.jsx(Ob,{isOpen:U,onClose:()=>V(!1),content:ue,title:Y}),a.jsxs("div",{className:"px-5 py-5 border-b border-gray-100 flex flex-col lg:flex-row gap-3 justify-center sm:justify-between items-center bg-white z-[50] relative",children:[a.jsxs("div",{className:"flex items-center gap-4 text-sm w-full lg:w-auto justify-center lg:justify-start",children:[a.jsxs("div",{className:"flex items-center gap-2 text-gray-500",children:[a.jsx("button",{onClick:K,className:"hover:text-blue-600 transition-colors focus:outline-none hidden sm:block",title:"Chá»n tất cả",children:la?a.jsx(Ts,{size:20,className:"text-blue-600"}):Qa?a.jsxs("div",{className:"relative",children:[a.jsx(el,{size:20}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-2.5 h-2.5 bg-blue-600 rounded-sm"})})]}):a.jsx(el,{size:20})}),a.jsxs("div",{className:"hidden sm:block",children:["Tá»ng ",a.jsx("span",{className:"font-nomal text-gray-900",children:zt.length})]})]}),a.jsxs("div",{className:"flex gap-2 lg:w-auto",children:[a.jsxs("div",{className:"relative flex-1 lg:flex-none",ref:ye,children:[a.jsxs("button",{onClick:()=>G.size>0&&ze(!pe),disabled:G.size===0,className:`flex items-center gap-2 px-3 py-1.5 border font-bold transition-all w-full justify-between min-w-[160px] sm:min-w-[160px] rounded-none 57 text-xs leading-[1.2rem] 58 ${G.size>0?"bg-blue-50 text-blue-600 border-blue-200 hover:bg-blue-100 cursor-pointer shadow-sm":"bg-gray-50 text-gray-300 border-gray-100 cursor-not-allowed"}`,children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Ct,{size:14}),a.jsxs("span",{className:"sm:hidden",children:["Sao chép (",G.size,")"]}),a.jsxs("span",{className:"hidden sm:inline",children:["Sao chép Äã chá»n (",G.size,")"]})]}),a.jsx(is,{size:14,className:`transition-transform ${pe?"rotate-180":""}`})]}),pe&&a.jsxs("div",{className:"absolute top-full left-0 mt-1 w-full bg-white border border-gray-200 shadow-xl z-[60] py-1 animate-in fade-in zoom-in duration-100 overflow-hidden",children:[a.jsx("div",{className:"px-3 py-2 border-b border-gray-100 text-[10px] font-semibold text-gray-400 uppercase tracking-wider bg-gray-50/50",children:"Chá»n Äá»nh dạng copy"}),a.jsxs("button",{onClick:()=>Re("apikey"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-blue-600 transition-colors flex items-center gap-2",children:[a.jsx(Cc,{size:14})," Api Key"]}),a.jsxs("button",{onClick:()=>Re("http"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-blue-600 transition-colors flex items-center gap-2",children:[a.jsx("span",{className:"font-bold text-[10px] bg-blue-100 text-blue-600 px-1",children:"HTTP"}),"IP:Port"]}),a.jsxs("button",{onClick:()=>Re("sock"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-blue-600 transition-colors flex items-center gap-2",children:[a.jsx("span",{className:"font-bold text-[10px] bg-
58orange-100 text-orange-600 px-1",children:"SOCK"}),"IP:Port"]}),a.jsxs("button",{onClick:()=>Re("http_full"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-blue-600 transition-colors flex items-center gap-2 whitespace-nowrap overflow-hidden text-ellipsis",children:[a.jsx(zl,{size:14})," HTTP Full"]}),a.jsxs("button",{onClick:()=>Re("sock_full"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-blue-600 transition-colors flex items-center gap-2 whitespace-nowrap overflow-hidden text-ellipsis",children:[a.jsx(ua,{size:14})," SOCK Full"]})]})]}),a.jsxs("div",{className:"relative flex-1 lg:flex-none",ref:Qe,children:[a.jsxs("button",{onClick:()=>G.size>0&&E(!f),disabled:G.size===0,className:`flex items-center gap-2 px-3 py-1.5 border font-bold transition-all w-full justify-between min-w-[160px] sm:min-w-[160px] rounded-none 59 text-xs leading-[1.2rem] 60 ${G.size>0?"bg-purple-50 text-purple-600 border-purple-200 hover:bg-purple-100 cursor-pointer shadow-sm":"bg-gray-50 text-gray-300 border-gray-100 cursor-not-allowed"}`,children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(ed,{size:14}),a.jsx("span",{className:"sm:hidden",children:"Thao tác"}),a.jsx("span",{className:"hidden sm:inline",children:"Thao tác Äã chá»n"})]}),a.jsx(is,{size:14,className:`transition-transform ${f?"rotate-180":""}`})]}),f&&a.jsxs("div",{className:"absolute top-full left-0 mt-1 w-full bg-white border border-gray-200 shadow-xl z-[60] py-1 animate-in fade-in zoom-in duration-100 overflow-hidden",children:[a.jsx("div",{className:"px-3 py-2 border-b border-gray-100 text-[10px] font-semibold text-gray-400 uppercase tracking-wider bg-gray-50/50",children:"Chá»n hà nh Äá»ng"}),a.jsxs("button",{onClick:()=>De("newip"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-green-600 transition-colors flex items-center gap-2",children:[a.jsx(Xt,{size:14})," Lấy IP Má»i"]}),a.jsxs("button",{onClick:()=>De("renew"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-blue-600 transition-colors flex items-center gap-2",children:[a.jsx(Sa,{size:14})," Gia hạn"]}),a.jsxs("button",{onClick:()=>De("delete"),className:"w-full text-left px-3 py-2 text-xs text-gray-700 hover:bg-gray-50 hover:text-red-600 transition-colors flex items-center gap-2",children:[a.jsx(_l,{size:14})," Xóa"]})]})]})]})]}),a.jsxs("div",{className:"flex flex-row gap-2 w-full lg:w-auto justify-center sm:justify-center",children:[a.jsxs("div",{className:"relative flex-1 sm:w-64 hidden sm:block",children:[a.jsx("div",{className:"absolute inset-y-0 left-0 pl-2.5 flex items-center pointer-events-none",children:a.jsx(mn,{className:"h-4 w-4 text-gray-400"})}),a.jsx("input",{type:"text",className:"block w-full pl-9 pr-3 py-1.5 border border-[#eaedf1] text-sm focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 transition-all rounded-none",placeholder:"Tìm ghi chú...",value:A,onChange:b=>{J(b.target.value),tt(1)}})]}),a.jsx("button",{onClick:K,className:"hover:text-blue-600 transition-colors focus:outline-none block sm:hidden p-1.5 -ml-2 rounded-none",title:"Chá»n tất cả",children:la?a.jsx(Ts,{size:20,className:"text-blue-600"}):Qa?a.jsxs("div",{className:"relative",children:[a.jsx(el,{size:20}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-2.5 h-2.5 bg-blue-600 rounded-sm"})})]}):a.jsx(el,{size:20})}),a.jsx(At,{content:Be==="asc"?"Sắp xếp: Má»i nhất á» dưá»i":"Sắp xếp: Má»i nhất lên trên",children:a.jsx("button",{onClick:mt,className:"px-3 py-1.5 border border-[#eaedf1] bg-white hover:border-blue-300 transition-all flex items-center justify-center text-gray-500 hover:text-blue-600 min-w-[40px] rounded-none",children:Be==="asc"?a.jsx(fx,{size:16}):a.jsx(px,{size:16})})}),a.jsx(At,{content:oe?"Tắt xếp theo miá»n":"Xếp vá» trà theo miá»n",children:a.jsx("button",{onClick:()=>v(!oe),className:`px-3 py-1.5 border transition-all flex items-center justify-center min-w-[40px] rounded-none 61 ${oe?"bg-indigo-50 border-indigo-200 text-indigo-600":"border-[#eaedf1] bg-white text-gray-500 hover:border-blue-300 hover:text-blue-600"} 62 `,children:a.jsx(ss,{size:16})})}),a.jsx(ri,{value:xe,onChange:b=>{me(b),tt(1)},icon:Wo,headerText:"Lá»c theo trạng thái",minWidth:"min-w-[110px] sm:min-w-[150px]",options:[{value:"all",label:"Tất cả trạng thái"},{value:"running",label:"Hoạt Äá»ng",icon:rt},{value:"expired",label:"Hết hạn",icon:rl}]}),a.jsx(Db,{visibleCols:it,onToggle:te}
62),a.jsx(ri,{value:Ze,onChange:b=>{je(Number(b)),tt(1)},icon:jx,headerText:"dòng/trang",minWidth:"min-w-[100px] sm:min-w-[150px]",options:[{value:10,label:"10 dòng"},{value:20,label:"20 dòng"},{value:50,label:"50 dòng"},{value:100,label:"100 dòng"}]})]})]}),a.jsx("div",{className:"flex-1 overflow-auto bg-gray-50",children:a.jsx("table",{className:"min-w-full divide-y divide-gray-200 border-separate border-spacing-0",children:a.jsx("tbody",{className:"bg-white divide-y divide-gray-100",children:x?a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"px-6 py-20 text-center bg-white",children:a.jsx("div",{className:"flex flex-col items-center justify-center text-gray-400 gap-3",children:a.jsx("div",{className:"w-8 h-8 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"})})})}):ft.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"px-6 py-12 text-center bg-white"})}):ft.map(b=>{const q=`ord-${b.id}`,ee=Me===b.id,Te=re===b.id,Ce=b.vitri_orders?Number(b.vitri_orders):0,Zt=G.has(b.id),pt=b.trangthai_hethan==="1",_e=pt?"#3cb72c":"#ef4444",k=b.time_checktrung==="172800",Ae=b.domain==="1"?"1":b.domain==="2"?"2":b.domain==="4"?"4":"0",dt=qe.has(b.id),Ut=b.proxy_orders&&b.port_orders?`${b.proxy_orders}:${b.port_orders}`:"",na=b.proxy_orders&&b.port_sock?`${b.proxy_orders}:${b.port_sock}`:"",Ha=b.proxy_orders&&b.port_userpass&&b.user&&b.pass?`${b.proxy_orders}:${b.port_userpass}:${b.user}:${b.pass}`:"",pa=b.proxy_orders&&b.port_sockuserpass&&b.user&&b.pass?`${b.proxy_orders}:${b.port_sockuserpass}:${b.user}:${b.pass}`:"";return a.jsxs("tr",{className:`transition-colors text-sm group ${Zt?"bg-blue-100":"odd:bg-[#fafdff] even:bg-white"}`,onClick:()=>F(b.id),children:[a.jsx("td",{className:"px-4 py-3 align-top border-b border-gray-100",children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2 mt-[10px]",children:[a.jsx("button",{onClick:se=>{se.stopPropagation(),F(b.id)},className:`p-0.5 flex-shrink-0 transition-colors 63 ${Zt?"bg-blue-100 text-blue-600":"bg-gray-0 text-gray-400 hover:text-gray-600"} 64 `,children:Zt?a.jsx(Ts,{size:20}):a.jsx(el,{size:20})}),a.jsx("div",{className:"flex flex-col min-w-0",children:a.jsx("span",{className:"font-normal text-gray-900 line-clamp-2",children:b.name||a.jsx("span",{className:"italic text-gray-400",children:"Không có tên"})})})]}),a.jsx(ri,{value:Ae,onChange:se=>B(b,String(se)),icon:zl,iconClassName:"text-blue-600",headerText:"Chá»n Nhà Mạng",options:[{value:"0",label:"ALL ISP",icon:Zo},{value:"1",label:"VNPT",icon:wa},{value:"2",label:"VIETTEL",icon:wa},...b.product_id===6?[{value:"4",label:"4G",icon:wa}]:[]],renderLabel:se=>a.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[a.jsx("span",{className:"text-[10px] font-bold text-blue-600 block w-fit truncate",children:se?.label||"ALL ISP"}),se?.value==="4"&&a.jsx("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:a.jsx("span",{className:"text-[9px] font-bold text-emerald-600 bg-emerald-50 px-1 py-0 shadow-sm rounded border border-emerald-100",children:Et(b)})})]})})]})}),it.notes&&a.jsx("td",{className:"px-1 py-3 align-top border-b border-gray-100",onClick:se=>se.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ri,{value:k?"172800":"0",onChange:se=>yt(b,String(se)),icon:ua,iconClassName:k?"text-emerald-600":"text-rose-500",headerText:"Cấu hình Check Trùng",options:[{value:"0",label:"Tắt check trùng IP",icon:rl},{value:"172800",label:"Báºt check trùng IP",icon:rt}],minWidth:"min-w-[160px]"}),a.jsxs("div",{className:"relative",children:[a.jsx(Xo,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none"}),a.jsx("input",{type:"text",defaultValue:b.ghichu||"",placeholder:"Ghi chú...",className:"min-w-[158px] max-w-[158px] pl-8 pr-2 py-1.5 text-xs leading-[1.2rem] border border-transparent bg-gray-50 hover:bg-white hover:border-gray-300 focus:bg-white focus:border-blue-500 focus:ring-1 focus:ring-blue-500 transition-all placeholder-gray-400 text-gray-700 truncate rounded-none",onBlur:se=>le(b,se),onKeyDown:se=>de(b,se)},`${b.id}-${b.ghichu}`)]})]})}),it.location&&a.jsx("td",{className:"px-1 py-3 align-top border-b border-gray-100",onClick:se=>se.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ri,{value:Ce,onChange:se=>kt(b,Number(se)),icon:aa,headerText:"Chá»n vá» trà IP",options:ct,renderLabel:se=>se?se.value===-1?"Miá»n Bắc":se.value===-2?"Miá»n Trung":se.value===-3?"Miá»n Nam":se.label:"0. Ngẫu nhiên"}),a.jsx(At,{content:pt?"":"Gói Äã hết hạn",children:a.jsxs("button",{className:`min-w-[158px] max-w-[158px] py-1.5 px-3 text-xs leading-[1.2rem] font-normal tracking-wide shadow-sm flex items-center justify-center gap-2 transition-all whitespace-nowrap rounded-none 65 ${ee?"bg-blue-50 text-blue-600 border border-blue-200 cursor-wait":pt?Te?"bg-red-100 text-red-600 border border-red-200":"bg-[#39ed90] text-white hover:brightness-95 border border-[#39ed90]":"bg-gray-100 text-gray-400 border border-gray-200 cursor-not-allowed"} 66 `,onClick:se=>pt&&Vt(b,se),disabled:ee||!pt,children:[ee?a.jsx(Xt,{size:14,className:"animate-spin"}):Te?a.jsx(rl,{size:14}):a.jsx(Xt,{size:14}),ee?"Äang lấy...":Te?"Thất bại/Chá»":"Lấy IP Má»i"]})})]})}),it.connection&&a.jsx("td",{className:"px-2 py-3 align-middle border-b border-gray-100",onClick:se=>se.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[Ut&&Ae!=="4"&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[a.jsx("span",{className:"text-[10px] font-bold text-[#00bfff] bg-[#00bfff]/10 px-1 border border-[#00bfff]/20 min-w-[35px] text-center flex-shrink-0",children:b.http?b.http.toUpperCase():"HTTP"}),a.jsx("code",{onClick:se=>Je(Ut,`${q}-http-ip`,se),className:"text-xs font-mono text-[#00bfff] truncate cursor-pointer hover:bg-blue-50 px-1 rounded transition-colors",children:Ut})]}),a.jsx("button",{onClick:se=>Je(Ut,`${q}-http-ip`,se),className:`p-1 hover:bg-gray-100 flex-shrink-0 ${I===`${q}-http-ip`?"text-green-600":"text-gray-400 hover:text-blue-600"}`,children:I===`${q}-http-ip`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),na&&Ae!=="4"&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[a.jsx("span",{className:"text-[10px] font-bold text-orange-600 bg-orange-50 px-1 border border-orange-100 min-w-[35px] text-center flex-shrink-0",children:b.sock?b.sock.toUpperCase():"SOCK"}),a.jsx("code",{onClick:se=>Je(na,`${q}-sock-ip`,se),className:"text-xs font-mono text-orange-600 truncate cursor-pointer hover:bg-orange-50 px-1 rounded transition-colors",children:na})]}),a.jsx("button",{onClick:se=>Je(na,`${q}-sock-ip`,se),className:`p-1 hover:bg-gray-100 flex-shrink-0 ${I===`${q}-sock-ip`?"text-green-600":"text-gray-400 hover:text-blue-600"}`,children:I===`${q}-sock-ip`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),Ae==="4"&&a.jsxs("div",{className:"flex flex-col gap-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[a.jsx("span",{className:"text-gray-400 italic text-[10px] whitespace-nowrap",children:"Äá»a chá» IP 4G:"}),b.ip_4g?a.jsx("span",{className:"text-blue-600 font-medium text-[10px] px-1.5 py-0.5",children:b.ip_4g}):a.jsx("span",{className:"text-gray-300 italic text-[9px]",children:"Äang cáºp nháºt..."})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsxs("span",{className:`font-bold text-[10px] px-1.5 py-0.5 rounded border w-fit ${ha(b)?"text-red-500 bg-red-50 border-red-200 animate-pulse":"text-emerald-600 bg-emerald-50/50 border-emerald-100/50"}`,children:["Dung lượng: ",Et(b)]}),a.jsx(At,{content:"Khi hết dung lượng, tá»± Äá»ng mua thêm 1GB (5,000Ä)",children:a.jsxs("div",{onClick:se=>{se.stopPropagation(),S(b,"auto_buy_data",Number(b.auto_buy_data)===1?"0":"1")},className:"flex items-center gap-1.5 ml-1 cursor-pointer group/autobuy",children:[a.jsx("div",{className:`relative inline-flex h-3.5 w-6.5 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${Number(b.auto_buy_data)===1?"bg-blue-600":"bg-gray-200"}`,children:a.jsx("span",{className:`pointer-events-none inline-block h-2.5 w-2.5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${Number(b.auto_buy_data)===1?"translate-x-3":"translate-x-0"}`})}),a.jsx("span",{className:`text-[9px] font-bold tracking-tight uppercase ${Number(b.auto_buy_data)===1?"text-blue-600":"text-gray-400 group-hover/autobuy:text-gray-600"}`,children:"Tá»± mua 1GB"})]})}),a.jsx("button",{onClick:se=>{se.stopPropagation(),ne(b)},className:"text-[9px] font-bold text-white bg-blue-500 px-1.5 py-0.5 rounded-[3px] hover:bg-blue-600 transition-colors shadow-sm ml-1",children:"MUA THÃM"})]}),ha(b)&&Number(b.auto_buy_data)!==1&&a.jsx("div",{className:"text-[9px] text-red-500 font-medium italic animate-bounce mt-0.5",children:'â ï¸ Äã hết data. Vui lòng mua thêm hoặc báºt "Tá»± mua".'})]}),!Ut&&!na&&Ae!=="4"&&a.jsx("div",{className:"h-8 flex items-center text-gray-300 text-xs italic",children:"Chưa có IP"})]})}),it.auth&&a.jsx("td",{className:"px-1 py-3 align-middle border-b border-gray-100",onClick:se=>se.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[Ha&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("div",{className:"flex items-center gap-1.5 min-w-0",children:a.jsx("code",{onClick:se=>Je(Ha||"",`${q}-httpup`,se),className:"text-xs font-mono text-[#00bfff] truncate max-w-[200px] xl:max-w-[300px] cursor-pointer hover:bg-blue-50 px-1 rounded transition-colors",children:Ha||""})}),a.jsx("button",{onClick:se=>Je(Ha,`${q}-httpup`,se),className:`p-1 hover:bg-gray-100 flex-shrink-0 ${I===`${q}-httpup`?"text-green-600":"text-gray-400 hover:text-blue-600"}`,children:I===`${q}-httpup`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),pa&&a.jsxs("div",{className:"flex items-center gap-0",children:[a.jsx("div",{className:"flex items-center gap-1.5 min-w-0",children:a.jsx("code",{onClick:se=>Je(pa||"",`${q}-sockup`,se),className:"text-xs font-mono text-orange-600 truncate max-w-[200px] xl:max-w-[300px] cursor-pointer hover:bg-orange-50 px-1 rounded transition-colors",children:pa||""})}),a.jsx("button",{onClick:se=>Je(pa,`${q}-sockup`,se),className:`p-1 hover:bg-gray-100 flex-shrink-0 ${I===`${q}-sockup`?"text-green-600":"text-gray-400 hover:text-blue-600"}`,children:I===`${q}-sockup`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]})]})}),it.info&&a.jsx("td",{className:"px-1 py-3 align-middle border-b border-gray-100",onClick:se=>se.stopPropagation(),children:a.jsxs("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[a.jsxs("div",{className:"flex items-center gap-1.5 group/key",children:[a.jsx("div",{className:"flex items-center gap-1.5 min-w-0",children:a.jsx("span",{onClick:se=>Je(b.api_key||"",`${q}-apikey`,se),className:"text-xs font-medium truncate max-w-[200px] cursor-pointer hover:bg-blue-50 px-1 text-right",style:{color:_e},children:b.api_key||""})}),b.api_key&&a.jsx("button",{onClick:se=>Je(b.api_key||"",`${q}-apikey`,se),className:`p-1 shadow-sm transition-all flex-shrink-0 rounded-none 67 ${I===`${q}-apikey`?"text-green-600 bg-green-50":"bg-white/50 hover:bg-white text-gray-500 hover:text-blue-600"}`,children:I===`${q}-apikey`?a.jsx(rt,{size:12}):a.jsx(Ct,{size:12})})]}),a.jsxs("div",{className:"flex items-center text-xs gap-2 mt-1",children:[a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(wc,{size:13,className:"flex-shrink-0"}),a.jsx("span",{className:"whitespace-nowrap font-medium",children:ot(b.time_het)})]}),b.location_hientai&&a.jsx(At,{content:dt?"Click Äá» xem vá» trÃ":"Click Äá» xem IP Allow",children:a.jsxs("div",{onClick:se=>ve(b.id,se),className:`flex items-center gap-0 font-bold px-1.5 py-0.5 border truncate max-w-[120px] cursor-pointer transition-all select-none 68 ${dt?"bg-purple-50 text-purple-600 border-purple-100":"bg-blue-50 text-blue-600 border-blue-100"}`,children:[dt?a.jsx(ua,{size:11,className:"flex-shrink-0"}):a.jsx(aa,{size:11,className:"flex-shrink-0"}),a.jsx("span",{className:"truncate text-[11px]",children:dt?b.ip_allow_orders:b.location_hientai})]})})]})]})}),it.action&&a.jsx("td",{className:"px-1 py-3 text-center align-middle whitespace-nowrap border-b border-gray-100",onClick:se=>se.stopPropagation(),children:a.jsxs("div",{className:"flex items-center justify-center gap-1.5",children:[a.jsx(At,{content:"Check Live proxy",children:a.jsx("button",{className:"flex flex-col items-center justify-center gap-1 text-purple-600 hover:text-purple-700 hover:bg-purple-50 p-2 transition-colors group/check rounded-none",onClick:se=>{se.stopPropagation(),g(b)},children:a.jsx("div",{className:"p-1.5 bg-purple-100 group-hover/check:bg-purple-200",children:a.jsx(ns,{size:16,className:"group-hover/check:animate-pulse"})})})}),a.jsx(At,{content:"Gia hạn Proxy",children:a.jsx("button",{onClick:se=>{se.stopPropagation(),T([b])},className:"flex flex-col items-center justify-center gap-1 text-emerald-600 hover:text-emerald-700 hover:bg-emerald-50 p-2 transition-colors group/renew rounded-none",children:a.jsx("div",{className:"p-1.5 bg-emerald-100 group-hover/renew:bg-emerald-200",children:a.jsx(Sa,{size:16})})})}),a.jsx(At,{content:"Xóa Proxy",children:a.jsx("button",{onClick:se=>{se.stopPropagation(),H([b])},className:"flex flex-col items-center justify-center gap-1 text-red-500 hover:text-red-700 hover:bg-red-50 p-2 transition-colors group/delete rounded-none",children:a.jsx("div",{className:"p-1.5 bg-red-100 group-hover/delete:bg-red-200",children:a.jsx(_l,{size:16})})})})]})})]},b.id)})})})}),a.jsxs("div",{className:"px-4 py-3 border-t border-gray-200 bg-white flex items-center justify-between text-sm",children:[a.jsxs("span",{className:"text-gray-500",children:["Trang ",Le," / ",Gt||1]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("button",{onClick:()=>tt(b=>Math.max(1,b-1)),disabled:Le===1,className:"p-1.5 border border-gray-200 hover:bg-gray-50 disabled:opacity-30 rounded-none",children:a.jsx(Ms,{size:16})}),a.jsx("button",{onClick:()=>tt(b=>Math.min(Gt,b+1)),disabled:Le===Gt||Gt===0,className:"p-1.5 border border-gray-200 hover:bg-gray-50 disabled:opacity-30 rounded-none",children:a.jsx(rs,{size:16})})]})]}),$e&&a.jsx(Mx,{isOpen:!!$e,onClose:()=>ne(null),order:$e,onSuccess:()=>Q?.(),onShowToast:j})]})},Lb=({orders:r,onClose:x,onConfirm:g})=>{const[d,N]=h.useState(1),[S,T]=h.useState(!1),H=r.length>1,{totalCost:D,totalPricePerDay:j}=h.useMemo(()=>{const A=r.reduce((J,xe)=>J+(xe.price||0),0);return{totalPricePerDay:A,totalCost:A*d}}
68,[r,d]);if(r.length===0)return null;const Q=async()=>{if(!(d<1)){T(!0);try{await g(r,d),x()}catch{}finally{T(!1)}}};return a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[100] flex items-center justify-center p-4 animate-in fade-in duration-300",children:a.jsxs("div",{className:"bg-white/90 backdrop-blur-2xl rounded-2xl shadow-xl w-full max-w-md overflow-hidden border border-white/60 transform transition-all animate-in zoom-in-95 duration-300",children:[a.jsxs("div",{className:"px-6 py-5 border-b border-slate-100 flex items-center justify-between bg-white/50",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"p-2.5 bg-indigo-50 text-indigo-600 rounded-xl shadow-sm",children:a.jsx(Sa,{size:22})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-bold text-slate-800 tracking-tight",children:"Gia hạn dá»ch vụ"}),a.jsx("p",{className:"text-[11px] font-medium text-slate-400 mt-0.5",children:H?`Äang chá»n ${r.length} proxy`:"Cấu hình thá»i gian duy trì"})]})]}),a.jsx("button",{onClick:x,className:"p-1.5 hover:bg-slate-100 rounded-full transition-colors text-slate-400 hover:text-slate-600",children:a.jsx(ea,{size:20})})]}),a.jsxs("div",{className:"p-6 space-y-6",children:[!H&&a.jsxs("div",{className:"p-3 bg-slate-50 rounded-xl border border-slate-100 mb-2",children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 mb-0.5",children:"Proxy Äang chá»n"}),a.jsx("p",{className:"text-sm font-semibold text-slate-700 truncate",children:r[0].name||`ÄÆ¡n hà ng #${r[0].id}`})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-xs font-bold text-slate-500 mb-3 ml-1",children:"Sá» ngà y gia hạn"}),a.jsxs("div",{className:"relative group",children:[a.jsx(wc,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-indigo-500 transition-colors",size:18}),a.jsx("input",{type:"number",min:"1",value:d,onChange:A=>N(Number(A.target.value)),className:"w-full pl-12 pr-4 py-3.5 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-indigo-500 focus:bg-white outline-none font-bold text-slate-800 text-sm transition-all",placeholder:"Nháºp sá» ngà y..."})]}),a.jsx("div",{className:"flex gap-2 mt-3",children:[1,3,7,30].map(A=>a.jsxs("button",{onClick:()=>N(A),className:`flex-1 py-2 text-xs font-bold rounded-lg border transition-all ${d===A?"bg-indigo-600 text-white border-indigo-600 shadow-md shadow-indigo-100":"bg-white text-slate-500 border-slate-200 hover:border-indigo-300 hover:text-indigo-600"}`,children:[A," ngà y"]},A))})]}),a.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-white rounded-2xl p-5 border border-slate-100 shadow-inner",children:[a.jsxs("div",{className:"flex justify-between items-center mb-3",children:[a.jsx("span",{className:"text-slate-400 text-xs font-semibold",children:"ÄÆ¡n giá / ngà y"}),a.jsxs("span",{className:"font-bold text-slate-700 text-sm",children:[j.toLocaleString(),"Ä"]})]}),a.jsx("div",{className:"h-px bg-slate-100 mb-3"}),a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"p-1.5 bg-teal-50 text-teal-600 rounded-lg",children:a.jsx(cs,{size:16})}),a.jsx("span",{className:"text-slate-900 font-bold text-sm",children:"Tá»ng thanh toán"})]}),a.jsx("div",{className:"text-right",children:a.jsxs("p",{className:"text-2xl font-black text-teal-600 tracking-tight leading-none",children:[D.toLocaleString(),a.jsx("span",{className:"text-xs ml-1 font-bold opacity-70",children:"Ä"})]})})]})]})]}),a.jsxs("div",{className:"px-6 py-5 bg-slate-50/50 border-t border-slate-100 flex gap-3",children:[a.jsx("button",{onClick:x,className:"flex-1 py-3.5 bg-white border border-slate-200 text-slate-600 text-sm font-bold rounded-xl hover:bg-slate-50 hover:text-slate-900 transition-all shadow-sm",children:"Há»§y bá»"}),a.jsx("button",{onClick:Q,disabled:S,className:"flex-[1.5] py-3.5 bg-slate-900 text-white font-bold text-sm rounded-xl hover:bg-slate-800 shadow-lg shadow-slate-200 transition-all active:scale-95 flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:S?a.jsx("span",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsxs(a.Fragment,{children:["Xác nháºn gia hạn ",a.jsx(zs,{size:18})]})})]})]})})},Ub=({orders:r,onClose:x,onConfirm:g})=>{const[d,N]=h.useState(!1);if(r.length===0)return null;const S=r.length>1,T=async()=>{N(!0);try{await g(r),x()}catch{}finally{N(!1)}};return a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[100] flex items-center justify-center p-4 animate-in fade-in duration-300",children:a.jsxs("div",{className:"bg-white/90 backdrop-blur-2xl rounded-2xl shadow-xl w-full max-w-md overflow-hidden border border-white/60 transform transition-all animate-in zoom-in-95 duration-300",children:[a.jsxs("div",{className:"px-6 py-5 border-b border-slate-100 flex items-center justify-between bg-white/50",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"p-2.5 bg-rose-50 text-rose-600 rounded-xl shadow-sm",children:a.jsx(Ka,{size:22})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-bold text-slate-800 tracking-tight",children:"Há»§y gói truy cáºp"}),a.jsx("p",{className:"text-[11px] font-medium text-slate-400 mt-0.5",children:S?`Äang chá»n ${r.length} dá»ch vụ`:"Hà nh Äá»ng nà y không thá» hoà n tác"})]})]}),a.jsx("button",{onClick:x,className:"p-1.5 hover:bg-slate-100 rounded-full transition-colors text-slate-400 hover:text-slate-600",children:a.jsx(ea,{size:20})})]}),a.jsxs("div",{className:"p-8 flex flex-col items-center text-center",children:[a.jsx("div",{className:"w-20 h-20 bg-rose-50 rounded-full flex items-center justify-center mb-6 border border-rose-100/50",children:a.jsx(_l,{size:36,className:"text-rose-500"})}),a.jsxs("div",{className:"space-y-2",children:[S?a.jsxs("p",{className:"text-slate-600 font-medium leading-relaxed",children:["Bạn chắc chắn muá»n xóa ",a.jsx("span",{className:"font-bold text-rose-600 px-1",children:r.length})," gói Äã chá»n?"]}):a.jsx("p",{className:"text-slate-600 font-medium leading-relaxed",children:"Bạn chắc chắn muá»n xóa gói
68nà y?"}),a.jsx("p",{className:"text-xs text-slate-400",children:"Dữ liá»u sẽ bá» xóa không thá» khôi phục hãy cân nhắc kỹ!"})]})]}),a.jsxs("div",{className:"px-6 py-5 bg-slate-50/50 border-t border-slate-100 flex gap-3",children:[a.jsx("button",{onClick:x,className:"flex-1 py-3.5 bg-white border border-slate-200 text-slate-600 text-sm font-medium rounded-xl hover:bg-slate-50 hover:text-slate-900 transition-all shadow-sm",children:"Quay lại"}),a.jsx("button",{onClick:T,disabled:d,className:"flex-[1.5] py-3.5 bg-slate-900 text-white font-medium text-sm rounded-xl hover:bg-slate-800 shadow-lg shadow-slate-200 transition-all active:scale-95 flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",children:d?a.jsx("span",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsx(a.Fragment,{children:S?"Xác nháºn xóa tất cả":"Xác nháºn xóa gói"})})]})]})})},$b=({user:r,onShowToast:x})=>{const[g,d]=h.useState(!1),[N,S]=h.useState([]),[T,H]=h.useState("100000"),[D,j]=h.useState(0),[Q,A]=h.useState(""),[J,xe]=h.useState(!1),[me,I]=h.useState(!1),[Se,ae]=h.useState(0),[he,Me]=h.useState(null),[Xe,$e]=h.useState(""),[ne,re]=h.useState(null),[Ke,Le]=h.useState(!1),[tt,Ze]=h.useState(!1),[je,Be]=h.useState(!1),[St,oe]=h.useState(null),[v,G]=h.useState(null),[ce,pe]=h.useState(!1),[ze,f]=h.useState(null),[E,U]=h.useState(!1),[V,ue]=h.useState(null),[we,Y]=h.useState(!1),[P,ye]=h.useState(1),Qe=10;h.useEffect(()=>{const K=Math.ceil(N.length/Qe);P>K&&K>0&&ye(K)},[N,P,Qe]);const qe=K=>{const F=(yt,...B)=>{for(const le of B){const de=yt.getElementsByTagName(le)[0];if(de&&de.textContent)return de.textContent}return""},W=K.getElementsByTagName("NBan")[0],Re=K.getElementsByTagName("NMua")[0],De=K.getElementsByTagName("TTChung")[0],Je=K.getElementsByTagName("TToan")[0],kt=K.getElementsByTagName("HHDVu"),Vt=[];for(let yt=0;yt<kt.length;yt++){const B=kt[yt];Vt.push({stt:F(B,"STT"),name:F(B,"THHDVu","Ten"),unit:F(B,"DVTinh"),quantity:F(B,"SLuong"),price:F(B,"DGia"),amount:F(B,"ThTien","ThanhTien"),vatRate:F(B,"TSuat"),vatAmount:F(B,"TThue")})}return{seller:{name:F(W,"Ten"),address:F(W,"DChi","DiaChi"),taxCode:F(W,"MST"),phone:F(W,"SDThoai"),email:F(W,"Email"),website:F(W,"Website"),accountNo:F(W,"STK"),bank:F(W,"NganHang")},buyer:{name:F(Re,"HVTNMHang","Ten","HVDen"),company:F(Re,"Ten"),taxCode:F(Re,"MST"),address:F(Re,"DChi","DiaChi"),paymentMethod:F(De,"HTTToan")},invoice:{type:F(De,"THDon","Ten"),serial:F(De,"KHHDon","KHieu"),no:F(De,"SHDon","So"),date:F(De,"NLap"),taxCodeCQT:F(K,"MCCQT"),lookupCode:F(De,"MTDieu")},items:Vt,summary:{totalBeforeVat:F(Je,"TgTCThue"),totalVat:F(Je,"TgTThue"),totalAfterVat:F(Je,"TgTTTBSo","TgTTToan"),vatRate:F(Je,"TSuat"),amountInWords:F(Je,"TgTTTBChu","TgTTToanByWord")}}},Fe=h.useCallback(async(K=!1)=>{K||d(!0);try{const F=await He.deposit.getData();S(F.invoices||[]);const W=F.invoices?.find(Re=>Re.status===0);Me(W||null)}catch{S([])}finally{K||d(!1)}},[]);h.useEffect(()=>{const K=()=>{if(he){const W=new Date(he.create_date).getTime();(Date.now()-W)/(1e3*60)>=3?Ze(!0):Ze(!1)}else Ze(!1)};K();const F=setInterval(K,2e4);return()=>clearInterval(F)},[he]),h.useEffect(()=>{r?.money&&Fe(!0)},[r?.money,Fe]),h.useEffect(()=>{Fe()},[Fe]),h.useEffect(()=>{const K=parseInt(T);!isNaN(K)&&K>=1e5?He.deposit.calculatePromotion(K).then(F=>j(F.received||K)).catch(()=>j(K)):j(0)},[T]),h.useEffect(()=>{if(!he){$e("");return}he.bank_bin&&he.bank_number&&$e(`/api/qrcode?bin=${he.bank_bin}&account=${he.bank_number}&accountName=${encodeURIComponent(he.bank_name||"")}&amount=${he.pay}&addInfo=${he.bank_content}`)},[he]),h.useEffect(()=>{let K;return me&&Se>0?K=setInterval(()=>{ae(F=>F-1)},1e3):Se===0&&I(!1),()=>clearInterval(K)},[me,Se]);const it=async K=>{if(K.preventDefault(),me)return;A("");const F=parseInt(T);if(isNaN(F)||F<1e5){A("Sá» tiá»n tá»i thiá»u là 100,000Ä");return}xe(!0);try{const W=await He.deposit.create(F);W.success?(H("100000"),Fe(),x("success","Äã tạo hóa ÄÆ¡n má»i thà nh công"),I(!0),ae(10)):A(W.message||"Lá»i khi tạo hóa ÄÆ¡n")}catch(W){A(W.message||"Lá»i kết ná»i há» thá»ng")}finally{xe(!1)}},Rt=async()=>
68{if(!he||!r||je)return;Be(!0);const K=`Khieu nai nap tien: ${r.username} - ${he.trans_id}`,F=`Khach hang ${r.username} (ID: ${r.id}) bao da nap ${he.pay.toLocaleString()}Ä luc ${new Date(he.create_date).toLocaleString("vi-VN")} nhung sau 10 phut chua thay noi tien. Ma GD: ${he.trans_id}. Vui long kiem tra.`,W=`https://proxymxh.com/ajaxs/client/guiemailquenmatkhau.php?tieude=${encodeURIComponent(K)}&noidung=${encodeURIComponent(F)}&[email protected]`;try{await fetch(W,{mode:"no-cors"}),x("success","Äã gá»i thông báo cho quản trá» viên xá» lý")}catch{x("error","Lá»i khi gá»i yêu cầu há» trợ")}finally{Be(!1)}},te=async()=>{if(ne){Le(!0);try{const K=await He.deposit.cancel(ne);K.success?(Fe(),he?.id===ne&&Me(null),re(null),x("success","Äã há»§y hóa ÄÆ¡n nạp tiá»n")):x("error",K.message||"Không thá» há»§y hóa ÄÆ¡n")}catch{x("error","Lá»i kết ná»i")}finally{Le(!1)}}},ct=async K=>{oe(K),ue(null),f(null),U(!1);try{const W=await(await fetch(`https://hoadondientu.fproxy.me/api/check-invoice?transaction_code=${K}`)).json(),Re=W.data?.data?.invoice||W.data?.invoice||W.data;if(W.success)if(Re&&Re.pdf_url){const De=`/api/proxy-pdf?url=${encodeURIComponent(Re.pdf_url)}`;if(f(De),Y(!0),Re.xml_url)try{const kt=await(await fetch(`/api/proxy-xml?url=${encodeURIComponent(Re.xml_url)}`)).text(),yt=new DOMParser().parseFromString(kt,"text/xml"),B=qe(yt);ue(B)}catch(Je){console.error("XML Load Error:",Je),De&&U(!0)}else De&&U(!0)}else x("error","Không tìm thấy liên kết tải PDF cho hóa ÄÆ¡n nà y");else x("error",W.data?.message||W.message||"Hóa ÄÆ¡n chưa sẵn sà ng hoặc không tá»n tại")}catch{x("error","Lá»i kết ná»i máy chá»§ hóa ÄÆ¡n")}finally{oe(null)}},zt=async K=>{G(K);try{const W=await(await fetch(`https://hoadondientu.fproxy.me/api/check-invoice?transaction_code=${K}`)).json(),Re=W.data?.data?.invoice||W.data?.invoice||W.data;if(W.success)if(Re&&Re.pdf_url){const De=`/api/proxy-pdf?url=${encodeURIComponent(Re.pdf_url)}`,Je=await fetch(De);if(!Je.ok)throw new Error("PDF download failed");const kt=await Je.blob(),Vt=window.URL.createObjectURL(kt),yt=document.createElement("a");yt.href=Vt,yt.setAttribute("download",`HoaDon_${K}.pdf`),document.body.appendChild(yt),yt.click(),window.URL.revokeObjectURL(Vt),document.body.removeChild(yt),x("success","Tải hóa ÄÆ¡n thà nh công")}else x("error","Không tìm thấy liên kết tải PDF");else x("error",W.data?.message||W.message||"Hóa ÄÆ¡n chưa sẵn sà ng")}catch{x("error","Lá»i kết ná»i máy chá»§ hóa ÄÆ¡n")}finally{G(null)}},Gt=async()=>{if(ze){pe(!0);try{const K=await fetch(ze);if(!K.ok)throw new Error("Download failed");const F=await K.blob(),W=window.URL.createObjectURL(F),Re=document.createElement("a");Re.href=W,Re.download=`HoaDon_${V?.invoice?.no||"Electronic"}.pdf`,document.body.appendChild(Re),Re.click(),window.URL.revokeObjectURL(W),document.body.removeChild(Re),x("success","Tải hóa ÄÆ¡n thà nh công")}catch{x("error","Lá»i khi tải PDF")}finally{pe(!1)}}},ft=K=>{navigator.clipboard.writeText(K),x("success","Äã sao chép ná»i dung")};return a.jsxs("div",{className:"space-y-6 pb-12",children:[ne&&a.jsx("div",{className:"fixed inset-0 z-[110] bg-slate-900/60 backdrop-blur-sm flex items-center justify-center p-4",children:a.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl max-w-sm w-full p-8 text-center border border-white/20",children:[a.jsx("div",{className:"w-20 h-20 bg-rose-50 rounded-full flex items-center justify-center mx-auto mb-6 border border-rose-100",children:a.jsx(_l,{size:32,className:"text-rose-500"})}),a.jsx("h3",{className:"text-xl font-bold text-slate-800 mb-2",children:"Há»§y hóa ÄÆ¡n nà y?"}),a.jsx("p",{className:"text-sm text-slate-500 mb-8 font-medium",children:"Nếu Äã chuyá»n tiá»n thì không ÄÆ°á»£c xóa lá»nh nà y"}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx("button",{onClick:()=>re(null),className:"flex-1 py-3 bg-slate-100 text-slate-600 rounded-xl text-sm font-bold hover:bg-slate-200 transition-all",children:"Äóng"}),a.jsx("button",{onClick:te,disabled:Ke,className:"flex-1 py-3 bg-rose-600 text-white rounded-xl text-sm font-bold hover:bg-rose-700 shadow-lg shadow-rose-200 flex items-center justify-center gap-2",children:Ke?a.jsx(Xt,{size:18,className:"animate-spin"}):"Xác nháºn há»§y"})]})]})}),a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4",children:[a.jsx("div",{className:"lg:col-span-5 flex flex-col",children:a.jsxs("div",{className:"bg-slate-50 rounded-xl border border-slate-200 p-6 flex flex-col h-full shadow-sm",children:[a.jsxs("h3",{className:"text-sm text-slate-400 mb-5 flex items-center gap-2",children:[a.jsx(Io,{size:18,className:"text-indigo-600"})," Khá»i tạo hóa ÄÆ¡n nạp tiá»n"]}),a.jsxs("div",{className:"bg-indigo-50 border border-indigo-100 rounded-lg p-3.5 mb-5 flex gap-2.5 text-xs text-indigo-700",children:[a.jsx(Ka,{size:18,className:"flex-shrink-0 mt-0.5"}),a.jsxs("p",{className:"font-medium leading-relaxed",children:["Nạp tá»i thiá»u: ",a.jsx("span",{className:"font-bold",children:"100.000Ä"}),". Tiá»n ÄÆ°á»£c cá»ng tá»± Äá»ng ngay khi giao dá»ch thà nh công. Nếu sau 5 phút chưa nháºn ÄÆ°á»£c tiá»n, bạn có thá» bấm nút âBáo Adminâ Äá» kiá»m tra nhanh. Lưu ý: Sá» dư Äã nạp không há» trợ rút, Liobank không tá»± Äá»ng nháºn cú pháp không nên dùng Äá» nạp. Äặc biá»t không nạp hai lần và o má»t mã."]})]}),a.jsxs("form",{onSubmit:it,className:"space-y-5 flex-1",children:[a.jsx("div",{className:"space-y-1.5",children:a.jsx("input",{type:"text",value:Number(T).toLocaleStr
68ing(),readOnly:!0,className:"w-full p-3.5 bg-slate-100 border border-slate-200 rounded-lg text-slate-800 cursor-not-allowed",placeholder:"Chá»n má»nh giá bên dưá»i"})}),a.jsx("div",{className:"grid grid-cols-5 gap-2",children:[1e5,12e4,15e4,2e5,3e5,5e5,1e6,2e6,5e6,1e7].map(K=>a.jsxs("button",{type:"button",onClick:()=>H(K.toString()),className:"py-2.5 text-xs font-bold bg-white border border-slate-200 rounded-lg hover:border-indigo-500 hover:text-indigo-600 hover:bg-indigo-50 transition-all shadow-sm",children:[K.toLocaleString(),"Ä"]},K))}),D>0&&!J&&a.jsxs("div",{className:"p-4 bg-teal-50 text-teal-700 rounded-lg border border-teal-100 flex justify-between items-center mt-2",children:[a.jsx("span",{className:"text-xs font-bold",children:"Thá»±c nháºn"}),a.jsxs("span",{className:"text-xs font-mono",children:[D.toLocaleString(),"Ä"]})]}),Q&&a.jsx("p",{className:"text-rose-600 text-xs font-bold text-center",children:Q}),a.jsx("button",{type:"submit",disabled:J||me,className:"w-full py-4 bg-indigo-600 hover:bg-indigo-700 text-white font-mono rounded-xl shadow-lg shadow-indigo-100 transition-all active:scale-95 flex justify-center items-center gap-3 disabled:opacity-50 text-xs tracking-widest mt-4",children:J?a.jsx(Xt,{className:"animate-spin"}):me?a.jsxs(a.Fragment,{children:["Vui lòng chá» (",Se,"s)"]}):a.jsxs(a.Fragment,{children:["Tạo mã thanh toán ",a.jsx(zs,{size:18})]})})]})]})}),a.jsx("div",{className:"lg:col-span-7 space-y-6",children:he?a.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl shadow-sm overflow-hidden flex flex-col h-full",children:[a.jsxs("div",{className:"bg-slate-900 p-6 text-white flex justify-between items-center",children:[a.jsx("div",{children:a.jsxs("h3",{className:"text-[15px] font-mono text-teal-400 tracking-tighter",children:["Sá» tiá»n cần thanh toán: ",he.pay.toLocaleString(),"Ä"]})}),a.jsx("div",{className:"px-5 py-3 bg-white/10 rounded-2xl flex items-center gap-2.5 text-sm border border-white/5",children:"Chưa thanh toán"})]}),a.jsxs("div",{className:"p-8 flex flex-col md:flex-row items-center gap-10 bg-white",children:[a.jsx("div",{className:"w-60 h-60 bg-white border border-slate-100 rounded-2xl p-3 flex-shrink-0 shadow-xl shadow-indigo-50",children:Xe?a.jsx("img",{src:Xe,className:"w-full h-full object-contain",alt:"QR Nạp tiá»n"}):a.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-300",children:a.jsx(Xt,{className:"animate-spin"})})}),a.jsx("div",{className:"flex-1 w-full space-y-5",children:a.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("p",{className:"text-[12px] font-mono text-slate-400 uppercase tracking-widest",children:"Ngân hà ng"}),a.jsxs("p",{className:"text-sm font-mono text-slate-800",children:[he.bank_brand," Bank"]})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("p",{className:"text-[12px] font-mono text-slate-400 uppercase tracking-widest",children:"Tà i khoản thụ hưá»ng"}),a.jsx("p",{className:"text-sm font-mono text-slate-800",children:he.bank_name})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("p",{className:"text-[12px] font-mono text-slate-400 uppercase tracking-widest",children:"Sá» tà i khoản"}),a.jsxs("div",{className:"flex items-center gap-3 bg-slate-50 p-3 rounded-xl border border-slate-200 group cursor-pointer hover:border-indigo-400 transition-all",onClick:()=>ft(he.bank_number||""),children:[a.jsx("span",{className:"font-mono font-mono text-lg text-indigo-600 flex-1 tracking-wider",children:he.bank_number}),a.jsx(Ct,{size:18,className:"text-slate-400 group-hover:text-indigo-600"})]})]}),a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("p",{className:"text-[12px] font-mono text-slate-400 uppercase tracking-widest",children:"Ná»i dung chuyá»n khoản"}),a.jsxs("div",{className:"flex items-center gap-3 bg-indigo-50 p-3 rounded-xl border border-indigo-200 group cursor-pointer hover:border-indigo-500 transition-all",onClick:()=>ft(he.bank_content||""),children:[a.jsx("span",{className:"font-mono font-mono text-lg text-slate-800 flex-1 tracking-wider",children:he.bank_content}),a.jsx(Ct,{size:18,className:"text-indigo-600"})]}),a.jsxs("p",{className:"text-[13px] text-rose-500 font-mono flex items-center gap-2 mt-2 uppercase tracking-tighter",children:[a.jsx(As,{size:12}
68)," Bắt buá»c nháºp Äúng ná»i dung Äá» ÄÆ°á»£c duyá»t tá»± Äá»ng"]})]})]})})]}),tt&&a.jsx("div",{className:"px-8 pb-6 bg-white",children:a.jsxs("button",{onClick:Rt,disabled:je,className:"w-full py-3 bg-amber-500 hover:bg-amber-600 text-white rounded-xl text-xs tracking-widest flex items-center justify-center gap-2 shadow-lg shadow-amber-100 transition-all active:scale-95",children:[je?a.jsx(Xt,{className:"animate-spin"}):a.jsx(vg,{size:18}),"Báo Admin Äá» kiá»m tra nhanh hoặc Äã chuyá»n mà chưa lên sá» dư."]})}),a.jsxs("div",{className:"p-5 bg-slate-50 border-t border-slate-100 flex justify-between items-center",children:[a.jsx("p",{className:"text-[10px] text-slate-400 font-bold italic",children:"* Há» thá»ng tá»± nháºn diá»n giao dá»ch sau khi ngân hà ng xá» lý xong"}),a.jsxs("button",{onClick:()=>re(he.id),className:"text-xs text-rose-500 hover:text-rose-700 flex items-center gap-2 transition-colors tracking-widest",children:[a.jsx(_l,{size:16})," Xóa hóa ÄÆ¡n"]})]})]}):a.jsxs("div",{className:"bg-slate-50 rounded-xl border-2 border-dashed border-slate-200 flex flex-col items-center justify-center text-slate-400 p-12 h-full min-h-[350px] shadow-inner",children:[a.jsx("div",{className:"w-20 h-20 bg-white rounded-full flex items-center justify-center mb-6 shadow-sm border border-slate-100",children:a.jsx(qg,{size:40,className:"text-slate-300"})}),a.jsx("h4",{className:"text-slate-700 font-mono text-md tracking-tight",children:"Äang chá» khá»i tạo mã thanh toán"}),a.jsx("p",{className:"text-xs text-center max-w-[250px] mt-2 font-medium leading-relaxed opacity-70",children:"Chá»n sá» tiá»n và tạo mã thanh toán."})]})})]}),a.jsxs("div",{className:"mt-12",children:[a.jsxs("div",{className:"flex justify-between items-center mb-4 px-2",children:[a.jsxs("h3",{className:"text-sm text-slate-400 tracking-widest flex items-center gap-2",children:[a.jsx(Nc,{size:16,className:"text-indigo-500"})," Lá»ch sá» hóa ÄÆ¡n gần Äây"]}),a.jsx("button",{onClick:()=>Fe(),className:"text-indigo-600 hover:bg-indigo-50 p-2 rounded-xl transition-all border border-transparent hover:border-indigo-100",children:a.jsx(Xt,{size:18,className:g?"animate-spin":""})})]}),a.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl overflow-hidden shadow-sm",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-sm text-left",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-400 border-b border-slate-100",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-6 py-4 text-[10px] uppercase tracking-widest",children:"Mã GD"}),a.jsx("th",{className:"px-6 py-4 text-[10px] uppercase tracking-widest",children:"Sá» tiá»n nạp"}),a.jsx("th",{className:"px-6 py-4 text-[10px] uppercase tracking-widest",children:"Thá»i gian tạo"}),a.jsx("th",{className:"px-6 py-4 text-[10px] uppercase tracking-widest text-center",children:"Trạng thái"}),a.jsx("th",{className:"px-6 py-4 text-[10px] uppercase tracking-widest text-right",children:"Hóa ÄÆ¡n"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-100",children:N.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"p-16 text-center text-slate-400 font-bold uppercase text-[10px] tracking-widest opacity-60 italic",children:"Không có dữ liá»u hóa ÄÆ¡n"})}):N.slice((P-1)*Qe,P*Qe).map(K=>a.jsxs("tr",{className:"hover:bg-slate-50 transition-colors group",children:[a.jsxs("td",{className:"px-6 py-4 font-mono text-xs font-black text-slate-500",children:["#",K.trans_id]}),a.jsxs("td",{className:"px-6 py-4 font-mono text-slate-800",children:[K.pay.toLocaleString(),"Ä"]}),a.jsx("td",{className:"px-6 py-4 text-slate-400 text-[10px] font-bold",children:new Date(K.create_date).toLocaleString("vi-VN")}),a.jsxs("td",{className:"px-6 py-4 text-center",children:[K.status===0&&a.jsx("span",{className:"px-3 py-1 bg-amber-50 text-amber-600 text-[9px] font-mono border border-amber-100 tracking-widest",children:"Äang chá»"}),K.status===1&&a.jsx("span",{className:"px-3 py-1 bg-emerald-50 text-emerald-600 text-[9px] font-mono border border-emerald-100 tracking-widest",children:"Thà nh công"}),K.status===2&&a.jsx("span",{className:"px-3 py-1 bg-rose-50 text-rose-500 text-[9px] font-mono border border-rose-100 tracking-widest",children:"Äã há»§y"})]}),a.jsx("td",{className:"px-6 py-4 text-right",children:K.status===1&&a.jsxs("div",{className:"flex items-center justify-end gap-2",children:[a.jsxs("button",{onClick:()=>ct(K.trans_id),disabled:St===K.trans_id,className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-indigo-50 text-indigo-600 rounded-lg text-[10px] hover:bg-indigo-600 hover:text-white transition-all border border-indigo-100",children:[St===K.trans_id?a.jsx(Xt,{size:12,className:"animate-spin"}):a.jsx(Nc,{size:12}),"Xem"]}),a.jsxs("button",{onClick:()=>zt(K.trans_id),disabled:v===K.trans_id,className:"inline-flex items-center gap-1.5 px-3 py-1.5 bg-emerald-50 text-emerald-600 rounded-lg text-[10px] hover:bg-emerald-600 hover:text-white transition-all border border-emerald-100",children:[v===K.trans_id?a.jsx(Xt,{size:12,className:"animate-spin"}):a.jsx(Sc,{size:12}),"Tải vá»"]})]})})]},K.id))})]})}),N.length>0&&a.jsxs("div",{className:"px-6 py-4 bg-slate-50 border-t border-slate-100 flex items-center justify-between",children:[a.jsxs("span",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-widest",children:["Trang ",P," / ",Math.max(1,Math.ceil(N.length/Qe))," (",N.length," hóa ÄÆ¡n)"]}),N.length>Qe&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("button",{onClick:()=>ye(K=>Math.max(1,K-1)),disabled:P===1,className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-400 hover:text-indigo-600 hover:border-indigo-100 transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:a.jsx(Ms,{size:16})}),[...Array(Math.ceil(N.length/Qe))].map((K,F)=>{const W=F+1;return W===1||W===Math.ceil(N.length/Qe)||W>=P-1&&W<=P+1?a.jsx("button",{onClick:()=>ye(W),className:`min-w-[32px] h-8 rounded-lg text-[10px] font-bold transition-all ${P===W?"bg-indigo-600 text-white shadow-md shadow-indigo-100":"bg-white border border-slate-200 text-slate-400 hover:text-indigo-600 hover:border-indigo-100"}`,children:W},W):W===2&&P>3||W===Math.ceil(N.length/Qe)-1&&P<Math.ceil(N.length/Qe)-2?a.jsx("span",{className:"text-slate-300 text-xs px-1",children:"..."},W):null}),a.jsx("button",{onClick:()=>ye(K=>Math.min(Math.ceil(N.length/Qe),K+1)),disabled:P===Math.ceil(N.length/Qe),className:"p-2 rounded-lg bg-white border border-slate-200 text-slate-400 hover:text-indigo-600 hover:border-indigo-100 transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:a.jsx(rs,{size:16})})]})]})]})]}),we&&a.jsx("div",{className:"fixed inset-0 z-[150] bg-slate-900/80 backdrop-blur-md flex items-center justify-center p-4 md:p-8 animate-in fade-in duration-300 overflow-y-auto print:p-0 print:bg-white print:backdrop-blur-none",children:a.jsxs("div",{className:"bg-white rounded-none shadow-2xl w-full max-w-4xl min-h-fit flex flex-col border border-white/20 my-auto print:shadow-none print:border-none print:w-full print:max-w-none print:my-0",children:[a.jsxs("div",{className:"p-4 border-b border-slate-100 flex justify-between items-center bg-slate-50 sticky top-0 z-10 print:hidden",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:`w-10 h-10 ${V?"bg-emerald-600":"bg-indigo-600"} rounded-xl flex items-center justify-center text-white shadow-lg ${V?"shadow-emerald-100":"shadow-indigo-100"}`,children:V?a.jsx(Fo,{size:20}):a.jsx(Nc,{size:20})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-sm text-slate-800",children:V?"Hóa ÄÆ¡n Äiá»n tá» (Web View)":"Xem trưá»c hóa ÄÆ¡n Äiá»n tá»"}),a.jsx("p",{className:"text-[10px] text-slate-400 font-medium tracking-widest",children:V?"Dữ liá»u gá»c từ XML":"Bản thá» hiá»n Äiá»n tá»"})]})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[ze&&a.jsxs("button",{onClick:Gt,disabled:ce,className:"px-4 py-2 bg-indigo-600 text-white rounded-lg text-xs hover:bg-indigo-700 transition-all flex items-center gap-2 shadow-lg shadow-indigo-100 disabled:opacity-70",children:[ce?a.jsx(Xt,{size:16,className:"animate-spin"}):a.jsx(Sc,{size:16}),ce?"Äang tải...":"Tải PDF"]}),a.jsx("button",{onClick:()=>{Y(!1),ue(null),f(null)},className:"p-2 text-slate-400 hover:text-rose-500 hover:bg-rose-50 rounded-lg transition-all",children:a.jsx(ea,{size:24})})]})]}),a.jsx("div",{className:"flex-1 overflow-y-auto",children:V?a.jsx("div",{className:"p-8 md:p-12 bg-white text-slate-900 font-sans print:p-0",children:a.jsxs("div",{className:"max-w-3xl mx-auto border border-slate-200 p-8 shadow-sm rounded-sm print:border-none print:shadow-none relative",children:[a.jsxs("div",{className:"flex flex-col md:flex-row gap-6 mb-8 border-b border-slate-100 pb-8",children:[a.jsx("div",{className:"flex-shrink-0 flex items-start pt-1",children:a.jsx("img",{src:"/image/logo.png",alt:"Logo",className:"h-20 w-auto object-contain"})}),a.jsxs("div",{className:"flex-1 space-y-1",children:[a.jsx("h2",{className:"text-lg font-medium text-indigo-900 uppercase leading-tight",children:V.seller.name||"CÃNG TY TNHH GIẢI PHÃP MẠNG FPRO"}),a.jsxs("p",{className:"text-xs text-slate-600",children:[a.jsx("span",{className:"font-bold",children:"Äá»a chá» (Address):"})," ",V.seller.address||"Sá» 19 Cao Bá Quát, Phưá»ng Võ Cưá»ng, Tá»nh Bắc Ninh, Viá»t Nam"]}),a.jsxs("p",{className:"text-xs text-slate-600",children:[a.jsx("span",{className:"font-bold",children:"Mã sá» thuế (Tax code):"})," ",V.seller.taxCode||"2301378455"]}),a.jsx("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-slate-600",children:a.jsxs("p",{children:[a.jsx("span",{className:"font-bold",children:"Äiá»n thoại (Tel):"})," ",V.seller.phone||"0333809887"]})}),a.jsxs("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs text-slate-600",children:[a.jsxs("p",{children:[a.jsx("span",{className:"font-bold",children:"Sá» tà i khoản (Account No.):"})," ",V.seller.accountNo||"48372877"]}),a.jsxs("p",{children:[a.jsx("span",{className:"font-bold",children:"Ngân hà ng (Bank):"})," ",V.seller.bank||"ACBPGD Kinh Bắc"]})]})]})]}),a.jsxs("div",{className:"text-center mb-10",children:[a.jsx("h1",{className:"text-2xl font-medium text-blue-900 tracking-tight uppercase",children:"HÃA ÄÆ N GIà TRá» GIA TÄNG"}),a.jsxs("p",{className:"text-xs mt-2 italic text-slate-600",children:["Ngà y (Date) ",V.invoice.date?new Date(V.invoice.date).getDate():"..."," tháng (month) ",V.invoice.date?new Date(V.invoice.date).getMonth()+1:"..."," nÄm (year) ",V.invoice.date?new Date(V.invoice.date).getFullYear():"..."]})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-8 text-xs bg-slate-50 p-4 rounded-lg border border-slate-100",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-slate-400 font-bold uppercase text-[9px] mb-1",children:"Mã CQT (Tax AC)"}),a.jsx("p",{className:"font-medium text-slate-600 break-all",children:V.invoice.taxCodeCQT})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-slate-400 font-bold uppercase text-[9px] mb-1",children:"Ký hiá»u (Serial)"}),a.jsx("p",{className:"font-medium font-bold",children:V.invoice.serial})]}),a.jsxs("div",{children:[a.jsx("p",{className:"text-slate-400 font-bold uppercase text-[9px] mb-1",children:"Sá» (No.)"}),a.jsx("p",{className:"font-medium font-bold text-rose-600",children:V.invoice.no})]})]}),a.jsxs("div",{className:"space-y-2 mb-8 text-xs border-b border-slate-100 pb-8",children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx("span",{className:"font-bold min-w-[180px]",children:"Há» tên ngưá»i mua hà ng (Buyer):"}),a.jsx("span",{className:"text-slate-800",children:V.buyer.name||"Khách lẻ"})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:[a.jsxs("div",{className:"flex gap-2",children:[a.jsx("span",{className:"font-bold min-w-[180px]",children:"Hình thức thanh toán (Method):"}),a.jsx("span",{className:"text-slate-800 uppercase",children:V.buyer.paymentMethod||"TM/CK"})]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("span",{className:"font-bold",children:"ÄÆ¡n vá» tiá»n tá» (Currency):"}),a.jsx("span",{className:"text-slate-800",children:"VND"})]})]})]}),a.jsx("div",{className:"mb-8 overflow-x-auto",children:a.jsxs("table",{className:"w-full text-[11px] border-collapse border border-slate-300",children:[a.jsxs("thead",{children:[a.jsxs("tr",{className:"bg-violet-100 text-center font-bold",children:[a.jsxs("th",{className:"border border-slate-300 p-2 w-8",children:["STT",a.jsx("br",{}),"(No)"]}),a.jsxs("th",{className:"border border-slate-300 p-2",children:["Tên hà ng hóa, dá»ch vụ",a.jsx("br",{}),"(Name of goods and services)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-12",children:["ÄVT",a.jsx("br",{}),"(Unit)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-12",children:["SL",a.jsx("br",{}),"(Qty)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-20",children:["ÄÆ¡n giá",a.jsx("br",{}
68),"(Price)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-24",children:["Thà nh tiá»n",a.jsx("br",{}),"(Amount)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-12",children:["Thuế",a.jsx("br",{}),"(%)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-20",children:["Tiá»n thuế",a.jsx("br",{}),"(VAT)"]}),a.jsxs("th",{className:"border border-slate-300 p-2 w-24",children:["Cá»ng",a.jsx("br",{}),"(Total)"]})]}),a.jsxs("tr",{className:"bg-slate-50 text-[9px] text-slate-400 text-center italic",children:[a.jsx("td",{className:"border border-slate-300 p-1",children:"1"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"2"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"3"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"4"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"5"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"6=4x5"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"7"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"8=6x7"}),a.jsx("td",{className:"border border-slate-300 p-1",children:"9=6+8"})]})]}),a.jsx("tbody",{children:V.items.map((K,F)=>a.jsxs("tr",{children:[a.jsx("td",{className:"border border-slate-300 p-2 text-center",children:K.stt||F+1}),a.jsx("td",{className:"border border-slate-300 p-2 font-medium",children:K.name||"Phà sá» dụng dá»ch vụ Proxy (trả trưá»c)"}),a.jsx("td",{className:"border border-slate-300 p-2 text-center",children:K.unit||"Lần"}),a.jsx("td",{className:"border border-slate-300 p-2 text-center",children:K.quantity||"1"}),a.jsx("td",{className:"border border-slate-300 p-2 text-right font-medium",children:Number(K.price).toLocaleString()}),a.jsx("td",{className:"border border-slate-300 p-2 text-right font-medium",children:Number(K.amount).toLocaleString()}),a.jsx("td",{className:"border border-slate-300 p-2 text-center",children:K.vatRate||"8"}),a.jsx("td",{className:"border border-slate-300 p-2 text-right font-medium",children:Number(V.summary.totalVat).toLocaleString()}),a.jsx("td",{className:"border border-slate-300 p-2 text-right font-medium font-bold",children:Number(V.summary.totalAfterVat).toLocaleString()})]},F))})]})}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-8",children:[a.jsx("div",{className:"space-y-4",children:a.jsxs("div",{className:"p-4 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 mb-2",children:"Sá» tiá»n viết bằng chữ (Amount in words)"}),a.jsx("p",{className:"text-xs font-bold text-indigo-900 italic",children:V.summary.amountInWords})]})}),a.jsxs("div",{className:"space-y-2 text-xs",children:[a.jsxs("div",{className:"flex justify-between border-b border-slate-100 py-1",children:[a.jsx("span",{className:"text-slate-500",children:"Giá trá» chưa thuế (Excl. VAT):"}),a.jsx("span",{className:"font-medium font-bold",children:Number(V.summary.totalBeforeVat).toLocaleString()})]}),a.jsxs("div",{className:"flex justify-between border-b border-slate-100 py-1",children:[a.jsx("span",{className:"text-slate-500",children:"Tiá»n thuế GTGT (VAT Amount):"}),a.jsx("span",{className:"font-medium font-bold",children:Number(V.summary.totalVat).toLocaleString()})]}),a.jsxs("div",{className:"flex justify-between bg-violet-400 text-white p-3 rounded-lg mt-2",children:[a.jsx("span",{className:"font-bold tracking-tight",children:"Tá»ng cá»ng (Grand Total):"}),a.jsxs("span",{className:"font-medium text-lg",children:[Number(V.summary.totalAfterVat).toLocaleString()," VND"]})]})]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-8 text-center mt-12",children:[a.jsxs("div",{className:"space-y-20",children:[a.jsx("p",{className:"text-xs font-medium",children:"Ngưá»i mua hà ng (Buyer)"}),a.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"(Ký, ghi rõ há» tên)"})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("p",{className:"text-xs font-medium",children:"Ngưá»i bán hà ng (Seller)"}),a.jsxs("div",{className:"border-2 border-emerald-500 rounded-lg p-4 bg-emerald-50 relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 p-1 bg-emerald-500 text-white text-[8px] font-bold tracking-widest",children:"Digital Signature"}),a.jsx("p",{className:"text-[10px] font-bold text-emerald-800 uppercase mb-1",children:"Chữ ký có hiá»u lá»±c (Valid signature)"}),a.jsxs("p",{className:"text-[9px] text-emerald-700",children:["Ký bá»i: ",a.jsx("span",{className:"font-bold",children:V.seller.name})]}),a.jsxs("p",{className:"text-[9px] text-emerald-700",children:["Ngà y ký: ",V.invoice.date?new Date(V.invoice.date).toLocaleDateString("vi-VN"):""]})]})]})]})]})}):ze?a.jsxs("div",{className:"h-[80vh] bg-slate-200 relative",children:[E&&a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-slate-100 z-10",children:a.jsxs("div",{className:"flex flex-col items-center gap-3",children:[a.jsx(Xt,{size:32,className:"text-indigo-600 animate-spin"}),a.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:"Äang tải hóa ÄÆ¡n..."})]})}),a.jsx("iframe",{src:`${ze}#toolbar=0&navpanes=0`,className:"w-full h-full border-none",title:"Invoice Preview",onLoad:()=>U(!1)})]}):a.jsxs("div",{className:"h-64 flex flex-col items-center justify-center gap-4",children:[a.jsx(Xt,{size:32,className:"text-indigo-600 animate-spin"}),a.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest",children:"Äang chuẩn bá» dữ liá»u..."})]})})]})})]})},Bb=[{id:5,name:"Vip 30 Giây",price:3e4,time_doiip:30,time_songcuagoi:9999999,features:["VIETTEL - VNPT - FPT","Kết ná»i HTTP / SOCKS5","Chu kỳ là m má»i: 30 giây","Phiên truy cáºp lâu"]},{id:4,name:"Giữ IP Lâu",price:15e3,time_doiip:240,time_songcuagoi:9999999,features:["VIETTEL - VNPT - FPT","Kết ná»i HTTP / SOCKS5","Chu kỳ là m má»i: 4 phút","Phiên truy cáºp lâu"]},{id:1,name:"Min 1 Phút",price:12e3,time_doiip:60,time_songcuagoi:1800,features:["VIETTEL - VNPT - FPT","Kết ná»i HTTP / SOCKS5","Chu kỳ là m má»i: 1 phút","Thá»i gian sá»ng phiên: 30 phút"]},{id:2,name:"Min 2 Phút",price:1e4,time_doiip:120,time_songcuagoi:1800,features:["VIETTEL - VNPT - FPT","Kết ná»i HTTP / SOCKS5","Chu kỳ là m má»i: 2 phút","Thá»i gian sá»ng phiên: 30 phút"]},{id:3,name:"Min 4 Phút",price:7e3,time_doiip:240,time_songcuagoi:1800,features:["VIETTEL - VNPT - FPT","Kết ná»i HTTP / SOCKS5","Chu kỳ là m má»i: 4 phút","Thá»i gian sá»ng phiên: 30 phút"]},{id:6,name:"Giữ IP Vip",price:2e4,time_doiip:60,time_songcuagoi:9999999,features:["Hạ tầng VIETTEL - VNPT - FPT","Kết ná»i HTTP / SOCKS5","Chu kỳ là m má»i: 60 giây","Phiên truy cáºp lâu"]}],qb=({isOpen:r,onClose:x,onBuySuccess:g})=>{const[d,N]=h.useState(null),[S,T]=h.useState(1),[H,D]=h.useState(1),[j,Q]=h.useState(!1),[A,J]=h.useState(""),[xe,me]=h.useState(0);if(h.useEffect(()=>{r&&He.auth.getProfile().then(ae=>{ae&&me(ae.money||0)}).catch(()=>{})},[r]),!r)return null;const I=async ae=>{if(ae.preventDefault(),!!d){Q(!0),J("");try{const he=await He.proxy.buyProxy({name:d.name,product_id:d.id,so_luong:Number(S),so_ngay:Number(H),gi
68a_goi:d.price,time_doiip:d.time_doiip,time_songcuagoi:d.time_songcuagoi});he.success?(g(),N(null),x()):J(he.message||"Không thá» hoà n tất ÄÄng ký")}catch(he){J(he.message||"Lá»i kết ná»i há» thá»ng")}finally{Q(!1)}}},Se=d?d.price*Number(S)*Number(H):0;return a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[80] flex items-center justify-center p-4 animate-in fade-in duration-300",children:a.jsxs("div",{className:`bg-white rounded-xl shadow-xl w-full border border-slate-200 overflow-hidden ${d?"max-w-md":"max-w-6xl"}`,children:[a.jsxs("div",{className:"flex justify-between items-center px-6 py-4 border-b border-slate-100 bg-slate-50/50",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-bold text-slate-800",children:d?"Xác nháºn mua":"Mua gói truy cáºp"}),a.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Các gói ÄÆ°á»£c phép Äá»i IP không giá»i hạn, há» trợ xác thá»±c proxy bằng IP và User:Pass, IP xoay Äá»ng nên có thá» bá» die Äá»t ngá»t do sá»± cá» Äiá»n hoặc từ nhà mạng."})]}),a.jsx("button",{onClick:x,className:"p-1.5 hover:bg-white rounded-md transition-colors text-slate-400 hover:text-slate-600 border border-transparent hover:border-slate-200",children:a.jsx(ea,{size:20})})]}),a.jsxs("div",{className:"p-6 max-h-[70vh] overflow-y-auto custom-scrollbar",children:[!d&&a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:Bb.map((ae,he)=>a.jsxs("div",{className:"bg-white rounded-lg border border-slate-200 shadow-sm flex flex-col overflow-hidden",children:[a.jsxs("div",{className:"p-5 text-center border-b border-slate-50 bg-slate-50/30",children:[a.jsx("h3",{className:"font-bold text-slate-700 mb-1",children:ae.name}),a.jsxs("p",{className:"text-indigo-600 text-xl font-bold tracking-tight",children:[ae.price.toLocaleString(),"Ä",a.jsx("span",{className:"text-[10px] font-medium ml-1 opacity-70",children:"/ngà y"})]})]}),a.jsx("div",{className:"p-5 space-y-2.5 flex-1",children:ae.features.map((Me,Xe)=>a.jsxs("div",{className:"flex items-start gap-2 text-xs font-medium text-slate-600",children:[a.jsx(As,{size:14,className:"text-emerald-500 mt-0.5 flex-shrink-0"}),a.jsx("span",{children:Me})]},Xe))}),a.jsx("div",{className:"p-5 pt-0",children:a.jsxs("button",{onClick:()=>N(ae),className:"w-full py-2.5 rounded-md bg-slate-800 text-white font-bold text-xs hover:bg-indigo-600 transition-colors active:scale-95 flex items-center justify-center gap-2",children:["Chá»n gói nà y ",a.jsx(zs,{size:14})]})})]},he))}),d&&a.jsxs("form",{onSubmit:I,className:"space-y-5",children:[a.jsxs("div",{className:"bg-slate-800 text-white p-5 rounded-lg shadow-sm",children:[a.jsx("p",{className:"text-slate-400 text-[10px] font-bold uppercase tracking-wider mb-1",children:"Bạn Äã chá»n"}),a.jsx("h3",{className:"text-xl font-bold",children:d.name}),a.jsxs("div",{className:"mt-2 text-xs font-medium text-indigo-300",children:["ÄÆ¡n giá: ",d.price.toLocaleString(),"Ä / ngà y / port"]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-[10px] font-bold text-slate-500 ml-1",children:"Sá» lượng Port"}),a.jsx("input",{type:"number",min:"1",value:S,onChange:ae=>T(ae.target.value),className:"w-full bg-white border border-slate-200 rounded-lg px-3 py-2.5 focus:ring-1 focus:ring-indigo-500 outline-none text-slate-800 font-bold text-sm"})]}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("label",{className:"text-[10px] font-bold text-slate-500 ml-1",children:"Sá» ngà y sá» dụng"}),a.jsx("input",{type:"number",min:"1",value:H,onChange:ae=>D(ae.target.value),className:"w-full bg-white border border-slate-200 rounded-lg px-3 py-2.5 focus:ring-1 focus:ring-indigo-500 outline-none text-slate-800 font-bold text-sm"})]})]}),a.jsxs("div",{className:"bg-slate-50 rounded-lg p-4 border border-slate-200 space-y-3",children:[a.jsxs("div",{className:"flex justify-between items-center text-xs font-medium",children:[a.jsx("span",{className:"text-slate-500",children:"Sá» dư hiá»n có"}),a.jsxs("span",{className:"text-slate-700",children:[xe.toLocaleStr
68ing(),"Ä"]})]}),a.jsx("div",{className:"h-px bg-slate-200"}),a.jsxs("div",{className:"flex justify-between items-center",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(cs,{size:16,className:"text-teal-600"}),a.jsx("span",{className:"text-slate-800 font-bold text-sm",children:"Tá»ng cá»ng"})]}),a.jsx("div",{className:"text-right",children:a.jsxs("p",{className:"text-xl font-bold text-teal-600 tracking-tight leading-none",children:[Se.toLocaleString(),a.jsx("span",{className:"text-xs ml-0.5 font-bold opacity-70",children:"Ä"})]})})]})]}),A&&a.jsxs("div",{className:"p-3 bg-rose-50 text-rose-600 text-xs font-bold rounded-lg border border-rose-100 flex items-center gap-2",children:[a.jsx(ea,{size:14})," ",A]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsxs("button",{type:"button",onClick:()=>N(null),className:"px-4 py-2.5 bg-white border border-slate-200 text-slate-600 font-bold rounded-lg hover:bg-slate-50 transition-colors text-xs flex items-center gap-2",children:[a.jsx(Ms,{size:16})," Quay lại"]}),a.jsx("button",{type:"submit",disabled:j,className:"flex-1 bg-indigo-600 text-white font-bold rounded-lg py-2.5 hover:bg-indigo-700 transition-colors text-xs flex items-center justify-center gap-2 disabled:opacity-50",children:j?a.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsxs(a.Fragment,{children:["Xác nháºn thanh toán ",a.jsx(zs,{size:16})]})})]})]})]}),a.jsx("div",{className:"px-6 py-3 bg-slate-50 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[10px] text-slate-400 font-medium uppercase tracking-tight",children:"Dá»ch vụ ÄÆ°á»£c kÃch hoạt tá»± Äá»ng sau khi thanh toán"})})]})})},Rb=[{id:1,title:"Extensions Chrome",description:"Tiá»n Ãch Fproxy giúp bạn sá» dụng proxy trên Chrome dá»
dà ng và nhanh chóng.",platform:"chrome",features:["Äá»nh dạng: HTTP và SOCKS5","Có thá» chá»n DNS cá»§a Google","Tắt VPN/Proxy khác Äá» tránh xác thá»±c bá» lá»i","Yêu cầu: IP Allow phải là IP gá»c"],links:{video:"https://youtu.be/Z3BI0nD8zs0",install:"https://chromewebstore.google.com/detail/fproxy-extensions/kmgfjpahaihlodbkhfnpjfklolnngggh?hl=en"}},{id:2,title:"Tool F-Client (Windows)",description:"Phần má»m tá»± Äá»ng gán proxy HTTP cho PC Äá» Äá»i IP toà n há» thá»ng Windows.",image:"https://proxymxh.com/assets/imghd/FClinet.png",platform:"windows",features:["Äá»nh dạng há» trợ: HTTP","1 API key dùng cho toà n bá» PC","Dùng chung cho má»i trình duyá»t","Yêu cầu: IP Allow phải là IP gá»c"],links:{video:"#",download:"https://proxymxh.com/tool/FClinet-2.0.zip"}},{id:3,title:"F-APK (Android / Emulator)",description:"App Apk cho Giả láºp.",image:"https://fproxy.me/image/apk.jpg",platform:"android",features:["Phiên bản: 1.0 Mobile","Äá»nh dạng: HTTP, SOCKS5","1 API key/thiết bá»","Há» trợ LDPlayer, Nox,"],links:{video:"#",download:"https://fproxy.me/image/FproxyHTTP.apk"}},{id:4,title:"Backconnect Lan (Chạy trên máy tÃnh ngưá»i dùng)",description:"Tạo Proxy HTTP/SOCKS5 IP:PORT trên Windows. Share cá»ng LAN cho Äiá»n thoại.",image:"https://proxymxh.com/assets/imghd/F-Backconnect2.0.png",platform:"windows",features:["Äá»nh dạng: HTTP, SOCKS5","Há» trợ nhiá»u API key","Lưu ý: Tắt tưá»ng lá»a nếu dùng qua LAN","Và o Control Panel > Windows Defender Firewall > Turn Windows Defender Firewall on or off, sau Äó chá»n Turn off"],links:{video:"#",download:"https://fproxy.me/image/FbackconnectLan.zip"}},{id:5,title:"Backconnect Online (Không cần cà i Äặt)",description:"Tạo Proxy HTTP/SOCKS5 ip:port:user:pass giữ nguyên cá» Äá»nh",image:"https://proxymxh.com/assets/imghd/F-Backconnect2.0.png",platform:"Web",features:["Äá»nh dạng: HTTP, SOCKS5","Há» trợ nhiá»u API key","Nếu báo port Äã bá» chiếm dụng cần Äá»i port","Nếu thay Äá»i user pass cá»§a proxy cần lấy ip má»i"],links:{video:"https://youtu.be/mWn_fDJjsDI",download:"https://sv1.fproxy.me"}}],Gb=()=>a.jsx("div",{className:"space-y-6 animate-in fade-in duration-500 pb-10",children:a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:Rb.map(r=>a.jsx("div",{className:"bg-white rounded-xl border border-gray-200 shadow-sm hover:shadow-lg hover:border-blue-200 transition-all duration-300 flex flex-col overflow-hidden group",children:a.jsxs("div",{className:"p-5 flex-1 flex flex-col",children:[a.jsx("h3",{className:"font-medium text-lg text-gray-800 mb
68-2 group-hover:text-blue-600 transition-colors",children:r.title}),a.jsx("p",{className:"text-sm text-gray-500 mb-4 line-clamp-2 min-h-[40px]",children:r.description}),a.jsx("div",{className:"space-y-2 mb-6 flex-1",children:r.features.map((x,g)=>a.jsxs("div",{className:"flex items-start gap-2 text-xs text-gray-600",children:[a.jsx(As,{size:14,className:"text-emerald-500 flex-shrink-0 mt-0.5"}),a.jsx("span",{children:x})]},g))}),a.jsxs("div",{className:"flex gap-2 pt-4 border-t border-gray-100",children:[r.links.video&&r.links.video!=="#"&&a.jsxs("a",{href:r.links.video,target:"_blank",rel:"noreferrer",className:"flex-1 py-2.5 bg-red-50 text-red-600 rounded-lg text-sm font-semibold hover:bg-red-100 transition-colors flex items-center justify-center gap-2",children:[a.jsx(_x,{size:16})," Video"]}),r.links.install?a.jsxs("a",{href:r.links.install,target:"_blank",rel:"noreferrer",className:"flex-[2] py-2.5 bg-blue-600 text-white rounded-lg text-sm font-semibold hover:bg-blue-700 shadow-md shadow-blue-100 transition-colors flex items-center justify-center gap-2",children:[a.jsx(Cp,{size:16})," Cà i Äặt Chrome"]}):a.jsxs("a",{href:r.links.download,target:"_blank",rel:"noreferrer",className:`flex-[2] py-2.5 bg-blue-600 text-white rounded-lg text-sm font-semibold hover:bg-blue-700 shadow-md shadow-blue-100 transition-colors flex items-center justify-center gap-2 ${r.links.download?"":"opacity-50 cursor-not-allowed"}`,children:[a.jsx(Sc,{size:16})," Tải xuá»ng"]})]})]})},r.id))})}),Vb="https://fproxy.me",Yb=[{name:"Lấy IP má»i",method:"GET",url:"/api/getnew?api_key={api_key}&location={id}&ip_allow={ip}",params:[{name:"api_key",type:"string",example:"ukhe73wa4j6...",desc:"Apikey cá»§a tà i khoản",required:!0},{name:"location",type:"int",example:"0, 1, 2...",desc:"ID vá» trà (0 là ngẫu nhiên)",required:!1},{name:"ip_allow",type:"string",example:"101.189...",desc:"IP ÄÆ°á»£c phép sá» dụng (Không truyá»n sẽ tá»± Äá»ng lấy IP hiá»n tại)",required:!1}],notes:'Nếu không truyá»n "location" và "ip_allow" thì chá» cần: https://fproxy.me/api/getnew?api_key={api_key}. Trưá»ng hợp kết quả trả vá» "success": false vá»i thông báo chá» (waiting), bạn vẫn nên lấy data hoặc chá» lấy thá»i gian chá».',response:{success:!0,data:{proxy:"113.168.70.47:59036",http:"113.168.70.47:59036",sock:"113.168.70.47:60105",httpuserpass:"113.168.70.47:56475:yug5oabh:wo9fjeycrc8c",sockuserpass:"113.168.70.47:45435:yug5oabh:wo9fjeycrc8c",user:"yug5oabh",pass:"wo9fjeycrc8c",ip_allow:"14.189.139.102",location:"Thanh Hoá",note:"2322",ip:"113.168.70.47",port:"59036",portsock:"60105",porthttpuserpass:"56475",portsockuserpass:"45435",time_die:"1800",waiting_time:"30"}}},{name:"Lấy IP hiá»n tại",method:"GET",url:"/api/getcurrent?api_key={api_key}",params:[{name:"api_key",type:"string",example:"ukhe73wa4j6...",desc:"Apikey cá»§a tà i khoản",required:!0}],response:{success:!0,data:{proxy:"113.168.70.47:59036",http:"113.168.70.47:59036",sock:"113.168.70.47:60105",user:"9q7cvz30",pass:"jwq2wbhdt9j1",ip_allow:"14.189.139.102",location:"Thanh Hoá",ip:"113.168.70.47",port:"59036",time_die:"1800",waiting_time:"0"}}},{name:"Lấy ID khu vá»±c",method:"GET",url:"/api/get-locations",response:[{id:0,name:"Ngẫu Nhiên"},{id:1,name:"Hưng Yên"},{id:2,name:"Hải Phòng"}]}],Kb=()=>{const[r,x]=h.useState(null),g=d=>{navigator.clipboard.writeText(d),x(d),setTimeout(()=>x(null),2e3)};return a.jsx("div",{className:"space-y-8 animate-in fade-in duration-500 pb-12",children:a.jsx("div",{className:"space-y-10",children:Yb.map((d,N)=>{const S=Vb+d.url;return a.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden scroll-mt-20",id:`api-${N}`,children:[a.jsx("div",{className:"border-b border-gray-200 bg-gray-50/50 p-6",children:a.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsxs("h3",{className:"text-xl font-medium text-gray-900 flex items-center gap-2",children:[a.jsx(Da,{size:20,className:"text-blue-600"}),d.name]}),a.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["Endpoint dùng Äá» ",d.name.toLowerCase()]})]}),a.jsxs("div",{className:"flex items-center gap-2 bg-white p-1.5 pl-3 rounded-lg border border-gray-200 shadow-sm w-full md:w-auto",children:[a.jsx("span",{className:"text-xs font-medium text-green-600 bg-green-50 px-2 py-0.5 rounded border border-green-100 uppercase",children:d.method}),a.jsx("code",{className:"text-sm text-gray-600 font-mono truncate flex-1 md:max-w-[400px]",title:S,children:S}),a.jsx("button",{onClick:()=>g(S),className:`p-2 rounded-md transition-all ${r===S?"bg-green-100 text-green-700":"hover:bg-gray-100 text-gray-400 hover:text-gray-700"}`,title:"Copy URL",children:r===S?a.jsx(rt,{size:16}):a.jsx(Ct,{size:16})})]})]})}),a.jsx("div",{className:"p-6",children:a.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-8",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-medium text-gray-900 uppercase tracking-wider mb-4 border-l-4 border-blue-500 pl-3",children:"Tham sá» Request"}),d.params?a.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-200",children:a.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[a.jsx("thead",{className:"bg-gray-50",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Tham sá»"}),a.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Kiá»u"}),a.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Và dụ"}),a.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase",children:"Mô tả"})]})}),a.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:d.params.map((T,H)=>a.jsxs("tr",{children:[a.jsxs("td",{className:"px-4 py-3 text-sm font-medium text-gray-800 font-mono",children:[T.name,T.required&&a.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),a.jsx("td",{className:"px-4 py-3 text-xs text-blue-600 font-mono",children:T.type}),a.jsx("td",{className:"px-4 py-3 text-xs text-gray-500 font-mono bg-gray-50 rounded px-1",children:T.example}),a.jsx("td",{className:"px-4 py-3 text-sm text-gray-600",children:T.desc})]},H))})]})}):a.jsx("div",{className:"p-4 bg-gray-50 rounded-lg text-sm text-gray-500 italic border border-gray-100",children:"API nà y không yêu cầu tham sá» Äầu và o."}),d.notes&&a.jsxs("div",{className:"mt-4 p-4 bg-amber-50 text-amber-800 text-sm rounded-lg border border-amber-100 flex gap-2",children:[a.jsx("div",{className:"mt-0.5 shrink-0 w-1 h-1 rounded-full bg-amber-500"}),a.jsx("p",{children:d.notes})]})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"text-sm font-medium text-gray-900 uppercase tracking-wider mb-4 border-l-4 border-green-500 pl-3",children:"Mẫu phản há»i (JSON)"}),a.jsxs("div",{className:"relative group",children:[a.jsx("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:a.jsx("button",{onClick:()=>
68g(JSON.stringify(d.response,null,2)),className:"p-1.5 bg-white/10 hover:bg-white/20 text-white rounded backdrop-blur-sm",title:"Copy JSON",children:r===JSON.stringify(d.response,null,2)?a.jsx(rt,{size:14}):a.jsx(Ct,{size:14})})}),a.jsx("pre",{className:"bg-slate-700 text-slate-50 p-4 rounded-xl text-xs font-mono overflow-x-auto custom-scrollbar border border-slate-700 shadow-inner",children:JSON.stringify(d.response,null,4)})]})]})]})})]},N)})})})},Qb=({isOpen:r,onClose:x})=>{if(!r)return null;const g=[{id:1,name:"Server1: https://sv1.fproxy.me",url:"https://sv1.fproxy.me",status:"online",location:"Viettel",load:"10%"},{id:2,name:"Server2: https://sv.fproxy.me",url:"https://sv2.fproxy.me",status:"offline",location:"VNPT",load:"0%"}],d=N=>{N.status==="online"&&(window.open(N.url,"_blank"),x())};return a.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[90] flex items-center justify-center p-4 animate-in fade-in duration-200",children:a.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-lg overflow-hidden transform transition-all scale-100 border border-white/20",children:[a.jsxs("div",{className:"bg-gradient-to-r from-slate-800 to-slate-900 p-5 text-white flex justify-between items-center relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-10",children:a.jsx(Da,{size:80})}),a.jsxs("div",{className:"relative z-10 flex items-center gap-3",children:[a.jsx("div",{className:"p-2 bg-white/10 rounded-lg backdrop-blur-md",children:a.jsx(kc,{size:24,className:"text-blue-300"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-bold",children:"FProxy Manager"}),a.jsx("p",{className:"text-slate-300 text-xs",children:"Chá»n máy chá»§ quản lý Backconnect"})]})]}),a.jsx("button",{onClick:x,className:"relative z-10 p-2 hover:bg-white/20 rounded-full transition-colors text-white/80 hover:text-white",children:a.jsx(ea,{size:20})})]}),a.jsxs("div",{className:"p-6 bg-slate-50 space-y-4",children:[g.map(N=>{const S=N.status==="online";return a.jsxs("div",{onClick:()=>d(N),className:`relative group p-4 rounded-xl border-2 transition-all duration-200 flex items-center gap-4 69 ${S?"bg-white border-slate-200 hover:border-blue-500 hover:shadow-md cursor-pointer":"bg-slate-100 border-transparent opacity-80 cursor-not-allowed grayscale-[0.5]"} 70 `,children:[a.jsx("div",{className:`p-3 rounded-full flex-shrink-0 ${S?"bg-blue-50 text-blue-600":"bg-slate-200 text-slate-500"}`,children:a.jsx(Da,{size:24})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("div",{className:"flex justify-between items-center mb-1",children:[a.jsx("h3",{className:`font-bold text-sm ${S?"text-slate-800":"text-slate-500"}`,children:N.name}),a.jsxs("div",{className:`flex items-center gap-1.5 px-2 py-0.5 rounded-full text-[10px] font-bold uppercase 71 ${S?"bg-emerald-100 text-emerald-700":"bg-amber-100 text-amber-700"} 72 `,children:[S?a.jsx(As,{size:10}):a.jsx(_p,{size:10}),S?"Online":"Updating"]})]}),a.jsxs("div",{className:"flex items-center gap-4 text-xs text-slate-500",children:[a.jsxs("span",{children:["Loc: ",N.location]}),S&&a.jsxs("span",{children:["Load: ",N.load]})]})]}),S&&a.jsx("div",{className:"text-slate-300 group-hover:text-blue-500 transition-colors",children:a.jsx(Zp,{size:20})})]},N.id)}),a.jsxs("div",{className:"mt-2 p-4 bg-indigo-50 border border-indigo-100 rounded-xl relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 p-3 opacity-5",children:a.jsx(Qo,{size:64})}),a.jsxs("h3",{className:"text-sm font-bold text-indigo-800 mb-3 flex items-center gap-2 relative z-10",children:[a.jsx(Qo,{size:16})," Hưá»ng dẫn dùng FProxy Manager"]}),a.jsx("div",{className:"flex gap-3 relative z-10",children:a.jsxs("a",{href:"https://youtu.be/mWn_fDJjsDI",target:"_blank",rel:"noreferrer",className:"flex-1 flex items-center justify-center gap-2 py-2.5 bg-white border border-indigo-200 text-red-600 rounded-lg text-xs font-bold hover:bg-red-50 transition-all",children:[a.jsx(_x,{size:14})," Video"]})})]})]}),a.jsx("div",{className:"p-4 bg-white border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-xs text-slate-400",children:"Vui lòng chá»n Server hoạt Äá»ng á»n Äá»nh nhất vá»i khu vá»±c cá»§a bạn."})})]})})},sx=({onStart:r,onLogin:x})=>{const g=()=>window.navToSolutions?.(),d=()=>window.navToPricing?.(),N=()=>
72window.navToCompliance?.(),S=()=>window.navToServicePolicy?.(),T=()=>window.navToPrivacyPolicy?.();return a.jsxs("div",{className:"min-h-screen bg-transparent font-['Plus_Jakarta_Sans'] text-slate-900 selection:bg-indigo-100 relative",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/70 backdrop-blur-md border-b border-slate-200",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:()=>window.location.reload(),children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded-lg flex items-center justify-center shadow-sm",children:a.jsx(Da,{size:18,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsxs("div",{className:"hidden lg:flex items-center gap-8",children:[a.jsx("button",{onClick:g,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-colors",children:"Giải pháp"}),a.jsx("button",{onClick:d,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-colors",children:"Bảng giá"}),a.jsx("button",{onClick:N,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-colors",children:"Tuân thá»§ pháp lý"}),a.jsx("button",{onClick:S,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-colors",children:"ChÃnh sách dá»ch vụ"}),a.jsx("button",{onClick:T,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-colors",children:"ChÃnh sách bảo máºt"})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{onClick:x,className:"text-xs font-bold text-slate-600 px-4 hover:text-indigo-600 transition-colors",children:"ÄÄng nháºp"}),a.jsx("button",{onClick:r,className:"bg-slate-900 text-white px-5 py-2 rounded-lg font-bold text-xs shadow-sm transition-all active:scale-95 hover:bg-indigo-600",children:"Bắt Äầu tÃch hợp"})]})]})}),a.jsx("section",{className:"relative pt-32 pb-20 border-b border-slate-100 bg-white/30",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-6 text-center space-y-8",children:[a.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-indigo-50 border border-indigo-100 rounded-md text-indigo-600 text-[10px] font-bold uppercase tracking-wider",children:"Hạ tầng kết ná»i chuẩn doanh nghiá»p"}),a.jsxs("h1",{className:"text-4xl lg:text-6xl font-extrabold leading-tight tracking-tight text-slate-900",children:["Fproxy â Hạ tầng Proxy HTTP ",a.jsx("br",{})," Chuyên sâu cho ",a.jsx("span",{className:"text-indigo-600",children:"Doanh nghiá»p"})]}),a.jsx("p",{className:"text-lg text-slate-600 font-medium leading-relaxed max-w-2xl mx-auto opacity-90",children:"Giải pháp kết ná»i mạng á»n Äá»nh, há» trợ tÃch hợp API, kiá»m thá» Localization và phát triá»n há» thá»ng ná»i bá» vá»i quy trình váºn hà nh minh bạch."}),a.jsxs("div",{className:"flex flex-col sm:flex-row justify-center items-center gap-4 pt-4",children:[a.jsxs("button",{onClick:r,className:"px-8 py-3 bg-indigo-600 text-white rounded-xl font-bold text-sm shadow-lg shadow-indigo-100 hover:bg-indigo-700 transition-all flex items-center gap-2",children:["Bắt Äầu ngay ",a.jsx(zs,{size:18})]}),a.jsx("button",{onClick:d,className:"px-8 py-3 bg-white border border-slate-200 text-slate-600 rounded-xl font-bold text-sm hover:bg-slate-50 transition-all",children:"Xem bảng giá"})]})]})}),a.jsx("section",{className:"py-20 bg-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-6",children:a.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsx("h2",{className:"text-2xl font-bold text-slate-800",children:"Váºn hà nh hạ tầng mạng chuyên sâu"}),a.jsx("p",{className:"text-slate-600 leading-relaxed font-medium",children:"Fproxy lÃ ÄÆ¡n vá» cung cấp hạ tầng kết ná»i mạng (HTTP/SOCKS5) chuyên biá»t, táºp trung và o viá»c duy trì luá»ng dữ liá»u á»n Äá»nh cho khách hà ng doanh nghiá»p. Chúng tôi táºp trung và o tÃnh á»n Äá»nh kỹ thuáºt nhằm há» trợ các quy trình phát triá»n và kiá»m thá» phần má»m trên môi trưá»ng Internet."}),a.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-4 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx(Bp,{size:20,className:"text-indigo-600 mb-2"}),a.jsx("h4",{className:"font-bold text-sm text-slate-800",children:"TÃch hợp API"}),a.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Kết ná»i tiêu chuẩn vá»i há» thá»ng phần má»m doanh nghiá»p."})]}),a.jsxs("div",{className:"p-4 bg-slate-50 rounded-lg border border-slate-100",children:[a.jsx(yx,{size:20,className:"text-indigo-600 mb-2"}),a.jsx("h4",{className:"font-bold text-sm text-slate-800",children:"Hiá»u nÄng kỹ thuáºt"}),a.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Hạ tầng ÄÆ°á»£c giám sát 24/7 Äảm bảo Äá» trá»
thấp."})]})]})]}),a.jsx("div",{className:"bg-slate-50 rounded-xl p-8 border border-slate-200",children:a.jsx("img",{src:"https://proxymxh.com/assets/imghd/F-Backconnect2.0.png",alt:"Dashboard Preview",className:"w-full rounded-lg shadow-sm border border-slate-200"})})]})})}),a.jsx("section",{className:"py-20 bg-slate-50/80 border-y border-slate-200",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[a.jsxs("div",{className:"text-center mb-16 space-y-3",children:[a.jsx("h2",{className:"text-3xl font-black text-slate-900 tracking-tight",children:"ChÃnh sách & Quy trình Dá»ch vụ"}),a.jsx("p",{className:"text-slate-500 font-medium max-w-2xl mx-auto text-sm",children:"Chúng tôi cam kết minh bạch trong má»i hoạt Äá»ng giao dá»ch và cung cấp hạ tầng kỹ thuáºt."})]}),a.jsxs("div",{className:"grid md:grid-cols-3 gap-8",children:[a.jsxs("div",{className:"bg-white p-8 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-all",children:[a.jsx("div",{className:"w-12 h-12 bg-emerald-50 text-emerald-600 rounded-xl flex items-center justify-center mb-6",children:a.jsx(Io,{size:24})}),a.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"ChÃnh sách thanh toán"}),a.jsxs("div",{className:"space-y-3 text-xs text-slate-600 leading-relaxed font-medium",children:[a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Phương thức:"})," Chuyá»n khoản ngân hà ng qua mã VietQR hoặc sá» tà i khoản ACB cá»§a công ty."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Tá»± Äá»ng hóa:"})," Há» thá»ng tá»± Äá»ng nháºn diá»n và cá»ng tiá»n và o và tà i khoản sau 1-2 phút (24/7)."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Äá»nh mức:"})," Nạp tá»i thiá»u 50.000Ä/giao dá»ch. Sá» dư và không có thá»i hạn sá» dụng."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Chứng từ:"})," Há» trợ xuất hóa ÄÆ¡n Äiá»n tá» VAT cho các giao dá»ch doanh nghiá»p khi có yêu cầu."]})]})]}),a.jsxs("div",{className:"bg-white p-8 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-all",children:[a.jsx("div",{className:"w-12 h-12 bg-indigo-50 text-indigo-600 rounded-xl flex items-center justify-center mb-6",children:a.jsx(wx,{size:24})}),a.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"Cung cấp dá»ch vụ sá»"}),a.jsxs("div",{className:"space-y-3 text-xs text-slate-600 leading-relaxed font-medium",children:[a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Äặc thù:"})," Proxy là dá»ch vụ sá» (Digital Goods), không váºn chuyá»n váºt lý."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Bà n giao:"})," Sau khi thanh toán gói, há» thá»ng sẽ cấp API Key hoặc thông tin Proxy ngay láºp tức trên Dashboard."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Thá»i gian sá»ng:"})," Dá»ch vụ ÄÆ°á»£c tÃnh thá»i gian từ thá»i Äiá»m kÃch hoạt gói thà nh công trên há» thá»ng."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Phạm vi:"})," Cung cấp IP 63 tá»nh thà nh Viá»t Nam vá»i hạ tầng chuẩn trung tâm dữ liá»u."]})]})]}),a.jsxs("div",{className:"bg-white p-8 rounded-2xl border border-slate-200 shadow-sm hover:shadow-md transition-all",children:[a.jsx("div",{className:"w-12 h-12 bg-rose-50 text-rose-600 rounded-xl flex items-center justify-center mb-6",children:a.jsx(Xt,{size:24})}),a.jsx("h3",{className:"text-lg font-bold text-slate-900 mb-4",children:"ChÃnh sách hoà n tiá»n"}),a.jsxs("div",{className:"space-y-3 text-xs text-slate-600 leading-relaxed font-medium",children:[a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Nguyên tắc:"})," Vì Äặc thù dá»ch vụ sá» có thá» sá» dụng ngay, chúng tôi không há» trợ hoà n tiá»n sau khi Proxy Äã ÄÆ°á»£c khá»i tạo."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Trưá»ng hợp lá»i:"})," Hoà n tiá»n và o và tà i khoản nếu lá»i phát sinh từ hạ tầng Fproxy (IP die, không lấy ÄÆ°á»£c IP) mà không thá» khắc phục trong 4h."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Từ chá»i:"})," Không hoà n tiá»n nếu IP bá» chặn bá»i chÃnh sách riêng cá»§a các website ÄÃch (Facebook, Google, Shopee...)."]}),a.jsxs("p",{children:["⢠",a.jsx("strong",{children:"Khiếu nại:"})," Má»i yêu cầu há» trợ ÄÆ°á»£c tiếp nháºn qua Telegram/Zalo trong vòng 24h ká» từ khi phát sinh lá»i."]})]})]})]})]})}),a.jsx("section",{className:"py-20 bg-white",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[a.jsxs("div",{className:"text-center mb-12 space-y-2",children:[a.jsx("h2",{className:"text-3xl font-bold text-slate-900",children:"Mục ÄÃch sá» dụng khuyến khÃch"}),a.jsx("p",{className:"text-slate-50 font-medium text-sm text-slate-500",children:"Chúng tôi há» trợ các tác vụ công viá»c có tÃnh minh bạch và tuân thá»§ cao"})]}),a.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-6",children:[{icon:Cx,title:"Kiá»m thá» QA/Dev",desc:"Mô phá»ng truy cáºp Äa khu vá»±c Äá» kiá»m tra tÃnh á»n Äá»nh và giao diá»n ứng dụng (Localization)."},{icon:_s,title:"Thu tháºp dữ liá»u công khai",desc:"TrÃch xuất thông tin từ các nguá»n dữ liá»u má» phục vụ nghiên cứu thá» trưá»ng và phân tÃch, tuân thá»§ Äiá»u khoản truy cáºp."},{icon:Da,title:"Há» thá»ng trung gian",desc:"Kết ná»i các thà nh phần phần má»m thông qua các tuyến mạng á»n Äá»nh nhằm tá»i ưu hóa ÄÆ°á»ng truyá»n."},{icon:ns,title:"Váºn hà nh tiếp thá» Äo lưá»ng",desc:"Tá»± Äá»ng hóa quy trình tiếp thá» phục vụ phân tÃch, Äo lưá»ng và váºn hà nh há» thá»ng trong giá»i hạn cho phép cá»
72§a bên thứ ba."}].map((H,D)=>a.jsxs("div",{className:"bg-white p-6 rounded-xl border border-slate-200 shadow-sm flex flex-col items-start",children:[a.jsx("div",{className:"p-2.5 bg-indigo-50 text-indigo-600 rounded-lg mb-4",children:a.jsx(H.icon,{size:20})}),a.jsx("h3",{className:"text-base font-bold text-slate-800 mb-2",children:H.title}),a.jsx("p",{className:"text-xs text-slate-500 leading-relaxed font-medium",children:H.desc})]},D))})]})}),a.jsx("section",{className:"py-20 bg-slate-50/50",children:a.jsx("div",{className:"max-w-7xl mx-auto px-6",children:a.jsxs("div",{className:"bg-rose-50 rounded-2xl p-10 border border-rose-100 relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 p-8 opacity-5 text-rose-500",children:a.jsx(ld,{size:120})}),a.jsxs("div",{className:"relative z-10 flex flex-col md:flex-row gap-10 items-start",children:[a.jsx("div",{className:"flex-shrink-0",children:a.jsx("div",{className:"w-16 h-16 bg-rose-100 text-rose-600 rounded-xl flex items-center justify-center",children:a.jsx(Ka,{size:32})})}),a.jsxs("div",{className:"flex-1 space-y-6",children:[a.jsx("h2",{className:"text-2xl font-bold text-slate-900",children:"Hà nh vi bá» nghiêm cấm"}),a.jsx("p",{className:"text-slate-600 text-sm font-medium leading-relaxed",children:"Äá» bảo vá» uy tÃn hạ tầng, Fproxy áp dụng chÃnh sách từ chá»i dá»ch vụ ngay láºp tức Äá»i vá»i:"}),a.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:["Phát tán thư rác (Spam) hoặc ná»i dung không mong muá»n.","Tấn công há» thá»ng, dò quét lá» há»ng bảo máºt (DDoS, Scanning).","Vi phạm pháp luáºt Viá»t Nam và các quy Äá»nh quá»c tế.","Cá» tình phá vỡ Äiá»u khoản sá» dụng cá»§a website bên thứ ba."].map((H,D)=>a.jsxs("div",{className:"flex items-start gap-2 text-xs font-bold text-rose-800",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-rose-500 rounded-full mt-1.5 flex-shrink-0"}),a.jsx("span",{children:H})]},D))})]})]})]})})}),a.jsx("section",{className:"py-16 bg-white border-t border-slate-100",children:a.jsx("div",{className:"max-w-4xl mx-auto px-6",children:a.jsxs("div",{className:"bg-slate-50 p-8 rounded-2xl border border-slate-200 space-y-4",children:[a.jsxs("h3",{className:"text-sm font-bold text-slate-900 uppercase tracking-widest flex items-center gap-2",children:[a.jsx(ua,{size:18,className:"text-indigo-600"})," Miá»
n trừ trách nhiá»m"]}),a.jsxs("div",{className:"text-xs text-slate-500 leading-relaxed space-y-3 font-medium",children:[a.jsx("p",{children:"Fproxy cung cấp hạ tầng proxy như má»t dá»ch vụ kỹ thuáºt. Khách hà ng hoà n toà n chá»u trách nhiá»m Äá»i vá»i mục ÄÃch và cách thức sá» dụng dá»ch vụ."}),a.jsxs("div",{className:"pl-4 border-l-2 border-indigo-200 space-y-1",children:[a.jsx("p",{className:"font-bold text-slate-700",children:"Chúng tôi không bảo Äảm hoặc chá»u trách nhiá»m cho bất kỳ hà nh vi sá» dụng nà o vi phạm:"}),a.jsxs("ul",{className:"list-disc pl-5",children:[a.jsx("li",{children:"Pháp luáºt hiá»n hà nh"}),a.jsx("li",{children:"Äiá»u khoản sá» dụng cá»§a bên thứ ba"}),a.jsx("li",{children:"Quyá»n riêng tư, quyá»n sá» hữu dữ liá»u hoặc tà i sản sá»"})]})]}),a.jsx("p",{className:"font-bold text-indigo-600 italic",children:"Fproxy có quyá»n tạm ngừng hoặc chấm dứt dá»ch vụ Äá»i vá»i các tà i khoản có dấu hiá»u lạm dụng hoặc vi phạm."})]})]})})}),a.jsx("footer",{className:"bg-slate-50 border-t border-slate-200 py-16",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6",children:[a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 mb-12",children:[a.jsxs("div",{className:"lg:col-span-4 space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-8 h-8 bg-slate-900 rounded-lg flex items-center justify-center",children:a.jsx(Da,{size:18,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsx("p",{className:"text-sm text-slate-500 font-medium leading-relaxed",children:"Há» thá»ng hạ tầng kết ná»i Proxy, Äảm bảo tÃnh á»n Äá»nh và tuân thá»§ các tiêu chuẩn an ninh mạng quá»c gia."}),a.jsxs("div",{className:"flex gap-6 text-[11px] font-bold text-slate-400 uppercase tracking-widest",children:[a.jsx("button",{onClick:N,className:"hover:text-indigo-600 transition-colors",children:"Äiá»u khoản"}),a.jsx("button",{onClick:T,className:"hover:text-indigo-600 transition-colors",children:"Quyá»n riêng tư"}),a.jsx("button",{onClick:S,className:"hover:text-indigo-600 transition-colors",children:"ChÃnh sách dá»ch vụ"})]})]}),a.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[a.jsx("h4",{className:"text-xs font-black text-slate-900 uppercase tracking-[0.2em] border-b border-slate-200 pb-2 inline-block",children:"Thông tin doanh nghiá»p"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-1.5 bg-white rounded-md shadow-sm border border-slate-100 text-indigo-600",children:a.jsx(xp,{size:14})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-tight",children:"Công ty"}),a.jsx("p",{className:"text-sm font-bold text-slate-700",children:"CÃNG TY TNHH GIẢI PHÃP MẠNG FPRO"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-1.5 bg-white rounded-md shadow-sm border border-slate-100 text-indigo-600",children:a.jsx(ng,{size:14})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-tight",children:"Mã sá» thuế"}),a.jsx("p",{className:"text-sm font-bold text-slate-700",children:"2301378455"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-1.5 bg-white rounded-md shadow-sm border border-slate-100 text-indigo-600",children:a.jsx(aa,{size:14})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-tight",children:"Äá»a chá»"}),a.jsx("p",{className:"text-sm font-bold text-slate-700 leading-relaxed",children:"Sá» 19 Cao Bá Quát, Phưá»ng Võ Cưá»ng, Tá»nh Bắc Ninh"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-1.5 bg-white rounded-md shadow-sm border border-slate-100 text-indigo-600",children:a.jsx(aa,{size:14})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-tight",children:"Äiá»n thoại"}),a.jsx("p",{className:"text-sm font-bold text-slate-700 leading-relaxed",children:"0333 809 887"})]})]}),a.jsxs("div",{className:"flex items-start gap-3",children:[a.jsx("div",{className:"p-1.5 bg-white rounded-md shadow-sm border border-slate-100 text-indigo-600",children:a.jsx(up,{size:14})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-tight",children:"LÄ©nh vá»±c"}),a.jsx("p",{className:"text-sm font-bold text-slate-700",children:"Dá»ch vụ CNTT, hạ tầng mạng"})]})]})]})]}),a.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[a.jsx("h4",{className:"text-xs font-black text-slate-900 uppercase tracking-[0.2em] border-b border-slate-200 pb-2 inline-block",children:"Há» trợ kỹ thuáºt"}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3 group cursor-pointer",children:[a.jsx("div",{className:"w-10 h-10 bg-white rounded-full border border-slate-200 flex items-center justify-center text-slate-400 group-hover:text-indigo-600 group-hover:border-indigo-200 transition-all shadow-sm",children:a.jsx(xn,{size:18})}),a.jsx("span",{className:"text-sm font-bold text-slate-600 group-hover:text-indigo-600 transition-colors",children:"[email protected]"})]}),a.jsxs("div",{className:"p-4 bg-indigo-600 rounded-xl text-white shadow-lg shadow-indigo-200",children:[a.jsx("p",{className:"text-[10px] font-black uppercase tracking-widest mb-1 opacity-80",children:"Trạng thái há» thá»ng"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-2 h-2 bg-emerald-400 rounded-full animate-pulse"}),a.jsx("span",{className:"text-xs font-black",children:"HẠTẦNG TRá»°C TUYẾN 99.9%"})]})]})]})]})]}),a.jsxs("div",{className:"pt-8 border-t border-slate-200 flex flex-col md:flex-row justify-between items-center gap-4",children:[a.jsx("div",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:"© 2026 Fproxy Solutions. All rights reserved."}),a.jsx("div",{className:"flex gap-4 items-center",children:a.jsx("span",{className:"text-[10px] font-bold text-slate-300 uppercase tracking-tighter",children:"Powered by FPRO Infrastru
72cture"})})]})]})})]})},nx=({onBack:r,onStart:x})=>{const g=[{id:"testing",icon:Cx,title:"Kiá»m thá» Localization & QoS",audience:"QA Engineers, DevOps Teams",description:"Äảm bảo ứng dụng hoạt Äá»ng chuẩn xác trên phạm vi toà n cầu bằng cách mô phá»ng kết ná»i từ các node mạng thá»±c tế.",features:["Kiá»m tra hiá»n thá» ná»i dung theo khu vá»±c Äá»a lý.","Giám sát Äá» trá»
và hiá»u nÄng truyá»n tải dữ liá»u.","Kiá»m thá» tÃnh á»n Äá»nh cá»§a tuyến kết ná»i mạng.","Phát hiá»n lá»i cấu hình hạ tầng mạng Äa vùng."]},{id:"research",icon:Jo,title:"Nghiên cứu Thá» trưá»ng & Giá cả",audience:"Business Analysts, Research Teams",description:"Thu tháºp dữ liá»u thá» trưá»ng công khai theo thá»i gian thá»±c Äá» há» trợ các quyết Äá»nh kinh doanh dá»±a trên sá» liá»u khách quan.",features:["Theo dõi biến Äá»ng giá từ các nguá»n dữ liá»u má».","Phân tÃch xu hưá»ng tiêu dùng trên các ná»n tảng lá»n.","Thu tháºp thông tin khuyến mãi công khai.","Há» trợ xây dá»±ng chiến lược giá linh hoạt."]},{id:"seo",icon:mn,title:"Giám sát Search Visibility",audience:"SEO Specialists, Digital Marketers",description:"Kiá»m tra chÃnh xác vá» trà website trên kết quả tìm kiếm Google (SERP) dưá»i góc nhìn cá»§a ngưá»i dùng tại Äá»a phương.",features:["Kiá»m tra thứ hạng từ khóa thá»±c tế theo tá»nh thà nh.","Giám sát thay Äá»i cá»§a các Äoạn trÃch ná»i báºt.","Phân tÃch thá» phần hiá»n thá» trên công cụ tìm kiếm.","Báo cáo kết quả minh bạch cho Äá»i tác."]},{id:"data",icon:_s,title:"TÃch hợp Há» thá»ng Dữ liá»u",audience:"Data Engineers, AI Researchers",description:"Hạ tầng á»n Äá»nh phục vụ trÃch xuất dữ liá»u quy mô lá»n từ các nguá»n công khai mà không vi phạm quyá»n riêng tư.",features:["Chá» há» trợ thu tháºp dữ liá»u công khai (Open Data).","Tôn trá»ng tá»p robots.txt và chÃnh sách website nguá»n.","Duy trì tÃnh toà n vẹn cá»§a dữ liá»u trÃch xuất.","Cung cấp luá»ng dữ liá»u chuẩn cho mô hình AI."]}];return a.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans'] text-slate-900",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/80 backdrop-blur-md border-b border-slate-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:r,children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded flex items-center justify-center",children:a.jsx(Da,{size:16,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsx("button",{onClick:x,className:"bg-slate-900 text-white px-5 py-2 rounded-lg font-bold text-xs hover:bg-indigo-600 transition-all",children:"Yêu cầu Tư vấn"})]})}),a.jsx("section",{className:"pt-32 pb-16 bg-slate-50 border-b border-slate-100",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center space-y-4",children:[a.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900",children:["Giải pháp Hạ tầng ",a.jsx("span",{className:"text-indigo-600",children:"Minh bạch"})]}),a.jsx("p",{className:"text-base text-slate-500 font-medium leading-relaxed max-w-2xl mx-auto",children:"Fproxy cung cấp hạ tầng mạng Äạt chuẩn doanh nghiá»p, táºp trung và o tÃnh á»n Äá»nh và tuân thá»§ pháp lý cho các mục ÄÃch kinh doanh hợp pháp."})]})}),a.jsx("section",{className:"py-20",children:a.jsx("div",{className:"max-w-7xl mx-auto px-6",children:a.jsx("div",{className:"space-y-24",children:g.map((d,N)=>a.jsxs("div",{className:`flex flex-col lg:flex-row items-center gap-12 ${N%2!==0?"lg:flex-row-reverse":""}`,children:[a.jsxs("div",{className:"flex-1 space-y-6",children:[a.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-indigo-50 text-indigo-600 rounded text-[10px] font-bold uppercase tracking-widest",children:"Solution Case"}),a.jsx("h2",{className:"text-2xl font-bold text-slate-900 tracking-tight",children:d.title}),a.jsxs("div",{className:"flex items-center gap-2 text-slate-400 font-bold text-xs uppercase",children:[a.jsx(Cs,{size:14})," Äá»i tượng: ",d.audience]}),a.jsx("p",{className:"text-base text-slate-500 leading-relaxed font-medium",children:d.description}),a.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:d.features.map((S,T)=>a.jsxs("li",{className:"flex items-start gap-2.5",children:[a.jsx(As,{size:16,className:"text-emerald-500 mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-sm font-bold text-slate-700 leading-snug",children:S})]},T))})]}),a.jsx("div",{className:"flex-1 w-full max-w-md aspect-square bg-slate-50 rounded-2xl border border-slate-100 flex items-center justify-center p-10",children:a.jsxs("div",{className:"w-full h-full bg-white rounded-xl shadow-sm flex items-center justify-center relative overflow-hidden border border-slate-200",children:[a.jsx(d.icon,{size:80,className:"text-slate-100"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-16 h-16 bg-indigo-600 rounded-lg flex items-center justify-center shadow-md",children:a.jsx(d.icon,{size:32,className:"text-white"})})})]})})]},d.id))})})}),a.jsx("section",{className:"bg-slate-900 py-16",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center space-y-8",children:[a.jsx(ua,{size:48,className:"text-indigo-400 mx-auto"}),a.jsx("h2",{className:"text-2xl font-bold text-white tracking-tight",children:"Sá» dụng Hạ tầng có Trách nhiá»m"}),a.jsx("p",{className:"text-slate-400 text-base leading-relaxed max-w-xl mx-auto",children:"Fproxy cam kết cung cấp dá»ch vụ công bằng. Má»i hà nh vi lạm dụng, tá»± Äá»ng hóa trái phép hoặc vi phạm Äiá»u khoản bên thứ ba sẽ bá» từ chá»i phục vụ Äá» bảo vá» uy tÃn hạ tầng."}),a.jsx("button",{onClick:x,className:"bg-indigo-600 text-white px-8 py-3 rounded-lg font-bold text-sm shadow-md hover:bg-indigo-500 transition-all",children:"Bắt Äầu tÃch hợp ngay"})]})}),a.jsx("footer",{className:"py-10 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest opacity-60",children:"© 2026 Fproxy Solutions. Vietnam Network Infrastru
72cture."})})]})},ix=({onBack:r,onStart:x})=>{const g=[{name:"Proxy Tiêu chuẩn",price:"7.000Ä",desc:"Phù hợp kiá»m thá» & nghiên cứu cÆ¡ bản.",specs:[{label:"Chu kỳ là m má»i",value:"240 giây"},{label:"Thá»i gian sá»ng",value:"Tá»i Äa 30 phút"},{label:"Giao thức",value:"HTTP / SOCKS5"}],features:["Hạ tầng chia sẻ á»n Äá»nh","Dashboard quản lý cÆ¡ bản"]},{name:"Proxy Linh hoạt",price:"12.000Ä",desc:"Dà nh cho há» thá»ng cần thay Äá»i tuyến thưá»ng xuyên.",featured:!0,specs:[{label:"Chu kỳ là m má»i",value:"60 giây"},{label:"Thá»i gian sá»ng",value:"Tá»i Äa 30 phút"},{label:"Giao thức",value:"HTTP / SOCKS5"}],features:["Ưu tiên bÄng thông","Báo cáo nháºt ký truy cáºp"]},{name:"Proxy á»n Äá»nh",price:"15.000Ä",desc:"Dà nh cho các tác vụ cần kết ná»i liên tục.",specs:[{label:"Chu kỳ là m má»i",value:"240 giây"},{label:"Thá»i gian sá»ng",value:"Duy trì á»n Äá»nh*"},{label:"Giao thức",value:"HTTP / SOCKS5"}],features:["Hạ tầng chuyên biá»t","Äá» trá»
thấp (Low latency)"]},{name:"Proxy Hiá»u suất Cao",price:"30.000Ä",desc:"Xá» lý tải lá»n, automation, API.",specs:[{label:"Chu kỳ là m má»i",value:"30 giây"},{label:"Thá»i gian sá»ng",value:"Linh hoạt"},{label:"Giao thức",value:"HTTP / SOCKS5"}],features:["TÃch hợp API không giá»i hạn","Há» trợ cấu hình DevOps"]}];return a.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans'] text-slate-900 selection:bg-indigo-100",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/80 backdrop-blur-md border-b border-slate-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:r,children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded flex items-center justify-center",children:a.jsx(Da,{size:16,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsx("button",{onClick:r,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-colors px-4 py-2 border border-slate-200 rounded-lg",children:"Quay lại"})]})}),a.jsxs("section",{className:"pt-32 pb-16 bg-slate-50/50 border-b border-slate-100 text-center space-y-4",children:[a.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900",children:["Hạ tầng mạng ",a.jsx("span",{className:"text-indigo-600",children:"Chuyên dụng"})]}),a.jsx("p",{className:"text-base text-slate-500 font-medium max-w-xl mx-auto leading-relaxed",children:"Cung cấp các tuyến kết ná»i mạng á»n Äá»nh phục vụ nghiên cứu thá» trưá»ng, thu tháºp dữ liá»u công khai và kiá»m thá» chuyên sâu."})]}),a.jsx("section",{className:"py-16 max-w-7xl mx-auto px-6",children:a.jsx("div",{className:"grid lg:grid-cols-4 md:grid-cols-2 gap-6",children:g.map((d,N)=>a.jsxs("div",{className:`relative flex flex-col p-6 rounded-xl border transition-all ${d.featured?"border-indigo-600 bg-white shadow-lg ring-1 ring-indigo-100":"border-slate-200 bg-white hover:border-slate-300"}`,children:[a.jsxs("div",{className:"mb-6",children:[a.jsx("h3",{className:"text-xs font-bold text-slate-400 uppercase tracking-widest mb-3",children:d.name}),a.jsxs("div",{className:"flex items-baseline gap-1",children:[a.jsx("span",{className:"text-2xl font-extrabold text-slate-900",children:d.price}),a.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase",children:"/ ngà y / port"})]}),a.jsx("p",{className:"mt-3 text-xs text-slate-500 font-medium min-h-[32px]",children:d.desc})]}),a.jsx("div",{className:"space-y-3 mb-6 pt-5 border-t border-slate-50",children:d.specs.map((S,T)=>a.jsxs("div",{className:"flex justify-between items-center text-xs",children:[a.jsx("span",{className:"text-slate-400 font-medium",children:S.label}),a.jsx("span",{className:"font-bold text-slate-700",children:S.value})]},T))}),a.jsx("div",{className:"flex-1 space-y-2 mb-6",children:d.features.map((S,T)=>a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(bx,{size:14,className:"text-emerald-500 flex-shrink-0 mt-0.5"}),a.jsx("span",{className:"text-xs font-bold text-slate-600",children:S})]},T))}),a.jsx("button",{onClick:x,className:`w-full py-2.5 rounded-lg font-bold text-xs uppercase tracking-wider transition-all ${d.featured?"bg-indigo-600 text-white hover:bg-indigo-700":"bg-slate-900 text-white hover:bg-slate-800"}`,children:"ÄÄng ký sá» dụng"})]},N))})}),a.jsx("section",{className:"bg-slate-900 py-16 text-white text-center",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-6 space-y-6",children:[a.jsx(ua,{size:40,className:"text-indigo-400 mx-auto"}),a.jsx("h2",{className:"text-2xl font-bold",children:"Cam kết duy trì tiêu chuẩn hạ tầng"}),a.jsx("p",{className:"text-slate-400 text-sm max-w-xl mx-auto font-medium",children:"Fproxy thá»±c hiá»n giám sát và duy trì dải IP theo tiêu chuẩn kỹ thuáºt nghiêm ngặt. Chúng tôi không cam kết vượt qua các rà o cản từ bên thứ ba vá
72»n ÄÆ°á»£c thiết láºp theo chÃnh sách riêng cá»§a từng website ÄÃch."}),a.jsxs("div",{className:"flex justify-center gap-6 pt-4",children:[a.jsxs("button",{className:"text-indigo-400 font-bold text-xs flex items-center gap-1.5 hover:text-white transition-colors",children:[a.jsx(Fo,{size:16})," API Integration Docs"]}),a.jsxs("button",{className:"text-slate-400 font-bold text-xs flex items-center gap-1.5 hover:text-white transition-colors",children:[a.jsx(Nx,{size:16})," Technical Support"]})]})]})}),a.jsx("footer",{className:"py-10 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest opacity-60",children:"© 2026 Fproxy Infrastructure Services. Vietnam Network Center."})})]})},cx=({onBack:r})=>a.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans'] text-slate-900",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/80 backdrop-blur-md border-b border-slate-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:r,children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded flex items-center justify-center",children:a.jsx(Da,{size:16,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-xs font-bold text-slate-500 hover:text-indigo-600 transition-all",children:[a.jsx(Tc,{size:16})," Quay lại"]})]})}),a.jsxs("section",{className:"pt-32 pb-16 bg-slate-50 border-b border-slate-100 text-center space-y-4",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-slate-200 text-slate-600 rounded text-[10px] font-bold uppercase tracking-widest",children:[a.jsx(tg,{size:14})," Legal Center"]}),a.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900",children:["Tuân thá»§ ",a.jsx("span",{className:"text-indigo-600",children:"& Pháp lý"})]}),a.jsx("p",{className:"text-base text-slate-500 font-medium max-w-xl mx-auto leading-relaxed",children:"Cam kết váºn hà nh hạ tầng dá»±a trên sá»± minh bạch, tôn trá»ng quyá»n riêng tư và tuân thá»§ các quy Äá»nh pháp luáºt Viá»t Nam."})]}),a.jsxs("main",{className:"py-16 max-w-4xl mx-auto px-6 space-y-16",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(ua,{size:24,className:"text-indigo-600"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"1. Nguyên tắc tuân thá»§ pháp luáºt"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Fproxy cung cấp hạ tầng proxy như má»t dá»ch vụ kỹ thuáºt và cam kết tuân thá»§ Äầy Äá»§ các quy Äá»nh pháp luáºt Viá»t Nam vá» thương mại Äiá»n tá», an ninh mạng và bảo vá» dữ liá»u."}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Ngưá»i sá» dụng dá»ch vụ có trách nhiá»m Äảm bảo má»i hoạt Äá»ng sá» dụng hạ tầng proxy Äá»u phục vụ mục ÄÃch hợp pháp và không vi phạm quy Äá»nh pháp luáºt hiá»n hà nh."})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Ka,{size:24,className:"text-amber-500"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"2. ChÃnh sách sá» dụng hợp lá» (AUP)"})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"bg-emerald-50 p-6 rounded-xl border border-emerald-100",children:[a.jsxs("h3",{className:"text-xs font-bold text-emerald-700 uppercase mb-4 flex items-center gap-2",children:[a.jsx(As,{size:16})," Mục ÄÃch cho phép"]}),a.jsxs("ul",{className:"text-xs text-slate-600 space-y-2 font-bold",children:[a.jsx("li",{children:"⢠Kiá»m thá» há» thá»ng và ứng dụng Äa vùng"}),a.jsx("li",{children:"⢠Truy xuất dữ liá»u công khai"}),a.jsx("li",{children:"⢠Phân tÃch SEO và hiá»n thá» ná»i dung"}),a.jsx("li",{children:"⢠Nghiên cứu thá» trưá»ng"}),a.jsx("li",{children:"⢠TÃch hợp há» thá»ng doanh nghiá»p"})]})]}),a.jsxs("div",{className:"bg-rose-50 p-6 rounded-xl border border-rose-100",children:[a.jsxs("h3",{className:"text-xs font-bold text-rose-700 uppercase mb-4 flex items-center gap-2",children:[a.jsx(Ka,{size:16})," Hà nh vi bá» nghiêm cấm"]}),a.jsxs("ul",{className:"text-xs text-rose-800 space-y-2 font-bold opacity-70",children:[a.jsx("li",{children:"⢠Spam hoặc phát tán ná»i dung giả mạo"}),a.jsx("li",{children:"⢠Tấn công DDoS hoặc xâm nháºp trái phép"}
72),a.jsx("li",{children:"⢠Thu tháºp dữ liá»u cá nhân trái phép"}),a.jsx("li",{children:"⢠Lừa Äảo hoặc gian láºn trá»±c tuyến"}),a.jsx("li",{children:"⢠Các hà nh vi vi phạm pháp luáºt Viá»t Nam"})]})]})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(zl,{size:24,className:"text-indigo-600"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"3. Trách nhiá»m & Log kỹ thuáºt"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Fproxy không theo dõi ná»i dung dữ liá»u truyá»n qua proxy. Tuy nhiên há» thá»ng có thá» lưu trữ nháºt ký kỹ thuáºt á» mức cần thiết Äá» Äảm bảo an ninh há» thá»ng và phòng chá»ng lạm dụng dá»ch vụ."}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Ngưá»i dùng chá»u trách nhiá»m pháp lý Äá»i vá»i toà n bá» hoạt Äá»ng phát sinh từ tà i khoản cá»§a mình."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(fb,{size:24,className:"text-indigo-600"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"4. ÄÄng ký tà i khoản"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Ngưá»i dùng cần ÄÄng ký tà i khoản Äá» sá» dụng dá»ch vụ. Thông tin cung cấp phải chÃnh xác vÃ ÄÆ°á»£c cáºp nháºt khi có thay Äá»i."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(Io,{size:24,className:"text-indigo-600"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"5. Thanh toán dá»ch vụ"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Khách hà ng thanh toán trưá»c Äá» sá» dụng dá»ch vụ proxy. Giá dá»ch vụ ÄÆ°á»£c hiá»n thá» công khai trên website và có thá» thay Äá»i theo từng gói dá»ch vụ."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx(cp,{size:24,className:"text-indigo-600"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"6. Chấm dứt dá»ch vụ"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Fproxy có quyá»n tạm ngừng hoặc chấm dứt cung cấp dá»ch vụ Äá»i vá»i các tà i khoản vi phạm Äiá»u khoản sá» dụng hoặc có dấu hiá»u lạm dụng há» thá»ng."})]}),a.jsxs("div",{className:"bg-slate-900 rounded-xl p-8 text-white relative overflow-hidden border border-white/10",children:[a.jsx(Ml,{size:120,className:"absolute top-0 right-0 p-8 opacity-5"}),a.jsxs("div",{className:"relative z-10 space-y-6",children:[a.jsx("h2",{className:"text-xl font-bold uppercase border-b border-white/10 pb-4",children:"7. Tuyên bá» miá»
n trừ trách nhiá»m"}),a.jsx("p",{className:"text-sm text-slate-400 leading-relaxed",children:"Fproxy cung cấp hạ tầng proxy như má»t dá»ch vụ kỹ thuáºt. Ngưá»i dùng chá»u hoà n toà n trách nhiá»m Äá»i vá»i mục ÄÃch sá» dụng."})]})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx($g,{size:24,className:"text-indigo-600"}),a.jsx("h2",{className:"text-xl font-bold uppercase",children:"8. Giải quyết tranh chấp"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Má»i tranh chấp phát sinh liên quan Äến viá»c sá» dụng dá»ch vụ sẽ ÄÆ°á»£c ưu tiên giải quyết thông qua thương lượng giữa hai bên. Trong trưá»ng hợp không Äạt ÄÆ°á»£c thá»a thuáºn, tranh chấp sẽ ÄÆ°á»£c giải quyết theo quy Äá»nh cá»§a pháp luáºt Viá»t Nam."})]})]}),a.jsx("footer",{className:"py-10 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest opacity-60",children:"Cáºp nháºt: Tháng 1, 2026 ⢠Fproxy Compliance Office"})})]}),rx=({onBack:r})=>a.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans'] text-slate-900",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/80 backdrop-blur-md border-b border-slate-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:r,children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded flex items-center justify-center",children:a.jsx(Da,{size:16,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-xs font-bold text-slate-500 hover:text-indigo-600 transition-all",children:[a.jsx(Tc,{size:16})," Quay lại"]})]})}),a.jsxs("section",{className:"pt-32 pb-16 bg-slate-50 border-b border-slate-100 text-center space-y-4",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-indigo-50 text-indigo-600 rounded text-[10px] font-bold uppercase tracking-widest",children:[a.jsx(wx,{size:14})," Dá»ch vụ sá»"]}),a.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900",children:["ChÃnh sách ",a.jsx("span",{className:"text-indigo-600",children:"Cung cấp dá»ch vụ"})]}),a.jsx("p",{className:"text-base text-slate-500 font-medium max-w-xl mx-auto leading-relaxed",children:"Quy trình váºn chuyá»n và giao nháºn Äá»i vá»i các sản phẩm dá»ch vụ Äiá»n tá» tại Fproxy."})]}),a.jsxs("main",{className:"py-16 max-w-4xl mx-auto px-6 space-y-12",children:[a.jsx("div",{className:"bg-indigo-50/50 p-8 rounded-2xl border border-indigo-100",children:a.jsx("p",{className:"text-lg font-medium text-slate-700 leading-relaxed text-center italic",children:'"Fproxy cung cấp dá»ch vụ proxy dưá»i dạng dá»ch vụ Äiá»n tá», không có hình thức giao hà ng váºt lý."'})}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(ua,{size:20})}),a.jsx("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight",children:"1. Hình thức cung cấp"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Sau khi khách hà ng hoà n tất thanh toán, há» thá»ng sẽ tá»± Äá»ng kÃch hoạt gói dá»ch vụ proxy và cung cấp thông tin truy cáºp trá»±c tiếp trong tà i khoản khách hà ng trên website."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(Sa,{size:20})}),a.jsx("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight",children:"2. Thá»i gian kÃch hoạt"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"⢠Thông thưá»ng dá»ch vụ ÄÆ°á»£c kÃch hoạt ngay sau khi thanh toán ÄÆ°á»£c xác nháºn."}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"⢠Trong má»t sá» trưá»ng hợp cần kiá»m tra há» thá»ng, thá»i gian kÃch hoạt có thá» kéo dà i tá»i Äa 24 giá»."})]})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(Yo,{size:20})}),a.jsx("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight",children:"3. Phương thức nháºn dá»ch vụ"})]}),a.jsxs("div",{className:"bg-slate-50 p-8 rounded-2xl border border-slate-200",children:[a.jsx("p",{className:"text-sm font-bold text-slate-700 mb-4",children:"Khách hà ng có thá» truy cáºp mục âDashboard / Quản lý Proxyâ Äá» nháºn:"}),a.jsx("ul",{className:"grid sm:grid-cols-2 gap-4",children:["Äá»a chá» Proxy","Port kết ná»i","Username / Password (nếu có)","Hưá»ng dẫn cấu hình"].map((x,g)=>a.jsxs("li",{className:"flex items-center gap-2 text-sm font-medium text-slate-600",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-indigo-500 rounded-full"}),x]},g))})]})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(zl,{size:20})}),a.jsx("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight",children:"4. Phạm vi cung cấp"})]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Dá»ch vụ ÄÆ°á»£c cung cấp hoà n toà n trá»±c tuyến thông qua há» thá»ng máy chá»
72§ cá»§a Fproxy."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(xn,{size:20})}),a.jsx("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight",children:"5. Há» trợ kỹ thuáºt"})]}),a.jsxs("div",{className:"p-4 bg-slate-900 rounded-xl text-white",children:[a.jsx("p",{className:"text-xs text-slate-400 mb-2",children:"Trong trưá»ng hợp khách hà ng gặp vấn Äá» khi kÃch hoạt dá»ch vụ, vui lòng liên há»:"}),a.jsx("p",{className:"text-sm font-bold text-indigo-400",children:"Email: [email protected]"})]})]})]})]}),a.jsx("footer",{className:"py-10 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest opacity-60",children:"Cáºp nháºt: Tháng 3, 2026 ⢠Fproxy Service Policy"})})]}),ox=({onBack:r})=>a.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans'] text-slate-900",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/80 backdrop-blur-md border-b border-slate-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:r,children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded flex items-center justify-center",children:a.jsx(Da,{size:16,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-xs font-bold text-slate-500 hover:text-indigo-600 transition-all",children:[a.jsx(Tc,{size:16})," Quay lại"]})]})}),a.jsxs("section",{className:"pt-32 pb-16 bg-slate-50 border-b border-slate-100 text-center space-y-4",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-indigo-50 text-indigo-600 rounded text-[10px] font-bold uppercase tracking-widest",children:[a.jsx(ua,{size:14})," Bảo máºt dữ liá»u"]}),a.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900",children:["ChÃnh sách ",a.jsx("span",{className:"text-indigo-600",children:"Bảo máºt thông tin"})]}),a.jsx("p",{className:"text-base text-slate-500 font-medium max-w-xl mx-auto leading-relaxed",children:"Fproxy cam kết bảo vá» thông tin cá nhân cá»§a khách hà ng khi sá» dụng dá»ch vụ trên website."})]}),a.jsxs("main",{className:"py-16 max-w-4xl mx-auto px-6 space-y-16",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(_s,{size:20})}),a.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-tight",children:"1. Mục ÄÃch thu tháºp thông tin"})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Chúng tôi thu tháºp các thông tin cần thiết nhằm:"}),a.jsx("ul",{className:"grid sm:grid-cols-2 gap-3",children:["Tạo và quản lý tà i khoản ngưá»i dùng","Cung cấp và váºn hà nh dá»ch vụ proxy","Há» trợ khách hà ng và xá» lý giao dá»ch","Cải thiá»n chất lượng dá»ch vụ"].map((x,g)=>a.jsxs("li",{className:"flex items-center gap-2 text-sm font-medium text-slate-600 bg-slate-50 p-3 rounded-lg border border-slate-100",children:[a.jsx("div",{className:"w-1.5 h-1.5 bg-indigo-500 rounded-full"}),x]},g))}),a.jsxs("div",{className:"mt-4 p-4 bg-indigo-50 rounded-xl border border-indigo-100",children:[a.jsx("p",{className:"text-xs font-bold text-indigo-700 mb-2 uppercase tracking-wider",children:"Các thông tin có thá» bao gá»m:"}),a.jsxs("div",{className:"flex flex-wrap gap-4 text-xs font-medium text-slate-600",children:[a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(xn,{size:14})," Email"]}),a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(Cs,{size:14})," Tên tà i khoản"]}),a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(ua,{size:14})," Thông tin thanh toán"]}),a.jsxs("span",{className:"flex items-center gap-1.5",children:[a.jsx(Ml,{size:14})," Nháºt ký há» thá»ng (log)"]})]})]})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(Pp,{size:20})}),a.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-tight",children:"2. Phạm vi sá» dụng thông tin"})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Thông tin ngưá»i dùng chá» ÄÆ°á»£c sá» dụng cho các mục ÄÃch:"}),a.jsx("div",{className:"grid sm:grid-cols-3 gap-4",children:["Cung cấp dá»ch vụ","Há» trợ khách hà ng","Gá»i thông báo"].map((x,g)=>a.jsx("div",{className:"text-center p-4 bg-white border border-slate-200 rounded-xl shadow-sm",children:a.jsx("p",{className:"text-sm font-bold text-slate-800",children:x})},g))}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium bg-rose-50 p-4 rounded-xl border border-rose-100 italic",children:"Chúng tôi không bán hoặc chia sẻ thông tin cá nhân cho bên thứ ba, trừ khi có yêu cầu hợp pháp từ cÆ¡ quan chức nÄng theo quy Äá»nh pháp luáºt."})]})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-12",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsxs("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight flex items-center gap-2",children:[a.jsx(Sa,{size:18,className:"text-indigo-600"})," 3. Thá»i gian lưu trữ"]}),a.jsx("p",{className:"text-sm text-slate-600 leading-relaxed font-medium",children:"Thông tin cá nhân ÄÆ°á»£c lưu trữ trong thá»i gian tà i khoản còn hoạt Äá»ng hoặc theo yêu cầu cá»§a cÆ¡ quan quản lý nhà nưá»c."})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("h2",{className:"text-lg font-bold text-slate-900 uppercase tracking-tight flex items-center gap-2",children:[a.jsx(Cs,{size:18,className:"text-indigo-600"})," 4. Äá»i tượng tiếp cáºn"]}),a.jsxs("ul",{className:"text-sm text-slate-600 space-y-2 font-medium",children:[a.jsx("li",{children:"⢠Bá»
72 pháºn kỹ thuáºt & há» trợ Fproxy"}),a.jsx("li",{children:"â¢ ÄÆ¡n vá» thanh toán trung gian"}),a.jsx("li",{children:"⢠CÆ¡ quan nhà nưá»c có thẩm quyá»n"})]})]})]}),a.jsxs("div",{className:"bg-slate-900 rounded-2xl p-8 text-white relative overflow-hidden border border-white/10",children:[a.jsx(Ml,{size:120,className:"absolute top-0 right-0 p-8 opacity-5"}),a.jsxs("div",{className:"relative z-10 space-y-6",children:[a.jsxs("h2",{className:"text-xl font-bold uppercase tracking-tight border-b border-white/10 pb-4 flex items-center gap-3",children:[a.jsx(ld,{size:24,className:"text-indigo-400"})," 5. Phương thức bảo máºt"]}),a.jsx("p",{className:"text-sm text-slate-400 leading-relaxed font-medium",children:"Fproxy áp dụng các biá»n pháp kỹ thuáºt và quản lý nhằm bảo vá» dữ liá»u ngưá»i dùng, bao gá»m:"}),a.jsx("div",{className:"grid sm:grid-cols-3 gap-6",children:[{title:"HTTPS",desc:"Mã hóa kết ná»i"},{title:"Firewall",desc:"Kiá»m soát truy cáºp"},{title:"Secure Server",desc:"Hạ tầng bảo máºt"}].map((x,g)=>a.jsxs("div",{className:"bg-white/5 p-4 rounded-xl border border-white/5 text-center",children:[a.jsx("p",{className:"text-indigo-400 font-bold mb-1",children:x.title}),a.jsx("p",{className:"text-xs text-slate-500",children:x.desc})]},g))})]})]}),a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 bg-indigo-100 text-indigo-600 rounded-lg flex items-center justify-center",children:a.jsx(Cs,{size:20})}),a.jsx("h2",{className:"text-xl font-bold text-slate-900 uppercase tracking-tight",children:"6. Quyá»n cá»§a ngưá»i dùng"})]}),a.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[a.jsxs("div",{className:"p-4 bg-slate-50 rounded-xl border border-slate-200",children:[a.jsx("p",{className:"text-sm font-bold text-slate-700 mb-1",children:"Kiá»m soát dữ liá»u"}),a.jsx("p",{className:"text-xs text-slate-500",children:"Yêu cầu kiá»m tra, cáºp nháºt hoặc xóa thông tin cá nhân bất cứ lúc nà o."})]}),a.jsxs("div",{className:"p-4 bg-slate-50 rounded-xl border border-slate-200",children:[a.jsx("p",{className:"text-sm font-bold text-slate-700 mb-1",children:"Từ chá»i Marketing"}),a.jsx("p",{className:"text-xs text-slate-500",children:"Yêu cầu ngừng sá» dụng thông tin cho mục ÄÃch marketing hoặc quảng cáo."})]})]})]})]}),a.jsx("footer",{className:"py-10 border-t border-slate-100 text-center",children:a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest opacity-60",children:"Cáºp nháºt: Tháng 3, 2026 ⢠Fproxy Privacy Policy"})})]}),dx=({onBack:r,onStart:x})=>{const g=[{id:"ecommerce",icon:kx,title:"Thương mại Äiá»n tá» & Giám sát Giá",description:"Tá»± Äá»ng hóa viá»c theo dõi giá cả, chương trình khuyến mãi và tình trạng tá»n kho cá»§a Äá»i thá»§ trên các sà n TMÄT lá»n.",features:["TrÃch xuất dữ liá»u giá thá»i gian thá»±c.","Phân tÃch biến Äá»ng tá»n kho theo vùng miá»n.","Giám sát các chiến dá»ch Flash Sale.","Thu tháºp Äánh giá sản phẩm Äá» phân tÃch thá» hiếu."]},{id:"market-research",icon:gx,title:"Nghiên cứu Thá» trưá»ng & Xu hưá»ng",description:"Thu tháºp dữ liá»u từ các diá»
n Äà n, trang tin tức và mạng xã há»i công khai Äá» phân tÃch xu hưá»ng tiêu dùng và tâm lý khách hà ng.",features:["TrÃch xuất ná»i dung tin tức Äa nguá»n.","Thu tháºp dữ liá»u thảo luáºn công khai.","Há» trợ phân tÃch Insight thá» trưá»ng.","Theo dõi sức khá»e thương hiá»u (Brand Health)."]},{id:"seo-serp",icon:mn,title:"Giám sát SEO & Dữ liá»u SERP",description:"Kiá»m tra thứ hạng từ khóa và cấu trúc hiá»n thá» cá»§a kết quả tìm kiếm dưá»i góc nhìn cá»§a ngưá»i dùng thá»±c tế tại Äá»a phương.",features:["Thu tháºp dữ liá»u kết quả tìm kiếm (SERP).","Kiá»m tra Localization cá»§a từ khóa.","Giám sát các Äoạn trÃch ná»i báºt (Snippets).","Phân tÃch cấu trúc quảng cáo cá»§a Äá»i thá»§."]},{id:"ad-verification",icon:ua,title:"Xác thá»±c Quảng cáo & Brand Protection",description:"Äảm bảo quảng cáo cá»§a bạn hiá»n thá» Äúng Äá»i tượng và bảo vá» thương hiá»u khá»i các hà nh vi xâm phạm bản quyá»n công khai.",features:["Kiá»m tra hiá»n thá» quảng cáo Äa khu vá»±c.","Phát hiá»n ná»i dung giả mạo thương hiá»u.","Giám sát các Äại lý vi phạm chÃnh sách giá.","Xác thá»±c tÃnh minh bạch cá»§a tuyến ÄÆ°á»ng truyá»n."]}];return a.jsxs("div",{className:"min-h-screen bg-white font-['Plus_Jakarta_Sans'] text-slate-900 selection:bg-indigo-100",children:[a.jsx("nav",{className:"fixed top-0 left-0 w-full z-[100] bg-white/80 backdrop-blur-md border-b border-slate-100",children:a.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[a.jsxs("div",{className:"flex items-center gap-2 cursor-pointer",onClick:r,children:[a.jsx("div",{className:"w-8 h-8 bg-indigo-600 rounded flex items-center justify-center",children:a.jsx(Da,{size:16,className:"text-white"})}),a.jsx("span",{className:"text-xl font-bold tracking-tight",children:"Fproxy"})]}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("button",{onClick:r,className:"text-xs font-bold text-slate-500 hover:text-indigo-600 transition-all",children:"Quay lại"}),a.jsx("button",{onClick:x,className:"bg-slate-900 text-white px-5 py-2 rounded-lg font-bold text-xs hover:bg-indigo-600 transition-all",children:"Dùng thá» ngay"})]})]})}),a.jsxs("section",{className:"pt-32 pb-20 bg-slate-50 border-b border-slate-100 relative overflow-hidden",children:[a.jsx("div",{className:"absolute top-0 right-0 p-20 opacity-5 text-indigo-600 rotate-12",children:a.jsx(_s,{size:400})}),a.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center space-y-6 relative z-10",children:[a.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-indigo-100 text-indigo-700 rounded-full text-[10px] font-black uppercase tracking-widest",children:"Hạ tầng trÃch xuất dữ liá»u"}),a.jsxs("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900",children:["Giải pháp Proxy cho ",a.jsx("br",{}),a.jsx("span",{className:"text-indigo-600",children:"Thu tháºp Dữ liá»u Công khai"})]}),a.jsx("p",{className:"text-lg text-slate-500 font-medium leading-relaxed max-w-2xl mx-auto",children:"Hạ tầng Proxy HTTP/SOCKS5 chuyên dụng giúp doanh nghiá»p vượt qua các rà o cản kỹ thuáºt, Äảm bảo dữ liá»u ÄÆ°á»£c trÃch xuất liên tục vá»i tá» lá» thà nh công tá»i Äa."})]})]}),a.jsx("section",{className:"py-12 border-b border-slate-50 bg-white",children:a.jsx("div",{className:"max-w-7xl mx-auto px-6",children:a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:[{label:"Tá» lá» thà nh công",value:"99.2%",icon:wa},{label:"Thá»i gian phản há»i",value:"< 0.5s",icon:yx},{label:"Äa luá»ng xá» lý",value:"Không giá»i hạn",icon:ed},{label:"Khu vá»±c IP",value:"63 Tá»nh thà nh",icon:zl}].map((d,N)=>a.jsxs("div",{className:"text-center space-y-1",children:[a.jsx("div",{className:"flex justify-center text-indigo-600 mb-2",children:a.jsx(d.icon,{size:20})}),a.jsx("p",{className:"text-2xl font-black text-slate-900",children:d.value}),a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest",children:d.label})]},N))})})}),a.jsx("section",{className:"py-20",children:a.jsx("div",{className:"max-w-7xl mx-auto px-6",children:a.jsx("div",{className:"space-y-24",children:g.map((d,N)=>a.jsxs("div",{className:`flex flex-col lg:flex-row items-center gap-16 ${N%2!==0?"lg:flex-row-reverse":""}`,children:[a.jsxs("div",{className:"flex-1 space-y-8",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h2",{className:"text-3xl font-extrabold text-slate-900 tracking-tight",children:d.title}),a.jsx("p",{className:"text-base text-slate-500 leading-relaxed font-medium",children:d.description})]}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:d.features.map((S,T)=>a.jsxs("div",{className:"flex items-start gap-3 bg-slate-50 p-4 rounded-xl border border-slate-100 hover:border-indigo-200 transition-colors",children:[a.jsx(As,{size:18,className:"text-emerald-500 mt-0.5 flex-shrink-0"}),a.jsx("span",{className:"text-sm font-bold text-slate-700 leading-tight",children:S})]},T))})]}),a.jsxs("div",{className:"flex-1 w-full max-w-lg aspect-video bg-indigo-50 rounded-3xl border border-indigo-100 flex items-center justify-center p-8 relative overflow-hidden group",children:[a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-500 to-violet-600 opacity-0 group-hover:opacity-5 transition-opacity"}),a.jsxs("div",{className:"w-full h-full bg-white rounded-2xl shadow-xl flex items-center justify-center relative border border-slate-100 p-10",children:[a.jsx(d.icon,{size:100,className:"text-indigo-100"}),a.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:a.jsx("div",{className:"w-20 h-20 bg-indigo-600 rounded-2xl flex items-center justify-center shadow-lg shadow-indigo-200",children:a.jsx(d.icon,{size:40,className:"text-white"})})})]})]})]},d.id))})})}),a.jsxs("section",{className:"py-20 bg-slate-900 text-white overflow-hidden relative",children:[a.jsx("div",{className:"absolute top-0 left-0 p-20 opacity-5 text-indigo-400 -rotate-12",children:a.jsx(jp,{size:300})}),a.jsxs("div",{className:"max-w-4xl mx-auto px-6 text-center space-y-8 relative z-10",children:[a.jsx(ua,{size:56,className:"text-indigo-400 mx-auto"}),a.jsx("h2",{className:"text-3xl font-extrabold tracking-tight",children:"Thu tháºp dữ liá»u có trách nhiá»m"}),a.jsx("p",{className:"text-slate-400 text-lg leading-relaxed max-w-2xl mx-auto font-medium",children:"Fproxy cam kết chá» há» trợ các mục ÄÃch trÃch xuất dữ liá»u công khai (Open Data). Chúng tôi tôn trá»ng quyá»n riêng tư, Äiá»u khoản sá» dụng cá»§a bên thứ ba và há» trợ khách hà ng tuân thá»§ các quy Äá»nh vá» an toà n hạ tầng mạng."}),a.jsxs("div",{className:"pt-6 flex flex-col sm:flex-row justify-center gap-4",children:[a.jsxs("button",{onClick:x,className:"bg-indigo-600 text-white px-10 py-4 rounded-xl font-bold text-sm shadow-xl shadow-indigo-900/20 hover:bg-indigo-500 transition-all flex items-center justify-center gap-2",children:["Bắt Äầu tÃch hợp API ",a.jsx(zs,{size:18})]}),a.jsx("button",{className:"bg-white/10 backdrop-blur-md text-white border border-white/20 px-10 py-4 rounded-xl font-bold text-sm hover:bg-white/20 transition-all",children:"Tà i liá»u kỹ thuáºt Scraper"})]})]})]}),a.jsxs("footer",{className:"py-12 border-t border-slate-100 text-center bg-slate-50/50",children:[a.jsxs("div",{className:"flex justify-center gap-8 mb-6 text-[10px] font-black text-slate-400 uppercase tracking-widest",children:[a.jsx("span",{children:"Uptime 99.9%"}),a.jsx("span",{children:"Data Center VN"}),a.jsx("span",{children:"24/7 Support"})]}),a.jsx("p",{className:"text-[10px] font-bold text-slate-300 uppercase tracking-widest",children:"© 2026 Fproxy Solutions. Vietnam Data Infrastru
72cture Center."})]})]})},Xb=[{id:1,name:"Hưng Yên"},{id:2,name:"Hải Phòng"},{id:3,name:"VÄ©nh Phúc"},{id:4,name:"Hòa Bình"},{id:5,name:"Hà Ná»i"},{id:6,name:"Khánh Hòa"},{id:7,name:"Thanh Hóa"},{id:8,name:"Ninh Bình"},{id:9,name:"Thái Bình"},{id:10,name:"SÆ¡n La"},{id:11,name:"Bắc Giang"},{id:12,name:"Quảng Ninh"},{id:13,name:"TT Huế"},{id:14,name:"Là o Cai"},{id:15,name:"Tuyên Quang"},{id:16,name:"Bắc Ninh"},{id:17,name:"Bình Dương"},{id:18,name:"Há» Chà Minh"},{id:19,name:"Hà Nam"},{id:20,name:"Lạng SÆ¡n"},{id:21,name:"Nghá» An"},{id:22,name:"Äà Nẵng"},{id:23,name:"Hải Dương"},{id:24,name:"Phú Thá»"},{id:25,name:"Thái Nguyên"},{id:26,name:"Yên Bái"},{id:27,name:"Quảng Nam"},{id:28,name:"Dak Lak"},{id:29,name:"Phú Yên"},{id:30,name:"Lâm Äá»ng"},{id:31,name:"Gia Lai"},{id:32,name:"Quảng Ngãi"},{id:33,name:"Kon Tum"},{id:34,name:"Quy NhÆ¡n"},{id:35,name:"Dak Nông"},{id:36,name:"Bình Thuáºn"},{id:37,name:"Ninh Thuáºn"},{id:38,name:"Lai Châu"},{id:39,name:"Äiá»n Biên"},{id:40,name:"Cần ThÆ¡"},{id:41,name:"Äá»ng Nai"},{id:42,name:"Cà Mau"},{id:43,name:"Quảng Bình"},{id:44,name:"Tây Ninh"},{id:45,name:"An Giang"},{id:46,name:"VÄ©nh Long"}],Zb=({user:r,onLogout:x,onShowToast:g})=>{const[d,N]=h.useState("dashboard"),[S,T]=h.useState(null),[H,D]=h.useState(!1),[j,Q]=h.useState(""),[A,J]=h.useState(!1),[xe,me]=h.useState("all"),[I,Se]=h.useState("id"),[ae,he]=h.useState(""),[Me,Xe]=h.useState("all"),[$e,ne]=h.useState([]),[re,Ke]=h.useState(1),[Le,tt]=h.useState(100),[Ze,je]=h.useState(0),[Be,St]=h.useState([]),[oe,v]=h.useState(1),[G,ce]=h.useState(100),[pe,ze]=h.useState(0),[f,E]=h.useState(0),[U,V]=h.useState([]),[ue,we]=h.useState(1),[Y,P]=h.useState(100),[ye,Qe]=h.useState(0),[qe,Fe]=h.useState([]),[it,Rt]=h.useState(1),[te,ct]=h.useState(100),[zt,Gt]=h.useState(0),[ft,K]=h.useState([]),[F,W]=h.useState(null),[Re,De]=h.useState(""),[Je,kt]=h.useState(""),[Vt,yt]=h.useState(""),[B,le]=h.useState(""),[de,ve]=h.useState(null),[mt,ot]=h.useState([]),[Ee,Et]=h.useState([]),[ha,la]=h.useState("cashflow"),[Qa,b]=h.useState(!1);h.useEffect(()=>{Ke(1),v(1),we(1),Rt(1)},[j,d,xe,ae,Me,I]),h.useEffect(()=>{q()},[d,re,Le,oe,G,ue,Y,it,te,j,xe,ae,Me,I]);const q=async()=>{D(!0);try{if(d==="dashboard"){const k=await He.admin.getStats(),Ae={...k,activeOrders:Math.max(0,(k.activeOrders||0)-1e3),activeOrderValue:Math.max(0,(k.activeOrderValue||0)-1e7)};T(Ae)}else if(d==="users"){const k=await He.admin.getUsers(re,Le,j);ne(k.data||[]),je(k.totalPages||0)}else if(d==="orders"){const k=ae?`user:${ae} ${j}`.trim():j,Ae=await He.admin.getAllOrders(oe,G,k,xe,I);St(Ae.data||[]),ze((()=>{if(xe==="active"){const Ut=Math.max(0,(Ae.total||0)-1e3);return Math.ceil(Ut/G)}return Ae.totalPages})()||1),E(Ae.total||0)}else if(d==="invoices"){const k=await He.admin.getAllInvoices(ue,Y,j);V(k.data||[]),Qe(k.totalPages||0)}else if(d==="accounts"){const k=await He.admin.getAccounts(it,te,j,Me);Fe(k.data||[]),Gt(k.totalPages||0)}else if(d==="cashflow"){const k=await He.admin.getGlobalCashFlow(j);K(k||[])}}catch(k){console.error(k),g("error","Không thá» kết ná»i dữ liá»u máy chá»§")}finally{D(!1)}},ee=async(k,Ae)=>{ve({id:k,username:Ae}),b(!0),la("cashflow");try{const[dt,Ut]=await Promise.all([He.admin.getUserLogs(k),He.admin.getUserCashFlow(k)]);ot(dt||[]),Et(Ut||[])}catch(dt){console.error(dt)}finally{b(!1)}},Te=async()=>{if(!F)return;const k=parseInt(Re)||0,Ae=parseInt(Je)||0;let dt=F.money;k>0&&(dt+=k),Ae>0&&(dt-=Ae);try{await He.admin.updateUser(F.id,{money:dt,email:Vt,password:B||void 0}),g("success",`Äã cáºp nháºt thà nh viên ${F.username}`),W(null),De(""),kt(""),le(""),q()}catch(Ut){g("error",Ut.message)}},Ce=async(k,Ae,dt)=>{const Ut=Ae===1?"duyá»t":"há»§y";if(confirm(`Bạn chắc chắn muá»n ${Ut} hóa ÄÆ¡n ${dt}?`))try{await He.admin.updateInvoice(k,Ae),g("success",`Äã ${Ut} hóa ÄÆ¡n thà nh công`),q()}catch(na){g("error",na.message)}},Zt=async k=>{if(confirm("Xác nháºn xóa tà i khoản/Node nà y khá»i há» thá»ng?"))try{await He.admin.deleteAccount(k),g("success","Äã xóa tà i khoản hạ tầng"),q()}catch(Ae){g("error",Ae.message)}},pt=({current:k,total:Ae,onPageChange:dt,limit:Ut,onLimitChange:na})=>a.jsxs("div",{className:"bg-white p-4 border-t border-slate-100 flex flex-col sm:flex-row justify-between items-center gap-4",children:[a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("button",{disabled:k===1,onClick:()=>dt(k-1),className:"p-2 bg-slate-50 border border-slate-200 text-slate-400 disabled:opacity-20 rounded hover:text-indigo-600 transition-colors",children:a.jsx(Ms,{size:18})}),a.jsxs("span",{className:"text-[10px] font-medium text-white bg-indigo-600 px-4 py-2 rounded shadow-sm shadow-indigo-100 uppercase",children:["TRANG ",k," / ",Ae||1]}),a.jsx("button",{disabled:k>=Ae,onClick:()=>dt(k+1),className:"p-2 bg-slate-50 border border-slate-200 text-slate-400 disabled:opacity-20 rounded hover:text-indigo-600 transition-colors",children:a.jsx(rs,{size:18})})]}),na&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[10px] font-bold text-slate-400 uppercase",children:"Hiá»n thá»:"}),a.jsxs("select",{value:Ut,onChange:Ha=>{na(Number(Ha.target.value)),dt(1)},className:"bg-white border border-slate-200 text-slate-700 text-[10px] font-bold rounded px-2 py-1 outline-none focus:border-indigo-500 transition-colors",children:[a.jsx("option",{value:"50",children:"50 dòng"}),a.jsx("option",{value:"100",children:"100 dòng"}),a.jsx("option",{value:"200",children:"200 dòng"})]})]})]}),_e=k=>
72k?new Date(k).toLocaleString("vi-VN",{hour:"2-digit",minute:"2-digit",day:"2-digit",month:"2-digit",year:"numeric"}):"-";return a.jsxs("div",{className:"min-h-screen bg-slate-50 text-slate-800 flex flex-col font-sans selection:bg-indigo-100 selection:text-indigo-900",children:[a.jsxs("header",{className:"bg-white border-b border-slate-200 px-6 py-4 flex items-center justify-between sticky top-0 z-[40] backdrop-blur-xl shadow-sm",children:[a.jsxs("div",{className:"flex items-center gap-8",children:[a.jsxs("h1",{className:"text-xl font-medium bg-gradient-to-r from-indigo-600 to-indigo-800 bg-clip-text text-transparent flex items-center gap-3 uppercase tracking-tighter",children:[a.jsx(sd,{className:"text-indigo-600"})," Admin Panel"]}),a.jsxs("div",{className:"hidden lg:flex items-center bg-slate-100 border border-slate-200 rounded-xl overflow-hidden w-80 h-10 focus-within:border-indigo-500 focus-within:bg-white focus-within:ring-2 focus-within:ring-indigo-500/10 transition-all",children:[a.jsx("div",{className:"pl-4 text-slate-400",children:a.jsx(mn,{size:15})}),a.jsx("input",{type:"text",placeholder:"Tìm kiếm",value:j,onChange:k=>Q(k.target.value),className:"flex-1 bg-transparent border-none text-[11px] font-bold text-slate-700 px-3 h-full outline-none placeholder:text-slate-400"})]})]}),a.jsx("div",{className:"flex items-center gap-4",children:a.jsxs("button",{onClick:x,className:"flex items-center gap-2 px-4 h-10 text-[10px] font-medium uppercase tracking-widest text-rose-600 hover:bg-rose-50 border border-rose-200 rounded-lg transition-all",children:[a.jsx(Ko,{size:16})," Thoát"]})})]}),a.jsx("nav",{className:"bg-white border-b border-slate-200 px-6 py-2 flex items-center gap-1 overflow-x-auto no-scrollbar",children:[{id:"dashboard",label:"Tá»ng quan",icon:gx},{id:"users",label:"Ngưá»i dùng",icon:Cs},{id:"orders",label:"ÄÆ¡n hà ng",icon:Jo},{id:"accounts",label:"Hạ tầng IP",icon:kc},{id:"cashflow",label:"Dòng tiá»n",icon:Ph},{id:"invoices",label:"Hóa ÄÆ¡n",icon:Nc}].map(k=>a.jsxs("button",{onClick:()=>{N(k.id),Q(""),me("all"),he(""),Xe("all")},className:`flex items-center gap-2.5 px-5 py-3 rounded-lg transition-all text-[10px] font-medium uppercase tracking-widest whitespace-nowrap ${d===k.id?"bg-indigo-600 text-white shadow-lg shadow-indigo-100 border border-indigo-600":"text-slate-500 hover:bg-slate-50 hover:text-indigo-600"}`,children:[a.jsx(k.icon,{size:16})," ",k.label]},k.id))}),a.jsx("main",{className:"flex-1 p-6 overflow-y-auto custom-scrollbar",children:a.jsxs("div",{className:"max-w-[1600px] mx-auto",children:[d==="orders"&&a.jsxs("div",{className:"bg-white border border-slate-200 rounded-2xl p-4 mb-6 shadow-sm flex flex-wrap items-center gap-4 animate-in fade-in duration-300",children:[a.jsxs("div",{className:"flex items-center gap-2 bg-slate-50 px-3 py-2 rounded-xl border border-slate-100 focus-within:border-indigo-500 transition-all flex-1 min-w-[240px]",children:[a.jsx(Cs,{size:16,className:"text-slate-400"}),a.jsx("input",{type:"text",placeholder:"ID hoặc User",value:ae,onChange:k=>he(k.target.value),className:"bg-transparent border-none text-[11px] font-bold text-slate-700 w-full outline-none placeholder:text-slate-300 uppercase"}),ae&&a.jsx(ea,{size:14,className:"text-slate-400 cursor-pointer hover:text-rose-500",onClick:()=>he("")})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[10px] font-medium text-slate-400 ml-2",children:"Trạng thái:"}),a.jsx("div",{className:"flex bg-slate-100 p-1 rounded-xl gap-1",children:[{id:"all",label:"Tất cả",icon:Wo},{id:"active",label:"Còn hạn",icon:fp},{id:"expired",label:"Hết hạn",icon:gp}].map(k=>a.jsxs("button",{onClick:()=>me(k.id),className:`flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-[10px] font-medium transition-all ${xe===k.id?"bg-white text-indigo-600 shadow-sm":"text-slate-400 hover:text-slate-600"}`,children:[a.jsx(k.icon,{size:14})," ",k.label]},k.id))})]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"text-[10px] font-medium text-slate-400 ml-2",children:"Sắp xếp:"}),a.jsxs("div",{className:"flex bg-slate-100 p-1 rounded-xl gap-1",children:[a.jsx("button",{onClick:()=>Se("id"),className:`flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-[10px] font-medium transition-all ${I==="id"?"bg-white text-indigo-600 shadow-sm":"text-slate-400 hover:text-slate-600"}`,children:"Mặc Äá»nh"}),a.jsx("button",{onClick:()=>Se("active_keys"),className:`flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-[10px] font-medium transition-all ${I==="active_keys"?"bg-white text-indigo-600 shadow-sm":"text-slate-400 hover:text-slate-600"}`,children:"Nhiá»u Key Active"})]})]}),a.jsx("button",{onClick:q,className:"ml-auto p-2.5 bg-indigo-600 text-white rounded-xl hover:bg-indigo-700 transition-all shadow-md shadow-indigo-100",children:a.jsx(Xt,{size:18,className:H?"animate-spin":""})})]}),d==="accounts"&&a.jsx("div",{className:"bg-white border border-slate-200 rounded-2xl p-4 mb-6 shadow-sm flex flex-wrap items-center gap-4 animate-in fade-in duration-300",children:a.jsxs("div",{className:"flex items-center gap-3 bg-slate-50 px-4 py-2.5 rounded-xl border border-slate-100 focus-within:border-indigo-500 transition-all flex-1 min-w-[300px]",children:[a.jsx(aa,{size:18,className:"text-indigo-600"}),a.jsxs("select",{value:Me,onChange:k=>Xe(k.target.value),className:"bg-transparent border-none text-[11px] font-medium text-slate-700 w-full outline-none uppercase cursor-pointer",children:[a.jsx("option",{value:"all",children:"TẤT CẢ KHU Vá»°C (63 Tá»NH THÃNH)"}),Xb.map(k=>a.jsxs("option",{value:k.id,children:["ID ",k.id,": ",k.name.toUpperCase()]},k.id))]})]})}),a.jsx("div",{className:"bg-white border border-slate-200 rounded-2xl overflow-hidden shadow-xl shadow-slate-200/50",children:H?a.jsxs("div",{className:"p-32 text-center flex flex-col items-center",children:[a.jsx("div",{className:"w-12 h-12 border-4 border-indigo-600 border-t-transparent roun
72ded-full animate-spin mb-6"}),a.jsx("p",{className:"text-[10px] font-medium text-slate-400 uppercase tracking-[0.4em] animate-pulse",children:"Äang nạp luá»ng dữ liá»u..."})]}):a.jsxs(a.Fragment,{children:[d==="dashboard"&&S&&a.jsxs("div",{className:"p-8 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 animate-in fade-in duration-500",children:[a.jsxs("div",{className:"bg-slate-50 p-8 rounded-2xl border border-slate-100 hover:border-indigo-500/30 transition-colors group",children:[a.jsxs("p",{className:"text-[10px] font-medium text-slate-400 uppercase mb-4 tracking-widest flex items-center gap-2 group-hover:text-indigo-600",children:[a.jsx(Cs,{size:14})," Thà nh viên"]}),a.jsx("p",{className:"text-4xl font-medium text-slate-900 tracking-tighter",children:S.users.toLocaleString()}),a.jsxs("div",{className:"mt-4 text-[10px] font-bold text-emerald-600",children:["+",S.todayUsers," HÃM NAY"]})]}),a.jsxs("div",{className:"bg-slate-50 p-8 rounded-2xl border border-slate-100 hover:border-indigo-500/30 transition-colors group",children:[a.jsxs("p",{className:"text-[10px] font-medium text-slate-400 uppercase mb-4 tracking-widest flex items-center gap-2 group-hover:text-indigo-600",children:[a.jsx(Jo,{size:14})," Proxy Active"]}),a.jsx("p",{className:"text-4xl font-medium text-indigo-600 tracking-tighter",children:S.activeOrders.toLocaleString()}),a.jsxs("div",{className:"mt-4 text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:[Math.floor(S.activeOrderValue||0).toLocaleString(),"Ä TRÃN Há» THá»NG"]})]}),a.jsxs("div",{className:"bg-slate-50 p-8 rounded-2xl border border-slate-100 hover:border-indigo-500/30 transition-colors group",children:[a.jsxs("p",{className:"text-[10px] font-medium text-slate-400 uppercase mb-4 tracking-widest flex items-center gap-2 group-hover:text-indigo-600",children:[a.jsx(kc,{size:14})," Sức khá»e IP"]}),a.jsxs("p",{className:"text-4xl font-medium text-emerald-600 tracking-tighter",children:[S.liveProxies," / ",S.totalProxies]}),a.jsx("div",{className:"mt-4 text-[10px] font-bold text-slate-500 uppercase tracking-tighter",children:"NODES ÄANG TRá»°C TUYẾN"})]}),a.jsxs("div",{className:"bg-slate-50 p-8 rounded-2xl border border-slate-100 hover:border-indigo-500/30 transition-colors group",children:[a.jsxs("p",{className:"text-[10px] font-medium text-slate-400 uppercase mb-4 tracking-widest flex items-center gap-2 group-hover:text-indigo-600",children:[a.jsx(cs,{size:14})," Tá»ng Nạp Tháng"]}),a.jsxs("p",{className:"text-4xl font-medium text-emerald-600 tracking-tighter",children:[Math.floor(S.totalRevenue||0).toLocaleString(),"Ä"]}),a.jsxs("div",{className:"mt-4 text-[10px] font-bold text-slate-900 uppercase tracking-tighter",children:["HÃM NAY: +",Math.floor(S.todayRevenue||0).toLocaleString(),"Ä"]})]})]}),d==="users"&&a.jsxs("div",{className:"flex flex-col",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-left",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-500 uppercase text-[10px] font-medium border-b border-slate-100",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-6 py-5",children:"ID"}),a.jsx("th",{className:"px-6 py-5",children:"Thà nh viên"}),a.jsx("th",{className:"px-6 py-5",children:"Sá» dư"}),a.jsx("th",{className:"px-6 py-5",children:"IP ÄÄng ký"}),a.jsx("th",{className:"px-6 py-5",children:"Ngà y ÄÄng ký"}),a.jsx("th",{className:"px-6 py-5",children:"Trạng thái"}),a.jsx("th",{className:"px-6 py-5 text-right",children:"Edit"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px] font-bold",children:$e.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:7,className:"p-20 text-center text-slate-400 font-bold uppercase text-[10px]",children:"Không tìm thấy dữ liá»u khá»p"})}):$e.map(k=>a.jsxs("tr",{className:"even:bg-slate-50/50 group",children:[a.jsxs("td",{className:"px-6 py-4 font-mono text-slate-400",children:["#",k.id]}),a.jsx("td",{className:"px-6 py-4",children:a.jsxs("button",{onClick:()=>ee(k.id,k.username),className:"text-slate-900 hover:text-indigo-600 text-left",children:[k.username,a.jsx("p",{className:"text-[9px] text-slate-500 lowercase font-medium",children:k.email})]})}),a.jsxs("td",{className:"px-6 py-4 font-mono text-emerald-600",children:[Math.floor(k.money
72).toLocaleString(),"Ä"]}),a.jsx("td",{className:"px-6 py-4 font-mono text-slate-500",children:k.ip||"-"}),a.jsx("td",{className:"px-6 py-4 font-mono text-slate-400 text-[10px]",children:_e(k.create_date)}),a.jsx("td",{className:"px-6 py-4",children:k.banned===1?a.jsx("span",{className:"text-rose-600 px-2 py-1 bg-rose-50 rounded",children:"LOCKED"}):a.jsx("span",{className:"text-emerald-600 px-2 py-1 bg-emerald-50 rounded",children:"ACTIVE"})}),a.jsx("td",{className:"px-6 py-4 text-right",children:a.jsx("button",{onClick:()=>{W(k),yt(k.email||""),De(""),kt(""),le("")},className:"p-2 bg-indigo-600/10 text-indigo-600 rounded hover:bg-indigo-600 hover:text-white transition-all",children:a.jsx(Fh,{size:14})})})]},k.id))})]})}),a.jsx(pt,{current:re,total:Ze,limit:Le,onPageChange:Ke,onLimitChange:tt})]}),d==="orders"&&a.jsxs("div",{className:"flex flex-col",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-left",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-500 uppercase text-[10px] font-medium border-b border-slate-100",children:a.jsxs("tr",{children:[a.jsxs("th",{className:"px-6 py-5",children:["ÄÆ¡n hà ng / API Key",xe==="active"&&f>0&&a.jsx("span",{className:"ml-2 px-2 py-0.5 bg-indigo-50 text-indigo-600 rounded-full text-[9px] font-black"})]}),a.jsx("th",{className:"px-6 py-5",children:"Khách hà ng"}),I==="active_keys"&&a.jsx("th",{className:"px-6 py-5 text-center",children:"Sá» Key Active"}),a.jsx("th",{className:"px-6 py-5",children:"Proxy IP Hiá»n tại"}),a.jsx("th",{className:"px-6 py-5",children:"Hạn sá» dụng"}),a.jsx("th",{className:"px-6 py-5 text-center",children:"Status"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px] font-bold",children:Be.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:5,className:"p-20 text-center text-slate-400 font-bold uppercase text-[10px]",children:"Không tìm thấy ÄÆ¡n hà ng nà o khá»p vá»i bá» lá»c"})}):Be.map(k=>a.jsxs("tr",{className:"even:bg-slate-50/50",children:[a.jsxs("td",{className:"px-6 py-4",children:[a.jsx("p",{className:"text-slate-900 font-medium",children:k.name||"Gói Proxy X"}),a.jsx("p",{className:"text-[11px] font-medium text-slate-600 mt-1 p-1 rounded inline-block",children:k.api_key})]}),a.jsx("td",{className:"px-6 py-4",children:a.jsxs("button",{onClick:()=>ee(k.buyer,k.buyer_name||"N/A"),className:"text-indigo-600 uppercase hover:underline",children:[k.buyer_name||"N/A"," - ",k.buyer]})}),I==="active_keys"&&a.jsx("td",{className:"px-6 py-4 text-center",children:a.jsx("span",{className:"bg-indigo-50 text-indigo-600 px-3 py-1 rounded-lg text-xs font-medium",children:k.active_key_count||0})}),a.jsx("td",{className:"px-6 py-4",children:a.jsx("div",{className:"font-mono text-slate-600 px-2 py-1 rounded inline-block",children:k.proxy_orders||"Chưa kết ná»i"})}),a.jsx("td",{className:"px-6 py-4 font-mono text-slate-600 text-[10px]",children:a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx(Sa,{size:12})," ",_e(k.time_het*1e3)]})}),a.jsx("td",{className:"px-6 py-4 text-center",children:k.trangthai_hethan==="1"?a.jsx("span",{className:"text-emerald-600 bg-emerald-50 px-3 py-1 rounded-full text-[10px] font-medium border border-emerald-100",children:"Còn hạn"}):a.jsx("span",{className:"text-rose-600 bg-rose-50 px-3 py-1 rounded-full text-[10px] font-medium border border-rose-100",children:"Hết hạn"})})]},k.id))})]})}),a.jsx(pt,{current:oe,total:pe,limit:G,onPageChange:v,onLimitChange:ce})]}),d==="invoices"&&a.jsxs("div",{className:"flex flex-col",children:[a.jsxs("table",{className:"w-full text-left",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-500 text-[10px] font-medium border-b border-slate-100",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-6 py-5",children:"Hóa ÄÆ¡n"}),a.jsx("th",{className:"px-6 py-5",children:"Khách hà ng"}),a.jsx("th",{className:"px-6 py-5",children:"Thá»±c nạp"}),a.jsx("th",{className:"px-6 py-5",children:"Ngà y tạo"}),a.jsx("th",{className:"px-6 py-5",children:"Ná»i tiá»n"}),a.jsx("th",{className:"px-6 py-5 text-right",children:"Thao tác"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px] font-bold",children:U.map(k=>a.jsxs("tr",{className:"even:bg-slate-50/50",children:[a.jsx("td",{className:"px-6 py-4 font-mono text-slate-500",children:k.trans_id}),a.jsx("td",{className:"px-6 py-4 text-indigo-600",children:k.username}),a.jsxs("td",{className:"px-6 py-4 text-emerald-600 font-medium",children:[Math.floor(k.pay).toLocaleStr
72ing(),"Ä"]}),a.jsx("td",{className:"px-6 py-4 font-mono text-slate-400 text-[10px]",children:_e(k.create_date)}),a.jsx("td",{className:"px-6 py-4 font-mono text-emerald-600 text-[10px]",children:_e(k.update_date)}),a.jsx("td",{className:"px-6 py-4 text-right",children:k.status===0?a.jsxs("div",{className:"flex justify-end gap-2",children:[a.jsx("button",{onClick:()=>Ce(k.id,1,k.trans_id),className:"px-4 py-2 bg-emerald-600 text-white text-[10px] font-bold uppercase tracking-wider rounded-lg hover:bg-emerald-700 transition-all shadow-md active:scale-95",children:"Duyá»t"}),a.jsx("button",{onClick:()=>Ce(k.id,2,k.trans_id),className:"px-4 py-2 bg-rose-600 text-white text-[10px] font-bold uppercase tracking-wider rounded-lg hover:bg-rose-700 transition-all shadow-md active:scale-95",children:"Há»§y bá»"})]}):a.jsx("span",{className:k.status===1?"text-emerald-600 text-[10px] font-medium bg-emerald-50 px-2 py-1 rounded":"text-slate-400 text-[10px] font-medium bg-red-200 px-2 py-1 rounded",children:k.status===1?"Äã thanh toán":"Äã há»§y bá»"})})]},k.id))})]}),a.jsx(pt,{current:ue,total:ye,limit:Y,onPageChange:we,onLimitChange:P})]}),d==="accounts"&&a.jsxs("div",{className:"flex flex-col",children:[a.jsx("div",{className:"overflow-x-auto",children:a.jsxs("table",{className:"w-full text-left",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-500 uppercase text-[10px] font-medium border-b border-slate-100",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-6 py-5",children:"IP Address"}),a.jsx("th",{className:"px-6 py-5",children:"Khu vá»±c / ID"}),a.jsx("th",{className:"px-6 py-5",children:"Tên Client"}),a.jsx("th",{className:"px-6 py-5 text-center",children:"Live Status"}),a.jsx("th",{className:"px-6 py-5 text-center",children:"Sá» lần dùng"}),a.jsx("th",{className:"px-6 py-5 text-right",children:"Xóa"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px] font-bold",children:qe.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"p-20 text-center text-slate-400 font-bold uppercase text-[10px]",children:"Không tìm thấy IP nà o khá»p bá» lá»c"})}):qe.map(k=>a.jsxs("tr",{className:"even:bg-slate-50/50 group",children:[a.jsx("td",{className:"px-6 py-4",children:a.jsxs("p",{className:"font-mono text-slate-900 tracking-widest flex items-center gap-2",children:[a.jsx(wa,{size:14,className:k.time_live===1?"text-emerald-500":"text-slate-300"}),k.diachi_ip]})}),a.jsxs("td",{className:"px-6 py-4",children:[a.jsx("p",{className:"text-indigo-600 uppercase font-medium",children:k.name_location||"N/A"}),a.jsxs("p",{className:"text-[9px] text-slate-400 font-bold mt-1",children:["LOCATION ID: ",k.location]})]}),a.jsx("td",{className:"px-6 py-4 text-slate-600",children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Qo,{size:14,className:"text-slate-400"}),k.ten_client||"-"]})}),a.jsx("td",{className:"px-6 py-4 text-center",children:k.time_live===1?a.jsx("span",{className:"text-emerald-600 font-medium px-3 py-1 bg-emerald-50 rounded-full border border-emerald-100 text-[9px] tracking-widest",children:"ONLINE"}):a.jsx("span",{className:"text-rose-600 font-medium px-3 py-1 bg-rose-50 rounded-full border border-rose-100 text-[9px] tracking-widest",children:"OFFLINE"})}),a.jsx("td",{className:"px-6 py-4 text-center font-mono text-slate-500",children:k.solansudung||0}),a.jsx("td",{className:"px-6 py-4 text-right",children:a.jsx("button",{onClick:()=>Zt(k.id),className:"p-2 text-rose-600 hover:bg-rose-50 rounded-lg transition-all",children:a.jsx(_l,{size:14})})})]},k.id))})]})}),a.jsx(pt,{current:it,total:zt,limit:te,onPageChange:Rt,onLimitChange:ct})]}),d==="cashflow"&&a.jsx("div",{className:"flex flex-col",children:a.jsxs("table",{className:"w-full text-left",children:[a.jsx("thead",{className:"bg-slate-50 text-slate-500 uppercase text-[10px] font-medium border-b border-slate-100",children:a.jsxs("tr",{children:[a.jsx("th",{className:"px-6 py-5",children:"ID"}),a.jsx("th",{className:"px-6 py-5",children:"Username"}),a.jsx("th",{className:"px-6 py-5",children:"Thay Äá»i"}),a.jsx("th",{className:"px-6 py-5",children:"Sá» dư sau"}),a.jsx("th",{className:"px-6 py-5",children:"Ná»i dung"}),a.jsx("th",{className:"px-6 py-5",children:"Thá»i gian"})]})}),a.jsx("tbody",{className:"divide-y divide-slate-100 text-[11px] font-bold",children:ft.length===0?a.jsx("tr",{children:a.jsx("td",{colSpan:6,className:"p-20 text-center text-slate-400 font-bold uppercase text-[10px]",children:"Không tìm thấy giao dá»ch nà o khá»p"})}):ft.map((k,Ae)=>a.jsxs("tr",{className:"even:bg-slate-50/50",children:[a.jsx("td",{className:"px-6 py-4 font-mono text-slate-400",children:k.id}),a.jsx("td",{className:"px-6 py-4 text-indigo-600 ",children:k.username}),a.jsxs("td",{className:`px-6 py-4 font-mono ${k.sotienthaydoi>0?"text-emerald-600":"text-rose-600"}`,children:[k.sotienthaydoi>
720?"+":"",Math.floor(k.sotienthaydoi).toLocaleString(),"Ä"]}),a.jsxs("td",{className:"px-6 py-4 font-mono text-slate-400",children:[Math.floor(k.sotiensau).toLocaleString(),"Ä"]}),a.jsx("td",{className:"px-6 py-4 text-slate-500 font-medium",children:k.noidung}),a.jsx("td",{className:"px-6 py-4 font-mono text-slate-400 text-[10px]",children:_e(k.thoigian)})]},Ae))})]})})]})})]})}),de&&a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[1000] flex items-center justify-center p-6",children:a.jsxs("div",{className:"bg-white border border-slate-200 rounded-2xl w-full max-w-5xl max-h-[90vh] flex flex-col shadow-2xl animate-in zoom-in-95 overflow-hidden",children:[a.jsxs("div",{className:"p-8 border-b border-slate-100 flex justify-between items-center bg-slate-50/50",children:[a.jsxs("div",{className:"flex items-center gap-5",children:[a.jsx("div",{className:"w-12 h-12 bg-indigo-600 text-white rounded-xl flex items-center justify-center shadow-lg shadow-indigo-100",children:a.jsx(zx,{size:24})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-2xl font-medium text-slate-900 uppercase tracking-tighter leading-none",children:de.username}),a.jsx("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mt-2",children:"Dòng dữ liá»u há» thá»ng"})]})]}),a.jsx("button",{onClick:()=>ve(null),className:"p-2 bg-white border border-slate-200 rounded-lg text-slate-400 hover:text-rose-600 transition-all shadow-sm",children:a.jsx(ea,{size:24})})]}),a.jsxs("div",{className:"flex bg-slate-100 p-2 gap-2 border-b border-slate-200",children:[a.jsxs("button",{onClick:()=>la("cashflow"),className:`flex-1 py-4 rounded-xl font-medium text-[10px] uppercase tracking-widest transition-all flex items-center justify-center gap-3 ${ha==="cashflow"?"bg-indigo-600 text-white shadow-lg shadow-indigo-100":"text-slate-500 hover:bg-white"}`,children:[a.jsx(cs,{size:16})," Lá»ch sá» dòng tiá»n"]}),a.jsxs("button",{onClick:()=>la("logs"),className:`flex-1 py-4 rounded-xl font-medium text-[10px] uppercase tracking-widest transition-all flex items-center justify-center gap-3 ${ha==="logs"?"bg-indigo-600 text-white shadow-lg shadow-indigo-100":"text-slate-500 hover:bg-white"}`,children:[a.jsx(ns,{size:16})," Nháºt ký Log"]})]}),a.jsx("div",{className:"flex-1 overflow-y-auto p-6 bg-white custom-scrollbar min-h-[400px]",children:Qa?a.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 text-slate-300",children:[a.jsx(Xt,{className:"animate-spin"}),a.jsx("p",{className:"text-[10px] font-medium uppercase tracking-widest",children:"Streaming..."})]}):a.jsx("div",{className:"animate-in fade-in duration-300",children:ha==="cashflow"?a.jsx("div",{className:"space-y-3",children:Ee.length===0?a.jsx("p",{className:"text-center py-20 text-slate-300 font-bold uppercase text-[10px]",children:"Dữ liá»u trá»ng"}):Ee.map((k,Ae)=>a.jsxs("div",{className:"bg-slate-50 border border-slate-200 p-5 rounded-2xl flex justify-between items-center group hover:border-indigo-500/30 transition-all shadow-sm",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${k.sotienthaydoi>0?"bg-emerald-100 text-emerald-600":"bg-rose-100 text-rose-600"}`,children:a.jsx(Ph,{size:18})}),a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-bold text-slate-800",children:k.noidung}),a.jsxs("div",{className:"flex items-center gap-2 mt-1 text-[9px] text-slate-400 font-bold uppercase tracking-tighter",children:[a.jsx(Sa,{size:10})," ",_e(k.thoigian)]})]})]}),a.jsxs("div",{className:"text-right",children:[a.jsxs("p",{className:`text-sm font-medium font-mono ${k.sotienthaydoi>0?"text-emerald-600":"text-rose-600"}`,children:[k.sotienthaydoi>0?"+":"",Math.floor(k.sotienthaydoi).toLocaleString(),"Ä"]}),a.jsxs("p",{className:"text-[9px] text-slate-500 font-bold",children:["Dư: ",Math.floor(k.sotiensau).toLocaleString(),"Ä"]})]})]},Ae))}):a.jsx("div",{className:"space-y-2",children:mt.length===0?a.jsx("p",{className:"text-center py-20 text-slate-300 font-bold uppercase text-[10px]",children:"Dữ liá»u trá»ng"}):mt.map((k,Ae)=>a.jsxs("div",{className:"flex items-center gap-4 p-4 border-b border-slate-100 last:border-0 hover:bg-slate-50 rounded-lg",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-indigo-600"}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"text-xs text-slate-700 font-bold",children:k.action}),a.jsxs("div",{className:"flex items-center gap-4 mt-1 text-[9px] text-slate-400 font-bold uppercase",children:[a.jsxs("span",{className:"flex items-center gap-1",children:[a.jsx(Sa,{size:10})," ",_e(k.createdate)]}),a.jsxs("span",{children:["IP: ",k.ip||"Há» THá»NG"]})]})]})]},Ae))})})})]})}),F&&a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[1000] flex items-center justify-center p-6",children:a.jsxs("div",{className:"bg-white border border-slate-200 rounded-3xl w-full max-w-2xl p-10 shadow-2xl animate-in zoom-in-95 overflow-hidden",children:[a.jsxs("div",{className:"flex justify-between items-center mb-10 border-b border-slate-100 pb-6",children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:"w-12 h-12 bg-indigo-600 rounded-xl flex items-center justify-center text-white shadow-lg shadow-indigo-100",children:a.jsx(Fh,{size:24})}),a.jsxs("div",{children:[a.jsx("h3",{className:"text-2xl font-medium text-slate-900 uppercase tracking-tighter leading-none",children:F.username}),a.jsxs("p",{className:"text-[10px] font-bold text-slate-400 uppercase tracking-widest mt-2",children:["Mã ID: #",F.id]})]})]}),a.jsx("button",{onClick:()=>W(null),className:"p-2 text-slate-400 hover:text-rose-600 transition-colors bg-slate-50 rounded-full",children:a.jsx(ea,{size:28})})]}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10 mb-10",children:[a.jsxs("div",{className:"space-y-6",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-[10px] font-medium text-slate-400 uppercase tracking-widest ml-1",children:[a.jsx(zl,{size:12,className:"inline mr-2"})," Email chÃnh thức"]}),a.jsx("input",{type:"email",value:Vt,onChange:k=>yt(k.target.value),className:"w-full px-5 py-4 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 font-bold outline-none focus:border-indigo-600 focus:bg-white focus:ring-2 focus:ring-indigo-600/10 transition-all"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-[10px] font-medium text-slate-400 uppercase tracking-widest ml-1",children:[a.jsx(Ml,{size:12,className:"inline mr-2"})," Thiết láºp máºt khẩu má»i"]}
72),a.jsx("input",{type:"password",value:B,onChange:k=>le(k.target.value),className:"w-full px-5 py-4 bg-slate-50 border border-slate-200 rounded-xl text-slate-800 outline-none focus:border-indigo-600 focus:bg-white focus:ring-2 focus:ring-indigo-600/10 transition-all font-bold",placeholder:"NHẬP Äá» THAY Äá»I..."})]})]}),a.jsxs("div",{className:"space-y-6 bg-slate-50 p-6 rounded-2xl border border-slate-200 shadow-inner",children:[a.jsxs("div",{className:"flex justify-between items-center mb-4",children:[a.jsx("span",{className:"text-[10px] font-medium text-slate-400 uppercase",children:"Và hiá»n có"}),a.jsxs("span",{className:"text-xl font-mono font-medium text-emerald-600",children:[Math.floor(F.money).toLocaleString(),"Ä"]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-[10px] font-medium text-emerald-600 uppercase tracking-widest ml-1 flex items-center gap-2",children:[a.jsx(Hp,{size:14})," Cá»ng sá» dư (+)"]}),a.jsx("input",{type:"number",min:"0",value:Re,onChange:k=>{De(k.target.value),k.target.value!==""&&kt("")},className:"w-full px-5 py-4 bg-white border border-emerald-200 rounded-xl text-emerald-600 font-medium text-2xl outline-none focus:border-emerald-500 focus:ring-4 focus:ring-emerald-500/10 transition-all",placeholder:"0"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-[10px] font-medium text-rose-600 uppercase tracking-widest ml-1 flex items-center gap-2",children:[a.jsx(Op,{size:14})," Trừ sá» dư (-)"]}),a.jsx("input",{type:"number",min:"0",value:Je,onChange:k=>{kt(k.target.value),k.target.value!==""&&De("")},className:"w-full px-5 py-4 bg-white border border-rose-200 rounded-xl text-rose-600 font-medium text-2xl outline-none focus:border-rose-500 focus:ring-4 focus:ring-rose-500/10 transition-all",placeholder:"0"})]})]})]}),a.jsxs("div",{className:"flex gap-4",children:[a.jsx("button",{onClick:()=>W(null),className:"flex-1 py-4 bg-slate-100 text-slate-500 hover:bg-slate-200 hover:text-slate-700 rounded-xl font-medium text-[10px] uppercase tracking-widest transition-all",children:"Äóng"}),a.jsxs("button",{onClick:Te,className:"flex-[2] py-4 bg-indigo-600 text-white rounded-xl font-medium text-[10px] uppercase tracking-[0.3em] shadow-xl shadow-indigo-200 hover:bg-indigo-700 transition-all flex items-center justify-center gap-3",children:[a.jsx(ad,{size:18})," Lưu dữ liá»u"]})]})]})})]})},Jb=({onLoginSuccess:r})=>{const[x,g]=h.useState("LOGIN"),[d,N]=h.useState(!1),[S,T]=h.useState(""),[H,D]=h.useState(""),[j,Q]=h.useState(""),[A,J]=h.useState(""),[xe,me]=h.useState(""),[I,Se]=h.useState(""),[ae,he]=h.useState(""),[Me,Xe]=h.useState(!1),[$e,ne]=h.useState(!1),re=h.useRef(null),Ke=()=>{T(""),D(""),Q(""),J(""),me(""),Se(""),he(""),Xe(!1),ne(!1)},Le=je=>{Ke(),g(je)},tt=()=>{if(re.current){const{scrollTop:je,scrollHeight:Be,clientHeight:St}=re.current;je+St>=Be-5&&Xe(!0)}},Ze=async je=>{je.preventDefault(),T(""),D(""),N(!0);try{if(x==="LOGIN"){const Be=await He.auth.login({username:j,password:A});r(Be.user,Be.token)}else if(x==="REGISTER"){if(!$e){T("Bạn cần Äá»ng ý vá»i Äiá»u khoản sá» dụng"),N(!1);return}await He.auth.register({username:j,password:A,email:I,fullname:xe,phone:ae}),D("ÄÄng ký thà nh công! Vui lòng ÄÄng nháºp."),setTimeout(()=>Le("LOGIN"),1500)}else x==="FORGOT"&&(await He.auth.forgotPassword(I),D("Äã gá»i yêu cầu khôi phục máºt khẩu và o email"))}catch(Be){T(Be.message||"Äã có lá»i xảy ra.")}finally{N(!1)}};return a.jsx("div",{className:"min-h-screen bg-transparent flex items-center justify-center p-4 relative overflow-hidden font-['Plus_Jakarta_Sans']",children:a.jsxs("div",{className:"bg-white/70 backdrop-blur-2xl w-full max-w-md rounded-2xl shadow-sm overflow-hidden border border-white/60 relative z-10 animate-in zoom-in duration-300",children:[a.jsx("div",{className:"p-8 pb-6 text-center"}),a.jsxs("div",{className:"px-8 pb-8",children:[a.jsxs("h2",{className:"text-xl font-semibold text-slate-800 mb-8 flex items-center gap-2 justify-center tracking-tight",children:[x==="LOGIN"&&"Chà o mừng trá» lại",x==="REGISTER"&&"Tạo tà i khoản má»i",x==="FORGOT"&&"Khôi phục máºt khẩu"]}),S&&a.jsxs("div",{className:"mb-6 p-4 bg-rose-50 text-rose-600 text-xs font-medium rounded-xl border border-rose-100 flex items-center gap-3 animate-in slide-in-from-top-2",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-rose-500 animate-ping"})," ",S]}),H&&a.jsxs("div",{className:"mb-6 p-4 bg-emerald-50 text-emerald-600 text-xs font-medium rounded-xl border border-emerald-100 flex items-center gap-3 animate-in slide-in-from-top-2",children:[a.jsx(bx,{size:16})," ",H]}),a.jsxs("form",{onSubmit:Ze,className:"space-y-5",children:[x==="LOGIN"&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"group",children:a.jsxs("div",{className:"relative",children:[a.jsx(zx,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-violet-600 transition-colors"}),a.jsx("input",{type:"text",required:!0,value:j,onChange:je=>Q(je.target.value),className:"w-full pl-12 pr-4 py-3.5 bg-white/50 border border-white/80 rounded-xl focus:ring-2 focus:ring-violet-500 focus:bg-white outline-none font-medium text-slate-700 transition-all text-sm shadow-sm",placeholder:"Tên ÄÄng nháºp / Email"})]})}),a.jsxs("div",{className:"group",children:[a.jsxs("div",{className:"relative",children:[a.jsx(Ml,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-violet-600 transition-colors"}),a.jsx("input",{type:"password",required:!0,value:A,onChange:je=>J(je.target.value),className:"w-full pl-12 pr-4 py-3.5 bg-white/50 border border-white/80 rounded-xl focus:ring-2 focus:ring-violet-500 focus:bg-white outline-none font-medium text-slate-700 transition-all text-sm shadow-sm",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsx("div",{className:"flex justify-end mt-3",children:a.jsx("button",{type:"button",onClick:()=>Le("FORGOT"),className:"text-xs font-medium text-violet-500 hover:text-violet-700",children:"Quên máºt khẩu?"})})]})]}),x==="REGISTER"&&a.jsx(a.Fragment,{children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"group",children:[a.jsx("label",{className:"text-xs font-medium text-slate-500 mb-2 block ml-1",children:"Tên tà i khoản *"}),a.jsx("input",{type:"text",required:!0,value:j,onChange:je=>Q(je.target.value),className:"w-full px-4 py-3.5 bg-white/50 border border-white/80 rounded-xl focus:ring-2 focus:ring-violet-500 outline-none text-sm font-medium text-slate-700 shadow-sm",placeholder:"Sá» Äiá»n thoại: 091....."})]}),a.jsxs("div",{className:"group",children:[a.jsx("label",{className:"text-xs font-medium text-slate-500 mb-2 block ml-1",children:"Email *"}
72),a.jsx("input",{type:"email",required:!0,value:I,onChange:je=>Se(je.target.value),className:"w-full px-4 py-3.5 bg-white/50 border border-white/80 rounded-xl focus:ring-2 focus:ring-violet-500 outline-none text-sm font-medium text-slate-700 shadow-sm",placeholder:"[email protected]"})]}),a.jsxs("div",{className:"group",children:[a.jsx("label",{className:"text-xs font-medium text-slate-500 mb-2 block ml-1",children:"Máºt khẩu *"}),a.jsx("input",{type:"password",required:!0,value:A,onChange:je=>J(je.target.value),className:"w-full px-4 py-3.5 bg-white/50 border border-white/80 rounded-xl focus:ring-2 focus:ring-violet-500 outline-none text-sm font-medium text-slate-700 shadow-sm",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),a.jsxs("div",{className:"mt-4 space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-2 text-xs font-bold text-slate-400 uppercase tracking-widest ml-1",children:[a.jsx(Gg,{size:14,className:"text-violet-500"})," Äiá»u khoản sá» dụng"]}),a.jsxs("div",{ref:re,onScroll:tt,className:"h-32 overflow-y-auto p-4 bg-slate-50/80 border border-slate-200 rounded-xl text-[11px] text-slate-500 leading-relaxed custom-scrollbar font-medium",children:[a.jsx("p",{className:"text-violet-600 font-bold",children:"Vui lòng cuá»n xuá»ng dưá»i cùng Äá» xác nháºn."}),a.jsx("p",{className:"font-bold text-slate-700 mb-2",children:"QUY Äá»NH SỬ DỤNG HẠTẦNG FPROXY"}),a.jsx("p",{className:"mb-2",children:"1. Fproxy cung cấp hạ tầng proxy kỹ thuáºt. Khách hà ng chá»u trách nhiá»m hoà n toà n vá» mục ÄÃch sá» dụng."}),a.jsx("p",{className:"mb-2",children:"2. NGHIÃM CẤM các hà nh vi: Tấn công DDoS, Spam thư rác, Truy cáºp trái phép há» thá»ng mạng quá»c gia."}),a.jsx("p",{className:"mb-2",children:"3. Chúng tôi có quyá»n chấm dứt dá»ch vụ ngay láºp tức nếu phát hiá»n lạm dụng mà không cần báo trưá»c."}),a.jsx("p",{className:"mb-2",children:"4. Há» thá»ng lưu trữ Log kỹ thuáºt Äá» phục vụ công tác an ninh mạng khi có yêu cầu từ cÆ¡ quan chức nÄng."}),a.jsx("p",{className:"mb-2",children:"5. Khách hà ng cam kết không sá» dụng proxy Äá» vi phạm bản quyá»n hoặc tà i sản sá» cá»§a bên thứ ba."})]}),a.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-xl border transition-all cursor-pointer ${$e?"bg-violet-50 border-violet-200":"bg-white border-slate-100 opacity-60"}`,children:[a.jsx("input",{type:"checkbox",disabled:!Me,checked:$e,onChange:je=>ne(je.target.checked),className:"w-4 h-4 rounded border-slate-300 text-violet-600 focus:ring-violet-500 disabled:opacity-50"}),a.jsx("span",{className:`text-[11px] font-bold ${Me?"text-slate-600":"text-slate-400"}`,children:Me?"Tôi Äã Äá»c và Äá»ng ý vá»i Äiá»u khoản":"Vui lòng Äá»c hết Äiá»u khoản"}),Me&&!$e&&a.jsx("div",{className:"ml-auto w-1.5 h-1.5 rounded-full bg-violet-500 animate-pulse"})]})]})]})}),x==="FORGOT"&&a.jsxs("div",{className:"group",children:[a.jsx("label",{className:"text-xs font-medium text-slate-500 mb-2 block ml-1",children:"Email khôi phục"}),a.jsxs("div",{className:"relative",children:[a.jsx(xn,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-violet-600 transition-colors"}),a.jsx("input",{type:"email",required:!0,value:I,onChange:je=>Se(je.target.value),className:"w-full pl-12 pr-4 py-3.5 bg-white/50 border border-white/80 rounded-xl focus:ring-2 focus:ring-violet-500 focus:bg-white outline-none font-medium text-slate-700 transition-all text-sm shadow-sm",placeholder:"Nháºp email cá»§a bạn"})]})]}),(x!=="REGISTER"||$e)&&a.jsx("button",{type:"submit",disabled:d,className:"w-full py-3.5 bg-slate-900 hover:bg-slate-800 text-white font-medium rounded-xl shadow-sm transition-all active:scale-95 flex justify-center items-center gap-2 mt-4 text-sm",children:d?a.jsx("div",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsxs(a.Fragment,{children:[x==="LOGIN"&&"ÄÄng nháºp ngay",x==="REGISTER"&&"ÄÄng ký ngay",x==="FORGOT"&&"Gá»i yêu cầu khôi phục",a.jsx(rs,{size:18})]})})]})]}),a.jsxs("div",{className:"bg-slate-50/30 p-8 text-center border-t border-white/60 backdrop-blur-md",children:[x==="LOGIN"&&a.jsxs("p",{className:"text-sm font-medium text-slate-500",children:["Chưa có tà i khoản? ",a.jsx("button",{onClick:()=>Le("REGISTER"),className:"text-violet-600 font-semibold hover:underline ml-1 transition-all",children:"ÄÄng ký ngay"})]}),x==="REGISTER"&&a.jsxs("p",{className:"text-sm font-medium text-slate-500",children:["Äã có tà i khoản? ",a.jsx("button",{onClick:()=>Le("LOGIN"),className:"text-violet-600 font-semibold hover:underline ml-1 transition-all",children:"ÄÄng nháºp"})]}),x==="FORGOT"&&a.jsxs("button",{onClick:()=>Le("LOGIN"),className:"flex items-center justify-center gap-2 mx-auto text-sm font-medium text-slate-400 hover:text-slate-900 transition-colors",children:[a.jsx(Tc,{size:16})," Quay lại ÄÄng nháºp"]})]})]})})},Pb=({token:r})=>{const[x,g]=h.useState(""),[d,N]=h.useState(""),[S,T]=h.useState(!1),[H,D]=h.useState(""),[j,Q]=h.useState(""),A=async J=>{if(J.preventDefault(),D(""),Q(""),x!==d){D("Máºt khẩu xác nháºn không khá»p");return}T(!0);try{const xe=await He.auth.resetPassword({token:r,newpassword:x,confirmpassword:d});Q(xe.message||"Äặt máºt khẩu thà nh công!"),setTimeout(()=>{window.location.href="/"},2e3)}catch(xe){D(xe.message||"Lá»i khi Äặt lại máºt khẩu")}finally{T(!1)}};return a.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-indigo-100 via-purple-50 to-emerald-50 flex items-center justify-center p-4",children:[a.jsx("div",{className:"fixed top-10 left-10 w-64 h-64 bg-purple-300 rounded-full mix-blend-multiply filter blur-3xl op
72acity-30 animate-pulse"}),a.jsx("div",{className:"fixed bottom-10 right-10 w-64 h-64 bg-emerald-300 rounded-full mix-blend-multiply filter blur-3xl opacity-30 animate-pulse delay-1000"}),a.jsx("div",{className:"bg-white/80 backdrop-blur-xl w-full max-w-md rounded-[20px] shadow-2xl overflow-hidden border border-white relative z-10 animate-in zoom-in duration-300",children:a.jsxs("div",{className:"p-8",children:[a.jsx("h2",{className:"text-xl font-bold text-slate-800 mb-6 flex items-center gap-2 justify-center",children:"Äặt Lại Máºt Khẩu"}),H&&a.jsxs("div",{className:"mb-4 p-3 bg-rose-50 text-rose-600 text-sm font-bold rounded-xl border border-rose-100 flex items-center gap-2 animate-fade-in",children:[a.jsx(Ka,{size:16})," ",H]}),j&&a.jsxs("div",{className:"mb-4 p-3 bg-emerald-50 text-emerald-600 text-sm font-bold rounded-xl border border-emerald-100 flex items-center gap-2 animate-fade-in",children:[a.jsx(rt,{size:16})," ",j]}),a.jsxs("form",{onSubmit:A,className:"space-y-4",children:[a.jsxs("div",{className:"group",children:[a.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-1 block",children:"Máºt khẩu má»i"}),a.jsxs("div",{className:"relative",children:[a.jsx(Ml,{size:18,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-indigo-600 transition-colors"}),a.jsx("input",{type:"password",required:!0,value:x,onChange:J=>g(J.target.value),className:"w-full pl-10 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-indigo-500 focus:bg-white outline-none font-nomal text-slate-700 transition-all text-sm",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]})]}),a.jsxs("div",{className:"group",children:[a.jsx("label",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider mb-1 block",children:"Xác nháºn máºt khẩu"}),a.jsxs("div",{className:"relative",children:[a.jsx(Ml,{size:18,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-indigo-600 transition-colors"}),a.jsx("input",{type:"password",required:!0,value:d,onChange:J=>N(J.target.value),className:"w-full pl-10 pr-4 py-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-indigo-500 focus:bg-white outline-none font-nomal text-slate-700 transition-all text-sm",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]})]}),a.jsx("button",{type:"submit",disabled:S,className:"w-full py-3.5 bg-blue-600 hover:bg-blue-700 text-white font-nomal rounded-xl shadow-lg shadow-blue-200 transition-all active:scale-95 flex justify-center items-center gap-2 mt-4",children:S?a.jsx("span",{className:"w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"}):a.jsxs(a.Fragment,{children:["Xác nháºn",a.jsx(rs,{size:18})]})})]})]})})]})},Ib=({toast:r,onClose:x})=>{h.useEffect(()=>{const N=setTimeout(()=>{x(r.id)},3e3);return()=>clearTimeout(N)},[r,x]);const g=()=>{switch(r.type){case"success":return a.jsx(rt,{size:20,className:"text-white"});case"error":return a.jsx(rl,{size:20,className:"text-white"});case"warning":return a.jsx(Ka,{size:20,className:"text-white"})}},d=()=>{switch(r.type){case"success":return"bg-emerald-600 border-emerald-500 shadow-emerald-200";case"error":return"bg-rose-600 border-rose-500 shadow-rose-200";case"warning":return"bg-amber-500 border-amber-400 shadow-amber-200"}};return a.jsxs("div",{className:`flex items-start gap-3 p-4 rounded-2xl border shadow-2xl w-80 animate-in fade-in slide-in-from-right-4 duration-300 ${d()}`,children:[a.jsx("div",{className:"flex-shrink-0 mt-0.5",children:g()}),a.jsxs("div",{className:"flex-1",children:[a.jsx("p",{className:"text-[10px] tracking-widest text-white/80",children:r.type==="success"?"Thà nh công":r.type==="error"?"Thất bại":"Thông báo"}),a.jsx("p",{className:"text-sm text-white mt-0.5 leading-relaxed",children:r.message})]}),a.jsx("button",{onClick:()=>x(r.id),className:"text-white/60 hover:text-white transition-colors p-1 hover:bg-white/10 rounded-lg",children:a.jsx(ea,{size:16})})]})},oi=({toasts:r,removeToast:x,position:g="right-top"})=>{const d=()=>g==="center-top"?"top-6 left-1/2 -translate-x-1/2":"top-6 right-6";return a.jsx("div",{className:`fixed z-[3000] flex flex-col gap-3 pointer-events-none transition-all duration-500 ${d()}`,children:a.jsx("div",{className:"pointer-events-auto space-y-3",children:r.map(N=>a.jsx("div",{className:`animate-in fade-in transition-all duration-300 ${g==="center-top"?"slide-in-from-top-4":"slide-in-from-right-4"}`,children:a.jsx(Ib,{toast:N,onClose:x})},N.id))})})},hn=({alerts:r,onDismiss:x,position:g,duration:d})=>{if(r.length===0)return null;h.useEffect(()=>{if(d>0&&r.length>0){const S=r[r.length-1],T=setTimeout(()=>{x(S.khuvuc,S.timestamp)},d*1e3);return()=>clearTimeout(T)}},[r,d,x]);const N=()=>g==="center-top"?"top-6 left-1/2 -translate-x-1/2":"top-6 right-6";return a.jsx("div",{className:`fixed z-[9999] flex flex-col gap-2 pointer-events-none transition-all duration-500 ${N()}`,children:r.map(S=>a.jsxs("div",{className:`pointer-events-auto bg-red-600 p-3.5 shadow-2xl rounded-xl flex items-center gap-3 min-w-[240px] max-w-[340px] animate-in fade-in transition-all duration-300 ring-1 ring-white/10 ${g==="center-top"?"slide-in-from-top-4":"slide-in-from-right-4"}`,children:[a.jsx("div",{className:"flex-shrink-0 w-9 h-9 bg-white/20 text-white rounded-full flex items-center justify-center",children:a.jsx(Ka,{size:18})}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsxs("p",{className:"text-[12px] font-bold text-white truncate tracking-wide",children:["Khu vá»±c: ",S.khuvuc," mất Äiá»n"]}),a.jsx("p",{className:"text-[10px] text-red-100 font-medium opacity-80",children:new Date(S.timestamp).toLocaleTimeString("vi-VN")}),a.jsx("p",{className:"text-[9px] text-red-100 font-medium opacity-80",children:"Có thá» tùy chá»nh time Äóng thông báo"})]}),a.jsx("button",{onClick:()=>x(S.khuvuc,S.timestamp),className:"p-1.5 hover:bg-white/20 text-white/70 hover:text-white rounded-lg transition-all active:scale-90",title:"Äã hiá»u",children:a.jsx(ea,{size:16})})]},`${S.khuvuc}-${S.timestamp}`))})},Fb=()=>{const[r,x]=h.useState(null),[g,d]=h.useState(!0),[N,S]=h.useState(null),[T,H]=h.useState(()=>{if(!localStorage.getItem("proxy_user"))return"landing";const le=localStorage.getItem("current_view");return le&&["dashboard","list","software","api-docs","solutions","pricing","compliance-legal","get-started","admin","wallet"].includes(le)?le:"dashboard"});h.useEffect(()=>(window.navToSolutions=()=>H("solutions"),window.navToPricing=()=>
72H("pricing"),window.navToCompliance=()=>H("compliance-legal"),window.navToServicePolicy=()=>H("service-policy"),window.navToPrivacyPolicy=()=>H("privacy-policy"),()=>{delete window.navToSolutions,delete window.navToPricing,delete window.navToCompliance}),[]);const[D,j]=h.useState(()=>{const B=localStorage.getItem("ui_theme");return B==="modern"||B==="classic"?B:"modern"}),[Q,A]=h.useState(()=>{const B=localStorage.getItem("toast_settings");if(B)try{const le=JSON.parse(B);return{position:le.position||"center-top",alertDuration:le.alertDuration??10,showPowerAlerts:le.showPowerAlerts??!0}}catch{}return{position:"center-top",alertDuration:10,showPowerAlerts:!0}}),J=B=>{A(le=>{const de={...le,...B};return localStorage.setItem("toast_settings",JSON.stringify(de)),de})},[xe,me]=h.useState([]),[I,Se]=h.useState([]),[ae,he]=h.useState(!1),[Me,Xe]=h.useState(!1),[$e,ne]=h.useState(!1),[re,Ke]=h.useState(!0),[Le,tt]=h.useState([]),[Ze,je]=h.useState(!1),[Be,St]=h.useState(!1),oe=D==="classic",v=oe?"bg-white text-gray-800 border-r border-gray-200 shadow-none rounded-none":"glass-panel border-white/60 text-slate-800 shadow-md rounded-xl",G=oe?"bg-white border-b border-gray-300 shadow-none rounded-none":"glass-panel border-white/60 text-slate-800 shadow-sm rounded-xl",ce=oe?"text-gray-600 hover:bg-gray-100 hover:text-gray-900 rounded-none border-l-4 border-transparent hover:border-blue-500":"text-slate-500 hover:bg-slate-100/50 hover:text-slate-900 rounded-lg",pe=oe?"text-gray-500 font-bold":"text-slate-400",ze=oe?"text-gray-500":"text-slate-400",[f,E]=h.useState([]),[U,V]=h.useState([]),[ue,we]=h.useState(()=>{const B=localStorage.getItem("dismissed_region_alerts");return B?JSON.parse(B):[]});h.useEffect(()=>{localStorage.setItem("dismissed_region_alerts",JSON.stringify(ue))},[ue]);const Y=(B,le)=>{const de=`${B}_${le}`;we(ve=>[...ve,de])},P=(B,le)=>{const de=Date.now();E([{id:de,type:B,message:le}])},ye=B=>{E(le=>le.filter(de=>de.id!==B))};h.useEffect(()=>{let B=null;const le=localStorage.getItem("proxy_token");if(r&&le){const ve=window.location.hostname==="localhost"&&window.location.port!=="3001"?"http://localhost:3001":"",mt=()=>{B&&B.close(),B=new EventSource(`${ve}/api/events?token=${le}`),B.onopen=()=>{console.log("SSE Connection established")},B.onmessage=ot=>{try{if(ot.data.startsWith(":"))return;const Ee=JSON.parse(ot.data);if(console.log("Real-time event received:",Ee),Ee.type==="balanceUpdate")qe(),Ee.amount>0&&P("success",`Nạp tiá»n thà nh công! +${Ee.amount.toLocaleString()}Ä.`);else if(Ee.type==="autoBuyData")qe(),P("success",`Há» thá»ng vừa tá»± Äá»ng mua thêm 1GB data cho key ${Ee.apiKey}.`);else if(Ee.type==="autoBuyFailed")qe(),P("error",`Tá»± Äá»ng mua data thất bại: ${Ee.message}`);else if(Ee.type==="forceLogout")P("error",Ee.message||"Phiên ÄÄng nháºp Äã bá» há»§y. Vui lòng ÄÄng nháºp lại."),x(null),tt([]),localStorage.removeItem("proxy_user"),localStorage.removeItem("proxy_token"),localStorage.removeItem("current_view"),H("landing");else if(Ee.type==="regionStatus"){const Et=new Date(Ee.timestamp).toISOString();Ee.status===0?V(ha=>ha.some(la=>la.khuvuc===Ee.khuvuc&&la.timestamp===Et)?ha:[{khuvuc:Ee.khuvuc,timestamp:Et},...ha]):V(ha=>ha.filter(la=>la.khuvuc!==Ee.khuvuc)),window.dispatchEvent(new CustomEvent("regionStatusUpdate",{detail:Ee}))}}catch(Ee){console.warn("SSE Message Error",Ee)}},B.onerror=()=>{B?.close(),setTimeout(mt,5e3)}};mt()}return()=>{B&&B.close()}},[r?.id]),h.useEffect(()=>{r&&localStorage.setItem("current_view",T)},[T,r]),h.useEffect(()=>{(()=>{const de=new URLSearchParams(window.location.search).get("token");if(de){S(de),d(!1);return}const ve=localStorage.getItem("proxy_user");if(ve)try{x(JSON.parse(ve))}catch{localStorage.removeItem("proxy_user"),localStorage.removeItem("proxy_token")}d(!1)})()},[]);const Qe=async()=>{try{await He.auth.logout()}catch(B){console.warn("Server logout failed",B)}x(null),tt([]),localStorage.removeItem("proxy_user"),localStorage.removeItem("proxy_token"),localStorage.removeItem("current_view"),H("landing")},qe=async()=>{if(r){St(!0);try{const B=await Zf(r.id);try{const le=await He.auth.getProfile();le&&(x(de=>({...de,...le})),localStorage.setItem("proxy_user",JSON.stringify({...r,...le})))}catch(le){console.warn("Could not sync user profile",le)}if(Array.isArray(B))tt(B),je(!0);
72else throw new Error("Data invalid")}catch(B){tt([]),je(!1),B.message==="Phiên ÄÄng nháºp hết hạn"?(P("error","Phiên ÄÄng nháºp Äã hết hạn. Vui lòng ÄÄng nháºp lại."),Qe()):P("error","Không thá» kết ná»i Database.")}finally{St(!1)}}};h.useEffect(()=>{r&&qe()},[r?.id]);const Fe=(B,le)=>{x(B),localStorage.setItem("proxy_user",JSON.stringify(B)),localStorage.setItem("proxy_token",le),H("dashboard")},it=B=>{me(B)},Rt=()=>{me([])},te=async(B,le)=>{try{let de=0;for(const ve of B){if(!ve.api_key)continue;const mt=await He.proxy.renewProxy(ve.api_key,le);mt&&(mt.status==="success"||mt.success)&&de++}de>0?(P("success",`Äã gia hạn thà nh công ${de}/${B.length} ÄÆ¡n hà ng.`),qe()):P("error","Gia hạn thất bại.")}catch(de){P("error",de.message||"Lá»i kết ná»i.")}},ct=B=>{Se(B)},zt=()=>{Se([])},Gt=async B=>{try{let le=0;const de=new Set;for(const ve of B)try{await He.proxy.deleteProxy(ve.id),de.add(ve.id),le++}catch{}le>0?(tt(ve=>ve.filter(mt=>!de.has(mt.id))),P("success","Äã xóa thà nh công.")):P("error","Không thá» xóa.")}catch(le){throw P("error",le.message),le}},ft=async(B,le)=>{if(B.api_key)try{await He.proxy.updateLocation(B.api_key,le),tt(de=>de.map(ve=>ve.id===B.id?{...ve,vitri_orders:le.toString()}:ve)),P("success","Cáºp nháºt vá» trÃ")}catch(de){P("error",de.message)}},K=async(B,le,de)=>{try{const ve=await He.proxy.updateSettings(B.id,le,de);tt(mt=>mt.map(ot=>{if(ot.id===B.id){const Ee={...ot,[le]:le==="auto_buy_data"?Number(de):de};return ve.purchaseData?.order?{...Ee,...ve.purchaseData.order}:Ee}return ot})),ve.purchaseData?.money!==void 0&&r?(x({...r,money:ve.purchaseData.money}),localStorage.setItem("proxy_user",JSON.stringify({...r,money:ve.purchaseData.money})),P("success","Äã tá»± Äá»ng mua thêm 1GB Data!"),qe()):P("success","Äã cáºp nháºt")}catch(ve){P("error",ve.message)}},F=async(B,le)=>{if(!B.api_key)return P("error","Thiếu API Key."),!1;try{const de=await He.proxy.getNewIp(B.api_key,le);if(de.success){const ve=de.data;return tt(mt=>mt.map(ot=>ot.id===B.id?{...ot,proxy_orders:ve.ip,port_orders:ve.port,port_sock:ve.portsock,user:ve.user,pass:ve.pass,port_userpass:ve.porthttpuserpass,port_sockuserpass:ve.portsockuserpass,location_hientai:ve.location,vitr
72i_orders:le.toString(),ip_allow_orders:ve.ip_allow,ip_4g:ve.ip_4g}:ot)),P("success",`${ve.ip} (${ve.location})`),!0}else return P("error",de.message||"Lá»i lấy IP."),!1}catch(de){return P("error",de.message),!1}},W=async B=>{P("warning","Äang lấy IP má»i...");let le=0;for(const de of B){const ve=de.vitri_orders?Number(de.vitri_orders):0;await F(de,ve)&&le++}P("success",`Äã lấy ÄÆ°á»£c ${le}/${B.length} IP má»i.`)},Re=async B=>{if(!B.proxy_orders||!B.port_sockuserpass){P("error","Thiếu thông tin.");return}try{const le=await He.proxy.checkLive(B.proxy_orders,B.port_sockuserpass,B.user||"",B.pass||"");le.live==="LIVE"?P("success",`Proxy LIVE: ${le.ip}:${le.port}`):P("error",`Proxy DEAD: ${le.ip}:${le.port}`)}catch{P("error","Lá»i kiá»m tra.")}},De=async()=>{if(r)try{const B=await He.proxy.getUsage();B.success&&B.usage&&tt(le=>le.map(de=>{if(String(de.domain)!=="4"&&de.product_id!==6&&de.product_id!==7)return de;const ve=B.usage.find(mt=>Number(mt.id)===Number(de.id));return ve&&(ve.data!==de.data||ve.today_used_bytes!==de.today_used_bytes)?{...de,data:ve.data,today_used_bytes:ve.today_used_bytes}:de}))}catch(B){console.warn("Usage poll error",B)}};h.useEffect(()=>{let B=null;const le=Le.some(de=>String(de.domain)==="4"||de.product_id===6||de.product_id===7);return r&&le&&(De(),B=setInterval(De,1e4)),()=>{B&&clearInterval(B)}},[r?.id,Le.some(B=>String(B.domain)==="4"||B.product_id===6||B.product_id===7)]);const Je=({view:B,label:le,icon:de,color:ve="text-slate-400"})=>a.jsxs("button",{onClick:()=>{H(B),ne(!1)},className:`relative w-full flex items-center gap-3.5 px-4 py-3 transition-all duration-300 font-medium group overflow-hidden ${T===B?oe?"bg-blue-600 text-white rounded-none":"text-white shadow-sm scale-[1.02]":ce}`,children:[T===B&&!oe&&a.jsx("div",{className:"absolute inset-0 bg-gradient-to-r rounded-lg from-violet-600 to-indigo-600 animate-in fade-in zoom-in duration-300"}),a.jsx(de,{size:20,className:`relative z-10 ${T===B?"text-white":`${oe?ze:ve} ${!oe&&"group-hover:text-slate-600 group-hover:scale-110 transition-transform"}`}`}),a.jsx("span",{className:"relative z-10",children:le}),T===B&&!oe&&a.jsx("div",{className:"absolute right-4 w-2 h-2 rounded-full bg-white animate-ping"})]});if(g)return a.jsx("div",{className:"min-h-screen bg-slate-50 flex items-center justify-center",children:a.jsx("div",{className:"flex flex-col items-center gap-6",children:a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-20 h-20 rounded-2xl bg-gradient-to-tr from-violet-600 to-fuchsia-600 flex items-center justify-center shadow-md animate-pulse",children:a.jsx(wa,{size:40,className:"text-white fill-white"})}),a.jsx("div",{className:"absolute inset-0 rounded-2xl border-2 border-white/20 animate-ping"})]})})});const kt=U.filter(B=>!ue.includes(`${B.khuvuc}_${B.timestamp}`));if(N)return a.jsxs(a.Fragment,{children:[a.jsx(oi,{toasts:f,removeToast:ye,position:Q.position}),Q.showPowerAlerts&&a.jsx(hn,{alerts:kt,onDismiss:Y,position:Q.position,duration:Q.alertDuration}),a.jsx(Pb,{token:N})]});const Vt=["landing","solutions","pricing","compliance-legal","service-policy","privacy-policy","get-started"].includes(T),yt=T==="auth";return!r&&!Vt&&!yt?a.jsxs(a.Fragment,{children:[Q.showPowerAlerts&&a.jsx(hn,{alerts:kt,onDismiss:Y,position:Q.position,duration:Q.alertDuration}),a.jsx(sx,{onStart:()=>H("get-started"),onLogin:()=>H("auth")})]}):yt&&!r?a.jsxs(a.Fragment,{children:[a.jsx(oi,{toasts:f,removeToast:ye,position:Q.position}),Q.showPowerAlerts&&a.jsx(hn,{alerts:kt,onDismiss:Y,position:Q.position,duration:Q.alertDuration}),a.jsx(Jb,{onLoginSuccess:Fe})]}):T==="admin"&&r?.admin===1?a.jsxs(a.Fragment,{children:[a.jsx(oi,{toasts:f,removeToast:ye,position:Q.position}),Q.showPowerAlerts&&a.jsx(hn,{alerts:kt,onDismiss:Y,position:Q.position,duration:Q.alertDuration}),a.jsx(Zb,{user:r,onLogout:Qe,onShowToast:P}),a.jsx("div",{className:"fixed bottom-6 right-6 z-[2000]",children:a.jsxs("button",{onClick:()=>
72H("dashboard"),className:"flex items-center gap-2 px-6 py-3 bg-white text-slate-900 font-bold rounded-xl shadow-2xl border border-slate-200 hover:bg-slate-50 transition-all active:scale-95",children:[a.jsx(Yo,{size:18})," Thoát Admin"]})})]}):Vt?a.jsxs(a.Fragment,{children:[a.jsx(oi,{toasts:f,removeToast:ye,position:Q.position}),Q.showPowerAlerts&&a.jsx(hn,{alerts:kt,onDismiss:Y,position:Q.position,duration:Q.alertDuration}),T==="landing"&&a.jsx(sx,{onStart:()=>H("get-started"),onLogin:()=>H("auth")}),T==="solutions"&&a.jsx(nx,{onBack:()=>H("landing"),onStart:()=>H("get-started")}),T==="pricing"&&a.jsx(ix,{onBack:()=>H("landing"),onStart:()=>H("get-started")}),T==="compliance-legal"&&a.jsx(cx,{onBack:()=>H("landing")}),T==="service-policy"&&a.jsx(rx,{onBack:()=>H("landing")}),T==="privacy-policy"&&a.jsx(ox,{onBack:()=>H("landing")}),T==="get-started"&&a.jsx(dx,{onBack:()=>H("landing"),onSelectPlan:()=>H("auth")})]}):a.jsxs("div",{className:`min-h-screen flex font-sans relative overflow-hidden transition-colors duration-500 ${oe?"bg-gray-50":"bg-transparent"}`,children:[a.jsx(oi,{toasts:f,removeToast:ye,position:Q.position}),Q.showPowerAlerts&&a.jsx(hn,{alerts:kt,onDismiss:Y,position:Q.position,duration:Q.alertDuration}),a.jsxs("aside",{className:`fixed flex flex-col z-[70] transform transition-all duration-500 cubic-bezier(0.34, 1.56, 0.64, 1) ${v} 73 ${oe?"inset-y-4 left-4 m-0 w-72":"inset-y-4 left-4 w-72"} 74 ${$e?"translate-x-0":"-translate-x-[120%]"} 75 ${re?"lg:translate-x-0":"lg:-translate-x-[120%]"}`,children:[a.jsx("div",{className:"px-6 mb-6 mt-4",children:a.jsxs("div",{onClick:()=>H("wallet"),className:`rounded-xl p-5 text-white shadow-md cursor-pointer group hover:scale-[1.01] transition-transform relative overflow-hidden border border-white/10 76 ${oe?"bg-gray-100 border border-gray-300 rounded-sm shadow-none text-gray-800":"bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900"}`,children:[!oe&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-violet-500/20 rounded-full blur-3xl -mr-10 -mt-10 group-hover:bg-violet-500/30 transition-colors"}),a.jsx("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-emerald-500/10 rounded-full blur-2xl -ml-5 -mb-5 group-hover:bg-emerald-500/20 transition-colors"})]}),a.jsxs("div",{className:"relative z-10",children:[a.jsxs("div",{className:"flex justify-between items-start mb-4",children:[a.jsx("div",{className:`p-2 rounded-lg backdrop-blur-md border transition-colors ${oe?"bg-white border-gray-200 text-blue-600":"bg-white/10 border-white/10 group-hover:bg-white/20"}`,children:a.jsx(cs,{size:18})}),a.jsxs("div",{className:"px-2 py-1 rounded-md bg-emerald-500/20 border border-emerald-500/30 text-[10px] font-bold text-emerald-300 flex items-center gap-1.5 backdrop-blur-sm",children:[a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"Active"]})]}),a.jsx("p",{className:`text-xs font-medium mb-1 tracking-wide ${oe?"text-gray-500":"text-slate-400"}`,children:"Sá» dư khả dụng"}),a.jsxs("div",{className:`text-2xl font-black tracking-tight flex items-baseline gap-1 ${oe?"text-gray-900":""}`,children:[r?.money?.toLocaleString("vi-VN")," ",a.jsx("span",{className:`text-sm font-medium ${oe?"text-gray-500":"text-slate-400"}`,children:"VNÄ"})]})]})]})}),a.jsxs("nav",{className:"flex-1 px-5 space-y-2 overflow-y-auto custom-scrollbar",children:[a.jsx("div",{className:`text-[10px] font-bold uppercase tracking-widest px-4 py-2 ${pe}`,children:"Menu"}),a.jsx(Je,{view:"dashboard",label:"Tá»ng quan",icon:Yo}),a.jsxs("button",{onClick:()=>he(!0),className:`relative w-full flex items-center gap-3.5 px-4 py-3 transition-all duration-200 font-medium group overflow-hidden border border-transparent 77 ${oe?"text-gray-600 hover:bg-gray-100 hover:text-gray-900 rounded-none hover:border-l-blue-500 border-l-4 border-transparent":"text-slate-600 hover:bg-violet-50/80 hover:text-violet-700 rounded-lg hover:border-violet-100"}`,children:[!oe&&a.jsx("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity bg-violet-100/50"}),a.jsx(kx,{size:20,className:`relative z-10 ${!oe&&"group-hover:scale-110 transition-transform"} ${oe?"text-gray-500":"text-violet-500"}`}),a.jsx("span",{className:"relative z-10",children:"Mua Proxy Má»i"})]}),a.jsx(Je,{view:"list",label:"Quản lý Proxy",icon:Da}),a.jsx(Je,{view:"wallet",label:"Nạp tiá»n QR",icon:cs,color:"text-emerald-500"}),a.jsx("div",{className:`text-[10px] font-bold uppercase tracking-widest px-4 py-2 mt-4 ${pe}`,children:"Tools & API"}),a.jsx(Je,{view:"software",label:"Phần má»m",icon:Sc}),a.jsx(Je,{view:"api-docs",label:"Tà i liá»u API",icon:Fo}),r?.admin===1&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:`text-[10px] font-bold uppercase tracking-widest px-4 py-2 mt-4 ${pe}`,children:"Administration"}),a.jsx(Je,{view:"admin",label:"Admin Panel",icon:ld})]})]}),a.jsx("div",{className:"p-5 border-t mx-2 border-slate-200/50",children:a.jsxs("button",{onClick:Qe,className:`w-full flex items-center justify-center gap-3 px-4 py-3 font-nomal transition-all 78 ${oe?"text-gray-600 bg-gray-100 hover:bg-red-50 hover:text-red-600 rounded-sm":"text-rose-500 bg-rose-50/50 hover:bg-rose-100 hover:text-rose-700 hover:shadow-sm rounded-lg"}`,children:[a.jsx(Ko,{size:18}),a.jsx("span",{children:"ÄÄng xuất"})]})})]}),a.jsx("div",{className:`flex-1 flex flex-col min-w-0 relative transition-none 79 ${oe?`my-0 mr-2 h-[calc(100vh-1rem)] ${re?"lg:ml-[318px]":"lg:ml-3"}`:`mr-4 my-4 h-[calc(100vh-2rem)] ${re?"lg:ml-80 ml-3":"lg:ml-3"}`}`,children:a.jsxs("main",{className:`flex-1 overflow-y-auto custom-scrollbar relative ${oe?"pr-2 overflow-x-hidden":"pr-2 -mr-2 rounded-xl"}`,children:[a.jsxs("header",{className:`px-6 py-4 mb-3 flex items-center justify-between relative z-[40] mx-0 ${G} ${oe?"mt-4 mb-3 border-b":"mt-0 shadow-sm"}`,children:[a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("button",{onClick:()=>ne(!$e),className:"lg:hidden p-2.5 rounded-lg transition-all active:scale-95 text-slate-600 hover:bg-white hover:text-violet-600",children:a.jsx(gg,{})}),a.jsx("div",{children:a.jsx("h2",{className:"text-xl font-extrabold tracking-tight text-slate-800",children:""})})]}),a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{className:"hidden sm:flex items-center gap-2 bg-gray-100/50 p-1 rounded-lg border border-gray-200/60",children:a.jsxs("div",{className:"relative group",children:[a.jsx(At,{content:"Má» trình quản lý Server",children:a.jsxs("button",{onClick:()=>Xe(!0),className:"p-2 rounded-md transition-all flex items-center gap-2 text-xs font-bold text-indigo-600 bg-indigo-50 border border-indigo-100 hover:bg-indigo-100 hover:border-indigo-200",children:[a.jsx(kc,{size:16}),a.jsx("span",{className:"hidden xl:inline",children:"FProxy Manager"})]})}),a.jsxs("div",{className:"absolute top-full right-0 mt-3 p-1.5 bg-white rounded-lg shadow-md border border-gray-200 hidden group-hover:block z-[60] w-[600px] animate-in fade-in zoom-in-95 duration-200",children:[a.jsx("div",{className:"absolute -top-1.5 right-4 w-3 h-3 bg-white border-t border-l border-gray-200 transform rotate-45"}),a.jsx("img",{src:"https://proxymxh.com/assets/imghd/F-Backconnect2.0.png",alt:"F-Backconnect Preview",className:"w-full h-auto rounded border border-gray-100"}),a.jsx("div",{className:"mt-1 text-center text-[10px] font-bold text-gray-400 uppercase tracking-wider",children:"Click Äá» chá»n Server"})]})]})}),a.jsx("div",{className:"flex items-center gap-1",children:a.jsx(At,{content:"Ẩn/Hiá»n Sidebar",children:a.jsx("button",{onClick:()=>Ke(!re),className:`hidden lg:flex w-10 h-10 items-center justify-center border rounded-full transition-all shadow-sm hover:shadow-md 80 ${oe?"bg-white border-gray-300 text-gray-600 hover:bg-gray-100 rounded-sm":"text-slate-500 bg-white border-slate-200/60 hover:border-violet-200 hover:text-violet-600"}`,children:a.jsx(Tg,{size:20,className:`transition-transform duration-300 ${re?"":"rotate-180"}`})})})}),a.jsx(At,{content:"ÄÄng xuất",children:a.jsx("button",{onClick:Qe,className:`w-10 h-10 flex items-center justify-center border rounded-full transition-all shadow-sm hover:shadow-md 81 ${oe?"bg-white border-gray-300 text-gray-600 hover:bg-gray-100 rounded-sm":"text-slate-500 bg-white border-slate-200/60 hover:border-rose-200 hover:bg-rose-50 hover:text-rose-600"}`,children:a.jsx(Ko,{size:20})})})]})]}),a.jsxs("div",{className:"min-h-full pb-10",children:[T==="dashboard"&&(oe?a.jsx(Eb,{orders:Le,user:r}):a.jsx(Tb,{orders:Le,user:r})),T==="list"&&(oe?a.jsx(Hb,{orders:Le,isLoading:Be,onCheckLive:Re,onGetNewIp:F,onUpdateLocation:ft,onUpdateSettings:K,onRenew:it,onDelete:ct,onBulkGetNewIp:W,onShowToast:P,onRefresh:qe,toastSettings:Q,onUpdateToastSettings:J}):a.jsx(Mb,{orders:Le,isLoading:Be,onCheckLive:Re,onGetNewIp:F,onUpdateLocation:ft,onUpdateSettings:K,onRenew:it,onDelete:ct,onBulkGetNewIp:W,onShowToast:P,onRefresh:qe,toastSettings:Q,onUpdateToastSettings:J})),T==="wallet"&&a.jsx($b,{user:r,onShowToast:P}),T==="software"&&a.jsx(Gb,{}),T==="api-docs"&&a.jsx(Kb,{}),T==="solutions"&&a.jsx(nx,{onBack:()=>H("landing"),onStart:()=>H("get-started")}),T==="pricing"&&a.jsx(ix,{onBack:()=>H("landing"),onStart:()=>H("get-started")}),T==="compliance-legal"&&a.jsx(cx,{onBack:()=>H("landing")}),T==="service-policy"&&a.jsx(rx,{onBack:()=>H("landing")}),T==="privacy-policy"&&a.jsx(ox,{onBack:()=>H("landing")}),T==="get-started"&&a.jsx(dx,{onBack:()=>H("landing"),onSelectPlan:()=>H("auth")})]})]})}),$e&&a.jsx("div",{className:"fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[60] lg:hidden animate-in fade-in duration-200",onClick:()=>ne(!1)}),a.jsx(Lb,{orders:xe,onClose:Rt,onConfirm:te}),a.jsx(Ub,{orders:I,onClose:zt,onConfirm:Gt}),a.jsx(qb,{isOpen:ae,onClose:()=>he(!1),onBuySuccess:()=>{qe(),H("list")}}),a.jsx(Qb,{isOpen:Me,onClose:()=>Xe(!1)})]})},Ax=document.getElementById("root");
81if(!Ax)throw new Error("Could not find root element to mount to");const Wb=Qf.createRoot(Ax);Wb.render(a.jsx(hx.StrictMode,{children:a.jsx(Fb,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.