vskill 0.2.76 → 0.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +27 -0
  2. package/dist/commands/eval/__tests__/coverage.test.js +1 -1
  3. package/dist/commands/eval/__tests__/coverage.test.js.map +1 -1
  4. package/dist/commands/eval/serve.js +10 -4
  5. package/dist/commands/eval/serve.js.map +1 -1
  6. package/dist/eval/__tests__/benchmark.test.js +2 -2
  7. package/dist/eval/__tests__/benchmark.test.js.map +1 -1
  8. package/dist/eval/__tests__/llm.test.js +7 -7
  9. package/dist/eval/__tests__/llm.test.js.map +1 -1
  10. package/dist/eval/__tests__/mcp-detector.test.d.ts +1 -0
  11. package/dist/eval/__tests__/mcp-detector.test.js +125 -0
  12. package/dist/eval/__tests__/mcp-detector.test.js.map +1 -0
  13. package/dist/eval/__tests__/skill-scanner.test.js +2 -1
  14. package/dist/eval/__tests__/skill-scanner.test.js.map +1 -1
  15. package/dist/eval/llm.js +2 -2
  16. package/dist/eval/llm.js.map +1 -1
  17. package/dist/eval/mcp-detector.d.ts +13 -0
  18. package/dist/eval/mcp-detector.js +123 -0
  19. package/dist/eval/mcp-detector.js.map +1 -0
  20. package/dist/eval/skill-scanner.js +14 -2
  21. package/dist/eval/skill-scanner.js.map +1 -1
  22. package/dist/eval-server/api-routes.js +18 -18
  23. package/dist/eval-server/api-routes.js.map +1 -1
  24. package/dist/eval-server/eval-server.js +4 -0
  25. package/dist/eval-server/eval-server.js.map +1 -1
  26. package/dist/eval-server/improve-routes.d.ts +2 -0
  27. package/dist/eval-server/improve-routes.js +77 -0
  28. package/dist/eval-server/improve-routes.js.map +1 -0
  29. package/dist/eval-server/model-compare-routes.d.ts +2 -0
  30. package/dist/eval-server/model-compare-routes.js +119 -0
  31. package/dist/eval-server/model-compare-routes.js.map +1 -0
  32. package/dist/eval-server/skill-resolver.d.ts +1 -0
  33. package/dist/eval-server/skill-resolver.js +24 -0
  34. package/dist/eval-server/skill-resolver.js.map +1 -0
  35. package/dist/eval-ui/assets/index-CFJYUUyc.js +73 -0
  36. package/dist/eval-ui/assets/index-DSspu3L6.css +1 -0
  37. package/dist/eval-ui/index.html +2 -2
  38. package/package.json +1 -1
  39. package/dist/eval-ui/assets/index-BYv6znnG.css +0 -1
  40. package/dist/eval-ui/assets/index-Bp1HQKak.js +0 -70
