@hasna/testers 0.0.32 → 0.0.33
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.
- package/LICENSE +2 -1
- package/README.md +11 -0
- package/dashboard/dist/assets/index-kezQIIQ1.js +49 -0
- package/dashboard/dist/index.html +1 -1
- package/dist/cli/index.js +69469 -2611
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/sessions.d.ts +36 -0
- package/dist/db/sessions.d.ts.map +1 -0
- package/dist/db/workflows.d.ts +10 -0
- package/dist/db/workflows.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1353 -30
- package/dist/lib/ai-client.d.ts +2 -0
- package/dist/lib/ai-client.d.ts.map +1 -1
- package/dist/lib/browser-compat.d.ts +14 -0
- package/dist/lib/browser-compat.d.ts.map +1 -0
- package/dist/lib/browser.d.ts.map +1 -1
- package/dist/lib/open-projects.d.ts +14 -0
- package/dist/lib/open-projects.d.ts.map +1 -0
- package/dist/lib/repo-discovery.d.ts +102 -0
- package/dist/lib/repo-discovery.d.ts.map +1 -0
- package/dist/lib/repo-executor.d.ts +56 -0
- package/dist/lib/repo-executor.d.ts.map +1 -0
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/todos-connector.d.ts +15 -1
- package/dist/lib/todos-connector.d.ts.map +1 -1
- package/dist/lib/workflow-agent.d.ts +32 -0
- package/dist/lib/workflow-agent.d.ts.map +1 -0
- package/dist/lib/workflow-runner.d.ts +27 -0
- package/dist/lib/workflow-runner.d.ts.map +1 -0
- package/dist/mcp/http.d.ts +18 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/index.js +85291 -23464
- package/dist/mcp/server.d.ts +4 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/sdk/index.d.ts +8 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/server/index.js +45844 -15038
- package/dist/types/index.d.ts +69 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +8 -4
- package/dashboard/dist/assets/index-D52SWwDa.js +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var mp=Object.defineProperty;var bp=(c,f,y)=>f in c?mp(c,f,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[f]=y;var jf=(c,f,y)=>bp(c,typeof f!="symbol"?f+"":f,y);(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const T of document.querySelectorAll('link[rel="modulepreload"]'))o(T);new MutationObserver(T=>{for(const U of T)if(U.type==="childList")for(const O of U.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&o(O)}).observe(document,{childList:!0,subtree:!0});function y(T){const U={};return T.integrity&&(U.integrity=T.integrity),T.referrerPolicy&&(U.referrerPolicy=T.referrerPolicy),T.crossOrigin==="use-credentials"?U.credentials="include":T.crossOrigin==="anonymous"?U.credentials="omit":U.credentials="same-origin",U}function o(T){if(T.ep)return;T.ep=!0;const U=y(T);fetch(T.href,U)}})();var oc={exports:{}},Tn={};/**
|
|
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 zf;function Sp(){if(zf)return Tn;zf=1;var c=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function y(o,T,U){var O=null;if(U!==void 0&&(O=""+U),T.key!==void 0&&(O=""+T.key),"key"in T){U={};for(var N in T)N!=="key"&&(U[N]=T[N])}else U=T;return T=U.ref,{$$typeof:c,type:o,key:O,ref:T!==void 0?T:null,props:U}}return Tn.Fragment=f,Tn.jsx=y,Tn.jsxs=y,Tn}var Tf;function jp(){return Tf||(Tf=1,oc.exports=Sp()),oc.exports}var u=jp(),dc={exports:{}},En={},fc={exports:{}},hc={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.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 Ef;function zp(){return Ef||(Ef=1,(function(c){function f(R,w){var ie=R.length;R.push(w);e:for(;0<ie;){var P=ie-1>>>1,fe=R[P];if(0<T(fe,w))R[P]=w,R[ie]=fe,ie=P;else break e}}function y(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var w=R[0],ie=R.pop();if(ie!==w){R[0]=ie;e:for(var P=0,fe=R.length,g=fe>>>1;P<g;){var k=2*(P+1)-1,V=R[k],le=k+1,B=R[le];if(0>T(V,ie))le<fe&&0>T(B,V)?(R[P]=B,R[le]=ie,P=le):(R[P]=V,R[k]=ie,P=k);else if(le<fe&&0>T(B,ie))R[P]=B,R[le]=ie,P=le;else break e}}return w}function T(R,w){var ie=R.sortIndex-w.sortIndex;return ie!==0?ie:R.id-w.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var U=performance;c.unstable_now=function(){return U.now()}}else{var O=Date,N=O.now();c.unstable_now=function(){return O.now()-N}}var C=[],p=[],H=1,j=null,z=3,A=!1,L=!1,ee=!1,Y=!1,G=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function D(R){for(var w=y(p);w!==null;){if(w.callback===null)o(p);else if(w.startTime<=R)o(p),w.sortIndex=w.expirationTime,f(C,w);else break;w=y(p)}}function J(R){if(ee=!1,D(R),!L)if(y(C)!==null)L=!0,I||(I=!0,Z());else{var w=y(p);w!==null&&de(J,w.startTime-R)}}var I=!1,K=-1,ne=5,pe=-1;function se(){return Y?!0:!(c.unstable_now()-pe<ne)}function W(){if(Y=!1,I){var R=c.unstable_now();pe=R;var w=!0;try{e:{L=!1,ee&&(ee=!1,Q(K),K=-1),A=!0;var ie=z;try{t:{for(D(R),j=y(C);j!==null&&!(j.expirationTime>R&&se());){var P=j.callback;if(typeof P=="function"){j.callback=null,z=j.priorityLevel;var fe=P(j.expirationTime<=R);if(R=c.unstable_now(),typeof fe=="function"){j.callback=fe,D(R),w=!0;break t}j===y(C)&&o(C),D(R)}else o(C);j=y(C)}if(j!==null)w=!0;else{var g=y(p);g!==null&&de(J,g.startTime-R),w=!1}}break e}finally{j=null,z=ie,A=!1}w=void 0}}finally{w?Z():I=!1}}}var Z;if(typeof X=="function")Z=function(){X(W)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,be=$.port2;$.port1.onmessage=W,Z=function(){be.postMessage(null)}}else Z=function(){G(W,0)};function de(R,w){K=G(function(){R(c.unstable_now())},w)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(R){R.callback=null},c.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<R?Math.floor(1e3/R):5},c.unstable_getCurrentPriorityLevel=function(){return z},c.unstable_next=function(R){switch(z){case 1:case 2:case 3:var w=3;break;default:w=z}var ie=z;z=w;try{return R()}finally{z=ie}},c.unstable_requestPaint=function(){Y=!0},c.unstable_runWithPriority=function(R,w){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ie=z;z=R;try{return w()}finally{z=ie}},c.unstable_scheduleCallback=function(R,w,ie){var P=c.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?P+ie:P):ie=P,R){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=ie+fe,R={id:H++,callback:w,priorityLevel:R,startTime:ie,expirationTime:fe,sortIndex:-1},ie>P?(R.sortIndex=ie,f(p,R),y(C)===null&&R===y(p)&&(ee?(Q(K),K=-1):ee=!0,de(J,ie-P))):(R.sortIndex=fe,f(C,R),L||A||(L=!0,I||(I=!0,Z()))),R},c.unstable_shouldYield=se,c.unstable_wrapCallback=function(R){var w=z;return function(){var ie=z;z=w;try{return R.apply(this,arguments)}finally{z=ie}}}})(hc)),hc}var Cf;function Tp(){return Cf||(Cf=1,fc.exports=zp()),fc.exports}var gc={exports:{}},oe={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.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 Af;function Ep(){if(Af)return oe;Af=1;var c=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),z=Symbol.iterator;function A(g){return g===null||typeof g!="object"?null:(g=z&&g[z]||g["@@iterator"],typeof g=="function"?g:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ee=Object.assign,Y={};function G(g,k,V){this.props=g,this.context=k,this.refs=Y,this.updater=V||L}G.prototype.isReactComponent={},G.prototype.setState=function(g,k){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,k,"setState")},G.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function Q(){}Q.prototype=G.prototype;function X(g,k,V){this.props=g,this.context=k,this.refs=Y,this.updater=V||L}var D=X.prototype=new Q;D.constructor=X,ee(D,G.prototype),D.isPureReactComponent=!0;var J=Array.isArray;function I(){}var K={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function pe(g,k,V){var le=V.ref;return{$$typeof:c,type:g,key:k,ref:le!==void 0?le:null,props:V}}function se(g,k){return pe(g.type,k,g.props)}function W(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function Z(g){var k={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(V){return k[V]})}var $=/\/+/g;function be(g,k){return typeof g=="object"&&g!==null&&g.key!=null?Z(""+g.key):k.toString(36)}function de(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(I,I):(g.status="pending",g.then(function(k){g.status==="pending"&&(g.status="fulfilled",g.value=k)},function(k){g.status==="pending"&&(g.status="rejected",g.reason=k)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function R(g,k,V,le,B){var F=typeof g;(F==="undefined"||F==="boolean")&&(g=null);var ce=!1;if(g===null)ce=!0;else switch(F){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(g.$$typeof){case c:case f:ce=!0;break;case H:return ce=g._init,R(ce(g._payload),k,V,le,B)}}if(ce)return B=B(g),ce=le===""?"."+be(g,0):le,J(B)?(V="",ce!=null&&(V=ce.replace($,"$&/")+"/"),R(B,k,V,"",function(Ma){return Ma})):B!=null&&(W(B)&&(B=se(B,V+(B.key==null||g&&g.key===B.key?"":(""+B.key).replace($,"$&/")+"/")+ce)),k.push(B)),1;ce=0;var Ce=le===""?".":le+":";if(J(g))for(var De=0;De<g.length;De++)le=g[De],F=Ce+be(le,De),ce+=R(le,k,V,F,B);else if(De=A(g),typeof De=="function")for(g=De.call(g),De=0;!(le=g.next()).done;)le=le.value,F=Ce+be(le,De++),ce+=R(le,k,V,F,B);else if(F==="object"){if(typeof g.then=="function")return R(de(g),k,V,le,B);throw k=String(g),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ce}function w(g,k,V){if(g==null)return g;var le=[],B=0;return R(g,le,"","",function(F){return k.call(V,F,B++)}),le}function ie(g){if(g._status===-1){var k=g._result;k=k(),k.then(function(V){(g._status===0||g._status===-1)&&(g._status=1,g._result=V)},function(V){(g._status===0||g._status===-1)&&(g._status=2,g._result=V)}),g._status===-1&&(g._status=0,g._result=k)}if(g._status===1)return g._result.default;throw g._result}var P=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},fe={map:w,forEach:function(g,k,V){w(g,function(){k.apply(this,arguments)},V)},count:function(g){var k=0;return w(g,function(){k++}),k},toArray:function(g){return w(g,function(k){return k})||[]},only:function(g){if(!W(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return oe.Activity=j,oe.Children=fe,oe.Component=G,oe.Fragment=y,oe.Profiler=T,oe.PureComponent=X,oe.StrictMode=o,oe.Suspense=C,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,oe.__COMPILER_RUNTIME={__proto__:null,c:function(g){return K.H.useMemoCache(g)}},oe.cache=function(g){return function(){return g.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(g,k,V){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var le=ee({},g.props),B=g.key;if(k!=null)for(F in k.key!==void 0&&(B=""+k.key),k)!ne.call(k,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&k.ref===void 0||(le[F]=k[F]);var F=arguments.length-2;if(F===1)le.children=V;else if(1<F){for(var ce=Array(F),Ce=0;Ce<F;Ce++)ce[Ce]=arguments[Ce+2];le.children=ce}return pe(g.type,B,le)},oe.createContext=function(g){return g={$$typeof:O,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:U,_context:g},g},oe.createElement=function(g,k,V){var le,B={},F=null;if(k!=null)for(le in k.key!==void 0&&(F=""+k.key),k)ne.call(k,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(B[le]=k[le]);var ce=arguments.length-2;if(ce===1)B.children=V;else if(1<ce){for(var Ce=Array(ce),De=0;De<ce;De++)Ce[De]=arguments[De+2];B.children=Ce}if(g&&g.defaultProps)for(le in ce=g.defaultProps,ce)B[le]===void 0&&(B[le]=ce[le]);return pe(g,F,B)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(g){return{$$typeof:N,render:g}},oe.isValidElement=W,oe.lazy=function(g){return{$$typeof:H,_payload:{_status:-1,_result:g},_init:ie}},oe.memo=function(g,k){return{$$typeof:p,type:g,compare:k===void 0?null:k}},oe.startTransition=function(g){var k=K.T,V={};K.T=V;try{var le=g(),B=K.S;B!==null&&B(V,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(I,P)}catch(F){P(F)}finally{k!==null&&V.types!==null&&(k.types=V.types),K.T=k}},oe.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},oe.use=function(g){return K.H.use(g)},oe.useActionState=function(g,k,V){return K.H.useActionState(g,k,V)},oe.useCallback=function(g,k){return K.H.useCallback(g,k)},oe.useContext=function(g){return K.H.useContext(g)},oe.useDebugValue=function(){},oe.useDeferredValue=function(g,k){return K.H.useDeferredValue(g,k)},oe.useEffect=function(g,k){return K.H.useEffect(g,k)},oe.useEffectEvent=function(g){return K.H.useEffectEvent(g)},oe.useId=function(){return K.H.useId()},oe.useImperativeHandle=function(g,k,V){return K.H.useImperativeHandle(g,k,V)},oe.useInsertionEffect=function(g,k){return K.H.useInsertionEffect(g,k)},oe.useLayoutEffect=function(g,k){return K.H.useLayoutEffect(g,k)},oe.useMemo=function(g,k){return K.H.useMemo(g,k)},oe.useOptimistic=function(g,k){return K.H.useOptimistic(g,k)},oe.useReducer=function(g,k,V){return K.H.useReducer(g,k,V)},oe.useRef=function(g){return K.H.useRef(g)},oe.useState=function(g){return K.H.useState(g)},oe.useSyncExternalStore=function(g,k,V){return K.H.useSyncExternalStore(g,k,V)},oe.useTransition=function(){return K.H.useTransition()},oe.version="19.2.4",oe}var Rf;function vc(){return Rf||(Rf=1,gc.exports=Ep()),gc.exports}var pc={exports:{}},Pe={};/**
|
|
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 Df;function Cp(){if(Df)return Pe;Df=1;var c=vc();function f(C){var p="https://react.dev/errors/"+C;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)p+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+C+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(){}var o={d:{f:y,r:function(){throw Error(f(522))},D:y,C:y,L:y,m:y,X:y,S:y,M:y},p:0,findDOMNode:null},T=Symbol.for("react.portal");function U(C,p,H){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:j==null?null:""+j,children:C,containerInfo:p,implementation:H}}var O=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function N(C,p){if(C==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Pe.createPortal=function(C,p){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(f(299));return U(C,p,null,H)},Pe.flushSync=function(C){var p=O.T,H=o.p;try{if(O.T=null,o.p=2,C)return C()}finally{O.T=p,o.p=H,o.d.f()}},Pe.preconnect=function(C,p){typeof C=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(C,p))},Pe.prefetchDNS=function(C){typeof C=="string"&&o.d.D(C)},Pe.preinit=function(C,p){if(typeof C=="string"&&p&&typeof p.as=="string"){var H=p.as,j=N(H,p.crossOrigin),z=typeof p.integrity=="string"?p.integrity:void 0,A=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;H==="style"?o.d.S(C,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:j,integrity:z,fetchPriority:A}):H==="script"&&o.d.X(C,{crossOrigin:j,integrity:z,fetchPriority:A,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Pe.preinitModule=function(C,p){if(typeof C=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var H=N(p.as,p.crossOrigin);o.d.M(C,{crossOrigin:H,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(C)},Pe.preload=function(C,p){if(typeof C=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var H=p.as,j=N(H,p.crossOrigin);o.d.L(C,H,{crossOrigin:j,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Pe.preloadModule=function(C,p){if(typeof C=="string")if(p){var H=N(p.as,p.crossOrigin);o.d.m(C,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:H,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(C)},Pe.requestFormReset=function(C){o.d.r(C)},Pe.unstable_batchedUpdates=function(C,p){return C(p)},Pe.useFormState=function(C,p,H){return O.H.useFormState(C,p,H)},Pe.useFormStatus=function(){return O.H.useHostTransitionStatus()},Pe.version="19.2.4",Pe}var Mf;function Ap(){if(Mf)return pc.exports;Mf=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(f){console.error(f)}}return c(),pc.exports=Cp(),pc.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 Of;function Rp(){if(Of)return En;Of=1;var c=Tp(),f=vc(),y=Ap();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 T(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U(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 O(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 N(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 C(e){if(U(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=U(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 C(n),e;if(i===a)return C(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var r=!1,s=n.child;s;){if(s===l){r=!0,l=n,a=i;break}if(s===a){r=!0,a=n,l=i;break}s=s.sibling}if(!r){for(s=i.child;s;){if(s===l){r=!0,l=i,a=n;break}if(s===a){r=!0,a=i,l=n;break}s=s.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 H(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=H(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,z=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var $=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ee:return"Fragment";case G:return"Profiler";case Y:return"StrictMode";case J:return"Suspense";case I:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case X:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var de=Array.isArray,R=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},P=[],fe=-1;function g(e){return{current:e}}function k(e){0>fe||(e.current=P[fe],P[fe]=null,fe--)}function V(e,t){fe++,P[fe]=e.current,e.current=t}var le=g(null),B=g(null),F=g(null),ce=g(null);function Ce(e,t){switch(V(F,t),V(B,e),V(le,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=Zd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}k(le),V(le,e)}function De(){k(le),k(B),k(F)}function Ma(e){e.memoizedState!==null&&V(ce,e);var t=le.current,l=Zd(t,e.type);t!==l&&(V(B,e),V(le,l))}function Rn(e){B.current===e&&(k(le),k(B)),ce.current===e&&(k(ce),bn._currentValue=ie)}var Vi,mc;function Cl(e){if(Vi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Vi=t&&t[1]||"",mc=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Vi+e+mc}var Ki=!1;function Ji(e,t){if(!e||Ki)return"";Ki=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(E){var S=E}Reflect.construct(e,[],q)}else{try{q.call()}catch(E){S=E}e.call(q.prototype)}}else{try{throw Error()}catch(E){S=E}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(E){if(E&&S&&typeof E.stack=="string")return[E.stack,S.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],s=i[1];if(r&&s){var d=r.split(`
|
|
44
|
-
`),b=s.split(`
|
|
45
|
-
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===b.length)for(a=d.length-1,n=b.length-1;1<=a&&0<=n&&d[a]!==b[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==b[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==b[n]){var M=`
|
|
46
|
-
`+d[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=n);break}}}finally{Ki=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Cl(l):""}function $f(e,t){switch(e.tag){case 26:case 27:case 5:return Cl(e.type);case 16:return Cl("Lazy");case 13:return e.child!==t&&t!==null?Cl("Suspense Fallback"):Cl("Suspense");case 19:return Cl("SuspenseList");case 0:case 15:return Ji(e.type,!1);case 11:return Ji(e.type.render,!1);case 1:return Ji(e.type,!0);case 31:return Cl("Activity");default:return""}}function bc(e){try{var t="",l=null;do t+=$f(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Wi=Object.prototype.hasOwnProperty,$i=c.unstable_scheduleCallback,Fi=c.unstable_cancelCallback,Ff=c.unstable_shouldYield,If=c.unstable_requestPaint,st=c.unstable_now,Pf=c.unstable_getCurrentPriorityLevel,Sc=c.unstable_ImmediatePriority,jc=c.unstable_UserBlockingPriority,Dn=c.unstable_NormalPriority,eh=c.unstable_LowPriority,zc=c.unstable_IdlePriority,th=c.log,lh=c.unstable_setDisableYieldValue,Oa=null,ot=null;function el(e){if(typeof th=="function"&&lh(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Oa,e)}catch{}}var dt=Math.clz32?Math.clz32:ih,ah=Math.log,nh=Math.LN2;function ih(e){return e>>>=0,e===0?32:31-(ah(e)/nh|0)|0}var Mn=256,On=262144,_n=4194304;function Al(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 Un(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 s=a&134217727;return s!==0?(a=s&~i,a!==0?n=Al(a):(r&=s,r!==0?n=Al(r):l||(l=s&~e,l!==0&&(n=Al(l))))):(s=a&~i,s!==0?n=Al(s):r!==0?n=Al(r):l||(l=a&~e,l!==0&&(n=Al(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 _a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function uh(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 Tc(){var e=_n;return _n<<=1,(_n&62914560)===0&&(_n=4194304),e}function Ii(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rh(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 s=e.entanglements,d=e.expirationTimes,b=e.hiddenUpdates;for(l=r&~l;0<l;){var M=31-dt(l),q=1<<M;s[M]=0,d[M]=-1;var S=b[M];if(S!==null)for(b[M]=null,M=0;M<S.length;M++){var E=S[M];E!==null&&(E.lane&=-536870913)}l&=~q}a!==0&&Ec(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function Ec(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Cc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ac(e,t){var l=t&-t;return l=(l&42)!==0?1:Pi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Pi(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 eu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rc(){var e=w.p;return e!==0?e:(e=window.event,e===void 0?32:pf(e.type))}function Dc(e,t){var l=w.p;try{return w.p=e,t()}finally{w.p=l}}var tl=Math.random().toString(36).slice(2),Je="__reactFiber$"+tl,tt="__reactProps$"+tl,Zl="__reactContainer$"+tl,tu="__reactEvents$"+tl,ch="__reactListeners$"+tl,sh="__reactHandles$"+tl,Mc="__reactResources$"+tl,Ba="__reactMarker$"+tl;function lu(e){delete e[Je],delete e[tt],delete e[tu],delete e[ch],delete e[sh]}function Vl(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Zl]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Id(e);e!==null;){if(l=e[Je])return l;e=Id(e)}return t}e=l,l=e.parentNode}return null}function Kl(e){if(e=e[Je]||e[Zl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Na(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Jl(e){var t=e[Mc];return t||(t=e[Mc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Ba]=!0}var Oc=new Set,_c={};function Rl(e,t){Wl(e,t),Wl(e+"Capture",t)}function Wl(e,t){for(_c[e]=t,e=0;e<t.length;e++)Oc.add(t[e])}var oh=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]*$"),Uc={},Bc={};function dh(e){return Wi.call(Bc,e)?!0:Wi.call(Uc,e)?!1:oh.test(e)?Bc[e]=!0:(Uc[e]=!0,!1)}function Bn(e,t,l){if(dh(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 Nn(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 Ht(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 mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fh(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 au(e){if(!e._valueTracker){var t=Nc(e)?"checked":"value";e._valueTracker=fh(e,t,""+e[t])}}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Nc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Hn(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 hh=/[\n"\\]/g;function bt(e){return e.replace(hh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function nu(e,t,l,a,n,i,r,s){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=""+mt(t)):e.value!==""+mt(t)&&(e.value=""+mt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?iu(e,r,mt(t)):l!=null?iu(e,r,mt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+mt(s):e.removeAttribute("name")}function qc(e,t,l,a,n,i,r,s){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)){au(e);return}l=l!=null?""+mt(l):"",t=t!=null?""+mt(t):l,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),au(e)}function iu(e,t,l){t==="number"&&Hn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function $l(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=""+mt(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=""+mt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+mt(l):""}function Yc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(de(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=mt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),au(e)}function Fl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var gh=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 Lc(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||gh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Gc(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&&Lc(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Lc(e,i,t[i])}function uu(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 ph=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"]]),yh=/^[\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 qn(e){return yh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qt(){}var ru=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,Pl=null;function wc(e){var t=Kl(e);if(t&&(e=t.stateNode)){var l=e[tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(nu(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="'+bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[tt]||null;if(!n)throw Error(o(90));nu(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&&Hc(a)}break e;case"textarea":kc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&$l(e,!!l.multiple,t,!1)}}}var su=!1;function Xc(e,t,l){if(su)return e(t,l);su=!0;try{var a=e(t);return a}finally{if(su=!1,(Il!==null||Pl!==null)&&(Ti(),Il&&(t=Il,e=Pl,Pl=Il=null,wc(t),e)))for(t=0;t<e.length;t++)wc(e[t])}}function Ha(e,t){var l=e.stateNode;if(l===null)return null;var a=l[tt]||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 kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ou=!1;if(kt)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){ou=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{ou=!1}var ll=null,du=null,kn=null;function Qc(){if(kn)return kn;var e,t=du,l=t.length,a,n="value"in ll?ll.value:ll.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 kn=n.slice(e,1<a?1-a:void 0)}function Yn(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 Ln(){return!0}function Zc(){return!1}function lt(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 s in e)e.hasOwnProperty(s)&&(l=e[s],this[s]=l?l(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ln:Zc,this.isPropagationStopped=Zc,this}return j(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=Ln)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ln)},persist:function(){},isPersistent:Ln}),t}var Dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gn=lt(Dl),ka=j({},Dl,{view:0,detail:0}),vh=lt(ka),fu,hu,Ya,wn=j({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pu,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!==Ya&&(Ya&&e.type==="mousemove"?(fu=e.screenX-Ya.screenX,hu=e.screenY-Ya.screenY):hu=fu=0,Ya=e),fu)},movementY:function(e){return"movementY"in e?e.movementY:hu}}),Vc=lt(wn),xh=j({},wn,{dataTransfer:0}),mh=lt(xh),bh=j({},ka,{relatedTarget:0}),gu=lt(bh),Sh=j({},Dl,{animationName:0,elapsedTime:0,pseudoElement:0}),jh=lt(Sh),zh=j({},Dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Th=lt(zh),Eh=j({},Dl,{data:0}),Kc=lt(Eh),Ch={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ah={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"},Rh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Rh[e])?!!t[e]:!1}function pu(){return Dh}var Mh=j({},ka,{key:function(e){if(e.key){var t=Ch[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ah[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pu,charCode:function(e){return e.type==="keypress"?Yn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Oh=lt(Mh),_h=j({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jc=lt(_h),Uh=j({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pu}),Bh=lt(Uh),Nh=j({},Dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hh=lt(Nh),qh=j({},wn,{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}),kh=lt(qh),Yh=j({},Dl,{newState:0,oldState:0}),Lh=lt(Yh),Gh=[9,13,27,32],yu=kt&&"CompositionEvent"in window,La=null;kt&&"documentMode"in document&&(La=document.documentMode);var wh=kt&&"TextEvent"in window&&!La,Wc=kt&&(!yu||La&&8<La&&11>=La),$c=" ",Fc=!1;function Ic(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function Xh(e,t){switch(e){case"compositionend":return Pc(t);case"keypress":return t.which!==32?null:(Fc=!0,$c);case"textInput":return e=t.data,e===$c&&Fc?null:e;default:return null}}function Qh(e,t){if(ea)return e==="compositionend"||!yu&&Ic(e,t)?(e=Qc(),kn=du=ll=null,ea=!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 Wc&&t.locale!=="ko"?null:t.data;default:return null}}var Zh={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 es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zh[e.type]:t==="textarea"}function ts(e,t,l,a){Il?Pl?Pl.push(a):Pl=[a]:Il=a,t=Oi(t,"onChange"),0<t.length&&(l=new Gn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ga=null,wa=null;function Vh(e){kd(e,0)}function Xn(e){var t=Na(e);if(Hc(t))return e}function ls(e,t){if(e==="change")return t}var as=!1;if(kt){var vu;if(kt){var xu="oninput"in document;if(!xu){var ns=document.createElement("div");ns.setAttribute("oninput","return;"),xu=typeof ns.oninput=="function"}vu=xu}else vu=!1;as=vu&&(!document.documentMode||9<document.documentMode)}function is(){Ga&&(Ga.detachEvent("onpropertychange",us),wa=Ga=null)}function us(e){if(e.propertyName==="value"&&Xn(wa)){var t=[];ts(t,wa,e,cu(e)),Xc(Vh,t)}}function Kh(e,t,l){e==="focusin"?(is(),Ga=t,wa=l,Ga.attachEvent("onpropertychange",us)):e==="focusout"&&is()}function Jh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xn(wa)}function Wh(e,t){if(e==="click")return Xn(t)}function $h(e,t){if(e==="input"||e==="change")return Xn(t)}function Fh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:Fh;function Xa(e,t){if(ft(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(!Wi.call(t,n)||!ft(e[n],t[n]))return!1}return!0}function rs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cs(e,t){var l=rs(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=rs(l)}}function ss(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ss(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function os(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hn(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=Hn(e.document)}return t}function mu(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 Ih=kt&&"documentMode"in document&&11>=document.documentMode,ta=null,bu=null,Qa=null,Su=!1;function ds(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Su||ta==null||ta!==Hn(a)||(a=ta,"selectionStart"in a&&mu(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}),Qa&&Xa(Qa,a)||(Qa=a,a=Oi(bu,"onSelect"),0<a.length&&(t=new Gn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ta)))}function Ml(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var la={animationend:Ml("Animation","AnimationEnd"),animationiteration:Ml("Animation","AnimationIteration"),animationstart:Ml("Animation","AnimationStart"),transitionrun:Ml("Transition","TransitionRun"),transitionstart:Ml("Transition","TransitionStart"),transitioncancel:Ml("Transition","TransitionCancel"),transitionend:Ml("Transition","TransitionEnd")},ju={},fs={};kt&&(fs=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function Ol(e){if(ju[e])return ju[e];if(!la[e])return e;var t=la[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in fs)return ju[e]=t[l];return e}var hs=Ol("animationend"),gs=Ol("animationiteration"),ps=Ol("animationstart"),Ph=Ol("transitionrun"),eg=Ol("transitionstart"),tg=Ol("transitioncancel"),ys=Ol("transitionend"),vs=new Map,zu="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(" ");zu.push("scrollEnd");function Dt(e,t){vs.set(e,t),Rl(t,[e])}var Qn=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)},St=[],aa=0,Tu=0;function Zn(){for(var e=aa,t=Tu=aa=0;t<e;){var l=St[t];St[t++]=null;var a=St[t];St[t++]=null;var n=St[t];St[t++]=null;var i=St[t];if(St[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&&xs(l,n,i)}}function Vn(e,t,l,a){St[aa++]=e,St[aa++]=t,St[aa++]=l,St[aa++]=a,Tu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Eu(e,t,l,a){return Vn(e,t,l,a),Kn(e)}function _l(e,t){return Vn(e,null,null,t),Kn(e)}function xs(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-dt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Kn(e){if(50<hn)throw hn=0,Br=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var na={};function lg(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 ht(e,t,l,a){return new lg(e,t,l,a)}function Cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yt(e,t){var l=e.alternate;return l===null?(l=ht(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 ms(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 Jn(e,t,l,a,n,i){var r=0;if(a=e,typeof e=="function")Cu(e)&&(r=1);else if(typeof e=="string")r=rp(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=ht(31,l,t,n),e.elementType=pe,e.lanes=i,e;case ee:return Ul(l.children,n,i,t);case Y:r=8,n|=24;break;case G:return e=ht(12,l,t,n|2),e.elementType=G,e.lanes=i,e;case J:return e=ht(13,l,t,n),e.elementType=J,e.lanes=i,e;case I:return e=ht(19,l,t,n),e.elementType=I,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:r=10;break e;case Q:r=9;break e;case D:r=11;break e;case K:r=14;break e;case ne:r=16,a=null;break e}r=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ht(r,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Ul(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function Au(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function bs(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function Ru(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ss=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=Ss.get(e);return l!==void 0?l:(t={value:e,source:t,stack:bc(t)},Ss.set(e,t),t)}return{value:e,source:t,stack:bc(t)}}var ia=[],ua=0,Wn=null,Za=0,zt=[],Tt=0,al=null,_t=1,Ut="";function Lt(e,t){ia[ua++]=Za,ia[ua++]=Wn,Wn=e,Za=t}function js(e,t,l){zt[Tt++]=_t,zt[Tt++]=Ut,zt[Tt++]=al,al=e;var a=_t;e=Ut;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var i=32-dt(t)+n;if(30<i){var r=n-n%5;i=(a&(1<<r)-1).toString(32),a>>=r,n-=r,_t=1<<32-dt(t)+n|l<<n|a,Ut=i+e}else _t=1<<i|l<<n|a,Ut=e}function Du(e){e.return!==null&&(Lt(e,1),js(e,1,0))}function Mu(e){for(;e===Wn;)Wn=ia[--ua],ia[ua]=null,Za=ia[--ua],ia[ua]=null;for(;e===al;)al=zt[--Tt],zt[Tt]=null,Ut=zt[--Tt],zt[Tt]=null,_t=zt[--Tt],zt[Tt]=null}function zs(e,t){zt[Tt++]=_t,zt[Tt++]=Ut,zt[Tt++]=al,_t=t.id,Ut=t.overflow,al=e}var We=null,Be=null,Se=!1,nl=null,Et=!1,Ou=Error(o(519));function il(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(jt(t,e)),Ou}function Ts(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[tt]=a,l){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(l=0;l<pn.length;l++)ve(pn[l],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),qc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Yc(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||wd(t.textContent,l)?(a.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),a.onScroll!=null&&ve("scroll",t),a.onScrollEnd!=null&&ve("scrollend",t),a.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||il(e,!0)}function Es(e){for(We=e.return;We;)switch(We.tag){case 5:case 31:case 13:Et=!1;return;case 27:case 3:Et=!0;return;default:We=We.return}}function ra(e){if(e!==We)return!1;if(!Se)return Es(e),Se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Wr(e.type,e.memoizedProps)),l=!l),l&&Be&&il(e),Es(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Be=Fd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Be=Fd(e)}else t===27?(t=Be,ml(e.type)?(e=ec,ec=null,Be=e):Be=t):Be=We?At(e.stateNode.nextSibling):null;return!0}function Bl(){Be=We=null,Se=!1}function _u(){var e=nl;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),nl=null),e}function Va(e){nl===null?nl=[e]:nl.push(e)}var Uu=g(null),Nl=null,Gt=null;function ul(e,t,l){V(Uu,t._currentValue),t._currentValue=l}function wt(e){e._currentValue=Uu.current,k(Uu)}function Bu(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 Nu(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 s=i;i=n;for(var d=0;d<t.length;d++)if(s.context===t[d]){i.lanes|=l,s=i.alternate,s!==null&&(s.lanes|=l),Bu(i.return,l,e),a||(r=null);break e}i=s.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),Bu(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 ca(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 s=n.type;ft(n.pendingProps.value,r.value)||(e!==null?e.push(s):e=[s])}}else if(n===ce.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(bn):e=[bn])}n=n.return}e!==null&&Nu(t,e,l,a),t.flags|=262144}function $n(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hl(e){Nl=e,Gt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return Cs(Nl,e)}function Fn(e,t){return Nl===null&&Hl(e),Cs(e,t)}function Cs(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Gt===null){if(e===null)throw Error(o(308));Gt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gt=Gt.next=t;return l}var ag=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()})}},ng=c.unstable_scheduleCallback,ig=c.unstable_NormalPriority,Ge={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hu(){return{controller:new ag,data:new Map,refCount:0}}function Ka(e){e.refCount--,e.refCount===0&&ng(ig,function(){e.controller.abort()})}var Ja=null,qu=0,sa=0,oa=null;function ug(e,t){if(Ja===null){var l=Ja=[];qu=0,sa=Lr(),oa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return qu++,t.then(As,As),t}function As(){if(--qu===0&&Ja!==null){oa!==null&&(oa.status="fulfilled");var e=Ja;Ja=null,sa=0,oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rg(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 Rs=R.S;R.S=function(e,t){fd=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ug(e,t),Rs!==null&&Rs(e,t)};var ql=g(null);function ku(){var e=ql.current;return e!==null?e:Ue.pooledCache}function In(e,t){t===null?V(ql,ql.current):V(ql,t.pool)}function Ds(){var e=ku();return e===null?null:{parent:Ge._currentValue,pool:e}}var da=Error(o(460)),Yu=Error(o(474)),Pn=Error(o(542)),ei={then:function(){}};function Ms(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Os(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(qt,qt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Us(e),e;default:if(typeof t.status=="string")t.then(qt,qt);else{if(e=Ue,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,Us(e),e}throw Yl=t,da}}function kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Yl=l,da):l}}var Yl=null;function _s(){if(Yl===null)throw Error(o(459));var e=Yl;return Yl=null,e}function Us(e){if(e===da||e===Pn)throw Error(o(483))}var fa=null,Wa=0;function ti(e){var t=Wa;return Wa+=1,fa===null&&(fa=[]),Os(fa,e,t)}function $a(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function li(e,t){throw t.$$typeof===z?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Bs(e){function t(v,h){if(e){var m=v.deletions;m===null?(v.deletions=[h],v.flags|=16):m.push(h)}}function l(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function a(v){for(var h=new Map;v!==null;)v.key!==null?h.set(v.key,v):h.set(v.index,v),v=v.sibling;return h}function n(v,h){return v=Yt(v,h),v.index=0,v.sibling=null,v}function i(v,h,m){return v.index=m,e?(m=v.alternate,m!==null?(m=m.index,m<h?(v.flags|=67108866,h):m):(v.flags|=67108866,h)):(v.flags|=1048576,h)}function r(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function s(v,h,m,_){return h===null||h.tag!==6?(h=Au(m,v.mode,_),h.return=v,h):(h=n(h,m),h.return=v,h)}function d(v,h,m,_){var ue=m.type;return ue===ee?M(v,h,m.props.children,_,m.key):h!==null&&(h.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ne&&kl(ue)===h.type)?(h=n(h,m.props),$a(h,m),h.return=v,h):(h=Jn(m.type,m.key,m.props,null,v.mode,_),$a(h,m),h.return=v,h)}function b(v,h,m,_){return h===null||h.tag!==4||h.stateNode.containerInfo!==m.containerInfo||h.stateNode.implementation!==m.implementation?(h=Ru(m,v.mode,_),h.return=v,h):(h=n(h,m.children||[]),h.return=v,h)}function M(v,h,m,_,ue){return h===null||h.tag!==7?(h=Ul(m,v.mode,_,ue),h.return=v,h):(h=n(h,m),h.return=v,h)}function q(v,h,m){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Au(""+h,v.mode,m),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case A:return m=Jn(h.type,h.key,h.props,null,v.mode,m),$a(m,h),m.return=v,m;case L:return h=Ru(h,v.mode,m),h.return=v,h;case ne:return h=kl(h),q(v,h,m)}if(de(h)||Z(h))return h=Ul(h,v.mode,m,null),h.return=v,h;if(typeof h.then=="function")return q(v,ti(h),m);if(h.$$typeof===X)return q(v,Fn(v,h),m);li(v,h)}return null}function S(v,h,m,_){var ue=h!==null?h.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return ue!==null?null:s(v,h,""+m,_);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case A:return m.key===ue?d(v,h,m,_):null;case L:return m.key===ue?b(v,h,m,_):null;case ne:return m=kl(m),S(v,h,m,_)}if(de(m)||Z(m))return ue!==null?null:M(v,h,m,_,null);if(typeof m.then=="function")return S(v,h,ti(m),_);if(m.$$typeof===X)return S(v,h,Fn(v,m),_);li(v,m)}return null}function E(v,h,m,_,ue){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return v=v.get(m)||null,s(h,v,""+_,ue);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case A:return v=v.get(_.key===null?m:_.key)||null,d(h,v,_,ue);case L:return v=v.get(_.key===null?m:_.key)||null,b(h,v,_,ue);case ne:return _=kl(_),E(v,h,m,_,ue)}if(de(_)||Z(_))return v=v.get(m)||null,M(h,v,_,ue,null);if(typeof _.then=="function")return E(v,h,m,ti(_),ue);if(_.$$typeof===X)return E(v,h,m,Fn(h,_),ue);li(h,_)}return null}function te(v,h,m,_){for(var ue=null,ze=null,ae=h,ge=h=0,me=null;ae!==null&&ge<m.length;ge++){ae.index>ge?(me=ae,ae=null):me=ae.sibling;var Te=S(v,ae,m[ge],_);if(Te===null){ae===null&&(ae=me);break}e&&ae&&Te.alternate===null&&t(v,ae),h=i(Te,h,ge),ze===null?ue=Te:ze.sibling=Te,ze=Te,ae=me}if(ge===m.length)return l(v,ae),Se&&Lt(v,ge),ue;if(ae===null){for(;ge<m.length;ge++)ae=q(v,m[ge],_),ae!==null&&(h=i(ae,h,ge),ze===null?ue=ae:ze.sibling=ae,ze=ae);return Se&&Lt(v,ge),ue}for(ae=a(ae);ge<m.length;ge++)me=E(ae,v,ge,m[ge],_),me!==null&&(e&&me.alternate!==null&&ae.delete(me.key===null?ge:me.key),h=i(me,h,ge),ze===null?ue=me:ze.sibling=me,ze=me);return e&&ae.forEach(function(Tl){return t(v,Tl)}),Se&&Lt(v,ge),ue}function re(v,h,m,_){if(m==null)throw Error(o(151));for(var ue=null,ze=null,ae=h,ge=h=0,me=null,Te=m.next();ae!==null&&!Te.done;ge++,Te=m.next()){ae.index>ge?(me=ae,ae=null):me=ae.sibling;var Tl=S(v,ae,Te.value,_);if(Tl===null){ae===null&&(ae=me);break}e&&ae&&Tl.alternate===null&&t(v,ae),h=i(Tl,h,ge),ze===null?ue=Tl:ze.sibling=Tl,ze=Tl,ae=me}if(Te.done)return l(v,ae),Se&&Lt(v,ge),ue;if(ae===null){for(;!Te.done;ge++,Te=m.next())Te=q(v,Te.value,_),Te!==null&&(h=i(Te,h,ge),ze===null?ue=Te:ze.sibling=Te,ze=Te);return Se&&Lt(v,ge),ue}for(ae=a(ae);!Te.done;ge++,Te=m.next())Te=E(ae,v,ge,Te.value,_),Te!==null&&(e&&Te.alternate!==null&&ae.delete(Te.key===null?ge:Te.key),h=i(Te,h,ge),ze===null?ue=Te:ze.sibling=Te,ze=Te);return e&&ae.forEach(function(xp){return t(v,xp)}),Se&&Lt(v,ge),ue}function _e(v,h,m,_){if(typeof m=="object"&&m!==null&&m.type===ee&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case A:e:{for(var ue=m.key;h!==null;){if(h.key===ue){if(ue=m.type,ue===ee){if(h.tag===7){l(v,h.sibling),_=n(h,m.props.children),_.return=v,v=_;break e}}else if(h.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ne&&kl(ue)===h.type){l(v,h.sibling),_=n(h,m.props),$a(_,m),_.return=v,v=_;break e}l(v,h);break}else t(v,h);h=h.sibling}m.type===ee?(_=Ul(m.props.children,v.mode,_,m.key),_.return=v,v=_):(_=Jn(m.type,m.key,m.props,null,v.mode,_),$a(_,m),_.return=v,v=_)}return r(v);case L:e:{for(ue=m.key;h!==null;){if(h.key===ue)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){l(v,h.sibling),_=n(h,m.children||[]),_.return=v,v=_;break e}else{l(v,h);break}else t(v,h);h=h.sibling}_=Ru(m,v.mode,_),_.return=v,v=_}return r(v);case ne:return m=kl(m),_e(v,h,m,_)}if(de(m))return te(v,h,m,_);if(Z(m)){if(ue=Z(m),typeof ue!="function")throw Error(o(150));return m=ue.call(m),re(v,h,m,_)}if(typeof m.then=="function")return _e(v,h,ti(m),_);if(m.$$typeof===X)return _e(v,h,Fn(v,m),_);li(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,h!==null&&h.tag===6?(l(v,h.sibling),_=n(h,m),_.return=v,v=_):(l(v,h),_=Au(m,v.mode,_),_.return=v,v=_),r(v)):l(v,h)}return function(v,h,m,_){try{Wa=0;var ue=_e(v,h,m,_);return fa=null,ue}catch(ae){if(ae===da||ae===Pn)throw ae;var ze=ht(29,ae,null,v.mode);return ze.lanes=_,ze.return=v,ze}finally{}}}var Ll=Bs(!0),Ns=Bs(!1),rl=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gu(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 cl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ee&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Kn(e),xs(e,null,l),t}return Vn(e,a,t,l),Kn(e)}function Fa(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,Cc(e,l)}}function wu(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 Xu=!1;function Ia(){if(Xu){var e=oa;if(e!==null)throw e}}function Pa(e,t,l,a){Xu=!1;var n=e.updateQueue;rl=!1;var i=n.firstBaseUpdate,r=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var d=s,b=d.next;d.next=null,r===null?i=b:r.next=b,r=d;var M=e.alternate;M!==null&&(M=M.updateQueue,s=M.lastBaseUpdate,s!==r&&(s===null?M.firstBaseUpdate=b:s.next=b,M.lastBaseUpdate=d))}if(i!==null){var q=n.baseState;r=0,M=b=d=null,s=i;do{var S=s.lane&-536870913,E=S!==s.lane;if(E?(xe&S)===S:(a&S)===S){S!==0&&S===sa&&(Xu=!0),M!==null&&(M=M.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var te=e,re=s;S=t;var _e=l;switch(re.tag){case 1:if(te=re.payload,typeof te=="function"){q=te.call(_e,q,S);break e}q=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=re.payload,S=typeof te=="function"?te.call(_e,q,S):te,S==null)break e;q=j({},q,S);break e;case 2:rl=!0}}S=s.callback,S!==null&&(e.flags|=64,E&&(e.flags|=8192),E=n.callbacks,E===null?n.callbacks=[S]:E.push(S))}else E={lane:S,tag:s.tag,payload:s.payload,callback:s.callback,next:null},M===null?(b=M=E,d=q):M=M.next=E,r|=S;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;E=s,s=E.next,E.next=null,n.lastBaseUpdate=E,n.shared.pending=null}}while(!0);M===null&&(d=q),n.baseState=d,n.firstBaseUpdate=b,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),gl|=r,e.lanes=r,e.memoizedState=q}}function Hs(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function qs(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Hs(l[e],t)}var ha=g(null),ai=g(0);function ks(e,t){e=Ft,V(ai,e),V(ha,t),Ft=e|t.baseLanes}function Qu(){V(ai,Ft),V(ha,ha.current)}function Zu(){Ft=ai.current,k(ha),k(ai)}var gt=g(null),Ct=null;function ol(e){var t=e.alternate;V(Ye,Ye.current&1),V(gt,e),Ct===null&&(t===null||ha.current!==null||t.memoizedState!==null)&&(Ct=e)}function Vu(e){V(Ye,Ye.current),V(gt,e),Ct===null&&(Ct=e)}function Ys(e){e.tag===22?(V(Ye,Ye.current),V(gt,e),Ct===null&&(Ct=e)):dl()}function dl(){V(Ye,Ye.current),V(gt,gt.current)}function pt(e){k(gt),Ct===e&&(Ct=null),k(Ye)}var Ye=g(0);function ni(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ir(l)||Pr(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 Xt=0,he=null,Me=null,we=null,ii=!1,ga=!1,Gl=!1,ui=0,en=0,pa=null,cg=0;function qe(){throw Error(o(321))}function Ku(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ft(e[l],t[l]))return!1;return!0}function Ju(e,t,l,a,n,i){return Xt=i,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?zo:sr,Gl=!1,i=l(a,n),Gl=!1,ga&&(i=Gs(t,l,a,n)),Ls(e),i}function Ls(e){R.H=an;var t=Me!==null&&Me.next!==null;if(Xt=0,we=Me=he=null,ii=!1,en=0,pa=null,t)throw Error(o(300));e===null||Xe||(e=e.dependencies,e!==null&&$n(e)&&(Xe=!0))}function Gs(e,t,l,a){he=e;var n=0;do{if(ga&&(pa=null),en=0,ga=!1,25<=n)throw Error(o(301));if(n+=1,we=Me=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}R.H=To,i=t(l,a)}while(ga);return i}function sg(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?tn(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(he.flags|=1024),t}function Wu(){var e=ui!==0;return ui=0,e}function $u(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Fu(e){if(ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ii=!1}Xt=0,we=Me=he=null,ga=!1,en=ui=0,pa=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return we===null?he.memoizedState=we=e:we=we.next=e,we}function Le(){if(Me===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=we===null?he.memoizedState:we.next;if(t!==null)we=t,Me=e;else{if(e===null)throw he.alternate===null?Error(o(467)):Error(o(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},we===null?he.memoizedState=we=e:we=we.next=e}return we}function ri(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tn(e){var t=en;return en+=1,pa===null&&(pa=[]),e=Os(pa,e,t),t=he,(we===null?t.memoizedState:we.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?zo:sr),e}function ci(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tn(e);if(e.$$typeof===X)return $e(e)}throw Error(o(438,String(e)))}function Iu(e){var t=null,l=he.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=he.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=ri(),he.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]=se;return t.index++,l}function Qt(e,t){return typeof t=="function"?t(e):t}function si(e){var t=Le();return Pu(t,Me,e)}function Pu(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 s=r=null,d=null,b=t,M=!1;do{var q=b.lane&-536870913;if(q!==b.lane?(xe&q)===q:(Xt&q)===q){var S=b.revertLane;if(S===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),q===sa&&(M=!0);else if((Xt&S)===S){b=b.next,S===sa&&(M=!0);continue}else q={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},d===null?(s=d=q,r=i):d=d.next=q,he.lanes|=S,gl|=S;q=b.action,Gl&&l(i,q),i=b.hasEagerState?b.eagerState:l(i,q)}else S={lane:q,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},d===null?(s=d=S,r=i):d=d.next=S,he.lanes|=q,gl|=q;b=b.next}while(b!==null&&b!==t);if(d===null?r=i:d.next=s,!ft(i,e.memoizedState)&&(Xe=!0,M&&(l=oa,l!==null)))throw l;e.memoizedState=i,e.baseState=r,e.baseQueue=d,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function er(e){var t=Le(),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);ft(i,t.memoizedState)||(Xe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function ws(e,t,l){var a=he,n=Le(),i=Se;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var r=!ft((Me||n).memoizedState,l);if(r&&(n.memoizedState=l,Xe=!0),n=n.queue,ar(Zs.bind(null,a,n,e),[e]),n.getSnapshot!==t||r||we!==null&&we.memoizedState.tag&1){if(a.flags|=2048,ya(9,{destroy:void 0},Qs.bind(null,a,n,l,t),null),Ue===null)throw Error(o(349));i||(Xt&127)!==0||Xs(a,t,l)}return l}function Xs(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=he.updateQueue,t===null?(t=ri(),he.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Qs(e,t,l,a){t.value=l,t.getSnapshot=a,Vs(t)&&Ks(e)}function Zs(e,t,l){return l(function(){Vs(t)&&Ks(e)})}function Vs(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ft(e,l)}catch{return!0}}function Ks(e){var t=_l(e,2);t!==null&&rt(t,e,2)}function tr(e){var t=et();if(typeof e=="function"){var l=e;if(e=l(),Gl){el(!0);try{l()}finally{el(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:e},t}function Js(e,t,l,a){return e.baseState=l,Pu(e,Me,typeof a=="function"?a:Qt)}function og(e,t,l,a,n){if(fi(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)}};R.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Ws(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Ws(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=R.T,r={};R.T=r;try{var s=l(n,a),d=R.S;d!==null&&d(r,s),$s(e,t,s)}catch(b){lr(e,t,b)}finally{i!==null&&r.types!==null&&(i.types=r.types),R.T=i}}else try{i=l(n,a),$s(e,t,i)}catch(b){lr(e,t,b)}}function $s(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Fs(e,t,a)},function(a){return lr(e,t,a)}):Fs(e,t,l)}function Fs(e,t,l){t.status="fulfilled",t.value=l,Is(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ws(e,l)))}function lr(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Is(t),t=t.next;while(t!==a)}e.action=null}function Is(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ps(e,t){return t}function eo(e,t){if(Se){var l=Ue.formState;if(l!==null){e:{var a=he;if(Se){if(Be){t:{for(var n=Be,i=Et;n.nodeType!==8;){if(!i){n=null;break t}if(n=At(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Be=At(n.nextSibling),a=n.data==="F!";break e}}il(a)}a=!1}a&&(t=l[0])}}return l=et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:t},l.queue=a,l=bo.bind(null,he,a),a.dispatch=l,a=tr(!1),i=cr.bind(null,he,!1,a.queue),a=et(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=og.bind(null,he,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function to(e){var t=Le();return lo(t,Me,e)}function lo(e,t,l){if(t=Pu(e,t,Ps)[0],e=si(Qt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=tn(t)}catch(r){throw r===da?Pn:r}else a=t;t=Le();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(he.flags|=2048,ya(9,{destroy:void 0},dg.bind(null,n,l),null)),[a,i,e]}function dg(e,t){e.action=t}function ao(e){var t=Le(),l=Me;if(l!==null)return lo(t,l,e);Le(),t=t.memoizedState,l=Le();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ya(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=ri(),he.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 no(){return Le().memoizedState}function oi(e,t,l,a){var n=et();he.flags|=e,n.memoizedState=ya(1|t,{destroy:void 0},l,a===void 0?null:a)}function di(e,t,l,a){var n=Le();a=a===void 0?null:a;var i=n.memoizedState.inst;Me!==null&&a!==null&&Ku(a,Me.memoizedState.deps)?n.memoizedState=ya(t,i,l,a):(he.flags|=e,n.memoizedState=ya(1|t,i,l,a))}function io(e,t){oi(8390656,8,e,t)}function ar(e,t){di(2048,8,e,t)}function fg(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=ri(),he.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function uo(e){var t=Le().memoizedState;return fg({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ro(e,t){return di(4,2,e,t)}function co(e,t){return di(4,4,e,t)}function so(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 oo(e,t,l){l=l!=null?l.concat([e]):null,di(4,4,so.bind(null,t,e),l)}function nr(){}function fo(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ku(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function ho(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ku(t,a[1]))return a[0];if(a=e(),Gl){el(!0);try{e()}finally{el(!1)}}return l.memoizedState=[a,t],a}function ir(e,t,l){return l===void 0||(Xt&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=gd(),he.lanes|=e,gl|=e,l)}function go(e,t,l,a){return ft(l,t)?l:ha.current!==null?(e=ir(e,l,a),ft(e,t)||(Xe=!0),e):(Xt&42)===0||(Xt&1073741824)!==0&&(xe&261930)===0?(Xe=!0,e.memoizedState=l):(e=gd(),he.lanes|=e,gl|=e,t)}function po(e,t,l,a,n){var i=w.p;w.p=i!==0&&8>i?i:8;var r=R.T,s={};R.T=s,cr(e,!1,t,l);try{var d=n(),b=R.S;if(b!==null&&b(s,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var M=rg(d,a);ln(e,t,M,xt(e))}else ln(e,t,a,xt(e))}catch(q){ln(e,t,{then:function(){},status:"rejected",reason:q},xt())}finally{w.p=i,r!==null&&s.types!==null&&(r.types=s.types),R.T=r}}function hg(){}function ur(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=yo(e).queue;po(e,n,t,ie,l===null?hg:function(){return vo(e),l(a)})}function yo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vo(e){var t=yo(e);t.next===null&&(t=e.alternate.memoizedState),ln(e,t.next.queue,{},xt())}function rr(){return $e(bn)}function xo(){return Le().memoizedState}function mo(){return Le().memoizedState}function gg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=xt();e=cl(l);var a=sl(t,e,l);a!==null&&(rt(a,t,l),Fa(a,t,l)),t={cache:Hu()},e.payload=t;return}t=t.return}}function pg(e,t,l){var a=xt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fi(e)?So(t,l):(l=Eu(e,t,l,a),l!==null&&(rt(l,e,a),jo(l,t,a)))}function bo(e,t,l){var a=xt();ln(e,t,l,a)}function ln(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(fi(e))So(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,s=i(r,l);if(n.hasEagerState=!0,n.eagerState=s,ft(s,r))return Vn(e,t,n,0),Ue===null&&Zn(),!1}catch{}finally{}if(l=Eu(e,t,n,a),l!==null)return rt(l,e,a),jo(l,t,a),!0}return!1}function cr(e,t,l,a){if(a={lane:2,revertLane:Lr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(t)throw Error(o(479))}else t=Eu(e,l,a,2),t!==null&&rt(t,e,2)}function fi(e){var t=e.alternate;return e===he||t!==null&&t===he}function So(e,t){ga=ii=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Cc(e,l)}}var an={readContext:$e,use:ci,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};an.useEffectEvent=qe;var zo={readContext:$e,use:ci,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:io,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,oi(4194308,4,so.bind(null,t,e),l)},useLayoutEffect:function(e,t){return oi(4194308,4,e,t)},useInsertionEffect:function(e,t){oi(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if(Gl){el(!0);try{e()}finally{el(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var n=l(t);if(Gl){el(!0);try{l(t)}finally{el(!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=pg.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=tr(e);var t=e.queue,l=bo.bind(null,he,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:nr,useDeferredValue:function(e,t){var l=et();return ir(l,e,t)},useTransition:function(){var e=tr(!1);return e=po.bind(null,he,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=he,n=et();if(Se){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Ue===null)throw Error(o(349));(xe&127)!==0||Xs(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,io(Zs.bind(null,a,i,e),[e]),a.flags|=2048,ya(9,{destroy:void 0},Qs.bind(null,a,i,l,t),null),l},useId:function(){var e=et(),t=Ue.identifierPrefix;if(Se){var l=Ut,a=_t;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=ui++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=cg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rr,useFormState:eo,useActionState:eo,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=cr.bind(null,he,!0,l),l.dispatch=t,[e,t]},useMemoCache:Iu,useCacheRefresh:function(){return et().memoizedState=gg.bind(null,he)},useEffectEvent:function(e){var t=et(),l={impl:e};return t.memoizedState=l,function(){if((Ee&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},sr={readContext:$e,use:ci,useCallback:fo,useContext:$e,useEffect:ar,useImperativeHandle:oo,useInsertionEffect:ro,useLayoutEffect:co,useMemo:ho,useReducer:si,useRef:no,useState:function(){return si(Qt)},useDebugValue:nr,useDeferredValue:function(e,t){var l=Le();return go(l,Me.memoizedState,e,t)},useTransition:function(){var e=si(Qt)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:tn(e),t]},useSyncExternalStore:ws,useId:xo,useHostTransitionStatus:rr,useFormState:to,useActionState:to,useOptimistic:function(e,t){var l=Le();return Js(l,Me,e,t)},useMemoCache:Iu,useCacheRefresh:mo};sr.useEffectEvent=uo;var To={readContext:$e,use:ci,useCallback:fo,useContext:$e,useEffect:ar,useImperativeHandle:oo,useInsertionEffect:ro,useLayoutEffect:co,useMemo:ho,useReducer:er,useRef:no,useState:function(){return er(Qt)},useDebugValue:nr,useDeferredValue:function(e,t){var l=Le();return Me===null?ir(l,e,t):go(l,Me.memoizedState,e,t)},useTransition:function(){var e=er(Qt)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:tn(e),t]},useSyncExternalStore:ws,useId:xo,useHostTransitionStatus:rr,useFormState:ao,useActionState:ao,useOptimistic:function(e,t){var l=Le();return Me!==null?Js(l,Me,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Iu,useCacheRefresh:mo};To.useEffectEvent=uo;function or(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:j({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var dr={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=xt(),n=cl(a);n.payload=t,l!=null&&(n.callback=l),t=sl(e,n,a),t!==null&&(rt(t,e,a),Fa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=xt(),n=cl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=sl(e,n,a),t!==null&&(rt(t,e,a),Fa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=xt(),a=cl(l);a.tag=2,t!=null&&(a.callback=t),t=sl(e,a,l),t!==null&&(rt(t,e,l),Fa(t,e,l))}};function Eo(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?!Xa(l,a)||!Xa(n,i):!0}function Co(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&&dr.enqueueReplaceState(t,t.state,null)}function wl(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=j({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Ao(e){Qn(e)}function Ro(e){console.error(e)}function Do(e){Qn(e)}function hi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Mo(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 fr(e,t,l){return l=cl(l),l.tag=3,l.payload={element:null},l.callback=function(){hi(e,t)},l}function Oo(e){return e=cl(e),e.tag=3,e}function _o(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(){Mo(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Mo(t,l,a),typeof n!="function"&&(pl===null?pl=new Set([this]):pl.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function yg(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ca(t,l,n,!0),l=gt.current,l!==null){switch(l.tag){case 31:case 13:return Ct===null?Ei():l.alternate===null&&ke===0&&(ke=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ei?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),qr(e,a,n)),!1;case 22:return l.flags|=65536,a===ei?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)),qr(e,a,n)),!1}throw Error(o(435,l.tag))}return qr(e,a,n),Ei(),!1}if(Se)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Ou&&(e=Error(o(422),{cause:a}),Va(jt(e,l)))):(a!==Ou&&(t=Error(o(423),{cause:a}),Va(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=fr(e.stateNode,a,n),wu(e,n),ke!==4&&(ke=2)),!1;var i=Error(o(520),{cause:a});if(i=jt(i,l),fn===null?fn=[i]:fn.push(i),ke!==4&&(ke=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=fr(l.stateNode,a,e),wu(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"&&(pl===null||!pl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Oo(n),_o(n,e,l,a),wu(l,n),!1}l=l.return}while(l!==null);return!1}var hr=Error(o(461)),Xe=!1;function Fe(e,t,l,a){t.child=e===null?Ns(t,null,l,a):Ll(t,e.child,l,a)}function Uo(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var r={};for(var s in a)s!=="ref"&&(r[s]=a[s])}else r=a;return Hl(t),a=Ju(e,t,l,r,i,n),s=Wu(),e!==null&&!Xe?($u(e,t,n),Zt(e,t,n)):(Se&&s&&Du(t),t.flags|=1,Fe(e,t,a,n),t.child)}function Bo(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Cu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,No(e,t,i,a,n)):(e=Jn(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Sr(e,n)){var r=i.memoizedProps;if(l=l.compare,l=l!==null?l:Xa,l(r,a)&&e.ref===t.ref)return Zt(e,t,n)}return t.flags|=1,e=Yt(i,a),e.ref=t.ref,e.return=t,t.child=e}function No(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Xa(i,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=i,Sr(e,n))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,Zt(e,t,n)}return gr(e,t,l,a,n)}function Ho(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 qo(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&In(t,i!==null?i.cachePool:null),i!==null?ks(t,i):Qu(),Ys(t);else return a=t.lanes=536870912,qo(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(In(t,i.cachePool),ks(t,i),dl(),t.memoizedState=null):(e!==null&&In(t,null),Qu(),dl());return Fe(e,t,n,l),t.child}function nn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qo(e,t,l,a,n){var i=ku();return i=i===null?null:{parent:Ge._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&In(t,null),Qu(),Ys(t),e!==null&&ca(e,t,a,!0),t.childLanes=n,null}function gi(e,t){return t=yi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ko(e,t,l){return Ll(t,e.child,null,l),e=gi(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function vg(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(a.mode==="hidden")return e=gi(t,a),t.lanes=536870912,nn(null,e);if(Vu(t),(e=Be)?(e=$d(e,Et),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:_t,overflow:Ut}:null,retryLane:536870912,hydrationErrors:null},l=bs(e),l.return=t,t.child=l,We=t,Be=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return gi(t,a)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(Vu(t),n)if(t.flags&256)t.flags&=-257,t=ko(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Xe||ca(e,t,l,!1),n=(l&e.childLanes)!==0,Xe||n){if(a=Ue,a!==null&&(r=Ac(a,l),r!==0&&r!==i.retryLane))throw i.retryLane=r,_l(e,r),rt(a,e,r),hr;Ei(),t=ko(e,t,l)}else e=i.treeContext,Be=At(r.nextSibling),We=t,Se=!0,nl=null,Et=!1,e!==null&&zs(t,e),t=gi(t,a),t.flags|=4096;return t}return e=Yt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pi(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 gr(e,t,l,a,n){return Hl(t),l=Ju(e,t,l,a,void 0,n),a=Wu(),e!==null&&!Xe?($u(e,t,n),Zt(e,t,n)):(Se&&a&&Du(t),t.flags|=1,Fe(e,t,l,n),t.child)}function Yo(e,t,l,a,n,i){return Hl(t),t.updateQueue=null,l=Gs(t,a,l,n),Ls(e),a=Wu(),e!==null&&!Xe?($u(e,t,i),Zt(e,t,i)):(Se&&a&&Du(t),t.flags|=1,Fe(e,t,l,i),t.child)}function Lo(e,t,l,a,n){if(Hl(t),t.stateNode===null){var i=na,r=l.contextType;typeof r=="object"&&r!==null&&(i=$e(r)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=dr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Lu(t),r=l.contextType,i.context=typeof r=="object"&&r!==null?$e(r):na,i.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(or(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&&dr.enqueueReplaceState(i,i.state,null),Pa(t,a,i,n),Ia(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,d=wl(l,s);i.props=d;var b=i.context,M=l.contextType;r=na,typeof M=="object"&&M!==null&&(r=$e(M));var q=l.getDerivedStateFromProps;M=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,M||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||b!==r)&&Co(t,i,a,r),rl=!1;var S=t.memoizedState;i.state=S,Pa(t,a,i,n),Ia(),b=t.memoizedState,s||S!==b||rl?(typeof q=="function"&&(or(t,l,q,a),b=t.memoizedState),(d=rl||Eo(t,l,d,a,S,b,r))?(M||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=b),i.props=a,i.state=b,i.context=r,a=d):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Gu(e,t),r=t.memoizedProps,M=wl(l,r),i.props=M,q=t.pendingProps,S=i.context,b=l.contextType,d=na,typeof b=="object"&&b!==null&&(d=$e(b)),s=l.getDerivedStateFromProps,(b=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==q||S!==d)&&Co(t,i,a,d),rl=!1,S=t.memoizedState,i.state=S,Pa(t,a,i,n),Ia();var E=t.memoizedState;r!==q||S!==E||rl||e!==null&&e.dependencies!==null&&$n(e.dependencies)?(typeof s=="function"&&(or(t,l,s,a),E=t.memoizedState),(M=rl||Eo(t,l,M,a,S,E,d)||e!==null&&e.dependencies!==null&&$n(e.dependencies))?(b||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,E,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,E,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=E),i.props=a,i.state=E,i.context=d,a=M):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&S===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&S===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,pi(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=Ll(t,e.child,null,n),t.child=Ll(t,null,l,n)):Fe(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Zt(e,t,n),e}function Go(e,t,l,a){return Bl(),t.flags|=256,Fe(e,t,l,a),t.child}var pr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yr(e){return{baseLanes:e,cachePool:Ds()}}function vr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=vt),e}function wo(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:(Ye.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(n?ol(t):dl(),(e=Be)?(e=$d(e,Et),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:_t,overflow:Ut}:null,retryLane:536870912,hydrationErrors:null},l=bs(e),l.return=t,t.child=l,We=t,Be=null)):e=null,e===null)throw il(t);return Pr(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(dl(),n=t.mode,s=yi({mode:"hidden",children:s},n),a=Ul(a,n,l,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=yr(l),a.childLanes=vr(e,r,l),t.memoizedState=pr,nn(null,a)):(ol(t),xr(t,s))}var d=e.memoizedState;if(d!==null&&(s=d.dehydrated,s!==null)){if(i)t.flags&256?(ol(t),t.flags&=-257,t=mr(e,t,l)):t.memoizedState!==null?(dl(),t.child=e.child,t.flags|=128,t=null):(dl(),s=a.fallback,n=t.mode,a=yi({mode:"visible",children:a.children},n),s=Ul(s,n,l,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Ll(t,e.child,null,l),a=t.child,a.memoizedState=yr(l),a.childLanes=vr(e,r,l),t.memoizedState=pr,t=nn(null,a));else if(ol(t),Pr(s)){if(r=s.nextSibling&&s.nextSibling.dataset,r)var b=r.dgst;r=b,a=Error(o(419)),a.stack="",a.digest=r,Va({value:a,source:null,stack:null}),t=mr(e,t,l)}else if(Xe||ca(e,t,l,!1),r=(l&e.childLanes)!==0,Xe||r){if(r=Ue,r!==null&&(a=Ac(r,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,_l(e,a),rt(r,e,a),hr;Ir(s)||Ei(),t=mr(e,t,l)}else Ir(s)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Be=At(s.nextSibling),We=t,Se=!0,nl=null,Et=!1,e!==null&&zs(t,e),t=xr(t,a.children),t.flags|=4096);return t}return n?(dl(),s=a.fallback,n=t.mode,d=e.child,b=d.sibling,a=Yt(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,b!==null?s=Yt(b,s):(s=Ul(s,n,l,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,nn(null,a),a=t.child,s=e.child.memoizedState,s===null?s=yr(l):(n=s.cachePool,n!==null?(d=Ge._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Ds(),s={baseLanes:s.baseLanes|l,cachePool:n}),a.memoizedState=s,a.childLanes=vr(e,r,l),t.memoizedState=pr,nn(e.child,a)):(ol(t),l=e.child,e=l.sibling,l=Yt(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 xr(e,t){return t=yi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yi(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function mr(e,t,l){return Ll(t,e.child,null,l),e=xr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bu(e.return,t,l)}function br(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 Qo(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var r=Ye.current,s=(r&2)!==0;if(s?(r=r&1|2,t.flags|=128):r&=1,V(Ye,r),Fe(e,t,a,l),a=Se?Za:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xo(e,l,t);else if(e.tag===19)Xo(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&&ni(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),br(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&&ni(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}br(t,!0,l,null,i,a);break;case"together":br(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Zt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),gl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ca(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=Yt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Yt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Sr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&$n(e)))}function xg(e,t,l){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),ul(t,Ge,e.memoizedState.cache),Bl();break;case 27:case 5:Ma(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:ul(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ol(t),t.flags|=128,null):(l&t.child.childLanes)!==0?wo(e,t,l):(ol(t),e=Zt(e,t,l),e!==null?e.sibling:null);ol(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ca(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Qo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(Ye,Ye.current),a)break;return null;case 22:return t.lanes=0,Ho(e,t,l,t.pendingProps);case 24:ul(t,Ge,e.memoizedState.cache)}return Zt(e,t,l)}function Zo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!Sr(e,l)&&(t.flags&128)===0)return Xe=!1,xg(e,t,l);Xe=(e.flags&131072)!==0}else Xe=!1,Se&&(t.flags&1048576)!==0&&js(t,Za,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=kl(t.elementType),t.type=e,typeof e=="function")Cu(e)?(a=wl(e,a),t.tag=1,t=Lo(null,t,e,a,l)):(t.tag=0,t=gr(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===D){t.tag=11,t=Uo(null,t,e,a,l);break e}else if(n===K){t.tag=14,t=Bo(null,t,e,a,l);break e}}throw t=be(e)||e,Error(o(306,t,""))}}return t;case 0:return gr(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=wl(a,t.pendingProps),Lo(e,t,a,n,l);case 3:e:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Gu(e,t),Pa(t,a,null,l);var r=t.memoizedState;if(a=r.cache,ul(t,Ge,a),a!==i.cache&&Nu(t,[Ge],l,!0),Ia(),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=Go(e,t,a,l);break e}else if(a!==n){n=jt(Error(o(424)),t),Va(n),t=Go(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(Be=At(e.firstChild),We=t,Se=!0,nl=null,Et=!0,l=Ns(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Bl(),a===n){t=Zt(e,t,l);break e}Fe(e,t,a,l)}t=t.child}return t;case 26:return pi(e,t),e===null?(l=lf(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(l=t.type,e=t.pendingProps,a=_i(F.current).createElement(l),a[Je]=t,a[tt]=e,Ie(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ma(t),e===null&&Se&&(a=t.stateNode=Pd(t.type,t.pendingProps,F.current),We=t,Et=!0,n=Be,ml(t.type)?(ec=n,Be=At(a.firstChild)):Be=n),Fe(e,t,t.pendingProps.children,l),pi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((n=a=Be)&&(a=Jg(a,t.type,t.pendingProps,Et),a!==null?(t.stateNode=a,We=t,Be=At(a.firstChild),Et=!1,n=!0):n=!1),n||il(t)),Ma(t),n=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,a=i.children,Wr(n,i)?a=null:r!==null&&Wr(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=Ju(e,t,sg,null,null,l),bn._currentValue=n),pi(e,t),Fe(e,t,a,l),t.child;case 6:return e===null&&Se&&((e=l=Be)&&(l=Wg(l,t.pendingProps,Et),l!==null?(t.stateNode=l,We=t,Be=null,e=!0):e=!1),e||il(t)),null;case 13:return wo(e,t,l);case 4:return Ce(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ll(t,null,a,l):Fe(e,t,a,l),t.child;case 11:return Uo(e,t,t.type,t.pendingProps,l);case 7:return Fe(e,t,t.pendingProps,l),t.child;case 8:return Fe(e,t,t.pendingProps.children,l),t.child;case 12:return Fe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ul(t,t.type,a.value),Fe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Hl(t),n=$e(n),a=a(n),t.flags|=1,Fe(e,t,a,l),t.child;case 14:return Bo(e,t,t.type,t.pendingProps,l);case 15:return No(e,t,t.type,t.pendingProps,l);case 19:return Qo(e,t,l);case 31:return vg(e,t,l);case 22:return Ho(e,t,l,t.pendingProps);case 24:return Hl(t),a=$e(Ge),e===null?(n=ku(),n===null&&(n=Ue,i=Hu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Lu(t),ul(t,Ge,n)):((e.lanes&l)!==0&&(Gu(e,t),Pa(t,null,null,l),Ia()),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),ul(t,Ge,a)):(a=i.cache,ul(t,Ge,a),a!==n.cache&&Nu(t,[Ge],l,!0))),Fe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Vt(e){e.flags|=4}function jr(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(xd())e.flags|=8192;else throw Yl=ei,Yu}else e.flags&=-16777217}function Vo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cf(t))if(xd())e.flags|=8192;else throw Yl=ei,Yu}function vi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tc():536870912,e.lanes|=t,ba|=t)}function un(e,t){if(!Se)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 Ne(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 mg(e,t,l){var a=t.pendingProps;switch(Mu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wt(Ge),De(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ra(t)?Vt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_u())),Ne(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Vt(t),i!==null?(Ne(t),Vo(t,i)):(Ne(t),jr(t,n,null,a,l))):i?i!==e.memoizedState?(Vt(t),Ne(t),Vo(t,i)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Vt(t),Ne(t),jr(t,n,e,a,l)),null;case 27:if(Rn(t),l=F.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}e=le.current,ra(t)?Ts(t):(e=Pd(n,a,l),t.stateNode=e,Vt(t))}return Ne(t),null;case 5:if(Rn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Vt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(i=le.current,ra(t))Ts(t);else{var r=_i(F.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[Je]=t,i[tt]=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(Ie(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&&Vt(t)}}return Ne(t),jr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Vt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=F.current,ra(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=We,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||wd(e.nodeValue,l)),e||il(t,!0)}else e=_i(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ra(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[Je]=t}else Bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=_u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ra(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[Je]=t}else Bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=_u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(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),vi(t,t.updateQueue),Ne(t),null);case 4:return De(),e===null&&Qr(t.stateNode.containerInfo),Ne(t),null;case 10:return wt(t.type),Ne(t),null;case 19:if(k(Ye),a=t.memoizedState,a===null)return Ne(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)un(a,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ni(e),i!==null){for(t.flags|=128,un(a,!1),e=i.updateQueue,t.updateQueue=e,vi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)ms(l,e),l=l.sibling;return V(Ye,Ye.current&1|2),Se&&Lt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>ji&&(t.flags|=128,n=!0,un(a,!1),t.lanes=4194304)}else{if(!n)if(e=ni(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,vi(t,e),un(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Se)return Ne(t),null}else 2*st()-a.renderingStartTime>ji&&l!==536870912&&(t.flags|=128,n=!0,un(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=st(),e.sibling=null,l=Ye.current,V(Ye,n?l&1|2:l&1),Se&&Lt(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return pt(t),Zu(),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&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),l=t.updateQueue,l!==null&&vi(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&&k(ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wt(Ge),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function bg(e,t){switch(Mu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wt(Ge),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Rn(t),null;case 31:if(t.memoizedState!==null){if(pt(t),t.alternate===null)throw Error(o(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(Ye),null;case 4:return De(),null;case 10:return wt(t.type),null;case 22:case 23:return pt(t),Zu(),e!==null&&k(ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wt(Ge),null;case 25:return null;default:return null}}function Ko(e,t){switch(Mu(t),t.tag){case 3:wt(Ge),De();break;case 26:case 27:case 5:Rn(t);break;case 4:De();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:k(Ye);break;case 10:wt(t.type);break;case 22:case 23:pt(t),Zu(),e!==null&&k(ql);break;case 24:wt(Ge)}}function rn(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(s){Re(t,t.return,s)}}function fl(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,s=r.destroy;if(s!==void 0){r.destroy=void 0,n=t;var d=l,b=s;try{b()}catch(M){Re(n,d,M)}}}a=a.next}while(a!==i)}}catch(M){Re(t,t.return,M)}}function Jo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{qs(t,l)}catch(a){Re(e,e.return,a)}}}function Wo(e,t,l){l.props=wl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Re(e,t,a)}}function cn(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){Re(e,t,n)}}function Bt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Re(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){Re(e,t,n)}else l.current=null}function $o(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){Re(e,e.return,n)}}function zr(e,t,l){try{var a=e.stateNode;wg(a,e.type,l,t),a[tt]=t}catch(n){Re(e,e.return,n)}}function Fo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ml(e.type)||e.tag===4}function Tr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fo(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&&ml(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 Er(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=qt));else if(a!==4&&(a===27&&ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Er(e,t,l),e=e.sibling;e!==null;)Er(e,t,l),e=e.sibling}function xi(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&&ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(xi(e,t,l),e=e.sibling;e!==null;)xi(e,t,l),e=e.sibling}function Io(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ie(t,a,l),t[Je]=e,t[tt]=l}catch(i){Re(e,e.return,i)}}var Kt=!1,Qe=!1,Cr=!1,Po=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function Sg(e,t){if(e=e.containerInfo,Kr=Yi,e=os(e),mu(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,s=-1,d=-1,b=0,M=0,q=e,S=null;t:for(;;){for(var E;q!==l||n!==0&&q.nodeType!==3||(s=r+n),q!==i||a!==0&&q.nodeType!==3||(d=r+a),q.nodeType===3&&(r+=q.nodeValue.length),(E=q.firstChild)!==null;)S=q,q=E;for(;;){if(q===e)break t;if(S===l&&++b===n&&(s=r),S===i&&++M===a&&(d=r),(E=q.nextSibling)!==null)break;q=S,S=q.parentNode}q=E}l=s===-1||d===-1?null:{start:s,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Jr={focusedElem:e,selectionRange:l},Yi=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,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 te=wl(l.type,n);e=a.getSnapshotBeforeUpdate(te,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(re){Re(l,l.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Fr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fr(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,Ke=e;break}Ke=t.return}}function ed(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Wt(e,l),a&4&&rn(5,l);break;case 1:if(Wt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){Re(l,l.return,r)}else{var n=wl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Re(l,l.return,r)}}a&64&&Jo(l),a&512&&cn(l,l.return);break;case 3:if(Wt(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{qs(e,t)}catch(r){Re(l,l.return,r)}}break;case 27:t===null&&a&4&&Io(l);case 26:case 5:Wt(e,l),t===null&&a&4&&$o(l),a&512&&cn(l,l.return);break;case 12:Wt(e,l);break;case 31:Wt(e,l),a&4&&ad(e,l);break;case 13:Wt(e,l),a&4&&nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Mg.bind(null,l),$g(e,l))));break;case 22:if(a=l.memoizedState!==null||Kt,!a){t=t!==null&&t.memoizedState!==null||Qe,n=Kt;var i=Qe;Kt=a,(Qe=t)&&!i?$t(e,l,(l.subtreeFlags&8772)!==0):Wt(e,l),Kt=n,Qe=i}break;case 30:break;default:Wt(e,l)}}function td(e){var t=e.alternate;t!==null&&(e.alternate=null,td(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lu(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 He=null,at=!1;function Jt(e,t,l){for(l=l.child;l!==null;)ld(e,t,l),l=l.sibling}function ld(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Oa,l)}catch{}switch(l.tag){case 26:Qe||Bt(l,t),Jt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||Bt(l,t);var a=He,n=at;ml(l.type)&&(He=l.stateNode,at=!1),Jt(e,t,l),vn(l.stateNode),He=a,at=n;break;case 5:Qe||Bt(l,t);case 6:if(a=He,n=at,He=null,Jt(e,t,l),He=a,at=n,He!==null)if(at)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(l.stateNode)}catch(i){Re(l,t,i)}else try{He.removeChild(l.stateNode)}catch(i){Re(l,t,i)}break;case 18:He!==null&&(at?(e=He,Jd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ra(e)):Jd(He,l.stateNode));break;case 4:a=He,n=at,He=l.stateNode.containerInfo,at=!0,Jt(e,t,l),He=a,at=n;break;case 0:case 11:case 14:case 15:fl(2,l,t),Qe||fl(4,l,t),Jt(e,t,l);break;case 1:Qe||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Wo(l,t,a)),Jt(e,t,l);break;case 21:Jt(e,t,l);break;case 22:Qe=(a=Qe)||l.memoizedState!==null,Jt(e,t,l),Qe=a;break;default:Jt(e,t,l)}}function ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ra(e)}catch(l){Re(t,t.return,l)}}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ra(e)}catch(l){Re(t,t.return,l)}}function jg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Po),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Po),t;default:throw Error(o(435,e.tag))}}function mi(e,t){var l=jg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Og.bind(null,e,a);a.then(n,n)}})}function nt(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,s=r;e:for(;s!==null;){switch(s.tag){case 27:if(ml(s.type)){He=s.stateNode,at=!1;break e}break;case 5:He=s.stateNode,at=!1;break e;case 3:case 4:He=s.stateNode.containerInfo,at=!0;break e}s=s.return}if(He===null)throw Error(o(160));ld(i,r,n),He=null,at=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)id(t,e),t=t.sibling}var Mt=null;function id(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nt(t,e),it(e),a&4&&(fl(3,e,e.return),rn(3,e),fl(5,e,e.return));break;case 1:nt(t,e),it(e),a&512&&(Qe||l===null||Bt(l,l.return)),a&64&&Kt&&(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=Mt;if(nt(t,e),it(e),a&512&&(Qe||l===null||Bt(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[Ba]||i[Je]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Ie(i,a,l),i[Je]=e,Ve(i),a=i;break e;case"link":var r=uf("link","href",n).get(a+(l.href||""));if(r){for(var s=0;s<r.length;s++)if(i=r[s],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(s,1);break t}}i=n.createElement(a),Ie(i,a,l),n.head.appendChild(i);break;case"meta":if(r=uf("meta","content",n).get(a+(l.content||""))){for(s=0;s<r.length;s++)if(i=r[s],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(s,1);break t}}i=n.createElement(a),Ie(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[Je]=e,Ve(i),a=i}e.stateNode=a}else rf(n,e.type,e.stateNode);else e.stateNode=nf(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?rf(n,e.type,e.stateNode):nf(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&zr(e,e.memoizedProps,l.memoizedProps)}break;case 27:nt(t,e),it(e),a&512&&(Qe||l===null||Bt(l,l.return)),l!==null&&a&4&&zr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(nt(t,e),it(e),a&512&&(Qe||l===null||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{Fl(n,"")}catch(te){Re(e,e.return,te)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,zr(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Cr=!0);break;case 6:if(nt(t,e),it(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(te){Re(e,e.return,te)}}break;case 3:if(Ni=null,n=Mt,Mt=Ui(t.containerInfo),nt(t,e),Mt=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ra(t.containerInfo)}catch(te){Re(e,e.return,te)}Cr&&(Cr=!1,ud(e));break;case 4:a=Mt,Mt=Ui(e.stateNode.containerInfo),nt(t,e),it(e),Mt=a;break;case 12:nt(t,e),it(e);break;case 31:nt(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,mi(e,a)));break;case 13:nt(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Si=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,mi(e,a)));break;case 22:n=e.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,b=Kt,M=Qe;if(Kt=b||n,Qe=M||d,nt(t,e),Qe=M,Kt=b,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||d||Kt||Qe||Xl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){d=l=t;try{if(i=d.stateNode,n)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{s=d.stateNode;var q=d.memoizedProps.style,S=q!=null&&q.hasOwnProperty("display")?q.display:null;s.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(te){Re(d,d.return,te)}}}else if(t.tag===6){if(l===null){d=t;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(te){Re(d,d.return,te)}}}else if(t.tag===18){if(l===null){d=t;try{var E=d.stateNode;n?Wd(E,!0):Wd(d.stateNode,!1)}catch(te){Re(d,d.return,te)}}}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,mi(e,l))));break;case 19:nt(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,mi(e,a)));break;case 30:break;case 21:break;default:nt(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Fo(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=Tr(e);xi(e,i,n);break;case 5:var r=l.stateNode;l.flags&32&&(Fl(r,""),l.flags&=-33);var s=Tr(e);xi(e,s,r);break;case 3:case 4:var d=l.stateNode.containerInfo,b=Tr(e);Er(e,b,d);break;default:throw Error(o(161))}}catch(M){Re(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ud(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ud(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ed(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:fl(4,t,t.return),Xl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Wo(t,t.return,l),Xl(t);break;case 27:vn(t.stateNode);case 26:case 5:Bt(t,t.return),Xl(t);break;case 22:t.memoizedState===null&&Xl(t);break;case 30:Xl(t);break;default:Xl(t)}e=e.sibling}}function $t(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:$t(n,i,l),rn(4,i);break;case 1:if($t(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(b){Re(a,a.return,b)}if(a=i,n=a.updateQueue,n!==null){var s=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)Hs(d[n],s)}catch(b){Re(a,a.return,b)}}l&&r&64&&Jo(i),cn(i,i.return);break;case 27:Io(i);case 26:case 5:$t(n,i,l),l&&a===null&&r&4&&$o(i),cn(i,i.return);break;case 12:$t(n,i,l);break;case 31:$t(n,i,l),l&&r&4&&ad(n,i);break;case 13:$t(n,i,l),l&&r&4&&nd(n,i);break;case 22:i.memoizedState===null&&$t(n,i,l),cn(i,i.return);break;case 30:break;default:$t(n,i,l)}t=t.sibling}}function Ar(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&&Ka(l))}function Rr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ka(e))}function Ot(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rd(e,t,l,a),t=t.sibling}function rd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,l,a),n&2048&&rn(9,t);break;case 1:Ot(e,t,l,a);break;case 3:Ot(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&&Ka(e)));break;case 12:if(n&2048){Ot(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,s=i.onPostCommit;typeof s=="function"&&s(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){Re(t,t.return,d)}}else Ot(e,t,l,a);break;case 31:Ot(e,t,l,a);break;case 13:Ot(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?Ot(e,t,l,a):sn(e,t):i._visibility&2?Ot(e,t,l,a):(i._visibility|=2,va(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ar(r,t);break;case 24:Ot(e,t,l,a),n&2048&&Rr(t.alternate,t);break;default:Ot(e,t,l,a)}}function va(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,s=l,d=a,b=r.flags;switch(r.tag){case 0:case 11:case 15:va(i,r,s,d,n),rn(8,r);break;case 23:break;case 22:var M=r.stateNode;r.memoizedState!==null?M._visibility&2?va(i,r,s,d,n):sn(i,r):(M._visibility|=2,va(i,r,s,d,n)),n&&b&2048&&Ar(r.alternate,r);break;case 24:va(i,r,s,d,n),n&&b&2048&&Rr(r.alternate,r);break;default:va(i,r,s,d,n)}t=t.sibling}}function sn(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:sn(l,a),n&2048&&Ar(a.alternate,a);break;case 24:sn(l,a),n&2048&&Rr(a.alternate,a);break;default:sn(l,a)}t=t.sibling}}var on=8192;function xa(e,t,l){if(e.subtreeFlags&on)for(e=e.child;e!==null;)cd(e,t,l),e=e.sibling}function cd(e,t,l){switch(e.tag){case 26:xa(e,t,l),e.flags&on&&e.memoizedState!==null&&cp(l,Mt,e.memoizedState,e.memoizedProps);break;case 5:xa(e,t,l);break;case 3:case 4:var a=Mt;Mt=Ui(e.stateNode.containerInfo),xa(e,t,l),Mt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,xa(e,t,l),on=a):xa(e,t,l));break;default:xa(e,t,l)}}function sd(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 dn(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];Ke=a,dd(a,e)}sd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)od(e),e=e.sibling}function od(e){switch(e.tag){case 0:case 11:case 15:dn(e),e.flags&2048&&fl(9,e,e.return);break;case 3:dn(e);break;case 12:dn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,bi(e)):dn(e);break;default:dn(e)}}function bi(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];Ke=a,dd(a,e)}sd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:fl(8,t,t.return),bi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,bi(t));break;default:bi(t)}e=e.sibling}}function dd(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:fl(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:Ka(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ke=a;else e:for(l=e;Ke!==null;){a=Ke;var n=a.sibling,i=a.return;if(td(a),a===l){Ke=null;break e}if(n!==null){n.return=i,Ke=n;break e}Ke=i}}}var zg={getCacheForType:function(e){var t=$e(Ge),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return $e(Ge).controller.signal}},Tg=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Ue=null,ye=null,xe=0,Ae=0,yt=null,hl=!1,ma=!1,Dr=!1,Ft=0,ke=0,gl=0,Ql=0,Mr=0,vt=0,ba=0,fn=null,ut=null,Or=!1,Si=0,fd=0,ji=1/0,zi=null,pl=null,Ze=0,yl=null,Sa=null,It=0,_r=0,Ur=null,hd=null,hn=0,Br=null;function xt(){return(Ee&2)!==0&&xe!==0?xe&-xe:R.T!==null?Lr():Rc()}function gd(){if(vt===0)if((xe&536870912)===0||Se){var e=On;On<<=1,(On&3932160)===0&&(On=262144),vt=e}else vt=536870912;return e=gt.current,e!==null&&(e.flags|=32),vt}function rt(e,t,l){(e===Ue&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(ja(e,0),vl(e,xe,vt,!1)),Ua(e,l),((Ee&2)===0||e!==Ue)&&(e===Ue&&((Ee&2)===0&&(Ql|=l),ke===4&&vl(e,xe,vt,!1)),Nt(e))}function pd(e,t,l){if((Ee&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||_a(e,t),n=a?Ag(e,t):Hr(e,t,!0),i=a;do{if(n===0){ma&&!a&&vl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Eg(l)){n=Hr(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 s=e;n=fn;var d=s.current.memoizedState.isDehydrated;if(d&&(ja(s,r).flags|=256),r=Hr(s,r,!1),r!==2){if(Dr&&!d){s.errorRecoveryDisabledLanes|=i,Ql|=i,n=4;break e}i=ut,ut=n,i!==null&&(ut===null?ut=i:ut.push.apply(ut,i))}n=r}if(i=!1,n!==2)continue}}if(n===1){ja(e,0),vl(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:vl(a,t,vt,!hl);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Si+300-st(),10<n)){if(vl(a,t,vt,!hl),Un(a,0,!0)!==0)break e;It=t,a.timeoutHandle=Vd(yd.bind(null,a,l,ut,zi,Or,t,vt,Ql,ba,hl,i,"Throttled",-0,0),n);break e}yd(a,l,ut,zi,Or,t,vt,Ql,ba,hl,i,null,-0,0)}}break}while(!0);Nt(e)}function yd(e,t,l,a,n,i,r,s,d,b,M,q,S,E){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},cd(t,i,q);var te=(i&62914560)===i?Si-st():(i&4194048)===i?fd-st():0;if(te=sp(q,te),te!==null){It=i,e.cancelPendingCommit=te(Td.bind(null,e,t,i,l,a,n,r,s,d,M,q,null,S,E)),vl(e,i,r,!b);return}}Td(e,t,i,l,a,n,r,s,d)}function Eg(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(!ft(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 vl(e,t,l,a){t&=~Mr,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-dt(n),r=1<<i;a[i]=-1,n&=~r}l!==0&&Ec(e,l,t)}function Ti(){return(Ee&6)===0?(gn(0),!1):!0}function Nr(){if(ye!==null){if(Ae===0)var e=ye.return;else e=ye,Gt=Nl=null,Fu(e),fa=null,Wa=0,e=ye;for(;e!==null;)Ko(e.alternate,e),e=e.return;ye=null}}function ja(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Zg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),It=0,Nr(),Ue=e,ye=l=Yt(e.current,null),xe=t,Ae=0,yt=null,hl=!1,ma=_a(e,t),Dr=!1,ba=vt=Mr=Ql=gl=ke=0,ut=fn=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-dt(a),i=1<<n;t|=e[n],a&=~i}return Ft=t,Zn(),l}function vd(e,t){he=null,R.H=an,t===da||t===Pn?(t=_s(),Ae=3):t===Yu?(t=_s(),Ae=4):Ae=t===hr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,ye===null&&(ke=1,hi(e,jt(t,e.current)))}function xd(){var e=gt.current;return e===null?!0:(xe&4194048)===xe?Ct===null:(xe&62914560)===xe||(xe&536870912)!==0?e===Ct:!1}function md(){var e=R.H;return R.H=an,e===null?an:e}function bd(){var e=R.A;return R.A=zg,e}function Ei(){ke=4,hl||(xe&4194048)!==xe&>.current!==null||(ma=!0),(gl&134217727)===0&&(Ql&134217727)===0||Ue===null||vl(Ue,xe,vt,!1)}function Hr(e,t,l){var a=Ee;Ee|=2;var n=md(),i=bd();(Ue!==e||xe!==t)&&(zi=null,ja(e,t)),t=!1;var r=ke;e:do try{if(Ae!==0&&ye!==null){var s=ye,d=yt;switch(Ae){case 8:Nr(),r=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var b=Ae;if(Ae=0,yt=null,za(e,s,d,b),l&&ma){r=0;break e}break;default:b=Ae,Ae=0,yt=null,za(e,s,d,b)}}Cg(),r=ke;break}catch(M){vd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Gt=Nl=null,Ee=a,R.H=n,R.A=i,ye===null&&(Ue=null,xe=0,Zn()),r}function Cg(){for(;ye!==null;)Sd(ye)}function Ag(e,t){var l=Ee;Ee|=2;var a=md(),n=bd();Ue!==e||xe!==t?(zi=null,ji=st()+500,ja(e,t)):ma=_a(e,t);e:do try{if(Ae!==0&&ye!==null){t=ye;var i=yt;t:switch(Ae){case 1:Ae=0,yt=null,za(e,t,i,1);break;case 2:case 9:if(Ms(i)){Ae=0,yt=null,jd(t);break}t=function(){Ae!==2&&Ae!==9||Ue!==e||(Ae=7),Nt(e)},i.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:Ms(i)?(Ae=0,yt=null,jd(t)):(Ae=0,yt=null,za(e,t,i,7));break;case 5:var r=null;switch(ye.tag){case 26:r=ye.memoizedState;case 5:case 27:var s=ye;if(r?cf(r):s.stateNode.complete){Ae=0,yt=null;var d=s.sibling;if(d!==null)ye=d;else{var b=s.return;b!==null?(ye=b,Ci(b)):ye=null}break t}}Ae=0,yt=null,za(e,t,i,5);break;case 6:Ae=0,yt=null,za(e,t,i,6);break;case 8:Nr(),ke=6;break e;default:throw Error(o(462))}}Rg();break}catch(M){vd(e,M)}while(!0);return Gt=Nl=null,R.H=a,R.A=n,Ee=l,ye!==null?0:(Ue=null,xe=0,Zn(),ke)}function Rg(){for(;ye!==null&&!Ff();)Sd(ye)}function Sd(e){var t=Zo(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Ci(e):ye=t}function jd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Yo(l,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Yo(l,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:Fu(t);default:Ko(l,t),t=ye=ms(t,Ft),t=Zo(l,t,Ft)}e.memoizedProps=e.pendingProps,t===null?Ci(e):ye=t}function za(e,t,l,a){Gt=Nl=null,Fu(t),fa=null,Wa=0;var n=t.return;try{if(yg(e,n,t,l,xe)){ke=1,hi(e,jt(l,e.current)),ye=null;return}}catch(i){if(n!==null)throw ye=n,i;ke=1,hi(e,jt(l,e.current)),ye=null;return}t.flags&32768?(Se||a===1?e=!0:ma||(xe&536870912)!==0?e=!1:(hl=e=!0,(a===2||a===9||a===3||a===6)&&(a=gt.current,a!==null&&a.tag===13&&(a.flags|=16384))),zd(t,e)):Ci(t)}function Ci(e){var t=e;do{if((t.flags&32768)!==0){zd(t,hl);return}e=t.return;var l=mg(t.alternate,t,Ft);if(l!==null){ye=l;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);ke===0&&(ke=5)}function zd(e,t){do{var l=bg(e.alternate,e);if(l!==null){l.flags&=32767,ye=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=l}while(e!==null);ke=6,ye=null}function Td(e,t,l,a,n,i,r,s,d){e.cancelPendingCommit=null;do Ai();while(Ze!==0);if((Ee&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Tu,rh(e,l,i,r,s,d),e===Ue&&(ye=Ue=null,xe=0),Sa=t,yl=e,It=l,_r=i,Ur=n,hd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,_g(Dn,function(){return Dd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,n=w.p,w.p=2,r=Ee,Ee|=4;try{Sg(e,t,l)}finally{Ee=r,w.p=n,R.T=a}}Ze=1,Ed(),Cd(),Ad()}}function Ed(){if(Ze===1){Ze=0;var e=yl,t=Sa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var a=w.p;w.p=2;var n=Ee;Ee|=4;try{id(t,e);var i=Jr,r=os(e.containerInfo),s=i.focusedElem,d=i.selectionRange;if(r!==s&&s&&s.ownerDocument&&ss(s.ownerDocument.documentElement,s)){if(d!==null&&mu(s)){var b=d.start,M=d.end;if(M===void 0&&(M=b),"selectionStart"in s)s.selectionStart=b,s.selectionEnd=Math.min(M,s.value.length);else{var q=s.ownerDocument||document,S=q&&q.defaultView||window;if(S.getSelection){var E=S.getSelection(),te=s.textContent.length,re=Math.min(d.start,te),_e=d.end===void 0?re:Math.min(d.end,te);!E.extend&&re>_e&&(r=_e,_e=re,re=r);var v=cs(s,re),h=cs(s,_e);if(v&&h&&(E.rangeCount!==1||E.anchorNode!==v.node||E.anchorOffset!==v.offset||E.focusNode!==h.node||E.focusOffset!==h.offset)){var m=q.createRange();m.setStart(v.node,v.offset),E.removeAllRanges(),re>_e?(E.addRange(m),E.extend(h.node,h.offset)):(m.setEnd(h.node,h.offset),E.addRange(m))}}}}for(q=[],E=s;E=E.parentNode;)E.nodeType===1&&q.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<q.length;s++){var _=q[s];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Yi=!!Kr,Jr=Kr=null}finally{Ee=n,w.p=a,R.T=l}}e.current=t,Ze=2}}function Cd(){if(Ze===2){Ze=0;var e=yl,t=Sa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var a=w.p;w.p=2;var n=Ee;Ee|=4;try{ed(e,t.alternate,t)}finally{Ee=n,w.p=a,R.T=l}}Ze=3}}function Ad(){if(Ze===4||Ze===3){Ze=0,If();var e=yl,t=Sa,l=It,a=hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Sa=yl=null,Rd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(pl=null),eu(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Oa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=R.T,n=w.p,w.p=2,R.T=null;try{for(var i=e.onRecoverableError,r=0;r<a.length;r++){var s=a[r];i(s.value,{componentStack:s.stack})}}finally{R.T=t,w.p=n}}(It&3)!==0&&Ai(),Nt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Br?hn++:(hn=0,Br=e):hn=0,gn(0)}}function Rd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ka(t)))}function Ai(){return Ed(),Cd(),Ad(),Dd()}function Dd(){if(Ze!==5)return!1;var e=yl,t=_r;_r=0;var l=eu(It),a=R.T,n=w.p;try{w.p=32>l?32:l,R.T=null,l=Ur,Ur=null;var i=yl,r=It;if(Ze=0,Sa=yl=null,It=0,(Ee&6)!==0)throw Error(o(331));var s=Ee;if(Ee|=4,od(i.current),rd(i,i.current,r,l),Ee=s,gn(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Oa,i)}catch{}return!0}finally{w.p=n,R.T=a,Rd(e,t)}}function Md(e,t,l){t=jt(l,t),t=fr(e.stateNode,t,2),e=sl(e,t,2),e!==null&&(Ua(e,2),Nt(e))}function Re(e,t,l){if(e.tag===3)Md(e,e,l);else for(;t!==null;){if(t.tag===3){Md(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(pl===null||!pl.has(a))){e=jt(l,e),l=Oo(2),a=sl(t,l,2),a!==null&&(_o(l,a,t,e),Ua(a,2),Nt(a));break}}t=t.return}}function qr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;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)||(Dr=!0,n.add(l),e=Dg.bind(null,e,t,l),t.then(e,e))}function Dg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ue===e&&(xe&l)===l&&(ke===4||ke===3&&(xe&62914560)===xe&&300>st()-Si?(Ee&2)===0&&ja(e,0):Mr|=l,ba===xe&&(ba=0)),Nt(e)}function Od(e,t){t===0&&(t=Tc()),e=_l(e,t),e!==null&&(Ua(e,t),Nt(e))}function Mg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Od(e,l)}function Og(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),Od(e,l)}function _g(e,t){return $i(e,t)}var Ri=null,Ta=null,kr=!1,Di=!1,Yr=!1,xl=0;function Nt(e){e!==Ta&&e.next===null&&(Ta===null?Ri=Ta=e:Ta=Ta.next=e),Di=!0,kr||(kr=!0,Bg())}function gn(e,t){if(!Yr&&Di){Yr=!0;do for(var l=!1,a=Ri;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var r=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-dt(42|e)+1)-1,i&=n&~(r&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Nd(a,i))}else i=xe,i=Un(a,a===Ue?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||_a(a,i)||(l=!0,Nd(a,i));a=a.next}while(l);Yr=!1}}function Ug(){_d()}function _d(){Di=kr=!1;var e=0;xl!==0&&Qg()&&(e=xl);for(var t=st(),l=null,a=Ri;a!==null;){var n=a.next,i=Ud(a,t);i===0?(a.next=null,l===null?Ri=n:l.next=n,n===null&&(Ta=l)):(l=a,(e!==0||(i&3)!==0)&&(Di=!0)),a=n}Ze!==0&&Ze!==5||gn(e),xl!==0&&(xl=0)}function Ud(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-dt(i),s=1<<r,d=n[r];d===-1?((s&l)===0||(s&a)!==0)&&(n[r]=uh(s,t)):d<=t&&(e.expiredLanes|=s),i&=~s}if(t=Ue,l=xe,l=Un(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Fi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||_a(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Fi(a),eu(l)){case 2:case 8:l=jc;break;case 32:l=Dn;break;case 268435456:l=zc;break;default:l=Dn}return a=Bd.bind(null,e),l=$i(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Fi(a),e.callbackPriority=2,e.callbackNode=null,2}function Bd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ai()&&e.callbackNode!==l)return null;var a=xe;return a=Un(e,e===Ue?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(pd(e,a,t),Ud(e,st()),e.callbackNode!=null&&e.callbackNode===l?Bd.bind(null,e):null)}function Nd(e,t){if(Ai())return null;pd(e,t,!0)}function Bg(){Vg(function(){(Ee&6)!==0?$i(Sc,Ug):_d()})}function Lr(){if(xl===0){var e=sa;e===0&&(e=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),xl=e}return xl}function Hd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qn(""+e)}function qd(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 Ng(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Hd((n[tt]||null).action),r=a.submitter;r&&(t=(t=r[tt]||null)?Hd(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var s=new Gn("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(xl!==0){var d=r?qd(n,r):new FormData(n);ur(l,{pending:!0,data:d,method:n.method,action:i},null,d)}}else typeof i=="function"&&(s.preventDefault(),d=r?qd(n,r):new FormData(n),ur(l,{pending:!0,data:d,method:n.method,action:i},i,d))},currentTarget:n}]})}}for(var Gr=0;Gr<zu.length;Gr++){var wr=zu[Gr],Hg=wr.toLowerCase(),qg=wr[0].toUpperCase()+wr.slice(1);Dt(Hg,"on"+qg)}Dt(hs,"onAnimationEnd"),Dt(gs,"onAnimationIteration"),Dt(ps,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Ph,"onTransitionRun"),Dt(eg,"onTransitionStart"),Dt(tg,"onTransitionCancel"),Dt(ys,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),Rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pn="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(" "),kg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pn));function kd(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 s=a[r],d=s.instance,b=s.currentTarget;if(s=s.listener,d!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=b;try{i(n)}catch(M){Qn(M)}n.currentTarget=null,i=d}else for(r=0;r<a.length;r++){if(s=a[r],d=s.instance,b=s.currentTarget,s=s.listener,d!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=b;try{i(n)}catch(M){Qn(M)}n.currentTarget=null,i=d}}}}function ve(e,t){var l=t[tu];l===void 0&&(l=t[tu]=new Set);var a=e+"__bubble";l.has(a)||(Yd(t,e,2,!1),l.add(a))}function Xr(e,t,l){var a=0;t&&(a|=4),Yd(l,e,a,t)}var Mi="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Mi]){e[Mi]=!0,Oc.forEach(function(l){l!=="selectionchange"&&(kg.has(l)||Xr(l,!1,e),Xr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mi]||(t[Mi]=!0,Xr("selectionchange",!1,t))}}function Yd(e,t,l,a){switch(pf(t)){case 2:var n=fp;break;case 8:n=hp;break;default:n=ic}l=n.bind(null,t,l,e),n=void 0,!ou||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 Zr(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 s=a.stateNode.containerInfo;if(s===n)break;if(r===4)for(r=a.return;r!==null;){var d=r.tag;if((d===3||d===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;s!==null;){if(r=Vl(s),r===null)return;if(d=r.tag,d===5||d===6||d===26||d===27){a=i=r;continue e}s=s.parentNode}}a=a.return}Xc(function(){var b=i,M=cu(l),q=[];e:{var S=vs.get(e);if(S!==void 0){var E=Gn,te=e;switch(e){case"keypress":if(Yn(l)===0)break e;case"keydown":case"keyup":E=Oh;break;case"focusin":te="focus",E=gu;break;case"focusout":te="blur",E=gu;break;case"beforeblur":case"afterblur":E=gu;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":E=Vc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Bh;break;case hs:case gs:case ps:E=jh;break;case ys:E=Hh;break;case"scroll":case"scrollend":E=vh;break;case"wheel":E=kh;break;case"copy":case"cut":case"paste":E=Th;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Jc;break;case"toggle":case"beforetoggle":E=Lh}var re=(t&4)!==0,_e=!re&&(e==="scroll"||e==="scrollend"),v=re?S!==null?S+"Capture":null:S;re=[];for(var h=b,m;h!==null;){var _=h;if(m=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||m===null||v===null||(_=Ha(h,v),_!=null&&re.push(yn(h,_,m))),_e)break;h=h.return}0<re.length&&(S=new E(S,te,null,l,M),q.push({event:S,listeners:re}))}}if((t&7)===0){e:{if(S=e==="mouseover"||e==="pointerover",E=e==="mouseout"||e==="pointerout",S&&l!==ru&&(te=l.relatedTarget||l.fromElement)&&(Vl(te)||te[Zl]))break e;if((E||S)&&(S=M.window===M?M:(S=M.ownerDocument)?S.defaultView||S.parentWindow:window,E?(te=l.relatedTarget||l.toElement,E=b,te=te?Vl(te):null,te!==null&&(_e=U(te),re=te.tag,te!==_e||re!==5&&re!==27&&re!==6)&&(te=null)):(E=null,te=b),E!==te)){if(re=Vc,_="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(re=Jc,_="onPointerLeave",v="onPointerEnter",h="pointer"),_e=E==null?S:Na(E),m=te==null?S:Na(te),S=new re(_,h+"leave",E,l,M),S.target=_e,S.relatedTarget=m,_=null,Vl(M)===b&&(re=new re(v,h+"enter",te,l,M),re.target=m,re.relatedTarget=_e,_=re),_e=_,E&&te)t:{for(re=Yg,v=E,h=te,m=0,_=v;_;_=re(_))m++;_=0;for(var ue=h;ue;ue=re(ue))_++;for(;0<m-_;)v=re(v),m--;for(;0<_-m;)h=re(h),_--;for(;m--;){if(v===h||h!==null&&v===h.alternate){re=v;break t}v=re(v),h=re(h)}re=null}else re=null;E!==null&&Ld(q,S,E,re,!1),te!==null&&_e!==null&&Ld(q,_e,te,re,!0)}}e:{if(S=b?Na(b):window,E=S.nodeName&&S.nodeName.toLowerCase(),E==="select"||E==="input"&&S.type==="file")var ze=ls;else if(es(S))if(as)ze=$h;else{ze=Jh;var ae=Kh}else E=S.nodeName,!E||E.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&uu(b.elementType)&&(ze=ls):ze=Wh;if(ze&&(ze=ze(e,b))){ts(q,ze,l,M);break e}ae&&ae(e,S,b),e==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&iu(S,"number",S.value)}switch(ae=b?Na(b):window,e){case"focusin":(es(ae)||ae.contentEditable==="true")&&(ta=ae,bu=b,Qa=null);break;case"focusout":Qa=bu=ta=null;break;case"mousedown":Su=!0;break;case"contextmenu":case"mouseup":case"dragend":Su=!1,ds(q,l,M);break;case"selectionchange":if(Ih)break;case"keydown":case"keyup":ds(q,l,M)}var ge;if(yu)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else ea?Ic(e,l)&&(me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(me="onCompositionStart");me&&(Wc&&l.locale!=="ko"&&(ea||me!=="onCompositionStart"?me==="onCompositionEnd"&&ea&&(ge=Qc()):(ll=M,du="value"in ll?ll.value:ll.textContent,ea=!0)),ae=Oi(b,me),0<ae.length&&(me=new Kc(me,e,null,l,M),q.push({event:me,listeners:ae}),ge?me.data=ge:(ge=Pc(l),ge!==null&&(me.data=ge)))),(ge=wh?Xh(e,l):Qh(e,l))&&(me=Oi(b,"onBeforeInput"),0<me.length&&(ae=new Kc("onBeforeInput","beforeinput",null,l,M),q.push({event:ae,listeners:me}),ae.data=ge)),Ng(q,e,b,l,M)}kd(q,t)})}function yn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Oi(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=Ha(e,l),n!=null&&a.unshift(yn(e,n,i)),n=Ha(e,t),n!=null&&a.push(yn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Yg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ld(e,t,l,a,n){for(var i=t._reactName,r=[];l!==null&&l!==a;){var s=l,d=s.alternate,b=s.stateNode;if(s=s.tag,d!==null&&d===a)break;s!==5&&s!==26&&s!==27||b===null||(d=b,n?(b=Ha(l,i),b!=null&&r.unshift(yn(l,b,d))):n||(b=Ha(l,i),b!=null&&r.push(yn(l,b,d)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var Lg=/\r\n?/g,Gg=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(Lg,`
|
|
49
|
-
`).replace(Gg,"")}function wd(e,t){return t=Gd(t),Gd(e)===t}function Oe(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Fl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Fl(e,""+a);break;case"className":Nn(e,"class",a);break;case"tabIndex":Nn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Nn(e,l,a);break;case"style":Gc(e,a,i);break;case"data":if(t!=="object"){Nn(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=qn(""+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"&&Oe(e,t,"name",n.name,n,null),Oe(e,t,"formEncType",n.formEncType,n,null),Oe(e,t,"formMethod",n.formMethod,n,null),Oe(e,t,"formTarget",n.formTarget,n,null)):(Oe(e,t,"encType",n.encType,n,null),Oe(e,t,"method",n.method,n,null),Oe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=qn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=qt);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("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=qn(""+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":ve("beforetoggle",e),ve("toggle",e),Bn(e,"popover",a);break;case"xlinkActuate":Ht(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ht(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ht(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ht(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ht(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ht(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Bn(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=ph.get(l)||l,Bn(e,l,a))}}function Vr(e,t,l,a,n,i){switch(l){case"style":Gc(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"?Fl(e,a):(typeof a=="number"||typeof a=="bigint")&&Fl(e,""+a);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=qt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_c.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[tt]||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,""):Bn(e,l,a)}}}function Ie(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("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:Oe(e,t,i,r,l,null)}}n&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":ve("invalid",e);var s=i=r=n=null,d=null,b=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":r=M;break;case"checked":d=M;break;case"defaultChecked":b=M;break;case"value":i=M;break;case"defaultValue":s=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:Oe(e,t,a,M,l,null)}}qc(e,i,s,d,b,r,n,!1);return;case"select":ve("invalid",e),a=r=i=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":r=s;break;case"multiple":a=s;default:Oe(e,t,n,s,l,null)}t=i,l=r,e.multiple=!!a,t!=null?$l(e,!!a,t,!1):l!=null&&$l(e,!!a,l,!0);return;case"textarea":ve("invalid",e),i=n=a=null;for(r in l)if(l.hasOwnProperty(r)&&(s=l[r],s!=null))switch(r){case"value":a=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:Oe(e,t,r,s,l,null)}Yc(e,a,n,i);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,d,a,l,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(a=0;a<pn.length;a++)ve(pn[a],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,b,a,l,null)}return;default:if(uu(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&Vr(e,t,M,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&Oe(e,t,s,a,l,null))}function wg(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,s=null,d=null,b=null,M=null;for(E in l){var q=l[E];if(l.hasOwnProperty(E)&&q!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":d=q;default:a.hasOwnProperty(E)||Oe(e,t,E,null,a,q)}}for(var S in a){var E=a[S];if(q=l[S],a.hasOwnProperty(S)&&(E!=null||q!=null))switch(S){case"type":i=E;break;case"name":n=E;break;case"checked":b=E;break;case"defaultChecked":M=E;break;case"value":r=E;break;case"defaultValue":s=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(137,t));break;default:E!==q&&Oe(e,t,S,E,a,q)}}nu(e,r,s,d,b,M,i,n);return;case"select":E=r=s=S=null;for(i in l)if(d=l[i],l.hasOwnProperty(i)&&d!=null)switch(i){case"value":break;case"multiple":E=d;default:a.hasOwnProperty(i)||Oe(e,t,i,null,a,d)}for(n in a)if(i=a[n],d=l[n],a.hasOwnProperty(n)&&(i!=null||d!=null))switch(n){case"value":S=i;break;case"defaultValue":s=i;break;case"multiple":r=i;default:i!==d&&Oe(e,t,n,i,a,d)}t=s,l=r,a=E,S!=null?$l(e,!!l,S,!1):!!a!=!!l&&(t!=null?$l(e,!!l,t,!0):$l(e,!!l,l?[]:"",!1));return;case"textarea":E=S=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Oe(e,t,s,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":S=n;break;case"defaultValue":E=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Oe(e,t,r,n,a,i)}kc(e,S,E);return;case"option":for(var te in l)if(S=l[te],l.hasOwnProperty(te)&&S!=null&&!a.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:Oe(e,t,te,null,a,S)}for(d in a)if(S=a[d],E=l[d],a.hasOwnProperty(d)&&S!==E&&(S!=null||E!=null))switch(d){case"selected":e.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:Oe(e,t,d,S,a,E)}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 re in l)S=l[re],l.hasOwnProperty(re)&&S!=null&&!a.hasOwnProperty(re)&&Oe(e,t,re,null,a,S);for(b in a)if(S=a[b],E=l[b],a.hasOwnProperty(b)&&S!==E&&(S!=null||E!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(137,t));break;default:Oe(e,t,b,S,a,E)}return;default:if(uu(t)){for(var _e in l)S=l[_e],l.hasOwnProperty(_e)&&S!==void 0&&!a.hasOwnProperty(_e)&&Vr(e,t,_e,void 0,a,S);for(M in a)S=a[M],E=l[M],!a.hasOwnProperty(M)||S===E||S===void 0&&E===void 0||Vr(e,t,M,S,a,E);return}}for(var v in l)S=l[v],l.hasOwnProperty(v)&&S!=null&&!a.hasOwnProperty(v)&&Oe(e,t,v,null,a,S);for(q in a)S=a[q],E=l[q],!a.hasOwnProperty(q)||S===E||S==null&&E==null||Oe(e,t,q,S,a,E)}function Xd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xg(){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,s=n.duration;if(i&&s&&Xd(r)){for(r=0,s=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],b=d.startTime;if(b>s)break;var M=d.transferSize,q=d.initiatorType;M&&Xd(q)&&(d=d.responseEnd,r+=M*(d<s?1:(s-b)/(d-b)))}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 Kr=null,Jr=null;function _i(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 Zd(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 Wr(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 $r=null;function Qg(){var e=window.event;return e&&e.type==="popstate"?e===$r?!1:($r=e,!0):($r=null,!1)}var Vd=typeof setTimeout=="function"?setTimeout:void 0,Zg=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,Vg=typeof queueMicrotask=="function"?queueMicrotask:typeof Kd<"u"?function(e){return Kd.resolve(null).then(e).catch(Kg)}:Vd;function Kg(e){setTimeout(function(){throw e})}function ml(e){return e==="head"}function Jd(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),Ra(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")vn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,vn(l);for(var i=l.firstChild;i;){var r=i.nextSibling,s=i.nodeName;i[Ba]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=r}}else l==="body"&&vn(e.ownerDocument.body);l=n}while(l);Ra(t)}function Wd(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 Fr(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":Fr(l),lu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Jg(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[Ba])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=At(e.nextSibling),e===null)break}return null}function Wg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=At(e.nextSibling),e===null))return null;return e}function $d(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=At(e.nextSibling),e===null))return null;return e}function Ir(e){return e.data==="$?"||e.data==="$~"}function Pr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $g(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 At(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 ec=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return At(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Id(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 Pd(e,t,l){switch(t=_i(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 vn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lu(e)}var Rt=new Map,ef=new Set;function Ui(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pt=w.d;w.d={f:Fg,r:Ig,D:Pg,C:ep,L:tp,m:lp,X:np,S:ap,M:ip};function Fg(){var e=Pt.f(),t=Ti();return e||t}function Ig(e){var t=Kl(e);t!==null&&t.tag===5&&t.type==="form"?vo(t):Pt.r(e)}var Ea=typeof document>"u"?null:document;function tf(e,t,l){var a=Ea;if(a&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),ef.has(n)||(ef.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Pg(e){Pt.D(e),tf("dns-prefetch",e,null)}function ep(e,t){Pt.C(e,t),tf("preconnect",e,t)}function tp(e,t,l){Pt.L(e,t,l);var a=Ea;if(a&&e&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+bt(l.imageSizes)+'"]')):n+='[href="'+bt(e)+'"]';var i=n;switch(t){case"style":i=Ca(e);break;case"script":i=Aa(e)}Rt.has(i)||(e=j({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Rt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(xn(i))||t==="script"&&a.querySelector(mn(i))||(t=a.createElement("link"),Ie(t,"link",e),Ve(t),a.head.appendChild(t)))}}function lp(e,t){Pt.m(e,t);var l=Ea;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Aa(e)}if(!Rt.has(i)&&(e=j({rel:"modulepreload",href:e},t),Rt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(mn(i)))return}a=l.createElement("link"),Ie(a,"link",e),Ve(a),l.head.appendChild(a)}}}function ap(e,t,l){Pt.S(e,t,l);var a=Ea;if(a&&e){var n=Jl(a).hoistableStyles,i=Ca(e);t=t||"default";var r=n.get(i);if(!r){var s={loading:0,preload:null};if(r=a.querySelector(xn(i)))s.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Rt.get(i))&&tc(e,l);var d=r=a.createElement("link");Ve(d),Ie(d,"link",e),d._p=new Promise(function(b,M){d.onload=b,d.onerror=M}),d.addEventListener("load",function(){s.loading|=1}),d.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Bi(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:s},n.set(i,r)}}}function np(e,t){Pt.X(e,t);var l=Ea;if(l&&e){var a=Jl(l).hoistableScripts,n=Aa(e),i=a.get(n);i||(i=l.querySelector(mn(n)),i||(e=j({src:e,async:!0},t),(t=Rt.get(n))&&lc(e,t),i=l.createElement("script"),Ve(i),Ie(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function ip(e,t){Pt.M(e,t);var l=Ea;if(l&&e){var a=Jl(l).hoistableScripts,n=Aa(e),i=a.get(n);i||(i=l.querySelector(mn(n)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Rt.get(n))&&lc(e,t),i=l.createElement("script"),Ve(i),Ie(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function lf(e,t,l,a){var n=(n=F.current)?Ui(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=Ca(l.href),l=Jl(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=Ca(l.href);var i=Jl(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(xn(e)))&&!i._p&&(r.instance=i,r.state.loading=5),Rt.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},Rt.set(e,l),i||up(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=Aa(l),l=Jl(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 Ca(e){return'href="'+bt(e)+'"'}function xn(e){return'link[rel="stylesheet"]['+e+"]"}function af(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function up(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}),Ie(t,"link",l),Ve(t),e.head.appendChild(t))}function Aa(e){return'[src="'+bt(e)+'"]'}function mn(e){return"script[async]"+e}function nf(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(l.href)+'"]');if(a)return t.instance=a,Ve(a),a;var n=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ve(a),Ie(a,"style",n),Bi(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ca(l.href);var i=e.querySelector(xn(n));if(i)return t.state.loading|=4,t.instance=i,Ve(i),i;a=af(l),(n=Rt.get(n))&&tc(a,n),i=(e.ownerDocument||e).createElement("link"),Ve(i);var r=i;return r._p=new Promise(function(s,d){r.onload=s,r.onerror=d}),Ie(i,"link",a),t.state.loading|=4,Bi(i,l.precedence,e),t.instance=i;case"script":return i=Aa(l.src),(n=e.querySelector(mn(i)))?(t.instance=n,Ve(n),n):(a=l,(n=Rt.get(i))&&(a=j({},l),lc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(n),Ie(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,Bi(a,l.precedence,e));return t.instance}function Bi(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 s=a[r];if(s.dataset.precedence===t)i=s;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 tc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ni=null;function uf(e,t,l){if(Ni===null){var a=new Map,n=Ni=new Map;n.set(l,a)}else n=Ni,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[Ba]||i[Je]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var s=a.get(r);s?s.push(i):a.set(r,[i])}}return a}function rf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function rp(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 cf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cp(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=Ca(a.href),i=t.querySelector(xn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ve(i);return}i=t.ownerDocument||t,a=af(a),(n=Rt.get(n))&&tc(a,n),i=i.createElement("link"),Ve(i);var r=i;r._p=new Promise(function(s,d){r.onload=s,r.onerror=d}),Ie(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=Hi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ac=0;function sp(e,t){return e.stylesheets&&e.count===0&&ki(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ki(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&ac===0&&(ac=62500*Xg());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ki(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>ac?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Hi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ki(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qi=null;function ki(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qi=new Map,t.forEach(op,e),qi=null,Hi.call(e))}function op(e,t){if(!(t.state.loading&4)){var l=qi.get(e);if(l)var a=l.get(null);else{l=new Map,qi.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=Hi.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 bn={$$typeof:X,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function dp(e,t,l,a,n,i,r,s,d){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=Ii(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ii(0),this.hiddenUpdates=Ii(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function sf(e,t,l,a,n,i,r,s,d,b,M,q){return e=new dp(e,t,l,r,d,b,M,q,s),t=1,i===!0&&(t|=24),i=ht(3,null,null,t),e.current=i,i.stateNode=e,t=Hu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Lu(i),e}function of(e){return e?(e=na,e):na}function df(e,t,l,a,n,i){n=of(n),a.context===null?a.context=n:a.pendingContext=n,a=cl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=sl(e,a,t),l!==null&&(rt(l,e,t),Fa(l,e,t))}function ff(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function nc(e,t){ff(e,t),(e=e.alternate)&&ff(e,t)}function hf(e){if(e.tag===13||e.tag===31){var t=_l(e,67108864);t!==null&&rt(t,e,67108864),nc(e,67108864)}}function gf(e){if(e.tag===13||e.tag===31){var t=xt();t=Pi(t);var l=_l(e,t);l!==null&&rt(l,e,t),nc(e,t)}}var Yi=!0;function fp(e,t,l,a){var n=R.T;R.T=null;var i=w.p;try{w.p=2,ic(e,t,l,a)}finally{w.p=i,R.T=n}}function hp(e,t,l,a){var n=R.T;R.T=null;var i=w.p;try{w.p=8,ic(e,t,l,a)}finally{w.p=i,R.T=n}}function ic(e,t,l,a){if(Yi){var n=uc(a);if(n===null)Zr(e,t,a,Li,l),yf(e,a);else if(pp(n,e,t,l,a))a.stopPropagation();else if(yf(e,a),t&4&&-1<gp.indexOf(e)){for(;n!==null;){var i=Kl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=Al(i.pendingLanes);if(r!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;r;){var d=1<<31-dt(r);s.entanglements[1]|=d,r&=~d}Nt(i),(Ee&6)===0&&(ji=st()+500,gn(0))}}break;case 31:case 13:s=_l(i,2),s!==null&&rt(s,i,2),Ti(),nc(i,2)}if(i=uc(a),i===null&&Zr(e,t,a,Li,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Zr(e,t,a,null,l)}}function uc(e){return e=cu(e),rc(e)}var Li=null;function rc(e){if(Li=null,e=Vl(e),e!==null){var t=U(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=O(t),e!==null)return e;e=null}else if(l===31){if(e=N(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 Li=e,null}function pf(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(Pf()){case Sc:return 2;case jc:return 8;case Dn:case eh:return 32;case zc:return 268435456;default:return 32}default:return 32}}var cc=!1,bl=null,Sl=null,jl=null,Sn=new Map,jn=new Map,zl=[],gp="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 yf(e,t){switch(e){case"focusin":case"focusout":bl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":jl=null;break;case"pointerover":case"pointerout":Sn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jn.delete(t.pointerId)}}function zn(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=Kl(t),t!==null&&hf(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function pp(e,t,l,a,n){switch(t){case"focusin":return bl=zn(bl,e,t,l,a,n),!0;case"dragenter":return Sl=zn(Sl,e,t,l,a,n),!0;case"mouseover":return jl=zn(jl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Sn.set(i,zn(Sn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,jn.set(i,zn(jn.get(i)||null,e,t,l,a,n)),!0}return!1}function vf(e){var t=Vl(e.target);if(t!==null){var l=U(t);if(l!==null){if(t=l.tag,t===13){if(t=O(l),t!==null){e.blockedOn=t,Dc(e.priority,function(){gf(l)});return}}else if(t===31){if(t=N(l),t!==null){e.blockedOn=t,Dc(e.priority,function(){gf(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 Gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=uc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ru=a,l.target.dispatchEvent(a),ru=null}else return t=Kl(l),t!==null&&hf(t),e.blockedOn=l,!1;t.shift()}return!0}function xf(e,t,l){Gi(e)&&l.delete(t)}function yp(){cc=!1,bl!==null&&Gi(bl)&&(bl=null),Sl!==null&&Gi(Sl)&&(Sl=null),jl!==null&&Gi(jl)&&(jl=null),Sn.forEach(xf),jn.forEach(xf)}function wi(e,t){e.blockedOn===t&&(e.blockedOn=null,cc||(cc=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,yp)))}var Xi=null;function mf(e){Xi!==e&&(Xi=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Xi===e&&(Xi=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(rc(a||l)===null)continue;break}var i=Kl(l);i!==null&&(e.splice(t,3),t-=3,ur(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ra(e){function t(d){return wi(d,e)}bl!==null&&wi(bl,e),Sl!==null&&wi(Sl,e),jl!==null&&wi(jl,e),Sn.forEach(t),jn.forEach(t);for(var l=0;l<zl.length;l++){var a=zl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<zl.length&&(l=zl[0],l.blockedOn===null);)vf(l),l.blockedOn===null&&zl.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[tt]||null;if(typeof i=="function")r||mf(l);else if(r){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,r=i[tt]||null)s=r.formAction;else if(rc(n)!==null)continue}else s=r.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),mf(l)}}}function bf(){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 sc(e){this._internalRoot=e}Qi.prototype.render=sc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=xt();df(l,a,e,t,null,null)},Qi.prototype.unmount=sc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;df(e.current,2,null,e,null,null),Ti(),t[Zl]=null}};function Qi(e){this._internalRoot=e}Qi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<zl.length&&t!==0&&t<zl[l].priority;l++);zl.splice(l,0,e),l===0&&vf(e)}};var Sf=f.version;if(Sf!=="19.2.4")throw Error(o(527,Sf,"19.2.4"));w.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=p(t),e=e!==null?H(e):null,e=e===null?null:e.stateNode,e};var vp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{Oa=Zi.inject(vp),ot=Zi}catch{}}return En.createRoot=function(e,t){if(!T(e))throw Error(o(299));var l=!1,a="",n=Ao,i=Ro,r=Do;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=sf(e,1,!1,null,null,l,a,null,n,i,r,bf),e[Zl]=t.current,Qr(e),new sc(t)},En.hydrateRoot=function(e,t,l){if(!T(e))throw Error(o(299));var a=!1,n="",i=Ao,r=Ro,s=Do,d=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&&(s=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),t=sf(e,1,!0,t,l??null,a,n,d,i,r,s,bf),t.context=of(null),l=t.current,a=xt(),a=Pi(a),n=cl(a),n.callback=null,sl(l,n,a),l=a,t.current.lanes=l,Ua(t,l),Nt(t),e[Zl]=t.current,Qr(e),new Qi(t)},En.version="19.2.4",En}var _f;function Dp(){if(_f)return dc.exports;_f=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(f){console.error(f)}}return c(),dc.exports=Rp(),dc.exports}var Mp=Dp(),x=vc();const Xf="/api";async function je(c,f){const y=await fetch(`${Xf}${c}`,{...f,headers:{"Content-Type":"application/json",...f==null?void 0:f.headers}});if(!y.ok){const o=await y.text();throw new Error(`${y.status}: ${o}`)}return y.json()}const Uf=c=>je("/scenarios"),Op=c=>je("/scenarios",{method:"POST",body:JSON.stringify(c)}),_p=(c,f)=>je(`/scenarios/${c}`,{method:"PATCH",body:JSON.stringify(f)}),Up=c=>je(`/scenarios/${c}`,{method:"DELETE"}),yc=c=>{const f=c?"?"+new URLSearchParams(c).toString():"";return je(`/runs${f}`)},Bp=c=>je(`/runs/${c}`),Qf=c=>je(`/results/${c}`),An=c=>`${Xf}/screenshots/${c}/file`,xc=c=>je("/runs",{method:"POST",body:JSON.stringify(c)}),Np=(c,f=10)=>je(`/scenarios/${c}/history?limit=${f}`),Hp=()=>je("/status"),qp=()=>je("/schedules"),kp=c=>je("/schedules",{method:"POST",body:JSON.stringify(c)}),Yp=(c,f)=>je(`/schedules/${c}`,{method:"PUT",body:JSON.stringify(f)}),Lp=c=>je(`/schedules/${c}`,{method:"DELETE"}),Gp=c=>{const f=new URLSearchParams,y=f.toString()?`?${f.toString()}`:"";return je(`/api-checks${y}`)},wp=c=>je("/api-checks",{method:"POST",body:JSON.stringify(c)}),Xp=c=>je(`/api-checks/${c}`,{method:"DELETE"}),Qp=(c,f)=>je(`/api-checks/${c}/run`,{method:"POST",body:JSON.stringify({baseUrl:f})}),Zp=c=>je("/api-checks/run-all",{method:"POST",body:JSON.stringify(c)}),Vp=(c,f=10)=>je(`/api-checks/${c}/results?limit=${f}`),Kp=()=>je("/projects"),Jp=c=>je("/projects",{method:"POST",body:JSON.stringify(c)}),Wp=(c,f)=>je(`/projects/${c}`,{method:"PUT",body:JSON.stringify(f)}),$p=c=>je(`/projects/${c}/environments`),Fp=(c,f)=>je(`/projects/${c}/environments`,{method:"POST",body:JSON.stringify(f)}),Ip=(c,f)=>je(`/environments/${c}`,{method:"PUT",body:JSON.stringify(f)}),Pp=c=>je(`/environments/${c}`,{method:"DELETE"}),ey=c=>je("/coverage"),ty=(c=30)=>je(`/stats?days=${c}`),ly=c=>{const f=c?"?"+new URLSearchParams(Object.fromEntries(Object.entries(c).filter(([,y])=>y!=null).map(([y,o])=>[y,String(o)]))).toString():"";return je(`/scan-issues${f}`)},ay=c=>je(`/scan-issues/${c}/resolve`,{method:"PUT"}),ny=c=>je("/personas"),iy=c=>je("/personas",{method:"POST",body:JSON.stringify(c)}),uy=c=>je(`/personas/${c}`,{method:"DELETE"});function Zf({title:c,message:f,confirmLabel:y="Confirm",cancelLabel:o="Cancel",onConfirm:T,onCancel:U}){return x.useEffect(()=>{const O=N=>{N.key==="Escape"&&U(),N.key==="Enter"&&T()};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[T,U]),u.jsx("div",{onClick:U,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:300},children:u.jsxs("div",{onClick:O=>O.stopPropagation(),style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:24,minWidth:320,maxWidth:440,boxShadow:"0 8px 32px rgba(0,0,0,0.5)"},children:[u.jsx("h3",{style:{margin:"0 0 8px 0",fontSize:15,fontWeight:600},children:c}),u.jsx("p",{style:{margin:"0 0 20px 0",fontSize:13,color:"var(--text-muted)",lineHeight:1.5},children:f}),u.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[u.jsx("button",{onClick:U,style:{padding:"6px 16px",borderRadius:6,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:o}),u.jsx("button",{onClick:T,style:{padding:"6px 16px",borderRadius:6,border:"1px solid var(--red)",background:"var(--red)",color:"#fff",cursor:"pointer",fontSize:13,fontWeight:600},children:y})]})]})})}const ry={critical:"var(--red)",high:"var(--yellow)",medium:"var(--blue)",low:"var(--text-muted)"};function Bf({s:c,isSelected:f,isChecked:y,onSelect:o,onToggle:T,onDuplicate:U}){return u.jsxs("div",{onClick:o,style:{background:"var(--bg-card)",border:`1px solid ${f?"var(--blue)":"var(--border)"}`,borderRadius:8,padding:16,cursor:"pointer",display:"flex",gap:12,alignItems:"flex-start",outline:f?"2px solid var(--blue)":"none",outlineOffset:1},children:[u.jsx("input",{type:"checkbox",checked:y,onChange:O=>{O.stopPropagation(),T()},onClick:O=>O.stopPropagation(),style:{marginTop:3,cursor:"pointer",flexShrink:0}}),u.jsxs("div",{style:{flex:1},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:6},children:[u.jsx("span",{style:{color:"var(--cyan)",fontFamily:"monospace",fontSize:13},children:c.shortId}),u.jsx("span",{style:{fontWeight:600},children:c.name}),u.jsx("span",{style:{color:ry[c.priority]??"var(--text-muted)",fontSize:12,border:"1px solid",borderRadius:4,padding:"1px 6px"},children:c.priority}),u.jsx("button",{title:"Duplicate scenario",onClick:U,style:{marginLeft:"auto",padding:"2px 8px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:11,flexShrink:0},children:"⧉ Duplicate"})]}),c.description&&u.jsx("p",{style:{color:"var(--text-muted)",fontSize:13,margin:"4px 0"},children:c.description}),u.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,alignItems:"center"},children:[c.tags.map(O=>u.jsx("span",{style:{background:"var(--bg-hover)",color:"var(--text-muted)",padding:"2px 8px",borderRadius:4,fontSize:11},children:O},O)),c.steps.length>0&&u.jsxs("span",{style:{color:"var(--text-muted)",fontSize:11},children:[c.steps.length," steps"]}),c.model&&u.jsxs("span",{style:{color:"var(--text-muted)",fontSize:11},children:["model: ",c.model]}),u.jsx("span",{style:{marginLeft:"auto"},children:u.jsx(oy,{scenarioId:c.id})})]})]})]})}function cy(c){const f=new Map;for(const y of c){const o=y.tags[0]??"Ungrouped",T=f.get(o)??[];T.push(y),f.set(o,T)}return f}function sy({scenarios:c,onRefresh:f,editScenarioId:y,onEditClose:o}){const{selectedScenarioId:T,setSelectedScenarioId:U,searchInputRef:O}=x.useContext(Wf),[N,C]=x.useState(""),[p,H]=x.useState(new Set),[j,z]=x.useState(!1),[A,L]=x.useState(new Set),[ee,Y]=x.useState(""),[G,Q]=x.useState(!1),[X,D]=x.useState([]),[J,I]=x.useState(-1),[K,ne]=x.useState(null),[pe,se]=x.useState(null),[W,Z]=x.useState(null),$=y??W,be=$?c.find(B=>B.id===$)??null:null,de=()=>{Z(null),o==null||o()},R=Array.from(new Set(c.flatMap(B=>B.tags))).sort(),w=B=>{ne(B),setTimeout(()=>ne(null),3e3)},ie=(B,F)=>{F.stopPropagation(),Op({name:`Copy of ${B.name}`,description:B.description,steps:B.steps,tags:B.tags,priority:B.priority,model:B.model??void 0,timeoutMs:B.timeoutMs??void 0,targetPath:B.targetPath??void 0,requiresAuth:B.requiresAuth}).then(()=>{w(`Duplicated "${B.name}" as "Copy of ${B.name}"`),f()}).catch(ce=>w(`Error: ${ce.message}`))},P=N?c.filter(B=>B.name.toLowerCase().includes(N.toLowerCase())||B.tags.some(F=>F.toLowerCase().includes(N.toLowerCase()))||B.shortId.toLowerCase().includes(N.toLowerCase())):c,fe=B=>{H(F=>{const ce=new Set(F);return ce.has(B)?ce.delete(B):ce.add(B),ce})},g=()=>{p.size===P.length?H(new Set):H(new Set(P.map(B=>B.id)))},k=()=>{const B=Array.from(p);B.length!==0&&xc({scenarioIds:B}).then(()=>{w(`Started run for ${B.length} scenario${B.length>1?"s":""}`),setTimeout(f,1500)}).catch(F=>w(`Error: ${F.message}`))},V=()=>{const B=Array.from(p);B.length!==0&&se({ids:B})},le=B=>{se(null),Promise.all(B.map(F=>Up(F))).then(()=>{w(`Deleted ${B.length} scenario${B.length>1?"s":""}`),H(new Set),f()}).catch(F=>w(`Error: ${F.message}`))};return u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:600,margin:0},children:"Test Scenarios"}),u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[u.jsx("input",{ref:O,type:"text",placeholder:"Search… (/)",value:N,onChange:B=>C(B.target.value),style:{padding:"4px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:12,width:180,outline:"none"}}),u.jsx("button",{onClick:()=>z(B=>!B),title:j?"Switch to flat list":"Group by first tag",style:{padding:"4px 10px",borderRadius:4,border:"1px solid var(--border)",background:j?"var(--accent)":"transparent",color:j?"#fff":"var(--text-muted)",cursor:"pointer",fontSize:12},children:j?"⊞ Grouped":"⊟ Flat"}),u.jsx("button",{onClick:f,style:{padding:"4px 12px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:12},children:"Refresh"})]})]}),P.length===0?u.jsx("div",{style:{padding:40,textAlign:"center",color:"var(--text-muted)"},children:c.length===0?u.jsxs(u.Fragment,{children:["No scenarios yet. Use ",u.jsx("code",{style:{background:"var(--bg-card)",padding:"2px 6px",borderRadius:4},children:'testers add "scenario name"'})," to create one."]}):"No scenarios match your search."}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,paddingLeft:4},children:[u.jsx("input",{type:"checkbox",checked:p.size===P.length&&P.length>0,onChange:g,style:{cursor:"pointer"}}),u.jsx("span",{style:{fontSize:12,color:"var(--text-muted)"},children:p.size>0?`${p.size} selected`:"Select all"})]}),j?Array.from(cy(P).entries()).map(([B,F])=>{const ce=A.has(B);return u.jsxs("div",{style:{marginBottom:16},children:[u.jsxs("button",{onClick:()=>L(Ce=>{const De=new Set(Ce);return De.has(B)?De.delete(B):De.add(B),De}),style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",background:"none",border:"none",borderBottom:"1px solid var(--border)",paddingBottom:6,marginBottom:8,cursor:"pointer",color:"var(--text)"},children:[u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:ce?"▶":"▼"}),u.jsx("span",{style:{fontSize:13,fontWeight:600},children:B}),u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:"1px 7px"},children:F.length})]}),!ce&&u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:F.map(Ce=>u.jsx(Bf,{s:Ce,isSelected:T===Ce.id,isChecked:p.has(Ce.id),onSelect:()=>U(T===Ce.id?null:Ce.id),onToggle:()=>fe(Ce.id),onDuplicate:De=>ie(Ce,De)},Ce.id))})]},B)}):u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:P.map(B=>u.jsx(Bf,{s:B,isSelected:T===B.id,isChecked:p.has(B.id),onSelect:()=>U(T===B.id?null:B.id),onToggle:()=>fe(B.id),onDuplicate:F=>ie(B,F)},B.id))})]}),p.size>0&&u.jsxs("div",{style:{position:"fixed",bottom:70,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:"10px 20px",display:"flex",gap:10,alignItems:"center",boxShadow:"0 8px 24px rgba(0,0,0,0.4)",zIndex:50,minWidth:360},children:[u.jsxs("span",{style:{fontSize:13,color:"var(--text-muted)",marginRight:4},children:[p.size," selected"]}),u.jsx(Cn,{color:"var(--blue)",onClick:k,children:"▶ Run Selected"}),u.jsx(Cn,{color:"var(--red)",onClick:V,children:"✕ Delete Selected"}),G?u.jsxs("div",{style:{position:"relative",display:"flex",gap:4,alignItems:"center"},children:[u.jsx("input",{autoFocus:!0,type:"text",placeholder:"tag name",value:ee,onChange:B=>{const F=B.target.value;if(Y(F),I(-1),F.trim()){const ce=F.trim().toLowerCase();D(R.filter(Ce=>Ce.toLowerCase().includes(ce)&&Ce.toLowerCase()!==ce))}else D(R)},onFocus:()=>{D(ee.trim()?R.filter(B=>B.toLowerCase().includes(ee.toLowerCase())):R)},onKeyDown:B=>{if(B.key==="ArrowDown"){B.preventDefault(),I(F=>Math.min(F+1,X.length-1));return}if(B.key==="ArrowUp"){B.preventDefault(),I(F=>Math.max(F-1,-1));return}if(B.key==="Enter"){const F=J>=0?X[J]:ee.trim();F&&(w(`Tag "${F}" would be added (use CLI: testers update --tag ${F})`),Y(""),Q(!1),D([]),I(-1));return}B.key==="Escape"&&(X.length>0?(D([]),I(-1)):(Q(!1),Y("")))},style:{padding:"3px 8px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg)",color:"var(--text)",fontSize:12,width:120}}),X.length>0&&u.jsx("div",{style:{position:"absolute",bottom:"100%",left:0,background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:6,marginBottom:4,minWidth:140,maxHeight:160,overflowY:"auto",zIndex:200,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:X.map((B,F)=>u.jsx("div",{onMouseDown:ce=>{ce.preventDefault(),w(`Tag "${B}" would be added (use CLI: testers update --tag ${B})`),Y(""),Q(!1),D([]),I(-1)},style:{padding:"5px 10px",fontSize:12,cursor:"pointer",background:F===J?"var(--blue)":"transparent",color:F===J?"#fff":"var(--text)"},children:B},B))}),u.jsx(Cn,{color:"var(--text-muted)",onClick:()=>{Q(!1),Y(""),D([])},children:"Cancel"})]}):u.jsx(Cn,{color:"var(--text-muted)",onClick:()=>{Q(!0),D([]),I(-1)},children:"+ Add Tag"}),u.jsx(Cn,{color:"var(--text-muted)",onClick:()=>H(new Set),children:"Clear"})]}),be&&u.jsx(dy,{scenario:be,onClose:de,onSaved:()=>{de(),f(),w(`Saved "${be.name}"`)}}),pe&&u.jsx(Zf,{title:`Delete ${pe.ids.length} scenario${pe.ids.length>1?"s":""}?`,message:"This action cannot be undone.",confirmLabel:"Delete",onConfirm:()=>le(pe.ids),onCancel:()=>se(null)}),K&&u.jsx("div",{style:{position:"fixed",bottom:56,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:"8px 16px",fontSize:13,color:"var(--text)",zIndex:100,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:K})]})}function oy({scenarioId:c}){const[f,y]=x.useState([]);x.useEffect(()=>{Np(c,10).then(y).catch(()=>{})},[c]);const o=10,T=Array.from({length:o},(H,j)=>f[j]??null),U=4,O=10,N=o*O,C=14,p=C/2;return u.jsx("svg",{width:N,height:C,style:{display:"block",flexShrink:0},children:T.map((H,j)=>{const z=H===null?"var(--border)":H.status==="passed"?"var(--green)":"var(--red)";return u.jsx("circle",{cx:j*O+U+1,cy:p,r:U,fill:z,opacity:H===null?.4:1},j)})})}function Cn({color:c,onClick:f,children:y}){return u.jsx("button",{onClick:f,style:{padding:"5px 12px",borderRadius:6,border:`1px solid ${c}`,background:"transparent",color:c,cursor:"pointer",fontSize:12,fontWeight:500},children:y})}function dy({scenario:c,onClose:f,onSaved:y}){const[o,T]=x.useState(c.name),[U,O]=x.useState(c.description??""),[N,C]=x.useState(c.priority),[p,H]=x.useState(c.tags.join(", ")),[j,z]=x.useState(c.targetPath??""),[A,L]=x.useState(!1),[ee,Y]=x.useState(null);x.useEffect(()=>{const D=J=>{J.key==="Escape"&&f()};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);const G=()=>{if(!o.trim()){Y("Name is required.");return}L(!0),Y(null);const D=p.split(",").map(J=>J.trim()).filter(Boolean);_p(c.id,{name:o.trim(),description:U,priority:N,tags:D,targetPath:j||null}).then(()=>y()).catch(J=>{Y(J.message),L(!1)})},Q={fontSize:12,color:"var(--text-muted)",marginBottom:4,display:"block"},X={width:"100%",padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg)",color:"var(--text)",fontSize:13,boxSizing:"border-box"};return u.jsx("div",{onClick:f,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.7)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:300},children:u.jsxs("div",{onClick:D=>D.stopPropagation(),style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:480,maxWidth:"90vw",boxShadow:"0 12px 40px rgba(0,0,0,0.5)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600},children:"Edit Scenario"}),u.jsx("button",{onClick:f,style:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:18,lineHeight:1,padding:0},children:"✕"})]}),u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Name"}),u.jsx("input",{style:X,value:o,onChange:D=>T(D.target.value),autoFocus:!0})]}),u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Description"}),u.jsx("textarea",{value:U,onChange:D=>O(D.target.value),rows:3,style:{...X,resize:"vertical",fontFamily:"inherit"}})]}),u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Priority"}),u.jsx("select",{value:N,onChange:D=>C(D.target.value),style:X,children:["critical","high","medium","low"].map(D=>u.jsx("option",{value:D,children:D},D))})]}),u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Tags (comma-separated)"}),u.jsx("input",{style:X,value:p,onChange:D=>H(D.target.value),placeholder:"e.g. smoke, auth, regression"})]}),u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Target path (optional)"}),u.jsx("input",{style:X,value:j,onChange:D=>z(D.target.value),placeholder:"/path or blank for default URL"})]})]}),ee&&u.jsx("p",{style:{color:"var(--red)",fontSize:12,marginTop:12,marginBottom:0},children:ee}),u.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:20},children:[u.jsx("button",{onClick:f,style:{padding:"7px 16px",borderRadius:6,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{onClick:G,disabled:A,style:{padding:"7px 16px",borderRadius:6,border:"none",background:"var(--blue)",color:"#fff",cursor:A?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:A?.7:1},children:A?"Saving…":"Save"})]})]})})}function ct({size:c=20}){return u.jsx("div",{style:{width:c,height:c,border:"2px solid var(--border)",borderTopColor:"var(--blue)",borderRadius:"50%",animation:"spin 0.7s linear infinite",display:"inline-block"}})}function fy({points:c,width:f=120,height:y=32}){if(c.length<2)return null;const o=c.map(z=>z.passRate??0),T=Math.min(...o),O=Math.max(...o)-T||1,N=z=>z/(c.length-1)*f,C=z=>y-(z-T)/O*(y-4)-2,p=o.map((z,A)=>`${A===0?"M":"L"} ${N(A).toFixed(1)} ${C(z).toFixed(1)}`).join(" "),H=o[o.length-1]??0,j=H>=80?"var(--green)":H>=50?"var(--yellow)":"var(--red)";return u.jsxs("svg",{width:f,height:y,style:{overflow:"visible"},children:[u.jsx("path",{d:p,fill:"none",stroke:j,strokeWidth:1.5,strokeLinejoin:"round",strokeLinecap:"round"}),u.jsx("circle",{cx:N(o.length-1),cy:C(H),r:3,fill:j})]})}function hy(){var p;const[c,f]=x.useState(null),[y,o]=x.useState(30);if(x.useEffect(()=>{ty(y).then(f).catch(console.error)},[y]),!c||c.trend.length===0)return null;const{last7d:T,apiChecks:U,trend:O}=c,N=(p=O[O.length-1])==null?void 0:p.passRate,C=H=>H==null?"var(--text-muted)":H>=80?"var(--green)":H>=50?"var(--yellow)":"var(--red)";return u.jsxs("div",{style:{background:"var(--surface)",border:"1px solid var(--border)",borderRadius:12,padding:"16px 20px",marginBottom:24,display:"flex",gap:32,alignItems:"center",flexWrap:"wrap"},children:[u.jsxs("div",{style:{flex:"1 1 180px",minWidth:160},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[u.jsx("span",{style:{fontSize:11,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:1},children:"Pass Rate Trend"}),u.jsx("div",{style:{display:"flex",gap:4},children:[7,14,30].map(H=>u.jsxs("button",{onClick:()=>o(H),style:{padding:"2px 7px",fontSize:10,borderRadius:4,cursor:"pointer",background:y===H?"var(--accent)":"transparent",color:y===H?"#fff":"var(--text-muted)",border:"1px solid "+(y===H?"var(--accent)":"var(--border)")},children:[H,"d"]},H))})]}),u.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:12},children:[u.jsx(fy,{points:O,width:140,height:36}),N!=null&&u.jsxs("span",{style:{fontSize:22,fontWeight:700,color:C(N),lineHeight:1},children:[N,"%"]})]})]}),u.jsx("div",{style:{width:1,height:48,background:"var(--border)",flexShrink:0}}),u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:22,fontWeight:700,color:C(T.passRate)},children:T.passRate!=null?`${T.passRate}%`:"—"}),u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:2},children:["Last 7d avg · ",T.runs," run",T.runs!==1?"s":""]})]}),u.jsx("div",{style:{width:1,height:48,background:"var(--border)",flexShrink:0}}),u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:22,fontWeight:700,color:C(U.passRate)},children:U.passRate!=null?`${U.passRate}%`:"—"}),u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:2},children:["API checks · ",U.total," result",U.total!==1?"s":""]})]})]})}const Nf={passed:{color:"var(--green)",bg:"rgba(34, 197, 94, 0.1)"},failed:{color:"var(--red)",bg:"rgba(239, 68, 68, 0.1)"},running:{color:"var(--blue)",bg:"rgba(59, 130, 246, 0.1)"},pending:{color:"var(--text-muted)",bg:"rgba(115, 115, 115, 0.1)"},cancelled:{color:"var(--yellow)",bg:"rgba(234, 179, 8, 0.1)"}};function gy(c){if(c==="all")return;const f=Date.now(),y={"24h":864e5,"7d":6048e5,"30d":2592e6};return new Date(f-y[c]).toISOString()}function py({runs:c,onSelectRun:f,onRefresh:y}){const[o,T]=x.useState("all"),[U,O]=x.useState("all"),[N,C]=x.useState("all"),[p,H]=x.useState(c),[j,z]=x.useState(!1);x.useEffect(()=>{H(c)},[c]),x.useEffect(()=>{const L={};o!=="all"&&(L.status=o),U!=="all"&&(L.model=U);const ee=gy(N);ee&&(L.since=ee),z(!0),yc(Object.keys(L).length>0?L:void 0).then(Y=>{H(Y),z(!1)}).catch(Y=>{console.error(Y),z(!1)})},[o,U,N]);const A={padding:"4px 8px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:12,cursor:"pointer",outline:"none"};return u.jsxs("div",{children:[u.jsx(hy,{}),u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:600,margin:0},children:"Test Runs"}),u.jsx("button",{onClick:y,style:{padding:"4px 12px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:12},children:"Refresh"})]}),u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:16,flexWrap:"wrap"},children:[u.jsx("label",{style:{fontSize:12,color:"var(--text-muted)"},children:"Status:"}),u.jsxs("select",{value:o,onChange:L=>T(L.target.value),style:A,children:[u.jsx("option",{value:"all",children:"All"}),u.jsx("option",{value:"passed",children:"Passed"}),u.jsx("option",{value:"failed",children:"Failed"}),u.jsx("option",{value:"error",children:"Error"}),u.jsx("option",{value:"running",children:"Running"}),u.jsx("option",{value:"cancelled",children:"Cancelled"})]}),u.jsx("label",{style:{fontSize:12,color:"var(--text-muted)",marginLeft:8},children:"Model:"}),u.jsxs("select",{value:U,onChange:L=>O(L.target.value),style:A,children:[u.jsx("option",{value:"all",children:"All"}),u.jsx("option",{value:"quick",children:"Quick"}),u.jsx("option",{value:"thorough",children:"Thorough"}),u.jsx("option",{value:"deep",children:"Deep"})]}),u.jsx("label",{style:{fontSize:12,color:"var(--text-muted)",marginLeft:8},children:"Date:"}),u.jsxs("select",{value:N,onChange:L=>C(L.target.value),style:A,children:[u.jsx("option",{value:"all",children:"All time"}),u.jsx("option",{value:"24h",children:"Last 24h"}),u.jsx("option",{value:"7d",children:"Last 7d"}),u.jsx("option",{value:"30d",children:"Last 30d"})]}),j&&u.jsx(ct,{size:14})]}),p.length===0?u.jsx("div",{style:{padding:40,textAlign:"center",color:"var(--text-muted)"},children:j?u.jsx(ct,{}):u.jsxs(u.Fragment,{children:["No runs yet. Use ",u.jsx("code",{style:{background:"var(--bg-card)",padding:"2px 6px",borderRadius:4},children:"testers run <url>"})," to start testing."]})}):u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:p.map(L=>{const ee=Nf[L.status]??Nf.pending,Y=L.finishedAt?`${((new Date(L.finishedAt).getTime()-new Date(L.startedAt).getTime())/1e3).toFixed(1)}s`:"running...";return u.jsx("div",{onClick:()=>f(L.id),style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:16,cursor:"pointer"},children:u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[u.jsx("span",{style:{color:ee.color,background:ee.bg,padding:"2px 8px",borderRadius:4,fontSize:12,fontWeight:600},children:L.status.toUpperCase()}),u.jsx("span",{style:{fontFamily:"monospace",fontSize:13,color:"var(--text-muted)"},children:L.id.slice(0,8)}),u.jsx("span",{style:{fontWeight:500},children:L.url}),u.jsx("span",{style:{marginLeft:"auto",color:"var(--green)",fontSize:13},children:L.passed}),u.jsx("span",{style:{color:"var(--text-muted)",fontSize:13},children:"/"}),u.jsx("span",{style:{color:L.failed>0?"var(--red)":"var(--text-muted)",fontSize:13},children:L.total}),u.jsx("span",{style:{color:"var(--text-muted)",fontSize:12},children:Y})]})},L.id)})})]})}const Hf={passed:"var(--green)",failed:"var(--red)",error:"var(--yellow)",skipped:"var(--text-muted)"};function yy({runId:c,onBack:f,onSelectResult:y}){const[o,T]=x.useState(null),[U,O]=x.useState([]),[N,C]=x.useState(null),[p,H]=x.useState(!1),j=x.useRef(null);x.useEffect(()=>(Bp(c).then(({run:G,results:Q})=>{if(T(G),O(Q),G.status==="pending"||G.status==="running"){H(!0);const X=new EventSource(`/api/runs/${c}/stream`);j.current=X,X.onmessage=D=>{try{const J=JSON.parse(D.data);T(J.run),O(J.results??[]),J.type==="done"&&(H(!1),X.close())}catch{}},X.onerror=()=>{H(!1),X.close()}}}).catch(console.error),()=>{var G;(G=j.current)==null||G.close()}),[c]);const[z,A]=x.useState(null),L=(G,Q)=>{if(G.shiftKey){G.preventDefault(),z&&z!==Q?(C([z,Q]),A(null)):A(Q);return}y(Q)};if(!o)return u.jsx("div",{style:{padding:40,textAlign:"center",color:"var(--text-muted)",display:"flex",justifyContent:"center"},children:u.jsx(ct,{})});const ee=N?U.find(G=>G.id===N[0])??null:null,Y=N?U.find(G=>G.id===N[1])??null:null;return u.jsxs("div",{children:[u.jsx("button",{onClick:f,style:{background:"none",border:"none",color:"var(--blue)",cursor:"pointer",marginBottom:16,padding:0,fontSize:13},children:"Back to Runs"}),u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:20,marginBottom:20},children:[u.jsxs("h2",{style:{fontSize:16,fontWeight:600,margin:"0 0 12px 0"},children:["Run ",o.id.slice(0,8)]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:12,fontSize:13},children:[u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"URL:"})," ",o.url]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Model:"})," ",o.model]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Status:"})," ",u.jsx("span",{style:{color:Hf[o.status]},children:o.status}),p&&u.jsx("span",{style:{marginLeft:8,fontSize:10,background:"rgba(59,130,246,0.15)",color:"var(--blue)",borderRadius:4,padding:"2px 6px",fontWeight:600},children:"● LIVE"})]}),u.jsxs("div",{children:[u.jsxs("span",{style:{color:"var(--green)"},children:[o.passed," passed"]})," / ",u.jsxs("span",{style:{color:o.failed>0?"var(--red)":"var(--text-muted)"},children:[o.failed," failed"]})," / ",o.total," total"]})]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:12},children:[u.jsx("h3",{style:{fontSize:14,fontWeight:600,margin:0},children:"Results"}),u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[z&&u.jsx("span",{style:{fontSize:12,color:"var(--text-muted)"},children:"Shift+click a second result to compare"}),N&&u.jsx("button",{onClick:()=>C(null),style:{padding:"4px 10px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:12},children:"✕ Close comparison"}),!z&&!N&&u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:"Shift+click two results to compare"})]})]}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8,marginBottom:N?24:0},children:U.map(G=>{const Q=(N==null?void 0:N[0])===G.id,X=(N==null?void 0:N[1])===G.id,D=z===G.id,J=Q||X||D;return u.jsxs("div",{onClick:I=>L(I,G.id),style:{background:"var(--bg-card)",border:`1px solid ${J?"var(--blue)":"var(--border)"}`,borderRadius:8,padding:14,cursor:"pointer",outline:J?"2px solid var(--blue)":"none",outlineOffset:1},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[u.jsx("span",{style:{color:Hf[G.status]??"var(--text-muted)",fontWeight:600,fontSize:12},children:G.status.toUpperCase()}),G.scenarioShortId&&u.jsx("span",{style:{color:"var(--cyan)",fontFamily:"monospace",fontSize:12},children:G.scenarioShortId}),u.jsx("span",{style:{fontWeight:500,fontSize:13},children:G.scenarioName??G.scenarioId.slice(0,8)}),G.personaName&&u.jsxs("span",{style:{fontSize:12,background:"rgba(139,92,246,0.12)",color:"#8b5cf6",padding:"1px 7px",borderRadius:10,fontWeight:500},children:["👤 ",G.personaName]}),u.jsxs("span",{style:{marginLeft:"auto",color:"var(--text-muted)",fontSize:12},children:[(G.durationMs/1e3).toFixed(1),"s | ",G.tokensUsed," tokens | ",G.screenshots.length," screenshots"]}),(Q||X)&&u.jsx("span",{style:{background:"var(--blue)",color:"#fff",fontSize:10,fontWeight:700,padding:"1px 6px",borderRadius:4},children:Q?"LEFT":"RIGHT"}),D&&u.jsx("span",{style:{background:"var(--yellow)",color:"#000",fontSize:10,fontWeight:700,padding:"1px 6px",borderRadius:4},children:"SELECTED"})]}),G.reasoning&&u.jsx("p",{style:{color:"var(--text-muted)",fontSize:12,margin:"6px 0 0 0"},children:G.reasoning}),G.error&&u.jsx("p",{style:{color:"var(--red)",fontSize:12,margin:"6px 0 0 0"},children:G.error})]},G.id)})}),N&&ee&&Y&&u.jsx(vy,{left:ee,right:Y})]})}function vy({left:c,right:f}){return u.jsxs("div",{style:{marginTop:8},children:[u.jsx("h3",{style:{fontSize:14,fontWeight:600,marginBottom:12},children:"Side-by-side Comparison"}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:16},children:[u.jsx(qf,{result:c,label:"LEFT"}),u.jsx(qf,{result:f,label:"RIGHT"})]})]})}function qf({result:c,label:f}){const[y,o]=x.useState([]);x.useEffect(()=>{Qf(c.id).then(({screenshots:U})=>o(U)).catch(()=>{})},[c.id]);const T=c.status==="passed"?"var(--green)":c.status==="failed"?"var(--red)":"var(--yellow)";return u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,overflow:"hidden"},children:[u.jsxs("div",{style:{padding:"10px 14px",borderBottom:"1px solid var(--border)",display:"flex",alignItems:"center",gap:8},children:[u.jsx("span",{style:{background:"var(--blue)",color:"#fff",fontSize:10,fontWeight:700,padding:"1px 6px",borderRadius:4},children:f}),u.jsx("span",{style:{fontWeight:600,fontSize:13},children:c.scenarioName??c.scenarioId.slice(0,8)})]}),u.jsxs("div",{style:{padding:"10px 14px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:6,fontSize:12,borderBottom:"1px solid var(--border)"},children:[u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Status: "}),u.jsx("span",{style:{color:T,fontWeight:600},children:c.status.toUpperCase()})]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Duration: "}),(c.durationMs/1e3).toFixed(1),"s"]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Tokens: "}),c.tokensUsed]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Steps: "}),c.stepsCompleted,"/",c.stepsTotal]}),u.jsxs("div",{style:{gridColumn:"1 / -1"},children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Cost: "}),"$",(c.costCents/100).toFixed(4)]})]}),c.reasoning&&u.jsxs("div",{style:{padding:"8px 14px",borderBottom:"1px solid var(--border)"},children:[u.jsx("div",{style:{fontSize:11,color:"var(--text-muted)",marginBottom:4,fontWeight:600},children:"REASONING"}),u.jsx("p",{style:{fontSize:12,margin:0,color:"var(--text)"},children:c.reasoning})]}),c.error&&u.jsxs("div",{style:{padding:"8px 14px",borderBottom:"1px solid var(--border)"},children:[u.jsx("div",{style:{fontSize:11,color:"var(--red)",marginBottom:4,fontWeight:600},children:"ERROR"}),u.jsx("p",{style:{fontSize:12,margin:0,color:"var(--red)"},children:c.error})]}),u.jsxs("div",{style:{padding:14},children:[u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginBottom:8,fontWeight:600},children:["SCREENSHOTS (",y.length,")"]}),y.length===0?u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)"},children:"No screenshots"}):u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:y.map(U=>u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[u.jsx("a",{href:An(U.id),target:"_blank",rel:"noreferrer",style:{flexShrink:0},children:u.jsx("img",{src:An(U.id),alt:U.action,style:{width:80,height:50,objectFit:"cover",borderRadius:4,border:"1px solid var(--border)",display:"block"}})}),u.jsxs("div",{children:[u.jsxs("div",{style:{fontSize:11,fontWeight:600},children:["Step ",U.stepNumber]}),u.jsx("div",{style:{fontSize:11,color:"var(--text-muted)"},children:U.action})]})]},U.id))})]})]})}function xy({resultId:c,onBack:f}){const[y,o]=x.useState(null),[T,U]=x.useState([]),[O,N]=x.useState(null);x.useEffect(()=>{Qf(c).then(({result:j,screenshots:z})=>{o(j),U(z)}).catch(console.error)},[c]);const C=x.useCallback(()=>N(null),[]),p=x.useCallback(()=>N(j=>j!==null&&j>0?j-1:j),[]),H=x.useCallback(()=>N(j=>j!==null&&j<T.length-1?j+1:j),[T.length]);return x.useEffect(()=>{if(O===null)return;const j=z=>{z.key==="Escape"?C():z.key==="ArrowLeft"?p():z.key==="ArrowRight"&&H()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[O,C,p,H]),y?u.jsxs("div",{children:[u.jsx("button",{onClick:f,style:{background:"none",border:"none",color:"var(--blue)",cursor:"pointer",marginBottom:16,padding:0,fontSize:13},children:"Back to Run"}),u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:20,marginBottom:20},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:600,margin:"0 0 12px 0"},children:y.scenarioName??y.scenarioId.slice(0,8)}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:12,fontSize:13},children:[u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Status:"})," ",u.jsx("span",{style:{color:y.status==="passed"?"var(--green)":"var(--red)"},children:y.status.toUpperCase()})]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Model:"})," ",y.model]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Duration:"})," ",(y.durationMs/1e3).toFixed(1),"s"]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Tokens:"})," ",y.tokensUsed," (~$",(y.costCents/100).toFixed(4),")"]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Steps:"})," ",y.stepsCompleted,"/",y.stepsTotal]})]}),y.reasoning&&u.jsxs("div",{style:{marginTop:16},children:[u.jsx("h3",{style:{fontSize:13,fontWeight:600,color:"var(--text-muted)",margin:"0 0 6px 0"},children:"Reasoning"}),u.jsx("p",{style:{fontSize:13,margin:0},children:y.reasoning})]}),y.error&&u.jsxs("div",{style:{marginTop:16},children:[u.jsx("h3",{style:{fontSize:13,fontWeight:600,color:"var(--red)",margin:"0 0 6px 0"},children:"Error"}),u.jsx("p",{style:{fontSize:13,margin:0,color:"var(--red)"},children:y.error})]})]}),u.jsxs("h3",{style:{fontSize:14,fontWeight:600,marginBottom:12},children:["Screenshots (",T.length,")"]}),T.length===0?u.jsx("div",{style:{padding:24,textAlign:"center",color:"var(--text-muted)",fontSize:13},children:"No screenshots captured."}):u.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:12},children:T.map((j,z)=>u.jsxs("div",{onClick:()=>N(z),style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,overflow:"hidden",cursor:"pointer",transition:"border-color 0.15s"},children:[u.jsx("img",{src:An(j.id),alt:j.action,style:{width:"100%",height:180,objectFit:"cover",display:"block"}}),u.jsxs("div",{style:{padding:10},children:[u.jsxs("div",{style:{fontSize:12,fontWeight:600},children:["Step ",j.stepNumber,": ",j.action]}),u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)"},children:[j.width,"x",j.height]})]})]},j.id))}),O!==null&&T[O]&&(()=>{const j=T[O];return u.jsx("div",{onClick:C,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.92)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:200},children:u.jsxs("div",{onClick:z=>z.stopPropagation(),style:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"90vw",maxHeight:"90vh",position:"relative"},children:[u.jsx("a",{href:An(j.id),download:`step-${j.stepNumber}.png`,onClick:z=>z.stopPropagation(),title:"Download screenshot",style:{position:"absolute",top:-8,right:-8,background:"rgba(255,255,255,0.12)",border:"1px solid rgba(255,255,255,0.25)",borderRadius:6,color:"#fff",textDecoration:"none",fontSize:16,lineHeight:1,padding:"5px 8px",cursor:"pointer",zIndex:10},children:"⬇"}),u.jsxs("div",{style:{color:"#fff",fontSize:13,marginBottom:10,opacity:.7},children:["Step ",j.stepNumber," of ",T.length]}),u.jsx("img",{src:An(j.id),alt:j.action,style:{maxWidth:"80vw",maxHeight:"75vh",borderRadius:8,display:"block"}}),u.jsx("div",{style:{marginTop:12,color:"#fff",fontSize:14,fontWeight:500,textAlign:"center"},children:j.action}),u.jsxs("div",{style:{color:"rgba(255,255,255,0.5)",fontSize:12,marginTop:4},children:[j.width,"×",j.height]}),u.jsxs("div",{style:{display:"flex",gap:16,marginTop:16},children:[u.jsx("button",{onClick:z=>{z.stopPropagation(),p()},disabled:O===0,style:{padding:"6px 18px",borderRadius:6,border:"1px solid rgba(255,255,255,0.3)",background:"rgba(255,255,255,0.08)",color:O===0?"rgba(255,255,255,0.2)":"#fff",cursor:O===0?"default":"pointer",fontSize:13},children:"← Prev"}),u.jsx("button",{onClick:C,style:{padding:"6px 18px",borderRadius:6,border:"1px solid rgba(255,255,255,0.3)",background:"rgba(255,255,255,0.08)",color:"rgba(255,255,255,0.6)",cursor:"pointer",fontSize:13},children:"✕ Close"}),u.jsx("button",{onClick:z=>{z.stopPropagation(),H()},disabled:O===T.length-1,style:{padding:"6px 18px",borderRadius:6,border:"1px solid rgba(255,255,255,0.3)",background:"rgba(255,255,255,0.08)",color:O===T.length-1?"rgba(255,255,255,0.2)":"#fff",cursor:O===T.length-1?"default":"pointer",fontSize:13},children:"Next →"})]}),u.jsx("div",{style:{color:"rgba(255,255,255,0.3)",fontSize:11,marginTop:8},children:"← → arrow keys to navigate · Esc to close"})]})})})()]}):u.jsx("div",{style:{padding:40,textAlign:"center",color:"var(--text-muted)",display:"flex",justifyContent:"center"},children:u.jsx(ct,{})})}function Vf(c){const f=c.trim().split(/\s+/);if(f.length!==5)return c;const[y,o,T,U,O]=f,N=p=>p==="*",C=p=>/^\d+$/.test(p);if(N(y)&&N(o)&&N(T)&&N(U)&&N(O))return"Every minute";if(C(y)&&N(o)&&N(T)&&N(U)&&N(O))return`Every hour at :${y.padStart(2,"0")}`;if(C(y)&&C(o)&&N(T)&&N(U)&&N(O)){const p=parseInt(o,10),H=y.padStart(2,"0"),j=p>=12?"PM":"AM";return`Daily at ${p%12===0?12:p%12}:${H} ${j}`}if(C(y)&&C(o)&&N(T)&&N(U)&&C(O)){const H=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(O,10)]??O,j=parseInt(o,10),z=y.padStart(2,"0"),A=j>=12?"PM":"AM",L=j%12===0?12:j%12;return`Weekly on ${H} at ${L}:${z} ${A}`}if(C(y)&&C(o)&&C(T)&&N(U)&&N(O)){const p=parseInt(o,10),H=y.padStart(2,"0"),j=p>=12?"PM":"AM",z=p%12===0?12:p%12;return`Monthly on day ${T} at ${z}:${H} ${j}`}return y.startsWith("*/")&&N(o)?`Every ${y.slice(2)} minutes`:N(y)&&o.startsWith("*/")?`Every ${o.slice(2)} hours`:c}function kf(c){if(!c)return"—";try{return new Date(c).toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return c}}function my({onClose:c,onCreated:f}){const[y,o]=x.useState(""),[T,U]=x.useState("0 * * * *"),[O,N]=x.useState(""),[C,p]=x.useState("quick"),[H,j]=x.useState(1),[z,A]=x.useState(!1),[L,ee]=x.useState(null),Y=async X=>{if(X.preventDefault(),!y.trim()||!O.trim()||!T.trim()){ee("Name, URL, and Cron Expression are required.");return}A(!0),ee(null);try{await kp({name:y.trim(),cronExpression:T.trim(),url:O.trim(),model:C,parallel:H,enabled:!0,headed:!1,scenarioFilter:{}}),f(),c()}catch(D){ee(D instanceof Error?D.message:String(D)),A(!1)}},G={padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:13,width:"100%",boxSizing:"border-box",outline:"none"},Q={fontSize:12,color:"var(--text-muted)",display:"block",marginBottom:4};return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},onClick:X=>{X.target===X.currentTarget&&c()},children:u.jsxs("div",{style:{background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:440,maxWidth:"90vw",boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600},children:"New Schedule"}),u.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",color:"var(--text-muted)",fontSize:18,lineHeight:1},children:"×"})]}),u.jsxs("form",{onSubmit:Y,children:[u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Name"}),u.jsx("input",{style:G,type:"text",value:y,onChange:X=>o(X.target.value),placeholder:"Nightly regression",autoFocus:!0})]}),u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"Cron Expression"}),u.jsx("input",{style:G,type:"text",value:T,onChange:X=>U(X.target.value),placeholder:"0 * * * *"}),u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:3},children:["Fields: minute hour day month weekday · ",Vf(T)]})]}),u.jsxs("div",{children:[u.jsx("label",{style:Q,children:"URL"}),u.jsx("input",{style:G,type:"url",value:O,onChange:X=>N(X.target.value),placeholder:"https://app.example.com"})]}),u.jsxs("div",{style:{display:"flex",gap:12},children:[u.jsxs("div",{style:{flex:1},children:[u.jsx("label",{style:Q,children:"Model"}),u.jsxs("select",{value:C,onChange:X=>p(X.target.value),style:{...G,cursor:"pointer"},children:[u.jsx("option",{value:"quick",children:"Quick"}),u.jsx("option",{value:"thorough",children:"Thorough"}),u.jsx("option",{value:"deep",children:"Deep"})]})]}),u.jsxs("div",{style:{width:90},children:[u.jsx("label",{style:Q,children:"Parallel"}),u.jsx("input",{style:G,type:"number",min:1,max:10,value:H,onChange:X=>j(Math.max(1,parseInt(X.target.value,10)||1))})]})]})]}),L&&u.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(239,68,68,0.1)",border:"1px solid var(--red)",borderRadius:4,fontSize:12,color:"var(--red)"},children:L}),u.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:20},children:[u.jsx("button",{type:"button",onClick:c,style:{padding:"6px 14px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{type:"submit",disabled:z,style:{padding:"6px 14px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:z?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:z?.7:1},children:z?"Creating…":"Create Schedule"})]})]})]})})}function by(){const[c,f]=x.useState([]),[y,o]=x.useState(!0),[T,U]=x.useState(!1),[O,N]=x.useState(null),[C,p]=x.useState(null),[H,j]=x.useState(null),z=()=>{o(!0),qp().then(D=>{f(D),o(!1)}).catch(D=>{console.error(D),o(!1)})};x.useEffect(()=>{z()},[]);const A=D=>{j(D),setTimeout(()=>j(null),3e3)},L=async D=>{N(D.id);try{const J=await Yp(D.id,{enabled:!D.enabled});f(I=>I.map(K=>K.id===D.id?J:K))}catch(J){A(`Error: ${J instanceof Error?J.message:String(J)}`)}finally{N(null)}},ee=async D=>{if(window.confirm(`Delete schedule "${D.name}"?`))try{await Lp(D.id),f(J=>J.filter(I=>I.id!==D.id)),A(`Deleted "${D.name}"`)}catch(J){A(`Error: ${J instanceof Error?J.message:String(J)}`)}},Y=async D=>{p(D.id);try{await xc({url:D.url,model:D.model??"quick"}),A(`Run started for "${D.name}"`)}catch(J){A(`Error: ${J instanceof Error?J.message:String(J)}`)}finally{p(null)}},G={textAlign:"left",padding:"8px 12px",fontSize:11,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid var(--border)",background:"var(--bg-card)"},Q={padding:"10px 12px",fontSize:13,borderBottom:"1px solid var(--border)",verticalAlign:"middle"},X={padding:"3px 10px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:11};return u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:600,margin:0},children:"Schedules"}),u.jsxs("div",{style:{display:"flex",gap:8},children:[u.jsx("button",{onClick:z,style:{padding:"4px 12px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:12},children:"Refresh"}),u.jsx("button",{onClick:()=>U(!0),style:{padding:"4px 12px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:12,fontWeight:500},children:"+ New Schedule"})]})]}),y?u.jsx("div",{style:{padding:40,textAlign:"center"},children:u.jsx(ct,{})}):c.length===0?u.jsxs("div",{style:{padding:48,textAlign:"center",color:"var(--text-muted)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8},children:[u.jsx("div",{style:{fontSize:32,marginBottom:12},children:"🗓"}),u.jsx("div",{style:{fontWeight:500,marginBottom:6},children:"No schedules yet"}),u.jsx("div",{style:{fontSize:12},children:"Create a schedule to run tests automatically on a cron expression."}),u.jsx("button",{onClick:()=>U(!0),style:{marginTop:16,padding:"6px 16px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:13},children:"Create your first schedule"})]}):u.jsx("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,overflow:"hidden"},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:G,children:"Name"}),u.jsx("th",{style:G,children:"Cron"}),u.jsx("th",{style:G,children:"URL"}),u.jsx("th",{style:G,children:"Status"}),u.jsx("th",{style:G,children:"Next Run"}),u.jsx("th",{style:G,children:"Last Run"}),u.jsx("th",{style:{...G,textAlign:"right"},children:"Actions"})]})}),u.jsx("tbody",{children:c.map(D=>u.jsxs("tr",{style:{transition:"background 0.1s"},children:[u.jsxs("td",{style:Q,children:[u.jsx("span",{style:{fontWeight:500},children:D.name}),D.model&&u.jsx("span",{style:{marginLeft:6,fontSize:11,color:"var(--text-muted)",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:3,padding:"1px 5px"},children:D.model})]}),u.jsxs("td",{style:Q,children:[u.jsx("code",{style:{fontSize:12,color:"var(--text-muted)",display:"block"},children:D.cronExpression}),u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:Vf(D.cronExpression)})]}),u.jsx("td",{style:{...Q,maxWidth:200},children:u.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",wordBreak:"break-all"},children:D.url})}),u.jsx("td",{style:Q,children:u.jsxs("button",{onClick:()=>L(D),disabled:O===D.id,title:D.enabled?"Click to disable":"Click to enable",style:{display:"inline-flex",alignItems:"center",gap:5,padding:"3px 8px",borderRadius:20,border:"1px solid "+(D.enabled?"var(--green)":"var(--border)"),background:D.enabled?"rgba(34,197,94,0.1)":"transparent",color:D.enabled?"var(--green)":"var(--text-muted)",cursor:O===D.id?"not-allowed":"pointer",fontSize:11,fontWeight:600,opacity:O===D.id?.6:1},children:[u.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:D.enabled?"var(--green)":"var(--text-muted)",display:"inline-block"}}),D.enabled?"Enabled":"Disabled"]})}),u.jsx("td",{style:{...Q,fontSize:12,color:"var(--text-muted)"},children:kf(D.nextRunAt)}),u.jsx("td",{style:{...Q,fontSize:12,color:"var(--text-muted)"},children:kf(D.lastRunAt)}),u.jsx("td",{style:{...Q,textAlign:"right"},children:u.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"flex-end"},children:[u.jsx("button",{onClick:()=>Y(D),disabled:C===D.id,title:"Run now",style:{...X,color:"var(--blue)",borderColor:"var(--blue)",opacity:C===D.id?.6:1,cursor:C===D.id?"not-allowed":"pointer"},children:C===D.id?"…":"Run Now"}),u.jsx("button",{onClick:()=>ee(D),title:"Delete schedule",style:{...X,color:"var(--red)",borderColor:"var(--red)"},children:"Delete"})]})})]},D.id))})]})}),T&&u.jsx(my,{onClose:()=>U(!1),onCreated:z}),H&&u.jsx("div",{style:{position:"fixed",bottom:56,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:"8px 16px",fontSize:13,color:"var(--text)",zIndex:300,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:H})]})}function Sy(c){if(!c)return"—";const f=Date.now()-new Date(c).getTime();return f<6e4?`${Math.floor(f/1e3)}s ago`:f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:`${Math.floor(f/864e5)}d ago`}const jy={GET:{color:"#22c55e",bg:"rgba(34,197,94,0.12)"},POST:{color:"#3b82f6",bg:"rgba(59,130,246,0.12)"},PUT:{color:"#eab308",bg:"rgba(234,179,8,0.12)"},PATCH:{color:"#f97316",bg:"rgba(249,115,22,0.12)"},DELETE:{color:"#ef4444",bg:"rgba(239,68,68,0.12)"},HEAD:{color:"#6b7280",bg:"rgba(107,114,128,0.12)"}};function zy({method:c}){const f=jy[c]??{color:"var(--text-muted)",bg:"var(--bg)"};return u.jsx("span",{style:{color:f.color,background:f.bg,padding:"2px 7px",borderRadius:4,fontSize:11,fontWeight:700,fontFamily:"monospace",letterSpacing:"0.03em"},children:c})}const Ty={passed:{color:"var(--green)",bg:"rgba(34,197,94,0.1)"},failed:{color:"var(--red)",bg:"rgba(239,68,68,0.1)"},error:{color:"#f97316",bg:"rgba(249,115,22,0.1)"}};function Ey({status:c}){const f=Ty[c]??{color:"var(--text-muted)",bg:"var(--bg)"};return u.jsx("span",{style:{color:f.color,background:f.bg,padding:"2px 7px",borderRadius:4,fontSize:11,fontWeight:600},children:c.toUpperCase()})}function Cy({onClose:c,onCreated:f}){const[y,o]=x.useState(""),[T,U]=x.useState("GET"),[O,N]=x.useState(""),[C,p]=x.useState(200),[H,j]=x.useState(""),[z,A]=x.useState(""),[L,ee]=x.useState(""),[Y,G]=x.useState(""),[Q,X]=x.useState(!1),[D,J]=x.useState(null),I=T==="POST"||T==="PUT"||T==="PATCH",K=async se=>{if(se.preventDefault(),!y.trim()||!O.trim()){J("Name and URL are required.");return}X(!0),J(null);try{await wp({name:y.trim(),method:T,url:O.trim(),expectedStatus:C,expectedBodyContains:H.trim()||void 0,expectedResponseTimeMs:z?parseInt(z,10):void 0,body:I&&L.trim()?L.trim():void 0,tags:Y.split(",").map(W=>W.trim()).filter(Boolean),enabled:!0}),f(),c()}catch(W){J(W instanceof Error?W.message:String(W)),X(!1)}},ne={padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:13,width:"100%",boxSizing:"border-box",outline:"none"},pe={fontSize:12,color:"var(--text-muted)",display:"block",marginBottom:4};return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},onClick:se=>{se.target===se.currentTarget&&c()},children:u.jsxs("div",{style:{background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:480,maxWidth:"90vw",maxHeight:"85vh",overflowY:"auto",boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600},children:"Add API Check"}),u.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",color:"var(--text-muted)",fontSize:18,lineHeight:1},children:"×"})]}),u.jsxs("form",{onSubmit:K,children:[u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[u.jsxs("div",{children:[u.jsx("label",{style:pe,children:"Name"}),u.jsx("input",{style:ne,type:"text",value:y,onChange:se=>o(se.target.value),placeholder:"Health check",autoFocus:!0})]}),u.jsxs("div",{style:{display:"flex",gap:10},children:[u.jsxs("div",{style:{width:110},children:[u.jsx("label",{style:pe,children:"Method"}),u.jsxs("select",{value:T,onChange:se=>U(se.target.value),style:{...ne,cursor:"pointer"},children:[u.jsx("option",{children:"GET"}),u.jsx("option",{children:"POST"}),u.jsx("option",{children:"PUT"}),u.jsx("option",{children:"PATCH"}),u.jsx("option",{children:"DELETE"}),u.jsx("option",{children:"HEAD"})]})]}),u.jsxs("div",{style:{flex:1},children:[u.jsx("label",{style:pe,children:"URL"}),u.jsx("input",{style:ne,type:"text",value:O,onChange:se=>N(se.target.value),placeholder:"/api/health or https://example.com/api"})]})]}),u.jsxs("div",{style:{display:"flex",gap:10},children:[u.jsxs("div",{style:{width:130},children:[u.jsx("label",{style:pe,children:"Expected Status"}),u.jsx("input",{style:ne,type:"number",value:C,onChange:se=>p(parseInt(se.target.value,10)||200),min:100,max:599})]}),u.jsxs("div",{style:{flex:1},children:[u.jsx("label",{style:pe,children:"Max Response Time (ms)"}),u.jsx("input",{style:ne,type:"number",value:z,onChange:se=>A(se.target.value),placeholder:"optional",min:1})]})]}),u.jsxs("div",{children:[u.jsx("label",{style:pe,children:"Body Contains (optional)"}),u.jsx("input",{style:ne,type:"text",value:H,onChange:se=>j(se.target.value),placeholder:'e.g. "status":"ok"'})]}),I&&u.jsxs("div",{children:[u.jsx("label",{style:pe,children:"Request Body"}),u.jsx("textarea",{style:{...ne,minHeight:80,resize:"vertical",fontFamily:"monospace",fontSize:12},value:L,onChange:se=>ee(se.target.value),placeholder:'{"key": "value"}'})]}),u.jsxs("div",{children:[u.jsx("label",{style:pe,children:"Tags (comma-separated)"}),u.jsx("input",{style:ne,type:"text",value:Y,onChange:se=>G(se.target.value),placeholder:"api, health, critical"})]})]}),D&&u.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(239,68,68,0.1)",border:"1px solid var(--red)",borderRadius:4,fontSize:12,color:"var(--red)"},children:D}),u.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:20},children:[u.jsx("button",{type:"button",onClick:c,style:{padding:"6px 14px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{type:"submit",disabled:Q,style:{padding:"6px 14px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:Q?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:Q?.7:1},children:Q?"Adding…":"Add Check"})]})]})]})})}function Ay({onClose:c,onDone:f}){const[y,o]=x.useState(""),[T,U]=x.useState(!1),[O,N]=x.useState(null),[C,p]=x.useState(null),H=async z=>{if(z.preventDefault(),!y.trim()){p("Base URL is required.");return}U(!0),p(null);try{const A=await Zp({baseUrl:y.trim()});N({passed:A.passed,failed:A.failed,errors:A.errors}),f()}catch(A){p(A instanceof Error?A.message:String(A))}finally{U(!1)}},j={padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:13,width:"100%",boxSizing:"border-box",outline:"none"};return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},onClick:z=>{z.target===z.currentTarget&&c()},children:u.jsxs("div",{style:{background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:400,maxWidth:"90vw",boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600},children:"Run All API Checks"}),u.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",color:"var(--text-muted)",fontSize:18,lineHeight:1},children:"×"})]}),O?u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",gap:16,justifyContent:"center",padding:"16px 0"},children:[u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:28,fontWeight:700,color:"var(--green)"},children:O.passed}),u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)"},children:"Passed"})]}),u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:28,fontWeight:700,color:"var(--red)"},children:O.failed}),u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)"},children:"Failed"})]}),u.jsxs("div",{style:{textAlign:"center"},children:[u.jsx("div",{style:{fontSize:28,fontWeight:700,color:"#f97316"},children:O.errors}),u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)"},children:"Errors"})]})]}),u.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:12},children:u.jsx("button",{onClick:c,style:{padding:"6px 14px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:13},children:"Close"})})]}):u.jsxs("form",{onSubmit:H,children:[u.jsxs("div",{style:{marginBottom:14},children:[u.jsx("label",{style:{fontSize:12,color:"var(--text-muted)",display:"block",marginBottom:4},children:"Base URL"}),u.jsx("input",{style:j,type:"url",value:y,onChange:z=>o(z.target.value),placeholder:"https://app.example.com",autoFocus:!0}),u.jsx("div",{style:{fontSize:11,color:"var(--text-muted)",marginTop:4},children:"Relative URLs in checks will be resolved against this base URL."})]}),C&&u.jsx("div",{style:{marginBottom:12,padding:"8px 12px",background:"rgba(239,68,68,0.1)",border:"1px solid var(--red)",borderRadius:4,fontSize:12,color:"var(--red)"},children:C}),u.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[u.jsx("button",{type:"button",onClick:c,style:{padding:"6px 14px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{type:"submit",disabled:T,style:{padding:"6px 14px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:T?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:T?.7:1},children:T?u.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[u.jsx(ct,{size:12})," Running…"]}):"Run All"})]})]})]})})}function Ry(){const[c,f]=x.useState([]),[y,o]=x.useState({}),[T,U]=x.useState(!0),[O,N]=x.useState(!1),[C,p]=x.useState(!1),[H,j]=x.useState(null),[z,A]=x.useState("all"),[L,ee]=x.useState(null),[Y,G]=x.useState(null),Q=W=>{ee(W),setTimeout(()=>ee(null),3e3)},X=x.useCallback(async()=>{U(!0);try{const W=await Gp();f(W);const Z={};await Promise.all(W.map(async $=>{try{const be=await Vp($.id,1);be[0]&&(Z[$.id]=be[0])}catch{}})),o(Z)}catch(W){console.error(W)}finally{U(!1)}},[]);x.useEffect(()=>{X()},[X]);const D=async W=>{j(W.id);try{const Z=await Qp(W.id);o($=>({...$,[W.id]:Z})),Q(`"${W.name}" — ${Z.status.toUpperCase()}${Z.responseTimeMs!=null?` (${Z.responseTimeMs}ms)`:""}`)}catch(Z){Q(`Error: ${Z instanceof Error?Z.message:String(Z)}`)}finally{j(null)}},J=async W=>{if(window.confirm(`Delete check "${W.name}"?`))try{await Xp(W.id),f(Z=>Z.filter($=>$.id!==W.id)),Q(`Deleted "${W.name}"`)}catch(Z){Q(`Error: ${Z instanceof Error?Z.message:String(Z)}`)}},I=c.filter(W=>{if(z==="all")return!0;const Z=y[W.id];return z==="passing"?(Z==null?void 0:Z.status)==="passed":z==="failing"?(Z==null?void 0:Z.status)==="failed":z==="error"?(Z==null?void 0:Z.status)==="error":!0}),K={textAlign:"left",padding:"8px 12px",fontSize:11,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid var(--border)",background:"var(--bg-card)"},ne={padding:"10px 12px",fontSize:13,borderBottom:"1px solid var(--border)",verticalAlign:"middle"},pe={padding:"3px 10px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:11},se={padding:"4px 8px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:12,cursor:"pointer",outline:"none"};return u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:600,margin:0},children:"API Checks"}),u.jsxs("div",{style:{display:"flex",gap:8},children:[u.jsx("button",{onClick:X,style:{padding:"4px 12px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:12},children:"Refresh"}),u.jsx("button",{onClick:()=>p(!0),style:{padding:"4px 12px",borderRadius:4,border:"1px solid var(--green)",background:"rgba(34,197,94,0.1)",color:"var(--green)",cursor:"pointer",fontSize:12,fontWeight:500},children:"▶ Run All"}),u.jsx("button",{onClick:()=>N(!0),style:{padding:"4px 12px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:12,fontWeight:500},children:"+ Add Check"})]})]}),u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:16},children:[u.jsx("label",{style:{fontSize:12,color:"var(--text-muted)"},children:"Status:"}),u.jsxs("select",{value:z,onChange:W=>A(W.target.value),style:se,children:[u.jsx("option",{value:"all",children:"All"}),u.jsx("option",{value:"passing",children:"Passing"}),u.jsx("option",{value:"failing",children:"Failing"}),u.jsx("option",{value:"error",children:"Error"})]}),T&&u.jsx(ct,{size:14})]}),T&&c.length===0?u.jsx("div",{style:{padding:40,textAlign:"center"},children:u.jsx(ct,{})}):I.length===0?u.jsxs("div",{style:{padding:48,textAlign:"center",color:"var(--text-muted)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8},children:[u.jsx("div",{style:{fontSize:32,marginBottom:12},children:"🔌"}),u.jsx("div",{style:{fontWeight:500,marginBottom:6},children:c.length===0?"No API checks yet.":"No checks match the current filter."}),u.jsx("div",{style:{fontSize:12},children:c.length===0?"Add one to start monitoring your endpoints.":"Try changing the status filter above."}),c.length===0&&u.jsx("button",{onClick:()=>N(!0),style:{marginTop:16,padding:"6px 16px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:13},children:"Add your first check"})]}):u.jsx("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,overflow:"hidden"},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:K,children:"Method"}),u.jsx("th",{style:K,children:"Name / URL"}),u.jsx("th",{style:{...K,width:80},children:"Expected"}),u.jsx("th",{style:K,children:"Last Result"}),u.jsx("th",{style:K,children:"Last Run"}),u.jsx("th",{style:{...K,textAlign:"right"},children:"Actions"})]})}),u.jsx("tbody",{children:I.map(W=>{const Z=y[W.id],$=H===W.id,be=Y===W.id;return u.jsxs(u.Fragment,{children:[u.jsxs("tr",{onClick:()=>G(be?null:W.id),style:{opacity:$?.6:1,transition:"opacity 0.2s",cursor:"pointer"},children:[u.jsx("td",{style:ne,children:u.jsx(zy,{method:W.method})}),u.jsxs("td",{style:{...ne,maxWidth:280},children:[u.jsx("div",{style:{fontWeight:500,marginBottom:2},children:W.name}),u.jsx("div",{style:{fontSize:11,color:"var(--text-muted)",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.url.length>60?W.url.slice(0,57)+"…":W.url}),W.tags.length>0&&u.jsx("div",{style:{marginTop:3,display:"flex",gap:4,flexWrap:"wrap"},children:W.tags.map(de=>u.jsx("span",{style:{fontSize:10,color:"var(--text-muted)",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:3,padding:"1px 5px"},children:de},de))})]}),u.jsx("td",{style:ne,children:u.jsx("span",{style:{fontSize:12,color:"var(--text-muted)",fontFamily:"monospace",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:3,padding:"2px 6px"},children:W.expectedStatus})}),u.jsx("td",{style:ne,children:$?u.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[u.jsx(ct,{size:12}),u.jsx("span",{style:{fontSize:12,color:"var(--text-muted)"},children:"Running…"})]}):Z?u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[u.jsx(Ey,{status:Z.status}),Z.responseTimeMs!=null&&u.jsxs("span",{style:{fontSize:11,color:"var(--text-muted)"},children:[Z.responseTimeMs,"ms"]}),Z.statusCode!=null&&u.jsxs("span",{style:{fontSize:11,color:"var(--text-muted)"},children:["HTTP ",Z.statusCode]})]}):u.jsx("span",{style:{fontSize:12,color:"var(--text-muted)"},children:"Not run yet"})}),u.jsx("td",{style:{...ne,fontSize:12,color:"var(--text-muted)"},children:Z?Sy(Z.createdAt):"—"}),u.jsx("td",{style:{...ne,textAlign:"right"},children:u.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"flex-end"},children:[u.jsx("button",{onClick:de=>{de.stopPropagation(),D(W)},disabled:$,title:"Run check",style:{...pe,color:"var(--blue)",borderColor:"var(--blue)",opacity:$?.5:1,cursor:$?"not-allowed":"pointer"},children:$?"…":"▶ Run"}),u.jsx("button",{onClick:de=>{de.stopPropagation(),J(W)},title:"Delete check",style:{...pe,color:"var(--red)",borderColor:"var(--red)"},children:"Delete"})]})})]},W.id),be&&Z&&u.jsx("tr",{onClick:de=>de.stopPropagation(),children:u.jsx("td",{colSpan:6,style:{padding:0,background:"rgba(0,0,0,0.2)",borderBottom:"1px solid var(--border)"},children:u.jsxs("div",{style:{padding:"16px 20px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:20},children:[u.jsxs("div",{children:[u.jsx("div",{style:{fontSize:11,fontWeight:600,color:"var(--text-muted)",marginBottom:8,textTransform:"uppercase",letterSpacing:1},children:"Response Body"}),u.jsx("pre",{style:{margin:0,padding:"10px 12px",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:6,fontSize:11,fontFamily:"monospace",overflowX:"auto",maxHeight:200,color:"var(--text)",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:(()=>{const de=Z.responseBody;if(!de)return u.jsx("span",{style:{color:"var(--text-muted)"},children:"Empty"});try{return JSON.stringify(JSON.parse(de),null,2)}catch{return de}})()})]}),u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:12},children:[u.jsxs("div",{children:[u.jsx("div",{style:{fontSize:11,fontWeight:600,color:"var(--text-muted)",marginBottom:6,textTransform:"uppercase",letterSpacing:1},children:"Assertions"}),Z.assertionsPassed.map((de,R)=>u.jsxs("div",{style:{fontSize:12,color:"var(--green)",marginBottom:3},children:["✓ ",de]},R)),Z.assertionsFailed.map((de,R)=>u.jsxs("div",{style:{fontSize:12,color:"var(--red)",marginBottom:3},children:["✗ ",de]},R)),Z.error&&u.jsxs("div",{style:{fontSize:12,color:"var(--red)",marginBottom:3},children:["⚠ ",Z.error]})]}),Object.keys(Z.responseHeaders).length>0&&u.jsxs("div",{children:[u.jsx("div",{style:{fontSize:11,fontWeight:600,color:"var(--text-muted)",marginBottom:6,textTransform:"uppercase",letterSpacing:1},children:"Response Headers"}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2},children:Object.entries(Z.responseHeaders).slice(0,8).map(([de,R])=>u.jsxs("div",{style:{fontSize:11,fontFamily:"monospace"},children:[u.jsxs("span",{style:{color:"var(--blue)"},children:[de,":"]})," ",u.jsx("span",{style:{color:"var(--text-muted)"},children:R})]},de))})]})]})]})})},`${W.id}-detail`)]})})})]})}),O&&u.jsx(Cy,{onClose:()=>N(!1),onCreated:X}),C&&u.jsx(Ay,{onClose:()=>p(!1),onDone:X}),L&&u.jsx("div",{style:{position:"fixed",bottom:56,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:"8px 16px",fontSize:13,color:"var(--text)",zIndex:300,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:L})]})}function Dy({onClose:c,onCreated:f}){const[y,o]=x.useState(""),[T,U]=x.useState(""),[O,N]=x.useState(!1),[C,p]=x.useState(null),H={padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:13,width:"100%",boxSizing:"border-box",outline:"none"},j={fontSize:12,color:"var(--text-muted)",display:"block",marginBottom:4},z=async A=>{if(A.preventDefault(),!y.trim()){p("Name is required.");return}N(!0),p(null);try{const L=await Jp({name:y.trim(),description:T.trim()||void 0});f(L),c()}catch(L){p(L instanceof Error?L.message:String(L)),N(!1)}};return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},onClick:A=>{A.target===A.currentTarget&&c()},children:u.jsxs("div",{style:{background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:400,maxWidth:"90vw",boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600},children:"New Project"}),u.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",color:"var(--text-muted)",fontSize:18},children:"×"})]}),u.jsxs("form",{onSubmit:z,children:[u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[u.jsxs("div",{children:[u.jsx("label",{style:j,children:"Name"}),u.jsx("input",{style:H,type:"text",value:y,onChange:A=>o(A.target.value),placeholder:"My App",autoFocus:!0})]}),u.jsxs("div",{children:[u.jsx("label",{style:j,children:"Description (optional)"}),u.jsx("input",{style:H,type:"text",value:T,onChange:A=>U(A.target.value),placeholder:"Short description"})]})]}),C&&u.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(239,68,68,0.1)",border:"1px solid var(--red)",borderRadius:4,fontSize:12,color:"var(--red)"},children:C}),u.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:20},children:[u.jsx("button",{type:"button",onClick:c,style:{padding:"6px 14px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{type:"submit",disabled:O,style:{padding:"6px 14px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:O?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:O?.7:1},children:O?"Creating…":"Create"})]})]})]})})}function My({projectId:c,existing:f,onClose:y,onSaved:o}){const[T,U]=x.useState((f==null?void 0:f.name)??""),[O,N]=x.useState((f==null?void 0:f.url)??""),[C,p]=x.useState((f==null?void 0:f.isDefault)??!1),[H,j]=x.useState(f?Object.entries(f.variables??{}).map(([I,K])=>({key:I,value:K})):[]),[z,A]=x.useState(!1),[L,ee]=x.useState(null),Y={padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:13,width:"100%",boxSizing:"border-box",outline:"none"},G={fontSize:12,color:"var(--text-muted)",display:"block",marginBottom:4},Q=()=>j(I=>[...I,{key:"",value:""}]),X=I=>j(K=>K.filter((ne,pe)=>pe!==I)),D=(I,K,ne)=>{j(pe=>pe.map((se,W)=>W===I?{...se,[K]:ne}:se))},J=async I=>{if(I.preventDefault(),!T.trim()||!O.trim()){ee("Name and URL are required.");return}A(!0),ee(null);const K=Object.fromEntries(H.filter(ne=>ne.key.trim()).map(ne=>[ne.key.trim(),ne.value]));try{f?await Ip(f.id,{name:T.trim(),url:O.trim(),isDefault:C,variables:K}):await Fp(c,{name:T.trim(),url:O.trim(),isDefault:C,variables:K}),o(),y()}catch(ne){ee(ne instanceof Error?ne.message:String(ne)),A(!1)}};return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},onClick:I=>{I.target===I.currentTarget&&y()},children:u.jsxs("div",{style:{background:"var(--bg)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:520,maxWidth:"90vw",maxHeight:"85vh",overflowY:"auto",boxShadow:"0 8px 32px rgba(0,0,0,0.4)"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600},children:f?"Edit Environment":"Add Environment"}),u.jsx("button",{onClick:y,style:{background:"none",border:"none",cursor:"pointer",color:"var(--text-muted)",fontSize:18},children:"×"})]}),u.jsxs("form",{onSubmit:J,children:[u.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[u.jsxs("div",{style:{display:"flex",gap:10},children:[u.jsxs("div",{style:{flex:1},children:[u.jsx("label",{style:G,children:"Name"}),u.jsx("input",{style:Y,type:"text",value:T,onChange:I=>U(I.target.value),placeholder:"Production",autoFocus:!0})]}),u.jsxs("div",{style:{flex:2},children:[u.jsx("label",{style:G,children:"URL"}),u.jsx("input",{style:Y,type:"url",value:O,onChange:I=>N(I.target.value),placeholder:"https://app.example.com"})]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[u.jsx("input",{id:"isDefault",type:"checkbox",checked:C,onChange:I=>p(I.target.checked),style:{cursor:"pointer"}}),u.jsx("label",{htmlFor:"isDefault",style:{fontSize:13,cursor:"pointer"},children:"Set as default environment"})]}),u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[u.jsx("label",{style:G,children:"Variables"}),u.jsx("button",{type:"button",onClick:Q,style:{fontSize:11,padding:"2px 8px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer"},children:"+ Add"})]}),H.length===0?u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)",padding:"8px 0"},children:"No variables yet."}):u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:H.map((I,K)=>u.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[u.jsx("input",{style:{...Y,flex:1,fontFamily:"monospace",fontSize:12},type:"text",value:I.key,onChange:ne=>D(K,"key",ne.target.value),placeholder:"KEY"}),u.jsx("span",{style:{color:"var(--text-muted)",fontSize:12},children:"="}),u.jsx("input",{style:{...Y,flex:2,fontFamily:"monospace",fontSize:12},type:"text",value:I.value,onChange:ne=>D(K,"value",ne.target.value),placeholder:"value"}),u.jsx("button",{type:"button",onClick:()=>X(K),style:{background:"none",border:"none",color:"var(--red)",cursor:"pointer",fontSize:14,padding:"0 4px"},children:"×"})]},K))})]})]}),L&&u.jsx("div",{style:{marginTop:12,padding:"8px 12px",background:"rgba(239,68,68,0.1)",border:"1px solid var(--red)",borderRadius:4,fontSize:12,color:"var(--red)"},children:L}),u.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:20},children:[u.jsx("button",{type:"button",onClick:y,style:{padding:"6px 14px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{type:"submit",disabled:z,style:{padding:"6px 14px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:z?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:z?.7:1},children:z?"Saving…":f?"Save Changes":"Add Environment"})]})]})]})})}function Oy({project:c,onBack:f,onUpdated:y}){const[o,T]=x.useState(c.name),[U,O]=x.useState(c.description??""),[N,C]=x.useState(c.baseUrl??""),[p,H]=x.useState(c.port!=null?String(c.port):""),[j,z]=x.useState(!1),[A,L]=x.useState(null),[ee,Y]=x.useState(!1),[G,Q]=x.useState([]),[X,D]=x.useState(!0),[J,I]=x.useState(!1),[K,ne]=x.useState(null),[pe,se]=x.useState(null),W=P=>{se(P),setTimeout(()=>se(null),3e3)},Z=x.useCallback(async()=>{D(!0);try{const P=await $p(c.id);Q(P)}catch(P){console.error(P)}finally{D(!1)}},[c.id]);x.useEffect(()=>{Z()},[Z]);const $=async P=>{P.preventDefault(),z(!0),L(null);try{const fe=await Wp(c.id,{name:o.trim(),description:U.trim()||void 0,baseUrl:N.trim()||void 0,port:p?parseInt(p,10):void 0});y(fe),Y(!0),setTimeout(()=>Y(!1),2e3)}catch(fe){L(fe instanceof Error?fe.message:String(fe))}finally{z(!1)}},be=async P=>{if(window.confirm(`Delete environment "${P.name}"?`))try{await Pp(P.id),Q(fe=>fe.filter(g=>g.id!==P.id)),W(`Deleted "${P.name}"`)}catch(fe){W(`Error: ${fe instanceof Error?fe.message:String(fe)}`)}},de={padding:"6px 10px",borderRadius:4,border:"1px solid var(--border)",background:"var(--bg-card)",color:"var(--text)",fontSize:13,width:"100%",boxSizing:"border-box",outline:"none"},R={fontSize:12,color:"var(--text-muted)",display:"block",marginBottom:4},w={textAlign:"left",padding:"7px 10px",fontSize:11,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid var(--border)",background:"var(--bg-card)"},ie={padding:"9px 10px",fontSize:13,borderBottom:"1px solid var(--border)",verticalAlign:"middle"};return u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:20},children:[u.jsx("button",{onClick:f,style:{padding:"5px 12px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"← Back"}),u.jsx("h2",{style:{margin:0,fontSize:16,fontWeight:600},children:c.name})]}),u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:20,marginBottom:24},children:[u.jsx("h3",{style:{margin:"0 0 16px 0",fontSize:14,fontWeight:600},children:"Project Settings"}),u.jsxs("form",{onSubmit:$,children:[u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:14,marginBottom:14},children:[u.jsxs("div",{children:[u.jsx("label",{style:R,children:"Name"}),u.jsx("input",{style:de,type:"text",value:o,onChange:P=>T(P.target.value)})]}),u.jsxs("div",{children:[u.jsx("label",{style:R,children:"Description"}),u.jsx("input",{style:de,type:"text",value:U,onChange:P=>O(P.target.value),placeholder:"optional"})]}),u.jsxs("div",{children:[u.jsx("label",{style:R,children:"Base URL"}),u.jsx("input",{style:de,type:"text",value:N,onChange:P=>C(P.target.value),placeholder:"https://app.example.com"})]}),u.jsxs("div",{children:[u.jsx("label",{style:R,children:"Port"}),u.jsx("input",{style:de,type:"number",value:p,onChange:P=>H(P.target.value),placeholder:"e.g. 3000",min:1,max:65535})]})]}),A&&u.jsx("div",{style:{marginBottom:12,padding:"8px 12px",background:"rgba(239,68,68,0.1)",border:"1px solid var(--red)",borderRadius:4,fontSize:12,color:"var(--red)"},children:A}),u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10},children:[u.jsx("button",{type:"submit",disabled:j,style:{padding:"6px 16px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:j?"not-allowed":"pointer",fontSize:13,fontWeight:500,opacity:j?.7:1},children:j?"Saving…":"Save Changes"}),ee&&u.jsx("span",{style:{fontSize:12,color:"var(--green)"},children:"Saved!"})]})]})]}),u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,overflow:"hidden"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 16px",borderBottom:"1px solid var(--border)"},children:[u.jsx("h3",{style:{margin:0,fontSize:14,fontWeight:600},children:"Environments"}),u.jsx("button",{onClick:()=>I(!0),style:{padding:"4px 12px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:12,fontWeight:500},children:"+ Add Environment"})]}),X?u.jsx("div",{style:{padding:24,textAlign:"center"},children:u.jsx(ct,{})}):G.length===0?u.jsx("div",{style:{padding:24,textAlign:"center",color:"var(--text-muted)",fontSize:13},children:"No environments yet. Add one to configure deployment targets."}):u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{style:w,children:"Name"}),u.jsx("th",{style:w,children:"URL"}),u.jsx("th",{style:w,children:"Variables"}),u.jsx("th",{style:{...w,textAlign:"right"},children:"Actions"})]})}),u.jsx("tbody",{children:G.map(P=>u.jsxs("tr",{children:[u.jsxs("td",{style:ie,children:[u.jsx("span",{style:{fontWeight:500},children:P.name}),P.isDefault&&u.jsx("span",{style:{marginLeft:6,fontSize:10,color:"var(--blue)",background:"rgba(59,130,246,0.1)",border:"1px solid var(--blue)",borderRadius:3,padding:"1px 5px"},children:"default"})]}),u.jsx("td",{style:{...ie,fontFamily:"monospace",fontSize:12,color:"var(--text-muted)"},children:P.url}),u.jsxs("td",{style:{...ie,fontSize:12,color:"var(--text-muted)"},children:[Object.keys(P.variables??{}).length," var",Object.keys(P.variables??{}).length!==1?"s":""]}),u.jsx("td",{style:{...ie,textAlign:"right"},children:u.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"flex-end"},children:[u.jsx("button",{onClick:()=>ne(P),style:{padding:"3px 10px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:11},children:"Edit"}),u.jsx("button",{onClick:()=>be(P),style:{padding:"3px 10px",borderRadius:4,border:"1px solid var(--red)",background:"transparent",color:"var(--red)",cursor:"pointer",fontSize:11},children:"Delete"})]})})]},P.id))})]})]}),(J||K)&&u.jsx(My,{projectId:c.id,existing:K??void 0,onClose:()=>{I(!1),ne(null)},onSaved:Z}),pe&&u.jsx("div",{style:{position:"fixed",bottom:56,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:"8px 16px",fontSize:13,color:"var(--text)",zIndex:300,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:pe})]})}function _y(){const[c,f]=x.useState([]),[y,o]=x.useState(!0),[T,U]=x.useState(!1),[O,N]=x.useState(null),[C,p]=x.useState(null),H=z=>{p(z),setTimeout(()=>p(null),3e3)},j=x.useCallback(async()=>{o(!0);try{const z=await Kp();f(z)}catch(z){console.error(z),H(`Failed to load projects: ${z instanceof Error?z.message:String(z)}`)}finally{o(!1)}},[]);return x.useEffect(()=>{j()},[j]),O?u.jsx(Oy,{project:O,onBack:()=>N(null),onUpdated:z=>{f(A=>A.map(L=>L.id===z.id?z:L)),N(z)}}):u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:600,margin:0},children:"Projects"}),u.jsxs("div",{style:{display:"flex",gap:8},children:[u.jsx("button",{onClick:j,style:{padding:"4px 12px",borderRadius:4,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:12},children:"Refresh"}),u.jsx("button",{onClick:()=>U(!0),style:{padding:"4px 12px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:12,fontWeight:500},children:"+ New Project"})]})]}),y?u.jsx("div",{style:{padding:40,textAlign:"center"},children:u.jsx(ct,{})}):c.length===0?u.jsxs("div",{style:{padding:48,textAlign:"center",color:"var(--text-muted)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8},children:[u.jsx("div",{style:{fontSize:32,marginBottom:12},children:"📁"}),u.jsx("div",{style:{fontWeight:500,marginBottom:6},children:"No projects yet"}),u.jsx("div",{style:{fontSize:12},children:"Create a project to group your scenarios, schedules, and API checks."}),u.jsx("button",{onClick:()=>U(!0),style:{marginTop:16,padding:"6px 16px",borderRadius:4,border:"none",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:13},children:"Create your first project"})]}):u.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(280px, 1fr))",gap:16},children:c.map(z=>u.jsxs("div",{onClick:()=>N(z),style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:18,cursor:"pointer",transition:"border-color 0.15s"},onMouseEnter:A=>A.currentTarget.style.borderColor="var(--blue)",onMouseLeave:A=>A.currentTarget.style.borderColor="var(--border)",children:[u.jsx("div",{style:{fontWeight:600,fontSize:15,marginBottom:4},children:z.name}),z.description&&u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)",marginBottom:10},children:z.description}),u.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:10},children:[z.baseUrl?u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:3,padding:"2px 7px",fontFamily:"monospace",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:200},children:z.baseUrl}):u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:3,padding:"2px 7px"},children:"No URL configured"}),z.port!=null&&u.jsxs("span",{style:{fontSize:11,color:"var(--blue)",background:"rgba(59,130,246,0.1)",border:"1px solid var(--blue)",borderRadius:3,padding:"2px 7px"},children:[":",z.port]})]})]},z.id))}),T&&u.jsx(Dy,{onClose:()=>U(!1),onCreated:z=>{f(A=>[z,...A]),H(`Created "${z.name}"`)}}),C&&u.jsx("div",{style:{position:"fixed",bottom:56,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:"8px 16px",fontSize:13,color:"var(--text)",zIndex:300,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:C})]})}const Yf={console_error:{label:"Console",color:"var(--red)"},network_error:{label:"Network",color:"var(--yellow)"},broken_link:{label:"Link",color:"var(--blue)"},performance:{label:"Perf",color:"var(--text-muted)"}},Lf={critical:{color:"#fff",bg:"var(--red)"},high:{color:"var(--red)",bg:"rgba(239,68,68,0.1)"},medium:{color:"var(--yellow)",bg:"rgba(234,179,8,0.1)"},low:{color:"var(--text-muted)",bg:"rgba(115,115,115,0.1)"}},Gf={open:{color:"var(--red)",bg:"rgba(239,68,68,0.1)"},regressed:{color:"var(--yellow)",bg:"rgba(234,179,8,0.1)"},resolved:{color:"var(--green)",bg:"rgba(34,197,94,0.1)"}};function wf({label:c,color:f,bg:y}){return u.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:4,fontSize:11,fontWeight:600,color:f,background:y,whiteSpace:"nowrap"},children:c})}function Uy(c){const f=Date.now()-new Date(c).getTime();return f<6e4?"just now":f<36e5?`${Math.floor(f/6e4)}m ago`:f<864e5?`${Math.floor(f/36e5)}h ago`:`${Math.floor(f/864e5)}d ago`}function By(){const[c,f]=x.useState([]),[y,o]=x.useState(!0),[T,U]=x.useState("open"),[O,N]=x.useState("all"),[C,p]=x.useState(new Set),[H,j]=x.useState(null),z=(Y,G)=>{o(!0),ly({status:Y!=="all"?Y:void 0,type:G!=="all"?G:void 0}).then(f).catch(console.error).finally(()=>o(!1))};x.useEffect(()=>{z(T,O)},[T,O]);const A=Y=>{j(Y),setTimeout(()=>j(null),3e3)},L=async(Y,G)=>{p(Q=>new Set([...Q,Y]));try{await ay(Y),A(`Resolved: ${G}`),z(T,O)}catch(Q){A(`Error: ${Q instanceof Error?Q.message:String(Q)}`)}finally{p(Q=>{const X=new Set(Q);return X.delete(Y),X})}},ee=c.filter(Y=>Y.status==="open"||Y.status==="regressed").length;return u.jsxs("div",{style:{padding:"24px 32px"},children:[H&&u.jsx("div",{style:{position:"fixed",top:20,right:20,background:"var(--surface)",border:"1px solid var(--border)",borderRadius:8,padding:"10px 16px",color:"var(--text)",zIndex:1e3,fontSize:13},children:H}),u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:24},children:[u.jsxs("div",{children:[u.jsx("h1",{style:{margin:0,fontSize:22,fontWeight:700,color:"var(--text)"},children:"Scan Issues"}),u.jsxs("p",{style:{margin:"4px 0 0",fontSize:13,color:"var(--text-muted)"},children:["Runtime issues detected by ",u.jsx("code",{children:"testers scan"})," — console errors, broken links, network failures, performance"]})]}),u.jsxs("div",{style:{fontSize:13,color:ee>0?"var(--red)":"var(--green)",fontWeight:600},children:[ee," open issue",ee!==1?"s":""]})]}),u.jsxs("div",{style:{display:"flex",gap:12,marginBottom:20},children:[["open","regressed","resolved","all"].map(Y=>u.jsx("button",{onClick:()=>U(Y),style:{padding:"5px 14px",borderRadius:6,fontSize:12,fontWeight:600,cursor:"pointer",background:T===Y?"var(--accent)":"var(--surface)",color:T===Y?"#fff":"var(--text-muted)",border:"1px solid var(--border)"},children:Y.charAt(0).toUpperCase()+Y.slice(1)},Y)),u.jsx("div",{style:{marginLeft:8,display:"flex",gap:8},children:["all","console_error","network_error","broken_link","performance"].map(Y=>{var G;return u.jsx("button",{onClick:()=>N(Y),style:{padding:"5px 14px",borderRadius:6,fontSize:12,cursor:"pointer",background:O===Y?"var(--surface-hover)":"transparent",color:O===Y?"var(--text)":"var(--text-muted)",border:"1px solid "+(O===Y?"var(--border)":"transparent")},children:Y==="all"?"All types":((G=Yf[Y])==null?void 0:G.label)??Y},Y)})})]}),y?u.jsx("div",{style:{display:"flex",justifyContent:"center",padding:48},children:u.jsx(ct,{})}):c.length===0?u.jsxs("div",{style:{textAlign:"center",padding:"64px 32px",color:"var(--text-muted)",border:"1px dashed var(--border)",borderRadius:12},children:[u.jsx("div",{style:{fontSize:32,marginBottom:12},children:"✓"}),u.jsx("div",{style:{fontSize:15,fontWeight:600,marginBottom:6},children:"No issues found"}),u.jsxs("div",{style:{fontSize:13},children:["Run ",u.jsx("code",{children:"testers scan all <url>"})," to detect console errors, broken links, network failures, and performance issues."]})]}):u.jsx("div",{style:{background:"var(--surface)",border:"1px solid var(--border)",borderRadius:12,overflow:"hidden"},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13},children:[u.jsx("thead",{children:u.jsx("tr",{style:{borderBottom:"1px solid var(--border)",background:"rgba(255,255,255,0.02)"},children:["Severity","Type","Status","Message","Page","Occurrences","Last Seen",""].map(Y=>u.jsx("th",{style:{padding:"10px 14px",textAlign:"left",fontWeight:600,fontSize:11,color:"var(--text-muted)",whiteSpace:"nowrap"},children:Y},Y))})}),u.jsx("tbody",{children:c.map((Y,G)=>{const Q=Lf[Y.severity]??Lf.medium,X=Gf[Y.status]??Gf.open,D=Yf[Y.type];return u.jsxs("tr",{style:{borderBottom:G<c.length-1?"1px solid var(--border)":"none"},children:[u.jsx("td",{style:{padding:"10px 14px"},children:u.jsx(wf,{label:Y.severity,color:Q.color,bg:Q.bg})}),u.jsx("td",{style:{padding:"10px 14px"},children:u.jsx("span",{style:{color:(D==null?void 0:D.color)??"var(--text-muted)",fontSize:12,fontWeight:500},children:(D==null?void 0:D.label)??Y.type})}),u.jsx("td",{style:{padding:"10px 14px"},children:u.jsx(wf,{label:Y.status,color:X.color,bg:X.bg})}),u.jsx("td",{style:{padding:"10px 14px",maxWidth:320},children:u.jsx("div",{style:{color:"var(--text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:Y.message,children:Y.message})}),u.jsx("td",{style:{padding:"10px 14px",maxWidth:200},children:u.jsx("span",{style:{color:"var(--text-muted)",fontSize:12,overflow:"hidden",textOverflow:"ellipsis",display:"block",whiteSpace:"nowrap"},title:Y.pageUrl,children:Y.pageUrl.replace(/^https?:\/\/[^/]+/,"")})}),u.jsx("td",{style:{padding:"10px 14px",color:"var(--text-muted)",textAlign:"center"},children:Y.occurrenceCount}),u.jsx("td",{style:{padding:"10px 14px",color:"var(--text-muted)",whiteSpace:"nowrap"},children:Uy(Y.lastSeenAt)}),u.jsx("td",{style:{padding:"10px 14px"},children:Y.status!=="resolved"&&u.jsx("button",{onClick:()=>L(Y.id,Y.message.slice(0,40)),disabled:C.has(Y.id),style:{padding:"4px 10px",borderRadius:5,fontSize:11,cursor:"pointer",background:"transparent",color:"var(--green)",border:"1px solid var(--green)",fontWeight:600,opacity:C.has(Y.id)?.5:1},children:C.has(Y.id)?"...":"Resolve"})})]},Y.id)})})]})})]})}function Ny({rate:c}){if(c==null)return u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:"not run"});const f=c>=80?"var(--green)":c>=50?"var(--yellow)":"var(--red)";return u.jsxs("span",{style:{fontSize:11,fontWeight:600,color:f,background:`${f}22`,borderRadius:4,padding:"2px 7px"},children:[c,"%"]})}function Hy({count:c,max:f}){const y=f>0?Math.round(c/f*100):0;return u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[u.jsx("div",{style:{width:80,height:6,background:"var(--border)",borderRadius:3,overflow:"hidden"},children:u.jsx("div",{style:{width:`${y}%`,height:"100%",background:"var(--blue)",borderRadius:3}})}),u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)",minWidth:16},children:c})]})}function qy(){const[c,f]=x.useState(null),[y,o]=x.useState(!0),[T,U]=x.useState("all"),[O,N]=x.useState(null);if(x.useEffect(()=>{ey().then(f).catch(console.error).finally(()=>o(!1))},[]),y)return u.jsx("div",{style:{display:"flex",justifyContent:"center",padding:64},children:u.jsx(ct,{})});if(!c)return null;const{routes:C,apiRoutes:p,totalCovered:H}=c,j=Math.max(...C.map(A=>A.scenarioCount),...p.map(A=>A.checkCount),1),z=[...T!=="api_check"?C:[],...T!=="scenario"?p.map(A=>({...A,scenarioCount:A.checkCount,scenarios:[],lastPassRate:null})):[]];return u.jsxs("div",{style:{padding:"24px 32px"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:24},children:[u.jsxs("div",{children:[u.jsx("h1",{style:{margin:0,fontSize:22,fontWeight:700},children:"Coverage Map"}),u.jsx("p",{style:{margin:"4px 0 0",fontSize:13,color:"var(--text-muted)"},children:"Routes and pages covered by test scenarios and API checks"})]}),u.jsxs("div",{style:{textAlign:"right"},children:[u.jsx("div",{style:{fontSize:28,fontWeight:700,color:"var(--blue)"},children:H}),u.jsx("div",{style:{fontSize:11,color:"var(--text-muted)"},children:"paths covered"})]})]}),u.jsx("div",{style:{display:"flex",gap:8,marginBottom:20},children:["all","scenario","api_check"].map(A=>u.jsx("button",{onClick:()=>U(A),style:{padding:"5px 14px",borderRadius:6,fontSize:12,fontWeight:600,cursor:"pointer",background:T===A?"var(--accent)":"var(--surface)",color:T===A?"#fff":"var(--text-muted)",border:"1px solid var(--border)"},children:A==="all"?"All":A==="scenario"?"Browser Scenarios":"API Checks"},A))}),z.length===0?u.jsxs("div",{style:{textAlign:"center",padding:"64px 32px",color:"var(--text-muted)",border:"1px dashed var(--border)",borderRadius:12},children:[u.jsx("div",{style:{fontSize:32,marginBottom:12},children:"📋"}),u.jsx("div",{style:{fontSize:15,fontWeight:600,marginBottom:6},children:"No coverage data yet"}),u.jsxs("div",{style:{fontSize:13},children:["Add ",u.jsx("code",{children:"targetPath"})," to scenarios or create API checks to see coverage here."]})]}):u.jsx("div",{style:{background:"var(--surface)",border:"1px solid var(--border)",borderRadius:12,overflow:"hidden"},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13},children:[u.jsx("thead",{children:u.jsx("tr",{style:{borderBottom:"1px solid var(--border)",background:"rgba(255,255,255,0.02)"},children:["Path / URL","Type","Coverage","Last Pass Rate",""].map(A=>u.jsx("th",{style:{padding:"10px 16px",textAlign:"left",fontWeight:600,fontSize:11,color:"var(--text-muted)",whiteSpace:"nowrap"},children:A},A))})}),u.jsx("tbody",{children:z.map((A,L)=>{const ee=O===A.path,Y=A.type==="scenario",G="checkCount"in A?A.checkCount:A.scenarioCount;return u.jsxs(u.Fragment,{children:[u.jsxs("tr",{onClick:()=>Y&&N(ee?null:A.path),style:{borderBottom:L<z.length-1&&!ee?"1px solid var(--border)":"none",cursor:Y?"pointer":"default",background:ee?"rgba(59,130,246,0.05)":"transparent"},children:[u.jsx("td",{style:{padding:"10px 16px",fontFamily:"monospace",fontSize:12},children:u.jsx("span",{style:{color:"var(--text)"},children:A.path})}),u.jsx("td",{style:{padding:"10px 16px"},children:u.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 7px",borderRadius:4,background:Y?"rgba(59,130,246,0.1)":"rgba(34,197,94,0.1)",color:Y?"var(--blue)":"var(--green)"},children:Y?"Scenario":"API Check"})}),u.jsx("td",{style:{padding:"10px 16px"},children:u.jsx(Hy,{count:G,max:j})}),u.jsx("td",{style:{padding:"10px 16px"},children:Y?u.jsx(Ny,{rate:A.lastPassRate}):u.jsx("span",{style:{fontSize:11,color:"var(--text-muted)"},children:"—"})}),u.jsx("td",{style:{padding:"10px 16px",color:"var(--text-muted)",fontSize:11},children:Y&&u.jsx("span",{children:ee?"▲":"▼"})})]},A.path),ee&&Y&&A.scenarios.length>0&&u.jsx("tr",{children:u.jsxs("td",{colSpan:5,style:{padding:"0 16px 12px 32px",background:"rgba(0,0,0,0.1)",borderBottom:"1px solid var(--border)"},children:[u.jsx("div",{style:{fontSize:12,color:"var(--text-muted)",paddingTop:8},children:"Scenarios covering this path:"}),u.jsx("ul",{style:{margin:"4px 0 0 0",paddingLeft:16},children:A.scenarios.map(Q=>u.jsx("li",{style:{fontSize:12,color:"var(--text)",padding:"2px 0"},children:Q},Q))})]})},`${A.path}-detail`)]})})})]})})]})}function ky(c){const f=c.split("").reduce((o,T)=>o+T.charCodeAt(0),0),y=[{color:"#3b82f6",bg:"rgba(59,130,246,0.13)"},{color:"#8b5cf6",bg:"rgba(139,92,246,0.13)"},{color:"#22c55e",bg:"rgba(34,197,94,0.13)"},{color:"#f97316",bg:"rgba(249,115,22,0.13)"},{color:"#ec4899",bg:"rgba(236,72,153,0.13)"},{color:"#06b6d4",bg:"rgba(6,182,212,0.13)"}];return y[f%y.length]}function Kf({role:c}){const f=ky(c);return u.jsx("span",{style:{color:f.color,background:f.bg,padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600},children:c})}function Jf({projectId:c}){return c?u.jsx("span",{style:{color:"var(--text-muted)",background:"rgba(107,114,128,0.13)",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:500},children:"project"}):u.jsx("span",{style:{color:"#3b82f6",background:"rgba(59,130,246,0.13)",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600},children:"Global"})}function Yy({onClose:c,onCreated:f}){const[y,o]=x.useState(""),[T,U]=x.useState(""),[O,N]=x.useState("global"),[C,p]=x.useState(""),[H,j]=x.useState(""),[z,A]=x.useState(""),[L,ee]=x.useState([]),[Y,G]=x.useState(""),[Q,X]=x.useState([]),[D,J]=x.useState(!1),[I,K]=x.useState(null),ne=()=>{const $=z.trim();$&&!L.includes($)&&ee(be=>[...be,$]),A("")},pe=()=>{const $=Y.trim();$&&!Q.includes($)&&X(be=>[...be,$]),G("")},se=async $=>{if($.preventDefault(),!y.trim()||!T.trim()){K("Name and role are required.");return}J(!0),K(null);try{const be=await iy({name:y.trim(),role:T.trim(),description:C.trim(),instructions:H.trim(),traits:L,goals:Q,projectId:void 0,enabled:!0});f(be)}catch(be){K(be instanceof Error?be.message:String(be)),J(!1)}},W={width:"100%",padding:"7px 10px",background:"var(--bg)",border:"1px solid var(--border)",borderRadius:6,color:"var(--text)",fontSize:13,boxSizing:"border-box"},Z={fontSize:12,fontWeight:600,color:"var(--text-muted)",marginBottom:4,display:"block"};return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},onClick:$=>{$.target===$.currentTarget&&c()},children:u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:560,maxWidth:"95vw",maxHeight:"90vh",overflowY:"auto"},children:[u.jsx("h2",{style:{fontSize:16,fontWeight:700,margin:"0 0 20px 0"},children:"New Persona"}),u.jsxs("form",{onSubmit:se,style:{display:"flex",flexDirection:"column",gap:14},children:[u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Name *"}),u.jsx("input",{style:W,value:y,onChange:$=>o($.target.value),placeholder:"e.g. Sarah the First-Timer"})]}),u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Role *"}),u.jsx("input",{style:W,value:T,onChange:$=>U($.target.value),placeholder:"first-time user, admin, power user, security auditor..."})]}),u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Scope"}),u.jsx("div",{style:{display:"flex",gap:12},children:["global","project"].map($=>u.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer",fontSize:13},children:[u.jsx("input",{type:"radio",checked:O===$,onChange:()=>N($)}),$==="global"?"Global (all projects)":"Project-scoped"]},$))})]}),u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Description"}),u.jsx("textarea",{style:{...W,resize:"vertical",minHeight:60},value:C,onChange:$=>p($.target.value),placeholder:"Short description of who this persona is..."})]}),u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Instructions"}),u.jsx("textarea",{style:{...W,resize:"vertical",minHeight:80},value:H,onChange:$=>j($.target.value),placeholder:"How this persona should behave — e.g. Always hesitate before clicking, look for errors..."})]}),u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Traits"}),u.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[u.jsx("input",{style:{...W,flex:1},value:z,onChange:$=>A($.target.value),onKeyDown:$=>{$.key==="Enter"&&($.preventDefault(),ne())},placeholder:"e.g. impatient — press Enter to add"}),u.jsx("button",{type:"button",onClick:ne,style:{padding:"7px 14px",borderRadius:6,border:"1px solid var(--border)",background:"transparent",color:"var(--text)",cursor:"pointer",fontSize:13},children:"Add"})]}),u.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:L.map($=>u.jsxs("span",{style:{background:"rgba(107,114,128,0.15)",color:"var(--text-muted)",padding:"2px 8px",borderRadius:12,fontSize:11,display:"flex",alignItems:"center",gap:4},children:[$,u.jsx("button",{type:"button",onClick:()=>ee(be=>be.filter(de=>de!==$)),style:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",padding:0,fontSize:12,lineHeight:1},children:"✕"})]},$))})]}),u.jsxs("div",{children:[u.jsx("label",{style:Z,children:"Goals"}),u.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[u.jsx("input",{style:{...W,flex:1},value:Y,onChange:$=>G($.target.value),onKeyDown:$=>{$.key==="Enter"&&($.preventDefault(),pe())},placeholder:"e.g. find checkout — press Enter to add"}),u.jsx("button",{type:"button",onClick:pe,style:{padding:"7px 14px",borderRadius:6,border:"1px solid var(--border)",background:"transparent",color:"var(--text)",cursor:"pointer",fontSize:13},children:"Add"})]}),u.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:Q.map($=>u.jsxs("span",{style:{background:"rgba(59,130,246,0.12)",color:"#3b82f6",padding:"2px 8px",borderRadius:12,fontSize:11,display:"flex",alignItems:"center",gap:4},children:[$,u.jsx("button",{type:"button",onClick:()=>X(be=>be.filter(de=>de!==$)),style:{background:"none",border:"none",color:"#3b82f6",cursor:"pointer",padding:0,fontSize:12,lineHeight:1},children:"✕"})]},$))})]}),I&&u.jsx("p",{style:{color:"var(--red)",fontSize:13,margin:0},children:I}),u.jsxs("div",{style:{display:"flex",gap:10,justifyContent:"flex-end",marginTop:4},children:[u.jsx("button",{type:"button",onClick:c,style:{padding:"8px 18px",borderRadius:6,border:"1px solid var(--border)",background:"transparent",color:"var(--text-muted)",cursor:"pointer",fontSize:13},children:"Cancel"}),u.jsx("button",{type:"submit",disabled:D,style:{padding:"8px 18px",borderRadius:6,border:"none",background:"#3b82f6",color:"#fff",cursor:D?"not-allowed":"pointer",fontSize:13,fontWeight:600,opacity:D?.7:1},children:D?"Creating...":"Create Persona"})]})]})]})})}function Ly({persona:c,onClose:f}){return u.jsx("div",{style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:999},onClick:y=>{y.target===y.currentTarget&&f()},children:u.jsxs("div",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:24,width:540,maxWidth:"95vw",maxHeight:"85vh",overflowY:"auto"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",marginBottom:16},children:[u.jsxs("div",{children:[u.jsx("h2",{style:{fontSize:16,fontWeight:700,margin:"0 0 6px 0"},children:c.name}),u.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[u.jsx(Kf,{role:c.role}),u.jsx(Jf,{projectId:c.projectId})]})]}),u.jsx("button",{onClick:f,style:{background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:18},children:"✕"})]}),c.description&&u.jsx("p",{style:{fontSize:13,color:"var(--text-muted)",margin:"0 0 16px 0"},children:c.description}),c.instructions&&u.jsxs("div",{style:{marginBottom:16},children:[u.jsx("h3",{style:{fontSize:12,fontWeight:600,color:"var(--text-muted)",marginBottom:6},children:"INSTRUCTIONS"}),u.jsx("p",{style:{fontSize:13,background:"var(--bg)",border:"1px solid var(--border)",borderRadius:6,padding:"10px 14px",margin:0,whiteSpace:"pre-wrap",lineHeight:1.6},children:c.instructions})]}),c.traits.length>0&&u.jsxs("div",{style:{marginBottom:16},children:[u.jsx("h3",{style:{fontSize:12,fontWeight:600,color:"var(--text-muted)",marginBottom:8},children:"TRAITS"}),u.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:c.traits.map(y=>u.jsx("span",{style:{background:"rgba(107,114,128,0.15)",color:"var(--text-muted)",padding:"3px 10px",borderRadius:12,fontSize:12},children:y},y))})]}),c.goals.length>0&&u.jsxs("div",{style:{marginBottom:16},children:[u.jsx("h3",{style:{fontSize:12,fontWeight:600,color:"var(--text-muted)",marginBottom:8},children:"GOALS"}),u.jsx("ul",{style:{margin:0,paddingLeft:20},children:c.goals.map(y=>u.jsx("li",{style:{fontSize:13,color:"var(--text)",marginBottom:4},children:y},y))})]}),u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)",borderTop:"1px solid var(--border)",paddingTop:12,marginTop:4},children:["ID: ",c.shortId," · v",c.version," · ",c.enabled?"enabled":"disabled"," · Created ",new Date(c.createdAt).toLocaleDateString()]})]})})}function Gy(){const[c,f]=x.useState([]),[y,o]=x.useState(!0),[T,U]=x.useState(!1),[O,N]=x.useState(null),[C,p]=x.useState(null),H=()=>{o(!0),ny().then(f).catch(console.error).finally(()=>o(!1))};x.useEffect(()=>{H()},[]);const j=A=>{U(!1),f(L=>[A,...L])},z=async()=>{if(C)try{await uy(C.id),f(A=>A.filter(L=>L.id!==C.id)),p(null)}catch(A){console.error(A)}};return u.jsxs("div",{children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:20},children:[u.jsx("h2",{style:{fontSize:18,fontWeight:700,margin:0},children:"Personas"}),u.jsx("button",{onClick:()=>U(!0),style:{padding:"8px 16px",borderRadius:6,border:"none",background:"#3b82f6",color:"#fff",cursor:"pointer",fontSize:13,fontWeight:600},children:"+ New Persona"})]}),y?u.jsx("div",{style:{display:"flex",justifyContent:"center",padding:40},children:u.jsx(ct,{})}):c.length===0?u.jsxs("div",{style:{textAlign:"center",padding:"60px 24px",color:"var(--text-muted)",background:"var(--bg-card)",border:"1px dashed var(--border)",borderRadius:10},children:[u.jsx("div",{style:{fontSize:36,marginBottom:16},children:"🎭"}),u.jsx("h3",{style:{fontSize:16,fontWeight:600,margin:"0 0 8px 0",color:"var(--text)"},children:"No personas yet"}),u.jsx("p",{style:{margin:0,fontSize:14},children:"Create one to give your AI agent a testing identity."})]}):u.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(300px, 1fr))",gap:16},children:c.map(A=>u.jsxs("div",{onClick:()=>N(A),style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:10,padding:18,cursor:"pointer",transition:"border-color 0.15s",position:"relative"},onMouseEnter:L=>L.currentTarget.style.borderColor="var(--blue)",onMouseLeave:L=>L.currentTarget.style.borderColor="var(--border)",children:[u.jsx("button",{onClick:L=>{L.stopPropagation(),p(A)},title:"Delete persona",style:{position:"absolute",top:12,right:12,background:"none",border:"none",color:"var(--text-muted)",cursor:"pointer",fontSize:14,padding:"2px 4px",borderRadius:4,lineHeight:1},children:"✕"}),u.jsxs("div",{style:{marginBottom:10,paddingRight:24},children:[u.jsx("h3",{style:{fontSize:15,fontWeight:700,margin:"0 0 8px 0"},children:A.name}),u.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[u.jsx(Kf,{role:A.role}),u.jsx(Jf,{projectId:A.projectId})]})]}),A.description&&u.jsx("p",{style:{fontSize:12,color:"var(--text-muted)",margin:"0 0 12px 0",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:A.description}),A.traits.length>0&&u.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:10},children:[A.traits.slice(0,5).map(L=>u.jsx("span",{style:{background:"rgba(107,114,128,0.12)",color:"var(--text-muted)",padding:"1px 7px",borderRadius:10,fontSize:11},children:L},L)),A.traits.length>5&&u.jsxs("span",{style:{fontSize:11,color:"var(--text-muted)"},children:["+",A.traits.length-5," more"]})]}),u.jsxs("div",{style:{fontSize:11,color:"var(--text-muted)"},children:[A.goals.length," goal",A.goals.length!==1?"s":"",!A.enabled&&u.jsx("span",{style:{marginLeft:8,color:"var(--red)"},children:"disabled"})]})]},A.id))}),T&&u.jsx(Yy,{onClose:()=>U(!1),onCreated:j}),O&&u.jsx(Ly,{persona:O,onClose:()=>N(null)}),C&&u.jsx(Zf,{title:"Delete Persona",message:`Delete persona "${C.name}"? This cannot be undone. Scenarios using this persona will lose their persona assignment.`,confirmLabel:"Delete",onConfirm:z,onCancel:()=>p(null)})]})}class wy extends x.Component{constructor(y){super(y);jf(this,"handleRetry",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(y){return{hasError:!0,error:y}}componentDidCatch(y,o){console.error("[ErrorBoundary]",y,o)}render(){return this.state.hasError?u.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"50vh",gap:16,color:"var(--text-muted)",textAlign:"center",padding:40},children:[u.jsx("div",{style:{fontSize:40},children:"⚠️"}),u.jsx("h2",{style:{fontSize:18,fontWeight:600,color:"var(--text)",margin:0},children:"Something went wrong"}),u.jsx("p",{style:{fontSize:13,margin:0,maxWidth:400,lineHeight:1.6},children:"An unexpected error occurred. You can try refreshing the page or clicking the button below to retry."}),this.state.error&&u.jsx("pre",{style:{fontSize:11,background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:6,padding:"8px 12px",color:"var(--red)",maxWidth:480,overflowX:"auto",textAlign:"left"},children:this.state.error.message}),u.jsx("button",{onClick:this.handleRetry,style:{padding:"8px 20px",borderRadius:6,border:"1px solid var(--blue)",background:"var(--blue)",color:"#fff",cursor:"pointer",fontSize:13,fontWeight:600},children:"Retry"})]}):this.props.children}}const Wf=x.createContext({selectedScenarioId:null,setSelectedScenarioId:()=>{},searchInputRef:{current:null},onCloseModal:null,setOnCloseModal:()=>{}});function Xy(){const[c,f]=x.useState({type:"scenarios"}),[y,o]=x.useState([]),[T,U]=x.useState([]),[O,N]=x.useState(null),[C,p]=x.useState(null),[H,j]=x.useState(null),[z,A]=x.useState(null),[L,ee]=x.useState(null),Y=x.useRef(null),[G,Q]=x.useState(()=>{const D=localStorage.getItem("theme");return D?D==="dark":!0});x.useEffect(()=>{document.documentElement.setAttribute("data-theme",G?"dark":"light"),localStorage.setItem("theme",G?"dark":"light")},[G]),x.useEffect(()=>{Uf().then(o).catch(console.error),yc().then(U).catch(console.error),Hp().then(N).catch(console.error)},[]);const X=()=>{Uf().then(o).catch(console.error),yc().then(U).catch(console.error)};return x.useEffect(()=>{const D=J=>{var ne,pe,se;const I=(pe=(ne=J.target)==null?void 0:ne.tagName)==null?void 0:pe.toLowerCase(),K=I==="input"||I==="textarea"||I==="select";if(J.key==="/"&&!K){J.preventDefault(),(se=Y.current)==null||se.focus();return}if(J.key==="Escape"){if(H){H();return}(c.type==="run-detail"||c.type==="result-detail")&&f({type:"runs"});return}if(!K){if(J.key==="r"||J.key==="R"){if(C&&c.type==="scenarios"){J.preventDefault();const W=y.find(Z=>Z.id===C);W&&xc({scenarioIds:[C]}).then(()=>{A(`Run started for "${W.name}"`),setTimeout(()=>A(null),3e3),setTimeout(X,1500)}).catch(Z=>{A(`Error: ${Z.message}`),setTimeout(()=>A(null),3e3)})}return}if(J.key==="e"||J.key==="E"){C&&c.type==="scenarios"&&(J.preventDefault(),ee(C));return}if(J.key==="d"||J.key==="D"){c.type==="scenarios"&&f({type:"runs"});return}if(J.key==="s"||J.key==="S"){(c.type==="scenarios"||c.type==="runs")&&f({type:"runs"});return}}};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[c,C,y,H]),u.jsx(Wf.Provider,{value:{selectedScenarioId:C,setSelectedScenarioId:p,searchInputRef:Y,onCloseModal:H,setOnCloseModal:j},children:u.jsxs("div",{style:{maxWidth:1200,margin:"0 auto",padding:"24px 16px",minHeight:"100vh",display:"flex",flexDirection:"column"},children:[u.jsxs("header",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:32,borderBottom:"1px solid var(--border)",paddingBottom:16},children:[u.jsx("h1",{style:{fontSize:20,fontWeight:700,margin:0},children:"Testers"}),u.jsxs("nav",{style:{display:"flex",gap:8},children:[u.jsxs(El,{active:c.type==="scenarios",onClick:()=>f({type:"scenarios"}),children:["Scenarios ",O?`(${O.scenarioCount})`:""]}),u.jsxs(El,{active:c.type==="runs"||c.type==="run-detail",onClick:()=>f({type:"runs"}),children:["Runs ",O?`(${O.runCount})`:""]}),u.jsx(El,{active:c.type==="schedules",onClick:()=>f({type:"schedules"}),children:"Schedules"}),u.jsx(El,{active:c.type==="api-checks",onClick:()=>f({type:"api-checks"}),children:"API Checks"}),u.jsx(El,{active:c.type==="projects",onClick:()=>f({type:"projects"}),children:"Projects"}),u.jsx(El,{active:c.type==="scan-issues",onClick:()=>f({type:"scan-issues"}),children:"Scan Issues"}),u.jsx(El,{active:c.type==="coverage",onClick:()=>f({type:"coverage"}),children:"Coverage"}),u.jsx(El,{active:c.type==="personas",onClick:()=>f({type:"personas"}),children:"Personas"})]}),u.jsx("button",{onClick:()=>Q(D=>!D),title:G?"Switch to light mode":"Switch to dark mode",style:{marginLeft:"auto",background:"none",border:"1px solid var(--border)",borderRadius:6,padding:"4px 8px",cursor:"pointer",fontSize:16,lineHeight:1,color:"var(--text-muted)"},children:G?"☀️":"🌙"})]}),u.jsx("div",{style:{flex:1},children:u.jsxs(wy,{children:[c.type==="scenarios"&&u.jsx(sy,{scenarios:y,onRefresh:X,editScenarioId:L,onEditClose:()=>ee(null)}),c.type==="runs"&&u.jsx(py,{runs:T,onSelectRun:D=>f({type:"run-detail",runId:D}),onRefresh:X}),c.type==="run-detail"&&u.jsx(yy,{runId:c.runId,onBack:()=>f({type:"runs"}),onSelectResult:D=>f({type:"result-detail",resultId:D})}),c.type==="result-detail"&&u.jsx(xy,{resultId:c.resultId,onBack:()=>f({type:"runs"})}),c.type==="schedules"&&u.jsx(by,{}),c.type==="api-checks"&&u.jsx(Ry,{}),c.type==="projects"&&u.jsx(_y,{}),c.type==="scan-issues"&&u.jsx(By,{}),c.type==="coverage"&&u.jsx(qy,{}),c.type==="personas"&&u.jsx(Gy,{})]})}),z&&u.jsx("div",{style:{position:"fixed",bottom:56,left:"50%",transform:"translateX(-50%)",background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:8,padding:"8px 16px",fontSize:13,color:"var(--text)",zIndex:100,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:z}),u.jsxs("footer",{style:{borderTop:"1px solid var(--border)",marginTop:32,paddingTop:10,display:"flex",gap:16,flexWrap:"wrap",justifyContent:"center"},children:[u.jsx(Da,{keys:["R"],label:"Run selected"}),u.jsx(Da,{keys:["E"],label:"Edit selected"}),u.jsx(Da,{keys:["D"],label:"View runs/diff"}),u.jsx(Da,{keys:["S"],label:"Screenshots"}),u.jsx(Da,{keys:["/"],label:"Search"}),u.jsx(Da,{keys:["Esc"],label:"Close / Back"})]})]})})}function Da({keys:c,label:f}){return u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,fontSize:11,color:"var(--text-muted)"},children:[c.map(y=>u.jsx("kbd",{style:{background:"var(--bg-card)",border:"1px solid var(--border)",borderRadius:3,padding:"1px 5px",fontSize:11,fontFamily:"monospace"},children:y},y)),u.jsx("span",{children:f})]})}function El({active:c,onClick:f,children:y}){return u.jsx("button",{onClick:f,style:{padding:"6px 14px",borderRadius:6,border:"1px solid "+(c?"var(--blue)":"var(--border)"),background:c?"var(--blue)":"transparent",color:c?"#fff":"var(--text-muted)",cursor:"pointer",fontSize:13,fontWeight:500},children:y})}Mp.createRoot(document.getElementById("root")).render(u.jsx(Xy,{}));
|