PageSourceSearch

https://component-checker-2vvmovc2.taskade.app/main-F6QBMVR3.js

js component-checker-2vvmovc2.taskade.app collected 2026-10-03 14:58:39 UTC 319,975 bytes, 113 lines download raw bytes

vendor: 10,157 bytes, line 1
1var Jp=Object.create;var Fi=Object.defineProperty;var $p=Object.getOwnPropertyDescriptor;var eg=Object.getOwnPropertyNames;var ag=Object.getPrototypeOf,tg=Object.prototype.hasOwnProperty;var Ta=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var lg=(e,a,t,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(let u of eg(a))!tg.call(e,u)&&u!==t&&Fi(e,u,{get:()=>a[u],enumerable:!(l=$p(a,u))||l.enumerable});return e};var Y=(e,a,t)=>(t=e!=null?Jp(ag(e)):{},lg(a||!e||!e.__esModule?Fi(t,"default",{value:e,enumerable:!0}):t,e));var tn=Ta(j=>{"use strict";var is=Symbol.for("react.transitional.element"),ug=Symbol.for("react.portal"),og=Symbol.for("react.fragment"),rg=Symbol.for("react.strict_mode"),sg=Symbol.for("react.profiler"),dg=Symbol.for("react.consumer"),ig=Symbol.for("react.context"),ng=Symbol.for("react.forward_ref"),fg=Symbol.for("react.suspense"),cg=Symbol.for("react.memo"),Ki=Symbol.for("react.lazy"),Vi=Symbol.iterator;function mg(e){return e===null||typeof e!="object"?null:(e=Vi&&e[Vi]||e["@@iterator"],typeof e=="function"?e:null)}var Wi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ji=Object.assign,$i={};function il(e,a,t){this.props=e,this.context=a,this.refs=$i,this.updater=t||Wi}il.prototype.isReactComponent={};il.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,a,"setState")};il.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function en(){}en.prototype=il.prototype;function ns(e,a,t){this.props=e,this.context=a,this.refs=$i,this.updater=t||Wi}var fs=ns.prototype=new en;fs.constructor=ns;Ji(fs,il.prototype);fs.isPureReactComponent=!0;var ji=Array.isArray,ce={H:null,A:null,T:null,S:null,V:null},an=Object.prototype.hasOwnProperty;function cs(e,a,t,l,u,o){return t=o.ref,{$$typeof:is,type:e,key:a,ref:t!==void 0?t:null,props:o}}function pg(e,a){return cs(e.type,a,void 0,void 0,void 0,e.props)}function ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===is}function gg(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var Yi=/\/+/g;function ds(e,a){return typeof e=="object"&&e!==null&&e.key!=null?gg(""+e.key):a.toString(36)}function Qi(){}function xg(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Qi,Qi):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function dl(e,a,t,l,u){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(o){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case is:case ug:r=!0;break;case Ki:return r=e._init,dl(r(e._payload),a,t,l,u)}}if(r)return u=u(e),r=l===""?"."+ds(e,0):l,ji(u)?(t="",r!=null&&(t=r.replace(Yi,"$&/")+"/"),dl(u,a,t,"",function(n){return n})):u!=null&&(ms(u)&&(u=pg(u,t+(u.key==null||e&&e.key===u.key?"":(""+u.key).replace(Yi,"$&/")+"/")+r)),a.push(u)),1;r=0;var s=l===""?".":l+":";if(ji(e))for(var d=0;d<e.length;d++)l=e[d],o=s+ds(l,d),r+=dl(l,a,t,o,u);else if(d=mg(e),typeof d=="function")for(e=d.call(e),d=0;!(l=e.next()).done;)l=l.value,o=s+ds(l,d++),r+=dl(l,a,t,o,u);else if(o==="object"){if(typeof e.then=="function")return dl(xg(e),a,t,l,u);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return r}function ko(e,a,t){if(e==null)return e;var l=[],u=0;return dl(e,l,"","",function(o){return a.call(t,o,u++)}),l}function hg(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var Zi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function bg(){}j.Children={map:ko,forEach:function(e,a,t){ko(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return ko(e,function(){a++}),a},toArray:function(e){return ko(e,function(a){return a})||[]},only:function(e){if(!ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};j.Component=il;j.Fragment=og;j.Profiler=sg;j.PureComponent=ns;j.StrictMode=rg;j.Suspense=fg;j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ce;j.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ce.H.useMemoCache(e)}};j.cache=function(e){return function(){return e.apply(null,arguments)}};j.cloneElement=function(e,a,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=Ji({},e.props),u=e.key,o=void 0;if(a!=null)for(r in a.ref!==void 0&&(o=void 0),a.key!==void 0&&(u=""+a.key),a)!an.call(a,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&a.ref===void 0||(l[r]=a[r]);var r=arguments.length-2;if(r===1)l.children=t;else if(1<r){for(var s=Array(r),d=0;d<r;d++)s[d]=arguments[d+2];l.children=s}return cs(e.type,u,void 0,void 0,o,l)};j.createContext=function(e){return e={$$typeof:ig,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:dg,_context:e},e};j.createElement=function(e,a,t){var l,u={},o=null;if(a!=null)for(l in a.key!==void 0&&(o=""+a.key),a)an.call(a,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(u[l]=a[l]);var r=arguments.length-2;if(r===1)u.children=t;else if(1<r){for(var s=Array(r),d=0;d<r;d++)s[d]=arguments[d+2];u.children=s}if(e&&e.defaultProps)for(l in r=e.defaultProps,r)u[l]===void 0&&(u[l]=r[l]);return cs(e,o,void 0,void 0,null,u)};j.createRef=function(){return{current:null}};j.forwardRef=function(e){return{$$typeof:ng,render:e}};j.isValidElement=ms;j.lazy=function(e){return{$$typeof:Ki,_payload:{_status:-1,_result:e},_init:hg}};j.memo=function(e,a){return{$$typeof:cg,type:e,compare:a===void 0?null:a}};j.startTransition=function(e){var a=ce.T,t={};ce.T=t;try{var l=e(),u=ce.S;u!==null&&u(t,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(bg,Zi)}catch(o){Zi(o)}finally{ce.T=a}};j.unstable_useCacheRefresh=function(){return ce.H.useCacheRefresh()};j.use=function(e){return ce.H.use(e)};j.useActionState=function(e,a,t){return ce.H.useActionState(e,a,t)};j.useCallback=function(e,a){return ce.H.useCallback(e,a)};j.useContext=function(e){return ce.H.useContext(e)};j.useDebugValue=function(){};j.useDeferredValue=function(e,a){return ce.H.useDeferredValue(e,a)};j.useEffect=function(e,a,t){var l=ce.H;if(typeof t=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return l.useEffect(e,a)};j.useId=function(){return ce.H.useId()};j.useImperativeHandle=function(e,a,t){return ce.H.useImperativeHandle(e,a,t)};j.useInsertionEffect=function(e,a){return ce.H.useInsertionEffect(e,a)};j.useLayoutEffect=function(e,a){return ce.H.useLayoutEffect(e,a)};j.useMemo=function(e,a){return ce.H.useMemo(e,a)};j.useOptimistic=function(e,a){return ce.H.useOptimistic(e,a)};j.useReducer=function(e,a,t){return ce.H.useReducer(e,a,t)};j.useRef=function(e){return ce.H.useRef(e)};j.useState=function(e){return ce.H.useState(e)};j.useSyncExternalStore=function(e,a,t){return ce.H.useSyncExternalStore(e,a,t)};j.useTransition=function(){return ce.H.useTransition()};j.version="19.1.1"});var Be=Ta((Mh,ln)=>{"use strict";ln.exports=tn()});var pn=Ta(me=>{"use strict";function hs(e,a){var t=e.length;e.push(a);e:for(;0<t;){var l=t-1>>>1,u=e[l];if(0<Mo(u,a))e[l]=a,e[t]=u,t=l;else break e}}function ka(e){return e.length===0?null:e[0]}function Uo(e){if(e.length===0)return null;var a=e[0],t=e.pop();if(t!==a){e[0]=t;e:for(var l=0,u=e.length,o=u>>>1;l<o;){var r=2*(l+1)-1,s=e[r],d=r+1,n=e[d];if(0>Mo(s,t))d<u&&0>Mo(n,s)?(e[l]=n,e[d]=t,l=d):(e[l]=s,e[r]=t,l=r);else if(d<u&&0>Mo(n,t))e[l]=n,e[d]=t,l=d;else break e}}return a}function Mo(e,a){var t=e.sortIndex-a.sortIndex;return t!==0?t:e.id-a.id}me.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(un=performance,me.unstable_now=function(){return un.now()}):(ps=Date,on=ps.now(),me.unstable_now=function(){return ps.now()-on});var un,ps,on,_a=[],it=[],vg=1,ia=null,Xe=3,bs=!1,su=!1,du=!1,vs=!1,dn=typeof setTimeout=="function"?setTimeout:null,nn=typeof clearTimeout=="function"?clearTimeout:null,rn=typeof setImmediate<"u"?setImmediate:null;function Bo(e){for(var a=ka(it);a!==null;){if(a.callback===null)Uo(it);else if(a.startTime<=e)Uo(it),a.sortIndex=a.expirationTime,hs(_a,a);else break;a=ka(it)}}function ys(e){if(du=!1,Bo(e),!su)if(ka(_a)!==null)su=!0,fl||(fl=!0,nl());else{var a=ka(it);a!==null&&Ls(ys,a.startTime-e)}}var fl=!1,iu=-1,fn=5,cn=-1;function mn(){return vs?!0:!(me.unstable_now()-cn<fn)}function gs(){if(vs=!1,fl){var e=me.unstable_now();cn=e;var a=!0;try{e:{su=!1,du&&(du=!1,nn(iu),iu=-1),bs=!0;var t=Xe;try{a:{for(Bo(e),ia=ka(_a);ia!==null&&!(ia.expirationTime>e&&mn());){var l=ia.callback;if(typeof l=="function"){ia.callback=null,Xe=ia.priorityLevel;var u=l(ia.expirationTime<=e);if(e=me.unstable_now(),typeof u=="function"){ia.callback=u,Bo(e),a=!0;break a}ia===ka(_a)&&Uo(_a),Bo(e)}else Uo(_a);ia=ka(_a)}if(ia!==null)a=!0;else{var o=ka(it);o!==null&&Ls(ys,o.startTime-e),a=!1}}break e}finally{ia=null,Xe=t,bs=!1}a=void 0}}finally{a?nl():fl=!1}}}var nl;
vendor: 6,679 bytes, line 1
1typeof rn=="function"?nl=function(){rn(gs)}:typeof MessageChannel<"u"?(xs=new MessageChannel,sn=xs.port2,xs.port1.onmessage=gs,nl=function(){sn.postMessage(null)}):nl=function(){dn(gs,0)};var xs,sn;function Ls(e,a){iu=dn(function(){e(me.unstable_now())},a)}me.unstable_IdlePriority=5;me.unstable_ImmediatePriority=1;me.unstable_LowPriority=4;me.unstable_NormalPriority=3;me.unstable_Profiling=null;me.unstable_UserBlockingPriority=2;me.unstable_cancelCallback=function(e){e.callback=null};me.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fn=0<e?Math.floor(1e3/e):5};me.unstable_getCurrentPriorityLevel=function(){return Xe};me.unstable_next=function(e){switch(Xe){case 1:case 2:case 3:var a=3;break;default:a=Xe}var t=Xe;Xe=a;try{return e()}finally{Xe=t}};me.unstable_requestPaint=function(){vs=!0};me.unstable_runWithPriority=function(e,a){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Xe;Xe=e;try{return a()}finally{Xe=t}};me.unstable_scheduleCallback=function(e,a,t){var l=me.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?l+t:l):t=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return u=t+u,e={id:vg++,callback:a,priorityLevel:e,startTime:t,expirationTime:u,sortIndex:-1},t>l?(e.sortIndex=t,hs(it,e),ka(_a)===null&&e===ka(it)&&(du?(nn(iu),iu=-1):du=!0,Ls(ys,t-l))):(e.sortIndex=u,hs(_a,e),su||bs||(su=!0,fl||(fl=!0,nl()))),e};me.unstable_shouldYield=mn;me.unstable_wrapCallback=function(e){var a=Xe;return function(){var t=Xe;Xe=a;try{return e.apply(this,arguments)}finally{Xe=t}}}});var xn=Ta((Uh,gn)=>{"use strict";gn.exports=pn()});var bn=Ta(je=>{"use strict";var yg=Be();function hn(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function nt(){}var Ve={d:{f:nt,r:function(){throw Error(hn(522))},D:nt,C:nt,L:nt,m:nt,X:nt,S:nt,M:nt},p:0,findDOMNode:null},Lg=Symbol.for("react.portal");function wg(e,a,t){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lg,key:l==null?null:""+l,children:e,containerInfo:a,implementation:t}}var nu=yg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Eo(e,a){if(e==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ve;je.createPortal=function(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(hn(299));return wg(e,a,null,t)};je.flushSync=function(e){var a=nu.T,t=Ve.p;try{if(nu.T=null,Ve.p=2,e)return e()}finally{nu.T=a,Ve.p=t,Ve.d.f()}};je.preconnect=function(e,a){typeof e=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,Ve.d.C(e,a))};je.prefetchDNS=function(e){typeof e=="string"&&Ve.d.D(e)};je.preinit=function(e,a){if(typeof e=="string"&&a&&typeof a.as=="string"){var t=a.as,l=Eo(t,a.crossOrigin),u=typeof a.integrity=="string"?a.integrity:void 0,o=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;t==="style"?Ve.d.S(e,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:l,integrity:u,fetchPriority:o}):t==="script"&&Ve.d.X(e,{crossOrigin:l,integrity:u,fetchPriority:o,nonce:typeof a.nonce=="string"?a.nonce:void 0})}};je.preinitModule=function(e,a){if(typeof e=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var t=Eo(a.as,a.crossOrigin);Ve.d.M(e,{crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&Ve.d.M(e)};je.preload=function(e,a){if(typeof e=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var t=a.as,l=Eo(t,a.crossOrigin);Ve.d.L(e,t,{crossOrigin:l,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}};je.preloadModule=function(e,a){if(typeof e=="string")if(a){var t=Eo(a.as,a.crossOrigin);Ve.d.m(e,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else Ve.d.m(e)};je.requestFormReset=function(e){Ve.d.r(e)};je.unstable_batchedUpdates=function(e,a){return e(a)};je.useFormState=function(e,a,t){return nu.H.useFormState(e,a,t)};je.useFormStatus=function(){return nu.H.useHostTransitionStatus()};je.version="19.1.1"});var Ln=Ta((Gh,yn)=>{"use strict";function vn(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vn)}catch(e){console.error(e)}}vn(),yn.exports=bn()});var Cp=Ta(ls=>{"use strict";var Re=xn(),Ff=Be(),Sg=Ln();function A(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Vf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wu(e){var a=e,t=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(t=a.return),e=a.return;while(e)}return a.tag===3?t:null}function jf(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function wn(e){if(Wu(e)!==e)throw Error(A(188))}function Cg(e){var a=e.alternate;if(!a){if(a=Wu(e),a===null)throw Error(A(188));return a!==e?null:e}for(var t=e,l=a;;){var u=t.return;if(u===null)break;var o=u.alternate;if(o===null){if(l=u.return,l!==null){t=l;continue}break}if(u.child===o.child){for(o=u.child;o;){if(o===t)return wn(u),e;if(o===l)return wn(u),a;o=o.sibling}throw Error(A(188))}if(t.return!==l.return)t=u,l=o;else{for(var r=!1,s=u.child;s;){if(s===t){r=!0,t=u,l=o;break}
vendor: 14,468 bytes, lines 1-8
1if(s===l){r=!0,l=u,t=o;break}s=s.sibling}if(!r){for(s=o.child;s;){if(s===t){r=!0,t=o,l=u;break}if(s===l){r=!0,l=o,t=u;break}s=s.sibling}if(!r)throw Error(A(189))}}if(t.alternate!==l)throw Error(A(190))}if(t.tag!==3)throw Error(A(188));return t.stateNode.current===t?e:a}function Yf(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=Yf(e),a!==null)return a;e=e.sibling}return null}var ne=Object.assign,Ig=Symbol.for("react.element"),Go=Symbol.for("react.transitional.element"),vu=Symbol.for("react.portal"),bl=Symbol.for("react.fragment"),Qf=Symbol.for("react.strict_mode"),$s=Symbol.for("react.profiler"),Rg=Symbol.for("react.provider"),Zf=Symbol.for("react.consumer"),Ya=Symbol.for("react.context"),Qd=Symbol.for("react.forward_ref"),ed=Symbol.for("react.suspense"),ad=Symbol.for("react.suspense_list"),Zd=Symbol.for("react.memo"),mt=Symbol.for("react.lazy");Symbol.for("react.scope");var td=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Ag=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var Sn=Symbol.iterator;function fu(e){return e===null||typeof e!="object"?null:(e=Sn&&e[Sn]||e["@@iterator"],typeof e=="function"?e:null)}var Dg=Symbol.for("react.client.reference");function ld(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Dg?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bl:return"Fragment";case $s:return"Profiler";case Qf:return"StrictMode";case ed:return"Suspense";case ad:return"SuspenseList";case td:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case vu:return"Portal";case Ya:return(e.displayName||"Context")+".Provider";case Zf:return(e._context.displayName||"Context")+".Consumer";case Qd:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zd:return a=e.displayName||null,a!==null?a:ld(e.type)||"Memo";case mt:a=e._payload,e=e._init;try{return ld(e(a))}catch{}}return null}var yu=Array.isArray,H=Ff.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Sg.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ft={pending:!1,data:null,method:null,action:null},ud=[],vl=-1;function qa(e){return{current:e}}function Te(e){0>vl||(e.current=ud[vl],ud[vl]=null,vl--)}function ge(e,a){vl++,ud[vl]=e.current,e.current=a}var Ea=qa(null),Ou=qa(null),St=qa(null),cr=qa(null);function mr(e,a){switch(ge(St,a),ge(Ou,e),ge(Ea,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Tf(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Tf(a),e=cp(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Te(Ea),ge(Ea,e)}function ql(){Te(Ea),Te(Ou),Te(St)}function od(e){e.memoizedState!==null&&ge(cr,e);var a=Ea.current,t=cp(a,e.type);a!==t&&(ge(Ou,e),ge(Ea,t))}function pr(e){Ou.current===e&&(Te(Ea),Te(Ou)),cr.current===e&&(Te(cr),Yu._currentValue=Ft)}var rd=Object.prototype.hasOwnProperty,Kd=Re.unstable_scheduleCallback,ws=Re.unstable_cancelCallback,Ng=Re.unstable_shouldYield,Tg=Re.unstable_requestPaint,Ga=Re.unstable_now,kg=Re.unstable_getCurrentPriorityLevel,Kf=Re.unstable_ImmediatePriority,Wf=Re.unstable_UserBlockingPriority,gr=Re.unstable_NormalPriority,Mg=Re.unstable_LowPriority,Jf=Re.unstable_IdlePriority,Bg=Re.log,Ug=Re.unstable_setDisableYieldValue,Ju=null,ua=null;function vt(e){if(typeof Bg=="function"&&Ug(e),ua&&typeof ua.setStrictMode=="function")try{ua.setStrictMode(Ju,e)}catch{}}var oa=Math.clz32?Math.clz32:Og,Eg=Math.log,Gg=Math.LN2;function Og(e){return e>>>=0,e===0?32:31-(Eg(e)/Gg|0)|0}var Oo=256,qo=4194304;function zt(e){var a=e&42;if(a!==0)return a;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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 _r(e,a,t){var l=e.pendingLanes;if(l===0)return 0;var u=0,o=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var s=l&134217727;return s!==0?(l=s&~o,l!==0?u=zt(l):(r&=s,r!==0?u=zt(r):t||(t=s&~e,t!==0&&(u=zt(t))))):(s=l&~o,s!==0?u=zt(s):r!==0?u=zt(r):t||(t=l&~e,t!==0&&(u=zt(t)))),u===0?0:a!==0&&a!==u&&(a&o)===0&&(o=u&-u,t=a&-a,o>=t||o===32&&(t&4194048)!==0)?a:u}function $u(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function qg(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 $f(){var e=Oo;return Oo<<=1,(Oo&4194048)===0&&(Oo=256),e}function ec(){var e=qo;return qo<<=1,(qo&62914560)===0&&(qo=4194304),e}function Ss(e){for(var a=[],t=0;31>t;t++)a.push(e);return a}function eo(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pg(e,a,t,l,u,o){var r=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var s=e.entanglements,d=e.expirationTimes,n=e.hiddenUpdates;for(t=r&~t;0<t;){var x=31-oa(t),v=1<<x;s[x]=0,d[x]=-1;var c=n[x];if(c!==null)for(n[x]=null,x=0;x<c.length;x++){var m=c[x];m!==null&&(m.lane&=-536870913)}t&=~v}l!==0&&ac(e,l,0),o!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=o&~(r&~a))}function ac(e,a,t){e.pendingLanes|=a,e.suspendedLanes&=~a;var l=31-oa(a);e.entangledLanes|=a,e.entanglements[l]=e.entanglements[l]|1073741824|t&4194090}function tc(e,a){var t=e.entangledLanes|=a;for(e=e.entanglements;t;){var l=31-oa(t),u=1<<l;u&a|e[l]&a&&(e[l]|=a),t&=~u}}function Wd(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 Jd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lc(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:wp(e.type))}function Xg(e,a){var t=te.p;try{return te.p=e,a()}finally{te.p=t}}var Ut=Math.random().toString(36).slice(2),ze="__reactFiber$"+Ut,We="__reactProps$"+Ut,Zl="__reactContainer$"+Ut,sd="__reactEvents$"+Ut,zg="__reactListeners$"+Ut,_g="__reactHandles$"+Ut,Cn="__reactResources$"+Ut,ao="__reactMarker$"+Ut;function $d(e){delete e[ze],delete e[We],delete e[sd],delete e[zg],delete e[_g]}function yl(e){var a=e[ze];if(a)return a;for(var t=e.parentNode;t;){if(a=t[Zl]||t[ze]){if(t=a.alternate,a.child!==null||t!==null&&t.child!==null)for(e=Bf(e);e!==null;){if(t=e[ze])return t;e=Bf(e)}return a}e=t,t=e.parentNode}return null}function Kl(e){if(e=e[ze]||e[Zl]){var a=e.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return e}return null}function Lu(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(A(33))}function Tl(e){var a=e[Cn];return a||(a=e[Cn]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function De(e){e[ao]=!0}var uc=new Set,oc={};function al(e,a){Pl(e,a),Pl(e+"Capture",a)}function Pl(e,a){for(oc[e]=a,e=0;e<a.length;e++)uc.add(a[e])}var Hg=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]*$"),In={},Rn={};function Fg(e){return rd.call(Rn,e)?!0:rd.call(In,e)?!1:Hg.test(e)?Rn[e]=!0:(In[e]=!0,!1)}function $o(e,a,t){if(Fg(a))if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+t)}}function Po(e,a,t){if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+t)}}function Ha(e,a,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.setAttributeNS(a,t,""+l)}}var Cs,An;function gl(e){if(Cs===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);Cs=a&&a[1]||"",An=-1<t.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+Cs+e+An}var Is=!1;function Rs(e,a){if(!e||Is)return"";Is=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(m){var c=m}Reflect.construct(e,[],v)}else{try{v.call()}catch(m){c=m}e.call(v.prototype)}}else{try{throw Error()}catch(m){c=m}(v=e())&&typeof v.catch=="function"&&v.catch(function(){})}}catch(m){if(m&&c&&typeof m.stack=="string")return[m.stack,c.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),r=o[0],s=o[1];if(r&&s){var d=r.split(`
4`),n=s.split(`
5`);for(u=l=0;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;for(;u<n.length&&!n[u].includes("DetermineComponentFrameRoot");)u++;if(l===d.length||u===n.length)for(l=d.length-1,u=n.length-1;1<=l&&0<=u&&d[l]!==n[u];)u--;for(;1<=l&&0<=u;l--,u--)if(d[l]!==n[u]){if(l!==1||u!==1)do if(l--,u--,0>u||d[l]!==n[u]){var x=`
6`+d[l].replace(" at new "," at ");return e.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",e.displayName)),x}while(1<=l&&0<=u);break}}}finally{Is=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?gl(t):""}function Vg(e){switch(e.tag){case 26:case 27:case 5:return gl(e.type);case 16:return gl("Lazy");case 13:return gl("Suspense");case 19:return gl("SuspenseList");case 0:case 15:return Rs(e.type,!1);case 11:return Rs(e.type.render,!1);case 1:return Rs(e.type,!0);case 31:return gl("Activity");default:return""}}function Dn(e){try{var a="";do a+=Vg(e),e=e.return;while(e);return a}catch(t){return`
7Error generating stack: `+t.message+`
8`+t.stack}}function fa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rc(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function jg(e){var a=rc(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),l=""+e[a];if(!e.hasOwnProperty(a)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var u=t.get,o=t.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return u.call(this)},set:function(r){l=""+r,o.call(this,r)}}),Object.defineProperty(e,a,{enumerable:t.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function xr(e){e._valueTracker||(e._valueTracker=jg(e))}function sc(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var t=a.getValue(),l="";return e&&(l=rc(e)?e.checked?"true":"false":e.value),e=l,e!==t?(a.setValue(e),!0):!1}function hr(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 Yg=/[\n"\\]/g;function pa(e){return e.replace(Yg,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function dd(e,a,t,l,u,o,r,s){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),a!=null?r==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+fa(a)):e.value!==""+fa(a)&&(e.value=""+fa(a)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),a!=null?id(e,r,fa(a)):t!=null?id(e,r,fa(t)):l!=null&&e.removeAttribute("value"),u==null&&o!=null&&(e.defaultChecked=!!o),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+fa(s):e.removeAttribute("name")}function dc(e,a,t,l,u,o,r,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),a!=null||t!=null){if(!(o!=="submit"&&o!=="reset"||a!=null))return;t=t!=null?""+fa(t):"",a=a!=null?""+fa(a):t,s||a===e.value||(e.value=a),e.defaultValue=a}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=s?e.checked:!!l,e.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r)}function id(e,a,t){a==="number"&&hr(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function kl(e,a,t,l){if(e=e.options,a){a={};for(var u=0;u<t.length;u++)a["$"+t[u]]=!0;for(t=0;t<e.length;t++)u=a.hasOwnProperty("$"+e[t].value),e[t].selected!==u&&(e[t].selected=u),u&&l&&(e[t].defaultSelected=!0)}else{for(t=""+fa(t),a=null,u=0;u<e.length;u++){if(e[u].value===t){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}a!==null||e[u].disabled||(a=e[u])}a!==null&&(a.selected=!0)}}function ic(e,a,t){if(a!=null&&(a=""+fa(a),a!==e.value&&(e.value=a),t==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=t!=null?""+fa(t):""}function nc(e,a,t,l){if(a==null){if(l!=null){if(t!=null)throw Error(A(92));if(yu(l)){if(1<l.length)throw Error(A(93));l=l[0]}t=l}t==null&&(t=""),a=t}t=fa(a),e.defaultValue=t,l=e.textContent,l===t&&l!==""&&l!==null&&(e.value=l)}function Xl(e,a){if(a){var t=e.firstChild;
vendor: 4,140 bytes, line 8
8if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=a;return}}e.textContent=a}var Qg=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 Nn(e,a,t){var l=a.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?l?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":l?e.setProperty(a,t):typeof t!="number"||t===0||Qg.has(a)?a==="float"?e.cssFloat=t:e[a]=(""+t).trim():e[a]=t+"px"}function fc(e,a,t){if(a!=null&&typeof a!="object")throw Error(A(62));if(e=e.style,t!=null){for(var l in t)!t.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in a)l=a[u],a.hasOwnProperty(u)&&t[u]!==l&&Nn(e,u,l)}else for(var o in a)a.hasOwnProperty(o)&&Nn(e,o,a[o])}function ei(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 Zg=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"]]),Kg=/^[\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 er(e){return Kg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var nd=null;function ai(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Ml=null;function Tn(e){var a=Kl(e);if(a&&(e=a.stateNode)){var t=e[We]||null;e:switch(e=a.stateNode,a.type){case"input":if(dd(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),a=t.name,t.type==="radio"&&a!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+pa(""+a)+'"][type="radio"]'),a=0;a<t.length;a++){var l=t[a];if(l!==e&&l.form===e.form){var u=l[We]||null;if(!u)throw Error(A(90));dd(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(a=0;a<t.length;a++)l=t[a],l.form===e.form&&sc(l)}break e;case"textarea":ic(e,t.value,t.defaultValue);break e;case"select":a=t.value,a!=null&&kl(e,!!t.multiple,a,!1)}}}var As=!1;function cc(e,a,t){if(As)return e(a,t);As=!0;try{var l=e(a);return l}finally{if(As=!1,(Ll!==null||Ml!==null)&&(Jr(),Ll&&(a=Ll,e=Ml,Ml=Ll=null,Tn(a),e)))for(a=0;a<e.length;a++)Tn(e[a])}}function qu(e,a){var t=e.stateNode;if(t===null)return null;var l=t[We]||null;if(l===null)return null;t=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(A(231,a,typeof t));return t}var et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fd=!1;if(et)try{cl={},Object.defineProperty(cl,"passive",{get:function(){fd=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{fd=!1}var cl,yt=null,ti=null,ar=null;function mc(){if(ar)return ar;var e,a=ti,t=a.length,l,u="value"in yt?yt.value:yt.textContent,o=u.length;for(e=0;e<t&&a[e]===u[e];e++);var r=t-e;for(l=1;l<=r&&a[t-l]===u[o-l];l++);return ar=u.slice(e,1<l?1-l:void 0)}function tr(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Xo(){return!0}function kn(){return!1}function Je(e){function a(t,l,u,o,r){this._reactName=t,this._targetInst=u,this.type=l,this.nativeEvent=o,this.target=r,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Xo:kn,this.isPropagationStopped=kn,this}return ne(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Xo)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),a}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=Je(tl),to=ne({},tl,{view:0,detail:0}),Wg=Je(to),Ds,Ns,cu,Fr=ne({},to,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:li,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!==cu&&(cu&&e.type==="mousemove"?(Ds=e.screenX-cu.screenX,Ns=e.screenY-cu.screenY):Ns=Ds=0,cu=e),Ds)},movementY:function(e){return"movementY"in e?e.movementY:Ns}}),Mn=Je(Fr),Jg=ne({},Fr,{dataTransfer:0}),$g=Je(Jg),e0=ne({},to,{relatedTarget:0}),Ts=Je(e0),a0=ne({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),t0=Je(a0),l0=ne({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u0=Je(l0),o0=ne({},tl,{data:0}),Bn=Je(o0),r0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s0={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"},d0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i0(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=d0[e])?!!a[e]:!1}
vendor: 5,300 bytes, line 8
8function li(){return i0}var n0=ne({},to,{key:function(e){if(e.key){var a=r0[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=tr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?s0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:li,charCode:function(e){return e.type==="keypress"?tr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f0=Je(n0),c0=ne({},Fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Un=Je(c0),m0=ne({},to,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:li}),p0=Je(m0),g0=ne({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),x0=Je(g0),h0=ne({},Fr,{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}),b0=Je(h0),v0=ne({},tl,{newState:0,oldState:0}),y0=Je(v0),L0=[9,13,27,32],ui=et&&"CompositionEvent"in window,Su=null;et&&"documentMode"in document&&(Su=document.documentMode);var w0=et&&"TextEvent"in window&&!Su,pc=et&&(!ui||Su&&8<Su&&11>=Su),En=" ",Gn=!1;function gc(e,a){switch(e){case"keyup":return L0.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wl=!1;function S0(e,a){switch(e){case"compositionend":return xc(a);case"keypress":return a.which!==32?null:(Gn=!0,En);case"textInput":return e=a.data,e===En&&Gn?null:e;default:return null}}function C0(e,a){if(wl)return e==="compositionend"||!ui&&gc(e,a)?(e=mc(),ar=ti=yt=null,wl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return pc&&a.locale!=="ko"?null:a.data;default:return null}}var I0={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 On(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!I0[e.type]:a==="textarea"}function hc(e,a,t,l){Ll?Ml?Ml.push(l):Ml=[l]:Ll=l,a=Er(a,"onChange"),0<a.length&&(t=new Hr("onChange","change",null,t,l),e.push({event:t,listeners:a}))}var Cu=null,Pu=null;function R0(e){ip(e,0)}function Vr(e){var a=Lu(e);if(sc(a))return e}function qn(e,a){if(e==="change")return a}var bc=!1;et&&(et?(_o="oninput"in document,_o||(ks=document.createElement("div"),ks.setAttribute("oninput","return;"),_o=typeof ks.oninput=="function"),zo=_o):zo=!1,bc=zo&&(!document.documentMode||9<document.documentMode));var zo,_o,ks;function Pn(){Cu&&(Cu.detachEvent("onpropertychange",vc),Pu=Cu=null)}function vc(e){if(e.propertyName==="value"&&Vr(Pu)){var a=[];hc(a,Pu,e,ai(e)),cc(R0,a)}}function A0(e,a,t){e==="focusin"?(Pn(),Cu=a,Pu=t,Cu.attachEvent("onpropertychange",vc)):e==="focusout"&&Pn()}function D0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vr(Pu)}function N0(e,a){if(e==="click")return Vr(a)}function T0(e,a){if(e==="input"||e==="change")return Vr(a)}function k0(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var da=typeof Object.is=="function"?Object.is:k0;function Xu(e,a){if(da(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var t=Object.keys(e),l=Object.keys(a);if(t.length!==l.length)return!1;for(l=0;l<t.length;l++){var u=t[l];if(!rd.call(a,u)||!da(e[u],a[u]))return!1}return!0}function Xn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zn(e,a){var t=Xn(e);e=0;for(var l;t;){if(t.nodeType===3){if(l=e+t.textContent.length,e<=a&&l>=a)return{node:t,offset:a-e};e=l}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Xn(t)}}function yc(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?yc(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function Lc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=hr(e.document);a instanceof e.HTMLIFrameElement;){try{var t=typeof a.contentWindow.location.href=="string"}catch{t=!1}if(t)e=a.contentWindow;else break;a=hr(e.document)}return a}function oi(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var M0=et&&"documentMode"in document&&11>=document.documentMode,Sl=null,cd=null,Iu=null,md=!1;function _n(e,a,t){var l=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;md||Sl==null||Sl!==hr(l)||(l=Sl,"selectionStart"in l&&oi(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focu
vendor: 96,102 bytes, line 8
8sNode:l.focusNode,focusOffset:l.focusOffset}),Iu&&Xu(Iu,l)||(Iu=l,l=Er(cd,"onSelect"),0<l.length&&(a=new Hr("onSelect","select",null,a,t),e.push({event:a,listeners:l}),a.target=Sl)))}function Xt(e,a){var t={};return t[e.toLowerCase()]=a.toLowerCase(),t["Webkit"+e]="webkit"+a,t["Moz"+e]="moz"+a,t}var Cl={animationend:Xt("Animation","AnimationEnd"),animationiteration:Xt("Animation","AnimationIteration"),animationstart:Xt("Animation","AnimationStart"),transitionrun:Xt("Transition","TransitionRun"),transitionstart:Xt("Transition","TransitionStart"),transitioncancel:Xt("Transition","TransitionCancel"),transitionend:Xt("Transition","TransitionEnd")},Ms={},wc={};et&&(wc=document.createElement("div").style,"AnimationEvent"in window||(delete Cl.animationend.animation,delete Cl.animationiteration.animation,delete Cl.animationstart.animation),"TransitionEvent"in window||delete Cl.transitionend.transition);function ll(e){if(Ms[e])return Ms[e];if(!Cl[e])return e;var a=Cl[e],t;for(t in a)if(a.hasOwnProperty(t)&&t in wc)return Ms[e]=a[t];return e}var Sc=ll("animationend"),Cc=ll("animationiteration"),Ic=ll("animationstart"),B0=ll("transitionrun"),U0=ll("transitionstart"),E0=ll("transitioncancel"),Rc=ll("transitionend"),Ac=new Map,pd="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(" ");pd.push("scrollEnd");function Ca(e,a){Ac.set(e,a),al(a,[e])}var Hn=new WeakMap;function ga(e,a){if(typeof e=="object"&&e!==null){var t=Hn.get(e);return t!==void 0?t:(a={value:e,source:a,stack:Dn(a)},Hn.set(e,a),a)}return{value:e,source:a,stack:Dn(a)}}var na=[],Il=0,ri=0;function jr(){for(var e=Il,a=ri=Il=0;a<e;){var t=na[a];na[a++]=null;var l=na[a];na[a++]=null;var u=na[a];na[a++]=null;var o=na[a];if(na[a++]=null,l!==null&&u!==null){var r=l.pending;r===null?u.next=u:(u.next=r.next,r.next=u),l.pending=u}o!==0&&Dc(t,u,o)}}function Yr(e,a,t,l){na[Il++]=e,na[Il++]=a,na[Il++]=t,na[Il++]=l,ri|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function si(e,a,t,l){return Yr(e,a,t,l),br(e)}function Wl(e,a){return Yr(e,null,null,a),br(e)}function Dc(e,a,t){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t);for(var u=!1,o=e.return;o!==null;)o.childLanes|=t,l=o.alternate,l!==null&&(l.childLanes|=t),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(u=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,u&&a!==null&&(u=31-oa(t),e=o.hiddenUpdates,l=e[u],l===null?e[u]=[a]:l.push(a),a.lane=t|536870912),o):null}function br(e){if(50<Eu)throw Eu=0,Ed=null,Error(A(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Rl={};function G0(e,a,t,l){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function la(e,a,t,l){return new G0(e,a,t,l)}function di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ja(e,a){var t=e.alternate;return t===null?(t=la(e.tag,a,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=a,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,a=e.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Nc(e,a){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,a=t.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function lr(e,a,t,l,u,o){var r=0;if(l=e,typeof e=="function")di(e)&&(r=1);else if(typeof e=="string")r=Gx(e,t,Ea.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case td:return e=la(31,t,a,u),e.elementType=td,e.lanes=o,e;case bl:return Vt(t.children,u,o,a);case Qf:r=8,u|=24;break;case $s:return e=la(12,t,a,u|2),e.elementType=$s,e.lanes=o,e;case ed:return e=la(13,t,a,u),e.elementType=ed,e.lanes=o,e;case ad:return e=la(19,t,a,u),e.elementType=ad,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rg:case Ya:r=10;break e;case Zf:r=9;break e;case Qd:r=11;break e;case Zd:r=14;break e;case mt:r=16,l=null;break e}r=29,t=Error(A(130,e===null?"null":typeof e,"")),l=null}return a=la(r,t,a,u),a.elementType=e,a.type=l,a.lanes=o,a}function Vt(e,a,t,l){return e=la(7,e,l,a),e.lanes=t,e}function Bs(e,a,t){return e=la(6,e,null,a),e.lanes=t,e}function Us(e,a,t){return a=la(4,e.children!==null?e.children:[],e.key,a),a.lanes=t,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Al=[],Dl=0,vr=null,yr=0,ca=[],ma=0,jt=null,Qa=1,Za="";function _t(e,a){Al[Dl++]=yr,Al[Dl++]=vr,vr=e,yr=a}function Tc(e,a,t){ca[ma++]=Qa,ca[ma++]=Za,ca[ma++]=jt,jt=e;var l=Qa;e=Za;var u=32-oa(l)-1;l&=~(1<<u),t+=1;var o=32-oa(a)+u;if(30<o){var r=u-u%5;o=(l&(1<<r)-1).toString(32),l>>=r,u-=r,Qa=1<<32-oa(a)+u|t<<u|l,Za=o+e}else Qa=1<<o|t<<u|l,Za=e}function ii(e){e.return!==null&&(_t(e,1),Tc(e,1,0))}function ni(e){for(;e===vr;)vr=Al[--Dl],Al[Dl]=null,yr=Al[--Dl],Al[Dl]=null;for(;e===jt;)jt=ca[--ma],ca[ma]=null,Za=ca[--ma],ca[ma]=null,Qa=ca[--ma],ca[ma]=null}var Ye=null,he=null,ae=!1,Yt=null,Ba=!1,gd=Error(A(519));function Wt(e){var a=Error(A(418,""));throw zu(ga(a,e)),gd}function Fn(e){var a=e.stateNode,t=e.type,l=e.memoizedProps;switch(a[ze]=e,a[We]=l,t){case"dialog":K("cancel",a),K("close",a);break;case"iframe":case"object":case"embed":K("load",a);break;case"video":case"audio":for(t=0;t<Fu.length;t++)K(Fu[t],a);break;case"source":K("error",a);break;case"img":case"image":case"link":K("error",a),K("load",a);break;case"details":K("toggle",a);break;case"input":K("invalid",a),dc(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),xr(a);break;case"select":K("invalid",a);break;case"textarea":K("invalid",a),nc(a,l.value,l.defaultValue,l.children),xr(a)}t=l.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||a.textContent===""+t||l.suppressHydrationWarning===!0||fp(a.textContent,t)?(l.popover!=null&&(K("beforetoggle",a),K("toggle",a)),l.onScroll!=null&&K("scroll",a),l.onScrollEnd!=null&&K("scrollend",a),l.onClick!=null&&(a.onclick=as),a=!0):a=!1,a||Wt(e)}function Vn(e){for(Ye=e.return;Ye;)switch(Ye.tag){case 5:case 13:Ba=!1;return;case 27:case 3:Ba=!0;return;default:Ye=Ye.return}}function mu(e){if(e!==Ye)return!1;if(!ae)return Vn(e),ae=!0,!1;var a=e.tag,t;if((t=a!==3&&a!==27)&&((t=a===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||zd(e.type,e.memoizedProps)),t=!t),t&&he&&Wt(e),Vn(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8)if(t=e.data,t==="/$"){if(a===0){he=Sa(e.nextSibling);break e}a--}else t!=="$"&&t!=="$!"&&t!=="$?"||a++;e=e.nextSibling}he=null}}else a===27?(a=he,Et(e.type)?(e=Fd,Fd=null,he=e):he=a):he=Ye?Sa(e.stateNode.nextSibling):null;return!0}function lo(){he=Ye=null,ae=!1}function jn(){var e=Yt;return e!==null&&(Ke===null?Ke=e:Ke.push.apply(Ke,e),Yt=null),e}function zu(e){Yt===null?Yt=[e]:Yt.push(e)}var xd=qa(null),ul=null,Ka=null;function gt(e,a,t){ge(xd,a._currentValue),a._currentValue=t}function $a(e){e._currentValue=xd.current,Te(xd)}function hd(e,a,t){for(;e!==null;){var l=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),e===t)break;e=e.return}}function bd(e,a,t,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var o=u.dependencies;if(o!==null){var r=u.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=u;for(var d=0;d<a.length;d++)if(s.context===a[d]){o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),hd(o.return,t,e),l||(r=null);break e}o=s.next}}else if(u.tag===18){if(r=u.return,r===null)throw Error(A(341));r.lanes|=t,o=r.alternate,o!==null&&(o.lanes|=t),hd(r,t,e),r=null}else r=u.child;if(r!==null)r.return=u;else for(r=u;r!==null;){if(r===e){r=null;break}if(u=r.sibling,u!==null){u.return=r.return,r=u;break}r=r.return}u=r}}function uo(e,a,t,l){e=null;for(var u=a,o=!1;u!==null;){if(!o){if((u.flags&524288)!==0)o=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var r=u.alternate;if(r===null)throw Error(A(387));if(r=r.memoizedProps,r!==null){var s=u.type;da(u.pendingProps.value,r.value)||(e!==null?e.push(s):e=[s])}}else if(u===cr.current){if(r=u.alternate,r===null)throw Error(A(387));r.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Yu):e=[Yu])}u=u.return}e!==null&&bd(a,e,t,l),a.flags|=262144}function Lr(e){for(e=e.firstContext;e!==null;){if(!da(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jt(e){ul=e,Ka=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _e(e){return kc(ul,e)}function Ho(e,a){return ul===null&&Jt(e),kc(e,a)}function kc(e,a){var t=a._currentValue;if(a={context:a,memoizedValue:t,next:null},Ka===null){if(e===null)throw Error(A(308));Ka=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Ka=Ka.next=a;return t}var O0=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(t,l){e.push(l)}};this.abort=function(){a.aborted=!0,e.forEach(function(t){return t()})}},q0=Re.unstable_scheduleCallback,P0=Re.unstable_NormalPriority,Ce={$$typeof:Ya,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fi(){return{controller:new O0,data:new Map,refCount:0}}function oo(e){e.refCount--,e.refCount===0&&q0(P0,function(){e.controller.abort()})}var Ru=null,vd=0,zl=0,Bl=null;function X0(e,a){if(Ru===null){var t=Ru=[];vd=0,zl=Ui(),Bl={status:"pending",value:void 0,then:function(l){t.push(l)}}}return vd++,a.then(Yn,Yn),a}function Yn(){if(--vd===0&&Ru!==null){Bl!==null&&(Bl.status="fulfilled");var e=Ru;Ru=null,zl=0,Bl=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function z0(e,a){var t=[],l={status:"pending",value:null,reason:null,then:function(u){t.push(u)}};return e.then(function(){l.status="fulfilled",l.value=a;for(var u=0;u<t.length;u++)(0,t[u])(a)},function(u){for(l.status="rejected",l.reason=u,u=0;u<t.length;u++)(0,t[u])(void 0)}),l}var Qn=H.S;H.S=function(e,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&X0(e,a),Qn!==null&&Qn(e,a)};var Qt=qa(null);function ci(){var e=Qt.current;return e!==null?e:ie.pooledCache}function ur(e,a){a===null?ge(Qt,Qt.current):ge(Qt,a.pool)}function Mc(){var e=ci();return e===null?null:{parent:Ce._currentValue,pool:e}}var ro=Error(A(460)),Bc=Error(A(474)),Qr=Error(A(542)),yd={then:function(){}};function Zn(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fo(){}function Uc(e,a,t){switch(t=e[t],t===void 0?e.push(a):t!==a&&(a.then(Fo,Fo),a=t),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Wn(e),e;default:if(typeof a.status=="string")a.then(Fo,Fo);else{if(e=ie,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=a,e.status="pending",e.then(function(l){if(a.status==="pending"){var u=a;u.status="fulfilled",u.value=l}},function(l){if(a.status==="pending"){var u=a;u.status="rejected",u.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Wn(e),e}throw Au=a,ro}}var Au=null;function Kn(){if(Au===null)throw Error(A(459));var e=Au;return Au=null,e}function Wn(e){if(e===ro||e===Qr)throw Error(A(483))}var pt=!1;function mi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ld(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ct(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function It(e,a,t){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ue&2)!==0){var u=l.pending;return u===null?a.next=a:(a.next=u.next,u.next=a),l.pending=a,a=br(e),Dc(e,null,t),a}return Yr(e,l,a,t),br(e)}function Du(e,a,t){if(a=a.updateQueue,a!==null&&(a=a.shared,(t&4194048)!==0)){var l=a.lanes;l&=e.pendingLanes,t|=l,a.lanes=t,tc(e,t)}}function Es(e,a){var t=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,t===l)){var u=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var r={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};o===null?u=o=r:o=o.next=r,t=t.next}while(t!==null);o===null?u=o=a:o=o.next=a}else u=o=a;t={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=a:e.next=a,t.lastBaseUpdate=a}var wd=!1;function Nu(){if(wd){var e=Bl;if(e!==null)throw e}}function Tu(e,a,t,l){wd=!1;var u=e.updateQueue;pt=!1;var o=u.firstBaseUpdate,r=u.lastBaseUpdate,s=u.shared.pending;if(s!==null){u.shared.pending=null;var d=s,n=d.next;d.next=null,r===null?o=n:r.next=n,r=d;var x=e.alternate;x!==null&&(x=x.updateQueue,s=x.lastBaseUpdate,s!==r&&(s===null?x.firstBaseUpdate=n:s.next=n,x.lastBaseUpdate=d))}if(o!==null){var v=u.baseState;r=0,x=n=d=null,s=o;do{var c=s.lane&-536870913,m=c!==s.lane;if(m?($&c)===c:(l&c)===c){c!==0&&c===zl&&(wd=!0),x!==null&&(x=x.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var M=e,k=s;c=a;var _=t;switch(k.tag){case 1:if(M=k.payload,typeof M=="function"){v=M.call(_,v,c);break e}v=M;break e;case 3:M.flags=M.flags&-65537|128;case 0:if(M=k.payload,c=typeof M=="function"?M.call(_,v,c):M,c==null)break e;v=ne({},v,c);break e;case 2:pt=!0}}c=s.callback,c!==null&&(e.flags|=64,m&&(e.flags|=8192),m=u.callbacks,m===null?u.callbacks=[c]:m.push(c))}else m={lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},x===null?(n=x=m,d=v):x=x.next=m,r|=c;if(s=s.next,s===null){if(s=u.shared.pending,s===null)break;m=s,s=m.next,m.next=null,u.lastBaseUpdate=m,u.shared.pending=null}}while(!0);x===null&&(d=v),u.baseState=d,u.firstBaseUpdate=n,u.lastBaseUpdate=x,o===null&&(u.shared.lanes=0),Bt|=r,e.lanes=r,e.memoizedState=v}}function Ec(e,a){if(typeof e!="function")throw Error(A(191,e));e.call(a)}function Gc(e,a){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)Ec(t[e],a)}var _l=qa(null),wr=qa(0);function Jn(e,a){e=lt,ge(wr,e),ge(_l,a),lt=e|a.baseLanes}function Sd(){ge(wr,lt),ge(_l,_l.current)}function pi(){lt=wr.current,Te(_l),Te(wr)}var kt=0,Q=null,re=null,Le=null,Sr=!1,Ul=!1,$t=!1,Cr=0,_u=0,El=null,_0=0;function ve(){throw Error(A(321))}function gi(e,a){if(a===null)return!1;for(var t=0;t<a.length&&t<e.length;t++)if(!da(e[t],a[t]))return!1;return!0}function xi(e,a,t,l,u,o){return kt=o,Q=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,H.H=e===null||e.memoizedState===null?mm:pm,$t=!1,o=t(l,u),$t=!1,Ul&&(o=qc(a,t,l,u)),Oc(e),o}function Oc(e){H.H=Ir;var a=re!==null&&re.next!==null;if(kt=0,Le=re=Q=null,Sr=!1,_u=0,El=null,a)throw Error(A(300));e===null||Ne||(e=e.dependencies,e!==null&&Lr(e)&&(Ne=!0))}function qc(e,a,t,l){Q=e;var u=0;do{if(Ul&&(El=null),_u=0,Ul=!1,25<=u)throw Error(A(301));if(u+=1,Le=re=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}H.H=Z0,o=a(t,l)}while(Ul);return o}function H0(){var e=H.H,a=e.useState()[0];return a=typeof a.then=="function"?so(a):a,e=e.useState()[0],(re!==null?re.memoizedState:null)!==e&&(Q.flags|=1024),a}function hi(){var e=Cr!==0;return Cr=0,e}function bi(e,a,t){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~t}function vi(e){if(Sr){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Sr=!1}kt=0,Le=re=Q=null,Ul=!1,_u=Cr=0,El=null}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Q.memoizedState=Le=e:Le=Le.next=e,Le}function we(){if(re===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=re.next;var a=Le===null?Q.memoizedState:Le.next;if(a!==null)Le=a,re=e;else{if(e===null)throw Q.alternate===null?Error(A(467)):Error(A(310));re=e,e={memoizedState:re.memoizedState,baseState:re.baseState,baseQueue:re.baseQueue,queue:re.queue,next:null},Le===null?Q.memoizedState=Le=e:Le=Le.next=e}return Le}function yi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function so(e){var a=_u;return _u+=1,El===null&&(El=[]),e=Uc(El,e,a),a=Q,(Le===null?a.memoizedState:Le.next)===null&&(a=a.alternate,H.H=a===null||a.memoizedState===null?mm:pm),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return so(e);if(e.$$typeof===Ya)return _e(e)}throw Error(A(438,String(e)))}function Li(e){var a=null,t=Q.updateQueue;if(t!==null&&(a=t.memoCache),a==null){var l=Q.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(u){return u.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),t===null&&(t=yi(),Q.updateQueue=t),t.memoCache=a,t=a.data[a.index],t===void 0)for(t=a.data[a.index]=Array(e),l=0;l<e;l++)t[l]=Ag;return a.index++,t}function at(e,a){return typeof a=="function"?a(e):a}function or(e){var a=we();return wi(a,re,e)}function wi(e,a,t){var l=e.queue;if(l===null)throw Error(A(311));l.lastRenderedReducer=t;var u=e.baseQueue,o=l.pending;if(o!==null){if(u!==null){var r=u.next;u.next=o.next,o.next=r}a.baseQueue=u=o,l.pending=null}if(o=e.baseState,u===null)e.memoizedState=o;else{a=u.next;var s=r=null,d=null,n=a,x=!1;do{var v=n.lane&-536870913;if(v!==n.lane?($&v)===v:(kt&v)===v){var c=n.revertLane;if(c===0)d!==null&&(d=d.next={lane:0,revertLane:0,action:n.action,hasEagerState:n.hasEagerState,eagerState:n.eagerState,next:null}),v===zl&&(x=!0);else if((kt&c)===c){n=n.next,c===zl&&(x=!0);continue}else v={lane:0,revertLane:n.revertLane,action:n.action,hasEagerState:n.hasEagerState,eagerState:n.eagerState,next:null},d===null?(s=d=v,r=o):d=d.next=v,Q.lanes|=c,Bt|=c;v=n.action,$t&&t(o,v),o=n.hasEagerState?n.eagerState:t(o,v)}else c={lane:v,revertLane:n.revertLane,action:n.action,hasEagerState:n.hasEagerState,eagerState:n.eagerState,next:null},d===null?(s=d=c,r=o):d=d.next=c,Q.lanes|=v,Bt|=v;n=n.next}while(n!==null&&n!==a);if(d===null?r=o:d.next=s,!da(o,e.memoizedState)&&(Ne=!0,x&&(t=Bl,t!==null)))throw t;e.memoizedState=o,e.baseState=r,e.baseQueue=d,l.lastRenderedState=o}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Gs(e){var a=we(),t=a.queue;if(t===null)throw Error(A(311));t.lastRenderedReducer=e;var l=t.dispatch,u=t.pending,o=a.memoizedState;if(u!==null){t.pending=null;var r=u=u.next;do o=e(o,r.action),r=r.next;while(r!==u);da(o,a.memoizedState)||(Ne=!0),a.memoizedState=o,a.baseQueue===null&&(a.baseState=o),t.lastRenderedState=o}return[o,l]}function Pc(e,a,t){var l=Q,u=we(),o=ae;if(o){if(t===void 0)throw Error(A(407));t=t()}else t=a();var r=!da((re||u).memoizedState,t);r&&(u.memoizedState=t,Ne=!0),u=u.queue;var s=_c.bind(null,l,u,e);if(io(2048,8,s,[e]),u.getSnapshot!==a||r||Le!==null&&Le.memoizedState.tag&1){if(l.flags|=2048,Hl(9,Kr(),zc.bind(null,l,u,t,a),null),ie===null)throw Error(A(349));o||(kt&124)!==0||Xc(l,a,t)}return t}function Xc(e,a,t){e.flags|=16384,e={getSnapshot:a,value:t},a=Q.updateQueue,a===null?(a=yi(),Q.updateQueue=a,a.stores=[e]):(t=a.stores,t===null?a.stores=[e]:t.push(e))}function zc(e,a,t,l){a.value=t,a.getSnapshot=l,Hc(a)&&Fc(e)}function _c(e,a,t){return t(function(){Hc(a)&&Fc(e)})}function Hc(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!da(e,t)}catch{return!0}}function Fc(e){var a=Wl(e,2);a!==null&&sa(a,e,2)}function Cd(e){var a=Qe();if(typeof e=="function"){var t=e;if(e=t(),$t){vt(!0);try{t()}finally{vt(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:at,lastRenderedState:e},a}function Vc(e,a,t,l){return e.baseState=t,wi(e,re,typeof l=="function"?l:at)}function F0(e,a,t,l,u){if(Wr(e))throw Error(A(485));if(e=a.action,e!==null){var o={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){o.listeners.push(r)}};H.T!==null?t(!0):o.isTransition=!1,l(o),t=a.pending,t===null?(o.next=a.pending=o,jc(a,o)):(o.next=t.next,a.pending=t.next=o)}}function jc(e,a){var t=a.action,l=a.payload,u=e.state;if(a.isTransition){var o=H.T,r={};H.T=r;try{var s=t(u,l),d=H.S;d!==null&&d(r,s),$n(e,a,s)}catch(n){Id(e,a,n)}finally{H.T=o}}else try{o=t(u,l),$n(e,a,o)}catch(n){Id(e,a,n)}}function $n(e,a,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(l){ef(e,a,l)},function(l){return Id(e,a,l)}):ef(e,a,t)}function ef(e,a,t){a.status="fulfilled",a.value=t,Yc(a),e.state=t,a=e.pending,a!==null&&(t=a.next,t===a?e.pending=null:(t=t.next,a.next=t,jc(e,t)))}function Id(e,a,t){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=t,Yc(a),a=a.next;while(a!==l)}e.action=null}function Yc(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function Qc(e,a){return a}function af(e,a){if(ae){var t=ie.formState;if(t!==null){e:{var l=Q;if(ae){if(he){a:{for(var u=he,o=Ba;u.nodeType!==8;){if(!o){u=null;break a}if(u=Sa(u.nextSibling),u===null){u=null;break a}}o=u.data,u=o==="F!"||o==="F"?u:null}if(u){he=Sa(u.nextSibling),l=u.data==="F!";break e}}Wt(l)}l=!1}l&&(a=t[0])}}return t=Qe(),t.memoizedState=t.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qc,lastRenderedState:a},t.queue=l,t=nm.bind(null,Q,l),l.dispatch=t,l=Cd(!1),o=Ri.bind(null,Q,!1,l.queue),l=Qe(),u={state:a,dispatch:null,action:e,pending:null},l.queue=u,t=F0.bind(null,Q,u,o,t),u.dispatch=t,l.memoizedState=e,[a,t,!1]}function tf(e){var a=we();return Zc(a,re,e)}function Zc(e,a,t){if(a=wi(e,a,Qc)[0],e=or(at)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=so(a)}catch(r){throw r===ro?Qr:r}else l=a;a=we();var u=a.queue,o=u.dispatch;return t!==a.memoizedState&&(Q.flags|=2048,Hl(9,Kr(),V0.bind(null,u,t),null)),[l,o,e]}function V0(e,a){e.action=a}function lf(e){var a=we(),t=re;if(t!==null)return Zc(a,t,e);we(),a=a.memoizedState,t=we();var l=t.queue.dispatch;return t.memoizedState=e,[a,l,!1]}function Hl(e,a,t,l){return e={tag:e,create:t,deps:l,inst:a,next:null},a=Q.updateQueue,a===null&&(a=yi(),Q.updateQueue=a),t=a.lastEffect,t===null?a.lastEffect=e.next=e:(l=t.next,t.next=e,e.next=l,a.lastEffect=e),e}function Kr(){return{destroy:void 0,resource:void 0}}function Kc(){return we().memoizedState}function rr(e,a,t,l){var u=Qe();l=l===void 0?null:l,Q.flags|=e,u.memoizedState=Hl(1|a,Kr(),t,l)}function io(e,a,t,l){var u=we();l=l===void 0?null:l;var o=u.memoizedState.inst;re!==null&&l!==null&&gi(l,re.memoizedState.deps)?u.memoizedState=Hl(a,o,t,l):(Q.flags|=e,u.memoizedState=Hl(1|a,o,t,l))}function uf(e,a){rr(8390656,8,e,a)}function Wc(e,a){io(2048,8,e,a)}function Jc(e,a){return io(4,2,e,a)}function $c(e,a){return io(4,4,e,a)}function em(e,a){if(typeof a=="function"){e=e();var t=a(e);return function(){typeof t=="function"?t():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function am(e,a,t){t=t!=null?t.concat([e]):null,io(4,4,em.bind(null,a,e),t)}function Si(){}function tm(e,a){var t=we();a=a===void 0?null:a;var l=t.memoizedState;return a!==null&&gi(a,l[1])?l[0]:(t.memoizedState=[e,a],e)}function lm(e,a){var t=we();a=a===void 0?null:a;var l=t.memoizedState;if(a!==null&&gi(a,l[1]))return l[0];if(l=e(),$t){vt(!0);try{e()}finally{vt(!1)}}return t.memoizedState=[l,a],l}function Ci(e,a,t){return t===void 0||(kt&1073741824)!==0?e.memoizedState=a:(e.memoizedState=t,e=Ym(),Q.lanes|=e,Bt|=e,t)}function um(e,a,t,l){return da(t,a)?t:_l.current!==null?(e=Ci(e,t,l),da(e,a)||(Ne=!0),e):(kt&42)===0?(Ne=!0,e.memoizedState=t):(e=Ym(),Q.lanes|=e,Bt|=e,a)}function om(e,a,t,l,u){var o=te.p;te.p=o!==0&&8>o?o:8;var r=H.T,s={};H.T=s,Ri(e,!1,a,t);try{var d=u(),n=H.S;if(n!==null&&n(s,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var x=z0(d,l);ku(e,a,x,ra(e))}else ku(e,a,l,ra(e))}catch(v){ku(e,a,{then:function(){},status:"rejected",reason:v},ra())}finally{te.p=o,H.T=r}}function j0(){}function Rd(e,a,t,l){if(e.tag!==5)throw Error(A(476));var u=rm(e).queue;om(e,u,a,Ft,t===null?j0:function(){return sm(e),t(l)})}function rm(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:Ft,baseState:Ft,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:at,lastRenderedState:Ft},next:null};var t={};return a.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:at,lastRenderedState:t},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function sm(e){var a=rm(e).next.queue;ku(e,a,{},ra())}function Ii(){return _e(Yu)}function dm(){return we().memoizedState}function im(){return we().memoizedState}function Y0(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var t=ra();e=Ct(t);var l=It(a,e,t);l!==null&&(sa(l,a,t),Du(l,a,t)),a={cache:fi()},e.payload=a;return}a=a.return}}function Q0(e,a,t){var l=ra();t={lane:l,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},Wr(e)?fm(a,t):(t=si(e,a,t,l),t!==null&&(sa(t,e,l),cm(t,a,l)))}function nm(e,a,t){var l=ra();ku(e,a,t,l)}function ku(e,a,t,l){var u={lane:l,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(Wr(e))fm(a,u);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=a.lastRenderedReducer,o!==null))try{var r=a.lastRenderedState,s=o(r,t);if(u.hasEagerState=!0,u.eagerState=s,da(s,r))return Yr(e,a,u,0),ie===null&&jr(),!1}catch{}finally{}if(t=si(e,a,u,l),t!==null)return sa(t,e,l),cm(t,a,l),!0}return!1}function Ri(e,a,t,l){if(l={lane:2,revertLane:Ui(),action:l,hasEagerState:!1,eagerState:null,next:null},Wr(e)){if(a)throw Error(A(479))}else a=si(e,t,l,2),a!==null&&sa(a,e,2)}function Wr(e){var a=e.alternate;return e===Q||a!==null&&a===Q}function fm(e,a){Ul=Sr=!0;var t=e.pending;t===null?a.next=a:(a.next=t.next,t.next=a),e.pending=a}function cm(e,a,t){if((t&4194048)!==0){var l=a.lanes;l&=e.pendingLanes,t|=l,a.lanes=t,tc(e,t)}}var Ir={readContext:_e,use:Zr,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useLayoutEffect:ve,useInsertionEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useSyncExternalStore:ve,useId:ve,useHostTransitionStatus:ve,useFormState:ve,useActionState:ve,useOptimistic:ve,useMemoCache:ve,useCacheRefresh:ve},mm={readContext:_e,use:Zr,useCallback:function(e,a){return Qe().memoizedState=[e,a===void 0?null:a],e},useContext:_e,useEffect:uf,useImperativeHandle:function(e,a,t){t=t!=null?t.concat([e]):null,rr(4194308,4,em.bind(null,a,e),t)},useLayoutEffect:function(e,a){return rr(4194308,4,e,a)},useInsertionEffect:function(e,a){rr(4,2,e,a)},useMemo:function(e,a){var t=Qe();a=a===void 0?null:a;var l=e();if($t){vt(!0);try{e()}finally{vt(!1)}}return t.memoizedState=[l,a],l},useReducer:function(e,a,t){var l=Qe();if(t!==void 0){var u=t(a);if($t){vt(!0);try{t(a)}finally{vt(!1)}}}else u=a;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Q0.bind(null,Q,e),[l.memoizedState,e]},useRef:function(e){var a=Qe();return e={current:e},a.memoizedState=e},useState:function(e){e=Cd(e);var a=e.queue,t=nm.bind(null,Q,a);return a.dispatch=t,[e.memoizedState,t]},useDebugValue:Si,useDeferredValue:function(e,a){var t=Qe();return Ci(t,e,a)},useTransition:function(){var e=Cd(!1);return e=om.bind(null,Q,e.queue,!0,!1),Qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,t){var l=Q,u=Qe();if(ae){if(t===void 0)throw Error(A(407));t=t()}else{if(t=a(),ie===null)throw Error(A(349));($&124)!==0||Xc(l,a,t)}u.memoizedState=t;var o={value:t,getSnapshot:a};return u.queue=o,uf(_c.bind(null,l,o,e),[e]),l.flags|=2048,Hl(9,Kr(),zc.bind(null,l,o,t,a),null),t},useId:function(){var e=Qe(),a=ie.identifierPrefix;if(ae){var t=Za,l=Qa;t=(l&~(1<<32-oa(l)-1)).toString(32)+t,a="\xAB"+a+"R"+t,t=Cr++,0<t&&(a+="H"+t.toString(32)),a+="\xBB"}else t=_0++,a="\xAB"+a+"r"+t.toString(32)+"\xBB";return e.memoizedState=a},useHostTransitionStatus:Ii,useFormState:af,useActionState:af,useOptimistic:function(e){var a=Qe();a.memoizedState=a.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=t,a=Ri.bind(null,Q,!0,t),t.dispatch=a,[e,a]},useMemoCache:Li,useCacheRefresh:function(){return Qe().memoizedState=Y0.bind(null,Q)}},pm={readContext:_e,use:Zr,useCallback:tm,useContext:_e,useEffect:Wc,useImperativeHandle:am,useInsertionEffect:Jc,useLayoutEffect:$c,useMemo:lm,useReducer:or,useRef:Kc,useState:function(){return or(at)},useDebugValue:Si,useDeferredValue:function(e,a){var t=we();return um(t,re.memoizedState,e,a)},useTransition:function(){var e=or(at)[0],a=we().memoizedState;return[typeof e=="boolean"?e:so(e),a]},useSyncExternalStore:Pc,useId:dm,useHostTransitionStatus:Ii,useFormState:tf,useActionState:tf,useOptimistic:function(e,a){var t=we();return Vc(t,re,e,a)},useMemoCache:Li,useCacheRefresh:im},Z0={readContext:_e,use:Zr,useCallback:tm,useContext:_e,useEffect:Wc,useImperativeHandle:am,useInsertionEffect:Jc,useLayoutEffect:$c,useMemo:lm,useReducer:Gs,useRef:Kc,useState:function(){return Gs(at)},useDebugValue:Si,useDeferredValue:function(e,a){var t=we();return re===null?Ci(t,e,a):um(t,re.memoizedState,e,a)},useTransition:function(){var e=Gs(at)[0],a=we().memoizedState;return[typeof e=="boolean"?e:so(e),a]},useSyncExternalStore:Pc,useId:dm,useHostTransitionStatus:Ii,useFormState:lf,useActionState:lf,useOptimistic:function(e,a){var t=we();return re!==null?Vc(t,re,e,a):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:Li,useCacheRefresh:im},Gl=null,Hu=0;function Vo(e){var a=Hu;return Hu+=1,Gl===null&&(Gl=[]),Uc(Gl,e,a)}function pu(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function jo(e,a){throw a.$$typeof===Ig?Error(A(525)):(e=Object.prototype.toString.call(a),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function of(e){var a=e._init;return a(e._payload)}function gm(e){function a(f,i){if(e){var p=f.deletions;p===null?(f.deletions=[i],f.flags|=16):p.push(i)}}function t(f,i){if(!e)return null;for(;i!==null;)a(f,i),i=i.sibling;return null}function l(f){for(var i=new Map;f!==null;)f.key!==null?i.set(f.key,f):i.set(f.index,f),f=f.sibling;return i}function u(f,i){return f=Ja(f,i),f.index=0,f.sibling=null,f}function o(f,i,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<i?(f.flags|=67108866,i):p):(f.flags|=67108866,i)):(f.flags|=1048576,i)}function r(f){return e&&f.alternate===null&&(f.flags|=67108866),f}function s(f,i,p,g){return i===null||i.tag!==6?(i=Bs(p,f.mode,g),i.return=f,i):(i=u(i,p),i.return=f,i)}function d(f,i,p,g){var D=p.type;return D===bl?x(f,i,p.props.children,g,p.key):i!==null&&(i.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===mt&&of(D)===i.type)?(i=u(i,p.props),pu(i,p),i.return=f,i):(i=lr(p.type,p.key,p.props,null,f.mode,g),pu(i,p),i.return=f,i)}function n(f,i,p,g){return i===null||i.tag!==4||i.stateNode.containerInfo!==p.containerInfo||i.stateNode.implementation!==p.implementation?(i=Us(p,f.mode,g),i.return=f,i):(i=u(i,p.children||[]),i.return=f,i)}function x(f,i,p,g,D){return i===null||i.tag!==7?(i=Vt(p,f.mode,g,D),i.return=f,i):(i=u(i,p),i.return=f,i)}function v(f,i,p){if(typeof i=="string"&&i!==""||typeof i=="number"||typeof i=="bigint")return i=Bs(""+i,f.mode,p),i.return=f,i;if(typeof i=="object"&&i!==null){switch(i.$$typeof){case Go:return p=lr(i.type,i.key,i.props,null,f.mode,p),pu(p,i),p.return=f,p;case vu:return i=Us(i,f.mode,p),i.return=f,i;case mt:var g=i._init;return i=g(i._payload),v(f,i,p)}if(yu(i)||fu(i))return i=Vt(i,f.mode,p,null),i.return=f,i;if(typeof i.then=="function")return v(f,Vo(i),p);if(i.$$typeof===Ya)return v(f,Ho(f,i),p);jo(f,i)}return null}function c(f,i,p,g){var D=i!==null?i.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return D!==null?null:s(f,i,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Go:return p.key===D?d(f,i,p,g):null;case vu:return p.key===D?n(f,i,p,g):null;case mt:return D=p._init,p=D(p._payload),c(f,i,p,g)}if(yu(p)||fu(p))return D!==null?null:x(f,i,p,g,null);if(typeof p.then=="function")return c(f,i,Vo(p),g);if(p.$$typeof===Ya)return c(f,i,Ho(f,p),g);jo(f,p)}return null}function m(f,i,p,g,D){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return f=f.get(p)||null,s(i,f,""+g,D);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Go:return f=f.get(g.key===null?p:g.key)||null,d(i,f,g,D);case vu:return f=f.get(g.key===null?p:g.key)||null,n(i,f,g,D);case mt:var U=g._init;return g=U(g._payload),m(f,i,p,g,D)}if(yu(g)||fu(g))return f=f.get(p)||null,x(i,f,g,D,null);if(typeof g.then=="function")return m(f,i,p,Vo(g),D);if(g.$$typeof===Ya)return m(f,i,p,Ho(i,g),D);jo(i,g)}return null}function M(f,i,p,g){for(var D=null,U=null,R=i,G=i=0,N=null;R!==null&&G<p.length;G++){R.index>G?(N=R,R=null):N=R.sibling;var b=c(f,R,p[G],g);if(b===null){R===null&&(R=N);break}e&&R&&b.alternate===null&&a(f,R),i=o(b,i,G),U===null?D=b:U.sibling=b,U=b,R=N}if(G===p.length)return t(f,R),ae&&_t(f,G),D;if(R===null){for(;G<p.length;G++)R=v(f,p[G],g),R!==null&&(i=o(R,i,G),U===null?D=R:U.sibling=R,U=R);return ae&&_t(f,G),D}for(R=l(R);G<p.length;G++)N=m(R,f,G,p[G],g),N!==null&&(e&&N.alternate!==null&&R.delete(N.key===null?G:N.key),i=o(N,i,G),U===null?D=N:U.sibling=N,U=N);return e&&R.forEach(function(X){return a(f,X)}),ae&&_t(f,G),D}function k(f,i,p,g){if(p==null)throw Error(A(151));for(var D=null,U=null,R=i,G=i=0,N=null,b=p.next();R!==null&&!b.done;G++,b=p.next()){R.index>G?(N=R,R=null):N=R.sibling;var X=c(f,R,b.value,g);if(X===null){R===null&&(R=N);break}e&&R&&X.alternate===null&&a(f,R),i=o(X,i,G),U===null?D=X:U.sibling=X,U=X,R=N}if(b.done)return t(f,R),ae&&_t(f,G),D;if(R===null){for(;!b.done;G++,b=p.next())b=v(f,b.value,g),b!==null&&(i=o(b,i,G),U===null?D=b:U.sibling=b,U=b);return ae&&_t(f,G),D}for(R=l(R);!b.done;G++,b=p.next())b=m(R,f,G,b.value,g),b!==null&&(e&&b.alternate!==null&&R.delete(b.key===null?G:b.key),i=o(b,i,G),U===null?D=b:U.sibling=b,U=b);return e&&R.forEach(function(Pe){return a(f,Pe)}),ae&&_t(f,G),D}function _(f,i,p,g){if(typeof p=="object"&&p!==null&&p.type===bl&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Go:e:{for(var D=p.key;i!==null;){if(i.key===D){if(D=p.type,D===bl){if(i.tag===7){t(f,i.sibling),g=u(i,p.props.children),g.return=f,f=g;break e}}else if(i.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===mt&&of(D)===i.type){t(f,i.sibling),g=u(i,p.props),pu(g,p),g.return=f,f=g;break e}t(f,i);break}else a(f,i);i=i.sibling}p.type===bl?(g=Vt(p.props.children,f.mode,g,p.key),g.return=f,f=g):(g=lr(p.type,p.key,p.props,null,f.mode,g),pu(g,p),g.return=f,f=g)}return r(f);case vu:e:{for(D=p.key;i!==null;){if(i.key===D)if(i.tag===4&&i.stateNode.containerInfo===p.containerInfo&&i.stateNode.implementation===p.implementation){t(f,i.sibling),g=u(i,p.children||[]),g.return=f,f=g;break e}else{t(f,i);break}else a(f,i);i=i.sibling}g=Us(p,f.mode,g),g.return=f,f=g}return r(f);case mt:return D=p._init,p=D(p._payload),_(f,i,p,g)}if(yu(p))return M(f,i,p,g);if(fu(p)){if(D=fu(p),typeof D!="function")throw Error(A(150));return p=D.call(p),k(f,i,p,g)}if(typeof p.then=="function")return _(f,i,Vo(p),g);if(p.$$typeof===Ya)return _(f,i,Ho(f,p),g);jo(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,i!==null&&i.tag===6?(t(f,i.sibling),g=u(i,p),g.return=f,f=g):(t(f,i),g=Bs(p,f.mode,g),g.return=f,f=g),r(f)):t(f,i)}return function(f,i,p,g){try{Hu=0;var D=_(f,i,p,g);return Gl=null,D}catch(R){if(R===ro||R===Qr)throw R;var U=la(29,R,null,f.mode);return U.lanes=g,U.return=f,U}finally{}}}var Fl=gm(!0),xm=gm(!1),ha=qa(null),Oa=null;function xt(e){var a=e.alternate;ge(Ie,Ie.current&1),ge(ha,e),Oa===null&&(a===null||_l.current!==null||a.memoizedState!==null)&&(Oa=e)}function hm(e){if(e.tag===22){if(ge(Ie,Ie.current),ge(ha,e),Oa===null){var a=e.alternate;a!==null&&a.memoizedState!==null&&(Oa=e)}}else ht(e)}function ht(){ge(Ie,Ie.current),ge(ha,ha.current)}function Wa(e){Te(ha),Oa===e&&(Oa=null),Te(Ie)}var Ie=qa(0);function Rr(e){for(var a=e;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||Hd(t)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function Os(e,a,t,l){a=e.memoizedState,t=t(l,a),t=t==null?a:ne({},a,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Ad={enqueueSetState:function(e,a,t){e=e._reactInternals;var l=ra(),u=Ct(l);u.payload=a,t!=null&&(u.callback=t),a=It(e,u,l),a!==null&&(sa(a,e,l),Du(a,e,l))},enqueueReplaceState:function(e,a,t){e=e._reactInternals;var l=ra(),u=Ct(l);u.tag=1,u.payload=a,t!=null&&(u.callback=t),a=It(e,u,l),a!==null&&(sa(a,e,l),Du(a,e,l))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var t=ra(),l=Ct(t);l.tag=2,a!=null&&(l.callback=a),a=It(e,l,t),a!==null&&(sa(a,e,t),Du(a,e,t))}};function rf(e,a,t,l,u,o,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,r):a.prototype&&a.prototype.isPureReactComponent?!Xu(t,l)||!Xu(u,o):!0}function sf(e,a,t,l){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,l),a.state!==e&&Ad.enqueueReplaceState(a,a.state,null)}function el(e,a){var t=a;if("ref"in a){t={};for(var l in a)l!=="ref"&&(t[l]=a[l])}if(e=e.defaultProps){t===a&&(t=ne({},t));for(var u in e)t[u]===void 0&&(t[u]=e[u])}return t}var Ar=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function bm(e){Ar(e)}function vm(e){console.error(e)}function ym(e){Ar(e)}function Dr(e,a){try{var t=e.onUncaughtError;t(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function df(e,a,t){try{var l=e.onCaughtError;l(t.value,{componentStack:t.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Dd(e,a,t){return t=Ct(t),t.tag=3,t.payload={element:null},t.callback=function(){Dr(e,a)},t}function Lm(e){return e=Ct(e),e.tag=3,e}function wm(e,a,t,l){var u=t.type.getDerivedStateFromError;if(typeof u=="function"){var o=l.value;e.payload=function(){return u(o)},e.callback=function(){df(a,t,l)}}var r=t.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){df(a,t,l),typeof u!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this));var s=l.stack;this.componentDidCatch(l.value,{componentStack:s!==null?s:""})})}function K0(e,a,t,l,u){if(t.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=t.alternate,a!==null&&uo(a,t,u,!0),t=ha.current,t!==null){switch(t.tag){case 13:return Oa===null?Gd():t.alternate===null&&be===0&&(be=3),t.flags&=-257,t.flags|=65536,t.lanes=u,l===yd?t.flags|=16384:(a=t.updateQueue,a===null?t.updateQueue=new Set([l]):a.add(l),Qs(e,l,u)),!1;case 22:return t.flags|=65536,l===yd?t.flags|=16384:(a=t.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},t.updateQueue=a):(t=a.retryQueue,t===null?a.retryQueue=new Set([l]):t.add(l)),Qs(e,l,u)),!1}throw Error(A(435,t.tag))}return Qs(e,l,u),Gd(),!1}if(ae)return a=ha.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=u,l!==gd&&(e=Error(A(422),{cause:l}),zu(ga(e,t)))):(l!==gd&&(a=Error(A(423),{cause:l}),zu(ga(a,t))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=ga(l,t),u=Dd(e.stateNode,l,u),Es(e,u),be!==4&&(be=2)),!1;var o=Error(A(520),{cause:l});if(o=ga(o,t),Uu===null?Uu=[o]:Uu.push(o),be!==4&&(be=2),a===null)return!0;l=ga(l,t),t=a;do{switch(t.tag){case 3:return t.flags|=65536,e=u&-u,t.lanes|=e,e=Dd(t.stateNode,l,e),Es(t,e),!1;case 1:if(a=t.type,o=t.stateNode,(t.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Rt===null||!Rt.has(o))))return t.flags|=65536,u&=-u,t.lanes|=u,u=Lm(u),wm(u,e,t,l),Es(t,u),!1}t=t.return}while(t!==null);return!1}var Sm=Error(A(461)),Ne=!1;function Ue(e,a,t,l){a.child=e===null?xm(a,null,t,l):Fl(a,e.child,t,l)}function nf(e,a,t,l,u){t=t.render;var o=a.ref;if("ref"in l){var r={};for(var s in l)s!=="ref"&&(r[s]=l[s])}else r=l;return Jt(a),l=xi(e,a,t,r,o,u),s=hi(),e!==null&&!Ne?(bi(e,a,u),tt(e,a,u)):(ae&&s&&ii(a),a.flags|=1,Ue(e,a,l,u),a.child)}function ff(e,a,t,l,u){if(e===null){var o=t.type;return typeof o=="function"&&!di(o)&&o.defaultProps===void 0&&t.compare===null?(a.tag=15,a.type=o,Cm(e,a,o,l,u)):(e=lr(t.type,null,l,a,a.mode,u),e.ref=a.ref,e.return=a,a.child=e)}if(o=e.child,!Ai(e,u)){var r=o.memoizedProps;if(t=t.compare,t=t!==null?t:Xu,t(r,l)&&e.ref===a.ref)return tt(e,a,u)}return a.flags|=1,e=Ja(o,l),e.ref=a.ref,e.return=a,a.child=e}function Cm(e,a,t,l,u){if(e!==null){var o=e.memoizedProps;if(Xu(o,l)&&e.ref===a.ref)if(Ne=!1,a.pendingProps=l=o,Ai(e,u))(e.flags&131072)!==0&&(Ne=!0);else return a.lanes=e.lanes,tt(e,a,u)}return Nd(e,a,t,l,u)}function Im(e,a,t){var l=a.pendingProps,u=l.children,o=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((a.flags&128)!==0){if(l=o!==null?o.baseLanes|t:t,e!==null){for(u=a.child=e.child,o=0;u!==null;)o=o|u.lanes|u.childLanes,u=u.sibling;a.childLanes=o&~l}else a.childLanes=0,a.child=null;return cf(e,a,l,t)}if((t&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&ur(a,o!==null?o.cachePool:null),o!==null?Jn(a,o):Sd(),hm(a);else return a.lanes=a.childLanes=536870912,cf(e,a,o!==null?o.baseLanes|t:t,t)}else o!==null?(ur(a,o.cachePool),Jn(a,o),ht(a),a.memoizedState=null):(e!==null&&ur(a,null),Sd(),ht(a));return Ue(e,a,u,t),a.child}function cf(e,a,t,l){var u=ci();return u=u===null?null:{parent:Ce._currentValue,pool:u},a.memoizedState={baseLanes:t,cachePool:u},e!==null&&ur(a,null),Sd(),hm(a),e!==null&&uo(e,a,l,!0),null}function sr(e,a){var t=a.ref;if(t===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(A(284));(e===null||e.ref!==t)&&(a.flags|=4194816)}}function Nd(e,a,t,l,u){return Jt(a),t=xi(e,a,t,l,void 0,u),l=hi(),e!==null&&!Ne?(bi(e,a,u),tt(e,a,u)):(ae&&l&&ii(a),a.flags|=1,Ue(e,a,t,u),a.child)}function mf(e,a,t,l,u,o){return Jt(a),a.updateQueue=null,t=qc(a,l,t,u),Oc(e),l=hi(),e!==null&&!Ne?(bi(e,a,o),tt(e,a,o)):(ae&&l&&ii(a),a.flags|=1,Ue(e,a,t,o),a.child)}function pf(e,a,t,l,u){if(Jt(a),a.stateNode===null){var o=Rl,r=t.contextType;typeof r=="object"&&r!==null&&(o=_e(r)),o=new t(l,o),a.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Ad,a.stateNode=o,o._reactInternals=a,o=a.stateNode,o.props=l,o.state=a.memoizedState,o.refs={},mi(a),r=t.contextType,o.context=typeof r=="object"&&r!==null?_e(r):Rl,o.state=a.memoizedState,r=t.getDerivedStateFromProps,typeof r=="function"&&(Os(a,t,r,l),o.state=a.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(r=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),r!==o.state&&Ad.enqueueReplaceState(o,o.state,null),Tu(a,l,o,u),Nu(),o.state=a.memoizedState),typeof o.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(e===null){o=a.stateNode;var s=a.memoizedProps,d=el(t,s);o.props=d;var n=o.context,x=t.contextType;r=Rl,typeof x=="object"&&x!==null&&(r=_e(x));var v=t.getDerivedStateFromProps;x=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=a.pendingProps!==s,x||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||n!==r)&&sf(a,o,l,r),pt=!1;var c=a.memoizedState;o.state=c,Tu(a,l,o,u),Nu(),n=a.memoizedState,s||c!==n||pt?(typeof v=="function"&&(Os(a,t,v,l),n=a.memoizedState),(d=pt||rf(a,t,d,l,c,n,r))?(x||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(a.flags|=4194308)):(typeof o.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=n),o.props=l,o.state=n,o.context=r,l=d):(typeof o.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{o=a.stateNode,Ld(e,a),r=a.memoizedProps,x=el(t,r),o.props=x,v=a.pendingProps,c=o.context,n=t.contextType,d=Rl,typeof n=="object"&&n!==null&&(d=_e(n)),s=t.getDerivedStateFromProps,(n=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r!==v||c!==d)&&sf(a,o,l,d),pt=!1,c=a.memoizedState,o.state=c,Tu(a,l,o,u),Nu();var m=a.memoizedState;r!==v||c!==m||pt||e!==null&&e.dependencies!==null&&Lr(e.dependencies)?(typeof s=="function"&&(Os(a,t,s,l),m=a.memoizedState),(x=pt||rf(a,t,x,l,c,m,d)||e!==null&&e.dependencies!==null&&Lr(e.dependencies))?(n||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,m,d),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,m,d)),typeof o.componentDidUpdate=="function"&&(a.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof o.componentDidUpdate!="function"||r===e.memoizedProps&&c===e.memoizedState||(a.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&c===e.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=m),o.props=l,o.state=m,o.context=d,l=x):(typeof o.componentDidUpdate!="function"||r===e.memoizedProps&&c===e.memoizedState||(a.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&c===e.memoizedState||(a.flags|=1024),l=!1)}return o=l,sr(e,a),l=(a.flags&128)!==0,o||l?(o=a.stateNode,t=l&&typeof t.getDerivedStateFromError!="function"?null:o.render(),a.flags|=1,e!==null&&l?(a.child=Fl(a,e.child,null,u),a.child=Fl(a,null,t,u)):Ue(e,a,t,u),a.memoizedState=o.state,e=a.child):e=tt(e,a,u),e}function gf(e,a,t,l){return lo(),a.flags|=256,Ue(e,a,t,l),a.child}var qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ps(e){return{baseLanes:e,cachePool:Mc()}}function Xs(e,a,t){return e=e!==null?e.childLanes&~t:0,a&&(e|=xa),e}function Rm(e,a,t){var l=a.pendingProps,u=!1,o=(a.flags&128)!==0,r;if((r=o)||(r=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),r&&(u=!0,a.flags&=-129),r=(a.flags&32)!==0,a.flags&=-33,e===null){if(ae){if(u?xt(a):ht(a),ae){var s=he,d;if(d=s){e:{for(d=s,s=Ba;d.nodeType!==8;){if(!s){s=null;break e}if(d=Sa(d.nextSibling),d===null){s=null;break e}}s=d}s!==null?(a.memoizedState={dehydrated:s,treeContext:jt!==null?{id:Qa,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},d=la(18,null,null,0),d.stateNode=s,d.return=a,a.child=d,Ye=a,he=null,d=!0):d=!1}d||Wt(a)}if(s=a.memoizedState,s!==null&&(s=s.dehydrated,s!==null))return Hd(s)?a.lanes=32:a.lanes=536870912,null;Wa(a)}return s=l.children,l=l.fallback,u?(ht(a),u=a.mode,s=Nr({mode:"hidden",children:s},u),l=Vt(l,u,t,null),s.return=a,l.return=a,s.sibling=l,a.child=s,u=a.child,u.memoizedState=Ps(t),u.childLanes=Xs(e,r,t),a.memoizedState=qs,l):(xt(a),Td(a,s))}if(d=e.memoizedState,d!==null&&(s=d.dehydrated,s!==null)){if(o)a.flags&256?(xt(a),a.flags&=-257,a=zs(e,a,t)):a.memoizedState!==null?(ht(a),a.child=e.child,a.flags|=128,a=null):(ht(a),u=l.fallback,s=a.mode,l=Nr({mode:"visible",children:l.children},s),u=Vt(u,s,t,null),u.flags|=2,l.return=a,u.return=a,l.sibling=u,a.child=l,Fl(a,e.child,null,t),l=a.child,l.memoizedState=Ps(t),l.childLanes=Xs(e,r,t),a.memoizedState=qs,a=u);else if(xt(a),Hd(s)){if(r=s.nextSibling&&s.nextSibling.dataset,r)var n=r.dgst;r=n,l=Error(A(419)),l.stack="",l.digest=r,zu({value:l,source:null,stack:null}),a=zs(e,a,t)}else if(Ne||uo(e,a,t,!1),r=(t&e.childLanes)!==0,Ne||r){if(r=ie,r!==null&&(l=t&-t,l=(l&42)!==0?1:Wd(l),l=(l&(r.suspendedLanes|t))!==0?0:l,l!==0&&l!==d.retryLane))throw d.retryLane=l,Wl(e,l),sa(r,e,l),Sm;s.data==="$?"||Gd(),a=zs(e,a,t)}else s.data==="$?"?(a.flags|=192,a.child=e.child,a=null):(e=d.treeContext,he=Sa(s.nextSibling),Ye=a,ae=!0,Yt=null,Ba=!1,e!==null&&(ca[ma++]=Qa,ca[ma++]=Za,ca[ma++]=jt,Qa=e.id,Za=e.overflow,jt=a),a=Td(a,l.children),a.flags|=4096);return a}return u?(ht(a),u=l.fallback,s=a.mode,d=e.child,n=d.sibling,l=Ja(d,{mode:"hidden",children:l.children}),l.subtreeFlags=d.subtreeFlags&65011712,n!==null?u=Ja(n,u):(u=Vt(u,s,t,null),u.flags|=2),u.return=a,l.return=a,l.sibling=u,a.child=l,l=u,u=a.child,s=e.child.memoizedState,s===null?s=Ps(t):(d=s.cachePool,d!==null?(n=Ce._currentValue,d=d.parent!==n?{parent:n,pool:n}:d):d=Mc(),s={baseLanes:s.baseLanes|t,cachePool:d}),u.memoizedState=s,u.childLanes=Xs(e,r,t),a.memoizedState=qs,l):(xt(a),t=e.child,e=t.sibling,t=Ja(t,{mode:"visible",children:l.children}),t.return=a,t.sibling=null,e!==null&&(r=a.deletions,r===null?(a.deletions=[e],a.flags|=16):r.push(e)),a.child=t,a.memoizedState=null,t)}function Td(e,a){return a=Nr({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function Nr(e,a){return e=la(22,e,null,a),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function zs(e,a,t){return Fl(a,e.child,null,t),e=Td(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function xf(e,a,t){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a),hd(e.return,a,t)}function _s(e,a,t,l,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:t,tailMode:u}:(o.isBackwards=a,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=t,o.tailMode=u)}function Am(e,a,t){var l=a.pendingProps,u=l.revealOrder,o=l.tail;if(Ue(e,a,l.children,t),l=Ie.current,(l&2)!==0)l=l&1|2,a.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xf(e,t,a);else if(e.tag===19)xf(e,t,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(ge(Ie,l),u){case"forwards":for(t=a.child,u=null;t!==null;)e=t.alternate,e!==null&&Rr(e)===null&&(u=t),t=t.sibling;t=u,t===null?(u=a.child,a.child=null):(u=t.sibling,t.sibling=null),_s(a,!1,u,t,o);break;case"backwards":for(t=null,u=a.child,a.child=null;u!==null;){if(e=u.alternate,e!==null&&Rr(e)===null){a.child=u;break}e=u.sibling,u.sibling=t,t=u,u=e}_s(a,!0,t,null,o);break;case"together":_s(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function tt(e,a,t){if(e!==null&&(a.dependencies=e.dependencies),Bt|=a.lanes,(t&a.childLanes)===0)if(e!==null){if(uo(e,a,t,!1),(t&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(A(153));if(a.child!==null){for(e=a.child,t=Ja(e,e.pendingProps),a.child=t,t.return=a;e.sibling!==null;)e=e.sibling,t=t.sibling=Ja(e,e.pendingProps),t.return=a;t.sibling=null}return a.child}function Ai(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Lr(e)))}function W0(e,a,t){switch(a.tag){case 3:mr(a,a.stateNode.containerInfo),gt(a,Ce,e.memoizedState.cache),lo();break;case 27:case 5:od(a);break;case 4:mr(a,a.stateNode.containerInfo);break;case 10:gt(a,a.type,a.memoizedProps.value);break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(xt(a),a.flags|=128,null):(t&a.child.childLanes)!==0?Rm(e,a,t):(xt(a),e=tt(e,a,t),e!==null?e.sibling:null);xt(a);break;case 19:var u=(e.flags&128)!==0;if(l=(t&a.childLanes)!==0,l||(uo(e,a,t,!1),l=(t&a.childLanes)!==0),u){if(l)return Am(e,a,t);a.flags|=128}if(u=a.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ge(Ie,Ie.current),l)break;return null;case 22:case 23:return a.lanes=0,Im(e,a,t);case 24:gt(a,Ce,e.memoizedState.cache)}return tt(e,a,t)}function Dm(e,a,t){if(e!==null)if(e.memoizedProps!==a.pendingProps)Ne=!0;else{if(!Ai(e,t)&&(a.flags&128)===0)return Ne=!1,W0(e,a,t);Ne=(e.flags&131072)!==0}else Ne=!1,ae&&(a.flags&1048576)!==0&&Tc(a,yr,a.index);switch(a.lanes=0,a.tag){case 16:e:{e=a.pendingProps;var l=a.elementType,u=l._init;if(l=u(l._payload),a.type=l,typeof l=="function")di(l)?(e=el(l,e),a.tag=1,a=pf(null,a,l,e,t)):(a.tag=0,a=Nd(null,a,l,e,t));else{if(l!=null){if(u=l.$$typeof,u===Qd){a.tag=11,a=nf(null,a,l,e,t);break e}else if(u===Zd){a.tag=14,a=ff(null,a,l,e,t);break e}}throw a=ld(l)||l,Error(A(306,a,""))}}return a;case 0:return Nd(e,a,a.type,a.pendingProps,t);case 1:return l=a.type,u=el(l,a.pendingProps),pf(e,a,l,u,t);case 3:e:{if(mr(a,a.stateNode.containerInfo),e===null)throw Error(A(387));l=a.pendingProps;var o=a.memoizedState;u=o.element,Ld(e,a),Tu(a,l,null,t);var r=a.memoizedState;if(l=r.cache,gt(a,Ce,l),l!==o.cache&&bd(a,[Ce],t,!0),Nu(),l=r.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:r.cache},a.updateQueue.baseState=o,a.memoizedState=o,a.flags&256){a=gf(e,a,l,t);break e}else if(l!==u){u=ga(Error(A(424)),a),zu(u),a=gf(e,a,l,t);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(he=Sa(e.firstChild),Ye=a,ae=!0,Yt=null,Ba=!0,t=xm(a,null,l,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(lo(),l===u){a=tt(e,a,t);break e}Ue(e,a,l,t)}a=a.child}return a;case 26:return sr(e,a),e===null?(t=Ef(a.type,null,a.pendingProps,null))?a.memoizedState=t:ae||(t=a.type,e=a.pendingProps,l=Gr(St.current).createElement(t),l[ze]=a,l[We]=e,Ge(l,t,e),De(l),a.stateNode=l):a.memoizedState=Ef(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return od(a),e===null&&ae&&(l=a.stateNode=pp(a.type,a.pendingProps,St.current),Ye=a,Ba=!0,u=he,Et(a.type)?(Fd=u,he=Sa(l.firstChild)):he=u),Ue(e,a,a.pendingProps.children,t),sr(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&ae&&((u=l=he)&&(l=Sx(l,a.type,a.pendingProps,Ba),l!==null?(a.stateNode=l,Ye=a,he=Sa(l.firstChild),Ba=!1,u=!0):u=!1),u||Wt(a)),od(a),u=a.type,o=a.pendingProps,r=e!==null?e.memoizedProps:null,l=o.children,zd(u,o)?l=null:r!==null&&zd(u,r)&&(a.flags|=32),a.memoizedState!==null&&(u=xi(e,a,H0,null,null,t),Yu._currentValue=u),sr(e,a),Ue(e,a,l,t),a.child;case 6:return e===null&&ae&&((e=t=he)&&(t=Cx(t,a.pendingProps,Ba),t!==null?(a.stateNode=t,Ye=a,he=null,e=!0):e=!1),e||Wt(a)),null;case 13:return Rm(e,a,t);case 4:return mr(a,a.stateNode.containerInfo),l=a.pendingProps,e===null?a.child=Fl(a,null,l,t):Ue(e,a,l,t),a.child;case 11:return nf(e,a,a.type,a.pendingProps,t);case 7:return Ue(e,a,a.pendingProps,t),a.child;case 8:return Ue(e,a,a.pendingProps.children,t),a.child;case 12:return Ue(e,a,a.pendingProps.children,t),a.child;case 10:return l=a.pendingProps,gt(a,a.type,l.value),Ue(e,a,l.children,t),a.child;case 9:return u=a.type._context,l=a.pendingProps.children,Jt(a),u=_e(u),l=l(u),a.flags|=1,Ue(e,a,l,t),a.child;case 14:return ff(e,a,a.type,a.pendingProps,t);case 15:return Cm(e,a,a.type,a.pendingProps,t);case 19:return Am(e,a,t);case 31:return l=a.pendingProps,t=a.mode,l={mode:l.mode,children:l.children},e===null?(t=Nr(l,t),t.ref=a.ref,a.child=t,t.return=a,a=t):(t=Ja(e.child,l),t.ref=a.ref,a.child=t,t.return=a,a=t),a;case 22:return Im(e,a,t);case 24:return Jt(a),l=_e(Ce),e===null?(u=ci(),u===null&&(u=ie,o=fi(),u.pooledCache=o,o.refCount++,o!==null&&(u.pooledCacheLanes|=t),u=o),a.memoizedState={parent:l,cache:u},mi(a),gt(a,Ce,u)):((e.lanes&t)!==0&&(Ld(e,a),Tu(a,null,null,t),Nu()),u=e.memoizedState,o=a.memoizedState,u.parent!==l?(u={parent:l,cache:l},a.memoizedState=u,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=u),gt(a,Ce,l)):(l=o.cache,gt(a,Ce,l),l!==u.cache&&bd(a,[Ce],t,!0))),Ue(e,a,a.pendingProps.children,t),a.child;case 29:throw a.pendingProps}throw Error(A(156,a.tag))}function Fa(e){e.flags|=4}function hf(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hp(a)){if(a=ha.current,a!==null&&(($&4194048)===$?Oa!==null:($&62914560)!==$&&($&536870912)===0||a!==Oa))throw Au=yd,Bc;e.flags|=8192}}function Yo(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?ec():536870912,e.lanes|=a,Vl|=a)}function gu(e,a){if(!ae)switch(e.tailMode){case"hidden":a=e.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function xe(e){var a=e.alternate!==null&&e.alternate.child===e.child,t=0,l=0;if(a)for(var u=e.child;u!==null;)t|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)t|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=t,a}function J0(e,a,t){var l=a.pendingProps;switch(ni(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(a),null;case 1:return xe(a),null;case 3:return t=a.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),$a(Ce),ql(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(mu(a)?Fa(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,jn())),xe(a),null;case 26:return t=a.memoizedState,e===null?(Fa(a),t!==null?(xe(a),hf(a,t)):(xe(a),a.flags&=-16777217)):t?t!==e.memoizedState?(Fa(a),xe(a),hf(a,t)):(xe(a),a.flags&=-16777217):(e.memoizedProps!==l&&Fa(a),xe(a),a.flags&=-16777217),null;case 27:pr(a),t=St.current;var u=a.type;if(e!==null&&a.stateNode!=null)e.memoizedProps!==l&&Fa(a);else{if(!l){if(a.stateNode===null)throw Error(A(166));return xe(a),null}e=Ea.current,mu(a)?Fn(a,e):(e=pp(u,l,t),a.stateNode=e,Fa(a))}return xe(a),null;case 5:if(pr(a),t=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==l&&Fa(a);else{if(!l){if(a.stateNode===null)throw Error(A(166));return xe(a),null}if(e=Ea.current,mu(a))Fn(a,e);else{switch(u=Gr(St.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",t);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;default:switch(t){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",t);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(t,{is:l.is}):u.createElement(t)}}e[ze]=a,e[We]=l;e:for(u=a.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}a.stateNode=e;e:switch(Ge(e,t,l),t){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Fa(a)}}return xe(a),a.flags&=-16777217,null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==l&&Fa(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(A(166));if(e=St.current,mu(a)){if(e=a.stateNode,t=a.memoizedProps,l=null,u=Ye,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ze]=a,e=!!(e.nodeValue===t||l!==null&&l.suppressHydrationWarning===!0||fp(e.nodeValue,t)),e||Wt(a)}else e=Gr(e).createTextNode(l),e[ze]=a,a.stateNode=e}return xe(a),null;case 13:if(l=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=mu(a),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(A(318));if(u=a.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(A(317));u[ze]=a}else lo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;xe(a),u=!1}else u=jn(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return a.flags&256?(Wa(a),a):(Wa(a),null)}if(Wa(a),(a.flags&128)!==0)return a.lanes=t,a;if(t=l!==null,e=e!==null&&e.memoizedState!==null,t){l=a.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var o=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==u&&(l.flags|=2048)}return t!==e&&t&&(a.child.flags|=8192),Yo(a,a.updateQueue),xe(a),null;case 4:return ql(),e===null&&Ei(a.stateNode.containerInfo),xe(a),null;case 10:return $a(a.type),xe(a),null;case 19:if(Te(Ie),u=a.memoizedState,u===null)return xe(a),null;if(l=(a.flags&128)!==0,o=u.rendering,o===null)if(l)gu(u,!1);else{if(be!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(o=Rr(e),o!==null){for(a.flags|=128,gu(u,!1),e=o.updateQueue,a.updateQueue=e,Yo(a,e),a.subtreeFlags=0,e=t,t=a.child;t!==null;)Nc(t,e),t=t.sibling;return ge(Ie,Ie.current&1|2),a.child}e=e.sibling}u.tail!==null&&Ga()>kr&&(a.flags|=128,l=!0,gu(u,!1),a.lanes=4194304)}else{if(!l)if(e=Rr(o),e!==null){if(a.flags|=128,l=!0,e=e.updateQueue,a.updateQueue=e,Yo(a,e),gu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!ae)return xe(a),null}else 2*Ga()-u.renderingStartTime>kr&&t!==536870912&&(a.flags|=128,l=!0,gu(u,!1),a.lanes=4194304);u.isBackwards?(o.sibling=a.child,a.child=o):(e=u.last,e!==null?e.sibling=o:a.child=o,u.last=o)}return u.tail!==null?(a=u.tail,u.rendering=a,u.tail=a.sibling,u.renderingStartTime=Ga(),a.sibling=null,e=Ie.current,ge(Ie,l?e&1|2:e&1),a):(xe(a),null);case 22:case 23:return Wa(a),pi(),l=a.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(t&536870912)!==0&&(a.flags&128)===0&&(xe(a),a.subtreeFlags&6&&(a.flags|=8192)):xe(a),t=a.updateQueue,t!==null&&Yo(a,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==t&&(a.flags|=2048),e!==null&&Te(Qt),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),a.memoizedState.cache!==t&&(a.flags|=2048),$a(Ce),xe(a),null;case 25:return null;case 30:return null}throw Error(A(156,a.tag))}function $0(e,a){switch(ni(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return $a(Ce),ql(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return pr(a),null;case 13:if(Wa(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(A(340));lo()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Te(Ie),null;case 4:return ql(),null;case 10:return $a(a.type),null;case 22:case 23:return Wa(a),pi(),e!==null&&Te(Qt),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return $a(Ce),null;case 25:return null;default:return null}}function Nm(e,a){switch(ni(a),a.tag){case 3:$a(Ce),ql();break;case 26:case 27:case 5:pr(a);break;case 4:ql();break;case 13:Wa(a);break;case 19:Te(Ie);break;case 10:$a(a.type);break;case 22:case 23:Wa(a),pi(),e!==null&&Te(Qt);break;case 24:$a(Ce)}}function no(e,a){try{var t=a.updateQueue,l=t!==null?t.lastEffect:null;if(l!==null){var u=l.next;t=u;do{if((t.tag&e)===e){l=void 0;var o=t.create,r=t.inst;l=o(),r.destroy=l}t=t.next}while(t!==u)}}catch(s){se(a,a.return,s)}}function Mt(e,a,t){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var o=u.next;l=o;do{if((l.tag&e)===e){var r=l.inst,s=r.destroy;if(s!==void 0){r.destroy=void 0,u=a;var d=t,n=s;try{n()}catch(x){se(u,d,x)}}}l=l.next}while(l!==o)}}catch(x){se(a,a.return,x)}}function Tm(e){var a=e.updateQueue;if(a!==null){var t=e.stateNode;try{Gc(a,t)}catch(l){se(e,e.return,l)}}}function km(e,a,t){t.props=el(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(l){se(e,a,l)}}function Mu(e,a){try{var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof t=="function"?e.refCleanup=t(l):t.current=l}}catch(u){se(e,a,u)}}function Ua(e,a){var t=e.ref,l=e.refCleanup;if(t!==null)if(typeof l=="function")try{l()}catch(u){se(e,a,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(u){se(e,a,u)}else t.current=null}function Mm(e){var a=e.type,t=e.memoizedProps,l=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":t.autoFocus&&l.focus();break e;case"img":t.src?l.src=t.src:t.srcSet&&(l.srcset=t.srcSet)}}catch(u){se(e,e.return,u)}}function Hs(e,a,t){try{var l=e.stateNode;bx(l,e.type,t,a),l[We]=a}catch(u){se(e,e.return,u)}}function Bm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Et(e.type)||e.tag===4}function Fs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bm(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&&Et(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 kd(e,a,t){var l=e.tag;if(l===5||l===6)e=e.stateNode,a?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,a):(a=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.appendChild(e),t=t._reactRootContainer,t!=null||a.onclick!==null||(a.onclick=as));else if(l!==4&&(l===27&&Et(e.type)&&(t=e.stateNode,a=null),e=e.child,e!==null))for(kd(e,a,t),e=e.sibling;e!==null;)kd(e,a,t),e=e.sibling}function Tr(e,a,t){var l=e.tag;if(l===5||l===6)e=e.stateNode,a?t.insertBefore(e,a):t.appendChild(e);else if(l!==4&&(l===27&&Et(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(Tr(e,a,t),e=e.sibling;e!==null;)Tr(e,a,t),e=e.sibling}function Um(e){var a=e.stateNode,t=e.memoizedProps;try{for(var l=e.type,u=a.attributes;u.length;)a.removeAttributeNode(u[0]);Ge(a,l,t),a[ze]=e,a[We]=t}catch(o){se(e,e.return,o)}}var ja=!1,ye=!1,Vs=!1,bf=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function ex(e,a){if(e=e.containerInfo,Pd=Xr,e=Lc(e),oi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var l=t.getSelection&&t.getSelection();if(l&&l.rangeCount!==0){t=l.anchorNode;var u=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var r=0,s=-1,d=-1,n=0,x=0,v=e,c=null;a:for(;;){for(var m;v!==t||u!==0&&v.nodeType!==3||(s=r+u),v!==o||l!==0&&v.nodeType!==3||(d=r+l),v.nodeType===3&&(r+=v.nodeValue.length),(m=v.firstChild)!==null;)c=v,v=m;for(;;){if(v===e)break a;if(c===t&&++n===u&&(s=r),c===o&&++x===l&&(d=r),(m=v.nextSibling)!==null)break;v=c,c=v.parentNode}v=m}t=s===-1||d===-1?null:{start:s,end:d}}else t=null}t=t||{start:0,end:0}}else t=null;for(Xd={focusedElem:e,selectionRange:t},Xr=!1,Ae=a;Ae!==null;)if(a=Ae,e=a.child,(a.subtreeFlags&1024)!==0&&e!==null)e.return=a,Ae=e;else for(;Ae!==null;){switch(a=Ae,o=a.alternate,e=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,t=a,u=o.memoizedProps,o=o.memoizedState,l=t.stateNode;try{var M=el(t.type,u,t.elementType===t.type);e=l.getSnapshotBeforeUpdate(M,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(k){se(t,t.return,k)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,t=e.nodeType,t===9)_d(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_d(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(A(163))}if(e=a.sibling,e!==null){e.return=a.return,Ae=e;break}Ae=a.return}}function Em(e,a,t){var l=t.flags;switch(t.tag){case 0:case 11:case 15:ft(e,t),l&4&&no(5,t);break;case 1:if(ft(e,t),l&4)if(e=t.stateNode,a===null)try{e.componentDidMount()}catch(r){se(t,t.return,r)}else{var u=el(t.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(u,a,e.__reactInternalSnapshotBeforeUpdate)}catch(r){se(t,t.return,r)}}l&64&&Tm(t),l&512&&Mu(t,t.return);break;case 3:if(ft(e,t),l&64&&(e=t.updateQueue,e!==null)){if(a=null,t.child!==null)switch(t.child.tag){case 27:case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}try{Gc(e,a)}catch(r){se(t,t.return,r)}}break;case 27:a===null&&l&4&&Um(t);case 26:case 5:ft(e,t),a===null&&l&4&&Mm(t),l&512&&Mu(t,t.return);break;case 12:ft(e,t);break;case 13:ft(e,t),l&4&&qm(e,t),l&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=ix.bind(null,t),Ix(e,t))));break;case 22:if(l=t.memoizedState!==null||ja,!l){a=a!==null&&a.memoizedState!==null||ye,u=ja;var o=ye;ja=l,(ye=a)&&!o?ct(e,t,(t.subtreeFlags&8772)!==0):ft(e,t),ja=u,ye=o}break;case 30:break;default:ft(e,t)}}function Gm(e){var a=e.alternate;a!==null&&(e.alternate=null,Gm(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&$d(a)),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 pe=null,Ze=!1;function Va(e,a,t){for(t=t.child;t!==null;)Om(e,a,t),t=t.sibling}function Om(e,a,t){if(ua&&typeof ua.onCommitFiberUnmount=="function")try{ua.onCommitFiberUnmount(Ju,t)}catch{}switch(t.tag){case 26:ye||Ua(t,a),Va(e,a,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:ye||Ua(t,a);var l=pe,u=Ze;Et(t.type)&&(pe=t.stateNode,Ze=!1),Va(e,a,t),Gu(t.stateNode),pe=l,Ze=u;break;case 5:ye||Ua(t,a);case 6:if(l=pe,u=Ze,pe=null,Va(e,a,t),pe=l,Ze=u,pe!==null)if(Ze)try{(pe.nodeType===9?pe.body:pe.nodeName==="HTML"?pe.ownerDocument.body:pe).removeChild(t.stateNode)}catch(o){se(t,a,o)}else try{pe.removeChild(t.stateNode)}catch(o){se(t,a,o)}break;case 18:pe!==null&&(Ze?(e=pe,Mf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),Ku(e)):Mf(pe,t.stateNode));break;case 4:l=pe,u=Ze,pe=t.stateNode.containerInfo,Ze=!0,Va(e,a,t),pe=l,Ze=u;break;case 0:case 11:case 14:case 15:ye||Mt(2,t,a),ye||Mt(4,t,a),Va(e,a,t);break;case 1:ye||(Ua(t,a),l=t.stateNode,typeof l.componentWillUnmount=="function"&&km(t,a,l)),Va(e,a,t);break;case 21:Va(e,a,t);break;case 22:ye=(l=ye)||t.memoizedState!==null,Va(e,a,t),ye=l;break;default:Va(e,a,t)}}function qm(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ku(e)}catch(t){se(a,a.return,t)}}function ax(e){switch(e.tag){case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new bf),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new bf),a;default:throw Error(A(435,e.tag))}}function js(e,a){var t=ax(e);a.forEach(function(l){var u=nx.bind(null,e,l);t.has(l)||(t.add(l),l.then(u,u))})}function ea(e,a){var t=a.deletions;if(t!==null)for(var l=0;l<t.length;l++){var u=t[l],o=e,r=a,s=r;e:for(;s!==null;){switch(s.tag){case 27:if(Et(s.type)){pe=s.stateNode,Ze=!1;break e}break;case 5:pe=s.stateNode,Ze=!1;break e;case 3:case 4:pe=s.stateNode.containerInfo,Ze=!0;break e}s=s.return}if(pe===null)throw Error(A(160));Om(o,r,u),pe=null,Ze=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Pm(a,e),a=a.sibling}var wa=null;function Pm(e,a){var t=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ea(a,e),aa(e),l&4&&(Mt(3,e,e.return),no(3,e),Mt(5,e,e.return));break;case 1:ea(a,e),aa(e),l&512&&(ye||t===null||Ua(t,t.return)),l&64&&ja&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?l:t.concat(l))));break;case 26:var u=wa;if(ea(a,e),aa(e),l&512&&(ye||t===null||Ua(t,t.return)),l&4){var o=t!==null?t.memoizedState:null;if(l=e.memoizedState,t===null)if(l===null)if(e.stateNode===null){e:{l=e.type,t=e.memoizedProps,u=u.ownerDocument||u;a:switch(l){case"title":o=u.getElementsByTagName("title")[0],(!o||o[ao]||o[ze]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=u.createElement(l),u.head.insertBefore(o,u.querySelector("head > title"))),Ge(o,l,t),o[ze]=e,De(o),l=o;break e;case"link":var r=Of("link","href",u).get(l+(t.href||""));if(r){for(var s=0;s<r.length;s++)if(o=r[s],o.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&o.getAttribute("rel")===(t.rel==null?null:t.rel)&&o.getAttribute("title")===(t.title==null?null:t.title)&&o.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){r.splice(s,1);break a}}o=u.createElement(l),Ge(o,l,t),u.head.appendChild(o);break;case"meta":if(r=Of("meta","content",u).get(l+(t.content||""))){for(s=0;s<r.length;s++)if(o=r[s],o.getAttribute("content")===(t.content==null?null:""+t.content)&&o.getAttribute("name")===(t.name==null?null:t.name)&&o.getAttribute("property")===(t.property==null?null:t.property)&&o.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&o.getAttribute("charset")===(t.charSet==null?null:t.charSet)){r.splice(s,1);break a}}o=u.createElement(l),Ge(o,l,t),u.head.appendChild(o);break;default:throw Error(A(468,l))}o[ze]=e,De(o),l=o}e.stateNode=l}else qf(u,e.type,e.stateNode);else e.stateNode=Gf(u,l,e.memoizedProps);else o!==l?(o===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):o.count--,l===null?qf(u,e.type,e.stateNode):Gf(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Hs(e,e.memoizedProps,t.memoizedProps)}break;case 27:ea(a,e),aa(e),l&512&&(ye||t===null||Ua(t,t.return)),t!==null&&l&4&&Hs(e,e.memoizedProps,t.memoizedProps);break;case 5:if(ea(a,e),aa(e),l&512&&(ye||t===null||Ua(t,t.return)),e.flags&32){u=e.stateNode;try{Xl(u,"")}catch(m){se(e,e.return,m)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Hs(e,u,t!==null?t.memoizedProps:u)),l&1024&&(Vs=!0);break;case 6:if(ea(a,e),aa(e),l&4){if(e.stateNode===null)throw Error(A(162));l=e.memoizedProps,t=e.stateNode;try{t.nodeValue=l}catch(m){se(e,e.return,m)}}break;case 3:if(nr=null,u=wa,wa=Or(a.containerInfo),ea(a,e),wa=u,aa(e),l&4&&t!==null&&t.memoizedState.isDehydrated)try{Ku(a.containerInfo)}catch(m){se(e,e.return,m)}Vs&&(Vs=!1,Xm(e));break;case 4:l=wa,wa=Or(e.stateNode.containerInfo),ea(a,e),aa(e),wa=l;break;case 12:ea(a,e),aa(e);break;case 13:ea(a,e),aa(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(Mi=Ga()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,js(e,l)));break;case 22:u=e.memoizedState!==null;var d=t!==null&&t.memoizedState!==null,n=ja,x=ye;if(ja=n||u,ye=x||d,ea(a,e),ye=x,ja=n,aa(e),l&8192)e:for(a=e.stateNode,a._visibility=u?a._visibility&-2:a._visibility|1,u&&(t===null||d||ja||ye||Ht(e)),t=null,a=e;;){if(a.tag===5||a.tag===26){if(t===null){d=t=a;try{if(o=d.stateNode,u)r=o.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{s=d.stateNode;var v=d.memoizedProps.style,c=v!=null&&v.hasOwnProperty("display")?v.display:null;s.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}}catch(m){se(d,d.return,m)}}}else if(a.tag===6){if(t===null){d=a;try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){se(d,d.return,m)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;t===a&&(t=null),a=a.return}t===a&&(t=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=e.updateQueue,l!==null&&(t=l.retryQueue,t!==null&&(l.retryQueue=null,js(e,t))));break;case 19:ea(a,e),aa(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,js(e,l)));break;case 30:break;case 21:break;default:ea(a,e),aa(e)}}function aa(e){var a=e.flags;if(a&2){try{for(var t,l=e.return;l!==null;){if(Bm(l)){t=l;break}l=l.return}if(t==null)throw Error(A(160));switch(t.tag){case 27:var u=t.stateNode,o=Fs(e);Tr(e,o,u);break;case 5:var r=t.stateNode;t.flags&32&&(Xl(r,""),t.flags&=-33);var s=Fs(e);Tr(e,s,r);break;case 3:case 4:var d=t.stateNode.containerInfo,n=Fs(e);kd(e,n,d);break;default:throw Error(A(161))}}catch(x){se(e,e.return,x)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function Xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;Xm(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function ft(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Em(e,a.alternate,a),a=a.sibling}function Ht(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:Mt(4,a,a.return),Ht(a);break;case 1:Ua(a,a.return);var t=a.stateNode;typeof t.componentWillUnmount=="function"&&km(a,a.return,t),Ht(a);break;case 27:Gu(a.stateNode);case 26:case 5:Ua(a,a.return),Ht(a);break;case 22:a.memoizedState===null&&Ht(a);break;case 30:Ht(a);break;default:Ht(a)}e=e.sibling}}function ct(e,a,t){for(t=t&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,u=e,o=a,r=o.flags;switch(o.tag){case 0:case 11:case 15:ct(u,o,t),no(4,o);break;case 1:if(ct(u,o,t),l=o,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(n){se(l,l.return,n)}if(l=o,u=l.updateQueue,u!==null){var s=l.stateNode;try{var d=u.shared.hiddenCallbacks;if(d!==null)for(u.shared.hiddenCallbacks=null,u=0;u<d.length;u++)Ec(d[u],s)}catch(n){se(l,l.return,n)}}t&&r&64&&Tm(o),Mu(o,o.return);break;case 27:Um(o);case 26:case 5:ct(u,o,t),t&&l===null&&r&4&&Mm(o),Mu(o,o.return);break;case 12:ct(u,o,t);break;case 13:ct(u,o,t),t&&r&4&&qm(u,o);break;case 22:o.memoizedState===null&&ct(u,o,t),Mu(o,o.return);break;case 30:break;default:ct(u,o,t)}a=a.sibling}}function Di(e,a){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&oo(t))}function Ni(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&oo(e))}function Ma(e,a,t,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)zm(e,a,t,l),a=a.sibling}function zm(e,a,t,l){var u=a.flags;switch(a.tag){case 0:case 11:case 15:Ma(e,a,t,l),u&2048&&no(9,a);break;case 1:Ma(e,a,t,l);break;case 3:Ma(e,a,t,l),u&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&oo(e)));break;case 12:if(u&2048){Ma(e,a,t,l),e=a.stateNode;try{var o=a.memoizedProps,r=o.id,s=o.onPostCommit;typeof s=="function"&&s(r,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){se(a,a.return,d)}}else Ma(e,a,t,l);break;case 13:Ma(e,a,t,l);break;case 23:break;case 22:o=a.stateNode,r=a.alternate,a.memoizedState!==null?o._visibility&2?Ma(e,a,t,l):Bu(e,a):o._visibility&2?Ma(e,a,t,l):(o._visibility|=2,xl(e,a,t,l,(a.subtreeFlags&10256)!==0)),u&2048&&Di(r,a);break;case 24:Ma(e,a,t,l),u&2048&&Ni(a.alternate,a);break;default:Ma(e,a,t,l)}}function xl(e,a,t,l,u){for(u=u&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var o=e,r=a,s=t,d=l,n=r.flags;switch(r.tag){case 0:case 11:case 15:xl(o,r,s,d,u),no(8,r);break;case 23:break;case 22:var x=r.stateNode;r.memoizedState!==null?x._visibility&2?xl(o,r,s,d,u):Bu(o,r):(x._visibility|=2,xl(o,r,s,d,u)),u&&n&2048&&Di(r.alternate,r);break;case 24:xl(o,r,s,d,u),u&&n&2048&&Ni(r.alternate,r);break;default:xl(o,r,s,d,u)}a=a.sibling}}function Bu(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var t=e,l=a,u=l.flags;switch(l.tag){case 22:Bu(t,l),u&2048&&Di(l.alternate,l);break;case 24:Bu(t,l),u&2048&&Ni(l.alternate,l);break;default:Bu(t,l)}a=a.sibling}}var wu=8192;function ml(e){if(e.subtreeFlags&wu)for(e=e.child;e!==null;)_m(e),e=e.sibling}function _m(e){switch(e.tag){case 26:ml(e),e.flags&wu&&e.memoizedState!==null&&qx(wa,e.memoizedState,e.memoizedProps);break;case 5:ml(e);break;case 3:case 4:var a=wa;wa=Or(e.stateNode.containerInfo),ml(e),wa=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=wu,wu=16777216,ml(e),wu=a):ml(e));break;default:ml(e)}}function Hm(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function xu(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var l=a[t];Ae=l,Vm(l,e)}Hm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fm(e),e=e.sibling}function Fm(e){switch(e.tag){case 0:case 11:case 15:xu(e),e.flags&2048&&Mt(9,e,e.return);break;case 3:xu(e);break;case 12:xu(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,dr(e)):xu(e);break;default:xu(e)}}function dr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var l=a[t];Ae=l,Vm(l,e)}Hm(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:Mt(8,a,a.return),dr(a);break;case 22:t=a.stateNode,t._visibility&2&&(t._visibility&=-3,dr(a));break;default:dr(a)}e=e.sibling}}function Vm(e,a){for(;Ae!==null;){var t=Ae;switch(t.tag){case 0:case 11:case 15:Mt(8,t,a);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var l=t.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:oo(t.memoizedState.cache)}if(l=t.child,l!==null)l.return=t,Ae=l;else e:for(t=e;Ae!==null;){l=Ae;var u=l.sibling,o=l.return;if(Gm(l),l===t){Ae=null;break e}if(u!==null){u.return=o,Ae=u;break e}Ae=o}}}var tx={getCacheForType:function(e){var a=_e(Ce),t=a.data.get(e);return t===void 0&&(t=e(),a.data.set(e,t)),t}},lx=typeof WeakMap=="function"?WeakMap:Map,ue=0,ie=null,W=null,$=0,le=0,ta=null,Lt=!1,Jl=!1,Ti=!1,lt=0,be=0,Bt=0,Zt=0,ki=0,xa=0,Vl=0,Uu=null,Ke=null,Md=!1,Mi=0,kr=1/0,Mr=null,Rt=null,Ee=0,At=null,jl=null,Ol=0,Bd=0,Ud=null,jm=null,Eu=0,Ed=null;function ra(){if((ue&2)!==0&&$!==0)return $&-$;if(H.T!==null){var e=zl;return e!==0?e:Ui()}return lc()}function Ym(){xa===0&&(xa=($&536870912)===0||ae?$f():536870912);var e=ha.current;return e!==null&&(e.flags|=32),xa}function sa(e,a,t){(e===ie&&(le===2||le===9)||e.cancelPendingCommit!==null)&&(Yl(e,0),wt(e,$,xa,!1)),eo(e,t),((ue&2)===0||e!==ie)&&(e===ie&&((ue&2)===0&&(Zt|=t),be===4&&wt(e,$,xa,!1)),Pa(e))}function Qm(e,a,t){if((ue&6)!==0)throw Error(A(327));var l=!t&&(a&124)===0&&(a&e.expiredLanes)===0||$u(e,a),u=l?rx(e,a):Ys(e,a,!0),o=l;do{if(u===0){Jl&&!l&&wt(e,a,0,!1);break}else{if(t=e.current.alternate,o&&!ux(t)){u=Ys(e,a,!1),o=!1;continue}if(u===2){if(o=a,e.errorRecoveryDisabledLanes&o)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){a=r;e:{var s=e;u=Uu;var d=s.current.memoizedState.isDehydrated;if(d&&(Yl(s,r).flags|=256),r=Ys(s,r,!1),r!==2){if(Ti&&!d){s.errorRecoveryDisabledLanes|=o,Zt|=o,u=4;break e}o=Ke,Ke=u,o!==null&&(Ke===null?Ke=o:Ke.push.apply(Ke,o))}u=r}if(o=!1,u!==2)continue}}if(u===1){Yl(e,0),wt(e,a,0,!0);break}e:{switch(l=e,o=u,o){case 0:case 1:throw Error(A(345));case 4:if((a&4194048)!==a)break;case 6:wt(l,a,xa,!Lt);break e;case 2:Ke=null;break;case 3:case 5:break;default:throw Error(A(329))}if((a&62914560)===a&&(u=Mi+300-Ga(),10<u)){if(wt(l,a,xa,!Lt),_r(l,0,!0)!==0)break e;l.timeoutHandle=mp(vf.bind(null,l,t,Ke,Mr,Md,a,xa,Zt,Vl,Lt,o,2,-0,0),u);break e}vf(l,t,Ke,Mr,Md,a,xa,Zt,Vl,Lt,o,0,-0,0)}}break}while(!0);Pa(e)}function vf(e,a,t,l,u,o,r,s,d,n,x,v,c,m){if(e.timeoutHandle=-1,v=a.subtreeFlags,(v&8192||(v&16785408)===16785408)&&(ju={stylesheets:null,count:0,unsuspend:Ox},_m(a),v=Px(),v!==null)){e.cancelPendingCommit=v(Lf.bind(null,e,a,o,t,l,u,r,s,d,x,1,c,m)),wt(e,o,r,!n);return}Lf(e,a,o,t,l,u,r,s,d)}function ux(e){for(var a=e;;){var t=a.tag;if((t===0||t===11||t===15)&&a.flags&16384&&(t=a.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var l=0;l<t.length;l++){var u=t[l],o=u.getSnapshot;u=u.value;try{if(!da(o(),u))return!1}catch{return!1}}if(t=a.child,a.subtreeFlags&16384&&t!==null)t.return=a,a=t;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function wt(e,a,t,l){a&=~ki,a&=~Zt,e.suspendedLanes|=a,e.pingedLanes&=~a,l&&(e.warmLanes|=a),l=e.expirationTimes;for(var u=a;0<u;){var o=31-oa(u),r=1<<o;l[o]=-1,u&=~r}t!==0&&ac(e,t,a)}function Jr(){return(ue&6)===0?(fo(0,!1),!1):!0}function Bi(){if(W!==null){if(le===0)var e=W.return;else e=W,Ka=ul=null,vi(e),Gl=null,Hu=0,e=W;for(;e!==null;)Nm(e.alternate,e),e=e.return;W=null}}function Yl(e,a){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,yx(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),Bi(),ie=e,W=t=Ja(e.current,null),$=a,le=0,ta=null,Lt=!1,Jl=$u(e,a),Ti=!1,Vl=xa=ki=Zt=Bt=be=0,Ke=Uu=null,Md=!1,(a&8)!==0&&(a|=a&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=a;0<l;){var u=31-oa(l),o=1<<u;a|=e[u],l&=~o}return lt=a,jr(),t}function Zm(e,a){Q=null,H.H=Ir,a===ro||a===Qr?(a=Kn(),le=3):a===Bc?(a=Kn(),le=4):le=a===Sm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ta=a,W===null&&(be=1,Dr(e,ga(a,e.current)))}function Km(){var e=H.H;return H.H=Ir,e===null?Ir:e}function Wm(){var e=H.A;return H.A=tx,e}function Gd(){be=4,Lt||($&4194048)!==$&&ha.current!==null||(Jl=!0),(Bt&134217727)===0&&(Zt&134217727)===0||ie===null||wt(ie,$,xa,!1)}function Ys(e,a,t){var l=ue;ue|=2;var u=Km(),o=Wm();(ie!==e||$!==a)&&(Mr=null,Yl(e,a)),a=!1;var r=be;e:do try{if(le!==0&&W!==null){var s=W,d=ta;switch(le){case 8:Bi(),r=6;break e;case 3:case 2:case 9:case 6:ha.current===null&&(a=!0);var n=le;if(le=0,ta=null,Nl(e,s,d,n),t&&Jl){r=0;break e}break;default:n=le,le=0,ta=null,Nl(e,s,d,n)}}ox(),r=be;break}catch(x){Zm(e,x)}while(!0);return a&&e.shellSuspendCounter++,Ka=ul=null,ue=l,H.H=u,H.A=o,W===null&&(ie=null,$=0,jr()),r}function ox(){for(;W!==null;)Jm(W)}function rx(e,a){var t=ue;ue|=2;var l=Km(),u=Wm();ie!==e||$!==a?(Mr=null,kr=Ga()+500,Yl(e,a)):Jl=$u(e,a);e:do try{if(le!==0&&W!==null){a=W;var o=ta;a:switch(le){case 1:le=0,ta=null,Nl(e,a,o,1);break;case 2:case 9:if(Zn(o)){le=0,ta=null,yf(a);break}a=function(){le!==2&&le!==9||ie!==e||(le=7),Pa(e)},o.then(a,a);break e;case 3:le=7;break e;case 4:le=5;break e;case 7:Zn(o)?(le=0,ta=null,yf(a)):(le=0,ta=null,Nl(e,a,o,7));break;case 5:var r=null;switch(W.tag){case 26:r=W.memoizedState;case 5:case 27:var s=W;if(!r||hp(r)){le=0,ta=null;var d=s.sibling;if(d!==null)W=d;else{var n=s.return;n!==null?(W=n,$r(n)):W=null}break a}}le=0,ta=null,Nl(e,a,o,5);break;case 6:le=0,ta=null,Nl(e,a,o,6);break;case 8:Bi(),be=6;break e;default:throw Error(A(462))}}sx();break}catch(x){Zm(e,x)}while(!0);return Ka=ul=null,H.H=l,H.A=u,ue=t,W!==null?0:(ie=null,$=0,jr(),be)}function sx(){for(;W!==null&&!Ng();)Jm(W)}function Jm(e){var a=Dm(e.alternate,e,lt);e.memoizedProps=e.pendingProps,a===null?$r(e):W=a}function yf(e){var a=e,t=a.alternate;switch(a.tag){case 15:case 0:a=mf(t,a,a.pendingProps,a.type,void 0,$);break;case 11:a=mf(t,a,a.pendingProps,a.type.render,a.ref,$);break;case 5:vi(a);default:Nm(t,a),a=W=Nc(a,lt),a=Dm(t,a,lt)}e.memoizedProps=e.pendingProps,a===null?$r(e):W=a}function Nl(e,a,t,l){Ka=ul=null,vi(a),Gl=null,Hu=0;var u=a.return;try{if(K0(e,u,a,t,$)){be=1,Dr(e,ga(t,e.current)),W=null;return}}catch(o){if(u!==null)throw W=u,o;be=1,Dr(e,ga(t,e.current)),W=null;return}a.flags&32768?(ae||l===1?e=!0:Jl||($&536870912)!==0?e=!1:(Lt=e=!0,(l===2||l===9||l===3||l===6)&&(l=ha.current,l!==null&&l.tag===13&&(l.flags|=16384))),$m(a,e)):$r(a)}function $r(e){var a=e;do{if((a.flags&32768)!==0){$m(a,Lt);return}e=a.return;var t=J0(a.alternate,a,lt);if(t!==null){W=t;return}if(a=a.sibling,a!==null){W=a;return}W=a=e}while(a!==null);be===0&&(be=5)}function $m(e,a){do{var t=$0(e.alternate,e);if(t!==null){t.flags&=32767,W=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!a&&(e=e.sibling,e!==null)){W=e;return}W=e=t}while(e!==null);be=6,W=null}function Lf(e,a,t,l,u,o,r,s,d){e.cancelPendingCommit=null;do es();while(Ee!==0);if((ue&6)!==0)throw Error(A(327));if(a!==null){if(a===e.current)throw Error(A(177));if(o=a.lanes|a.childLanes,o|=ri,Pg(e,t,o,r,s,d),e===ie&&(W=ie=null,$=0),jl=a,At=e,Ol=t,Bd=o,Ud=u,jm=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fx(gr,function(){return up(!0),null})):(e.callbackNode=null,e.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,u=te.p,te.p=2,r=ue,ue|=4;try{ex(e,a,t)}finally{ue=r,te.p=u,H.T=l}}Ee=1,ep(),ap(),tp()}}function ep(){if(Ee===1){Ee=0;var e=At,a=jl,t=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||t){t=H.T,H.T=null;var l=te.p;te.p=2;var u=ue;ue|=4;try{Pm(a,e);var o=Xd,r=Lc(e.containerInfo),s=o.focusedElem,d=o.selectionRange;if(r!==s&&s&&s.ownerDocument&&yc(s.ownerDocument.documentElement,s)){if(d!==null&&oi(s)){var n=d.start,x=d.end;if(x===void 0&&(x=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(x,s.value.length);else{var v=s.ownerDocument||document,c=v&&v.defaultView||window;if(c.getSelection){var m=c.getSelection(),M=s.textContent.length,k=Math.min(d.start,M),_=d.end===void 0?k:Math.min(d.end,M);!m.extend&&k>_&&(r=_,_=k,k=r);var f=zn(s,k),i=zn(s,_);if(f&&i&&(m.rangeCount!==1||m.anchorNode!==f.node||m.anchorOffset!==f.offset||m.focusNode!==i.node||m.focusOffset!==i.offset)){var p=v.createRange();p.setStart(f.node,f.offset),m.removeAllRanges(),k>_?(m.addRange(p),m.extend(i.node,i.offset)):(p.setEnd(i.node,i.offset),m.addRange(p))}}}}for(v=[],m=s;m=m.parentNode;)m.nodeType===1&&v.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<v.length;s++){var g=v[s];g.element.scrollLeft=g.left,g.element.scrollTop=g.top}}Xr=!!Pd,Xd=Pd=null}finally{ue=u,te.p=l,H.T=t}}e.current=a,Ee=2}}function ap(){if(Ee===2){Ee=0;var e=At,a=jl,t=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||t){t=H.T,H.T=null;var l=te.p;te.p=2;var u=ue;ue|=4;try{Em(e,a.alternate,a)}finally{ue=u,te.p=l,H.T=t}}Ee=3}}function tp(){if(Ee===4||Ee===3){Ee=0,Tg();var e=At,a=jl,t=Ol,l=jm;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ee=5:(Ee=0,jl=At=null,lp(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Rt=null),Jd(t),a=a.stateNode,ua&&typeof ua.onCommitFiberRoot=="function")try{ua.onCommitFiberRoot(Ju,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=H.T,u=te.p,te.p=2,H.T=null;try{for(var o=e.onRecoverableError,r=0;r<l.length;r++){var s=l[r];o(s.value,{componentStack:s.stack})}}finally{H.T=a,te.p=u}}(Ol&3)!==0&&es(),Pa(e),u=e.pendingLanes,(t&4194090)!==0&&(u&42)!==0?e===Ed?Eu++:(Eu=0,Ed=e):Eu=0,fo(0,!1)}}function lp(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,oo(a)))}function es(e){return ep(),ap(),tp(),up(e)}function up(){if(Ee!==5)return!1;var e=At,a=Bd;Bd=0;var t=Jd(Ol),l=H.T,u=te.p;try{te.p=32>t?32:t,H.T=null,t=Ud,Ud=null;var o=At,r=Ol;if(Ee=0,jl=At=null,Ol=0,(ue&6)!==0)throw Error(A(331));var s=ue;if(ue|=4,Fm(o.current),zm(o,o.current,r,t),ue=s,fo(0,!1),ua&&typeof ua.onPostCommitFiberRoot=="function")try{ua.onPostCommitFiberRoot(Ju,o)}catch{}return!0}finally{te.p=u,H.T=l,lp(e,a)}}function wf(e,a,t){a=ga(t,a),a=Dd(e.stateNode,a,2),e=It(e,a,2),e!==null&&(eo(e,2),Pa(e))}function se(e,a,t){if(e.tag===3)wf(e,e,t);else for(;a!==null;){if(a.tag===3){wf(a,e,t);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Rt===null||!Rt.has(l))){e=ga(t,e),t=Lm(2),l=It(a,t,2),l!==null&&(wm(t,l,a,e),eo(l,2),Pa(l));break}}a=a.return}}function Qs(e,a,t){var l=e.pingCache;if(l===null){l=e.pingCache=new lx;var u=new Set;l.set(a,u)}else u=l.get(a),u===void 0&&(u=new Set,l.set(a,u));u.has(t)||(Ti=!0,u.add(t),e=dx.bind(null,e,a,t),a.then(e,e))}function dx(e,a,t){var l=e.pingCache;l!==null&&l.delete(a),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,ie===e&&($&t)===t&&(be===4||be===3&&($&62914560)===$&&300>Ga()-Mi?(ue&2)===0&&Yl(e,0):ki|=t,Vl===$&&(Vl=0)),Pa(e)}function op(e,a){a===0&&(a=ec()),e=Wl(e,a),e!==null&&(eo(e,a),Pa(e))}function ix(e){var a=e.memoizedState,t=0;a!==null&&(t=a.retryLane),op(e,t)}function nx(e,a){var t=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(t=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(A(314))}l!==null&&l.delete(a),op(e,t)}function fx(e,a){return Kd(e,a)}var Br=null,hl=null,Od=!1,Ur=!1,Zs=!1,Kt=0;function Pa(e){e!==hl&&e.next===null&&(hl===null?Br=hl=e:hl=hl.next=e),Ur=!0,Od||(Od=!0,mx())}function fo(e,a){if(!Zs&&Ur){Zs=!0;do for(var t=!1,l=Br;l!==null;){if(!a)if(e!==0){var u=l.pendingLanes;if(u===0)var o=0;else{var r=l.suspendedLanes,s=l.pingedLanes;o=(1<<31-oa(42|e)+1)-1,o&=u&~(r&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(t=!0,Sf(l,o))}else o=$,o=_r(l,l===ie?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||$u(l,o)||(t=!0,Sf(l,o));l=l.next}while(t);Zs=!1}}function cx(){rp()}function rp(){Ur=Od=!1;var e=0;Kt!==0&&(vx()&&(e=Kt),Kt=0);for(var a=Ga(),t=null,l=Br;l!==null;){var u=l.next,o=sp(l,a);o===0?(l.next=null,t===null?Br=u:t.next=u,u===null&&(hl=t)):(t=l,(e!==0||(o&3)!==0)&&(Ur=!0)),l=u}fo(e,!1)}function sp(e,a){for(var t=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var r=31-oa(o),s=1<<r,d=u[r];d===-1?((s&t)===0||(s&l)!==0)&&(u[r]=qg(s,a)):d<=a&&(e.expiredLanes|=s),o&=~s}if(a=ie,t=$,t=_r(e,e===a?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,t===0||e===a&&(le===2||le===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ws(l),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||$u(e,t)){if(a=t&-t,a===e.callbackPriority)return a;switch(l!==null&&ws(l),Jd(t)){case 2:case 8:t=Wf;break;case 32:t=gr;break;case 268435456:t=Jf;break;default:t=gr}return l=dp.bind(null,e),t=Kd(t,l),e.callbackPriority=a,e.callbackNode=t,a}return l!==null&&l!==null&&ws(l),e.callbackPriority=2,e.callbackNode=null,2}function dp(e,a){if(Ee!==0&&Ee!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(es(!0)&&e.callbackNode!==t)return null;var l=$;return l=_r(e,e===ie?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Qm(e,l,a),sp(e,Ga()),e.callbackNode!=null&&e.callbackNode===t?dp.bind(null,e):null)}function Sf(e,a){if(es())return null;Qm(e,a,!0)}function mx(){Lx(function(){(ue&6)!==0?Kd(Kf,cx):rp()})}function Ui(){return Kt===0&&(Kt=$f()),Kt}function Cf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:er(""+e)}function If(e,a){var t=a.ownerDocument.createElement("input");
vendor: 5,159 bytes, line 8
8return t.name=a.name,t.value=a.value,e.id&&t.setAttribute("form",e.id),a.parentNode.insertBefore(t,a),e=new FormData(e),t.parentNode.removeChild(t),e}function px(e,a,t,l,u){if(a==="submit"&&t&&t.stateNode===u){var o=Cf((u[We]||null).action),r=l.submitter;r&&(a=(a=r[We]||null)?Cf(a.formAction):r.getAttribute("formAction"),a!==null&&(o=a,r=null));var s=new Hr("action","action",null,l,u);e.push({event:s,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Kt!==0){var d=r?If(u,r):new FormData(u);Rd(t,{pending:!0,data:d,method:u.method,action:o},null,d)}}else typeof o=="function"&&(s.preventDefault(),d=r?If(u,r):new FormData(u),Rd(t,{pending:!0,data:d,method:u.method,action:o},o,d))},currentTarget:u}]})}}for(Qo=0;Qo<pd.length;Qo++)Zo=pd[Qo],Rf=Zo.toLowerCase(),Af=Zo[0].toUpperCase()+Zo.slice(1),Ca(Rf,"on"+Af);var Zo,Rf,Af,Qo;Ca(Sc,"onAnimationEnd");Ca(Cc,"onAnimationIteration");Ca(Ic,"onAnimationStart");Ca("dblclick","onDoubleClick");Ca("focusin","onFocus");Ca("focusout","onBlur");Ca(B0,"onTransitionRun");Ca(U0,"onTransitionStart");Ca(E0,"onTransitionCancel");Ca(Rc,"onTransitionEnd");Pl("onMouseEnter",["mouseout","mouseover"]);Pl("onMouseLeave",["mouseout","mouseover"]);Pl("onPointerEnter",["pointerout","pointerover"]);Pl("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 Fu="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(" "),gx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fu));function ip(e,a){a=(a&4)!==0;for(var t=0;t<e.length;t++){var l=e[t],u=l.event;l=l.listeners;e:{var o=void 0;if(a)for(var r=l.length-1;0<=r;r--){var s=l[r],d=s.instance,n=s.currentTarget;if(s=s.listener,d!==o&&u.isPropagationStopped())break e;o=s,u.currentTarget=n;try{o(u)}catch(x){Ar(x)}u.currentTarget=null,o=d}else for(r=0;r<l.length;r++){if(s=l[r],d=s.instance,n=s.currentTarget,s=s.listener,d!==o&&u.isPropagationStopped())break e;o=s,u.currentTarget=n;try{o(u)}catch(x){Ar(x)}u.currentTarget=null,o=d}}}}function K(e,a){var t=a[sd];t===void 0&&(t=a[sd]=new Set);var l=e+"__bubble";t.has(l)||(np(a,e,2,!1),t.add(l))}function Ks(e,a,t){var l=0;a&&(l|=4),np(t,e,l,a)}var Ko="_reactListening"+Math.random().toString(36).slice(2);function Ei(e){if(!e[Ko]){e[Ko]=!0,uc.forEach(function(t){t!=="selectionchange"&&(gx.has(t)||Ks(t,!1,e),Ks(t,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[Ko]||(a[Ko]=!0,Ks("selectionchange",!1,a))}}function np(e,a,t,l){switch(wp(a)){case 2:var u=_x;break;case 8:u=Hx;break;default:u=Pi}t=u.bind(null,a,t,e),u=void 0,!fd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(a,t,{capture:!0,passive:u}):e.addEventListener(a,t,!0):u!==void 0?e.addEventListener(a,t,{passive:u}):e.addEventListener(a,t,!1)}function Ws(e,a,t,l,u){var o=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var s=l.stateNode.containerInfo;if(s===u)break;if(r===4)for(r=l.return;r!==null;){var d=r.tag;if((d===3||d===4)&&r.stateNode.containerInfo===u)return;r=r.return}for(;s!==null;){if(r=yl(s),r===null)return;if(d=r.tag,d===5||d===6||d===26||d===27){l=o=r;continue e}s=s.parentNode}}l=l.return}cc(function(){var n=o,x=ai(t),v=[];e:{var c=Ac.get(e);if(c!==void 0){var m=Hr,M=e;switch(e){case"keypress":if(tr(t)===0)break e;case"keydown":case"keyup":m=f0;break;case"focusin":M="focus",m=Ts;break;case"focusout":M="blur",m=Ts;break;case"beforeblur":case"afterblur":m=Ts;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=p0;break;case Sc:case Cc:case Ic:m=t0;break;case Rc:m=x0;break;case"scroll":case"scrollend":m=Wg;break;case"wheel":m=b0;break;case"copy":case"cut":case"paste":m=u0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Un;break;case"toggle":case"beforetoggle":m=y0}var k=(a&4)!==0,_=!k&&(e==="scroll"||e==="scrollend"),f=k?c!==null?c+"Capture":null:c;k=[];for(var i=n,p;i!==null;){var g=i;if(p=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||p===null||f===null||(g=qu(i,f),g!=null&&k.push(Vu(i,g,p))),_)break;
vendor: 36,400 bytes, lines 8-9
8i=i.return}0<k.length&&(c=new m(c,M,null,t,x),v.push({event:c,listeners:k}))}}if((a&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",c&&t!==nd&&(M=t.relatedTarget||t.fromElement)&&(yl(M)||M[Zl]))break e;if((m||c)&&(c=x.window===x?x:(c=x.ownerDocument)?c.defaultView||c.parentWindow:window,m?(M=t.relatedTarget||t.toElement,m=n,M=M?yl(M):null,M!==null&&(_=Wu(M),k=M.tag,M!==_||k!==5&&k!==27&&k!==6)&&(M=null)):(m=null,M=n),m!==M)){if(k=Mn,g="onMouseLeave",f="onMouseEnter",i="mouse",(e==="pointerout"||e==="pointerover")&&(k=Un,g="onPointerLeave",f="onPointerEnter",i="pointer"),_=m==null?c:Lu(m),p=M==null?c:Lu(M),c=new k(g,i+"leave",m,t,x),c.target=_,c.relatedTarget=p,g=null,yl(x)===n&&(k=new k(f,i+"enter",M,t,x),k.target=p,k.relatedTarget=_,g=k),_=g,m&&M)a:{for(k=m,f=M,i=0,p=k;p;p=pl(p))i++;for(p=0,g=f;g;g=pl(g))p++;for(;0<i-p;)k=pl(k),i--;for(;0<p-i;)f=pl(f),p--;for(;i--;){if(k===f||f!==null&&k===f.alternate)break a;k=pl(k),f=pl(f)}k=null}else k=null;m!==null&&Df(v,c,m,k,!1),M!==null&&_!==null&&Df(v,_,M,k,!0)}}e:{if(c=n?Lu(n):window,m=c.nodeName&&c.nodeName.toLowerCase(),m==="select"||m==="input"&&c.type==="file")var D=qn;else if(On(c))if(bc)D=T0;else{D=D0;var U=A0}else m=c.nodeName,!m||m.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?n&&ei(n.elementType)&&(D=qn):D=N0;if(D&&(D=D(e,n))){hc(v,D,t,x);break e}U&&U(e,c,n),e==="focusout"&&n&&c.type==="number"&&n.memoizedProps.value!=null&&id(c,"number",c.value)}switch(U=n?Lu(n):window,e){case"focusin":(On(U)||U.contentEditable==="true")&&(Sl=U,cd=n,Iu=null);break;case"focusout":Iu=cd=Sl=null;break;case"mousedown":md=!0;break;case"contextmenu":case"mouseup":case"dragend":md=!1,_n(v,t,x);break;case"selectionchange":if(M0)break;case"keydown":case"keyup":_n(v,t,x)}var R;if(ui)e:{switch(e){case"compositionstart":var G="onCompositionStart";break e;case"compositionend":G="onCompositionEnd";break e;case"compositionupdate":G="onCompositionUpdate";break e}G=void 0}else wl?gc(e,t)&&(G="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(G="onCompositionStart");G&&(pc&&t.locale!=="ko"&&(wl||G!=="onCompositionStart"?G==="onCompositionEnd"&&wl&&(R=mc()):(yt=x,ti="value"in yt?yt.value:yt.textContent,wl=!0)),U=Er(n,G),0<U.length&&(G=new Bn(G,e,null,t,x),v.push({event:G,listeners:U}),R?G.data=R:(R=xc(t),R!==null&&(G.data=R)))),(R=w0?S0(e,t):C0(e,t))&&(G=Er(n,"onBeforeInput"),0<G.length&&(U=new Bn("onBeforeInput","beforeinput",null,t,x),v.push({event:U,listeners:G}),U.data=R)),px(v,e,n,t,x)}ip(v,a)})}function Vu(e,a,t){return{instance:e,listener:a,currentTarget:t}}function Er(e,a){for(var t=a+"Capture",l=[];e!==null;){var u=e,o=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||o===null||(u=qu(e,t),u!=null&&l.unshift(Vu(e,u,o)),u=qu(e,a),u!=null&&l.push(Vu(e,u,o))),e.tag===3)return l;e=e.return}return[]}function pl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Df(e,a,t,l,u){for(var o=a._reactName,r=[];t!==null&&t!==l;){var s=t,d=s.alternate,n=s.stateNode;if(s=s.tag,d!==null&&d===l)break;s!==5&&s!==26&&s!==27||n===null||(d=n,u?(n=qu(t,o),n!=null&&r.unshift(Vu(t,n,d))):u||(n=qu(t,o),n!=null&&r.push(Vu(t,n,d)))),t=t.return}r.length!==0&&e.push({event:a,listeners:r})}var xx=/\r\n?/g,hx=/\u0000|\uFFFD/g;function Nf(e){return(typeof e=="string"?e:""+e).replace(xx,`
9`).replace(hx,"")}function fp(e,a){return a=Nf(a),Nf(e)===a}function as(){}function oe(e,a,t,l,u,o){switch(t){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&Xl(e,""+l);break;case"className":Po(e,"class",l);break;case"tabIndex":Po(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Po(e,t,l);break;case"style":fc(e,l,o);break;case"data":if(a!=="object"){Po(e,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||t!=="href")){e.removeAttribute(t);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(t);break}l=er(""+l),e.setAttribute(t,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(t,"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 o=="function"&&(t==="formAction"?(a!=="input"&&oe(e,a,"name",u.name,u,null),oe(e,a,"formEncType",u.formEncType,u,null),oe(e,a,"formMethod",u.formMethod,u,null),oe(e,a,"formTarget",u.formTarget,u,null)):(oe(e,a,"encType",u.encType,u,null),oe(e,a,"method",u.method,u,null),oe(e,a,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(t);break}l=er(""+l),e.setAttribute(t,l);break;case"onClick":l!=null&&(e.onclick=as);break;case"onScroll":l!=null&&K("scroll",e);break;case"onScrollEnd":l!=null&&K("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(A(61));if(t=l.__html,t!=null){if(u.children!=null)throw Error(A(60));e.innerHTML=t}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}t=er(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(t,""+l):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":l===!0?e.setAttribute(t,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(t,l):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(t,l):e.removeAttribute(t);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(t):e.setAttribute(t,l);break;case"popover":K("beforetoggle",e),K("toggle",e),$o(e,"popover",l);break;case"xlinkActuate":Ha(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ha(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ha(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ha(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ha(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ha(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ha(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ha(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ha(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$o(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=Zg.get(t)||t,$o(e,t,l))}}function qd(e,a,t,l,u,o){switch(t){case"style":fc(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(A(61));if(t=l.__html,t!=null){if(u.children!=null)throw Error(A(60));e.innerHTML=t}}break;case"children":typeof l=="string"?Xl(e,l):(typeof l=="number"||typeof l=="bigint")&&Xl(e,""+l);break;case"onScroll":l!=null&&K("scroll",e);break;case"onScrollEnd":l!=null&&K("scrollend",e);break;case"onClick":l!=null&&(e.onclick=as);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oc.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(u=t.endsWith("Capture"),a=t.slice(2,u?t.length-7:void 0),o=e[We]||null,o=o!=null?o[t]:null,typeof o=="function"&&e.removeEventListener(a,o,u),typeof l=="function")){typeof o!="function"&&o!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(a,l,u);break e}t in e?e[t]=l:l===!0?e.setAttribute(t,""):$o(e,t,l)}}}function Ge(e,a,t){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":K("error",e),K("load",e);var l=!1,u=!1,o;for(o in t)if(t.hasOwnProperty(o)){var r=t[o];if(r!=null)switch(o){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,a));default:oe(e,a,o,r,t,null)}}u&&oe(e,a,"srcSet",t.srcSet,t,null),l&&oe(e,a,"src",t.src,t,null);return;case"input":K("invalid",e);var s=o=r=u=null,d=null,n=null;for(l in t)if(t.hasOwnProperty(l)){var x=t[l];if(x!=null)switch(l){case"name":u=x;break;case"type":r=x;break;case"checked":d=x;break;case"defaultChecked":n=x;break;case"value":o=x;break;case"defaultValue":s=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(A(137,a));break;default:oe(e,a,l,x,t,null)}}dc(e,o,s,d,n,r,u,!1),xr(e);return;case"select":K("invalid",e),l=r=o=null;for(u in t)if(t.hasOwnProperty(u)&&(s=t[u],s!=null))switch(u){case"value":o=s;break;case"defaultValue":r=s;break;case"multiple":l=s;default:oe(e,a,u,s,t,null)}a=o,t=r,e.multiple=!!l,a!=null?kl(e,!!l,a,!1):t!=null&&kl(e,!!l,t,!0);return;case"textarea":K("invalid",e),o=u=l=null;for(r in t)if(t.hasOwnProperty(r)&&(s=t[r],s!=null))switch(r){case"value":l=s;break;case"defaultValue":u=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(A(91));break;default:oe(e,a,r,s,t,null)}nc(e,l,u,o),xr(e);return;case"option":for(d in t)if(t.hasOwnProperty(d)&&(l=t[d],l!=null))switch(d){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:oe(e,a,d,l,t,null)}return;case"dialog":K("beforetoggle",e),K("toggle",e),K("cancel",e),K("close",e);break;case"iframe":case"object":K("load",e);break;case"video":case"audio":for(l=0;l<Fu.length;l++)K(Fu[l],e);break;case"image":K("error",e),K("load",e);break;case"details":K("toggle",e);break;case"embed":case"source":case"link":K("error",e),K("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(n in t)if(t.hasOwnProperty(n)&&(l=t[n],l!=null))switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,a));default:oe(e,a,n,l,t,null)}return;default:if(ei(a)){for(x in t)t.hasOwnProperty(x)&&(l=t[x],l!==void 0&&qd(e,a,x,l,t,void 0));return}}for(s in t)t.hasOwnProperty(s)&&(l=t[s],l!=null&&oe(e,a,s,l,t,null))}function bx(e,a,t,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,o=null,r=null,s=null,d=null,n=null,x=null;for(m in t){var v=t[m];if(t.hasOwnProperty(m)&&v!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":d=v;default:l.hasOwnProperty(m)||oe(e,a,m,null,l,v)}}for(var c in l){var m=l[c];if(v=t[c],l.hasOwnProperty(c)&&(m!=null||v!=null))switch(c){case"type":o=m;break;case"name":u=m;break;case"checked":n=m;break;case"defaultChecked":x=m;break;case"value":r=m;break;case"defaultValue":s=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,a));break;default:m!==v&&oe(e,a,c,m,l,v)}}dd(e,r,s,d,n,x,o,u);return;case"select":m=r=s=c=null;for(o in t)if(d=t[o],t.hasOwnProperty(o)&&d!=null)switch(o){case"value":break;case"multiple":m=d;default:l.hasOwnProperty(o)||oe(e,a,o,null,l,d)}for(u in l)if(o=l[u],d=t[u],l.hasOwnProperty(u)&&(o!=null||d!=null))switch(u){case"value":c=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:o!==d&&oe(e,a,u,o,l,d)}a=s,t=r,l=m,c!=null?kl(e,!!t,c,!1):!!l!=!!t&&(a!=null?kl(e,!!t,a,!0):kl(e,!!t,t?[]:"",!1));return;case"textarea":m=c=null;for(s in t)if(u=t[s],t.hasOwnProperty(s)&&u!=null&&!l.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:oe(e,a,s,null,l,u)}for(r in l)if(u=l[r],o=t[r],l.hasOwnProperty(r)&&(u!=null||o!=null))switch(r){case"value":c=u;break;case"defaultValue":m=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(A(91));break;default:u!==o&&oe(e,a,r,u,l,o)}ic(e,c,m);return;case"option":for(var M in t)if(c=t[M],t.hasOwnProperty(M)&&c!=null&&!l.hasOwnProperty(M))switch(M){case"selected":e.selected=!1;break;default:oe(e,a,M,null,l,c)}for(d in l)if(c=l[d],m=t[d],l.hasOwnProperty(d)&&c!==m&&(c!=null||m!=null))switch(d){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:oe(e,a,d,c,l,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 k in t)c=t[k],t.hasOwnProperty(k)&&c!=null&&!l.hasOwnProperty(k)&&oe(e,a,k,null,l,c);for(n in l)if(c=l[n],m=t[n],l.hasOwnProperty(n)&&c!==m&&(c!=null||m!=null))switch(n){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(A(137,a));break;default:oe(e,a,n,c,l,m)}return;default:if(ei(a)){for(var _ in t)c=t[_],t.hasOwnProperty(_)&&c!==void 0&&!l.hasOwnProperty(_)&&qd(e,a,_,void 0,l,c);for(x in l)c=l[x],m=t[x],!l.hasOwnProperty(x)||c===m||c===void 0&&m===void 0||qd(e,a,x,c,l,m);return}}for(var f in t)c=t[f],t.hasOwnProperty(f)&&c!=null&&!l.hasOwnProperty(f)&&oe(e,a,f,null,l,c);for(v in l)c=l[v],m=t[v],!l.hasOwnProperty(v)||c===m||c==null&&m==null||oe(e,a,v,c,l,m)}var Pd=null,Xd=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function Tf(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 cp(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function zd(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Js=null;function vx(){var e=window.event;return e&&e.type==="popstate"?e===Js?!1:(Js=e,!0):(Js=null,!1)}var mp=typeof setTimeout=="function"?setTimeout:void 0,yx=typeof clearTimeout=="function"?clearTimeout:void 0,kf=typeof Promise=="function"?Promise:void 0,Lx=typeof queueMicrotask=="function"?queueMicrotask:typeof kf<"u"?function(e){return kf.resolve(null).then(e).catch(wx)}:mp;function wx(e){setTimeout(function(){throw e})}function Et(e){return e==="head"}function Mf(e,a){var t=a,l=0,u=0;do{var o=t.nextSibling;if(e.removeChild(t),o&&o.nodeType===8)if(t=o.data,t==="/$"){if(0<l&&8>l){t=l;var r=e.ownerDocument;if(t&1&&Gu(r.documentElement),t&2&&Gu(r.body),t&4)for(t=r.head,Gu(t),r=t.firstChild;r;){var s=r.nextSibling,d=r.nodeName;r[ao]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&r.rel.toLowerCase()==="stylesheet"||t.removeChild(r),r=s}}if(u===0){e.removeChild(o),Ku(a);return}u--}else t==="$"||t==="$?"||t==="$!"?u++:l=t.charCodeAt(0)-48;else l=0;t=o}while(t);Ku(a)}function _d(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var t=a;switch(a=a.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":_d(t),$d(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function Sx(e,a,t,l){for(;e.nodeType===1;){var u=t;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ao])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var o=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Sa(e.nextSibling),e===null)break}return null}function Cx(e,a,t){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Sa(e.nextSibling),e===null))return null;return e}function Hd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ix(e,a){var t=e.ownerDocument;if(e.data!=="$?"||t.readyState==="complete")a();else{var l=function(){a(),t.removeEventListener("DOMContentLoaded",l)};t.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Sa(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return e}var Fd=null;function Bf(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(a===0)return e;a--}else t==="/$"&&a++}e=e.previousSibling}return null}function pp(e,a,t){switch(a=Gr(t),e){case"html":if(e=a.documentElement,!e)throw Error(A(452));return e;case"head":if(e=a.head,!e)throw Error(A(453));return e;case"body":if(e=a.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function Gu(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);$d(e)}var ba=new Map,Uf=new Set;function Or(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ut=te.d;te.d={f:Rx,r:Ax,D:Dx,C:Nx,L:Tx,m:kx,X:Bx,S:Mx,M:Ux};function Rx(){var e=ut.f(),a=Jr();return e||a}function Ax(e){var a=Kl(e);a!==null&&a.tag===5&&a.type==="form"?sm(a):ut.r(e)}var $l=typeof document>"u"?null:document;function gp(e,a,t){var l=$l;if(l&&typeof a=="string"&&a){var u=pa(a);u='link[rel="'+e+'"][href="'+u+'"]',typeof t=="string"&&(u+='[crossorigin="'+t+'"]'),Uf.has(u)||(Uf.add(u),e={rel:e,crossOrigin:t,href:a},l.querySelector(u)===null&&(a=l.createElement("link"),Ge(a,"link",e),De(a),l.head.appendChild(a)))}}function Dx(e){ut.D(e),gp("dns-prefetch",e,null)}function Nx(e,a){ut.C(e,a),gp("preconnect",e,a)}function Tx(e,a,t){ut.L(e,a,t);var l=$l;if(l&&e&&a){var u='link[rel="preload"][as="'+pa(a)+'"]';a==="image"&&t&&t.imageSrcSet?(u+='[imagesrcset="'+pa(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(u+='[imagesizes="'+pa(t.imageSizes)+'"]')):u+='[href="'+pa(e)+'"]';var o=u;switch(a){case"style":o=Ql(e);break;case"script":o=eu(e)}ba.has(o)||(e=ne({rel:"preload",href:a==="image"&&t&&t.imageSrcSet?void 0:e,as:a},t),ba.set(o,e),l.querySelector(u)!==null||a==="style"&&l.querySelector(co(o))||a==="script"&&l.querySelector(mo(o))||(a=l.createElement("link"),Ge(a,"link",e),De(a),l.head.appendChild(a)))}}function kx(e,a){ut.m(e,a);var t=$l;if(t&&e){var l=a&&typeof a.as=="string"?a.as:"script",u='link[rel="modulepreload"][as="'+pa(l)+'"][href="'+pa(e)+'"]',o=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=eu(e)}if(!ba.has(o)&&(e=ne({rel:"modulepreload",href:e},a),ba.set(o,e),t.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(mo(o)))return}l=t.createElement("link"),Ge(l,"link",e),De(l),t.head.appendChild(l)}}}function Mx(e,a,t){ut.S(e,a,t);var l=$l;if(l&&e){var u=Tl(l).hoistableStyles,o=Ql(e);a=a||"default";var r=u.get(o);if(!r){var s={loading:0,preload:null};if(r=l.querySelector(co(o)))s.loading=5;else{e=ne({rel:"stylesheet",href:e,"data-precedence":a},t),(t=ba.get(o))&&Gi(e,t);var d=r=l.createElement("link");De(d),Ge(d,"link",e),d._p=new Promise(function(n,x){d.onload=n,d.onerror=x}),d.addEventListener("load",function(){s.loading|=1}),d.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ir(r,a,l)}r={type:"stylesheet",instance:r,count:1,state:s},u.set(o,r)}}}function Bx(e,a){ut.X(e,a);var t=$l;if(t&&e){var l=Tl(t).hoistableScripts,u=eu(e),o=l.get(u);o||(o=t.querySelector(mo(u)),o||(e=ne({src:e,async:!0},a),(a=ba.get(u))&&Oi(e,a),o=t.createElement("script"),De(o),Ge(o,"link",e),t.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(u,o))}}function Ux(e,a){ut.M(e,a);var t=$l;if(t&&e){var l=Tl(t).hoistableScripts,u=eu(e),o=l.get(u);o||(o=t.querySelector(mo(u)),o||(e=ne({src:e,async:!0,type:"module"},a),(a=ba.get(u))&&Oi(e,a),o=t.createElement("script"),De(o),Ge(o,"link",e),t.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(u,o))}}function Ef(e,a,t,l){var u=(u=St.current)?Or(u):null;if(!u)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(a=Ql(t.href),t=Tl(u).hoistableStyles,l=t.get(a),l||(l={type:"style",instance:null,count:0,state:null},t.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=Ql(t.href);var o=Tl(u).hoistableStyles,r=o.get(e);if(r||(u=u.ownerDocument||u,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,r),(o=u.querySelector(co(e)))&&!o._p&&(r.instance=o,r.state.loading=5),ba.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},ba.set(e,t),o||Ex(u,e,t,r.state))),a&&l===null)throw Error(A(528,""));return r}if(a&&l!==null)throw Error(A(529,""));return null;case"script":return a=t.async,t=t.src,typeof t=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=eu(t),t=Tl(u).hoistableScripts,l=t.get(a),l||(l={type:"script",instance:null,count:0,state:null},t.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function Ql(e){return'href="'+pa(e)+'"'}function co(e){return'link[rel="stylesheet"]['+e+"]"}function xp(e){return ne({},e,{"data-precedence":e.precedence,precedence:null})}function Ex(e,a,t,l){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=e.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Ge(a,"link",t),De(a),e.head.appendChild(a))}function eu(e){return'[src="'+pa(e)+'"]'}function mo(e){return"script[async]"+e}function Gf(e,a,t){if(a.count++,a.instance===null)switch(a.type){case"style":var l=e.querySelector('style[data-href~="'+pa(t.href)+'"]');if(l)return a.instance=l,De(l),l;var u=ne({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),De(l),Ge(l,"style",u),ir(l,t.precedence,e),a.instance=l;case"stylesheet":u=Ql(t.href);var o=e.querySelector(co(u));if(o)return a.state.loading|=4,a.instance=o,De(o),o;l=xp(t),(u=ba.get(u))&&Gi(l,u),o=(e.ownerDocument||e).createElement("link"),De(o);var r=o;return r._p=new Promise(function(s,d){r.onload=s,r.onerror=d}),Ge(o,"link",l),a.state.loading|=4,ir(o,t.precedence,e),a.instance=o;case"script":return o=eu(t.src),(u=e.querySelector(mo(o)))?(a.instance=u,De(u),u):(l=t,(u=ba.get(o))&&(l=ne({},t),Oi(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),De(u),Ge(u,"link",l),e.head.appendChild(u),a.instance=u);case"void":return null;default:throw Error(A(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,ir(l,t.precedence,e));return a.instance}function ir(e,a,t){for(var l=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,o=u,r=0;r<l.length;r++){var s=l[r];if(s.dataset.precedence===a)o=s;else if(o!==u)break}o?o.parentNode.insertBefore(e,o.nextSibling):(a=t.nodeType===9?t.head:t,a.insertBefore(e,a.firstChild))}function Gi(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function Oi(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var nr=null;function Of(e,a,t){if(nr===null){var l=new Map,u=nr=new Map;u.set(t,l)}else u=nr,l=u.get(t),l||(l=new Map,u.set(t,l));if(l.has(e))return l;for(l.set(e,null),t=t.getElementsByTagName(e),u=0;u<t.length;u++){var o=t[u];if(!(o[ao]||o[ze]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var r=o.getAttribute(a)||"";r=e+r;var s=l.get(r);s?s.push(o):l.set(r,[o])}}return l}function qf(e,a,t){e=e.ownerDocument||e,e.head.insertBefore(t,a==="title"?e.querySelector("head > title"):null)}function Gx(e,a,t){if(t===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function hp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ju=null;function Ox(){}function qx(e,a,t){if(ju===null)throw Error(A(475));var l=ju;if(a.type==="stylesheet"&&(typeof t.media!="string"||matchMedia(t.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ql(t.href),o=e.querySelector(co(u));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=qr.bind(l),e.then(l,l)),a.state.loading|=4,a.instance=o,De(o);return}o=e.ownerDocument||e,t=xp(t),(u=ba.get(u))&&Gi(t,u),o=o.createElement("link"),De(o);var r=o;r._p=new Promise(function(s,d){r.onload=s,r.onerror=d}),Ge(o,"link",t),a.instance=o}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=qr.bind(l),e.addEventListener("load",a),e.addEventListener("error",a))}}function Px(){if(ju===null)throw Error(A(475));var e=ju;return e.stylesheets&&e.count===0&&Vd(e,e.stylesheets),0<e.count?function(a){var t=setTimeout(function(){if(e.stylesheets&&Vd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(t)}}:null}function qr(){if(this.count--,this.count===0){if(this.stylesheets)Vd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pr=null;function Vd(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pr=new Map,a.forEach(Xx,e),Pr=null,qr.call(e))}function Xx(e,a){if(!(a.state.loading&4)){var t=Pr.get(e);if(t)var l=t.get(null);else{t=new Map,Pr.set(e,t);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<u.length;o++){var r=u[o];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(t.set(r.dataset.precedence,r),l=r)}l&&t.set(null,l)}u=a.instance,r=u.getAttribute("data-precedence"),o=t.get(r)||l,o===l&&t.set(null,u),t.set(r,u),this.count++,l=qr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),o?o.parentNode.insertBefore(u,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),a.state.loading|=4}}var Yu={$$typeof:Ya,Provider:null,Consumer:null,_currentValue:Ft,_currentValue2:Ft,_threadCount:0};function zx(e,a,t,l,u,o,r,s){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=Ss(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ss(0),this.hiddenUpdates=Ss(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=o,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function bp(e,a,t,l,u,o,r,s,d,n,x,v){return e=new zx(e,a,t,r,s,d,n,v),a=1,o===!0&&(a|=24),o=la(3,null,null,a),e.current=o,o.stateNode=e,a=fi(),a.refCount++,e.pooledCache=a,a.refCount++,o.memoizedState={element:l,isDehydrated:t,cache:a},mi(o),e}function vp(e){return e?(e=Rl,e):Rl}function yp(e,a,t,l,u,o){u=vp(u),l.context===null?l.context=u:l.pendingContext=u,l=Ct(a),l.payload={element:t},o=o===void 0?null:o,o!==null&&(l.callback=o),t=It(e,l,a),t!==null&&(sa(t,e,a),Du(t,e,a))}function Pf(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<a?t:a}}function qi(e,a){Pf(e,a),(e=e.alternate)&&Pf(e,a)}function Lp(e){if(e.tag===13){var a=Wl(e,67108864);a!==null&&sa(a,e,67108864),qi(e,67108864)}}var Xr=!0;function _x(e,a,t,l){var u=H.T;H.T=null;var o=te.p;try{te.p=2,Pi(e,a,t,l)}finally{te.p=o,H.T=u}}function Hx(e,a,t,l){var u=H.T;H.T=null;var o=te.p;try{te.p=8,Pi(e,a,t,l)}finally{te.p=o,H.T=u}}function Pi(e,a,t,l){if(Xr){var u=jd(l);if(u===null)Ws(e,a,l,zr,t),Xf(e,l);else if(Vx(u,e,a,t,l))l.stopPropagation();else if(Xf(e,l),a&4&&-1<Fx.indexOf(e)){for(;u!==null;){var o=Kl(u);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var r=zt(o.pendingLanes);if(r!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;r;){var d=1<<31-oa(r);s.entanglements[1]|=d,r&=~d}Pa(o),(ue&6)===0&&(kr=Ga()+500,fo(0,!1))}}break;case 13:s=Wl(o,2),s!==null&&sa(s,o,2),Jr(),qi(o,2)}if(o=jd(l),o===null&&Ws(e,a,l,zr,t),o===u)break;u=o}u!==null&&l.stopPropagation()}else Ws(e,a,l,null,t)}}function jd(e){return e=ai(e),Xi(e)}var zr=null;function Xi(e){if(zr=null,e=yl(e),e!==null){var a=Wu(e);if(a===null)e=null;else{var t=a.tag;if(t===13){if(e=jf(a),e!==null)return e;e=null}else if(t===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return zr=e,null}function wp(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(kg()){case Kf:return 2;case Wf:return 8;case gr:case Mg:return 32;case Jf:return 268435456;default:return 32}default:return 32}}var Yd=!1,Dt=null,Nt=null,Tt=null,Qu=new Map,Zu=new Map,bt=[],Fx="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 Xf(e,a){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Qu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zu.delete(a.pointerId)}}function hu(e,a,t,l,u,o){return e===null||e.nativeEvent!==o?(e={blockedOn:a,domEventName:t,eventSystemFlags:l,nativeEvent:o,targetContainers:[u]},a!==null&&(a=Kl(a),a!==null&&Lp(a)),e):(e.eventSystemFlags|=l,a=e.targetContainers,u!==null&&a.indexOf(u)===-1&&a.push(u),e)}function Vx(e,a,t,l,u){switch(a){case"focusin":return Dt=hu(Dt,e,a,t,l,u),!0;case"dragenter":return Nt=hu(Nt,e,a,t,l,u),!0;case"mouseover":return Tt=hu(Tt,e,a,t,l,u),!0;case"pointerover":var o=u.pointerId;return Qu.set(o,hu(Qu.get(o)||null,e,a,t,l,u)),!0;case"gotpointercapture":return o=u.pointerId,Zu.set(o,hu(Zu.get(o)||null,e,a,t,l,u)),!0}return!1}function Sp(e){var a=yl(e.target);if(a!==null){var t=Wu(a);if(t!==null){if(a=t.tag,a===13){if(a=jf(t),a!==null){e.blockedOn=a,Xg(e.priority,function(){if(t.tag===13){var l=ra();l=Wd(l);var u=Wl(t,l);u!==null&&sa(u,t,l),qi(t,l)}});return}}else if(a===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fr(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var t=jd(e.nativeEvent);if(t===null){t=e.nativeEvent;var l=new t.constructor(t.type,t);nd=l,t.target.dispatchEvent(l),nd=null}else return a=Kl(t),a!==null&&Lp(a),e.blockedOn=t,!1;a.shift()}return!0}function zf(e,a,t){fr(e)&&t.delete(a)}function jx(){Yd=!1,Dt!==null&&fr(Dt)&&(Dt=null),Nt!==null&&fr(Nt)&&(Nt=null),Tt!==null&&fr(Tt)&&(Tt=null),Qu.forEach(zf),Zu.forEach(zf)}function Wo(e,a){e.blockedOn===a&&(e.blockedOn=null,Yd||(Yd=!0,Re.unstable_scheduleCallback(Re.unstable_NormalPriority,jx)))}var Jo=null;function _f(e){Jo!==e&&(Jo=e,Re.unstable_scheduleCallback(Re.unstable_NormalPriority,function(){Jo===e&&(Jo=null);for(var a=0;a<e.length;a+=3){var t=e[a],l=e[a+1],u=e[a+2];if(typeof l!="function"){if(Xi(l||t)===null)continue;break}var o=Kl(t);o!==null&&(e.splice(a,3),a-=3,Rd(o,{pending:!0,data:u,method:t.method,action:l},l,u))}}))}function Ku(e){function a(d){return Wo(d,e)}Dt!==null&&Wo(Dt,e),Nt!==null&&Wo(Nt,e),Tt!==null&&Wo(Tt,e),Qu.forEach(a),Zu.forEach(a);for(var t=0;t<bt.length;t++){var l=bt[t];l.blockedOn===e&&(l.blockedOn=null)}for(;0<bt.length&&(t=bt[0],t.blockedOn===null);)Sp(t),t.blockedOn===null&&bt.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(l=0;l<t.length;l+=3){var u=t[l],o=t[l+1],r=u[We]||null;if(typeof o=="function")r||_f(t);else if(r){var s=null;if(o&&o.hasAttribute("formAction")){if(u=o,r=o[We]||null)s=r.formAction;else if(Xi(u)!==null)continue}else s=r.action;typeof s=="function"?t[l+1]=s:(t.splice(l,3),l-=3),_f(t)}}}function zi(e){this._internalRoot=e}ts.prototype.render=zi.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(A(409));var t=a.current,l=ra();yp(t,l,e,a,null,null)};ts.prototype.unmount=zi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;yp(e.current,2,null,e,null,null),Jr(),a[Zl]=null}};function ts(e){this._internalRoot=e}ts.prototype.unstable_scheduleHydration=function(e){if(e){var a=lc();e={blockedOn:null,target:e,priority:a};for(var t=0;t<bt.length&&a!==0&&a<bt[t].priority;t++);bt.splice(t,0,e),t===0&&Sp(e)}};var Hf=Ff.version;if(Hf!=="19.1.1")throw Error(A(527,Hf,"19.1.1"));te.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Cg(a),e=e!==null?Yf(e):null,e=e===null?null:e.stateNode,e};var Yx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.1"};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(bu=__REACT_DEVTOOLS_GLOBAL_HOOK__,!bu.isDisabled&&bu.supportsFiber))try{Ju=bu.inject(Yx),ua=bu}catch{}var bu;ls.createRoot=function(e,a){if(!Vf(e))throw Error(A(299));var t=!1,l="",u=bm,o=vm,r=ym,s=null;return a!=null&&(a.unstable_strictMode===!0&&(t=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(r=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(s=a.unstable_transitionCallbacks)),a=bp(e,1,!1,null,null,t,l,u,o,r,s,null),e[Zl]=a.current,Ei(e),new zi(a)};ls.hydrateRoot=function(e,a,t){if(!Vf(e))throw Error(A(299));var l=!1,u="",o=bm,r=vm,s=ym,d=null,n=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(d=t.unstable_transitionCallbacks),t.formState!==void 0&&(n=t.formState)),a=bp(e,1,!0,a,t??null,l,u,o,r,s,d,n),a.context=vp(null),t=a.current,l=ra(),l=Wd(l),u=Ct(l),u.callback=null,It(t,u,l),t=l,a.current.lanes=t,eo(a,t),Pa(a),e[Zl]=a.current,Ei(e),new ts(a)};ls.version="19.1.1"});var Ap=Ta((qh,Rp)=>{"use strict";function Ip(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ip)}catch(e){console.error(e)}}Ip(),Rp.exports=Cp()});var Bp=Ta(ss=>{"use strict";var Ah=Symbol.for("react.transitional.element"),Dh=Symbol.for("react.fragment");function Mp(e,a,t){var l=null;if(t!==void 0&&(l=""+t),a.key!==void 0&&(l=""+a.key),"key"in a){t={};for(var u in a)u!=="key"&&(t[u]=a[u])}else t=a;return a=t.ref,{$$typeof:Ah,type:e,key:l,ref:a!==void 0?a:null,props:t}}ss.Fragment=Dh;ss.jsx=Mp;ss.jsxs=Mp});var fe=Ta((Xv,Up)=>{"use strict";Up.exports=Bp()});var Yp=Y(Be()),Qp=Y(Ap());var Vp=Y(Be());var Ot=Y(Be());var os=Y(Be());var Dp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,l)=>l?l.toUpperCase():t.toLowerCase()),_i=e=>{let a=Qx(e);return a.charAt(0).toUpperCase()+a.slice(1)},us=(...e)=>e.filter((a,t,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===t).join(" ").trim(),Np=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var po=Y(Be());var Tp={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"};var kp=(0,po.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:l,className:u="",children:o,iconNode:r,...s},d)=>(0,po.createElement)("svg",{ref:d,...Tp,width:a,height:a,stroke:e,strokeWidth:l?Number(t)*24/Number(a):t,className:us("lucide",u),...!o&&!Np(s)&&{"aria-hidden":"true"},...s},[...r.map(([n,x])=>(0,po.createElement)(n,x)),...Array.isArray(o)?o:[o]]));var O=(e,a)=>{let t=(0,os.forwardRef)(({className:l,...u},o)=>(0,os.createElement)(kp,{ref:o,iconNode:a,className:us(`lucide-${Dp(_i(e))}`,`lucide-${e}`,l),...u}));return t.displayName=_i(e),t};var Zx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Xa=O("check",Zx);var Kx=[["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"}]],Oe=O("circle-alert",Kx);var Wx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],He=O("circle-check-big",Wx);var Jx=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],go=O("clock",Jx);var $x=[["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"}]],au=O("cpu",$x);var eh=[["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"}]],Ia=O("download",eh);var ah=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],va=O("droplets",ah);var th=[["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"}]],xo=O("external-link",th);var lh=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ho=O("eye-off",lh);var uh=[["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"}]],Ra=O("eye",uh);var oh=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],Gt=O("file-spreadsheet",oh);var rh=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],bo=O("file-text",rh);var sh=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ot=O("image",sh);var dh=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],vo=O("link",dh);var ih=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Aa=O("loader",ih);var nh=[["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"}]],tu=O("message-square",nh);var fh=[["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"}]],yo=O("monitor",fh);var ch=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Da=O("plus",ch);var mh=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Lo=O("rotate-cw",mh);var ph=[["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"}]],za=O("save",ph);var gh=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ya=O("search",gh);var xh=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],wo=O("send",xh);var hh=[["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"}]],So=O("settings",hh);var bh=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Fe=O("square-pen",bh);var vh=[["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"}]],ol=O("trash-2",vh);var yh=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],lu=O("trending-up",yh);var Lh=[["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"}]],rt=O("triangle-alert",Lh);
9var wh=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],$e=O("upload",wh);var Sh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Se=O("x",Sh);var Ch=[["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"}]],Co=O("zap",Ch);var Ih=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Io=O("zoom-in",Ih);var Rh=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Ro=O("zoom-out",Rh);var rs={ASUS:[{name:"NVIDIA RTX 4090",models:[{name:"ROG Strix RTX 4090 OC",memory:"24GB GDDR6X",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx4090-o24g-gaming/"},{name:"TUF Gaming RTX 4090 OC",memory:"24GB GDDR6X",compatibilityUrl:"https://www.asus.com/graphics-cards/graphics-cards/tuf-gaming/tuf-rtx4090-o24g-gaming/"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"ROG Strix RTX 4080 SUPER OC",memory:"16GB GDDR6X",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx4080s-o16g-gaming/"},{name:"TUF Gaming RTX 4080 SUPER OC",memory:"16GB GDDR6X",compatibilityUrl:"https://www.asus.com/graphics-cards/graphics-cards/tuf-gaming/tuf-rtx4080s-o16g-gaming/"}]},{name:"NVIDIA RTX 4070 Ti SUPER",models:[{name:"ROG Strix RTX 4070 Ti SUPER OC",memory:"16GB GDDR6X",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx4070tis-o16g-gaming/"}]},{name:"NVIDIA RTX 4070 SUPER",models:[{name:"ROG Strix RTX 4070 SUPER OC",memory:"12GB GDDR6X",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx4070s-o12g-gaming/"}]},{name:"NVIDIA RTX 3090",models:[{name:"ROG Strix RTX 3090 OC",memory:"24GB GDDR6X",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx3090-o24g-gaming/"}]},{name:"NVIDIA RTX 3080",models:[{name:"TUF Gaming RTX 3080 OC",memory:"10GB GDDR6X",compatibilityUrl:"https://www.asus.com/graphics-cards/graphics-cards/tuf-gaming/tuf-rtx3080-o10g-gaming/"}]},{name:"NVIDIA RTX 3070",models:[{name:"ROG Strix RTX 3070 OC",memory:"8GB GDDR6",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx3070-o8g-gaming/"}]},{name:"AMD RX 7900 XTX",models:[{name:"ROG Strix RX 7900 XTX OC",memory:"24GB GDDR6",compatibilityUrl:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rx7900xtx-o24g-gaming/"}]},{name:"AMD RX 7800 XT",models:[{name:"TUF Gaming RX 7800 XT OC",memory:"16GB GDDR6",compatibilityUrl:"https://www.asus.com/graphics-cards/graphics-cards/tuf-gaming/tuf-rx7800xt-o16g-gaming/"}]}],MSI:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 Gaming X Trio",memory:"24GB GDDR6X",compatibilityUrl:"https://www.msi.com/Graphics-Card/GeForce-RTX-4090-GAMING-X-TRIO-24G"},{name:"RTX 4090 Suprim X",memory:"24GB GDDR6X",compatibilityUrl:"https://www.msi.com/Graphics-Card/GeForce-RTX-4090-SUPRIM-X-24G"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"RTX 4080 SUPER Gaming X Trio",memory:"16GB GDDR6X",compatibilityUrl:"https://www.msi.com/Graphics-Card/GeForce-RTX-4080-SUPER-16G-GAMING-X-TRIO"}]},{name:"NVIDIA RTX 4070 Ti SUPER",models:[{name:"RTX 4070 Ti SUPER Gaming X Trio",memory:"16GB GDDR6X",compatibilityUrl:"https://www.msi.com/Graphics-Card/GeForce-RTX-4070-Ti-SUPER-16G-GAMING-X-TRIO"}]},{name:"NVIDIA RTX 3090",models:[{name:"RTX 3090 Gaming X Trio",memory:"24GB GDDR6X",compatibilityUrl:"https://www.msi.com/Graphics-Card/GeForce-RTX-3090-GAMING-X-TRIO-24G"}]},{name:"NVIDIA RTX 3080",models:[{name:"RTX 3080 Gaming X Trio",memory:"10GB GDDR6X",compatibilityUrl:"https://www.msi.com/Graphics-Card/GeForce-RTX-3080-GAMING-X-TRIO-10G"}]},{name:"AMD RX 7900 XTX",models:[{name:"RX 7900 XTX Gaming X Trio",memory:"24GB GDDR6",compatibilityUrl:"https://www.msi.com/Graphics-Card/Radeon-RX-7900-XTX-GAMING-X-TRIO-24G"}]},{name:"AMD RX 7900 XT",models:[{name:"RX 7900 XT Gaming X Trio",memory:"20GB GDDR6",compatibilityUrl:"https://www.msi.com/Graphics-Card/Radeon-RX-7900-XT-GAMING-X-TRIO-20G"}]}],EVGA:[{name:"NVIDIA RTX 3090 Ti",models:[{name:"RTX 3090 Ti FTW3 Ultra",memory:"24GB GDDR6X",compatibilityUrl:"https://www.evga.com/products/product.aspx?pn=24G-P5-4985-KR"}]},{name:"NVIDIA RTX 3090",models:[{name:"RTX 3090 FTW3 Ultra",memory:"24GB GDDR6X",compatibilityUrl:"https://www.evga.com/products/product.aspx?pn=24G-P5-3987-KR"}]},{name:"NVIDIA RTX 3080 Ti",models:[{name:"RTX 3080 Ti FTW3 Ultra",memory:"12GB GDDR6X",compatibilityUrl:"https://www.evga.com/products/product.aspx?pn=12G-P5-3967-KR"}]},{name:"NVIDIA RTX 3080",models:[{name:"RTX 3080 FTW3 Ultra",memory:"10GB GDDR6X",compatibilityUrl:"https://www.evga.com/products/product.aspx?pn=10G-P5-3897-KR"}]},{name:"NVIDIA RTX 3070 Ti",models:[{name:"RTX 3070 Ti XC3 Ultra",memory:"8GB GDDR6X",compatibilityUrl:"https://www.evga.com/products/product.aspx?pn=08G-P5-3785-KL"}]},{name:"NVIDIA RTX 3070",models:[{name:"RTX 3070 XC3 Ultra",memory:"8GB GDDR6",compatibilityUrl:"https://www.evga.com/products/product.aspx?pn=08G-P5-3755-KL"}]}],Gigabyte:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 AORUS Master",memory:"24GB GDDR6X",compatibilityUrl:"https://www.gigabyte.com/Graphics-Card/GV-N4090AORUS-M-24GD"},{name:"RTX 4090 Gaming OC",memory:"24GB GDDR6X",compatibilityUrl:"https://www.gigabyte.com/Graphics-Card/GV-N4090GAMING-OC-24GD"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"RTX 4080 SUPER AORUS Master",memory:"16GB GDDR6X",compatibilityUrl:"https://www.gigabyte.com/Graphics-Card/GV-N408SAORUS-M-16GD"}]},{name:"AMD RX 7900 XTX",models:[{name:"RX 7900 XTX AORUS Master",memory:"24GB GDDR6",compatibilityUrl:"https://www.gigabyte.com/Graphics-Card/GV-R79XTXAORUS-M-24GD"}]},{name:"AMD RX 7800 XT",models:[{name:"RX 7800 XT Gaming OC",memory:"16GB GDDR6",compatibilityUrl:"https://www.gigabyte.com/Graphics-Card/GV-R78XTGAMING-OC-16GD"}]}],XFX:[{name:"AMD RX 7900 XTX",models:[{name:"RX 7900 XTX Speedster MERC310",memory:"24GB GDDR6",compatibilityUrl:"https://www.xfxforce.com/shop/xfx-speedster-merc310-amd-radeon-rx-7900-xtx"}]},{name:"AMD RX 7900 XT",models:[{name:"RX 7900 XT Speedster MERC310",memory:"20GB GDDR6",compatibilityUrl:"https://www.xfxforce.com/shop/xfx-speedster-merc310-amd-radeon-rx-7900-xt"}]},{name:"AMD RX 7800 XT",models:[{name:"RX 7800 XT Speedster MERC319",memory:"16GB GDDR6",compatibilityUrl:"https://www.xfxforce.com/shop/xfx-speedster-merc319-amd-radeon-rx-7800-xt"}]},{name:"AMD RX 7700 XT",models:[{name:"RX 7700 XT Speedster QICK319",memory:"12GB GDDR6",compatibilityUrl:"https://www.xfxforce.com/shop/xfx-speedster-qick319-amd-radeon-rx-7700-xt"}]},{name:"AMD RX 6900 XT",models:[{name:"RX 6900 XT Speedster MERC319",memory:"16GB GDDR6",compatibilityUrl:"https://www.xfxforce.com/shop/xfx-speedster-merc319-amd-radeon-rx-6900-xt"}]},{name:"AMD RX 6800 XT",models:[{name:"RX 6800 XT Speedster MERC319",memory:"16GB GDDR6",compatibilityUrl:"https://www.xfxforce.com/shop/xfx-speedster-merc319-amd-radeon-rx-6800-xt"}]}],Sapphire:[{name:"AMD RX 7900 XTX",models:[{name:"RX 7900 XTX NITRO+",memory:"24GB GDDR6",compatibilityUrl:"https://www.sapphiretech.com/en/consumer/nitro-radeon-rx-7900-xtx-24g-gddr6"},{name:"RX 7900 XTX PULSE",memory:"24GB GDDR6",compatibilityUrl:"https://www.sapphiretech.com/en/consumer/pulse-radeon-rx-7900-xtx-24g-gddr6"}]},{name:"AMD RX 7900 XT",models:[{name:"RX 7900 XT NITRO+",memory:"20GB GDDR6",compatibilityUrl:"https://www.sapphiretech.com/en/consumer/nitro-radeon-rx-7900-xt-20g-gddr6"}]},{name:"AMD RX 7800 XT",models:[{name:"RX 7800 XT NITRO+",memory:"16GB GDDR6",compatibilityUrl:"https://www.sapphiretech.com/en/consumer/nitro-radeon-rx-7800-xt-16g-gddr6"}]},{name:"AMD RX 6900 XT",models:[{name:"RX 6900 XT NITRO+",memory:"16GB GDDR6",compatibilityUrl:"https://www.sapphiretech.com/en/consumer/nitro-radeon-rx-6900-xt-16g-gddr6"}]},{name:"AMD RX 6800 XT",models:[{name:"RX 6800 XT NITRO+",memory:"16GB GDDR6",compatibilityUrl:"https://www.sapphiretech.com/en/consumer/nitro-radeon-rx-6800-xt-16g-gddr6"}]}],PowerColor:[{name:"AMD RX 7900 XTX",models:[{name:"RX 7900 XTX Red Devil",memory:"24GB GDDR6",compatibilityUrl:"https://www.powercolor.com/product?id=1676877959"}]},{name:"AMD RX 7900 XT",models:[{name:"RX 7900 XT Red Devil",memory:"20GB GDDR6",compatibilityUrl:"https://www.powercolor.com/product?id=1676878020"}]},{name:"AMD RX 7800 XT",models:[{name:"RX 7800 XT Hellhound",memory:"16GB GDDR6",compatibilityUrl:"https://www.powercolor.com/product?id=1693804800"}
9]}],ASRock:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 Phantom Gaming OC",memory:"24GB GDDR6X",compatibilityUrl:"https://www.asrock.com/Graphics-Card/NVIDIA/Radeon-RX-7900-XTX-Phantom-Gaming-24GB-OC/"}]},{name:"AMD RX 7900 XTX",models:[{name:"RX 7900 XTX Phantom Gaming OC",memory:"24GB GDDR6",compatibilityUrl:"https://www.asrock.com/Graphics-Card/AMD/Radeon-RX-7900-XTX-Phantom-Gaming-24GB-OC/"}]},{name:"AMD RX 7800 XT",models:[{name:"RX 7800 XT Phantom Gaming OC",memory:"16GB GDDR6",compatibilityUrl:"https://www.asrock.com/Graphics-Card/AMD/Radeon-RX-7800-XT-Phantom-Gaming-16GB-OC/"}]}],Zotac:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 Trinity OC",memory:"24GB GDDR6X",compatibilityUrl:"https://www.zotac.com/us/product/graphics_card/zotac-gaming-geforce-rtx-4090-trinity-oc"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"RTX 4080 SUPER Trinity OC",memory:"16GB GDDR6X",compatibilityUrl:"https://www.zotac.com/us/product/graphics_card/zotac-gaming-geforce-rtx-4080-super-trinity-oc"}]},{name:"NVIDIA RTX 4070 Ti SUPER",models:[{name:"RTX 4070 Ti SUPER AMP",memory:"16GB GDDR6X",compatibilityUrl:"https://www.zotac.com/us/product/graphics_card/zotac-gaming-geforce-rtx-4070-ti-super-amp"}]},{name:"NVIDIA RTX 3090",models:[{name:"RTX 3090 Trinity",memory:"24GB GDDR6X",compatibilityUrl:"https://www.zotac.com/us/product/graphics_card/zotac-gaming-geforce-rtx-3090-trinity"}]},{name:"NVIDIA RTX 3080",models:[{name:"RTX 3080 Trinity OC",memory:"10GB GDDR6X",compatibilityUrl:"https://www.zotac.com/us/product/graphics_card/zotac-gaming-geforce-rtx-3080-trinity-oc"}]}],PNY:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 XLR8 Gaming VERTO EPIC-X RGB",memory:"24GB GDDR6X",compatibilityUrl:"https://www.pny.com/geforce-rtx-4090-24gb-xlr8-gaming-verto-epic-x-rgb"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"RTX 4080 SUPER XLR8 Gaming VERTO",memory:"16GB GDDR6X",compatibilityUrl:"https://www.pny.com/geforce-rtx-4080-super-16gb-xlr8-gaming-verto"}]},{name:"NVIDIA RTX 4070 Ti SUPER",models:[{name:"RTX 4070 Ti SUPER XLR8 Gaming VERTO",memory:"16GB GDDR6X",compatibilityUrl:"https://www.pny.com/geforce-rtx-4070-ti-super-16gb-xlr8-gaming-verto"}]},{name:"NVIDIA RTX 4070 SUPER",models:[{name:"RTX 4070 SUPER XLR8 Gaming VERTO",memory:"12GB GDDR6X",compatibilityUrl:"https://www.pny.com/geforce-rtx-4070-super-12gb-xlr8-gaming-verto"}]},{name:"NVIDIA RTX 3090",models:[{name:"RTX 3090 XLR8 Gaming REVEL EPIC-X RGB",memory:"24GB GDDR6X",compatibilityUrl:"https://www.pny.com/geforce-rtx-3090-24gb-xlr8-gaming-revel-epic-x-rgb"}]},{name:"NVIDIA RTX 3080",models:[{name:"RTX 3080 XLR8 Gaming REVEL EPIC-X RGB",memory:"10GB GDDR6X",compatibilityUrl:"https://www.pny.com/geforce-rtx-3080-10gb-xlr8-gaming-revel-epic-x-rgb"}]}],Palit:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 GameRock OC",memory:"24GB GDDR6X",compatibilityUrl:"https://www.palit.com/palit/vgapro.php?id=3732"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"RTX 4080 SUPER GameRock OC",memory:"16GB GDDR6X",compatibilityUrl:"https://www.palit.com/palit/vgapro.php?id=3850"}]}],Gainward:[{name:"NVIDIA RTX 4090",models:[{name:"RTX 4090 Phantom GS",memory:"24GB GDDR6X",compatibilityUrl:"https://www.gainward.com/main/vgapro.php?id=1032"}]},{name:"NVIDIA RTX 4080 SUPER",models:[{name:"RTX 4080 SUPER Phantom GS",memory:"16GB GDDR6X",compatibilityUrl:"https://www.gainward.com/main/vgapro.php?id=1045"}]}],Intel:[{name:"Intel Arc A770",models:[{name:"Arc A770 Limited Edition",memory:"16GB GDDR6",compatibilityUrl:"https://www.intel.com/content/www/us/en/products/details/discrete-gpus/arc/a-series/a770.html"}]},{name:"Intel Arc A750",models:[{name:"Arc A750 Limited Edition",memory:"8GB GDDR6",compatibilityUrl:"https://www.intel.com/content/www/us/en/products/details/discrete-gpus/arc/a-series/a750.html"}]},{name:"Intel Arc A580",models:[{name:"Arc A580",memory:"8GB GDDR6",compatibilityUrl:"https://www.intel.com/content/www/us/en/products/details/discrete-gpus/arc/a-series/a580.html"}]}]};var Ao=Y(Be());var P=Y(fe()),Ep=({onClose:e,selectedBrand:a,selectedSeries:t})=>{let[l,u]=Ao.useState({brand:a||"",series:t||"",modelName:"",memory:"",email:"",additionalInfo:""}),[o,r]=Ao.useState(!1),[s,d]=Ao.useState(!1),[n,x]=Ao.useState(""),v=async c=>{c.preventDefault(),r(!0),x("");try{await new Promise(m=>setTimeout(m,2e3)),d(!0)}catch(m){x("Failed to submit request. Please try again."),console.error("Error submitting GPU request:",m)}finally{r(!1)}};return s?(0,P.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,P.jsx)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-md w-full p-8",children:(0,P.jsxs)("div",{className:"text-center",children:[(0,P.jsx)("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,P.jsx)(He,{className:"w-8 h-8 text-green-600"})}),(0,P.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Request Submitted!"}),(0,P.jsxs)("p",{className:"text-gray-600 mb-6",children:["Thank you for your request. We've added your GPU model to our research queue. We'll notify you at ",(0,P.jsx)("strong",{children:l.email})," when it becomes available."]}),(0,P.jsx)("button",{onClick:e,className:"bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors font-medium",children:"Continue"})]})})}):(0,P.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,P.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[(0,P.jsx)("div",{className:"p-6 border-b border-gray-200",children:(0,P.jsxs)("div",{className:"flex items-center justify-between",children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("h3",{className:"text-2xl font-bold text-gray-900",children:"Request Missing GPU Model"}),(0,P.jsx)("p",{className:"text-gray-600 mt-1",children:"Help us expand our database by telling us about your GPU"})]}),(0,P.jsx)("button",{onClick:e,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,P.jsx)(Se,{className:"w-6 h-6"})})]})}),(0,P.jsxs)("form",{onSubmit:v,className:"p-6",children:[n&&(0,P.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg flex items-center gap-3",children:[(0,P.jsx)(Oe,{className:"w-5 h-5 text-red-600 flex-shrink-0"}),(0,P.jsx)("p",{className:"text-red-700",children:n})]}),(0,P.jsxs)("div",{className:"grid gap-6 md:grid-cols-2",children:[(0,P.jsxs)("div",{children:[(0,P.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Manufacturer ",(0,P.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,P.jsx)("input",{type:"text",required:!0,value:l.brand,onChange:c=>u({...l,brand:c.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., ASUS, MSI, EVGA"})]}),(0,P.jsxs)("div",{children:[(0,P.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"GPU Model"}),(0,P.jsx)("input",{type:"text",value:l.series,onChange:c=>u({...l,series:c.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., NVIDIA RTX 4090, AMD RX 7900 XTX"})]}),(0,P.jsxs)("div",{className:"md:col-span-2",children:[(0,P.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Full Model Name ",(0,P.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,P.jsx)("input",{type:"text",required:!0,value:l.modelName,onChange:c=>u({...l,modelName:c.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., ROG Strix RTX 4090 Ti OC Edition"}),(0,P.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Please include the complete model name as it appears on your graphics card"})]}),(0,P.jsxs)("div",{children:[(0,P.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Memory"}),(0,P.jsx)("input",{type:"text",value:l.memory,onChange:c=>u({...l,memory:c.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., 24GB GDDR6X, 16GB GDDR6"})]}),(0,P.jsxs)("div",{children:[(0,P.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Your Email ",(0,P.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,P.jsx)("input",{type:"email",required:!0,value:l.email,onChange:c=>u({...l,email:c.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"[email protected]"}),(0,P.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"We'll notify you when your GPU model is added to our database"})]}),(0,P.jsxs)("div",{className:"md:col-span-2",children:[(0,P.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Additional Information"}),(0,P.jsx)("textarea",{value:l.additionalInfo,onChange:c=>u({...l,additionalInfo:c.target.value}),rows:3,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Any additional details about your GPU model, where you purchased it, or specific compatibility concerns..."})]})]}),(0,P.jsxs)("div",{className:"flex gap-4 mt-8",children:[(0,P.jsx)("button",{type:"submit",disabled:o,className:"flex-1 bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:o?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent roun
9ded-full animate-spin"}),"Submitting..."]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(wo,{className:"w-4 h-4"}),"Submit Request"]})}),(0,P.jsx)("button",{type:"button",onClick:e,className:"px-6 py-3 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors font-medium",children:"Cancel"})]})]})]})})};var rl=Y(Be());var z=Y(fe()),Gp=({isOpen:e,onClose:a,model:t})=>{let[l,u]=rl.useState(1),[o,r]=rl.useState(0),[s,d]=rl.useState(!1),[n,x]=rl.useState(!1);rl.useEffect(()=>{e&&(u(1),r(0),d(!1),x(!1))},[e]);let v=()=>u(k=>Math.min(k+.25,3)),c=()=>u(k=>Math.max(k-.25,.5)),m=()=>r(k=>(k+90)%360),M=()=>{if(t.imageUrl){let k=document.createElement("a");k.href=t.imageUrl,k.download=`${t.brand}_${t.name}_PCB.jpg`,document.body.appendChild(k),k.click(),document.body.removeChild(k)}};return e?(0,z.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-90 flex items-center justify-center p-4 z-50",children:(0,z.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-6xl w-full max-h-[95vh] overflow-hidden",children:[(0,z.jsx)("div",{className:"p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-purple-50",children:(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-1",children:"PCB Reference Image"}),(0,z.jsxs)("div",{className:"flex items-center gap-4 text-sm text-gray-600",children:[(0,z.jsxs)("span",{className:"font-medium",children:[t.brand," ",t.name]}),(0,z.jsx)("span",{children:"\u2022"}),(0,z.jsx)("span",{children:t.series}),(0,z.jsx)("span",{children:"\u2022"}),(0,z.jsx)("span",{children:t.memory})]})]}),(0,z.jsx)("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 transition-colors p-2 rounded-lg hover:bg-gray-100",children:(0,z.jsx)(Se,{className:"w-6 h-6"})})]})}),(0,z.jsx)("div",{className:"p-4 border-b border-gray-200 bg-gray-50",children:(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)("button",{onClick:c,disabled:l<=.5,className:"p-2 rounded-lg border border-gray-300 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:(0,z.jsx)(Ro,{className:"w-4 h-4"})}),(0,z.jsxs)("span",{className:"text-sm font-medium text-gray-700 min-w-[60px] text-center",children:[Math.round(l*100),"%"]}),(0,z.jsx)("button",{onClick:v,disabled:l>=3,className:"p-2 rounded-lg border border-gray-300 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:(0,z.jsx)(Io,{className:"w-4 h-4"})})]}),(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)("button",{onClick:m,className:"p-2 rounded-lg border border-gray-300 hover:bg-gray-100 transition-colors",children:(0,z.jsx)(Lo,{className:"w-4 h-4"})}),t.imageUrl&&(0,z.jsx)("button",{onClick:M,className:"p-2 rounded-lg border border-gray-300 hover:bg-gray-100 transition-colors",children:(0,z.jsx)(Ia,{className:"w-4 h-4"})})]})]})}),(0,z.jsx)("div",{className:"relative bg-gray-100 overflow-auto",style:{height:"calc(95vh - 200px)"},children:t.imageUrl?n?(0,z.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,z.jsxs)("div",{className:"text-center p-8",children:[(0,z.jsx)(Oe,{className:"w-16 h-16 text-red-400 mx-auto mb-4"}),(0,z.jsx)("h4",{className:"text-xl font-semibold text-gray-700 mb-2",children:"Image Load Error"}),(0,z.jsx)("p",{className:"text-gray-500 max-w-md",children:"Unable to load the PCB image. The image may be temporarily unavailable or the URL may be incorrect."}),(0,z.jsx)("button",{onClick:()=>{x(!1),d(!1)},className:"mt-4 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Retry"})]})}):(0,z.jsxs)("div",{className:"flex items-center justify-center min-h-full p-8",children:[!s&&(0,z.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,z.jsxs)("div",{className:"text-center",children:[(0,z.jsx)("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mb-4"}),(0,z.jsx)("p",{className:"text-gray-600",children:"Loading PCB image..."})]})}),(0,z.jsx)("img",{src:t.imageUrl,alt:`${t.brand} ${t.name} PCB`,className:"max-w-none transition-all duration-200 shadow-lg rounded-lg",style:{transform:`scale(${l}) rotate(${o}deg)`,opacity:s?1:0},onLoad:()=>d(!0),onError:()=>x(!0)})]}):(0,z.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,z.jsxs)("div",{className:"text-center p-8",children:[(0,z.jsx)(Ra,{className:"w-16 h-16 text-gray-400 mx-auto mb-4"}),(0,z.jsx)("h4",{className:"text-xl font-semibold text-gray-700 mb-2",children:"No PCB Image Available"}),(0,z.jsx)("p",{className:"text-gray-500 max-w-md",children:"The PCB reference image for this GPU model hasn't been uploaded yet. Contact support if you need this image for compatibility verification."})]})})}),(0,z.jsx)("div",{className:"p-4 border-t border-gray-200 bg-gray-50",children:(0,z.jsxs)("div",{className:"flex items-center justify-between text-sm text-gray-600",children:[(0,z.jsx)("div",{className:"flex items-center gap-4",children:(0,z.jsxs)("span",{children:["\u{1F4A1} ",(0,z.jsx)("strong",{children:"Tip:"})," Compare this PCB layout with your physical graphics card"]})}),(0,z.jsx)("div",{className:"flex items-center gap-4",children:(0,z.jsx)("span",{children:"Use zoom and rotate controls to get a better view"})})]})})]})}):null};var L=Y(fe()),Op=()=>{let[e,a]=Ot.useState(null),[t,l]=Ot.useState(null),[u,o]=Ot.useState(null),[r,s]=Ot.useState(!1),[d,n]=Ot.useState(!1),[x,v]=Ot.useState(!1),[c,m]=Ot.useState(null),M=e?rs[e]||[]:[],k=t?t.models:[],_=R=>{a(R),l(null),o(null)},f=R=>{l(R),o(null)},i=R=>{o(R)},p=R=>{e&&t&&(m({...R,brand:e,series:t.name}),v(!0))},g=async()=>{u&&(s(!0),await new Promise(R=>setTimeout(R,1e3)),window.open(u.compatibilityUrl,"_blank"),s(!1))},D=e&&t&&u,U=R=>({ASUS:"from-red-500 to-orange-500",MSI:"from-red-600 to-black",EVGA:"from-green-500 to-green-700",Gigabyte:"from-orange-500 to-yellow-500",XFX:"from-red-500 to-red-700",Sapphire:"from-blue-500 to-blue-700",PowerColor:"from-red-600 to-red-800",ASRock:"from-gray-600 to-gray-800",Zotac:"from-yellow-500 to-orange-500",PNY:"from-green-600 to-green-800",Palit:"from-blue-600 to-purple-600",Gainward:"from-purple-500 to-purple-700",Intel:"from-blue-600 to-blue-800"})[R]||"from-gray-500 to-gray-700";return(0,L.jsx)("div",{className:"min-h-screen py-12 px-4",children:(0,L.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,L.jsxs)("div",{className:"text-center mb-12",children:[(0,L.jsx)("div",{className:"flex items-center justify-center mb-6",children:(0,L.jsx)("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 p-4 rounded-2xl shadow-lg",children:(0,L.jsx)(yo,{className:"w-8 h-8 text-white"})})}),(0,L.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"GPU Compatibility Checker"}),(0,L.jsx)("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Find compatibility information for your graphics card. Select the manufacturer, GPU model, and specific variant to get detailed compatibility data."})]}),(0,L.jsxs)("div",{className:"mb-8 bg-gradient-to-r from-gray-50 to-blue-50 rounded-2xl p-6",children:[(0,L.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-3",children:"How it works:"}),(0,L.jsxs)("div",{className:"grid gap-4 md:grid-cols-3 text-sm text-gray-600",children:[(0,L.jsxs)("div",{className:"flex items-start gap-3",children:[(0,L.jsx)("div",{className:"w-6 h-6 bg-blue-500 text-white rounded-full flex items-center justify-center text-xs font-bold",children:"1"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"font-medium text-gray-900",children:"Who made your GPU?"}),(0,L.jsx)("div",{children:"Select the manufacturer who made your graphics card (ASUS, MSI, PNY, etc.)"})]})]}),(0,L.jsxs)("div",{className:"flex items-start gap-3",children:[(0,L.jsx)("div",{className:"w-6 h-6 bg-blue-500 text-white rounded-full flex items-center justify-center text-xs font-bold",children:"2"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"font-medium text-gray-900",children:"What GPU model do you have?"}),(0,L.jsx)("div",{children:"Choose your specific GPU model (NVIDIA RTX 4090, AMD RX 7900 XTX, etc.)"})]})]}),(0,L.jsxs)("div",{className:"flex items-start gap-3",children:[(0,L.jsx)("div",{className:"w-6 h-6 bg-blue-500 text-white rounded-full flex items-center justify-center text-xs font-bold",children:"3"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"font-medium text-gray-900",children:"What version do you have?"}),(0,L.jsx)("div",{children:"Pick your exact card variant and view its PCB image for verification"})]})]})]})]}),(0,L.jsx)("div",{className:"bg-white rounded-3xl shadow-xl p-8 mb-8",children:(0,L.jsxs)("div",{className:"grid gap-8 lg:grid-cols-3",children:[(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,L.jsx)("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-semibold ${e?"bg-green-500 text-white":"bg-blue-500 text-white"}`,children:e?(0,L.jsx)(Xa,{className:"w-4 h-4"}):"1"}),(0,L.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Who made your GPU?"}),(0,L.jsx)("span",{className:"text-sm text-gray-500",children:"(Select Brand)"})]}),(0,L.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:Object.keys(rs).map(R=>(0,L.jsxs)("button",{onClick:()=>_(R),className:`w-full p-4 text-left rounded-xl border-2 transition-all duration-200 ${e===R?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-200 hover:border-gray-300 hover:bg-gray-50"}`,children:[(0,L.jsxs)("div",{className:"flex items-center justify-between",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)("div",{className:`w-3 h-3 rounded-full bg-gradient-to-r ${U(R)}`}),(0,L.jsx)("span",{className:"font-medium",children:R})]}),e===R&&(0,L.jsx)(Xa,{className:"w-5 h-5 text-blue-500"})]}),(0,L.jsxs)("div",{className:"text-sm text-gray-500 mt-1 ml-6",children:[rs[R]?.length||0," GPU models available"]})]},R))})]}),(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,L.jsx)("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-semibold ${t?"bg-green-500 text-white":e?"bg-blue-500 text-white":"bg-gray-300 text-gray-500"}`,children:t?(0,L.jsx)(Xa,{className:"w-4 h-4"}):"2"}),(0,L.jsx)("h3",{className:`text-lg font-semibold ${e?"text-gray-900":"text-gray-400"}`,children:"What GPU model do you have?"}),(0,L.jsx)("span",{className:"text-sm text-gray-500",children:"(Select GPU)"})]}),(0,L.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:e?M.map(R=>(0,L.jsx)("button",{onClick:()=>f(R),className:`w-full p-4 text-left rounded-xl border-2 transition-all duration-200 ${t?.name===R.name?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-200 hover:border-gray-300 hover:bg-gray-50"}`,children:(0,L.jsxs)("div",{className:"flex items-center justify-between",children:[(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:"font-medium block",children:R.name}),(0,L.jsxs)("span",{className:"text-xs text-gray-400 block",children:[R.models.length," variants available"]})]}),t?.name===R.name&&(0,L.jsx)(Xa,{className:"w-5 h-5 text-blue-500"})]})},R.name)):(0,L.jsxs)("div",{className:"p-6 text-center text-gray-400 border-2 border-dashed border-gray-200 rounded-xl",children:[(0,L.jsx)(Co,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),(0,L.jsx)("p",{children:"Select a manufacturer first"})]})})]}),(0,L.jsxs)("div",{className:"space-y-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,L.jsx)("div",{className:`w-8 h-8 rounded-full flex items-center justify-center text-sm font-semibold ${u?"bg-green-500 text-white":t?"bg-blue-500 text-white":"bg-gray-300 text-gray-500"}`,children:u?(0,L.jsx)(Xa,{className:"w-4 h-4"}):"3"}),(0,L.jsx)("h3",{className:`text-lg font-semibold ${t?"text-gray-900":"text-gray-400"}`,children:"What version do you have?"}),(0,L.jsx)("span",{className:"text-sm text-gray-500",children:"(Pick variant)"})]}),(0,L.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto",children:t?(0,L.jsxs)(L.Fragment,{children:[k.map(R=>(0,L.jsx)("div",{className:`w-full p-4 rounded-xl border-2 transition-all duration-200 ${u?.name===R.name?"border-blue-500 bg-blue-50":"border-gray-200 hover:border-gray-300 hover:bg-gray-50"}`,children:(0,L.jsxs)("div",{className:"flex items-center justify-between",children:[(0,L.jsx)("button",{onClick:()=>i(R),className:"flex-1 text-left",children:(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:"font-medium block text-gray-900",children:R.name}),(0,L.jsx)("span",{className:"text-sm text-gray-500 block",children:R.memory})]})}),(0,L.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[R.imageUrl&&(0,L.jsx)("button",{onClick:()=>p(R),className:"p-2 text-purple-600 hover:text-purple-800 hover:bg-purple-50 rounded-lg transition-colors",title:"View PCB Image",children:(0,L.jsx)(ot,{className:"w-4 h-4"})}),u?.name===R.name&&(0,L.jsx)(Xa,{className:"w-5 h-5 text-blue-500"})]})]})},R.name)),(0,L.jsx)("button",{onClick:()=>n(!0),className:"w-full p-4 text-left rounded-xl border-2 border-dashed border-orange-300 bg-orange-50 hover:bg-orange-100 transition-all duration-200 text-orange-800",children:(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)(Da,{
9className:"w-5 h-5 text-orange-600"}),(0,L.jsxs)("div",{children:[(0,L.jsx)("span",{className:"font-medium block",children:"I don't see my card"}),(0,L.jsx)("span",{className:"text-sm text-orange-600",children:"Request to add your GPU model"})]})]})})]}):(0,L.jsxs)("div",{className:"p-6 text-center text-gray-400 border-2 border-dashed border-gray-200 rounded-xl",children:[(0,L.jsx)(au,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),(0,L.jsx)("p",{children:"Select a GPU model first"})]})})]})]})}),D&&(0,L.jsxs)("div",{className:"bg-gradient-to-r from-blue-500 to-purple-600 rounded-3xl shadow-xl p-8 text-white mb-8",children:[(0,L.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,L.jsx)(au,{className:"w-8 h-8"}),(0,L.jsx)("h3",{className:"text-2xl font-bold",children:"Your Graphics Card Configuration"})]}),(0,L.jsxs)("div",{className:"grid gap-4 md:grid-cols-3 mb-8",children:[(0,L.jsxs)("div",{className:"bg-white/10 rounded-xl p-4",children:[(0,L.jsx)("div",{className:"text-sm opacity-80 mb-1",children:"Manufacturer"}),(0,L.jsx)("div",{className:"font-semibold text-lg",children:e})]}),(0,L.jsxs)("div",{className:"bg-white/10 rounded-xl p-4",children:[(0,L.jsx)("div",{className:"text-sm opacity-80 mb-1",children:"GPU Model"}),(0,L.jsx)("div",{className:"font-semibold text-lg",children:t?.name})]}),(0,L.jsxs)("div",{className:"bg-white/10 rounded-xl p-4",children:[(0,L.jsx)("div",{className:"text-sm opacity-80 mb-1",children:"Variant"}),(0,L.jsx)("div",{className:"font-semibold text-lg",children:u?.name}),(0,L.jsx)("div",{className:"text-sm opacity-80",children:u?.memory})]})]}),(0,L.jsxs)("div",{className:"flex gap-4",children:[(0,L.jsx)("button",{onClick:g,disabled:r,className:"bg-white text-blue-600 px-8 py-4 rounded-xl font-semibold text-lg hover:bg-gray-50 transition-colors duration-200 flex items-center gap-3 disabled:opacity-50 disabled:cursor-not-allowed",children:r?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),"Checking Compatibility..."]}):(0,L.jsxs)(L.Fragment,{children:["Check Compatibility",(0,L.jsx)(xo,{className:"w-5 h-5"})]})}),u?.imageUrl&&(0,L.jsxs)("button",{onClick:()=>p(u),className:"bg-white/20 text-white px-6 py-4 rounded-xl font-semibold text-lg hover:bg-white/30 transition-colors duration-200 flex items-center gap-3",children:[(0,L.jsx)(ot,{className:"w-5 h-5"}),"View PCB Image"]})]})]}),(0,L.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg p-6",children:[(0,L.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,L.jsx)("span",{className:"text-sm font-medium text-gray-700",children:"Selection Progress"}),(0,L.jsxs)("span",{className:"text-sm text-gray-500",children:[e?t?u?"3":"2":"1":"0"," of 3 steps completed"]})]}),(0,L.jsx)("div",{className:"w-full bg-gray-200 rounded-full h-2",children:(0,L.jsx)("div",{className:"bg-gradient-to-r from-blue-500 to-purple-600 h-2 rounded-full transition-all duration-500",style:{width:`${e?t?u?100:66:33:0}%`}})})]}),d&&(0,L.jsx)(Ep,{onClose:()=>n(!1),selectedBrand:e,selectedSeries:t?.name}),x&&c&&(0,L.jsx)(Gp,{isOpen:x,onClose:()=>v(!1),model:c}
9)]})})};var qe=Y(Be());var st=Y(Be());var C=Y(fe()),qp=({onBack:e})=>{let[a,t]=st.useState([]),[l,u]=st.useState(!0),[o,r]=st.useState(""),[s,d]=st.useState(""),[n,x]=st.useState(""),[v,c]=st.useState("count"),m=[{value:"pending",label:"Pending Review",color:"bg-yellow-100 text-yellow-800"},{value:"researching",label:"Researching",color:"bg-blue-100 text-blue-800"},{value:"completed",label:"Added to Database",color:"bg-green-100 text-green-800"},{value:"rejected",label:"Not Supported",color:"bg-red-100 text-red-800"}],M=[{value:"low",label:"Low",color:"bg-gray-100 text-gray-800"},{value:"medium",label:"Medium",color:"bg-yellow-100 text-yellow-800"},{value:"high",label:"High",color:"bg-red-100 text-red-800"}],k=async()=>{try{u(!0);let X=await(await fetch("/api/taskade/projects/wKCos1XEAVuBmQPE/nodes")).json();if(X.ok){let Pe=X.payload.nodes.map(de=>({id:de.id,title:de.fieldValues["/text"]||"",brand:de.fieldValues["/attributes/@brand"]||"",series:de.fieldValues["/attributes/@series"]||"",model:de.fieldValues["/attributes/@model"]||"",chipset:de.fieldValues["/attributes/@chipset"]||"",memory:de.fieldValues["/attributes/@memory"]||"",email:de.fieldValues["/attributes/@email"]||"",status:de.fieldValues["/attributes/@status"]||"pending",priority:de.fieldValues["/attributes/@priority"]||"medium",count:de.fieldValues["/attributes/@count"]||1,additionalInfo:de.fieldValues["/attributes/note"]||""}));t(Pe)}}catch(b){console.error("Error fetching GPU requests:",b)}finally{u(!1)}};st.useEffect(()=>{k()},[]);let _=async(b,X,Pe)=>{try{let de={"/attributes/@status":X};Pe&&(de["/attributes/@priority"]=Pe),(await fetch(`/api/taskade/projects/wKCos1XEAVuBmQPE/nodes/${b}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(de)})).ok&&await k()}catch(de){console.error("Error updating request status:",de)}},f=a.filter(b=>{let X=b.model.toLowerCase().includes(o.toLowerCase())||b.brand.toLowerCase().includes(o.toLowerCase())||b.chipset.toLowerCase().includes(o.toLowerCase()),Pe=!s||b.status===s,de=!n||b.priority===n;return X&&Pe&&de}).sort((b,X)=>v==="count"?X.count-b.count:0),i=b=>m.find(X=>X.value===b)?.label||b,p=b=>m.find(X=>X.value===b)?.color||"bg-gray-100 text-gray-800",g=b=>M.find(X=>X.value===b)?.label||b,D=b=>M.find(X=>X.value===b)?.color||"bg-gray-100 text-gray-800",U=a.length,R=a.filter(b=>b.status==="pending").length,G=a.reduce((b,X)=>b+X.count,0),N=a.sort((b,X)=>X.count-b.count).slice(0,3);return(0,C.jsx)("div",{className:"min-h-screen bg-gray-50 py-8 px-4",children:(0,C.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,C.jsx)("div",{className:"bg-white rounded-2xl shadow-lg p-6 mb-8",children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"GPU Model Requests"}),(0,C.jsx)("p",{className:"text-gray-600",children:"Track and manage customer GPU model requests"})]}),(0,C.jsx)("button",{onClick:e,className:"px-4 py-2 text-gray-600 hover:text-gray-800 transition-colors",children:"\u2190 Back to Admin"})]})}),(0,C.jsxs)("div",{className:"grid gap-6 md:grid-cols-4 mb-8",children:[(0,C.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Total Requests"}),(0,C.jsx)("p",{className:"text-3xl font-bold text-gray-900",children:U})]}),(0,C.jsx)("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center",children:(0,C.jsx)(Ra,{className:"w-6 h-6 text-blue-600"})})]})}),(0,C.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Pending Review"}),(0,C.jsx)("p",{className:"text-3xl font-bold text-yellow-600",children:R})]}),(0,C.jsx)("div",{className:"w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center",children:(0,C.jsx)(go,{className:"w-6 h-6 text-yellow-600"})})]})}),(0,C.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Total Demand"}),(0,C.jsx)("p",{className:"text-3xl font-bold text-green-600",children:G})]}),(0,C.jsx)("div",{className:"w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center",children:(0,C.jsx)(lu,{className:"w-6 h-6 text-green-600"})})]})}),(0,C.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,C.jsxs)("div",{className:"flex items-center justify-between",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Completion Rate"}),(0,C.jsxs)("p",{className:"text-3xl font-bold text-purple-600",children:[U>0?Math.round(a.filter(b=>b.status==="completed").length/U*100):0,"%"]})]}),(0,C.jsx)("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:(0,C.jsx)(He,{className:"w-6 h-6 text-purple-600"})})]})})]}),(0,C.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg p-6 mb-8",children:[(0,C.jsx)("h3",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Most Requested Models"}),(0,C.jsx)("div",{className:"space-y-3",children:N.map((b,X)=>(0,C.jsxs)("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-lg",children:[(0,C.jsxs)("div",{className:"flex items-center gap-4",children:[(0,C.jsx)("div",{className:"w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center",children:(0,C.jsxs)("span",{className:"text-sm font-bold text-blue-600",children:["#",X+1]})}),(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"font-medium text-gray-900",children:b.model}),(0,C.jsxs)("div",{className:"text-sm text-gray-500",children:[b.brand," \u2022 ",b.chipset]})]})]}),(0,C.jsxs)("div",{className:"flex items-center gap-4",children:[(0,C.jsx)("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${p(b.status)}`,children:i(b.status)}),(0,C.jsxs)("div",{className:"text-right",children:[(0,C.jsx)("div",{className:"font-bold text-gray-900",children:b.count}),(0,C.jsx)("div",{className:"text-xs text-gray-500",children:"requests"})]})]})]},b.id))})]}),(0,C.jsx)("div",{className:"bg-white rounded-2xl shadow-lg p-6 mb-8",children:(0,C.jsxs)("div",{className:"grid gap-4 md:grid-cols-5",children:[(0,C.jsxs)("div",{className:"relative",children:[(0,C.jsx)(ya,{className:"w-5 h-5 absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,C.jsx)("input",{type:"text",placeholder:"Search requests...",value:o,onChange:b=>r(b.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),(0,C.jsxs)("select",{value:s,onChange:b=>d(b.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,C.jsx)("option",{value:"",children:"All Statuses"}),m.map(b=>(0,C.jsx)("option",{value:b.value,children:b.label},b.value))]}),(0,C.jsxs)("select",{value:n,onChange:b=>x(b.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,C.jsx)("option",{value:"",children:"All Priorities"}),M.map(b=>(0,C.jsx)("option",{value:b.value,children:b.label},b.value))]}
9),(0,C.jsxs)("select",{value:v,onChange:b=>c(b.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,C.jsx)("option",{value:"count",children:"Sort by Demand"}),(0,C.jsx)("option",{value:"recent",children:"Sort by Recent"})]}),(0,C.jsxs)("div",{className:"text-sm text-gray-500 flex items-center",children:[f.length," of ",U," requests"]})]})}),(0,C.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg overflow-hidden",children:[(0,C.jsx)("div",{className:"px-6 py-4 border-b border-gray-200",children:(0,C.jsxs)("h3",{className:"text-lg font-semibold text-gray-900",children:["GPU Model Requests (",f.length,")"]})}),l?(0,C.jsxs)("div",{className:"p-8 text-center",children:[(0,C.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"}),(0,C.jsx)("p",{className:"mt-2 text-gray-600",children:"Loading requests..."})]}):(0,C.jsx)("div",{className:"overflow-x-auto",children:(0,C.jsxs)("table",{className:"w-full",children:[(0,C.jsx)("thead",{className:"bg-gray-50",children:(0,C.jsxs)("tr",{children:[(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Model"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Brand"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Specs"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Demand"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Priority"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Contact"}),(0,C.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),(0,C.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:f.map(b=>(0,C.jsxs)("tr",{className:"hover:bg-gray-50",children:[(0,C.jsxs)("td",{className:"px-6 py-4 whitespace-nowrap",children:[(0,C.jsx)("div",{className:"text-sm font-medium text-gray-900",children:b.model}),b.additionalInfo&&(0,C.jsxs)("div",{className:"text-xs text-gray-500 mt-1",children:[b.additionalInfo.substring(0,50),"..."]})]}),(0,C.jsxs)("td",{className:"px-6 py-4 whitespace-nowrap",children:[(0,C.jsx)("div",{className:"text-sm text-gray-900",children:b.brand}),(0,C.jsx)("div",{className:"text-xs text-gray-500",children:b.series})]}),(0,C.jsxs)("td",{className:"px-6 py-4 whitespace-nowrap",children:[(0,C.jsx)("div",{className:"text-sm text-gray-900",children:b.chipset}),(0,C.jsx)("div",{className:"text-xs text-gray-500",children:b.memory})]}),(0,C.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsx)(lu,{className:"w-4 h-4 text-green-500 mr-2"}),(0,C.jsx)("span",{className:"text-sm font-medium text-gray-900",children:b.count})]})}),(0,C.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,C.jsx)("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${p(b.status)}`,children:i(b.status)})}),(0,C.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,C.jsx)("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${D(b.priority)}`,children:g(b.priority)})}),(0,C.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,C.jsx)("div",{className:"text-sm text-gray-900",children:b.email})}),(0,C.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,C.jsx)("div",{className:"flex gap-2",children:(0,C.jsx)("select",{value:b.status,onChange:X=>_(b.id,X.target.value),className:"text-xs px-2 py-1 border border-gray-300 rounded focus:ring-1 focus:ring-blue-500",children:m.map(X=>(0,C.jsx)("option",{value:X.value,children:X.label},X.value))})})})]},b.id))})]})})]})]})})};var dt=Y(Be());var F=Y(fe()),Pp=({onImageUploaded:e,currentImageUrl:a,label:t="PCB Image",description:l="Upload a PCB reference image"})=>{let[u,o]=dt.useState(!1),[r,s]=dt.useState(!1),[d,n]=dt.useState(null),[x,v]=dt.useState(a||null),
9c=dt.useRef(null);dt.useEffect(()=>{v(a||null)},[a]);let m=D=>{D.preventDefault(),o(!0)},M=D=>{D.preventDefault(),o(!1)},k=D=>{D.preventDefault(),o(!1);let U=Array.from(D.dataTransfer.files);U.length>0&&f(U[0])},_=D=>{let U=D.target.files;U&&U.length>0&&f(U[0])},f=async D=>{if(!D.type.startsWith("image/")){n("Please select an image file (JPG, PNG, GIF, etc.)");return}if(D.size>10*1024*1024){n("Image file must be smaller than 10MB");return}s(!0),n(null);try{let U=await i(D),R=`data:${D.type};base64,${U}`;v(R),e(R)}catch(U){console.error("Upload error:",U),n("Failed to upload image. Please try again.")}finally{s(!1)}},i=D=>new Promise((U,R)=>{let G=new FileReader;G.readAsDataURL(D),G.onload=()=>{let b=G.result.split(",")[1];U(b)},G.onerror=N=>R(N)}),p=()=>{v(null),e(""),c.current&&(c.current.value="")},g=()=>{c.current?.click()};return(0,F.jsxs)("div",{className:"space-y-4",children:[(0,F.jsxs)("div",{children:[(0,F.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:[t,(0,F.jsxs)("span",{className:"text-sm text-gray-500 ml-2",children:["(",l,")"]})]}),x?(0,F.jsx)("div",{className:"relative",children:(0,F.jsx)("div",{className:"border-2 border-gray-300 rounded-lg p-4 bg-gray-50",children:(0,F.jsxs)("div",{className:"flex items-start gap-4",children:[(0,F.jsx)("img",{src:x,alt:"PCB Preview",className:"w-32 h-32 object-cover rounded-lg shadow-sm"}),(0,F.jsxs)("div",{className:"flex-1",children:[(0,F.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,F.jsx)(He,{className:"w-5 h-5 text-green-600"}),(0,F.jsx)("span",{className:"text-sm font-medium text-green-700",children:"Image uploaded successfully"})]}),(0,F.jsx)("p",{className:"text-sm text-gray-600 mb-3",children:"PCB reference image is ready. Customers will be able to view this image to verify their GPU model."}),(0,F.jsxs)("div",{className:"flex gap-2",children:[(0,F.jsx)("button",{type:"button",onClick:g,className:"text-sm px-3 py-1 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors",children:"Replace Image"}),(0,F.jsx)("button",{type:"button",onClick:p,className:"text-sm px-3 py-1 bg-red-600 text-white rounded hover:bg-red-700 transition-colors",children:"Remove Image"})]})]})]})})}):(0,F.jsx)("div",{className:`border-2 border-dashed rounded-lg p-8 text-center transition-colors cursor-pointer ${u?"border-blue-500 bg-blue-50":"border-gray-300 hover:border-gray-400 hover:bg-gray-50"}`,onDragOver:m,onDragLeave:M,onDrop:k,onClick:g,children:r?(0,F.jsxs)("div",{className:"space-y-4",children:[(0,F.jsx)(Aa,{className:"w-12 h-12 text-blue-600 mx-auto animate-spin"}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-lg font-medium text-gray-900",children:"Uploading image..."}),(0,F.jsx)("p",{className:"text-sm text-gray-600",children:"Please wait while we process your PCB image"})]})]}):(0,F.jsxs)("div",{className:"space-y-4",children:[(0,F.jsx)($e,{className:"w-12 h-12 text-gray-400 mx-auto"}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{className:"text-lg font-medium text-gray-900",children:"Upload PCB Image"}),(0,F.jsx)("p",{className:"text-sm text-gray-600",children:"Drag and drop an image here, or click to select"})]}),(0,F.jsx)("div",{className:"text-xs text-gray-500",children:"Supports: JPG, PNG, GIF \u2022 Max size: 10MB"})]})}),d&&(0,F.jsxs)("div",{className:"mt-3 p-3 bg-red-50 border border-red-200 rounded-lg flex items-center gap-2",children:[(0,F.jsx)(Oe,{className:"w-5 h-5 text-red-600 flex-shrink-0"}),(0,F.jsx)("p",{className:"text-sm text-red-700",children:d})]}),(0,F.jsx)("input",{ref:c,type:"file",accept:"image/*",onChange:_,className:"hidden"})]}),(0,F.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[(0,F.jsx)("h4",{className:"text-sm font-medium text-blue-900 mb-2",children:"PCB Image Guidelines:"}),(0,F.jsxs)("ul",{className:"text-sm text-blue-800 space-y-1",children:[(0,F.jsx)("li",{children:"\u2022 Use high-resolution images (at least 1024x768) for clear detail"}),(0,F.jsx)("li",{children:"\u2022 Ensure the PCB layout is clearly visible and well-lit"}),(0,F.jsx)("li",{children:"\u2022 Include component labels and connector positions when possible"}),(0,F.jsx)("li",{children:"\u2022 Avoid images with reflections or shadows that obscure details"}),(0,F.jsx)("li",{children:"\u2022 Focus on the back side of the card where the PCB pattern is most visible"})]})]})]})};var qt=Y(Be());var I=Y(fe()),Xp=({onClose:e,onDataImported:a})=>{let[t,l]=qt.useState("export"),[u,o]=qt.useState(!1),[r,s]=qt.useState(null),[d,n]=qt.useState("csv"),[x,v]=qt.useState(null),[c,m]=qt.useState(!1),[M,k]=qt.useState([{key:"title",label:"Model Name",description:"GPU model name/title",enabled:!0},{key:"brand",label:"Brand",description:"Manufacturer (ASUS, MSI, etc.)",enabled:!0},{key:"series",label:"Series",description:"GPU series (RTX 4000, RX 7000, etc.)",enabled:!0},{key:"chipset",label:"Chipset",description:"GPU chipset (RTX 4090, RX 7900 XTX)",enabled:!0},{key:"memory",label:"Memory",description:"VRAM specification",enabled:!0},{key:"url",label:"Compatibility URL",description:"Link to compatibility information",enabled:!0},{key:"status",label:"Status",description:"Active/Inactive/Discontinued",enabled:!0},{key:"imageUrl",label:"PCB Image URL",description:"Link to PCB reference image",enabled:!1},{key:"notes",label:"Notes",description:"Additional information",enabled:!1}]),_=S=>{k(q=>q.map(V=>V.key===S?{...V,enabled:!V.enabled}:V))},f=S=>{k(q=>q.map(V=>({...V,enabled:S})))},i=S=>{S.preventDefault(),S.stopPropagation(),S.type==="dragenter"||S.type==="dragover"?m(!0):S.type==="dragleave"&&m(!1)},p=S=>{S.preventDefault(),S.stopPropagation(),m(!1);let q=Array.from(S.dataTransfer.files);if(q.length>0){let V=q[0];(V.type==="text/csv"||V.name.endsWith(".csv")||V.type==="application/json"||V.name.endsWith(".json"))&&v(V)}},g=S=>{let q=S.target.files;q&&q.length>0&&v(q[0])},D=async()=>{o(!0);try{let q=await(await fetch("/api/taskade/projects/ECWM3Vieofcx6r3L/nodes")).json();if(q.ok){let V=q.payload.nodes.map(J=>({title:J.fieldValues["/text"]||"",brand:J.fieldValues["/attributes/@brand"]||"",series:J.fieldValues["/attributes/@series"]||"",chipset:J.fieldValues["/attributes/@chipset"]||"",memory:J.fieldValues["/attributes/@memory"]||"",url:J.fieldValues["/attributes/@url"]||"",status:J.fieldValues["/attributes/@status"]||"active",imageUrl:J.fieldValues["/attributes/@image"]||"",notes:J.fieldValues["/attributes/note"]||""})),Z=M.filter(J=>J.enabled),ee=V.map(J=>{let ke={};return Z.forEach(La=>{ke[La.key]=J[La.key]}),ke});d==="csv"?U(ee,Z):R(ee,Z)}}catch(S){console.error("Export error:",S)}finally{o(!1)}},U=(S,q)=>{let Z=[q.map(ke=>ke.label).join(","),...S.map(ke=>q.map(La=>`"${(ke[La.key]||"").toString().replace(/"/g,'""')}"`).join(","))].join(`
10`),J=`gpu-database-${q.length}fields.csv`;G(Z,J,"text/csv")},R=(S,q)=>{let V={exportInfo:{exportDate:new Date().toISOString(),totalRecords:S.length,includedFields:q.map(ke=>({key:ke.key,label:ke.label}))},data:S},Z=JSON.stringify(V,null,2),J=`gpu-database-${q.length}fields.json`;G(Z,J,"application/json")},G=(S,q,V)=>{let Z=new Blob([S],{type:V}),ee=URL.createObjectURL(Z),J=document.createElement("a");J.href=ee,J.download=q,document.body.appendChild(J),J.click(),document.body.removeChild(J),URL.revokeObjectURL(ee)},N=async()=>
10{if(x){o(!0),s(null);try{let S=await b(x),q=[];if(x.name.endsWith(".csv"))q=X(S);else if(x.name.endsWith(".json")){let Z=JSON.parse(S);q=Array.isArray(Z)?Z:Z.data||[]}let V=await Pe(q);s(V),V.success&&V.imported>0&&a()}catch(S){console.error("Import error:",S),s({success:!1,imported:0,errors:["Failed to process import file. Please check the file format."],skipped:0})}finally{o(!1)}}},b=S=>new Promise((q,V)=>{let Z=new FileReader;Z.onload=ee=>q(ee.target?.result),Z.onerror=V,Z.readAsText(S)}),X=S=>{let q=S.split(`
11`),V=q[0].split(",").map(Z=>Z.replace(/"/g,"").trim());return q.slice(1).filter(Z=>Z.trim()).map(Z=>{let ee=Z.split(",").map(ke=>ke.replace(/"/g,"").trim()),J={};return V.forEach((ke,La)=>{let ou=ke.toLowerCase().replace(/\s+/g,"");J[ou]=ee[La]||""}),J})},Pe=async S=>{let q={success:!0,imported:0,errors:[],skipped:0},V={asus:"asus",msi:"msi",evga:"evga",gigabyte:"gigabyte",xfx:"xfx",sapphire:"sapphire",powercolor:"powercolor",asrock:"asrock",zotac:"zotac",pny:"pny",palit:"palit",gainward:"gainward",intel:"intel"},Z={"nvidia rtx 4000 series":"nvidia_rtx_4000","nvidia rtx 3000 series":"nvidia_rtx_3000","nvidia rtx 2000 series":"nvidia_rtx_2000","nvidia gtx 1600 series":"nvidia_gtx_1600","amd rx 7000 series":"amd_rx_7000","amd rx 6000 series":"amd_rx_6000","amd rx 5000 series":"amd_rx_5000","intel arc a-series":"intel_arc_a"};for(let ee of S)try{let J=ee.title||ee.modelname||ee.name;if(!J){q.errors.push("Row skipped: Missing title/name"),q.skipped++;continue}let ke=(ee.brand||"").toLowerCase(),La=V[ke];if(!La){q.errors.push(`Row skipped: Invalid brand "${ee.brand}"`),q.skipped++;continue}let ou=(ee.series||"").toLowerCase(),ru=Z[ou];if(!ru){q.errors.push(`Row skipped: Invalid series "${ee.series}"`),q.skipped++;continue}let Do={"/text":J,"/attributes/@brand":La,"/attributes/@series":ru,"/attributes/@chipset":ee.chipset||"","/attributes/@memory":ee.memory||"","/attributes/@url":ee.url||ee.compatibilityurl||"","/attributes/@status":ee.status||"active","/attributes/@image":ee.imageurl||ee.pcbimageurl||"","/attributes/note":ee.notes||""};(await fetch("/api/taskade/projects/ECWM3Vieofcx6r3L/nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Do)})).ok?q.imported++:(q.errors.push(`Failed to import: ${J}`),q.skipped++)}catch{q.errors.push(`Error processing row: ${ee.title||ee.name||"Unknown"}`),q.skipped++}return q},de=()=>{let S=M.filter(Z=>Z.enabled),V=[S.map(Z=>Z.label).join(","),S.map(Z=>{switch(Z.key){case"title":return'"RTX 4090 Gaming X Trio"';case"brand":return'"msi"';case"series":return'"nvidia rtx 4000 series"';case"chipset":return'"RTX 4090"';case"memory":return'"24GB GDDR6X"';case"url":return'"https://example.com"';case"status":return'"active"';case"imageUrl":return'""';case"notes":return'"Sample GPU entry"';default:return'""'}}).join(","),S.map(Z=>{switch(Z.key){case"title":return'"RX 7900 XTX NITRO+"';case"brand":return'"sapphire"';case"series":return'"amd rx 7000 series"';case"chipset":return'"RX 7900 XTX"';case"memory":return'"24GB GDDR6"';case"url":return'"https://example.com"';case"status":return'"active"';case"imageUrl":return'""';case"notes":return'"Another sample entry"';default:return'""'}}).join(",")].join(`
12`);G(V,"gpu-import-template.csv","text/csv")},E=M.filter(S=>S.enabled).length;return(0,I.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,I.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-5xl w-full max-h-[90vh] overflow-y-auto",children:[(0,I.jsx)("div",{className:"p-6 border-b border-gray-200",children:(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Excel Import/Export"}),(0,I.jsx)("p",{className:"text-gray-600",children:"Import GPU data from CSV/JSON files or export current database"})]}),(0,I.jsx)("button",{onClick:e,className:"text-gray-400 hover:text-gray-600 transition-colors",children:(0,I.jsx)(Se,{className:"w-6 h-6"})})]})}),(0,I.jsx)("div",{className:"border-b border-gray-200",children:(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsxs)("button",{onClick:()=>l("export"),className:`px-6 py-3 font-medium text-sm border-b-2 transition-colors ${t==="export"?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700"}`,children:[(0,I.jsx)(Ia,{className:"w-4 h-4 inline mr-2"}),"Export Data"]}),(0,I.jsxs)("button",{onClick:()=>l("import"),className:`px-6 py-3 font-medium text-sm border-b-2 transition-colors ${t==="import"?"border-blue-500 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700"}`,children:[(0,I.jsx)($e,{className:"w-4 h-4 inline mr-2"}),"Import Data"]})]})}),(0,I.jsx)("div",{className:"p-6",children:t==="export"?(0,I.jsx)("div",{className:"space-y-6",children:(0,I.jsxs)("div",{children:[(0,I.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Export GPU Database"}),(0,I.jsx)("p",{className:"text-gray-600 mb-6",children:"Download your GPU compatibility database with customizable field selection."}),(0,I.jsxs)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-4 mb-6",children:[(0,I.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,I.jsxs)("h5",{className:"font-medium text-gray-900",children:["Select Fields to Export (",E," selected)"]}),(0,I.jsxs)("div",{className:"flex gap-2",children:[(0,I.jsx)("button",{onClick:()=>f(!0),className:"text-sm px-3 py-1 bg-blue-100 text-blue-700 rounded hover:bg-blue-200 transition-colors",children:"Select All"}),(0,I.jsx)("button",{onClick:()=>f(!1),className:"text-sm px-3 py-1 bg-gray-100 text-gray-700 rounded hover:bg-gray-200 transition-colors",children:"Deselect All"})]})]}),(0,I.jsx)("div",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-3",children:M.map(S=>(0,I.jsxs)("label",{className:"flex items-start gap-3 p-3 bg-white rounded-lg border border-gray-200 hover:border-gray-300 transition-colors cursor-pointer",children:[(0,I.jsx)("input",{type:"checkbox",checked:S.enabled,onChange:()=>_(S.key),className:"mt-1 rounded border-gray-300 text-blue-600 focus:ring-blue-500"}),(0,I.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,I.jsxs)("div",{className:"flex items-center gap-2",children:[(0,I.jsx)("span",{className:"font-medium text-gray-900",children:S.label}),S.enabled?(0,I.jsx)(Ra,{className:"w-4 h-4 text-green-500"}):(0,I.jsx)(ho,{className:"w-4 h-4 text-gray-400"})]}),(0,I.jsx)("p",{className:"text-sm text-gray-600 mt-1",children:S.description})]})]},S.key))})]}),(0,I.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mb-6",children:[(0,I.jsx)("h5",{className:"font-medium text-blue-900 mb-2",children:"Export Preview:"}),(0,I.jsxs)("ul",{className:"text-sm text-blue-800 space-y-1",children:[M.filter(S=>S.enabled).map(S=>
12(0,I.jsxs)("li",{children:["\u2022 ",S.label,": ",S.description]},S.key)),E===0&&(0,I.jsx)("li",{className:"text-red-600",children:"\u26A0\uFE0F No fields selected - please select at least one field to export"})]})]}),(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Export Format"}),(0,I.jsxs)("div",{className:"flex gap-4",children:[(0,I.jsxs)("label",{className:"flex items-center",children:[(0,I.jsx)("input",{type:"radio",value:"csv",checked:d==="csv",onChange:S=>n(S.target.value),className:"mr-2"}),(0,I.jsx)(Gt,{className:"w-4 h-4 mr-1"}),"CSV (Excel compatible)"]}),(0,I.jsxs)("label",{className:"flex items-center",children:[(0,I.jsx)("input",{type:"radio",value:"json",checked:d==="json",onChange:S=>n(S.target.value),className:"mr-2"}),(0,I.jsx)(bo,{className:"w-4 h-4 mr-1"}),"JSON (with metadata)"]})]})]}),(0,I.jsx)("button",{onClick:D,disabled:u||E===0,className:"bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:u?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Aa,{className:"w-4 h-4 animate-spin"}),"Exporting ",E," fields..."]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Ia,{className:"w-4 h-4"}),"Export ",E," Fields"]})})]})]})}):(0,I.jsx)("div",{className:"space-y-6",children:(0,I.jsxs)("div",{children:[(0,I.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Import GPU Data"}),(0,I.jsx)("p",{className:"text-gray-600 mb-6",children:"Upload a CSV or JSON file to bulk import GPU entries into your database."}),(0,I.jsx)("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-6",children:(0,I.jsxs)("div",{className:"flex items-start gap-2",children:[(0,I.jsx)(Oe,{className:"w-5 h-5 text-yellow-600 flex-shrink-0 mt-0.5"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("h5",{className:"font-medium text-yellow-900 mb-1",children:"Important Notes:"}),(0,I.jsxs)("ul",{className:"text-sm text-yellow-800 space-y-1",children:[(0,I.jsx)("li",{children:"\u2022 CSV files should have headers matching the field names"}),(0,I.jsx)("li",{children:"\u2022 Brand values must match: asus, msi, evga, gigabyte, xfx, sapphire, powercolor, asrock, zotac, pny, palit, gainward, intel"}),(0,I.jsx)("li",{children:'\u2022 Series values must match predefined options (e.g., "nvidia rtx 4000 series", "amd rx 7000 series")'}),(0,I.jsx)("li",{children:"\u2022 Duplicate entries will be created as separate records"}),(0,I.jsx)("li",{children:"\u2022 JSON files can be in array format or structured export format"})]})]})]})}),(0,I.jsx)("div",{className:"flex gap-4 mb-6",children:(0,I.jsxs)("button",{onClick:de,className:"bg-gray-600 text-white px-4 py-2 rounded-lg hover:bg-gray-700 transition-colors font-medium flex items-center gap-2",children:[(0,I.jsx)(Ia,{className:"w-4 h-4"}),"Download Template (",E," fields)"]})}),(0,I.jsx)("div",{className:`border-2 border-dashed rounded-lg p-8 text-center transition-colors ${c?"border-blue-500 bg-blue-50":"border-gray-300 hover:border-gray-400"}`,onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:p,children:x?(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsx)(Gt,{className:"w-12 h-12 text-green-600 mx-auto"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{className:"text-lg font-medium text-gray-900",children:x.name}),(0,I.jsxs)("p",{className:"text-sm text-gray-600",children:[(x.size/1024).toFixed(1)," KB \u2022 ",x.type||"Unknown type"]})]}),(0,I.jsxs)("div",{className:"flex gap-2 justify-center",children:[(0,I.jsx)("button",{onClick:N,disabled:u,className:"bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:u?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Aa,{className:"w-4 h-4 animate-spin"}),"Processing..."]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)($e,{className:"w-4 h-4"}),"Import File"]})}),(0,I.jsx)("button",{onClick:()=>v(null),className:"bg-gray-500 text-white px-4 py-2 rounded-lg hover:bg-gray-600 transition-colors",children:"Remove"})]})]}):(0,I.jsxs)("div",{className:"space-y-4",children:[(0,I.jsx)($e,{className:"w-12 h-12 text-gray-400 mx-auto"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{className:"text-lg font-medium text-gray-900",children:"Upload Import File"}),(0,I.jsx)("p",{className:"text-sm text-gray-600",children:"Drag and drop a CSV or JSON file here, or click to select"})]}),(0,I.jsx)("input",{type:"file",accept:".csv,.json",onChange:g,className:"hidden",id:"file-upload"}),(0,I.jsx)("label",{htmlFor:"file-upload",className:"inline-block bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors font-medium cursor-pointer",children:"Select File"})]})}),r&&(0,I.jsxs)("div",{className:`rounded-lg p-4 ${r.success?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"}`,children:[(0,I.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[r.success?(0,I.jsx)(He,{className:"w-5 h-5 text-green-600"}):(0,I.jsx)(Oe,{className:"w-5 h-5 text-red-600"}),(0,I.jsx)("h5",{className:`font-medium ${r.success?"text-green-900":"text-red-900"}`,children:"Import Results"})]}),(0,I.jsxs)("div",{className:`text-sm space-y-1 ${r.success?"text-green-800":"text-red-800"}`,children:[(0,I.jsxs)("p",{children:["\u2022 Successfully imported: ",r.imported," entries"]}),(0,I.jsxs)("p",{children:["\u2022 Skipped: ",r.skipped," entries"]}),r.errors.length>0&&(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("p",{className:"font-medium",children:"Errors:"}),(0,I.jsx)("ul",{className:"list-disc list-inside space-y-1 max-h-32 overflow-y-auto",children:r.errors.map((S,q)=>(0,I.jsx)("li",{children:S},q))})]})]})]})]})})})]})})};var Pt=Y(Be());var y=Y(fe()),zp=({entry:e,onClose:a,onSave:t})=>{let[l,u]=Pt.useState(e),[o,r]=Pt.useState(!1),[s,d]=Pt.useState("url"),[n,x]=Pt.useState(!1),[v,c]=Pt.useState(null),[m,M]=Pt.useState(null),[k,_]=Pt.useState(!1),f=[{value:"asus",label:"ASUS"},{value:"msi",label:"MSI"},{value:"evga",label:"EVGA"},{value:"gigabyte",label:"Gigabyte"},{value:"xfx",label:"XFX"},{value:"sapphire",label:"Sapphire"},{value:"powercolor",label:"PowerColor"},{value:"asrock",label:"ASRock"},{value:"zotac",label:"Zotac"},{value:"pny",label:"PNY"},{value:"palit",label:"Palit"},{value:"gainward",label:"Gainward"},{value:"intel",label:"Intel"}],i=[{value:"nvidia_rtx_4090",label:"NVIDIA RTX 4090"},{value:"nvidia_rtx_4080_super",label:"NVIDIA RTX 4080 SUPER"},{value:"nvidia_rtx_4070_ti_super",label:"NVIDIA RTX 4070 Ti SUPER"},{value:"nvidia_rtx_4070_super",label:"NVIDIA RTX 4070 SUPER"},{value:"nvidia_rtx_4070",label:"NVIDIA RTX 4070"},{value:"nvidia_rtx_3090_ti",label:"NVIDIA RTX 3090 Ti"},{value:"nvidia_rtx_3090",label:"NVIDIA RTX 3090"},{value:"nvidia_rtx_3080_ti",label:"NVIDIA RTX 3080 Ti"},{value:"nvidia_rtx_3080",label:"NVIDIA RTX 3080"},{value:"nvidia_rtx_3070_ti",label:"NVIDIA RTX 3070 Ti"},{value:"nvidia_rtx_3070",label:"NVIDIA RTX 3070"},{value:"nvidia_rtx_3060_ti",label:"NVIDIA RTX 3060 Ti"},{value:"nvidia_rtx_3060",label:"NVIDIA RTX 3060"},{value:"amd_rx_7900_xtx",label:"AMD RX 7900 XTX"},{value:"amd_rx_7900_xt",label:"AMD RX 7900 XT"},{value:"amd_rx_7800_xt",label:"AMD RX 7800 XT"},{value:"amd_rx_7700_xt",label:"AMD RX 7700 XT"},{value:"amd_rx_6900_xt",label:"AMD RX 6900 XT"},{value:"amd_rx_6800_xt",label:"AMD RX 6800 XT"},{value:"amd_rx_6700_xt",label:"AMD RX 6700 XT"},{value:"intel_arc_a770",label:"Intel Arc A770"},{value:"intel_arc_a750",label:"Intel Arc A750"},{value:"intel_arc_a580",label:"Intel Arc A580"}],p=[{value:"active",label:"Active"},{value:"inactive",label:"Inactive"},{value:"discontinued",label:"Discontinued"}],g=E=>f.find(S=>S.value===E)?.label||E,D=E=>i.find(S=>S.value===E)?.label||E,U=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?_(!0):E.type==="dragleave"&&_(!1)},R=E=>{E.preventDefault(),E.stopPropagation(),_(!1);let S=Array.from(E.dataTransfer.files);S.length>0&&N(S[0])},G=E=>{let S=E.target.files;S&&S.length>0&&N(S[0])},N=async E=>{if(!E.type.startsWith("image/")){c("Please select an image file (JPG, PNG, GIF, etc.)");return}if(E.size>10*1024*1024){c("Image file must be smaller than 10MB");return}x(!0),c(null);try{let S=await b(E),q=`data:${E.type};base64,${S}`;u(V=>({...V,imageUrl:q})),c(null)}catch(S){console.error("Upload error:",S),c("Failed to upload image. Please try again.")}finally{x(!1)}},b=E=>new Promise((S,q)=>{let V=new FileReader;V.readAsDataURL(E),V.onload=()=>{let ee=V.result.split(",")[1];S(ee)},V.onerror=Z=>q(Z)}),X=async()=>{r(!0);try{await t(l),a()}catch(E){console.error("Error saving entry:",E)}finally{r(!1)}},Pe=E=>{u(S=>({...S,imageUrl:E}))},de=()=>{u(E=>({...E,imageUrl:""}))};return(0,y.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,y.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-4xl w-full max-h-[95vh] overflow-y-auto",children:[(0,y.jsx)("div",{className:"p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-purple-50",children:(0,y.jsxs)("div",{className:"flex items-center justify-between",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-1",children:"Edit GPU Entry"}),(0,y.jsx)("p",{className:"text-gray-600",children:"Update GPU specifications and compatibility information"})]}),(0,y.jsx)("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 transition-colors p-2 rounded-lg hover:bg-gray-100",children:(0,y.jsx)(Se,{className:"w-6 h-6"})})]})}),(0,y.jsxs)("div",{className:"p-6",children:[(0,y.jsxs)("div",{className:"grid gap-8 lg:grid-cols-2",children:[(0,y.jsx)("div",{className:"space-y-6",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Basic Information"}),(0,y.jsxs)("div",{className:"space-y-4",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Model Name ",(0,y.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,y.jsx)("input",{type:"text",value:l.title,onChange:E=>u(S=>({...S,title:E.target.value})),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., RTX 4090 Gaming X Trio"})]}),(0,y.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Brand ",(0,y.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,y.jsxs)("select",{value:l.brand,onChange:E=>u(S=>({...S,brand:E.target.value})),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,y.jsx)("option",{value:"",children:"Select Brand"}),f.map(E=>
12(0,y.jsx)("option",{value:E.value,children:E.label},E.value))]})]}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["GPU Model ",(0,y.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,y.jsxs)("select",{value:l.series,onChange:E=>u(S=>({...S,series:E.target.value})),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,y.jsx)("option",{value:"",children:"Select GPU Model"}),i.map(E=>(0,y.jsx)("option",{value:E.value,children:E.label},E.value))]})]})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Memory"}),(0,y.jsx)("input",{type:"text",value:l.memory,onChange:E=>u(S=>({...S,memory:E.target.value})),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., 24GB GDDR6X"})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Status"}),(0,y.jsx)("select",{value:l.status,onChange:E=>u(S=>({...S,status:E.target.value})),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:p.map(E=>(0,y.jsx)("option",{value:E.value,children:E.label},E.value))})]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Compatibility URL"}),(0,y.jsx)("input",{type:"url",value:l.url,onChange:E=>u(S=>({...S,url:E.target.value})),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"https://..."})]})]})]})}),(0,y.jsx)("div",{className:"space-y-6",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"PCB Reference Image"}),(0,y.jsx)("div",{className:"mb-4",children:(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)("label",{className:"flex items-center",children:[(0,y.jsx)("input",{type:"radio",value:"url",checked:s==="url",onChange:E=>d(E.target.value),className:"mr-2"}),(0,y.jsx)(vo,{className:"w-4 h-4 mr-1"}),"Image URL"]}),(0,y.jsxs)("label",{className:"flex items-center",children:[(0,y.jsx)("input",{type:"radio",value:"upload",checked:s==="upload",onChange:E=>d(E.target.value),className:"mr-2"}),(0,y.jsx)($e,{className:"w-4 h-4 mr-1"}),"Upload File"]})]})}),s==="url"?(0,y.jsx)("div",{className:"space-y-4",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"PCB Image URL"}),(0,y.jsx)("input",{type:"url",value:l.imageUrl,onChange:E=>Pe(E.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"https://example.com/pcb-image.jpg"}),(0,y.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Enter a direct link to the PCB image"})]})}):(0,y.jsxs)("div",{className:"space-y-4",children:[(0,y.jsx)("div",{className:`border-2 border-dashed rounded-lg p-6 text-center transition-colors ${k?"border-blue-500 bg-blue-50":"border-gray-300 hover:border-gray-400"}`,onDragEnter:U,onDragLeave:U,onDragOver:U,onDrop:R,children:n?(0,y.jsxs)("div",{className:"space-y-4",children:[(0,y.jsx)(Aa,{className:"w-8 h-8 text-blue-600 mx-auto animate-spin"}),(0,y.jsx)("p",{className:"text-gray-600",children:"Uploading image..."})]}):(0,y.jsxs)("div",{className:"space-y-4",children:[(0,y.jsx)($e,{className:"w-8 h-8 text-gray-400 mx-auto"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"text-gray-900 font-medium",children:"Upload PCB Image"}),(0,y.jsx)("p",{className:"text-sm text-gray-600",children:"Drag and drop an image here, or click to select"})]}),(0,y.jsx)("input",{type:"file",accept:"image/*",onChange:G,className:"hidden",id:"image-upload"}),(0,y.jsx)("label",{htmlFor:"image-upload",className:"inline-block bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors font-medium cursor-pointer",children:"Select Image"})]})}),v&&(0,y.jsxs)("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg flex items-center gap-2",children:[(0,y.jsx)(Oe,{className:"w-5 h-5 text-red-600 flex-shrink-0"}),(0,y.jsx)("p",{className:"text-sm text-red-700",children:v})]})]}),l.imageUrl&&(0,y.jsx)("div",{className:"mt-6",children:(0,y.jsxs)("div",{className:"border border-gray-300 rounded-lg p-4 bg-gray-50",children:[(0,y.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,y.jsx)("h5",{className:"font-medium text-gray-900",children:"Image Preview"}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsx)("button",{onClick:()=>M(l.imageUrl),className:"text-blue-600 hover:text-blue-800 p-1",title:"View Full Size",children:(0,y.jsx)(Ra,{className:"w-4 h-4"})}),(0,y.jsx)("button",{onClick:de,className:"text-red-600 hover:text-red-800 p-1",title:"Remove Image",children:(0,y.jsx)(Se,{className:"w-4 h-4"})})]})]}),(0,y.jsx)("img",{src:l.imageUrl,alt:"PCB Preview",className:"w-full h-48 object-cover rounded-lg shadow-sm",onError:()=>c("Failed to load image. Please check the URL or try uploading a different image.")})]})}),(0,y.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4 mt-4",children:[(0,y.jsx)("h5",{className:"text-sm font-medium text-blue-900 mb-2",children:"PCB Image Guidelines:"}),(0,y.jsxs)("ul",{className:"text-sm text-blue-800 space-y-1",children:[(0,y.jsx)("li",{children:"\u2022 Use high-resolution images (at least 1024x768)"}),(0,y.jsx)("li",{children:"\u2022 Ensure PCB layout is clearly visible"}),(0,y.jsx)("li",{children:"\u2022 Include component labels when possible"}),(0,y.jsx)("li",{children:"\u2022 Avoid reflections or shadows"}),(0,y.jsx)("li",{children:"\u2022 Focus on the back side of the card"})]})]})]})})]}),(0,y.jsxs)("div",{className:"mt-8 p-4 bg-gray-50 rounded-lg",children:[(0,y.jsx)("h5",{className:"font-medium text-gray-900 mb-3",children:"Current Entry Summary:"}),(0,y.jsxs)("div",{className:"grid gap-2 md:grid-cols-2 lg:grid-cols-3 text-sm",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"font-medium",children:"Brand:"})," ",g(l.brand)]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"font-medium",children:"GPU Model:"})," ",D(l.series)]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"font-medium",children:"Memory:"})," ",l.memory||"Not specified"]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"font-medium",children:"Status:"})," ",l.status]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"font-medium",children:"Has Image:"})," ",l.imageUrl?"\u2705 Yes":"\u274C No"]})]})]}),(0,y.jsxs)("div",{className:"flex gap-4 mt-8 pt-6 border-t border-gray-200",children:[(0,y.jsx)("button",{onClick:X,disabled:o||!l.title||!l.brand||!l.series,className:"bg-green-600 text-white px-6 py-3 rounded-lg hover:bg-green-700 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:o?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Aa,{className:"w-4 h-4 animate-spin"}),"Saving Changes..."]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(za,{className:"w-4 h-4"}),"Save Changes"]})}),(0,y.jsx)("button",{onClick:a,className:"bg-gray-500 text-white px-6 py-3 rounded-lg hover:bg-gray-600 transition-colors font-medium",children:"Cancel"})]})]}),m&&(0,y.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center p-4 z-50",children:(0,y.jsxs)("div",{className:"bg-white rounded-lg max-w-4xl max-h-[90vh] overflow-auto",children:[(0,y.jsxs)("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[(0,y.jsx)("h3",{className:"text-lg font-semibold",children:"PCB Image Preview"}),(0,y.jsx)("button",{onClick:()=>M(null),className:"text-gray-400 hover:text-gray-600",children:(0,y.jsx)(Se,{className:"w-6 h-6"})})]}),(0,y.jsx)("div",{className:"p-4",children:(0,y.jsx)("img",{src:m,alt:"PCB Full Size Preview",className:"max-w-full h-auto rounded-lg shadow-lg"})})]})})]})})};var sl=Y(Be());var w=Y(fe()),_p=({gpuEntry:e,onClose:a,onSave:t})=>{let[l,u]=sl.useState(e.waterBlocks||[]),[o,r]=sl.useState(!1),[s,d]=sl.useState(null),[n,x]=sl.useState(!1),[v,c]=sl.useState(""),[m,M]=sl.useState({name:"",manufacturer:"",model:"",compatibilityUrl:"",price:"",availability:"in-stock",notes:""}),k=["EK Water Blocks","Corsair","NZXT","Alphacool","Thermaltake","Bitspower","Watercool","Aqua Computer","XSPC","Barrow","Phanteks","Other"],_=[{value:"in-stock",label:"In Stock",color:"bg-green-100 text-green-800"},{value:"out-of-stock",label:"Out of Stock",color:"bg-yellow-100 text-yellow-800"},{value:"discontinued",label:"Discontinued",color:"bg-red-100 text-red-800"}],f=N=>_.find(b=>b.value===N)?.label||N,i=N=>_.find(b=>b.value===N)?.color||"bg-gray-100 text-gray-800",p=l.filter(N=>N.name.toLowerCase().includes(v.toLowerCase())||N.manufacturer.toLowerCase().includes(v.toLowerCase())||N.model.toLowerCase().includes(v.toLowerCase())),g=()=>{if(!m.name||!m.manufacturer)return;let N={id:`wb_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,...m};u(b=>[...b,N]),M({name:"",manufacturer:"",model:"",compatibilityUrl:"",price:"",availability:"in-stock",notes:""}),r(!1)},D=N=>{d(N)},U=()=>{s&&(u(N=>N.map(b=>b.id===s.id?s:b)),d(null))},R=N=>{u(b=>b.filter(X=>X.id!==N))},G=async()=>{x(!0);try{let N={...e,waterBlocks:l};await t(N),a()}catch(N){console.error("Error saving water blocks:",N)}finally{x(!1)}};return(0,w.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,w.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-6xl w-full max-h-[95vh] overflow-y-auto",children:[(0,w.jsx)("div",{className:"p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-cyan-50",children:(0,w.jsxs)("div",{className:"flex items-center justify-between",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-1",children:"Water Block Compatibility"}),(0,w.jsxs)("p",{className:"text-gray-600",children:["Manage compatible water blocks for ",(0,w.jsx)("strong",{children:e.title})]}),(0,w.jsxs)("div",{className:"flex items-center gap-4 mt-2 text-sm text-gray-500",children:[(0,w.jsx)("span",{children:e.brand}),(0,w.jsx)("span",{children:"\u2022"}),(0,w.jsx)("span",{children:e.chipset}),(0,w.jsx)("span",{children:"\u2022"}),(0,w.jsx)("span",{children:e.memory})]})]}),(0,w.jsx)("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 transition-colors p-2 rounded-lg hover:bg-gray-100",children:(0,w.jsx)(Se,{className:"w-6 h-6"})})]})}),(0,w.jsxs)("div",{className:"p-6",children:[(0,w.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,w.jsxs)("div",{className:"flex items-center gap-4",children:[(0,w.jsxs)("div",{className:"relative",children:[(0,w.jsx)(ya,{className:"w-5 h-5 absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,w.jsx)("input",{type:"text",placeholder:"Search water blocks...",value:v,onCh
12ange:N=>c(N.target.value),className:"pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),(0,w.jsxs)("div",{className:"text-sm text-gray-600",children:[p.length," of ",l.length," blocks"]})]}),(0,w.jsxs)("button",{onClick:()=>r(!0),className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors flex items-center gap-2",children:[(0,w.jsx)(Da,{className:"w-4 h-4"}),"Add Water Block"]})]}),o&&(0,w.jsxs)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-6 mb-6",children:[(0,w.jsx)("h4",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Add New Water Block"}),(0,w.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[(0,w.jsxs)("div",{children:[(0,w.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Block Name ",(0,w.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,w.jsx)("input",{type:"text",value:m.name,onChange:N=>M(b=>({...b,name:N.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., EK-Quantum Vector RTX 4090"})]}),(0,w.jsxs)("div",{children:[(0,w.jsxs)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:["Manufacturer ",(0,w.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,w.jsxs)("select",{value:m.manufacturer,onChange:N=>M(b=>({...b,manufacturer:N.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,w.jsx)("option",{value:"",children:"Select Manufacturer"}),k.map(N=>(0,w.jsx)("option",{value:N,children:N},N))]})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Model Number"}),(0,w.jsx)("input",{type:"text",value:m.model,onChange:N=>M(b=>({...b,model:N.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., 3831109832134"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Price (Optional)"}),(0,w.jsx)("input",{type:"text",value:m.price,onChange:N=>M(b=>({...b,price:N.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., $149.99"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Availability"}),(0,w.jsx)("select",{value:m.availability,onChange:N=>M(b=>({...b,availability:N.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:_.map(N=>(0,w.jsx)("option",{value:N.value,children:N.label},N.value))})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Product URL"}),(0,w.jsx)("input",{type:"url",value:m.compatibilityUrl,onChange:N=>M(b=>({...b,compatibilityUrl:N.target.value})),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"https://..."})]}),(0,w.jsxs)("div",{className:"md:col-span-2 lg:col-span-3",children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Notes"}),(0,w.jsx)("textarea",{value:m.notes,onChange:N=>M(b=>({...b,notes:N.target.value})),rows:2,className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"Additional compatibility notes or installation requirements..."})]})]}),(0,w.jsxs)("div",{className:"flex gap-3 mt-4",children:[(0,w.jsxs)("button",{onClick:g,disabled:!m.name||!m.manufacturer,className:"bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[(0,w.jsx)(za,{className:"w-4 h-4"}),"Add Block"]}),(0,w.jsx)("button",{onClick:()=>r(!1),className:"bg-gray-500 text-white px-4 py-2 rounded-lg hover:bg-gray-600 transition-colors",children:"Cancel"})]})]}),(0,w.jsx)("div",{className:"space-y-4",children:p.length===0?(0,w.jsxs)("div",{className:"text-center py-12 bg-gray-50 rounded-lg",children:[(0,w.jsx)(va,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),(0,w.jsx)("h4",{className:"text-lg font-medium text-gray-900 mb-2",children:"No Water Blocks Found"}),(0,w.jsx)("p",{className:"text-gray-600 mb-4",children:l.length===0?"N
12o compatible water blocks have been added for this GPU model yet.":"No water blocks match your search criteria."}),l.length===0&&(0,w.jsx)("button",{onClick:()=>r(!0),className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Add First Water Block"})]}):p.map(N=>(0,w.jsx)("div",{className:"bg-white border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:s?.id===N.id?(0,w.jsxs)("div",{className:"space-y-4",children:[(0,w.jsxs)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Block Name"}),(0,w.jsx)("input",{type:"text",value:s.name,onChange:b=>d(X=>X?{...X,name:b.target.value}:null),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Manufacturer"}),(0,w.jsx)("select",{value:s.manufacturer,onChange:b=>d(X=>X?{...X,manufacturer:b.target.value}:null),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:k.map(b=>(0,w.jsx)("option",{value:b,children:b},b))})]}),(0,w.jsxs)("div",{children:[(0,w.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Availability"}),(0,w.jsx)("select",{value:s.availability,onChange:b=>d(X=>X?{...X,availability:b.target.value}:null),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:_.map(b=>(0,w.jsx)("option",{value:b.value,children:b.label},b.value))})]})]}),(0,w.jsxs)("div",{className:"flex gap-2",children:[(0,w.jsx)("button",{onClick:U,className:"bg-green-600 text-white px-3 py-1 rounded text-sm hover:bg-green-700 transition-colors",children:"Save"}),(0,w.jsx)("button",{onClick:()=>d(null),className:"bg-gray-500 text-white px-3 py-1 rounded text-sm hover:bg-gray-600 transition-colors",children:"Cancel"})]})]}):(0,w.jsxs)("div",{className:"flex items-center justify-between",children:[(0,w.jsxs)("div",{className:"flex-1",children:[(0,w.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,w.jsx)("h5",{className:"font-semibold text-gray-900",children:N.name}),(0,w.jsx)("span",{className:`px-2 py-1 text-xs font-medium rounded-full ${i(N.availability)}`,children:f(N.availability)}),N.price&&(0,w.jsx)("span",{className:"text-sm font-medium text-green-600",children:N.price})]}),(0,w.jsxs)("div",{className:"flex items-center gap-4 text-sm text-gray-600",children:[(0,w.jsxs)("span",{children:[(0,w.jsx)("strong",{children:"Manufacturer:"})," ",N.manufacturer]}),N.model&&(0,w.jsxs)("span",{children:[(0,w.jsx)("strong",{children:"Model:"})," ",N.model]})]}),N.notes&&(0,w.jsx)("p",{className:"text-sm text-gray-600 mt-2",children:N.notes}),N.compatibilityUrl&&(0,w.jsx)("a",{href:N.compatibilityUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-blue-600 hover:text-blue-800 mt-1 inline-block",children:"View Product \u2192"})]}),(0,w.jsxs)("div",{className:"flex gap-2 ml-4",children:[(0,w.jsx)("button",{onClick:()=>D(N),className:"text-blue-600 hover:text-blue-800 p-1 rounded hover:bg-blue-50 transition-colors",children:(0,w.jsx)(Fe,{className:"w-4 h-4"})}),(0,w.jsx)("button",{onClick:()=>R(N.id),className:"text-red-600 hover:text-red-800 p-1 rounded hover:bg-red-50 transition-colors",children:(0,w.jsx)(ol,{className:"w-4 h-4"})})]})]})},N.id))}),l.length>0&&(0,w.jsxs)("div",{className:"mt-6 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,w.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,w.jsx)(He,{className:"w-5 h-5 text-blue-600"}),(0,w.jsx)("h5",{className:"font-medium text-blue-900",children:"Compatibility Summary"})]}),(0,w.jsxs)("p",{className:"text-sm text-blue-800",children:[(0,w.jsx)("strong",{children:l.length})," compatible water block",l.length!==1?"s":""," found for this GPU model.",(0,w.jsx)("br",{}),(0,w.jsx)("strong",{children:l.filter(N=>N.availability==="in-stock").length})," currently in stock,"," ",(0,w.jsx)("strong",{children:l.filter(N=>N.availability==="out-of-stock").length})," out of stock,"," ",(0,w.jsx)("strong",{children:l.filter(N=>N.availability==="discontinued").length})," discontinued."]})]}),(0,w.jsxs)("div",{className:"flex gap-4 mt-8 pt-6 border-t border-gray-200",children:[(0,w.jsx)("button",{onClick:G,disabled:n,className:"bg-green-600 text-white px-6 py-3 rounded-lg hover:bg-green-700 transition-colors font-medium disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:n?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent roun
12ded-full animate-spin"}),"Saving..."]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(za,{className:"w-4 h-4"}),"Save Water Blocks"]})}),(0,w.jsx)("button",{onClick:a,className:"bg-gray-500 text-white px-6 py-3 rounded-lg hover:bg-gray-600 transition-colors font-medium",children:"Cancel"})]})]})]})})};var uu=Y(Be());var B=Y(fe()),Hp=({onClose:e,onSelectExisting:a,onCreateNew:t,existingGPUs:l})=>{let[u,o]=uu.useState(""),[r,s]=uu.useState(""),[d,n]=uu.useState(""),x=[{value:"asus",label:"ASUS"},{value:"msi",label:"MSI"},{value:"evga",label:"EVGA"},{value:"gigabyte",label:"Gigabyte"},{value:"xfx",label:"XFX"},{value:"sapphire",label:"Sapphire"},{value:"powercolor",label:"PowerColor"},{value:"asrock",label:"ASRock"},{value:"zotac",label:"Zotac"},{value:"pny",label:"PNY"},{value:"palit",label:"Palit"},{value:"gainward",label:"Gainward"},{value:"intel",label:"Intel"}],v=[{value:"nvidia_rtx_4090",label:"NVIDIA RTX 4090"},{value:"nvidia_rtx_4080_super",label:"NVIDIA RTX 4080 SUPER"},{value:"nvidia_rtx_4070_ti_super",label:"NVIDIA RTX 4070 Ti SUPER"},{value:"nvidia_rtx_4070_super",label:"NVIDIA RTX 4070 SUPER"},{value:"nvidia_rtx_4070",label:"NVIDIA RTX 4070"},{value:"nvidia_rtx_3090_ti",label:"NVIDIA RTX 3090 Ti"},{value:"nvidia_rtx_3090",label:"NVIDIA RTX 3090"},{value:"nvidia_rtx_3080_ti",label:"NVIDIA RTX 3080 Ti"},{value:"nvidia_rtx_3080",label:"NVIDIA RTX 3080"},{value:"nvidia_rtx_3070_ti",label:"NVIDIA RTX 3070 Ti"},{value:"nvidia_rtx_3070",label:"NVIDIA RTX 3070"},{value:"nvidia_rtx_3060_ti",label:"NVIDIA RTX 3060 Ti"},{value:"nvidia_rtx_3060",label:"NVIDIA RTX 3060"},{value:"amd_rx_7900_xtx",label:"AMD RX 7900 XTX"},{value:"amd_rx_7900_xt",label:"AMD RX 7900 XT"},{value:"amd_rx_7800_xt",label:"AMD RX 7800 XT"},{value:"amd_rx_7700_xt",label:"AMD RX 7700 XT"},{value:"amd_rx_6900_xt",label:"AMD RX 6900 XT"},{value:"amd_rx_6800_xt",label:"AMD RX 6800 XT"},{value:"amd_rx_6700_xt",label:"AMD RX 6700 XT"},{value:"intel_arc_a770",label:"Intel Arc A770"},{value:"intel_arc_a750",label:"Intel Arc A750"},{value:"intel_arc_a580",label:"Intel Arc A580"}],c=g=>x.find(D=>D.value===g)?.label||g,m=g=>v.find(D=>D.value===g)?.label||g,M=l.filter(g=>{let D=!r||g.brand===r,U=!d||g.series===d,R=!u||g.title.toLowerCase().includes(u.toLowerCase())||m(g.series).toLowerCase().includes(u.toLowerCase())||c(g.brand).toLowerCase().includes(u.toLowerCase());return D&&U&&R}),k=M.some(g=>g.title.toLowerCase()===u.toLowerCase()),_=()=>{o(""),s(""),n("")},f=uu.useMemo(()=>{if(!r)return v;let g=l.filter(U=>U.brand===r),D=[...new Set(g.map(U=>U.series))];return v.filter(U=>D.includes(U.value))},[r,l]),i=()=>!r&&!d?l.length:l.filter(g=>{let D=!r||g.brand===r,U=!d||g.series===d;return D&&U}).length,p=()=>{t({brand:r,series:d})};return(0,B.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,B.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,B.jsx)("div",{className:"p-6 border-b border-gray-200 bg-gradient-to-r from-orange-50 to-red-50",children:(0,B.jsxs)("div",{className:"flex items-center justify-between",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Search Existing GPU Models"}),(0,B.jsx)("p",{className:"text-gray-600",children:"Select brand and GPU model first, then search for specific variants to prevent duplicates"})]}),(0,B.jsx)("button",{onClick:e,className:"text-gray-400 hover:text-gray-600 transition-colors p-2 rounded-lg hover:bg-gray-100",children:(0,B.jsx)(Se,{className:"w-6 h-6"})})]})}),(0,B.jsxs)("div",{className:"p-6",children:[(0,B.jsx)("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-6",children:(0,B.jsxs)("div",{className:"flex items-start gap-3",children:[(0,B.jsx)(rt,{className:"w-5 h-5 text-yellow-600 flex-shrink-0 mt-0.5"}),(0,B.jsxs)("div",{children:[(0,B.jsx)("h4",{className:"font-medium text-yellow-900 mb-1",children:"Prevent Duplicate Entries"}),(0,B.jsx)("p",{className:"text-sm text-yellow-800",children:"Before adding a new GPU model, please search to see if it already exists in the database. Start by selecting the brand and GPU model, then search for the specific variant name."})]})]})}),(0,B.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,B.jsxs)("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[(0,B.jsx)("h4",{className:"font-medium text-blue-900 mb-3",children:"Step 1: Select Brand and GPU Model"}),(0,B.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Brand"}),(0,B.jsxs)("select",{value:r,onChange:g=>{s(g.target.value),n("")},className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,B.jsx)("option",{value:"",children:"All Brands"}),x.map(g=>(0,B.jsx)("option",{value:g.value,children:g.label},g.value))]})]}),(0,B.jsxs)("div",{children:[(0,B.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"GPU Model"}),(0,B.jsxs)("select",{value:d,onChange:g=>n(g.target.value),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",disabled:!r,children:[(0,B.jsx)("option",{value:"",children:"All GPU Models"}),f.map(g=>(0,B.jsx)("option",{value:g.value,children:g.label},g.value))]}),!r&&(0,B.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"Select a brand first to see available GPU models"})]})]}),(r||d)&&(0,B.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,B.jsxs)("p",{className:"text-sm text-blue-700",children:[(0,B.jsx)("strong",{children:i()})," variants available for this selection"]}),(0,B.jsx)("button",{onClick:_,className:"text-sm text-blue-600 hover:text-blue-800 underline",children:"Clear selection"})]})]}),(0,B.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[(0,B.jsx)("h4",{className:"font-medium text-green-900 mb-3",children:"Step 2: Search for Specific Variant (Optional)"}),(0,B.jsxs)("div",{className:"relative",children:[(0,B.jsx)(ya,{className:"w-5 h-5 absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,B.jsx)("input",{type:"text",placeholder:"Search by variant name...",value:u,onChange:g=>o(g.target.value),className:"w-full pl-10 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-green-500 focus:border-transparent"})]}),(0,B.jsx)("p",{className:"text-xs text-green-700 mt-1",children:'Narrow down results by searching for specific variant names (e.g., "Gam
12ing X Trio", "NITRO+")'})]})]}),(0,B.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,B.jsxs)("div",{className:"text-sm text-gray-600",children:[M.length," of ",l.length," GPU variants found"]}),(r||d)&&(0,B.jsxs)("div",{className:"text-sm text-blue-600",children:["Filtered by: ",r&&c(r),r&&d&&" \u2022 ",d&&m(d)]})]}),(0,B.jsx)("div",{className:"space-y-3 mb-6 max-h-96 overflow-y-auto",children:M.length===0?(0,B.jsxs)("div",{className:"text-center py-8 bg-gray-50 rounded-lg",children:[(0,B.jsx)(ya,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),(0,B.jsx)("h4",{className:"text-lg font-medium text-gray-900 mb-2",children:"No Matching GPU Variants Found"}),(0,B.jsx)("p",{className:"text-gray-600 mb-4",children:r||d?`No GPU variants found for the selected ${r?"brand":""}${r&&d?" and ":""}${d?"GPU model":""}.`:u?`No existing GPU variants match "${u}". You may need to create a new entry.`:"No GPU variants match your current filters."})]}):M.map(g=>(0,B.jsx)("div",{className:"bg-white border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow",children:(0,B.jsxs)("div",{className:"flex items-center justify-between",children:[(0,B.jsxs)("div",{className:"flex-1",children:[(0,B.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,B.jsx)("h5",{className:"font-semibold text-gray-900",children:g.title}),(0,B.jsx)("span",{className:`px-2 py-1 text-xs font-medium rounded-full ${g.status==="active"?"bg-green-100 text-green-800":g.status==="inactive"?"bg-gray-100 text-gray-800":"bg-red-100 text-red-800"}`,children:g.status})]}),(0,B.jsxs)("div",{className:"flex items-center gap-4 text-sm text-gray-600 mb-2",children:[(0,B.jsxs)("span",{children:[(0,B.jsx)("strong",{children:"Brand:"})," ",c(g.brand)]}),(0,B.jsxs)("span",{children:[(0,B.jsx)("strong",{children:"GPU Model:"})," ",m(g.series)]}),g.memory&&(0,B.jsxs)("span",{children:[(0,B.jsx)("strong",{children:"Memory:"})," ",g.memory]})]}),(0,B.jsxs)("div",{className:"flex items-center gap-4 text-sm",children:[(0,B.jsxs)("div",{className:"flex items-center gap-1 text-blue-600",children:[(0,B.jsx)(va,{className:"w-4 h-4"}),(0,B.jsxs)("span",{children:[g.waterBlocks?.length||0," water block",(g.waterBlocks?.length||0)!==1?"s":""]})]}),g.imageUrl&&(0,B.jsx)("span",{className:"text-green-600",children:"\u2713 Has PCB image"})]})]}),(0,B.jsxs)("button",{onClick:()=>a(g),className:"bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition-colors flex items-center gap-2",children:[(0,B.jsx)(va,{className:"w-4 h-4"}),"Manage Water Blocks"]})]})},g.id))}),(0,B.jsx)("div",{className:"border-t border-gray-200 pt-6",children:(0,B.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4",children:[(0,B.jsxs)("div",{className:"flex items-center justify-between",children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("h4",{className:"font-medium text-green-900 mb-1",children:k?"Still want to create a new entry?":"GPU variant not found?"}),(0,B.jsx)("p",{className:"text-sm text-green-800",children:k?"We found an exact match above. Please use the existing entry to avoid duplicates.":"If you couldn't find your GPU variant above, you can create a new database entry."}),(r||d)&&!k&&(0,B.jsxs)("p",{className:"text-xs text-green-700 mt-1",children:["New entry will be pre-filled with: ",r&&c(r),r&&d&&" \u2022 ",d&&m(d)]})]}),(0,B.jsxs)("button",{onClick:p,disabled:k,className:"bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[(0,B.jsx)(Da,{className:"w-4 h-4"}),"Create New GPU Entry"]})]}),k&&(0,B.jsx)("div",{className:"mt-3 p-3 bg-yellow-100 border border-yellow-300 rounded-lg",children:(0,B.jsxs)("div",{className:"flex items-center gap-2",children:[(0,B.jsx)(rt,{className:"w-4 h-4 text-yellow-600"}),(0,B.jsx)("span",{className:"text-sm font-medium text-yellow-800",children:"Exact match found! Please use the existing entry above to prevent duplicates."})]})})]})}),(0,B.jsx)("div",{className:"flex gap-4 mt-6 pt-6 border-t border-gray-200",children:(0,B.jsx)("button",{onClick:e,className:"bg-gray-500 text-white px-6 py-3 rounded-lg hover:bg-gray-600 transition-colors font-medium",children:"Cancel"})})]})]})})};var h=Y(fe()),Fp=({onBack:e})=>{let[a,t]=qe.useState("database"),[l,u]=qe.useState([]),[o,r]=qe.useState(!0),[s,d]=qe.useState(null),[n,x]=qe.useState(null),[v,c]=qe.useState(!1),[m,M]=qe.useState(!1),[k,_]=qe.useState(""),[f,i]=qe.useState(""),[p,g]=qe.useState(""),[D,U]=qe.useState(0),[R,G]=qe.useState(null),[N,b]=qe.useState(!1),X=[{value:"asus",label:"ASUS"},{value:"msi",label:"MSI"},{value:"evga",label:"EVGA"},{value:"gigabyte",label:"Gigabyte"},{value:"xfx",label:"XFX"},{value:"sapphire",label:"Sapphire"},{value:"powercolor",label:"PowerColor"},{value:"asrock",label:"ASRock"},{value:"zotac",label:"Zotac"},{value:"pny",label:"PNY"},{value:"palit",label:"Palit"},{value:"gainward",label:"Gainward"},{value:"intel",label:"Intel"}],Pe=[{value:"nvidia_rtx_4090",label:"NVIDIA RTX 4090"},{value:"nvidia_rtx_4080_super",label:"NVIDIA RTX 4080 SUPER"},{value:"nvidia_rtx_4070_ti_super",label:"NVIDIA RTX 4070 Ti SUPER"},{value:"nvidia_rtx_4070_super",label:"NVIDIA RTX 4070 SUPER"},{value:"nvidia_rtx_4070",label:"NVIDIA RTX 4070"},{value:"nvidia_rtx_3090_ti",label:"NVIDIA RTX 3090 Ti"},{value:"nvidia_rtx_3090",label:"NVIDIA RTX 3090"},{value:"nvidia_rtx_3080_ti",label:"NVIDIA RTX 3080 Ti"},{value:"nvidia_rtx_3080",label:"NVIDIA RTX 3080"},{value:"nvidia_rtx_3070_ti",label:"NVIDIA RTX 3070 Ti"},{value:"nvidia_rtx_3070",label:"NVIDIA RTX 3070"},{value:"nvidia_rtx_3060_ti",label:"NVIDIA RTX 3060 Ti"},{value:"nvidia_rtx_3060",label:"NVIDIA RTX 3060"},{value:"amd_rx_7900_xtx",label:"AMD RX 7900 XTX"},{value:"amd_rx_7900_xt",label:"AMD RX 7900 XT"},{value:"amd_rx_7800_xt",label:"AMD RX 7800 XT"},{value:"amd_rx_7700_xt",label:"AMD RX 7700 XT"},{value:"amd_rx_6900_xt",label:"AMD RX 6900 XT"},{value:"amd_rx_6800_xt",label:"AMD RX 6800 XT"},{value:"amd_rx_6700_xt",label:"AMD RX 6700 XT"},{value:"intel_arc_a770",label:"Intel Arc A770"},{value:"intel_arc_a750",label:"Intel Arc A750"},{value:"intel_arc_a580",label:"Intel Arc A580"}],de=[{value:"active",label:"Active"},{value:"inactive",label:"Inactive"},{value:"discontinued",label:"Discontinued"}],E={title:"",brand:"",series:"",memory:"",url:"",status:"active",imageUrl:"",waterBlocks:[]},[S,q]=qe.useState(E),V=async()=>{try{r(!0),u([{id:"1",title:"ROG Strix RTX 4090 OC",brand:"asus",series:"nvidia_rtx_4090",memory:"24GB GDDR6X",url:"https://rog.asus.com/graphics-cards/graphics-cards/rog-strix/rog-strix-rtx4090-o24g-gaming/",status:"active",imageUrl:"",waterBlocks:[]},{id:"2",title:"RTX 4090 Gaming X Trio",brand:"msi",series:"nvidia_rtx_4090",memory:"24GB GDDR6X",url:"https://www.msi.com/Graphics-Card/GeForce-RTX-4090-GAMING-X-TRIO-24G",status:"active",imageUrl:"",waterBlocks:[]}])}catch(T){console.error("Error fetching GPU entries:",T)}finally{r(!1)}},Z=async()=>{try{U(3)}catch(T){console.error("Error fetching pending requests count:",T)}
12};qe.useEffect(()=>{V(),Z()},[]);let ee=async()=>{try{let T={id:Date.now().toString(),...S};u(Me=>[...Me,T]),c(!1),q(E)}catch(T){console.error("Error creating GPU entry:",T)}},J=async T=>{try{u(Me=>Me.map(To=>To.id===T.id?T:To))}catch(Me){console.error("Error updating GPU entry:",Me)}},ke=()=>{M(!0)},La=T=>{M(!1),x(T)},ou=T=>{M(!1);let Me={...E,brand:T?.brand||"",series:T?.series||""};q(Me),c(!0)},ru=l.filter(T=>{let Me=T.title.toLowerCase().includes(k.toLowerCase())||No(T.series).toLowerCase().includes(k.toLowerCase()),To=!f||T.brand===f,Wp=!p||T.series===p;return Me&&To&&Wp}),Do=T=>X.find(Me=>Me.value===T)?.label||T,No=T=>Pe.find(Me=>Me.value===T)?.label||T,Zp=T=>de.find(Me=>Me.value===T)?.label||T,Kp=T=>{switch(T){case"active":return"bg-green-100 text-green-800";case"inactive":return"bg-gray-100 text-gray-800";case"discontinued":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};return a==="requests"?(0,h.jsx)(qp,{onBack:()=>t("database")}):(0,h.jsx)("div",{className:"min-h-screen bg-gray-50 py-8 px-4",children:(0,h.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,h.jsx)("div",{className:"bg-white rounded-2xl shadow-lg p-6 mb-8",children:(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Water Block Compatibility Admin"}),(0,h.jsx)("p",{className:"text-gray-600",children:"Manage GPU models and their compatible water blocks"})]}),(0,h.jsxs)("div",{className:"flex gap-3",children:[(0,h.jsx)("button",{onClick:e,className:"px-4 py-2 text-gray-600 hover:text-gray-800 transition-colors",children:"\u2190 Back to App"}),(0,h.jsxs)("button",{onClick:()=>t("requests"),className:"bg-orange-600 text-white px-6 py-2 rounded-lg hover:bg-orange-700 transition-colors flex items-center gap-2 relative",children:[(0,h.jsx)(tu,{className:"w-4 h-4"}),"View Requests",D>0&&(0,h.jsx)("span",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center",children:D})]}),(0,h.jsxs)("button",{onClick:()=>b(!0),className:"bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition-colors flex items-center gap-2",children:[(0,h.jsx)(Gt,{className:"w-4 h-4"}),"Excel Import/Export"]}),(0,h.jsxs)("button",{onClick:ke,className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors flex items-center gap-2",children:[(0,h.jsx)(Da,{className:"w-4 h-4"}),"Add GPU / Water Block"]})]})]})}),(0,h.jsxs)("div",{className:"grid gap-6 md:grid-cols-4 mb-8",children:[(0,h.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Total GPU Models"}),(0,h.jsx)("p",{className:"text-3xl font-bold text-gray-900",children:l.length})]}),(0,h.jsx)("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center",children:(0,h.jsx)("div",{className:"w-6 h-6 bg-blue-600 rounded"})})]})}),(0,h.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Total Water Blocks"}),(0,h.jsx)("p",{className:"text-3xl font-bold text-cyan-600",children:l.reduce((T,Me)=>T+(Me.waterBlocks?.length||0),0)})]}),(0,h.jsx)("div",{className:"w-12 h-12 bg-cyan-100 rounded-lg flex items-center justify-center",children:(0,h.jsx)(va,{className:"w-6 h-6 text-cyan-600"})})]})}),(0,h.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"With PCB Images"}),(0,h.jsx)("p",{className:"text-3xl font-bold text-purple-600",children:l.filter(T=>T.imageUrl).length})]}),(0,h.jsx)("div",{className:"w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center",children:(0,h.jsx)(ot,{className:"w-6 h-6 text-purple-600"})})]})}),(0,h.jsx)("div",{className:"bg-white rounded-xl shadow-lg p-6",children:(0,h.jsxs)("div",{className:"flex items-center justify-between",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("p",{className:"text-sm font-medium text-gray-600",children:"Pending Requests"}),(0,h.jsx)("p",{className:"text-3xl font-bold text-orange-600",children:D})]}),(0,h.jsx)("div",{className:"w-12 h-12 bg-orange-100 rounded-lg flex items-center justify-center",children:(0,h.jsx)(tu,{className:"w-6 h-6 text-orange-600"})})]})})]}),(0,h.jsx)("div",{className:"bg-white rounded-2xl shadow-lg p-6 mb-8",children:(0,h.jsxs)("div",{className:"grid gap-4 md:grid-cols-4",children:[(0,h.jsxs)("div",{className:"relative",children:[(0,h.jsx)(ya,{className:"w-5 h-5 absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"}),(0,h.jsx)("input",{type:"text",placeholder:"Search GPU models...",value:k,onChange:T=>_(T.target.value),className:"w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),(0,h.jsxs)("select",{value:f,onChange:T=>i(T.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,h.jsx)("option",{value:"",children:"All Brands"}),X.map(T=>(0,h.jsx)("option",{value:T.value,children:T.label},T.value))]}),(0,h.jsxs)("select",{value:p,onChange:T=>g(T.target.value),className:"px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,h.jsx)("option",{value:"",children:"All GPU Models"}),Pe.map(T=>(0,h.jsx)("option",{value:T.value,children:T.label},T.value))]}),(0,h.jsxs)("div",{className:"flex gap-2",children:[(0,h.jsxs)("button",{onClick:()=>b(!0),className:"px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors flex items-center gap-2",children:[(0,h.jsx)(Ia,{className:"w-4 h-4"}),"Export"]}),(0,h.jsxs)("button",{onClick:()=>b(!0),className:"px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors flex items-center gap-2",children:[(0,h.jsx)($e,{className:"w-4 h-4"}),"Import"]})]})]})}),v&&(0,h.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg p-6 mb-8",children:[(0,h.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,h.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:"Add New GPU Model"}),(S.brand||S.series)&&(0,h.jsxs)("div",{className:"text-sm text-blue-600 bg-blue-50 px-3 py-1 rounded-lg",children:["Pre-filled: ",S.brand&&Do(S.brand),S.brand&&S.series&&" \u2022 ",
12S.series&&No(S.series)]})]}),(0,h.jsxs)("div",{className:"grid gap-6 lg:grid-cols-2",children:[(0,h.jsxs)("div",{className:"space-y-4",children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Model Name"}),(0,h.jsx)("input",{type:"text",value:S.title,onChange:T=>q({...S,title:T.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., RTX 4090 Gaming X Trio"})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Brand"}),(0,h.jsxs)("select",{value:S.brand,onChange:T=>q({...S,brand:T.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,h.jsx)("option",{value:"",children:"Select Brand"}),X.map(T=>(0,h.jsx)("option",{value:T.value,children:T.label},T.value))]})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"GPU Model"}),(0,h.jsxs)("select",{value:S.series,onChange:T=>q({...S,series:T.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:[(0,h.jsx)("option",{value:"",children:"Select GPU Model"}),Pe.map(T=>(0,h.jsx)("option",{value:T.value,children:T.label},T.value))]})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Memory"}),(0,h.jsx)("input",{type:"text",value:S.memory,onChange:T=>q({...S,memory:T.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"e.g., 24GB GDDR6X"})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Status"}),(0,h.jsx)("select",{value:S.status,onChange:T=>q({...S,status:T.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:de.map(T=>(0,h.jsx)("option",{value:T.value,children:T.label},T.value))})]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"GPU Product URL"}),(0,h.jsx)("input",{type:"url",value:S.url,onChange:T=>q({...S,url:T.target.value}),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent",placeholder:"https://..."})]})]}),(0,h.jsx)("div",{children:(0,h.jsx)(Pp,{onImageUploaded:T=>q({...S,imageUrl:T}),currentImageUrl:S.imageUrl})})]}),(0,h.jsxs)("div",{className:"flex gap-3 mt-8",children:[(0,h.jsxs)("button",{onClick:ee,className:"bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition-colors flex items-center gap-2",children:[(0,h.jsx)(za,{className:"w-4 h-4"}),"Save GPU Model"]}),(0,h.jsxs)("button",{onClick:()=>{c(!1),q(E)},className:"bg-gray-500 text-white px-6 py-2 rounded-lg hover:bg-gray-600 transition-colors flex items-center gap-2",children:[(0,h.jsx)(Se,{className:"w-4 h-4"}),"Cancel"]})]})]}),(0,h.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg overflow-hidden",children:[(0,h.jsx)("div",{className:"px-6 py-4 border-b border-gray-200",children:(0,h.jsxs)("h3",{className:"text-lg font-semibold text-gray-900",children:["GPU Models (",ru.length,")"]})}),o?(0,h.jsxs)("div",{className:"p-8 text-center",children:[(0,h.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600"}),(0,h.jsx)("p",{className:"mt-2 text-gray-600",children:"Loading GPU models..."})]}):(0,h.jsx)("div",{className:"overflow-x-auto",children:(0,h.jsxs)("table",{className:"w-full",children:[(0,h.jsx)("thead",{className:"bg-gray-50",children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Model"}),(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Brand"}),(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"GPU Model"}),(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Water Blocks"}),(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"PCB Image"}),(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),(0,h.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Actions"})]})}),(0,h.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:ru.map(T=>(0,h.jsxs)("tr",{className:"hover:bg-gray-50",children:[(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,h.jsx)("div",{className:"text-sm font-medium text-gray-900",children:T.title})}),(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,h.jsx)("div",{className:"text-sm text-gray-900",children:Do(T.brand)})}),(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,h.jsx)("div",{className:"text-sm text-gray-900",children:No(T.series)})}),(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,h.jsxs)("div",{className:"flex items-center gap-2",children:[(0,h.jsx)(va,{className:"w-4 h-4 text-cyan-600"}),(0,h.jsxs)("span",{className:"text-sm text-gray-900",children:[T.waterBlocks?.length||0," block",(T.waterBlocks?.length||0)!==1?"s":""]})]})}),(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,h.jsx)("div",{className:"flex items-center gap-2",children:T.imageUrl?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("button",{onClick:()=>G(T.imageUrl),className:"text-purple-600 hover:text-purple-800",children:(0,h.jsx)(ot,{className:"w-4 h-4"})}),(0,h.jsx)("span",{className:"text-xs text-green-600 font-medium",children:"\u2713 Uploaded"})]}):(0,h.jsx)("span",{className:"text-gray-400 text-xs",children:"No image"})})}),(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,h.jsx)("span",{className:`inline-flex px-2 py-1 text-xs font-semibold rounded-full ${Kp(T.status)}`,children:Zp(T.status)})}),(0,h.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,h.jsxs)("div",{className:"flex gap-2",children:[(0,h.jsx)("button",{onClick:()=>x(T),className:"text-cyan-600 hover:text-cyan-900 p-1 rounded hover:bg-cyan-50 transition-colors",title:"Manage Water Blocks",children:(0,h.jsx)(va,{className:"w-4 h-4"})}),(0,h.jsx)("button",{onClick:()=>d(T),className:"text-blue-600 hover:text-blue-900 p-1 rounded hover:bg-blue-50 transition-colors",title:"Edit GPU Model",children:(0,h.jsx)(Fe,{className:"w-4 h-4"})}),(0,h.jsx)("button",{className:"text-red-600 hover:text-red-900 p-1 rounded hover:bg-red-50 transition-colors",title:"Delete Entry",children:(0,h.jsx)(ol,{className:"w-4 h-4"})})]})})]},T.id))})]})})]}),R&&(0,h.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center p-4 z-50",children:(0,h.jsxs)("div",{className:"bg-white rounded-lg max-w-4xl max-h-[90vh] overflow-auto",children:[(0,h.jsxs)("div",{className:"p-4 border-b border-gray-200 flex items-center justify-between",children:[(0,h.jsx)("h3",{className:"text-lg font-semibold",children:"PCB Image Preview"}),(0,h.jsx)("button",{onClick:()=>G(null),className:"text-gray-400 hover:text-gray-600",children:(0,h.jsx)(Se,{className:"w-6 h-6"})})]}),(0,h.jsx)("div",{className:"p-4",children:(0,h.jsx)("img",{src:R,alt:"PCB Preview",className:"max-w-full h-auto rounded-lg shadow-lg",onError:()=>G(null)})})]})}),N&&(0,h.jsx)(Xp,{onClose:()=>b(!1),onDataImported:V}),s&&(0,h.jsx)(zp,{entry:s,onClose:()=>d(null),onSave:J}),n&&(0,h.jsx)(_p,{gpuEntry:n,onClose:()=>x(null),onSave:J}),m&&(0,h.jsx)(Hp,{onClose:()=>M(!1),onSelectExisting:La,onCreateNew:ou,existingGPUs:l})]})})};var Na=Y(fe()),Nh=function(){let[e,a]=Vp.useState(!1);return(0,Na.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50",children:e?(0,Na.jsx)(Fp,{onBack:()=>a(!1)}):(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)("div",{className:"fixed top-4 right-4 z-50",children:(0,Na.jsx)("button",{onClick:()=>a(!0),className:"bg-gray-800 text-white p-3 rounded-full shadow-lg hover:bg-gray-700 transition-colors",title:"Admin Panel",children:(0,Na.jsx)(So,{className:"w-5 h-5"})})}),(0,Na.jsx)(Op,{})]})})},jp=Nh;var Hi=Y(fe());(0,Qp.createRoot)(document.getElementById("root")).render((0,Hi.jsx)(Yp.StrictMode,{children:(0,Hi.jsx)(jp,{})}));
13/*! Bundled license information:
14
15react/cjs/react.production.js:
16  (**
17   * @license React
18   * react.production.js
19   *
20   * Copyright (c) Meta Platforms, Inc. and affiliates.
21   *
22   * This source code is licensed under the MIT license found in the
23   * LICENSE file in the root directory of this source tree.
24   *)
25
26scheduler/cjs/scheduler.production.js:
27  (**
28   * @license React
29   * scheduler.production.js
30   *
31   * Copyright (c) Meta Platforms, Inc. and affiliates.
32   *
33   * This source code is licensed under the MIT license found in the
34   * LICENSE file in the root directory of this source tree.
35   *)
36
37react-dom/cjs/react-dom.production.js:
38  (**
39   * @license React
40   * react-dom.production.js
41   *
42   * Copyright (c) Meta Platforms, Inc. and affiliates.
43   *
44   * This source code is licensed under the MIT license found in the
45   * LICENSE file in the root directory of this source tree.
46   *)
47
48react-dom/cjs/react-dom-client.production.js:
49  (**
50   * @license React
51   * react-dom-client.production.js
52   *
53   * Copyright (c) Meta Platforms, Inc. and affiliates.
54   *
55   * This source code is licensed under the MIT license found in the
56   * LICENSE file in the root directory of this source tree.
57   *)
58
59react/cjs/react-jsx-runtime.production.js:
60  (**
61   * @license React
62   * react-jsx-runtime.production.js
63   *
64   * Copyright (c) Meta Platforms, Inc. and affiliates.
65   *
66   * This source code is licensed under the MIT license found in the
67   * LICENSE file in the root directory of this source tree.
68   *)
69
70lucide-react/dist/esm/shared/src/utils.js:
71lucide-react/dist/esm/defaultAttributes.js:
72lucide-react/dist/esm/Icon.js:
73lucide-react/dist/esm/createLucideIcon.js:
74lucide-react/dist/esm/icons/check.js:
75lucide-react/dist/esm/icons/circle-alert.js:
76lucide-react/dist/esm/icons/circle-check-big.js:
77lucide-react/dist/esm/icons/clock.js:
78lucide-react/dist/esm/icons/cpu.js:
79lucide-react/dist/esm/icons/download.js:
80lucide-react/dist/esm/icons/droplets.js:
81lucide-react/dist/esm/icons/external-link.js:
82lucide-react/dist/esm/icons/eye-off.js:
83lucide-react/dist/esm/icons/eye.js:
84lucide-react/dist/esm/icons/file-spreadsheet.js:
85lucide-react/dist/esm/icons/file-text.js:
86lucide-react/dist/esm/icons/image.js:
87lucide-react/dist/esm/icons/link.js:
88lucide-react/dist/esm/icons/loader.js:
89lucide-react/dist/esm/icons/message-square.js:
90lucide-react/dist/esm/icons/monitor.js:
91lucide-react/dist/esm/icons/plus.js:
92lucide-react/dist/esm/icons/rotate-cw.js:
93lucide-react/dist/esm/icons/save.js:
94lucide-react/dist/esm/icons/search.js:
95lucide-react/dist/esm/icons/send.js:
96lucide-react/dist/esm/icons/settings.js:
97lucide-react/dist/esm/icons/square-pen.js:
98lucide-react/dist/esm/icons/trash-2.js:
99lucide-react/dist/esm/icons/trending-up.js:
100lucide-react/dist/esm/icons/triangle-alert.js:
101lucide-react/dist/esm/icons/upload.js:
102lucide-react/dist/esm/icons/x.js:
103lucide-react/dist/esm/icons/zap.js:
104lucide-react/dist/esm/icons/zoom-in.js:
105lucide-react/dist/esm/icons/zoom-out.js:
106lucide-react/dist/esm/lucide-react.js:
107  (**
108   * @license lucide-react v0.544.0 - ISC
109   *
110   * This source code is licensed under the ISC license.
111   * See the LICENSE file in the root directory of this source tree.
112   *)
113*/

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.