@@ -1,70 +0,0 @@
1
- (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function f(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(m){if(m.ep)return;m.ep=!0;const h=f(m);fetch(m.href,h)}})();var Xr={exports:{}},Xn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var pm;function By(){if(pm)return Xn;pm=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(o,m,h){var p=null;if(h!==void 0&&(p=""+h),m.key!==void 0&&(p=""+m.key),"key"in m){h={};for(var T in m)T!=="key"&&(h[T]=m[T])}else h=m;return m=h.ref,{$$typeof:u,type:o,key:p,ref:m!==void 0?m:null,props:h}}return Xn.Fragment=c,Xn.jsx=f,Xn.jsxs=f,Xn}var xm;function Hy(){return xm||(xm=1,Xr.exports=By()),Xr.exports}var s=Hy(),Qr={exports:{}},re={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var gm;function Ly(){if(gm)return re;gm=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),L=Symbol.iterator;function G(N){return N===null||typeof N!="object"?null:(N=L&&N[L]||N["@@iterator"],typeof N=="function"?N:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,Q={};function k(N,U,x){this.props=N,this.context=U,this.refs=Q,this.updater=x||V}k.prototype.isReactComponent={},k.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,U,"setState")},k.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function Z(){}Z.prototype=k.prototype;function J(N,U,x){this.props=N,this.context=U,this.refs=Q,this.updater=x||V}var Y=J.prototype=new Z;Y.constructor=J,X(Y,k.prototype),Y.isPureReactComponent=!0;var K=Array.isArray;function q(){}var F={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function Ne(N,U,x){var S=x.ref;return{$$typeof:u,type:N,key:U,ref:S!==void 0?S:null,props:x}}function De(N,U){return Ne(N.type,U,N.props)}function Ve(N){return typeof N=="object"&&N!==null&&N.$$typeof===u}function _e(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(x){return U[x]})}var te=/\/+/g;function ye(N,U){return typeof N=="object"&&N!==null&&N.key!=null?_e(""+N.key):U.toString(36)}function fe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(q,q):(N.status="pending",N.then(function(U){N.status==="pending"&&(N.status="fulfilled",N.value=U)},function(U){N.status==="pending"&&(N.status="rejected",N.reason=U)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,U,x,S,C){var W=typeof N;(W==="undefined"||W==="boolean")&&(N=null);var ne=!1;if(N===null)ne=!0;else switch(W){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(N.$$typeof){case u:case c:ne=!0;break;case _:return ne=N._init,D(ne(N._payload),U,x,S,C)}}if(ne)return C=C(N),ne=S===""?"."+ye(N,0):S,K(C)?(x="",ne!=null&&(x=ne.replace(te,"$&/")+"/"),D(C,U,x,"",function(Le){return Le})):C!=null&&(Ve(C)&&(C=De(C,x+(C.key==null||N&&N.key===C.key?"":(""+C.key).replace(te,"$&/")+"/")+ne)),U.push(C)),1;ne=0;var I=S===""?".":S+":";if(K(N))for(var xe=0;xe<N.length;xe++)S=N[xe],W=I+ye(S,xe),ne+=D(S,U,x,W,C);else if(xe=G(N),typeof xe=="function")for(N=xe.call(N),xe=0;!(S=N.next()).done;)S=S.value,W=I+ye(S,xe++),ne+=D(S,U,x,W,C);else if(W==="object"){if(typeof N.then=="function")return D(fe(N),U,x,S,C);throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ne}function $(N,U,x){if(N==null)return N;var S=[],C=0;return D(N,S,"","",function(W){return U.call(x,W,C++)}),S}function le(N){if(N._status===-1){var U=N._result;U=U(),U.then(function(x){(N._status===0||N._status===-1)&&(N._status=1,N._result=x)},function(x){(N._status===0||N._status===-1)&&(N._status=2,N._result=x)}),N._status===-1&&(N._status=0,N._result=U)}if(N._status===1)return N._result.default;throw N._result}var se=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ge={map:$,forEach:function(N,U,x){$(N,function(){U.apply(this,arguments)},x)},count:function(N){var U=0;return $(N,function(){U++}),U},toArray:function(N){return $(N,function(U){return U})||[]},only:function(N){if(!Ve(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return re.Activity=E,re.Children=ge,re.Component=k,re.Fragment=f,re.Profiler=m,re.PureComponent=J,re.StrictMode=o,re.Suspense=g,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,re.__COMPILER_RUNTIME={__proto__:null,c:function(N){return F.H.useMemoCache(N)}},re.cache=function(N){return function(){return N.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(N,U,x){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var S=X({},N.props),C=N.key;if(U!=null)for(W in U.key!==void 0&&(C=""+U.key),U)!ue.call(U,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&U.ref===void 0||(S[W]=U[W]);var W=arguments.length-2;if(W===1)S.children=x;else if(1<W){for(var ne=Array(W),I=0;I<W;I++)ne[I]=arguments[I+2];S.children=ne}return Ne(N.type,C,S)},re.createContext=function(N){return N={$$typeof:p,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},re.createElement=function(N,U,x){var S,C={},W=null;if(U!=null)for(S in U.key!==void 0&&(W=""+U.key),U)ue.call(U,S)&&S!=="key"&&S!=="__self"&&S!=="__source"&&(C[S]=U[S]);var ne=arguments.length-2;if(ne===1)C.children=x;else if(1<ne){for(var I=Array(ne),xe=0;xe<ne;xe++)I[xe]=arguments[xe+2];C.children=I}if(N&&N.defaultProps)for(S in ne=N.defaultProps,ne)C[S]===void 0&&(C[S]=ne[S]);return Ne(N,W,C)},re.createRef=function(){return{current:null}},re.forwardRef=function(N){return{$$typeof:T,render:N}},re.isValidElement=Ve,re.lazy=function(N){return{$$typeof:_,_payload:{_status:-1,_result:N},_init:le}},re.memo=function(N,U){return{$$typeof:v,type:N,compare:U===void 0?null:U}},re.startTransition=function(N){var U=F.T,x={};F.T=x;try{var S=N(),C=F.S;C!==null&&C(x,S),typeof S=="object"&&S!==null&&typeof S.then=="function"&&S.then(q,se)}catch(W){se(W)}finally{U!==null&&x.types!==null&&(U.types=x.types),F.T=U}},re.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},re.use=function(N){return F.H.use(N)},re.useActionState=function(N,U,x){return F.H.useActionState(N,U,x)},re.useCallback=function(N,U){return F.H.useCallback(N,U)},re.useContext=function(N){return F.H.useContext(N)},re.useDebugValue=function(){},re.useDeferredValue=function(N,U){return F.H.useDeferredValue(N,U)},re.useEffect=function(N,U){return F.H.useEffect(N,U)},re.useEffectEvent=function(N){return F.H.useEffectEvent(N)},re.useId=function(){return F.H.useId()},re.useImperativeHandle=function(N,U,x){return F.H.useImperativeHandle(N,U,x)},re.useInsertionEffect=function(N,U){return F.H.useInsertionEffect(N,U)},re.useLayoutEffect=function(N,U){return F.H.useLayoutEffect(N,U)},re.useMemo=function(N,U){return F.H.useMemo(N,U)},re.useOptimistic=function(N,U){return F.H.useOptimistic(N,U)},re.useReducer=function(N,U,x){return F.H.useReducer(N,U,x)},re.useRef=function(N){return F.H.useRef(N)},re.useState=function(N){return F.H.useState(N)},re.useSyncExternalStore=function(N,U,x){return F.H.useSyncExternalStore(N,U,x)},re.useTransition=function(){return F.H.useTransition()},re.version="19.2.4",re}var bm;function rc(){return bm||(bm=1,Qr.exports=Ly()),Qr.exports}var b=rc(),Zr={exports:{}},Qn={},Vr={exports:{}},Kr={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Sm;function qy(){return Sm||(Sm=1,(function(u){function c(D,$){var le=D.length;D.push($);e:for(;0<le;){var se=le-1>>>1,ge=D[se];if(0<m(ge,$))D[se]=$,D[le]=ge,le=se;else break e}}function f(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var $=D[0],le=D.pop();if(le!==$){D[0]=le;e:for(var se=0,ge=D.length,N=ge>>>1;se<N;){var U=2*(se+1)-1,x=D[U],S=U+1,C=D[S];if(0>m(x,le))S<ge&&0>m(C,x)?(D[se]=C,D[S]=le,se=S):(D[se]=x,D[U]=le,se=U);else if(S<ge&&0>m(C,le))D[se]=C,D[S]=le,se=S;else break e}}return $}function m(D,$){var le=D.sortIndex-$.sortIndex;return le!==0?le:D.id-$.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var p=Date,T=p.now();u.unstable_now=function(){return p.now()-T}}var g=[],v=[],_=1,E=null,L=3,G=!1,V=!1,X=!1,Q=!1,k=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function Y(D){for(var $=f(v);$!==null;){if($.callback===null)o(v);else if($.startTime<=D)o(v),$.sortIndex=$.expirationTime,c(g,$);else break;$=f(v)}}function K(D){if(X=!1,Y(D),!V)if(f(g)!==null)V=!0,q||(q=!0,_e());else{var $=f(v);$!==null&&fe(K,$.startTime-D)}}var q=!1,F=-1,ue=5,Ne=-1;function De(){return Q?!0:!(u.unstable_now()-Ne<ue)}function Ve(){if(Q=!1,q){var D=u.unstable_now();Ne=D;var $=!0;try{e:{V=!1,X&&(X=!1,Z(F),F=-1),G=!0;var le=L;try{t:{for(Y(D),E=f(g);E!==null&&!(E.expirationTime>D&&De());){var se=E.callback;if(typeof se=="function"){E.callback=null,L=E.priorityLevel;var ge=se(E.expirationTime<=D);if(D=u.unstable_now(),typeof ge=="function"){E.callback=ge,Y(D),$=!0;break t}E===f(g)&&o(g),Y(D)}else o(g);E=f(g)}if(E!==null)$=!0;else{var N=f(v);N!==null&&fe(K,N.startTime-D),$=!1}}break e}finally{E=null,L=le,G=!1}$=void 0}}finally{$?_e():q=!1}}}var _e;if(typeof J=="function")_e=function(){J(Ve)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ye=te.port2;te.port1.onmessage=Ve,_e=function(){ye.postMessage(null)}}else _e=function(){k(Ve,0)};function fe(D,$){F=k(function(){D(u.unstable_now())},$)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(D){D.callback=null},u.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<D?Math.floor(1e3/D):5},u.unstable_getCurrentPriorityLevel=function(){return L},u.unstable_next=function(D){switch(L){case 1:case 2:case 3:var $=3;break;default:$=L}var le=L;L=$;try{return D()}finally{L=le}},u.unstable_requestPaint=function(){Q=!0},u.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var le=L;L=D;try{return $()}finally{L=le}},u.unstable_scheduleCallback=function(D,$,le){var se=u.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?se+le:se):le=se,D){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=le+ge,D={id:_++,callback:$,priorityLevel:D,startTime:le,expirationTime:ge,sortIndex:-1},le>se?(D.sortIndex=le,c(v,D),f(g)===null&&D===f(v)&&(X?(Z(F),F=-1):X=!0,fe(K,le-se))):(D.sortIndex=ge,c(g,D),V||G||(V=!0,q||(q=!0,_e()))),D},u.unstable_shouldYield=De,u.unstable_wrapCallback=function(D){var $=L;return function(){var le=L;L=$;try{return D.apply(this,arguments)}finally{L=le}}}})(Kr)),Kr}var jm;function Yy(){return jm||(jm=1,Vr.exports=qy()),Vr.exports}var Jr={exports:{}},tt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Nm;function Gy(){if(Nm)return tt;Nm=1;var u=rc();function c(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)v+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(g,v,_){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:E==null?null:""+E,children:g,containerInfo:v,implementation:_}}var p=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,tt.createPortal=function(g,v){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(c(299));return h(g,v,null,_)},tt.flushSync=function(g){var v=p.T,_=o.p;try{if(p.T=null,o.p=2,g)return g()}finally{p.T=v,o.p=_,o.d.f()}},tt.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(g,v))},tt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},tt.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var _=v.as,E=T(_,v.crossOrigin),L=typeof v.integrity=="string"?v.integrity:void 0,G=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;_==="style"?o.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:E,integrity:L,fetchPriority:G}):_==="script"&&o.d.X(g,{crossOrigin:E,integrity:L,fetchPriority:G,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},tt.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var _=T(v.as,v.crossOrigin);o.d.M(g,{crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(g)},tt.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var _=v.as,E=T(_,v.crossOrigin);o.d.L(g,_,{crossOrigin:E,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},tt.preloadModule=function(g,v){if(typeof g=="string")if(v){var _=T(v.as,v.crossOrigin);o.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(g)},tt.requestFormReset=function(g){o.d.r(g)},tt.unstable_batchedUpdates=function(g,v){return g(v)},tt.useFormState=function(g,v,_){return p.H.useFormState(g,v,_)},tt.useFormStatus=function(){return p.H.useHostTransitionStatus()},tt.version="19.2.4",tt}var Em;function Xy(){if(Em)return Jr.exports;Em=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Jr.exports=Gy(),Jr.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Tm;function Qy(){if(Tm)return Qn;Tm=1;var u=Yy(),c=rc(),f=Xy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(h(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return g(n),e;if(i===a)return g(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var r=!1,d=n.child;d;){if(d===l){r=!0,l=n,a=i;break}if(d===a){r=!0,a=n,l=i;break}d=d.sibling}if(!r){for(d=i.child;d;){if(d===l){r=!0,l=i,a=n;break}if(d===a){r=!0,a=i,l=n;break}d=d.sibling}if(!r)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,L=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),J=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),Ve=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=Ve&&e[Ve]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case k:return"Profiler";case Q:return"StrictMode";case K:return"Suspense";case q:return"SuspenseList";case Ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case V:return"Portal";case J:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var fe=Array.isArray,D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},se=[],ge=-1;function N(e){return{current:e}}function U(e){0>ge||(e.current=se[ge],se[ge]=null,ge--)}function x(e,t){ge++,se[ge]=e.current,e.current=t}var S=N(null),C=N(null),W=N(null),ne=N(null);function I(e,t){switch(x(W,t),x(C,e),x(S,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=Yd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(S),x(S,e)}function xe(){U(S),U(C),U(W)}function Le(e){e.memoizedState!==null&&x(ne,e);var t=S.current,l=Yd(t,e.type);t!==l&&(x(C,e),x(S,l))}function lt(e){C.current===e&&(U(S),U(C)),ne.current===e&&(U(ne),Ln._currentValue=le)}var ra,Ja;function wt(e){if(ra===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ra=t&&t[1]||"",Ja=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ra+e+Ja}var ml=!1;function ql(e,t){if(!e||ml)return"";ml=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(O){var R=O}Reflect.construct(e,[],H)}else{try{H.call()}catch(O){R=O}e.call(H.prototype)}}else{try{throw Error()}catch(O){R=O}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(O){if(O&&R&&typeof O.stack=="string")return[O.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),r=i[0],d=i[1];if(r&&d){var y=r.split(`
44
- `),z=d.split(`
45
- `);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===z.length)for(a=y.length-1,n=z.length-1;1<=a&&0<=n&&y[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==z[n]){var w=`
46
- `+y[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{ml=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?wt(l):""}function $a(e,t){switch(e.tag){case 26:case 27:case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return e.child!==t&&t!==null?wt("Suspense Fallback"):wt("Suspense");case 19:return wt("SuspenseList");case 0:case 15:return ql(e.type,!1);case 11:return ql(e.type.render,!1);case 1:return ql(e.type,!0);case 31:return wt("Activity");default:return""}}function vc(e){try{var t="",l=null;do t+=$a(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var zs=Object.prototype.hasOwnProperty,Rs=u.unstable_scheduleCallback,_s=u.unstable_cancelCallback,vh=u.unstable_shouldYield,yh=u.unstable_requestPaint,dt=u.unstable_now,ph=u.unstable_getCurrentPriorityLevel,yc=u.unstable_ImmediatePriority,pc=u.unstable_UserBlockingPriority,In=u.unstable_NormalPriority,xh=u.unstable_LowPriority,xc=u.unstable_IdlePriority,gh=u.log,bh=u.unstable_setDisableYieldValue,Wa=null,mt=null;function hl(e){if(typeof gh=="function"&&bh(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Wa,e)}catch{}}var ht=Math.clz32?Math.clz32:Nh,Sh=Math.log,jh=Math.LN2;function Nh(e){return e>>>=0,e===0?32:31-(Sh(e)/jh|0)|0}var Pn=256,ei=262144,ti=4194304;function Yl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function li(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Yl(a):(r&=d,r!==0?n=Yl(r):l||(l=d&~e,l!==0&&(n=Yl(l))))):(d=a&~i,d!==0?n=Yl(d):r!==0?n=Yl(r):l||(l=a&~e,l!==0&&(n=Yl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Fa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Eh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gc(){var e=ti;return ti<<=1,(ti&62914560)===0&&(ti=4194304),e}function Cs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ia(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Th(e,t,l,a,n,i){var r=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,z=e.hiddenUpdates;for(l=r&~l;0<l;){var w=31-ht(l),H=1<<w;d[w]=0,y[w]=-1;var R=z[w];if(R!==null)for(z[w]=null,w=0;w<R.length;w++){var O=R[w];O!==null&&(O.lane&=-536870913)}l&=~H}a!==0&&bc(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function bc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Sc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ht(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function jc(e,t){var l=t&-t;return l=(l&42)!==0?1:Os(l),(l&(e.suspendedLanes|t))!==0?0:l}function Os(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 ks(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nc(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:om(e.type))}function Ec(e,t){var l=$.p;try{return $.p=e,t()}finally{$.p=l}}var vl=Math.random().toString(36).slice(2),We="__reactFiber$"+vl,it="__reactProps$"+vl,ca="__reactContainer$"+vl,Ds="__reactEvents$"+vl,Ah="__reactListeners$"+vl,Mh="__reactHandles$"+vl,Tc="__reactResources$"+vl,Pa="__reactMarker$"+vl;function ws(e){delete e[We],delete e[it],delete e[Ds],delete e[Ah],delete e[Mh]}function oa(e){var t=e[We];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ca]||l[We]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Jd(e);e!==null;){if(l=e[We])return l;e=Jd(e)}return t}e=l,l=e.parentNode}return null}function fa(e){if(e=e[We]||e[ca]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function en(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function da(e){var t=e[Tc];return t||(t=e[Tc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Pa]=!0}var Ac=new Set,Mc={};function Gl(e,t){ma(e,t),ma(e+"Capture",t)}function ma(e,t){for(Mc[e]=t,e=0;e<t.length;e++)Ac.add(t[e])}var zh=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]*$"),zc={},Rc={};function Rh(e){return zs.call(Rc,e)?!0:zs.call(zc,e)?!1:zh.test(e)?Rc[e]=!0:(zc[e]=!0,!1)}function ai(e,t,l){if(Rh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ni(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Kt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _c(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _h(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(r){l=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Us(e){if(!e._valueTracker){var t=_c(e)?"checked":"value";e._valueTracker=_h(e,t,""+e[t])}}function Cc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=_c(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ii(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 Ch=/[\n"\\]/g;function Et(e){return e.replace(Ch,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Bs(e,t,l,a,n,i,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Hs(e,r,Nt(t)):l!=null?Hs(e,r,Nt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Nt(d):e.removeAttribute("name")}function Oc(e,t,l,a,n,i,r,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Us(e);return}l=l!=null?""+Nt(l):"",t=t!=null?""+Nt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Us(e)}function Hs(e,t,l){t==="number"&&ii(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ha(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Nt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function kc(e,t,l){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Nt(l):""}function Dc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(fe(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Nt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Us(e)}function va(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Oh=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 wc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Oh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Uc(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&wc(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&wc(e,i,t[i])}function Ls(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 kh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dh=/^[\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 si(e){return Dh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var qs=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ya=null,pa=null;function Bc(e){var t=fa(e);if(t&&(e=t.stateNode)){var l=e[it]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bs(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[it]||null;if(!n)throw Error(o(90));Bs(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Cc(a)}break e;case"textarea":kc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ha(e,!!l.multiple,t,!1)}}}var Gs=!1;function Hc(e,t,l){if(Gs)return e(t,l);Gs=!0;try{var a=e(t);return a}finally{if(Gs=!1,(ya!==null||pa!==null)&&(Ki(),ya&&(t=ya,e=pa,pa=ya=null,Bc(t),e)))for(t=0;t<e.length;t++)Bc(e[t])}}function tn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[it]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xs=!1;if($t)try{var ln={};Object.defineProperty(ln,"passive",{get:function(){Xs=!0}}),window.addEventListener("test",ln,ln),window.removeEventListener("test",ln,ln)}catch{Xs=!1}var yl=null,Qs=null,ui=null;function Lc(){if(ui)return ui;var e,t=Qs,l=t.length,a,n="value"in yl?yl.value:yl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var r=l-e;for(a=1;a<=r&&t[l-a]===n[i-a];a++);return ui=n.slice(e,1<a?1-a:void 0)}function ri(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ci(){return!0}function qc(){return!1}function st(e){function t(l,a,n,i,r){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ci:qc,this.isPropagationStopped=qc,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oi=st(Xl),an=E({},Xl,{view:0,detail:0}),wh=st(an),Zs,Vs,nn,fi=E({},an,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Js,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==nn&&(nn&&e.type==="mousemove"?(Zs=e.screenX-nn.screenX,Vs=e.screenY-nn.screenY):Vs=Zs=0,nn=e),Zs)},movementY:function(e){return"movementY"in e?e.movementY:Vs}}),Yc=st(fi),Uh=E({},fi,{dataTransfer:0}),Bh=st(Uh),Hh=E({},an,{relatedTarget:0}),Ks=st(Hh),Lh=E({},Xl,{animationName:0,elapsedTime:0,pseudoElement:0}),qh=st(Lh),Yh=E({},Xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gh=st(Yh),Xh=E({},Xl,{data:0}),Gc=st(Xh),Qh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zh={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"},Vh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vh[e])?!!t[e]:!1}function Js(){return Kh}var Jh=E({},an,{key:function(e){if(e.key){var t=Qh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Js,charCode:function(e){return e.type==="keypress"?ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$h=st(Jh),Wh=E({},fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xc=st(Wh),Fh=E({},an,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Js}),Ih=st(Fh),Ph=E({},Xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=st(Ph),tv=E({},fi,{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}),lv=st(tv),av=E({},Xl,{newState:0,oldState:0}),nv=st(av),iv=[9,13,27,32],$s=$t&&"CompositionEvent"in window,sn=null;$t&&"documentMode"in document&&(sn=document.documentMode);var sv=$t&&"TextEvent"in window&&!sn,Qc=$t&&(!$s||sn&&8<sn&&11>=sn),Zc=" ",Vc=!1;function Kc(e,t){switch(e){case"keyup":return iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function uv(e,t){switch(e){case"compositionend":return Jc(t);case"keypress":return t.which!==32?null:(Vc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Vc?null:e;default:return null}}function rv(e,t){if(xa)return e==="compositionend"||!$s&&Kc(e,t)?(e=Lc(),ui=Qs=yl=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qc&&t.locale!=="ko"?null:t.data;default:return null}}var cv={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 $c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cv[e.type]:t==="textarea"}function Wc(e,t,l,a){ya?pa?pa.push(a):pa=[a]:ya=a,t=es(t,"onChange"),0<t.length&&(l=new oi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,rn=null;function ov(e){Dd(e,0)}function di(e){var t=en(e);if(Cc(t))return e}function Fc(e,t){if(e==="change")return t}var Ic=!1;if($t){var Ws;if($t){var Fs="oninput"in document;if(!Fs){var Pc=document.createElement("div");Pc.setAttribute("oninput","return;"),Fs=typeof Pc.oninput=="function"}Ws=Fs}else Ws=!1;Ic=Ws&&(!document.documentMode||9<document.documentMode)}function eo(){un&&(un.detachEvent("onpropertychange",to),rn=un=null)}function to(e){if(e.propertyName==="value"&&di(rn)){var t=[];Wc(t,rn,e,Ys(e)),Hc(ov,t)}}function fv(e,t,l){e==="focusin"?(eo(),un=t,rn=l,un.attachEvent("onpropertychange",to)):e==="focusout"&&eo()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return di(rn)}function mv(e,t){if(e==="click")return di(t)}function hv(e,t){if(e==="input"||e==="change")return di(t)}function vv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:vv;function cn(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!zs.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function lo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ao(e,t){var l=lo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=lo(l)}}function no(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?no(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function io(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ii(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ii(e.document)}return t}function Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var yv=$t&&"documentMode"in document&&11>=document.documentMode,ga=null,Ps=null,on=null,eu=!1;function so(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;eu||ga==null||ga!==ii(a)||(a=ga,"selectionStart"in a&&Is(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),on&&cn(on,a)||(on=a,a=es(Ps,"onSelect"),0<a.length&&(t=new oi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ga)))}function Ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ba={animationend:Ql("Animation","AnimationEnd"),animationiteration:Ql("Animation","AnimationIteration"),animationstart:Ql("Animation","AnimationStart"),transitionrun:Ql("Transition","TransitionRun"),transitionstart:Ql("Transition","TransitionStart"),transitioncancel:Ql("Transition","TransitionCancel"),transitionend:Ql("Transition","TransitionEnd")},tu={},uo={};$t&&(uo=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Zl(e){if(tu[e])return tu[e];if(!ba[e])return e;var t=ba[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in uo)return tu[e]=t[l];return e}var ro=Zl("animationend"),co=Zl("animationiteration"),oo=Zl("animationstart"),pv=Zl("transitionrun"),xv=Zl("transitionstart"),gv=Zl("transitioncancel"),fo=Zl("transitionend"),mo=new Map,lu="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(" ");lu.push("scrollEnd");function Ut(e,t){mo.set(e,t),Gl(t,[e])}var mi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Tt=[],Sa=0,au=0;function hi(){for(var e=Sa,t=au=Sa=0;t<e;){var l=Tt[t];Tt[t++]=null;var a=Tt[t];Tt[t++]=null;var n=Tt[t];Tt[t++]=null;var i=Tt[t];if(Tt[t++]=null,a!==null&&n!==null){var r=a.pending;r===null?n.next=n:(n.next=r.next,r.next=n),a.pending=n}i!==0&&ho(l,n,i)}}function vi(e,t,l,a){Tt[Sa++]=e,Tt[Sa++]=t,Tt[Sa++]=l,Tt[Sa++]=a,au|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function nu(e,t,l,a){return vi(e,t,l,a),yi(e)}function Vl(e,t){return vi(e,null,null,t),yi(e)}function ho(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-ht(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function yi(e){if(50<On)throw On=0,mr=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ja={};function bv(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,l,a){return new bv(e,t,l,a)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var l=e.alternate;return l===null?(l=yt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function vo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,l,a,n,i){var r=0;if(a=e,typeof e=="function")iu(e)&&(r=1);else if(typeof e=="string")r=Ty(e,l,S.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ne:return e=yt(31,l,t,n),e.elementType=Ne,e.lanes=i,e;case X:return Kl(l.children,n,i,t);case Q:r=8,n|=24;break;case k:return e=yt(12,l,t,n|2),e.elementType=k,e.lanes=i,e;case K:return e=yt(13,l,t,n),e.elementType=K,e.lanes=i,e;case q:return e=yt(19,l,t,n),e.elementType=q,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:r=10;break e;case Z:r=9;break e;case Y:r=11;break e;case F:r=14;break e;case ue:r=16,a=null;break e}r=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=yt(r,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Kl(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function su(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function yo(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function uu(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var po=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var l=po.get(e);return l!==void 0?l:(t={value:e,source:t,stack:vc(t)},po.set(e,t),t)}return{value:e,source:t,stack:vc(t)}}var Na=[],Ea=0,xi=null,fn=0,Mt=[],zt=0,pl=null,qt=1,Yt="";function Ft(e,t){Na[Ea++]=fn,Na[Ea++]=xi,xi=e,fn=t}function xo(e,t,l){Mt[zt++]=qt,Mt[zt++]=Yt,Mt[zt++]=pl,pl=e;var a=qt;e=Yt;var n=32-ht(a)-1;a&=~(1<<n),l+=1;var i=32-ht(t)+n;if(30<i){var r=n-n%5;i=(a&(1<<r)-1).toString(32),a>>=r,n-=r,qt=1<<32-ht(t)+n|l<<n|a,Yt=i+e}else qt=1<<i|l<<n|a,Yt=e}function ru(e){e.return!==null&&(Ft(e,1),xo(e,1,0))}function cu(e){for(;e===xi;)xi=Na[--Ea],Na[Ea]=null,fn=Na[--Ea],Na[Ea]=null;for(;e===pl;)pl=Mt[--zt],Mt[zt]=null,Yt=Mt[--zt],Mt[zt]=null,qt=Mt[--zt],Mt[zt]=null}function go(e,t){Mt[zt++]=qt,Mt[zt++]=Yt,Mt[zt++]=pl,qt=t.id,Yt=t.overflow,pl=e}var Fe=null,Ce=null,pe=!1,xl=null,Rt=!1,ou=Error(o(519));function gl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dn(At(t,e)),ou}function bo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[We]=e,t[it]=a,l){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(l=0;l<Dn.length;l++)me(Dn[l],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),Oc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Dc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Hd(t.textContent,l)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||gl(e,!0)}function So(e){for(Fe=e.return;Fe;)switch(Fe.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:Fe=Fe.return}}function Ta(e){if(e!==Fe)return!1;if(!pe)return So(e),pe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||zr(e.type,e.memoizedProps)),l=!l),l&&Ce&&gl(e),So(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ce=Kd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ce=Kd(e)}else t===27?(t=Ce,kl(e.type)?(e=kr,kr=null,Ce=e):Ce=t):Ce=Fe?Ct(e.stateNode.nextSibling):null;return!0}function Jl(){Ce=Fe=null,pe=!1}function fu(){var e=xl;return e!==null&&(ot===null?ot=e:ot.push.apply(ot,e),xl=null),e}function dn(e){xl===null?xl=[e]:xl.push(e)}var du=N(null),$l=null,It=null;function bl(e,t,l){x(du,t._currentValue),t._currentValue=l}function Pt(e){e._currentValue=du.current,U(du)}function mu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function hu(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var r=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),mu(i.return,l,e),a||(r=null);break e}i=d.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(o(341));r.lanes|=l,i=r.alternate,i!==null&&(i.lanes|=l),mu(r,l,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function Aa(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var r=n.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var d=n.type;vt(n.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(n===ne.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ln):e=[Ln])}n=n.return}e!==null&&hu(t,e,l,a),t.flags|=262144}function gi(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wl(e){$l=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ie(e){return jo($l,e)}function bi(e,t){return $l===null&&Wl(e),jo(e,t)}function jo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},It===null){if(e===null)throw Error(o(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return l}var Sv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},jv=u.unstable_scheduleCallback,Nv=u.unstable_NormalPriority,Ge={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vu(){return{controller:new Sv,data:new Map,refCount:0}}function mn(e){e.refCount--,e.refCount===0&&jv(Nv,function(){e.controller.abort()})}var hn=null,yu=0,Ma=0,za=null;function Ev(e,t){if(hn===null){var l=hn=[];yu=0,Ma=gr(),za={status:"pending",value:void 0,then:function(a){l.push(a)}}}return yu++,t.then(No,No),t}function No(){if(--yu===0&&hn!==null){za!==null&&(za.status="fulfilled");var e=hn;hn=null,Ma=0,za=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Eo=D.S;D.S=function(e,t){rd=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ev(e,t),Eo!==null&&Eo(e,t)};var Fl=N(null);function pu(){var e=Fl.current;return e!==null?e:Re.pooledCache}function Si(e,t){t===null?x(Fl,Fl.current):x(Fl,t.pool)}function To(){var e=pu();return e===null?null:{parent:Ge._currentValue,pool:e}}var Ra=Error(o(460)),xu=Error(o(474)),ji=Error(o(542)),Ni={then:function(){}};function Ao(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Jt,Jt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ro(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ro(e),e}throw Pl=t,Ra}}function Il(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Pl=l,Ra):l}}var Pl=null;function zo(){if(Pl===null)throw Error(o(459));var e=Pl;return Pl=null,e}function Ro(e){if(e===Ra||e===ji)throw Error(o(483))}var _a=null,vn=0;function Ei(e){var t=vn;return vn+=1,_a===null&&(_a=[]),Mo(_a,e,t)}function yn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ti(e,t){throw t.$$typeof===L?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function _o(e){function t(A,j){if(e){var M=A.deletions;M===null?(A.deletions=[j],A.flags|=16):M.push(j)}}function l(A,j){if(!e)return null;for(;j!==null;)t(A,j),j=j.sibling;return null}function a(A){for(var j=new Map;A!==null;)A.key!==null?j.set(A.key,A):j.set(A.index,A),A=A.sibling;return j}function n(A,j){return A=Wt(A,j),A.index=0,A.sibling=null,A}function i(A,j,M){return A.index=M,e?(M=A.alternate,M!==null?(M=M.index,M<j?(A.flags|=67108866,j):M):(A.flags|=67108866,j)):(A.flags|=1048576,j)}function r(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function d(A,j,M,B){return j===null||j.tag!==6?(j=su(M,A.mode,B),j.return=A,j):(j=n(j,M),j.return=A,j)}function y(A,j,M,B){var ae=M.type;return ae===X?w(A,j,M.props.children,B,M.key):j!==null&&(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ue&&Il(ae)===j.type)?(j=n(j,M.props),yn(j,M),j.return=A,j):(j=pi(M.type,M.key,M.props,null,A.mode,B),yn(j,M),j.return=A,j)}function z(A,j,M,B){return j===null||j.tag!==4||j.stateNode.containerInfo!==M.containerInfo||j.stateNode.implementation!==M.implementation?(j=uu(M,A.mode,B),j.return=A,j):(j=n(j,M.children||[]),j.return=A,j)}function w(A,j,M,B,ae){return j===null||j.tag!==7?(j=Kl(M,A.mode,B,ae),j.return=A,j):(j=n(j,M),j.return=A,j)}function H(A,j,M){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=su(""+j,A.mode,M),j.return=A,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case G:return M=pi(j.type,j.key,j.props,null,A.mode,M),yn(M,j),M.return=A,M;case V:return j=uu(j,A.mode,M),j.return=A,j;case ue:return j=Il(j),H(A,j,M)}if(fe(j)||_e(j))return j=Kl(j,A.mode,M,null),j.return=A,j;if(typeof j.then=="function")return H(A,Ei(j),M);if(j.$$typeof===J)return H(A,bi(A,j),M);Ti(A,j)}return null}function R(A,j,M,B){var ae=j!==null?j.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ae!==null?null:d(A,j,""+M,B);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case G:return M.key===ae?y(A,j,M,B):null;case V:return M.key===ae?z(A,j,M,B):null;case ue:return M=Il(M),R(A,j,M,B)}if(fe(M)||_e(M))return ae!==null?null:w(A,j,M,B,null);if(typeof M.then=="function")return R(A,j,Ei(M),B);if(M.$$typeof===J)return R(A,j,bi(A,M),B);Ti(A,M)}return null}function O(A,j,M,B,ae){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return A=A.get(M)||null,d(j,A,""+B,ae);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case G:return A=A.get(B.key===null?M:B.key)||null,y(j,A,B,ae);case V:return A=A.get(B.key===null?M:B.key)||null,z(j,A,B,ae);case ue:return B=Il(B),O(A,j,M,B,ae)}if(fe(B)||_e(B))return A=A.get(M)||null,w(j,A,B,ae,null);if(typeof B.then=="function")return O(A,j,M,Ei(B),ae);if(B.$$typeof===J)return O(A,j,M,bi(j,B),ae);Ti(j,B)}return null}function P(A,j,M,B){for(var ae=null,be=null,ee=j,oe=j=0,ve=null;ee!==null&&oe<M.length;oe++){ee.index>oe?(ve=ee,ee=null):ve=ee.sibling;var Se=R(A,ee,M[oe],B);if(Se===null){ee===null&&(ee=ve);break}e&&ee&&Se.alternate===null&&t(A,ee),j=i(Se,j,oe),be===null?ae=Se:be.sibling=Se,be=Se,ee=ve}if(oe===M.length)return l(A,ee),pe&&Ft(A,oe),ae;if(ee===null){for(;oe<M.length;oe++)ee=H(A,M[oe],B),ee!==null&&(j=i(ee,j,oe),be===null?ae=ee:be.sibling=ee,be=ee);return pe&&Ft(A,oe),ae}for(ee=a(ee);oe<M.length;oe++)ve=O(ee,A,oe,M[oe],B),ve!==null&&(e&&ve.alternate!==null&&ee.delete(ve.key===null?oe:ve.key),j=i(ve,j,oe),be===null?ae=ve:be.sibling=ve,be=ve);return e&&ee.forEach(function(Hl){return t(A,Hl)}),pe&&Ft(A,oe),ae}function ie(A,j,M,B){if(M==null)throw Error(o(151));for(var ae=null,be=null,ee=j,oe=j=0,ve=null,Se=M.next();ee!==null&&!Se.done;oe++,Se=M.next()){ee.index>oe?(ve=ee,ee=null):ve=ee.sibling;var Hl=R(A,ee,Se.value,B);if(Hl===null){ee===null&&(ee=ve);break}e&&ee&&Hl.alternate===null&&t(A,ee),j=i(Hl,j,oe),be===null?ae=Hl:be.sibling=Hl,be=Hl,ee=ve}if(Se.done)return l(A,ee),pe&&Ft(A,oe),ae;if(ee===null){for(;!Se.done;oe++,Se=M.next())Se=H(A,Se.value,B),Se!==null&&(j=i(Se,j,oe),be===null?ae=Se:be.sibling=Se,be=Se);return pe&&Ft(A,oe),ae}for(ee=a(ee);!Se.done;oe++,Se=M.next())Se=O(ee,A,oe,Se.value,B),Se!==null&&(e&&Se.alternate!==null&&ee.delete(Se.key===null?oe:Se.key),j=i(Se,j,oe),be===null?ae=Se:be.sibling=Se,be=Se);return e&&ee.forEach(function(Uy){return t(A,Uy)}),pe&&Ft(A,oe),ae}function ze(A,j,M,B){if(typeof M=="object"&&M!==null&&M.type===X&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case G:e:{for(var ae=M.key;j!==null;){if(j.key===ae){if(ae=M.type,ae===X){if(j.tag===7){l(A,j.sibling),B=n(j,M.props.children),B.return=A,A=B;break e}}else if(j.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ue&&Il(ae)===j.type){l(A,j.sibling),B=n(j,M.props),yn(B,M),B.return=A,A=B;break e}l(A,j);break}else t(A,j);j=j.sibling}M.type===X?(B=Kl(M.props.children,A.mode,B,M.key),B.return=A,A=B):(B=pi(M.type,M.key,M.props,null,A.mode,B),yn(B,M),B.return=A,A=B)}return r(A);case V:e:{for(ae=M.key;j!==null;){if(j.key===ae)if(j.tag===4&&j.stateNode.containerInfo===M.containerInfo&&j.stateNode.implementation===M.implementation){l(A,j.sibling),B=n(j,M.children||[]),B.return=A,A=B;break e}else{l(A,j);break}else t(A,j);j=j.sibling}B=uu(M,A.mode,B),B.return=A,A=B}return r(A);case ue:return M=Il(M),ze(A,j,M,B)}if(fe(M))return P(A,j,M,B);if(_e(M)){if(ae=_e(M),typeof ae!="function")throw Error(o(150));return M=ae.call(M),ie(A,j,M,B)}if(typeof M.then=="function")return ze(A,j,Ei(M),B);if(M.$$typeof===J)return ze(A,j,bi(A,M),B);Ti(A,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,j!==null&&j.tag===6?(l(A,j.sibling),B=n(j,M),B.return=A,A=B):(l(A,j),B=su(M,A.mode,B),B.return=A,A=B),r(A)):l(A,j)}return function(A,j,M,B){try{vn=0;var ae=ze(A,j,M,B);return _a=null,ae}catch(ee){if(ee===Ra||ee===ji)throw ee;var be=yt(29,ee,null,A.mode);return be.lanes=B,be.return=A,be}finally{}}}var ea=_o(!0),Co=_o(!1),Sl=!1;function gu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=yi(e),ho(e,null,l),t}return vi(e,a,t,l),yi(e)}function pn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Sc(e,l)}}function Su(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=r:i=i.next=r,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ju=!1;function xn(){if(ju){var e=za;if(e!==null)throw e}}function gn(e,t,l,a){ju=!1;var n=e.updateQueue;Sl=!1;var i=n.firstBaseUpdate,r=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,z=y.next;y.next=null,r===null?i=z:r.next=z,r=y;var w=e.alternate;w!==null&&(w=w.updateQueue,d=w.lastBaseUpdate,d!==r&&(d===null?w.firstBaseUpdate=z:d.next=z,w.lastBaseUpdate=y))}if(i!==null){var H=n.baseState;r=0,w=z=y=null,d=i;do{var R=d.lane&-536870913,O=R!==d.lane;if(O?(he&R)===R:(a&R)===R){R!==0&&R===Ma&&(ju=!0),w!==null&&(w=w.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var P=e,ie=d;R=t;var ze=l;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){H=P.call(ze,H,R);break e}H=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,R=typeof P=="function"?P.call(ze,H,R):P,R==null)break e;H=E({},H,R);break e;case 2:Sl=!0}}R=d.callback,R!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[R]:O.push(R))}else O={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},w===null?(z=w=O,y=H):w=w.next=O,r|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;O=d,d=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);w===null&&(y=H),n.baseState=y,n.firstBaseUpdate=z,n.lastBaseUpdate=w,i===null&&(n.shared.lanes=0),zl|=r,e.lanes=r,e.memoizedState=H}}function Oo(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ko(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Oo(l[e],t)}var Ca=N(null),Ai=N(0);function Do(e,t){e=rl,x(Ai,e),x(Ca,t),rl=e|t.baseLanes}function Nu(){x(Ai,rl),x(Ca,Ca.current)}function Eu(){rl=Ai.current,U(Ca),U(Ai)}var pt=N(null),_t=null;function El(e){var t=e.alternate;x(qe,qe.current&1),x(pt,e),_t===null&&(t===null||Ca.current!==null||t.memoizedState!==null)&&(_t=e)}function Tu(e){x(qe,qe.current),x(pt,e),_t===null&&(_t=e)}function wo(e){e.tag===22?(x(qe,qe.current),x(pt,e),_t===null&&(_t=e)):Tl()}function Tl(){x(qe,qe.current),x(pt,pt.current)}function xt(e){U(pt),_t===e&&(_t=null),U(qe)}var qe=N(0);function Mi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Cr(l)||Or(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var el=0,ce=null,Ae=null,Xe=null,zi=!1,Oa=!1,ta=!1,Ri=0,bn=0,ka=null,Av=0;function Ue(){throw Error(o(321))}function Au(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!vt(e[l],t[l]))return!1;return!0}function Mu(e,t,l,a,n,i){return el=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?gf:Gu,ta=!1,i=l(a,n),ta=!1,Oa&&(i=Bo(t,l,a,n)),Uo(e),i}function Uo(e){D.H=Nn;var t=Ae!==null&&Ae.next!==null;if(el=0,Xe=Ae=ce=null,zi=!1,bn=0,ka=null,t)throw Error(o(300));e===null||Qe||(e=e.dependencies,e!==null&&gi(e)&&(Qe=!0))}function Bo(e,t,l,a){ce=e;var n=0;do{if(Oa&&(ka=null),bn=0,Oa=!1,25<=n)throw Error(o(301));if(n+=1,Xe=Ae=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=bf,i=t(l,a)}while(Oa);return i}function Mv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Sn(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(ce.flags|=1024),t}function zu(){var e=Ri!==0;return Ri=0,e}function Ru(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function _u(e){if(zi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zi=!1}el=0,Xe=Ae=ce=null,Oa=!1,bn=Ri=0,ka=null}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?ce.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Ye(){if(Ae===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Xe===null?ce.memoizedState:Xe.next;if(t!==null)Xe=t,Ae=e;else{if(e===null)throw ce.alternate===null?Error(o(467)):Error(o(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Xe===null?ce.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function _i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sn(e){var t=bn;return bn+=1,ka===null&&(ka=[]),e=Mo(ka,e,t),t=ce,(Xe===null?t.memoizedState:Xe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?gf:Gu),e}function Ci(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sn(e);if(e.$$typeof===J)return Ie(e)}throw Error(o(438,String(e)))}function Cu(e){var t=null,l=ce.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=_i(),ce.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=De;return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function Oi(e){var t=Ye();return Ou(t,Ae,e)}function Ou(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var r=n.next;n.next=i.next,i.next=r}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=r=null,y=null,z=t,w=!1;do{var H=z.lane&-536870913;if(H!==z.lane?(he&H)===H:(el&H)===H){var R=z.revertLane;if(R===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),H===Ma&&(w=!0);else if((el&R)===R){z=z.next,R===Ma&&(w=!0);continue}else H={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},y===null?(d=y=H,r=i):y=y.next=H,ce.lanes|=R,zl|=R;H=z.action,ta&&l(i,H),i=z.hasEagerState?z.eagerState:l(i,H)}else R={lane:H,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},y===null?(d=y=R,r=i):y=y.next=R,ce.lanes|=H,zl|=H;z=z.next}while(z!==null&&z!==t);if(y===null?r=i:y.next=d,!vt(i,e.memoizedState)&&(Qe=!0,w&&(l=za,l!==null)))throw l;e.memoizedState=i,e.baseState=r,e.baseQueue=y,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ku(e){var t=Ye(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var r=n=n.next;do i=e(i,r.action),r=r.next;while(r!==n);vt(i,t.memoizedState)||(Qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ho(e,t,l){var a=ce,n=Ye(),i=pe;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var r=!vt((Ae||n).memoizedState,l);if(r&&(n.memoizedState=l,Qe=!0),n=n.queue,Uu(Yo.bind(null,a,n,e),[e]),n.getSnapshot!==t||r||Xe!==null&&Xe.memoizedState.tag&1){if(a.flags|=2048,Da(9,{destroy:void 0},qo.bind(null,a,n,l,t),null),Re===null)throw Error(o(349));i||(el&127)!==0||Lo(a,t,l)}return l}function Lo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ce.updateQueue,t===null?(t=_i(),ce.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qo(e,t,l,a){t.value=l,t.getSnapshot=a,Go(t)&&Xo(e)}function Yo(e,t,l){return l(function(){Go(t)&&Xo(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!vt(e,l)}catch{return!0}}function Xo(e){var t=Vl(e,2);t!==null&&ft(t,e,2)}function Du(e){var t=at();if(typeof e=="function"){var l=e;if(e=l(),ta){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function Qo(e,t,l,a){return e.baseState=l,Ou(e,Ae,typeof a=="function"?a:tl)}function zv(e,t,l,a,n){if(wi(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};D.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Zo(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Zo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=D.T,r={};D.T=r;try{var d=l(n,a),y=D.S;y!==null&&y(r,d),Vo(e,t,d)}catch(z){wu(e,t,z)}finally{i!==null&&r.types!==null&&(i.types=r.types),D.T=i}}else try{i=l(n,a),Vo(e,t,i)}catch(z){wu(e,t,z)}}function Vo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ko(e,t,a)},function(a){return wu(e,t,a)}):Ko(e,t,l)}function Ko(e,t,l){t.status="fulfilled",t.value=l,Jo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Zo(e,l)))}function wu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Jo(t),t=t.next;while(t!==a)}e.action=null}function Jo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function Wo(e,t){if(pe){var l=Re.formState;if(l!==null){e:{var a=ce;if(pe){if(Ce){t:{for(var n=Ce,i=Rt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Ct(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ce=Ct(n.nextSibling),a=n.data==="F!";break e}}gl(a)}a=!1}a&&(t=l[0])}}return l=at(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},l.queue=a,l=yf.bind(null,ce,a),a.dispatch=l,a=Du(!1),i=Yu.bind(null,ce,!1,a.queue),a=at(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=zv.bind(null,ce,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Fo(e){var t=Ye();return Io(t,Ae,e)}function Io(e,t,l){if(t=Ou(e,t,$o)[0],e=Oi(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Sn(t)}catch(r){throw r===Ra?ji:r}else a=t;t=Ye();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ce.flags|=2048,Da(9,{destroy:void 0},Rv.bind(null,n,l),null)),[a,i,e]}function Rv(e,t){e.action=t}function Po(e){var t=Ye(),l=Ae;if(l!==null)return Io(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Da(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=_i(),ce.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function ef(){return Ye().memoizedState}function ki(e,t,l,a){var n=at();ce.flags|=e,n.memoizedState=Da(1|t,{destroy:void 0},l,a===void 0?null:a)}function Di(e,t,l,a){var n=Ye();a=a===void 0?null:a;var i=n.memoizedState.inst;Ae!==null&&a!==null&&Au(a,Ae.memoizedState.deps)?n.memoizedState=Da(t,i,l,a):(ce.flags|=e,n.memoizedState=Da(1|t,i,l,a))}function tf(e,t){ki(8390656,8,e,t)}function Uu(e,t){Di(2048,8,e,t)}function _v(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=_i(),ce.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function lf(e){var t=Ye().memoizedState;return _v({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function af(e,t){return Di(4,2,e,t)}function nf(e,t){return Di(4,4,e,t)}function sf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uf(e,t,l){l=l!=null?l.concat([e]):null,Di(4,4,sf.bind(null,t,e),l)}function Bu(){}function rf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Au(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function cf(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Au(t,a[1]))return a[0];if(a=e(),ta){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Hu(e,t,l){return l===void 0||(el&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=od(),ce.lanes|=e,zl|=e,l)}function of(e,t,l,a){return vt(l,t)?l:Ca.current!==null?(e=Hu(e,l,a),vt(e,t)||(Qe=!0),e):(el&42)===0||(el&1073741824)!==0&&(he&261930)===0?(Qe=!0,e.memoizedState=l):(e=od(),ce.lanes|=e,zl|=e,t)}function ff(e,t,l,a,n){var i=$.p;$.p=i!==0&&8>i?i:8;var r=D.T,d={};D.T=d,Yu(e,!1,t,l);try{var y=n(),z=D.S;if(z!==null&&z(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var w=Tv(y,a);jn(e,t,w,St(e))}else jn(e,t,a,St(e))}catch(H){jn(e,t,{then:function(){},status:"rejected",reason:H},St())}finally{$.p=i,r!==null&&d.types!==null&&(r.types=d.types),D.T=r}}function Cv(){}function Lu(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=df(e).queue;ff(e,n,t,le,l===null?Cv:function(){return mf(e),l(a)})}function df(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:le},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mf(e){var t=df(e);t.next===null&&(t=e.alternate.memoizedState),jn(e,t.next.queue,{},St())}function qu(){return Ie(Ln)}function hf(){return Ye().memoizedState}function vf(){return Ye().memoizedState}function Ov(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=St();e=jl(l);var a=Nl(t,e,l);a!==null&&(ft(a,t,l),pn(a,t,l)),t={cache:vu()},e.payload=t;return}t=t.return}}function kv(e,t,l){var a=St();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wi(e)?pf(t,l):(l=nu(e,t,l,a),l!==null&&(ft(l,e,a),xf(l,t,a)))}function yf(e,t,l){var a=St();jn(e,t,l,a)}function jn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(wi(e))pf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,d=i(r,l);if(n.hasEagerState=!0,n.eagerState=d,vt(d,r))return vi(e,t,n,0),Re===null&&hi(),!1}catch{}finally{}if(l=nu(e,t,n,a),l!==null)return ft(l,e,a),xf(l,t,a),!0}return!1}function Yu(e,t,l,a){if(a={lane:2,revertLane:gr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wi(e)){if(t)throw Error(o(479))}else t=nu(e,l,a,2),t!==null&&ft(t,e,2)}function wi(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function pf(e,t){Oa=zi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function xf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Sc(e,l)}}var Nn={readContext:Ie,use:Ci,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};Nn.useEffectEvent=Ue;var gf={readContext:Ie,use:Ci,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:tf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ki(4194308,4,sf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){ki(4,2,e,t)},useMemo:function(e,t){var l=at();t=t===void 0?null:t;var a=e();if(ta){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=at();if(l!==void 0){var n=l(t);if(ta){hl(!0);try{l(t)}finally{hl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kv.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:function(e){e=Du(e);var t=e.queue,l=yf.bind(null,ce,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Bu,useDeferredValue:function(e,t){var l=at();return Hu(l,e,t)},useTransition:function(){var e=Du(!1);return e=ff.bind(null,ce,e.queue,!0,!1),at().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ce,n=at();if(pe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Re===null)throw Error(o(349));(he&127)!==0||Lo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,tf(Yo.bind(null,a,i,e),[e]),a.flags|=2048,Da(9,{destroy:void 0},qo.bind(null,a,i,l,t),null),l},useId:function(){var e=at(),t=Re.identifierPrefix;if(pe){var l=Yt,a=qt;l=(a&~(1<<32-ht(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ri++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Av++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qu,useFormState:Wo,useActionState:Wo,useOptimistic:function(e){var t=at();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Yu.bind(null,ce,!0,l),l.dispatch=t,[e,t]},useMemoCache:Cu,useCacheRefresh:function(){return at().memoizedState=Ov.bind(null,ce)},useEffectEvent:function(e){var t=at(),l={impl:e};return t.memoizedState=l,function(){if((je&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Gu={readContext:Ie,use:Ci,useCallback:rf,useContext:Ie,useEffect:Uu,useImperativeHandle:uf,useInsertionEffect:af,useLayoutEffect:nf,useMemo:cf,useReducer:Oi,useRef:ef,useState:function(){return Oi(tl)},useDebugValue:Bu,useDeferredValue:function(e,t){var l=Ye();return of(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Oi(tl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Ho,useId:hf,useHostTransitionStatus:qu,useFormState:Fo,useActionState:Fo,useOptimistic:function(e,t){var l=Ye();return Qo(l,Ae,e,t)},useMemoCache:Cu,useCacheRefresh:vf};Gu.useEffectEvent=lf;var bf={readContext:Ie,use:Ci,useCallback:rf,useContext:Ie,useEffect:Uu,useImperativeHandle:uf,useInsertionEffect:af,useLayoutEffect:nf,useMemo:cf,useReducer:ku,useRef:ef,useState:function(){return ku(tl)},useDebugValue:Bu,useDeferredValue:function(e,t){var l=Ye();return Ae===null?Hu(l,e,t):of(l,Ae.memoizedState,e,t)},useTransition:function(){var e=ku(tl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Ho,useId:hf,useHostTransitionStatus:qu,useFormState:Po,useActionState:Po,useOptimistic:function(e,t){var l=Ye();return Ae!==null?Qo(l,Ae,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Cu,useCacheRefresh:vf};bf.useEffectEvent=lf;function Xu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:E({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Qu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=St(),n=jl(a);n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ft(t,e,a),pn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=St(),n=jl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ft(t,e,a),pn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=St(),a=jl(l);a.tag=2,t!=null&&(a.callback=t),t=Nl(e,a,l),t!==null&&(ft(t,e,l),pn(t,e,l))}};function Sf(e,t,l,a,n,i,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,r):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,i):!0}function jf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Qu.enqueueReplaceState(t,t.state,null)}function la(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=E({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Nf(e){mi(e)}function Ef(e){console.error(e)}function Tf(e){mi(e)}function Ui(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Af(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Zu(e,t,l){return l=jl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ui(e,t)},l}function Mf(e){return e=jl(e),e.tag=3,e}function zf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Af(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Af(t,l,a),typeof n!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Dv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Aa(t,l,n,!0),l=pt.current,l!==null){switch(l.tag){case 31:case 13:return _t===null?Ji():l.alternate===null&&Be===0&&(Be=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ni?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),yr(e,a,n)),!1;case 22:return l.flags|=65536,a===Ni?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),yr(e,a,n)),!1}throw Error(o(435,l.tag))}return yr(e,a,n),Ji(),!1}if(pe)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ou&&(e=Error(o(422),{cause:a}),dn(At(e,l)))):(a!==ou&&(t=Error(o(423),{cause:a}),dn(At(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=At(a,l),n=Zu(e.stateNode,a,n),Su(e,n),Be!==4&&(Be=2)),!1;var i=Error(o(520),{cause:a});if(i=At(i,l),Cn===null?Cn=[i]:Cn.push(i),Be!==4&&(Be=2),t===null)return!0;a=At(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Zu(l.stateNode,a,e),Su(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Rl===null||!Rl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mf(n),zf(n,e,l,a),Su(l,n),!1}l=l.return}while(l!==null);return!1}var Vu=Error(o(461)),Qe=!1;function Pe(e,t,l,a){t.child=e===null?Co(t,null,l,a):ea(t,e.child,l,a)}function Rf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var r={};for(var d in a)d!=="ref"&&(r[d]=a[d])}else r=a;return Wl(t),a=Mu(e,t,l,r,i,n),d=zu(),e!==null&&!Qe?(Ru(e,t,n),ll(e,t,n)):(pe&&d&&ru(t),t.flags|=1,Pe(e,t,a,n),t.child)}function _f(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!iu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Cf(e,t,i,a,n)):(e=pi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!er(e,n)){var r=i.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(r,a)&&e.ref===t.ref)return ll(e,t,n)}return t.flags|=1,e=Wt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Cf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(cn(i,a)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=a=i,er(e,n))(e.flags&131072)!==0&&(Qe=!0);else return t.lanes=e.lanes,ll(e,t,n)}return Ku(e,t,l,a,n)}function Of(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return kf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Si(t,i!==null?i.cachePool:null),i!==null?Do(t,i):Nu(),wo(t);else return a=t.lanes=536870912,kf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Si(t,i.cachePool),Do(t,i),Tl(),t.memoizedState=null):(e!==null&&Si(t,null),Nu(),Tl());return Pe(e,t,n,l),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function kf(e,t,l,a,n){var i=pu();return i=i===null?null:{parent:Ge._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Si(t,null),Nu(),wo(t),e!==null&&Aa(e,t,a,!0),t.childLanes=n,null}function Bi(e,t){return t=Li({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Df(e,t,l){return ea(t,e.child,null,l),e=Bi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function wv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(a.mode==="hidden")return e=Bi(t,a),t.lanes=536870912,En(null,e);if(Tu(t),(e=Ce)?(e=Vd(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=yo(e),l.return=t,t.child=l,Fe=t,Ce=null)):e=null,e===null)throw gl(t);return t.lanes=536870912,null}return Bi(t,a)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(Tu(t),n)if(t.flags&256)t.flags&=-257,t=Df(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Qe||Aa(e,t,l,!1),n=(l&e.childLanes)!==0,Qe||n){if(a=Re,a!==null&&(r=jc(a,l),r!==0&&r!==i.retryLane))throw i.retryLane=r,Vl(e,r),ft(a,e,r),Vu;Ji(),t=Df(e,t,l)}else e=i.treeContext,Ce=Ct(r.nextSibling),Fe=t,pe=!0,xl=null,Rt=!1,e!==null&&go(t,e),t=Bi(t,a),t.flags|=4096;return t}return e=Wt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ku(e,t,l,a,n){return Wl(t),l=Mu(e,t,l,a,void 0,n),a=zu(),e!==null&&!Qe?(Ru(e,t,n),ll(e,t,n)):(pe&&a&&ru(t),t.flags|=1,Pe(e,t,l,n),t.child)}function wf(e,t,l,a,n,i){return Wl(t),t.updateQueue=null,l=Bo(t,a,l,n),Uo(e),a=zu(),e!==null&&!Qe?(Ru(e,t,i),ll(e,t,i)):(pe&&a&&ru(t),t.flags|=1,Pe(e,t,l,i),t.child)}function Uf(e,t,l,a,n){if(Wl(t),t.stateNode===null){var i=ja,r=l.contextType;typeof r=="object"&&r!==null&&(i=Ie(r)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Qu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},gu(t),r=l.contextType,i.context=typeof r=="object"&&r!==null?Ie(r):ja,i.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(Xu(t,l,r,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&Qu.enqueueReplaceState(i,i.state,null),gn(t,a,i,n),xn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,y=la(l,d);i.props=y;var z=i.context,w=l.contextType;r=ja,typeof w=="object"&&w!==null&&(r=Ie(w));var H=l.getDerivedStateFromProps;w=typeof H=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,w||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||z!==r)&&jf(t,i,a,r),Sl=!1;var R=t.memoizedState;i.state=R,gn(t,a,i,n),xn(),z=t.memoizedState,d||R!==z||Sl?(typeof H=="function"&&(Xu(t,l,H,a),z=t.memoizedState),(y=Sl||Sf(t,l,y,a,R,z,r))?(w||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),i.props=a,i.state=z,i.context=r,a=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,bu(e,t),r=t.memoizedProps,w=la(l,r),i.props=w,H=t.pendingProps,R=i.context,z=l.contextType,y=ja,typeof z=="object"&&z!==null&&(y=Ie(z)),d=l.getDerivedStateFromProps,(z=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==H||R!==y)&&jf(t,i,a,y),Sl=!1,R=t.memoizedState,i.state=R,gn(t,a,i,n),xn();var O=t.memoizedState;r!==H||R!==O||Sl||e!==null&&e.dependencies!==null&&gi(e.dependencies)?(typeof d=="function"&&(Xu(t,l,d,a),O=t.memoizedState),(w=Sl||Sf(t,l,w,a,R,O,y)||e!==null&&e.dependencies!==null&&gi(e.dependencies))?(z||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,O,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,O,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),i.props=a,i.state=O,i.context=y,a=w):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Hi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=ea(t,e.child,null,n),t.child=ea(t,null,l,n)):Pe(e,t,l,n),t.memoizedState=i.state,e=t.child):e=ll(e,t,n),e}function Bf(e,t,l,a){return Jl(),t.flags|=256,Pe(e,t,l,a),t.child}var Ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $u(e){return{baseLanes:e,cachePool:To()}}function Wu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=bt),e}function Hf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,r;if((r=i)||(r=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?El(t):Tl(),(e=Ce)?(e=Vd(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=yo(e),l.return=t,t.child=l,Fe=t,Ce=null)):e=null,e===null)throw gl(t);return Or(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Tl(),n=t.mode,d=Li({mode:"hidden",children:d},n),a=Kl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=$u(l),a.childLanes=Wu(e,r,l),t.memoizedState=Ju,En(null,a)):(El(t),Fu(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(i)t.flags&256?(El(t),t.flags&=-257,t=Iu(e,t,l)):t.memoizedState!==null?(Tl(),t.child=e.child,t.flags|=128,t=null):(Tl(),d=a.fallback,n=t.mode,a=Li({mode:"visible",children:a.children},n),d=Kl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ea(t,e.child,null,l),a=t.child,a.memoizedState=$u(l),a.childLanes=Wu(e,r,l),t.memoizedState=Ju,t=En(null,a));else if(El(t),Or(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var z=r.dgst;r=z,a=Error(o(419)),a.stack="",a.digest=r,dn({value:a,source:null,stack:null}),t=Iu(e,t,l)}else if(Qe||Aa(e,t,l,!1),r=(l&e.childLanes)!==0,Qe||r){if(r=Re,r!==null&&(a=jc(r,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,Vl(e,a),ft(r,e,a),Vu;Cr(d)||Ji(),t=Iu(e,t,l)}else Cr(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Ce=Ct(d.nextSibling),Fe=t,pe=!0,xl=null,Rt=!1,e!==null&&go(t,e),t=Fu(t,a.children),t.flags|=4096);return t}return n?(Tl(),d=a.fallback,n=t.mode,y=e.child,z=y.sibling,a=Wt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,z!==null?d=Wt(z,d):(d=Kl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,En(null,a),a=t.child,d=e.child.memoizedState,d===null?d=$u(l):(n=d.cachePool,n!==null?(y=Ge._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=To(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Wu(e,r,l),t.memoizedState=Ju,En(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Wt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Fu(e,t){return t=Li({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Li(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function Iu(e,t,l){return ea(t,e.child,null,l),e=Fu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mu(e.return,t,l)}function Pu(e,t,l,a,n,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=l,r.tailMode=n,r.treeForkCount=i)}function qf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var r=qe.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,x(qe,r),Pe(e,t,a,l),a=pe?fn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,l,t);else if(e.tag===19)Lf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Mi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Pu(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Mi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Pu(t,!0,l,null,i,a);break;case"together":Pu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ll(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Aa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function er(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&gi(e)))}function Uv(e,t,l){switch(t.tag){case 3:I(t,t.stateNode.containerInfo),bl(t,Ge,e.memoizedState.cache),Jl();break;case 27:case 5:Le(t);break;case 4:I(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Tu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Hf(e,t,l):(El(t),e=ll(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Aa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return qf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),x(qe,qe.current),a)break;return null;case 22:return t.lanes=0,Of(e,t,l,t.pendingProps);case 24:bl(t,Ge,e.memoizedState.cache)}return ll(e,t,l)}function Yf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Qe=!0;else{if(!er(e,l)&&(t.flags&128)===0)return Qe=!1,Uv(e,t,l);Qe=(e.flags&131072)!==0}else Qe=!1,pe&&(t.flags&1048576)!==0&&xo(t,fn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Il(t.elementType),t.type=e,typeof e=="function")iu(e)?(a=la(e,a),t.tag=1,t=Uf(null,t,e,a,l)):(t.tag=0,t=Ku(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Y){t.tag=11,t=Rf(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=_f(null,t,e,a,l);break e}}throw t=ye(e)||e,Error(o(306,t,""))}}return t;case 0:return Ku(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=la(a,t.pendingProps),Uf(e,t,a,n,l);case 3:e:{if(I(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,bu(e,t),gn(t,a,null,l);var r=t.memoizedState;if(a=r.cache,bl(t,Ge,a),a!==i.cache&&hu(t,[Ge],l,!0),xn(),a=r.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Bf(e,t,a,l);break e}else if(a!==n){n=At(Error(o(424)),t),dn(n),t=Bf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ce=Ct(e.firstChild),Fe=t,pe=!0,xl=null,Rt=!0,l=Co(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=ll(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return Hi(e,t),e===null?(l=Id(t.type,null,t.pendingProps,null))?t.memoizedState=l:pe||(l=t.type,e=t.pendingProps,a=ts(W.current).createElement(l),a[We]=t,a[it]=e,et(a,l,e),Je(a),t.stateNode=a):t.memoizedState=Id(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Le(t),e===null&&pe&&(a=t.stateNode=$d(t.type,t.pendingProps,W.current),Fe=t,Rt=!0,n=Ce,kl(t.type)?(kr=n,Ce=Ct(a.firstChild)):Ce=n),Pe(e,t,t.pendingProps.children,l),Hi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=a=Ce)&&(a=dy(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,Fe=t,Ce=Ct(a.firstChild),Rt=!1,n=!0):n=!1),n||gl(t)),Le(t),n=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,a=i.children,zr(n,i)?a=null:r!==null&&zr(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=Mu(e,t,Mv,null,null,l),Ln._currentValue=n),Hi(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&pe&&((e=l=Ce)&&(l=my(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,Fe=t,Ce=null,e=!0):e=!1),e||gl(t)),null;case 13:return Hf(e,t,l);case 4:return I(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ea(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return Rf(e,t,t.type,t.pendingProps,l);case 7:return Pe(e,t,t.pendingProps,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),Pe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Wl(t),n=Ie(n),a=a(n),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return _f(e,t,t.type,t.pendingProps,l);case 15:return Cf(e,t,t.type,t.pendingProps,l);case 19:return qf(e,t,l);case 31:return wv(e,t,l);case 22:return Of(e,t,l,t.pendingProps);case 24:return Wl(t),a=Ie(Ge),e===null?(n=pu(),n===null&&(n=Re,i=vu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},gu(t),bl(t,Ge,n)):((e.lanes&l)!==0&&(bu(e,t),gn(t,null,null,l),xn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Ge,a)):(a=i.cache,bl(t,Ge,a),a!==n.cache&&hu(t,[Ge],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function al(e){e.flags|=4}function tr(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(hd())e.flags|=8192;else throw Pl=Ni,xu}else e.flags&=-16777217}function Gf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!am(t))if(hd())e.flags|=8192;else throw Pl=Ni,xu}function qi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gc():536870912,e.lanes|=t,Ha|=t)}function Tn(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Bv(e,t,l){var a=t.pendingProps;switch(cu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Ge),xe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ta(t)?al(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,fu())),Oe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(al(t),i!==null?(Oe(t),Gf(t,i)):(Oe(t),tr(t,n,null,a,l))):i?i!==e.memoizedState?(al(t),Oe(t),Gf(t,i)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&al(t),Oe(t),tr(t,n,e,a,l)),null;case 27:if(lt(t),l=W.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}e=S.current,Ta(t)?bo(t):(e=$d(n,a,l),t.stateNode=e,al(t))}return Oe(t),null;case 5:if(lt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Oe(t),null}if(i=S.current,Ta(t))bo(t);else{var r=ts(W.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}i[We]=t,i[it]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=i;e:switch(et(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&al(t)}}return Oe(t),tr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=W.current,Ta(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Fe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[We]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Hd(e.nodeValue,l)),e||gl(t,!0)}else e=ts(e).createTextNode(a),e[We]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ta(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[We]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ta(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[We]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=fu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),qi(t,t.updateQueue),Oe(t),null);case 4:return xe(),e===null&&Nr(t.stateNode.containerInfo),Oe(t),null;case 10:return Pt(t.type),Oe(t),null;case 19:if(U(qe),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Tn(a,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Mi(e),i!==null){for(t.flags|=128,Tn(a,!1),e=i.updateQueue,t.updateQueue=e,qi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)vo(l,e),l=l.sibling;return x(qe,qe.current&1|2),pe&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>Zi&&(t.flags|=128,n=!0,Tn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Mi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,qi(t,e),Tn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!pe)return Oe(t),null}else 2*dt()-a.renderingStartTime>Zi&&l!==536870912&&(t.flags|=128,n=!0,Tn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,l=qe.current,x(qe,n?l&1|2:l&1),pe&&Ft(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return xt(t),Eu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&qi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pt(Ge),Oe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Hv(e,t){switch(cu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Ge),xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return lt(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(o(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(qe),null;case 4:return xe(),null;case 10:return Pt(t.type),null;case 22:case 23:return xt(t),Eu(),e!==null&&U(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Ge),null;case 25:return null;default:return null}}function Xf(e,t){switch(cu(t),t.tag){case 3:Pt(Ge),xe();break;case 26:case 27:case 5:lt(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:U(qe);break;case 10:Pt(t.type);break;case 22:case 23:xt(t),Eu(),e!==null&&U(Fl);break;case 24:Pt(Ge)}}function An(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,r=l.inst;a=i(),r.destroy=a}l=l.next}while(l!==n)}}catch(d){Te(t,t.return,d)}}function Al(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var r=a.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,n=t;var y=l,z=d;try{z()}catch(w){Te(n,y,w)}}}a=a.next}while(a!==i)}}catch(w){Te(t,t.return,w)}}function Qf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ko(t,l)}catch(a){Te(e,e.return,a)}}}function Zf(e,t,l){l.props=la(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Te(e,t,a)}}function Mn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Te(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Te(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Te(e,t,n)}else l.current=null}function Vf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Te(e,e.return,n)}}function lr(e,t,l){try{var a=e.stateNode;sy(a,e.type,l,t),a[it]=t}catch(n){Te(e,e.return,n)}}function Kf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kl(e.type)||e.tag===4}function ar(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kf(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&&kl(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 nr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Jt));else if(a!==4&&(a===27&&kl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(nr(e,t,l),e=e.sibling;e!==null;)nr(e,t,l),e=e.sibling}function Yi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&kl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Yi(e,t,l),e=e.sibling;e!==null;)Yi(e,t,l),e=e.sibling}function Jf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);et(t,a,l),t[We]=e,t[it]=l}catch(i){Te(e,e.return,i)}}var nl=!1,Ze=!1,ir=!1,$f=typeof WeakSet=="function"?WeakSet:Set,$e=null;function Lv(e,t){if(e=e.containerInfo,Ar=rs,e=io(e),Is(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var r=0,d=-1,y=-1,z=0,w=0,H=e,R=null;t:for(;;){for(var O;H!==l||n!==0&&H.nodeType!==3||(d=r+n),H!==i||a!==0&&H.nodeType!==3||(y=r+a),H.nodeType===3&&(r+=H.nodeValue.length),(O=H.firstChild)!==null;)R=H,H=O;for(;;){if(H===e)break t;if(R===l&&++z===n&&(d=r),R===i&&++w===a&&(y=r),(O=H.nextSibling)!==null)break;H=R,R=H.parentNode}H=O}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mr={focusedElem:e,selectionRange:l},rs=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var P=la(l.type,n);e=a.getSnapshotBeforeUpdate(P,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Te(l,l.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)_r(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_r(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,$e=e;break}$e=t.return}}function Wf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:sl(e,l),a&4&&An(5,l);break;case 1:if(sl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){Te(l,l.return,r)}else{var n=la(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Te(l,l.return,r)}}a&64&&Qf(l),a&512&&Mn(l,l.return);break;case 3:if(sl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ko(e,t)}catch(r){Te(l,l.return,r)}}break;case 27:t===null&&a&4&&Jf(l);case 26:case 5:sl(e,l),t===null&&a&4&&Vf(l),a&512&&Mn(l,l.return);break;case 12:sl(e,l);break;case 31:sl(e,l),a&4&&Pf(e,l);break;case 13:sl(e,l),a&4&&ed(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Jv.bind(null,l),hy(e,l))));break;case 22:if(a=l.memoizedState!==null||nl,!a){t=t!==null&&t.memoizedState!==null||Ze,n=nl;var i=Ze;nl=a,(Ze=t)&&!i?ul(e,l,(l.subtreeFlags&8772)!==0):sl(e,l),nl=n,Ze=i}break;case 30:break;default:sl(e,l)}}function Ff(e){var t=e.alternate;t!==null&&(e.alternate=null,Ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ws(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,ut=!1;function il(e,t,l){for(l=l.child;l!==null;)If(e,t,l),l=l.sibling}function If(e,t,l){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Wa,l)}catch{}switch(l.tag){case 26:Ze||Gt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ze||Gt(l,t);var a=ke,n=ut;kl(l.type)&&(ke=l.stateNode,ut=!1),il(e,t,l),Un(l.stateNode),ke=a,ut=n;break;case 5:Ze||Gt(l,t);case 6:if(a=ke,n=ut,ke=null,il(e,t,l),ke=a,ut=n,ke!==null)if(ut)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(l.stateNode)}catch(i){Te(l,t,i)}else try{ke.removeChild(l.stateNode)}catch(i){Te(l,t,i)}break;case 18:ke!==null&&(ut?(e=ke,Qd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Va(e)):Qd(ke,l.stateNode));break;case 4:a=ke,n=ut,ke=l.stateNode.containerInfo,ut=!0,il(e,t,l),ke=a,ut=n;break;case 0:case 11:case 14:case 15:Al(2,l,t),Ze||Al(4,l,t),il(e,t,l);break;case 1:Ze||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Zf(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Ze=(a=Ze)||l.memoizedState!==null,il(e,t,l),Ze=a;break;default:il(e,t,l)}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Va(e)}catch(l){Te(t,t.return,l)}}}function ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Va(e)}catch(l){Te(t,t.return,l)}}function qv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $f),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $f),t;default:throw Error(o(435,e.tag))}}function Gi(e,t){var l=qv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=$v.bind(null,e,a);a.then(n,n)}})}function rt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(kl(d.type)){ke=d.stateNode,ut=!1;break e}break;case 5:ke=d.stateNode,ut=!1;break e;case 3:case 4:ke=d.stateNode.containerInfo,ut=!0;break e}d=d.return}if(ke===null)throw Error(o(160));If(i,r,n),ke=null,ut=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)td(t,e),t=t.sibling}var Bt=null;function td(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),ct(e),a&4&&(Al(3,e,e.return),An(3,e),Al(5,e,e.return));break;case 1:rt(t,e),ct(e),a&512&&(Ze||l===null||Gt(l,l.return)),a&64&&nl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Bt;if(rt(t,e),ct(e),a&512&&(Ze||l===null||Gt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Pa]||i[We]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),et(i,a,l),i[We]=e,Je(i),a=i;break e;case"link":var r=tm("link","href",n).get(a+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(i=r[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){r.splice(d,1);break t}}i=n.createElement(a),et(i,a,l),n.head.appendChild(i);break;case"meta":if(r=tm("meta","content",n).get(a+(l.content||""))){for(d=0;d<r.length;d++)if(i=r[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){r.splice(d,1);break t}}i=n.createElement(a),et(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[We]=e,Je(i),a=i}e.stateNode=a}else lm(n,e.type,e.stateNode);else e.stateNode=em(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?lm(n,e.type,e.stateNode):em(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&lr(e,e.memoizedProps,l.memoizedProps)}break;case 27:rt(t,e),ct(e),a&512&&(Ze||l===null||Gt(l,l.return)),l!==null&&a&4&&lr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(rt(t,e),ct(e),a&512&&(Ze||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{va(n,"")}catch(P){Te(e,e.return,P)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,lr(e,n,l!==null?l.memoizedProps:n)),a&1024&&(ir=!0);break;case 6:if(rt(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(P){Te(e,e.return,P)}}break;case 3:if(ns=null,n=Bt,Bt=ls(t.containerInfo),rt(t,e),Bt=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Va(t.containerInfo)}catch(P){Te(e,e.return,P)}ir&&(ir=!1,ld(e));break;case 4:a=Bt,Bt=ls(e.stateNode.containerInfo),rt(t,e),ct(e),Bt=a;break;case 12:rt(t,e),ct(e);break;case 31:rt(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 13:rt(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qi=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,z=nl,w=Ze;if(nl=z||n,Ze=w||y,rt(t,e),Ze=w,nl=z,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||nl||Ze||aa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(i=y.stateNode,n)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=y.stateNode;var H=y.memoizedProps.style,R=H!=null&&H.hasOwnProperty("display")?H.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(P){Te(y,y.return,P)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(P){Te(y,y.return,P)}}}else if(t.tag===18){if(l===null){y=t;try{var O=y.stateNode;n?Zd(O,!0):Zd(y.stateNode,!1)}catch(P){Te(y,y.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Gi(e,l))));break;case 19:rt(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 30:break;case 21:break;default:rt(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Kf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=ar(e);Yi(e,i,n);break;case 5:var r=l.stateNode;l.flags&32&&(va(r,""),l.flags&=-33);var d=ar(e);Yi(e,d,r);break;case 3:case 4:var y=l.stateNode.containerInfo,z=ar(e);nr(e,z,y);break;default:throw Error(o(161))}}catch(w){Te(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ld(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ld(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wf(e,t.alternate,t),t=t.sibling}function aa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Al(4,t,t.return),aa(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Zf(t,t.return,l),aa(t);break;case 27:Un(t.stateNode);case 26:case 5:Gt(t,t.return),aa(t);break;case 22:t.memoizedState===null&&aa(t);break;case 30:aa(t);break;default:aa(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,r=i.flags;switch(i.tag){case 0:case 11:case 15:ul(n,i,l),An(4,i);break;case 1:if(ul(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){Te(a,a.return,z)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)Oo(y[n],d)}catch(z){Te(a,a.return,z)}}l&&r&64&&Qf(i),Mn(i,i.return);break;case 27:Jf(i);case 26:case 5:ul(n,i,l),l&&a===null&&r&4&&Vf(i),Mn(i,i.return);break;case 12:ul(n,i,l);break;case 31:ul(n,i,l),l&&r&4&&Pf(n,i);break;case 13:ul(n,i,l),l&&r&4&&ed(n,i);break;case 22:i.memoizedState===null&&ul(n,i,l),Mn(i,i.return);break;case 30:break;default:ul(n,i,l)}t=t.sibling}}function sr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&mn(l))}function ur(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mn(e))}function Ht(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ad(e,t,l,a),t=t.sibling}function ad(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,a),n&2048&&An(9,t);break;case 1:Ht(e,t,l,a);break;case 3:Ht(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&mn(e)));break;case 12:if(n&2048){Ht(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,d=i.onPostCommit;typeof d=="function"&&d(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Te(t,t.return,y)}}else Ht(e,t,l,a);break;case 31:Ht(e,t,l,a);break;case 13:Ht(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?Ht(e,t,l,a):zn(e,t):i._visibility&2?Ht(e,t,l,a):(i._visibility|=2,wa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&sr(r,t);break;case 24:Ht(e,t,l,a),n&2048&&ur(t.alternate,t);break;default:Ht(e,t,l,a)}}function wa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,d=l,y=a,z=r.flags;switch(r.tag){case 0:case 11:case 15:wa(i,r,d,y,n),An(8,r);break;case 23:break;case 22:var w=r.stateNode;r.memoizedState!==null?w._visibility&2?wa(i,r,d,y,n):zn(i,r):(w._visibility|=2,wa(i,r,d,y,n)),n&&z&2048&&sr(r.alternate,r);break;case 24:wa(i,r,d,y,n),n&&z&2048&&ur(r.alternate,r);break;default:wa(i,r,d,y,n)}t=t.sibling}}function zn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:zn(l,a),n&2048&&sr(a.alternate,a);break;case 24:zn(l,a),n&2048&&ur(a.alternate,a);break;default:zn(l,a)}t=t.sibling}}var Rn=8192;function Ua(e,t,l){if(e.subtreeFlags&Rn)for(e=e.child;e!==null;)nd(e,t,l),e=e.sibling}function nd(e,t,l){switch(e.tag){case 26:Ua(e,t,l),e.flags&Rn&&e.memoizedState!==null&&Ay(l,Bt,e.memoizedState,e.memoizedProps);break;case 5:Ua(e,t,l);break;case 3:case 4:var a=Bt;Bt=ls(e.stateNode.containerInfo),Ua(e,t,l),Bt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Rn,Rn=16777216,Ua(e,t,l),Rn=a):Ua(e,t,l));break;default:Ua(e,t,l)}}function id(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _n(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];$e=a,ud(a,e)}id(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sd(e),e=e.sibling}function sd(e){switch(e.tag){case 0:case 11:case 15:_n(e),e.flags&2048&&Al(9,e,e.return);break;case 3:_n(e);break;case 12:_n(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xi(e)):_n(e);break;default:_n(e)}}function Xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];$e=a,ud(a,e)}id(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Al(8,t,t.return),Xi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xi(t));break;default:Xi(t)}e=e.sibling}}function ud(e,t){for(;$e!==null;){var l=$e;switch(l.tag){case 0:case 11:case 15:Al(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:mn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$e=a;else e:for(l=e;$e!==null;){a=$e;var n=a.sibling,i=a.return;if(Ff(a),a===l){$e=null;break e}if(n!==null){n.return=i,$e=n;break e}$e=i}}}var Yv={getCacheForType:function(e){var t=Ie(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ie(Ge).controller.signal}},Gv=typeof WeakMap=="function"?WeakMap:Map,je=0,Re=null,de=null,he=0,Ee=0,gt=null,Ml=!1,Ba=!1,rr=!1,rl=0,Be=0,zl=0,na=0,cr=0,bt=0,Ha=0,Cn=null,ot=null,or=!1,Qi=0,rd=0,Zi=1/0,Vi=null,Rl=null,Ke=0,_l=null,La=null,cl=0,fr=0,dr=null,cd=null,On=0,mr=null;function St(){return(je&2)!==0&&he!==0?he&-he:D.T!==null?gr():Nc()}function od(){if(bt===0)if((he&536870912)===0||pe){var e=ei;ei<<=1,(ei&3932160)===0&&(ei=262144),bt=e}else bt=536870912;return e=pt.current,e!==null&&(e.flags|=32),bt}function ft(e,t,l){(e===Re&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(qa(e,0),Cl(e,he,bt,!1)),Ia(e,l),((je&2)===0||e!==Re)&&(e===Re&&((je&2)===0&&(na|=l),Be===4&&Cl(e,he,bt,!1)),Xt(e))}function fd(e,t,l){if((je&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Fa(e,t),n=a?Zv(e,t):vr(e,t,!0),i=a;do{if(n===0){Ba&&!a&&Cl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Xv(l)){n=vr(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;n=Cn;var y=d.current.memoizedState.isDehydrated;if(y&&(qa(d,r).flags|=256),r=vr(d,r,!1),r!==2){if(rr&&!y){d.errorRecoveryDisabledLanes|=i,na|=i,n=4;break e}i=ot,ot=n,i!==null&&(ot===null?ot=i:ot.push.apply(ot,i))}n=r}if(i=!1,n!==2)continue}}if(n===1){qa(e,0),Cl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Cl(a,t,bt,!Ml);break e;case 2:ot=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Qi+300-dt(),10<n)){if(Cl(a,t,bt,!Ml),li(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Gd(dd.bind(null,a,l,ot,Vi,or,t,bt,na,Ha,Ml,i,"Throttled",-0,0),n);break e}dd(a,l,ot,Vi,or,t,bt,na,Ha,Ml,i,null,-0,0)}}break}while(!0);Xt(e)}function dd(e,t,l,a,n,i,r,d,y,z,w,H,R,O){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},nd(t,i,H);var P=(i&62914560)===i?Qi-dt():(i&4194048)===i?rd-dt():0;if(P=My(H,P),P!==null){cl=i,e.cancelPendingCommit=P(bd.bind(null,e,t,i,l,a,n,r,d,y,w,H,null,R,O)),Cl(e,i,r,!z);return}}bd(e,t,i,l,a,n,r,d,y)}function Xv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!vt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cl(e,t,l,a){t&=~cr,t&=~na,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-ht(n),r=1<<i;a[i]=-1,n&=~r}l!==0&&bc(e,l,t)}function Ki(){return(je&6)===0?(kn(0),!1):!0}function hr(){if(de!==null){if(Ee===0)var e=de.return;else e=de,It=$l=null,_u(e),_a=null,vn=0,e=de;for(;e!==null;)Xf(e.alternate,e),e=e.return;de=null}}function qa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,hr(),Re=e,de=l=Wt(e.current,null),he=t,Ee=0,gt=null,Ml=!1,Ba=Fa(e,t),rr=!1,Ha=bt=cr=na=zl=Be=0,ot=Cn=null,or=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ht(a),i=1<<n;t|=e[n],a&=~i}return rl=t,hi(),l}function md(e,t){ce=null,D.H=Nn,t===Ra||t===ji?(t=zo(),Ee=3):t===xu?(t=zo(),Ee=4):Ee=t===Vu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gt=t,de===null&&(Be=1,Ui(e,At(t,e.current)))}function hd(){var e=pt.current;return e===null?!0:(he&4194048)===he?_t===null:(he&62914560)===he||(he&536870912)!==0?e===_t:!1}function vd(){var e=D.H;return D.H=Nn,e===null?Nn:e}function yd(){var e=D.A;return D.A=Yv,e}function Ji(){Be=4,Ml||(he&4194048)!==he&&pt.current!==null||(Ba=!0),(zl&134217727)===0&&(na&134217727)===0||Re===null||Cl(Re,he,bt,!1)}function vr(e,t,l){var a=je;je|=2;var n=vd(),i=yd();(Re!==e||he!==t)&&(Vi=null,qa(e,t)),t=!1;var r=Be;e:do try{if(Ee!==0&&de!==null){var d=de,y=gt;switch(Ee){case 8:hr(),r=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var z=Ee;if(Ee=0,gt=null,Ya(e,d,y,z),l&&Ba){r=0;break e}break;default:z=Ee,Ee=0,gt=null,Ya(e,d,y,z)}}Qv(),r=Be;break}catch(w){md(e,w)}while(!0);return t&&e.shellSuspendCounter++,It=$l=null,je=a,D.H=n,D.A=i,de===null&&(Re=null,he=0,hi()),r}function Qv(){for(;de!==null;)pd(de)}function Zv(e,t){var l=je;je|=2;var a=vd(),n=yd();Re!==e||he!==t?(Vi=null,Zi=dt()+500,qa(e,t)):Ba=Fa(e,t);e:do try{if(Ee!==0&&de!==null){t=de;var i=gt;t:switch(Ee){case 1:Ee=0,gt=null,Ya(e,t,i,1);break;case 2:case 9:if(Ao(i)){Ee=0,gt=null,xd(t);break}t=function(){Ee!==2&&Ee!==9||Re!==e||(Ee=7),Xt(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Ao(i)?(Ee=0,gt=null,xd(t)):(Ee=0,gt=null,Ya(e,t,i,7));break;case 5:var r=null;switch(de.tag){case 26:r=de.memoizedState;case 5:case 27:var d=de;if(r?am(r):d.stateNode.complete){Ee=0,gt=null;var y=d.sibling;if(y!==null)de=y;else{var z=d.return;z!==null?(de=z,$i(z)):de=null}break t}}Ee=0,gt=null,Ya(e,t,i,5);break;case 6:Ee=0,gt=null,Ya(e,t,i,6);break;case 8:hr(),Be=6;break e;default:throw Error(o(462))}}Vv();break}catch(w){md(e,w)}while(!0);return It=$l=null,D.H=a,D.A=n,je=l,de!==null?0:(Re=null,he=0,hi(),Be)}function Vv(){for(;de!==null&&!vh();)pd(de)}function pd(e){var t=Yf(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?$i(e):de=t}function xd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=wf(l,t,t.pendingProps,t.type,void 0,he);break;case 11:t=wf(l,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:_u(t);default:Xf(l,t),t=de=vo(t,rl),t=Yf(l,t,rl)}e.memoizedProps=e.pendingProps,t===null?$i(e):de=t}function Ya(e,t,l,a){It=$l=null,_u(t),_a=null,vn=0;var n=t.return;try{if(Dv(e,n,t,l,he)){Be=1,Ui(e,At(l,e.current)),de=null;return}}catch(i){if(n!==null)throw de=n,i;Be=1,Ui(e,At(l,e.current)),de=null;return}t.flags&32768?(pe||a===1?e=!0:Ba||(he&536870912)!==0?e=!1:(Ml=e=!0,(a===2||a===9||a===3||a===6)&&(a=pt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gd(t,e)):$i(t)}function $i(e){var t=e;do{if((t.flags&32768)!==0){gd(t,Ml);return}e=t.return;var l=Bv(t.alternate,t,rl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Be===0&&(Be=5)}function gd(e,t){do{var l=Hv(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);Be=6,de=null}function bd(e,t,l,a,n,i,r,d,y){e.cancelPendingCommit=null;do Wi();while(Ke!==0);if((je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=au,Th(e,l,i,r,d,y),e===Re&&(de=Re=null,he=0),La=t,_l=e,cl=l,fr=i,dr=n,cd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wv(In,function(){return Td(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=$.p,$.p=2,r=je,je|=4;try{Lv(e,t,l)}finally{je=r,$.p=n,D.T=a}}Ke=1,Sd(),jd(),Nd()}}function Sd(){if(Ke===1){Ke=0;var e=_l,t=La,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=$.p;$.p=2;var n=je;je|=4;try{td(t,e);var i=Mr,r=io(e.containerInfo),d=i.focusedElem,y=i.selectionRange;if(r!==d&&d&&d.ownerDocument&&no(d.ownerDocument.documentElement,d)){if(y!==null&&Is(d)){var z=y.start,w=y.end;if(w===void 0&&(w=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(w,d.value.length);else{var H=d.ownerDocument||document,R=H&&H.defaultView||window;if(R.getSelection){var O=R.getSelection(),P=d.textContent.length,ie=Math.min(y.start,P),ze=y.end===void 0?ie:Math.min(y.end,P);!O.extend&&ie>ze&&(r=ze,ze=ie,ie=r);var A=ao(d,ie),j=ao(d,ze);if(A&&j&&(O.rangeCount!==1||O.anchorNode!==A.node||O.anchorOffset!==A.offset||O.focusNode!==j.node||O.focusOffset!==j.offset)){var M=H.createRange();M.setStart(A.node,A.offset),O.removeAllRanges(),ie>ze?(O.addRange(M),O.extend(j.node,j.offset)):(M.setEnd(j.node,j.offset),O.addRange(M))}}}}for(H=[],O=d;O=O.parentNode;)O.nodeType===1&&H.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<H.length;d++){var B=H[d];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}rs=!!Ar,Mr=Ar=null}finally{je=n,$.p=a,D.T=l}}e.current=t,Ke=2}}function jd(){if(Ke===2){Ke=0;var e=_l,t=La,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=$.p;$.p=2;var n=je;je|=4;try{Wf(e,t.alternate,t)}finally{je=n,$.p=a,D.T=l}}Ke=3}}function Nd(){if(Ke===4||Ke===3){Ke=0,yh();var e=_l,t=La,l=cl,a=cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,La=_l=null,Ed(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Rl=null),ks(l),t=t.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Wa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=$.p,$.p=2,D.T=null;try{for(var i=e.onRecoverableError,r=0;r<a.length;r++){var d=a[r];i(d.value,{componentStack:d.stack})}}finally{D.T=t,$.p=n}}(cl&3)!==0&&Wi(),Xt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===mr?On++:(On=0,mr=e):On=0,kn(0)}}function Ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,mn(t)))}function Wi(){return Sd(),jd(),Nd(),Td()}function Td(){if(Ke!==5)return!1;var e=_l,t=fr;fr=0;var l=ks(cl),a=D.T,n=$.p;try{$.p=32>l?32:l,D.T=null,l=dr,dr=null;var i=_l,r=cl;if(Ke=0,La=_l=null,cl=0,(je&6)!==0)throw Error(o(331));var d=je;if(je|=4,sd(i.current),ad(i,i.current,r,l),je=d,kn(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Wa,i)}catch{}return!0}finally{$.p=n,D.T=a,Ed(e,t)}}function Ad(e,t,l){t=At(l,t),t=Zu(e.stateNode,t,2),e=Nl(e,t,2),e!==null&&(Ia(e,2),Xt(e))}function Te(e,t,l){if(e.tag===3)Ad(e,e,l);else for(;t!==null;){if(t.tag===3){Ad(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Rl===null||!Rl.has(a))){e=At(l,e),l=Mf(2),a=Nl(t,l,2),a!==null&&(zf(l,a,t,e),Ia(a,2),Xt(a));break}}t=t.return}}function yr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Gv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(rr=!0,n.add(l),e=Kv.bind(null,e,t,l),t.then(e,e))}function Kv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Re===e&&(he&l)===l&&(Be===4||Be===3&&(he&62914560)===he&&300>dt()-Qi?(je&2)===0&&qa(e,0):cr|=l,Ha===he&&(Ha=0)),Xt(e)}function Md(e,t){t===0&&(t=gc()),e=Vl(e,t),e!==null&&(Ia(e,t),Xt(e))}function Jv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function $v(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Md(e,l)}function Wv(e,t){return Rs(e,t)}var Fi=null,Ga=null,pr=!1,Ii=!1,xr=!1,Ol=0;function Xt(e){e!==Ga&&e.next===null&&(Ga===null?Fi=Ga=e:Ga=Ga.next=e),Ii=!0,pr||(pr=!0,Iv())}function kn(e,t){if(!xr&&Ii){xr=!0;do for(var l=!1,a=Fi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var r=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=n&~(r&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Cd(a,i))}else i=he,i=li(a,a===Re?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Fa(a,i)||(l=!0,Cd(a,i));a=a.next}while(l);xr=!1}}function Fv(){zd()}function zd(){Ii=pr=!1;var e=0;Ol!==0&&ry()&&(e=Ol);for(var t=dt(),l=null,a=Fi;a!==null;){var n=a.next,i=Rd(a,t);i===0?(a.next=null,l===null?Fi=n:l.next=n,n===null&&(Ga=l)):(l=a,(e!==0||(i&3)!==0)&&(Ii=!0)),a=n}Ke!==0&&Ke!==5||kn(e),Ol!==0&&(Ol=0)}function Rd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-ht(i),d=1<<r,y=n[r];y===-1?((d&l)===0||(d&a)!==0)&&(n[r]=Eh(d,t)):y<=t&&(e.expiredLanes|=d),i&=~d}if(t=Re,l=he,l=li(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&_s(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Fa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&_s(a),ks(l)){case 2:case 8:l=pc;break;case 32:l=In;break;case 268435456:l=xc;break;default:l=In}return a=_d.bind(null,e),l=Rs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&_s(a),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Wi()&&e.callbackNode!==l)return null;var a=he;return a=li(e,e===Re?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(fd(e,a,t),Rd(e,dt()),e.callbackNode!=null&&e.callbackNode===l?_d.bind(null,e):null)}function Cd(e,t){if(Wi())return null;fd(e,t,!0)}function Iv(){oy(function(){(je&6)!==0?Rs(yc,Fv):zd()})}function gr(){if(Ol===0){var e=Ma;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Ol=e}return Ol}function Od(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:si(""+e)}function kd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Pv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Od((n[it]||null).action),r=a.submitter;r&&(t=(t=r[it]||null)?Od(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var d=new oi("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ol!==0){var y=r?kd(n,r):new FormData(n);Lu(l,{pending:!0,data:y,method:n.method,action:i},null,y)}}else typeof i=="function"&&(d.preventDefault(),y=r?kd(n,r):new FormData(n),Lu(l,{pending:!0,data:y,method:n.method,action:i},i,y))},currentTarget:n}]})}}for(var br=0;br<lu.length;br++){var Sr=lu[br],ey=Sr.toLowerCase(),ty=Sr[0].toUpperCase()+Sr.slice(1);Ut(ey,"on"+ty)}Ut(ro,"onAnimationEnd"),Ut(co,"onAnimationIteration"),Ut(oo,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(pv,"onTransitionRun"),Ut(xv,"onTransitionStart"),Ut(gv,"onTransitionCancel"),Ut(fo,"onTransitionEnd"),ma("onMouseEnter",["mouseout","mouseover"]),ma("onMouseLeave",["mouseout","mouseover"]),ma("onPointerEnter",["pointerout","pointerover"]),ma("onPointerLeave",["pointerout","pointerover"]),Gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),ly=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dn));function Dd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var r=a.length-1;0<=r;r--){var d=a[r],y=d.instance,z=d.currentTarget;if(d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=z;try{i(n)}catch(w){mi(w)}n.currentTarget=null,i=y}else for(r=0;r<a.length;r++){if(d=a[r],y=d.instance,z=d.currentTarget,d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=z;try{i(n)}catch(w){mi(w)}n.currentTarget=null,i=y}}}}function me(e,t){var l=t[Ds];l===void 0&&(l=t[Ds]=new Set);var a=e+"__bubble";l.has(a)||(wd(t,e,2,!1),l.add(a))}function jr(e,t,l){var a=0;t&&(a|=4),wd(l,e,a,t)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){if(!e[Pi]){e[Pi]=!0,Ac.forEach(function(l){l!=="selectionchange"&&(ly.has(l)||jr(l,!1,e),jr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pi]||(t[Pi]=!0,jr("selectionchange",!1,t))}}function wd(e,t,l,a){switch(om(t)){case 2:var n=_y;break;case 8:n=Cy;break;default:n=Hr}l=n.bind(null,t,l,e),n=void 0,!Xs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Er(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var d=a.stateNode.containerInfo;if(d===n)break;if(r===4)for(r=a.return;r!==null;){var y=r.tag;if((y===3||y===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;d!==null;){if(r=oa(d),r===null)return;if(y=r.tag,y===5||y===6||y===26||y===27){a=i=r;continue e}d=d.parentNode}}a=a.return}Hc(function(){var z=i,w=Ys(l),H=[];e:{var R=mo.get(e);if(R!==void 0){var O=oi,P=e;switch(e){case"keypress":if(ri(l)===0)break e;case"keydown":case"keyup":O=$h;break;case"focusin":P="focus",O=Ks;break;case"focusout":P="blur",O=Ks;break;case"beforeblur":case"afterblur":O=Ks;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=Bh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Ih;break;case ro:case co:case oo:O=qh;break;case fo:O=ev;break;case"scroll":case"scrollend":O=wh;break;case"wheel":O=lv;break;case"copy":case"cut":case"paste":O=Gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Xc;break;case"toggle":case"beforetoggle":O=nv}var ie=(t&4)!==0,ze=!ie&&(e==="scroll"||e==="scrollend"),A=ie?R!==null?R+"Capture":null:R;ie=[];for(var j=z,M;j!==null;){var B=j;if(M=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||M===null||A===null||(B=tn(j,A),B!=null&&ie.push(wn(j,B,M))),ze)break;j=j.return}0<ie.length&&(R=new O(R,P,null,l,w),H.push({event:R,listeners:ie}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",R&&l!==qs&&(P=l.relatedTarget||l.fromElement)&&(oa(P)||P[ca]))break e;if((O||R)&&(R=w.window===w?w:(R=w.ownerDocument)?R.defaultView||R.parentWindow:window,O?(P=l.relatedTarget||l.toElement,O=z,P=P?oa(P):null,P!==null&&(ze=h(P),ie=P.tag,P!==ze||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(O=null,P=z),O!==P)){if(ie=Yc,B="onMouseLeave",A="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Xc,B="onPointerLeave",A="onPointerEnter",j="pointer"),ze=O==null?R:en(O),M=P==null?R:en(P),R=new ie(B,j+"leave",O,l,w),R.target=ze,R.relatedTarget=M,B=null,oa(w)===z&&(ie=new ie(A,j+"enter",P,l,w),ie.target=M,ie.relatedTarget=ze,B=ie),ze=B,O&&P)t:{for(ie=ay,A=O,j=P,M=0,B=A;B;B=ie(B))M++;B=0;for(var ae=j;ae;ae=ie(ae))B++;for(;0<M-B;)A=ie(A),M--;for(;0<B-M;)j=ie(j),B--;for(;M--;){if(A===j||j!==null&&A===j.alternate){ie=A;break t}A=ie(A),j=ie(j)}ie=null}else ie=null;O!==null&&Ud(H,R,O,ie,!1),P!==null&&ze!==null&&Ud(H,ze,P,ie,!0)}}e:{if(R=z?en(z):window,O=R.nodeName&&R.nodeName.toLowerCase(),O==="select"||O==="input"&&R.type==="file")var be=Fc;else if($c(R))if(Ic)be=hv;else{be=dv;var ee=fv}else O=R.nodeName,!O||O.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?z&&Ls(z.elementType)&&(be=Fc):be=mv;if(be&&(be=be(e,z))){Wc(H,be,l,w);break e}ee&&ee(e,R,z),e==="focusout"&&z&&R.type==="number"&&z.memoizedProps.value!=null&&Hs(R,"number",R.value)}switch(ee=z?en(z):window,e){case"focusin":($c(ee)||ee.contentEditable==="true")&&(ga=ee,Ps=z,on=null);break;case"focusout":on=Ps=ga=null;break;case"mousedown":eu=!0;break;case"contextmenu":case"mouseup":case"dragend":eu=!1,so(H,l,w);break;case"selectionchange":if(yv)break;case"keydown":case"keyup":so(H,l,w)}var oe;if($s)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else xa?Kc(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(Qc&&l.locale!=="ko"&&(xa||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&xa&&(oe=Lc()):(yl=w,Qs="value"in yl?yl.value:yl.textContent,xa=!0)),ee=es(z,ve),0<ee.length&&(ve=new Gc(ve,e,null,l,w),H.push({event:ve,listeners:ee}),oe?ve.data=oe:(oe=Jc(l),oe!==null&&(ve.data=oe)))),(oe=sv?uv(e,l):rv(e,l))&&(ve=es(z,"onBeforeInput"),0<ve.length&&(ee=new Gc("onBeforeInput","beforeinput",null,l,w),H.push({event:ee,listeners:ve}),ee.data=oe)),Pv(H,e,z,l,w)}Dd(H,t)})}function wn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function es(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=tn(e,l),n!=null&&a.unshift(wn(e,n,i)),n=tn(e,t),n!=null&&a.push(wn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function ay(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ud(e,t,l,a,n){for(var i=t._reactName,r=[];l!==null&&l!==a;){var d=l,y=d.alternate,z=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||z===null||(y=z,n?(z=tn(l,i),z!=null&&r.unshift(wn(l,z,y))):n||(z=tn(l,i),z!=null&&r.push(wn(l,z,y)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var ny=/\r\n?/g,iy=/\u0000|\uFFFD/g;function Bd(e){return(typeof e=="string"?e:""+e).replace(ny,`
49
- `).replace(iy,"")}function Hd(e,t){return t=Bd(t),Bd(e)===t}function Me(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||va(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&va(e,""+a);break;case"className":ni(e,"class",a);break;case"tabIndex":ni(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(e,l,a);break;case"style":Uc(e,a,i);break;case"data":if(t!=="object"){ni(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=si(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Me(e,t,"name",n.name,n,null),Me(e,t,"formEncType",n.formEncType,n,null),Me(e,t,"formMethod",n.formMethod,n,null),Me(e,t,"formTarget",n.formTarget,n,null)):(Me(e,t,"encType",n.encType,n,null),Me(e,t,"method",n.method,n,null),Me(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=si(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=si(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":me("beforetoggle",e),me("toggle",e),ai(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ai(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=kh.get(l)||l,ai(e,l,a))}}function Tr(e,t,l,a,n,i){switch(l){case"style":Uc(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?va(e,a):(typeof a=="number"||typeof a=="bigint")&&va(e,""+a);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[it]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ai(e,l,a)}}}function et(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var r=l[i];if(r!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,i,r,l,null)}}n&&Me(e,t,"srcSet",l.srcSet,l,null),a&&Me(e,t,"src",l.src,l,null);return;case"input":me("invalid",e);var d=i=r=n=null,y=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":r=w;break;case"checked":y=w;break;case"defaultChecked":z=w;break;case"value":i=w;break;case"defaultValue":d=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:Me(e,t,a,w,l,null)}}Oc(e,i,d,y,z,r,n,!1);return;case"select":me("invalid",e),a=r=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":r=d;break;case"multiple":a=d;default:Me(e,t,n,d,l,null)}t=i,l=r,e.multiple=!!a,t!=null?ha(e,!!a,t,!1):l!=null&&ha(e,!!a,l,!0);return;case"textarea":me("invalid",e),i=n=a=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Me(e,t,r,d,l,null)}Dc(e,a,n,i);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Me(e,t,y,a,l,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<Dn.length;a++)me(Dn[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,z,a,l,null)}return;default:if(Ls(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&Tr(e,t,w,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Me(e,t,d,a,l,null))}function sy(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,r=null,d=null,y=null,z=null,w=null;for(O in l){var H=l[O];if(l.hasOwnProperty(O)&&H!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":y=H;default:a.hasOwnProperty(O)||Me(e,t,O,null,a,H)}}for(var R in a){var O=a[R];if(H=l[R],a.hasOwnProperty(R)&&(O!=null||H!=null))switch(R){case"type":i=O;break;case"name":n=O;break;case"checked":z=O;break;case"defaultChecked":w=O;break;case"value":r=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:O!==H&&Me(e,t,R,O,a,H)}}Bs(e,r,d,y,z,w,i,n);return;case"select":O=r=d=R=null;for(i in l)if(y=l[i],l.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":O=y;default:a.hasOwnProperty(i)||Me(e,t,i,null,a,y)}for(n in a)if(i=a[n],y=l[n],a.hasOwnProperty(n)&&(i!=null||y!=null))switch(n){case"value":R=i;break;case"defaultValue":d=i;break;case"multiple":r=i;default:i!==y&&Me(e,t,n,i,a,y)}t=d,l=r,a=O,R!=null?ha(e,!!l,R,!1):!!a!=!!l&&(t!=null?ha(e,!!l,t,!0):ha(e,!!l,l?[]:"",!1));return;case"textarea":O=R=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Me(e,t,d,null,a,n)}for(r in a)if(n=a[r],i=l[r],a.hasOwnProperty(r)&&(n!=null||i!=null))switch(r){case"value":R=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Me(e,t,r,n,a,i)}kc(e,R,O);return;case"option":for(var P in l)if(R=l[P],l.hasOwnProperty(P)&&R!=null&&!a.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Me(e,t,P,null,a,R)}for(y in a)if(R=a[y],O=l[y],a.hasOwnProperty(y)&&R!==O&&(R!=null||O!=null))switch(y){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Me(e,t,y,R,a,O)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in l)R=l[ie],l.hasOwnProperty(ie)&&R!=null&&!a.hasOwnProperty(ie)&&Me(e,t,ie,null,a,R);for(z in a)if(R=a[z],O=l[z],a.hasOwnProperty(z)&&R!==O&&(R!=null||O!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Me(e,t,z,R,a,O)}return;default:if(Ls(t)){for(var ze in l)R=l[ze],l.hasOwnProperty(ze)&&R!==void 0&&!a.hasOwnProperty(ze)&&Tr(e,t,ze,void 0,a,R);for(w in a)R=a[w],O=l[w],!a.hasOwnProperty(w)||R===O||R===void 0&&O===void 0||Tr(e,t,w,R,a,O);return}}for(var A in l)R=l[A],l.hasOwnProperty(A)&&R!=null&&!a.hasOwnProperty(A)&&Me(e,t,A,null,a,R);for(H in a)R=a[H],O=l[H],!a.hasOwnProperty(H)||R===O||R==null&&O==null||Me(e,t,H,R,a,O)}function Ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,r=n.initiatorType,d=n.duration;if(i&&d&&Ld(r)){for(r=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],z=y.startTime;if(z>d)break;var w=y.transferSize,H=y.initiatorType;w&&Ld(H)&&(y=y.responseEnd,r+=w*(y<d?1:(d-z)/(y-z)))}if(--a,t+=8*(i+r)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ar=null,Mr=null;function ts(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 Yd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function zr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rr=null;function ry(){var e=window.event;return e&&e.type==="popstate"?e===Rr?!1:(Rr=e,!0):(Rr=null,!1)}var Gd=typeof setTimeout=="function"?setTimeout:void 0,cy=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,oy=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(fy)}:Gd;function fy(e){setTimeout(function(){throw e})}function kl(e){return e==="head"}function Qd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Va(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var i=l.firstChild;i;){var r=i.nextSibling,d=i.nodeName;i[Pa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=r}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Va(t)}function Zd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function _r(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":_r(l),ws(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function dy(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Pa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ct(e.nextSibling),e===null)break}return null}function my(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ct(e.nextSibling),e===null))return null;return e}function Vd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ct(e.nextSibling),e===null))return null;return e}function Cr(e){return e.data==="$?"||e.data==="$~"}function Or(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kr=null;function Kd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ct(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Jd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function $d(e,t,l){switch(t=ts(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ws(e)}var Ot=new Map,Wd=new Set;function ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=$.d;$.d={f:vy,r:yy,D:py,C:xy,L:gy,m:by,X:jy,S:Sy,M:Ny};function vy(){var e=ol.f(),t=Ki();return e||t}function yy(e){var t=fa(e);t!==null&&t.tag===5&&t.type==="form"?mf(t):ol.r(e)}var Xa=typeof document>"u"?null:document;function Fd(e,t,l){var a=Xa;if(a&&typeof t=="string"&&t){var n=Et(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Wd.has(n)||(Wd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function py(e){ol.D(e),Fd("dns-prefetch",e,null)}function xy(e,t){ol.C(e,t),Fd("preconnect",e,t)}function gy(e,t,l){ol.L(e,t,l);var a=Xa;if(a&&e&&t){var n='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Et(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Et(l.imageSizes)+'"]')):n+='[href="'+Et(e)+'"]';var i=n;switch(t){case"style":i=Qa(e);break;case"script":i=Za(e)}Ot.has(i)||(e=E({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ot.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Bn(i))||t==="script"&&a.querySelector(Hn(i))||(t=a.createElement("link"),et(t,"link",e),Je(t),a.head.appendChild(t)))}}function by(e,t){ol.m(e,t);var l=Xa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Za(e)}if(!Ot.has(i)&&(e=E({rel:"modulepreload",href:e},t),Ot.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hn(i)))return}a=l.createElement("link"),et(a,"link",e),Je(a),l.head.appendChild(a)}}}function Sy(e,t,l){ol.S(e,t,l);var a=Xa;if(a&&e){var n=da(a).hoistableStyles,i=Qa(e);t=t||"default";var r=n.get(i);if(!r){var d={loading:0,preload:null};if(r=a.querySelector(Bn(i)))d.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ot.get(i))&&Dr(e,l);var y=r=a.createElement("link");Je(y),et(y,"link",e),y._p=new Promise(function(z,w){y.onload=z,y.onerror=w}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,as(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:d},n.set(i,r)}}}function jy(e,t){ol.X(e,t);var l=Xa;if(l&&e){var a=da(l).hoistableScripts,n=Za(e),i=a.get(n);i||(i=l.querySelector(Hn(n)),i||(e=E({src:e,async:!0},t),(t=Ot.get(n))&&wr(e,t),i=l.createElement("script"),Je(i),et(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Ny(e,t){ol.M(e,t);var l=Xa;if(l&&e){var a=da(l).hoistableScripts,n=Za(e),i=a.get(n);i||(i=l.querySelector(Hn(n)),i||(e=E({src:e,async:!0,type:"module"},t),(t=Ot.get(n))&&wr(e,t),i=l.createElement("script"),Je(i),et(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Id(e,t,l,a){var n=(n=W.current)?ls(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Qa(l.href),l=da(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Qa(l.href);var i=da(n).hoistableStyles,r=i.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=n.querySelector(Bn(e)))&&!i._p&&(r.instance=i,r.state.loading=5),Ot.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ot.set(e,l),i||Ey(n,e,l,r.state))),t&&a===null)throw Error(o(528,""));return r}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Za(l),l=da(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Qa(e){return'href="'+Et(e)+'"'}function Bn(e){return'link[rel="stylesheet"]['+e+"]"}function Pd(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Ey(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),et(t,"link",l),Je(t),e.head.appendChild(t))}function Za(e){return'[src="'+Et(e)+'"]'}function Hn(e){return"script[async]"+e}function em(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(l.href)+'"]');if(a)return t.instance=a,Je(a),a;var n=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Je(a),et(a,"style",n),as(a,l.precedence,e),t.instance=a;case"stylesheet":n=Qa(l.href);var i=e.querySelector(Bn(n));if(i)return t.state.loading|=4,t.instance=i,Je(i),i;a=Pd(l),(n=Ot.get(n))&&Dr(a,n),i=(e.ownerDocument||e).createElement("link"),Je(i);var r=i;return r._p=new Promise(function(d,y){r.onload=d,r.onerror=y}),et(i,"link",a),t.state.loading|=4,as(i,l.precedence,e),t.instance=i;case"script":return i=Za(l.src),(n=e.querySelector(Hn(i)))?(t.instance=n,Je(n),n):(a=l,(n=Ot.get(i))&&(a=E({},l),wr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Je(n),et(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,as(a,l.precedence,e));return t.instance}function as(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,r=0;r<a.length;r++){var d=a[r];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Dr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ns=null;function tm(e,t,l){if(ns===null){var a=new Map,n=ns=new Map;n.set(l,a)}else n=ns,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Pa]||i[We]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var d=a.get(r);d?d.push(i):a.set(r,[i])}}return a}function lm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ty(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ay(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Qa(a.href),i=t.querySelector(Bn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=is.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Je(i);return}i=t.ownerDocument||t,a=Pd(a),(n=Ot.get(n))&&Dr(a,n),i=i.createElement("link"),Je(i);var r=i;r._p=new Promise(function(d,y){r.onload=d,r.onerror=y}),et(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=is.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ur=0;function My(e,t){return e.stylesheets&&e.count===0&&us(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&us(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ur===0&&(Ur=62500*uy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&us(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ur?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function is(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)us(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ss=null;function us(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ss=new Map,t.forEach(zy,e),ss=null,is.call(e))}function zy(e,t){if(!(t.state.loading&4)){var l=ss.get(e);if(l)var a=l.get(null);else{l=new Map,ss.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var r=n[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),a=r)}a&&l.set(null,a)}n=t.instance,r=n.getAttribute("data-precedence"),i=l.get(r)||a,i===a&&l.set(null,n),l.set(r,n),this.count++,a=is.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ln={$$typeof:J,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Ry(e,t,l,a,n,i,r,d,y){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=Cs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cs(0),this.hiddenUpdates=Cs(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function nm(e,t,l,a,n,i,r,d,y,z,w,H){return e=new Ry(e,t,l,r,y,z,w,H,d),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=vu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},gu(i),e}function im(e){return e?(e=ja,e):ja}function sm(e,t,l,a,n,i){n=im(n),a.context===null?a.context=n:a.pendingContext=n,a=jl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Nl(e,a,t),l!==null&&(ft(l,e,t),pn(l,e,t))}function um(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Br(e,t){um(e,t),(e=e.alternate)&&um(e,t)}function rm(e){if(e.tag===13||e.tag===31){var t=Vl(e,67108864);t!==null&&ft(t,e,67108864),Br(e,67108864)}}function cm(e){if(e.tag===13||e.tag===31){var t=St();t=Os(t);var l=Vl(e,t);l!==null&&ft(l,e,t),Br(e,t)}}var rs=!0;function _y(e,t,l,a){var n=D.T;D.T=null;var i=$.p;try{$.p=2,Hr(e,t,l,a)}finally{$.p=i,D.T=n}}function Cy(e,t,l,a){var n=D.T;D.T=null;var i=$.p;try{$.p=8,Hr(e,t,l,a)}finally{$.p=i,D.T=n}}function Hr(e,t,l,a){if(rs){var n=Lr(a);if(n===null)Er(e,t,a,cs,l),fm(e,a);else if(ky(n,e,t,l,a))a.stopPropagation();else if(fm(e,a),t&4&&-1<Oy.indexOf(e)){for(;n!==null;){var i=fa(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Yl(i.pendingLanes);if(r!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var y=1<<31-ht(r);d.entanglements[1]|=y,r&=~y}Xt(i),(je&6)===0&&(Zi=dt()+500,kn(0))}}break;case 31:case 13:d=Vl(i,2),d!==null&&ft(d,i,2),Ki(),Br(i,2)}if(i=Lr(a),i===null&&Er(e,t,a,cs,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Er(e,t,a,null,l)}}function Lr(e){return e=Ys(e),qr(e)}var cs=null;function qr(e){if(cs=null,e=oa(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=T(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cs=e,null}function om(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(ph()){case yc:return 2;case pc:return 8;case In:case xh:return 32;case xc:return 268435456;default:return 32}default:return 32}}var Yr=!1,Dl=null,wl=null,Ul=null,qn=new Map,Yn=new Map,Bl=[],Oy="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 fm(e,t){switch(e){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":Ul=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Gn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=fa(t),t!==null&&rm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ky(e,t,l,a,n){switch(t){case"focusin":return Dl=Gn(Dl,e,t,l,a,n),!0;case"dragenter":return wl=Gn(wl,e,t,l,a,n),!0;case"mouseover":return Ul=Gn(Ul,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return qn.set(i,Gn(qn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Yn.set(i,Gn(Yn.get(i)||null,e,t,l,a,n)),!0}return!1}function dm(e){var t=oa(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,Ec(e.priority,function(){cm(l)});return}}else if(t===31){if(t=T(l),t!==null){e.blockedOn=t,Ec(e.priority,function(){cm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Lr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);qs=a,l.target.dispatchEvent(a),qs=null}else return t=fa(l),t!==null&&rm(t),e.blockedOn=l,!1;t.shift()}return!0}function mm(e,t,l){os(e)&&l.delete(t)}function Dy(){Yr=!1,Dl!==null&&os(Dl)&&(Dl=null),wl!==null&&os(wl)&&(wl=null),Ul!==null&&os(Ul)&&(Ul=null),qn.forEach(mm),Yn.forEach(mm)}function fs(e,t){e.blockedOn===t&&(e.blockedOn=null,Yr||(Yr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Dy)))}var ds=null;function hm(e){ds!==e&&(ds=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){ds===e&&(ds=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(qr(a||l)===null)continue;break}var i=fa(l);i!==null&&(e.splice(t,3),t-=3,Lu(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Va(e){function t(y){return fs(y,e)}Dl!==null&&fs(Dl,e),wl!==null&&fs(wl,e),Ul!==null&&fs(Ul,e),qn.forEach(t),Yn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)dm(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],r=n[it]||null;if(typeof i=="function")r||hm(l);else if(r){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,r=i[it]||null)d=r.formAction;else if(qr(n)!==null)continue}else d=r.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),hm(l)}}}function vm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return n=r})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Gr(e){this._internalRoot=e}ms.prototype.render=Gr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=St();sm(l,a,e,t,null,null)},ms.prototype.unmount=Gr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sm(e.current,2,null,e,null,null),Ki(),t[ca]=null}};function ms(e){this._internalRoot=e}ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&dm(e)}};var ym=c.version;if(ym!=="19.2.4")throw Error(o(527,ym,"19.2.4"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var wy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Wa=hs.inject(wy),mt=hs}catch{}}return Qn.createRoot=function(e,t){if(!m(e))throw Error(o(299));var l=!1,a="",n=Nf,i=Ef,r=Tf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=nm(e,1,!1,null,null,l,a,null,n,i,r,vm),e[ca]=t.current,Nr(e),new Gr(t)},Qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(o(299));var a=!1,n="",i=Nf,r=Ef,d=Tf,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=nm(e,1,!0,t,l??null,a,n,y,i,r,d,vm),t.context=im(null),l=t.current,a=St(),a=Os(a),n=jl(a),n.callback=null,Nl(l,n,a),l=a,t.current.lanes=l,Ia(t,l),Xt(t),e[ca]=t.current,Nr(e),new ms(t)},Qn.version="19.2.4",Qn}var Am;function Zy(){if(Am)return Zr.exports;Am=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Zr.exports=Qy(),Zr.exports}var Vy=Zy();/**
50
- * react-router v7.13.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Mm="popstate";function zm(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function Ky(u={}){function c(m,h){let{pathname:p="/",search:T="",hash:g=""}=ua(m.location.hash.substring(1));return!p.startsWith("/")&&!p.startsWith(".")&&(p="/"+p),ac("",{pathname:p,search:T,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(m,h){let p=m.document.querySelector("base"),T="";if(p&&p.getAttribute("href")){let g=m.location.href,v=g.indexOf("#");T=v===-1?g:g.slice(0,v)}return T+"#"+(typeof h=="string"?h:Kn(h))}function o(m,h){kt(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return $y(c,f,o,u)}function we(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function kt(u,c){if(!u){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Jy(){return Math.random().toString(36).substring(2,10)}function Rm(u,c){return{usr:u.state,key:u.key,idx:c,masked:u.unstable_mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function ac(u,c,f=null,o,m){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof c=="string"?ua(c):c,state:f,key:c&&c.key||o||Jy(),unstable_mask:m}}function Kn({pathname:u="/",search:c="",hash:f=""}){return c&&c!=="?"&&(u+=c.charAt(0)==="?"?c:"?"+c),f&&f!=="#"&&(u+=f.charAt(0)==="#"?f:"#"+f),u}function ua(u){let c={};if(u){let f=u.indexOf("#");f>=0&&(c.hash=u.substring(f),u=u.substring(0,f));let o=u.indexOf("?");o>=0&&(c.search=u.substring(o),u=u.substring(0,o)),u&&(c.pathname=u)}return c}function $y(u,c,f,o={}){let{window:m=document.defaultView,v5Compat:h=!1}=o,p=m.history,T="POP",g=null,v=_();v==null&&(v=0,p.replaceState({...p.state,idx:v},""));function _(){return(p.state||{idx:null}).idx}function E(){T="POP";let Q=_(),k=Q==null?null:Q-v;v=Q,g&&g({action:T,location:X.location,delta:k})}function L(Q,k){T="PUSH";let Z=zm(Q)?Q:ac(X.location,Q,k);f&&f(Z,Q),v=_()+1;let J=Rm(Z,v),Y=X.createHref(Z.unstable_mask||Z);try{p.pushState(J,"",Y)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;m.location.assign(Y)}h&&g&&g({action:T,location:X.location,delta:1})}function G(Q,k){T="REPLACE";let Z=zm(Q)?Q:ac(X.location,Q,k);f&&f(Z,Q),v=_();let J=Rm(Z,v),Y=X.createHref(Z.unstable_mask||Z);p.replaceState(J,"",Y),h&&g&&g({action:T,location:X.location,delta:0})}function V(Q){return Wy(Q)}let X={get action(){return T},get location(){return u(m,p)},listen(Q){if(g)throw new Error("A history only accepts one active listener");return m.addEventListener(Mm,E),g=Q,()=>{m.removeEventListener(Mm,E),g=null}},createHref(Q){return c(m,Q)},createURL:V,encodeLocation(Q){let k=V(Q);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:L,replace:G,go(Q){return p.go(Q)}};return X}function Wy(u,c=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),we(f,"No window.location.(origin|href) available to create URL");let o=typeof u=="string"?u:Kn(u);return o=o.replace(/ $/,"%20"),!c&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function Vm(u,c,f="/"){return Fy(u,c,f,!1)}function Fy(u,c,f,o){let m=typeof c=="string"?ua(c):c,h=dl(m.pathname||"/",f);if(h==null)return null;let p=Km(u);Iy(p);let T=null;for(let g=0;T==null&&g<p.length;++g){let v=cp(h);T=up(p[g],v,o)}return T}function Km(u,c=[],f=[],o="",m=!1){let h=(p,T,g=m,v)=>{let _={relativePath:v===void 0?p.path||"":v,caseSensitive:p.caseSensitive===!0,childrenIndex:T,route:p};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(o)&&g)return;we(_.relativePath.startsWith(o),`Absolute route path "${_.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(o.length)}let E=Qt([o,_.relativePath]),L=f.concat(_);p.children&&p.children.length>0&&(we(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Km(p.children,c,L,E,g)),!(p.path==null&&!p.index)&&c.push({path:E,score:ip(E,p.index),routesMeta:L})};return u.forEach((p,T)=>{var g;if(p.path===""||!((g=p.path)!=null&&g.includes("?")))h(p,T);else for(let v of Jm(p.path))h(p,T,!0,v)}),c}function Jm(u){let c=u.split("/");if(c.length===0)return[];let[f,...o]=c,m=f.endsWith("?"),h=f.replace(/\?$/,"");if(o.length===0)return m?[h,""]:[h];let p=Jm(o.join("/")),T=[];return T.push(...p.map(g=>g===""?h:[h,g].join("/"))),m&&T.push(...p),T.map(g=>u.startsWith("/")&&g===""?"/":g)}function Iy(u){u.sort((c,f)=>c.score!==f.score?f.score-c.score:sp(c.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var Py=/^:[\w-]+$/,ep=3,tp=2,lp=1,ap=10,np=-2,_m=u=>u==="*";function ip(u,c){let f=u.split("/"),o=f.length;return f.some(_m)&&(o+=np),c&&(o+=tp),f.filter(m=>!_m(m)).reduce((m,h)=>m+(Py.test(h)?ep:h===""?lp:ap),o)}function sp(u,c){return u.length===c.length&&u.slice(0,-1).every((o,m)=>o===c[m])?u[u.length-1]-c[c.length-1]:0}function up(u,c,f=!1){let{routesMeta:o}=u,m={},h="/",p=[];for(let T=0;T<o.length;++T){let g=o[T],v=T===o.length-1,_=h==="/"?c:c.slice(h.length)||"/",E=Ss({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},_),L=g.route;if(!E&&v&&f&&!o[o.length-1].route.index&&(E=Ss({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},_)),!E)return null;Object.assign(m,E.params),p.push({params:m,pathname:Qt([h,E.pathname]),pathnameBase:mp(Qt([h,E.pathnameBase])),route:L}),E.pathnameBase!=="/"&&(h=Qt([h,E.pathnameBase]))}return p}function Ss(u,c){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[f,o]=rp(u.path,u.caseSensitive,u.end),m=c.match(f);if(!m)return null;let h=m[0],p=h.replace(/(.)\/+$/,"$1"),T=m.slice(1);return{params:o.reduce((v,{paramName:_,isOptional:E},L)=>{if(_==="*"){let V=T[L]||"";p=h.slice(0,h.length-V.length).replace(/(.)\/+$/,"$1")}const G=T[L];return E&&!G?v[_]=void 0:v[_]=(G||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:p,pattern:u}}function rp(u,c=!1,f=!0){kt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let o=[],m="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,T,g,v,_)=>{if(o.push({paramName:T,isOptional:g!=null}),g){let E=_.charAt(v+p.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(o.push({paramName:"*"}),m+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":u!==""&&u!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,c?void 0:"i"),o]}function cp(u){try{return u.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return kt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),u}}function dl(u,c){if(c==="/")return u;if(!u.toLowerCase().startsWith(c.toLowerCase()))return null;let f=c.endsWith("/")?c.length-1:c.length,o=u.charAt(f);return o&&o!=="/"?null:u.slice(f)||"/"}var op=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fp(u,c="/"){let{pathname:f,search:o="",hash:m=""}=typeof u=="string"?ua(u):u,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=Cm(f.substring(1),"/"):h=Cm(f,c)):h=c,{pathname:h,search:hp(o),hash:vp(m)}}function Cm(u,c){let f=c.replace(/\/+$/,"").split("/");return u.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function $r(u,c,f,o){return`Cannot include a '${u}' character in a manually specified \`to.${c}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function dp(u){return u.filter((c,f)=>f===0||c.route.path&&c.route.path.length>0)}function $m(u){let c=dp(u);return c.map((f,o)=>o===c.length-1?f.pathname:f.pathnameBase)}function cc(u,c,f,o=!1){let m;typeof u=="string"?m=ua(u):(m={...u},we(!m.pathname||!m.pathname.includes("?"),$r("?","pathname","search",m)),we(!m.pathname||!m.pathname.includes("#"),$r("#","pathname","hash",m)),we(!m.search||!m.search.includes("#"),$r("#","search","hash",m)));let h=u===""||m.pathname==="",p=h?"/":m.pathname,T;if(p==null)T=f;else{let E=c.length-1;if(!o&&p.startsWith("..")){let L=p.split("/");for(;L[0]==="..";)L.shift(),E-=1;m.pathname=L.join("/")}T=E>=0?c[E]:"/"}let g=fp(m,T),v=p&&p!=="/"&&p.endsWith("/"),_=(h||p===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(v||_)&&(g.pathname+="/"),g}var Qt=u=>u.join("/").replace(/\/\/+/g,"/"),mp=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),hp=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,vp=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,yp=class{constructor(u,c,f,o=!1){this.status=u,this.statusText=c||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function pp(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function xp(u){return u.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Wm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fm(u,c){let f=u;if(typeof f!="string"||!op.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,m=!1;if(Wm)try{let h=new URL(window.location.href),p=f.startsWith("//")?new URL(h.protocol+f):new URL(f),T=dl(p.pathname,c);p.origin===h.origin&&T!=null?f=T+p.search+p.hash:m=!0}catch{kt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Im=["POST","PUT","PATCH","DELETE"];new Set(Im);var gp=["GET",...Im];new Set(gp);var Ka=b.createContext(null);Ka.displayName="DataRouter";var Ns=b.createContext(null);Ns.displayName="DataRouterState";var bp=b.createContext(!1),Pm=b.createContext({isTransitioning:!1});Pm.displayName="ViewTransition";var Sp=b.createContext(new Map);Sp.displayName="Fetchers";var jp=b.createContext(null);jp.displayName="Await";var Dt=b.createContext(null);Dt.displayName="Navigation";var $n=b.createContext(null);$n.displayName="Location";var Zt=b.createContext({outlet:null,matches:[],isDataRoute:!1});Zt.displayName="Route";var oc=b.createContext(null);oc.displayName="RouteError";var eh="REACT_ROUTER_ERROR",Np="REDIRECT",Ep="ROUTE_ERROR_RESPONSE";function Tp(u){if(u.startsWith(`${eh}:${Np}:{`))try{let c=JSON.parse(u.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Ap(u){if(u.startsWith(`${eh}:${Ep}:{`))try{let c=JSON.parse(u.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new yp(c.status,c.statusText,c.data)}catch{}}function Mp(u,{relative:c}={}){we(Wn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=b.useContext(Dt),{hash:m,pathname:h,search:p}=Fn(u,{relative:c}),T=h;return f!=="/"&&(T=h==="/"?f:Qt([f,h])),o.createHref({pathname:T,search:p,hash:m})}function Wn(){return b.useContext($n)!=null}function Vt(){return we(Wn(),"useLocation() may be used only in the context of a <Router> component."),b.useContext($n).location}var th="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lh(u){b.useContext(Dt).static||b.useLayoutEffect(u)}function Es(){let{isDataRoute:u}=b.useContext(Zt);return u?qp():zp()}function zp(){we(Wn(),"useNavigate() may be used only in the context of a <Router> component.");let u=b.useContext(Ka),{basename:c,navigator:f}=b.useContext(Dt),{matches:o}=b.useContext(Zt),{pathname:m}=Vt(),h=JSON.stringify($m(o)),p=b.useRef(!1);return lh(()=>{p.current=!0}),b.useCallback((g,v={})=>{if(kt(p.current,th),!p.current)return;if(typeof g=="number"){f.go(g);return}let _=cc(g,JSON.parse(h),m,v.relative==="path");u==null&&c!=="/"&&(_.pathname=_.pathname==="/"?c:Qt([c,_.pathname])),(v.replace?f.replace:f.push)(_,v.state,v)},[c,f,h,m,u])}b.createContext(null);function Ts(){let{matches:u}=b.useContext(Zt),c=u[u.length-1];return c?c.params:{}}function Fn(u,{relative:c}={}){let{matches:f}=b.useContext(Zt),{pathname:o}=Vt(),m=JSON.stringify($m(f));return b.useMemo(()=>cc(u,JSON.parse(m),o,c==="path"),[u,m,o,c])}function Rp(u,c){return ah(u,c)}function ah(u,c,f){var Q;we(Wn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(Dt),{matches:m}=b.useContext(Zt),h=m[m.length-1],p=h?h.params:{},T=h?h.pathname:"/",g=h?h.pathnameBase:"/",v=h&&h.route;{let k=v&&v.path||"";ih(T,!v||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${T}" (under <Route path="${k}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let _=Vt(),E;if(c){let k=typeof c=="string"?ua(c):c;we(g==="/"||((Q=k.pathname)==null?void 0:Q.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${k.pathname}" was given in the \`location\` prop.`),E=k}else E=_;let L=E.pathname||"/",G=L;if(g!=="/"){let k=g.replace(/^\//,"").split("/");G="/"+L.replace(/^\//,"").split("/").slice(k.length).join("/")}let V=Vm(u,{pathname:G});kt(v||V!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),kt(V==null||V[V.length-1].route.element!==void 0||V[V.length-1].route.Component!==void 0||V[V.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=Dp(V&&V.map(k=>Object.assign({},k,{params:Object.assign({},p,k.params),pathname:Qt([g,o.encodeLocation?o.encodeLocation(k.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?g:Qt([g,o.encodeLocation?o.encodeLocation(k.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),m,f);return c&&X?b.createElement($n.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...E},navigationType:"POP"}},X):X}function _p(){let u=Lp(),c=pp(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),f=u instanceof Error?u.stack:null,o="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:o},h={padding:"2px 4px",backgroundColor:o},p=null;return console.error("Error handled by React Router default ErrorBoundary:",u),p=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:h},"ErrorBoundary")," or"," ",b.createElement("code",{style:h},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},c),f?b.createElement("pre",{style:m},f):null,p)}var Cp=b.createElement(_p,null),nh=class extends b.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,c){return c.location!==u.location||c.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:c.error,location:c.location,revalidation:u.revalidation||c.revalidation}}componentDidCatch(u,c){this.props.onError?this.props.onError(u,c):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const f=Ap(u.digest);f&&(u=f)}let c=u!==void 0?b.createElement(Zt.Provider,{value:this.props.routeContext},b.createElement(oc.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?b.createElement(Op,{error:u},c):c}};nh.contextType=bp;var Wr=new WeakMap;function Op({children:u,error:c}){let{basename:f}=b.useContext(Dt);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let o=Tp(c.digest);if(o){let m=Wr.get(c);if(m)throw m;let h=Fm(o.location,f);if(Wm&&!Wr.get(c))if(h.isExternal||o.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:o.replace}));throw Wr.set(c,p),p}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return u}function kp({routeContext:u,match:c,children:f}){let o=b.useContext(Ka);return o&&o.static&&o.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=c.route.id),b.createElement(Zt.Provider,{value:u},f)}function Dp(u,c=[],f){let o=f==null?void 0:f.state;if(u==null){if(!o)return null;if(o.errors)u=o.matches;else if(c.length===0&&!o.initialized&&o.matches.length>0)u=o.matches;else return null}let m=u,h=o==null?void 0:o.errors;if(h!=null){let _=m.findIndex(E=>E.route.id&&(h==null?void 0:h[E.route.id])!==void 0);we(_>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),m=m.slice(0,Math.min(m.length,_+1))}let p=!1,T=-1;if(f&&o){p=o.renderFallback;for(let _=0;_<m.length;_++){let E=m[_];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(T=_),E.route.id){let{loaderData:L,errors:G}=o,V=E.route.loader&&!L.hasOwnProperty(E.route.id)&&(!G||G[E.route.id]===void 0);if(E.route.lazy||V){f.isStatic&&(p=!0),T>=0?m=m.slice(0,T+1):m=[m[0]];break}}}}let g=f==null?void 0:f.onError,v=o&&g?(_,E)=>{var L,G;g(_,{location:o.location,params:((G=(L=o.matches)==null?void 0:L[0])==null?void 0:G.params)??{},unstable_pattern:xp(o.matches),errorInfo:E})}:void 0;return m.reduceRight((_,E,L)=>{let G,V=!1,X=null,Q=null;o&&(G=h&&E.route.id?h[E.route.id]:void 0,X=E.route.errorElement||Cp,p&&(T<0&&L===0?(ih("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),V=!0,Q=null):T===L&&(V=!0,Q=E.route.hydrateFallbackElement||null)));let k=c.concat(m.slice(0,L+1)),Z=()=>{let J;return G?J=X:V?J=Q:E.route.Component?J=b.createElement(E.route.Component,null):E.route.element?J=E.route.element:J=_,b.createElement(kp,{match:E,routeContext:{outlet:_,matches:k,isDataRoute:o!=null},children:J})};return o&&(E.route.ErrorBoundary||E.route.errorElement||L===0)?b.createElement(nh,{location:o.location,revalidation:o.revalidation,component:X,error:G,children:Z(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:v}):Z()},null)}function fc(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wp(u){let c=b.useContext(Ka);return we(c,fc(u)),c}function Up(u){let c=b.useContext(Ns);return we(c,fc(u)),c}function Bp(u){let c=b.useContext(Zt);return we(c,fc(u)),c}function dc(u){let c=Bp(u),f=c.matches[c.matches.length-1];return we(f.route.id,`${u} can only be used on routes that contain a unique "id"`),f.route.id}function Hp(){return dc("useRouteId")}function Lp(){var o;let u=b.useContext(oc),c=Up("useRouteError"),f=dc("useRouteError");return u!==void 0?u:(o=c.errors)==null?void 0:o[f]}function qp(){let{router:u}=wp("useNavigate"),c=dc("useNavigate"),f=b.useRef(!1);return lh(()=>{f.current=!0}),b.useCallback(async(m,h={})=>{kt(f.current,th),f.current&&(typeof m=="number"?await u.navigate(m):await u.navigate(m,{fromRouteId:c,...h}))},[u,c])}var Om={};function ih(u,c,f){!c&&!Om[u]&&(Om[u]=!0,kt(!1,f))}b.memo(Yp);function Yp({routes:u,future:c,state:f,isStatic:o,onError:m}){return ah(u,void 0,{state:f,isStatic:o,onError:m})}function sa(u){we(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gp({basename:u="/",children:c=null,location:f,navigationType:o="POP",navigator:m,static:h=!1,unstable_useTransitions:p}){we(!Wn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let T=u.replace(/^\/*/,"/"),g=b.useMemo(()=>({basename:T,navigator:m,static:h,unstable_useTransitions:p,future:{}}),[T,m,h,p]);typeof f=="string"&&(f=ua(f));let{pathname:v="/",search:_="",hash:E="",state:L=null,key:G="default",unstable_mask:V}=f,X=b.useMemo(()=>{let Q=dl(v,T);return Q==null?null:{location:{pathname:Q,search:_,hash:E,state:L,key:G,unstable_mask:V},navigationType:o}},[T,v,_,E,L,G,o,V]);return kt(X!=null,`<Router basename="${T}"> is not able to match the URL "${v}${_}${E}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:b.createElement(Dt.Provider,{value:g},b.createElement($n.Provider,{children:c,value:X}))}function Xp({children:u,location:c}){return Rp(nc(u),c)}function nc(u,c=[]){let f=[];return b.Children.forEach(u,(o,m)=>{if(!b.isValidElement(o))return;let h=[...c,m];if(o.type===b.Fragment){f.push.apply(f,nc(o.props.children,h));return}we(o.type===sa,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!o.props.index||!o.props.children,"An index route cannot have child routes.");let p={id:o.props.id||h.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(p.children=nc(o.props.children,h)),f.push(p)}),f}var xs="get",gs="application/x-www-form-urlencoded";function As(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Qp(u){return As(u)&&u.tagName.toLowerCase()==="button"}function Zp(u){return As(u)&&u.tagName.toLowerCase()==="form"}function Vp(u){return As(u)&&u.tagName.toLowerCase()==="input"}function Kp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Jp(u,c){return u.button===0&&(!c||c==="_self")&&!Kp(u)}function ic(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((c,f)=>{let o=u[f];return c.concat(Array.isArray(o)?o.map(m=>[f,m]):[[f,o]])},[]))}function $p(u,c){let f=ic(u);return c&&c.forEach((o,m)=>{f.has(m)||c.getAll(m).forEach(h=>{f.append(m,h)})}),f}var vs=null;function Wp(){if(vs===null)try{new FormData(document.createElement("form"),0),vs=!1}catch{vs=!0}return vs}var Fp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fr(u){return u!=null&&!Fp.has(u)?(kt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gs}"`),null):u}function Ip(u,c){let f,o,m,h,p;if(Zp(u)){let T=u.getAttribute("action");o=T?dl(T,c):null,f=u.getAttribute("method")||xs,m=Fr(u.getAttribute("enctype"))||gs,h=new FormData(u)}else if(Qp(u)||Vp(u)&&(u.type==="submit"||u.type==="image")){let T=u.form;if(T==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=u.getAttribute("formaction")||T.getAttribute("action");if(o=g?dl(g,c):null,f=u.getAttribute("formmethod")||T.getAttribute("method")||xs,m=Fr(u.getAttribute("formenctype"))||Fr(T.getAttribute("enctype"))||gs,h=new FormData(T,u),!Wp()){let{name:v,type:_,value:E}=u;if(_==="image"){let L=v?`${v}.`:"";h.append(`${L}x`,"0"),h.append(`${L}y`,"0")}else v&&h.append(v,E)}}else{if(As(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=xs,o=null,m=gs,p=u}return h&&m==="text/plain"&&(p=h,h=void 0),{action:o,method:f.toLowerCase(),encType:m,formData:h,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mc(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function Pp(u,c,f,o){let m=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${o}`:m.pathname=`${m.pathname}.${o}`:m.pathname==="/"?m.pathname=`_root.${o}`:c&&dl(m.pathname,c)==="/"?m.pathname=`${c.replace(/\/$/,"")}/_root.${o}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${o}`,m}async function ex(u,c){if(u.id in c)return c[u.id];try{let f=await import(u.module);return c[u.id]=f,f}catch(f){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tx(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function lx(u,c,f){let o=await Promise.all(u.map(async m=>{let h=c.routes[m.route.id];if(h){let p=await ex(h,f);return p.links?p.links():[]}return[]}));return sx(o.flat(1).filter(tx).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function km(u,c,f,o,m,h){let p=(g,v)=>f[v]?g.route.id!==f[v].route.id:!0,T=(g,v)=>{var _;return f[v].pathname!==g.pathname||((_=f[v].route.path)==null?void 0:_.endsWith("*"))&&f[v].params["*"]!==g.params["*"]};return h==="assets"?c.filter((g,v)=>p(g,v)||T(g,v)):h==="data"?c.filter((g,v)=>{var E;let _=o.routes[g.route.id];if(!_||!_.hasLoader)return!1;if(p(g,v)||T(g,v))return!0;if(g.route.shouldRevalidate){let L=g.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((E=f[0])==null?void 0:E.params)||{},nextUrl:new URL(u,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof L=="boolean")return L}return!0}):[]}function ax(u,c,{includeHydrateFallback:f}={}){return nx(u.map(o=>{let m=c.routes[o.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function nx(u){return[...new Set(u)]}function ix(u){let c={},f=Object.keys(u).sort();for(let o of f)c[o]=u[o];return c}function sx(u,c){let f=new Set;return new Set(c),u.reduce((o,m)=>{let h=JSON.stringify(ix(m));return f.has(h)||(f.add(h),o.push({key:h,link:m})),o},[])}function sh(){let u=b.useContext(Ka);return mc(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function ux(){let u=b.useContext(Ns);return mc(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var hc=b.createContext(void 0);hc.displayName="FrameworkContext";function uh(){let u=b.useContext(hc);return mc(u,"You must render this element inside a <HydratedRouter> element"),u}function rx(u,c){let f=b.useContext(hc),[o,m]=b.useState(!1),[h,p]=b.useState(!1),{onFocus:T,onBlur:g,onMouseEnter:v,onMouseLeave:_,onTouchStart:E}=c,L=b.useRef(null);b.useEffect(()=>{if(u==="render"&&p(!0),u==="viewport"){let X=k=>{k.forEach(Z=>{p(Z.isIntersecting)})},Q=new IntersectionObserver(X,{threshold:.5});return L.current&&Q.observe(L.current),()=>{Q.disconnect()}}},[u]),b.useEffect(()=>{if(o){let X=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(X)}}},[o]);let G=()=>{m(!0)},V=()=>{m(!1),p(!1)};return f?u!=="intent"?[h,L,{}]:[h,L,{onFocus:Zn(T,G),onBlur:Zn(g,V),onMouseEnter:Zn(v,G),onMouseLeave:Zn(_,V),onTouchStart:Zn(E,G)}]:[!1,L,{}]}function Zn(u,c){return f=>{u&&u(f),f.defaultPrevented||c(f)}}function cx({page:u,...c}){let{router:f}=sh(),o=b.useMemo(()=>Vm(f.routes,u,f.basename),[f.routes,u,f.basename]);return o?b.createElement(fx,{page:u,matches:o,...c}):null}function ox(u){let{manifest:c,routeModules:f}=uh(),[o,m]=b.useState([]);return b.useEffect(()=>{let h=!1;return lx(u,c,f).then(p=>{h||m(p)}),()=>{h=!0}},[u,c,f]),o}function fx({page:u,matches:c,...f}){let o=Vt(),{future:m,manifest:h,routeModules:p}=uh(),{basename:T}=sh(),{loaderData:g,matches:v}=ux(),_=b.useMemo(()=>km(u,c,v,h,o,"data"),[u,c,v,h,o]),E=b.useMemo(()=>km(u,c,v,h,o,"assets"),[u,c,v,h,o]),L=b.useMemo(()=>{if(u===o.pathname+o.search+o.hash)return[];let X=new Set,Q=!1;if(c.forEach(Z=>{var Y;let J=h.routes[Z.route.id];!J||!J.hasLoader||(!_.some(K=>K.route.id===Z.route.id)&&Z.route.id in g&&((Y=p[Z.route.id])!=null&&Y.shouldRevalidate)||J.hasClientLoader?Q=!0:X.add(Z.route.id))}),X.size===0)return[];let k=Pp(u,T,m.unstable_trailingSlashAwareDataRequests,"data");return Q&&X.size>0&&k.searchParams.set("_routes",c.filter(Z=>X.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[k.pathname+k.search]},[T,m.unstable_trailingSlashAwareDataRequests,g,o,h,_,c,u,p]),G=b.useMemo(()=>ax(E,h),[E,h]),V=ox(E);return b.createElement(b.Fragment,null,L.map(X=>b.createElement("link",{key:X,rel:"prefetch",as:"fetch",href:X,...f})),G.map(X=>b.createElement("link",{key:X,rel:"modulepreload",href:X,...f})),V.map(({key:X,link:Q})=>b.createElement("link",{key:X,nonce:f.nonce,...Q,crossOrigin:Q.crossOrigin??f.crossOrigin})))}function dx(...u){return c=>{u.forEach(f=>{typeof f=="function"?f(c):f!=null&&(f.current=c)})}}var mx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mx&&(window.__reactRouterVersion="7.13.1")}catch{}function hx({basename:u,children:c,unstable_useTransitions:f,window:o}){let m=b.useRef();m.current==null&&(m.current=Ky({window:o,v5Compat:!0}));let h=m.current,[p,T]=b.useState({action:h.action,location:h.location}),g=b.useCallback(v=>{f===!1?T(v):b.startTransition(()=>T(v))},[f]);return b.useLayoutEffect(()=>h.listen(g),[h,g]),b.createElement(Gp,{basename:u,children:c,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:f})}var rh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Lt=b.forwardRef(function({onClick:c,discover:f="render",prefetch:o="none",relative:m,reloadDocument:h,replace:p,unstable_mask:T,state:g,target:v,to:_,preventScrollReset:E,viewTransition:L,unstable_defaultShouldRevalidate:G,...V},X){let{basename:Q,navigator:k,unstable_useTransitions:Z}=b.useContext(Dt),J=typeof _=="string"&&rh.test(_),Y=Fm(_,Q);_=Y.to;let K=Mp(_,{relative:m}),q=Vt(),F=null;if(T){let fe=cc(T,[],q.unstable_mask?q.unstable_mask.pathname:"/",!0);Q!=="/"&&(fe.pathname=fe.pathname==="/"?Q:Qt([Q,fe.pathname])),F=k.createHref(fe)}let[ue,Ne,De]=rx(o,V),Ve=xx(_,{replace:p,unstable_mask:T,state:g,target:v,preventScrollReset:E,relative:m,viewTransition:L,unstable_defaultShouldRevalidate:G,unstable_useTransitions:Z});function _e(fe){c&&c(fe),fe.defaultPrevented||Ve(fe)}let te=!(Y.isExternal||h),ye=b.createElement("a",{...V,...De,href:(te?F:void 0)||Y.absoluteURL||K,onClick:te?_e:c,ref:dx(X,Ne),target:v,"data-discover":!J&&f==="render"?"true":void 0});return ue&&!J?b.createElement(b.Fragment,null,ye,b.createElement(cx,{page:K})):ye});Lt.displayName="Link";var vx=b.forwardRef(function({"aria-current":c="page",caseSensitive:f=!1,className:o="",end:m=!1,style:h,to:p,viewTransition:T,children:g,...v},_){let E=Fn(p,{relative:v.relative}),L=Vt(),G=b.useContext(Ns),{navigator:V,basename:X}=b.useContext(Dt),Q=G!=null&&Nx(E)&&T===!0,k=V.encodeLocation?V.encodeLocation(E).pathname:E.pathname,Z=L.pathname,J=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;f||(Z=Z.toLowerCase(),J=J?J.toLowerCase():null,k=k.toLowerCase()),J&&X&&(J=dl(J,X)||J);const Y=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let K=Z===k||!m&&Z.startsWith(k)&&Z.charAt(Y)==="/",q=J!=null&&(J===k||!m&&J.startsWith(k)&&J.charAt(k.length)==="/"),F={isActive:K,isPending:q,isTransitioning:Q},ue=K?c:void 0,Ne;typeof o=="function"?Ne=o(F):Ne=[o,K?"active":null,q?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let De=typeof h=="function"?h(F):h;return b.createElement(Lt,{...v,"aria-current":ue,className:Ne,ref:_,style:De,to:p,viewTransition:T},typeof g=="function"?g(F):g)});vx.displayName="NavLink";var yx=b.forwardRef(({discover:u="render",fetcherKey:c,navigate:f,reloadDocument:o,replace:m,state:h,method:p=xs,action:T,onSubmit:g,relative:v,preventScrollReset:_,viewTransition:E,unstable_defaultShouldRevalidate:L,...G},V)=>{let{unstable_useTransitions:X}=b.useContext(Dt),Q=Sx(),k=jx(T,{relative:v}),Z=p.toLowerCase()==="get"?"get":"post",J=typeof T=="string"&&rh.test(T),Y=K=>{if(g&&g(K),K.defaultPrevented)return;K.preventDefault();let q=K.nativeEvent.submitter,F=(q==null?void 0:q.getAttribute("formmethod"))||p,ue=()=>Q(q||K.currentTarget,{fetcherKey:c,method:F,navigate:f,replace:m,state:h,relative:v,preventScrollReset:_,viewTransition:E,unstable_defaultShouldRevalidate:L});X&&f!==!1?b.startTransition(()=>ue()):ue()};return b.createElement("form",{ref:V,method:Z,action:k,onSubmit:o?g:Y,...G,"data-discover":!J&&u==="render"?"true":void 0})});yx.displayName="Form";function px(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ch(u){let c=b.useContext(Ka);return we(c,px(u)),c}function xx(u,{target:c,replace:f,unstable_mask:o,state:m,preventScrollReset:h,relative:p,viewTransition:T,unstable_defaultShouldRevalidate:g,unstable_useTransitions:v}={}){let _=Es(),E=Vt(),L=Fn(u,{relative:p});return b.useCallback(G=>{if(Jp(G,c)){G.preventDefault();let V=f!==void 0?f:Kn(E)===Kn(L),X=()=>_(u,{replace:V,unstable_mask:o,state:m,preventScrollReset:h,relative:p,viewTransition:T,unstable_defaultShouldRevalidate:g});v?b.startTransition(()=>X()):X()}},[E,_,L,f,o,m,c,u,h,p,T,g,v])}function oh(u){kt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let c=b.useRef(ic(u)),f=b.useRef(!1),o=Vt(),m=b.useMemo(()=>$p(o.search,f.current?null:c.current),[o.search]),h=Es(),p=b.useCallback((T,g)=>{const v=ic(typeof T=="function"?T(new URLSearchParams(m)):T);f.current=!0,h("?"+v,g)},[h,m]);return[m,p]}var gx=0,bx=()=>`__${String(++gx)}__`;function Sx(){let{router:u}=ch("useSubmit"),{basename:c}=b.useContext(Dt),f=Hp(),o=u.fetch,m=u.navigate;return b.useCallback(async(h,p={})=>{let{action:T,method:g,encType:v,formData:_,body:E}=Ip(h,c);if(p.navigate===!1){let L=p.fetcherKey||bx();await o(L,f,p.action||T,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:_,body:E,formMethod:p.method||g,formEncType:p.encType||v,flushSync:p.flushSync})}else await m(p.action||T,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:_,body:E,formMethod:p.method||g,formEncType:p.encType||v,replace:p.replace,state:p.state,fromRouteId:f,flushSync:p.flushSync,viewTransition:p.viewTransition})},[o,m,c,f])}function jx(u,{relative:c}={}){let{basename:f}=b.useContext(Dt),o=b.useContext(Zt);we(o,"useFormAction must be used inside a RouteContext");let[m]=o.matches.slice(-1),h={...Fn(u||".",{relative:c})},p=Vt();if(u==null){h.search=p.search;let T=new URLSearchParams(h.search),g=T.getAll("index");if(g.some(_=>_==="")){T.delete("index"),g.filter(E=>E).forEach(E=>T.append("index",E));let _=T.toString();h.search=_?`?${_}`:""}}return(!u||u===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:Qt([f,h.pathname])),Kn(h)}function Nx(u,{relative:c}={}){let f=b.useContext(Pm);we(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ch("useViewTransitionState"),m=Fn(u,{relative:c});if(!f.isTransitioning)return!1;let h=dl(f.currentLocation.pathname,o)||f.currentLocation.pathname,p=dl(f.nextLocation.pathname,o)||f.nextLocation.pathname;return Ss(m.pathname,p)!=null||Ss(m.pathname,h)!=null}const Ex="";async function jt(u,c){const f=await fetch(`${Ex}${u}`,c);if(!f.ok){const o=await f.json().catch(()=>({error:f.statusText}));throw new Error(o.error||`HTTP ${f.status}`)}return f.json()}const He={getConfig(){return jt("/api/config")},setConfig(u,c){return jt("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:u,model:c})})},getSkills(){return jt("/api/skills")},getSkillDetail(u,c){return jt(`/api/skills/${u}/${c}`)},getEvals(u,c){return jt(`/api/skills/${u}/${c}/evals`)},saveEvals(u,c,f){return jt(`/api/skills/${u}/${c}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})},generateEvals(u,c){return jt(`/api/skills/${u}/${c}/generate-evals`,{method:"POST"})},getLatestBenchmark(u,c){return jt(`/api/skills/${u}/${c}/benchmark/latest`)},getHistory(u,c,f){const o=new URLSearchParams;f!=null&&f.model&&o.set("model",f.model),f!=null&&f.type&&o.set("type",f.type),f!=null&&f.from&&o.set("from",f.from),f!=null&&f.to&&o.set("to",f.to);const m=o.toString();return jt(`/api/skills/${u}/${c}/history${m?"?"+m:""}`)},getHistoryEntry(u,c,f){return jt(`/api/skills/${u}/${c}/history/${encodeURIComponent(f)}`)},compareRuns(u,c,f,o){return jt(`/api/skills/${u}/${c}/history-compare?a=${encodeURIComponent(f)}&b=${encodeURIComponent(o)}`)},getCaseHistory(u,c,f,o){const m=new URLSearchParams;o&&m.set("model",o);const h=m.toString();return jt(`/api/skills/${u}/${c}/history/case/${f}${h?"?"+h:""}`)},deleteHistoryEntry(u,c,f){return jt(`/api/skills/${u}/${c}/history/${encodeURIComponent(f)}`,{method:"DELETE"})}},Dm={pass:{bg:"var(--green-muted)",text:"var(--green)",dot:"var(--green)",label:"Passing"},fail:{bg:"var(--red-muted)",text:"var(--red)",dot:"var(--red)",label:"Failing"},pending:{bg:"var(--yellow-muted)",text:"var(--yellow)",dot:"var(--yellow)",label:"Pending"},missing:{bg:"var(--surface-3)",text:"var(--text-tertiary)",dot:"var(--text-tertiary)",label:"No evals"}};function Ir(){return s.jsx("div",{className:"glass-card p-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),s.jsx("div",{className:"skeleton h-3.5 w-48"})]}),s.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function Tx(){const[u,c]=b.useState([]),[f,o]=b.useState(!0),[m,h]=b.useState(null);b.useEffect(()=>{He.getSkills().then(c).catch(T=>h(T.message)).finally(()=>o(!1))},[]);const p=u.reduce((T,g)=>{var v;return(T[v=g.plugin]||(T[v]=[])).push(g),T},{});return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),s.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:f?"Scanning plugins...":`${u.length} skill${u.length!==1?"s":""} across ${Object.keys(p).length} plugin${Object.keys(p).length!==1?"s":""}`})]}),m&&s.jsx("div",{className:"mb-6 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:m}),f&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(Ir,{}),s.jsx(Ir,{}),s.jsx(Ir,{})]}),!f&&s.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(p).map(([T,g])=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),s.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:T}),s.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),s.jsx("div",{className:"grid gap-2",children:g.map(v=>{const _=Dm[v.benchmarkStatus]||Dm.missing;return s.jsxs(Lt,{to:`/skills/${v.plugin}/${v.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:v.skill})}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[v.evalCount," eval",v.evalCount!==1?"s":""]}),s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[v.assertionCount," assertion",v.assertionCount!==1?"s":""]}),v.lastBenchmark&&s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(v.lastBenchmark).toLocaleDateString()})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"pill",style:{background:_.bg,color:_.text},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:_.dot}}),_.label]}),s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",style:{transform:"translateX(0)",transition:"transform 0.15s ease"},children:s.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${v.plugin}/${v.skill}`)})})]},T))}),!f&&u.length===0&&!m&&s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),s.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function Ms(){const[u,c]=b.useState([]),[f,o]=b.useState(!1),[m,h]=b.useState(!1),[p,T]=b.useState(null),g=b.useRef(null),v=b.useCallback(async(E,L)=>{c([]),o(!0),h(!1),T(null);const G=new AbortController;g.current=G;try{const V=await fetch(E,{method:"POST",headers:{"Content-Type":"application/json"},body:L?JSON.stringify(L):void 0,signal:G.signal});if(!V.ok||!V.body)throw new Error(`HTTP ${V.status}`);const X=V.body.getReader(),Q=new TextDecoder;let k="",Z="";for(;;){const{done:J,value:Y}=await X.read();if(J)break;k+=Q.decode(Y,{stream:!0});const K=k.split(`
61
- `);k=K.pop()||"";for(const q of K)if(q.startsWith("event: "))Z=q.slice(7).trim();else if(q.startsWith("data: ")){try{const F=JSON.parse(q.slice(6)),ue={event:Z,data:F};Z==="done"?(h(!0),c(Ne=>[...Ne,ue])):c(Ne=>[...Ne,ue])}catch{}Z=""}}}catch(V){V.name!=="AbortError"&&T(V.message)}finally{o(!1),g.current=null}},[]),_=b.useCallback(()=>{var E;(E=g.current)==null||E.abort()},[]);return{events:u,running:f,done:m,error:p,start:v,stop:_}}function Ax(){const{plugin:u,skill:c}=Ts(),[f,o]=b.useState(null),[m,h]=b.useState(!0),[p,T]=b.useState(null),[g,v]=b.useState(!1),[_,E]=b.useState(null),[L,G]=b.useState(!1),{events:V,running:X,start:Q}=Ms(),[k,Z]=b.useState(null),[J,Y]=b.useState(new Map),[K,q]=b.useState(new Set),[F,ue]=b.useState(null),[Ne,De]=b.useState(!1),[Ve,_e]=b.useState(null);b.useEffect(()=>{!u||!c||(He.getEvals(u,c).then(o).catch(x=>T(x.message)).finally(()=>h(!1)),He.getLatestBenchmark(u,c).then(x=>{ue(x);const S=new Map;for(const C of x.cases)S.set(C.eval_id,{status:C.status,passRate:C.pass_rate,errorMessage:C.error_message||void 0,durationMs:C.durationMs,tokens:C.tokens,assertions:C.assertions.map(W=>({assertion_id:W.id,text:W.text,pass:W.pass,reasoning:W.reasoning}))});Y(S)}).catch(()=>{}))},[u,c]);async function te(x){if(!(!u||!c)){v(!0);try{const S=await He.saveEvals(u,c,x);o(S),T(null)}catch(S){T(S.message)}finally{v(!1)}}}function ye(x){f&&(te({...f,evals:[...f.evals,x]}),G(!1))}function fe(x){f&&(te({...f,evals:f.evals.map(S=>S.id===x.id?x:S)}),E(null))}function D(x){!f||!confirm("Delete this eval case?")||te({...f,evals:f.evals.filter(S=>S.id!==x)})}function $(x){if(!f)return;const S=f.evals.find(C=>C.id===x);S&&fe({...S,assertions:[...S.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function le(x,S,C){if(!f)return;const W=f.evals.find(ne=>ne.id===x);W&&fe({...W,assertions:W.assertions.map(ne=>ne.id===S?{...ne,text:C}:ne)})}function se(x,S){if(!f)return;const C=f.evals.find(W=>W.id===x);C&&fe({...C,assertions:C.assertions.filter(W=>W.id!==S)})}async function ge(){if(!(!u||!c)){De(!0),_e(null);try{const x=await He.generateEvals(u,c),S=await He.saveEvals(u,c,x);o(S),T(null)}catch(x){_e(x.message)}finally{De(!1)}}}b.useEffect(()=>{if(!k)return;const x={assertions:[]};for(const S of V){if(S.event==="output_ready"){const C=S.data;C.eval_id===k&&(x.output=C.output,C.durationMs!=null&&(x.durationMs=C.durationMs),C.tokens!=null&&(x.tokens=C.tokens))}if(S.event==="assertion_result"){const C=S.data;C.eval_id===k&&!x.assertions.find(W=>W.assertion_id===C.assertion_id)&&x.assertions.push(C)}if(S.event==="case_complete"){const C=S.data;C.eval_id===k&&(x.status=C.status,x.passRate=C.pass_rate,x.errorMessage=C.error_message||void 0)}}Y(S=>new Map(S).set(k,x))},[V,k]),b.useEffect(()=>{!X&&k&&Z(null)},[X,k]);function N(x){Z(x),q(S=>new Set(S).add(x)),Q(`/api/skills/${u}/${c}/benchmark`,{eval_ids:[x]})}function U(x){q(S=>{const C=new Set(S);return C.has(x)?C.delete(x):C.add(x),C})}return m?s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"skeleton h-32 rounded-xl"}),s.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[s.jsx(Lt,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:x=>{x.currentTarget.style.color="var(--text-primary)"},onMouseLeave:x=>{x.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:u}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:c})]}),f&&s.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[s.jsxs(Lt,{to:`/skills/${u}/${c}/benchmark`,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),s.jsxs(Lt,{to:`/skills/${u}/${c}/compare`,className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),s.jsxs(Lt,{to:`/skills/${u}/${c}/history`,className:"btn btn-secondary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),F&&!X&&(()=>{const x=F.cases.filter(xe=>xe.status==="pass").length,S=F.cases.length,C=F.overall_pass_rate!==void 0?Math.round(F.overall_pass_rate*100):S>0?Math.round(x/S*100):0,W=F.cases.reduce((xe,Le)=>xe+(Le.durationMs??0),0),ne=new Date(F.timestamp),I=Mx(ne);return s.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg flex items-center justify-between",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"text-[20px] font-bold",style:{color:C>=80?"var(--green)":C>=50?"var(--yellow)":"var(--red)"},children:[C,"%"]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:["Last Benchmark — ",x,"/",S," passed"]}),s.jsxs("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:[F.model," · ",I,W>0?` · ${(W/1e3).toFixed(1)}s`:""]})]})]}),s.jsx("span",{className:"pill",style:{background:C>=80?"var(--green-muted)":C>=50?"var(--yellow-muted)":"var(--red-muted)",color:C>=80?"var(--green)":C>=50?"var(--yellow)":"var(--red)"},children:C>=80?"Healthy":C>=50?"Needs Work":"Failing"})]})})(),p&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:p}),f?s.jsxs("div",{className:"space-y-3 stagger-children",children:[f.evals.map(x=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",x.id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:x.name})]}),s.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:x.prompt})]}),s.jsxs("div",{className:"flex gap-1 ml-3",children:[s.jsx("button",{onClick:()=>N(x.id),disabled:X,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:k===x.id?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}})," Running..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run"]})}),s.jsx("button",{onClick:()=>{E(x),G(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),s.jsx("button",{onClick:()=>D(x.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:x.assertions.length})]}),s.jsx("div",{className:"space-y-1.5",children:x.assertions.map(S=>s.jsxs("div",{className:"flex items-center gap-2 group",children:[s.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:S.id}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:S.text,onChange:C=>le(x.id,S.id,C.target.value),onFocus:C=>{C.currentTarget.style.borderColor="var(--border-default)",C.currentTarget.style.background="var(--surface-2)"},onBlur:C=>{C.currentTarget.style.borderColor="transparent",C.currentTarget.style.background="transparent"}}),s.jsx("button",{onClick:()=>se(x.id,S.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},S.id))}),s.jsxs("button",{onClick:()=>$(x.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]}),(()=>{const S=J.get(x.id);if(!S||S.assertions.length===0&&!S.status)return null;const C=K.has(x.id);return s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Benchmark Result"}),S.durationMs!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(S.durationMs/1e3).toFixed(1),"s"]}),S.tokens!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[S.tokens.toLocaleString()," tok"]})]}),S.status?s.jsxs("span",{className:"pill",style:{background:S.status==="pass"?"var(--green-muted)":S.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:S.status==="pass"?"var(--green)":S.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:S.status==="pass"?"var(--green)":S.status==="error"?"var(--yellow)":"var(--red)"}}),S.status," ",S.passRate!==void 0?`${Math.round(S.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),S.errorMessage&&s.jsx("div",{className:"mb-2 p-2 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:S.errorMessage}),s.jsx("div",{className:"space-y-1.5",children:S.assertions.map(W=>s.jsxs("div",{className:"flex items-start gap-2 p-2 rounded-lg animate-fade-in",style:{background:W.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:W.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:W.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:W.text||W.assertion_id}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-secondary)"},children:W.reasoning})]})]},W.assertion_id))}),S.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>U(x.id),className:"mt-2 flex items-center gap-1.5 text-[11px] font-medium transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:W=>{W.currentTarget.style.color="var(--text-primary)"},onMouseLeave:W=>{W.currentTarget.style.color="var(--text-tertiary)"},children:[s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:C?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),C?"Hide Output":"Show LLM Output"]}),C&&s.jsx("div",{className:"mt-2 text-[11px] leading-relaxed p-3 rounded-lg max-h-48 overflow-y-auto whitespace-pre-wrap animate-fade-in",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:S.output})]})]})})()]},x.id)),s.jsx("button",{onClick:()=>{E(null),G(!0)},className:"w-full p-4 rounded-xl text-[13px] font-medium transition-all duration-150",style:{border:"2px dashed var(--border-default)",color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:x=>{x.currentTarget.style.borderColor="var(--accent)",x.currentTarget.style.color="var(--accent)",x.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:x=>{x.currentTarget.style.borderColor="var(--border-default)",x.currentTarget.style.color="var(--text-tertiary)",x.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:Ne?s.jsx("div",{className:"spinner",style:{width:28,height:28}}):s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),Ne?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"Generating eval cases..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:"This may take 10–30 seconds"})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),Ve&&s.jsx("div",{className:"mt-3 mx-auto max-w-md px-4 py-3 rounded-lg text-[13px] text-left",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:Ve}),s.jsxs("div",{className:"flex items-center justify-center gap-2 mt-3",children:[s.jsxs("button",{onClick:ge,className:"btn btn-primary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5z"}),s.jsx("path",{d:"M2 17l10 5 10-5"}),s.jsx("path",{d:"M2 12l10 5 10-5"})]}),"Generate with AI"]}),s.jsx("button",{onClick:()=>G(!0),className:"btn btn-secondary",children:"Create Manually"})]})]})]}),L&&s.jsx(zx,{evalCase:_,skillName:(f==null?void 0:f.skill_name)||c||"",existingIds:(f==null?void 0:f.evals.map(x=>x.id))||[],onSave:x=>_?fe(x):ye(x),onCancel:()=>{G(!1),E(null)}}),g&&s.jsxs("div",{className:"fixed bottom-5 right-5 flex items-center gap-2 px-4 py-2.5 rounded-lg text-[13px] animate-fade-in-scale",style:{background:"var(--accent)",color:"#fff",boxShadow:"0 8px 32px rgba(99,131,255,0.3)"},children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function Mx(u){const c=Math.floor((Date.now()-u.getTime())/1e3);if(c<60)return"just now";const f=Math.floor(c/60);if(f<60)return`${f}m ago`;const o=Math.floor(f/60);if(o<24)return`${o}h ago`;const m=Math.floor(o/24);return m<30?`${m}d ago`:u.toLocaleDateString()}function zx({evalCase:u,skillName:c,existingIds:f,onSave:o,onCancel:m}){const[h,p]=b.useState((u==null?void 0:u.name)||""),[T,g]=b.useState((u==null?void 0:u.prompt)||""),[v,_]=b.useState((u==null?void 0:u.expected_output)||""),[E,L]=b.useState((u==null?void 0:u.assertions)||[{id:"assert-1",text:"",type:"boolean"}]),G=b.useRef(null),V=b.useRef(null),X=b.useRef(null);b.useEffect(()=>{const Z=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=Z}},[]),b.useEffect(()=>{requestAnimationFrame(()=>{var Z;return(Z=X.current)==null?void 0:Z.focus()})},[]),b.useEffect(()=>{function Z(J){J.key==="Escape"&&m()}return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[m]);const Q=b.useCallback(Z=>{Z.target===G.current&&m()},[m]);function k(Z){Z.preventDefault();const J=(u==null?void 0:u.id)??(f.length>0?Math.max(...f)+1:1);o({id:J,name:h,prompt:T,expected_output:v,files:(u==null?void 0:u.files)||[],assertions:E.filter(Y=>Y.text.trim())})}return s.jsx("div",{ref:G,onClick:Q,className:"fixed inset-0 z-50 flex items-center justify-center p-4 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(8px)"},children:s.jsxs("form",{ref:V,onSubmit:k,className:"w-full max-w-2xl animate-modal-in flex flex-col",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)",borderRadius:"16px",boxShadow:"0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04)",maxHeight:"min(85vh, 720px)"},children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 flex-shrink-0",style:{borderBottom:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u?s.jsxs(s.Fragment,{children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-[15px] font-semibold",style:{color:"var(--text-primary)"},children:u?"Edit Eval Case":"New Eval Case"}),u&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:["#",u.id]})]})]}),s.jsx("button",{type:"button",onClick:m,className:"w-8 h-8 rounded-lg flex items-center justify-center transition-colors duration-150",style:{color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:Z=>{Z.currentTarget.style.background="var(--surface-3)",Z.currentTarget.style.color="var(--text-primary)"},onMouseLeave:Z=>{Z.currentTarget.style.background="transparent",Z.currentTarget.style.color="var(--text-tertiary)"},"aria-label":"Close",children:s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),s.jsxs("div",{className:"overflow-y-auto flex-1 px-6 py-5",style:{minHeight:0},children:[s.jsxs("label",{className:"block mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),s.jsx("input",{ref:X,className:"input-field",value:h,onChange:Z=>p(Z.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),s.jsxs("label",{className:"block mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),s.jsx("textarea",{className:"input-field resize-y",style:{minHeight:"96px"},value:T,onChange:Z=>g(Z.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),s.jsxs("label",{className:"block mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),s.jsx("textarea",{className:"input-field resize-y",style:{minHeight:"80px"},value:v,onChange:Z=>_(Z.target.value),placeholder:"What a good answer should include..."})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Assertions"}),s.jsx("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded-full",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:E.length})]}),s.jsxs("button",{type:"button",onClick:()=>L([...E,{id:`assert-${E.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] py-1 px-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add"]})]}),s.jsx("div",{className:"space-y-2",children:E.map((Z,J)=>s.jsxs("div",{className:"flex items-center gap-2 p-2.5 rounded-lg group transition-colors duration-150",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("input",{className:"input-field text-[11px] font-mono py-1.5 px-2",style:{background:"var(--surface-3)",width:"120px",flexShrink:0},value:Z.id,onChange:Y=>{const K=[...E];K[J]={...K[J],id:Y.target.value},L(K)},placeholder:"ID"}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5 px-2.5",style:{background:"transparent",borderColor:"transparent"},value:Z.text,onChange:Y=>{const K=[...E];K[J]={...K[J],text:Y.target.value},L(K)},onFocus:Y=>{Y.currentTarget.style.borderColor="var(--border-default)",Y.currentTarget.style.background="var(--surface-1)"},onBlur:Y=>{Y.currentTarget.style.borderColor="transparent",Y.currentTarget.style.background="transparent"},placeholder:"Assertion text"}),s.jsx("button",{type:"button",onClick:()=>L(E.filter((Y,K)=>K!==J)),className:"w-7 h-7 rounded-md flex items-center justify-center flex-shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-150",style:{color:"var(--red)",background:"transparent"},onMouseEnter:Y=>{Y.currentTarget.style.background="var(--red-muted)"},onMouseLeave:Y=>{Y.currentTarget.style.background="transparent"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},J))}),E.length===0&&s.jsx("div",{className:"text-center py-6 rounded-lg text-[12px]",style:{background:"var(--surface-2)",color:"var(--text-tertiary)",border:"1px dashed var(--border-default)"},children:"No assertions yet. Add one to validate the eval output."})]})]}),s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 flex-shrink-0",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:["Press ",s.jsx("kbd",{className:"px-1.5 py-0.5 rounded text-[10px] font-mono",style:{background:"var(--surface-3)",border:"1px solid var(--border-subtle)"},children:"Esc"})," to cancel"]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),s.jsxs("button",{type:"submit",className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}),u?"Save Changes":"Create Case"]})]})]})]})})}const fl=220,Vn=32,wm=4,Um=28,ys=44,Bm=16,ia=40,Rx=52;function fh({title:u,groups:c,seriesColors:f,seriesLabels:o,maxValue:m,formatValue:h=T=>T.toFixed(1),yLabel:p}){const T=o.length,g=T*Vn+(T-1)*wm,v=ys+Bm+c.length*g+(c.length-1)*Um,_=ia+fl+Rx,E=5,L=Array.from({length:E+1},(G,V)=>m/E*V);return s.jsxs("div",{className:"glass-card p-5 overflow-x-auto animate-fade-in",children:[s.jsx("div",{className:"text-[13px] font-semibold mb-4",style:{color:"var(--text-primary)"},children:u}),s.jsx("div",{className:"flex items-center gap-5 mb-3",children:o.map((G,V)=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-3 h-3 rounded-[3px]",style:{background:f[V]}}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-secondary)"},children:G})]},G))}),s.jsxs("svg",{width:Math.max(v,300),height:_,viewBox:`0 0 ${Math.max(v,300)} ${_}`,style:{display:"block"},children:[p&&s.jsx("text",{x:12,y:ia+fl/2,transform:`rotate(-90, 12, ${ia+fl/2})`,textAnchor:"middle",style:{fill:"var(--text-tertiary)",fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em"},children:p}),L.map(G=>{const V=ia+fl-G/m*fl;return s.jsxs("g",{children:[s.jsx("line",{x1:ys,y1:V,x2:Math.max(v,300)-Bm,y2:V,stroke:"var(--border-subtle)",strokeWidth:G===0?1:.5,strokeDasharray:G===0?void 0:"4 4"}),s.jsx("text",{x:ys-8,y:V+3.5,textAnchor:"end",style:{fill:"var(--text-tertiary)",fontSize:10},children:G%1===0?G.toFixed(0):G.toFixed(1)})]},G)}),c.map((G,V)=>{const X=ys+V*(g+Um);return s.jsxs("g",{children:[G.values.map((Q,k)=>{const Z=Math.max(0,Q.value/m*fl),J=X+k*(Vn+wm),Y=ia+fl-Z;return s.jsxs("g",{children:[s.jsxs("rect",{x:J,y:Y,width:Vn,height:Z,rx:4,ry:4,fill:f[k],opacity:.85,children:[s.jsx("animate",{attributeName:"height",from:"0",to:Z,dur:"0.5s",fill:"freeze"}),s.jsx("animate",{attributeName:"y",from:ia+fl,to:Y,dur:"0.5s",fill:"freeze"})]}),s.jsx("text",{x:J+Vn/2,y:Y-6,textAnchor:"middle",style:{fill:"var(--text-secondary)",fontSize:10,fontWeight:600},children:h(Q.value)}),Q.label&&s.jsx("text",{x:J+Vn/2,y:Y-17,textAnchor:"middle",style:{fill:"var(--text-tertiary)",fontSize:9},children:Q.label})]},k)}),s.jsx("text",{x:X+g/2,y:ia+fl+18,textAnchor:"middle",style:{fill:"var(--text-secondary)",fontSize:11},children:_x(G.label,14)})]},G.label)})]})]})}function _x(u,c){return u.length<=c?u:u.slice(0,c-1)+"…"}function Cx(){const{plugin:u,skill:c}=Ts(),[f]=oh(),o=Es(),{events:m,running:h,done:p,error:T,start:g}=Ms(),[v,_]=b.useState(new Set),[E,L]=b.useState(null),[G,V]=b.useState(null),[X,Q]=b.useState(null),[k,Z]=b.useState(null),[J,Y]=b.useState(!1),[K,q]=b.useState(null),[F,ue]=b.useState([]),[Ne,De]=b.useState(""),[Ve,_e]=b.useState(!1),te=b.useRef(!1);b.useEffect(()=>{He.getConfig().then(x=>L(x.model)).catch(()=>{}),u&&c&&(He.getEvals(u,c).then(V).catch(()=>{}),He.getLatestBenchmark(u,c).then(Z).catch(()=>{}))},[u,c]),b.useEffect(()=>{if(te.current||!u||!c)return;const x=f.get("autostart"),S=f.get("mode");x==="true"&&(te.current=!0,S==="baseline"?fe():ye())},[u,c,f]);function ye(x){He.getConfig().then(C=>L(C.model)).catch(()=>{}),_(new Set),Y(!1),Q((x==null?void 0:x.length)===1?x[0]:"all");const S=x?{eval_ids:x}:void 0;g(`/api/skills/${u}/${c}/benchmark`,S)}function fe(){He.getConfig().then(x=>L(x.model)).catch(()=>{}),_(new Set),Y(!0),Q("all"),g(`/api/skills/${u}/${c}/baseline`)}function D(x){if(K===x){q(null),ue([]),De("");return}q(x),De(""),$(x)}function $(x,S){!u||!c||(_e(!0),He.getCaseHistory(u,c,x,S||void 0).then(ue).catch(()=>ue([])).finally(()=>_e(!1)))}function le(x){_(S=>{const C=new Set(S);return C.has(x)?C.delete(x):C.add(x),C})}const se=new Map;for(const x of m){if(x.event==="case_start"){const S=x.data;se.has(S.eval_id)||se.set(S.eval_id,{name:S.eval_name,assertions:[]})}if(x.event==="output_ready"){const S=x.data,C=se.get(S.eval_id)||{assertions:[]};C.output=S.output,S.durationMs!=null&&(C.durationMs=S.durationMs),S.tokens!=null&&(C.tokens=S.tokens),se.set(S.eval_id,C)}if(x.event==="assertion_result"){const S=x.data,C=se.get(S.eval_id)||{assertions:[]};C.assertions.find(W=>W.assertion_id===S.assertion_id)||(C.assertions.push(S),se.set(S.eval_id,C))}if(x.event==="case_complete"){const S=x.data,C=se.get(S.eval_id)||{assertions:[]};C.status=S.status,C.passRate=S.pass_rate,C.errorMessage=S.error_message||void 0,se.set(S.eval_id,C)}}const ge=m.find(x=>x.event==="done"),N=ge==null?void 0:ge.data,U=(N==null?void 0:N.overall_pass_rate)!==void 0?Math.round(N.overall_pass_rate*100):null;return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Lt,{to:`/skills/${u}/${c}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:x=>{x.currentTarget.style.color="var(--text-primary)"},onMouseLeave:x=>{x.currentTarget.style.color="var(--text-tertiary)"},children:c}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:J?"Baseline (no skill)":"Benchmark"})]}),s.jsx("div",{className:"mb-3",children:s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs your skill against each eval case. An LLM judge grades every assertion against the actual output."})}),s.jsxs("div",{className:"flex items-center gap-2 mb-7",children:[s.jsx("button",{onClick:()=>ye(),disabled:h,className:"btn btn-primary",children:h&&X==="all"&&!J?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running All..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run All (",(G==null?void 0:G.evals.length)??0," cases)"]})}),s.jsx("button",{onClick:()=>fe(),disabled:h,className:"btn btn-ghost",style:{color:"#f97316"},children:h&&J?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#f97316",borderColor:"rgba(249,115,22,0.2)",width:14,height:14}})," Running Baseline..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"})]})," Run Baseline"]})}),s.jsxs("button",{onClick:()=>o(`/skills/${u}/${c}/compare`),className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"20",x2:"18",y2:"10"}),s.jsx("line",{x1:"12",y1:"20",x2:"12",y2:"4"}),s.jsx("line",{x1:"6",y1:"20",x2:"6",y2:"14"})]}),"Run A/B"]})]}),T&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:T}),!h&&se.size===0&&k&&(()=>{const x=k.cases.filter(I=>I.status==="pass").length,S=k.cases.length,C=k.overall_pass_rate!==void 0?Math.round(k.overall_pass_rate*100):S>0?Math.round(x/S*100):0,W=k.cases.reduce((I,xe)=>I+(xe.durationMs??0),0),ne=new Date(k.timestamp);return s.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg flex items-center justify-between",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"text-[20px] font-bold",style:{color:C>=80?"var(--green)":C>=50?"var(--yellow)":"var(--red)"},children:[C,"%"]}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-[12px] font-medium",style:{color:"var(--text-primary)"},children:["Last Benchmark — ",x,"/",S," passed"]}),s.jsxs("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:[k.model," · ",ne.toLocaleString(),W>0?` · ${(W/1e3).toFixed(1)}s`:""]})]})]}),s.jsx("span",{className:"pill",style:{background:C>=80?"var(--green-muted)":C>=50?"var(--yellow-muted)":"var(--red-muted)",color:C>=80?"var(--green)":C>=50?"var(--yellow)":"var(--red)"},children:C>=80?"Healthy":C>=50?"Needs Work":"Failing"})]})})(),!h&&se.size===0&&G&&G.evals.length>0&&s.jsxs("div",{className:"space-y-2 mb-6",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Eval Cases"}),G.evals.map(x=>{const S=k==null?void 0:k.cases.find(C=>C.eval_id===x.id);return s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-100",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",x.id]}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium truncate",style:{color:"var(--text-primary)"},children:x.name}),s.jsxs("div",{className:"text-[11px] truncate mt-0.5",style:{color:"var(--text-tertiary)"},children:[x.assertions.length," assertion",x.assertions.length!==1?"s":""]})]}),S&&s.jsxs("span",{className:"pill flex-shrink-0",style:{background:S.status==="pass"?"var(--green-muted)":S.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:S.status==="pass"?"var(--green)":S.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:S.status==="pass"?"var(--green)":S.status==="error"?"var(--yellow)":"var(--red)"}}),S.status," ",Math.round(S.pass_rate*100),"%",S.durationMs!=null&&s.jsxs("span",{className:"ml-1 opacity-70",children:[(S.durationMs/1e3).toFixed(1),"s"]})]}),s.jsxs("button",{onClick:()=>ye([x.id]),disabled:h,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run"]})]},x.id)})]}),se.size>0&&s.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(se.entries()).map(([x,S])=>{const C=v.has(x),W=!!S.status,ne=K===x;return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5",style:{cursor:W?"pointer":"default"},onClick:()=>{W&&D(x)},children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",x]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:S.name||"Eval Case"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[S.durationMs!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(S.durationMs/1e3).toFixed(1),"s"]}),S.tokens!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[S.tokens.toLocaleString()," tok"]}),S.status?s.jsxs("span",{className:"pill",style:{background:S.status==="pass"?"var(--green-muted)":S.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:S.status==="pass"?"var(--green)":S.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:S.status==="pass"?"var(--green)":S.status==="error"?"var(--yellow)":"var(--red)"}}),S.status," ",S.passRate!==void 0?`${Math.round(S.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]}),W&&s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:ne?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease",flexShrink:0},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),S.errorMessage&&s.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:S.errorMessage}),s.jsx("div",{className:"space-y-2",children:S.assertions.map(I=>s.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:I.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:I.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:I.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:I.text||I.assertion_id}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:I.reasoning})]})]},I.assertion_id))})]}),ne&&s.jsxs("div",{className:"px-5 py-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)",background:"var(--surface-1)"},onClick:I=>I.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Case History"}),s.jsxs("select",{value:Ne,onChange:I=>{De(I.target.value),$(x,I.target.value)},className:"text-[11px] px-2 py-1 rounded",style:{background:"var(--surface-2)",color:"var(--text-secondary)",border:"1px solid var(--border-subtle)"},children:[s.jsx("option",{value:"",children:"All models"}),[...new Set(F.map(I=>I.model))].map(I=>s.jsx("option",{value:I,children:I},I))]})]}),Ve?s.jsx("div",{className:"flex items-center justify-center py-4",children:s.jsx("div",{className:"spinner",style:{width:16,height:16}})}):F.length===0?s.jsx("div",{className:"text-[12px] py-3 text-center",style:{color:"var(--text-tertiary)"},children:"No history found for this case."}):s.jsxs(s.Fragment,{children:[F.length>=2&&(()=>{const I=F.slice().reverse(),xe=200,Le=40,lt=4,ra=1,Ja=(xe-lt*2)/(I.length-1);return s.jsx("div",{className:"mb-3",children:s.jsxs("svg",{width:xe,height:Le,style:{display:"block"},children:[s.jsx("polyline",{points:I.map((wt,ml)=>{const ql=lt+ml*Ja,$a=Le-lt-wt.pass_rate/ra*(Le-lt*2);return`${ql.toFixed(1)},${$a.toFixed(1)}`}).join(" "),fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),I.map((wt,ml)=>{const ql=lt+ml*Ja,$a=Le-lt-wt.pass_rate/ra*(Le-lt*2);return s.jsx("circle",{cx:ql,cy:$a,r:"2.5",fill:"var(--accent)"},ml)})]})})})(),s.jsx("div",{className:"space-y-1.5",children:F.map((I,xe)=>{const Le=Math.round(I.pass_rate*100),lt=new Date(I.timestamp);return s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-lg text-[12px]",style:{background:"var(--surface-2)"},children:[s.jsxs("span",{className:"text-[11px] flex-shrink-0",style:{color:"var(--text-tertiary)"},children:[lt.toLocaleDateString()," ",lt.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),s.jsx("span",{className:"pill flex-shrink-0",style:{background:"var(--surface-3)",color:"var(--text-secondary)",fontSize:"10px"},children:I.model}),s.jsxs("span",{className:"pill flex-shrink-0",style:{background:Le>=80?"var(--green-muted)":Le>=50?"var(--yellow-muted)":"var(--red-muted)",color:Le>=80?"var(--green)":Le>=50?"var(--yellow)":"var(--red)",fontSize:"10px"},children:[Le,"%"]}),I.durationMs!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(I.durationMs/1e3).toFixed(1),"s"]}),I.tokens!=null&&s.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[I.tokens.toLocaleString()," tok"]})]},xe)})})]})]}),S.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:I=>{I.stopPropagation(),le(x)},className:"w-full px-5 py-2.5 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:I=>{I.currentTarget.style.background="var(--surface-3)"},onMouseLeave:I=>{I.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:C?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),C?"Hide LLM Output":"Show Actual LLM Output"]}),C&&s.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),s.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:S.output})]})]})]},x)}),p&&se.size>1&&(()=>{const x=Array.from(se.entries());return s.jsx(fh,{title:"Benchmark Results — Pass Rate per Eval",groups:x.map(([C,W])=>{const ne=W.assertions.filter(Le=>Le.pass).length,I=W.assertions.length,xe=I>0?ne/I:0;return{label:W.name||`Eval #${C}`,values:[{value:xe*100,label:`${ne}/${I}`}]}}),seriesColors:[x.every(([,C])=>C.status==="pass")?"#34d399":"#6383ff"],seriesLabels:["Pass Rate"],maxValue:100,formatValue:C=>`${Math.round(C)}%`,yLabel:"Accuracy"})})(),p&&U!==null&&(()=>{const x=Array.from(se.values()),S=x.reduce((ne,I)=>ne+(I.durationMs??0),0),C=x.reduce((ne,I)=>ne+(I.tokens??0),0),W=x.some(ne=>ne.tokens!=null);return s.jsxs("div",{className:"glass-card p-6 text-center animate-fade-in-scale",style:{borderColor:U>=80?"var(--green)":U>=50?"var(--yellow)":"var(--red)",borderWidth:2},children:[s.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:U>=80?"var(--green)":U>=50?"var(--yellow)":"var(--red)"},children:[U,"%"]}),s.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:X==="all"?"Overall Pass Rate":"Pass Rate"}),s.jsxs("div",{className:"flex items-center justify-center gap-4 mt-2 text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[E&&s.jsx("span",{children:E}),S>0&&s.jsxs("span",{children:[(S/1e3).toFixed(1),"s total"]}),W&&C>0&&s.jsxs("span",{children:[C.toLocaleString()," tokens"]})]})]})})()]}),h&&se.size===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const Hm={EFFECTIVE:{bg:"var(--green-muted)",text:"var(--green)",border:"var(--green)",glow:"rgba(52,211,153,0.15)"},MARGINAL:{bg:"var(--yellow-muted)",text:"var(--yellow)",border:"var(--yellow)",glow:"rgba(251,191,36,0.15)"},INEFFECTIVE:{bg:"rgba(251,146,60,0.12)",text:"var(--orange)",border:"var(--orange)",glow:"rgba(251,146,60,0.15)"},DEGRADING:{bg:"var(--red-muted)",text:"var(--red)",border:"var(--red)",glow:"rgba(248,113,113,0.15)"}};function Ox(){const{plugin:u,skill:c}=Ts(),{events:f,running:o,done:m,error:h,start:p}=Ms(),[T,g]=b.useState(new Set),[v,_]=b.useState(null),[E]=oh(),L=b.useRef(!1);b.useEffect(()=>{He.getConfig().then(q=>_(q.model)).catch(()=>{})},[]),b.useEffect(()=>{E.get("autostart")==="true"&&!L.current&&u&&c&&(L.current=!0,g(new Set),p(`/api/skills/${u}/${c}/compare`))},[E,u,c]);function G(){g(new Set),p(`/api/skills/${u}/${c}/compare`)}function V(q){g(F=>{const ue=new Set(F);return ue.has(q)?ue.delete(q):ue.add(q),ue})}const X=[],Q=[],k=[];for(const q of f)if(q.event==="outputs_ready"){const F=q.data;X.find(ue=>ue.eval_id===F.eval_id)||X.push(F)}else if(q.event==="case_error"){const F=q.data;Q.find(ue=>ue.eval_id===F.eval_id)||Q.push(F)}else if(q.event==="case_start"){const F=q.data;k.find(ue=>ue.eval_id===F.eval_id)||k.push(F)}const Z=new Set([...X.map(q=>q.eval_id),...Q.map(q=>q.eval_id)]),J=k.filter(q=>!Z.has(q.eval_id)).pop(),Y=f.find(q=>q.event==="done"),K=Y==null?void 0:Y.data;return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Lt,{to:`/skills/${u}/${c}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:q=>{q.currentTarget.style.color="var(--text-primary)"},onMouseLeave:q=>{q.currentTarget.style.color="var(--text-tertiary)"},children:c}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs each eval prompt twice: once WITH your skill, once WITHOUT. An LLM judge scores both outputs blindly on content and structure (1-5 each)."}),v&&s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),s.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:v})]})]}),s.jsx("button",{onClick:G,disabled:o,className:"btn btn-purple mb-7",children:o?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),h&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:h}),(K==null?void 0:K.error)&&s.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[s.jsx("span",{className:"font-semibold",children:"Error:"})," ",K.error]}),Q.length>0&&s.jsx("div",{className:"space-y-2 mb-5",children:Q.map(q=>s.jsxs("div",{className:"px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[s.jsxs("span",{className:"font-semibold",children:["Eval #",q.eval_id," failed:"]})," ",q.error]},q.eval_id))}),X.length>0&&s.jsxs("div",{className:"space-y-4 stagger-children",children:[X.map(q=>{const F=T.has(q.eval_id),ue=q.winner==="skill"?"Skill Wins":q.winner==="baseline"?"Baseline Wins":"Tie",Ne=q.winner==="skill"?"var(--green)":q.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5 pb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",q.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:q.eval_name||"Eval Case"})]}),s.jsx("span",{className:"pill",style:{background:q.winner==="skill"?"var(--green-muted)":q.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:Ne,fontWeight:700},children:ue})]}),s.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),s.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:q.prompt})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(Lm,{label:"WITH Skill",contentScore:q.skillContentScore,structureScore:q.skillStructureScore,isWinner:q.winner==="skill"}),s.jsx(Lm,{label:"WITHOUT Skill",contentScore:q.baselineContentScore,structureScore:q.baselineStructureScore,isWinner:q.winner==="baseline"})]})]}),s.jsxs("button",{onClick:()=>V(q.eval_id),className:"w-full px-5 py-3 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:De=>{De.currentTarget.style.background="var(--surface-3)"},onMouseLeave:De=>{De.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:F?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),F?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),F&&s.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx(Ym,{label:"WITH Skill",output:q.skillOutput,accentColor:q.winner==="skill"?"var(--green)":void 0}),s.jsx(Ym,{label:"WITHOUT Skill",output:q.baselineOutput,accentColor:q.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},q.eval_id)}),m&&X.length>1&&s.jsx(fh,{title:"Score Comparison — With Skill vs Without",groups:X.map(q=>({label:q.eval_name||`Eval #${q.eval_id}`,values:[{value:(q.skillContentScore+q.skillStructureScore)/2,label:`${q.skillContentScore+q.skillStructureScore}/10`},{value:(q.baselineContentScore+q.baselineStructureScore)/2,label:`${q.baselineContentScore+q.baselineStructureScore}/10`}]})),seriesColors:["#6383ff","#a0a0a0"],seriesLabels:["With Skill","Without Skill"],maxValue:5,yLabel:"Avg Score"}),m&&(K==null?void 0:K.verdict)&&(()=>{const q=Hm[K.verdict]||Hm.INEFFECTIVE;return s.jsxs("div",{className:"glass-card p-8 text-center animate-fade-in-scale",style:{borderColor:q.border,borderWidth:2,boxShadow:`0 0 40px ${q.glow}`},children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),s.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:q.text},children:K.verdict}),K.comparison&&s.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[s.jsx(Pr,{label:"Skill Avg",value:K.comparison.skillRubricAvg.toFixed(1)}),s.jsx(Pr,{label:"Baseline Avg",value:K.comparison.baselineRubricAvg.toFixed(1)}),s.jsx(Pr,{label:"Delta",value:`${K.comparison.delta>0?"+":""}${K.comparison.delta.toFixed(1)}`,color:K.comparison.delta>0?"var(--green)":K.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),K.overall_pass_rate!==void 0&&s.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(K.overall_pass_rate*100),"%"]})]})})()]}),o&&X.length===0&&Q.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:J?`Processing: ${J.eval_name||`Eval #${J.eval_id}`}`:"Then blind-scoring both responses"})]})]})}function Lm({label:u,contentScore:c,structureScore:f,isWinner:o}){const m=((c+f)/2).toFixed(1),h=parseFloat(m),p=h>=4?"var(--green)":h>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"rounded-xl p-4",style:{background:"var(--surface-2)",border:o?"1px solid var(--green)":"1px solid transparent",boxShadow:o?"0 0 20px var(--green-muted)":"none"},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:u}),s.jsx("div",{className:"text-[16px] font-bold",style:{color:p},children:m})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(qm,{label:"Content",score:c}),s.jsx(qm,{label:"Structure",score:f})]})]})}function qm({label:u,score:c}){const f=c/5*100,o=c>=4?"var(--green)":c>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:u}),s.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${f}%`,background:o}})}),s.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:o},children:c})]})}function Ym({label:u,output:c,accentColor:f,hasBorderLeft:o}){return s.jsxs("div",{className:"p-4",style:{borderLeft:o?"1px solid var(--border-subtle)":void 0},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[f&&s.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:f}}),s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:f||"var(--text-tertiary)"},children:u})]}),s.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:c||"(empty output)"})]})}function Pr({label:u,value:c,color:f}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[18px] font-bold",style:{color:f||"var(--text-primary)"},children:c}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:u})]})}const ec={benchmark:"#6383ff",comparison:"#a78bfa",baseline:"#fb923c"},Gm={benchmark:"Benchmark",comparison:"Comparison",baseline:"Baseline"},sc=600,uc=180,nt=40,tc=sc-nt*2,Ll=uc-nt*2,kx=[25,50,75,100];function Xm(u){return new Date(u).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Dx({entries:u}){const[c,f]=b.useState(null);if(u.length<2)return null;const o=u.length,m=u.map((T,g)=>{const v=nt+g/(o-1)*tc,_=T.passRate*100,E=nt+Ll-_/100*Ll;return{x:v,y:E,pct:_,entry:T}}),h=m.map(T=>`${T.x},${T.y}`).join(" "),p=Array.from(new Set(u.map(T=>T.type)));return s.jsxs("div",{className:"glass-card p-5 animate-fade-in",style:{position:"relative"},children:[s.jsx("div",{className:"text-[13px] font-semibold mb-2",style:{color:"var(--text-primary)"},children:"Pass Rate Trend"}),s.jsx("div",{className:"flex items-center gap-5 mb-3",children:p.map(T=>s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("div",{className:"w-3 h-3 rounded-full",style:{background:ec[T]??"var(--text-tertiary)"}}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-secondary)"},children:Gm[T]??T})]},T))}),s.jsxs("svg",{width:sc,height:uc,viewBox:`0 0 ${sc} ${uc}`,style:{display:"block",overflow:"visible"},children:[kx.map(T=>{const g=nt+Ll-T/100*Ll;return s.jsxs("g",{children:[s.jsx("line",{x1:nt,y1:g,x2:nt+tc,y2:g,stroke:"var(--border-subtle)",strokeWidth:.5,strokeDasharray:"4 4"}),s.jsxs("text",{x:nt-8,y:g+3.5,textAnchor:"end",style:{fill:"var(--text-tertiary)",fontSize:10},children:[T,"%"]})]},T)}),s.jsx("line",{x1:nt,y1:nt+Ll,x2:nt+tc,y2:nt+Ll,stroke:"var(--border-subtle)",strokeWidth:1}),s.jsx("text",{x:nt-8,y:nt+Ll+3.5,textAnchor:"end",style:{fill:"var(--text-tertiary)",fontSize:10},children:"0%"}),s.jsx("polyline",{points:h,fill:"none",stroke:"var(--border-subtle)",strokeWidth:1.5,strokeLinejoin:"round"}),m.map((T,g)=>s.jsx("circle",{cx:T.x,cy:T.y,r:5,fill:ec[T.entry.type]??"var(--text-tertiary)",stroke:"var(--surface-2)",strokeWidth:2,style:{cursor:"pointer",transition:"r 0.15s ease"},onMouseEnter:v=>{v.currentTarget.setAttribute("r","7"),f({x:T.x,y:T.y,entry:T.entry})},onMouseLeave:v=>{v.currentTarget.setAttribute("r","5"),f(null)}},g)),wx(o).map(T=>s.jsx("text",{x:m[T].x,y:nt+Ll+16,textAnchor:"middle",style:{fill:"var(--text-tertiary)",fontSize:10},children:Xm(u[T].timestamp)},T))]}),c&&s.jsxs("div",{style:{position:"absolute",left:c.x,top:c.y-12,transform:"translate(-50%, -100%)",background:"var(--surface-3)",border:"1px solid var(--border-subtle)",borderRadius:8,padding:"8px 12px",pointerEvents:"none",zIndex:10,whiteSpace:"nowrap"},children:[s.jsx("div",{className:"text-[11px] font-medium",style:{color:"var(--text-primary)"},children:Xm(c.entry.timestamp)}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:c.entry.model}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:"text-[9px] font-semibold px-1.5 py-0.5 rounded-full",style:{background:ec[c.entry.type]??"var(--text-tertiary)",color:"#fff"},children:Gm[c.entry.type]??c.entry.type}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--text-primary)"},children:[Math.round(c.entry.passRate*100),"%"]})]})]})]})}function wx(u){return u<=3?Array.from({length:u},(c,f)=>f):u<=6?[0,Math.floor(u/2),u-1]:[0,Math.floor(u/3),Math.floor(2*u/3),u-1]}function dh(u){const c=new Date(u);return c.toLocaleDateString(void 0,{month:"short",day:"numeric"})+", "+c.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function js(u){return u==null?"--":u>=1e3?`${(u/1e3).toFixed(1)}s`:`${u}ms`}function Jn(u){return u==null?"--":u>=1e3?`${(u/1e3).toFixed(1)}k tok`:`${u} tok`}function bs(u){return u>=.8?"var(--green)":u>=.5?"var(--yellow)":"var(--red)"}const Ux={benchmark:{bg:"rgba(99,131,255,0.15)",fg:"#6383ff",label:"Benchmark"},comparison:{bg:"var(--purple-muted)",fg:"var(--purple)",label:"A/B"},baseline:{bg:"rgba(251,146,60,0.15)",fg:"#fb923c",label:"Baseline"}};function mh(u){return u?u==="EFFECTIVE"?"var(--green)":u==="MARGINAL"?"var(--yellow)":u==="DEGRADING"?"var(--red)":"var(--text-secondary)":"var(--text-tertiary)"}function Bx({models:u,filters:c,onChange:f}){const o=!!(c.model||c.type||c.from||c.to),m={background:"var(--surface-2)",border:"1px solid var(--border-subtle)",borderRadius:8,padding:"4px 8px",fontSize:12,color:"var(--text-primary)",outline:"none"};return s.jsxs("div",{className:"flex items-center gap-3 flex-wrap animate-fade-in",style:{marginBottom:16},children:[s.jsxs("select",{value:c.model??"",onChange:h=>f({...c,model:h.target.value||void 0}),style:m,children:[s.jsx("option",{value:"",children:"All models"}),u.map(h=>s.jsx("option",{value:h,children:h},h))]}),s.jsxs("select",{value:c.type??"",onChange:h=>f({...c,type:h.target.value||void 0}),style:m,children:[s.jsx("option",{value:"",children:"All types"}),s.jsx("option",{value:"benchmark",children:"Benchmark"}),s.jsx("option",{value:"comparison",children:"Comparison"}),s.jsx("option",{value:"baseline",children:"Baseline"})]}),s.jsx("input",{type:"date",value:c.from??"",onChange:h=>f({...c,from:h.target.value||void 0}),style:m,placeholder:"From"}),s.jsx("input",{type:"date",value:c.to??"",onChange:h=>f({...c,to:h.target.value||void 0}),style:m,placeholder:"To"}),o&&s.jsx("button",{className:"btn btn-ghost",style:{fontSize:12,padding:"4px 10px"},onClick:()=>f({}),children:"Clear Filters"})]})}function Hx({result:u}){const{runA:c,runB:f,caseDiffs:o}=u;return s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsx("div",{className:"glass-card p-4",children:s.jsx("div",{className:"grid grid-cols-2 gap-4",children:[c,f].map((m,h)=>s.jsxs("div",{children:[s.jsxs("div",{className:"text-[10px] uppercase tracking-widest font-semibold mb-1",style:{color:"var(--text-tertiary)"},children:["Run ",h===0?"A":"B"]}),s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:dh(m.timestamp)}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:m.model}),s.jsxs("div",{className:"text-[12px] font-semibold mt-1",style:{color:bs(m.passRate)},children:[Math.round(m.passRate*100),"% pass"]})]},h))})}),s.jsx("div",{className:"glass-card p-4 overflow-x-auto",children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{borderBottom:"1px solid var(--border-subtle)"},children:[s.jsx("th",{style:{textAlign:"left",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Case"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Run A"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Run B"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Duration"}),s.jsx("th",{style:{textAlign:"center",padding:"6px 8px",color:"var(--text-tertiary)",fontWeight:600,fontSize:11},children:"Tokens"})]})}),s.jsx("tbody",{children:o.map(m=>{const h=m.statusA==="pass"&&m.statusB!=="pass",p=m.statusA!=="pass"&&m.statusB==="pass",T=h?"var(--red-muted)":p?"var(--green-muted)":"transparent";return s.jsxs("tr",{style:{background:T,borderBottom:"1px solid var(--border-subtle)"},children:[s.jsx("td",{style:{padding:"8px",color:"var(--text-primary)",fontWeight:500},children:m.eval_name}),s.jsx("td",{style:{padding:"8px",textAlign:"center"},children:m.statusA==="missing"?s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:9,padding:"1px 6px"},children:"removed"}):s.jsxs("span",{style:{color:bs(m.passRateA??0),fontWeight:600,fontFamily:"var(--font-mono, monospace)"},children:[m.statusA," ",m.passRateA!=null?`${Math.round(m.passRateA*100)}%`:""]})}),s.jsx("td",{style:{padding:"8px",textAlign:"center"},children:m.statusB==="missing"?s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:9,padding:"1px 6px"},children:"new"}):s.jsxs("span",{style:{color:bs(m.passRateB??0),fontWeight:600,fontFamily:"var(--font-mono, monospace)"},children:[m.statusB," ",m.passRateB!=null?`${Math.round(m.passRateB*100)}%`:""]})}),s.jsx("td",{style:{padding:"8px",textAlign:"center",fontFamily:"var(--font-mono, monospace)",fontSize:11,color:"var(--text-secondary)"},children:m.durationMsA!=null||m.durationMsB!=null?`${js(m.durationMsA??void 0)} / ${js(m.durationMsB??void 0)}`:"--"}),s.jsx("td",{style:{padding:"8px",textAlign:"center",fontFamily:"var(--font-mono, monospace)",fontSize:11,color:"var(--text-secondary)"},children:m.tokensA!=null||m.tokensB!=null?`${Jn(m.tokensA)} / ${Jn(m.tokensB)}`:"--"})]},m.eval_id)})})]})}),u.regressions.length>0&&s.jsxs("div",{className:"glass-card p-4",children:[s.jsxs("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:["Assertion Changes (",u.regressions.length,")"]}),s.jsx("div",{className:"space-y-1",children:u.regressions.map((m,h)=>s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:m.change==="regression"?"var(--red)":"var(--green)"},children:[s.jsx("span",{children:m.change==="regression"?"↓":"↑"}),s.jsxs("span",{style:{color:"var(--text-tertiary)",fontFamily:"var(--font-mono, monospace)",fontSize:10},children:["#",m.evalId]}),s.jsx("span",{style:{color:"var(--text-primary)"},children:m.evalName}),s.jsx("span",{className:"pill",style:{background:m.change==="regression"?"var(--red-muted)":"var(--green-muted)",color:m.change==="regression"?"var(--red)":"var(--green)",fontSize:9,padding:"1px 6px"},children:m.change})]},h))})]})]})}function Lx({run:u,plugin:c,skill:f,onDelete:o}){const m=Es();return s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsxs("div",{className:"glass-card p-4",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(u.timestamp).toLocaleString()}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:u.model})]}),u.verdict&&s.jsx("span",{className:"text-[14px] font-bold",style:{color:mh(u.verdict)},children:u.verdict})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-3",children:[s.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 10px"},onClick:()=>m(`/skills/${c}/${f}/benchmark?autostart=true`),children:"Rerun Benchmark"}),s.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 10px"},onClick:()=>m(`/skills/${c}/${f}/benchmark?mode=baseline&autostart=true`),children:"Run Baseline"}),s.jsx("button",{className:"btn btn-purple",style:{fontSize:11,padding:"3px 10px"},onClick:()=>m(`/skills/${c}/${f}/compare?autostart=true`),children:"Run A/B"}),s.jsx("div",{style:{flex:1}}),s.jsx("button",{className:"btn btn-ghost",style:{fontSize:11,padding:"3px 10px",color:"var(--red)"},onClick:()=>{confirm("Delete this run?")&&o(u.timestamp)},children:"Delete"})]})]}),u.cases.map(h=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",h.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:h.eval_name})]}),s.jsxs("span",{className:"pill",style:{background:h.status==="pass"?"var(--green-muted)":h.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:h.status==="pass"?"var(--green)":h.status==="error"?"var(--yellow)":"var(--red)"},children:[h.status," (",Math.round(h.pass_rate*100),"%)"]})]}),(h.durationMs!=null||h.inputTokens!=null||h.outputTokens!=null)&&s.jsxs("div",{className:"flex items-center gap-4 mb-3 text-[11px]",style:{fontFamily:"var(--font-mono, monospace)",color:"var(--text-tertiary)"},children:[h.durationMs!=null&&s.jsx("span",{children:js(h.durationMs)}),h.inputTokens!=null&&s.jsxs("span",{children:[Jn(h.inputTokens)," in"]}),h.outputTokens!=null&&s.jsxs("span",{children:[Jn(h.outputTokens)," out"]})]}),h.error_message&&s.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:h.error_message}),s.jsx("div",{className:"space-y-1.5",children:h.assertions.map(p=>s.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:p.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:p.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:p.text}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:p.reasoning})]})]},p.id))})]},h.eval_id))]})}function qx(){const{plugin:u,skill:c}=Ts(),[f,o]=b.useState([]),[m,h]=b.useState(!0),[p,T]=b.useState({}),[g,v]=b.useState(null),[_,E]=b.useState(null),[L,G]=b.useState(!1),[V,X]=b.useState(new Set),[Q,k]=b.useState(null),[Z,J]=b.useState(!1),Y=b.useMemo(()=>{const te=new Set(f.map(ye=>ye.model));return Array.from(te).sort()},[f]),K=b.useCallback(async te=>{if(!(!u||!c)){h(!0);try{const ye=await He.getHistory(u,c,te);o(ye)}catch{o([])}finally{h(!1)}}},[u,c]);b.useEffect(()=>{K(p)},[K,p]);function q(te){T(te),v(null),E(null),k(null),X(new Set)}async function F(te){if(!(!u||!c)){k(null),E(te);try{const ye=await He.getHistoryEntry(u,c,te);v(ye)}catch{v(null)}}}async function ue(te){if(!(!u||!c))try{await He.deleteHistoryEntry(u,c,te),v(null),E(null),K(p)}catch{}}function Ne(te){X(ye=>{const fe=new Set(ye);if(fe.has(te))fe.delete(te);else{if(fe.size>=2)return ye;fe.add(te)}return fe})}async function De(){if(!u||!c)return;const[te,ye]=Array.from(V);if(!(!te||!ye)){J(!0);try{const fe=await He.compareRuns(u,c,te,ye);k(fe),v(null),E(null)}catch{k(null)}finally{J(!1)}}}function Ve(){L?(G(!1),X(new Set),k(null)):(G(!0),k(null))}if(m&&f.length===0)return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsx("div",{className:"skeleton h-48 rounded-xl mb-4"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),s.jsx("div",{className:"col-span-2",children:s.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]});const _e=!!(p.model||p.type||p.from||p.to);return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Lt,{to:`/skills/${u}/${c}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:te=>{te.currentTarget.style.color="var(--text-primary)"},onMouseLeave:te=>{te.currentTarget.style.color="var(--text-tertiary)"},children:c}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),f.length>=2&&s.jsx("div",{style:{marginBottom:16},children:s.jsx(Dx,{entries:f.slice().reverse()})}),s.jsx(Bx,{models:Y,filters:p,onChange:q}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"col-span-1",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 px-1",children:[s.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:["Past Runs (",f.length,")"]}),s.jsxs("div",{className:"flex items-center gap-2",children:[L&&V.size===2&&s.jsx("button",{className:"btn btn-primary",style:{fontSize:10,padding:"2px 8px"},onClick:De,disabled:Z,children:Z?"Comparing...":"Compare Selected"}),s.jsx("button",{className:`btn ${L?"btn-purple":"btn-ghost"}`,style:{fontSize:10,padding:"2px 8px"},onClick:Ve,children:"Compare"})]})]}),f.length===0&&!_e&&s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),f.length===0&&_e&&s.jsx("div",{className:"text-center py-8",children:s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No runs match current filters"})}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:f.map(te=>{const ye=_===te.timestamp,fe=bs(te.passRate),D=Ux[te.type],$=V.has(te.timestamp);return s.jsxs("div",{className:"flex items-start gap-2",children:[L&&s.jsx("label",{className:"flex items-center justify-center mt-3.5 flex-shrink-0 cursor-pointer",style:{width:18,height:18},children:s.jsx("input",{type:"checkbox",checked:$,onChange:()=>Ne(te.timestamp),disabled:!$&&V.size>=2,style:{accentColor:"var(--purple)"}})}),s.jsxs("button",{onClick:()=>F(te.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:ye?"var(--accent-muted)":"var(--surface-1)",border:ye?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:le=>{ye||(le.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:le=>{ye||(le.currentTarget.style.borderColor="var(--border-subtle)")},children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:dh(te.timestamp)}),D&&s.jsx("span",{className:"pill",style:{background:D.bg,color:D.fg,fontSize:9,padding:"1px 6px"},children:D.label})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:te.model}),s.jsxs("span",{className:"text-[11px] font-semibold",style:{color:fe},children:[Math.round(te.passRate*100),"%"]})]}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5 text-[10px]",style:{fontFamily:"var(--font-mono, monospace)",color:"var(--text-tertiary)"},children:[s.jsxs("span",{children:[te.caseCount??0," cases"]}),s.jsx("span",{children:js(te.totalDurationMs??void 0)}),s.jsx("span",{children:Jn(te.totalTokens)})]}),te.type==="comparison"&&te.verdict&&s.jsx("div",{className:"mt-1.5",children:s.jsx("span",{className:"pill",style:{background:te.verdict==="EFFECTIVE"?"var(--green-muted)":te.verdict==="MARGINAL"?"var(--yellow-muted)":te.verdict==="DEGRADING"?"var(--red-muted)":"var(--surface-3)",color:mh(te.verdict),fontSize:9,padding:"1px 6px"},children:te.verdict})})]})]},te.timestamp)})})]}),s.jsx("div",{className:"col-span-2",children:Q?s.jsx(Hx,{result:Q}):g&&u&&c?s.jsx(Lx,{run:g,plugin:u,skill:c,onDelete:ue}):s.jsxs("div",{className:"text-center py-20",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"15 18 9 12 15 6"})})}),s.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:L?"Check two runs and click Compare Selected":"Select a run to view details"})]})})]})]})}const Qm={TP:{bg:"var(--green-muted)",text:"var(--green)",icon:"check"},TN:{bg:"rgba(52,211,153,0.06)",text:"rgba(52,211,153,0.6)",icon:"check"},FP:{bg:"var(--red-muted)",text:"var(--red)",icon:"x"},FN:{bg:"rgba(248,113,113,0.06)",text:"rgba(248,113,113,0.6)",icon:"x"}},Yx=[{label:"Should activate",prompts:["How do I use this feature?","Show me best practices for this","What's the recommended approach?"]},{label:"Should NOT activate",prompts:["!What's the weather today?","!Write me a poem","!How do I cook pasta?"]}];function Gx(){const[u,c]=b.useState([]),[f,o]=b.useState(null),[m,h]=b.useState(null),[p,T]=b.useState(""),[g,v]=b.useState(!1),{events:_,running:E,error:L,start:G}=Ms();b.useEffect(()=>{He.getSkills().then(c).catch(()=>{})},[]),b.useEffect(()=>{if(!f){h(null);return}fetch(`/api/skills/${f.plugin}/${f.skill}/description`).then(Y=>Y.json()).then(Y=>h(Y.description)).catch(()=>h(null))},[f]);function V(){if(!f)return;const K=p.trim().split(`
62
- `).filter(Boolean).map(q=>{const F=q.startsWith("!");return{prompt:F?q.slice(1).trim():q.trim(),expected:F?"should_not_activate":"should_activate"}});G(`/api/skills/${f.plugin}/${f.skill}/activation-test`,{prompts:K})}function X(Y){const K=p.trim(),q=K?`${K}
63
- ${Y.join(`
64
- `)}`:Y.join(`
65
- `);T(q)}const Q=[];let k=null;for(const Y of _)Y.event==="prompt_result"&&Q.push(Y.data),Y.event==="done"&&(k=Y.data);const Z=Q.filter(Y=>Y.classification==="TP"||Y.classification==="TN"),J=Q.filter(Y=>Y.classification==="FP"||Y.classification==="FN");return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),s.jsxs("p",{className:"text-[13px] mt-1 max-w-2xl",style:{color:"var(--text-tertiary)"},children:["Tests whether a skill's description activates correctly for relevant prompts and stays silent for irrelevant ones. This validates the ",s.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),s.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[s.jsxs("div",{className:"col-span-3 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),s.jsxs("select",{className:"input-field",value:f?`${f.plugin}/${f.skill}`:"",onChange:Y=>{const[K,q]=Y.target.value.split("/");o(K&&q?{plugin:K,skill:q}:null)},children:[s.jsx("option",{value:"",children:"Select a skill..."}),u.map(Y=>s.jsxs("option",{value:`${Y.plugin}/${Y.skill}`,children:[Y.plugin," / ",Y.skill]},`${Y.plugin}/${Y.skill}`))]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),s.jsx("div",{className:"flex gap-1.5",children:Yx.map(Y=>s.jsxs("button",{onClick:()=>X(Y.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:K=>{K.currentTarget.style.color="var(--text-primary)",K.currentTarget.style.background="var(--surface-3)"},onMouseLeave:K=>{K.currentTarget.style.color="var(--text-tertiary)",K.currentTarget.style.background="var(--surface-2)"},children:["+ ",Y.label]},Y.label))})]}),s.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:p,onChange:Y=>T(Y.target.value),placeholder:`How do I write a unit test?
66
- What edge cases should I test?
67
- !What's the weather like today?
68
- !Write me a poem about flowers`}),s.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[s.jsx("span",{children:"One prompt per line"}),s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),s.jsxs("span",{children:[p.trim().split(`
69
- `).filter(Boolean).length," prompt",p.trim().split(`
70
- `).filter(Boolean).length!==1?"s":""]})]})]})]}),s.jsx("div",{className:"col-span-2",children:s.jsxs("div",{className:"glass-card h-full",children:[s.jsxs("button",{onClick:()=>v(!g),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:g?"1px solid var(--border-subtle)":void 0},children:[s.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:g?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),g&&s.jsx("div",{className:"p-3 animate-fade-in",children:m?s.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):f?s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!g&&m&&s.jsx("div",{className:"px-3 pb-3 pt-1",children:s.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),s.jsx("button",{onClick:V,disabled:E||!f||!p.trim(),className:"btn btn-primary mb-7",children:E?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),L&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:L}),Q.length>0&&s.jsxs("div",{className:"space-y-5 mb-6",children:[J.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),s.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",J.length,")"]}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:J.map((Y,K)=>s.jsx(Zm,{result:Y},`incorrect-${K}`))})]}),Z.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"16 10 11 15 8 12"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",Z.length,")"]})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:Z.map((Y,K)=>s.jsx(Zm,{result:Y},`correct-${K}`))})]})]}),k&&s.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[s.jsx(lc,{label:"Precision",value:k.precision,description:"Of all activations, how many were correct?",detail:`${k.tp} true / ${k.tp+k.fp} total activations`}),s.jsx(lc,{label:"Recall",value:k.recall,description:"Of expected activations, how many fired?",detail:`${k.tp} activated / ${k.tp+k.fn} expected`}),s.jsx(lc,{label:"Reliability",value:k.reliability,description:"Overall correct classification rate",detail:`${k.tp+k.tn} correct / ${k.total} total`})]}),s.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[s.jsx(ps,{label:"True Positive",abbr:"TP",count:k.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),s.jsx(ps,{label:"False Positive",abbr:"FP",count:k.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),s.jsx(ps,{label:"False Negative",abbr:"FN",count:k.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),s.jsx(ps,{label:"True Negative",abbr:"TN",count:k.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),E&&Q.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Zm({result:u}){const c=Qm[u.classification]||Qm.FN,f=u.classification==="TP"||u.classification==="TN";return s.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:c.bg,border:"1px solid transparent"},children:[s.jsx("div",{className:"flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${c.text} 20%, transparent)`},children:f?s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:c.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:c.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:u.prompt})}),s.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[s.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:c.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:u.classification}),s.jsx("span",{style:{color:u.activate?"var(--green)":"var(--text-tertiary)"},children:u.activate?"Activated":"Silent"}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",u.expected==="should_activate"?"activate":"stay silent"]}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[u.confidence," confidence"]})]}),u.reasoning&&s.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:u.reasoning})]})]})}function lc({label:u,value:c,description:f,detail:o}){const m=Math.round(c*100),h=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:h},children:[m,"%"]}),s.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:u}),s.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:f}),s.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:o})]})}function ps({label:u,abbr:c,count:f,bg:o,color:m,description:h}){return s.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:o},children:[s.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:f}),s.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:c}),s.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:h})]})}function Xx(){const[u,c]=b.useState(null),[f,o]=b.useState(!1),[m,h]=b.useState(!1),p=b.useRef(null);b.useEffect(()=>{He.getConfig().then(c).catch(()=>{})},[]),b.useEffect(()=>{function v(_){p.current&&!p.current.contains(_.target)&&o(!1)}return f&&document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[f]);async function T(v,_){h(!0);try{const E=await He.setConfig(v.id,_.id);c(E),o(!1)}catch{const E=await He.getConfig();c(E)}finally{h(!1)}}if(!u)return null;const g=Qx(u);return s.jsxs("div",{ref:p,className:"relative",children:[s.jsxs("button",{onClick:()=>o(!f),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-[12px] transition-all duration-150",style:{background:"var(--surface-3)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)"},onMouseEnter:v=>{v.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:v=>{v.currentTarget.style.borderColor="var(--border-subtle)"},children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),s.jsx("span",{className:"flex-1 text-left font-medium truncate",children:g}),s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:f?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),f&&s.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-64 rounded-xl shadow-xl z-50 overflow-hidden animate-fade-in",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Select Model"})}),s.jsx("div",{className:"py-1 max-h-80 overflow-y-auto",children:u.providers.map(v=>s.jsxs("div",{children:[s.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:(v.available,"var(--text-tertiary)"),opacity:v.available?1:.5},children:v.label}),!v.available&&s.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:"unavailable"})]}),v.models.map(_=>{const E=hh(u,v.id,_.id),L=!v.available||m;return s.jsxs("button",{onClick:()=>!L&&T(v,_),disabled:L,className:"w-full px-4 py-2 flex items-center gap-2.5 text-left transition-all duration-100",style:{background:E?"var(--accent-muted)":"transparent",color:L?"var(--text-tertiary)":"var(--text-primary)",opacity:L?.4:1,cursor:L?"not-allowed":"pointer"},onMouseEnter:G=>{!L&&!E&&(G.currentTarget.style.background="var(--surface-3)")},onMouseLeave:G=>{E||(G.currentTarget.style.background="transparent")},children:[s.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0 flex items-center justify-center",style:{border:`2px solid ${E?"var(--accent)":"var(--border-subtle)"}`},children:E&&s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}})}),s.jsx("span",{className:"text-[12px]",children:_.label})]},`${v.id}-${_.id}`)})]},v.id))})]})]})}function hh(u,c,f){return u.provider!==c?!1:c==="claude-cli"?u.model===`claude-${f}`:u.model===f}function Qx(u){for(const c of u.providers)for(const f of c.models)if(hh(u,c.id,f.id))return f.label;return u.model}function Zx({active:u}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:u?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),s.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),s.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function Vx({active:u}){return s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:u?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const Kx=[{path:"/",label:"Skills",Icon:Zx},{path:"/activation",label:"Activation Test",Icon:Vx}];function Jx(){const u=Vt(),[c,f]=b.useState(null);return b.useEffect(()=>{He.getConfig().then(o=>f(o.projectName)).catch(()=>{})},[]),s.jsxs("div",{className:"flex h-screen",children:[s.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:c||"vskill"})]})]})}),s.jsxs("div",{className:"flex-1 px-3 py-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),Kx.map(o=>{const m=u.pathname===o.path;return s.jsxs(Lt,{to:o.path,className:"flex items-center gap-2.5 px-3 py-[9px] rounded-lg text-[13px] font-medium mb-0.5 transition-all duration-150",style:{background:m?"var(--accent)":"transparent",color:m?"#fff":"var(--text-secondary)"},onMouseEnter:h=>{m||(h.currentTarget.style.background="var(--surface-3)",h.currentTarget.style.color="var(--text-primary)")},onMouseLeave:h=>{m||(h.currentTarget.style.background="transparent",h.currentTarget.style.color="var(--text-secondary)")},children:[s.jsx(o.Icon,{active:m}),o.label]},o.path)})]}),s.jsxs("div",{className:"px-3 py-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Model"}),s.jsx(Xx,{})]})]}),s.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:s.jsx("div",{className:"animate-fade-in",children:s.jsxs(Xp,{children:[s.jsx(sa,{path:"/",element:s.jsx(Tx,{})}),s.jsx(sa,{path:"/skills/:plugin/:skill",element:s.jsx(Ax,{})}),s.jsx(sa,{path:"/skills/:plugin/:skill/benchmark",element:s.jsx(Cx,{})}),s.jsx(sa,{path:"/skills/:plugin/:skill/compare",element:s.jsx(Ox,{})}),s.jsx(sa,{path:"/skills/:plugin/:skill/history",element:s.jsx(qx,{})}),s.jsx(sa,{path:"/activation",element:s.jsx(Gx,{})})]})},u.pathname)})]})}Vy.createRoot(document.getElementById("root")).render(s.jsx(b.StrictMode,{children:s.jsx(hx,{children:s.jsx(Jx,{})})}));